@vixoniccom/birthdays 0.0.1-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.
package/.eslintrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": ["standard", "standard-react"]
3
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ## 0.0.1 (2021-09-01)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **birthdays:** fixed edge case for birthday rendering ([80ed225](https://gitlab.com/mandomedio/vixonic/rexmas-birthdays/commit/80ed225))
11
+
12
+
13
+
14
+ # Change Log
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # Rexmas Birthdays
2
+ ## Changelog
package/build.zip ADDED
Binary file
@@ -0,0 +1,606 @@
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": "userRexmasApi",
15
+ "type": "text-input",
16
+ "required": true,
17
+ "label": "Usuario",
18
+ "description": "Usuario de Rex+."
19
+ },
20
+ {
21
+ "id": "pwdRexmasApi",
22
+ "type": "text-input",
23
+ "required": true,
24
+ "label": "Contraseña",
25
+ "description": "Contraseña de Rex+."
26
+ },
27
+ {
28
+ "id": "urlBaseApi",
29
+ "type": "text-input",
30
+ "required": true,
31
+ "label": "Url API",
32
+ "description": "Url API Rex+."
33
+ },
34
+ {
35
+ "type": "select-input",
36
+ "id": "photosMode",
37
+ "label": "Modo de fotos",
38
+ "items": [
39
+ {
40
+ "label": "Zip",
41
+ "value": "zip"
42
+ },
43
+ {
44
+ "label": "En linea",
45
+ "value": "online"
46
+ }
47
+ ],
48
+ "defaultValue": "online"
49
+ },
50
+ {
51
+ "id": "photosUrl",
52
+ "type": "text-input",
53
+ "required": false,
54
+ "label": "Fotos",
55
+ "description": "Ubicación donde se encuentran las fotos.",
56
+ "show": "{{photosMode}} === 'online'"
57
+ },
58
+ {
59
+ "type": "select-asset-kna-input",
60
+ "id": "photosZip",
61
+ "label": "Archivo Zip",
62
+ "extensions": [
63
+ "zip"
64
+ ],
65
+ "show": "{{photosMode}} === 'zip'"
66
+ },
67
+ {
68
+ "id": "updateTime",
69
+ "type": "select-input",
70
+ "required": true,
71
+ "label": "Actualización",
72
+ "defaultValue": 600000,
73
+ "items": [
74
+ {
75
+ "label": "10 minutos",
76
+ "value": 600000
77
+ },
78
+ {
79
+ "label": "30 minutos",
80
+ "value": 1800000
81
+ },
82
+ {
83
+ "label": "1 hora",
84
+ "value": 3600000
85
+ },
86
+ {
87
+ "label": "6 horas",
88
+ "value": 21600000
89
+ },
90
+ {
91
+ "label": "12 horas",
92
+ "value": 43200000
93
+ },
94
+ {
95
+ "label": "Diario",
96
+ "value": 86400000
97
+ },
98
+ {
99
+ "label": "Semanal",
100
+ "value": 604800000
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "type": "label",
106
+ "label": "Funcionamiento"
107
+ },
108
+ {
109
+ "id": "dataMode",
110
+ "type": "select-input",
111
+ "required": true,
112
+ "label": "Modo",
113
+ "defaultValue": "monthly",
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
+ },
133
+ {
134
+ "type": "switch",
135
+ "id": "excludePast",
136
+ "label": "Filtrar pasados",
137
+ "description": "Los cumpleaños ya pasados no seran mostrados.",
138
+ "defaultValue": true
139
+ },
140
+ {
141
+ "type": "text-input",
142
+ "id": "msj0",
143
+ "label": "Sin cumpleaños",
144
+ "description": "Mensaje que se muestra cuando no hay cumpleaños."
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "id": "appearanceGroup",
150
+ "type": "group",
151
+ "label": "Apariencia",
152
+ "description": "",
153
+ "items": [
154
+ {
155
+ "type": "select-input",
156
+ "id": "orientation",
157
+ "required": true,
158
+ "label": "Orientación",
159
+ "defaultValue": "h",
160
+ "items": [
161
+ {
162
+ "label": "Horizontal",
163
+ "value": "h"
164
+ },
165
+ {
166
+ "label": "Vertical",
167
+ "value": "v"
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "type": "label",
173
+ "label": "Animación"
174
+ },
175
+ {
176
+ "type": "select-input",
177
+ "id": "animationMode",
178
+ "label": "Modo",
179
+ "items": [
180
+ {
181
+ "label": "Fundido",
182
+ "value": "fade"
183
+ },
184
+ {
185
+ "label": "Izquierda-derecha",
186
+ "value": "slideRight"
187
+ },
188
+ {
189
+ "label": "Derecha-izquierda",
190
+ "value": "slideLeft"
191
+ }
192
+ ],
193
+ "defaultValue": "fade"
194
+ },
195
+ {
196
+ "type": "number-input",
197
+ "id": "animationTime",
198
+ "label": "Tiempo",
199
+ "range":"[5:9999]",
200
+ "required": true,
201
+ "description": "Duracion de cada grupo de datos. En segundos."
202
+ },
203
+ {
204
+ "type": "select-input",
205
+ "id": "animationSpeed",
206
+ "label": "Velocidad",
207
+ "items": [
208
+ {
209
+ "label": "Lenta",
210
+ "value": 2
211
+ },
212
+ {
213
+ "label": "Normal",
214
+ "value": 1.5
215
+ },
216
+ {
217
+ "label": "Rápida",
218
+ "value": 1
219
+ }
220
+ ],
221
+ "defaultValue": 1.5
222
+ },
223
+ {
224
+ "type": "switch",
225
+ "id": "animationOrder",
226
+ "label": "Orden",
227
+ "displayOnTrue": "Invertido",
228
+ "displayOnFalse": "Normal",
229
+ "defaultValue": false
230
+ },
231
+ {
232
+ "type": "label",
233
+ "label": "Contenedor"
234
+ },
235
+ {
236
+ "type": "number-input",
237
+ "id": "containerColumns",
238
+ "label": "Columnas",
239
+ "description": "Cantidad de items horizontales.",
240
+ "range": "[1:999]"
241
+ },
242
+ {
243
+ "type": "number-input",
244
+ "id": "containerColumnsGap",
245
+ "label": "Separador horizontal",
246
+ "description": "Espacio entre columnas en porcentaje.",
247
+ "range": "[0:100]"
248
+ },
249
+ {
250
+ "type": "number-input",
251
+ "id": "containerRows",
252
+ "label": "Filas",
253
+ "description": "Cantidad de items verticales.",
254
+ "range": "[1:999]"
255
+ },
256
+ {
257
+ "type": "number-input",
258
+ "id": "containerRowsGap",
259
+ "label": "Separador vertical",
260
+ "description": "Espacio entre filas en porcentaje.",
261
+ "range": "[0:100]"
262
+ },
263
+ {
264
+ "type": "label",
265
+ "label": "Avanzado"
266
+ },
267
+ {
268
+ "id": "backgroundImage",
269
+ "type": "select-asset-kna-input",
270
+ "required": false,
271
+ "label": "Fondo",
272
+ "extensions": [
273
+ "jpg",
274
+ "png"
275
+ ]
276
+ },
277
+ {
278
+ "id": "padding",
279
+ "type": "text-input",
280
+ "required": false,
281
+ "label": "Márgenes",
282
+ "description": "CSS para dar espacio arriba/derecha/abajo/izquieda."
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "id": "standardGroup",
288
+ "type": "group",
289
+ "label": "Estilo",
290
+ "description": "",
291
+ "items": [
292
+ {
293
+ "type": "label",
294
+ "label": "Textos"
295
+ },
296
+ {
297
+ "type": "select-input",
298
+ "id": "textPosition",
299
+ "label": "Posición",
300
+ "items": [
301
+ {
302
+ "label": "Inicio",
303
+ "value": 1
304
+ },
305
+ {
306
+ "label": "Centro",
307
+ "value": 2
308
+ },
309
+ {
310
+ "label": "Final",
311
+ "value": 3
312
+ }
313
+ ],
314
+ "defaultValue": 2
315
+ },
316
+ {
317
+ "type": "select-input",
318
+ "id": "textAlignment",
319
+ "label": "Alineacion",
320
+ "items": [
321
+ {
322
+ "label": "Inicio",
323
+ "value": "start"
324
+ },
325
+ {
326
+ "label": "Centro",
327
+ "value": "center"
328
+ },
329
+ {
330
+ "label": "Final",
331
+ "value": "end"
332
+ }
333
+ ],
334
+ "defaultValue": "center"
335
+ },
336
+ {
337
+ "type": "text-format",
338
+ "id": "nameFormat",
339
+ "label": "Formato"
340
+ },
341
+ {
342
+ "type": "number-input",
343
+ "id": "nameMaxChar",
344
+ "label": "Caracteres máximos"
345
+ },
346
+ {
347
+ "type": "number-input",
348
+ "id": "textMargin",
349
+ "label": "Margen",
350
+ "description": "Margen derecho de los textos en porcentaje. Por defecto 4%"
351
+ },
352
+ {
353
+ "type": "switch",
354
+ "id": "descriptionEnabled",
355
+ "label": "Descripción",
356
+ "defaultValue": true
357
+ },
358
+ {
359
+ "type": "text-format",
360
+ "id": "descriptionFormat",
361
+ "label": "Formato",
362
+ "show": "{{descriptionEnabled}} === true"
363
+ },
364
+ {
365
+ "type": "number-input",
366
+ "id": "descriptionMaxChar",
367
+ "label": "Caracteres máximos",
368
+ "show": "{{descriptionEnabled}} === true"
369
+ },
370
+ {
371
+ "type": "label",
372
+ "label": "Fotografía"
373
+ },
374
+ {
375
+ "type": "switch",
376
+ "id": "imageEnabled",
377
+ "label": "Habilitada",
378
+ "defaultValue": true
379
+ },
380
+ {
381
+ "type": "select-input",
382
+ "id": "imagePosition",
383
+ "label": "Posición",
384
+ "items": [
385
+ {
386
+ "label": "Inicio",
387
+ "value": 1
388
+ },
389
+ {
390
+ "label": "Centro",
391
+ "value": 2
392
+ },
393
+ {
394
+ "label": "Final",
395
+ "value": 3
396
+ }
397
+ ],
398
+ "defaultValue": 1,
399
+ "show": "{{imageEnabled}} === true"
400
+ },
401
+ {
402
+ "type": "select-input",
403
+ "id": "imageAlignment",
404
+ "label": "Alineacion",
405
+ "items": [
406
+ {
407
+ "label": "Inicio",
408
+ "value": "start"
409
+ },
410
+ {
411
+ "label": "Centro",
412
+ "value": "center"
413
+ },
414
+ {
415
+ "label": "Final",
416
+ "value": "end"
417
+ }
418
+ ],
419
+ "defaultValue": "center",
420
+ "show": "{{imageEnabled}} === true"
421
+ },
422
+ {
423
+ "id": "imageStyle",
424
+ "type": "select-input",
425
+ "required": true,
426
+ "label": "Estilo",
427
+ "description": "Forma de enmarcar la fotografía.",
428
+ "defaultValue": "normal",
429
+ "items": [
430
+ {
431
+ "label": "Normal",
432
+ "value": "normal"
433
+ },
434
+ {
435
+ "label": "Redondeado",
436
+ "value": "rounded"
437
+ },
438
+ {
439
+ "label": "Círculo",
440
+ "value": "circle"
441
+ }
442
+ ],
443
+ "show": "{{imageEnabled}} === true"
444
+ },
445
+ {
446
+ "type": "number-input",
447
+ "id": "imageMargin",
448
+ "label": "Margen",
449
+ "description": "Margen derecho de la imagen en porcentaje. Por defecto 4%",
450
+ "show": "{{imageEnabled}} === true"
451
+ },
452
+ {
453
+ "type": "number-input",
454
+ "id": "imageSize",
455
+ "range": "[1:100]",
456
+ "label": "Tamaño",
457
+ "description": "Tamaño de la imagen en porcentaje.",
458
+ "show": "{{imageEnabled}} === true"
459
+ },
460
+ {
461
+ "type": "label",
462
+ "label": "Fecha"
463
+ },
464
+ {
465
+ "type": "switch",
466
+ "id": "dateEnabled",
467
+ "label": "Habilitada",
468
+ "defaultValue": true
469
+ },
470
+ {
471
+ "type": "select-input",
472
+ "id": "datePosition",
473
+ "label": "Posición",
474
+ "items": [
475
+ {
476
+ "label": "Inicio",
477
+ "value": 1
478
+ },
479
+ {
480
+ "label": "Centro",
481
+ "value": 2
482
+ },
483
+ {
484
+ "label": "Final",
485
+ "value": 3
486
+ }
487
+ ],
488
+ "defaultValue": 3,
489
+ "show": "{{dateEnabled}} === true"
490
+ },
491
+ {
492
+ "type": "select-input",
493
+ "id": "dateAlignment",
494
+ "label": "Alineacion",
495
+ "items": [
496
+ {
497
+ "label": "Inicio",
498
+ "value": "start"
499
+ },
500
+ {
501
+ "label": "Centro",
502
+ "value": "center"
503
+ },
504
+ {
505
+ "label": "Final",
506
+ "value": "end"
507
+ }
508
+ ],
509
+ "defaultValue": "center",
510
+ "show": "{{dateEnabled}} === true"
511
+ },
512
+ {
513
+ "type": "select-input",
514
+ "id": "dateStyle",
515
+ "required": true,
516
+ "label": "Estilo",
517
+ "defaultValue": "calendarFlat",
518
+ "show": "{{dateEnabled}} === true",
519
+ "items": [
520
+ {
521
+ "label": "Calendario simple",
522
+ "value": "calendarFlat"
523
+ },
524
+ {
525
+ "label": "Calendario texto",
526
+ "value": "calendarText"
527
+ },
528
+ {
529
+ "label": "Circular",
530
+ "value": "circle"
531
+ },
532
+ {
533
+ "label": "Texto",
534
+ "value": "text"
535
+ },
536
+ {
537
+ "label": "Lineas",
538
+ "value": "outlines"
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ "type": "text-format",
544
+ "id": "dateDayFormat",
545
+ "label": "Formato del dia",
546
+ "show": "{{dateEnabled}} === true"
547
+ },
548
+ {
549
+ "type": "text-format",
550
+ "id": "dateMonthFormat",
551
+ "label": "Formato del mes",
552
+ "show": "{{dateEnabled}} === true"
553
+ },
554
+ {
555
+ "type": "switch",
556
+ "id": "abbreviatedMonths",
557
+ "label": "Meses abreviados",
558
+ "show": "({{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1)",
559
+ "defaultValue": false
560
+ },
561
+ {
562
+ "type": "color-picker",
563
+ "id": "datePrimaryColor",
564
+ "label": "Color primario",
565
+ "show": "({{dateEnabled}} === true && ['calendarFlat', 'circle', 'outlines'].indexOf({{dateStyle}}) !== -1)"
566
+ },
567
+ {
568
+ "type": "number-input",
569
+ "id": "dateMargin",
570
+ "label": "Margen",
571
+ "description": "Margen derecho de la fecha en porcentaje. Por defecto 4%",
572
+ "show": "{{dateEnabled}} === true"
573
+ },
574
+ {
575
+ "type": "label",
576
+ "label": "Separador"
577
+ },
578
+ {
579
+ "type": "switch",
580
+ "id": "separator",
581
+ "label": "Habilitado"
582
+ },
583
+ {
584
+ "type": "number-input",
585
+ "id": "separatorWidth",
586
+ "label": "Ancho",
587
+ "show": "{{separator}} === true"
588
+ },
589
+ {
590
+ "type": "color-picker",
591
+ "id": "separatorColor",
592
+ "label": "Color",
593
+ "show": "{{separator}} === true"
594
+ },
595
+ {
596
+ "type": "text-input",
597
+ "id": "itemMargins",
598
+ "label": "Margenes",
599
+ "description": "Un css de longitud de uno o dos valores",
600
+ "pattern": "^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$",
601
+ "show": "{{separator}} === true"
602
+ }
603
+ ]
604
+ }
605
+ ]
606
+ }
package/icon.png ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@vixoniccom/birthdays",
3
+ "alias": "Rex+ Cumpleaños",
4
+ "description": "Muestra cumpleaños de los miembros de su equipo enrolados en el sistema Rex+.",
5
+ "color": "#BDDDFF",
6
+ "tags": [],
7
+ "author": {
8
+ "name": ""
9
+ },
10
+ "version": "0.0.1-dev.0",
11
+ "scripts": {
12
+ "prepublish": "vixonic-module-packager --mode=build",
13
+ "watch": "vixonic-module-packager --mode=watch",
14
+ "run": "vixonic-module-packager --mode=run",
15
+ "release": "standard-version"
16
+ },
17
+ "dependencies": {
18
+ "animejs": "^2.0.2",
19
+ "jquery": "^3.1.1",
20
+ "localforage": "^1.4.3",
21
+ "lodash": "^4.17.4",
22
+ "moment": "^2.18.1",
23
+ "react": "^15.5.4",
24
+ "react-dom": "^15.5.4",
25
+ "request": "^2.79.0"
26
+ },
27
+ "devDependencies": {
28
+ "@vixoniccom/module-packager": "^2.4.2",
29
+ "standard-version": "^5.0.2"
30
+ }
31
+ }