desy-html 7.2.0 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/docs/_include.template-header.njk +8 -0
  2. package/docs/index.html +8 -0
  3. package/docs/pagina-accesibilidad.html +110 -0
  4. package/docs/pagina-mapa-web.html +137 -0
  5. package/docs/pagina-prueba.html +95 -0
  6. package/docs/plantilla-con-header-advanced.html +14 -0
  7. package/docs/plantilla-editar-con-cabecera-fija-y-sidebar-sticky.html +154 -0
  8. package/docs/plantilla-editar-con-cabecera-fija.html +17 -0
  9. package/docs/plantilla-logueado-con-cabecera-fija-headroom.html +15 -0
  10. package/docs/plantilla-logueado-con-cabecera-fija.html +15 -0
  11. package/docs/plantilla-logueado-con-selector-de-app-y-sidebar.html +164 -0
  12. package/docs/plantilla-logueado-con-selector-de-app-y-subheader.html +16 -0
  13. package/docs/plantilla-logueado-con-selector-de-app.html +14 -0
  14. package/docs/plantilla-logueado-con-titulo-de-app.html +14 -0
  15. package/docs/plantilla-sin-loguear.html +14 -0
  16. package/docs/plantillas.html +88 -0
  17. package/docs/spinner-plantilla-con-header-advanced.html +2 -0
  18. package/docs/spinner-plantilla-editar-con-cabecera-fija.html +5 -0
  19. package/docs/spinner-plantilla-logueado-con-cabecera-fija.html +2 -0
  20. package/docs/spinner-plantilla-logueado-con-selector-de-app-y-subheader.html +4 -0
  21. package/docs/spinner-plantilla-logueado-con-titulo-de-app.html +2 -0
  22. package/docs/spinner-plantilla-sin-loguear.html +18 -0
  23. package/package.json +1 -1
  24. package/src/css/component.headroom.css +31 -0
  25. package/src/css/styles.css +1 -0
  26. package/src/js/headroom.min.js +7 -0
  27. package/src/templates/includes/_abrir-notificaciones-extra.njk +3 -0
  28. package/src/templates/includes/_abrir-notificaciones.njk +3 -0
  29. package/src/templates/includes/_acciones-de-cabecera.njk +28 -0
  30. package/src/templates/includes/_ejemplo-titulo-h2-parrafo.njk +5 -0
  31. package/src/templates/includes/_ejemplo-titulo-parrafo.njk +5 -0
  32. package/src/templates/includes/_loremipsum-large.njk +1 -0
  33. package/src/templates/includes/_test-include.njk +14 -0
  34. package/src/templates/pages/_page.foot-headroom.njk +32 -0
  35. package/src/templates/pages/_page.foot.njk +7 -0
  36. package/src/templates/pages/_page.footer.njk +20 -0
  37. package/src/templates/pages/_page.head.njk +13 -0
  38. package/src/templates/pages/_page.notification-edit-inner-content.njk +31 -0
  39. package/src/templates/pages/_page.notification-edit.njk +31 -0
  40. package/src/templates/pages/_page.notification-footer.njk +33 -0
  41. package/src/templates/pages/_page.notification-header-fixed.njk +31 -0
  42. package/src/templates/pages/_page.notification-header.njk +31 -0
  43. package/src/templates/pages/_page.sidebar-content.njk +21 -0
  44. package/src/templates/pages/_page.spinner-block.njk +15 -0
  45. package/src/templates/pages/_page.spinner-show.njk +16 -0
  46. package/src/templates/pages/_page.spinner.njk +16 -0
  47. package/src/templates/pages/_template.edit-fixed-with-sticky-sidebar.njk +36 -0
  48. package/src/templates/pages/_template.edit-fixed.njk +74 -0
  49. package/src/templates/pages/_template.home.njk +109 -0
  50. package/src/templates/pages/_template.logged-out.njk +53 -0
  51. package/src/templates/pages/_template.logged-selector-fixed-headroom.njk +195 -0
  52. package/src/templates/pages/_template.logged-selector-fixed.njk +192 -0
  53. package/src/templates/pages/_template.logged-selector-subheader.njk +80 -0
  54. package/src/templates/pages/_template.logged-selector-with-sidebar.njk +29 -0
  55. package/src/templates/pages/_template.logged-selector.njk +195 -0
  56. package/src/templates/pages/_template.logged.njk +138 -0
  57. package/src/templates/pages/_template.mfe-iframe-content.njk +31 -0
  58. package/src/templates/pages/_template.mfe.njk +80 -0
  59. package/src/templates/pages/_template.test.njk +45 -0
  60. package/src/templates/pages/_template.with-header-advanced.njk +130 -0
