Comparing version 1.0.0-pre-68 to 1.0.0-pre-69
@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { createValidator, isDryvArrayValidator, isDryvObjectValidator, isDryvFieldValidator } from './'; | ||
import { dryvEditingObject, dryvValidationObject, observableObjectProxy } from './internal'; | ||
import { annotateValidator, dryvEditingObject, dryvValidationObject, observableObjectProxy } from './internal'; | ||
import { DryvComplexValidator } from './DryvComplexValidator'; | ||
@@ -60,2 +60,3 @@ export class DryvObjectValidator extends DryvComplexValidator { | ||
this.updateHierarchy(true); | ||
annotateValidator(this, this.session.ruleSet); | ||
return proxy; | ||
@@ -62,0 +63,0 @@ } |
@@ -85,4 +85,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
switch (this.options.validationTrigger) { | ||
case 'off': | ||
return false; | ||
case 'auto': | ||
@@ -89,0 +87,0 @@ break; |
export class DryvEditingFieldProxyHandler { | ||
get(target, prop) { | ||
var _a; | ||
if (prop === "$dryv") { | ||
if (prop === '$dryv') { | ||
return target; | ||
} | ||
const value = Reflect.get(target, prop); | ||
return target.referenceField && | ||
target.reference && | ||
!target.hasOwnProperty(prop) | ||
return target.referenceField && target.reference && !target.hasOwnProperty(prop) | ||
? (_a = target.reference[prop]) !== null && _a !== void 0 ? _a : value | ||
@@ -12,0 +10,0 @@ : value; |
{ | ||
"name": "dryvjs", | ||
"version": "1.0.0-pre-68", | ||
"version": "1.0.0-pre-69", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
124880
1836