desy-html 11.2.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/_global.foot.njk +1 -1
- package/docs/_macro.example-render.njk +62 -18
- package/docs/ds/_ds.section.textos.njk +1 -1
- package/docs/index.html +10 -0
- package/docs/pagina-prueba.html +2 -2
- package/package.json +2 -2
- package/src/css/component.text.css +0 -1
- package/src/js/aria/utils.js +80 -15
- package/src/js/desy-html.js +239 -196
- package/src/js/filters/filter-caller.js +4 -2
- package/src/js/filters/filter-escape-ltgt.js +7 -0
- package/src/js/filters/filter-quotes.js +50 -0
- package/src/js/filters/filter-version.js +8 -0
- package/src/js/filters/index.js +7 -1
- package/src/templates/components/accordion/_examples.accordion.njk +107 -107
- package/src/templates/components/accordion/_template.accordion.njk +5 -5
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +119 -119
- package/src/templates/components/accordion-history/_template.accordion-history.njk +11 -11
- package/src/templates/components/alert/_examples.alert.njk +2 -2
- package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +4 -4
- package/src/templates/components/breadcrumbs/_template.breadcrumbs.njk +4 -4
- package/src/templates/components/button/_examples.button.njk +19 -19
- package/src/templates/components/button/_template.button.njk +2 -2
- package/src/templates/components/button-loader/_examples.button-loader.njk +17 -17
- package/src/templates/components/button-loader/_template.button-loader.njk +2 -2
- package/src/templates/components/card/_examples.card.njk +3 -3
- package/src/templates/components/card/_template.card.njk +4 -4
- package/src/templates/components/character-count/_examples.character-count.njk +2 -2
- package/src/templates/components/checkboxes/_examples.checkboxes.njk +6 -6
- package/src/templates/components/checkboxes/_template.checkboxes.njk +2 -2
- package/src/templates/components/collapsible/_examples.collapsible.njk +4 -4
- package/src/templates/components/collapsible/_template.collapsible.njk +1 -1
- package/src/templates/components/date-input/_template.date-input.njk +1 -1
- package/src/templates/components/datepicker/_examples.datepicker.njk +45 -62
- package/src/templates/components/datepicker/_styles.datepicker.css +4 -0
- package/src/templates/components/datepicker/_template.datepicker.njk +10 -2
- package/src/templates/components/description-list/_examples.description-list.njk +3 -3
- package/src/templates/components/description-list/_template.description-list.njk +2 -2
- package/src/templates/components/details/_examples.details.njk +3 -3
- package/src/templates/components/details/_template.details.njk +1 -1
- package/src/templates/components/dialog/_examples.dialog.njk +4 -4
- package/src/templates/components/dropdown/_examples.dropdown.njk +31 -17
- package/src/templates/components/dropdown/_template.dropdown.njk +1 -1
- package/src/templates/components/error-message/_examples.error-message.njk +1 -1
- package/src/templates/components/error-message/_template.error-message.njk +1 -1
- package/src/templates/components/error-summary/_template.error-summary.njk +2 -2
- package/src/templates/components/fieldset/_examples.fieldset.njk +3 -3
- package/src/templates/components/fieldset/_template.fieldset.njk +7 -7
- package/src/templates/components/footer/_examples.footer.njk +32 -32
- package/src/templates/components/footer/_template.footer.njk +6 -6
- package/src/templates/components/header/_examples.header.njk +14 -8
- package/src/templates/components/header/_template.header.header__navigation.njk +2 -2
- package/src/templates/components/header/_template.header.header__offcanvasButton.njk +1 -1
- package/src/templates/components/header/_template.header.header__subnav.njk +1 -1
- package/src/templates/components/header/_template.header.njk +2 -2
- package/src/templates/components/header-advanced/_examples.header-advanced.njk +14 -8
- package/src/templates/components/header-advanced/_template.header-advanced.njk +3 -3
- package/src/templates/components/header-mini/_examples.header-mini.njk +3 -3
- package/src/templates/components/header-mini/_template.header-mini.njk +2 -2
- package/src/templates/components/hint/_examples.hint.njk +1 -1
- package/src/templates/components/hint/_template.hint.njk +1 -1
- package/src/templates/components/input/_examples.input.njk +7 -7
- package/src/templates/components/input-group/_examples.input-group.njk +1 -1
- package/src/templates/components/input-group/_template.input-group.njk +1 -1
- package/src/templates/components/item/_examples.item.njk +23 -23
- package/src/templates/components/item/_template.item.njk +9 -9
- package/src/templates/components/label/_examples.label.njk +2 -2
- package/src/templates/components/label/_template.label.njk +1 -1
- package/src/templates/components/links-list/_examples.links-list.njk +29 -32
- package/src/templates/components/links-list/_template.links-list.njk +11 -11
- package/src/templates/components/listbox/_examples.listbox.njk +16 -16
- package/src/templates/components/listbox/_template.listbox.njk +3 -3
- package/src/templates/components/media-object/_examples.media-object.njk +5 -5
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +16 -16
- package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +2 -2
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +6 -6
- package/src/templates/components/menu-navigation/_template.menu-navigation.njk +4 -4
- package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +8 -8
- package/src/templates/components/menu-vertical/_template.menu-vertical.njk +9 -9
- package/src/templates/components/menubar/_examples.menubar.njk +16 -16
- package/src/templates/components/menubar/_template.menubar.njk +7 -7
- package/src/templates/components/modal/_examples.modal.njk +18 -18
- package/src/templates/components/modal/_template.modal.njk +8 -8
- package/src/templates/components/nav/_examples.nav.njk +7 -7
- package/src/templates/components/nav/_template.nav.njk +2 -2
- package/src/templates/components/notification/_examples.notification.njk +9 -9
- package/src/templates/components/notification/_template.notification.njk +11 -11
- package/src/templates/components/pagination/_examples.pagination.njk +6 -6
- package/src/templates/components/pagination/_template.pagination.njk +3 -3
- package/src/templates/components/pill/_examples.pill.njk +8 -8
- package/src/templates/components/pill/_template.pill.njk +3 -3
- package/src/templates/components/radios/_examples.radios.njk +2 -2
- package/src/templates/components/radios/_template.radios.njk +1 -1
- package/src/templates/components/select/_examples.select.njk +1 -1
- package/src/templates/components/skip-link/_examples.skip-link.njk +1 -1
- package/src/templates/components/skip-link/_template.skip-link.njk +1 -1
- package/src/templates/components/status/_examples.status.njk +1 -1
- package/src/templates/components/status/_template.status.njk +1 -1
- package/src/templates/components/status-item/_examples.status-item.njk +15 -15
- package/src/templates/components/status-item/_template.status-item.njk +3 -3
- package/src/templates/components/table/_examples.table.njk +3 -3
- package/src/templates/components/table/_template.table.njk +2 -2
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +7 -7
- package/src/templates/components/table-advanced/_template.table-advanced.njk +5 -5
- package/src/templates/components/tabs/_examples.tabs.njk +19 -19
- package/src/templates/components/tabs/_styles.tabs.css +2 -2
- package/src/templates/components/tabs/_template.tabs.njk +7 -7
- package/src/templates/components/textarea/_examples.textarea.njk +2 -2
- package/src/templates/components/toggle/_examples.toggle.njk +29 -29
- package/src/templates/components/toggle/_template.toggle.njk +2 -2
- package/src/templates/components/tooltip/_examples.tooltip.njk +11 -11
- package/src/templates/components/tooltip/_template.tooltip.njk +3 -3
- package/src/templates/components/tree/_examples.tree.njk +12 -60
- package/src/templates/components/tree/_template.tree.njk +4 -4
- package/src/templates/includes/_test-include.njk +2 -2
- package/src/templates/pages/_page.footer.njk +1 -1
- package/src/templates/pages/_template.logged-selector-subheader.njk +1 -1
|
@@ -185,32 +185,26 @@
|
|
|
185
185
|
"items": [
|
|
186
186
|
{
|
|
187
187
|
"text": "Subitem 1",
|
|
188
|
-
"value": "subitem-1",
|
|
189
188
|
"href": "#"
|
|
190
189
|
},
|
|
191
190
|
{
|
|
192
191
|
"text": "Subitem 2",
|
|
193
|
-
"value": "subitem-2",
|
|
194
192
|
"href": "#"
|
|
195
193
|
},
|
|
196
194
|
{
|
|
197
195
|
"text": "Subitem 3",
|
|
198
|
-
"value": "subitem-3",
|
|
199
196
|
"sub": {
|
|
200
197
|
"items": [
|
|
201
198
|
{
|
|
202
199
|
"text": "Subitem 1",
|
|
203
|
-
"value": "subitem-1",
|
|
204
200
|
"href": "#"
|
|
205
201
|
},
|
|
206
202
|
{
|
|
207
203
|
"text": "Subitem 2",
|
|
208
|
-
"value": "subitem-2",
|
|
209
204
|
"href": "#"
|
|
210
205
|
},
|
|
211
206
|
{
|
|
212
207
|
"text": "Subitem 3",
|
|
213
|
-
"value": "subitem-3",
|
|
214
208
|
"href": "#",
|
|
215
209
|
"active": true
|
|
216
210
|
}
|
|
@@ -233,17 +227,14 @@
|
|
|
233
227
|
"items": [
|
|
234
228
|
{
|
|
235
229
|
"text": "Subitem 1",
|
|
236
|
-
"value": "subitem-1",
|
|
237
230
|
"href": "#"
|
|
238
231
|
},
|
|
239
232
|
{
|
|
240
233
|
"text": "Subitem 2",
|
|
241
|
-
"value": "subitem-2",
|
|
242
234
|
"href": "#"
|
|
243
235
|
},
|
|
244
236
|
{
|
|
245
237
|
"text": "Subitem 3",
|
|
246
|
-
"value": "subitem-3",
|
|
247
238
|
"href": "#"
|
|
248
239
|
}
|
|
249
240
|
],
|
|
@@ -259,17 +250,14 @@
|
|
|
259
250
|
"items": [
|
|
260
251
|
{
|
|
261
252
|
"text": "Subitem 1",
|
|
262
|
-
"value": "subitem-1",
|
|
263
253
|
"href": "#"
|
|
264
254
|
},
|
|
265
255
|
{
|
|
266
256
|
"text": "Subitem 2",
|
|
267
|
-
"value": "subitem-2",
|
|
268
257
|
"href": "#"
|
|
269
258
|
},
|
|
270
259
|
{
|
|
271
260
|
"text": "Subitem 3",
|
|
272
|
-
"value": "subitem-3",
|
|
273
261
|
"href": "#"
|
|
274
262
|
}
|
|
275
263
|
],
|
|
@@ -283,7 +271,7 @@
|
|
|
283
271
|
},
|
|
284
272
|
{
|
|
285
273
|
"name": "tree navigation con hasUnderline",
|
|
286
|
-
"description":
|
|
274
|
+
"description": "Usa <code>'hasUnderline': true</code> cuando tienes mezclados, items deshabilitados o sin href e items normales.",
|
|
287
275
|
"data": {
|
|
288
276
|
"name": "tree-nav-hasunderline",
|
|
289
277
|
"classes": "mt-base",
|
|
@@ -300,34 +288,28 @@
|
|
|
300
288
|
"items": [
|
|
301
289
|
{
|
|
302
290
|
"text": "Subitem 1",
|
|
303
|
-
"value": "subitem-1",
|
|
304
291
|
"href": "#"
|
|
305
292
|
},
|
|
306
293
|
{
|
|
307
294
|
"text": "Subitem 2 deshabilitado o sin href",
|
|
308
|
-
"value": "subitem-2",
|
|
309
295
|
"href": "#",
|
|
310
296
|
"disabled": true
|
|
311
297
|
},
|
|
312
298
|
{
|
|
313
299
|
"text": "Subitem 3",
|
|
314
|
-
"value": "subitem-3",
|
|
315
300
|
"href": "#",
|
|
316
301
|
"sub": {
|
|
317
302
|
"items": [
|
|
318
303
|
{
|
|
319
304
|
"text": "Subitem 1",
|
|
320
|
-
"value": "subitem-1",
|
|
321
305
|
"href": "#"
|
|
322
306
|
},
|
|
323
307
|
{
|
|
324
308
|
"text": "Subitem 2",
|
|
325
|
-
"value": "subitem-2",
|
|
326
309
|
"href": "#"
|
|
327
310
|
},
|
|
328
311
|
{
|
|
329
312
|
"text": "Subitem 3",
|
|
330
|
-
"value": "subitem-3",
|
|
331
313
|
"href": "#",
|
|
332
314
|
"active": true
|
|
333
315
|
}
|
|
@@ -350,18 +332,15 @@
|
|
|
350
332
|
"items": [
|
|
351
333
|
{
|
|
352
334
|
"text": "Subitem 1",
|
|
353
|
-
"value": "subitem-1",
|
|
354
335
|
"href": "#"
|
|
355
336
|
},
|
|
356
337
|
{
|
|
357
338
|
"text": "Subitem 2 deshabilitado o sin href",
|
|
358
|
-
"value": "subitem-2",
|
|
359
339
|
"href": "#",
|
|
360
340
|
"disabled": true
|
|
361
341
|
},
|
|
362
342
|
{
|
|
363
343
|
"text": "Subitem 3",
|
|
364
|
-
"value": "subitem-3",
|
|
365
344
|
"href": "#"
|
|
366
345
|
}
|
|
367
346
|
],
|
|
@@ -378,17 +357,14 @@
|
|
|
378
357
|
"items": [
|
|
379
358
|
{
|
|
380
359
|
"text": "Subitem 1",
|
|
381
|
-
"value": "subitem-1",
|
|
382
360
|
"href": "#"
|
|
383
361
|
},
|
|
384
362
|
{
|
|
385
363
|
"text": "Subitem 2",
|
|
386
|
-
"value": "subitem-2",
|
|
387
364
|
"href": "#"
|
|
388
365
|
},
|
|
389
366
|
{
|
|
390
367
|
"text": "Subitem 3",
|
|
391
|
-
"value": "subitem-3",
|
|
392
368
|
"href": "#"
|
|
393
369
|
}
|
|
394
370
|
],
|
|
@@ -402,7 +378,7 @@
|
|
|
402
378
|
},
|
|
403
379
|
{
|
|
404
380
|
"name": "tree navigation link",
|
|
405
|
-
"description":
|
|
381
|
+
"description": "Usa el parámetro <code>'classes': 'c-link'</code> en cada item para dar apariencia más visible de links.",
|
|
406
382
|
"data": {
|
|
407
383
|
"name": "tree-nav-link",
|
|
408
384
|
"classes": "mt-base",
|
|
@@ -418,37 +394,31 @@
|
|
|
418
394
|
"items": [
|
|
419
395
|
{
|
|
420
396
|
"text": "Subitem 1",
|
|
421
|
-
"value": "subitem-1",
|
|
422
397
|
"href": "#",
|
|
423
398
|
"classes": "c-link"
|
|
424
399
|
},
|
|
425
400
|
{
|
|
426
401
|
"text": "Subitem 2",
|
|
427
|
-
"value": "subitem-2",
|
|
428
402
|
"href": "#",
|
|
429
403
|
"classes": "c-link"
|
|
430
404
|
},
|
|
431
405
|
{
|
|
432
406
|
"text": "Subitem 3",
|
|
433
|
-
"value": "subitem-3",
|
|
434
407
|
"classes": "c-link",
|
|
435
408
|
"sub": {
|
|
436
409
|
"items": [
|
|
437
410
|
{
|
|
438
411
|
"text": "Subitem 1",
|
|
439
|
-
"value": "subitem-1",
|
|
440
412
|
"href": "#",
|
|
441
413
|
"classes": "c-link"
|
|
442
414
|
},
|
|
443
415
|
{
|
|
444
416
|
"text": "Subitem 2",
|
|
445
|
-
"value": "subitem-2",
|
|
446
417
|
"href": "#",
|
|
447
418
|
"classes": "c-link"
|
|
448
419
|
},
|
|
449
420
|
{
|
|
450
421
|
"text": "Subitem 3",
|
|
451
|
-
"value": "subitem-3",
|
|
452
422
|
"href": "#",
|
|
453
423
|
"active": true,
|
|
454
424
|
"classes": "c-link"
|
|
@@ -473,19 +443,16 @@
|
|
|
473
443
|
"items": [
|
|
474
444
|
{
|
|
475
445
|
"text": "Subitem 1",
|
|
476
|
-
"value": "subitem-1",
|
|
477
446
|
"href": "#",
|
|
478
447
|
"classes": "c-link"
|
|
479
448
|
},
|
|
480
449
|
{
|
|
481
450
|
"text": "Subitem 2",
|
|
482
|
-
"value": "subitem-2",
|
|
483
451
|
"href": "#",
|
|
484
452
|
"classes": "c-link"
|
|
485
453
|
},
|
|
486
454
|
{
|
|
487
455
|
"text": "Subitem 3",
|
|
488
|
-
"value": "subitem-3",
|
|
489
456
|
"href": "#",
|
|
490
457
|
"classes": "c-link"
|
|
491
458
|
}
|
|
@@ -503,19 +470,16 @@
|
|
|
503
470
|
"items": [
|
|
504
471
|
{
|
|
505
472
|
"text": "Subitem 1",
|
|
506
|
-
"value": "subitem-1",
|
|
507
473
|
"href": "#",
|
|
508
474
|
"classes": "c-link"
|
|
509
475
|
},
|
|
510
476
|
{
|
|
511
477
|
"text": "Subitem 2",
|
|
512
|
-
"value": "subitem-2",
|
|
513
478
|
"href": "#",
|
|
514
479
|
"classes": "c-link"
|
|
515
480
|
},
|
|
516
481
|
{
|
|
517
482
|
"text": "Subitem 3",
|
|
518
|
-
"value": "subitem-3",
|
|
519
483
|
"href": "#",
|
|
520
484
|
"classes": "c-link"
|
|
521
485
|
}
|
|
@@ -530,7 +494,7 @@
|
|
|
530
494
|
},
|
|
531
495
|
{
|
|
532
496
|
"name": "Tree Nav: Mostrar activo un item del tree con JavaScript",
|
|
533
|
-
"description":
|
|
497
|
+
"description": "Puedes usar con javascript la función global <code>activateItemsTree(tree, element, true)</code>, para mostrar un item activo del tree nav. Ej: Abre la consola del navegador y escribe <code>activateItemsTree('tree-nav-js', 'sub-sub-tree-nav-js-item-1-2-1', true)</code> para mostrar un item del menú activo.",
|
|
534
498
|
"data": {
|
|
535
499
|
"name": "tree-navigation-js",
|
|
536
500
|
"classes": "mt-base",
|
|
@@ -545,33 +509,27 @@
|
|
|
545
509
|
"items": [
|
|
546
510
|
{
|
|
547
511
|
"text": "Subitem 1",
|
|
548
|
-
"value": "subitem-1",
|
|
549
512
|
"href": "index.html"
|
|
550
513
|
},
|
|
551
514
|
{
|
|
552
515
|
"text": "Subitem 2",
|
|
553
|
-
"value": "subitem-2",
|
|
554
516
|
"href": "#"
|
|
555
517
|
},
|
|
556
518
|
{
|
|
557
519
|
"text": "Subitem 3",
|
|
558
|
-
"value": "subitem-3",
|
|
559
520
|
"href": "#",
|
|
560
521
|
"sub": {
|
|
561
522
|
"items": [
|
|
562
523
|
{
|
|
563
524
|
"text": "Subitem 1",
|
|
564
|
-
"value": "subitem-1",
|
|
565
525
|
"href": "#"
|
|
566
526
|
},
|
|
567
527
|
{
|
|
568
528
|
"text": "Subitem 2",
|
|
569
|
-
"value": "subitem-2",
|
|
570
529
|
"href": "#"
|
|
571
530
|
},
|
|
572
531
|
{
|
|
573
532
|
"text": "Subitem 3",
|
|
574
|
-
"value": "subitem-3",
|
|
575
533
|
"href": "#"
|
|
576
534
|
}
|
|
577
535
|
],
|
|
@@ -593,17 +551,14 @@
|
|
|
593
551
|
"items": [
|
|
594
552
|
{
|
|
595
553
|
"text": "Subitem 1",
|
|
596
|
-
"value": "subitem-1",
|
|
597
554
|
"href": "#"
|
|
598
555
|
},
|
|
599
556
|
{
|
|
600
557
|
"text": "Subitem 2",
|
|
601
|
-
"value": "subitem-2",
|
|
602
558
|
"href": "#"
|
|
603
559
|
},
|
|
604
560
|
{
|
|
605
561
|
"text": "Subitem 3",
|
|
606
|
-
"value": "subitem-3",
|
|
607
562
|
"href": "#"
|
|
608
563
|
}
|
|
609
564
|
],
|
|
@@ -619,17 +574,14 @@
|
|
|
619
574
|
"items": [
|
|
620
575
|
{
|
|
621
576
|
"text": "Subitem 1",
|
|
622
|
-
"value": "subitem-1",
|
|
623
577
|
"href": "#"
|
|
624
578
|
},
|
|
625
579
|
{
|
|
626
580
|
"text": "Subitem 2",
|
|
627
|
-
"value": "subitem-2",
|
|
628
581
|
"href": "#"
|
|
629
582
|
},
|
|
630
583
|
{
|
|
631
584
|
"text": "Subitem 3",
|
|
632
|
-
"value": "subitem-3",
|
|
633
585
|
"href": "#"
|
|
634
586
|
}
|
|
635
587
|
],
|
|
@@ -1370,7 +1322,7 @@
|
|
|
1370
1322
|
},
|
|
1371
1323
|
{
|
|
1372
1324
|
"name": "con un item padre abierto",
|
|
1373
|
-
"description":
|
|
1325
|
+
"description": "Usa <code>'expanded': true</code>",
|
|
1374
1326
|
"data": {
|
|
1375
1327
|
"name": "with-a-parent-item-opened",
|
|
1376
1328
|
"classes": "mt-base",
|
|
@@ -1644,7 +1596,7 @@
|
|
|
1644
1596
|
},
|
|
1645
1597
|
{
|
|
1646
1598
|
"name": "indeterminado",
|
|
1647
|
-
"description":
|
|
1599
|
+
"description": "Usando el parámetro <code>'isIndeterminate': true</code> podemos crear un item del checkbox que tenga 3 estados: marcado, desmarcado o indeterminado. El estado indeterminado expresa que hay sólo algún item seleccionado pero no todos. Útil para selecciones múltiples.",
|
|
1648
1600
|
"data": {
|
|
1649
1601
|
"name": "indeterminate",
|
|
1650
1602
|
"classes": "mt-base",
|
|
@@ -1924,7 +1876,7 @@
|
|
|
1924
1876
|
},
|
|
1925
1877
|
{
|
|
1926
1878
|
"name": "con searchbar y scroll en el contenedor de árbol",
|
|
1927
|
-
"description":
|
|
1879
|
+
"description": "Puedes usar las clases de CSS: <code>max-h-64</code> o <code>max-h-40</code> junto a <code>overflow-y-auto</code>, para poner barras de scroll al árbol en caso de que su altura sea muy grande o bien cuando la altura crezca debido a que los items sean expandidos por el usuario.",
|
|
1928
1880
|
"data": {
|
|
1929
1881
|
"name": "with-searchbar-scroll",
|
|
1930
1882
|
"classes": "mt-base max-h-64 overflow-y-auto",
|
|
@@ -2110,7 +2062,7 @@
|
|
|
2110
2062
|
},
|
|
2111
2063
|
{
|
|
2112
2064
|
"name": "con idPrefix",
|
|
2113
|
-
"description":
|
|
2065
|
+
"description": "Mostrar código para ver el <code>idPrefix</code> aplicado",
|
|
2114
2066
|
"data": {
|
|
2115
2067
|
"name": "with-idprefix",
|
|
2116
2068
|
"classes": "mt-base",
|
|
@@ -2149,7 +2101,7 @@
|
|
|
2149
2101
|
},
|
|
2150
2102
|
{
|
|
2151
2103
|
"name": "con ids individuales",
|
|
2152
|
-
"description":
|
|
2104
|
+
"description": "Mostrar código para ver los <code>id</code> aplicados",
|
|
2153
2105
|
"data": {
|
|
2154
2106
|
"name": "with-individual-ids",
|
|
2155
2107
|
"classes": "mt-base",
|
|
@@ -2285,7 +2237,7 @@
|
|
|
2285
2237
|
},
|
|
2286
2238
|
{
|
|
2287
2239
|
"name": "Mostrar u ocultar un item con JavaScript",
|
|
2288
|
-
"description":
|
|
2240
|
+
"description": "Puedes usar con javascript la función global <code>activateItemsTree(tree, element, show)</code>, para mostrar u ocultar todos los items, usando el id del elemento, el parámetro <code>show</code> admite <code>true</code> o <code>false</code>, si le pasamos true se se mostrará el item expandido, y si le pasamos false se mostrará cerrado. Ej: Abre la consola del navegador y escribe <code>activateItemsTree('tree-item-js', 'tree-item-js-example-item-1', true)</code> para mostrar todos los items expandidos.",
|
|
2289
2241
|
"data": {
|
|
2290
2242
|
"name": "tree-item-js",
|
|
2291
2243
|
"classes": "mt-base",
|
|
@@ -2370,7 +2322,7 @@
|
|
|
2370
2322
|
},
|
|
2371
2323
|
{
|
|
2372
2324
|
"name": "Mostrar u ocultar todos los items con JavaScript",
|
|
2373
|
-
"description":
|
|
2325
|
+
"description": "Puedes usar con javascript la función global <code>activateItemsTree(tree, elements, show)</code>, para mostrar u ocultar todos los items, usando los id de los elementos, el parámetro <code>show</code> admite <code>true</code> o <code>false</code>, si le pasamos true se se mostrarán todos los items expandidos, y si le pasamos false se mostrarán cerrados. Ej: Abre la consola del navegador y escribe <code>activateItemsTree('tree-multiple-items-js', ['tree-multiple-items-js-1', 'tree-multiple-items-js-2'], true)</code> para mostrar todos los items expandidos.",
|
|
2374
2326
|
"data": {
|
|
2375
2327
|
"name": "tree-multiple-items-js",
|
|
2376
2328
|
"classes": "mt-base",
|
|
@@ -2455,7 +2407,7 @@
|
|
|
2455
2407
|
},
|
|
2456
2408
|
{
|
|
2457
2409
|
"name": "Mostrar u ocultar todos los items con JavaScript con diferentes estados",
|
|
2458
|
-
"description":
|
|
2410
|
+
"description": "Puedes usar con javascript la función global <code>activateItemsTree(tree, elements)</code>, para mostrar u ocultar todos los items, usando los id de los elementos, el parámetro <code>show</code> admite <code>true</code> o <code>false</code>, si le pasamos true se se mostrarán todos los items expandidos, y si le pasamos false se mostrarán cerrados. Ej: Abre la consola del navegador y escribe <code>activateItemsTree('tree-multiple-items-states-js', [['tree-multiple-items-states-item-1', true], ['tree-multiple-items-states-item-3', false]])</code> para mostrar todos los items expandidos.",
|
|
2459
2411
|
"data": {
|
|
2460
2412
|
"name": "tree-multiple-items-states-js",
|
|
2461
2413
|
"classes": "mt-base",
|
|
@@ -2540,7 +2492,7 @@
|
|
|
2540
2492
|
},
|
|
2541
2493
|
{
|
|
2542
2494
|
"name": "Mostrar u ocultar un item con muchos niveles de profundidad con JavaScript ",
|
|
2543
|
-
"description":
|
|
2495
|
+
"description": "Puedes usar con javascript la función global <code>activateItemsTree(tree, element, show)</code>, para mostrar u ocultar un item, usando el id del elemento, el parámetro <code>show</code> admite <code>true</code> o <code>false</code>, si le pasamos true se se mostrará el item expandido, y si le pasamos false se mostrará cerrado. Ej: Abre la consola del navegador y escribe <code>activateItemsTree('tree-item-deep-js', 'sub-sub-sub-tree-item-deep-js-2-2-2-0', true)</code> se abrirá el último elemento del arbol, y el resto de elementos superiores.",
|
|
2544
2496
|
"data": {
|
|
2545
2497
|
"name": "tree-item-deep-js",
|
|
2546
2498
|
"classes": "mt-base",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
{% if item.href %}
|
|
70
70
|
<a {%- if id %} id="{{ id }}-link"{% endif %} href="{{ item.href }}" class="block px-xs focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black {%- if hasUnderline %} underline{% endif %} {%- if item.classes %} {{ item.classes }}{% endif %} {%- if not item.disabled %} hover:text-primary-base hover:underline{% endif %} {%- if item.disabled %} no-underline pointer-events-none{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %}{%- if item.active %} aria-current="page"{% endif %} {% if item.disabled %} aria-disabled="true" tabindex="-1"{% endif %} {% if item.target %} target="{{ item.target }}"{% endif %}{%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
71
71
|
{% if item.active %}
|
|
72
|
-
<strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong>
|
|
72
|
+
<strong class="font-bold">{{ item.html | filterquotes | safe if item.html else item.text }}</strong>
|
|
73
73
|
{% else %}
|
|
74
|
-
{{ item.html | safe if item.html else item.text }}
|
|
74
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
75
75
|
{% endif %}
|
|
76
76
|
</a>
|
|
77
77
|
{% else %}
|
|
78
78
|
<span {%- if id %} id="{{ id }}-link"{% endif %} class="block px-xs {%- if item.classes %} {{ item.classes }}{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
|
|
79
79
|
{% if item.active %}
|
|
80
|
-
<strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong>
|
|
80
|
+
<strong class="font-bold">{{ item.html | filterquotes | safe if item.html else item.text }}</strong>
|
|
81
81
|
{% else %}
|
|
82
|
-
{{ item.html | safe if item.html else item.text }}
|
|
82
|
+
{{ item.html | filterquotes | safe if item.html else item.text }}
|
|
83
83
|
{% endif %}
|
|
84
84
|
</span>
|
|
85
85
|
{% endif %}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
<div class="p-base border border-neutral-base">
|
|
5
5
|
<p>Este es un include de prueba</p>
|
|
6
6
|
{{ componentTestComponent({
|
|
7
|
-
"html":
|
|
7
|
+
"html": "Este es <strong class='font-bold'>un componente de prueba</strong>"
|
|
8
8
|
}) }}
|
|
9
9
|
{% call componentTestComponentCaller({
|
|
10
|
-
"html":
|
|
10
|
+
"html": "Este es un componente <strong class='font-bold '>con caller</strong>"
|
|
11
11
|
}) %}
|
|
12
12
|
<div class="w-48 p-2"><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
13
13
|
{% endcall %}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"text": "Mapa web"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"html": 'Creado por <a href=
|
|
16
|
+
"html": "'html': 'Creado por <a href='https://sda.aragon.es/' class='c-link c-link--neutral'>SDA Servicios Digitales de Aragón</a>"
|
|
17
17
|
},
|
|
18
18
|
"classes": "mt-lg lg:mt-48"
|
|
19
19
|
}) }}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{% block subheaderNavigation %}
|
|
15
15
|
<nav aria-label="Volver a la página anterior">
|
|
16
16
|
{{ componentButton({
|
|
17
|
-
"html":
|
|
17
|
+
"html": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140' class='self-center mr-2' aria-hidden='true' focusable='false' width='1em' height='1em'><path d='M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z' fill='currentColor'></path></svg>Volver",
|
|
18
18
|
"classes": "c-button--transparent c-button--sm",
|
|
19
19
|
"href": "/"
|
|
20
20
|
}) }}
|