desy-html 7.3.0 → 7.4.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.
Files changed (71) hide show
  1. package/docs/_macro.example-render.njk +1 -1
  2. package/docs/index.html +8 -0
  3. package/docs/pagina-accesibilidad.html +6 -0
  4. package/docs/pagina-mapa-web.html +6 -0
  5. package/docs/plantilla-con-header-advanced.html +7 -0
  6. package/docs/plantilla-editar-con-cabecera-fija-y-sidebar-sticky.html +8 -1
  7. package/docs/plantilla-editar-con-cabecera-fija.html +7 -0
  8. package/docs/plantilla-logueado-con-cabecera-fija-headroom.html +7 -0
  9. package/docs/plantilla-logueado-con-cabecera-fija.html +7 -0
  10. package/docs/plantilla-logueado-con-selector-de-app-y-sidebar.html +8 -1
  11. package/docs/plantilla-logueado-con-selector-de-app-y-subheader.html +7 -0
  12. package/docs/plantilla-logueado-con-selector-de-app.html +7 -0
  13. package/docs/plantilla-logueado-con-titulo-de-app.html +7 -0
  14. package/docs/plantilla-sin-loguear.html +7 -0
  15. package/package.json +1 -1
  16. package/src/templates/components/accordion/_examples.accordion.njk +108 -104
  17. package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
  18. package/src/templates/components/alert/_examples.alert.njk +10 -6
  19. package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
  20. package/src/templates/components/button/_examples.button.njk +71 -71
  21. package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
  22. package/src/templates/components/card/_examples.card.njk +43 -43
  23. package/src/templates/components/character-count/_examples.character-count.njk +35 -33
  24. package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
  25. package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
  26. package/src/templates/components/date-input/_examples.date-input.njk +14 -14
  27. package/src/templates/components/description-list/_examples.description-list.njk +45 -44
  28. package/src/templates/components/details/_examples.details.njk +17 -16
  29. package/src/templates/components/dialog/_examples.dialog.njk +5 -6
  30. package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
  31. package/src/templates/components/error-message/_examples.error-message.njk +8 -2
  32. package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
  33. package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
  34. package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
  35. package/src/templates/components/footer/_examples.footer.njk +24 -24
  36. package/src/templates/components/header/_examples.header.njk +12 -12
  37. package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
  38. package/src/templates/components/hint/_examples.hint.njk +4 -4
  39. package/src/templates/components/input/_examples.input.njk +66 -64
  40. package/src/templates/components/input-group/_examples.input-group.njk +15 -17
  41. package/src/templates/components/item/_examples.item.njk +21 -20
  42. package/src/templates/components/label/_examples.label.njk +11 -9
  43. package/src/templates/components/links-list/_examples.links-list.njk +34 -34
  44. package/src/templates/components/listbox/_examples.listbox.njk +146 -146
  45. package/src/templates/components/media-object/_examples.media-object.njk +7 -7
  46. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
  47. package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
  48. package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
  49. package/src/templates/components/menubar/_examples.menubar.njk +42 -42
  50. package/src/templates/components/modal/_examples.modal.njk +21 -15
  51. package/src/templates/components/modal/_template.modal.njk +5 -5
  52. package/src/templates/components/nav/_examples.nav.njk +66 -66
  53. package/src/templates/components/notification/_examples.notification.njk +14 -13
  54. package/src/templates/components/pagination/_examples.pagination.njk +7 -6
  55. package/src/templates/components/pill/_examples.pill.njk +29 -29
  56. package/src/templates/components/radios/_examples.radios.njk +153 -142
  57. package/src/templates/components/searchbar/_examples.searchbar.njk +11 -11
  58. package/src/templates/components/select/_examples.select.njk +63 -63
  59. package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
  60. package/src/templates/components/spinner/_examples.spinner.njk +11 -11
  61. package/src/templates/components/status/_examples.status.njk +4 -4
  62. package/src/templates/components/status-item/_examples.status-item.njk +21 -21
  63. package/src/templates/components/table/_examples.table.njk +58 -56
  64. package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
  65. package/src/templates/components/tabs/_examples.tabs.njk +30 -29
  66. package/src/templates/components/textarea/_examples.textarea.njk +28 -27
  67. package/src/templates/components/toggle/_examples.toggle.njk +10 -11
  68. package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
  69. package/src/templates/components/tree/_examples.tree.njk +58 -57
  70. package/src/templates/includes/_abrir-notificaciones-extra.njk +3 -0
  71. package/src/templates/includes/_abrir-notificaciones.njk +1 -1
