@vixoniccom/news-internal 0.4.4 → 0.4.5-beta.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 +9 -1
- package/build.zip +0 -0
- package/configuration/appearanceGroup/elementsInputs.ts +8 -0
- package/configuration/index.ts +16 -1
- package/configuration/utils.ts +3 -0
- package/configuration.json +74 -6
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
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.4.5-beta.0](https://gitlab.com/mandomedio/vixonic/news-internal/compare/v0.4.4...v0.4.5-beta.0) (2021-08-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **release:** QrCodeContainer was created and implemented in standard and gallery mode ([3942acf](https://gitlab.com/mandomedio/vixonic/news-internal/commit/3942acfd803167765b420005b2f65f00abce4797))
|
|
11
|
+
* **release:** React QR code was added to news-internal app ([48ebd6e](https://gitlab.com/mandomedio/vixonic/news-internal/commit/48ebd6efecb777263e72e76987e57dcdf3e44845))
|
|
12
|
+
|
|
5
13
|
## [0.4.4](https://gitlab.com/mandomedio/vixonic/news-internal/compare/v0.4.4-dev.5...v0.4.4) (2021-07-09)
|
|
6
14
|
|
|
7
15
|
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -57,6 +57,14 @@ export const elementsInputs = [
|
|
|
57
57
|
new Slider({ id: 'barOpacity', label: 'Opacidad de la barra', min: 0, max: 1, step: 0.01, show: ShowValidations.isGallery }),
|
|
58
58
|
new Switch({ id: 'iconVisible', defaultValue: true, label: 'Ícono', show: ShowValidations.isGallery }),
|
|
59
59
|
new ColorPicker({ id: 'iconColor', label: 'Color del ícono', show: ShowValidations.galleryIconEnabled }),
|
|
60
|
+
new Switch({ id: 'qrCodeEnabled', label: 'Código QR', defaultValue: true }),
|
|
61
|
+
new NumberInput({ id: 'qrCodeWidth', label: 'Tamaño código QR', description: 'En pixeles. Por defecto 200.', show: ShowValidations.qrCodeEnabled }),
|
|
62
|
+
new NumberInput({ id: 'qrCodeHeight', label: 'Alto tarjeta de código QR', description: 'En pixeles. Por defecto 220.', show: ShowValidations.qrCodeEnabled }),
|
|
63
|
+
new NumberInput({ id: 'qrCodePositionX', label: 'Posición eje X de código QR', description: 'En pixeles. Por defecto 0.', show: ShowValidations.qrCodeEnabled }),
|
|
64
|
+
new NumberInput({ id: 'qrCodePositionY', label: 'Posición eje Y de código QR', description: 'En pixeles. Por defecto 0.', show: ShowValidations.qrCodeEnabled }),
|
|
65
|
+
new ColorPicker({ id: 'qrCodeBackgroundColor', label: 'Color fondo del código QR', show: ShowValidations.qrCodeEnabled }),
|
|
66
|
+
new ColorPicker({ id: 'qrCodeColor', label: 'Color del código QR', show: ShowValidations.qrCodeEnabled }),
|
|
67
|
+
new TextFormat({ id: 'QrCodeTitleFormat', label: 'Formato título código QR', show: ShowValidations.qrCodeEnabled }),
|
|
60
68
|
new Label({ label: 'Avanzado' }),
|
|
61
69
|
new SelectAssetKna({ id: 'background', label: 'Fondo', extensions: ['jpg', 'jpeg', 'png'] }),
|
|
62
70
|
new TextInput({ id: 'padding', required: false, label: 'Márgenes', description: 'CSS para dar espacio arriba/derecha/abajo/izquieda.' })
|
package/configuration/index.ts
CHANGED
|
@@ -55,7 +55,22 @@ const newsList = new List({
|
|
|
55
55
|
}),
|
|
56
56
|
|
|
57
57
|
new SelectAssetKna({ id: 'image', label: 'Imágen', required: true,
|
|
58
|
-
extensions: ['jpg', 'jpeg', 'png', 'svg'], show: ShowValidations.imageEnabled
|
|
58
|
+
extensions: ['jpg', 'jpeg', 'png', 'svg'], show: ShowValidations.imageEnabled
|
|
59
|
+
}),
|
|
60
|
+
|
|
61
|
+
new TextInput({
|
|
62
|
+
id: 'qrCodeUrl',
|
|
63
|
+
label: 'URL código QR',
|
|
64
|
+
required: true,
|
|
65
|
+
show: ShowValidations.qrCodeEnabled
|
|
66
|
+
}),
|
|
67
|
+
|
|
68
|
+
new TextInput({
|
|
69
|
+
id: 'qrCodeTitle',
|
|
70
|
+
label: 'Título código QR',
|
|
71
|
+
required: false,
|
|
72
|
+
show: ShowValidations.qrCodeEnabled
|
|
73
|
+
})
|
|
59
74
|
],
|
|
60
75
|
itemDisplayClass: '2-lines',
|
|
61
76
|
itemDisplayAttributes: {
|
package/configuration/utils.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const titleEnabled = '{{titleEnabled}} === true'
|
|
2
2
|
const descriptionEnabled = '{{descriptionEnabled}} === true'
|
|
3
3
|
const imageEnabled = '{{imageEnabled}} === true'
|
|
4
|
+
const qrCodeEnabled = '{{qrCodeEnabled}} === true'
|
|
5
|
+
|
|
4
6
|
const isGallery = `{{template}} === 'gallery'`
|
|
5
7
|
const isNotGallery = `${imageEnabled} && ( ( ${isGallery} ) === false )`
|
|
6
8
|
const galleryIconEnabled = `${isGallery} && ({{iconVisible}} === true)`
|
|
@@ -19,6 +21,7 @@ export const ShowValidations = {
|
|
|
19
21
|
titleEnabled,
|
|
20
22
|
descriptionEnabled,
|
|
21
23
|
imageEnabled,
|
|
24
|
+
qrCodeEnabled,
|
|
22
25
|
isGallery,
|
|
23
26
|
galleryIconEnabled,
|
|
24
27
|
isNotGallery,
|
package/configuration.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"label": "Título corto",
|
|
13
13
|
"show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'short')",
|
|
14
14
|
"required": true,
|
|
15
|
-
"range": "[1:20]"
|
|
15
|
+
"range": "[1:20:]"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"type": "text-input",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"label": "Título mediano",
|
|
21
21
|
"show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
|
|
22
22
|
"required": true,
|
|
23
|
-
"range": "[1:50]"
|
|
23
|
+
"range": "[1:50:]"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"type": "text-input",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"label": "Título largo",
|
|
29
29
|
"show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'large')",
|
|
30
30
|
"required": true,
|
|
31
|
-
"range": "[1:80]"
|
|
31
|
+
"range": "[1:80:]"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"type": "text-area",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"label": "Descripción corta",
|
|
37
37
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
|
|
38
38
|
"required": true,
|
|
39
|
-
"range": "[1:80]"
|
|
39
|
+
"range": "[1:80:]"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"type": "text-area",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"label": "Descripción mediana",
|
|
45
45
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
|
|
46
46
|
"required": true,
|
|
47
|
-
"range": "[1:350]"
|
|
47
|
+
"range": "[1:350:]"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"type": "text-area",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"label": "Descripción larga",
|
|
53
53
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'large')",
|
|
54
54
|
"required": true,
|
|
55
|
-
"range": "[1:650]"
|
|
55
|
+
"range": "[1:650:]"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"type": "select-asset-kna-input",
|
|
@@ -67,6 +67,20 @@
|
|
|
67
67
|
"svg"
|
|
68
68
|
],
|
|
69
69
|
"multiple": false
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "text-input",
|
|
73
|
+
"id": "qrCodeUrl",
|
|
74
|
+
"label": "URL código QR",
|
|
75
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
76
|
+
"required": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "text-input",
|
|
80
|
+
"id": "qrCodeTitle",
|
|
81
|
+
"label": "Título código QR",
|
|
82
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
83
|
+
"required": false
|
|
70
84
|
}
|
|
71
85
|
],
|
|
72
86
|
"description": "Lista de noticias",
|
|
@@ -422,6 +436,60 @@
|
|
|
422
436
|
"show": "{{template}} === 'gallery' && ({{iconVisible}} === true)",
|
|
423
437
|
"output": "auto"
|
|
424
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"type": "switch",
|
|
441
|
+
"id": "qrCodeEnabled",
|
|
442
|
+
"label": "Código QR",
|
|
443
|
+
"defaultValue": true
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"type": "number-input",
|
|
447
|
+
"id": "qrCodeWidth",
|
|
448
|
+
"label": "Tamaño código QR",
|
|
449
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
450
|
+
"description": "En pixeles. Por defecto 200."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"type": "number-input",
|
|
454
|
+
"id": "qrCodeHeight",
|
|
455
|
+
"label": "Alto tarjeta de código QR",
|
|
456
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
457
|
+
"description": "En pixeles. Por defecto 220."
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "number-input",
|
|
461
|
+
"id": "qrCodePositionX",
|
|
462
|
+
"label": "Posición eje X de código QR",
|
|
463
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
464
|
+
"description": "En pixeles. Por defecto 0."
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"type": "number-input",
|
|
468
|
+
"id": "qrCodePositionY",
|
|
469
|
+
"label": "Posición eje Y de código QR",
|
|
470
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
471
|
+
"description": "En pixeles. Por defecto 0."
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"type": "color-picker",
|
|
475
|
+
"id": "qrCodeBackgroundColor",
|
|
476
|
+
"label": "Color fondo del código QR",
|
|
477
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
478
|
+
"output": "auto"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"type": "color-picker",
|
|
482
|
+
"id": "qrCodeColor",
|
|
483
|
+
"label": "Color del código QR",
|
|
484
|
+
"show": "{{qrCodeEnabled}} === true",
|
|
485
|
+
"output": "auto"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "text-format",
|
|
489
|
+
"id": "QrCodeTitleFormat",
|
|
490
|
+
"label": "Formato título código QR",
|
|
491
|
+
"show": "{{qrCodeEnabled}} === true"
|
|
492
|
+
},
|
|
425
493
|
{
|
|
426
494
|
"type": "label",
|
|
427
495
|
"label": "Avanzado"
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"author": {
|
|
8
8
|
"name": ""
|
|
9
9
|
},
|
|
10
|
-
"version": "0.4.
|
|
10
|
+
"version": "0.4.5-beta.0",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"prepublishOnly": "vixonic-module-packager --mode=build",
|
|
13
13
|
"watch": "vixonic-module-packager --mode=watch",
|
|
@@ -15,22 +15,23 @@
|
|
|
15
15
|
"configuration": "vixonic-module-packager --mode generate-configuration",
|
|
16
16
|
"configuration:validate": "vixonic-module-packager --mode validate-configuration",
|
|
17
17
|
"release": "standard-version",
|
|
18
|
-
"prerelease-
|
|
18
|
+
"prerelease-beta": "standard-version --prerelease beta"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"
|
|
22
|
-
"react": "^16.
|
|
23
|
-
"react-
|
|
21
|
+
"react": "^16.14.0",
|
|
22
|
+
"react-dom": "^16.14.0",
|
|
23
|
+
"react-qr-code": "^2.0.2",
|
|
24
24
|
"react-transition-group": "^2.3.1",
|
|
25
25
|
"uuid": "^3.2.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^10.0.8",
|
|
29
|
-
"@types/react": "^16.
|
|
30
|
-
"@types/react-dom": "^16.
|
|
29
|
+
"@types/react": "^16.14.14",
|
|
30
|
+
"@types/react-dom": "^16.9.14",
|
|
31
31
|
"@types/react-transition-group": "^2.0.9",
|
|
32
32
|
"@types/uuid": "^3.4.3",
|
|
33
|
+
"@vixoniccom/module-packager": "^2.4.2",
|
|
33
34
|
"@vixoniccom/modules": "^2.2.0",
|
|
34
|
-
"standard-version": "^
|
|
35
|
+
"standard-version": "^9.3.1"
|
|
35
36
|
}
|
|
36
37
|
}
|