@vixoniccom/aniversarios 1.4.6-dev.1 → 1.4.7-dev.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.
@@ -149,11 +149,41 @@
149
149
  "items": [
150
150
  {
151
151
  "type": "label",
152
- "label": "Orientación"
152
+ "label": "Tema predefinido"
153
+ },
154
+ {
155
+ "id": "themePreset",
156
+ "label": "Tema",
157
+ "type": "select-input",
158
+ "description": "Elige un tema para aplicar un estilo visual completo. Selecciona \"Personalizado\" para configurar cada campo de estilo de forma individual.",
159
+ "items": [
160
+ {
161
+ "label": "Personalizado",
162
+ "value": "personalizado"
163
+ },
164
+ {
165
+ "label": "Aniversarios inferior",
166
+ "value": "preset1"
167
+ },
168
+ {
169
+ "label": "Aniversarios lista",
170
+ "value": "preset2"
171
+ },
172
+ {
173
+ "label": "Aniversarios vertical (1 persona)",
174
+ "value": "preset3"
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ "type": "label",
180
+ "label": "Orientación",
181
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
153
182
  },
154
183
  {
155
184
  "id": "orientation",
156
185
  "label": "Orientación",
186
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
157
187
  "type": "select-input",
158
188
  "items": [
159
189
  {
@@ -170,11 +200,13 @@
170
200
  },
171
201
  {
172
202
  "type": "label",
173
- "label": "Animación"
203
+ "label": "Animación",
204
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
174
205
  },
175
206
  {
176
207
  "id": "animationMode",
177
208
  "label": "Tipo de animación",
209
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
178
210
  "type": "select-input",
179
211
  "description": "Por defecto, Fundido.",
180
212
  "items": [
@@ -197,6 +229,7 @@
197
229
  {
198
230
  "id": "animationSpeed",
199
231
  "label": "Velocidad",
232
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
200
233
  "type": "select-input",
201
234
  "items": [
202
235
  {
@@ -217,6 +250,7 @@
217
250
  {
218
251
  "id": "animationOrder",
219
252
  "label": "Orden",
253
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
220
254
  "type": "switch",
221
255
  "defaultValue": false,
222
256
  "displayOnTrue": "Invertido",
@@ -225,6 +259,7 @@
225
259
  {
226
260
  "id": "animationTime",
227
261
  "label": "Tiempo",
262
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
228
263
  "type": "number-input",
229
264
  "range": "[1:9999:]",
230
265
  "description": "Duración de cada grupo de datos (en segundos).",
@@ -232,11 +267,13 @@
232
267
  },
233
268
  {
234
269
  "type": "label",
235
- "label": "Contenedor"
270
+ "label": "Contenedor",
271
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
236
272
  },
237
273
  {
238
274
  "id": "containerColumns",
239
275
  "label": "Columnas",
276
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
240
277
  "type": "number-input",
241
278
  "range": "[1:999:]",
242
279
  "description": "Cantidad de items horizontales. Por defecto, 1."
@@ -244,6 +281,7 @@
244
281
  {
245
282
  "id": "containerColumnsGap",
246
283
  "label": "Separador horizontal",
284
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
247
285
  "type": "number-input",
248
286
  "range": "[1:100:]",
249
287
  "description": "Espacio entre columnas (en porcentaje). Por defecto, 1%."
@@ -251,6 +289,7 @@
251
289
  {
252
290
  "id": "containerRows",
253
291
  "label": "Filas",
292
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
254
293
  "type": "number-input",
255
294
  "range": "[1:999:]",
256
295
  "description": "Cantidad de items verticales. Por defecto, 3."
@@ -258,6 +297,7 @@
258
297
  {
259
298
  "id": "containerRowsGap",
260
299
  "label": "Separador vertical",
300
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
261
301
  "type": "number-input",
262
302
  "range": "[1:100:]",
263
303
  "description": "Espacio entre filas (en porcentaje). Por defecto, 5%."
@@ -280,6 +320,7 @@
280
320
  {
281
321
  "id": "padding",
282
322
  "label": "Márgenes",
323
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
283
324
  "type": "text-input",
284
325
  "description": "CSS para dar espacio arriba/derecha/abajo/izquieda.",
285
326
  "required": false
@@ -293,11 +334,48 @@
293
334
  "items": [
294
335
  {
295
336
  "type": "label",
296
- "label": "Textos"
337
+ "label": "Fuentes",
338
+ "show": "{{themePreset}} && {{themePreset}} !== \"personalizado\""
339
+ },
340
+ {
341
+ "id": "nameFont",
342
+ "label": "Fuente del nombre",
343
+ "show": "{{themePreset}} && {{themePreset}} !== \"personalizado\"",
344
+ "type": "text-format"
345
+ },
346
+ {
347
+ "id": "descriptionFont",
348
+ "label": "Fuente de la descripción",
349
+ "show": "{{themePreset}} && {{themePreset}} !== \"personalizado\"",
350
+ "type": "text-format"
351
+ },
352
+ {
353
+ "id": "optionalFont",
354
+ "label": "Fuente del campo opcional",
355
+ "show": "{{themePreset}} && {{themePreset}} !== \"personalizado\"",
356
+ "type": "text-format"
357
+ },
358
+ {
359
+ "id": "dateDayFont",
360
+ "label": "Fuente del día",
361
+ "show": "{{themePreset}} && {{themePreset}} !== \"personalizado\"",
362
+ "type": "text-format"
363
+ },
364
+ {
365
+ "id": "dateMonthFont",
366
+ "label": "Fuente del mes",
367
+ "show": "{{themePreset}} && {{themePreset}} !== \"personalizado\"",
368
+ "type": "text-format"
369
+ },
370
+ {
371
+ "type": "label",
372
+ "label": "Textos",
373
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
297
374
  },
298
375
  {
299
376
  "id": "textPosition",
300
377
  "label": "Posición",
378
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
301
379
  "type": "select-input",
302
380
  "items": [
303
381
  {
@@ -318,6 +396,7 @@
318
396
  {
319
397
  "id": "textAlignment",
320
398
  "label": "Alineación",
399
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
321
400
  "type": "select-input",
322
401
  "items": [
323
402
  {
@@ -337,27 +416,32 @@
337
416
  },
338
417
  {
339
418
  "type": "label",
340
- "label": "Nombre"
419
+ "label": "Nombre",
420
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
341
421
  },
342
422
  {
343
423
  "id": "nameFormat",
344
424
  "label": "Formato",
425
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
345
426
  "type": "text-format"
346
427
  },
347
428
  {
348
429
  "id": "nameMaxChar",
349
430
  "label": "Caracteres máximos",
431
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
350
432
  "type": "number-input"
351
433
  },
352
434
  {
353
435
  "id": "textMargin",
354
436
  "label": "Margen",
437
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
355
438
  "type": "text-input",
356
439
  "description": "Margen derecho de los textos (en porcentaje). Por defecto 4%."
357
440
  },
358
441
  {
359
442
  "id": "descriptionEnabled",
360
443
  "label": "Descripción",
444
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
361
445
  "type": "switch",
362
446
  "defaultValue": true,
363
447
  "displayOnTrue": "habilitada",
@@ -366,23 +450,24 @@
366
450
  {
367
451
  "type": "label",
368
452
  "label": "Descripción",
369
- "show": "{{descriptionEnabled}} === true"
453
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{descriptionEnabled}} === true"
370
454
  },
371
455
  {
372
456
  "id": "descriptionFormat",
373
457
  "label": "Formato",
374
- "show": "{{descriptionEnabled}} === true",
458
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{descriptionEnabled}} === true",
375
459
  "type": "text-format"
376
460
  },
377
461
  {
378
462
  "id": "descriptionMaxChar",
379
463
  "label": "Caracteres máximos",
380
- "show": "{{descriptionEnabled}} === true",
464
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{descriptionEnabled}} === true",
381
465
  "type": "number-input"
382
466
  },
383
467
  {
384
468
  "id": "optionalEnabled",
385
469
  "label": "Campo opcional",
470
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
386
471
  "type": "switch",
387
472
  "defaultValue": true,
388
473
  "displayOnTrue": "habilitado",
@@ -391,25 +476,28 @@
391
476
  {
392
477
  "type": "label",
393
478
  "label": "Campo opcional",
394
- "show": "{{optionalEnabled}} === true"
479
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{optionalEnabled}} === true"
395
480
  },
396
481
  {
397
482
  "id": "optionalFormat",
398
483
  "label": "Formato",
399
- "show": "{{optionalEnabled}} === true",
484
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{optionalEnabled}} === true",
400
485
  "type": "text-format"
401
486
  },
402
487
  {
403
488
  "type": "label",
404
- "label": "Fotografía"
489
+ "label": "Fotografía",
490
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
405
491
  },
406
492
  {
407
493
  "type": "label",
408
- "label": "Imagen"
494
+ "label": "Imagen",
495
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
409
496
  },
410
497
  {
411
498
  "id": "imageEnabled",
412
499
  "label": "Imagen",
500
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
413
501
  "type": "switch",
414
502
  "defaultValue": true,
415
503
  "displayOnTrue": "habilitada",
@@ -418,7 +506,7 @@
418
506
  {
419
507
  "id": "imagePosition",
420
508
  "label": "Posición",
421
- "show": "{{imageEnabled}} === true",
509
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
422
510
  "type": "select-input",
423
511
  "items": [
424
512
  {
@@ -439,7 +527,7 @@
439
527
  {
440
528
  "id": "imageAlignment",
441
529
  "label": "Alineación",
442
- "show": "{{imageEnabled}} === true",
530
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
443
531
  "type": "select-input",
444
532
  "items": [
445
533
  {
@@ -460,7 +548,7 @@
460
548
  {
461
549
  "id": "imageStyle",
462
550
  "label": "Estilo",
463
- "show": "{{imageEnabled}} === true",
551
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
464
552
  "type": "select-input",
465
553
  "description": "Forma de enmarcar la fotografía.",
466
554
  "items": [
@@ -483,25 +571,27 @@
483
571
  {
484
572
  "id": "imageMargin",
485
573
  "label": "Margen",
486
- "show": "{{imageEnabled}} === true",
574
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
487
575
  "type": "text-input",
488
576
  "description": "Margen derecho de la imagen (en porcentaje). Por defecto 4%."
489
577
  },
490
578
  {
491
579
  "id": "imageSize",
492
580
  "label": "Tamaño",
493
- "show": "{{imageEnabled}} === true",
581
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
494
582
  "type": "number-input",
495
583
  "range": "[1:100:]",
496
584
  "description": "Tamaño de la imagen (en porcentaje)."
497
585
  },
498
586
  {
499
587
  "type": "label",
500
- "label": "Fecha"
588
+ "label": "Fecha",
589
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
501
590
  },
502
591
  {
503
592
  "id": "dateEnabled",
504
593
  "label": "Fecha",
594
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
505
595
  "type": "switch",
506
596
  "defaultValue": true,
507
597
  "displayOnTrue": "habilitada",
@@ -510,7 +600,7 @@
510
600
  {
511
601
  "id": "datePosition",
512
602
  "label": "Posición",
513
- "show": "{{dateEnabled}} === true",
603
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
514
604
  "type": "select-input",
515
605
  "items": [
516
606
  {
@@ -531,7 +621,7 @@
531
621
  {
532
622
  "id": "dateAlignment",
533
623
  "label": "Alineación",
534
- "show": "{{dateEnabled}} === true",
624
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
535
625
  "type": "select-input",
536
626
  "items": [
537
627
  {
@@ -552,7 +642,7 @@
552
642
  {
553
643
  "id": "dateStyle",
554
644
  "label": "Estilo",
555
- "show": "{{dateEnabled}} === true",
645
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
556
646
  "type": "select-input",
557
647
  "description": "Forma de enmarcar la fotografía.",
558
648
  "items": [
@@ -583,19 +673,19 @@
583
673
  {
584
674
  "id": "dateDayFormat",
585
675
  "label": "Formato del día",
586
- "show": "{{dateEnabled}} === true",
676
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
587
677
  "type": "text-format"
588
678
  },
589
679
  {
590
680
  "id": "dateMonthFormat",
591
681
  "label": "Formato del mes",
592
- "show": "{{dateEnabled}} === true",
682
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
593
683
  "type": "text-format"
594
684
  },
595
685
  {
596
686
  "id": "abbreviatedMonths",
597
687
  "label": "Meses",
598
- "show": "{{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1",
688
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1",
599
689
  "type": "switch",
600
690
  "defaultValue": false,
601
691
  "displayOnTrue": "abreviados",
@@ -611,17 +701,19 @@
611
701
  {
612
702
  "id": "dateMargin",
613
703
  "label": "Margen",
614
- "show": "{{dateEnabled}} === true",
704
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
615
705
  "type": "text-input",
616
706
  "description": "Margen derecho de la fecha (en porcentaje). Por defecto 4%."
617
707
  },
618
708
  {
619
709
  "type": "label",
620
- "label": "Separador"
710
+ "label": "Separador",
711
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
621
712
  },
622
713
  {
623
714
  "id": "separator",
624
715
  "label": "Separador",
716
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
625
717
  "type": "switch",
626
718
  "defaultValue": true,
627
719
  "displayOnTrue": "habilitado",
@@ -630,20 +722,20 @@
630
722
  {
631
723
  "id": "separatorWidth",
632
724
  "label": "Ancho",
633
- "show": "{{separator}} === true",
725
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{separator}} === true",
634
726
  "type": "number-input"
635
727
  },
636
728
  {
637
729
  "id": "separatorColor",
638
730
  "label": "Color",
639
- "show": "{{separator}} === true",
731
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{separator}} === true",
640
732
  "type": "color-picker",
641
733
  "output": "auto"
642
734
  },
643
735
  {
644
736
  "id": "itemMargins",
645
737
  "label": "Márgenes",
646
- "show": "{{separator}} === true",
738
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{separator}} === true",
647
739
  "type": "text-input",
648
740
  "description": "Un CSS de longitud de uno o dos valores.",
649
741
  "pattern": "^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/aniversarios",
3
3
  "alias": "Aniversarios",
4
- "version": "1.4.6-dev.1",
4
+ "version": "1.4.7-dev.0",
5
5
  "description": "Muestra el día que el trabajador está de aniversario en la empresa.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -2,6 +2,9 @@ import { FontLoader } from '../FontLoader'
2
2
  import { FormattedText } from '../FormattedText'
3
3
  import { AnniversaryItem } from '../AnniversaryItem'
4
4
  import { ItemsContainer } from '../ItemsContainer'
5
+ import preset1 from '../../presets/preset1.json'
6
+ import preset2 from '../../presets/preset2.json'
7
+ import preset3 from '../../presets/preset3.json'
5
8
 
6
9
  interface Props {
7
10
  start: boolean
@@ -9,9 +12,33 @@ interface Props {
9
12
  anniversaries: Anniversary[]
10
13
  }
11
14
 
15
+ const PRESETS = { preset1, preset2, preset3 } as Record<string, Partial<VixonicParameters>>
12
16
 
13
17
  export const Render = ({ start, appData, anniversaries }: Props) => {
14
- const { parameters, downloadsPath } = appData
18
+ const { parameters: rawParameters, downloadsPath } = appData
19
+
20
+ const withFont = (format: VixonicParameters['nameFormat'], fontFormat: VixonicParameters['nameFont']) => {
21
+ if (!fontFormat) return format
22
+ const { font, fontColor } = fontFormat
23
+ return { ...format, ...(font ? { font } : {}), ...(fontColor ? { fontColor } : {}) }
24
+ }
25
+
26
+ const activePreset = rawParameters.themePreset && rawParameters.themePreset !== 'personalizado'
27
+ ? PRESETS[rawParameters.themePreset]
28
+ : undefined
29
+
30
+ const parameters: VixonicParameters = activePreset
31
+ ? {
32
+ ...rawParameters,
33
+ ...activePreset,
34
+ nameFormat: withFont(activePreset.nameFormat, rawParameters.nameFont),
35
+ descriptionFormat: withFont(activePreset.descriptionFormat, rawParameters.descriptionFont),
36
+ optionalFormat: withFont(activePreset.optionalFormat, rawParameters.optionalFont),
37
+ dateDayFormat: withFont(activePreset.dateDayFormat, rawParameters.dateDayFont),
38
+ dateMonthFormat: withFont(activePreset.dateMonthFormat, rawParameters.dateMonthFont),
39
+ }
40
+ : rawParameters
41
+
15
42
  const { backgroundImage,
16
43
  padding,
17
44
  defaultMessage = 'Sin ingresos',
@@ -24,11 +51,13 @@ export const Render = ({ start, appData, anniversaries }: Props) => {
24
51
  containerColumnsGap = 1,
25
52
  } = parameters
26
53
 
54
+ const mergedData = { ...appData, parameters }
55
+
27
56
  const backgroundImageState = backgroundImage?.filename
28
57
  ? `url("${downloadsPath}/${backgroundImage.filename}")` : ''
29
58
 
30
59
  const anniversaryItems = anniversaries.map((anniversary: Anniversary) => {
31
- return <AnniversaryItem style={'standard'} anniversary={anniversary} data={appData} key={anniversary?.name} />
60
+ return <AnniversaryItem style={'standard'} anniversary={anniversary} data={mergedData} key={anniversary?.name} />
32
61
  })
33
62
 
34
63
  return (
@@ -42,7 +71,7 @@ export const Render = ({ start, appData, anniversaries }: Props) => {
42
71
  backgroundSize: '100% 100%',
43
72
  padding: padding
44
73
  }}>
45
- <FontLoader paths={['nameFormat.font', 'descriptionFormat.font', 'dateDayFormat.font', 'dateMonthFormat.font', 'optionalFormat.font']} data={appData} />
74
+ <FontLoader paths={['nameFormat.font', 'descriptionFormat.font', 'dateDayFormat.font', 'dateMonthFormat.font', 'optionalFormat.font']} data={mergedData} />
46
75
  {(anniversaries.length > 0) ?
47
76
  <ItemsContainer
48
77
  items={anniversaryItems}
@@ -1,88 +1,9 @@
1
1
  declare type VixonicData = {
2
2
  downloadsPath: string
3
- services: {[key: string]: {data?: any; updatedAt?: number}}
3
+ services: { [key: string]: { data?: any, updatedAt?: number } }
4
4
  parameters: VixonicParameters
5
5
  }
6
6
 
7
7
  declare type VixonicParameters = Partial<{
8
- displayService: 'AnniversaryAppService' | 'RexmasAnniversarieService' | 'BukAnniversarieService' | 'TalanaAnniversariesService'
9
- documentService: {id: string}
10
- rexmasService: {id: string}
11
- bukService: {id: string}
12
- talanaService: {id: string}
13
- photoMode: 'zip' | 'online'
14
- photosZip: {id?: string; filename?: string; extension?: string}
15
- updateTime: 600000 | 1800000 | 3600000 | 21600000 | 43200000 | 86400000 | 604800000
16
- defaultMessage: string
17
- defaultMessageFormat: {
18
- fontSize?: number
19
- fontColor?: string
20
- alignment?: {horizontal?: 'left' | 'right' | 'center'}
21
- font?: {filename: string; id: string; __isAsset: true}
22
- }
23
- orientation: 'h' | 'v'
24
- animationMode: 'fade' | 'slideRight' | 'slideLeft'
25
- animationSpeed: 2 | 1.5 | 1
26
- animationOrder: boolean
27
- animationTime: number
28
- containerColumns: number
29
- containerColumnsGap: number
30
- containerRows: number
31
- containerRowsGap: number
32
- backgroundImage: {id?: string; filename?: string; extension?: string}
33
- padding: string
34
- textPosition: 1 | 2 | 3
35
- textAlignment: 'start' | 'center' | 'end'
36
- nameFormat: {
37
- fontSize?: number
38
- fontColor?: string
39
- alignment?: {horizontal?: 'left' | 'right' | 'center'}
40
- font?: {filename: string; id: string; __isAsset: true}
41
- }
42
- nameMaxChar: number
43
- textMargin: string
44
- descriptionEnabled: boolean
45
- descriptionFormat: {
46
- fontSize?: number
47
- fontColor?: string
48
- alignment?: {horizontal?: 'left' | 'right' | 'center'}
49
- font?: {filename: string; id: string; __isAsset: true}
50
- }
51
- descriptionMaxChar: number
52
- optionalEnabled: boolean
53
- optionalFormat: {
54
- fontSize?: number
55
- fontColor?: string
56
- alignment?: {horizontal?: 'left' | 'right' | 'center'}
57
- font?: {filename: string; id: string; __isAsset: true}
58
- }
59
- imageEnabled: boolean
60
- imagePosition: 1 | 2 | 3
61
- imageAlignment: 'start' | 'center' | 'end'
62
- imageStyle: 'normal' | 'rounded' | 'circle'
63
- imageMargin: string
64
- imageSize: number
65
- dateEnabled: boolean
66
- datePosition: 1 | 2 | 3
67
- dateAlignment: 'start' | 'center' | 'end'
68
- dateStyle: 'calendarFlat' | 'calendarText' | 'circle' | 'text' | 'outlines'
69
- dateDayFormat: {
70
- fontSize?: number
71
- fontColor?: string
72
- alignment?: {horizontal?: 'left' | 'right' | 'center'}
73
- font?: {filename: string; id: string; __isAsset: true}
74
- }
75
- dateMonthFormat: {
76
- fontSize?: number
77
- fontColor?: string
78
- alignment?: {horizontal?: 'left' | 'right' | 'center'}
79
- font?: {filename: string; id: string; __isAsset: true}
80
- }
81
- abbreviatedMonths: boolean
82
- datePrimaryColor: string
83
- dateMargin: string
84
- separator: boolean
85
- separatorWidth: number
86
- separatorColor: string
87
- itemMargins: string
88
- }>
8
+ displayService: 'AnniversaryAppService' | 'RexmasAnniversarieService' | 'BukAnniversarieService' | 'TalanaAnniversariesService', documentService: { id: string }, rexmasService: { id: string }, bukService: { id: string }, talanaService: { id: string }, photoMode: 'zip' | 'online', photosZip: {id?: string, filename?: string, extension?: string}, updateTime: 600000 | 1800000 | 3600000 | 21600000 | 43200000 | 86400000 | 604800000, defaultMessage: string, defaultMessageFormat: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, themePreset: 'personalizado' | 'preset1' | 'preset2' | 'preset3', orientation: 'h' | 'v', animationMode: 'fade' | 'slideRight' | 'slideLeft', animationSpeed: 2 | 1.5 | 1, animationOrder: boolean, animationTime: number, containerColumns: number, containerColumnsGap: number, containerRows: number, containerRowsGap: number, backgroundImage: {id?: string, filename?: string, extension?: string}, padding: string, nameFont: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, descriptionFont: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, optionalFont: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, dateDayFont: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, dateMonthFont: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, textPosition: 1 | 2 | 3, textAlignment: 'start' | 'center' | 'end', nameFormat: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, nameMaxChar: number, textMargin: string, descriptionEnabled: boolean, descriptionFormat: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, descriptionMaxChar: number, optionalEnabled: boolean, optionalFormat: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, imageEnabled: boolean, imagePosition: 1 | 2 | 3, imageAlignment: 'start' | 'center' | 'end', imageStyle: 'normal' | 'rounded' | 'circle', imageMargin: string, imageSize: number, dateEnabled: boolean, datePosition: 1 | 2 | 3, dateAlignment: 'start' | 'center' | 'end', dateStyle: 'calendarFlat' | 'calendarText' | 'circle' | 'text' | 'outlines', dateDayFormat: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, dateMonthFormat: { fontSize?: number, fontColor?: string, alignment?: { horizontal?: 'left' | 'right' | 'center' }, font?: { filename: string, id: string, __isAsset: true } }, abbreviatedMonths: boolean, datePrimaryColor: string, dateMargin: string, separator: boolean, separatorWidth: number, separatorColor: string, itemMargins: string
9
+ }>
@@ -0,0 +1,33 @@
1
+ {
2
+ "orientation": "h",
3
+ "animationMode": "fade",
4
+ "animationSpeed": 1.5,
5
+ "animationOrder": false,
6
+ "animationTime": "10",
7
+ "containerColumns": "1",
8
+ "containerColumnsGap": "4",
9
+ "containerRows": "1",
10
+ "containerRowsGap": "2",
11
+ "padding": "27px 28px 30px 30px",
12
+ "textPosition": 1,
13
+ "textAlignment": "center",
14
+ "nameFormat": { "fontSize": 11, "fontColor": "#000000", "alignment": { "horizontal": "left" } },
15
+ "textMargin": "7",
16
+ "descriptionEnabled": true,
17
+ "descriptionFormat": { "fontSize": 9.5, "fontColor": "#000000", "alignment": { "horizontal": "left" } },
18
+ "optionalEnabled": false,
19
+ "imageEnabled": false,
20
+ "imagePosition": 3,
21
+ "imageAlignment": "center",
22
+ "imageStyle": "circle",
23
+ "imageMargin": "5",
24
+ "imageSize": "91",
25
+ "dateEnabled": false,
26
+ "datePosition": 1,
27
+ "dateAlignment": "center",
28
+ "dateStyle": "circle",
29
+ "dateDayFormat": { "fontSize": 45, "fontColor": "#ffffff" },
30
+ "dateMonthFormat": { "fontSize": 20, "fontColor": "#ffffff" },
31
+ "abbreviatedMonths": false,
32
+ "separator": false
33
+ }