@@ -1,56 +1,56 @@
1
1
  {% set exampleComponent = "status-item" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
6
  "id": "default",
7
7
  "title": {
8
- "text": "Title"
8
+ "text": "Título"
9
9
  },
10
- "caller": '<button class="c-button c-button--transparent" data-module="c-button">Action</button>'
10
+ "caller": '<button class="c-button c-button--transparent" data-module="c-button">Acción</button>'
11
11
  }
12
12
  },
13
13
  {
14
- "name": "default only items",
14
+ "name": "por defecto sólo items",
15
15
  "data": {
16
16
  "id": "only-items",
17
17
  "items": [
18
18
  {
19
19
  "term": {
20
- "text": "term"
20
+ "text": "término"
21
21
  },
22
22
  "definition": {
23
- "text": "definition"
23
+ "text": "definición"
24
24
  }
25
25
  },
26
26
  {
27
27
  "term": {
28
- "text": "term"
28
+ "text": "término"
29
29
  },
30
30
  "definition": {
31
- "text": "definition"
31
+ "text": "definición"
32
32
  }
33
33
  },
34
34
  {
35
35
  "term": {
36
- "text": "term"
36
+ "text": "término"
37
37
  },
38
38
  "definition": {
39
- "text": "definition"
39
+ "text": "definición"
40
40
  }
41
41
  }
42
42
  ],
43
43
  "status": {
44
- "text": "Status",
44
+ "text": "Estado",
45
45
  "icon": {
46
46
  "type": "success"
47
47
  }
48
48
  },
49
- "caller": '<button class="c-button c-button--transparent" data-module="c-button">Action</button>'
49
+ "caller": '<button class="c-button c-button--transparent" data-module="c-button">Acción</button>'
50
50
  }
51
51
  },
