desy-html 7.1.2 → 7.3.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 (147) hide show
  1. package/docs/_global.foot.njk +9 -9
  2. package/docs/_global.head.njk +1 -1
  3. package/docs/_include.template-header.njk +8 -0
  4. package/docs/_macro.example-render.njk +177 -147
  5. package/docs/_macro.render-caller.njk +1 -1
  6. package/docs/ds/_ds.example.border.njk +1 -1
  7. package/docs/ds/_ds.example.color-de-interaccion.njk +5 -5
  8. package/docs/ds/_ds.example.colores-cabecera.njk +7 -7
  9. package/docs/ds/_ds.example.colores-de-soporte.njk +72 -5
  10. package/docs/ds/_ds.example.colores-neutros.njk +12 -12
  11. package/docs/ds/_ds.example.layout.njk +2 -2
  12. package/docs/ds/_ds.example.typography.njk +1 -1
  13. package/docs/ds/_ds.macro.code-snippet.njk +28 -9
  14. package/docs/ds/_ds.section.color.njk +7 -65
  15. package/docs/ds/_ds.section.espaciado.njk +4 -295
  16. package/docs/ds/_ds.section.layout.njk +5 -5
  17. package/docs/ds/_ds.section.textos.njk +32 -54
  18. package/docs/ds/_ds.section.typography.njk +239 -236
  19. package/docs/index.html +12 -0
  20. package/docs/pagina-accesibilidad.html +104 -0
  21. package/docs/pagina-mapa-web.html +131 -0
  22. package/docs/pagina-prueba.html +95 -0
  23. package/docs/plantilla-con-header-advanced.html +7 -0
  24. package/docs/plantilla-editar-con-cabecera-fija-y-sidebar-sticky.html +147 -0
  25. package/docs/plantilla-editar-con-cabecera-fija.html +10 -0
  26. package/docs/plantilla-logueado-con-cabecera-fija-headroom.html +8 -0
  27. package/docs/plantilla-logueado-con-cabecera-fija.html +8 -0
  28. package/docs/plantilla-logueado-con-selector-de-app-y-sidebar.html +157 -0
  29. package/docs/plantilla-logueado-con-selector-de-app-y-subheader.html +9 -0
  30. package/docs/plantilla-logueado-con-selector-de-app.html +7 -0
  31. package/docs/plantilla-logueado-con-titulo-de-app.html +7 -0
  32. package/docs/plantilla-sin-loguear.html +7 -0
  33. package/docs/plantillas.html +88 -0
  34. package/docs/spinner-plantilla-con-header-advanced.html +2 -0
  35. package/docs/spinner-plantilla-editar-con-cabecera-fija.html +5 -0
  36. package/docs/spinner-plantilla-logueado-con-cabecera-fija.html +2 -0
  37. package/docs/spinner-plantilla-logueado-con-selector-de-app-y-subheader.html +4 -0
  38. package/docs/spinner-plantilla-logueado-con-titulo-de-app.html +2 -0
  39. package/docs/spinner-plantilla-sin-loguear.html +18 -0
  40. package/package.json +1 -1
  41. package/src/css/component.headroom.css +31 -0
  42. package/src/css/styles.css +1 -0
  43. package/src/js/aria/dataGrid.js +21 -6
  44. package/src/js/headroom.min.js +7 -0
  45. package/src/js/index.js +0 -7
  46. package/src/js/popper.min.js +6 -0
  47. package/src/js/prism/clipboard.min.js +7 -0
  48. package/src/js/prism/prism-copy-to-clipboard.min.js +1 -0
  49. package/src/js/prism/prism-normalize-whitespace.min.js +1 -0
  50. package/src/js/prism/prism-toolbar.min.js +1 -0
  51. package/src/js/prism/prism-twig.min.js +1 -0
  52. package/src/js/prism/prism-yaml.min.js +1 -0
  53. package/src/js/prism/prism.min.js +1 -0
  54. package/src/js/tippy-bundle.umd.min.js +2 -0
  55. package/src/templates/components/accordion/_template.accordion.njk +95 -84
  56. package/src/templates/components/accordion-history/_template.accordion-history.njk +134 -123
  57. package/src/templates/components/alert/_template.alert.njk +6 -6
  58. package/src/templates/components/breadcrumbs/_template.breadcrumbs.njk +15 -30
  59. package/src/templates/components/button/_template.button.njk +4 -0
  60. package/src/templates/components/button-loader/_template.button-loader.njk +11 -7
  61. package/src/templates/components/card/_examples.card.njk +76 -76
  62. package/src/templates/components/card/_template.card.njk +14 -14
  63. package/src/templates/components/character-count/_template.character-count.njk +3 -6
  64. package/src/templates/components/checkboxes/_examples.checkboxes.njk +49 -10
  65. package/src/templates/components/checkboxes/_template.checkboxes.njk +17 -11
  66. package/src/templates/components/collapsible/_template.collapsible.njk +4 -4
  67. package/src/templates/components/date-input/_template.date-input.njk +46 -40
  68. package/src/templates/components/dialog/_template.dialog.njk +2 -2
  69. package/src/templates/components/error-message/_template.error-message.njk +3 -3
  70. package/src/templates/components/error-summary/_template.error-summary.njk +18 -6
  71. package/src/templates/components/fieldset/_examples.fieldset.njk +32 -6
  72. package/src/templates/components/fieldset/_template.fieldset.njk +28 -16
  73. package/src/templates/components/footer/_examples.footer.njk +14 -9
  74. package/src/templates/components/footer/_template.footer.njk +62 -66
  75. package/src/templates/components/footer/params.footer.yaml +4 -26
  76. package/src/templates/components/header/_examples.header.njk +6 -4
  77. package/src/templates/components/header/_template.header.header__dropdown.njk +27 -22
  78. package/src/templates/components/header/_template.header.header__navigation.njk +4 -1
  79. package/src/templates/components/header/_template.header.header__offcanvas.njk +18 -16
  80. package/src/templates/components/header/_template.header.header__offcanvasButton.njk +2 -1
  81. package/src/templates/components/header/_template.header.header__subnav.njk +33 -29
  82. package/src/templates/components/header/_template.header.njk +70 -60
  83. package/src/templates/components/header-advanced/_examples.header-advanced.njk +46 -32
  84. package/src/templates/components/header-advanced/_template.header-advanced.njk +93 -90
  85. package/src/templates/components/header-mini/_examples.header-mini.njk +1 -1
  86. package/src/templates/components/hint/_examples.hint.njk +2 -2
  87. package/src/templates/components/hint/_template.hint.njk +1 -3
  88. package/src/templates/components/input-group/_template.input-group.njk +72 -68
  89. package/src/templates/components/item/_template.item.njk +23 -23
  90. package/src/templates/components/label/_template.label.njk +25 -14
  91. package/src/templates/components/links-list/_examples.links-list.njk +10 -12
  92. package/src/templates/components/links-list/_template.links-list.njk +35 -37
  93. package/src/templates/components/listbox/_template.listbox.njk +11 -11
  94. package/src/templates/components/menu-navigation/_template.menu-navigation.njk +62 -63
  95. package/src/templates/components/menu-vertical/_template.menu-vertical.njk +41 -41
  96. package/src/templates/components/menubar/_template.menubar.njk +91 -91
  97. package/src/templates/components/modal/_template.modal.njk +63 -53
  98. package/src/templates/components/nav/_template.nav.njk +13 -13
  99. package/src/templates/components/notification/_examples.notification.njk +0 -9
  100. package/src/templates/components/notification/_template.notification.njk +54 -44
  101. package/src/templates/components/pagination/_template.pagination.njk +37 -42
  102. package/src/templates/components/radios/_examples.radios.njk +49 -12
  103. package/src/templates/components/radios/_template.radios.njk +90 -84
  104. package/src/templates/components/searchbar/_template.searchbar.njk +6 -6
  105. package/src/templates/components/select/_template.select.njk +12 -12
  106. package/src/templates/components/status-item/_template.status-item.njk +23 -25
  107. package/src/templates/components/table/_template.table.njk +4 -4
  108. package/src/templates/components/table-advanced/_examples.table-advanced.njk +9 -9
  109. package/src/templates/components/table-advanced/_styles.table-advanced.css +3 -3
  110. package/src/templates/components/table-advanced/_template.table-advanced.njk +85 -83
  111. package/src/templates/components/tabs/_template.tabs.njk +39 -39
  112. package/src/templates/components/toggle/_template.toggle.njk +1 -2
  113. package/src/templates/components/tooltip/_template.tooltip.njk +19 -19
  114. package/src/templates/components/tree/_template.tree.njk +46 -42
  115. package/src/templates/includes/_abrir-notificaciones.njk +3 -0
  116. package/src/templates/includes/_acciones-de-cabecera.njk +28 -0
  117. package/src/templates/includes/_ejemplo-titulo-h2-parrafo.njk +5 -0
  118. package/src/templates/includes/_ejemplo-titulo-parrafo.njk +5 -0
  119. package/src/templates/includes/_loremipsum-large.njk +1 -0
  120. package/src/templates/includes/_test-include.njk +14 -0
  121. package/src/templates/pages/_page.foot-headroom.njk +32 -0
  122. package/src/templates/pages/_page.foot.njk +7 -0
  123. package/src/templates/pages/_page.footer.njk +20 -0
  124. package/src/templates/pages/_page.head.njk +13 -0
  125. package/src/templates/pages/_page.notification-edit-inner-content.njk +31 -0
  126. package/src/templates/pages/_page.notification-edit.njk +31 -0
  127. package/src/templates/pages/_page.notification-footer.njk +33 -0
  128. package/src/templates/pages/_page.notification-header-fixed.njk +31 -0
  129. package/src/templates/pages/_page.notification-header.njk +31 -0
  130. package/src/templates/pages/_page.sidebar-content.njk +21 -0
  131. package/src/templates/pages/_page.spinner-block.njk +15 -0
  132. package/src/templates/pages/_page.spinner-show.njk +16 -0
  133. package/src/templates/pages/_page.spinner.njk +16 -0
  134. package/src/templates/pages/_template.edit-fixed-with-sticky-sidebar.njk +36 -0
  135. package/src/templates/pages/_template.edit-fixed.njk +74 -0
  136. package/src/templates/pages/_template.home.njk +109 -0
  137. package/src/templates/pages/_template.logged-out.njk +53 -0
  138. package/src/templates/pages/_template.logged-selector-fixed-headroom.njk +195 -0
  139. package/src/templates/pages/_template.logged-selector-fixed.njk +192 -0
  140. package/src/templates/pages/_template.logged-selector-subheader.njk +80 -0
  141. package/src/templates/pages/_template.logged-selector-with-sidebar.njk +29 -0
  142. package/src/templates/pages/_template.logged-selector.njk +195 -0
  143. package/src/templates/pages/_template.logged.njk +138 -0
  144. package/src/templates/pages/_template.mfe-iframe-content.njk +31 -0
  145. package/src/templates/pages/_template.mfe.njk +80 -0
  146. package/src/templates/pages/_template.test.njk +45 -0
  147. package/src/templates/pages/_template.with-header-advanced.njk +130 -0
