desy-html 6.6.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/_include.template-header.njk +3 -0
- package/docs/ds/_ds.example.typography.njk +1 -1
- package/docs/ds/_ds.section.typography.njk +1 -1
- package/docs/index.html +11 -1
- package/package.json +12 -12
- 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/card/_examples.card.njk +11 -11
- package/src/templates/components/checkboxes/params.checkboxes.yaml +0 -10
- package/src/templates/components/collapsible/_examples.collapsible.njk +2 -2
- 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 +15 -13
- package/src/templates/components/header-advanced/params.header-advanced.yaml +0 -20
- package/src/templates/components/links-list/_examples.links-list.njk +9 -9
- 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 -15
- package/src/templates/components/radios/params.radios.yaml +0 -10
- package/src/templates/components/table/params.table.yaml +1 -1
- package/src/templates/components/table-advanced/_template.table-advanced.njk +1 -1
- package/src/templates/components/table-advanced/params.table-advanced.yaml +2 -1
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="prose
|
|
1
|
+
<div class="prose prose-base max-w-none mx-auto">
|
|
2
2
|
<p class="lead">Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.</p>
|
|
3
3
|
<p>
|
|
4
4
|
By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
title: "Ejemplo:"
|
|
19
19
|
}) }}
|
|
20
20
|
<div class="pb-xl"></div>
|
|
21
|
-
<div class="prose prose-
|
|
21
|
+
<div class="prose prose-base max-w-none mx-auto">
|
|
22
22
|
<p class="lead">Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.</p>
|
|
23
23
|
<p>
|
|
24
24
|
By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you
|
package/docs/index.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<li>Ejecuta primero <code>npm install</code></li>
|
|
17
17
|
<li>Ejecuta <code>npm run dev</code> para escuchar cambios en los archivos njk, css y html, para renderizarlos y recargar el servidor local con browser-sync.</li>
|
|
18
18
|
<li>Usa <code>npm run prod</code> para generar el CSS y minificarlo.</li>
|
|
19
|
-
<li>Dependencias: Node.js
|
|
19
|
+
<li>Dependencias: Node.js v16.17.1, Tailwind CSS y AutoPrefixer configurado en PostCSS. Versión y lista de dependencias completa en: <a href="package.json">Ver package.json</a></li>
|
|
20
20
|
</ul>
|
|
21
21
|
|
|
22
22
|
<h2>¿Cómo comienzo un proyecto que usa los componentes de desy-html?</h2>
|
|
@@ -38,6 +38,16 @@
|
|
|
38
38
|
|
|
39
39
|
<h2>Changelog (English)</h2>
|
|
40
40
|
<p>What's new in the latest version of desy-html</p>
|
|
41
|
+
<h3>v.7.0.1</h3>
|
|
42
|
+
<ul class="text-sm">
|
|
43
|
+
<li>Accesibility and docs improvements.</li>
|
|
44
|
+
</ul>
|
|
45
|
+
<h3>v.7.0.0</h3>
|
|
46
|
+
<ul class="text-sm">
|
|
47
|
+
<li>Updated to node 16.17.1 and npm 8.15.0. Updated to latest packages.</li>
|
|
48
|
+
<li>Docs improvements.</li>
|
|
49
|
+
<li>Bug fixes in Tree and Toggle.</li>
|
|
50
|
+
</ul>
|
|
41
51
|
<h3>v.6.6.0</h3>
|
|
42
52
|
<ul class="text-sm">
|
|
43
53
|
<li>Removed Backstop.js visual regression testing library to make the library lighter. We will use it only in test branch.</li>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desy-html",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "desy-html contains the code you need to start building a user interface for Gobierno de Aragón government webapps.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Desy (SDA Servicios Digitales de Aragón)",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://desy.aragon.es/",
|
|
22
22
|
"engines": {
|
|
23
|
-
"npm": ">=
|
|
24
|
-
"node": ">=
|
|
23
|
+
"npm": ">=8.15.0",
|
|
24
|
+
"node": ">=16.17.1"
|
|
25
25
|
},
|
|
26
26
|
"main": "src/js/index.js",
|
|
27
27
|
"scripts": {
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"backstop-test:test": "backstop test --config=test/backstop_config/backstop.config.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tailwindcss/aspect-ratio": "^0.4.
|
|
36
|
-
"@tailwindcss/forms": "^0.5.
|
|
37
|
-
"@tailwindcss/typography": "^0.5.
|
|
35
|
+
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
36
|
+
"@tailwindcss/forms": "^0.5.3",
|
|
37
|
+
"@tailwindcss/typography": "^0.5.7",
|
|
38
38
|
"autoprefixer": "^10.0.2",
|
|
39
|
-
"hex-rgb": "^
|
|
39
|
+
"hex-rgb": "^5.0.0",
|
|
40
40
|
"npm-run-all": "^4.1.5",
|
|
41
41
|
"postcss": "^8.2.15",
|
|
42
|
-
"postcss-cli": "^
|
|
43
|
-
"postcss-import": "^
|
|
44
|
-
"tailwindcss": "^3.
|
|
42
|
+
"postcss-cli": "^10.0.0",
|
|
43
|
+
"postcss-import": "^15.0.0",
|
|
44
|
+
"tailwindcss": "^3.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"browser-sync": "^2.26.13",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"gulp-clean-css": "^4.3.0",
|
|
51
51
|
"gulp-footer": "^2.0.2",
|
|
52
52
|
"gulp-nunjucks-render": "^2.2.3",
|
|
53
|
-
"gulp-postcss": "^9.0.
|
|
53
|
+
"gulp-postcss": "^9.0.1",
|
|
54
54
|
"gulp-strip-css-comments": "^2.0.0"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"win-node-env": "^0.
|
|
57
|
+
"win-node-env": "^0.6.1"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/src/js/aria/toggle.js
CHANGED
|
@@ -5,6 +5,9 @@ export function Toggle(aria) {
|
|
|
5
5
|
this.rootEl = domNode;
|
|
6
6
|
this.buttonEl = this.rootEl.querySelector('.c-toggle__button');
|
|
7
7
|
this.buttonEl.addEventListener('click', this.toggle.bind(this));
|
|
8
|
+
if(this.buttonEl.getAttribute('aria-pressed') === 'true' || this.buttonEl.getAttribute('aria-checked') === 'true') {
|
|
9
|
+
this.buttonEl.click()
|
|
10
|
+
}
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
toggle(event) {
|
package/src/js/aria/treeitem.js
CHANGED
|
@@ -33,6 +33,11 @@ export function Treeitem(aria) {
|
|
|
33
33
|
this.domNode = node;
|
|
34
34
|
this.label = node.textContent.trim();
|
|
35
35
|
|
|
36
|
+
if(this.domNode.getAttribute("aria-current")) {
|
|
37
|
+
var getLabel = this.domNode.querySelector('label')
|
|
38
|
+
getLabel.setAttribute("aria-current", "page")
|
|
39
|
+
}
|
|
40
|
+
|
|
36
41
|
if (node.getAttribute('aria-label')) {
|
|
37
42
|
this.label = node.getAttribute('aria-label').trim();
|
|
38
43
|
}
|
|
@@ -79,10 +84,12 @@ export function Treeitem(aria) {
|
|
|
79
84
|
this.domNode.setAttribute('role', 'treeitem');
|
|
80
85
|
}
|
|
81
86
|
|
|
82
|
-
this.domNode.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
if(!this.domNode.getAttribute('disabled')){
|
|
88
|
+
this.domNode.addEventListener('keydown', this.handleKeydown.bind(this));
|
|
89
|
+
this.domNode.addEventListener('click', this.handleClick.bind(this));
|
|
90
|
+
this.domNode.addEventListener('focus', this.handleFocus.bind(this));
|
|
91
|
+
this.domNode.addEventListener('blur', this.handleBlur.bind(this));
|
|
92
|
+
}
|
|
86
93
|
|
|
87
94
|
if (!this.isExpandable) {
|
|
88
95
|
this.domNode.addEventListener('mouseover', this.handleMouseOver.bind(this));
|
|
@@ -226,6 +226,15 @@
|
|
|
226
226
|
"href": "/"
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
|
+
{
|
|
230
|
+
"name": "forwardbutton",
|
|
231
|
+
"description": "Transparent with right icon",
|
|
232
|
+
"data": {
|
|
233
|
+
"html": 'Ver 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>',
|
|
234
|
+
"classes": "c-button--transparent",
|
|
235
|
+
"href": "/"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
229
238
|
{
|
|
230
239
|
"name": "button with only icon",
|
|
231
240
|
"data": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"data": {
|
|
100
100
|
"classes": "lg:w-1/3",
|
|
101
101
|
"containerClasses": "p-base border border-neutral-base rounded",
|
|
102
|
-
"caller": defaultContent
|
|
102
|
+
"caller": defaultContent
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
{
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"data": {
|
|
108
108
|
"classes": "lg:w-1/3",
|
|
109
109
|
"containerClasses": "p-base border border-neutral-base rounded",
|
|
110
|
-
"caller": withIconContent
|
|
110
|
+
"caller": withIconContent
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
{
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"data": {
|
|
116
116
|
"classes": "lg:w-1/3",
|
|
117
117
|
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
118
|
-
"caller": withButton
|
|
118
|
+
"caller": withButton
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"data": {
|
|
124
124
|
"classes": "lg:w-1/3",
|
|
125
125
|
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
126
|
-
"caller": withButton
|
|
126
|
+
"caller": withButton,
|
|
127
127
|
"super": {
|
|
128
128
|
"backgroundFullColor": "transparent",
|
|
129
129
|
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"data": {
|
|
141
141
|
"classes": "lg:w-1/3",
|
|
142
142
|
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
143
|
-
"caller": withButton
|
|
143
|
+
"caller": withButton,
|
|
144
144
|
"sub": {
|
|
145
145
|
"backgroundFullColor": "transparent",
|
|
146
146
|
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"data": {
|
|
159
159
|
"classes": "lg:w-2/3",
|
|
160
160
|
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
161
|
-
"caller": withButton
|
|
161
|
+
"caller": withButton,
|
|
162
162
|
"super": {
|
|
163
163
|
"backgroundFullColor": "transparent",
|
|
164
164
|
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"data": {
|
|
186
186
|
"classes": "lg:w-2/3",
|
|
187
187
|
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
188
|
-
"caller": withButton
|
|
188
|
+
"caller": withButton,
|
|
189
189
|
"super": {
|
|
190
190
|
"backgroundFullColor": "transparent",
|
|
191
191
|
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
@@ -211,14 +211,14 @@
|
|
|
211
211
|
"data": {
|
|
212
212
|
"classes": "lg:w-1/2",
|
|
213
213
|
"containerClasses": "py-lg border-t-8 border-neutral-dark",
|
|
214
|
-
"caller": linksContent
|
|
214
|
+
"caller": linksContent
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"name": "home block with buttons",
|
|
219
219
|
"data": {
|
|
220
220
|
"containerClasses": "p-lg bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
221
|
-
"caller": areaPersonalContent
|
|
221
|
+
"caller": areaPersonalContent,
|
|
222
222
|
"super": {
|
|
223
223
|
"backgroundFullColor": "transparent",
|
|
224
224
|
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.png&text=Imagen",
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"data": {
|
|
246
246
|
"classes": "lg:w-3/4",
|
|
247
247
|
"containerClasses": "p-lg bg-neutral-lighter",
|
|
248
|
-
"caller": postContent
|
|
248
|
+
"caller": postContent,
|
|
249
249
|
"super": {
|
|
250
250
|
"backgroundFullColor": "transparent",
|
|
251
251
|
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"data": {
|
|
272
272
|
"classes": "lg:w-1/4",
|
|
273
273
|
"containerClasses": "p-base bg-neutral-lighter",
|
|
274
|
-
"caller": withIconContent
|
|
274
|
+
"caller": withIconContent
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
] %}
|
|
@@ -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
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"name": "with html",
|
|
22
22
|
"data": {
|
|
23
23
|
"id": "collapsible-html-example",
|
|
24
|
-
"headerText": "
|
|
25
|
-
"html":
|
|
24
|
+
"headerText": "Help with nationality",
|
|
25
|
+
"html": '<p>We need to know <strong>your nationality</strong> so we can work out which elections you’re entitled to vote in. If you can’t provide your nationality, you’ll have to send copies of identity documents through the post.</p>'
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
] %}
|
|
@@ -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
|
{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<a href="{{ params.homepageUrl | default('/') }}" class="flex flex-wrap mr-4 text-black focus:outline-none focus:shadow-outline-black">
|
|
21
21
|
{% if not params.noLogo %}
|
|
22
22
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 32" width="144" height="32" class="fill-current {% if params.expandedLogo %} hidden sm:block{% else %} hidden{% endif %}" aria-label="Gobierno de Aragón. Ir a la página de inicio" role="img"><defs><clipPath id="b-logo-expanded"><path fill="rgb(252, 228, 0)" d="M0 0h31.509v31.495H0z"/></clipPath><clipPath id="a-logo-expanded"><path d="M0 0h144v32H0z"/></clipPath></defs><g clip-path="url(#a-logo-expanded)"><path fill="rgb(252, 228, 0)" d="M0 .205h31.509V31.7H0z"/><g clip-path="url(#b-logo-expanded)" transform="translate(0 .205)"><g fill="#dd171b" fill-rule="evenodd"><path d="m31.509 6.048-7.568 1.515a14.545 14.545 0 0 1-7.905-1.025 15.04 15.04 0 0 0-5-1.817 12.536 12.536 0 0 0-3.535-.011l-5.051.9c-.8.156-1.639.3-2.453.434V.315A7.1 7.1 0 0 1 3.888.226a9.926 9.926 0 0 1 2.085.936 17.6 17.6 0 0 0 4.293 1.962 13.92 13.92 0 0 0 6.6-.034l4.728-.858 4.939-.892 4.97-1.024ZM6.602 24.229a14.592 14.592 0 0 1 9.555 1.014 12.178 12.178 0 0 0 8.307 1.5l7.044-1.271v5.706a8.247 8.247 0 0 1-3.008.256 6.4 6.4 0 0 1-1.594-.457l-3.657-1.917a12.217 12.217 0 0 0-7.092-.825L1.026 31.011 0 31.177v-5.706l1.26-.256 3.312-.613c.669-.123 1.371-.245 2.029-.379ZM-.003 15.077v-4.391l13.027-2.377a15.5 15.5 0 0 1 9.11 1.638 12.535 12.535 0 0 0 8.474.925l.9-.189v4.391l-2.874-1.639a12.286 12.286 0 0 0-6.835-1.014l-8.006 1.46c-.959.179-2.877.524-2.877.524l-7.292 1.349a5.152 5.152 0 0 1-3.627-.677ZM31.509 16.583v4.324L18.6 23.282a15.5 15.5 0 0 1-9.11-1.638 12.532 12.532 0 0 0-8.474-.925l-1.015.19v-4.324l2.988 1.572a12.291 12.291 0 0 0 6.835 1.014l8.006-1.46c.959-.178 2.877-.524 2.877-.524l7.292-1.349a5.142 5.142 0 0 1 3.51.745Z"/></g></g><path d="M38.2 28.807v-8.551h1.393c2.893 0 4.478 1.522 4.478 4.286 0 2.829-1.521 4.265-4.5 4.265Zm10.4-11.4v14.294h9.47v-2.893h-6.277v-3.257h6.214v-2.893h-6.214v-2.379h6.277v-2.871Zm21.751 0-5.206 14.294h3.385l1.542-4.35h4.371l1.521 4.35h3.45L74.1 17.407Zm1.885 2.956-1.328 4.223h2.679Zm42.341 4.03h-3.192v4.5a4.206 4.206 0 0 1-1.371.193 4.251 4.251 0 0 1-4.242-4.5 4.443 4.443 0 0 1 4.735-4.65 7.481 7.481 0 0 1 4.071 1.243v-3.257a11.674 11.674 0 0 0-4.349-.857c-4.628 0-7.841 3.107-7.841 7.564 0 4.393 3.149 7.372 7.841 7.372a12.977 12.977 0 0 0 4.349-.75Zm16.132.129a7.424 7.424 0 1 0-7.391 7.436 7.122 7.122 0 0 0 7.393-7.436Zm-7.456-4.458c-2.4 0-4.006 1.822-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.627-4.501-4.048-4.501Zm8.689-2.657v14.294h3.257v-9.108l5.762 9.108h3.021V17.407h-3.256v8.889l-5.532-8.889ZM46.922 7.33h-3.193v4.5a4.335 4.335 0 0 1-5.613-4.307 4.443 4.443 0 0 1 4.735-4.65 7.487 7.487 0 0 1 4.071 1.243V.859a11.674 11.674 0 0 0-4.35-.858c-4.628 0-7.841 3.107-7.841 7.565 0 4.393 3.15 7.371 7.841 7.371a12.99 12.99 0 0 0 4.35-.75Zm16.116.128a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.396-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM64.107.344v14.293h5.914c3.15 0 4.992-1.565 4.992-4.243a3.717 3.717 0 0 0-2.978-3.728 3.133 3.133 0 0 0 1.95-2.936c.021-2.272-1.521-3.386-4.606-3.386Zm4.757 5.336c1.393 0 1.95-.386 1.95-1.35 0-.921-.536-1.264-2.057-1.264h-1.393V5.68Zm.429 6.043c1.585 0 2.271-.493 2.271-1.651 0-1.2-.707-1.671-2.4-1.671h-1.8v3.322ZM78.879.344h-3.192v14.293h3.192Zm1.39 0v14.293h9.47v-2.893h-6.278V8.487h6.214V5.594h-6.214V3.216h6.278V.345Zm50.463 7.114a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.395-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM97.917 24.585l-1.35-4.223-1.328 4.223ZM83.249 31.7v-5.872h.407c2.057 0 2.271.214 3.642 3.75a7.159 7.159 0 0 0 .3.729l.278.664a6.4 6.4 0 0 0 .343.729h4.641l1.543-4.35h4.371l1.521 4.35h3.45l-5.314-14.294h-3.749L90.46 28.997c-.3-.622-.642-1.371-1.04-2.291a3.042 3.042 0 0 0-1.907-2.014 3.416 3.416 0 0 0 2.614-3.429c0-2.571-1.693-3.857-5.1-3.857H79.97V31.7Zm0-8.572h1.414c1.371 0 2.057-.493 2.057-1.521s-.622-1.478-2.014-1.478h-1.457Zm11.156-8.492V8.764h.407c2.057 0 2.271.214 3.642 3.75a6.982 6.982 0 0 0 .3.729l.278.665a6.37 6.37 0 0 0 .342.729h6.432l.018-9.169 5.745 9.169h3.021V.344h-3.256l.014 8.769-5.542-8.769h-3.257v13.3a29.76 29.76 0 0 1-1.975-4 3.043 3.043 0 0 0-1.907-2.014 3.415 3.415 0 0 0 2.614-3.428c0-2.572-1.693-3.857-5.1-3.857h-5.054v14.293Zm0-8.572h1.412c1.371 0 2.056-.493 2.056-1.521s-.621-1.478-2.013-1.478h-1.457Zm-59.44 11.342V31.7h4.778c4.842 0 7.692-2.657 7.692-7.158 0-4.479-2.914-7.136-7.863-7.136Z" fill="#161615" fill-rule="evenodd"/></g></svg>
|
|
23
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" class="w-8 h-8 fill-current {%- if params.expandedLogo %} sm:hidden{% endif %}"
|
|
23
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" class="w-8 h-8 fill-current {%- if params.expandedLogo %} sm:hidden{% endif %}" aria-label="Gobierno de Aragón. Ir a la página de inicio" role="img"><defs><clipPath id="b-logo-mini"><path fill="rgb(252, 228, 0)" d="M0 0h32v32.001H0z"/></clipPath><clipPath id="a-logo-mini"><path d="M0 0h32v32H0z"/></clipPath></defs><g clip-path="url(#a-logo-mini)"><path fill="rgb(252, 228, 0)" d="M0 .305h32v32.001H0z"/><g clip-path="url(#b-logo-mini)" transform="translate(0 .305)"><g fill="#dd171b" fill-rule="evenodd"><path d="m31.997 6.145-7.686 1.539a14.764 14.764 0 0 1-8.028-1.042 15.267 15.267 0 0 0-5.073-1.846 12.725 12.725 0 0 0-3.59-.011l-5.13.918a94.41 94.41 0 0 1-2.491.442V.324a7.213 7.213 0 0 1 3.952-.09 10.087 10.087 0 0 1 2.118.951 17.859 17.859 0 0 0 4.36 1.993 14.13 14.13 0 0 0 6.7-.034l4.8-.872 5.016-.906 5.048-1.04ZM6.705 24.619a14.812 14.812 0 0 1 9.7 1.03 12.363 12.363 0 0 0 8.437 1.529l7.154-1.291v5.8a8.37 8.37 0 0 1-3.055.26 6.509 6.509 0 0 1-1.619-.464l-3.714-1.948a12.4 12.4 0 0 0-7.2-.838l-15.366 2.82L0 31.686v-5.8l1.28-.26 3.363-.623c.679-.125 1.393-.249 2.061-.385ZM-.003 15.32v-4.462l13.23-2.417a15.734 15.734 0 0 1 9.252 1.665 12.723 12.723 0 0 0 8.606.94l.914-.192v4.462L29.08 13.65a12.472 12.472 0 0 0-6.941-1.031l-8.131 1.483c-.974.182-2.921.532-2.921.532l-7.406 1.371a5.23 5.23 0 0 1-3.684-.685ZM31.997 16.851v4.393l-13.11 2.413a15.735 15.735 0 0 1-9.252-1.665 12.721 12.721 0 0 0-8.606-.94l-1.03.193v-4.394l3.035 1.6a12.476 12.476 0 0 0 6.941 1.03l8.13-1.483c.974-.182 2.922-.532 2.922-.532l7.406-1.371a5.219 5.219 0 0 1 3.564.756Z"/></g></g></g></svg>
|
|
24
24
|
{% endif %}
|
|
25
25
|
{{ params.customLogoHtml | safe if params.customLogoHtml }}
|
|
26
26
|
</a>
|
|
@@ -278,23 +278,3 @@ params:
|
|
|
278
278
|
type: nunjucks-block
|
|
279
279
|
required: false
|
|
280
280
|
description: Content inside the offcanvas. 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 header component in a `call` block.
|
|
281
|
-
|
|
282
|
-
previewLayout: full-width
|
|
283
|
-
accessibilityCriteria: |
|
|
284
|
-
Text and links in the Header must:
|
|
285
|
-
- have a text contrast ratio higher than 4.5:1 against the background colour to meet [WCAG AA](https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast)
|
|
286
|
-
|
|
287
|
-
Links in the Header must:
|
|
288
|
-
- accept focus
|
|
289
|
-
- be focusable with a keyboard
|
|
290
|
-
- be usable with a keyboard
|
|
291
|
-
- indicate when they have focus
|
|
292
|
-
- change in appearance when touched (in the touch-down state)
|
|
293
|
-
- change in appearance when hovered
|
|
294
|
-
- have visible text
|
|
295
|
-
|
|
296
|
-
Images in the Header must:
|
|
297
|
-
- be presentational when linked to from accompanying text (crown icon).
|
|
298
|
-
|
|
299
|
-
Landmarks and Roles in the Header should:
|
|
300
|
-
- have a role of `banner` at the root of the component (<header>) (https://www.w3.org/TR/wai-aria-1.1/#banner)
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
|
|
272
272
|
{% set exampleOffcanvas %}
|
|
273
273
|
<nav class="w-full p-2" aria-label="Menú móvil">
|
|
274
|
-
<h3 class="p-base text-base font-bold">
|
|
274
|
+
<h3 class="p-base text-base font-bold">Gestor de expedientes</h3>
|
|
275
275
|
{{ componentNav({
|
|
276
276
|
"idPrefix": "nav-mobile-pages",
|
|
277
277
|
"hasNav": false,
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"items": [
|
|
328
328
|
{
|
|
329
329
|
"href": "#",
|
|
330
|
-
"text": "
|
|
330
|
+
"text": "Gestor de expedientes",
|
|
331
331
|
"active": true
|
|
332
332
|
},
|
|
333
333
|
{
|
|
@@ -549,8 +549,8 @@
|
|
|
549
549
|
{% set customNavigationHtmlItainnovaHero %}
|
|
550
550
|
<div class="py-xl lg:py-3xl text-white lg:text-center">
|
|
551
551
|
<div class="lg:w-2/3 lg:mx-auto">
|
|
552
|
-
<h1 class="
|
|
553
|
-
<div class="
|
|
552
|
+
<h1 class="font-bold text-lg leading-tight lg:text-4xl mb-sm">Centro tecnológico referencia en investigación e innovación tecnológica</h1>
|
|
553
|
+
<div class="text-base lg:text-lg mb-0">Damos soporte a las empresas a través de servicios, formación y aumentando su competitividad a través de la innovación.</div>
|
|
554
554
|
</div>
|
|
555
555
|
</div>
|
|
556
556
|
{% endset %}
|
|
@@ -598,13 +598,15 @@
|
|
|
598
598
|
{% endset %}
|
|
599
599
|
|
|
600
600
|
{% set buscador %}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
"
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
601
|
+
<form role="search">
|
|
602
|
+
{{ componentSearchbar({
|
|
603
|
+
"id": "searchbar-2",
|
|
604
|
+
"label": {
|
|
605
|
+
"text": "Buscar"
|
|
606
|
+
},
|
|
607
|
+
"placeholder": "Buscar en este sitio"
|
|
608
|
+
}) }}
|
|
609
|
+
</form>
|
|
608
610
|
{% endset %}
|
|
609
611
|
|
|
610
612
|
{% set exampleComponent = "header-advanced" %}
|
|
@@ -919,9 +921,9 @@
|
|
|
919
921
|
"headerMini": {
|
|
920
922
|
"customNavigationHtml": '<div class="flex-1 text-right">' + logoUE | safe +'</div>'
|
|
921
923
|
},
|
|
922
|
-
"
|
|
924
|
+
"sub": {
|
|
923
925
|
"customNavigationHtml": '<div class="hidden lg:grid grid-cols-2 lg:grid-cols-4 gap-xl h-full"><div class="col-span-2 lg:col-span-3"></div><div class="col-span-2 lg:col-span-1 flex items-center justify-end">'+ buscador | safe +'</div></div>',
|
|
924
|
-
"classes": "hidden lg:block relative -
|
|
926
|
+
"classes": "hidden lg:block relative -top-32 h-0"
|
|
925
927
|
},
|
|
926
928
|
"title": {
|
|
927
929
|
"homepageUrl": "/",
|
|
@@ -336,23 +336,3 @@ params:
|
|
|
336
336
|
type: nunjucks-block
|
|
337
337
|
required: false
|
|
338
338
|
description: Content inside the offcanvas. 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 header component in a `call` block.
|
|
339
|
-
|
|
340
|
-
previewLayout: full-width
|
|
341
|
-
accessibilityCriteria: |
|
|
342
|
-
Text and links in the Header must:
|
|
343
|
-
- have a text contrast ratio higher than 4.5:1 against the background colour to meet [WCAG AA](https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast)
|
|
344
|
-
|
|
345
|
-
Links in the Header must:
|
|
346
|
-
- accept focus
|
|
347
|
-
- be focusable with a keyboard
|
|
348
|
-
- be usable with a keyboard
|
|
349
|
-
- indicate when they have focus
|
|
350
|
-
- change in appearance when touched (in the touch-down state)
|
|
351
|
-
- change in appearance when hovered
|
|
352
|
-
- have visible text
|
|
353
|
-
|
|
354
|
-
Images in the Header must:
|
|
355
|
-
- be presentational when linked to from accompanying text (crown icon).
|
|
356
|
-
|
|
357
|
-
Landmarks and Roles in the Header should:
|
|
358
|
-
- have a role of `banner` at the root of the component (<header>) (https://www.w3.org/TR/wai-aria-1.1/#banner)
|