@vixoniccom/birthdays 0.7.13-dev.1 → 0.7.13-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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.7.13-dev.2](https://github.com/Vixonic/store-birthdays/compare/v0.7.13-dev.1...v0.7.13-dev.2) (2026-06-17)
6
+
5
7
  ### [0.7.13-dev.1](https://github.com/Vixonic/store-birthdays/compare/v0.7.13-dev.0...v0.7.13-dev.1) (2026-06-17)
6
8
 
7
9
  ### [0.7.13-dev.0](https://github.com/Vixonic/store-birthdays/compare/v0.7.8...v0.7.13-dev.0) (2026-06-17)
package/build.zip CHANGED
Binary file
@@ -7,6 +7,7 @@ import {
7
7
  Switch,
8
8
  TextInput,
9
9
  } from '@vixoniccom/modules'
10
+ import { ShowValidations } from '../utils'
10
11
 
11
12
  export const appearanceInputs = [
12
13
  new Label({ label: 'Tema predefinido' }),
@@ -21,7 +22,7 @@ export const appearanceInputs = [
21
22
  { label: 'Preset 3', value: 'preset3' },
22
23
  ],
23
24
  }),
24
- new Label({ label: 'Orientación' }),
25
+ new Label({ label: 'Orientación', show: ShowValidations.personalizado }),
25
26
  new SelectInput({
26
27
  id: 'orientation',
27
28
  required: true,
@@ -31,9 +32,10 @@ export const appearanceInputs = [
31
32
  { label: 'Vertical', value: 'v' },
32
33
  ],
33
34
  defaultValue: 'h',
35
+ show: ShowValidations.personalizado,
34
36
  }),
35
37
 
36
- new Label({ label: 'Animación' }),
38
+ new Label({ label: 'Animación', show: ShowValidations.personalizado }),
37
39
  new SelectInput({
38
40
  id: 'animationMode',
39
41
  required: true,
@@ -44,7 +46,8 @@ export const appearanceInputs = [
44
46
  { label: 'Derecha - izquierda', value: 'slideLeft' },
45
47
  ],
46
48
  defaultValue: 'fade',
47
- description: 'Por defecto, Fundido.'
49
+ description: 'Por defecto, Fundido.',
50
+ show: ShowValidations.personalizado,
48
51
  }),
49
52
  new SelectInput({
50
53
  id: 'animationSpeed',
@@ -55,6 +58,7 @@ export const appearanceInputs = [
55
58
  { label: 'Rápida', value: 1 },
56
59
  ],
57
60
  defaultValue: 1.5,
61
+ show: ShowValidations.personalizado,
58
62
  }),
59
63
  new NumberInput({
60
64
  id: 'animationTime',
@@ -62,32 +66,37 @@ export const appearanceInputs = [
62
66
  description: 'Duración de cada grupo de datos (en segundos).',
63
67
  required: true,
64
68
  range: new NumberRangeValue(1, 9999),
69
+ show: ShowValidations.personalizado,
65
70
  }),
66
71
 
67
- new Label({ label: 'Contenedor' }),
72
+ new Label({ label: 'Contenedor', show: ShowValidations.personalizado }),
68
73
  new NumberInput({
69
74
  id: 'containerColumns',
70
75
  label: 'Columnas',
71
76
  description: 'Cantidad de items horizontales. Por defecto, 1.',
72
77
  range: new NumberRangeValue(1, 999),
78
+ show: ShowValidations.personalizado,
73
79
  }),
74
80
  new NumberInput({
75
81
  id: 'containerColumnsGap',
76
82
  label: 'Separador horizontal',
77
83
  description: 'Espacio entre columnas (en porcentaje). Por defecto, 1%.',
78
84
  range: new NumberRangeValue(1, 100),
85
+ show: ShowValidations.personalizado,
79
86
  }),
80
87
  new NumberInput({
81
88
  id: 'containerRows',
82
89
  label: 'Filas',
83
90
  description: 'Cantidad de items verticales. Por defecto, 3.',
84
91
  range: new NumberRangeValue(1, 999),
92
+ show: ShowValidations.personalizado,
85
93
  }),
86
94
  new NumberInput({
87
95
  id: 'containerRowsGap',
88
96
  label: 'Separador vertical',
89
97
  description: 'Espacio entre filas (en porcentaje). Por defecto, 5%.',
90
98
  range: new NumberRangeValue(1, 100),
99
+ show: ShowValidations.personalizado,
91
100
  }),
92
101
 
93
102
  new Label({ label: 'Avanzado' }),
@@ -102,6 +111,7 @@ export const appearanceInputs = [
102
111
  required: false,
103
112
  label: 'Márgenes',
104
113
  description: 'CSS para dar espacio arriba/derecha/abajo/izquieda.',
114
+ show: ShowValidations.personalizado,
105
115
  }),