@@ -0,0 +1,157 @@
1
+ {% set title = "Plantilla logueado con selector de app y sidebar. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-selector-with-sidebar.njk" %}
3
+
4
+ {% from "components/menu-vertical/_macro.menu-vertical.njk" import componentMenuVertical %}
5
+
6
+ {% block sidebarBlock %}
7
+ <div class="pb-lg"></div>
8
+ <h2 id="apartados-de-pagina" class="sr-only">Índice de apartados de esta página</h2>
9
+ {{ componentMenuVertical({
10
+ "idPrefix": "sidebar-item",
11
+ "items": [
12
+ {
13
+ "href": "#datos-generales",
14
+ "text": "Datos generales",
15
+ "sub": {
16
+ "items": [
17
+ {
18
+ "href": "#denominacion",
19
+ "text": "Denominación"
20
+ },
21
+ {
22
+ "href": "#descripcion",
23
+ "text": "Descripción"
24
+ },
25
+ {
26
+ "href": "#organos-o-unidades-gestoras",
27
+ "text": "Órganos o unidades gestoras"
28
+ },
29
+ {
30
+ "href": "#categorias",
31
+ "text": "Categorías"
32
+ },
33
+ {
34
+ "href": "#etiquetas-libres",
35
+ "text": "Etiquetas libres"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "text": "Normativa general",
42
+ "href": "#normativa-general"
43
+ },
44
+ {
45
+ "href": "#caracteristicas-generales-de-tramitacion",
46
+ "text": "Características generales de tramitación",
47
+ "sub": {
48
+ "items": [
49
+ {
50
+ "href": "#grupos-de-destinatarios",
51
+ "text": "Grupos de destinatarios"
52
+ },
53
+ {
54
+ "href": "#destinatarios",
55
+ "text": "Destinatarios"
56
+ },
57
+ {
58
+ "href": "#requisitos-generales",
59
+ "text": "Requisitos generales"
60
+ },
61
+ {
62
+ "href": "#canales-de-informacion",
63
+ "text": "Canales de información"
64
+ },
65
+ {
66
+ "href": "#tramites-principales",
67
+ "text": "Trámites principales"
68
+ },
69
+ {
70
+ "href": "#resolucion",
71
+ "text": "Resolución"
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ ],
77
+ "attributes": {
78
+ "aria-labelledby": "apartados-de-pagina"
79
+ }
80
+ }) }}
81
+ {% endblock %}
82
+
83
+ {% block headerContentBlock %}
84
+ <div class="pb-lg"></div>
85
+ <h1 class="c-h1">Titulo de app</h1>
86
+ <p class="c-paragraph-base mb-lg">
87
+ Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ipsum et, laboriosam perferendis nesciunt. Recusandae, dolorum! Error doloribus, quisquam. Quasi possimus provident delectus incidunt voluptas quos quaerat quis minima itaque impedit. Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ipsum et, laboriosam perferendis nesciunt. Recusandae, dolorum! Error doloribus, quisquam. Quasi possimus provident delectus incidunt voluptas quos quaerat quis minima itaque impedit.
88
+ </p>
89
+ {% endblock %}
90
+
91
+ {% block innerContentBlock %}
92
+ <div class="pb-lg"></div>
93
+ <h2 id="datos-generales" class="c-h2 c-anchor-scroll">Datos generales (h2)</h2>
94
+ <h3 id="denominacion" class="c-anchor-scroll c-h3">Denominación (h3)</h3>
95
+ <p class="c-paragraph-base">
96
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
97
+ </p>
98
+ {% include "includes/_abrir-notificaciones.njk" %}
99
+ <div class="pb-xl"></div>
100
+ <h3 id="descripcion" class="c-anchor-scroll c-h3">Descripción</h3>
101
+ <p class="c-paragraph-base">
102
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
103
+ </p>
104
+ <div class="pb-xl"></div>
105
+ <h3 id="organos-o-unidades-gestoras" class="c-anchor-scroll c-h3">Órganos o unidades gestoras</h3>
106
+ <p class="c-paragraph-base">
107
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
108
+ </p>
109
+ <div class="pb-xl"></div>
110
+ <h3 id="categorias" class="c-anchor-scroll c-h3">Categorías</h3>
111
+ <p class="c-paragraph-base">
112
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
113
+ </p>
114
+ <div class="pb-xl"></div>
115
+ <h3 id="etiquetas-libres" class="c-anchor-scroll c-h3">Etiquetas libres</h3>
116
+ <p class="c-paragraph-base">
117
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
118
+ </p>
119
+ <div class="pb-xl"></div>
120
+ <hr class="border-neutral-base my-2xl">
121
+ <h2 id="normativa-general" class="c-h1 c-anchor-scroll">Normativa general</h2>
122
+ <p class="c-paragraph-base">
123
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
124
+ </p>
125
+ <div class="pb-xl"></div>
126
+ <hr class="border-neutral-base my-2xl">
127
+ <h2 id="caracteristicas-generales-de-tramitacion" class="c-h1 c-anchor-scroll">Características generales de tramitación</h2>
128
+ <h3 id="grupos-de-destinatarios" class="c-anchor-scroll c-h3">Grupos de destinatarios</h3>
129
+ <p class="c-paragraph-base">
130
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
131
+ </p>
132
+ <div class="pb-xl"></div>
133
+ <h3 id="destinatarios" class="c-anchor-scroll c-h3">Destinatarios</h3>
134
+ <p class="c-paragraph-base">
135
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
136
+ </p>
137
+ <div class="pb-xl"></div>
138
+ <h3 id="requisitos-generales" class="c-anchor-scroll c-h3">Requisitos generales</h3>
139
+ <p class="c-paragraph-base">
140
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
141
+ </p>
142
+ <div class="pb-xl"></div>
143
+ <h3 id="canales-de-informacion" class="c-anchor-scroll c-h3">Canales de información</h3>
144
+ <p class="c-paragraph-base">
145
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
146
+ </p>
147
+ <div class="pb-xl"></div>
148
+ <h3 id="tramites-principales" class="c-anchor-scroll c-h3">Trámites principales</h3>
149
+ <p class="c-paragraph-base">
150
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
151
+ </p>
152
+ <div class="pb-xl"></div>
153
+ <h3 id="resolucion" class="c-anchor-scroll c-h3">Resolución</h3>
154
+ <p class="c-paragraph-base">
155
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem veniam facilis sapiente ea explicabo ipsa dolores placeat quis quam ut officia voluptas sed natus eius sequi inventore, saepe repellendus quae.
156
+ </p>
157
+ {% endblock %}
@@ -0,0 +1,9 @@
1
+ {% set title = "Plantilla logueado con selector de app y subheader. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-selector-subheader.njk" %}
3
+
4
+
5
+ {% block contentBlock %}
6
+ {% include "includes/_ejemplo-titulo-parrafo.njk" %}
7
+ {% include "includes/_loremipsum-large.njk" %}
8
+ {% include "includes/_abrir-notificaciones.njk" %}
9
+ {% endblock %}
@@ -0,0 +1,7 @@
1
+ {% set title = "Plantilla logueado con selector de app. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-selector.njk" %}
3
+
4
+ {% block contentBlock %}
5
+ {% include "includes/_ejemplo-titulo-parrafo.njk" %}
6
+ {% include "includes/_abrir-notificaciones.njk" %}
7
+ {% endblock %}
@@ -0,0 +1,7 @@
1
+ {% set title = "Plantilla logueado con título de app. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged.njk" %}
3
+
4
+ {% block contentBlock %}
5
+ {% include "includes/_ejemplo-titulo-parrafo.njk" %}
6
+ {% include "includes/_abrir-notificaciones.njk" %}
7
+ {% endblock %}
@@ -0,0 +1,7 @@
1
+ {% set title = "Plantilla sin loguear. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-out.njk" %}
3
+
4
+ {% block contentBlock %}
5
+ {% include "includes/_ejemplo-titulo-parrafo.njk" %}
6
+ {% include "includes/_abrir-notificaciones.njk" %}
7
+ {% endblock %}
@@ -0,0 +1,88 @@
1
+ {% set title = "Plantillas para desy-html. Gobierno de Aragón" %}
2
+ {% extends "_template.default.njk" %}
3
+
4
+ {% block contentBlock %}
5
+ <div class="lg:w-3/4">
6
+ <div class="pb-lg"></div>
7
+ <h1 class="c-h1">Plantillas</h1>
8
+ <p class="c-paragraph-base">
9
+ Aqui encontrarás plantillas de página típicas que se utilizan en aplicaciones del Gobierno de Aragón. Los ejemplos que aquí aparecen han pasado revisiones de accesibilidad, por lo que son seguros para ser utilizados en tus proyectos como punto de partida.
10
+ </p>
11
+
12
+ <div class="pb-lg"></div>
13
+
14
+ <h2 id="plantillas" class="c-h2">Plantillas de página</h2>
15
+ <ul class="mb-lg">
16
+ <li class="mb-base">
17
+ <a class="c-link" href="plantilla-sin-loguear.html">Plantilla sin loguear</a>
18
+ </li>
19
+ <li class="mb-base">
20
+ <a class="c-link" href="plantilla-logueado-con-titulo-de-app.html">Plantilla logueado con título de app</a>
21
+ </li>
22
+ <li class="mb-base">
23
+ <a class="c-link" href="plantilla-logueado-con-selector-de-app.html">Plantilla logueado con selector de app</a>
24
+ </li>
25
+ <li class="mb-base">
26
+ <a class="c-link" href="plantilla-logueado-con-cabecera-fija.html">Plantilla logueado con cabecera fija</a>
27
+ </li>
28
+ <li class="mb-base">
29
+ <a class="c-link" href="plantilla-logueado-con-cabecera-fija-headroom.html">Plantilla logueado con cabecera fija con librería headroom.js</a>
30
+ </li>
31
+ <li class="mb-base">
32
+ <a class="c-link" href="plantilla-editar-con-cabecera-fija.html">Plantilla editar con cabecera fija</a>
33
+ </li>
34
+ <li class="mb-base">
35
+ <a class="c-link" href="plantilla-editar-con-cabecera-fija-y-sidebar-sticky.html">Plantilla editar con cabecera fija y sidebar sticky</a>
36
+ </li>
37
+ <li class="mb-base">
38
+ <a class="c-link" href="plantilla-logueado-con-selector-de-app-y-subheader.html">Plantilla logueado con selector de app y subheader</a>
39
+ </li>
40
+ <li class="mb-base">
41
+ <a class="c-link" href="plantilla-logueado-con-selector-de-app-y-sidebar.html">Plantilla logueado con selector de app y sidebar</a>
42
+ </li>
43
+ <li class="mb-base">
44
+ <a class="c-link" href="plantilla-con-header-advanced.html">Plantilla con header advanced</a>
45
+ </li>
46
+ </ul>
47
+
48
+ <div class="pb-lg"></div>
49
+
50
+ <h2 id="spinners" class="c-h2">Spinners en plantillas</h2>
51
+ <ul class="mb-lg">
52
+ <li class="mb-base">
53
+ <a class="c-link" href="spinner-plantilla-sin-loguear.html">Spinner de página en Plantilla sin loguear</a>
54
+ </li>
55
+ <li class="mb-base">
56
+ <a class="c-link" href="spinner-plantilla-logueado-con-titulo-de-app.html">Spinner de contenido en Plantilla logueado con título de app</a>
57
+ </li>
58
+ <li class="mb-base">
59
+ <a class="c-link" href="spinner-plantilla-logueado-con-cabecera-fija.html">Spinner de contenido en Plantilla logueado con cabecera fija</a>
60
+ </li>
61
+ <li class="mb-base">
62
+ <a class="c-link" href="spinner-plantilla-editar-con-cabecera-fija.html">Spinner de contenido en Plantilla editar con cabecera fija</a>
63
+ </li>
64
+ <li class="mb-base">
65
+ <a class="c-link" href="spinner-plantilla-logueado-con-selector-de-app-y-subheader.html">Spinner de contenido en Plantilla logueado con selector de app y subheader</a>
66
+ </li>
67
+ <li class="mb-base">
68
+ <a class="c-link" href="spinner-plantilla-con-header-advanced.html">Spinner de contenido en Plantilla con header advanced</a>
69
+ </li>
70
+ </ul>
71
+
72
+ <div class="pb-lg"></div>
73
+
74
+ <h2 id="paginas" class="c-h2">Páginas</h2>
75
+ <h3 class="c-h3">Páginas varias</h3>
76
+ <p class="c-paragraph-base">
77
+ Esto son ejemplos de varios tipos de páginas de una aplicación.
78
+ </p>
79
+ <ul class="mb-lg">
80
+ <li class="mb-base">
81
+ <a class="c-link" href="pagina-mapa-web.html">Mapa web</a>
82
+ </li>
83
+ <li class="mb-base">
84
+ <a class="c-link" href="pagina-accesibilidad.html">Accesibilidad</a>
85
+ </li>
86
+ </ul>
87
+ </div>
88
+ {% endblock %}
@@ -0,0 +1,2 @@
1
+ {% set title = "Spinner de contenido en Plantilla con header advanced. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.with-header-advanced.njk" %}
@@ -0,0 +1,5 @@
1
+ {% set title = "Spinner de contenido en Plantilla editar con cabecera fija. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.edit-fixed.njk" %}
3
+
4
+ {# Use headerTitleEditBlock and headerActionsEditBlock template blocks to customize the fixed header #}
5
+
@@ -0,0 +1,2 @@
1
+ {% set title = "Spinner de contenido en Plantilla logueado con cabecera fija. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-selector-fixed.njk" %}
@@ -0,0 +1,4 @@
1
+ {% set title = "Spinner de contenido en Plantilla logueado con selector de app y subheader. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-selector-subheader.njk" %}
3
+
4
+
@@ -0,0 +1,2 @@
1
+ {% set title = "Spinner de contenido en Plantilla logueado con título de app. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged.njk" %}
@@ -0,0 +1,18 @@
1
+ {% set title = "Spinner de página en Plantilla sin loguear. Gobierno de Aragón" %}
2
+ {% extends "pages/_template.logged-out.njk" %}
3
+
4
+ {% block pageSpinnerBlock %}
5
+ {% include "pages/_page.spinner-show.njk" %}
6
+ {% endblock %}
7
+ {% block headerBlock %}
8
+ {% endblock %}
9
+ {% block notificationHeaderBlock %}
10
+ {% endblock %}
11
+ {% block contentBlock %}
12
+ {% endblock %}
13
+ {% block notificationFooterBlock %}
14
+ {% endblock %}
15
+ {% block footerBlock %}
16
+ {% endblock %}
17
+ {% block modalBlock %}
18
+ {% endblock %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desy-html",
3
- "version": "7.1.2",
3
+ "version": "7.3.0",
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)",
@@ -0,0 +1,31 @@
1
+ /* ==========================================================================
2
+ component.headroom.css
3
+ ========================================================================== */
4
+
5
+
6
+ @layer components {
7
+ .headroom {
8
+ @apply lg:fixed !important;
9
+ @apply lg:top-0;
10
+ @apply lg:w-full;
11
+ @apply lg:transform;
12
+ @apply lg:transition-transform;
13
+ @apply lg:duration-500;
14
+ @apply lg:z-10;
15
+ }
16
+ .headroom--pinned {
17
+ @apply lg:translate-y-0;
18
+ }
19
+ .headroom--unpinned {
20
+ @apply lg:-translate-y-full;
21
+ }
22
+
23
+ .c-anchor-scroll {
24
+ scroll-margin-top: 4rem;
25
+ }
26
+
27
+ .c-anchor-scroll-edit {
28
+ scroll-margin-top: 5.375rem;
29
+ }
30
+ }
31
+
@@ -39,6 +39,7 @@
39
39
  @import "../templates/components/tree/_styles.tree.css";
40
40
  @import "./component.form-group.css";
41
41
  @import "./component.tippy-box.css";
42
+ @import "./component.headroom.css";
42
43
 
43
44
  /* Framework utilities */
44
45
  @import "tailwindcss/utilities";
@@ -525,17 +525,32 @@ export function dataGrid(aria) {
525
525
  }
526
526
 
527
527
  var comparator = function (row1, row2) {
528
+ if(row1.children[columnIndex].classList.contains('align-top') || row2.children[columnIndex].classList.contains('align-top')) {
529
+ return
530
+ }
528
531
  var row1Text = row1.children[columnIndex].innerText;
529
532
  var row2Text = row2.children[columnIndex].innerText;
530
- var row1Value = parseInt(row1Text.replace(/[^0-9\.]+/g, ''));
531
- var row2Value = parseInt(row2Text.replace(/[^0-9\.]+/g, ''));
533
+ var row1Value = parseInt(row1Text) ? parseInt(row1Text.replace(/[^0-9\.]+/g, '')) : row1Text
534
+ var row2Value = parseInt(row2Text) ? parseInt(row2Text.replace(/[^0-9\.]+/g, '')) : row2Text
535
+
536
+ var orderValue = parseInt(row1Text) ? 'numbers' : 'strings'
532
537
 
533
- if (sortType === aria.SortType.ASCENDING) {
538
+ if (sortType === aria.SortType.ASCENDING && orderValue === 'numbers') {
534
539
  return row1Value - row2Value;
535
540
  }
536
- else {
541
+
542
+ if (sortType === aria.SortType.DESCENDING && orderValue === 'numbers') {
537
543
  return row2Value - row1Value;
538
544
  }
545
+
546
+ if (sortType === aria.SortType.ASCENDING && orderValue === 'strings') {
547
+ return row1Value.toString().localeCompare(row2Value);
548
+ }
549
+
550
+ if (sortType === aria.SortType.DESCENDING && orderValue === 'strings') {
551
+ return row2Value.toString().localeCompare(row1Value);
552
+ }
553
+
539
554
  };
540
555
 
541
556
  this.sortRows(comparator);
@@ -560,7 +575,7 @@ export function dataGrid(aria) {
560
575
  */
561
576
  aria.Grid.prototype.sortRows = function (compareFn) {
562
577
  var rows = this.gridNode.querySelectorAll(aria.GridSelector.ROW);
563
- var rowWrapper = rows[0].parentNode;
578
+ var rowWrapper = this.gridNode.querySelector('tbody');
564
579
  var dataRows = Array.prototype.slice.call(rows, 1);
565
580
 
566
581
  dataRows.sort(compareFn);
@@ -932,4 +947,4 @@ export function dataGrid(aria) {
932
947
 
933
948
  return element.querySelector(selector);
934
949
  };
935
- }
950
+ }
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * headroom.js v0.12.0 - Give your page some headroom. Hide your header until you need it
3
+ * Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js
4
+ * License: MIT
5
+ */
6
+
7
+ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).Headroom=n()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function d(t){return function(t){return t&&t.document&&function(t){return 9===t.nodeType}(t.document)}(t)?function(t){var n=t.document,o=n.body,s=n.documentElement;return{scrollHeight:function(){return Math.max(o.scrollHeight,s.scrollHeight,o.offsetHeight,s.offsetHeight,o.clientHeight,s.clientHeight)},height:function(){return t.innerHeight||s.clientHeight||o.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(s||o.parentNode||o).scrollTop}}}(t):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t)}function n(t,s,e){var n,o=function(){var n=!1;try{var t={get passive(){n=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){n=!1}return n}(),i=!1,r=d(t),l=r.scrollY(),a={};function c(){var t=Math.round(r.scrollY()),n=r.height(),o=r.scrollHeight();a.scrollY=t,a.lastScrollY=l,a.direction=l<t?"down":"up",a.distance=Math.abs(t-l),a.isOutOfBounds=t<0||o<t+n,a.top=t<=s.offset[a.direction],a.bottom=o<=t+n,a.toleranceExceeded=a.distance>s.tolerance[a.direction],e(a),l=t,i=!1}function h(){i||(i=!0,n=requestAnimationFrame(c))}var u=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,u),c(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",h,u)}}}function o(t){return t===Object(t)?t:{down:t,up:t}}function s(t,n){n=n||{},Object.assign(this,s.options,n),this.classes=Object.assign({},s.options.classes,n.classes),this.elem=t,this.tolerance=o(this.tolerance),this.offset=o(this.offset),this.initialised=!1,this.frozen=!1}return s.prototype={constructor:s,init:function(){return s.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},s.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},s.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),s});
package/src/js/index.js CHANGED
@@ -41,10 +41,3 @@ notificationComponent(aria);
41
41
  radioButtonComponent(aria);
42
42
  checkBoxComponent(aria);
43
43
 
44
- document.querySelectorAll('.c-code-snippet__button').forEach(button => {
45
- button.addEventListener('click', (event) => {
46
- event.target.querySelector('.c-code-snippet__show').classList.toggle('hidden')
47
- event.target.querySelector('.c-code-snippet__hide').classList.toggle('hidden')
48
- event.target.nextElementSibling.classList.toggle('hidden')
49
- });
50
- });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @popperjs/core v2.4.4 - MIT License
3
+ */
4
+
5
+ "use strict";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Popper={})}(this,(function(e){function t(e){return{width:(e=e.getBoundingClientRect()).width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function n(e){return"[object Window]"!==e.toString()?(e=e.ownerDocument)?e.defaultView:window:e}function r(e){return{scrollLeft:(e=n(e)).pageXOffset,scrollTop:e.pageYOffset}}function o(e){return e instanceof n(e).Element||e instanceof Element}function i(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function a(e){return e?(e.nodeName||"").toLowerCase():null}function s(e){return(o(e)?e.ownerDocument:e.document).documentElement}function f(e){return t(s(e)).left+r(e).scrollLeft}function c(e){return n(e).getComputedStyle(e)}function p(e){return e=c(e),/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function l(e,o,c){void 0===c&&(c=!1);var l=s(o);e=t(e);var u=i(o),d={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(u||!u&&!c)&&(("body"!==a(o)||p(l))&&(d=o!==n(o)&&i(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:r(o)),i(o)?((m=t(o)).x+=o.clientLeft,m.y+=o.clientTop):l&&(m.x=f(l))),{x:e.left+d.scrollLeft-m.x,y:e.top+d.scrollTop-m.y,width:e.width,height:e.height}}function u(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function d(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||e.host||s(e)}function m(e,t){void 0===t&&(t=[]);var r=function e(t){return 0<=["html","body","#document"].indexOf(a(t))?t.ownerDocument.body:i(t)&&p(t)?t:e(d(t))}(e);e="body"===a(r);var o=n(r);return r=e?[o].concat(o.visualViewport||[],p(r)?r:[]):r,t=t.concat(r),e?t:t.concat(m(d(r)))}function h(e){if(!i(e)||"fixed"===c(e).position)return null;if(e=e.offsetParent){var t=s(e);if("body"===a(e)&&"static"===c(e).position&&"static"!==c(t).position)return t}return e}function g(e){for(var t=n(e),r=h(e);r&&0<=["table","td","th"].indexOf(a(r))&&"static"===c(r).position;)r=h(r);if(r&&"body"===a(r)&&"static"===c(r).position)return t;if(!r)e:{for(e=d(e);i(e)&&0>["html","body"].indexOf(a(e));){if("none"!==(r=c(e)).transform||"none"!==r.perspective||r.willChange&&"auto"!==r.willChange){r=e;break e}e=e.parentNode}r=null}return r||t}function b(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){n.has(r)||(r=t.get(r))&&e(r)})),r.push(o)}(e)})),r}function v(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function y(e){return e.split("-")[0]}function O(e,t){var n=!(!t.getRootNode||!t.getRootNode().host);if(e.contains(t))return!0;if(n)do{if(t&&e.isSameNode(t))return!0;t=t.parentNode||t.host}while(t);return!1}function x(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w(e,o){if("viewport"===o){o=n(e);var a=s(e);o=o.visualViewport;var p=a.clientWidth;a=a.clientHeight;var l=0,u=0;o&&(p=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,u=o.offsetTop)),e=x(e={width:p,height:a,x:l+f(e),y:u})}else i(o)?((e=t(o)).top+=o.clientTop,e.left+=o.clientLeft,e.bottom=e.top+o.clientHeight,e.right=e.left+o.clientWidth,e.width=o.clientWidth,e.height=o.clientHeight,e.x=e.left,e.y=e.top):(u=s(e),e=s(u),l=r(u),o=u.ownerDocument.body,p=Math.max(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Math.max(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-l.scrollLeft+f(u),l=-l.scrollTop,"rtl"===c(o||e).direction&&(u+=Math.max(e.clientWidth,o?o.clientWidth:0)-p),e=x({width:p,height:a,x:u,y:l}));return e}function j(e,t,n){return t="clippingParents"===t?function(e){var t=m(d(e)),n=0<=["absolute","fixed"].indexOf(c(e).position)&&i(e)?g(e):e;return o(n)?t.filter((function(e){return o(e)&&O(e,n)&&"body"!==a(e)})):[]}(e):[].concat(t),(n=(n=[].concat(t,[n])).reduce((function(t,n){return n=w(e,n),t.top=Math.max(n.top,t.top),t.right=Math.min(n.right,t.right),t.bottom=Math.min(n.bottom,t.bottom),t.left=Math.max(n.left,t.left),t}),w(e,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function M(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function E(e){var t=e.reference,n=e.element,r=(e=e.placement)?y(e):null;e=e?e.split("-")[1]:null;var o=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;switch(r){case"top":o={x:o,y:t.y-n.height};break;case"bottom":o={x:o,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:i};break;case"left":o={x:t.x-n.width,y:i};break;default:o={x:t.x,y:t.y}}if(null!=(r=r?M(r):null))switch(i="y"===r?"height":"width",e){case"start":o[r]=Math.floor(o[r])-Math.floor(t[i]/2-n[i]/2);break;case"end":o[r]=Math.floor(o[r])+Math.ceil(t[i]/2-n[i]/2)}return o}function D(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function P(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function k(e,n){void 0===n&&(n={});var r=n;n=void 0===(n=r.placement)?e.placement:n;var i=r.boundary,a=void 0===i?"clippingParents":i,f=void 0===(i=r.rootBoundary)?"viewport":i;i=void 0===(i=r.elementContext)?"popper":i;var c=r.altBoundary,p=void 0!==c&&c;r=D("number"!=typeof(r=void 0===(r=r.padding)?0:r)?r:P(r,q));var l=e.elements.reference;c=e.rects.popper,a=j(o(p=e.elements[p?"popper"===i?"reference":"popper":i])?p:p.contextElement||s(e.elements.popper),a,f),p=E({reference:f=t(l),element:c,strategy:"absolute",placement:n}),c=x(Object.assign(Object.assign({},c),p)),f="popper"===i?c:f;var u={top:a.top-f.top+r.top,bottom:f.bottom-a.bottom+r.bottom,left:a.left-f.left+r.left,right:f.right-a.right+r.right};if(e=e.modifiersData.offset,"popper"===i&&e){var d=e[n];Object.keys(u).forEach((function(e){var t=0<=["right","bottom"].indexOf(e)?1:-1,n=0<=["top","bottom"].indexOf(e)?"y":"x";u[e]+=d[n]*t}))}return u}function L(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=void 0===(e=e.defaultOptions)?V:e;return function(e,t,i){function a(){f.forEach((function(e){return e()})),f=[]}void 0===i&&(i=r);var s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},V),r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,p={state:s,setOptions:function(i){return a(),s.options=Object.assign(Object.assign(Object.assign({},r),s.options),i),s.scrollParents={reference:o(e)?m(e):e.contextElement?m(e.contextElement):[],popper:m(t)},i=function(e){var t=b(e);return N.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers))),s.orderedModifiers=i.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options;n=void 0===n?{}:n,"function"==typeof(e=e.effect)&&(t=e({state:s,name:t,instance:p,options:n}),f.push(t||function(){}))})),p.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference;if(L(t,e=e.popper))for(s.rects={reference:l(t,g(e),"fixed"===s.options.strategy),popper:u(e)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)})),t=0;t<s.orderedModifiers.length;t++)if(!0===s.reset)s.reset=!1,t=-1;else{var n=s.orderedModifiers[t];e=n.fn;var r=n.options;r=void 0===r?{}:r,n=n.name,"function"==typeof e&&(s=e({state:s,options:r,name:n,instance:p})||s)}}},update:v((function(){return new Promise((function(e){p.forceUpdate(),e(s)}))})),destroy:function(){a(),c=!0}};return L(e,t)?(p.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),p):p}}function W(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.offsets,f=e.position,c=e.gpuAcceleration,p=e.adaptive,l=window.devicePixelRatio||1;e=Math.round(a.x*l)/l||0,l=Math.round(a.y*l)/l||0;var u=a.hasOwnProperty("x");a=a.hasOwnProperty("y");var d,m="left",h="top",b=window;if(p){var v=g(r);v===n(r)&&(v=s(r)),"top"===i&&(h="bottom",l-=v.clientHeight-o.height,l*=c?1:-1),"left"===i&&(m="right",e-=v.clientWidth-o.width,e*=c?1:-1)}return r=Object.assign({position:f},p&&_),c?Object.assign(Object.assign({},r),{},((d={})[h]=a?"0":"",d[m]=u?"0":"",d.transform=2>(b.devicePixelRatio||1)?"translate("+e+"px, "+l+"px)":"translate3d("+e+"px, "+l+"px, 0)",d)):Object.assign(Object.assign({},r),{},((t={})[h]=a?l+"px":"",t[m]=u?e+"px":"",t.transform="",t))}function A(e){return e.replace(/left|right|bottom|top/g,(function(e){return U[e]}))}function H(e){return e.replace(/start|end/g,(function(e){return z[e]}))}function T(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function R(e){return["top","right","bottom","left"].some((function(t){return 0<=e[t]}))}var q=["top","bottom","right","left"],C=q.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),S=[].concat(q,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),N="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),V={placement:"bottom",modifiers:[],strategy:"absolute"},I={passive:!0},_={top:"auto",right:"auto",bottom:"auto",left:"auto"},U={left:"right",right:"left",bottom:"top",top:"bottom"},z={start:"end",end:"start"},F=[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=(e=e.options).scroll,i=void 0===o||o,a=void 0===(e=e.resize)||e,s=n(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",r.update,I)})),a&&s.addEventListener("resize",r.update,I),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",r.update,I)})),a&&s.removeEventListener("resize",r.update,I)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=E({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options;e=void 0===(e=n.gpuAcceleration)||e,n=void 0===(n=n.adaptive)||n,e={placement:y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),W(Object.assign(Object.assign({},e),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),W(Object.assign(Object.assign({},e),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&a(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{};e=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{}),i(r)&&a(r)&&(Object.assign(r.style,e),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=void 0===(e=e.options.offset)?[0,0]:e,o=(e=S.reduce((function(e,n){var o=t.rects,i=y(n),a=0<=["left","top"].indexOf(i)?-1:1,s="function"==typeof r?r(Object.assign(Object.assign({},o),{},{placement:n})):r;return o=(o=s[0])||0,s=((s=s[1])||0)*a,i=0<=["left","right"].indexOf(i)?{x:s,y:o}:{x:o,y:s},e[n]=i,e}),{}))[t.placement],i=o.x;o=o.y,null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=o),t.modifiersData[n]=e}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){var r=n.mainAxis;r=void 0===r||r;var o=n.altAxis;o=void 0===o||o;var i=n.fallbackPlacements,a=n.padding,s=n.boundary,f=n.rootBoundary,c=n.altBoundary,p=n.flipVariations,l=void 0===p||p,u=n.allowedAutoPlacements;p=y(n=t.options.placement),i=i||(p!==n&&l?function(e){if("auto"===y(e))return[];var t=A(e);return[H(e),t,H(t)]}(n):[A(n)]);var d=[n].concat(i).reduce((function(e,n){return e.concat("auto"===y(n)?function(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,i=t.flipVariations,a=t.allowedAutoPlacements,s=void 0===a?S:a,f=t.placement.split("-")[1];0===(i=(t=f?i?C:C.filter((function(e){return e.split("-")[1]===f})):q).filter((function(e){return 0<=s.indexOf(e)}))).length&&(i=t);var c=i.reduce((function(t,i){return t[i]=k(e,{placement:i,boundary:n,rootBoundary:r,padding:o})[y(i)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:n,boundary:s,rootBoundary:f,padding:a,flipVariations:l,allowedAutoPlacements:u}):n)}),[]);n=t.rects.reference,i=t.rects.popper;var m=new Map;p=!0;for(var h=d[0],g=0;g<d.length;g++){var b=d[g],v=y(b),O="start"===b.split("-")[1],x=0<=["top","bottom"].indexOf(v),w=x?"width":"height",j=k(t,{placement:b,boundary:s,rootBoundary:f,altBoundary:c,padding:a});if(O=x?O?"right":"left":O?"bottom":"top",n[w]>i[w]&&(O=A(O)),w=A(O),x=[],r&&x.push(0>=j[v]),o&&x.push(0>=j[O],0>=j[w]),x.every((function(e){return e}))){h=b,p=!1;break}m.set(b,x)}if(p)for(r=function(e){var t=d.find((function(t){if(t=m.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return h=t,"break"},o=l?3:1;0<o&&"break"!==r(o);o--);t.placement!==h&&(t.modifiersData[e]._skip=!0,t.placement=h,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;e=e.name;var r=n.mainAxis,o=void 0===r||r;r=void 0!==(r=n.altAxis)&&r;var i=n.tether;i=void 0===i||i;var a=n.tetherOffset,s=void 0===a?0:a;n=k(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),a=y(t.placement);var f=t.placement.split("-")[1],c=!f,p=M(a);a="x"===p?"y":"x";var l=t.modifiersData.popperOffsets,d=t.rects.reference,m=t.rects.popper,h="function"==typeof s?s(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):s;if(s={x:0,y:0},l){if(o){var b="y"===p?"top":"left",v="y"===p?"bottom":"right",O="y"===p?"height":"width";o=l[p];var x=l[p]+n[b],w=l[p]-n[v],j=i?-m[O]/2:0,E="start"===f?d[O]:m[O];f="start"===f?-m[O]:-d[O],m=t.elements.arrow,m=i&&m?u(m):{width:0,height:0};var D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0};b=D[b],v=D[v],m=Math.max(0,Math.min(d[O],m[O])),E=c?d[O]/2-j-m-b-h:E-m-b-h,c=c?-d[O]/2+j+m+v+h:f+m+v+h,h=t.elements.arrow&&g(t.elements.arrow),d=t.modifiersData.offset?t.modifiersData.offset[t.placement][p]:0,h=l[p]+E-d-(h?"y"===p?h.clientTop||0:h.clientLeft||0:0),c=l[p]+c-d,i=Math.max(i?Math.min(x,h):x,Math.min(o,i?Math.max(w,c):w)),l[p]=i,s[p]=i-o}r&&(r=l[a],i=Math.max(r+n["x"===p?"top":"left"],Math.min(r,r-n["x"===p?"bottom":"right"])),l[a]=i,s[a]=i-r),t.modifiersData[e]=s}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state;e=e.name;var r=n.elements.arrow,o=n.modifiersData.popperOffsets,i=y(n.placement),a=M(i);if(i=0<=["left","right"].indexOf(i)?"height":"width",r&&o){var s=n.modifiersData[e+"#persistent"].padding,f=u(r),c="y"===a?"top":"left",p="y"===a?"bottom":"right",l=n.rects.reference[i]+n.rects.reference[a]-o[a]-n.rects.popper[i];o=o[a]-n.rects.reference[a],l=(r=(r=g(r))?"y"===a?r.clientHeight||0:r.clientWidth||0:0)/2-f[i]/2+(l/2-o/2),i=Math.max(s[c],Math.min(l,r-f[i]-s[p])),n.modifiersData[e]=((t={})[a]=i,t.centerOffset=i-l,t)}},effect:function(e){var t=e.state,n=e.options;e=e.name;var r=n.element;if(r=void 0===r?"[data-popper-arrow]":r,n=void 0===(n=n.padding)?0:n,null!=r){if("string"==typeof r&&!(r=t.elements.popper.querySelector(r)))return;O(t.elements.popper,r)&&(t.elements.arrow=r,t.modifiersData[e+"#persistent"]={padding:D("number"!=typeof n?n:P(n,q))})}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state;e=e.name;var n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,i=k(t,{elementContext:"reference"}),a=k(t,{altBoundary:!0});n=T(i,n),r=T(a,r,o),o=R(n),a=R(r),t.modifiersData[e]={referenceClippingOffsets:n,popperEscapeOffsets:r,isReferenceHidden:o,hasPopperEscaped:a},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":o,"data-popper-escaped":a})}}],X=B({defaultModifiers:F});e.createPopper=X,e.defaultModifiers=F,e.detectOverflow=k,e.popperGenerator=B,Object.defineProperty(e,"__esModule",{value:!0})}));
6
+ //# sourceMappingURL=popper.min.js.map
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * clipboard.js v2.0.4
3
+ * https://zenorocha.github.io/clipboard.js
4
+ *
5
+ * Licensed MIT © Zeno Rocha
6
+ */
7
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
@@ -0,0 +1 @@
1
+ !function(){if("undefined"!=typeof self&&self.Prism&&self.document)if(Prism.plugins.toolbar){var r=window.ClipboardJS||void 0;r||"function"!=typeof require||(r=require("clipboard"));var i=[];if(!r){var o=document.createElement("script"),e=document.querySelector("head");o.onload=function(){if(r=window.ClipboardJS)for(;i.length;)i.pop()()},o.src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",e.appendChild(o)}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(e){var t=document.createElement("button");return t.textContent="Copy",r?o():i.push(o),t;function o(){var o=new r(t,{text:function(){return e.code}});o.on("success",function(){t.textContent="Copied!",n()}),o.on("error",function(){t.textContent="Press Ctrl+C to copy",n()})}function n(){setTimeout(function(){t.textContent="Copy"},5e3)}})}else console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.")}();
@@ -0,0 +1 @@
1
+ !function(){var i=Object.assign||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e};function e(e){this.defaults=i({},e)}function l(e){for(var n=0,t=0;t<e.length;++t)e.charCodeAt(t)=="\t".charCodeAt(0)&&(n+=3);return e.length+n}e.prototype={setDefaults:function(e){this.defaults=i(this.defaults,e)},normalize:function(e,n){for(var t in n=i(this.defaults,n)){var r=t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()});"normalize"!==t&&"setDefaults"!==r&&n[t]&&this[r]&&(e=this[r].call(this,e,n[t]))}return e},leftTrim:function(e){return e.replace(/^\s+/,"")},rightTrim:function(e){return e.replace(/\s+$/,"")},tabsToSpaces:function(e,n){return n=0|n||4,e.replace(/\t/g,new Array(++n).join(" "))},spacesToTabs:function(e,n){return n=0|n||4,e.replace(RegExp(" {"+n+"}","g"),"\t")},removeTrailing:function(e){return e.replace(/\s*?$/gm,"")},removeInitialLineFeed:function(e){return e.replace(/^(?:\r?\n|\r)/,"")},removeIndent:function(e){var n=e.match(/^[^\S\n\r]*(?=\S)/gm);return n&&n[0].length?(n.sort(function(e,n){return e.length-n.length}),n[0].length?e.replace(RegExp("^"+n[0],"gm"),""):e):e},indent:function(e,n){return e.replace(/^[^\S\n\r]*(?=\S)/gm,new Array(++n).join("\t")+"$&")},breakLines:function(e,n){n=!0===n?80:0|n||80;for(var t=e.split("\n"),r=0;r<t.length;++r)if(!(l(t[r])<=n)){for(var i=t[r].split(/(\s+)/g),o=0,a=0;a<i.length;++a){var s=l(i[a]);n<(o+=s)&&(i[a]="\n"+i[a],o=s)}t[r]=i.join("")}return t.join("\n")}},"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof Prism&&(Prism.plugins.NormalizeWhitespace=new e({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(e){var n=Prism.plugins.NormalizeWhitespace;if(!e.settings||!1!==e.settings["whitespace-normalization"])if(e.element&&e.element.parentNode||!e.code){var t=e.element.parentNode,r=/(?:^|\s)no-whitespace-normalization(?:\s|$)/;if(e.code&&t&&"pre"===t.nodeName.toLowerCase()&&!r.test(t.className)&&!r.test(e.element.className)){for(var i=t.childNodes,o="",a="",s=!1,l=0;l<i.length;++l){var c=i[l];c==e.element?s=!0:"#text"===c.nodeName&&(s?a+=c.nodeValue:o+=c.nodeValue,t.removeChild(c),--l)}if(e.element.children.length&&Prism.plugins.KeepMarkup){var u=o+e.element.innerHTML+a;e.element.innerHTML=n.normalize(u,e.settings),e.code=e.element.textContent}else e.code=o+e.code+a,e.code=n.normalize(e.code,e.settings)}}else e.code=n.normalize(e.code,e.settings)}))}();
@@ -0,0 +1 @@
1
+ !function(){if("undefined"!=typeof self&&self.Prism&&self.document){var i=[],l={},c=function(){};Prism.plugins.toolbar={};var e=Prism.plugins.toolbar.registerButton=function(e,n){var t;t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),n.className&&t.classList.add(n.className),t.textContent=n.text,t},e in l?console.warn('There is a button with the key "'+e+'" registered already.'):i.push(l[e]=t)},t=Prism.plugins.toolbar.hook=function(a){var e=a.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&!e.parentNode.classList.contains("code-toolbar")){var t=document.createElement("div");t.classList.add("code-toolbar"),e.parentNode.insertBefore(t,e),t.appendChild(e);var r=document.createElement("div");r.classList.add("toolbar");var n=i,o=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(a.element);o&&(n=o.map(function(e){return l[e]||c})),n.forEach(function(e){var t=e(a);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),r.appendChild(n)}}),t.appendChild(r)}};e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,a,r=t.getAttribute("data-label");try{a=document.querySelector("template#"+r)}catch(e){}return a?n=a.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}}),Prism.hooks.add("complete",t)}}();
@@ -0,0 +1 @@
1
+ Prism.languages.twig={comment:/\{#[\s\S]*?#\}/,tag:{pattern:/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}/,inside:{ld:{pattern:/^(?:\{\{-?|\{%-?\s*\w+)/,inside:{punctuation:/^(?:\{\{|\{%)-?/,keyword:/\w+/}},rd:{pattern:/-?(?:%\}|\}\})$/,inside:{punctuation:/.+/}},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:true|false|null)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-xor|b-or|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],property:/\b[a-zA-Z_]\w*\b/,punctuation:/[()\[\]{}:.,]/}},other:{pattern:/\S(?:[\s\S]*\S)?/,inside:Prism.languages.markup}};
@@ -0,0 +1 @@
1
+ !function(n){var t=/[*&][^\s[\]{},]+/,e=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+e.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+e.source+")?)";function a(n,t){t=(t||"").replace(/m/g,"")+"m";var e="([:\\-,[{]\\s*(?:\\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|]|}|\\s*#))".replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return n});return RegExp(e,t)}n.languages.yaml={scalar:{pattern:RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\\2[^\r\n]+)*)".replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp("((?:^|[:\\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)[^\r\n{[\\]},#\\s]+?(?=\\s*:\\s)".replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?[ \t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?)?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),lookbehind:!0,alias:"number"},boolean:{pattern:a("true|false","i"),lookbehind:!0,alias:"important"},null:{pattern:a("null|~","i"),lookbehind:!0,alias:"important"},string:{pattern:a("(\"|')(?:(?!\\2)[^\\\\\r\n]|\\\\.)*\\2"),lookbehind:!0,greedy:!0},number:{pattern:a("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+\\.?\\d*|\\.?\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)","i"),lookbehind:!0},tag:e,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml}(Prism);