@vixoniccom/news-internal 0.4.4-dev.1 → 0.4.4-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 +4 -0
- package/configuration/index.ts +6 -7
- package/configuration/utils.ts +14 -6
- package/configuration.json +3 -3
- package/package.json +1 -1
- package/build.zip +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.4-dev.2](https://gitlab.com/mandomedio/vixonic/news-internal/compare/v0.4.4-dev.0...v0.4.4-dev.2) (2021-06-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## 0.4.4-dev.1 (2021-06-23)
|
|
6
10
|
|
|
7
11
|
|
package/configuration/index.ts
CHANGED
|
@@ -13,21 +13,21 @@ const newsList = new List({
|
|
|
13
13
|
id: 'title',
|
|
14
14
|
label: 'Título corto',
|
|
15
15
|
required: true,
|
|
16
|
-
show: ShowValidations.
|
|
16
|
+
show: ShowValidations.shortTitleEnabled,
|
|
17
17
|
range: new NumberRangeValue(1, 20)
|
|
18
18
|
}),
|
|
19
19
|
new TextInput({
|
|
20
20
|
id: 'title',
|
|
21
21
|
label: 'Título mediano',
|
|
22
22
|
required: true,
|
|
23
|
-
show: ShowValidations.
|
|
23
|
+
show: ShowValidations.mediumTitleEnabled,
|
|
24
24
|
range: new NumberRangeValue(1, 50)
|
|
25
25
|
}),
|
|
26
26
|
new TextInput({
|
|
27
27
|
id: 'title',
|
|
28
28
|
label: 'Título largo',
|
|
29
29
|
required: true,
|
|
30
|
-
show: ShowValidations.
|
|
30
|
+
show: ShowValidations.largeTitleEnabled,
|
|
31
31
|
range: new NumberRangeValue(1, 80)
|
|
32
32
|
}),
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ const newsList = new List({
|
|
|
35
35
|
id: 'description',
|
|
36
36
|
label: 'Descripción corta',
|
|
37
37
|
required: true,
|
|
38
|
-
show: ShowValidations.
|
|
38
|
+
show: ShowValidations.shortDescriptionEnabled,
|
|
39
39
|
range: new NumberRangeValue(1, 80)
|
|
40
40
|
}),
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ const newsList = new List({
|
|
|
43
43
|
id: 'description',
|
|
44
44
|
label: 'Descripción mediana',
|
|
45
45
|
required: true,
|
|
46
|
-
show: ShowValidations.
|
|
46
|
+
show: ShowValidations.mediumDescriptionEnabled,
|
|
47
47
|
range: new NumberRangeValue(1, 350)
|
|
48
48
|
}),
|
|
49
49
|
|
|
@@ -51,11 +51,10 @@ const newsList = new List({
|
|
|
51
51
|
id: 'description',
|
|
52
52
|
label: 'Descripción larga',
|
|
53
53
|
required: true,
|
|
54
|
-
show: ShowValidations.
|
|
54
|
+
show: ShowValidations.mediumDescriptionEnabled,
|
|
55
55
|
range: new NumberRangeValue(1, 650)
|
|
56
56
|
}),
|
|
57
57
|
|
|
58
|
-
|
|
59
58
|
new SelectAssetKna({ id: 'image', label: 'Imágen', required: true,
|
|
60
59
|
extensions: ['jpg', 'jpeg', 'png', 'svg'], show: ShowValidations.imageEnabled})
|
|
61
60
|
],
|
package/configuration/utils.ts
CHANGED
|
@@ -6,9 +6,14 @@ const isNotGallery = `${imageEnabled} && ( ( ${isGallery} ) === false )`
|
|
|
6
6
|
const galleryIconEnabled = `${isGallery} && ({{iconVisible}} === true)`
|
|
7
7
|
const isCustomSize = `${isNotGallery} && ( {{imageSize}} === 'custom' )`
|
|
8
8
|
const titleAndDescription = `${titleEnabled} && ${descriptionEnabled}`
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
|
|
10
|
+
const shortTitleEnabled = ` ${titleEnabled} && ({{newsSizeSelect}} === 'short')`
|
|
11
|
+
const mediumTitleEnabled = ` ${titleEnabled} && ({{newsSizeSelect}} === 'medium')`
|
|
12
|
+
const largeTitleEnabled = ` ${titleEnabled} && ({{newsSizeSelect}} === 'large')`
|
|
13
|
+
|
|
14
|
+
const shortDescriptionEnabled = ` ${descriptionEnabled} && ({{newsSizeSelect}} === 'short')`
|
|
15
|
+
const mediumDescriptionEnabled = ` ${descriptionEnabled} && ({{newsSizeSelect}} === 'medium')`
|
|
16
|
+
const largeDescriptionEnabled = ` ${descriptionEnabled} && ({{newsSizeSelect}} === 'large')`
|
|
12
17
|
|
|
13
18
|
export const ShowValidations = {
|
|
14
19
|
titleEnabled,
|
|
@@ -19,7 +24,10 @@ export const ShowValidations = {
|
|
|
19
24
|
isNotGallery,
|
|
20
25
|
titleAndDescription,
|
|
21
26
|
isCustomSize,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
shortTitleEnabled,
|
|
28
|
+
mediumTitleEnabled,
|
|
29
|
+
largeTitleEnabled,
|
|
30
|
+
shortDescriptionEnabled,
|
|
31
|
+
mediumDescriptionEnabled,
|
|
32
|
+
largeDescriptionEnabled
|
|
25
33
|
}
|
package/configuration.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"type": "text-area",
|
|
35
35
|
"id": "description",
|
|
36
36
|
"label": "Descripción corta",
|
|
37
|
-
"show": " {{
|
|
37
|
+
"show": " {{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
|
|
38
38
|
"required": true,
|
|
39
39
|
"range": "[1:80:]"
|
|
40
40
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"type": "text-area",
|
|
43
43
|
"id": "description",
|
|
44
44
|
"label": "Descripción mediana",
|
|
45
|
-
"show": " {{
|
|
45
|
+
"show": " {{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
|
|
46
46
|
"required": true,
|
|
47
47
|
"range": "[1:350:]"
|
|
48
48
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"type": "text-area",
|
|
51
51
|
"id": "description",
|
|
52
52
|
"label": "Descripción larga",
|
|
53
|
-
"show": " {{
|
|
53
|
+
"show": " {{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
|
|
54
54
|
"required": true,
|
|
55
55
|
"range": "[1:650:]"
|
|
56
56
|
},
|
package/package.json
CHANGED
package/build.zip
DELETED
|
Binary file
|