52
52
  {
53
- "name": "with title html",
53
+ "name": "con título HTML",
54
54
  "data": {
55
55
  "id": "with-title-html",
56
56
  "title": {
@@ -60,7 +60,7 @@
60
60
  }
61
61
  },
62
62
  {
63
- "name": "with hint",
63
+ "name": "con pista",
64
64
  "data": {
65
65
  "id": "with-hint",
66
66
  "title": {
@@ -79,7 +79,7 @@
79
79
  }
80
80
  },
81
81
  {
82
- "name": "with hint html",
82
+ "name": "con pista HTML",
83
83
  "data": {
84
84
  "id": "with-hint-html",
85
85
  "title": {
@@ -92,7 +92,7 @@
92
92
  }
93
93
  },
94
94
  {
95
- "name": "with status simple",
95
+ "name": "con estado simple",
96
96
  "data": {
97
97
  "id": "with-status-simple",
98
98
  "title": {
@@ -105,7 +105,7 @@
105
105
  }
106
106
  },
107
107
  {
108
- "name": "with status success",
108
+ "name": "con estado éxito",
109
109
  "data": {
110
110
  "id": "with-status-success",
111
111
  "title": {
@@ -121,7 +121,7 @@
121
121
  }
122
122
  },
123
123
  {
124
- "name": "with status alert",
124
+ "name": "con estado alerta",
125
125
  "data": {
126
126
  "id": "with-status-alert",
127
127
  "title": {
@@ -143,7 +143,7 @@
143
143
  }
144
144
  },
145
145
  {
146
- "name": "with status loading",
146
+ "name": "con estado cargando",
147
147
  "data": {
148
148
  "id": "with-status-loading",
149
149
  "title": {
@@ -159,7 +159,7 @@
159
159
  }
160
160
  },
161
161
  {
162
- "name": "with status error",
162
+ "name": "con estado error",
163
163
  "data": {
164
164
  "id": "with-status-error",
165
165
  "title": {
@@ -181,7 +181,7 @@
181
181
  }
182
182
  },
183
183
  {
184
- "name": "with html in definition",
184
+ "name": "con HTML en la definición",
185
185
  "data": {
186
186
  "id": "with-html-in-definition",
187
187
  "items": [
@@ -1,27 +1,27 @@
1
1
  {% set exampleComponent = "table" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "table default",
4
+ "name": "tabla por defecto",
5
5
  "data": {
6
6
  "caption": "Caption de la tabla",
7
7
  "captionClasses": "sr-only mb-base font-bold text-left text-lg",
8
8
  "head": [
9
9
  {
10
- "text": "Month you apply"
10
+ "text": "Mes de pago"
11
11
  },
12
12
  {
13
- "text": "Rate for bicycles",
13
+ "text": "Primer pago",
14
14
  "classes": "text-right"
15
15
  },
16
16
  {
17
- "text": "Rate for vehicles",
17
+ "text": "Segundo pago",
18
18
  "classes": "text-right"
19
19
  }
20
20
  ],
21
21
  "rows": [
22
22
  [
23
23
  {
24
- "text": "January"
24
+ "text": "Enero"
25
25
  },
26
26
  {
27
27
  "text": "85€",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  [
36
36
  {
37
- "text": "February"
37
+ "text": "Febrero"
38
38
  },
39
39
  {
40
40
  "text": "75€",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  [
49
49
  {
50
- "text": "March"
50
+ "text": "Marzo"
51
51
  },
52
52
  {
53
53
  "text": "165€",
@@ -62,28 +62,28 @@
62
62
  }
63
63
  },
64
64
  {
65
- "name": "table with caption visible",
65
+ "name": "tabla con caption visible",
66
66
  "data": {
67
- "caption": "Caption 1: Months and rates",
67
+ "caption": "Caption 1: Meses y pagos",
68
68
  "captionClasses": "mb-base font-bold text-left text-lg",
69
69
  "firstCellIsHeader": true,
70
70
  "head": [
71
71
  {
72
- "text": "Month you apply"
72
+ "text": "Mes de pago"
73
73
  },
74
74
  {
75
- "text": "Rate for bicycles",
75
+ "text": "Primer pago",
76
76
  "classes": "text-right"
77
77
  },
78
78
  {
79
- "text": "Rate for vehicles",
79
+ "text": "Segundo pago",
80
80
  "classes": "text-right"
81
81
  }
82
82
  ],
83
83
  "rows": [
84
84
  [
85
85
  {
86
- "text": "January"
86
+ "text": "Enero"
87
87
  },
88
88
  {
89
89
  "text": "85€",
@@ -96,7 +96,7 @@
96
96
  ],
97
97
  [
98
98
  {
99
- "text": "February"
99
+ "text": "Febrero"
100
100
  },
101
101
  {
102
102
  "text": "75€",
@@ -109,7 +109,7 @@
109
109
  ],
110
110
  [
111
111
  {
112
- "text": "March"
112
+ "text": "Marzo"
113
113
  },
114
114
  {
115
115
  "text": "165€",
@@ -124,21 +124,22 @@
124
124
  }
125
125
  },
126
126
  {
127
- "name": "table with wrapper",
127
+ "name": "tabla con wrapper",
128
+ "description": 'Usa el parámetro <code>wrapper</code> para rodear la tabla con un <code>&lt;div&gt;</code> y poder añadir clases, normalmente para hacer scroll horizontal en la tabla en anchuras pequeñas.',
128
129
  "data": {
129
- "caption": "Caption 1: Months and rates",
130
+ "caption": "Caption 1: Meses y pagos",
130
131
  "captionClasses": "sticky left-0 w-0 mb-base font-bold text-left text-lg",
131
132
  "firstCellIsHeader": true,
132
133
  "head": [
133
134
  {
134
- "text": "Month you apply"
135
+ "text": "Mes de pago"
135
136
  },
136
137
  {
137
- "text": "Rate for bicycles",
138
+ "text": "Primer pago",
138
139
  "classes": "text-right"
139
140
  },
140
141
  {
141
- "text": "Rate for vehicles",
142
+ "text": "Segundo pago",
142
143
  "classes": "text-right"
143
144
  },
144
145
  {
@@ -177,7 +178,7 @@
177
178
  "rows": [
178
179
  [
179
180
  {
180
- "text": "January"
181
+ "text": "Enero"
181
182
  },
182
183
  {
183
184
  "text": "85€",
@@ -222,7 +223,7 @@
222
223
  ],
223
224
  [
224
225
  {
225
- "text": "February"
226
+ "text": "Febrero"
226
227
  },
227
228
  {
228
229
  "text": "75€",
@@ -267,7 +268,7 @@
267
268
  ],
268
269
  [
269
270
  {
270
- "text": "March"
271
+ "text": "Marzo"
271
272
  },
272
273
  {
273
274
  "text": "165€",
@@ -318,22 +319,23 @@
318
319
  }
319
320
  },
320
321
  {
321
- "name": "table with sticky columns",
322
+ "name": "table con columnas sticky",
323
+ "description": 'En este ejemplo la primera y última columna se mantienen fijas y el resto hacen scroll horizontal si la anchura es pequeña.',
322
324
  "data": {
323
- "caption": "Caption 1: Months and rates",
325
+ "caption": "Caption 1: Meses y pagos",
324
326
  "captionClasses": "sticky top-0 left-0 w-0 mb-base font-bold text-left text-lg",
325
327
  "firstCellIsHeader": true,
326
328
  "head": [
327
329
  {
328
- "text": "Month you apply",
330
+ "text": "Mes de pago",
329
331
  "classes": "sticky left-0 w-60 bg-white"
330
332
  },
331
333
  {
332
- "text": "Rate for bicycles",
334
+ "text": "Primer pago",
333
335
  "classes": "text-right"
334
336
  },
335
337
  {
336
- "text": "Rate for vehicles",
338
+ "text": "Segundo pago",
337
339
  "classes": "text-right"
338
340
  },
339
341
  {
@@ -372,7 +374,7 @@
372
374
  "rows": [
373
375
  [
374
376
  {
375
- "text": "January",
377
+ "text": "Enero",
376
378
  "classes": "sticky left-0 w-60 bg-white"
377
379
  },
378
380
  {
@@ -418,7 +420,7 @@
418
420
  ],
419
421
  [
420
422
  {
421
- "text": "February",
423
+ "text": "Febrero",
422
424
  "classes": "sticky left-0 w-60 bg-white"
423
425
  },
424
426
  {
@@ -464,7 +466,7 @@
464
466
  ],
465
467
  [
466
468
  {
467
- "text": "March",
469
+ "text": "Marzo",
468
470
  "classes": "sticky left-0 w-60 bg-white"
469
471
  },
470
472
  {
@@ -519,11 +521,11 @@
519
521
  "name": "classes",
520
522
  "hidden": true,
521
523
  "data": {
522
- "classes": "bg-warning-light"
524
+ "classes": "bg-primary-light"
523
525
  }
524
526
  },
525
527
  {
526
- "name": "attributes",
528
+ "name": "atributos",
527
529
  "hidden": true,
528
530
  "data": {
529
531
  "attributes": {
@@ -532,18 +534,18 @@
532
534
  }
533
535
  },
534
536
  {
535
- "name": "html as text",
537
+ "name": "html como texto",
536
538
  "hidden": true,
537
539
  "data": {
538
540
  "head": [
539
541
  {
540
- "text": "Foo <script>hacking.do(1337)</script>"
542
+ "text": "Foo <strong>bar</strong>"
541
543
  }
542
544
  ],
543
545
  "rows": [
544
546
  [
545
547
  {
546
- "text": "Foo <script>hacking.do(1337)</script>"
548
+ "text": "Foo <strong>bar</strong>"
547
549
  }
548
550
  ]
549
551
  ]
@@ -568,19 +570,19 @@
568
570
  }
569
571
  },
570
572
  {
571
- "name": "head with classes",
573
+ "name": "head con clases",
572
574
  "hidden": true,
573
575
  "data": {
574
576
  "head": [
575
577
  {
576
578
  "text": "Foo",
577
- "classes": "bg-warning-light"
579
+ "classes": "bg-primary-light"
578
580
  }
579
581
  ]
580
582
  }
581
583
  },
582
584
  {
583
- "name": "head with rowspan and colspan",
585
+ "name": "head con rowspan y colspan",
584
586
  "hidden": true,
585
587
  "data": {
586
588
  "head": [
@@ -593,7 +595,7 @@
593
595
  }
594
596
  },
595
597
  {
596
- "name": "head with attributes",
598
+ "name": "head con atributos",
597
599
  "hidden": true,
598
600
  "data": {
599
601
  "head": [
@@ -606,14 +608,14 @@
606
608
  }
607
609
  },
608
610
  {
609
- "name": "with firstCellIsHeader true",
611
+ "name": "con firstCellIsHeader true",
610
612
  "hidden": true,
611
613
  "data": {
612
614
  "firstCellIsHeader": true,
613
615
  "rows": [
614
616
  [
615
617
  {
616
- "text": "January"
618
+ "text": "Enero"
617
619
  },
618
620
  {
619
621
  "text": "85€",
@@ -626,7 +628,7 @@
626
628
  ],
627
629
  [
628
630
  {
629
- "text": "February"
631
+ "text": "Febrero"
630
632
  },
631
633
  {
632
634
  "text": "75€",
@@ -639,7 +641,7 @@
639
641
  ],
640
642
  [
641
643
  {
642
- "text": "March"
644
+ "text": "Marzo"
643
645
  },
644
646
  {
645
647
  "text": "165€",
@@ -654,7 +656,7 @@
654
656
  }
655
657
  },
656
658
  {
657
- "name": "firstCellIsHeader with classes",
659
+ "name": "firstCellIsHeader con clases",
658
660
  "hidden": true,
659
661
  "data": {
660
662
  "firstCellIsHeader": true,
@@ -662,14 +664,14 @@
662
664
  [
663
665
  {
664
666
  "text": "Foo",
665
- "classes": "bg-warning-light"
667
+ "classes": "bg-primary-light"
666
668
  }
667
669
  ]
668
670
  ]
669
671
  }
670
672
  },
671
673
  {
672
- "name": "firstCellIsHeader with html",
674
+ "name": "firstCellIsHeader con html",
673
675
  "hidden": true,
674
676
  "data": {
675
677
  "firstCellIsHeader": true,
@@ -683,21 +685,21 @@
683
685
  }
684
686
  },
685
687
  {
686
- "name": "firstCellIsHeader with html as text",
688
+ "name": "firstCellIsHeader con html como texto",
687
689
  "hidden": true,
688
690
  "data": {
689
691
  "firstCellIsHeader": true,
690
692
  "rows": [
691
693
  [
692
694
  {
693
- "text": "Foo <script>hacking.do(1337)</script>"
695
+ "text": "Foo <strong>bar</strong>"
694
696
  }
695
697
  ]
696
698
  ]
697
699
  }
698
700
  },
699
701
  {
700
- "name": "firstCellIsHeader with rowspan and colspan",
702
+ "name": "firstCellIsHeader con rowspan y colspan",
701
703
  "hidden": true,
702
704
  "data": {
703
705
  "firstCellIsHeader": true,
@@ -713,7 +715,7 @@
713
715
  }
714
716
  },
715
717
  {
716
- "name": "firstCellIsHeader with attributes",
718
+ "name": "firstCellIsHeader con atributos",
717
719
  "hidden": true,
718
720
  "data": {
719
721
  "firstCellIsHeader": true,
@@ -730,7 +732,7 @@
730
732
  }
731
733
  },
732
734
  {
733
- "name": "with falsey items",
735
+ "name": "con items falsos",
734
736
  "hidden": true,
735
737
  "data": {
736
738
  "rows": [
@@ -764,21 +766,21 @@
764
766
  }
765
767
  },
766
768
  {
767
- "name": "rows with classes",
769
+ "name": "filas con clases",
768
770
  "hidden": true,
769
771
  "data": {
770
772
  "rows": [
771
773
  [
772
774
  {
773
775
  "text": "Foo",
774
- "classes": "bg-warning-light"
776
+ "classes": "bg-primary-light"
775
777
  }
776
778
  ]
777
779
  ]
778
780
  }
779
781
  },
780
782
  {
781
- "name": "rows with rowspan and colspan",
783
+ "name": "filas con rowspan y colspan",
782
784
  "hidden": true,
783
785
  "data": {
784
786
  "rows": [
@@ -793,7 +795,7 @@
793
795
  }
794
796
  },
795
797
  {
796
- "name": "rows with attributes",
798
+ "name": "filas con atributos",
797
799
  "hidden": true,
798
800
  "data": {
799
801
  "rows": [