desy-html 4.2.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/_include.template-header.njk +51 -47
- package/docs/_macro.example-render.njk +4 -0
- package/docs/componentes.html +3 -0
- package/docs/ds/_ds.example.header.njk +1 -1
- package/docs/ds/_ds.example.menu-vertical.njk +3 -3
- package/docs/ds/_ds.example.menubar-en-uso.njk +6 -18
- package/docs/ds/_ds.example.menubar-variaciones.njk +51 -121
- package/docs/examples-tree.html +5 -0
- package/docs/index.html +18 -0
- package/package.json +1 -1
- package/src/css/styles.css +1 -0
- package/src/js/aria/tree.js +245 -0
- package/src/js/aria/treeitem.js +260 -0
- package/src/js/desy-html.js +28 -0
- package/src/js/index.js +3 -1
- package/src/templates/components/description-list/_examples.description-list.njk +63 -0
- package/src/templates/components/dropdown/params.dropdown.yaml +6 -6
- package/src/templates/components/header/_examples.header.njk +35 -3
- package/src/templates/components/header/_template.header.header__dropdown.njk +7 -2
- package/src/templates/components/header/_template.header.header__offcanvas.njk +1 -1
- package/src/templates/components/header/_template.header.header__subnav.njk +17 -13
- package/src/templates/components/header/_template.header.njk +42 -30
- package/src/templates/components/header/params.header.yaml +45 -5
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +2 -1
- package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +1 -1
- package/src/templates/components/menubar/_examples.menubar.njk +349 -143
- package/src/templates/components/menubar/_styles.menubar.css +1 -0
- package/src/templates/components/menubar/_template.menubar.njk +2 -2
- package/src/templates/components/menubar/params.menubar.yaml +4 -0
- package/src/templates/components/tree/_examples.tree.njk +987 -0
- package/src/templates/components/tree/_macro.tree.njk +3 -0
- package/src/templates/components/tree/_styles.tree.css +45 -0
- package/src/templates/components/tree/_template.tree.njk +175 -0
- package/src/templates/components/tree/params.tree.yaml +159 -0
|
@@ -67,192 +67,196 @@
|
|
|
67
67
|
idPrefix: "navegacion-ejemplos-offcanvas",
|
|
68
68
|
items: [
|
|
69
69
|
{
|
|
70
|
-
href: "
|
|
70
|
+
href: "examples-accordion.html",
|
|
71
71
|
text: "Accordion"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
href: "
|
|
74
|
+
href: "examples-alert.html",
|
|
75
75
|
text: "Alert"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
href: "
|
|
78
|
+
href: "examples-breadcrumbs.html",
|
|
79
79
|
text: "Breadcrumbs"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
href: "
|
|
82
|
+
href: "examples-button.html",
|
|
83
83
|
text: "Button"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
href: "
|
|
86
|
+
href: "examples-button-loader.html",
|
|
87
87
|
text: "Button loader"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
href: "
|
|
90
|
+
href: "examples-character-count.html",
|
|
91
91
|
text: "Character count"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
href: "
|
|
94
|
+
href: "examples-checkboxes.html",
|
|
95
95
|
text: "Checkboxes"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
href: "
|
|
98
|
+
href: "examples-collapsible.html",
|
|
99
99
|
text: "Collapsible"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
href: "
|
|
102
|
+
href: "examples-dialog.html",
|
|
103
103
|
text: "Dialog"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
href: "
|
|
106
|
+
href: "examples-date-input.html",
|
|
107
107
|
text: "Date input"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
href: "
|
|
110
|
+
href: "examples-description-list.html",
|
|
111
111
|
text: "Description list"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
href: "
|
|
114
|
+
href: "examples-details.html",
|
|
115
115
|
text: "Details"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
href: "
|
|
118
|
+
href: "examples-dropdown.html",
|
|
119
119
|
text: "Dropdown"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
href: "
|
|
122
|
+
href: "examples-error-message.html",
|
|
123
123
|
text: "Error message"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
href: "
|
|
126
|
+
href: "examples-error-summary.html",
|
|
127
127
|
text: "Error summary"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
href: "
|
|
130
|
+
href: "examples-fieldset.html",
|
|
131
131
|
text: "Fieldset"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
href: "
|
|
134
|
+
href: "examples-file-upload.html",
|
|
135
135
|
text: "File upload"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
href: "
|
|
138
|
+
href: "examples-footer.html",
|
|
139
139
|
text: "Footer"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
href: "
|
|
142
|
+
href: "examples-header.html",
|
|
143
143
|
text: "Header"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
href: "
|
|
146
|
+
href: "examples-hint.html",
|
|
147
147
|
text: "Hint"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
href: "
|
|
150
|
+
href: "examples-input.html",
|
|
151
151
|
text: "Input"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
href: "
|
|
154
|
+
href: "examples-input-group.html",
|
|
155
155
|
text: "Input group"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
href: "
|
|
158
|
+
href: "examples-item.html",
|
|
159
159
|
text: "Item"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
href: "
|
|
162
|
+
href: "examples-label.html",
|
|
163
163
|
text: "Label"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
href: "
|
|
166
|
+
href: "examples-listbox.html",
|
|
167
167
|
text: "Listbox"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
href: "
|
|
170
|
+
href: "examples-listbox.html",
|
|
171
171
|
text: "Listbox"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
href: "
|
|
174
|
+
href: "examples-media-object.html",
|
|
175
175
|
text: "Media object"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
href: "
|
|
178
|
+
href: "examples-menu-horizontal.html",
|
|
179
179
|
text: "Menu horizontal"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
href: "
|
|
182
|
+
href: "examples-menu-vertical.html",
|
|
183
183
|
text: "Menu vertical"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
href: "
|
|
186
|
+
href: "examples-menubar.html",
|
|
187
187
|
text: "Menubar"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
href: "
|
|
190
|
+
href: "examples-modal.html",
|
|
191
191
|
text: "Modal"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
href: "
|
|
194
|
+
href: "examples-nav.html",
|
|
195
195
|
text: "Nav"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
href: "
|
|
198
|
+
href: "examples-notification.html",
|
|
199
199
|
text: "Notification"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
href: "
|
|
202
|
+
href: "examples-pagination.html",
|
|
203
203
|
text: "Pagination"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
href: "
|
|
206
|
+
href: "examples-pill.html",
|
|
207
207
|
text: "Pill"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
href: "
|
|
210
|
+
href: "examples-radios.html",
|
|
211
211
|
text: "Radios"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
href: "
|
|
214
|
+
href: "examples-searchbar.html",
|
|
215
215
|
text: "Searchbar"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
href: "
|
|
218
|
+
href: "examples-select.html",
|
|
219
219
|
text: "Select"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
href: "
|
|
222
|
+
href: "examples-skip-link.html",
|
|
223
223
|
text: "Skip link"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
href: "
|
|
226
|
+
href: "examples-spinner.html",
|
|
227
227
|
text: "Spinner"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
href: "
|
|
230
|
+
href: "examples-status.html",
|
|
231
231
|
text: "Status"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
href: "
|
|
234
|
+
href: "examples-status-item.html",
|
|
235
235
|
text: "Status item"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
|
-
href: "
|
|
238
|
+
href: "examples-table.html",
|
|
239
239
|
text: "Table"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
href: "
|
|
242
|
+
href: "examples-table-advanced.html",
|
|
243
243
|
text: "Table advanced"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
href: "
|
|
246
|
+
href: "examples-tabs.html",
|
|
247
247
|
text: "Tabs"
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
href: "
|
|
250
|
+
href: "examples-textarea.html",
|
|
251
251
|
text: "Textarea"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
href: "
|
|
254
|
+
href: "examples-tooltip.html",
|
|
255
255
|
text: "Tooltip"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
href: "/examples-tree.html",
|
|
259
|
+
text: "Tree"
|
|
256
260
|
}],
|
|
257
261
|
attributes: {
|
|
258
262
|
"aria-label": "Navegación ejemplos"
|
|
@@ -91,6 +91,8 @@ import componentTabs %}
|
|
|
91
91
|
import componentTextarea %}
|
|
92
92
|
{% from "components/tooltip/_macro.tooltip.njk"
|
|
93
93
|
import componentTooltip %}
|
|
94
|
+
{% from "components/tree/_macro.tree.njk"
|
|
95
|
+
import componentTree %}
|
|
94
96
|
|
|
95
97
|
{% macro exampleRender(data) %}
|
|
96
98
|
{% set exampleComponent = data.data.exampleComponent %}
|
|
@@ -206,6 +208,8 @@ import componentTooltip %}
|
|
|
206
208
|
{{ componentTextarea(example.data) }}
|
|
207
209
|
{% elseif exampleComponent == "tooltip" %}
|
|
208
210
|
{{ componentTooltip(example.data) }}
|
|
211
|
+
{% elseif exampleComponent == "tree" %}
|
|
212
|
+
{{ componentTree(example.data) }}
|
|
209
213
|
{% endif %}
|
|
210
214
|
<div class="mt-xl py-base">
|
|
211
215
|
<span x-text="textShow" @click="isOpenCode = !isOpenCode; isOpenCode ? textShow = 'Hide code' : textShow = 'Show code'" class="text-primary-base hover:text-primary-dark underline cursor-pointer">Show code</span>
|
package/docs/componentes.html
CHANGED
|
@@ -148,6 +148,9 @@
|
|
|
148
148
|
<div>
|
|
149
149
|
<p class="c-paragraph-base"><a href="examples-tooltip.html" class="c-link">Tooltip</a></p>
|
|
150
150
|
</div>
|
|
151
|
+
<div>
|
|
152
|
+
<p class="c-paragraph-base"><a href="examples-tree.html" class="c-link">Tree</a></p>
|
|
153
|
+
</div>
|
|
151
154
|
</div>
|
|
152
155
|
<div class="pb-2xl"></div>
|
|
153
156
|
{% endblock %}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
30
|
"attributes": {
|
|
31
|
-
"aria-label": "
|
|
31
|
+
"aria-label": "Árbol"
|
|
32
32
|
}
|
|
33
33
|
}) }}
|
|
34
34
|
</div>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
"attributes": {
|
|
61
|
-
"aria-label": "
|
|
61
|
+
"aria-label": "Árbol"
|
|
62
62
|
}
|
|
63
63
|
}) }}
|
|
64
64
|
</div>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
],
|
|
125
125
|
"attributes": {
|
|
126
|
-
"aria-label": "
|
|
126
|
+
"aria-label": "Árbol"
|
|
127
127
|
}
|
|
128
128
|
}) }}
|
|
129
129
|
</div>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{{ componentMenubar({
|
|
10
10
|
"id": "filter-items",
|
|
11
11
|
"idPrefix": "filter-example",
|
|
12
|
-
"ariaLabel":"
|
|
12
|
+
"ariaLabel":"Filtrar y ordenar items de la lista",
|
|
13
13
|
"items": [
|
|
14
14
|
{
|
|
15
15
|
"text": "Estados y trámites",
|
|
@@ -101,10 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
]
|
|
103
103
|
}
|
|
104
|
-
]
|
|
105
|
-
"attributes": {
|
|
106
|
-
"aria-labelledby": "filter-example-item-2"
|
|
107
|
-
}
|
|
104
|
+
]
|
|
108
105
|
}
|
|
109
106
|
},
|
|
110
107
|
{
|
|
@@ -197,10 +194,7 @@
|
|
|
197
194
|
"role": "menuitemcheckbox",
|
|
198
195
|
"text": "Tramitación íntegra digital"
|
|
199
196
|
}
|
|
200
|
-
]
|
|
201
|
-
"attributes": {
|
|
202
|
-
"aria-labelledby": "filter-example-item-3"
|
|
203
|
-
}
|
|
197
|
+
]
|
|
204
198
|
}
|
|
205
199
|
},
|
|
206
200
|
{
|
|
@@ -218,7 +212,7 @@
|
|
|
218
212
|
"items": [
|
|
219
213
|
{
|
|
220
214
|
"role": "group",
|
|
221
|
-
"
|
|
215
|
+
"ariaLabel": "Tipo de ordenación",
|
|
222
216
|
"items": [
|
|
223
217
|
{
|
|
224
218
|
"role": "menuitemradio",
|
|
@@ -239,18 +233,12 @@
|
|
|
239
233
|
}
|
|
240
234
|
]
|
|
241
235
|
}
|
|
242
|
-
]
|
|
243
|
-
"attributes": {
|
|
244
|
-
"aria-labelledby": "filter-example-item-4"
|
|
245
|
-
}
|
|
236
|
+
]
|
|
246
237
|
},
|
|
247
238
|
"classes": "c-menubar__button--sm mb-sm"
|
|
248
239
|
}
|
|
249
240
|
],
|
|
250
|
-
"classes": "c-menubar--last-right"
|
|
251
|
-
"attributes": {
|
|
252
|
-
"aria-label": "Filtrar items de la lista de Servicios"
|
|
253
|
-
}
|
|
241
|
+
"classes": "c-menubar--last-right"
|
|
254
242
|
}) }}
|
|
255
243
|
</div>
|
|
256
244
|
</div>
|