@lit-roa/custom-footer 0.0.0-stage → 0.1.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/README.md +148 -2
- package/dist/custom-footer.d.ts +86 -0
- package/dist/custom-footer.d.ts.map +1 -0
- package/dist/custom-footer.js +522 -0
- package/dist/custom-footer.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +28 -4
- package/src/custom-footer.ts +564 -0
- package/src/index.ts +10 -0
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, css, html, nothing } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
import { emitir, estilosBase, iconoBrandFacebook, iconoBrandInstagram, iconoBrandLinkedin, iconoBrandPinterest, iconoBrandTelegram, iconoBrandTiktok, iconoBrandWhatsapp, iconoBrandX, iconoBrandYoutube, iconoChevronDown, iconoClock, iconoMail, iconoMapPin, iconoPhone, tokens, } from '@lit-roa/base';
|
|
10
|
+
const iconosRedes = {
|
|
11
|
+
facebook: { icono: iconoBrandFacebook, nombre: 'Facebook' },
|
|
12
|
+
instagram: { icono: iconoBrandInstagram, nombre: 'Instagram' },
|
|
13
|
+
tiktok: { icono: iconoBrandTiktok, nombre: 'TikTok' },
|
|
14
|
+
whatsapp: { icono: iconoBrandWhatsapp, nombre: 'WhatsApp' },
|
|
15
|
+
youtube: { icono: iconoBrandYoutube, nombre: 'YouTube' },
|
|
16
|
+
x: { icono: iconoBrandX, nombre: 'X' },
|
|
17
|
+
linkedin: { icono: iconoBrandLinkedin, nombre: 'LinkedIn' },
|
|
18
|
+
pinterest: { icono: iconoBrandPinterest, nombre: 'Pinterest' },
|
|
19
|
+
telegram: { icono: iconoBrandTelegram, nombre: 'Telegram' },
|
|
20
|
+
};
|
|
21
|
+
// TODO: cambiar por el SVG oficial del kit de marca de Mercado Pago.
|
|
22
|
+
const logoMercadoPago = html `<svg width="30" height="21" viewBox="0 0 30 21" aria-hidden="true"><ellipse cx="15" cy="10.5" rx="14" ry="9.5" fill="#00b1ea" stroke="#0a0a6b" stroke-width="1.4"/><path d="M4.5 9.5c2-1.6 4-2.2 6-1.4l3 1.2c1.2.5 2.2.3 3-.4l1.6-1.3c1.6-1 3.6-.9 5.5.2l2 1.4" fill="none" stroke="#0a0a6b" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12.2l2.2 1.8c.6.5 1.4.5 1.9 0M10.6 11.4l2.4 2c.6.5 1.4.5 1.9 0M13.2 10.6l2.5 2c.6.5 1.4.4 1.8-.1l.3-.4M20.5 10.5l-2.8 1" fill="none" stroke="#0a0a6b" stroke-width="1.3" stroke-linecap="round"/></svg>`;
|
|
23
|
+
const metodosPago = {
|
|
24
|
+
visa: { nombre: 'Visa', contenido: html `VISA` },
|
|
25
|
+
mastercard: { nombre: 'Mastercard', contenido: html `<i></i><i></i>` },
|
|
26
|
+
amex: { nombre: 'American Express', contenido: html `AMEX` },
|
|
27
|
+
'mercado-pago': { nombre: 'Mercado Pago', contenido: html `${logoMercadoPago}<span>mercado<br />pago</span>` },
|
|
28
|
+
};
|
|
29
|
+
/** Ancho (px) por debajo del cual el footer pasa a una columna con acordeones. */
|
|
30
|
+
const ANCHO_ESTRECHO = 640;
|
|
31
|
+
/**
|
|
32
|
+
* Footer genérico y responsive.
|
|
33
|
+
*
|
|
34
|
+
* Los enlaces no navegan: lanzan `clic-enlace` para que el sitio decida si
|
|
35
|
+
* cambia de ruta o abre una modal. Ctrl/Cmd + clic sí abre el `href` en otra
|
|
36
|
+
* pestaña. Las redes sociales sí son ligas normales (se abren en otra pestaña).
|
|
37
|
+
*
|
|
38
|
+
* @fires clic-enlace - Al tocar un enlace o el logo. `detail`: `{ enlace, grupo }`.
|
|
39
|
+
* @slot boletin - Franja superior, por ejemplo un formulario de novedades.
|
|
40
|
+
* @slot extra - Al final de la columna de contacto, por ejemplo horarios especiales.
|
|
41
|
+
* @slot pie - En la barra inferior, junto al ©.
|
|
42
|
+
*/
|
|
43
|
+
let LrCustomFooter = class LrCustomFooter extends LitElement {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
/** Nombre del negocio: se usa en el © y como texto del logo si no hay imagen. */
|
|
47
|
+
this.nombre = '';
|
|
48
|
+
/** URL de la imagen del logo. */
|
|
49
|
+
this.logo = '';
|
|
50
|
+
this.logoAlt = '';
|
|
51
|
+
/** `href` que viaja en `clic-enlace` al tocar el logo (con `id: "inicio"`). */
|
|
52
|
+
this.logoHref = '/';
|
|
53
|
+
this.descripcion = '';
|
|
54
|
+
/** Grupos de enlaces. Como atributo, en JSON. */
|
|
55
|
+
this.grupos = [];
|
|
56
|
+
/** Redes sociales. Como atributo, en JSON. */
|
|
57
|
+
this.redes = [];
|
|
58
|
+
/** Datos de contacto. Como atributo, en JSON. */
|
|
59
|
+
this.contacto = {};
|
|
60
|
+
/** Logos de pago a mostrar, en orden. Como atributo, en JSON. */
|
|
61
|
+
this.metodosPago = [];
|
|
62
|
+
/** Título de la columna de contacto. */
|
|
63
|
+
this.tituloContacto = 'Contacto';
|
|
64
|
+
/** Reemplaza el texto después de "© año". */
|
|
65
|
+
this.textoDerechos = '';
|
|
66
|
+
this.estrecho = false;
|
|
67
|
+
this.abiertos = new Set();
|
|
68
|
+
this.conBoletin = false;
|
|
69
|
+
}
|
|
70
|
+
static { this.styles = [
|
|
71
|
+
tokens,
|
|
72
|
+
estilosBase,
|
|
73
|
+
css `
|
|
74
|
+
:host {
|
|
75
|
+
display: block;
|
|
76
|
+
--_f-fondo: var(--lr-footer-fondo, #1c1917);
|
|
77
|
+
--_f-fondo-alterno: var(--lr-footer-fondo-alterno, rgb(255 255 255 / 0.04));
|
|
78
|
+
--_f-texto: var(--lr-footer-texto, #e7e5e4);
|
|
79
|
+
--_f-titulos: var(--lr-footer-titulos, #ffffff);
|
|
80
|
+
--_f-texto-suave: var(--lr-footer-texto-suave, #a8a29e);
|
|
81
|
+
--_f-borde: var(--lr-footer-borde, #3a3431);
|
|
82
|
+
--_f-ancho: var(--lr-footer-ancho-maximo, 1160px);
|
|
83
|
+
}
|
|
84
|
+
footer {
|
|
85
|
+
background: var(--_f-fondo);
|
|
86
|
+
color: var(--_f-texto);
|
|
87
|
+
font-size: 0.875rem;
|
|
88
|
+
}
|
|
89
|
+
.cont {
|
|
90
|
+
max-width: var(--_f-ancho);
|
|
91
|
+
margin: 0 auto;
|
|
92
|
+
padding: 3rem 2rem 0;
|
|
93
|
+
}
|
|
94
|
+
a {
|
|
95
|
+
color: inherit;
|
|
96
|
+
}
|
|
97
|
+
a:focus-visible,
|
|
98
|
+
button:focus-visible {
|
|
99
|
+
outline: 2px solid var(--_color-primario);
|
|
100
|
+
outline-offset: 2px;
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
}
|
|
103
|
+
svg {
|
|
104
|
+
flex: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.boletin {
|
|
108
|
+
margin-bottom: 2.75rem;
|
|
109
|
+
}
|
|
110
|
+
.boletin[hidden] {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.rejilla {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-template-columns: 1.5fr repeat(var(--_grupos, 3), 1fr) 1.3fr;
|
|
117
|
+
gap: 2rem;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.logo {
|
|
121
|
+
display: inline-flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: 0.625rem;
|
|
124
|
+
font-size: 1.375rem;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
color: var(--_f-titulos);
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
}
|
|
129
|
+
.logo img {
|
|
130
|
+
display: block;
|
|
131
|
+
max-height: var(--lr-footer-alto-logo, 44px);
|
|
132
|
+
max-width: 200px;
|
|
133
|
+
object-fit: contain;
|
|
134
|
+
}
|
|
135
|
+
.descripcion {
|
|
136
|
+
color: var(--_f-texto-suave);
|
|
137
|
+
line-height: 1.6;
|
|
138
|
+
margin: 1rem 0 1.25rem;
|
|
139
|
+
max-width: 300px;
|
|
140
|
+
}
|
|
141
|
+
.redes {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-wrap: wrap;
|
|
144
|
+
gap: 0.5rem;
|
|
145
|
+
margin: 0;
|
|
146
|
+
padding: 0;
|
|
147
|
+
list-style: none;
|
|
148
|
+
}
|
|
149
|
+
.redes a {
|
|
150
|
+
display: grid;
|
|
151
|
+
place-items: center;
|
|
152
|
+
width: 38px;
|
|
153
|
+
height: 38px;
|
|
154
|
+
border-radius: 999px;
|
|
155
|
+
border: 1px solid var(--_f-borde);
|
|
156
|
+
font-size: 1.25rem;
|
|
157
|
+
transition: background 0.15s, border-color 0.15s;
|
|
158
|
+
}
|
|
159
|
+
.redes a:hover {
|
|
160
|
+
background: var(--_color-primario);
|
|
161
|
+
border-color: var(--_color-primario);
|
|
162
|
+
color: var(--_color-sobre-primario);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.titulo {
|
|
166
|
+
margin: 0 0 0.875rem;
|
|
167
|
+
font-size: 0.9375rem;
|
|
168
|
+
font-weight: 600;
|
|
169
|
+
color: var(--_f-titulos);
|
|
170
|
+
}
|
|
171
|
+
.titulo button {
|
|
172
|
+
all: unset;
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
display: flex;
|
|
175
|
+
width: 100%;
|
|
176
|
+
justify-content: space-between;
|
|
177
|
+
align-items: center;
|
|
178
|
+
padding: 1rem 0.125rem;
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
}
|
|
181
|
+
.titulo button svg {
|
|
182
|
+
color: var(--_f-texto-suave);
|
|
183
|
+
font-size: 1.125rem;
|
|
184
|
+
transition: transform 0.2s;
|
|
185
|
+
}
|
|
186
|
+
.titulo button[aria-expanded='true'] svg {
|
|
187
|
+
transform: rotate(180deg);
|
|
188
|
+
}
|
|
189
|
+
.enlaces {
|
|
190
|
+
list-style: none;
|
|
191
|
+
margin: 0;
|
|
192
|
+
padding: 0;
|
|
193
|
+
display: grid;
|
|
194
|
+
gap: 0.625rem;
|
|
195
|
+
}
|
|
196
|
+
.enlaces a {
|
|
197
|
+
color: var(--_f-texto-suave);
|
|
198
|
+
text-decoration: none;
|
|
199
|
+
}
|
|
200
|
+
.enlaces a:hover {
|
|
201
|
+
color: var(--_f-texto);
|
|
202
|
+
text-decoration: underline;
|
|
203
|
+
text-underline-offset: 3px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.dato {
|
|
207
|
+
display: flex;
|
|
208
|
+
gap: 0.625rem;
|
|
209
|
+
color: var(--_f-texto-suave);
|
|
210
|
+
margin: 0 0 0.75rem;
|
|
211
|
+
line-height: 1.45;
|
|
212
|
+
font-style: normal;
|
|
213
|
+
}
|
|
214
|
+
.dato svg {
|
|
215
|
+
color: var(--_color-primario);
|
|
216
|
+
font-size: 1.125rem;
|
|
217
|
+
margin-top: 1px;
|
|
218
|
+
}
|
|
219
|
+
.dato a {
|
|
220
|
+
text-decoration: none;
|
|
221
|
+
}
|
|
222
|
+
.dato a:hover {
|
|
223
|
+
text-decoration: underline;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.pie {
|
|
227
|
+
display: flex;
|
|
228
|
+
justify-content: space-between;
|
|
229
|
+
align-items: center;
|
|
230
|
+
flex-wrap: wrap;
|
|
231
|
+
gap: 1rem;
|
|
232
|
+
border-top: 1px solid var(--_f-borde);
|
|
233
|
+
margin-top: 2.75rem;
|
|
234
|
+
padding: 1.375rem 0 1.625rem;
|
|
235
|
+
color: var(--_f-texto-suave);
|
|
236
|
+
font-size: 0.8125rem;
|
|
237
|
+
}
|
|
238
|
+
.derechos {
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-wrap: wrap;
|
|
241
|
+
gap: 0.5rem 1rem;
|
|
242
|
+
align-items: center;
|
|
243
|
+
}
|
|
244
|
+
.pagos {
|
|
245
|
+
display: flex;
|
|
246
|
+
gap: 0.375rem;
|
|
247
|
+
flex-wrap: wrap;
|
|
248
|
+
margin: 0;
|
|
249
|
+
padding: 0;
|
|
250
|
+
list-style: none;
|
|
251
|
+
}
|
|
252
|
+
.pago {
|
|
253
|
+
height: 26px;
|
|
254
|
+
min-width: 44px;
|
|
255
|
+
padding: 0 0.5rem;
|
|
256
|
+
border-radius: 5px;
|
|
257
|
+
background: #fff;
|
|
258
|
+
display: inline-flex;
|
|
259
|
+
align-items: center;
|
|
260
|
+
justify-content: center;
|
|
261
|
+
font-weight: 800;
|
|
262
|
+
font-size: 0.6875rem;
|
|
263
|
+
}
|
|
264
|
+
.pago.visa {
|
|
265
|
+
color: #1a1f71;
|
|
266
|
+
font-style: italic;
|
|
267
|
+
font-size: 0.8125rem;
|
|
268
|
+
}
|
|
269
|
+
.pago.amex {
|
|
270
|
+
background: #2e77bc;
|
|
271
|
+
color: #fff;
|
|
272
|
+
}
|
|
273
|
+
.pago.mastercard i {
|
|
274
|
+
width: 15px;
|
|
275
|
+
height: 15px;
|
|
276
|
+
border-radius: 50%;
|
|
277
|
+
background: #eb001b;
|
|
278
|
+
}
|
|
279
|
+
.pago.mastercard i + i {
|
|
280
|
+
background: #f79e1b;
|
|
281
|
+
margin-left: -6px;
|
|
282
|
+
opacity: 0.9;
|
|
283
|
+
}
|
|
284
|
+
.pago.mercado-pago {
|
|
285
|
+
gap: 5px;
|
|
286
|
+
padding: 0 7px 0 5px;
|
|
287
|
+
color: #0a0a6b;
|
|
288
|
+
font-weight: 700;
|
|
289
|
+
font-size: 8.5px;
|
|
290
|
+
line-height: 1;
|
|
291
|
+
text-align: left;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* Celular o contenedor angosto */
|
|
295
|
+
.estrecho .cont {
|
|
296
|
+
padding: 2rem 1rem 0;
|
|
297
|
+
}
|
|
298
|
+
.estrecho .boletin {
|
|
299
|
+
margin-bottom: 1.75rem;
|
|
300
|
+
}
|
|
301
|
+
.estrecho .rejilla {
|
|
302
|
+
grid-template-columns: 1fr;
|
|
303
|
+
gap: 0;
|
|
304
|
+
}
|
|
305
|
+
.estrecho .marca {
|
|
306
|
+
text-align: center;
|
|
307
|
+
padding-bottom: 1.5rem;
|
|
308
|
+
}
|
|
309
|
+
.estrecho .descripcion {
|
|
310
|
+
margin: 0.875rem auto 1.125rem;
|
|
311
|
+
}
|
|
312
|
+
.estrecho .redes {
|
|
313
|
+
justify-content: center;
|
|
314
|
+
}
|
|
315
|
+
.estrecho .grupo {
|
|
316
|
+
border-top: 1px solid var(--_f-borde);
|
|
317
|
+
}
|
|
318
|
+
.estrecho .grupo .titulo {
|
|
319
|
+
margin: 0;
|
|
320
|
+
}
|
|
321
|
+
.estrecho .enlaces {
|
|
322
|
+
padding: 0 0.125rem 1rem;
|
|
323
|
+
}
|
|
324
|
+
.estrecho .enlaces[hidden] {
|
|
325
|
+
display: none;
|
|
326
|
+
}
|
|
327
|
+
.estrecho .contacto {
|
|
328
|
+
border-top: 1px solid var(--_f-borde);
|
|
329
|
+
padding-top: 1.25rem;
|
|
330
|
+
}
|
|
331
|
+
.estrecho .pie {
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
text-align: center;
|
|
334
|
+
margin-top: 1.5rem;
|
|
335
|
+
}
|
|
336
|
+
.estrecho .derechos,
|
|
337
|
+
.estrecho .pagos {
|
|
338
|
+
justify-content: center;
|
|
339
|
+
}
|
|
340
|
+
`,
|
|
341
|
+
]; }
|
|
342
|
+
connectedCallback() {
|
|
343
|
+
super.connectedCallback();
|
|
344
|
+
this.observador = new ResizeObserver(([entrada]) => {
|
|
345
|
+
this.estrecho = entrada.contentRect.width < ANCHO_ESTRECHO;
|
|
346
|
+
});
|
|
347
|
+
this.observador.observe(this);
|
|
348
|
+
}
|
|
349
|
+
disconnectedCallback() {
|
|
350
|
+
super.disconnectedCallback();
|
|
351
|
+
this.observador?.disconnect();
|
|
352
|
+
}
|
|
353
|
+
render() {
|
|
354
|
+
const { direccion, telefono, correo, horario } = this.contacto;
|
|
355
|
+
const conContacto = Boolean(direccion || telefono || correo || horario);
|
|
356
|
+
const derechos = this.textoDerechos || `${this.nombre}. Todos los derechos reservados.`;
|
|
357
|
+
return html `
|
|
358
|
+
<footer class=${this.estrecho ? 'estrecho' : ''}>
|
|
359
|
+
<div class="cont">
|
|
360
|
+
<div class="boletin" ?hidden=${!this.conBoletin}>
|
|
361
|
+
<slot name="boletin" @slotchange=${this.revisarBoletin}></slot>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
<div class="rejilla" style="--_grupos: ${this.grupos.length}">
|
|
365
|
+
<div class="marca">
|
|
366
|
+
${this.renderLogo()}
|
|
367
|
+
${this.descripcion ? html `<p class="descripcion">${this.descripcion}</p>` : nothing}
|
|
368
|
+
${this.redes.length
|
|
369
|
+
? html `<ul class="redes">
|
|
370
|
+
${this.redes.map((r) => this.renderRed(r))}
|
|
371
|
+
</ul>`
|
|
372
|
+
: nothing}
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
${this.grupos.map((g, i) => this.renderGrupo(g, i))}
|
|
376
|
+
|
|
377
|
+
<div class="contacto">
|
|
378
|
+
${conContacto ? html `<h2 class="titulo">${this.tituloContacto}</h2>` : nothing}
|
|
379
|
+
<address>
|
|
380
|
+
${direccion ? html `<p class="dato">${iconoMapPin}<span>${direccion}</span></p>` : nothing}
|
|
381
|
+
${telefono
|
|
382
|
+
? html `<p class="dato">
|
|
383
|
+
${iconoPhone}<a href="tel:${telefono.replace(/[^\d+]/g, '')}">${telefono}</a>
|
|
384
|
+
</p>`
|
|
385
|
+
: nothing}
|
|
386
|
+
${correo ? html `<p class="dato">${iconoMail}<a href="mailto:${correo}">${correo}</a></p>` : nothing}
|
|
387
|
+
${horario ? html `<p class="dato">${iconoClock}<span>${horario}</span></p>` : nothing}
|
|
388
|
+
</address>
|
|
389
|
+
<slot name="extra"></slot>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
<div class="pie">
|
|
394
|
+
<div class="derechos">
|
|
395
|
+
<span>© ${new Date().getFullYear()} ${derechos}</span>
|
|
396
|
+
<slot name="pie"></slot>
|
|
397
|
+
</div>
|
|
398
|
+
${this.metodosPago.length
|
|
399
|
+
? html `<ul class="pagos" aria-label="Métodos de pago">
|
|
400
|
+
${this.metodosPago.map((m) => this.renderPago(m))}
|
|
401
|
+
</ul>`
|
|
402
|
+
: nothing}
|
|
403
|
+
</div>
|
|
404
|
+
</div>
|
|
405
|
+
</footer>
|
|
406
|
+
`;
|
|
407
|
+
}
|
|
408
|
+
renderLogo() {
|
|
409
|
+
if (!this.logo && !this.nombre)
|
|
410
|
+
return nothing;
|
|
411
|
+
const contenido = this.logo
|
|
412
|
+
? html `<img src=${this.logo} alt=${this.logoAlt || this.nombre} />`
|
|
413
|
+
: html `<span>${this.nombre}</span>`;
|
|
414
|
+
const enlace = { texto: this.nombre, href: this.logoHref, id: 'inicio' };
|
|
415
|
+
return html `<a class="logo" href=${this.logoHref} @click=${(e) => this.clic(e, enlace)}>
|
|
416
|
+
${contenido}
|
|
417
|
+
</a>`;
|
|
418
|
+
}
|
|
419
|
+
renderRed({ red, url, etiqueta }) {
|
|
420
|
+
const datos = iconosRedes[red];
|
|
421
|
+
if (!datos)
|
|
422
|
+
return nothing;
|
|
423
|
+
return html `<li>
|
|
424
|
+
<a href=${url} target="_blank" rel="noopener noreferrer" aria-label=${etiqueta || datos.nombre} title=${etiqueta || datos.nombre}>
|
|
425
|
+
${datos.icono}
|
|
426
|
+
</a>
|
|
427
|
+
</li>`;
|
|
428
|
+
}
|
|
429
|
+
renderGrupo(grupo, indice) {
|
|
430
|
+
const abierto = !this.estrecho || this.abiertos.has(indice);
|
|
431
|
+
const idLista = `grupo-${indice}`;
|
|
432
|
+
return html `
|
|
433
|
+
<nav class="grupo" aria-label=${grupo.titulo}>
|
|
434
|
+
<h2 class="titulo">
|
|
435
|
+
${this.estrecho
|
|
436
|
+
? html `<button aria-expanded=${abierto} aria-controls=${idLista} @click=${() => this.alternar(indice)}>
|
|
437
|
+
${grupo.titulo} ${iconoChevronDown}
|
|
438
|
+
</button>`
|
|
439
|
+
: grupo.titulo}
|
|
440
|
+
</h2>
|
|
441
|
+
<ul class="enlaces" id=${idLista} ?hidden=${!abierto}>
|
|
442
|
+
${grupo.enlaces.map((enlace) => html `<li>
|
|
443
|
+
<a href=${enlace.href || '#'} @click=${(e) => this.clic(e, enlace, grupo.titulo)}>
|
|
444
|
+
${enlace.texto}
|
|
445
|
+
</a>
|
|
446
|
+
</li>`)}
|
|
447
|
+
</ul>
|
|
448
|
+
</nav>
|
|
449
|
+
`;
|
|
450
|
+
}
|
|
451
|
+
renderPago(metodo) {
|
|
452
|
+
const datos = metodosPago[metodo];
|
|
453
|
+
if (!datos)
|
|
454
|
+
return nothing;
|
|
455
|
+
return html `<li class="pago ${metodo}" role="img" aria-label=${datos.nombre} title=${datos.nombre}>
|
|
456
|
+
${datos.contenido}
|
|
457
|
+
</li>`;
|
|
458
|
+
}
|
|
459
|
+
alternar(indice) {
|
|
460
|
+
const abiertos = new Set(this.abiertos);
|
|
461
|
+
if (!abiertos.delete(indice))
|
|
462
|
+
abiertos.add(indice);
|
|
463
|
+
this.abiertos = abiertos;
|
|
464
|
+
}
|
|
465
|
+
clic(evento, enlace, grupo) {
|
|
466
|
+
// Ctrl/Cmd/Shift + clic o clic con rueda: que el navegador abra el href.
|
|
467
|
+
if (enlace.href && (evento.ctrlKey || evento.metaKey || evento.shiftKey || evento.button !== 0))
|
|
468
|
+
return;
|
|
469
|
+
evento.preventDefault();
|
|
470
|
+
emitir(this, 'clic-enlace', { enlace, grupo });
|
|
471
|
+
}
|
|
472
|
+
revisarBoletin(evento) {
|
|
473
|
+
this.conBoletin = evento.target.assignedNodes({ flatten: true }).length > 0;
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
__decorate([
|
|
477
|
+
property()
|
|
478
|
+
], LrCustomFooter.prototype, "nombre", void 0);
|
|
479
|
+
__decorate([
|
|
480
|
+
property()
|
|
481
|
+
], LrCustomFooter.prototype, "logo", void 0);
|
|
482
|
+
__decorate([
|
|
483
|
+
property({ attribute: 'logo-alt' })
|
|
484
|
+
], LrCustomFooter.prototype, "logoAlt", void 0);
|
|
485
|
+
__decorate([
|
|
486
|
+
property({ attribute: 'logo-href' })
|
|
487
|
+
], LrCustomFooter.prototype, "logoHref", void 0);
|
|
488
|
+
__decorate([
|
|
489
|
+
property()
|
|
490
|
+
], LrCustomFooter.prototype, "descripcion", void 0);
|
|
491
|
+
__decorate([
|
|
492
|
+
property({ type: Array })
|
|
493
|
+
], LrCustomFooter.prototype, "grupos", void 0);
|
|
494
|
+
__decorate([
|
|
495
|
+
property({ type: Array })
|
|
496
|
+
], LrCustomFooter.prototype, "redes", void 0);
|
|
497
|
+
__decorate([
|
|
498
|
+
property({ type: Object })
|
|
499
|
+
], LrCustomFooter.prototype, "contacto", void 0);
|
|
500
|
+
__decorate([
|
|
501
|
+
property({ type: Array, attribute: 'metodos-pago' })
|
|
502
|
+
], LrCustomFooter.prototype, "metodosPago", void 0);
|
|
503
|
+
__decorate([
|
|
504
|
+
property({ attribute: 'titulo-contacto' })
|
|
505
|
+
], LrCustomFooter.prototype, "tituloContacto", void 0);
|
|
506
|
+
__decorate([
|
|
507
|
+
property({ attribute: 'texto-derechos' })
|
|
508
|
+
], LrCustomFooter.prototype, "textoDerechos", void 0);
|
|
509
|
+
__decorate([
|
|
510
|
+
state()
|
|
511
|
+
], LrCustomFooter.prototype, "estrecho", void 0);
|
|
512
|
+
__decorate([
|
|
513
|
+
state()
|
|
514
|
+
], LrCustomFooter.prototype, "abiertos", void 0);
|
|
515
|
+
__decorate([
|
|
516
|
+
state()
|
|
517
|
+
], LrCustomFooter.prototype, "conBoletin", void 0);
|
|
518
|
+
LrCustomFooter = __decorate([
|
|
519
|
+
customElement('lr-custom-footer')
|
|
520
|
+
], LrCustomFooter);
|
|
521
|
+
export { LrCustomFooter };
|
|
522
|
+
//# sourceMappingURL=custom-footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-footer.js","sourceRoot":"","sources":["../src/custom-footer.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EACL,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,GACP,MAAM,eAAe,CAAC;AAgDvB,MAAM,WAAW,GAAiE;IAChF,QAAQ,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,UAAU,EAAE;IAC3D,SAAS,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,WAAW,EAAE;IAC9D,MAAM,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE;IACrD,QAAQ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;AAEzC;IAAX,QAAQ,EAAE;mDAAkB;AAGF;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;8CAA4B;AAG3B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;6CAAyB;AAGvB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAA+B;AAGJ;IAArD,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;mDAAgC;AAGzC;IAA3C,QAAQ,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;sDAA6B;AAG7B;IAA1C,QAAQ,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;qDAAoB;AAE7C;IAAhB,KAAK,EAAE;gDAA0B;AACjB;IAAhB,KAAK,EAAE;gDAAsC;AAC7B;IAAhB,KAAK,EAAE;kDAA4B;AAnTzB,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAmc1B"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,GACf,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GAQf,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-roa/custom-footer",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Footer genérico y responsive con enlaces que lanzan eventos, redes sociales, contacto y métodos de pago.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"src"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./dist/index.js"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"build": "tsc -b"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@lit-roa/base": "^0.3.0",
|
|
27
|
+
"lit": "^3.3.3"
|
|
28
|
+
},
|
|
29
|
+
"license": "MIT"
|
|
30
|
+
}
|