libreria-astro-lefebvre 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libreria-astro-lefebvre",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Librería de componentes Astro, React y Vue para Lefebvre",
|
|
5
5
|
"author": "Equipo web desarrollo Lefebvre",
|
|
6
6
|
"type": "module",
|
|
@@ -42,3 +42,4 @@
|
|
|
42
42
|
"typescript": "^5.8.3"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
+
|
|
@@ -134,6 +134,14 @@ export const metadata: ComponentMetadata = {
|
|
|
134
134
|
label: 'ID de documento en BI (opcional)',
|
|
135
135
|
mandatory: false,
|
|
136
136
|
example_value: ''
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'nomprod',
|
|
140
|
+
type: 'text',
|
|
141
|
+
help: 'Nombre del producto (ebook, whitepaper o documento registrado). No es obligatorio, pero se recomienda usarlo para identificar el producto en el formulario',
|
|
142
|
+
label: 'Nombre del producto (opcional)',
|
|
143
|
+
mandatory: false,
|
|
144
|
+
example_value: ''
|
|
137
145
|
}
|
|
138
146
|
]
|
|
139
147
|
};
|
|
@@ -89,5 +89,13 @@ export const metadata: ComponentMetadata = {
|
|
|
89
89
|
mandatory: false,
|
|
90
90
|
example_value: ''
|
|
91
91
|
},
|
|
92
|
+
{
|
|
93
|
+
name: 'nomprod',
|
|
94
|
+
type: 'text',
|
|
95
|
+
help: 'Nombre del producto (ebook, whitepaper o documento registrado). No es obligatorio, pero se recomienda usarlo para identificar el producto en el formulario',
|
|
96
|
+
label: 'Nombre del producto (opcional)',
|
|
97
|
+
mandatory: false,
|
|
98
|
+
example_value: ''
|
|
99
|
+
},
|
|
92
100
|
]
|
|
93
101
|
};
|
|
@@ -19,6 +19,7 @@ const {
|
|
|
19
19
|
descriptionModal = '',
|
|
20
20
|
lf2FormTitle = '',
|
|
21
21
|
idebook = '',
|
|
22
|
+
nomprod = '',
|
|
22
23
|
|
|
23
24
|
} = Astro.props;
|
|
24
25
|
|
|
@@ -47,7 +48,7 @@ const hasContent = title || description;
|
|
|
47
48
|
<a href={linkBtn} target="_self" class="flex items-center justify-center w-fit mx-auto px-6 py-4 h-12 gap-4 shrink-0 self-stretch rounded-lg border border-[#2134F1] bg-[rgba(255,255,255,0.01)] text-[#2134F1] text-center font-[Inter] text-base font-semibold leading-6 no-underline hover:underline hover:bg-white transition-all duration-300 cursor-pointer shadow-[0_2px_4px_-2px_rgba(0,0,0,0.08),0_4px_8px_-2px_rgba(0,0,0,0.04)]">{txtBtn}</a>
|
|
48
49
|
)}
|
|
49
50
|
{showBtnModal && (
|
|
50
|
-
<Modal_2025_Sagunto buttonText={txtBtnModal} frontColor="#2134F1" backColor="#fffffff" borderColor="#2134F1" imageModal={imageModal} altModal={altModal} titleModal={titleModal} descriptionModal={descriptionModal} lf2FormTitle={lf2FormTitle} idebook={idebook} />
|
|
51
|
+
<Modal_2025_Sagunto buttonText={txtBtnModal} frontColor="#2134F1" backColor="#fffffff" borderColor="#2134F1" imageModal={imageModal} altModal={altModal} titleModal={titleModal} descriptionModal={descriptionModal} lf2FormTitle={lf2FormTitle} idebook={idebook} nomprod={nomprod} />
|
|
51
52
|
)}
|
|
52
53
|
</div>
|
|
53
54
|
</section>
|
|
@@ -95,7 +96,7 @@ const hasContent = title || description;
|
|
|
95
96
|
<a href={linkBtn} target="_self" class="flex items-center justify-center w-fit mx-auto px-6 py-4 h-12 gap-4 shrink-0 self-stretch rounded-lg border border-[#2134F1] bg-[rgba(255,255,255,0.01)] text-[#2134F1] text-center font-[Inter] text-base font-semibold leading-6 no-underline hover:underline hover:bg-white transition-all duration-300 cursor-pointer shadow-[0_2px_4px_-2px_rgba(0,0,0,0.08),0_4px_8px_-2px_rgba(0,0,0,0.04)]">{txtBtn}</a>
|
|
96
97
|
)}
|
|
97
98
|
{showBtnModal && (
|
|
98
|
-
<Modal_2025_Sagunto buttonText={txtBtnModal} frontColor="#2134F1" backColor="#ffffff" borderColor="#2134F1" imageModal={imageModal} altModal={altModal} titleModal={titleModal} descriptionModal={descriptionModal} lf2FormTitle={lf2FormTitle} idebook={idebook} />
|
|
99
|
+
<Modal_2025_Sagunto buttonText={txtBtnModal} frontColor="#2134F1" backColor="#ffffff" borderColor="#2134F1" imageModal={imageModal} altModal={altModal} titleModal={titleModal} descriptionModal={descriptionModal} lf2FormTitle={lf2FormTitle} idebook={idebook} nomprod={nomprod} />
|
|
99
100
|
)}
|
|
100
101
|
</div>
|
|
101
102
|
</section>
|
|
@@ -13,6 +13,7 @@ const {
|
|
|
13
13
|
descriptionModal = '',
|
|
14
14
|
lf2FormTitle = '',
|
|
15
15
|
idebook = '',
|
|
16
|
+
nomprod = '',
|
|
16
17
|
} = Astro.props;
|
|
17
18
|
|
|
18
19
|
const imageModalUrl = extractImageUrl(imageModal);
|
|
@@ -49,7 +50,7 @@ const randomId = Math.floor(Math.random() * 1000);
|
|
|
49
50
|
</div>
|
|
50
51
|
</div>
|
|
51
52
|
|
|
52
|
-
<script is:inline define:vars={{ randomId, lf2FormTitle, idebook }}>
|
|
53
|
+
<script is:inline define:vars={{ randomId, lf2FormTitle, idebook, nomprod }}>
|
|
53
54
|
|
|
54
55
|
document.addEventListener('DOMContentLoaded', () => {
|
|
55
56
|
|
|
@@ -63,7 +64,8 @@ const randomId = Math.floor(Math.random() * 1000);
|
|
|
63
64
|
if (idebook && idebook !== '') {
|
|
64
65
|
configLf2.defaultparameters = {
|
|
65
66
|
'idebook': idebook,
|
|
66
|
-
'codprod': idebook
|
|
67
|
+
'codprod': idebook,
|
|
68
|
+
'nomprod': nomprod,
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
|