desy-html 8.2.0 → 8.2.1
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/docs/index.html
CHANGED
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
|
|
38
38
|
<h2>Changelog (English)</h2>
|
|
39
39
|
<p>What's new in the latest version of desy-html</p>
|
|
40
|
+
<h3>v.8.2.1</h3>
|
|
41
|
+
<ul class="text-sm">
|
|
42
|
+
<li>Minor fixes.</li>
|
|
43
|
+
</ul>
|
|
40
44
|
<h3>v.8.2.0</h3>
|
|
41
45
|
<ul class="text-sm">
|
|
42
46
|
<li>Added global function to select an item in Menu vertical.</li>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desy-html",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "desy-html contains the code you need to start building a user interface for Gobierno de Aragón government webapps.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Desy (SDA Servicios Digitales de Aragón)",
|
|
@@ -34,7 +34,7 @@ export function MenuVertical(aria) {
|
|
|
34
34
|
|
|
35
35
|
aria.MenuVertical.prototype.wrapActiveElement = function (elementActive) {
|
|
36
36
|
const getText = elementActive.textContent;
|
|
37
|
-
const strongElement = `<strong
|
|
37
|
+
const strongElement = `<strong>${getText}</strong>`;
|
|
38
38
|
elementActive.innerHTML = strongElement;
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ export function MenuVertical(aria) {
|
|
|
50
50
|
let getId = elem.id
|
|
51
51
|
if(getId == elementActive){
|
|
52
52
|
const getText = elem.textContent;
|
|
53
|
-
const strongElement = `<strong
|
|
53
|
+
const strongElement = `<strong>${getText}</strong>`;
|
|
54
54
|
elem.innerHTML = strongElement;
|
|
55
55
|
} else {
|
|
56
56
|
const getText = elem.textContent;
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "con item activo",
|
|
51
|
+
"description": 'Añade <code>active: true</code> a un item para mostrarlo activo inicialmente. También puedes usar con javascript la función global <code>activateItemMenuVertical(elementMenu, idItemSeleccionado)</code> para seleccionar un item de un menú, usando sus ids. Ej: Abre la consola del navegador y escribe <code>activateItemMenuVertical(document.getElementById("mi-menu"), "active-item-3")</code> para desactivar el item actual de este ejemplo y activar el tercer item.',
|
|
51
52
|
"data": {
|
|
52
53
|
"idPrefix": "active-item",
|
|
53
54
|
"items": [
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
}
|
|
67
68
|
],
|
|
68
69
|
"attributes": {
|
|
70
|
+
"id": "mi-menu",
|
|
69
71
|
"aria-label": "Menu vertical"
|
|
70
72
|
}
|
|
71
73
|
}
|