106
116
 
107
117
  new Label({ label: 'Visualizador de error' }),
@@ -10,8 +10,19 @@ import {
10
10
  } from '@vixoniccom/modules'
11
11
  import { ShowValidations } from '../utils'
12
12
 
13
+ const {
14
+ personalizado,
15
+ descriptionEnabled,
16
+ optionalEnabled,
17
+ imageEnabled,
18
+ dateEnabled,
19
+ abbreviatedMonthsCondition,
20
+ dateColorCondition,
21
+ separatorEnabled,
22
+ } = ShowValidations
23
+
13
24
  export const standardInputs = [
14
- new Label({ label: 'Textos' }),
25
+ new Label({ label: 'Textos', show: personalizado }),
15
26
  new SelectInput({
16
27
  id: 'textPosition',
17
28
  label: 'Posición',
@@ -21,6 +32,7 @@ export const standardInputs = [
21
32
  { label: 'Final', value: 3 },
22
33
  ],
23
34
  defaultValue: 2,
35
+ show: personalizado,
24
36
  }),
25
37
  new SelectInput({
26
38
  id: 'textAlignment',
@@ -31,15 +43,17 @@ export const standardInputs = [
31
43
  { label: 'Final', value: 'end' },
32
44
  ],
33
45
  defaultValue: 'center',
46
+ show: personalizado,
34
47
  }),
35
48
 
36
- new Label({ label: 'Nombre' }),
37
- new TextFormat({ id: 'nameFormat', label: 'Formato' }),
38
- new NumberInput({ id: 'nameMaxChar', label: 'Caracteres máximos' }),
49
+ new Label({ label: 'Nombre', show: personalizado }),
50
+ new TextFormat({ id: 'nameFormat', label: 'Formato', show: personalizado }),
51
+ new NumberInput({ id: 'nameMaxChar', label: 'Caracteres máximos', show: personalizado }),
39
52
  new TextInput({
40
53
  id: 'textMargin',
41
54
  label: 'Margen',
42
55
  description: 'Margen derecho de los textos (en porcentaje). Por defecto 0%.',
56
+ show: personalizado,
43
57
  }),
44
58
 
45
59
  new Switch({
@@ -48,11 +62,12 @@ export const standardInputs = [
48
62
  displayOnTrue: 'habilitada',
49
63
  displayOnFalse: 'deshabilitada',
50
64
  defaultValue: true,
65
+ show: personalizado,
51
66
  }),
52
67
 
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 }),
68
+ new Label({ label: 'Descripción', show: `${personalizado} && ${descriptionEnabled}` }),
69
+ new TextFormat({ id: 'descriptionFormat', label: 'Formato', show: `${personalizado} && ${descriptionEnabled}` }),
70
+ new NumberInput({ id: 'descriptionMaxChar', label: 'Caracteres máximos', show: `${personalizado} && ${descriptionEnabled}` }),
56
71
 
