@vixoniccom/news-internal 0.4.21-dev.35 → 0.4.21-dev.36

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.4.21-dev.36](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.35...v0.4.21-dev.36) (2026-05-08)
6
+
5
7
  ### [0.4.21-dev.35](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.34...v0.4.21-dev.35) (2026-05-08)
6
8
 
7
9
  ### [0.4.21-dev.34](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.33...v0.4.21-dev.34) (2026-05-08)
package/build.zip CHANGED
Binary file
@@ -1,7 +1,26 @@
1
- import { List, NumberRangeValue } from '@vixoniccom/modules'
1
+ import { List, NumberRangeValue, isInput } from '@vixoniccom/modules'
2
2
  import { newsInputs } from './newsInputs'
3
3
 
4
- export const newsGroup = new List({
4
+ class SmartList extends List {
5
+ validateItem(value: any, ctx: any): any {
6
+ if (!value.__id) return [{ type: 'ItemHasNoUniqueId' }]
7
+
8
+ const itemErrors: Record<string, any[]> = {}
9
+ this.itemSchema.forEach((input) => {
10
+ if (isInput(input)) {
11
+ const i = input as any
12
+ if (i.shouldShow(ctx)) {
13
+ itemErrors[i.id] = i.validate((value as any)[i.id], ctx)
14
+ } else if (!(i.id in itemErrors)) {
15
+ itemErrors[i.id] = []
16
+ }
17
+ }
18
+ })
19
+ return itemErrors
20
+ }
21
+ }
22
+
23
+ export const newsGroup = new SmartList({
5
24
  id: 'news',
6
25
  label: 'Noticias',
7
26
  description: 'Lista de noticias',
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "author": {
9
9
  "name": ""
10
10
  },
11
- "version": "0.4.21-dev.35",
11
+ "version": "0.4.21-dev.36",
12
12
  "scripts": {
13
13
  "prepublish": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",