@vixoniccom/birthdays 0.4.0 → 0.5.0-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/CHANGELOG.md +42 -1
- package/build.zip +0 -0
- package/configuration/appearanceGroup/AppearanceInputs.ts +100 -0
- package/configuration/appearanceGroup/index.ts +8 -0
- package/configuration/dataGroup/DataInputs.ts +71 -0
- package/configuration/dataGroup/index.ts +8 -0
- package/configuration/documentGroup/documentInputs.ts +6 -0
- package/configuration/documentGroup/index.ts +8 -0
- package/configuration/index.ts +9 -0
- package/configuration/standardGroup/index.ts +8 -0
- package/configuration/standardGroup/standardInputs.ts +211 -0
- package/configuration/utils.ts +13 -0
- package/configuration.json +634 -576
- package/package.json +17 -8
- package/tsconfig.json +28 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
+
## [0.5.0-dev.0](https://bitbucket.org/vixonic_dev/birthdays/compare/v0.5.0-beta.0...v0.5.0-dev.0) (2025-02-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add configuration folder ([49999bb](https://bitbucket.org/vixonic_dev/birthdays/commit/49999bbc9b2b3769897ca0223f82550ac9cf5062))
|
|
11
|
+
* migrate source code to typescript ([e6c51d4](https://bitbucket.org/vixonic_dev/birthdays/commit/e6c51d4fd56bfd92ea78bba421bde1164e9a10a4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* add logs ([221c3a6](https://bitbucket.org/vixonic_dev/birthdays/commit/221c3a69b91dd752ac38be1e8a8fa62b99649d82))
|
|
17
|
+
* change getData logic ([df9b623](https://bitbucket.org/vixonic_dev/birthdays/commit/df9b6233a517ce3ac19bfc644e5f3e6ab9e1efcc))
|
|
18
|
+
* change logic in some components ([114b390](https://bitbucket.org/vixonic_dev/birthdays/commit/114b390aad0719d9fc78c47b82bc1f183bc7c2b3))
|
|
19
|
+
* change logic of some components ([e0acff3](https://bitbucket.org/vixonic_dev/birthdays/commit/e0acff3c6abe4506eb9d1295591de7ccd623c185))
|
|
20
|
+
* change parameter id ([bc8d003](https://bitbucket.org/vixonic_dev/birthdays/commit/bc8d003aac865e20c5db20dcd7437f13cc4572fb))
|
|
21
|
+
* change variable in useEffect ([072fb43](https://bitbucket.org/vixonic_dev/birthdays/commit/072fb43f5b2e079ba02fadef30bd48154957cd57))
|
|
22
|
+
* changing files ([217aebf](https://bitbucket.org/vixonic_dev/birthdays/commit/217aebf58c719aee30c497333cf945fc9008976c))
|
|
23
|
+
* clear logic for requesting data ([3c3e55f](https://bitbucket.org/vixonic_dev/birthdays/commit/3c3e55fe76f9210d8f026a73c277e44edb9a3875))
|
|
24
|
+
* code was reordered ([6bc9c10](https://bitbucket.org/vixonic_dev/birthdays/commit/6bc9c10d9e1aa6859f6c3da69c7179dcf5dcd8d3))
|
|
25
|
+
* delete left js files ([6c0104f](https://bitbucket.org/vixonic_dev/birthdays/commit/6c0104ff47e2bdd352a03fa465df789f3b996d57))
|
|
26
|
+
* fixed duplicated nameMaxChar ID ([4948abf](https://bitbucket.org/vixonic_dev/birthdays/commit/4948abf5ad0d728fd08b3a75c4228eac012e2e09))
|
|
27
|
+
* fixed elements display ([f217e59](https://bitbucket.org/vixonic_dev/birthdays/commit/f217e59f69e082e975cab4b014fde8221dc0f85f))
|
|
28
|
+
* fixed problem with showing data ([45ec7ec](https://bitbucket.org/vixonic_dev/birthdays/commit/45ec7ecbe2d0bc260497b7a336ccdc31c941d9dd))
|
|
29
|
+
* lazy usestate was removed ([5e27862](https://bitbucket.org/vixonic_dev/birthdays/commit/5e278622d98d9f149304df092a0b95b9d6f88dfc))
|
|
30
|
+
* now shows date field ([4457162](https://bitbucket.org/vixonic_dev/birthdays/commit/445716281c6fe104f6e629356d45c1a5367147e5))
|
|
31
|
+
* refactor classicItem ([a90a2fd](https://bitbucket.org/vixonic_dev/birthdays/commit/a90a2fd936c39cc9e2b2ee93df5e07636631f80b))
|
|
32
|
+
* refactoring code (still issues) ([b407575](https://bitbucket.org/vixonic_dev/birthdays/commit/b4075758a1c128384dab6525d7159f9fd4ca1334))
|
|
33
|
+
* remove js files and fix logic issues ([f690f2a](https://bitbucket.org/vixonic_dev/birthdays/commit/f690f2af90ee9a8547c4c1d0be29e53b9924208d))
|
|
34
|
+
* separator component was corrected ([82f2a10](https://bitbucket.org/vixonic_dev/birthdays/commit/82f2a102258a9ce4de692961b2994cfa6b5f94c4))
|
|
35
|
+
* update dependencies versions and fix show parameter issue ([51c8a7d](https://bitbucket.org/vixonic_dev/birthdays/commit/51c8a7d91d7d858a799236b96496a9c699adb956))
|
|
36
|
+
|
|
37
|
+
# [0.5.0-beta.0](https://bitbucket.org/vixonic_dev/birthdays/compare/v0.4.0...v0.5.0-beta.0) (2025-01-30)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* add RedirectButton to configuration ([b7f1687](https://bitbucket.org/vixonic_dev/birthdays/commits/b7f1687))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
5
46
|
# [0.4.0](https://bitbucket.org/vixonic_dev/birthdays/compare/v0.4.0-beta.0...v0.4.0) (2024-10-01)
|
|
6
47
|
|
|
7
48
|
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Label,
|
|
3
|
+
NumberInput,
|
|
4
|
+
NumberRangeValue,
|
|
5
|
+
SelectAssetKna,
|
|
6
|
+
SelectInput,
|
|
7
|
+
Switch,
|
|
8
|
+
TextInput,
|
|
9
|
+
} from '@vixoniccom/modules'
|
|
10
|
+
|
|
11
|
+
export const appearanceInputs = [
|
|
12
|
+
new Label({ label: 'Orientación' }),
|
|
13
|
+
new SelectInput({
|
|
14
|
+
id: 'orientation',
|
|
15
|
+
required: true,
|
|
16
|
+
label: 'Orientación',
|
|
17
|
+
items: [
|
|
18
|
+
{ label: 'Horizontal', value: 'h' },
|
|
19
|
+
{ label: 'Vertical', value: 'v' },
|
|
20
|
+
],
|
|
21
|
+
defaultValue: 'h',
|
|
22
|
+
}),
|
|
23
|
+
|
|
24
|
+
new Label({ label: 'Animación' }),
|
|
25
|
+
new SelectInput({
|
|
26
|
+
id: 'animationMode',
|
|
27
|
+
required: true,
|
|
28
|
+
label: 'Tipo de animación',
|
|
29
|
+
items: [
|
|
30
|
+
{ label: 'Fundido', value: 'fade' },
|
|
31
|
+
{ label: 'Izquierda - derecha', value: 'slideRight' },
|
|
32
|
+
{ label: 'Derecha - izquierda', value: 'slideLeft' },
|
|
33
|
+
],
|
|
34
|
+
defaultValue: 'fade',
|
|
35
|
+
}),
|
|
36
|
+
new SelectInput({
|
|
37
|
+
id: 'animationSpeed',
|
|
38
|
+
label: 'Velocidad',
|
|
39
|
+
items: [
|
|
40
|
+
{ label: 'Lenta', value: 2 },
|
|
41
|
+
{ label: 'Normal', value: 1.5 },
|
|
42
|
+
{ label: 'Rápida', value: 1 },
|
|
43
|
+
],
|
|
44
|
+
defaultValue: 1.5,
|
|
45
|
+
}),
|
|
46
|
+
new NumberInput({
|
|
47
|
+
id: 'animationTime',
|
|
48
|
+
label: 'Tiempo',
|
|
49
|
+
description: 'Duracion de cada grupo de datos (en segundos)',
|
|
50
|
+
required: true,
|
|
51
|
+
range: new NumberRangeValue(1, 9999),
|
|
52
|
+
}),
|
|
53
|
+
new Switch({
|
|
54
|
+
id: 'animationOrder',
|
|
55
|
+
label: 'Orden',
|
|
56
|
+
displayOnTrue: 'Invertido',
|
|
57
|
+
displayOnFalse: 'Normal',
|
|
58
|
+
defaultValue: false,
|
|
59
|
+
}),
|
|
60
|
+
|
|
61
|
+
new Label({ label: 'Contenedor' }),
|
|
62
|
+
new NumberInput({
|
|
63
|
+
id: 'containerColumns',
|
|
64
|
+
label: 'Columnas',
|
|
65
|
+
description: 'Cantidad de items horizontales',
|
|
66
|
+
range: new NumberRangeValue(1, 999),
|
|
67
|
+
}),
|
|
68
|
+
new NumberInput({
|
|
69
|
+
id: 'containerColumnsGap',
|
|
70
|
+
label: 'Separador horizontal',
|
|
71
|
+
description: 'Espacio entre columnas (en porcentaje)',
|
|
72
|
+
range: new NumberRangeValue(1, 100),
|
|
73
|
+
}),
|
|
74
|
+
new NumberInput({
|
|
75
|
+
id: 'containerRows',
|
|
76
|
+
label: 'Filas',
|
|
77
|
+
description: 'Cantidad de items verticales',
|
|
78
|
+
range: new NumberRangeValue(1, 999),
|
|
79
|
+
}),
|
|
80
|
+
new NumberInput({
|
|
81
|
+
id: 'containerRowsGap',
|
|
82
|
+
label: 'Separador horizontal',
|
|
83
|
+
description: 'Espacio entre filas (en porcentaje)',
|
|
84
|
+
range: new NumberRangeValue(1, 100),
|
|
85
|
+
}),
|
|
86
|
+
|
|
87
|
+
new Label({ label: 'Avanzado' }),
|
|
88
|
+
new SelectAssetKna({
|
|
89
|
+
id: 'backgroundImage',
|
|
90
|
+
label: 'Fondo',
|
|
91
|
+
required: false,
|
|
92
|
+
extensions: ['jpg', 'png'],
|
|
93
|
+
}),
|
|
94
|
+
new TextInput({
|
|
95
|
+
id: 'padding',
|
|
96
|
+
required: false,
|
|
97
|
+
label: 'Márgenes',
|
|
98
|
+
description: 'CSS para dar espacio arriba/derecha/abajo/izquieda',
|
|
99
|
+
}),
|
|
100
|
+
]
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Label, SelectAssetKna, SelectInput, Switch, TextFormat, TextInput } from '@vixoniccom/modules'
|
|
2
|
+
import { ShowValidations } from '../utils'
|
|
3
|
+
|
|
4
|
+
export const dataInputs = [
|
|
5
|
+
new Label({ label: 'Datos' }),
|
|
6
|
+
new TextInput({
|
|
7
|
+
id: 'url',
|
|
8
|
+
required: true,
|
|
9
|
+
label: 'Fuente',
|
|
10
|
+
description: 'Ubicación de los datos',
|
|
11
|
+
}),
|
|
12
|
+
new SelectInput({
|
|
13
|
+
id: 'photosMode',
|
|
14
|
+
label: 'Modo de fotos',
|
|
15
|
+
items: [
|
|
16
|
+
{ label: 'Zip', value: 'zip' },
|
|
17
|
+
{ label: 'En línea', value: 'online' },
|
|
18
|
+
],
|
|
19
|
+
defaultValue: 'online',
|
|
20
|
+
}),
|
|
21
|
+
new TextInput({
|
|
22
|
+
id: 'photosUrl',
|
|
23
|
+
label: 'Fotos',
|
|
24
|
+
description: 'Ubicación donde se encuentran las fotos',
|
|
25
|
+
required: false,
|
|
26
|
+
show: ShowValidations.onlinePhotos,
|
|
27
|
+
}),
|
|
28
|
+
new SelectAssetKna({
|
|
29
|
+
id: 'photosZip',
|
|
30
|
+
label: 'Archivo Zip',
|
|
31
|
+
extensions: ['zip'],
|
|
32
|
+
show: ShowValidations.zipPhotos,
|
|
33
|
+
}),
|
|
34
|
+
new SelectInput({
|
|
35
|
+
id: 'updateTime',
|
|
36
|
+
label: 'Actualización',
|
|
37
|
+
items: [
|
|
38
|
+
{ label: '10 minutos', value: 600000 },
|
|
39
|
+
{ label: '30 minutos', value: 1800000 },
|
|
40
|
+
{ label: '1 hora', value: 3600000 },
|
|
41
|
+
{ label: '6 horas', value: 21600000 },
|
|
42
|
+
{ label: '12 horas', value: 43200000 },
|
|
43
|
+
{ label: 'Diario', value: 86400000 },
|
|
44
|
+
{ label: 'Semanal', value: 604800000 },
|
|
45
|
+
],
|
|
46
|
+
defaultValue: 86400000,
|
|
47
|
+
}),
|
|
48
|
+
|
|
49
|
+
new Label({ label: 'Funcionamiento' }),
|
|
50
|
+
new SelectInput({
|
|
51
|
+
id: 'dataMode',
|
|
52
|
+
label: 'Modo',
|
|
53
|
+
items: [
|
|
54
|
+
{ label: 'Diario', value: 'daily' },
|
|
55
|
+
{ label: 'Semanal', value: 'weekly' },
|
|
56
|
+
{ label: 'Mensual', value: 'monthly' },
|
|
57
|
+
{ label: 'Anual', value: 'yearly' },
|
|
58
|
+
],
|
|
59
|
+
defaultValue: 'monthly',
|
|
60
|
+
}),
|
|
61
|
+
new Switch({
|
|
62
|
+
id: 'excludePast',
|
|
63
|
+
label: 'Filtrar cumpleaños pasados',
|
|
64
|
+
displayOnTrue: 'Los cumpleaños ya pasados no seran mostrados',
|
|
65
|
+
displayOnFalse: 'Se siguen mostrando los cumpleaños pasados',
|
|
66
|
+
defaultValue: true,
|
|
67
|
+
}),
|
|
68
|
+
|
|
69
|
+
new TextInput({ id: 'msj0', label: 'Sin cumpleaños' }),
|
|
70
|
+
new TextFormat({ id: 'formatMjs', label: 'Formato Mensaje sin cumpleaños' }),
|
|
71
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Configuration } from '@vixoniccom/modules'
|
|
2
|
+
import { dataGroup } from './dataGroup'
|
|
3
|
+
import { appearanceGroup } from './appearanceGroup'
|
|
4
|
+
import { documentGroup } from './documentGroup'
|
|
5
|
+
import { standardGroup } from './standardGroup'
|
|
6
|
+
|
|
7
|
+
export const configuration = new Configuration({
|
|
8
|
+
schema: [documentGroup, dataGroup, appearanceGroup, standardGroup],
|
|
9
|
+
})
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ColorPicker,
|
|
3
|
+
Label,
|
|
4
|
+
NumberInput,
|
|
5
|
+
NumberRangeValue,
|
|
6
|
+
SelectInput,
|
|
7
|
+
Switch,
|
|
8
|
+
TextFormat,
|
|
9
|
+
TextInput,
|
|
10
|
+
} from '@vixoniccom/modules'
|
|
11
|
+
import { ShowValidations } from '../utils'
|
|
12
|
+
|
|
13
|
+
export const standardInputs = [
|
|
14
|
+
new Label({ label: 'Textos' }),
|
|
15
|
+
new SelectInput({
|
|
16
|
+
id: 'textPosition',
|
|
17
|
+
label: 'Posición',
|
|
18
|
+
items: [
|
|
19
|
+
{ label: 'Inicio', value: 1 },
|
|
20
|
+
{ label: 'Centro', value: 2 },
|
|
21
|
+
{ label: 'Final', value: 3 },
|
|
22
|
+
],
|
|
23
|
+
defaultValue: 2,
|
|
24
|
+
}),
|
|
25
|
+
new SelectInput({
|
|
26
|
+
id: 'textAlignment',
|
|
27
|
+
label: 'Alineación',
|
|
28
|
+
items: [
|
|
29
|
+
{ label: 'Inicio', value: 'start' },
|
|
30
|
+
{ label: 'Centro', value: 'center' },
|
|
31
|
+
{ label: 'Final', value: 'end' },
|
|
32
|
+
],
|
|
33
|
+
defaultValue: 'center',
|
|
34
|
+
}),
|
|
35
|
+
|
|
36
|
+
new Label({ label: 'Nombre' }),
|
|
37
|
+
new TextFormat({ id: 'nameFormat', label: 'Formato' }),
|
|
38
|
+
new NumberInput({ id: 'nameMaxChar', label: 'Caracteres máximos' }),
|
|
39
|
+
new TextInput({
|
|
40
|
+
id: 'textMargin',
|
|
41
|
+
label: 'Margen',
|
|
42
|
+
description: 'Margen derecho de los textos (en porcentaje). Por defecto 4%',
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
new Switch({
|
|
46
|
+
id: 'descriptionEnabled',
|
|
47
|
+
label: 'Habilitar descripción',
|
|
48
|
+
displayOnTrue: 'Descripción habilitada',
|
|
49
|
+
displayOnFalse: 'Descripción deshabilitada',
|
|
50
|
+
defaultValue: true,
|
|
51
|
+
}),
|
|
52
|
+
|
|
53
|
+
new Label({ label: 'Descripción', show: ShowValidations.descriptionEnabled }),
|
|
54
|
+
new TextFormat({ id: 'descriptionFormat', label: 'Formato', show: ShowValidations.descriptionEnabled }),
|
|
55
|
+
new NumberInput({ id: 'descriptionMaxChar', label: 'Caracteres máximos', show: ShowValidations.descriptionEnabled }),
|
|
56
|
+
|
|
57
|
+
new Switch({
|
|
58
|
+
id: 'optionalEnabled',
|
|
59
|
+
label: 'Habilitar campo opcional',
|
|
60
|
+
displayOnTrue: 'Campo opcional habilitado',
|
|
61
|
+
displayOnFalse: 'Campo opcional deshabilitado',
|
|
62
|
+
defaultValue: true,
|
|
63
|
+
}),
|
|
64
|
+
|
|
65
|
+
new Label({ label: 'Campo opcional', show: ShowValidations.optionalEnabled }),
|
|
66
|
+
new TextFormat({ id: 'optionalFormat', label: 'Formato', show: ShowValidations.optionalEnabled }),
|
|
67
|
+
|
|
68
|
+
new Label({ label: 'Fotografía' }),
|
|
69
|
+
|
|
70
|
+
new Label({ label: 'Imagen' }),
|
|
71
|
+
new Switch({
|
|
72
|
+
id: 'imageEnabled',
|
|
73
|
+
label: 'Habilitar imagen',
|
|
74
|
+
displayOnTrue: 'Imagen habilitada',
|
|
75
|
+
displayOnFalse: 'Imagen deshabilitada',
|
|
76
|
+
defaultValue: true,
|
|
77
|
+
}),
|
|
78
|
+
new SelectInput({
|
|
79
|
+
id: 'imagePosition',
|
|
80
|
+
label: 'Posición',
|
|
81
|
+
items: [
|
|
82
|
+
{ label: 'Inicio', value: 1 },
|
|
83
|
+
{ label: 'Centro', value: 2 },
|
|
84
|
+
{ label: 'Final', value: 3 },
|
|
85
|
+
],
|
|
86
|
+
defaultValue: 2,
|
|
87
|
+
show: ShowValidations.imageEnabled,
|
|
88
|
+
}),
|
|
89
|
+
new SelectInput({
|
|
90
|
+
id: 'imageAlignment',
|
|
91
|
+
label: 'Alineación',
|
|
92
|
+
items: [
|
|
93
|
+
{ label: 'Inicio', value: 'start' },
|
|
94
|
+
{ label: 'Centro', value: 'center' },
|
|
95
|
+
{ label: 'Final', value: 'end' },
|
|
96
|
+
],
|
|
97
|
+
defaultValue: 'center',
|
|
98
|
+
show: ShowValidations.imageEnabled,
|
|
99
|
+
}),
|
|
100
|
+
new SelectInput({
|
|
101
|
+
id: 'imageStyle',
|
|
102
|
+
label: 'Estilo',
|
|
103
|
+
description: 'Forma de enmarcar la fotografía',
|
|
104
|
+
required: true,
|
|
105
|
+
items: [
|
|
106
|
+
{ label: 'Normal', value: 'normal' },
|
|
107
|
+
{ label: 'Redondeado', value: 'rounded' },
|
|
108
|
+
{ label: 'Círculo', value: 'circle' },
|
|
109
|
+
],
|
|
110
|
+
defaultValue: 'normal',
|
|
111
|
+
show: ShowValidations.imageEnabled,
|
|
112
|
+
}),
|
|
113
|
+
new TextInput({
|
|
114
|
+
id: 'imageMargin',
|
|
115
|
+
label: 'Margen',
|
|
116
|
+
description: 'Margen derecho de la imagen (en porcentaje). Por defecto 4%',
|
|
117
|
+
show: ShowValidations.imageEnabled,
|
|
118
|
+
}),
|
|
119
|
+
new NumberInput({
|
|
120
|
+
id: 'imageSize',
|
|
121
|
+
label: 'Tamaño',
|
|
122
|
+
description: 'Tamaño de la imagen (en porcentaje)',
|
|
123
|
+
range: new NumberRangeValue(1, 100),
|
|
124
|
+
show: ShowValidations.imageEnabled,
|
|
125
|
+
}),
|
|
126
|
+
|
|
127
|
+
new Label({ label: 'Fecha' }),
|
|
128
|
+
new Switch({
|
|
129
|
+
id: 'dateEnabled',
|
|
130
|
+
label: 'Habilitar fecha',
|
|
131
|
+
displayOnTrue: 'Fecha habilitada',
|
|
132
|
+
displayOnFalse: 'Fecha deshabilitada',
|
|
133
|
+
defaultValue: true,
|
|
134
|
+
}),
|
|
135
|
+
new SelectInput({
|
|
136
|
+
id: 'datePosition',
|
|
137
|
+
label: 'Posición',
|
|
138
|
+
items: [
|
|
139
|
+
{ label: 'Inicio', value: 1 },
|
|
140
|
+
{ label: 'Centro', value: 2 },
|
|
141
|
+
{ label: 'Final', value: 3 },
|
|
142
|
+
],
|
|
143
|
+
defaultValue: 3,
|
|
144
|
+
show: ShowValidations.dateEnabled,
|
|
145
|
+
}),
|
|
146
|
+
new SelectInput({
|
|
147
|
+
id: 'dateAlignment',
|
|
148
|
+
label: 'Alineación',
|
|
149
|
+
items: [
|
|
150
|
+
{ label: 'Inicio', value: 'start' },
|
|
151
|
+
{ label: 'Centro', value: 'center' },
|
|
152
|
+
{ label: 'Final', value: 'end' },
|
|
153
|
+
],
|
|
154
|
+
defaultValue: 'center',
|
|
155
|
+
show: ShowValidations.dateEnabled,
|
|
156
|
+
}),
|
|
157
|
+
new SelectInput({
|
|
158
|
+
id: 'dateStyle',
|
|
159
|
+
label: 'Estilo',
|
|
160
|
+
description: 'Forma de enmarcar la fotografía',
|
|
161
|
+
required: true,
|
|
162
|
+
items: [
|
|
163
|
+
{ label: 'Calendario simple', value: 'calendarFlat' },
|
|
164
|
+
{ label: 'Calendario texto', value: 'calendarText' },
|
|
165
|
+
{ label: 'Circular', value: 'circle' },
|
|
166
|
+
{ label: 'Texto', value: 'text' },
|
|
167
|
+
{ label: 'Líneas', value: 'outlines' },
|
|
168
|
+
],
|
|
169
|
+
defaultValue: 'calendarFlat',
|
|
170
|
+
show: ShowValidations.dateEnabled,
|
|
171
|
+
}),
|
|
172
|
+
new TextFormat({ id: 'dateDayFormat', label: 'Formato del día', show: ShowValidations.dateEnabled }),
|
|
173
|
+
new TextFormat({ id: 'dateMonthFormat', label: 'Formato del mes', show: ShowValidations.dateEnabled }),
|
|
174
|
+
new Switch({
|
|
175
|
+
id: 'abbreviatedMonths',
|
|
176
|
+
label: 'Meses abreviados',
|
|
177
|
+
displayOnTrue: 'Meses abreviados',
|
|
178
|
+
displayOnFalse: 'Meses no abreviados',
|
|
179
|
+
defaultValue: false,
|
|
180
|
+
show: ShowValidations.abbreviatedMonthsCondition,
|
|
181
|
+
}),
|
|
182
|
+
new ColorPicker({
|
|
183
|
+
id: 'datePrimaryColor',
|
|
184
|
+
label: 'Color primario',
|
|
185
|
+
show: ShowValidations.dateColorCondition,
|
|
186
|
+
}),
|
|
187
|
+
new TextInput({
|
|
188
|
+
id: 'dateMargin',
|
|
189
|
+
label: 'Margen',
|
|
190
|
+
description: 'Margen derecho de la fecha (en porcentaje). Por defecto 4%',
|
|
191
|
+
show: ShowValidations.dateEnabled,
|
|
192
|
+
}),
|
|
193
|
+
|
|
194
|
+
new Label({ label: 'Separador' }),
|
|
195
|
+
new Switch({
|
|
196
|
+
id: 'separator',
|
|
197
|
+
label: 'Habilitar Separador',
|
|
198
|
+
displayOnTrue: 'Separador habilitado',
|
|
199
|
+
displayOnFalse: 'Separador deshabilitado',
|
|
200
|
+
defaultValue: true,
|
|
201
|
+
}),
|
|
202
|
+
new NumberInput({ id: 'separatorWidth', label: 'Ancho', show: ShowValidations.separatorEnabled }),
|
|
203
|
+
new ColorPicker({ id: 'separatorColor', label: 'Color', show: ShowValidations.separatorEnabled }),
|
|
204
|
+
new TextInput({
|
|
205
|
+
id: 'itemMargins',
|
|
206
|
+
label: 'Márgenes',
|
|
207
|
+
description: 'Un css de longitud de uno o dos valores',
|
|
208
|
+
pattern: '^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$',
|
|
209
|
+
show: ShowValidations.separatorEnabled,
|
|
210
|
+
}),
|
|
211
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const ShowValidations = {
|
|
2
|
+
onlinePhotos: "{{photosMode}} === 'online'",
|
|
3
|
+
zipPhotos: "{{photosMode}} === 'zip'",
|
|
4
|
+
descriptionEnabled: '{{descriptionEnabled}} === true',
|
|
5
|
+
optionalEnabled: '{{optionalEnabled}} === true',
|
|
6
|
+
imageEnabled: '{{imageEnabled}} === true',
|
|
7
|
+
dateEnabled: '{{dateEnabled}} === true',
|
|
8
|
+
abbreviatedMonthsCondition:
|
|
9
|
+
"{{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1",
|
|
10
|
+
dateColorCondition:
|
|
11
|
+
"({{dateEnabled}} === true && ['calendarFlat', 'circle', 'outlines'].indexOf({{dateStyle}}) !== -1)",
|
|
12
|
+
separatorEnabled: '{{separator}} === true',
|
|
13
|
+
}
|