57
72
  new Switch({
58
73
  id: 'optionalEnabled',
@@ -60,20 +75,22 @@ export const standardInputs = [
60
75
  displayOnTrue: 'habilitado',
61
76
  displayOnFalse: 'deshabilitado',
62
77
  defaultValue: true,
78
+ show: personalizado,
63
79
  }),
64
80
 
65
- new Label({ label: 'Campo opcional', show: ShowValidations.optionalEnabled }),
66
- new TextFormat({ id: 'optionalFormat', label: 'Formato', show: ShowValidations.optionalEnabled }),
81
+ new Label({ label: 'Campo opcional', show: `${personalizado} && ${optionalEnabled}` }),
82
+ new TextFormat({ id: 'optionalFormat', label: 'Formato', show: `${personalizado} && ${optionalEnabled}` }),
67
83
 
68
- new Label({ label: 'Fotografía' }),
84
+ new Label({ label: 'Fotografía', show: personalizado }),
69
85
 
70
- new Label({ label: 'Imagen' }),
86
+ new Label({ label: 'Imagen', show: personalizado }),
71
87
  new Switch({
72
88
  id: 'imageEnabled',
73
89
  label: 'Imagen',
74
90
  displayOnTrue: 'habilitada',
75
91
  displayOnFalse: 'deshabilitada',
76
92
  defaultValue: true,
93
+ show: personalizado,
77
94
  }),
78
95
  new SelectInput({
79
96
  id: 'imagePosition',
@@ -84,7 +101,7 @@ export const standardInputs = [
84
101
  { label: 'Final', value: 3 },
85
102
  ],
86
103
  defaultValue: 2,
87
- show: ShowValidations.imageEnabled,
104
+ show: `${personalizado} && ${imageEnabled}`,
88
105
  }),
89
106
  new SelectInput({
90
107
  id: 'imageAlignment',
@@ -95,7 +112,7 @@ export const standardInputs = [
95
112
  { label: 'Final', value: 'end' },
96
113
  ],
97
114
  defaultValue: 'center',
98
- show: ShowValidations.imageEnabled,
115
+ show: `${personalizado} && ${imageEnabled}`,
99
116
  }),
100
117
  new SelectInput({
101
118
  id: 'imageStyle',
@@ -108,29 +125,30 @@ export const standardInputs = [
108
125
  { label: 'Círculo', value: 'circle' },
109
126
  ],
110
127
  defaultValue: 'normal',
111
- show: ShowValidations.imageEnabled,
128
+ show: `${personalizado} && ${imageEnabled}`,
112
129
  }),
113
130
  new TextInput({
114
131
  id: 'imageMargin',
115
132
  label: 'Margen',
116
133
  description: 'Margen derecho de la imagen (en porcentaje). Por defecto 0%.',
117
- show: ShowValidations.imageEnabled,
134
+ show: `${personalizado} && ${imageEnabled}`,
118
135
  }),
119
136
  new NumberInput({
120
137
  id: 'imageSize',
121
138
  label: 'Tamaño',
122
139
  description: 'Tamaño de la imagen (en porcentaje).',
123
140
  range: new NumberRangeValue(1, 100),
124
- show: ShowValidations.imageEnabled,
141
+ show: `${personalizado} && ${imageEnabled}`,
125
142
  }),
126
143
 
127
- new Label({ label: 'Fecha' }),
144
+ new Label({ label: 'Fecha', show: personalizado }),
128
145
  new Switch({
129
146
  id: 'dateEnabled',
130
147
  label: 'Fecha',
131
148
  displayOnTrue: 'habilitada',
132
149
  displayOnFalse: 'deshabilitada',
133
150
  defaultValue: true,
151
+ show: personalizado,
134
152
  }),
135
153
  new SelectInput({
136
154
  id: 'datePosition',
@@ -141,7 +159,7 @@ export const standardInputs = [
141
159
  { label: 'Final', value: 3 },
142
160
  ],
143
161
  defaultValue: 3,
144
- show: ShowValidations.dateEnabled,
162
+ show: `${personalizado} && ${dateEnabled}`,
145
163
  }),
146
164
  new SelectInput({
147
165
  id: 'dateAlignment',
@@ -152,7 +170,7 @@ export const standardInputs = [
152
170
  { label: 'Final', value: 'end' },
153
171
  ],
154
172
  defaultValue: 'center',
155
- show: ShowValidations.dateEnabled,
173
+ show: `${personalizado} && ${dateEnabled}`,
156
174
  }),
157
175
  new SelectInput({
158
176
  id: 'dateStyle',
@@ -167,45 +185,46 @@ export const standardInputs = [
167
185
  { label: 'Líneas', value: 'outlines' },
168
186
  ],
169
187
  defaultValue: 'calendarFlat',
170
- show: ShowValidations.dateEnabled,
188
+ show: `${personalizado} && ${dateEnabled}`,
171
189
  }),
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 }),
190
+ new TextFormat({ id: 'dateDayFormat', label: 'Formato del día', show: `${personalizado} && ${dateEnabled}` }),
191
+ new TextFormat({ id: 'dateMonthFormat', label: 'Formato del mes', show: `${personalizado} && ${dateEnabled}` }),
174
192
  new Switch({
175
193
  id: 'abbreviatedMonths',
176
194
  label: 'Meses',
177
195
  displayOnTrue: 'abreviados',
178
196
  displayOnFalse: 'no abreviados',
179
197
  defaultValue: false,
180
- show: ShowValidations.abbreviatedMonthsCondition,
198
+ show: `${personalizado} && ${abbreviatedMonthsCondition}`,
181
199
  }),
