@vixoniccom/news-internal 0.4.6-beta.0 → 0.4.6-beta.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,20 @@
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.4.6-beta.2](https://gitlab.com/mandomedio/vixonic/news-internal/compare/v0.4.6-beta.1...v0.4.6-beta.2) (2021-10-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * **release:** new textArea version was added to news descriptions ([db82373](https://gitlab.com/mandomedio/vixonic/news-internal/commit/db823731aea375593ff5129816b8dd6f5ad7773b))
11
+
12
+ ### [0.4.6-beta.1](https://gitlab.com/mandomedio/vixonic/news-internal/compare/v0.4.6-beta.0...v0.4.6-beta.1) (2021-10-15)
13
+
14
+
15
+ ### Features
16
+
17
+ * **release:** gradient general title was added to app ([298f966](https://gitlab.com/mandomedio/vixonic/news-internal/commit/298f9667eb4f61889b6de4a54e2b6e5f20aa8612))
18
+
5
19
  ### [0.4.6-beta.0](https://gitlab.com/mandomedio/vixonic/news-internal/compare/v0.4.5...v0.4.6-beta.0) (2021-10-13)
6
20
 
7
21
 
package/build.zip CHANGED
Binary file
@@ -14,7 +14,7 @@ const createTextInputs = (scope: string, label: string, show: string) => {
14
14
  export const elementsInputs = [
15
15
  new Label({ label: 'Elementos' }),
16
16
  ...createTextInputs('title', 'Título', ShowValidations.titleEnabled),
17
- ...createTextInputs('description', 'Descripción', ShowValidations.descriptionEnabled),
17
+ new Switch({ id: `descriptionEnabled`, label: 'Descripción', defaultValue: true }),
18
18
  new NumberInput({ id: 'textSeparation', label: 'Separación de textos', description: 'En pixeles.',
19
19
  show: ShowValidations.titleAndDescription }),
20
20
  new Switch({ id: 'imageEnabled', label: 'Imagen', defaultValue: true, show: ShowValidations.isNotGradient }),
@@ -68,6 +68,16 @@ export const elementsInputs = [
68
68
  ],
69
69
  show: ShowValidations.isGradient
70
70
  }),
71
+ new Switch({ id: 'gradientTitleEnabled', label: 'Título general modo degradado', defaultValue: false, show: ShowValidations.isGradient }),
72
+ new TextInput({
73
+ id: 'gradientTitle',
74
+ label: 'Título general',
75
+ required: true,
76
+ show: ShowValidations.gradientTitleEnabled
77
+ }),
78
+ new NumberInput({ id: 'gradientTitlePositionX', label: 'Posición eje X del título general', description: 'En pixeles. Por defecto 0.', show: ShowValidations.gradientTitleEnabled }),
79
+ new NumberInput({ id: 'gradientTitlePositionY', label: 'Posición eje Y del título general', description: 'En pixeles. Por defecto 0.', show: ShowValidations.gradientTitleEnabled }),
80
+ new TextFormat({ id: 'gradientTitleFormat', label: 'Formato título general', show: ShowValidations.gradientTitleEnabled }),
71
81
  new Label({ label: 'Galeria', show: ShowValidations.isGallery }),
72
82
  new SelectInput({ id: 'barSize', label: 'Tamaño de la barra', items: [
73
83
  { label: 'Pequeña', value: 'small' },
@@ -35,7 +35,8 @@ const newsList = new List({
35
35
  label: 'Descripción corta',
36
36
  required: true,
37
37
  show: ShowValidations.shortDescriptionEnabled,
38
- range: new NumberRangeValue(1, 80)
38
+ range: new NumberRangeValue(1, 80),
39
+ html: true
39
40
  }),
40
41
 
41
42
  new TextArea({
@@ -43,7 +44,8 @@ const newsList = new List({
43
44
  label: 'Descripción mediana',
44
45
  required: true,
45
46
  show: ShowValidations.mediumDescriptionEnabled,
46
- range: new NumberRangeValue(1, 350)
47
+ range: new NumberRangeValue(1, 350),
48
+ html: true
47
49
  }),
48
50
 
49
51
  new TextArea({
@@ -51,7 +53,8 @@ const newsList = new List({
51
53
  label: 'Descripción larga',
52
54
  required: true,
53
55
  show: ShowValidations.largeDescriptionEnabled,
54
- range: new NumberRangeValue(1, 650)
56
+ range: new NumberRangeValue(1, 650),
57
+ html: true
55
58
  }),
56
59
 
57
60
  new SelectAssetKna({ id: 'image', label: 'Imagen', required: true,
@@ -6,6 +6,7 @@ const qrCodeEnabled = '{{qrCodeEnabled}} === true'
6
6
  const isGradient = `{{template}} === 'gradient'`
7
7
  const isNotGradient = `( ( ${isGradient} ) === false )`
8
8
  const imageForceEnabled = `${imageEnabled} || ${isGradient}`
9
+ const gradientTitleEnabled = `${isGradient} && ({{gradientTitleEnabled}} === true)`
9
10
 
10
11
  const isGallery = `{{template}} === 'gallery'`
11
12
  const isNotGallery = `${imageEnabled} && ( ( ${isGallery} ) === false )`
@@ -27,6 +28,7 @@ export const ShowValidations = {
27
28
  descriptionEnabled,
28
29
  imageEnabled,
29
30
  imageForceEnabled,
31
+ gradientTitleEnabled,
30
32
  qrCodeEnabled,
31
33
  isGradient,
32
34
  isNotGradient,
@@ -36,7 +36,8 @@
36
36
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
37
37
  "type": "text-area",
38
38
  "required": true,
39
- "range": "[1:80]"
39
+ "range": "[1:80]",
40
+ "html": true
40
41
  },
41
42
  {
42
43
  "id": "description",
@@ -44,7 +45,8 @@
44
45
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
45
46
  "type": "text-area",
46
47
  "required": true,
47
- "range": "[1:350]"
48
+ "range": "[1:350]",
49
+ "html": true
48
50
  },
49
51
  {
50
52
  "id": "description",
@@ -52,7 +54,8 @@
52
54
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'large')",
53
55
  "type": "text-area",
54
56
  "required": true,
55
- "range": "[1:650]"
57
+ "range": "[1:650]",
58
+ "html": true
56
59
  },
57
60
  {
58
61
  "id": "image",
@@ -239,19 +242,6 @@
239
242
  "type": "switch",
240
243
  "defaultValue": true
241
244
  },
242
- {
243
- "id": "descriptionFormat",
244
- "label": "Formato",
245
- "show": "{{descriptionEnabled}} === true",
246
- "type": "text-format"
247
- },
248
- {
249
- "id": "descriptionLineHeight",
250
- "label": "Altura de línea",
251
- "show": "{{descriptionEnabled}} === true",
252
- "type": "number-input",
253
- "range": "[0.8:100:]"
254
- },
255
245
  {
256
246
  "id": "textSeparation",
257
247
  "label": "Separación de textos",
@@ -423,6 +413,40 @@
423
413
  ],
424
414
  "defaultValue": "left"
425
415
  },
416
+ {
417
+ "id": "gradientTitleEnabled",
418
+ "label": "Título general modo degradado",
419
+ "show": "{{template}} === 'gradient'",
420
+ "type": "switch",
421
+ "defaultValue": false
422
+ },
423
+ {
424
+ "id": "gradientTitle",
425
+ "label": "Título general",
426
+ "show": "{{template}} === 'gradient' && ({{gradientTitleEnabled}} === true)",
427
+ "type": "text-input",
428
+ "required": true
429
+ },
430
+ {
431
+ "id": "gradientTitlePositionX",
432
+ "label": "Posición eje X del título general",
433
+ "show": "{{template}} === 'gradient' && ({{gradientTitleEnabled}} === true)",
434
+ "type": "number-input",
435
+ "description": "En pixeles. Por defecto 0."
436
+ },
437
+ {
438
+ "id": "gradientTitlePositionY",
439
+ "label": "Posición eje Y del título general",
440
+ "show": "{{template}} === 'gradient' && ({{gradientTitleEnabled}} === true)",
441
+ "type": "number-input",
442
+ "description": "En pixeles. Por defecto 0."
443
+ },
444
+ {
445
+ "id": "gradientTitleFormat",
446
+ "label": "Formato título general",
447
+ "show": "{{template}} === 'gradient' && ({{gradientTitleEnabled}} === true)",
448
+ "type": "text-format"
449
+ },
426
450
  {
427
451
  "type": "label",
428
452
  "label": "Galeria",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "author": {
8
8
  "name": ""
9
9
  },
10
- "version": "0.4.6-beta.0",
10
+ "version": "0.4.6-beta.2",
11
11
  "scripts": {
12
12
  "prepublishOnly": "vixonic-module-packager --mode=build",
13
13
  "watch": "vixonic-module-packager --mode=watch",
@@ -30,8 +30,8 @@
30
30
  "@types/react-dom": "^16.9.14",
31
31
  "@types/react-transition-group": "^4.4.3",
32
32
  "@types/uuid": "^8.3.1",
33
- "@vixoniccom/module-packager": "^2.5.0",
34
- "@vixoniccom/modules": "^2.12.0",
33
+ "@vixoniccom/module-packager": "^2.5.1-dev.0",
34
+ "@vixoniccom/modules": "^2.12.1-rc.0",
35
35
  "standard-version": "^9.3.1"
36
36
  }
37
37
  }