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
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
{% if item.href %}
|
|
18
18
|
<a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="block px-xs focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black {%- if params.hasUnderline %} underline{% endif %} {%- if item.classes %} {{ item.classes }}{% endif %} {%- if not item.disabled %} hover:text-primary-base hover:underline{% endif %} {%- if item.disabled %} no-underline pointer-events-none{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %}{%- if item.active %} aria-current="page"{% endif %} {% if item.disabled %} aria-disabled="true" tabindex="-1"{% endif %} {% if item.target %} target="{{ item.target }}"{% endif %}{%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
19
19
|
{% if item.active %}
|
|
20
|
-
<strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong>
|
|
20
|
+
<strong class="font-bold">{{ item.html | filterquotes | safe if item.html else item.text }}</strong>
|
|
21
21
|
{% else %}
|
|
22
|
-
{{ item.html | safe if item.html else item.text }}
|
|
22
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
23
23
|
{% endif %}
|
|
24
24
|
</a>
|
|
25
25
|
{% else %}
|
|
26
26
|
<span {%- if id %} id="{{ id }}"{% endif %} class="block px-xs {%- if item.classes %} {{ item.classes }}{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %}{%- if item.active %} aria-current="page"{% endif %} {% if item.disabled %} aria-disabled="true" tabindex="-1"{% endif %} {%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
27
27
|
{% if item.active %}
|
|
28
|
-
<strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong>
|
|
28
|
+
<strong class="font-bold">{{ item.html | filterquotes | safe if item.html else item.text }}</strong>
|
|
29
29
|
{% else %}
|
|
30
|
-
{{ item.html | safe if item.html else item.text }}
|
|
30
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
31
31
|
{% endif %}
|
|
32
32
|
</span>
|
|
33
33
|
{% endif %}
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
{% if subitem.href %}
|
|
46
46
|
<a {%- if subId %} id="{{ subId }}"{% endif %} href="{{ subitem.href }}" class="block px-xs hover:text-primary-base hover:underline focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black {%- if params.hasUnderline %} underline{% endif %} {%- if subitem.classes %} {{ subitem.classes }}{% endif %} {%- if subitem.disabled %} no-underline pointer-events-none{% endif %}" {%- if subitem.title %} title="{{ subitem.title }}"{% endif %}{%- if subitem.active %} aria-current="page"{% endif %} {% if subitem.disabled %} aria-disabled="true" tabindex="-1"{% endif %} {% if subitem.target %} target="{{ subitem.target }}"{% endif %}{%- for attribute, value in subitem.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
47
47
|
{% if subitem.active %}
|
|
48
|
-
<strong class="font-bold">{{ subitem.html | safe if subitem.html else subitem.text }}</strong>
|
|
48
|
+
<strong class="font-bold">{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}</strong>
|
|
49
49
|
{% else %}
|
|
50
|
-
{{ subitem.html | safe if subitem.html else subitem.text }}
|
|
50
|
+
{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}
|
|
51
51
|
{% endif %}
|
|
52
52
|
</a>
|
|
53
53
|
{% else %}
|
|
54
54
|
<span {%- if subId %} id="{{ subId }}"{% endif %} class="block px-xs {%- if subitem.classes %} {{ subitem.classes }}{% endif %}" {%- if subitem.title %} title="{{ subitem.title }}"{% endif %} {%- if subitem.active %} aria-current="page"{% endif %} {%- if subitem.disabled %} aria-disabled="true" tabindex="-1"{% endif %} {%- for attribute, value in subitem.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
55
55
|
{% if subitem.active %}
|
|
56
|
-
<strong class="font-bold">{{ subitem.html | safe if subitem.html else subitem.text }}</strong>
|
|
56
|
+
<strong class="font-bold">{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}</strong>
|
|
57
57
|
{% else %}
|
|
58
|
-
{{ subitem.html | safe if subitem.html else subitem.text }}
|
|
58
|
+
{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}
|
|
59
59
|
{% endif %}
|
|
60
60
|
</span>
|
|
61
61
|
{% endif %}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</ul>
|
|
71
71
|
{% elseif item.sub.html %}
|
|
72
72
|
<div class="mb-base px-xs origin-top-left text-sm text-neutral-dark {%- if item.sub.classes %} {{ item.sub.classes }}{% endif %}" id="{{ subId }}">
|
|
73
|
-
{{ item.sub.html | safe }}
|
|
73
|
+
{{ item.sub.html | filterquotes | safe }}
|
|
74
74
|
</div>
|
|
75
75
|
{% endif %}
|
|
76
76
|
</li>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"data": {
|
|
7
7
|
"id": "with-all-parent-items-1",
|
|
8
8
|
"idPrefix": "parent-example",
|
|
9
|
-
"ariaLabel":"Menubar descrición",
|
|
9
|
+
"ariaLabel": "Menubar descrición",
|
|
10
10
|
"items": [
|
|
11
11
|
{
|
|
12
12
|
"text": "Menuitem",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"data": {
|
|
159
159
|
"id": "with-all-parent-items-2",
|
|
160
160
|
"idPrefix": "parent-example",
|
|
161
|
-
"ariaLabel":"Menubar descrición",
|
|
161
|
+
"ariaLabel": "Menubar descrición",
|
|
162
162
|
"items": [
|
|
163
163
|
{
|
|
164
164
|
"text": "Menuitem",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
"data": {
|
|
313
313
|
"id": "mi-menubar",
|
|
314
314
|
"idPrefix": "parent-example",
|
|
315
|
-
"ariaLabel":"Menubar descrición",
|
|
315
|
+
"ariaLabel": "Menubar descrición",
|
|
316
316
|
"items": [
|
|
317
317
|
{
|
|
318
318
|
"text": "Menuitem",
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
"data": {
|
|
465
465
|
"id": "with-disabled",
|
|
466
466
|
"idPrefix": "disabled-example",
|
|
467
|
-
"ariaLabel":"Menubar descrición",
|
|
467
|
+
"ariaLabel": "Menubar descrición",
|
|
468
468
|
"items": [
|
|
469
469
|
{
|
|
470
470
|
"text": "Menuitem",
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
"data": {
|
|
619
619
|
"id": "with-active",
|
|
620
620
|
"idPrefix": "active-example",
|
|
621
|
-
"ariaLabel":"Menubar descrición",
|
|
621
|
+
"ariaLabel": "Menubar descrición",
|
|
622
622
|
"items": [
|
|
623
623
|
{
|
|
624
624
|
"text": "Menuitem",
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"data": {
|
|
774
774
|
"id": "large-items",
|
|
775
775
|
"idPrefix": "large-example",
|
|
776
|
-
"ariaLabel":"Menubar descrición",
|
|
776
|
+
"ariaLabel": "Menubar descrición",
|
|
777
777
|
"items": [
|
|
778
778
|
{
|
|
779
779
|
"text": "Menuitem",
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
"data": {
|
|
928
928
|
"id": "small-items",
|
|
929
929
|
"idPrefix": "small-example",
|
|
930
|
-
"ariaLabel":"Menubar descrición",
|
|
930
|
+
"ariaLabel": "Menubar descrición",
|
|
931
931
|
"items": [
|
|
932
932
|
{
|
|
933
933
|
"text": "Menuitem",
|
|
@@ -1081,7 +1081,7 @@
|
|
|
1081
1081
|
"data": {
|
|
1082
1082
|
"id": "transparent-items",
|
|
1083
1083
|
"idPrefix": "transparent-example",
|
|
1084
|
-
"ariaLabel":"Menubar descrición",
|
|
1084
|
+
"ariaLabel": "Menubar descrición",
|
|
1085
1085
|
"items": [
|
|
1086
1086
|
{
|
|
1087
1087
|
"text": "Menuitem",
|
|
@@ -1235,7 +1235,7 @@
|
|
|
1235
1235
|
"data": {
|
|
1236
1236
|
"id": "header-items",
|
|
1237
1237
|
"idPrefix": "header-example",
|
|
1238
|
-
"ariaLabel":"Menubar descrición",
|
|
1238
|
+
"ariaLabel": "Menubar descrición",
|
|
1239
1239
|
"items": [
|
|
1240
1240
|
{
|
|
1241
1241
|
"text": "Menuitem",
|
|
@@ -1386,11 +1386,11 @@
|
|
|
1386
1386
|
},
|
|
1387
1387
|
{
|
|
1388
1388
|
"name": "Ejemplo de filtros",
|
|
1389
|
-
"description":
|
|
1389
|
+
"description": "Usa el Menubar sobre una lista de items para filtrarlos u ordenarlos. Usa la clase modificadora <code>.c-menubar--last-right</code> para posicionar el último item a la derecha en breakpoints grandes.",
|
|
1390
1390
|
"data": {
|
|
1391
1391
|
"id": "filter-items",
|
|
1392
1392
|
"idPrefix": "filter-example",
|
|
1393
|
-
"ariaLabel":"Menubar descrición",
|
|
1393
|
+
"ariaLabel": "Menubar descrición",
|
|
1394
1394
|
"items": [
|
|
1395
1395
|
{
|
|
1396
1396
|
"text": "Estados y trámites",
|
|
@@ -1418,7 +1418,7 @@
|
|
|
1418
1418
|
},
|
|
1419
1419
|
{
|
|
1420
1420
|
"role": "none",
|
|
1421
|
-
"html":
|
|
1421
|
+
"html": "<span class='inline-block px-base py-sm text-neutral-dark focus:outline-none'>Estados</span>"
|
|
1422
1422
|
},
|
|
1423
1423
|
{
|
|
1424
1424
|
"role": "group",
|
|
@@ -1455,7 +1455,7 @@
|
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
1457
1457
|
"role": "none",
|
|
1458
|
-
"html":
|
|
1458
|
+
"html": "<span class='inline-block px-base py-sm text-neutral-dark focus:outline-none'>Plazos (sólo aplican a convocatorias y procesos)</span>"
|
|
1459
1459
|
},
|
|
1460
1460
|
{
|
|
1461
1461
|
"role": "group",
|
|
@@ -1607,7 +1607,7 @@
|
|
|
1607
1607
|
},
|
|
1608
1608
|
{
|
|
1609
1609
|
"role": "menuitemradio",
|
|
1610
|
-
"html":
|
|
1610
|
+
"html": "Número de servicio (de mayor a menor)"
|
|
1611
1611
|
}
|
|
1612
1612
|
]
|
|
1613
1613
|
}
|
|
@@ -1621,11 +1621,11 @@
|
|
|
1621
1621
|
},
|
|
1622
1622
|
{
|
|
1623
1623
|
"name": "con label",
|
|
1624
|
-
"description":
|
|
1624
|
+
"description": "Con label que explica que este menú actúa sobre otro elemento. Puedes usar las clases <code>.sr-only</code> para que se vea sólo en lectores de pantalla.",
|
|
1625
1625
|
"data": {
|
|
1626
1626
|
"id": "with-label-items",
|
|
1627
1627
|
"idPrefix": "label-example",
|
|
1628
|
-
"ariaLabel":"Menubar descrición",
|
|
1628
|
+
"ariaLabel": "Menubar descrición",
|
|
1629
1629
|
"label": {
|
|
1630
1630
|
"text": "Esto es un label"
|
|
1631
1631
|
},
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
<a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="c-menubar__button {%- if item.classes %} {{ item.classes }}{% endif %} {%- if item.disabled %} c-menubar__button--disabled{% endif %} {%- if item.active %} c-menubar__button--has-selection{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {% if item.disabled %} aria-disabled="true" tabindex="-1"{% endif %} id="{{ id }}"
|
|
27
27
|
{%- if item.sub.html %} data-aria-controls="{{ subId }}"{% endif %}
|
|
28
28
|
{%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
29
|
-
<span class="inline-flex self-center max-w-xs align-middle truncate">{{ item.html | safe if item.html else item.text }}</span>
|
|
29
|
+
<span class="inline-flex self-center max-w-xs align-middle truncate">{{ item.html | filterquotes | safe if item.html else item.text }}</span>
|
|
30
30
|
{# Indentation is intentional to output HTML nicely #}
|
|
31
31
|
{{- iconHtml | safe | trim if iconHtml -}}
|
|
32
32
|
</a>
|
|
33
33
|
{% endif %}
|
|
34
34
|
{% if item.href and not item.sub %}
|
|
35
35
|
<a role="menuitem" {%- if id %} id="{{ id }}"{% endif %} {%- if item.href %} href="{{ item.href }}"{% endif %} class="c-menubar__button {%- if item.classes %} {{ item.classes }}{% endif %} {%- if item.disabled %} c-menubar__button--disabled{% endif %} {%- if item.active %} c-menubar__button--has-selection{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {% if item.disabled %} disabled="disabled" aria-disabled="true" tabindex="-1"{% endif %} {% if item.target %} target="{{ item.target }}"{% endif %}{%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
36
|
-
{{ item.html | safe if item.html else item.text }}
|
|
36
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
37
37
|
</a>
|
|
38
38
|
{% endif %}
|
|
39
39
|
{% if item.sub.items %}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
{%- endif %}
|
|
49
49
|
{% if subitem.role == 'none' %}
|
|
50
50
|
<li role="none" id="{{ subId }}" data-option="{{ subId }}">
|
|
51
|
-
{{ subitem.html | safe if subitem.html else subitem.text }}
|
|
51
|
+
{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}
|
|
52
52
|
</li>
|
|
53
53
|
{% elseif subitem.role == 'group' %}
|
|
54
54
|
<li role="none">
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
{%- set subsubId = "sub-" + subId + "-" + loop.index -%}
|
|
63
63
|
{%- endif %}
|
|
64
64
|
<li {%- if subsubitem.role %} role="{{ subsubitem.role}}"{% endif %}{% if subsubitem.role == 'menuitemcheckbox' or subsubitem.role == 'menuitemradio' %} aria-checked="{% if subsubitem.checked %}{{ subsubitem.checked }}{% else %}false{% endif %}"{% endif %} class="flex items-center pr-base pl-lg py-sm cursor-pointer hover:bg-primary-base hover:text-white" id="{{ subsubId }}" data-option="{{ subsubId }}">
|
|
65
|
-
{{ subsubitem.html | safe if subsubitem.html else subsubitem.text }}
|
|
65
|
+
{{ subsubitem.html | filterquotes | safe if subsubitem.html else subsubitem.text }}
|
|
66
66
|
</li>
|
|
67
67
|
{% endif %}
|
|
68
68
|
{% endfor %}
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
</li>
|
|
71
71
|
{% elseif subitem.role == 'menuitem' %}
|
|
72
72
|
<li role="menuitem" id="{{ subId }}" data-option="{{ subId }}" class="flex items-center pr-base pl-lg py-sm cursor-pointer hover:bg-primary-base hover:text-white focus:bg-primary-base focus:text-white focus:outline-none" >
|
|
73
|
-
{{ subitem.html | safe if subitem.html else subitem.text }}
|
|
73
|
+
{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}
|
|
74
74
|
</li>
|
|
75
75
|
{% elseif subitem.role == 'menuitemcheckbox' %}
|
|
76
76
|
<li role="menuitemcheckbox" aria-checked="{% if subitem.checked %}{{ subitem.checked }}{% else %}false{% endif %}" class="flex items-center pr-base pl-lg py-sm cursor-pointer hover:bg-primary-base hover:text-white" id="{{ subId }}" data-option="{{ subId }}">
|
|
77
|
-
{{ subitem.html | safe if subitem.html else subitem.text }}
|
|
77
|
+
{{ subitem.html | filterquotes | safe if subitem.html else subitem.text }}
|
|
78
78
|
</li>
|
|
79
79
|
{% elseif subitem.role == 'separator' %}
|
|
80
80
|
<li role="separator" id="{{ subId }}" class="my-sm border-b border-neutral-base">
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
{% if params.label %}
|
|
96
96
|
<div id="{{ params.id }}-label" class="mb-sm {%- if params.label.classes %} {{ params.label.classes }}{% endif %}">
|
|
97
97
|
{% if params.label.html %}
|
|
98
|
-
{{ params.label.html | safe}}
|
|
98
|
+
{{ params.label.html | filterquotes | safe}}
|
|
99
99
|
{% else %}
|
|
100
100
|
<p>{{ params.label.text }}</p>
|
|
101
101
|
{% endif %}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "Con Button Loader",
|
|
24
|
-
"description":
|
|
24
|
+
"description": "Si quieres que las acciones muestren un Button loader en vez de un botón normal, utiliza el parámetro <code>'isButtonLoader': true</code>.",
|
|
25
25
|
"data": {
|
|
26
26
|
"id": "button-loader-example",
|
|
27
27
|
"title": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "Con encabezado de nivel 3",
|
|
46
|
-
"description":
|
|
46
|
+
"description": "Usa el parámetro <code>'headingLevel'</code> para establecer el nivel del encabezado. Por ejemplo: <code>'headingLevel': 3</code> creará un encabezado <code><h3></code>.",
|
|
47
47
|
"data": {
|
|
48
48
|
"id": "headinglevel-example",
|
|
49
49
|
"title": {
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "Con acción secundaria",
|
|
67
|
-
"description":
|
|
67
|
+
"description": "Las acciones primarias deberán ser botones primarios y aparecer a la izquierda. Las acciones secundarias deberán ser botones por defecto y aparecer a la derecha. Si la acción es destructiva, entonces se invierte el orden y la acción principal destructiva aparece a la derecha con el modificador de Botón alerta.",
|
|
68
68
|
"data": {
|
|
69
69
|
"id": "secondary-action-example",
|
|
70
70
|
"title": {
|
|
71
71
|
"text": "Editar servicio publicado"
|
|
72
72
|
},
|
|
73
73
|
"description": {
|
|
74
|
-
"html":
|
|
74
|
+
"html": "<p>Actualmente este servicio está publicado.</p><p>Los cambios realizados no serán visibles hasta que sean validados</p>"
|
|
75
75
|
},
|
|
76
76
|
"itemsPrimary": [
|
|
77
77
|
{
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
],
|
|
82
82
|
"itemsSecondary": [
|
|
83
83
|
{
|
|
84
|
-
"html":
|
|
84
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
87
|
"isDismissible": true
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"text": "Editar servicio publicado"
|
|
97
97
|
},
|
|
98
98
|
"description": {
|
|
99
|
-
"html":
|
|
99
|
+
"html": "<p>Actualmente este servicio está publicado.</p><p>Los cambios realizados no serán visibles hasta que sean validados</p>"
|
|
100
100
|
},
|
|
101
101
|
"itemsPrimary": [
|
|
102
102
|
{
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
],
|
|
107
107
|
"itemsSecondary": [
|
|
108
108
|
{
|
|
109
|
-
"html":
|
|
109
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
112
|
"isDismissible": true,
|
|
113
|
-
"caller":
|
|
113
|
+
"caller": "<div class='prose max-w-auto mx-auto'><p class='text-center text-sm'>Para más información, ir a la <a href='#'>Página de ayuda</a></p></div>"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
{
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"classes": "c-button--transparent"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
"html":
|
|
142
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
145
|
"isDismissible": true,
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"classes": "c-button-loader--transparent c-button-loader--is-loading"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
"html":
|
|
179
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>",
|
|
180
180
|
"isButtonLoader": true,
|
|
181
181
|
"state": "is-success",
|
|
182
182
|
"classes": "c-button-loader--is-success"
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
},
|
|
200
200
|
"itemsPrimary": [
|
|
201
201
|
{
|
|
202
|
-
"html":
|
|
202
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
203
203
|
}
|
|
204
204
|
],
|
|
205
205
|
"itemsSecondary": [
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
},
|
|
227
227
|
"itemsPrimary": [
|
|
228
228
|
{
|
|
229
|
-
"html":
|
|
229
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
230
230
|
}
|
|
231
231
|
],
|
|
232
232
|
"itemsSecondary": [
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
"text": "Editar servicio publicado"
|
|
277
277
|
},
|
|
278
278
|
"description": {
|
|
279
|
-
"html":
|
|
279
|
+
"html": "<p>Actualmente este servicio está publicado.</p><p>Los cambios realizados no serán visibles hasta que sean validados</p>"
|
|
280
280
|
},
|
|
281
281
|
"itemsPrimary": [
|
|
282
282
|
{
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
],
|
|
287
287
|
"itemsSecondary": [
|
|
288
288
|
{
|
|
289
|
-
"html":
|
|
289
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
290
290
|
}
|
|
291
291
|
],
|
|
292
292
|
"isDismissible": true,
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
],
|
|
314
314
|
"itemsSecondary": [
|
|
315
315
|
{
|
|
316
|
-
"html":
|
|
316
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
317
317
|
}
|
|
318
318
|
],
|
|
319
319
|
"isDismissible": true,
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"classes": "c-h2 mt-base focus:outline-none focus:underline"
|
|
333
333
|
},
|
|
334
334
|
"description": {
|
|
335
|
-
"html":
|
|
335
|
+
"html": "<p>Si el contenido de la modal es muy extenso, hay que alinear los textos a la izquierda para mejorar la accesibilidad.</p><p>Acabas de seleccionar una gran cantidad de archivos. Si ejecutas la acción, el proceso puede tardar varios minutos. Durante el proceso <strong>no cierres la ventana del navegador ni naveges a otra página</strong> en esta pestaña.</p><p>¿Estás seguro de iniciar el proceso ahora?</p>",
|
|
336
336
|
"classes": "mb-lg text-left"
|
|
337
337
|
},
|
|
338
338
|
"itemsPrimary": [
|
|
@@ -343,12 +343,12 @@
|
|
|
343
343
|
],
|
|
344
344
|
"itemsSecondary": [
|
|
345
345
|
{
|
|
346
|
-
"html":
|
|
346
|
+
"html": "Cancelar <span class='sr-only'>y cerrar la ventana modal</span>"
|
|
347
347
|
}
|
|
348
348
|
],
|
|
349
349
|
"isDismissible": true,
|
|
350
350
|
"icon": {
|
|
351
|
-
"html":
|
|
351
|
+
"html": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' class='block w-16 h-16 text-primary-light' aria-label='Pregunta' focusable='false'><path d='M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.92,1,1,0,0,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.25a1,1,0,0,1-2,0,4,4,0,1,1,5.6,3.67Z' fill='currentColor'></path></svg>"
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{% if params.icon %}
|
|
10
10
|
<div class="flex justify-center p-base">
|
|
11
11
|
{% if params.icon.html %}
|
|
12
|
-
{{ params.icon.html | safe }}
|
|
12
|
+
{{ params.icon.html | filterquotes | safe }}
|
|
13
13
|
{% elseif params.icon.type == 'discard' %}
|
|
14
14
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="1em" height="1em" class="block w-16 h-16 text-alert-light" focusable="false" aria-hidden="true" role="presentation"><path d="M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0ZM5.29,5.29a9.63,9.63,0,0,1,12.23-1,.26.26,0,0,1,0,.4L4.67,17.56a.27.27,0,0,1-.4,0,9.49,9.49,0,0,1,1-12.24ZM18.75,18.76a9.53,9.53,0,0,1-12.23,1,.26.26,0,0,1,0-.4L19.37,6.49a.26.26,0,0,1,.4,0,9.49,9.49,0,0,1-1,12.24Z" fill="currentColor"></path></svg>
|
|
15
15
|
{% elseif params.icon.type == 'delete' %}
|
|
@@ -26,27 +26,27 @@
|
|
|
26
26
|
{% set titleAttributes %}id="{{ labelledId }}" class="{% if params.title.classes %}{{ params.title.classes }}{% else %}c-h2 px-base text-center focus:outline-none focus:underline{% endif %}" tabindex="-1"{% endset %}
|
|
27
27
|
{% if params.headingLevel == "1" %}
|
|
28
28
|
<h1 {{ titleAttributes | safe }}>
|
|
29
|
-
{{ params.title.html | safe if params.title.html else params.title.text }}
|
|
29
|
+
{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}
|
|
30
30
|
</h1>
|
|
31
31
|
{% elseif params.headingLevel == "2" %}
|
|
32
32
|
<h2 {{ titleAttributes | safe }}>
|
|
33
|
-
{{ params.title.html | safe if params.title.html else params.title.text }}
|
|
33
|
+
{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}
|
|
34
34
|
</h2>
|
|
35
35
|
{% elseif params.headingLevel == "3" %}
|
|
36
36
|
<h3 {{ titleAttributes | safe }}>
|
|
37
|
-
{{ params.title.html | safe if params.title.html else params.title.text }}
|
|
37
|
+
{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}
|
|
38
38
|
</h3>
|
|
39
39
|
{% elseif params.headingLevel == "4" %}
|
|
40
40
|
<h4 {{ titleAttributes | safe }}>
|
|
41
|
-
{{ params.title.html | safe if params.title.html else params.title.text }}
|
|
41
|
+
{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}
|
|
42
42
|
</h4>
|
|
43
43
|
{% elseif params.headingLevel == "5" %}
|
|
44
44
|
<h5 {{ titleAttributes | safe }}>
|
|
45
|
-
{{ params.title.html | safe if params.title.html else params.title.text }}
|
|
45
|
+
{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}
|
|
46
46
|
</h5>
|
|
47
47
|
{% else %}
|
|
48
48
|
<h2 {{ titleAttributes | safe }}>
|
|
49
|
-
{{ params.title.html | safe if params.title.html else params.title.text }}
|
|
49
|
+
{{ params.title.html | filterquotes | safe if params.title.html else params.title.text }}
|
|
50
50
|
</h2>
|
|
51
51
|
{% endif %}
|
|
52
52
|
{% if params.description.text %}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</p>
|
|
56
56
|
{% elseif params.description.html %}
|
|
57
57
|
<div class="{% if params.description.classes %}{{ params.description.classes }}{% else %}c-paragraph-base my-base text-center{% endif %}">
|
|
58
|
-
{{ params.description.html | safe }}
|
|
58
|
+
{{ params.description.html | filterquotes | safe }}
|
|
59
59
|
</div>
|
|
60
60
|
{% endif %}
|
|
61
61
|
{% if caller %}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "con item activo",
|
|
68
|
-
"description":
|
|
68
|
+
"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>activateItemNav(elementMenu, idItemSeleccionado)</code> para seleccionar un item de un menú, usando sus ids. Ej: Abre la consola del navegador y escribe <code>activateItemNav('mi-menu', 'nav-with-active-item-3')</code> para desactivar el item actual y activar el tercer item de este ejemplo.",
|
|
69
69
|
"data": {
|
|
70
70
|
"idPrefix": "nav-with-active-item",
|
|
71
71
|
"items": [
|
|
@@ -219,15 +219,15 @@
|
|
|
219
219
|
"items": [
|
|
220
220
|
{
|
|
221
221
|
"href": "#",
|
|
222
|
-
"html":
|
|
222
|
+
"html": "<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 14' width='1em' height='1em' class='inline-block align-baseline mr-sm' aria-label='Archivo' focusable='false' role='img'><g id='new-file--empty-common-file-content'><path id='Subtract' fill='currentColor' fill-rule='evenodd' d='M7.875 0H2.5C2.10218 0 1.72064 0.158035 1.43934 0.43934C1.15804 0.720644 1 1.10218 1 1.5V12.5C1 12.8978 1.15804 13.2794 1.43934 13.5607C1.72064 13.842 2.10217 14 2.5 14H11.5C11.8978 14 12.2794 13.842 12.5607 13.5607C12.842 13.2794 13 12.8978 13 12.5V5.125H8.5C8.15482 5.125 7.875 4.84518 7.875 4.5V0ZM12.5821 3.875L9.125 0.417893V3.875H12.5821Z' clip-rule='evenodd'></path></g></svg> Opción 1"
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
"href": "#",
|
|
226
|
-
"html":
|
|
226
|
+
"html": "<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 14' width='1em' height='1em' class='inline-block align-baseline mr-sm' aria-label='Link' focusable='false' role='img'><g id='link-chain--create-hyperlink-link-make-unlink-connection-chain'><path id='Union-1' fill='currentColor' fill-rule='evenodd' d='M7.6715 2.7426L7.67146 2.74264L6.70715 3.70707C6.31665 4.09761 5.68348 4.09765 5.29293 3.70715C4.90239 3.31665 4.90235 2.68348 5.29285 2.29293L6.25721 1.32847L6.25725 1.32843C8.02849 -0.442809 10.9002 -0.442809 12.6715 1.32843C14.4427 3.09965 14.4427 5.97136 12.6715 7.7426L12.6715 7.74264L11.7071 8.70707C11.3166 9.09761 10.6835 9.09765 10.2929 8.70715C9.90239 8.31664 9.90235 7.68348 10.2929 7.29293L11.2572 6.32847L11.2572 6.32843C12.2474 5.33824 12.2474 3.73283 11.2572 2.74264C10.2671 1.75247 8.66169 1.75245 7.6715 2.7426ZM3.70696 5.29285C4.0975 5.68335 4.09754 6.31652 3.70704 6.70707L2.74268 7.67153L2.74264 7.67157C1.75245 8.66176 1.75245 10.2672 2.74264 11.2574C3.73282 12.2475 5.33819 12.2475 6.32839 11.2574L6.32843 11.2574L7.29274 10.2929C7.68324 9.90239 8.31641 9.90235 8.70696 10.2929C9.0975 10.6834 9.09754 11.3165 8.70704 11.7071L7.74268 12.6715L7.74264 12.6716C5.9714 14.4428 3.09966 14.4428 1.32843 12.6716C-0.442796 10.9003 -0.442809 8.02864 1.32839 6.2574L1.32843 6.25736L2.29274 5.29293C2.68324 4.90239 3.31641 4.90235 3.70696 5.29285ZM9.20711 6.20711C9.59763 5.81658 9.59763 5.18342 9.20711 4.79289C8.81658 4.40237 8.18342 4.40237 7.79289 4.79289L4.79289 7.79289C4.40237 8.18342 4.40237 8.81658 4.79289 9.20711C5.18342 9.59763 5.81658 9.59763 6.20711 9.20711L9.20711 6.20711Z' clip-rule='evenodd'></path></g></svg> Opción 2"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
"href": "#",
|
|
230
|
-
"html":
|
|
230
|
+
"html": "<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 14' width='1em' height='1em' class='inline-block align-baseline mr-sm' aria-label='Solicitud' focusable='false' role='img'><g id='clipboard-text--edition-form-task-checklist-edit-clipboard'><path id='Union-2' fill='currentColor' fill-rule='evenodd' d='M5.5 0C4.94772 0 4.5 0.447716 4.5 1V1.5C4.5 2.05229 4.94772 2.5 5.5 2.5H8.5C9.05229 2.5 9.5 2.05229 9.5 1.5V1C9.5 0.447715 9.05229 0 8.5 0H5.5ZM2.75 1H3.25V1.5C3.25 2.74264 4.25736 3.75 5.5 3.75H8.5C9.74264 3.75 10.75 2.74264 10.75 1.5V1H11.25C12.0784 1 12.75 1.67157 12.75 2.5V12.5C12.75 13.3284 12.0784 14 11.25 14H2.75C1.92157 14 1.25 13.3284 1.25 12.5V2.5C1.25 1.67157 1.92157 1 2.75 1ZM3.875 8.50049C3.875 8.15531 4.15482 7.87549 4.5 7.87549H9.5C9.84518 7.87549 10.125 8.15531 10.125 8.50049C10.125 8.84567 9.84518 9.12549 9.5 9.12549H4.5C4.15482 9.12549 3.875 8.84567 3.875 8.50049ZM4.5 10.3755C4.15482 10.3755 3.875 10.6553 3.875 11.0005C3.875 11.3457 4.15482 11.6255 4.5 11.6255H9.5C9.84518 11.6255 10.125 11.3457 10.125 11.0005C10.125 10.6553 9.84518 10.3755 9.5 10.3755H4.5Z' clip-rule='evenodd'></path></g></svg> Opción 3"
|
|
231
231
|
}
|
|
232
232
|
],
|
|
233
233
|
"attributes": {
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
"name": "con idPrefix",
|
|
241
|
-
"description":
|
|
241
|
+
"description": "Mostrar código para ver el <code>idPrefix</code> aplicado.",
|
|
242
242
|
"data": {
|
|
243
243
|
"idPrefix": "site-menu-item-1",
|
|
244
244
|
"items": [
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"name": "con ids individuales",
|
|
273
|
-
"description":
|
|
273
|
+
"description": "Mostrar código para ver los <code>id</code> aplicados.",
|
|
274
274
|
"data": {
|
|
275
275
|
"idPrefix": "nav-with-individual-ids",
|
|
276
276
|
"items": [
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
"name": "Sin nav",
|
|
370
|
-
"description":
|
|
370
|
+
"description": "Usa <code>'hasNav': false</code> si el Nav se abre con un Dropdown. No se usará el tag <code><nav></code>, sólo un simple <code><ul></code>, asumiendo que rodearás a tu componente manualmente con un <code><nav></code> personalizado con su propio <code>aria-label</code> si es necesario. También podemos usar clases para controlar la anchura del nav dentro del Dropdown.",
|
|
371
371
|
"data": {
|
|
372
372
|
"hasNav": false,
|
|
373
373
|
"idPrefix": "site-menu-item-2",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
<li>
|
|
22
22
|
<a href="{{ item.href }}" class="flex items-center px-base py-sm hover:bg-primary-base hover:text-white focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black{%- if item.classes %} {{ item.classes }}{% endif -%} {%- if item.disabled %} pointer-events-none{% endif -%}" {%- if item.disabled %} aria-disabled="true" tabindex="-1"{% endif -%} {%- if item.target %} target="{{ item.target }}"{% endif %} {% if item.active %} aria-current="page"{% endif %}{{- commonItemAttributes | safe }}>
|
|
23
23
|
{% if item.active %}
|
|
24
|
-
<strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong>
|
|
24
|
+
<strong class="font-bold">{{ item.html | filterquotes | safe if item.html else item.text }}</strong>
|
|
25
25
|
{% else %}
|
|
26
|
-
{{ item.html | safe if item.html else item.text }}
|
|
26
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
27
27
|
{% endif %}
|
|
28
28
|
{% if item.disabled %}
|
|
29
29
|
<svg viewBox="0 0 140 140" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg" class="inline-block align-middle flex-initial ml-sm text-neutral-base fill-current" aria-hidden="true" focusable="false" ><path d="M70 0a70 70 0 1070 70A70.08 70.08 0 0070 0zM20 70a50 50 0 0174.8-43.4 2.51 2.51 0 011.23 1.84 2.48 2.48 0 01-.71 2.1L30.54 95.32a2.51 2.51 0 01-3.94-.52A49.63 49.63 0 0120 70zm100 0a50 50 0 01-74.8 43.4 2.51 2.51 0 01-1.23-1.84 2.48 2.48 0 01.71-2.1l64.78-64.78a2.51 2.51 0 013.94.52A49.63 49.63 0 01120 70z"/></svg>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"name": "por defecto con html",
|
|
14
14
|
"data": {
|
|
15
15
|
"title":{
|
|
16
|
-
"html": "Las <a href
|
|
16
|
+
"html": "Las <a href=' # ' class=' c-link '>entidades beneficiarias</a> deberán tener su sede y actividad principal en Aragón."
|
|
17
17
|
},
|
|
18
18
|
"id": "default-with-html"
|
|
19
19
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"html": "El documento se ha cargado correctamente"
|
|
26
26
|
},
|
|
27
27
|
"description":{
|
|
28
|
-
"html":
|
|
28
|
+
"html": "<p>Documento acreditativo de <em class=\" italic \">registro de alta de la asociación</em> puede verse publicado ya.</p>"
|
|
29
29
|
},
|
|
30
30
|
"id": "with-description"
|
|
31
31
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"html": "El documento se ha cargado correctamente"
|
|
38
38
|
},
|
|
39
39
|
"content":{
|
|
40
|
-
"html":
|
|
40
|
+
"html": "<p>Documento acreditativo de <em class=\" italic \">registro de alta de la asociación</em> puede verse publicado ya.</p>"
|
|
41
41
|
},
|
|
42
42
|
"id": "with-content"
|
|
43
43
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"text": "ATENCIÓN: Debido a la situación por Covid-19, pide cita previa para acudir a una de nuestras oficinas."
|
|
107
107
|
},
|
|
108
108
|
"description":{
|
|
109
|
-
"html": "<a class
|
|
109
|
+
"html": "<a class=' c-link text-sm ' href=' # '>Pedir cita previa</a> "
|
|
110
110
|
},
|
|
111
111
|
"type": "info",
|
|
112
112
|
"id": "type-info"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"name": "con botón de cerrar",
|
|
117
|
-
"description":
|
|
117
|
+
"description": "Usa el parámetro <code>'isDismissible': true</code>",
|
|
118
118
|
"data": {
|
|
119
119
|
"title": {
|
|
120
120
|
"text": "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ut distinctio error non, reiciendis repudiandae reprehenderit minima quia laboriosam voluptate, quo veniam expedita possimus ex nam consequuntur autem eveniet, saepe ea."
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"name": "Cerrar la notificación con JavaScript",
|
|
128
|
-
"description":
|
|
128
|
+
"description": "Puedes usar con javascript la función global <code>closeItemNotification(element)</code>, para cerrar la notificación. Ej: Abre la consola del navegador y escribe <code>closeItemNotification('with-close-button-js')</code> para cerrar la notificación. Es necesario usar el parámetro <code>'isDismissible': true</code>",
|
|
129
129
|
"data": {
|
|
130
130
|
"title": {
|
|
131
131
|
"text": "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ut distinctio error non, reiciendis repudiandae reprehenderit minima quia laboriosam voluptate, quo veniam expedita possimus ex nam consequuntur autem eveniet, saepe ea."
|
|
@@ -141,10 +141,10 @@
|
|
|
141
141
|
"text": "Acaba de publicarse la lista de admitidos y excluidos de la convocatoria publicado en el BOA"
|
|
142
142
|
},
|
|
143
143
|
"description":{
|
|
144
|
-
"html": "<a class
|
|
144
|
+
"html": "<a class=' c-link break-all ' href=' # '>http://www.boa.aragon.es/cgi-bin/EBOA/BRSCGI?CMD=VEROBJ&MLKOB=1119520063030&type=pdf</a> "
|
|
145
145
|
},
|
|
146
146
|
"icon": {
|
|
147
|
-
"html":
|
|
147
|
+
"html": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140' width='1em' height='1em' class='w-8 h-8' aria-label='Atención' focusable='false'><path d='M138.42 118.29l-55-110a15 15 0 00-26.84 0l-55 110A15 15 0 0015 140h110a15 15 0 0013.42-21.71zM62.5 50a7.5 7.5 0 0115 0v30a7.5 7.5 0 01-15 0zm7.5 70a10 10 0 1110-10 10 10 0 01-10 10z' fill='currentColor'/></svg>"
|
|
148
148
|
},
|
|
149
149
|
"id": "with-custom-icon",
|
|
150
150
|
"classes": "border-neutral-dark bg-neutral-lighter"
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "Con encabezado",
|
|
155
|
-
"description":
|
|
155
|
+
"description": "Usa el parámetro <code>'headingLevel'</code> para establecer el nivel del encabezado. En este ejemplo: <code>'headingLevel': 3</code> creará un encabezado <code><h3></code>.",
|
|
156
156
|
"data": {
|
|
157
157
|
"headingLevel": 3,
|
|
158
158
|
"title": {
|