@live-change/vue3-components 0.9.199 → 0.9.200

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.
Files changed (2) hide show
  1. package/logic/data.js +4 -2
  2. package/package.json +3 -3
package/logic/data.js CHANGED
@@ -33,7 +33,7 @@ export function defaultData(definition, otherSrc) {
33
33
 
34
34
  export function validateData(definition, data, validationType = 'validation',
35
35
  context = undefined, propName = '', props = data,
36
- outputValidatorParams = false) {
36
+ outputValidatorParams = false, validatedProperties = undefined) {
37
37
  context = context || getCurrentInstance().appContext
38
38
  //console.log("VALIDATIE DATA", definition, data, validationType, context, propName, props)
39
39
  if(!context) throw new Error("No context")
@@ -60,8 +60,10 @@ export function validateData(definition, data, validationType = 'validation',
60
60
  if(definition.properties) {
61
61
  const propertyErrors = {}
62
62
  for(let name in definition.properties) {
63
+ const computedName = propName ? propName + '.' + name : name
64
+ if(validatedProperties && !validatedProperties.includes(computedName)) continue
63
65
  const error = validateData(definition.properties[name], data?.[name], validationType, context,
64
- propName ? propName + '.' + name: name, props, outputValidatorParams)
66
+ computedName, props, outputValidatorParams)
65
67
  if(error) {
66
68
  if(error.propertyErrors) {
67
69
  for(let internalName in error.propertyErrors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.9.199",
3
+ "version": "0.9.200",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.9.199",
24
+ "@live-change/vue3-ssr": "^0.9.200",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.5.12",
28
28
  "vue3-scroll-border": "0.1.7"
29
29
  },
30
- "gitHead": "1900043a10cf9ad49b9cc33a539fb973706de962"
30
+ "gitHead": "a509834e600a546297faa7d1534b6f52e66d2e66"
31
31
  }