182
200
  new ColorPicker({
183
201
  id: 'datePrimaryColor',
184
202
  label: 'Color primario',
185
- show: ShowValidations.dateColorCondition,
203
+ show: `${personalizado} && ${dateColorCondition}`,
186
204
  }),
187
205
  new TextInput({
188
206
  id: 'dateMargin',
189
207
  label: 'Margen',
190
208
  description: 'Margen derecho de la fecha (en porcentaje). Por defecto 0%.',
191
- show: ShowValidations.dateEnabled,
209
+ show: `${personalizado} && ${dateEnabled}`,
192
210
  }),
193
211
 
194
- new Label({ label: 'Separador' }),
212
+ new Label({ label: 'Separador', show: personalizado }),
195
213
  new Switch({
196
214
  id: 'separator',
197
215
  label: 'Separador',
198
216
  displayOnTrue: 'habilitado',
199
217
  displayOnFalse: 'deshabilitado',
200
218
  defaultValue: true,
219
+ show: personalizado,
201
220
  }),
202
- new NumberInput({ id: 'separatorWidth', label: 'Ancho', show: ShowValidations.separatorEnabled }),
203
- new ColorPicker({ id: 'separatorColor', label: 'Color', show: ShowValidations.separatorEnabled }),
221
+ new NumberInput({ id: 'separatorWidth', label: 'Ancho', show: `${personalizado} && ${separatorEnabled}` }),
222
+ new ColorPicker({ id: 'separatorColor', label: 'Color', show: `${personalizado} && ${separatorEnabled}` }),
204
223
  new TextInput({
205
224
  id: 'itemMargins',
206
225
  label: 'Márgenes',
207
226
  description: 'Un CSS de longitud de uno o dos valores.',
208
227
  pattern: '^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$',
209
- show: ShowValidations.separatorEnabled,
228
+ show: `${personalizado} && ${separatorEnabled}`,
210
229
  }),
211
230
  ]
@@ -1,4 +1,5 @@
1
1
  export const ShowValidations = {
2
+ personalizado: '({{themePreset}} === "personalizado" || !{{themePreset}})',
2
3
  descriptionEnabled: '{{descriptionEnabled}} === true',
3
4
  optionalEnabled: '{{optionalEnabled}} === true',
4
5
  imageEnabled: '{{imageEnabled}} === true',
@@ -117,7 +117,7 @@
117
117
  {
118
118
  "label": "Personalizado",
119
119
  "value": "personalizado"
120
- },
120
+ },
121
121
  {
122
122
  "label": "Preset 1",
123
123
  "value": "preset1"
@@ -134,11 +134,13 @@
134
134
  },
135
135
  {
136
136
  "type": "label",
137
- "label": "Orientación"
137
+ "label": "Orientación",
138
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
138
139
  },