@@ -0,0 +1,80 @@
1
+ {% set currentAppName = "AppName" %}
2
+
3
+ {% include "pages/_page.head.njk" %}
4
+
5
+ {% from "components/header/_macro.header.njk" import componentHeader %}
6
+ {% from "components/nav/_macro.nav.njk" import componentNav %}
7
+ {% from "components/details/_macro.details.njk" import componentDetails %}
8
+
9
+ <!-- template.mfe -->
10
+ <body>
11
+ <!-- pageSpinnerBlock -->
12
+ {% block pageSpinnerBlock %}
13
+ {% include "pages/_page.spinner.njk" %}
14
+ {% endblock %}
15
+ <!-- /pageSpinnerBlock -->
16
+ <!-- headerBlock -->
17
+ {% block headerBlock %}
18
+ {{ componentHeader({
19
+ "homepageUrl": "index.html",
20
+ "expandedLogo": true,
21
+ "subnav": {
22
+ "text": currentAppName
23
+ },
24
+ "classes": "relative z-40"
25
+ }) }}
26
+ {% endblock %}
27
+ <!-- /headerBlock -->
28
+ <!-- subheaderBlock -->
29
+ {% block subheaderBlock %}
30
+ {% endblock %}
31
+ <!-- /subheaderBlock -->
32
+ <main id="content" class="relative container mx-auto px-base">
33
+ <div class="pb-lg"></div>
34
+ <h1 class="c-h1">Título de página h1 (Ej: Accede al Servicio o Firma los documentos)</h1>
35
+ <!-- notificationHeaderBlock -->
36
+ {% block notificationHeaderBlock %}
37
+ {% include "pages/_page.notification-header.njk" %}
38
+ {% endblock %}
39
+ <!-- /notificationHeaderBlock -->
40
+ <!-- contentBlock -->
41
+ <!-- iframe -->
42
+ {% block contentBlock %}
43
+ {% include "pages/_page.spinner-block.njk" %}
44
+ {% endblock %}
45
+ <!-- /iframe -->
46
+ <!-- /contentBlock -->
47
+ <!-- notificationFooterBlock -->
48
+ {% block notificationFooterBlock %}
49
+ {% include "pages/_page.notification-footer.njk" %}
50
+ {% endblock %}
51
+ <!-- /notificationFooterBlock -->
52
+ </main>
53
+ <!-- footerBlock -->
54
+ {% block footerBlock %}
55
+ {% include "pages/_page.footer.njk" %}
56
+ {% endblock %}
57
+ <!-- /footerBlock -->
58
+ <!-- modalBlock -->
59
+ {% block modalBlock %}
60
+ {% endblock %}
61
+ <!-- /modalBlock -->
62
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js" integrity="sha512-dnvR4Aebv5bAtJxDunq3eE8puKAJrY9GBJYl9GC6lTOEC76s1dbDfJFcL9GyzpaDW4vlI/UjR8sKbc1j6Ynx6w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
63
+ <script type="text/javascript">
64
+
65
+ iFrameResize({
66
+ log : true, // Enable console logging
67
+ enablePublicMethods : true, // Enable methods within iframe hosted page
68
+ resizedCallback : function(messageData){ // Callback fn when resize is received
69
+ // console.log ("IFrame: "+ messageData.iframe.id + " Height: " + messageData.height + " Width: " + messageData.width + " Event type: " + messageData.type);
70
+ },
71
+ messageCallback : function(messageData){ // Callback fn when message is received
72
+ // console.log ("IFrame: "+ messageData.iframe.id +" Message: " + messageData.message);
73
+ },
74
+ closedCallback : function(id){ // Callback fn when iFrame is closed
75
+ // console.log ("IFrame: "+ id +" removed from page.");
76
+ }
77
+ });
78
+ </script>
79
+ {% include "pages/_page.foot.njk" %}
80
+
@@ -0,0 +1,45 @@
1
+ {% include "pages/_page.head.njk" %}
2
+
3
+ {% from "components/header/_macro.header.njk" import componentHeader %}
4
+ {% from "components/nav/_macro.nav.njk" import componentNav %}
5
+ {% from "components/details/_macro.details.njk" import componentDetails %}
6
+
7
+ <!-- template.logged-out -->
8
+ <body>
9
+ <!-- headerBlock -->
10
+ {% block headerBlock %}
11
+ {{ componentHeader({
12
+ "homepageUrl": "/",
13
+ "expandedLogo": true,
14
+ "classes": "relative z-40"
15
+ }) }}
16
+ {% endblock %}
17
+ <!-- /headerBlock -->
18
+ <!-- subheaderBlock -->
19
+ {% block subheaderBlock %}
20
+ {% endblock %}
21
+ <!-- /subheaderBlock -->
22
+ <main id="content" class="relative container mx-auto px-base">
23
+ <!-- notificationHeaderBlock -->
24
+ {% block notificationHeaderBlock %}
25
+ {% endblock %}
26
+ <!-- /notificationHeaderBlock -->
27
+ <!-- contentBlock -->
28
+ {% block contentBlock %}
29
+ {% endblock %}
30
+ <!-- /contentBlock -->
31
+ <!-- notificationFooterBlock -->
32
+ {% block notificationFooterBlock %}
33
+ {% endblock %}
34
+ <!-- /notificationFooterBlock -->
35
+ </main>
36
+ <!-- footerBlock -->
37
+ {% block footerBlock %}
38
+ {% include "pages/_page.footer.njk" %}
39
+ {% endblock %}
40
+ <!-- /footerBlock -->
41
+ <!-- modalBlock -->
42
+ {% block modalBlock %}
43
+ {% endblock %}
44
+ <!-- /modalBlock -->
45
+ {% include "pages/_page.foot.njk" %}
@@ -0,0 +1,130 @@
1
+ {% include "pages/_page.head.njk" %}
2
+
3
+ {% from "components/header-advanced/_macro.header-advanced.njk" import componentHeaderAdvanced %}
4
+ {% from "components/nav/_macro.nav.njk" import componentNav %}
5
+ {% from "components/details/_macro.details.njk" import componentDetails %}
6
+
7
+ <!-- template.with-header-advanced -->
8
+ <body>
9
+ <!-- pageSpinnerBlock -->
10
+ {% block pageSpinnerBlock %}
11
+ {% include "pages/_page.spinner.njk" %}
12
+ {% endblock %}
13
+ <!-- /pageSpinnerBlock -->
14
+ <!-- headerBlock -->
15
+ {% block headerBlock %}
16
+ {% call componentHeaderAdvanced({
17
+ "title": {
18
+ "homepageUrl": "index.html",
19
+ "text": "DESY"
20
+ },
21
+ "subtitle": {
22
+ "text": "Sistema de Diseño del Gobierno de Aragón."
23
+ },
24
+ "navigation": {
25
+ "items": [
26
+ {
27
+ "href": "#",
28
+ "text": "Inicio",
29
+ "active": true
30
+ },
31
+ {
32
+ "href": "#",
33
+ "text": "Estilos"
34
+ },
35
+ {
36
+ "href": "#",
37
+ "text": "Componentes"
38
+ },
39
+ {
40
+ "href": "#",
41
+ "text": "Plantillas"
42
+ },
43
+ {
44
+ "href": "#",
45
+ "text": "Librerías"
46
+ },
47
+ {
48
+ "href": "#",
49
+ "text": "Soporte"
50
+ }
51
+ ]
52
+ },
53
+ "offcanvas": {
54
+ "text": "Menú",
55
+ "textClose": "Cerrar menú"
56
+ },
57
+ "classes": "relative z-40"
58
+ }) %}
59
+ <nav class="w-full p-2" aria-labelledby="menu-movil-title">
60
+ <h2 id="menu-movil-title" class="sr-only">Menú principal</h2>
61
+ <h3 class="p-base text-base font-bold">DESY</h3>
62
+ {{ componentNav({
63
+ "idPrefix": "nav-mobile-pages",
64
+ "hasNav": false,
65
+ "items": [
66
+ {
67
+ "href": "#",
68
+ "text": "Inicio",
69
+ "active": true
70
+ },
71
+ {
72
+ "href": "#",
73
+ "text": "Estilos"
74
+ },
75
+ {
76
+ "href": "#",
77
+ "text": "Componentes"
78
+ },
79
+ {
80
+ "href": "#",
81
+ "text": "Plantillas"
82
+ },
83
+ {
84
+ "href": "#",
85
+ "text": "Librerías"
86
+ },
87
+ {
88
+ "href": "#",
89
+ "text": "Soporte"
90
+ }
91
+ ],
92
+ "attributes": {
93
+ "aria-label": "Lista de páginas"
94
+ }
95
+ }) }}
96
+ </nav>
97
+ {% endcall %}
98
+ {% endblock %}
99
+ <!-- /headerBlock -->
100
+ <!-- subheaderBlock -->
101
+ {% block subheaderBlock %}
102
+ {% endblock %}
103
+ <!-- /subheaderBlock -->
104
+ <main id="content" class="relative container mx-auto px-base">
105
+ <!-- notificationHeaderBlock -->
106
+ {% block notificationHeaderBlock %}
107
+ {% include "pages/_page.notification-header.njk" %}
108
+ {% endblock %}
109
+ <!-- /notificationHeaderBlock -->
110
+ <!-- contentBlock -->
111
+ {% block contentBlock %}
112
+ {% include "pages/_page.spinner-block.njk" %}
113
+ {% endblock %}
114
+ <!-- /contentBlock -->
115
+ <!-- notificationFooterBlock -->
116
+ {% block notificationFooterBlock %}
117
+ {% include "pages/_page.notification-footer.njk" %}
118
+ {% endblock %}
119
+ <!-- /notificationFooterBlock -->
120
+ </main>
121
+ <!-- footerBlock -->
122
+ {% block footerBlock %}
123
+ {% include "pages/_page.footer.njk" %}
124
+ {% endblock %}
125
+ <!-- /footerBlock -->
126
+ <!-- modalBlock -->
127
+ {% block modalBlock %}
128
+ {% endblock %}
129
+ <!-- /modalBlock -->
130
+ {% include "pages/_page.foot.njk" %}