@vixoniccom/news-internal 0.4.13-beta.14 → 0.4.13-beta.16

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,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.13-beta.16](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.15...v0.4.13-beta.16) (2023-05-26)
6
+
7
+ ### [0.4.13-beta.15](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.14...v0.4.13-beta.15) (2023-05-26)
8
+
5
9
  ### [0.4.13-beta.14](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.13...v0.4.13-beta.14) (2023-05-19)
6
10
 
7
11
  ### [0.4.13-beta.13](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.12...v0.4.13-beta.13) (2023-05-17)
package/build.zip CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { Configuration, List, TextInput, SelectAssetKna, TextArea, NumberRangeValue, BitlyInput } from '@vixoniccom/modules'
1
+ import { Configuration, List, TextInput, SelectAssetKna, TextArea, NumberRangeValue, DateInput } from '@vixoniccom/modules'
2
2
  import { appereanceGroup } from './appearanceGroup'
3
3
  import { ShowValidations } from './utils'
4
4
 
@@ -78,7 +78,7 @@ const newsList = new List({
78
78
  extensions: ['jpg', 'jpeg', 'png', 'svg'], show: (ShowValidations.imageForceEnabled)
79
79
  }),
80
80
 
81
- new BitlyInput({
81
+ new TextInput({
82
82
  id: 'qrCodeUrl',
83
83
  label: 'URL código QR',
84
84
  required: true,
@@ -90,17 +90,23 @@ const newsList = new List({
90
90
  label: 'Título código QR',
91
91
  required: false,
92
92
  show: ShowValidations.qrCodeEnabled
93
+ }),
94
+
95
+ new DateInput({
96
+ id: 'expirationDate',
97
+ label: 'Fecha de expiración Noticia',
93
98
  })
94
99
  ],
95
100
  itemDisplayClass: '2-lines',
96
101
  itemDisplayAttributes: {
97
102
  title: 'title',
98
- subtitle: 'description'
103
+ subtitle: 'description',
104
+ expirationDate: "expirationDate"
99
105
  }
100
106
  })
101
107
 
102
108
  export const configuration: Configuration = new Configuration({
103
- durationFormula: `({{news}} && {{news}}.length || 1) * ({{showTime}} || 10)`,
109
+ durationFormula: `(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date(); }).length || 1) * (_values.showTime || 10)`,
104
110
  schema: [
105
111
  newsList,
106
112
  appereanceGroup
@@ -1,5 +1,5 @@
1
1
  {
2
- "durationFormula": "({{news}} && {{news}}.length || 1) * ({{showTime}} || 10)",
2
+ "durationFormula": "(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date(); }).length || 1) * (_values.showTime || 10)",
3
3
  "schema": [
4
4
  {
5
5
  "id": "news",
@@ -12,7 +12,7 @@
12
12
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'short')",
13
13
  "type": "text-input",
14
14
  "required": true,
15
- "range": "[1:25]"
15
+ "range": "[1:25:]"
16
16
  },
17
17
  {
18
18
  "id": "title",
@@ -20,7 +20,7 @@
20
20
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
21
21
  "type": "text-input",
22
22
  "required": true,
23
- "range": "[1:40]"
23
+ "range": "[1:40:]"
24
24
  },
25
25
  {
26
26
  "id": "title",
@@ -28,7 +28,7 @@
28
28
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'large')",
29
29
  "type": "text-input",
30
30
  "required": true,
31
- "range": "[1:50]"
31
+ "range": "[1:50:]"
32
32
  },
33
33
  {
34
34
  "id": "title",
@@ -36,7 +36,7 @@
36
36
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'extra-large')",
37
37
  "type": "text-input",
38
38
  "required": true,
39
- "range": "[1:70]"
39
+ "range": "[1:70:]"
40
40
  },
41
41
  {
42
42
  "id": "description",
@@ -44,7 +44,7 @@
44
44
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
45
45
  "type": "text-area",
46
46
  "required": true,
47
- "range": "[1:80]",
47
+ "range": "[1:80:]",
48
48
  "html": true
49
49
  },
50
50
  {
@@ -53,7 +53,7 @@
53
53
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
54
54
  "type": "text-area",
55
55
  "required": true,
56
- "range": "[1:180]",
56
+ "range": "[1:180:]",
57
57
  "html": true
58
58
  },
59
59
  {
@@ -62,7 +62,7 @@
62
62
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'large')",
63
63
  "type": "text-area",
64
64
  "required": true,
65
- "range": "[1:350]",
65
+ "range": "[1:350:]",
66
66
  "html": true
67
67
  },
68
68
  {
@@ -71,7 +71,7 @@
71
71
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'extra-large')",
72
72
  "type": "text-area",
73
73
  "required": true,
74
- "range": "[1:500]",
74
+ "range": "[1:500:]",
75
75
  "html": true
76
76
  },
77
77
  {
@@ -105,9 +105,7 @@
105
105
  {
106
106
  "id": "expirationDate",
107
107
  "label": "Fecha de expiración Noticia",
108
- "type": "date-input",
109
- "required": false
110
-
108
+ "type": "date-input"
111
109
  }
112
110
  ],
113
111
  "description": "Lista de noticias",
@@ -115,7 +113,7 @@
115
113
  "itemDisplayAttributes": {
116
114
  "title": "title",
117
115
  "subtitle": "description",
118
- "expirationDate": "expirationDate"
116
+ "expirationDate": "expirationDate"
119
117
  },
120
118
  "sortable": true
121
119
  },
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "author": {
8
8
  "name": ""
9
9
  },
10
- "version": "0.4.13-beta.14",
10
+ "version": "0.4.13-beta.16",
11
11
  "scripts": {
12
12
  "prepublishOnly": "vixonic-module-packager --mode=build",
13
13
  "watch": "vixonic-module-packager --mode=watch",