desy-html 6.5.0 → 7.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/config/tailwind.config.js +32 -2
- package/docs/_global.head.njk +2 -0
- package/docs/_include.template-header.njk +11 -0
- package/docs/_macro.example-render.njk +8 -0
- package/docs/catalogo.html +2 -0
- package/docs/componentes.html +6 -0
- package/docs/ds/_ds.example.card.njk +199 -0
- package/docs/ds/_ds.example.checkboxes.njk +4 -4
- package/docs/ds/_ds.example.header-advanced.njk +0 -75
- package/docs/ds/_ds.example.links-list.njk +171 -0
- package/docs/ds/_ds.example.pills.njk +1 -1
- package/docs/ds/_ds.example.textos.njk +3 -1
- package/docs/ds/_ds.example.typography.njk +1 -1
- package/docs/ds/_ds.section.informacion.njk +13 -0
- package/docs/ds/_ds.section.navigation.njk +4 -0
- package/docs/ds/_ds.section.textos.njk +44 -20
- package/docs/ds/_ds.section.typography.njk +1 -1
- package/docs/examples-card.html +5 -0
- package/docs/examples-links-list.html +5 -0
- package/docs/index.html +15 -17
- package/package.json +12 -13
- package/src/css/component.text.css +14 -0
- package/src/js/aria/tabs.js +3 -1
- package/src/js/aria/toggle.js +3 -0
- package/src/js/aria/treeitem.js +11 -4
- package/src/templates/components/button/_examples.button.njk +9 -0
- package/src/templates/components/button-loader/_template.button-loader.njk +3 -15
- package/src/templates/components/card/_examples.card.njk +277 -0
- package/src/templates/components/card/_macro.card.njk +3 -0
- package/src/templates/components/card/_template.card.njk +35 -0
- package/src/templates/components/card/params.card.yaml +113 -0
- package/src/templates/components/checkboxes/params.checkboxes.yaml +0 -10
- package/src/templates/components/collapsible/_template.collapsible.njk +1 -1
- package/src/templates/components/error-message/params.error-message.yaml +1 -15
- package/src/templates/components/header/_examples.header.njk +50 -14
- package/src/templates/components/header/_template.header.njk +1 -1
- package/src/templates/components/header/params.header.yaml +0 -20
- package/src/templates/components/header-advanced/_examples.header-advanced.njk +4 -4
- package/src/templates/components/header-advanced/_template.header-advanced.njk +1 -1
- package/src/templates/components/header-advanced/params.header-advanced.yaml +0 -20
- package/src/templates/components/links-list/_examples.links-list.njk +504 -0
- package/src/templates/components/links-list/_macro.links-list.njk +3 -0
- package/src/templates/components/links-list/_template.links-list.njk +92 -0
- package/src/templates/components/links-list/params.links-list.yaml +82 -0
- package/src/templates/components/menu-navigation/params.menu-navigation.yaml +0 -10
- package/src/templates/components/menu-vertical/_template.menu-vertical.njk +1 -5
- package/src/templates/components/menu-vertical/params.menu-vertical.yaml +0 -19
- package/src/templates/components/radios/params.radios.yaml +0 -10
- package/src/templates/components/table/_examples.table.njk +4 -48
- package/src/templates/components/table/params.table.yaml +1 -1
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +6 -51
- package/src/templates/components/toggle/_examples.toggle.njk +36 -0
- package/src/templates/components/toggle/_template.toggle.njk +6 -1
- package/docs/examples-header-2.html +0 -5
- package/src/templates/components/header/_examples.header-2.njk +0 -555
- package/test/backstop_config/backstop.config.js +0 -35
- package/test/backstop_config/scenarios/components_a.js +0 -31
- package/test/backstop_config/scenarios/components_b.js +0 -31
- package/test/backstop_config/scenarios/components_c.js +0 -31
- package/test/backstop_config/scenarios/components_d.js +0 -49
- package/test/backstop_config/scenarios/components_e.js +0 -22
- package/test/backstop_config/scenarios/components_f.js +0 -31
- package/test/backstop_config/scenarios/components_h.js +0 -40
- package/test/backstop_config/scenarios/components_i.js +0 -40
- package/test/backstop_config/scenarios/components_l.js +0 -22
- package/test/backstop_config/scenarios/components_m.js +0 -58
- package/test/backstop_config/scenarios/components_n.js +0 -22
- package/test/backstop_config/scenarios/components_p.js +0 -22
- package/test/backstop_config/scenarios/components_r.js +0 -13
- package/test/backstop_config/scenarios/components_s.js +0 -58
- package/test/backstop_config/scenarios/components_t.js +0 -67
- package/test/backstop_config/scenarios/home.js +0 -12
- package/test/backstop_config/scenarios/styles.js +0 -13
- package/test/backstop_config/scenarios.js +0 -39
- package/test/backstop_data/bitmaps_reference/Desy_Accordion_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Accordion_history_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Alert_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Breadcrumbs_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Button_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Button_loader_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Character_count_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Checkboxes_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Collapsible_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Date_input_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Description_list_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Details_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Dialog_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Dropdown_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Error_message_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Error_summary_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Fieldset_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_File_upload_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Footer_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Header_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Header_advanced_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Header_mini_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Hint_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Home_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Input_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Input_group_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Item_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Label_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Listbox_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Media_object_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Menu_horizontal_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Menu_navigation_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Menu_vertical_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Menubar_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Modal_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Nav_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Notification_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Pagination_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Pill_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Searchbar_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Select_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Skip_link_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Spinner_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Status_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Status_item_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Styles_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Table_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Table_advanced_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Tabs_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Textarea_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Toggle_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Tooltip_0_document_0_desktop.png +0 -0
- package/test/backstop_data/bitmaps_reference/Desy_Tree_0_document_0_desktop.png +0 -0
- package/test/backstop_data/engine_scripts/cookies.json +0 -14
- package/test/backstop_data/engine_scripts/imageStub.jpg +0 -0
- package/test/backstop_data/engine_scripts/playwright/clickAndHoverHelper.js +0 -43
- package/test/backstop_data/engine_scripts/playwright/interceptImages.js +0 -31
- package/test/backstop_data/engine_scripts/playwright/loadCookies.js +0 -16
- package/test/backstop_data/engine_scripts/playwright/onBefore.js +0 -5
- package/test/backstop_data/engine_scripts/playwright/onReady.js +0 -6
- package/test/backstop_data/engine_scripts/playwright/overrideCSS.js +0 -27
- package/test/backstop_data/engine_scripts/puppet/clickAndHoverHelper.js +0 -39
- package/test/backstop_data/engine_scripts/puppet/ignoreCSP.js +0 -65
- package/test/backstop_data/engine_scripts/puppet/interceptImages.js +0 -37
- package/test/backstop_data/engine_scripts/puppet/loadCookies.js +0 -33
- package/test/backstop_data/engine_scripts/puppet/onBefore.js +0 -3
- package/test/backstop_data/engine_scripts/puppet/onReady.js +0 -6
- package/test/backstop_data/engine_scripts/puppet/overrideCSS.js +0 -15
- package/test/backstop_data/html_report/a96f14595379b7c348d66e115ec65a93.png +0 -0
- package/test/backstop_data/html_report/assets/fonts/Lato-Bold.ttf +0 -0
- package/test/backstop_data/html_report/assets/fonts/Lato-Regular.ttf +0 -0
- package/test/backstop_data/html_report/assets/fonts/lato-bold-webfont.woff +0 -0
- package/test/backstop_data/html_report/assets/fonts/lato-bold-webfont.woff2 +0 -0
- package/test/backstop_data/html_report/assets/fonts/lato-regular-webfont.woff +0 -0
- package/test/backstop_data/html_report/assets/fonts/lato-regular-webfont.woff2 +0 -0
- package/test/backstop_data/html_report/b815e28b1e230cff6e9d7b749edcd562.png +0 -0
- package/test/backstop_data/html_report/config.js +0 -1335
- package/test/backstop_data/html_report/diff.js +0 -1843
- package/test/backstop_data/html_report/diverged.js +0 -340
- package/test/backstop_data/html_report/divergedWorker.js +0 -6
- package/test/backstop_data/html_report/index.html +0 -49
- package/test/backstop_data/html_report/index_bundle.js +0 -2
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{% set exampleComponent = "card" %}
|
|
2
|
+
|
|
3
|
+
{% from "components/button/_macro.button.njk" import componentButton %}
|
|
4
|
+
|
|
5
|
+
{% set defaultContent %}
|
|
6
|
+
<h3 class="c-h3"><a href="#" class="c-link">Título card</a></h3>
|
|
7
|
+
<div class="prose max-w-none">
|
|
8
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
9
|
+
</div>
|
|
10
|
+
{% endset %}
|
|
11
|
+
|
|
12
|
+
{% set linksContent %}
|
|
13
|
+
<h2 class="c-h1">Tus datos médicos e información personal</h2>
|
|
14
|
+
<ul class="text-lg">
|
|
15
|
+
<li class="mb-base"><a href="#" class="c-link">Cambiar tus datos de contacto</a></li>
|
|
16
|
+
<li class="mb-base"><a href="#" class="c-link">Dónde y cómo solicitar tu PIN Salud</a></li>
|
|
17
|
+
<li class="mb-base"><a href="#" class="c-link">Cómo solicitar un cambio de centro de salud</a></li>
|
|
18
|
+
<li class="mb-base"><a href="#" class="c-link">Historia Clínica e informes médicos</a></li>
|
|
19
|
+
<li class="mb-base"><a href="#" class="c-link">Derechos de protección de datos</a></li>
|
|
20
|
+
</ul>
|
|
21
|
+
{% endset %}
|
|
22
|
+
|
|
23
|
+
{% set verButton %}
|
|
24
|
+
{{ componentButton({
|
|
25
|
+
"html": "Más <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center ml-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg>",
|
|
26
|
+
"classes": "c-button--transparent",
|
|
27
|
+
"href": "#",
|
|
28
|
+
"attributes": {
|
|
29
|
+
"id": "boton-card-1",
|
|
30
|
+
"aria-labelledby": "boton-card-1 titulo-card-1"
|
|
31
|
+
}
|
|
32
|
+
}) }}
|
|
33
|
+
{% endset %}
|
|
34
|
+
|
|
35
|
+
{% set verDetalleButton %}
|
|
36
|
+
{{ componentButton({
|
|
37
|
+
"html": "Ver detalle <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center ml-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg>",
|
|
38
|
+
"classes": "c-button--transparent",
|
|
39
|
+
"href": "#",
|
|
40
|
+
"attributes": {
|
|
41
|
+
"id": "boton-card-1",
|
|
42
|
+
"aria-labelledby": "boton-card-1 titulo-card-1"
|
|
43
|
+
}
|
|
44
|
+
}) }}
|
|
45
|
+
{% endset %}
|
|
46
|
+
|
|
47
|
+
{% set withIconContent %}
|
|
48
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="1em" height="1em" class="w-6 h-6 lg:w-9 lg:h-9 mt-base mb-lg" aria-hidden="true" focusable="false"><g transform="scale(2)"><path d="M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25Z" fill="currentColor"></path><rect x="6.5" y="10.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="14" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="17.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="10.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="14" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="17.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect></g></svg>
|
|
49
|
+
<h3 id="titulo-card-1" class="c-h3">Título card</h3>
|
|
50
|
+
<div class="prose max-w-none mb-base">
|
|
51
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
52
|
+
</div>
|
|
53
|
+
{{ verButton | safe }}
|
|
54
|
+
{% endset %}
|
|
55
|
+
|
|
56
|
+
{% set withButton %}
|
|
57
|
+
<h3 id="titulo-card-1" class="c-h3">Título card</h3>
|
|
58
|
+
<div class="prose max-w-none mb-base">
|
|
59
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
60
|
+
</div>
|
|
61
|
+
{{ verButton | safe }}
|
|
62
|
+
{% endset %}
|
|
63
|
+
|
|
64
|
+
{% set areaPersonalContent %}
|
|
65
|
+
<h2 class="c-h1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="1em" height="1em" class="inline-block align-middle lg:w-9 lg:h-9 mr-base" aria-hidden="true" focusable="false"><g transform="scale(2)"><path d="M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25Z" fill="currentColor"></path><rect x="6.5" y="10.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="14" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="17.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="10.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="14" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="17.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect></g></svg>Tu área personal</h2>
|
|
66
|
+
<p class="c-paragraph-base mb-lg">En tu área personal puedes pedir cita con tu médico/a, consultar tu historia clínica y encontrar una selección de contenidos y servicios de salud para ti. Accede de forma segura desde cualquier lugar y en cualquier momento, desde tu móvil u ordenador.</p>
|
|
67
|
+
<ul class="flex flex-wrap gap-base">
|
|
68
|
+
<li>
|
|
69
|
+
{{ componentButton({
|
|
70
|
+
"text": "Acceder a Tu área personal",
|
|
71
|
+
"classes": "c-button--primary"
|
|
72
|
+
}) }}
|
|
73
|
+
</li>
|
|
74
|
+
<li>
|
|
75
|
+
{{ componentButton({
|
|
76
|
+
"text": "Descargar la app"
|
|
77
|
+
}) }}
|
|
78
|
+
</li>
|
|
79
|
+
</ul>
|
|
80
|
+
{% endset %}
|
|
81
|
+
|
|
82
|
+
{% set postContent %}
|
|
83
|
+
<p class="c-paragraph-sm mb-base">
|
|
84
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="1em" width="1em" class="inline-block align-middle w-6 h-6 mr-xs"><g><path d="M7.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M7.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M7.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M21.5,3H18.75a.25.25,0,0,1-.25-.25V1a1,1,0,0,0-2,0V5.75a.75.75,0,0,1-1.5,0V3.5a.5.5,0,0,0-.5-.5H8.25A.25.25,0,0,1,8,2.75V1A1,1,0,0,0,6,1V5.75a.75.75,0,0,1-1.5,0V3.5A.5.5,0,0,0,4,3H2.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h19a2,2,0,0,0,2-2V5A2,2,0,0,0,21.5,3Zm0,18.5a.5.5,0,0,1-.5.5H3a.5.5,0,0,1-.5-.5V9.5A.5.5,0,0,1,3,9H21a.5.5,0,0,1,.5.5Z" fill="currentColor"></path></g></svg>
|
|
85
|
+
<strong>18 octubre 2022</strong>
|
|
86
|
+
</p>
|
|
87
|
+
<h3 id="titulo-card-1" class="c-h3">Título de noticia</h3>
|
|
88
|
+
<div class="prose max-w-none mb-base">
|
|
89
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
90
|
+
</div>
|
|
91
|
+
{{ verDetalleButton | safe }}
|
|
92
|
+
{% endset %}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
{% set examples = [
|
|
97
|
+
{
|
|
98
|
+
"name": "default",
|
|
99
|
+
"data": {
|
|
100
|
+
"classes": "lg:w-1/3",
|
|
101
|
+
"containerClasses": "p-base border border-neutral-base rounded",
|
|
102
|
+
"caller": defaultContent
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "with icon",
|
|
107
|
+
"data": {
|
|
108
|
+
"classes": "lg:w-1/3",
|
|
109
|
+
"containerClasses": "p-base border border-neutral-base rounded",
|
|
110
|
+
"caller": withIconContent
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "simple sidebar",
|
|
115
|
+
"data": {
|
|
116
|
+
"classes": "lg:w-1/3",
|
|
117
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
118
|
+
"caller": withButton
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "with super",
|
|
123
|
+
"data": {
|
|
124
|
+
"classes": "lg:w-1/3",
|
|
125
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
126
|
+
"caller": withButton,
|
|
127
|
+
"super": {
|
|
128
|
+
"backgroundFullColor": "transparent",
|
|
129
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
130
|
+
"classes": "h-60 -m-base mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
131
|
+
"attributes": {
|
|
132
|
+
"role": "img",
|
|
133
|
+
"aria-label": "Alt de la imagen"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "with sub",
|
|
140
|
+
"data": {
|
|
141
|
+
"classes": "lg:w-1/3",
|
|
142
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
143
|
+
"caller": withButton,
|
|
144
|
+
"sub": {
|
|
145
|
+
"backgroundFullColor": "transparent",
|
|
146
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
147
|
+
"classes": "h-60 -m-base mt-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
148
|
+
"attributes": {
|
|
149
|
+
"role": "img",
|
|
150
|
+
"aria-label": "Alt de la imagen"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "with img left in desktop",
|
|
157
|
+
"description": "In mobile the img is in super area.",
|
|
158
|
+
"data": {
|
|
159
|
+
"classes": "lg:w-2/3",
|
|
160
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
161
|
+
"caller": withButton,
|
|
162
|
+
"super": {
|
|
163
|
+
"backgroundFullColor": "transparent",
|
|
164
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
165
|
+
"classes": "lg:hidden h-60 -m-base mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
166
|
+
"attributes": {
|
|
167
|
+
"role": "img",
|
|
168
|
+
"aria-label": "Alt de la imagen"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"left": {
|
|
172
|
+
"backgroundFullColor": "transparent",
|
|
173
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
174
|
+
"classes": "hidden lg:block w-1/2 -m-base mr-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
175
|
+
"attributes": {
|
|
176
|
+
"role": "img",
|
|
177
|
+
"aria-label": "Alt de la imagen"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "with img right in desktop",
|
|
184
|
+
"description": "In mobile the img is in super area.",
|
|
185
|
+
"data": {
|
|
186
|
+
"classes": "lg:w-2/3",
|
|
187
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
188
|
+
"caller": withButton,
|
|
189
|
+
"super": {
|
|
190
|
+
"backgroundFullColor": "transparent",
|
|
191
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
192
|
+
"classes": "lg:hidden h-60 -m-base mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
193
|
+
"attributes": {
|
|
194
|
+
"role": "img",
|
|
195
|
+
"aria-label": "Alt de la imagen"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"right": {
|
|
199
|
+
"backgroundFullColor": "transparent",
|
|
200
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
201
|
+
"classes": "hidden lg:block w-1/2 -m-base ml-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
202
|
+
"attributes": {
|
|
203
|
+
"role": "img",
|
|
204
|
+
"aria-label": "Alt de la imagen"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "home block without padding",
|
|
211
|
+
"data": {
|
|
212
|
+
"classes": "lg:w-1/2",
|
|
213
|
+
"containerClasses": "py-lg border-t-8 border-neutral-dark",
|
|
214
|
+
"caller": linksContent
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "home block with buttons",
|
|
219
|
+
"data": {
|
|
220
|
+
"containerClasses": "p-lg bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
221
|
+
"caller": areaPersonalContent,
|
|
222
|
+
"super": {
|
|
223
|
+
"backgroundFullColor": "transparent",
|
|
224
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.png&text=Imagen",
|
|
225
|
+
"classes": "lg:hidden h-72 -m-lg mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
226
|
+
"attributes": {
|
|
227
|
+
"role": "img",
|
|
228
|
+
"aria-label": "Alt de la imagen"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"right": {
|
|
232
|
+
"backgroundFullColor": "transparent",
|
|
233
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
234
|
+
"classes": "hidden lg:block w-1/2 h-96 -m-lg ml-xl bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
235
|
+
"attributes": {
|
|
236
|
+
"role": "img",
|
|
237
|
+
"aria-label": "Alt de la imagen"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "items in list",
|
|
244
|
+
"description": "Image with fixed dimensions in desktop, text flexible.",
|
|
245
|
+
"data": {
|
|
246
|
+
"classes": "lg:w-3/4",
|
|
247
|
+
"containerClasses": "p-lg bg-neutral-lighter",
|
|
248
|
+
"caller": postContent,
|
|
249
|
+
"super": {
|
|
250
|
+
"backgroundFullColor": "transparent",
|
|
251
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
252
|
+
"classes": "lg:hidden h-56 -m-lg mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
253
|
+
"attributes": {
|
|
254
|
+
"role": "img",
|
|
255
|
+
"aria-label": "Alt de la imagen"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"left": {
|
|
259
|
+
"backgroundFullColor": "transparent",
|
|
260
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
261
|
+
"classes": "hidden lg:block w-72 -m-lg mr-lg bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
262
|
+
"attributes": {
|
|
263
|
+
"role": "img",
|
|
264
|
+
"aria-label": "Alt de la imagen"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "home mini block with icon",
|
|
271
|
+
"data": {
|
|
272
|
+
"classes": "lg:w-1/4",
|
|
273
|
+
"containerClasses": "p-base bg-neutral-lighter",
|
|
274
|
+
"caller": withIconContent
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
] %}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!-- card -->
|
|
2
|
+
<div {%- if params.classes %} class="{{ params.classes }}"{% endif %} {%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
3
|
+
<div {%- if params.containerClasses %} class="{{ params.containerClasses }}"{% endif %}>
|
|
4
|
+
{% if params.super %}
|
|
5
|
+
<div class="{% if params.super.classes %}{{ params.super.classes }}{% else-%} h-32 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.super.backgroundFullColor }}; {% if params.super.backgroundFullUrl %} background-image: url('{{ params.super.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.super.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
6
|
+
{{ params.super.html | safe if params.super.html}}
|
|
7
|
+
</div>
|
|
8
|
+
{% endif %}
|
|
9
|
+
<div class="flex">
|
|
10
|
+
{% if params.left %}
|
|
11
|
+
<div class="{% if params.left.classes %}{{ params.left.classes }}{% else-%} w-1/2 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.left.backgroundFullColor }}; {% if params.left.backgroundFullUrl %} background-image: url('{{ params.left.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.left.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
12
|
+
{{ params.left.html | safe if params.left.html}}
|
|
13
|
+
</div>
|
|
14
|
+
{% endif %}
|
|
15
|
+
<div {%- if params.left or params.right %} class="flex-1"{% endif %}>
|
|
16
|
+
{% if caller %}
|
|
17
|
+
{{ caller() }} {#- if statement allows usage of `call` to be optional -#}
|
|
18
|
+
{% elseif params.caller %}
|
|
19
|
+
{{ params.caller | safe }}
|
|
20
|
+
{% endif %}
|
|
21
|
+
</div>
|
|
22
|
+
{% if params.right %}
|
|
23
|
+
<div class="{% if params.right.classes %}{{ params.right.classes }}{% else-%} w-1/2 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.right.backgroundFullColor }}; {% if params.right.backgroundFullUrl %} background-image: url('{{ params.right.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.right.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
24
|
+
{{ params.right.html | safe if params.right.html}}
|
|
25
|
+
</div>
|
|
26
|
+
{% endif %}
|
|
27
|
+
</div>
|
|
28
|
+
{% if params.sub %}
|
|
29
|
+
<div class="{% if params.sub.classes %}{{ params.sub.classes }}{% else-%} h-32 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.sub.backgroundFullColor }}; {% if params.sub.backgroundFullUrl %} background-image: url('{{ params.sub.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.sub.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
30
|
+
{{ params.sub.html | safe if params.sub.html}}
|
|
31
|
+
</div>
|
|
32
|
+
{% endif %}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- /card -->
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
params:
|
|
2
|
+
- name: containerClasses
|
|
3
|
+
type: string
|
|
4
|
+
required: false
|
|
5
|
+
description: Classes that can be added to the inner container.
|
|
6
|
+
- name: classes
|
|
7
|
+
type: string
|
|
8
|
+
required: false
|
|
9
|
+
description: Classes to add to the card component.
|
|
10
|
+
- name: attributes
|
|
11
|
+
type: object
|
|
12
|
+
required: false
|
|
13
|
+
description: HTML attributes (for example data attributes) to add to the card component.
|
|
14
|
+
- name: caller
|
|
15
|
+
type: nunjucks-block
|
|
16
|
+
required: false
|
|
17
|
+
description: Content in the flexible content area. Not strictly a parameter but [Nunjucks code convention](https://mozilla.github.io/nunjucks/templating.html#call). Using a `call` block enables you to call a macro with all the text inside the tag. This is helpful if you want to pass a lot of content into a macro. To use it, you will need to wrap the entire media-object component in a `call` block.
|
|
18
|
+
- name: super
|
|
19
|
+
type: object
|
|
20
|
+
required: false
|
|
21
|
+
description: This is an area over the card content
|
|
22
|
+
- name: backgroundFullColor
|
|
23
|
+
type: string
|
|
24
|
+
required: true
|
|
25
|
+
description: The css color used in the background image that fills all the super area.
|
|
26
|
+
- name: backgroundFullUrl
|
|
27
|
+
type: string
|
|
28
|
+
required: false
|
|
29
|
+
description: Url used in the background image that fills all the super area.
|
|
30
|
+
- name: html
|
|
31
|
+
type: string
|
|
32
|
+
required: false
|
|
33
|
+
description: HTML to use inside the super area.
|
|
34
|
+
- name: classes
|
|
35
|
+
type: string
|
|
36
|
+
required: false
|
|
37
|
+
description: Classes to add to the super area.
|
|
38
|
+
- name: attributes
|
|
39
|
+
type: object
|
|
40
|
+
required: false
|
|
41
|
+
description: HTML attributes (for example data attributes) to add to the super area.
|
|
42
|
+
- name: sub
|
|
43
|
+
type: object
|
|
44
|
+
required: false
|
|
45
|
+
description: This is an area under the card content
|
|
46
|
+
- name: backgroundFullColor
|
|
47
|
+
type: string
|
|
48
|
+
required: true
|
|
49
|
+
description: The css color used in the background image that fills all the sub area.
|
|
50
|
+
- name: backgroundFullUrl
|
|
51
|
+
type: string
|
|
52
|
+
required: false
|
|
53
|
+
description: Url used in the background image that fills all the sub area.
|
|
54
|
+
- name: html
|
|
55
|
+
type: string
|
|
56
|
+
required: false
|
|
57
|
+
description: HTML to use inside the sub area.
|
|
58
|
+
- name: classes
|
|
59
|
+
type: string
|
|
60
|
+
required: false
|
|
61
|
+
description: Classes to add to the sub area.
|
|
62
|
+
- name: attributes
|
|
63
|
+
type: object
|
|
64
|
+
required: false
|
|
65
|
+
description: HTML attributes (for example data attributes) to add to the sub area.
|
|
66
|
+
- name: left
|
|
67
|
+
type: object
|
|
68
|
+
required: false
|
|
69
|
+
description: This is an area over the card content
|
|
70
|
+
- name: backgroundFullColor
|
|
71
|
+
type: string
|
|
72
|
+
required: true
|
|
73
|
+
description: The css color used in the background image that fills all the left area.
|
|
74
|
+
- name: backgroundFullUrl
|
|
75
|
+
type: string
|
|
76
|
+
required: false
|
|
77
|
+
description: Url used in the background image that fills all the left area.
|
|
78
|
+
- name: html
|
|
79
|
+
type: string
|
|
80
|
+
required: false
|
|
81
|
+
description: HTML to use inside the left area.
|
|
82
|
+
- name: classes
|
|
83
|
+
type: string
|
|
84
|
+
required: false
|
|
85
|
+
description: Classes to add to the left area.
|
|
86
|
+
- name: attributes
|
|
87
|
+
type: object
|
|
88
|
+
required: false
|
|
89
|
+
description: HTML attributes (for example data attributes) to add to the super area.
|
|
90
|
+
- name: right
|
|
91
|
+
type: object
|
|
92
|
+
required: false
|
|
93
|
+
description: This is an area under the card content
|
|
94
|
+
- name: backgroundFullColor
|
|
95
|
+
type: string
|
|
96
|
+
required: true
|
|
97
|
+
description: The css color used in the background image that fills all the right area.
|
|
98
|
+
- name: backgroundFullUrl
|
|
99
|
+
type: string
|
|
100
|
+
required: false
|
|
101
|
+
description: Url used in the background image that fills all the right area.
|
|
102
|
+
- name: html
|
|
103
|
+
type: string
|
|
104
|
+
required: false
|
|
105
|
+
description: HTML to use inside the right area.
|
|
106
|
+
- name: classes
|
|
107
|
+
type: string
|
|
108
|
+
required: false
|
|
109
|
+
description: Classes to add to the right area.
|
|
110
|
+
- name: attributes
|
|
111
|
+
type: object
|
|
112
|
+
required: false
|
|
113
|
+
description: HTML attributes (for example data attributes) to add to the right area.
|
|
@@ -114,13 +114,3 @@ params:
|
|
|
114
114
|
type: object
|
|
115
115
|
required: false
|
|
116
116
|
description: HTML attributes (for example data attributes) to add to the anchor tag.
|
|
117
|
-
|
|
118
|
-
accessibilityCriteria: |
|
|
119
|
-
## Conditional reveals
|
|
120
|
-
Must:
|
|
121
|
-
- be visible as static content if JavaScript is unavailable or fails
|
|
122
|
-
- be hidden if JavaScript is available and is collapsed
|
|
123
|
-
- indicate if content is expanded or collapsed
|
|
124
|
-
- indicate that there is collapsed content to interact with
|
|
125
|
-
|
|
126
|
-
Note that alphagov have known issues against this criteria: https://github.com/alphagov/govuk_elements/issues/575
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<span class="c-collapsible__show absolute inset-y-0 right-0 py-sm font-normal text-sm text-neutral-dark underline group-focus:text-black pointer-events-none " aria-hidden="false">Mostrar</span>
|
|
5
5
|
<span class="c-collapsible__hide absolute inset-y-0 right-0 py-sm font-normal text-sm text-neutral-dark underline group-focus:text-black pointer-events-none hidden" aria-hidden="true">Ocultar</span>
|
|
6
6
|
</button>
|
|
7
|
-
<div aria-hidden="true" class="c-collapsible__content hidden py-sm" {%- if params.id %} id="{{params.id}}"{% endif %}
|
|
7
|
+
<div aria-hidden="true" class="c-collapsible__content hidden py-sm" {%- if params.id %} id="{{params.id}}"{% endif %}>
|
|
8
8
|
{% if params.html %}
|
|
9
9
|
{{ params.html | safe }}
|
|
10
10
|
{% else %}
|
|
@@ -21,18 +21,4 @@ params:
|
|
|
21
21
|
description: HTML attributes (for example data attributes) to add to the error message span tag
|
|
22
22
|
- name: visuallyHiddenText
|
|
23
23
|
type: string
|
|
24
|
-
description: A visually hidden prefix used before the error message. Defaults to "Error".
|
|
25
|
-
|
|
26
|
-
accessibilityCriteria: |
|
|
27
|
-
When used with a single input, the error message MUST:
|
|
28
|
-
- be announced by screen readers when the input is focussed
|
|
29
|
-
|
|
30
|
-
When used with a group of multiple inputs (such as within a fieldset), the
|
|
31
|
-
error message MUST:
|
|
32
|
-
- be announced by screen readers when focussing the first input within the
|
|
33
|
-
group (first in this case refers to the focus order, not the DOM - if the
|
|
34
|
-
user is traversing backwards through the page then this would be the last
|
|
35
|
-
input within the group in the DOM)
|
|
36
|
-
|
|
37
|
-
When used with a group of multiple inputs, the error message SHOULD NOT:
|
|
38
|
-
- be announced every time for each individual input
|
|
24
|
+
description: A visually hidden prefix used before the error message. Defaults to "Error".
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
|
|
115
115
|
{% set exampleOffcanvas %}
|
|
116
116
|
<nav class="w-full p-2" aria-label="Menú móvil">
|
|
117
|
-
<h3 class="p-base text-base font-bold">
|
|
117
|
+
<h3 class="p-base text-base font-bold">Gestor de expedientes</h3>
|
|
118
118
|
{{ componentNav({
|
|
119
119
|
"idPrefix": "nav-mobile-pages",
|
|
120
120
|
"hasNav": false,
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"items": [
|
|
171
171
|
{
|
|
172
172
|
"href": "#",
|
|
173
|
-
"text": "
|
|
173
|
+
"text": "Gestor de expedientes",
|
|
174
174
|
"active": true
|
|
175
175
|
},
|
|
176
176
|
{
|
|
@@ -201,8 +201,11 @@
|
|
|
201
201
|
"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.",
|
|
202
202
|
"data": {
|
|
203
203
|
"homepageUrl": "/",
|
|
204
|
+
"mobileTitle": {
|
|
205
|
+
"text": "Gestor de expedientes"
|
|
206
|
+
},
|
|
204
207
|
"subnav": {
|
|
205
|
-
"text": "
|
|
208
|
+
"text": "Gestor de expedientes"
|
|
206
209
|
},
|
|
207
210
|
"navigation": {
|
|
208
211
|
"items": [
|
|
@@ -232,8 +235,11 @@
|
|
|
232
235
|
"description": "Tras nuestro menú de navegación tenemos customNavigationHtml: una zona anidable para poder añadir una navegación personalizada",
|
|
233
236
|
"data": {
|
|
234
237
|
"homepageUrl": "/",
|
|
238
|
+
"mobileTitle": {
|
|
239
|
+
"text": "Gestor de expedientes"
|
|
240
|
+
},
|
|
235
241
|
"subnav": {
|
|
236
|
-
"text": "
|
|
242
|
+
"text": "Gestor de expedientes"
|
|
237
243
|
},
|
|
238
244
|
"customNavigationHtml": '<div class="flex flex-wrap flex-1 gap-base">'+ navigationCustom | safe + '</div>'
|
|
239
245
|
}
|
|
@@ -243,8 +249,11 @@
|
|
|
243
249
|
"description": "En el customNavigationHtml podemos añadir elementos posicionados a la derecha",
|
|
244
250
|
"data": {
|
|
245
251
|
"homepageUrl": "/",
|
|
252
|
+
"mobileTitle": {
|
|
253
|
+
"text": "Gestor de expedientes"
|
|
254
|
+
},
|
|
246
255
|
"subnav": {
|
|
247
|
-
"text": "
|
|
256
|
+
"text": "Gestor de expedientes"
|
|
248
257
|
},
|
|
249
258
|
"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>'
|
|
250
259
|
}
|
|
@@ -262,8 +271,11 @@
|
|
|
262
271
|
}
|
|
263
272
|
},
|
|
264
273
|
"homepageUrl": "/",
|
|
274
|
+
"mobileTitle": {
|
|
275
|
+
"text": "Gestor de expedientes"
|
|
276
|
+
},
|
|
265
277
|
"subnav": {
|
|
266
|
-
"text": "
|
|
278
|
+
"text": "Gestor de expedientes"
|
|
267
279
|
},
|
|
268
280
|
"navigation": {
|
|
269
281
|
"items": [
|
|
@@ -301,8 +313,11 @@
|
|
|
301
313
|
"description": "Menu mobile que sólo se muestra en anchuras pequeñas y que permite insertar dentro cualquier contenido con Nunjuks caller",
|
|
302
314
|
"data": {
|
|
303
315
|
"homepageUrl": "/",
|
|
316
|
+
"mobileTitle": {
|
|
317
|
+
"text": "Gestor de expedientes"
|
|
318
|
+
},
|
|
304
319
|
"subnav": {
|
|
305
|
-
"text": "
|
|
320
|
+
"text": "Gestor de expedientes"
|
|
306
321
|
},
|
|
307
322
|
"offcanvas": {
|
|
308
323
|
"text": "Menú",
|
|
@@ -318,10 +333,13 @@
|
|
|
318
333
|
"data": {
|
|
319
334
|
"homepageUrl": "/",
|
|
320
335
|
"mobileTitle": {
|
|
321
|
-
"text": "
|
|
336
|
+
"text": "Gestor de expedientes"
|
|
337
|
+
},
|
|
338
|
+
"mobileTitle": {
|
|
339
|
+
"text": "Gestor de expedientes"
|
|
322
340
|
},
|
|
323
341
|
"subnav": {
|
|
324
|
-
"text": "
|
|
342
|
+
"text": "Gestor de expedientes"
|
|
325
343
|
},
|
|
326
344
|
"offcanvas": {
|
|
327
345
|
"text": "Menú",
|
|
@@ -336,8 +354,11 @@
|
|
|
336
354
|
"description": "Utilizar para mostrar el nombre de la app actual. Si no se proporcionan items en subnav, el texto será simple sin un dropdown.",
|
|
337
355
|
"data": {
|
|
338
356
|
"homepageUrl": "/",
|
|
357
|
+
"mobileTitle": {
|
|
358
|
+
"text": "Gestor de expedientes"
|
|
359
|
+
},
|
|
339
360
|
"subnav": {
|
|
340
|
-
"text": "
|
|
361
|
+
"text": "Gestor de expedientes"
|
|
341
362
|
}
|
|
342
363
|
}
|
|
343
364
|
},
|
|
@@ -346,12 +367,15 @@
|
|
|
346
367
|
"description": "Un dropdown junto al logo que ha de usarse para mostrar el nombre de la app en la que estamos y para navegar a otra app diferente. Usamos los items proporcionados para la navegación.",
|
|
347
368
|
"data": {
|
|
348
369
|
"homepageUrl": "/",
|
|
370
|
+
"mobileTitle": {
|
|
371
|
+
"text": "Gestor de expedientes"
|
|
372
|
+
},
|
|
349
373
|
"subnav": {
|
|
350
|
-
"text": "
|
|
374
|
+
"text": "Gestor de expedientes",
|
|
351
375
|
"items": [
|
|
352
376
|
{
|
|
353
377
|
"href": "#",
|
|
354
|
-
"text": "
|
|
378
|
+
"text": "Gestor de expedientes",
|
|
355
379
|
"active": true
|
|
356
380
|
},
|
|
357
381
|
{
|
|
@@ -375,6 +399,9 @@
|
|
|
375
399
|
"description": "Un dropdown a la derecha que puede usarse para mostrar información adicional: login, acerca de... Se oculta por defecto en anchuras pequeñas si no se le añaden clases a dropdown.",
|
|
376
400
|
"data": {
|
|
377
401
|
"homepageUrl": "/",
|
|
402
|
+
"mobileTitle": {
|
|
403
|
+
"text": "Gestor de expedientes"
|
|
404
|
+
},
|
|
378
405
|
"dropdown": {
|
|
379
406
|
"text": "Marta Pérez",
|
|
380
407
|
"items": [
|
|
@@ -395,6 +422,9 @@
|
|
|
395
422
|
"description": "Se pueden usar los parámetros del dropdown para personalizarlo. En este ejemplo con html en el dropdown.",
|
|
396
423
|
"data": {
|
|
397
424
|
"homepageUrl": "/",
|
|
425
|
+
"mobileTitle": {
|
|
426
|
+
"text": "Gestor de expedientes"
|
|
427
|
+
},
|
|
398
428
|
"dropdown": {
|
|
399
429
|
"html": '<span class="block text-right">Marta Pérez <br>(Administración)</span>',
|
|
400
430
|
"items": [
|
|
@@ -415,6 +445,9 @@
|
|
|
415
445
|
"description": "El dropdown puede contener cualquier tipo de información.",
|
|
416
446
|
"data": {
|
|
417
447
|
"homepageUrl": "/",
|
|
448
|
+
"mobileTitle": {
|
|
449
|
+
"text": "Gestor de expedientes"
|
|
450
|
+
},
|
|
418
451
|
"dropdown": {
|
|
419
452
|
"text": "Marta Pérez",
|
|
420
453
|
"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>',
|
|
@@ -427,12 +460,15 @@
|
|
|
427
460
|
"description": "Logo, menu de navegación, dropdown en anchuras grandes y menu mobile en pequeñas.",
|
|
428
461
|
"data": {
|
|
429
462
|
"homepageUrl": "/",
|
|
463
|
+
"mobileTitle": {
|
|
464
|
+
"text": "Gestor de expedientes"
|
|
465
|
+
},
|
|
430
466
|
"subnav": {
|
|
431
|
-
"text": "
|
|
467
|
+
"text": "Gestor de expedientes",
|
|
432
468
|
"items": [
|
|
433
469
|
{
|
|
434
470
|
"href": "#",
|
|
435
|
-
"text": "
|
|
471
|
+
"text": "Gestor de expedientes",
|
|
436
472
|
"active": true
|
|
437
473
|
},
|
|
438
474
|
{
|