desy-html 11.2.0 → 12.0.0
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/_global.foot.njk +1 -1
- package/docs/_macro.example-render.njk +62 -18
- package/docs/ds/_ds.section.textos.njk +1 -1
- package/docs/index.html +10 -0
- package/docs/pagina-prueba.html +2 -2
- package/package.json +2 -2
- package/src/css/component.text.css +0 -1
- package/src/js/aria/utils.js +80 -15
- package/src/js/desy-html.js +239 -196
- package/src/js/filters/filter-caller.js +4 -2
- package/src/js/filters/filter-escape-ltgt.js +7 -0
- package/src/js/filters/filter-quotes.js +50 -0
- package/src/js/filters/filter-version.js +8 -0
- package/src/js/filters/index.js +7 -1
- package/src/templates/components/accordion/_examples.accordion.njk +107 -107
- package/src/templates/components/accordion/_template.accordion.njk +5 -5
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +119 -119
- package/src/templates/components/accordion-history/_template.accordion-history.njk +11 -11
- package/src/templates/components/alert/_examples.alert.njk +2 -2
- package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +4 -4
- package/src/templates/components/breadcrumbs/_template.breadcrumbs.njk +4 -4
- package/src/templates/components/button/_examples.button.njk +19 -19
- package/src/templates/components/button/_template.button.njk +2 -2
- package/src/templates/components/button-loader/_examples.button-loader.njk +17 -17
- package/src/templates/components/button-loader/_template.button-loader.njk +2 -2
- package/src/templates/components/card/_examples.card.njk +3 -3
- package/src/templates/components/card/_template.card.njk +4 -4
- package/src/templates/components/character-count/_examples.character-count.njk +2 -2
- package/src/templates/components/checkboxes/_examples.checkboxes.njk +6 -6
- package/src/templates/components/checkboxes/_template.checkboxes.njk +2 -2
- package/src/templates/components/collapsible/_examples.collapsible.njk +4 -4
- package/src/templates/components/collapsible/_template.collapsible.njk +1 -1
- package/src/templates/components/date-input/_template.date-input.njk +1 -1
- package/src/templates/components/datepicker/_examples.datepicker.njk +45 -62
- package/src/templates/components/datepicker/_styles.datepicker.css +4 -0
- package/src/templates/components/datepicker/_template.datepicker.njk +10 -2
- package/src/templates/components/description-list/_examples.description-list.njk +3 -3
- package/src/templates/components/description-list/_template.description-list.njk +2 -2
- package/src/templates/components/details/_examples.details.njk +3 -3
- package/src/templates/components/details/_template.details.njk +1 -1
- package/src/templates/components/dialog/_examples.dialog.njk +4 -4
- package/src/templates/components/dropdown/_examples.dropdown.njk +31 -17
- package/src/templates/components/dropdown/_template.dropdown.njk +1 -1
- package/src/templates/components/error-message/_examples.error-message.njk +1 -1
- package/src/templates/components/error-message/_template.error-message.njk +1 -1
- package/src/templates/components/error-summary/_template.error-summary.njk +2 -2
- package/src/templates/components/fieldset/_examples.fieldset.njk +3 -3
- package/src/templates/components/fieldset/_template.fieldset.njk +7 -7
- package/src/templates/components/footer/_examples.footer.njk +32 -32
- package/src/templates/components/footer/_template.footer.njk +6 -6
- package/src/templates/components/header/_examples.header.njk +14 -8
- package/src/templates/components/header/_template.header.header__navigation.njk +2 -2
- package/src/templates/components/header/_template.header.header__offcanvasButton.njk +1 -1
- package/src/templates/components/header/_template.header.header__subnav.njk +1 -1
- package/src/templates/components/header/_template.header.njk +2 -2
- package/src/templates/components/header-advanced/_examples.header-advanced.njk +14 -8
- package/src/templates/components/header-advanced/_template.header-advanced.njk +3 -3
- package/src/templates/components/header-mini/_examples.header-mini.njk +3 -3
- package/src/templates/components/header-mini/_template.header-mini.njk +2 -2
- package/src/templates/components/hint/_examples.hint.njk +1 -1
- package/src/templates/components/hint/_template.hint.njk +1 -1
- package/src/templates/components/input/_examples.input.njk +7 -7
- package/src/templates/components/input-group/_examples.input-group.njk +1 -1
- package/src/templates/components/input-group/_template.input-group.njk +1 -1
- package/src/templates/components/item/_examples.item.njk +23 -23
- package/src/templates/components/item/_template.item.njk +9 -9
- package/src/templates/components/label/_examples.label.njk +2 -2
- package/src/templates/components/label/_template.label.njk +1 -1
- package/src/templates/components/links-list/_examples.links-list.njk +29 -32
- package/src/templates/components/links-list/_template.links-list.njk +11 -11
- package/src/templates/components/listbox/_examples.listbox.njk +16 -16
- package/src/templates/components/listbox/_template.listbox.njk +3 -3
- package/src/templates/components/media-object/_examples.media-object.njk +5 -5
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +16 -16
- package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +2 -2
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +6 -6
- package/src/templates/components/menu-navigation/_template.menu-navigation.njk +4 -4
- package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +8 -8
- package/src/templates/components/menu-vertical/_template.menu-vertical.njk +9 -9
- package/src/templates/components/menubar/_examples.menubar.njk +16 -16
- package/src/templates/components/menubar/_template.menubar.njk +7 -7
- package/src/templates/components/modal/_examples.modal.njk +18 -18
- package/src/templates/components/modal/_template.modal.njk +8 -8
- package/src/templates/components/nav/_examples.nav.njk +7 -7
- package/src/templates/components/nav/_template.nav.njk +2 -2
- package/src/templates/components/notification/_examples.notification.njk +9 -9
- package/src/templates/components/notification/_template.notification.njk +11 -11
- package/src/templates/components/pagination/_examples.pagination.njk +6 -6
- package/src/templates/components/pagination/_template.pagination.njk +3 -3
- package/src/templates/components/pill/_examples.pill.njk +8 -8
- package/src/templates/components/pill/_template.pill.njk +3 -3
- package/src/templates/components/radios/_examples.radios.njk +2 -2
- package/src/templates/components/radios/_template.radios.njk +1 -1
- package/src/templates/components/select/_examples.select.njk +1 -1
- package/src/templates/components/skip-link/_examples.skip-link.njk +1 -1
- package/src/templates/components/skip-link/_template.skip-link.njk +1 -1
- package/src/templates/components/status/_examples.status.njk +1 -1
- package/src/templates/components/status/_template.status.njk +1 -1
- package/src/templates/components/status-item/_examples.status-item.njk +15 -15
- package/src/templates/components/status-item/_template.status-item.njk +3 -3
- package/src/templates/components/table/_examples.table.njk +3 -3
- package/src/templates/components/table/_template.table.njk +2 -2
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +7 -7
- package/src/templates/components/table-advanced/_template.table-advanced.njk +5 -5
- package/src/templates/components/tabs/_examples.tabs.njk +19 -19
- package/src/templates/components/tabs/_styles.tabs.css +2 -2
- package/src/templates/components/tabs/_template.tabs.njk +7 -7
- package/src/templates/components/textarea/_examples.textarea.njk +2 -2
- package/src/templates/components/toggle/_examples.toggle.njk +29 -29
- package/src/templates/components/toggle/_template.toggle.njk +2 -2
- package/src/templates/components/tooltip/_examples.tooltip.njk +11 -11
- package/src/templates/components/tooltip/_template.tooltip.njk +3 -3
- package/src/templates/components/tree/_examples.tree.njk +12 -60
- package/src/templates/components/tree/_template.tree.njk +4 -4
- package/src/templates/includes/_test-include.njk +2 -2
- package/src/templates/pages/_page.footer.njk +1 -1
- package/src/templates/pages/_template.logged-selector-subheader.njk +1 -1
|
@@ -14,7 +14,7 @@ text-neutral-dark {{ params.classes if params.classes }}"
|
|
|
14
14
|
{% if item.text or item.html %}
|
|
15
15
|
<li class="mb-xs">
|
|
16
16
|
<a class="c-link font-semibold" href="{{ item.href }}"{% for attribute, value in item.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
17
|
-
{{ item.html | safe if item.html else item.text }}
|
|
17
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
18
18
|
</a>
|
|
19
19
|
</li>
|
|
20
20
|
{% endif %}
|
|
@@ -36,7 +36,7 @@ text-neutral-dark {{ params.classes if params.classes }}"
|
|
|
36
36
|
{% if item.text or item.html %}
|
|
37
37
|
<li class="mb-sm mr-base">
|
|
38
38
|
<a class="c-link font-semibold" href="{{ item.href }}"{% for attribute, value in item.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
39
|
-
{{ item.html | safe if item.html else item.text }}
|
|
39
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
40
40
|
</a>
|
|
41
41
|
</li>
|
|
42
42
|
{% endif %}
|
|
@@ -45,14 +45,14 @@ text-neutral-dark {{ params.classes if params.classes }}"
|
|
|
45
45
|
{% endif %}
|
|
46
46
|
{% if params.meta.text or params.meta.html %}
|
|
47
47
|
<div class="mb-sm">
|
|
48
|
-
<p>{{ params.meta.html | safe if params.meta.html else params.meta.text }}</p>
|
|
48
|
+
<p>{{ params.meta.html | filterquotes | safe if params.meta.html else params.meta.text }}</p>
|
|
49
49
|
</div>
|
|
50
50
|
{% endif %}
|
|
51
51
|
{% endif %}
|
|
52
52
|
{% if params.description %}
|
|
53
53
|
<h2 class="sr-only">{{ params.description.visuallyHiddenTitle | default("Acerca de") }}</h2>
|
|
54
54
|
{% if params.description.text or params.description.html %}
|
|
55
|
-
{{ params.description.html | safe if params.description.html else params.description.text }}
|
|
55
|
+
{{ params.description.html | filterquotes | safe if params.description.html else params.description.text }}
|
|
56
56
|
{% endif %}
|
|
57
57
|
{% else %}
|
|
58
58
|
<div>
|
|
@@ -81,7 +81,7 @@ text-neutral-dark {{ params.classes if params.classes }}"
|
|
|
81
81
|
{% if not params.noLogo %}
|
|
82
82
|
<div {%- if params.logo.containerClasses %} class="{{ params.logo.containerClasses }}"{% endif %}>
|
|
83
83
|
{% if params.logo.html %}
|
|
84
|
-
{{ params.logo.html | safe }}
|
|
84
|
+
{{ params.logo.html | filterquotes | safe }}
|
|
85
85
|
{% else %}
|
|
86
86
|
<p><a href="{%- if params.urlFeder or params.logo.url %}{%- if params.logo.url %} {{ params.logo.url }} {%- else -%} {{ params.urlFeder }}{% endif %} {%- else -%} https://www.aragon.es/-/fondos-europeos-aragon {% endif %}" class="inline-block text-sm c-link no-underline" title="Más información sobre los Fondos Europeos">
|
|
87
87
|
{% if params.logo.type == 'UE' %}
|
|
@@ -104,7 +104,7 @@ text-neutral-dark {{ params.classes if params.classes }}"
|
|
|
104
104
|
{% if params.icon %}
|
|
105
105
|
<div class="{% if params.icon.containerClasses %}{{ params.icon.containerClasses }}{% else %}flex-1{% endif %}">
|
|
106
106
|
{% if params.icon.html %}
|
|
107
|
-
{{ params.icon.html | safe }}
|
|
107
|
+
{{ params.icon.html | filterquotes | safe }}
|
|
108
108
|
{% endif %}
|
|
109
109
|
</div>
|
|
110
110
|
{% endif %}
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
{% set examples = [
|
|
201
201
|
{
|
|
202
202
|
"name": "por defecto",
|
|
203
|
-
"description":
|
|
203
|
+
"description": "El menú por defecto de las aplicaciones de la administración digital tiene un logo que enlaza a la página de inicio y un menu principal de navegación. El menu de navegación se oculta en mobile si no se añaden clases a navigation. El logotipo es simple, sin letras, si la app está diseñada para funcionarios. Junto al logo hay un texto que da nombre a la app en la que estamos. Puedes usar con javascript la función global <code>activateItemHeaderNavigation(elementMenu, idItemSeleccionado)</code> para seleccionar un item de un menú, usando sus ids. Ej: Abre la consola del navegador y escribe <code>activateItemHeaderNavigation('header-nav-item', 'page-catalogo')</code> para desactivar el item actual y activar el tercer item del header de la página.",
|
|
204
204
|
"data": {
|
|
205
205
|
"homepageUrl": "/",
|
|
206
206
|
"idPrefix": "mi-menu",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"name": "con navegación personalizada",
|
|
238
|
-
"description":
|
|
238
|
+
"description": "Tras nuestro menú de navegación tenemos <code>customNavigationHtml</code> una zona anidable para poder añadir una navegación personalizada.",
|
|
239
239
|
"data": {
|
|
240
240
|
"homepageUrl": "/",
|
|
241
241
|
"mobileTitle": {
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"subnav": {
|
|
245
245
|
"text": "Gestor de expedientes"
|
|
246
246
|
},
|
|
247
|
-
"customNavigationHtml":
|
|
247
|
+
"customNavigationHtml": "<div class='flex flex-wrap flex-1 gap-base'>"+ navigationCustom | safe + "</div>"
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
{
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"subnav": {
|
|
259
259
|
"text": "Gestor de expedientes"
|
|
260
260
|
},
|
|
261
|
-
"customNavigationHtml":
|
|
261
|
+
"customNavigationHtml": "<div class='relative flex justify-end items-center flex-1 gap-base'><div class='absolute -top-3 right-0 text-black'><a href='#'><svg class='w-5 h-5' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' aria-label='Notificaciones'><path d='M7.25 12.5h-1.5a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5Z' fill='currentColor' transform='scale(3.42857)'/><g transform='scale(3.42857)'><circle cx='10.5' cy='2.5' r='2.5' fill='currentColor'/><path d='M11.5 10a1 1 0 0 1-1-1V6.74a.25.25 0 0 0-.24-.25 4 4 0 0 1-3.76-4 3.43 3.43 0 0 1 .11-.86.12.12 0 0 0 0-.1.15.15 0 0 0-.09 0 4 4 0 0 0-4 4V9a1 1 0 0 1-1 1 .5.5 0 0 0 0 1h10a.5.5 0 0 0 0-1Z' fill='currentColor'/></g></svg></a></div></div>"
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
264
|
{
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"name": "logo expandido",
|
|
308
|
-
"description":
|
|
308
|
+
"description": "Con el parámetro <code>'expandedLogo': true</code> se muestra el logo del Gobierno de Aragón en formato expandido. Utilizar este logotipo en apps que estén dirigidas al ciudadano y también antes de hacer login en todas las apps.",
|
|
309
309
|
"data": {
|
|
310
310
|
"homepageUrl": "/",
|
|
311
311
|
"expandedLogo": true
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"text": "Gestor de expedientes"
|
|
430
430
|
},
|
|
431
431
|
"dropdown": {
|
|
432
|
-
"html":
|
|
432
|
+
"html": "<span class='block text-right'>Marta Pérez <br>(Administración)</span>",
|
|
433
433
|
"items": [
|
|
434
434
|
{
|
|
435
435
|
"text": "Perfil",
|
|
@@ -453,8 +453,14 @@
|
|
|
453
453
|
},
|
|
454
454
|
"dropdown": {
|
|
455
455
|
"text": "Marta Pérez",
|
|
456
|
-
"contentHtml":
|
|
457
|
-
"classesTooltip": "w-64 max-h-48 overflow-y-auto"
|
|
456
|
+
"contentHtml": "<div class='p-base'><dl><dt class='text-base'>Marta Pérez</dt><dd class='text-sm text-neutral-dark'>Departamento de Ciencia, Universidad y Sociedad del Conocimiento</dd></dl></div>",
|
|
457
|
+
"classesTooltip": "w-64 max-h-48 overflow-y-auto",
|
|
458
|
+
"attributes": {
|
|
459
|
+
"data-aria-haspopup": "dialog",
|
|
460
|
+
"data-role": "dialog",
|
|
461
|
+
"data-aria-modal": "false",
|
|
462
|
+
"data-aria-label": "Información adicional"
|
|
463
|
+
}
|
|
458
464
|
}
|
|
459
465
|
}
|
|
460
466
|
},
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
{% endif %}
|
|
16
16
|
{% if item.active %}
|
|
17
17
|
|
|
18
|
-
<a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="max-w-40 lg:max-w-xs px-3 py-4 text-sm text-black hover:underline truncate focus:outline-none focus:ring-4 focus:ring-inset focus:ring-black focus:bg-warning-base" aria-current="page" {%- if item.target %} target="{{ item.target }}"{% endif %}><strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong></a>
|
|
18
|
+
<a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="max-w-40 lg:max-w-xs px-3 py-4 text-sm text-black hover:underline truncate focus:outline-none focus:ring-4 focus:ring-inset focus:ring-black focus:bg-warning-base" aria-current="page" {%- if item.target %} target="{{ item.target }}"{% endif %}><strong class="font-bold">{{ item.html | filterquotes | safe if item.html else item.text }}</strong></a>
|
|
19
19
|
{% else %}
|
|
20
20
|
|
|
21
|
-
<a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="max-w-40 lg:max-w-xs px-3 py-4 text-sm text-black hover:underline truncate focus:outline-none focus:ring-4 focus:ring-inset focus:ring-black focus:bg-warning-base {%- if item.disabled %} opacity-50 pointer-events-none{% endif -%}" {%- if item.disabled %} disabled="disabled" aria-disabled="true" tabindex="-1"{% endif -%} {%- if item.target %} target="{{ item.target }}"{% endif %}>{{ item.html | safe if item.html else item.text }}</a>
|
|
21
|
+
<a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="max-w-40 lg:max-w-xs px-3 py-4 text-sm text-black hover:underline truncate focus:outline-none focus:ring-4 focus:ring-inset focus:ring-black focus:bg-warning-base {%- if item.disabled %} opacity-50 pointer-events-none{% endif -%}" {%- if item.disabled %} disabled="disabled" aria-disabled="true" tabindex="-1"{% endif -%} {%- if item.target %} target="{{ item.target }}"{% endif %}>{{ item.html | filterquotes | safe if item.html else item.text }}</a>
|
|
22
22
|
{% endif %}
|
|
23
23
|
</li>
|
|
24
24
|
{% endif %}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
onclick="openDialog('header-offcanvas', this)"
|
|
6
6
|
tabindex="0"
|
|
7
7
|
class="inline-flex items-center px-3 py-4 text-sm text-black focus:outline-none focus:shadow-outline-black focus:bg-warning-base" aria-haspopup="true">
|
|
8
|
-
<span id="header-offcanvas-button-text" class="inline-block align-middle text-right">{{ params.html | safe if params.html else params.text }}</span> <svg role="img" aria-label="Cerrado" class="inline-block align-middle" viewBox="0 0 96 96" fill="currentColor" width="1.5em" height="1.5em"><g><path d="M46.71 58.037a1.823 1.823 0 002.581 0L62.048 45.28a1.823 1.823 0 00-1.29-3.113H35.243a1.823 1.823 0 00-1.291 3.113z"/></g></svg>
|
|
8
|
+
<span id="header-offcanvas-button-text" class="inline-block align-middle text-right">{{ params.html | filterquotes | safe if params.html else params.text }}</span> <svg role="img" aria-label="Cerrado" class="inline-block align-middle" viewBox="0 0 96 96" fill="currentColor" width="1.5em" height="1.5em"><g><path d="M46.71 58.037a1.823 1.823 0 002.581 0L62.048 45.28a1.823 1.823 0 00-1.29-3.113H35.243a1.823 1.823 0 00-1.291 3.113z"/></g></svg>
|
|
9
9
|
</button>
|
|
10
10
|
</div>
|
|
11
11
|
<!-- /header__offcanvasButton -->
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
{% else %}
|
|
29
29
|
<p class="hidden lg:inline-block align-middle px-3 py-4 border-r border-l border-neutral-base text-sm text-black">
|
|
30
30
|
<span class="sr-only">Aplicación actual: </span>
|
|
31
|
-
{{ params.html | safe if params.html else params.text }}
|
|
31
|
+
{{ params.html | filterquotes | safe if params.html else params.text }}
|
|
32
32
|
</p>
|
|
33
33
|
{% endif %}
|
|
34
34
|
<!-- /header__subnav -->
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
{% if params.mobileTitle %}
|
|
64
64
|
<div class="{{ params.mobileTitle.classes if params.mobileTitle.classes else 'inline-block lg:hidden max-w-full' }}" {%- for attribute, value in params.mobileTitle.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
|
65
65
|
{% if params.mobileTitle.html %}
|
|
66
|
-
{{ params.mobileTitle.html | safe }}
|
|
66
|
+
{{ params.mobileTitle.html | filterquotes | safe }}
|
|
67
67
|
{% else %}
|
|
68
68
|
<p class="align-middle py-4 text-sm text-black overflow-hidden">{{ params.mobileTitle.text }}</p>
|
|
69
69
|
{% endif %}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"attributes": params.dropdown.attributes
|
|
95
95
|
}) %}
|
|
96
96
|
{% if params.dropdown.contentHtml %}
|
|
97
|
-
{{ params.dropdown.contentHtml | safe }}
|
|
97
|
+
{{ params.dropdown.contentHtml | filterquotes | safe }}
|
|
98
98
|
{% else %}
|
|
99
99
|
{{ componentNav({
|
|
100
100
|
isMenu: true,
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
{% set examples = [
|
|
624
624
|
{
|
|
625
625
|
"name": "por defecto",
|
|
626
|
-
"description":
|
|
626
|
+
"description": "Esta es la cabecera por defecto para sitios web de submarcas del Gobierno de Aragón. Tiene un título que enlaza a la página de inicio. Puedes usar con javascript la función global <code>activateItemHeaderNavigation(elementMenu, idItemSeleccionado)</code> para seleccionar un item de un menú, usando sus ids. Ej: Abre la consola del navegador y escribe <code>activateItemHeaderNavigation('header-nav-item', 'page-catalogo')</code> para desactivar el item actual y activar el tercer item del header de la página.",
|
|
627
627
|
"data": {
|
|
628
628
|
"title": {
|
|
629
629
|
"homepageUrl": "/",
|
|
@@ -851,7 +851,7 @@ Gobierno de Aragón."
|
|
|
851
851
|
"homepageUrl": "/",
|
|
852
852
|
"text": "Titulo de cabecera"
|
|
853
853
|
},
|
|
854
|
-
"customNavigationHtml":
|
|
854
|
+
"customNavigationHtml": "<div class='flex flex-wrap flex-1 gap-base'>"+ navigationCustom | safe + "</div>"
|
|
855
855
|
}
|
|
856
856
|
},
|
|
857
857
|
{
|
|
@@ -862,7 +862,7 @@ Gobierno de Aragón."
|
|
|
862
862
|
"homepageUrl": "/",
|
|
863
863
|
"text": "Titulo de cabecera"
|
|
864
864
|
},
|
|
865
|
-
"customNavigationHtml":
|
|
865
|
+
"customNavigationHtml": "<div class='relative flex justify-end items-center flex-1 gap-base'><div class='absolute -top-5 right-0 text-black'><a href='#'><span class='block p-sm'><svg class='w-5 h-5' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' aria-label='Notificaciones' role='img'><path d='M7.25 12.5h-1.5a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5Z' fill='currentColor' transform='scale(3.42857)'/><g transform='scale(3.42857)'><circle cx='10.5' cy='2.5' r='2.5' fill='currentColor'/><path d='M11.5 10a1 1 0 0 1-1-1V6.74a.25.25 0 0 0-.24-.25 4 4 0 0 1-3.76-4 3.43 3.43 0 0 1 .11-.86.12.12 0 0 0 0-.1.15.15 0 0 0-.09 0 4 4 0 0 0-4 4V9a1 1 0 0 1-1 1 .5.5 0 0 0 0 1h10a.5.5 0 0 0 0-1Z' fill='currentColor'/></g></svg></span></a></div></div>"
|
|
866
866
|
}
|
|
867
867
|
},
|
|
868
868
|
{
|
|
@@ -952,7 +952,7 @@ Gobierno de Aragón."
|
|
|
952
952
|
"text": "Titulo de cabecera"
|
|
953
953
|
},
|
|
954
954
|
"dropdown": {
|
|
955
|
-
"html":
|
|
955
|
+
"html": "<span class='block text-right'>Marta Pérez <br>(Administración)</span>",
|
|
956
956
|
"items": [
|
|
957
957
|
{
|
|
958
958
|
"text": "Perfil",
|
|
@@ -976,8 +976,14 @@ Gobierno de Aragón."
|
|
|
976
976
|
},
|
|
977
977
|
"dropdown": {
|
|
978
978
|
"text": "Marta Pérez",
|
|
979
|
-
"contentHtml":
|
|
980
|
-
"classesTooltip": "w-64 max-h-48 overflow-y-auto"
|
|
979
|
+
"contentHtml": "<div class='p-base'><dl><dt class='text-base'>Marta Pérez</dt><dd class='text-sm text-neutral-dark'>Departamento de Ciencia, Universidad y Sociedad del Conocimiento</dd></dl></div>",
|
|
980
|
+
"classesTooltip": "w-64 max-h-48 overflow-y-auto",
|
|
981
|
+
"attributes": {
|
|
982
|
+
"data-aria-haspopup": "dialog",
|
|
983
|
+
"data-role": "dialog",
|
|
984
|
+
"data-aria-modal": "false",
|
|
985
|
+
"data-aria-label": "Información adicional"
|
|
986
|
+
}
|
|
981
987
|
}
|
|
982
988
|
}
|
|
983
989
|
},
|
|
@@ -986,14 +992,14 @@ Gobierno de Aragón."
|
|
|
986
992
|
"description": "Se permite añadir ciertos elementos informativos y funcionales en la derecha de la cabecera. Este ejemplo con buscador en área superior, logo UE, menu de navegación, dropdown en anchuras grandes y menu mobile en pequeñas.",
|
|
987
993
|
"data": {
|
|
988
994
|
"sub": {
|
|
989
|
-
"customNavigationHtml":
|
|
995
|
+
"customNavigationHtml": "<div class='hidden lg:grid grid-cols-2 lg:grid-cols-4 gap-xl h-full'><div class='col-span-2 lg:col-span-3'></div><div class='col-span-2 lg:col-span-1 flex items-center justify-end'>"+ buscador | safe +"</div></div>",
|
|
990
996
|
"classes": "hidden lg:block relative -top-32 h-0"
|
|
991
997
|
},
|
|
992
998
|
"title": {
|
|
993
999
|
"homepageUrl": "/",
|
|
994
1000
|
"text": "Título de cabecera"
|
|
995
1001
|
},
|
|
996
|
-
"customNavigationHtml":
|
|
1002
|
+
"customNavigationHtml": "<div class='flex flex-wrap flex-1 gap-base'>"+ navigationCustomAragon | safe + "</div>",
|
|
997
1003
|
"dropdown": {
|
|
998
1004
|
"text": "Tamaño de texto",
|
|
999
1005
|
"items": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<div class="flex lg:flex-1">
|
|
55
55
|
<div>
|
|
56
56
|
{% set headingAttributes %}class="{% if params.title.classes %}{{ params.title.classes }}{% else %} text-2xl lg:text-3xl font-bold{% endif %}"{% endset %}
|
|
57
|
-
{% set headingContent %}<a href="{{ params.title.homepageUrl | default('/') }}" class="hover:underline focus:outline-none focus:ring-4 focus:ring-inset focus:ring-black focus:bg-warning-base focus:text-black" title="Ir a la página de inicio">{{ params.title.html | safe if params.title.html else params.title.text }}</a>{% endset %}
|
|
57
|
+
{% set headingContent %}<a href="{{ params.title.homepageUrl | default('/') }}" class="hover:underline focus:outline-none focus:ring-4 focus:ring-inset focus:ring-black focus:bg-warning-base focus:text-black" title="Ir a la página de inicio">{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}</a>{% endset %}
|
|
58
58
|
{% if params.headingLevel == "1" %}
|
|
59
59
|
<h1 {{ headingAttributes | safe }}>{{ headingContent | safe }}</h1>
|
|
60
60
|
{% elseif params.headingLevel == "2" %}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<h2 {{ headingAttributes | safe }}>{{ headingContent | safe }}</h2>
|
|
70
70
|
{% endif %}
|
|
71
71
|
{% if params.subtitle %}
|
|
72
|
-
<p class="{% if params.subtitle.classes %}{{ params.subtitle.classes }}{% else -%} text-sm leading-5 lg:text-base lg:leading-6{% endif %}">{{ params.subtitle.html | safe if params.subtitle.html else params.subtitle.text }}</p>
|
|
72
|
+
<p class="{% if params.subtitle.classes %}{{ params.subtitle.classes }}{% else -%} text-sm leading-5 lg:text-base lg:leading-6{% endif %}">{{ params.subtitle.html | filterquotes | safe if params.subtitle.html else params.subtitle.text }}</p>
|
|
73
73
|
{% endif %}
|
|
74
74
|
</div>
|
|
75
75
|
{{ params.title.customNavigationHtml | safe if params.title.customNavigationHtml }}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"attributes": params.dropdown.attributes
|
|
108
108
|
}) %}
|
|
109
109
|
{% if params.dropdown.contentHtml %}
|
|
110
|
-
{{ params.dropdown.contentHtml | safe }}
|
|
110
|
+
{{ params.dropdown.contentHtml | filterquotes | safe }}
|
|
111
111
|
{% else %}
|
|
112
112
|
{{ componentNav({
|
|
113
113
|
isMenu: true,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "Sin clase contenedora",
|
|
13
|
-
"description":
|
|
13
|
+
"description": "Usa el parámetro <code>'hasContainer': false</code> para que el componente no tenga container y se expanda ocupando todo el ancho posible, de forma que el logotipo quede a la derecha de la ventana y no con respecto al contenedor centrado.",
|
|
14
14
|
"data": {
|
|
15
15
|
"hasContainer": false
|
|
16
16
|
}
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"classes": "c-button c-button--sm c-button--transparent",
|
|
32
32
|
"offState": {
|
|
33
33
|
"classes": "",
|
|
34
|
-
"html":
|
|
34
|
+
"html": "<span class='inline-flex'>Menu<svg class='inline-block -mr-2 align-middle -my-px pointer-events-none' viewBox='0 0 96 96' aria-hidden='true' fill='currentColor' focusable='false' width='1.5em' height='1.5em'><g><path d='M46.71 58.037a1.823 1.823 0 002.581 0L62.048 45.28a1.823 1.823 0 00-1.29-3.113H35.243a1.823 1.823 0 00-1.291 3.113z'></path></g></svg></span>"
|
|
35
35
|
},
|
|
36
36
|
"onState": {
|
|
37
37
|
"classes": "",
|
|
38
|
-
"html":
|
|
38
|
+
"html": "<span class='inline-flex'>Menu<svg class='inline-block -mr-2 align-middle -my-px pointer-events-none rotate-180' viewBox='0 0 96 96' aria-hidden='true' fill='currentColor' focusable='false' width='1.5em' height='1.5em'><g><path d='M46.71 58.037a1.823 1.823 0 002.581 0L62.048 45.28a1.823 1.823 0 00-1.29-3.113H35.243a1.823 1.823 0 00-1.291 3.113z'></path></g></svg></span>"
|
|
39
39
|
},
|
|
40
40
|
"attributes": {
|
|
41
41
|
"aria-controls": "megamenu-mini",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<div {%- if params.containerClasses %} class="{{ params.containerClasses }}"{% endif %}>
|
|
17
17
|
<div class="bg-white border-b border-neutral-base">
|
|
18
18
|
<div class="flex items-center px-base {% if params.hasContainer != false %}container mx-auto{% endif %}">
|
|
19
|
-
<a href="{{ params.homepageUrl | default('https://www.aragon.es/') }}" class="inline-block pt-2.5 pb-2 text-black focus:outline-none focus:shadow-outline-black"
|
|
20
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 32" width="117" height="26" class="inline-block fill-current" role="img"><defs><clipPath id="b-logo-expanded"><path fill="rgb(252, 228, 0)" d="M0 0h31.509v31.495H0z"/></clipPath><clipPath id="a-logo-expanded"><path d="M0 0h144v32H0z"/></clipPath></defs><g clip-path="url(#a-logo-expanded)"><path fill="rgb(252, 228, 0)" d="M0 .205h31.509V31.7H0z"/><g clip-path="url(#b-logo-expanded)" transform="translate(0 .205)"><g fill="#dd171b" fill-rule="evenodd"><path d="m31.509 6.048-7.568 1.515a14.545 14.545 0 0 1-7.905-1.025 15.04 15.04 0 0 0-5-1.817 12.536 12.536 0 0 0-3.535-.011l-5.051.9c-.8.156-1.639.3-2.453.434V.315A7.1 7.1 0 0 1 3.888.226a9.926 9.926 0 0 1 2.085.936 17.6 17.6 0 0 0 4.293 1.962 13.92 13.92 0 0 0 6.6-.034l4.728-.858 4.939-.892 4.97-1.024ZM6.602 24.229a14.592 14.592 0 0 1 9.555 1.014 12.178 12.178 0 0 0 8.307 1.5l7.044-1.271v5.706a8.247 8.247 0 0 1-3.008.256 6.4 6.4 0 0 1-1.594-.457l-3.657-1.917a12.217 12.217 0 0 0-7.092-.825L1.026 31.011 0 31.177v-5.706l1.26-.256 3.312-.613c.669-.123 1.371-.245 2.029-.379ZM-.003 15.077v-4.391l13.027-2.377a15.5 15.5 0 0 1 9.11 1.638 12.535 12.535 0 0 0 8.474.925l.9-.189v4.391l-2.874-1.639a12.286 12.286 0 0 0-6.835-1.014l-8.006 1.46c-.959.179-2.877.524-2.877.524l-7.292 1.349a5.152 5.152 0 0 1-3.627-.677ZM31.509 16.583v4.324L18.6 23.282a15.5 15.5 0 0 1-9.11-1.638 12.532 12.532 0 0 0-8.474-.925l-1.015.19v-4.324l2.988 1.572a12.291 12.291 0 0 0 6.835 1.014l8.006-1.46c.959-.178 2.877-.524 2.877-.524l7.292-1.349a5.142 5.142 0 0 1 3.51.745Z"/></g></g><path d="M38.2 28.807v-8.551h1.393c2.893 0 4.478 1.522 4.478 4.286 0 2.829-1.521 4.265-4.5 4.265Zm10.4-11.4v14.294h9.47v-2.893h-6.277v-3.257h6.214v-2.893h-6.214v-2.379h6.277v-2.871Zm21.751 0-5.206 14.294h3.385l1.542-4.35h4.371l1.521 4.35h3.45L74.1 17.407Zm1.885 2.956-1.328 4.223h2.679Zm42.341 4.03h-3.192v4.5a4.206 4.206 0 0 1-1.371.193 4.251 4.251 0 0 1-4.242-4.5 4.443 4.443 0 0 1 4.735-4.65 7.481 7.481 0 0 1 4.071 1.243v-3.257a11.674 11.674 0 0 0-4.349-.857c-4.628 0-7.841 3.107-7.841 7.564 0 4.393 3.149 7.372 7.841 7.372a12.977 12.977 0 0 0 4.349-.75Zm16.132.129a7.424 7.424 0 1 0-7.391 7.436 7.122 7.122 0 0 0 7.393-7.436Zm-7.456-4.458c-2.4 0-4.006 1.822-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.627-4.501-4.048-4.501Zm8.689-2.657v14.294h3.257v-9.108l5.762 9.108h3.021V17.407h-3.256v8.889l-5.532-8.889ZM46.922 7.33h-3.193v4.5a4.335 4.335 0 0 1-5.613-4.307 4.443 4.443 0 0 1 4.735-4.65 7.487 7.487 0 0 1 4.071 1.243V.859a11.674 11.674 0 0 0-4.35-.858c-4.628 0-7.841 3.107-7.841 7.565 0 4.393 3.15 7.371 7.841 7.371a12.99 12.99 0 0 0 4.35-.75Zm16.116.128a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.396-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM64.107.344v14.293h5.914c3.15 0 4.992-1.565 4.992-4.243a3.717 3.717 0 0 0-2.978-3.728 3.133 3.133 0 0 0 1.95-2.936c.021-2.272-1.521-3.386-4.606-3.386Zm4.757 5.336c1.393 0 1.95-.386 1.95-1.35 0-.921-.536-1.264-2.057-1.264h-1.393V5.68Zm.429 6.043c1.585 0 2.271-.493 2.271-1.651 0-1.2-.707-1.671-2.4-1.671h-1.8v3.322ZM78.879.344h-3.192v14.293h3.192Zm1.39 0v14.293h9.47v-2.893h-6.278V8.487h6.214V5.594h-6.214V3.216h6.278V.345Zm50.463 7.114a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.395-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM97.917 24.585l-1.35-4.223-1.328 4.223ZM83.249 31.7v-5.872h.407c2.057 0 2.271.214 3.642 3.75a7.159 7.159 0 0 0 .3.729l.278.664a6.4 6.4 0 0 0 .343.729h4.641l1.543-4.35h4.371l1.521 4.35h3.45l-5.314-14.294h-3.749L90.46 28.997c-.3-.622-.642-1.371-1.04-2.291a3.042 3.042 0 0 0-1.907-2.014 3.416 3.416 0 0 0 2.614-3.429c0-2.571-1.693-3.857-5.1-3.857H79.97V31.7Zm0-8.572h1.414c1.371 0 2.057-.493 2.057-1.521s-.622-1.478-2.014-1.478h-1.457Zm11.156-8.492V8.764h.407c2.057 0 2.271.214 3.642 3.75a6.982 6.982 0 0 0 .3.729l.278.665a6.37 6.37 0 0 0 .342.729h6.432l.018-9.169 5.745 9.169h3.021V.344h-3.256l.014 8.769-5.542-8.769h-3.257v13.3a29.76 29.76 0 0 1-1.975-4 3.043 3.043 0 0 0-1.907-2.014 3.415 3.415 0 0 0 2.614-3.428c0-2.572-1.693-3.857-5.1-3.857h-5.054v14.293Zm0-8.572h1.412c1.371 0 2.056-.493 2.056-1.521s-.621-1.478-2.013-1.478h-1.457Zm-59.44 11.342V31.7h4.778c4.842 0 7.692-2.657 7.692-7.158 0-4.479-2.914-7.136-7.863-7.136Z" fill="#161615" fill-rule="evenodd"/></g></svg>
|
|
19
|
+
<a href="{{ params.homepageUrl | default('https://www.aragon.es/') }}" class="inline-block pt-2.5 pb-2 text-black focus:outline-none focus:shadow-outline-black">
|
|
20
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 32" width="117" height="26" class="inline-block fill-current" role="img" aria-label="Gobierno de Aragón. Ir a aragon.es"><defs><clipPath id="b-logo-expanded"><path fill="rgb(252, 228, 0)" d="M0 0h31.509v31.495H0z"/></clipPath><clipPath id="a-logo-expanded"><path d="M0 0h144v32H0z"/></clipPath></defs><g clip-path="url(#a-logo-expanded)"><path fill="rgb(252, 228, 0)" d="M0 .205h31.509V31.7H0z"/><g clip-path="url(#b-logo-expanded)" transform="translate(0 .205)"><g fill="#dd171b" fill-rule="evenodd"><path d="m31.509 6.048-7.568 1.515a14.545 14.545 0 0 1-7.905-1.025 15.04 15.04 0 0 0-5-1.817 12.536 12.536 0 0 0-3.535-.011l-5.051.9c-.8.156-1.639.3-2.453.434V.315A7.1 7.1 0 0 1 3.888.226a9.926 9.926 0 0 1 2.085.936 17.6 17.6 0 0 0 4.293 1.962 13.92 13.92 0 0 0 6.6-.034l4.728-.858 4.939-.892 4.97-1.024ZM6.602 24.229a14.592 14.592 0 0 1 9.555 1.014 12.178 12.178 0 0 0 8.307 1.5l7.044-1.271v5.706a8.247 8.247 0 0 1-3.008.256 6.4 6.4 0 0 1-1.594-.457l-3.657-1.917a12.217 12.217 0 0 0-7.092-.825L1.026 31.011 0 31.177v-5.706l1.26-.256 3.312-.613c.669-.123 1.371-.245 2.029-.379ZM-.003 15.077v-4.391l13.027-2.377a15.5 15.5 0 0 1 9.11 1.638 12.535 12.535 0 0 0 8.474.925l.9-.189v4.391l-2.874-1.639a12.286 12.286 0 0 0-6.835-1.014l-8.006 1.46c-.959.179-2.877.524-2.877.524l-7.292 1.349a5.152 5.152 0 0 1-3.627-.677ZM31.509 16.583v4.324L18.6 23.282a15.5 15.5 0 0 1-9.11-1.638 12.532 12.532 0 0 0-8.474-.925l-1.015.19v-4.324l2.988 1.572a12.291 12.291 0 0 0 6.835 1.014l8.006-1.46c.959-.178 2.877-.524 2.877-.524l7.292-1.349a5.142 5.142 0 0 1 3.51.745Z"/></g></g><path d="M38.2 28.807v-8.551h1.393c2.893 0 4.478 1.522 4.478 4.286 0 2.829-1.521 4.265-4.5 4.265Zm10.4-11.4v14.294h9.47v-2.893h-6.277v-3.257h6.214v-2.893h-6.214v-2.379h6.277v-2.871Zm21.751 0-5.206 14.294h3.385l1.542-4.35h4.371l1.521 4.35h3.45L74.1 17.407Zm1.885 2.956-1.328 4.223h2.679Zm42.341 4.03h-3.192v4.5a4.206 4.206 0 0 1-1.371.193 4.251 4.251 0 0 1-4.242-4.5 4.443 4.443 0 0 1 4.735-4.65 7.481 7.481 0 0 1 4.071 1.243v-3.257a11.674 11.674 0 0 0-4.349-.857c-4.628 0-7.841 3.107-7.841 7.564 0 4.393 3.149 7.372 7.841 7.372a12.977 12.977 0 0 0 4.349-.75Zm16.132.129a7.424 7.424 0 1 0-7.391 7.436 7.122 7.122 0 0 0 7.393-7.436Zm-7.456-4.458c-2.4 0-4.006 1.822-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.627-4.501-4.048-4.501Zm8.689-2.657v14.294h3.257v-9.108l5.762 9.108h3.021V17.407h-3.256v8.889l-5.532-8.889ZM46.922 7.33h-3.193v4.5a4.335 4.335 0 0 1-5.613-4.307 4.443 4.443 0 0 1 4.735-4.65 7.487 7.487 0 0 1 4.071 1.243V.859a11.674 11.674 0 0 0-4.35-.858c-4.628 0-7.841 3.107-7.841 7.565 0 4.393 3.15 7.371 7.841 7.371a12.99 12.99 0 0 0 4.35-.75Zm16.116.128a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.396-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM64.107.344v14.293h5.914c3.15 0 4.992-1.565 4.992-4.243a3.717 3.717 0 0 0-2.978-3.728 3.133 3.133 0 0 0 1.95-2.936c.021-2.272-1.521-3.386-4.606-3.386Zm4.757 5.336c1.393 0 1.95-.386 1.95-1.35 0-.921-.536-1.264-2.057-1.264h-1.393V5.68Zm.429 6.043c1.585 0 2.271-.493 2.271-1.651 0-1.2-.707-1.671-2.4-1.671h-1.8v3.322ZM78.879.344h-3.192v14.293h3.192Zm1.39 0v14.293h9.47v-2.893h-6.278V8.487h6.214V5.594h-6.214V3.216h6.278V.345Zm50.463 7.114a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.395-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM97.917 24.585l-1.35-4.223-1.328 4.223ZM83.249 31.7v-5.872h.407c2.057 0 2.271.214 3.642 3.75a7.159 7.159 0 0 0 .3.729l.278.664a6.4 6.4 0 0 0 .343.729h4.641l1.543-4.35h4.371l1.521 4.35h3.45l-5.314-14.294h-3.749L90.46 28.997c-.3-.622-.642-1.371-1.04-2.291a3.042 3.042 0 0 0-1.907-2.014 3.416 3.416 0 0 0 2.614-3.429c0-2.571-1.693-3.857-5.1-3.857H79.97V31.7Zm0-8.572h1.414c1.371 0 2.057-.493 2.057-1.521s-.622-1.478-2.014-1.478h-1.457Zm11.156-8.492V8.764h.407c2.057 0 2.271.214 3.642 3.75a6.982 6.982 0 0 0 .3.729l.278.665a6.37 6.37 0 0 0 .342.729h6.432l.018-9.169 5.745 9.169h3.021V.344h-3.256l.014 8.769-5.542-8.769h-3.257v13.3a29.76 29.76 0 0 1-1.975-4 3.043 3.043 0 0 0-1.907-2.014 3.415 3.415 0 0 0 2.614-3.428c0-2.572-1.693-3.857-5.1-3.857h-5.054v14.293Zm0-8.572h1.412c1.371 0 2.056-.493 2.056-1.521s-.621-1.478-2.013-1.478h-1.457Zm-59.44 11.342V31.7h4.778c4.842 0 7.692-2.657 7.692-7.158 0-4.479-2.914-7.136-7.863-7.136Z" fill="#161615" fill-rule="evenodd"/></g></svg>
|
|
21
21
|
</a>
|
|
22
22
|
{{ params.customNavigationHtml | safe if params.customNavigationHtml }}
|
|
23
23
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<!-- hint -->
|
|
2
2
|
<p {%- if params.id %} id="{{ params.id }}"{% endif %} class="block text-neutral-dark {%- if params.classes %} {{ params.classes }}{% endif %}"
|
|
3
|
-
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>{{ params.html | safe if params.html else params.text }}</p>
|
|
3
|
+
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>{{ params.html | filterquotes | safe if params.html else params.text }}</p>
|
|
4
4
|
<!-- /hint -->
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"name": "con al atributo pattern",
|
|
152
|
-
"description":
|
|
152
|
+
"description": "Usa el atributo <code>pattern</code> para elegir un patrón de entrada de datos nativo del navegador.",
|
|
153
153
|
"data": {
|
|
154
154
|
"label": {
|
|
155
155
|
"text": "Solo números"
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"name": "campo obligatorio",
|
|
165
|
-
"description":
|
|
165
|
+
"description": "El formulario debe comenzar con un párrafo que ponga: <em>* Todos los campos marcados con asterisco son obligatorios.</em>",
|
|
166
166
|
"data": {
|
|
167
167
|
"label": {
|
|
168
168
|
"text": "Campo obligatorio *"
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"name": "Con clases de css aplicadas",
|
|
190
|
-
"description":
|
|
190
|
+
"description": "Label en linea + Input flexible y mensaje de error",
|
|
191
191
|
"data": {
|
|
192
192
|
"formGroup": {
|
|
193
193
|
"classes": "lg:flex lg:flex-wrap lg:items-center lg:gap-x-base"
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"name": "Tipo personalizado",
|
|
210
|
-
"description":
|
|
210
|
+
"description": "Si no se espacifica, el tipo por defecto es <code>text</code>. Este Input tiene un <code>type='number'</code>",
|
|
211
211
|
"data": {
|
|
212
212
|
"label": {
|
|
213
213
|
"text": "Input de tipo número"
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"label": {
|
|
235
235
|
"text": "Esto es un label"
|
|
236
236
|
},
|
|
237
|
-
"id": "placeholder",
|
|
237
|
+
"id": "con-placeholder",
|
|
238
238
|
"name": "placeholder",
|
|
239
239
|
"placeholder": "Esto es un placeholder"
|
|
240
240
|
}
|
|
@@ -297,12 +297,12 @@
|
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
299
|
"name": "inputmode",
|
|
300
|
-
"description":
|
|
300
|
+
"description": "Este atributo proporciona información al navegador para que se pueda mostrar el teclado virtual apropiado, especialmente en dispositivos móviles. Este input tiene un <code>inputmode='email'</code>",
|
|
301
301
|
"data": {
|
|
302
302
|
"label": {
|
|
303
303
|
"text": "Inputmode"
|
|
304
304
|
},
|
|
305
|
-
"id": "inputmode",
|
|
305
|
+
"id": "con-inputmode",
|
|
306
306
|
"name": "inputmode",
|
|
307
307
|
"inputmode": "email"
|
|
308
308
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
{% elseif item.divider %}
|
|
54
54
|
<div {%- if item.divider.classes %} class="{{ item.divider.classes }}{% endif %}" role="separator">
|
|
55
55
|
{% if item.divider.html %}
|
|
56
|
-
{{ item.divider.html | safe }}
|
|
56
|
+
{{ item.divider.html | filterquotes | safe }}
|
|
57
57
|
{% else %}
|
|
58
58
|
<p>
|
|
59
59
|
{{ item.divider.text }}
|