@vixoniccom/aniversarios 1.2.3-dev.1 → 1.2.3-dev.2

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