139
140
  {
140
141
  "id": "orientation",
141
142
  "label": "Orientación",
143
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
142
144
  "type": "select-input",
143
145
  "items": [
144
146
  {
@@ -155,11 +157,13 @@
155
157
  },
156
158
  {
157
159
  "type": "label",
158
- "label": "Animación"
160
+ "label": "Animación",
161
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
159
162
  },
160
163
  {
161
164
  "id": "animationMode",
162
165
  "label": "Tipo de animación",
166
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
163
167
  "type": "select-input",
164
168
  "description": "Por defecto, Fundido.",
165
169
  "items": [
@@ -182,6 +186,7 @@
182
186
  {
183
187
  "id": "animationSpeed",
184
188
  "label": "Velocidad",
189
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
185
190
  "type": "select-input",
186
191
  "items": [
187
192
  {
@@ -202,6 +207,7 @@
202
207
  {
203
208
  "id": "animationTime",
204
209
  "label": "Tiempo",
210
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
205
211
  "type": "number-input",
206
212
  "range": "[1:9999:]",
207
213
  "description": "Duración de cada grupo de datos (en segundos).",
@@ -209,11 +215,13 @@
209
215
  },
210
216
  {
211
217
  "type": "label",
212
- "label": "Contenedor"
218
+ "label": "Contenedor",
219
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
213
220
  },
214
221
  {
215
222
  "id": "containerColumns",
216
223
  "label": "Columnas",
224
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
217
225
  "type": "number-input",
218
226
  "range": "[1:999:]",
219
227
  "description": "Cantidad de items horizontales. Por defecto, 1."
@@ -221,6 +229,7 @@
221
229
  {
222
230
  "id": "containerColumnsGap",
223
231
  "label": "Separador horizontal",
232
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
224
233
  "type": "number-input",
225
234
  "range": "[1:100:]",
226
235
  "description": "Espacio entre columnas (en porcentaje). Por defecto, 1%."
@@ -228,6 +237,7 @@
228
237
  {
229
238
  "id": "containerRows",
230
239
  "label": "Filas",
240
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
231
241
  "type": "number-input",
232
242
  "range": "[1:999:]",
233
243
  "description": "Cantidad de items verticales. Por defecto, 3."
@@ -235,6 +245,7 @@
235
245
  {
236
246
  "id": "containerRowsGap",
237
247
  "label": "Separador vertical",
248
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
238
249
  "type": "number-input",
239
250
  "range": "[1:100:]",
240
251
  "description": "Espacio entre filas (en porcentaje). Por defecto, 5%."
@@ -257,6 +268,7 @@
257
268
  {
258
269
  "id": "padding",
259
270
  "label": "Márgenes",
271
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
260
272
  "type": "text-input",
261
273
  "description": "CSS para dar espacio arriba/derecha/abajo/izquieda.",
262
274
  "required": false
@@ -282,11 +294,13 @@
282
294
  "items": [
283
295
  {
284
296
  "type": "label",
285
- "label": "Textos"
297
+ "label": "Textos",
298
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
286
299
  },
287
300
  {
288
301
  "id": "textPosition",
289
302
  "label": "Posición",
303
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
290
304
  "type": "select-input",
291
305
  "items": [
292
306
  {
@@ -307,6 +321,7 @@
307
321
  {
308
322
  "id": "textAlignment",
309
323
  "label": "Alineación",
324
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
310
325
  "type": "select-input",
311
326
  "items": [
312
327
  {
@@ -326,27 +341,32 @@
326
341
  },
327
342
  {
328
343
  "type": "label",
329
- "label": "Nombre"
344
+ "label": "Nombre",
345
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
330
346
  },
331
347
  {
332
348
  "id": "nameFormat",
333
349
  "label": "Formato",
350
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
334
351
  "type": "text-format"
335
352
  },
336
353
  {
337
354
  "id": "nameMaxChar",
338
355
  "label": "Caracteres máximos",
356
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
339
357
  "type": "number-input"
340
358
  },
341
359
  {
342
360
  "id": "textMargin",
343
361
  "label": "Margen",
362
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
344
363
  "type": "text-input",
345
364
  "description": "Margen derecho de los textos (en porcentaje). Por defecto 0%."
346
365
  },
347
366
  {
348
367
  "id": "descriptionEnabled",
349
368
  "label": "Descripción",
369
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
350
370
  "type": "switch",
351
371
  "defaultValue": true,
352
372
  "displayOnTrue": "habilitada",
@@ -355,23 +375,24 @@
355
375
  {
356
376
  "type": "label",
357
377
  "label": "Descripción",
358
- "show": "{{descriptionEnabled}} === true"
378
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{descriptionEnabled}} === true"
359
379
  },
360
380
  {
361
381
  "id": "descriptionFormat",
362
382
  "label": "Formato",
363
- "show": "{{descriptionEnabled}} === true",
383
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{descriptionEnabled}} === true",
364
384
  "type": "text-format"
365
385
  },
366
386
  {
367
387
  "id": "descriptionMaxChar",
368
388
  "label": "Caracteres máximos",
369
- "show": "{{descriptionEnabled}} === true",
389
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{descriptionEnabled}} === true",
370
390
  "type": "number-input"
371
391
  },
372
392
  {
373
393
  "id": "optionalEnabled",
374
394
  "label": "Campo opcional",
395
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
375
396
  "type": "switch",
376
397
  "defaultValue": true,
377
398
  "displayOnTrue": "habilitado",
@@ -380,25 +401,28 @@
380
401
  {
381
402
  "type": "label",
382
403
  "label": "Campo opcional",
383
- "show": "{{optionalEnabled}} === true"
404
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{optionalEnabled}} === true"
384
405
  },
385
406
  {
386
407
  "id": "optionalFormat",
387
408
  "label": "Formato",
388
- "show": "{{optionalEnabled}} === true",
409
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{optionalEnabled}} === true",
389
410
  "type": "text-format"
390
411
  },
391
412
  {
392
413
  "type": "label",
393
- "label": "Fotografía"
414
+ "label": "Fotografía",
415
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
394
416
  },
395
417
  {
396
418
  "type": "label",
397
- "label": "Imagen"
419
+ "label": "Imagen",
420
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
398
421
  },
399
422
  {
400
423
  "id": "imageEnabled",
401
424
  "label": "Imagen",
425
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
402
426
  "type": "switch",
403
427
  "defaultValue": true,
404
428
  "displayOnTrue": "habilitada",
@@ -407,7 +431,7 @@
407
431
  {
408
432
  "id": "imagePosition",
409
433
  "label": "Posición",
410
- "show": "{{imageEnabled}} === true",
434
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
411
435
  "type": "select-input",
412
436
  "items": [
413
437
  {
@@ -428,7 +452,7 @@
428
452
  {
429
453
  "id": "imageAlignment",
430
454
  "label": "Alineación",
431
- "show": "{{imageEnabled}} === true",
455
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
432
456
  "type": "select-input",
433
457
  "items": [
434
458
  {
@@ -449,7 +473,7 @@
449
473
  {
450
474
  "id": "imageStyle",
451
475
  "label": "Estilo",
452
- "show": "{{imageEnabled}} === true",
476
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
453
477
  "type": "select-input",
454
478
  "description": "Forma de enmarcar la fotografía.",
455
479
  "items": [
@@ -472,25 +496,27 @@
472
496
  {
473
497
  "id": "imageMargin",
474
498
  "label": "Margen",
475
- "show": "{{imageEnabled}} === true",
499
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
476
500
  "type": "text-input",
477
501
  "description": "Margen derecho de la imagen (en porcentaje). Por defecto 0%."
478
502
  },
479
503
  {
480
504
  "id": "imageSize",
481
505
  "label": "Tamaño",
482
- "show": "{{imageEnabled}} === true",
506
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{imageEnabled}} === true",
483
507
  "type": "number-input",
484
508
  "range": "[1:100:]",
485
509
  "description": "Tamaño de la imagen (en porcentaje)."
486
510
  },
487
511
  {
488
512
  "type": "label",
489
- "label": "Fecha"
513
+ "label": "Fecha",
514
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
490
515
  },
491
516
  {
492
517
  "id": "dateEnabled",
493
518
  "label": "Fecha",
519
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
494
520
  "type": "switch",
495
521
  "defaultValue": true,
496
522
  "displayOnTrue": "habilitada",
@@ -499,7 +525,7 @@
499
525
  {
500
526
  "id": "datePosition",
501
527
  "label": "Posición",
502
- "show": "{{dateEnabled}} === true",
528
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
503
529
  "type": "select-input",
504
530
  "items": [
505
531
  {
@@ -520,7 +546,7 @@
520
546
  {
521
547
  "id": "dateAlignment",
522
548
  "label": "Alineación",
523
- "show": "{{dateEnabled}} === true",
549
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
524
550
  "type": "select-input",
525
551
  "items": [
526
552
  {
@@ -541,7 +567,7 @@
541
567
  {
542
568
  "id": "dateStyle",
543
569
  "label": "Estilo",
544
- "show": "{{dateEnabled}} === true",
570
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
545
571
  "type": "select-input",
546
572
  "description": "Forma de enmarcar la fotografía.",
547
573
  "items": [
@@ -572,19 +598,19 @@
572
598
  {
573
599
  "id": "dateDayFormat",
574
600
  "label": "Formato del día",
575
- "show": "{{dateEnabled}} === true",
601
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
576
602
  "type": "text-format"
577
603
  },
578
604
  {
579
605
  "id": "dateMonthFormat",
580
606
  "label": "Formato del mes",
581
- "show": "{{dateEnabled}} === true",
607
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
582
608
  "type": "text-format"
583
609
  },
584
610
  {
585
611
  "id": "abbreviatedMonths",
586
612
  "label": "Meses",
587
- "show": "{{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1",
613
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true && ['calendarFlat', 'calendarText', 'outlines'].indexOf({{dateStyle}}) !== -1",
588
614
  "type": "switch",
589
615
  "defaultValue": false,
590
616
  "displayOnTrue": "abreviados",
@@ -593,24 +619,26 @@
593
619
  {
594
620
  "id": "datePrimaryColor",
595
621
  "label": "Color primario",
596
- "show": "({{dateEnabled}} === true && ['calendarFlat', 'circle', 'outlines'].indexOf({{dateStyle}}) !== -1)",
622
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && ({{dateEnabled}} === true && ['calendarFlat', 'circle', 'outlines'].indexOf({{dateStyle}}) !== -1)",
597
623
  "type": "color-picker",
598
624
  "output": "auto"
599
625
  },
600
626
  {
601
627
  "id": "dateMargin",
602
628
  "label": "Margen",
603
- "show": "{{dateEnabled}} === true",
629
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{dateEnabled}} === true",
604
630
  "type": "text-input",
605
631
  "description": "Margen derecho de la fecha (en porcentaje). Por defecto 0%."
606
632
  },
607
633
  {
608
634
  "type": "label",
609
- "label": "Separador"
635
+ "label": "Separador",
636
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})"
610
637
  },
611
638
  {
612
639
  "id": "separator",
613
640
  "label": "Separador",
641
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}})",
614
642
  "type": "switch",
615
643
  "defaultValue": true,
616
644
  "displayOnTrue": "habilitado",
@@ -619,20 +647,20 @@
619
647
  {
620
648
  "id": "separatorWidth",
621
649
  "label": "Ancho",
622
- "show": "{{separator}} === true",
650
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{separator}} === true",
623
651
  "type": "number-input"
624
652
  },
625
653
  {
626
654
  "id": "separatorColor",
627
655
  "label": "Color",
628
- "show": "{{separator}} === true",
656
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{separator}} === true",
629
657
  "type": "color-picker",
630
658
  "output": "auto"
631
659
  },
632
660
  {
633
661
  "id": "itemMargins",
634
662
  "label": "Márgenes",
635
- "show": "{{separator}} === true",
663
+ "show": "({{themePreset}} === \"personalizado\" || !{{themePreset}}) && {{separator}} === true",
636
664
  "type": "text-input",
637
665
  "description": "Un CSS de longitud de uno o dos valores.",
638
666
  "pattern": "^(( )?[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)){1,2}$"
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "author": {
9
9
  "name": "Lorenzo Alfaro Bravo"
10
10
  },
11
- "version": "0.7.13-dev.1",
11
+ "version": "0.7.13-dev.2",
12
12
  "scripts": {
13
13
  "prepublish": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",