libreria-astro-lefebvre 0.0.41 → 0.0.43

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.
@@ -1,56 +1,56 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Contenido_2025_Montevideo',
5
- category: 'Contenido',
6
- name: 'Contenido card con etiqueta Genial 2025',
7
- description: 'Contenido card con imagen y etiqueta para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['contenido', 'card','imagen', 'genial'],
11
- fields: [
12
- {
13
- name: 'title',
14
- type: 'text',
15
- label: 'Texto del título',
16
- mandatory: false,
17
- example_value: 'Elemento con una gran imagen encima'
18
- },
19
- {
20
- name: 'altImage',
21
- type: 'text',
22
- label: 'Texto alternativo de la imagen',
23
- mandatory: false,
24
- example_value: 'Descripción de la imagen'
25
- },
26
- {
27
- name: 'description',
28
- type: 'text',
29
- label: 'Texto de la descripción',
30
- mandatory: false,
31
- example_value: 'Esta es una descripción de ejemplo para el contenido card en Montevideo 2025.'
32
- },
33
- {
34
- name: 'link',
35
- type: 'text',
36
- label: 'Url del enlace',
37
- mandatory: false,
38
- example_value: 'https://lefebvre.es'
39
- },
40
- {
41
- name: 'image',
42
- type: 'text',
43
- label: 'Src de la imagen',
44
- mandatory: false,
45
- example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-16-9.png'
46
- },
47
- {
48
- name: 'tag',
49
- type: 'text',
50
- label: 'Etiqueta del contenido',
51
- mandatory: false,
52
- example_value: 'Lefebvre Preview'
53
- },
54
-
55
- ]
56
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Contenido_2025_Montevideo',
5
+ category: 'Contenido',
6
+ name: 'Contenido card con etiqueta Genial 2025',
7
+ description: 'Contenido card con imagen y etiqueta para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['contenido', 'card','imagen', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Elemento con una gran imagen encima'
18
+ },
19
+ {
20
+ name: 'altImage',
21
+ type: 'text',
22
+ label: 'Texto alternativo de la imagen',
23
+ mandatory: false,
24
+ example_value: 'Descripción de la imagen'
25
+ },
26
+ {
27
+ name: 'description',
28
+ type: 'text',
29
+ label: 'Texto de la descripción',
30
+ mandatory: false,
31
+ example_value: 'Esta es una descripción de ejemplo para el contenido card en Montevideo 2025.'
32
+ },
33
+ {
34
+ name: 'link',
35
+ type: 'text',
36
+ label: 'Url del enlace',
37
+ mandatory: false,
38
+ example_value: 'https://lefebvre.es'
39
+ },
40
+ {
41
+ name: 'image',
42
+ type: 'text',
43
+ label: 'Src de la imagen',
44
+ mandatory: false,
45
+ example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-16-9.png'
46
+ },
47
+ {
48
+ name: 'tag',
49
+ type: 'text',
50
+ label: 'Etiqueta del contenido',
51
+ mandatory: false,
52
+ example_value: 'Lefebvre Preview'
53
+ },
54
+
55
+ ]
56
+ };
@@ -1,56 +1,56 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Formulario_2025_Seul',
5
- category: 'Formulario',
6
- name: 'Formulario Genial 2025',
7
- description: 'Formulario para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['contenido', 'video', 'genial'],
11
- fields: [
12
- {
13
- name: 'title',
14
- type: 'text',
15
- label: 'Texto del título',
16
- mandatory: false,
17
- example_value: 'Pruébalo ya'
18
- },
19
- {
20
- name: 'description',
21
- type: 'text',
22
- label: 'Texto de la descripción',
23
- mandatory: false,
24
- example_value: 'Texto descriptivo del título'
25
- },
26
- {
27
- name: 'imageSrc',
28
- type: 'text',
29
- label: 'Src de la imagen',
30
- mandatory: false,
31
- example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-3-4.png'
32
- },
33
- {
34
- name: 'lf2FormTitle',
35
- type: 'text',
36
- label: 'Título del formulario en LF2',
37
- mandatory: false,
38
- example_value: '27925 Formulario Vamos Más Allá'
39
- },
40
- {
41
- name: 'orientation',
42
- type: 'select',
43
- label: 'Orientación del contenido',
44
- options: ['left', 'right'],
45
- options_labels: ['Izquierda', 'Derecha'],
46
- example_value: 'left'
47
- },
48
- {
49
- name: 'showImage',
50
- type: 'boolean',
51
- label: 'Mostrar imagen',
52
- mandatory: false,
53
- example_value: true
54
- }
55
- ]
56
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Formulario_2025_Seul',
5
+ category: 'Formulario',
6
+ name: 'Formulario Genial 2025',
7
+ description: 'Formulario para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['contenido', 'video', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Pruébalo ya'
18
+ },
19
+ {
20
+ name: 'description',
21
+ type: 'text',
22
+ label: 'Texto de la descripción',
23
+ mandatory: false,
24
+ example_value: 'Texto descriptivo del título'
25
+ },
26
+ {
27
+ name: 'imageSrc',
28
+ type: 'text',
29
+ label: 'Src de la imagen',
30
+ mandatory: false,
31
+ example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-3-4.png'
32
+ },
33
+ {
34
+ name: 'lf2FormTitle',
35
+ type: 'text',
36
+ label: 'Título del formulario en LF2',
37
+ mandatory: false,
38
+ example_value: '27925 Formulario Vamos Más Allá'
39
+ },
40
+ {
41
+ name: 'orientation',
42
+ type: 'select',
43
+ label: 'Orientación del contenido',
44
+ options: ['left', 'right'],
45
+ options_labels: ['Izquierda', 'Derecha'],
46
+ example_value: 'left'
47
+ },
48
+ {
49
+ name: 'showImage',
50
+ type: 'boolean',
51
+ label: 'Mostrar imagen',
52
+ mandatory: false,
53
+ example_value: true
54
+ }
55
+ ]
56
+ };
@@ -1,76 +1,76 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Imagen_2025_Bogota',
5
- category: 'Imagen',
6
- name: 'Imagen Banner Genial 2025',
7
- description: 'Imagen Banner para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['banner', 'imagen', 'genial'],
11
- fields: [
12
- {
13
- name: 'title',
14
- type: 'text',
15
- label: 'Texto del título',
16
- mandatory: false,
17
- example_value: 'Nuevo gato juez del Tribunal Supremo'
18
- },
19
- {
20
- name: 'description',
21
- type: 'text',
22
- label: 'Texto de la descripción',
23
- mandatory: false,
24
- example_value: 'Una justicia más felina: el Tribunal Supremo nombra a su primer gato juez, revolucionando el sistema judicial con su aguda intuición y habilidades para resolver casos.'
25
- },
26
- {
27
- name: 'txtBtn',
28
- type: 'text',
29
- label: 'Label del botón',
30
- mandatory: false,
31
- example_value: 'Juzga con nosotros'
32
- },
33
- {
34
- name: 'linkBtn',
35
- type: 'text',
36
- label: 'Enlace del botón',
37
- mandatory: false,
38
- example_value: 'https://www.ejemplo.com'
39
- },
40
- {
41
- name: 'alt',
42
- type: 'text',
43
- label: 'Texto alternativo del botón',
44
- mandatory: false,
45
- example_value: 'Texto alternativo del botón'
46
- },
47
- {
48
- name: 'src',
49
- type: 'text',
50
- label: 'Src de la imagen',
51
- mandatory: false,
52
- example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-16-9.png'
53
- },
54
- {
55
- name: 'iframeSrc',
56
- type: 'text',
57
- label: 'Src del iframe',
58
- mandatory: false,
59
- example_value: 'https://www.ejemplo.com/video.mp4'
60
- },
61
- {
62
- name: 'showBtn',
63
- type: 'boolean',
64
- label: 'Mostrar botón',
65
- mandatory: false,
66
- example_value: true
67
- },
68
- {
69
- name: 'showDescription',
70
- type: 'boolean',
71
- label: 'Mostrar descripción',
72
- mandatory: false,
73
- example_value: true
74
- }
75
- ]
76
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Imagen_2025_Bogota',
5
+ category: 'Imagen',
6
+ name: 'Imagen Banner Genial 2025',
7
+ description: 'Imagen Banner para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['banner', 'imagen', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Nuevo gato juez del Tribunal Supremo'
18
+ },
19
+ {
20
+ name: 'description',
21
+ type: 'text',
22
+ label: 'Texto de la descripción',
23
+ mandatory: false,
24
+ example_value: 'Una justicia más felina: el Tribunal Supremo nombra a su primer gato juez, revolucionando el sistema judicial con su aguda intuición y habilidades para resolver casos.'
25
+ },
26
+ {
27
+ name: 'txtBtn',
28
+ type: 'text',
29
+ label: 'Label del botón',
30
+ mandatory: false,
31
+ example_value: 'Juzga con nosotros'
32
+ },
33
+ {
34
+ name: 'linkBtn',
35
+ type: 'text',
36
+ label: 'Enlace del botón',
37
+ mandatory: false,
38
+ example_value: 'https://www.ejemplo.com'
39
+ },
40
+ {
41
+ name: 'alt',
42
+ type: 'text',
43
+ label: 'Texto alternativo del botón',
44
+ mandatory: false,
45
+ example_value: 'Texto alternativo del botón'
46
+ },
47
+ {
48
+ name: 'src',
49
+ type: 'text',
50
+ label: 'Src de la imagen',
51
+ mandatory: false,
52
+ example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-16-9.png'
53
+ },
54
+ {
55
+ name: 'iframeSrc',
56
+ type: 'text',
57
+ label: 'Src del iframe',
58
+ mandatory: false,
59
+ example_value: 'https://www.ejemplo.com/video.mp4'
60
+ },
61
+ {
62
+ name: 'showBtn',
63
+ type: 'boolean',
64
+ label: 'Mostrar botón',
65
+ mandatory: false,
66
+ example_value: true
67
+ },
68
+ {
69
+ name: 'showDescription',
70
+ type: 'boolean',
71
+ label: 'Mostrar descripción',
72
+ mandatory: false,
73
+ example_value: true
74
+ }
75
+ ]
76
+ };
@@ -0,0 +1,41 @@
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Imagen_2025_Fukushima',
5
+ category: 'Imagen',
6
+ name: 'Imagen logotipo Cert Genial 2025',
7
+ description: 'Imagen para el directorio de Genial en la corporativa de Lefebvre logotipos certificados',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['imagen', 'genial', 'certificado', 'logo'],
11
+ fields: [
12
+ {
13
+ name: 'image',
14
+ type: 'text',
15
+ label: 'Src de la imagen del logo',
16
+ mandatory: false,
17
+ example_value: 'https://lefebvre.es/genia-l/images/genial/img-iso4.webp'
18
+ },
19
+ {
20
+ name: 'descriptionImage',
21
+ type: 'text',
22
+ label: 'Texto del logotipo',
23
+ mandatory: false,
24
+ example_value: 'Gatitos peludos'
25
+ },
26
+ {
27
+ name: 'link',
28
+ type: 'text',
29
+ label: 'Enlace de la imagen',
30
+ mandatory: false,
31
+ example_value: 'https://lefebvre.es'
32
+ },
33
+ {
34
+ name: 'altImage',
35
+ type: 'text',
36
+ label: 'Texto alternativo de la imagen',
37
+ mandatory: false,
38
+ example_value: 'Texto alternativo del logotipo'
39
+ }
40
+ ]
41
+ };
@@ -1,51 +1,51 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Titulo_2025_Algeciras',
5
- category: 'Título',
6
- name: 'Título Genial 2025',
7
- description: 'Título para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['title', 'genial'],
11
- fields: [
12
- {
13
- name: 'title',
14
- type: 'text',
15
- label: 'Texto del título',
16
- mandatory: false,
17
- example_value: 'Gatos atracadores: la nueva moda felina en puertos'
18
- },
19
- {
20
- name: 'description',
21
- type: 'text',
22
- label: 'Texto de la descripción',
23
- mandatory: false,
24
- example_value: 'Descripción detallada sobre la moda felina en puertos'
25
- },
26
- {
27
- name: 'tipo',
28
- type: 'select',
29
- label: 'Etiqueta del título',
30
- options: ['h1', 'h2', 'h2-mb64', 'h3', 'h3-mb32', 'h4', 'h5', 'h6', 'p'],
31
- options_labels: ['H1', 'H2', 'H2 con margen inferior 64px', 'H3', 'H3 con margen inferior 32px', 'H4', 'H5', 'H6', 'Párrafo'],
32
- example_value: 'h1'
33
- },
34
- {
35
- name: 'flexJustify',
36
- type: 'select',
37
- label: 'Justificación del contenido',
38
- options: ['justify-start', 'justify-center'],
39
- options_labels: ['Izquierda', 'Centro'],
40
- example_value: 'justify-start'
41
- },
42
- {
43
- name: 'descriptionWidth',
44
- type: 'select',
45
- label: 'Ancho de la descripción',
46
- options: ['1/3', '3/5', 'full'],
47
- options_labels: ['1/3', '3/5', 'Completo'],
48
- example_value: '1/3'
49
- }
50
- ]
51
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Titulo_2025_Algeciras',
5
+ category: 'Título',
6
+ name: 'Título Genial 2025',
7
+ description: 'Título para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['title', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Gatos atracadores: la nueva moda felina en puertos'
18
+ },
19
+ {
20
+ name: 'description',
21
+ type: 'text',
22
+ label: 'Texto de la descripción',
23
+ mandatory: false,
24
+ example_value: 'Descripción detallada sobre la moda felina en puertos'
25
+ },
26
+ {
27
+ name: 'tipo',
28
+ type: 'select',
29
+ label: 'Etiqueta del título',
30
+ options: ['h1', 'h2', 'h2-mb64', 'h3', 'h3-mb32', 'h4', 'h5', 'h6', 'p'],
31
+ options_labels: ['H1', 'H2', 'H2 con margen inferior 64px', 'H3', 'H3 con margen inferior 32px', 'H4', 'H5', 'H6', 'Párrafo'],
32
+ example_value: 'h1'
33
+ },
34
+ {
35
+ name: 'flexJustify',
36
+ type: 'select',
37
+ label: 'Justificación del contenido',
38
+ options: ['justify-start', 'justify-center'],
39
+ options_labels: ['Izquierda', 'Centro'],
40
+ example_value: 'justify-start'
41
+ },
42
+ {
43
+ name: 'descriptionWidth',
44
+ type: 'select',
45
+ label: 'Ancho de la descripción',
46
+ options: ['1/3', '3/5', 'full'],
47
+ options_labels: ['1/3', '3/5', 'Completo'],
48
+ example_value: '1/3'
49
+ }
50
+ ]
51
+ };
@@ -1,20 +1,20 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Titulo_2025_Santorini',
5
- category: 'Título',
6
- name: 'Texto azul Genial 2025',
7
- description: 'Texto azul para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['texto', 'genial'],
11
- fields: [
12
- {
13
- name: 'description',
14
- type: 'text',
15
- label: 'Texto de la descripción',
16
- mandatory: false,
17
- example_value: 'Ejemplo de un texto azul llamativo para destacar información importante en la página.'
18
- }
19
- ]
20
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Titulo_2025_Santorini',
5
+ category: 'Título',
6
+ name: 'Texto azul Genial 2025',
7
+ description: 'Texto azul para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['texto', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'description',
14
+ type: 'text',
15
+ label: 'Texto de la descripción',
16
+ mandatory: false,
17
+ example_value: 'Ejemplo de un texto azul llamativo para destacar información importante en la página.'
18
+ }
19
+ ]
20
+ };
@@ -1,34 +1,34 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Video_2025_Polop',
5
- category: 'Contenido',
6
- name: 'Item con vídeo Genial 2025',
7
- description: 'Item con vídeo para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['video', 'genial'],
11
- fields: [
12
- {
13
- name: 'title',
14
- type: 'text',
15
- label: 'Texto del título',
16
- mandatory: false,
17
- example_value: 'Gatos adorables que te alegrarán el día'
18
- },
19
- {
20
- name: 'description',
21
- type: 'text',
22
- label: 'Texto de la descripción',
23
- mandatory: false,
24
- example_value: 'Los gatos son criaturas maravillosas que traen alegría y compañía a nuestras vidas.'
25
- },
26
- {
27
- name: 'iframeSrc',
28
- type: 'text',
29
- label: 'URL del vídeo/iframe',
30
- mandatory: false,
31
- example_value: 'https://lefebvre.es/genia-l/videos/genial/video-trazabilidad.mp4'
32
- }
33
- ]
34
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Video_2025_Polop',
5
+ category: 'Contenido',
6
+ name: 'Item con vídeo Genial 2025',
7
+ description: 'Item con vídeo para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['video', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Gatos adorables que te alegrarán el día'
18
+ },
19
+ {
20
+ name: 'description',
21
+ type: 'text',
22
+ label: 'Texto de la descripción',
23
+ mandatory: false,
24
+ example_value: 'Los gatos son criaturas maravillosas que traen alegría y compañía a nuestras vidas.'
25
+ },
26
+ {
27
+ name: 'iframeSrc',
28
+ type: 'text',
29
+ label: 'URL del vídeo/iframe',
30
+ mandatory: false,
31
+ example_value: 'https://lefebvre.es/genia-l/videos/genial/video-trazabilidad.mp4'
32
+ }
33
+ ]
34
+ };
@@ -115,6 +115,7 @@ const randomId = Math.floor(Math.random() * 1000);
115
115
  if (modalPopup) {
116
116
  apiManager.pintarFormularioAutogestionado(configLf2);
117
117
  modalPopup.classList.remove('hidden');
118
+ document.body.style.overflow = 'hidden';
118
119
  if (parentElement) {
119
120
  parentElement.classList.add('blur-sm');
120
121
  }
@@ -123,6 +124,7 @@ const randomId = Math.floor(Math.random() * 1000);
123
124
  if (closeBtn) {
124
125
  closeBtn.onclick = () => {
125
126
  modalPopup.classList.add('hidden');
127
+ document.body.style.overflow = '';
126
128
  if (parentElement) {
127
129
  parentElement.classList.remove('blur-sm');
128
130
  }