desy-html 7.3.1 → 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.
- package/docs/_macro.example-render.njk +1 -1
- package/docs/index.html +4 -0
- package/package.json +1 -1
- package/src/templates/components/accordion/_examples.accordion.njk +108 -104
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
- package/src/templates/components/alert/_examples.alert.njk +10 -6
- package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
- package/src/templates/components/button/_examples.button.njk +71 -71
- package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
- package/src/templates/components/card/_examples.card.njk +43 -43
- package/src/templates/components/character-count/_examples.character-count.njk +35 -33
- package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
- package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
- package/src/templates/components/date-input/_examples.date-input.njk +14 -14
- package/src/templates/components/description-list/_examples.description-list.njk +45 -44
- package/src/templates/components/details/_examples.details.njk +17 -16
- package/src/templates/components/dialog/_examples.dialog.njk +5 -6
- package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
- package/src/templates/components/error-message/_examples.error-message.njk +8 -2
- package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
- package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
- package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
- package/src/templates/components/footer/_examples.footer.njk +24 -24
- package/src/templates/components/header/_examples.header.njk +12 -12
- package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
- package/src/templates/components/hint/_examples.hint.njk +4 -4
- package/src/templates/components/input/_examples.input.njk +66 -64
- package/src/templates/components/input-group/_examples.input-group.njk +15 -17
- package/src/templates/components/item/_examples.item.njk +21 -20
- package/src/templates/components/label/_examples.label.njk +11 -9
- package/src/templates/components/links-list/_examples.links-list.njk +34 -34
- package/src/templates/components/listbox/_examples.listbox.njk +146 -146
- package/src/templates/components/media-object/_examples.media-object.njk +7 -7
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
- package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
- package/src/templates/components/menubar/_examples.menubar.njk +42 -42
- package/src/templates/components/modal/_examples.modal.njk +21 -15
- package/src/templates/components/modal/_template.modal.njk +5 -5
- package/src/templates/components/nav/_examples.nav.njk +66 -66
- package/src/templates/components/notification/_examples.notification.njk +14 -13
- package/src/templates/components/pagination/_examples.pagination.njk +7 -6
- package/src/templates/components/pill/_examples.pill.njk +29 -29
- package/src/templates/components/radios/_examples.radios.njk +153 -142
- package/src/templates/components/searchbar/_examples.searchbar.njk +11 -11
- package/src/templates/components/select/_examples.select.njk +63 -63
- package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
- package/src/templates/components/spinner/_examples.spinner.njk +11 -11
- package/src/templates/components/status/_examples.status.njk +4 -4
- package/src/templates/components/status-item/_examples.status-item.njk +21 -21
- package/src/templates/components/table/_examples.table.njk +58 -56
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
- package/src/templates/components/tabs/_examples.tabs.njk +30 -29
- package/src/templates/components/textarea/_examples.textarea.njk +28 -27
- package/src/templates/components/toggle/_examples.toggle.njk +10 -11
- package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
- package/src/templates/components/tree/_examples.tree.njk +58 -57
|
@@ -1,459 +1,458 @@
|
|
|
1
1
|
{% from "components/input/_macro.input.njk" import componentInput %}
|
|
2
2
|
|
|
3
|
-
{%
|
|
3
|
+
{% macro telefonoContent(id='id') %}
|
|
4
4
|
{{ componentInput({
|
|
5
5
|
"label": {
|
|
6
6
|
"text": "Número de teléfono"
|
|
7
7
|
},
|
|
8
|
-
"id": "telefono-
|
|
9
|
-
"name": "telefono-name"
|
|
8
|
+
"id": "telefono-" + id,
|
|
9
|
+
"name": "telefono-name-" + id
|
|
10
10
|
}) }}
|
|
11
|
-
{%
|
|
11
|
+
{% endmacro %}
|
|
12
12
|
|
|
13
|
-
{%
|
|
13
|
+
{% macro mobileContent(id='id') %}
|
|
14
14
|
{{ componentInput({
|
|
15
15
|
"label": {
|
|
16
16
|
"text": "Número de teléfono móvil"
|
|
17
17
|
},
|
|
18
|
-
"id": "mobile-
|
|
19
|
-
"name": "mobile-name"
|
|
18
|
+
"id": "mobile-" + id,
|
|
19
|
+
"name": "mobile-name-" + id
|
|
20
20
|
}) }}
|
|
21
|
-
{%
|
|
21
|
+
{% endmacro %}
|
|
22
22
|
|
|
23
|
-
{%
|
|
23
|
+
{% macro mobileErrorContent(id='id') %}
|
|
24
24
|
{{ componentInput({
|
|
25
25
|
"label": {
|
|
26
26
|
"text": "Número de teléfono móvil"
|
|
27
27
|
},
|
|
28
|
-
"id": "input-with-error-message-
|
|
29
|
-
"name": "test-name",
|
|
28
|
+
"id": "input-with-error-message-" + id,
|
|
29
|
+
"name": "test-name-" + id,
|
|
30
30
|
"errorMessage": {
|
|
31
31
|
"text": "Error: Este campo no puede estar vacío"
|
|
32
32
|
}
|
|
33
33
|
}) }}
|
|
34
|
-
{%
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
{% endmacro %}
|
|
37
35
|
|
|
38
36
|
|
|
39
37
|
|
|
40
38
|
{% set exampleComponent = "checkboxes" %}
|
|
41
39
|
{% set examples = [{
|
|
42
|
-
"name": "
|
|
40
|
+
"name": "por defecto",
|
|
43
41
|
"data": {
|
|
44
42
|
"idPrefix": "default",
|
|
45
43
|
"name": "default",
|
|
46
44
|
"fieldset": {
|
|
47
45
|
"legend": {
|
|
48
|
-
"text": "
|
|
46
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
49
47
|
}
|
|
50
48
|
},
|
|
51
49
|
"hint": {
|
|
52
|
-
"text": "
|
|
50
|
+
"text": "Si lo deseas puedes seleccionar varios elementos."
|
|
53
51
|
},
|
|
54
52
|
"items": [
|
|
55
53
|
{
|
|
56
|
-
"value": "
|
|
57
|
-
"text": "
|
|
54
|
+
"value": "correo-electronico",
|
|
55
|
+
"text": "Correo electrónico"
|
|
58
56
|
},
|
|
59
57
|
{
|
|
60
|
-
"value": "
|
|
61
|
-
"text": "
|
|
58
|
+
"value": "correo-postal",
|
|
59
|
+
"text": "Correo postal"
|
|
62
60
|
},
|
|
63
61
|
{
|
|
64
|
-
"value": "
|
|
65
|
-
"text": "
|
|
62
|
+
"value": "telefono",
|
|
63
|
+
"text": "Teléfono"
|
|
66
64
|
}
|
|
67
65
|
]
|
|
68
66
|
}
|
|
69
67
|
},
|
|
70
68
|
{
|
|
71
|
-
"name": "
|
|
69
|
+
"name": "Con id y name",
|
|
72
70
|
"data": {
|
|
73
71
|
"idPrefix": "with-id-and-name",
|
|
74
72
|
"name": "with-id-and-name",
|
|
75
73
|
"fieldset": {
|
|
76
74
|
"legend": {
|
|
77
|
-
"text": "
|
|
75
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
78
76
|
}
|
|
79
77
|
},
|
|
80
78
|
"hint": {
|
|
81
|
-
"text": "
|
|
79
|
+
"text": "Si lo deseas puedes seleccionar varios elementos."
|
|
82
80
|
},
|
|
83
81
|
"items": [
|
|
84
82
|
{
|
|
85
|
-
"name": "
|
|
86
|
-
"id": "
|
|
87
|
-
"value": "
|
|
88
|
-
"text": "
|
|
83
|
+
"name": "correo-electronico",
|
|
84
|
+
"id": "correo-electronico-id",
|
|
85
|
+
"value": "correo-electronico",
|
|
86
|
+
"text": "Correo electrónico"
|
|
89
87
|
},
|
|
90
88
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"id": "
|
|
93
|
-
"value": "
|
|
94
|
-
"text": "
|
|
89
|
+
"name": "correo-postal",
|
|
90
|
+
"id": "correo-postal-id",
|
|
91
|
+
"value": "correo-postal",
|
|
92
|
+
"text": "Correo postal"
|
|
95
93
|
}
|
|
96
94
|
]
|
|
97
95
|
}
|
|
98
96
|
},
|
|
99
97
|
{
|
|
100
|
-
"name": "
|
|
98
|
+
"name": "con pistas en los items",
|
|
101
99
|
"data": {
|
|
102
100
|
"idPrefix": "hints-on-items",
|
|
103
101
|
"fieldset": {
|
|
104
102
|
"legend": {
|
|
105
|
-
"text": "
|
|
103
|
+
"text": "¿Cómo prefieres que te contactemos?",
|
|
106
104
|
"isPageHeading": true
|
|
107
105
|
}
|
|
108
106
|
},
|
|
109
107
|
"items": [
|
|
110
108
|
{
|
|
111
|
-
"name": "
|
|
112
|
-
"id": "
|
|
113
|
-
"value": "desy-
|
|
114
|
-
"text": "
|
|
109
|
+
"name": "correo-electronico",
|
|
110
|
+
"id": "correo-electronico-a",
|
|
111
|
+
"value": "desy-correo-electronico",
|
|
112
|
+
"text": "Correo electrónico",
|
|
115
113
|
"hint": {
|
|
116
|
-
"text": "
|
|
114
|
+
"text": "Asegúrate de que el correo no llega a la bandeja de spam."
|
|
117
115
|
}
|
|
118
116
|
},
|
|
119
117
|
{
|
|
120
|
-
"name": "
|
|
121
|
-
"id": "desy-
|
|
122
|
-
"value": "desy-
|
|
123
|
-
"text": "
|
|
118
|
+
"name": "correo-postal",
|
|
119
|
+
"id": "desy-correo-postal-a",
|
|
120
|
+
"value": "desy-correo-postal-a",
|
|
121
|
+
"text": "Correo postal",
|
|
124
122
|
"hint": {
|
|
125
|
-
"text": "
|
|
123
|
+
"text": "Asegúrate de haber introducido la dirección postal correctamente."
|
|
126
124
|
}
|
|
127
125
|
}
|
|
128
126
|
]
|
|
129
127
|
}
|
|
130
128
|
},
|
|
131
129
|
{
|
|
132
|
-
"name": "
|
|
130
|
+
"name": "Con líneas divisorias",
|
|
133
131
|
"data": {
|
|
134
132
|
"idPrefix": "has-dividers",
|
|
135
133
|
"fieldset": {
|
|
136
134
|
"legend": {
|
|
137
|
-
"text": "
|
|
135
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
138
136
|
}
|
|
139
137
|
},
|
|
140
138
|
"hint": {
|
|
141
|
-
"text": "
|
|
139
|
+
"text": "Si lo deseas puedes seleccionar varios elementos."
|
|
142
140
|
},
|
|
143
141
|
"hasDividers": true,
|
|
144
142
|
"items": [
|
|
145
143
|
{
|
|
146
|
-
"name": "
|
|
147
|
-
"id": "
|
|
148
|
-
"value": "desy-
|
|
149
|
-
"text": "
|
|
144
|
+
"name": "correo-electronico",
|
|
145
|
+
"id": "correo-electronico-b",
|
|
146
|
+
"value": "desy-correo-electronico",
|
|
147
|
+
"text": "Correo electrónico"
|
|
150
148
|
},
|
|
151
149
|
{
|
|
152
|
-
"name": "
|
|
153
|
-
"id": "desy-
|
|
154
|
-
"value": "desy-
|
|
155
|
-
"text": "
|
|
150
|
+
"name": "correo-postal",
|
|
151
|
+
"id": "desy-correo-postal-b",
|
|
152
|
+
"value": "desy-correo-postal-b",
|
|
153
|
+
"text": "Correo postal",
|
|
156
154
|
"hint": {
|
|
157
|
-
"text": "
|
|
155
|
+
"text": "Asegúrate de haber introducido la dirección postal correctamente."
|
|
158
156
|
}
|
|
159
157
|
},
|
|
160
158
|
{
|
|
161
|
-
"name": "
|
|
162
|
-
"id": "
|
|
163
|
-
"value": "
|
|
164
|
-
"text": "
|
|
159
|
+
"name": "telefono",
|
|
160
|
+
"id": "telefono-b",
|
|
161
|
+
"value": "telefono",
|
|
162
|
+
"text": "Teléfono",
|
|
165
163
|
"checked": true,
|
|
166
164
|
"conditional": {
|
|
167
|
-
"html": telefonoContent
|
|
165
|
+
"html": telefonoContent('1').val
|
|
168
166
|
}
|
|
169
167
|
},
|
|
170
168
|
{
|
|
171
|
-
"name": "
|
|
172
|
-
"id": "desy-
|
|
173
|
-
"value": "desy-
|
|
174
|
-
"text": "
|
|
169
|
+
"name": "correo-postal",
|
|
170
|
+
"id": "desy-correo-postal-c",
|
|
171
|
+
"value": "desy-correo-postal-c",
|
|
172
|
+
"text": "Correo postal",
|
|
175
173
|
"hint": {
|
|
176
|
-
"text": "
|
|
174
|
+
"text": "Asegúrate de haber introducido la dirección postal correctamente."
|
|
177
175
|
}
|
|
178
176
|
}
|
|
179
177
|
]
|
|
180
178
|
}
|
|
181
179
|
},
|
|
182
180
|
{
|
|
183
|
-
"name": "
|
|
181
|
+
"name": "Con clases de CSS aplicadas",
|
|
182
|
+
"description": 'Los parámetros <code>classes</code> nos permiten aplicar clases de Tailwind CSS a nuestro componente.',
|
|
184
183
|
"data": {
|
|
185
184
|
"idPrefix": "classes",
|
|
186
185
|
"fieldset": {
|
|
187
186
|
"legend": {
|
|
188
|
-
"text": "
|
|
187
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
189
188
|
}
|
|
190
189
|
},
|
|
191
190
|
"items": [
|
|
192
191
|
{
|
|
193
|
-
"name": "
|
|
194
|
-
"id": "
|
|
195
|
-
"value": "desy-
|
|
196
|
-
"text": "
|
|
192
|
+
"name": "correo-electronico",
|
|
193
|
+
"id": "correo-electronico-c",
|
|
194
|
+
"value": "desy-correo-electronico",
|
|
195
|
+
"text": "Correo electrónico",
|
|
197
196
|
"hint": {
|
|
198
|
-
"text": "
|
|
197
|
+
"text": "Asegúrate de que el correo no llega a la bandeja de spam."
|
|
199
198
|
},
|
|
200
|
-
"classes": "bg-
|
|
199
|
+
"classes": "bg-primary-light"
|
|
201
200
|
},
|
|
202
201
|
{
|
|
203
|
-
"name": "
|
|
204
|
-
"id": "desy-
|
|
205
|
-
"value": "desy-
|
|
206
|
-
"text": "
|
|
202
|
+
"name": "correo-postal",
|
|
203
|
+
"id": "desy-correo-postal-d",
|
|
204
|
+
"value": "desy-correo-postal-d",
|
|
205
|
+
"text": "Correo postal",
|
|
207
206
|
"hint": {
|
|
208
|
-
"text": "
|
|
207
|
+
"text": "Asegúrate de haber introducido la dirección postal correctamente."
|
|
209
208
|
},
|
|
210
|
-
"classes": "bg-neutral-
|
|
209
|
+
"classes": "bg-neutral-lighter"
|
|
211
210
|
}
|
|
212
211
|
]
|
|
213
212
|
}
|
|
214
213
|
},
|
|
215
214
|
{
|
|
216
|
-
"name": "
|
|
215
|
+
"name": "con item deshabilitado",
|
|
217
216
|
"data": {
|
|
218
217
|
"idPrefix": "disabled-item",
|
|
219
218
|
"name": "colours",
|
|
220
219
|
"items": [
|
|
221
220
|
{
|
|
222
|
-
"value": "
|
|
223
|
-
"text": "
|
|
221
|
+
"value": "correo-electronico",
|
|
222
|
+
"text": "Correo electrónico"
|
|
224
223
|
},
|
|
225
224
|
{
|
|
226
|
-
"value": "
|
|
227
|
-
"text": "
|
|
225
|
+
"value": "correo-postal",
|
|
226
|
+
"text": "Correo postal",
|
|
228
227
|
"disabled": true,
|
|
229
228
|
"checked": true
|
|
230
229
|
},
|
|
231
230
|
{
|
|
232
|
-
"value": "
|
|
233
|
-
"text": "
|
|
231
|
+
"value": "telefono",
|
|
232
|
+
"text": "Teléfono",
|
|
234
233
|
"disabled": true
|
|
235
234
|
}
|
|
236
235
|
]
|
|
237
236
|
}
|
|
238
237
|
},
|
|
239
238
|
{
|
|
240
|
-
"name": "
|
|
241
|
-
"description": "
|
|
239
|
+
"name": "con un legend como encabezado",
|
|
240
|
+
"description": 'Usa el parámetro <code>"heading"</code> para añadir un encabezado asociado al componente. Usa el parámetro <code>"headingLevel"</code> para establecer el nivel del encabezado. Por ejemplo: <code>"headingLevel": 3</code> creará un encabezado <code><h3></code>.',
|
|
242
241
|
"data": {
|
|
243
242
|
"idPrefix": "legend-as-page-heading",
|
|
244
243
|
"name": "legend-as-page-heading",
|
|
245
244
|
"fieldset": {
|
|
246
245
|
"legend": {
|
|
247
|
-
"text": "
|
|
246
|
+
"text": "¿Cómo prefieres que te contactemos?",
|
|
248
247
|
"classes": "c-h2",
|
|
249
248
|
"isPageHeading": true
|
|
250
249
|
},
|
|
251
250
|
"headingLevel": 2
|
|
252
251
|
},
|
|
253
252
|
"hint": {
|
|
254
|
-
"text": "
|
|
253
|
+
"text": "Si lo deseas puedes seleccionar varios elementos."
|
|
255
254
|
},
|
|
256
255
|
"items": [
|
|
257
256
|
{
|
|
258
|
-
"value": "
|
|
259
|
-
"text": "
|
|
257
|
+
"value": "correo-electronico",
|
|
258
|
+
"text": "Correo electrónico"
|
|
260
259
|
},
|
|
261
260
|
{
|
|
262
|
-
"value": "
|
|
263
|
-
"text": "
|
|
261
|
+
"value": "correp-postal",
|
|
262
|
+
"text": "Correo postal"
|
|
264
263
|
},
|
|
265
264
|
{
|
|
266
|
-
"value": "
|
|
267
|
-
"text": "
|
|
265
|
+
"value": "telefono",
|
|
266
|
+
"text": "Teléfono"
|
|
268
267
|
}
|
|
269
268
|
]
|
|
270
269
|
}
|
|
271
270
|
},
|
|
272
271
|
{
|
|
273
|
-
"name": "
|
|
272
|
+
"name": "con un legend del tamaño de un encabezado h2",
|
|
274
273
|
"data": {
|
|
275
274
|
"idPrefix": "medium-legend",
|
|
276
275
|
"name": "medium-legend",
|
|
277
276
|
"fieldset": {
|
|
278
277
|
"legend": {
|
|
279
|
-
"text": "
|
|
278
|
+
"text": "¿Cómo prefieres que te contactemos?",
|
|
280
279
|
"classes": "c-h2"
|
|
281
280
|
}
|
|
282
281
|
},
|
|
283
282
|
"hint": {
|
|
284
|
-
"text": "
|
|
283
|
+
"text": "Si lo deseas puedes seleccionar varios elementos."
|
|
285
284
|
},
|
|
286
285
|
"errorMessage": {
|
|
287
|
-
"text": "Error:
|
|
286
|
+
"text": "Error: Tienes que seleccionar al menos una opción"
|
|
288
287
|
},
|
|
289
288
|
"items": [
|
|
290
289
|
{
|
|
291
|
-
"value": "
|
|
292
|
-
"text": "
|
|
290
|
+
"value": "correo-electronico",
|
|
291
|
+
"text": "Correo electrónico"
|
|
293
292
|
},
|
|
294
293
|
{
|
|
295
|
-
"value": "
|
|
296
|
-
"text": "
|
|
294
|
+
"value": "correp-postal",
|
|
295
|
+
"text": "Correo postal"
|
|
297
296
|
},
|
|
298
297
|
{
|
|
299
|
-
"value": "
|
|
300
|
-
"text": "
|
|
298
|
+
"value": "telefono",
|
|
299
|
+
"text": "Teléfono"
|
|
301
300
|
}
|
|
302
301
|
]
|
|
303
302
|
}
|
|
304
303
|
},
|
|
305
304
|
{
|
|
306
|
-
"name": "
|
|
305
|
+
"name": "sin fieldset",
|
|
307
306
|
"data": {
|
|
308
307
|
"idPrefix": "without-fieldset",
|
|
309
308
|
"name": "without-fieldset",
|
|
310
309
|
"items": [
|
|
311
310
|
{
|
|
312
|
-
"value": "
|
|
313
|
-
"text": "
|
|
311
|
+
"value": "correo-electronico",
|
|
312
|
+
"text": "Correo electrónico"
|
|
314
313
|
},
|
|
315
314
|
{
|
|
316
|
-
"value": "
|
|
317
|
-
"text": "
|
|
315
|
+
"value": "correp-postal",
|
|
316
|
+
"text": "Correo postal"
|
|
318
317
|
},
|
|
319
318
|
{
|
|
320
|
-
"value": "
|
|
321
|
-
"text": "
|
|
319
|
+
"value": "telefono",
|
|
320
|
+
"text": "Teléfono"
|
|
322
321
|
}
|
|
323
322
|
]
|
|
324
323
|
}
|
|
325
324
|
},
|
|
326
325
|
{
|
|
327
|
-
"name": "
|
|
326
|
+
"name": "con una sóla opción usando 'aria-describedby' en el input",
|
|
328
327
|
"data": {
|
|
329
328
|
"idPrefix": "describedby",
|
|
330
329
|
"name": "describedby",
|
|
331
330
|
"errorMessage": {
|
|
332
|
-
"text": "Error:
|
|
331
|
+
"text": "Error: Por favor, debes aceptar los términos y condiciones"
|
|
333
332
|
},
|
|
334
333
|
"items": [
|
|
335
334
|
{
|
|
336
|
-
"value": "
|
|
337
|
-
"
|
|
335
|
+
"value": "acepto",
|
|
336
|
+
"html": 'Acepto los <a href="#" target="_blank" class="c-link" title="Se abre en ventana nueva del navegador">términos y condiciones</a>'
|
|
338
337
|
}
|
|
339
338
|
]
|
|
340
339
|
}
|
|
341
340
|
},
|
|
342
341
|
{
|
|
343
|
-
"name": "
|
|
342
|
+
"name": "con una sóla opción (y pista) usando 'aria-describedby' en el input",
|
|
344
343
|
"data": {
|
|
345
344
|
"name": "t-and-c-with-hint",
|
|
346
345
|
"errorMessage": {
|
|
347
|
-
"text": "Error:
|
|
346
|
+
"text": "Error: Por favor, debes aceptar los términos y condiciones"
|
|
348
347
|
},
|
|
349
348
|
"items": [
|
|
350
349
|
{
|
|
351
|
-
"value": "
|
|
352
|
-
"
|
|
350
|
+
"value": "acepto",
|
|
351
|
+
"html": 'Acepto los <a href="#" target="_blank" class="c-link" title="Se abre en ventana nueva del navegador">términos y condiciones</a>',
|
|
353
352
|
"hint": {
|
|
354
|
-
"text": "
|
|
353
|
+
"text": "Puedes visualizarlos en ventana nueva del navegador"
|
|
355
354
|
}
|
|
356
355
|
}
|
|
357
356
|
]
|
|
358
357
|
}
|
|
359
358
|
},
|
|
360
359
|
{
|
|
361
|
-
"name": "
|
|
360
|
+
"name": "con fieldset y mensaje de error",
|
|
362
361
|
"data": {
|
|
363
362
|
"name": "colours",
|
|
364
363
|
"errorMessage": {
|
|
365
|
-
"text": "Error:
|
|
364
|
+
"text": "Error: Tienes que seleccionar al menos una opción"
|
|
366
365
|
},
|
|
367
366
|
"fieldset": {
|
|
368
367
|
"legend": {
|
|
369
|
-
"text": "
|
|
368
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
370
369
|
}
|
|
371
370
|
},
|
|
372
371
|
"items": [
|
|
373
372
|
{
|
|
374
|
-
"value": "
|
|
375
|
-
"text": "
|
|
373
|
+
"value": "correo-electronico",
|
|
374
|
+
"text": "Correo electrónico"
|
|
376
375
|
},
|
|
377
376
|
{
|
|
378
|
-
"value": "
|
|
379
|
-
"text": "
|
|
377
|
+
"value": "correo-postal",
|
|
378
|
+
"text": "Correo postal"
|
|
380
379
|
},
|
|
381
380
|
{
|
|
382
|
-
"value": "
|
|
383
|
-
"text": "
|
|
381
|
+
"value": "telefono",
|
|
382
|
+
"text": "Teléfono"
|
|
384
383
|
}
|
|
385
384
|
]
|
|
386
385
|
}
|
|
387
386
|
},
|
|
388
387
|
{
|
|
389
|
-
"name": "
|
|
388
|
+
"name": "con mensaje de error",
|
|
390
389
|
"data": {
|
|
391
390
|
"idPrefix": "error-message",
|
|
392
391
|
"name": "error-message",
|
|
393
392
|
"errorMessage": {
|
|
394
|
-
"text": "Error:
|
|
393
|
+
"text": "Error: Tienes que seleccionar al menos una opción"
|
|
395
394
|
},
|
|
396
395
|
"fieldset": {
|
|
397
396
|
"legend": {
|
|
398
|
-
"text": "
|
|
397
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
399
398
|
}
|
|
400
399
|
},
|
|
401
400
|
"items": [
|
|
402
401
|
{
|
|
403
|
-
"value": "
|
|
404
|
-
"text": "
|
|
402
|
+
"value": "correo-electronico",
|
|
403
|
+
"text": "Correo electrónico"
|
|
405
404
|
},
|
|
406
405
|
{
|
|
407
|
-
"value": "
|
|
408
|
-
"text": "
|
|
406
|
+
"value": "correp-postal",
|
|
407
|
+
"text": "Correo postal"
|
|
409
408
|
},
|
|
410
409
|
{
|
|
411
|
-
"value": "
|
|
412
|
-
"text": "
|
|
410
|
+
"value": "telefono",
|
|
411
|
+
"text": "Teléfono"
|
|
413
412
|
}
|
|
414
413
|
]
|
|
415
414
|
}
|
|
416
415
|
},
|
|
417
416
|
{
|
|
418
|
-
"name": "
|
|
417
|
+
"name": "con mensaje de error y pistas en los items",
|
|
419
418
|
"data": {
|
|
420
419
|
"idPrefix": "error-and-hints",
|
|
421
420
|
"name": "error-and-hints",
|
|
422
421
|
"errorMessage": {
|
|
423
|
-
"text": "Error:
|
|
422
|
+
"text": "Error: Tienes que seleccionar al menos una opción"
|
|
424
423
|
},
|
|
425
424
|
"fieldset": {
|
|
426
425
|
"legend": {
|
|
427
|
-
"text": "
|
|
426
|
+
"text": "¿Cómo prefieres que te contactemos?"
|
|
428
427
|
}
|
|
429
428
|
},
|
|
430
429
|
"items": [
|
|
431
430
|
{
|
|
432
|
-
"value": "
|
|
433
|
-
"text": "
|
|
431
|
+
"value": "correo-electronico",
|
|
432
|
+
"text": "Correo electrónico",
|
|
434
433
|
"hint": {
|
|
435
|
-
"text": "
|
|
434
|
+
"text": "Asegúrate de que nuestros correos no lleguen a la bandeja de spam."
|
|
436
435
|
}
|
|
437
436
|
},
|
|
438
437
|
{
|
|
439
|
-
"value": "
|
|
440
|
-
"text": "
|
|
438
|
+
"value": "correo-postal",
|
|
439
|
+
"text": "Correo postal",
|
|
441
440
|
"hint": {
|
|
442
|
-
"text": "
|
|
441
|
+
"text": "Asegúrate de haber introducido correctamente tu dirección."
|
|
443
442
|
}
|
|
444
443
|
},
|
|
445
444
|
{
|
|
446
|
-
"value": "
|
|
447
|
-
"text": "
|
|
445
|
+
"value": "telefono",
|
|
446
|
+
"text": "Teléfono",
|
|
448
447
|
"hint": {
|
|
449
|
-
"text": "
|
|
448
|
+
"text": "Sólo enviamos mensajes durante el día."
|
|
450
449
|
}
|
|
451
450
|
}
|
|
452
451
|
]
|
|
453
452
|
}
|
|
454
453
|
},
|
|
455
454
|
{
|
|
456
|
-
"name": "
|
|
455
|
+
"name": "con un texto de item muy largo",
|
|
457
456
|
"data": {
|
|
458
457
|
"idPrefix": "long-option",
|
|
459
458
|
"name": "long-option",
|
|
@@ -485,79 +484,79 @@
|
|
|
485
484
|
}
|
|
486
485
|
},
|
|
487
486
|
{
|
|
488
|
-
"name": "
|
|
487
|
+
"name": "con items condicionales",
|
|
489
488
|
"data": {
|
|
490
489
|
"idPrefix": "with-conditional-items",
|
|
491
490
|
"name": "with-conditional-items",
|
|
492
491
|
"idPrefix": "how-contacted",
|
|
493
492
|
"fieldset": {
|
|
494
493
|
"legend": {
|
|
495
|
-
"text": "
|
|
494
|
+
"text": "¿Cómo quieres que te contactemos?"
|
|
496
495
|
}
|
|
497
496
|
},
|
|
498
497
|
"items": [
|
|
499
498
|
{
|
|
500
|
-
"value": "
|
|
501
|
-
"text": "
|
|
499
|
+
"value": "correo-electronico",
|
|
500
|
+
"text": "Correo electrónico",
|
|
502
501
|
"conditional": {
|
|
503
|
-
"html": mobileContent
|
|
502
|
+
"html": mobileContent('1').val
|
|
504
503
|
}
|
|
505
504
|
},
|
|
506
505
|
{
|
|
507
|
-
"value": "
|
|
508
|
-
"text": "
|
|
506
|
+
"value": "telefono",
|
|
507
|
+
"text": "Teléfono",
|
|
509
508
|
"conditional": {
|
|
510
|
-
"html": telefonoContent
|
|
509
|
+
"html": telefonoContent('2').val
|
|
511
510
|
}
|
|
512
511
|
},
|
|
513
512
|
{
|
|
514
|
-
"value": "
|
|
515
|
-
"text": "
|
|
513
|
+
"value": "mensaje-SMS",
|
|
514
|
+
"text": "Mensaje SMS",
|
|
516
515
|
"conditional": {
|
|
517
|
-
"html": mobileContent
|
|
516
|
+
"html": mobileContent('2').val
|
|
518
517
|
}
|
|
519
518
|
}
|
|
520
519
|
]
|
|
521
520
|
}
|
|
522
521
|
},
|
|
523
522
|
{
|
|
524
|
-
"name": "
|
|
523
|
+
"name": "con item condicional seleccionado",
|
|
525
524
|
"data": {
|
|
526
525
|
"idPrefix": "with-conditional-items-checked",
|
|
527
526
|
"name": "with-conditional-items-checked",
|
|
528
527
|
"fieldset": {
|
|
529
528
|
"legend": {
|
|
530
|
-
"text": "
|
|
529
|
+
"text": "¿Cómo quieres que te contactemos?"
|
|
531
530
|
}
|
|
532
531
|
},
|
|
533
532
|
"items": [
|
|
534
533
|
{
|
|
535
|
-
"value": "
|
|
536
|
-
"text": "
|
|
534
|
+
"value": "correo-electronico",
|
|
535
|
+
"text": "Correo electrónico",
|
|
537
536
|
"conditional": {
|
|
538
|
-
"html": mobileContent
|
|
537
|
+
"html": mobileContent('3').val
|
|
539
538
|
}
|
|
540
539
|
},
|
|
541
540
|
{
|
|
542
|
-
"value": "
|
|
543
|
-
"text": "
|
|
541
|
+
"value": "telefono",
|
|
542
|
+
"text": "Teléfono",
|
|
544
543
|
"checked": true,
|
|
545
544
|
"conditional": {
|
|
546
|
-
"html": telefonoContent
|
|
545
|
+
"html": telefonoContent('3').val
|
|
547
546
|
}
|
|
548
547
|
},
|
|
549
548
|
{
|
|
550
|
-
"value": "
|
|
551
|
-
"text": "
|
|
549
|
+
"value": "mensaje-SMS",
|
|
550
|
+
"text": "Mensaje SMS",
|
|
552
551
|
"conditional": {
|
|
553
|
-
"html": mobileContent
|
|
552
|
+
"html": mobileContent('4').val
|
|
554
553
|
}
|
|
555
554
|
}
|
|
556
555
|
]
|
|
557
556
|
}
|
|
558
557
|
},
|
|
559
558
|
{
|
|
560
|
-
"name": "
|
|
559
|
+
"name": "con clases opcionales del form-group mostrando un error del grupo",
|
|
561
560
|
"data": {
|
|
562
561
|
"idPrefix": "optional-classes-showing-error",
|
|
563
562
|
"name": "optional-classes-showing-error",
|
|
@@ -566,61 +565,61 @@
|
|
|
566
565
|
},
|
|
567
566
|
"fieldset": {
|
|
568
567
|
"legend": {
|
|
569
|
-
"text": "
|
|
568
|
+
"text": "¿Cómo quieres que te contactemos?"
|
|
570
569
|
}
|
|
571
570
|
},
|
|
572
571
|
"items": [
|
|
573
572
|
{
|
|
574
|
-
"value": "
|
|
575
|
-
"text": "
|
|
573
|
+
"value": "correo-electronico",
|
|
574
|
+
"text": "Correo electrónico",
|
|
576
575
|
"conditional": {
|
|
577
|
-
"html": mobileContent
|
|
576
|
+
"html": mobileContent('5').val
|
|
578
577
|
}
|
|
579
578
|
},
|
|
580
579
|
{
|
|
581
|
-
"value": "
|
|
582
|
-
"text": "
|
|
580
|
+
"value": "telefono",
|
|
581
|
+
"text": "Teléfono",
|
|
583
582
|
"checked": true,
|
|
584
583
|
"conditional": {
|
|
585
|
-
"html": mobileErrorContent
|
|
584
|
+
"html": mobileErrorContent('1').val
|
|
586
585
|
}
|
|
587
586
|
},
|
|
588
587
|
{
|
|
589
|
-
"value": "
|
|
590
|
-
"text": "
|
|
588
|
+
"value": "mensaje-SMS",
|
|
589
|
+
"text": "Mensaje SMS",
|
|
591
590
|
"conditional": {
|
|
592
|
-
"html": mobileContent
|
|
591
|
+
"html": mobileContent('6').val
|
|
593
592
|
}
|
|
594
593
|
}
|
|
595
594
|
]
|
|
596
595
|
}
|
|
597
596
|
},
|
|
598
597
|
{
|
|
599
|
-
"name": "
|
|
598
|
+
"name": "peque",
|
|
600
599
|
"data": {
|
|
601
600
|
"idPrefix": "small",
|
|
602
|
-
"name": "
|
|
601
|
+
"name": "peque",
|
|
603
602
|
"classes": "c-checkboxes--sm",
|
|
604
603
|
"items": [
|
|
605
604
|
{
|
|
606
|
-
"value": "
|
|
607
|
-
"text": "
|
|
605
|
+
"value": "correo-electronico",
|
|
606
|
+
"text": "Correo electrónico",
|
|
608
607
|
"classes": "-mt-base",
|
|
609
608
|
"label": {
|
|
610
609
|
"classes": "text-sm -mt-1"
|
|
611
610
|
}
|
|
612
611
|
},
|
|
613
612
|
{
|
|
614
|
-
"value": "
|
|
615
|
-
"text": "
|
|
613
|
+
"value": "correo-postal",
|
|
614
|
+
"text": "Correo postal",
|
|
616
615
|
"classes": "-mt-base",
|
|
617
616
|
"label": {
|
|
618
617
|
"classes": "text-sm -mt-1"
|
|
619
618
|
}
|
|
620
619
|
},
|
|
621
620
|
{
|
|
622
|
-
"value": "
|
|
623
|
-
"text": "
|
|
621
|
+
"value": "telefono",
|
|
622
|
+
"text": "Teléfono",
|
|
624
623
|
"classes": "-mt-base",
|
|
625
624
|
"label": {
|
|
626
625
|
"classes": "text-sm -mt-1"
|
|
@@ -630,8 +629,8 @@
|
|
|
630
629
|
}
|
|
631
630
|
},
|
|
632
631
|
{
|
|
633
|
-
"name": "
|
|
634
|
-
"description": "isIndeterminate: true
|
|
632
|
+
"name": "indeterminado",
|
|
633
|
+
"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.',
|
|
635
634
|
"data": {
|
|
636
635
|
"idPrefix": "indeterminate",
|
|
637
636
|
"name": "indeterminate",
|
|
@@ -650,8 +649,8 @@
|
|
|
650
649
|
}
|
|
651
650
|
},
|
|
652
651
|
{
|
|
653
|
-
"name": "
|
|
654
|
-
"description": "isIndeterminate: true
|
|
652
|
+
"name": "indeterminado marcado",
|
|
653
|
+
"description": 'Usando los parámetros <code>"isIndeterminate": true</code> y <code>"indeterminateChecked": true</code> podemos marcar como estado indeterminado un item que sea de tipo indeterminado.',
|
|
655
654
|
"data": {
|
|
656
655
|
"idPrefix": "indeterminate-checked",
|
|
657
656
|
"name": "indeterminate-checked",
|