@vixoniccom/birthdays 0.4.0 → 0.5.0-dev.1

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.
@@ -1,604 +1,662 @@
1
1
  {
2
- "schema": [
3
- {
4
- "id": "dataGroup",
5
- "type": "group",
6
- "label": "Configuración",
7
- "description": "",
8
- "items": [
9
- {
10
- "type": "label",
11
- "label": "Datos"
12
- },
13
- {
14
- "id": "url",
15
- "type": "text-input",
16
- "required": true,
17
- "label": "Fuente",
18
- "description": "Ubicación de los datos."
19
- },
20
- {
21
- "type": "select-input",
22
- "id": "photosMode",
23
- "label": "Modo de fotos",
24
- "items": [
25
- {
26
- "label": "Zip",
27
- "value": "zip"
28
- },
29
- {
30
- "label": "En linea",
31
- "value": "online"
32
- }
33
- ],
34
- "defaultValue": "online"
35
- },
36
- {
37
- "id": "photosUrl",
38
- "type": "text-input",
39
- "required": false,
40
- "label": "Fotos",
41
- "description": "Ubicación donde se encuentran las fotos.",
42
- "show": "{{photosMode}} === 'online'"
43
- },
44
- {
45
- "type": "select-asset-kna-input",
46
- "id": "photosZip",
47
- "label": "Archivo Zip",
48
- "extensions": [
49
- "zip"
50
- ],
51
- "show": "{{photosMode}} === 'zip'"
52
- },
53
- {
54
- "id": "updateTime",
55
- "type": "select-input",
56
- "required": true,
57
- "label": "Actualización",
58
- "defaultValue": 600000,
59
- "items": [
60
- {
61
- "label": "10 minutos",
62
- "value": 600000
63
- },
64
- {
65
- "label": "30 minutos",
66
- "value": 1800000
67
- },
68
- {
69
- "label": "1 hora",
70
- "value": 3600000
71
- },
72
- {
73
- "label": "6 horas",
74
- "value": 21600000
75
- },
76
- {
77
- "label": "12 horas",
78
- "value": 43200000
79
- },
80
- {
81
- "label": "Diario",
82
- "value": 86400000
83
- },
84
- {
85
- "label": "Semanal",
86
- "value": 604800000
87
- }
88
- ]
89
- },
90
- {
91
- "type": "label",
92
- "label": "Funcionamiento"
93
- },
94
- {
95
- "id": "dataMode",
96
- "type": "select-input",
97
- "required": true,
98
- "label": "Modo",
99
- "defaultValue": "monthly",
100
- "items": [
101
- {
102
- "label": "Diario",
103
- "value": "daily"
104
- },
105
- {
106
- "label": "Semanal",
107
- "value": "weekly"
108
- },
109
- {
110
- "label": "Mensual",
111
- "value": "monthly"
112
- },
113
- {
114
- "label": "Anual",
115
- "value": "yearly"
116
- }
117
- ]
118
- },
119
- {
120
- "type": "switch",
121
- "id": "excludePast",
122
- "label": "Filtrar pasados",
123
- "description": "Los cumpleaños ya pasados no seran mostrados.",
124
- "defaultValue": true
125
- },
126
- {
127
- "type": "text-input",
128
- "id": "msj0",
129
- "label": "Sin cumpleaños",
130
- "description": "Mensaje que se muestra cuando no hay cumpleaños."
131
- }
132
- ]
133
- },
134
- {
135
- "id": "appearanceGroup",
136
- "type": "group",
137
- "label": "Apariencia",
138
- "description": "",
139
- "items": [
140
- {
141
- "type": "select-input",
142
- "id": "orientation",
143
- "required": true,
144
- "label": "Orientación",
145
- "defaultValue": "h",
146
- "items": [
147
- {
148
- "label": "Horizontal",
149
- "value": "h"
150
- },
151
- {
152
- "label": "Vertical",
153
- "value": "v"
154
- }
155
- ]
156
- },
157
- {
2
+ "schema": [
3
+ {
4
+ "id": "documentGroup",
5
+ "label": "Documento",
6
+ "type": "group",
7
+ "items": [
8
+ {
158
9
  "type": "label",
159
- "label": "Animación"
10
+ "label": "Documento"
11
+ },
12
+ {
13
+ "id": "url",
14
+ "label": "Ir al documento",
15
+ "type": "redirect-button",
16
+ "description": "Prueba"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "id": "dataGroup",
22
+ "label": "Configuración",
23
+ "type": "group",
24
+ "items": [
25
+ {
26
+ "type": "label",
27
+ "label": "Datos"
28
+ },
29
+ {
30
+ "id": "url",
31
+ "label": "Fuente",
32
+ "type": "text-input",
33
+ "description": "Ubicación de los datos",
34
+ "required": true
160
35
  },
161
36
  {
37
+ "id": "photosMode",
38
+ "label": "Modo de fotos",
162
39
  "type": "select-input",
163
- "id": "animationMode",
40
+ "items": [
41
+ {
42
+ "label": "Zip",
43
+ "value": "zip"
44
+ },
45
+ {
46
+ "label": "En línea",
47
+ "value": "online"
48
+ }
49
+ ],
50
+ "defaultValue": "online"
51
+ },
52
+ {
53
+ "id": "photosUrl",
54
+ "label": "Fotos",
55
+ "show": "{{photosMode}} === 'online'",
56
+ "type": "text-input",
57
+ "description": "Ubicación donde se encuentran las fotos",
58
+ "required": false
59
+ },
60
+ {
61
+ "id": "photosZip",
62
+ "label": "Archivo Zip",
63
+ "show": "{{photosMode}} === 'zip'",
64
+ "type": "select-asset-kna-input",
65
+ "extensions": [
66
+ "zip"
67
+ ],
68
+ "multiple": false
69
+ },
70
+ {
71
+ "id": "updateTime",
72
+ "label": "Actualización",
73
+ "type": "select-input",
74
+ "items": [
75
+ {
76
+ "label": "10 minutos",
77
+ "value": 600000
78
+ },
79
+ {
80
+ "label": "30 minutos",
81
+ "value": 1800000
82
+ },
83
+ {
84
+ "label": "1 hora",
85
+ "value": 3600000
86
+ },
87
+ {
88
+ "label": "6 horas",
89
+ "value": 21600000
90
+ },
91
+ {
92
+ "label": "12 horas",
93
+ "value": 43200000
94
+ },
95
+ {
96
+ "label": "Diario",
97
+ "value": 86400000
98
+ },
99
+ {
100
+ "label": "Semanal",
101
+ "value": 604800000
102
+ }
103
+ ],
104
+ "defaultValue": 86400000
105
+ },
106
+ {
107
+ "type": "label",
108
+ "label": "Funcionamiento"
109
+ },
110
+ {
111
+ "id": "dataMode",
164
112
  "label": "Modo",
113
+ "type": "select-input",
114
+ "items": [
115
+ {
116
+ "label": "Diario",
117
+ "value": "daily"
118
+ },
119
+ {
120
+ "label": "Semanal",
121
+ "value": "weekly"
122
+ },
123
+ {
124
+ "label": "Mensual",
125
+ "value": "monthly"
126
+ },
127
+ {
128
+ "label": "Anual",
129
+ "value": "yearly"
130
+ }
131
+ ],
132
+ "defaultValue": "monthly"
133
+ },
134
+ {
135
+ "id": "excludePast",
136
+ "label": "Filtrar cumpleaños pasados",
137
+ "type": "switch",
138
+ "defaultValue": true,
139
+ "displayOnTrue": "Los cumpleaños ya pasados no seran mostrados",
140
+ "displayOnFalse": "Se siguen mostrando los cumpleaños pasados"
141
+ },
142
+ {
143
+ "id": "msj0",
144
+ "label": "Sin cumpleaños",
145
+ "type": "text-input"
146
+ },
147
+ {
148
+ "id": "formatMjs",
149
+ "label": "Formato Mensaje sin cumpleaños",
150
+ "type": "text-format"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "id": "appearanceGroup",
156
+ "label": "Apariencia",
157
+ "type": "group",
158
+ "items": [
159
+ {
160
+ "type": "label",
161
+ "label": "Orientación"
162
+ },
163
+ {
164
+ "id": "orientation",
165
+ "label": "Orientación",
166
+ "type": "select-input",
167
+ "items": [
168
+ {
169
+ "label": "Horizontal",
170
+ "value": "h"
171
+ },
172
+ {
173
+ "label": "Vertical",
174
+ "value": "v"
175
+ }
176
+ ],
177
+ "required": true,
178
+ "defaultValue": "h"
179
+ },
180
+ {
181
+ "type": "label",
182
+ "label": "Animación"
183
+ },
184
+ {
185
+ "id": "animationMode",
186
+ "label": "Tipo de animación",
187
+ "type": "select-input",
165
188
  "items": [
166
189
  {
167
190
  "label": "Fundido",
168
191
  "value": "fade"
169
192
  },
170
193
  {
171
- "label": "Izquierda-derecha",
194
+ "label": "Izquierda - derecha",
172
195
  "value": "slideRight"
173
196
  },
174
197
  {
175
- "label": "Derecha-izquierda",
198
+ "label": "Derecha - izquierda",
176
199
  "value": "slideLeft"
177
200
  }
178
201
  ],
202
+ "required": true,
179
203
  "defaultValue": "fade"
180
204
  },
181
205
  {
182
- "type": "number-input",
206
+ "id": "animationSpeed",
207
+ "label": "Velocidad",
208
+ "type": "select-input",
209
+ "items": [
210
+ {
211
+ "label": "Lenta",
212
+ "value": 2
213
+ },
214
+ {
215
+ "label": "Normal",
216
+ "value": 1.5
217
+ },
218
+ {
219
+ "label": "Rápida",
220
+ "value": 1
221
+ }
222
+ ],
223
+ "defaultValue": 1.5
224
+ },
225
+ {
183
226
  "id": "animationTime",
184
227
  "label": "Tiempo",
185
- "range":"[5:9999]",
186
- "required": true,
187
- "description": "Duracion de cada grupo de datos. En segundos."
188
- },
189
- {
190
- "type": "select-input",
191
- "id": "animationSpeed",
192
- "label": "Velocidad",
193
- "items": [
194
- {
195
- "label": "Lenta",
196
- "value": 2
197
- },
198
- {
199
- "label": "Normal",
200
- "value": 1.5
201
- },
202
- {
203
- "label": "Rápida",
204
- "value": 1
205
- }
206
- ],
207
- "defaultValue": 1.5
208
- },
228
+ "type": "number-input",
229
+ "range": "[1:9999:]",
230
+ "description": "Duracion de cada grupo de datos (en segundos)",
231
+ "required": true
232
+ },
209
233
  {
210
- "type": "switch",
211
234
  "id": "animationOrder",
212
235
  "label": "Orden",
236
+ "type": "switch",
237
+ "defaultValue": false,
213
238
  "displayOnTrue": "Invertido",
214
- "displayOnFalse": "Normal",
215
- "defaultValue": false
216
- },
217
- {
218
- "type": "label",
219
- "label": "Contenedor"
220
- },
221
- {
222
- "type": "number-input",
223
- "id": "containerColumns",
224
- "label": "Columnas",
225
- "description": "Cantidad de items horizontales.",
226
- "range": "[1:999]"
227
- },
228
- {
229
- "type": "number-input",
230
- "id": "containerColumnsGap",
231
- "label": "Separador horizontal",
232
- "description": "Espacio entre columnas en porcentaje.",
233
- "range": "[0:100]"
234
- },
235
- {
236
- "type": "number-input",
237
- "id": "containerRows",
238
- "label": "Filas",
239
- "description": "Cantidad de items verticales.",
240
- "range": "[1:999]"
241
- },
242
- {
243
- "type": "number-input",
244
- "id": "containerRowsGap",
245
- "label": "Separador vertical",
246
- "description": "Espacio entre filas en porcentaje.",
247
- "range": "[0:100]"
248
- },
249
- {
250
- "type": "label",
251
- "label": "Avanzado"
252
- },
253
- {
254
- "id": "backgroundImage",
255
- "type": "select-asset-kna-input",
256
- "required": false,
257
- "label": "Fondo",
258
- "extensions": [
259
- "jpg",
260
- "png"
261
- ]
262
- },
263
- {
264
- "id": "padding",
265
- "type": "text-input",
266
- "required": false,
267
- "label": "Márgenes",
268
- "description": "CSS para dar espacio arriba/derecha/abajo/izquieda."
269
- }
270
- ]
271
- },
272
- {
273
- "id": "standardGroup",
274
- "type": "group",
275
- "label": "Estilo",
276
- "description": "",
277
- "items": [
278
- {
279
- "type": "label",
280
- "label": "Textos"
281
- },
282
- {
283
- "type": "select-input",
284
- "id": "textPosition",
285
- "label": "Posición",
286
- "items": [
287
- {
288
- "label": "Inicio",
289
- "value": 1
290
- },
291
- {
292
- "label": "Centro",
293
- "value": 2
294
- },
295
- {
296
- "label": "Final",
297
- "value": 3
298
- }
299
- ],
300
- "defaultValue": 2
301
- },
302
- {
303
- "type": "select-input",
304
- "id": "textAlignment",
305
- "label": "Alineacion",
306
- "items": [
307
- {
308
- "label": "Inicio",
309
- "value": "start"
310
- },
311
- {
312
- "label": "Centro",
313
- "value": "center"
314
- },
315
- {
316
- "label": "Final",
317
- "value": "end"
318
- }
319
- ],
320
- "defaultValue": "center"
321
- },
322
- {
323
- "type": "text-format",
324
- "id": "nameFormat",
325
- "label": "Formato"
326
- },
327
- {
328
- "type": "number-input",
329
- "id": "nameMaxChar",
330
- "label": "Caracteres máximos"
331
- },
332
- {
333
- "type": "number-input",
334
- "id": "textMargin",
335
- "label": "Margen",
336
- "description": "Margen derecho de los textos en porcentaje. Por defecto 4%"
337
- },
338
- {
339
- "type": "switch",
340
- "id": "descriptionEnabled",
341
- "label": "Descripción",
342
- "defaultValue": true
343
- },
344
- {
345
- "type": "text-format",
346
- "id": "descriptionFormat",
347
- "label": "Formato",
348
- "show": "{{descriptionEnabled}} === true"
349
- },
350
- {
351
- "type": "number-input",
352
- "id": "descriptionMaxChar",
353
- "label": "Caracteres máximos",
354
- "show": "{{descriptionEnabled}} === true"
355
- },
356
- {
357
- "type": "switch",
358
- "id": "optionalEnabled",
359
- "label": "Campo opcional",
360
- "defaultValue": true
361
- },
362
- {
363
- "type": "text-format",
364
- "id": "optionalFormat",
365
- "label": "Formato",
366
- "show": "{{optionalEnabled}} === true"
367
- },
368
- {
369
- "type": "label",
370
- "label": "Fotografía"
371
- },
372
- {
373
- "type": "switch",
374
- "id": "imageEnabled",
375
- "label": "Habilitada",
376
- "defaultValue": true
377
- },
378
- {
379
- "type": "select-input",
380
- "id": "imagePosition",
381
- "label": "Posición",
382
- "items": [
383
- {
384
- "label": "Inicio",
385
- "value": 1
386
- },
387
- {
388
- "label": "Centro",
389
- "value": 2
390
- },
391
- {
392
- "label": "Final",
393
- "value": 3
394
- }
395
- ],
396
- "defaultValue": 1,
397
- "show": "{{imageEnabled}} === true"
398
- },
399
- {
400
- "type": "select-input",
401
- "id": "imageAlignment",
402
- "label": "Alineacion",
403
- "items": [
404
- {
405
- "label": "Inicio",
406
- "value": "start"
407
- },
408
- {
409
- "label": "Centro",
410
- "value": "center"
411
- },
412
- {
413
- "label": "Final",
414
- "value": "end"
415
- }
416
- ],
417
- "defaultValue": "center",
418
- "show": "{{imageEnabled}} === true"
419
- },
420
- {
421
- "id": "imageStyle",
422
- "type": "select-input",
423
- "required": true,
424
- "label": "Estilo",
425
- "description": "Forma de enmarcar la fotografía.",
426
- "defaultValue": "normal",
427
- "items": [
428
- {
429
- "label": "Normal",
430
- "value": "normal"
431
- },
432
- {
433
- "label": "Redondeado",
434
- "value": "rounded"
435
- },
436
- {
437
- "label": "Círculo",
438
- "value": "circle"
439
- }
440
- ],
441
- "show": "{{imageEnabled}} === true"
442
- },
443
- {
444
- "type": "number-input",
445
- "id": "imageMargin",
446
- "label": "Margen",
447
- "description": "Margen derecho de la imagen en porcentaje. Por defecto 4%",
448
- "show": "{{imageEnabled}} === true"
449
- },
450
- {
451
- "type": "number-input",
452
- "id": "imageSize",
453
- "range": "[1:100]",
454
- "label": "Tamaño",
455
- "description": "Tamaño de la imagen en porcentaje.",
456
- "show": "{{imageEnabled}} === true"
457
- },
458
- {
459
- "type": "label",
460
- "label": "Fecha"
461
- },
462
- {
463
- "type": "switch",
464
- "id": "dateEnabled",
465
- "label": "Habilitada",
466
- "defaultValue": true
467
- },
468
- {
469
- "type": "select-input",
470
- "id": "datePosition",
471
- "label": "Posición",
472
- "items": [
473
- {
474
- "label": "Inicio",
475
- "value": 1
476
- },
477
- {
478
- "label": "Centro",
479
- "value": 2
480
- },
481
- {
482
- "label": "Final",
483
- "value": 3
484
- }
485
- ],
486
- "defaultValue": 3,
487
- "show": "{{dateEnabled}} === true"
488
- },
489
- {
490
- "type": "select-input",
491
- "id": "dateAlignment",
492
- "label": "Alineacion",
493
- "items": [
494
- {
495
- "label": "Inicio",
496
- "value": "start"
497
- },
498
- {
499
- "label": "Centro",
500
- "value": "center"
501
- },
502
- {
503
- "label": "Final",
504
- "value": "end"
505
- }
506
- ],
507
- "defaultValue": "center",
508
- "show": "{{dateEnabled}} === true"
509
- },
510
- {
511
- "type": "select-input",
512
- "id": "dateStyle",
513
- "required": true,
514
- "label": "Estilo",
515
- "defaultValue": "calendarFlat",
516
- "show": "{{dateEnabled}} === true",
517
- "items": [
518
- {
519
- "label": "Calendario simple",
520
- "value": "calendarFlat"
521
- },
522
- {
523
- "label": "Calendario texto",
524
- "value": "calendarText"
525
- },
526
- {
527
- "label": "Circular",
528
- "value": "circle"
529
- },
530
- {
531
- "label": "Texto",
532
- "value": "text"
533
- },
534
- {
535
- "label": "Lineas",
536
- "value": "outlines"
537
- }
538
- ]
539
- },
540
- {
541
- "type": "text-format",
542
- "id": "dateDayFormat",
543
- "label": "Formato del dia",
544
- "show": "{{dateEnabled}} === true"
545
- },
546
- {
547
- "type": "text-format",
548
- "id": "dateMonthFormat",
549
- "label": "Formato del mes",
550
- "show": "{{dateEnabled}} === true"
551
- },
552
- {
553
- "type": "switch",
554
- "id": "abbreviatedMonths",
555
- "label": "Meses abreviados",
556
- "show": "({{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1)",
557
- "defaultValue": false
558
- },
559
- {
560
- "type": "color-picker",
561
- "id": "datePrimaryColor",
562
- "label": "Color primario",
563
- "show": "({{dateEnabled}} === true && ['calendarFlat', 'circle', 'outlines'].indexOf({{dateStyle}}) !== -1)"
564
- },
565
- {
566
- "type": "number-input",
567
- "id": "dateMargin",
568
- "label": "Margen",
569
- "description": "Margen derecho de la fecha en porcentaje. Por defecto 4%",
570
- "show": "{{dateEnabled}} === true"
571
- },
572
- {
573
- "type": "label",
574
- "label": "Separador"
575
- },
576
- {
577
- "type": "switch",
578
- "id": "separator",
579
- "label": "Habilitado"
580
- },
581
- {
582
- "type": "number-input",
583
- "id": "separatorWidth",
584
- "label": "Ancho",
585
- "show": "{{separator}} === true"
586
- },
587
- {
588
- "type": "color-picker",
589
- "id": "separatorColor",
590
- "label": "Color",
591
- "show": "{{separator}} === true"
592
- },
593
- {
594
- "type": "text-input",
595
- "id": "itemMargins",
596
- "label": "Margenes",
597
- "description": "Un css de longitud de uno o dos valores",
598
- "pattern": "^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$",
599
- "show": "{{separator}} === true"
600
- }
601
- ]
602
- }
603
- ]
239
+ "displayOnFalse": "Normal"
240
+ },
241
+ {
242
+ "type": "label",
243
+ "label": "Contenedor"
244
+ },
245
+ {
246
+ "id": "containerColumns",
247
+ "label": "Columnas",
248
+ "type": "number-input",
249
+ "range": "[1:999:]",
250
+ "description": "Cantidad de items horizontales"
251
+ },
252
+ {
253
+ "id": "containerColumnsGap",
254
+ "label": "Separador horizontal",
255
+ "type": "number-input",
256
+ "range": "[1:100:]",
257
+ "description": "Espacio entre columnas (en porcentaje)"
258
+ },
259
+ {
260
+ "id": "containerRows",
261
+ "label": "Filas",
262
+ "type": "number-input",
263
+ "range": "[1:999:]",
264
+ "description": "Cantidad de items verticales"
265
+ },
266
+ {
267
+ "id": "containerRowsGap",
268
+ "label": "Separador horizontal",
269
+ "type": "number-input",
270
+ "range": "[1:100:]",
271
+ "description": "Espacio entre filas (en porcentaje)"
272
+ },
273
+ {
274
+ "type": "label",
275
+ "label": "Avanzado"
276
+ },
277
+ {
278
+ "id": "backgroundImage",
279
+ "label": "Fondo",
280
+ "type": "select-asset-kna-input",
281
+ "required": false,
282
+ "extensions": [
283
+ "jpg",
284
+ "png"
285
+ ],
286
+ "multiple": false
287
+ },
288
+ {
289
+ "id": "padding",
290
+ "label": "Márgenes",
291
+ "type": "text-input",
292
+ "description": "CSS para dar espacio arriba/derecha/abajo/izquieda",
293
+ "required": false
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "id": "standardGroup",
299
+ "label": "Estilo",
300
+ "type": "group",
301
+ "items": [
302
+ {
303
+ "type": "label",
304
+ "label": "Textos"
305
+ },
306
+ {
307
+ "id": "textPosition",
308
+ "label": "Posición",
309
+ "type": "select-input",
310
+ "items": [
311
+ {
312
+ "label": "Inicio",
313
+ "value": 1
314
+ },
315
+ {
316
+ "label": "Centro",
317
+ "value": 2
318
+ },
319
+ {
320
+ "label": "Final",
321
+ "value": 3
322
+ }
323
+ ],
324
+ "defaultValue": 2
325
+ },
326
+ {
327
+ "id": "textAlignment",
328
+ "label": "Alineación",
329
+ "type": "select-input",
330
+ "items": [
331
+ {
332
+ "label": "Inicio",
333
+ "value": "start"
334
+ },
335
+ {
336
+ "label": "Centro",
337
+ "value": "center"
338
+ },
339
+ {
340
+ "label": "Final",
341
+ "value": "end"
342
+ }
343
+ ],
344
+ "defaultValue": "center"
345
+ },
346
+ {
347
+ "type": "label",
348
+ "label": "Nombre"
349
+ },
350
+ {
351
+ "id": "nameFormat",
352
+ "label": "Formato",
353
+ "type": "text-format"
354
+ },
355
+ {
356
+ "id": "nameMaxChar",
357
+ "label": "Caracteres máximos",
358
+ "type": "number-input"
359
+ },
360
+ {
361
+ "id": "textMargin",
362
+ "label": "Margen",
363
+ "type": "text-input",
364
+ "description": "Margen derecho de los textos (en porcentaje). Por defecto 4%"
365
+ },
366
+ {
367
+ "id": "descriptionEnabled",
368
+ "label": "Habilitar descripción",
369
+ "type": "switch",
370
+ "defaultValue": true,
371
+ "displayOnTrue": "Descripción habilitada",
372
+ "displayOnFalse": "Descripción deshabilitada"
373
+ },
374
+ {
375
+ "type": "label",
376
+ "label": "Descripción",
377
+ "show": "{{descriptionEnabled}} === true"
378
+ },
379
+ {
380
+ "id": "descriptionFormat",
381
+ "label": "Formato",
382
+ "show": "{{descriptionEnabled}} === true",
383
+ "type": "text-format"
384
+ },
385
+ {
386
+ "id": "descriptionMaxChar",
387
+ "label": "Caracteres máximos",
388
+ "show": "{{descriptionEnabled}} === true",
389
+ "type": "number-input"
390
+ },
391
+ {
392
+ "id": "optionalEnabled",
393
+ "label": "Habilitar campo opcional",
394
+ "type": "switch",
395
+ "defaultValue": true,
396
+ "displayOnTrue": "Campo opcional habilitado",
397
+ "displayOnFalse": "Campo opcional deshabilitado"
398
+ },
399
+ {
400
+ "type": "label",
401
+ "label": "Campo opcional",
402
+ "show": "{{optionalEnabled}} === true"
403
+ },
404
+ {
405
+ "id": "optionalFormat",
406
+ "label": "Formato",
407
+ "show": "{{optionalEnabled}} === true",
408
+ "type": "text-format"
409
+ },
410
+ {
411
+ "type": "label",
412
+ "label": "Fotografía"
413
+ },
414
+ {
415
+ "type": "label",
416
+ "label": "Imagen"
417
+ },
418
+ {
419
+ "id": "imageEnabled",
420
+ "label": "Habilitar imagen",
421
+ "type": "switch",
422
+ "defaultValue": true,
423
+ "displayOnTrue": "Imagen habilitada",
424
+ "displayOnFalse": "Imagen deshabilitada"
425
+ },
426
+ {
427
+ "id": "imagePosition",
428
+ "label": "Posición",
429
+ "show": "{{imageEnabled}} === true",
430
+ "type": "select-input",
431
+ "items": [
432
+ {
433
+ "label": "Inicio",
434
+ "value": 1
435
+ },
436
+ {
437
+ "label": "Centro",
438
+ "value": 2
439
+ },
440
+ {
441
+ "label": "Final",
442
+ "value": 3
443
+ }
444
+ ],
445
+ "defaultValue": 2
446
+ },
447
+ {
448
+ "id": "imageAlignment",
449
+ "label": "Alineación",
450
+ "show": "{{imageEnabled}} === true",
451
+ "type": "select-input",
452
+ "items": [
453
+ {
454
+ "label": "Inicio",
455
+ "value": "start"
456
+ },
457
+ {
458
+ "label": "Centro",
459
+ "value": "center"
460
+ },
461
+ {
462
+ "label": "Final",
463
+ "value": "end"
464
+ }
465
+ ],
466
+ "defaultValue": "center"
467
+ },
468
+ {
469
+ "id": "imageStyle",
470
+ "label": "Estilo",
471
+ "show": "{{imageEnabled}} === true",
472
+ "type": "select-input",
473
+ "description": "Forma de enmarcar la fotografía",
474
+ "items": [
475
+ {
476
+ "label": "Normal",
477
+ "value": "normal"
478
+ },
479
+ {
480
+ "label": "Redondeado",
481
+ "value": "rounded"
482
+ },
483
+ {
484
+ "label": "Círculo",
485
+ "value": "circle"
486
+ }
487
+ ],
488
+ "required": true,
489
+ "defaultValue": "normal"
490
+ },
491
+ {
492
+ "id": "imageMargin",
493
+ "label": "Margen",
494
+ "show": "{{imageEnabled}} === true",
495
+ "type": "text-input",
496
+ "description": "Margen derecho de la imagen (en porcentaje). Por defecto 4%"
497
+ },
498
+ {
499
+ "id": "imageSize",
500
+ "label": "Tamaño",
501
+ "show": "{{imageEnabled}} === true",
502
+ "type": "number-input",
503
+ "range": "[1:100:]",
504
+ "description": "Tamaño de la imagen (en porcentaje)"
505
+ },
506
+ {
507
+ "type": "label",
508
+ "label": "Fecha"
509
+ },
510
+ {
511
+ "id": "dateEnabled",
512
+ "label": "Habilitar fecha",
513
+ "type": "switch",
514
+ "defaultValue": true,
515
+ "displayOnTrue": "Fecha habilitada",
516
+ "displayOnFalse": "Fecha deshabilitada"
517
+ },
518
+ {
519
+ "id": "datePosition",
520
+ "label": "Posición",
521
+ "show": "{{dateEnabled}} === true",
522
+ "type": "select-input",
523
+ "items": [
524
+ {
525
+ "label": "Inicio",
526
+ "value": 1
527
+ },
528
+ {
529
+ "label": "Centro",
530
+ "value": 2
531
+ },
532
+ {
533
+ "label": "Final",
534
+ "value": 3
535
+ }
536
+ ],
537
+ "defaultValue": 3
538
+ },
539
+ {
540
+ "id": "dateAlignment",
541
+ "label": "Alineación",
542
+ "show": "{{dateEnabled}} === true",
543
+ "type": "select-input",
544
+ "items": [
545
+ {
546
+ "label": "Inicio",
547
+ "value": "start"
548
+ },
549
+ {
550
+ "label": "Centro",
551
+ "value": "center"
552
+ },
553
+ {
554
+ "label": "Final",
555
+ "value": "end"
556
+ }
557
+ ],
558
+ "defaultValue": "center"
559
+ },
560
+ {
561
+ "id": "dateStyle",
562
+ "label": "Estilo",
563
+ "show": "{{dateEnabled}} === true",
564
+ "type": "select-input",
565
+ "description": "Forma de enmarcar la fotografía",
566
+ "items": [
567
+ {
568
+ "label": "Calendario simple",
569
+ "value": "calendarFlat"
570
+ },
571
+ {
572
+ "label": "Calendario texto",
573
+ "value": "calendarText"
574
+ },
575
+ {
576
+ "label": "Circular",
577
+ "value": "circle"
578
+ },
579
+ {
580
+ "label": "Texto",
581
+ "value": "text"
582
+ },
583
+ {
584
+ "label": "Líneas",
585
+ "value": "outlines"
586
+ }
587
+ ],
588
+ "required": true,
589
+ "defaultValue": "calendarFlat"
590
+ },
591
+ {
592
+ "id": "dateDayFormat",
593
+ "label": "Formato del día",
594
+ "show": "{{dateEnabled}} === true",
595
+ "type": "text-format"
596
+ },
597
+ {
598
+ "id": "dateMonthFormat",
599
+ "label": "Formato del mes",
600
+ "show": "{{dateEnabled}} === true",
601
+ "type": "text-format"
602
+ },
603
+ {
604
+ "id": "abbreviatedMonths",
605
+ "label": "Meses abreviados",
606
+ "show": "{{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1",
607
+ "type": "switch",
608
+ "defaultValue": false,
609
+ "displayOnTrue": "Meses abreviados",
610
+ "displayOnFalse": "Meses no abreviados"
611
+ },
612
+ {
613
+ "id": "datePrimaryColor",
614
+ "label": "Color primario",
615
+ "show": "({{dateEnabled}} === true && ['calendarFlat', 'circle', 'outlines'].indexOf({{dateStyle}}) !== -1)",
616
+ "type": "color-picker",
617
+ "output": "auto"
618
+ },
619
+ {
620
+ "id": "dateMargin",
621
+ "label": "Margen",
622
+ "show": "{{dateEnabled}} === true",
623
+ "type": "text-input",
624
+ "description": "Margen derecho de la fecha (en porcentaje). Por defecto 4%"
625
+ },
626
+ {
627
+ "type": "label",
628
+ "label": "Separador"
629
+ },
630
+ {
631
+ "id": "separator",
632
+ "label": "Habilitar Separador",
633
+ "type": "switch",
634
+ "defaultValue": true,
635
+ "displayOnTrue": "Separador habilitado",
636
+ "displayOnFalse": "Separador deshabilitado"
637
+ },
638
+ {
639
+ "id": "separatorWidth",
640
+ "label": "Ancho",
641
+ "show": "{{separator}} === true",
642
+ "type": "number-input"
643
+ },
644
+ {
645
+ "id": "separatorColor",
646
+ "label": "Color",
647
+ "show": "{{separator}} === true",
648
+ "type": "color-picker",
649
+ "output": "auto"
650
+ },
651
+ {
652
+ "id": "itemMargins",
653
+ "label": "Márgenes",
654
+ "show": "{{separator}} === true",
655
+ "type": "text-input",
656
+ "description": "Un css de longitud de uno o dos valores",
657
+ "pattern": "^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$"
658
+ }
659
+ ]
660
+ }
661
+ ]
604
662
  }