ngx-material-entity 15.2.6 → 15.2.7
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.
|
@@ -3193,12 +3193,11 @@ class NgxMatEntityInputComponent {
|
|
|
3193
3193
|
this.internalGetValidationErrorMessage = (_a = this.getValidationErrorMessage) !== null && _a !== void 0 ? _a : this.defaultGetValidationErrorMessage;
|
|
3194
3194
|
this.internalIsReadOnly = (_b = this.isReadOnly) !== null && _b !== void 0 ? _b : false;
|
|
3195
3195
|
this.type = EntityUtilities.getPropertyType(this.internalEntity, this.internalPropertyKey);
|
|
3196
|
-
if (this.validEmpty
|
|
3196
|
+
if (this.validEmpty === true) {
|
|
3197
3197
|
// eslint-disable-next-line max-len
|
|
3198
3198
|
const currentMetadata = ReflectUtilities.getMetadata('metadata', this.internalEntity, this.internalPropertyKey);
|
|
3199
3199
|
// eslint-disable-next-line max-len
|
|
3200
|
-
ReflectUtilities.defineMetadata('metadata', Object.assign(Object.assign({}, currentMetadata), { required:
|
|
3201
|
-
ReflectUtilities.defineMetadata('validEmpty', true, this.internalEntity, this.internalPropertyKey);
|
|
3200
|
+
ReflectUtilities.defineMetadata('metadata', Object.assign(Object.assign({}, currentMetadata), { required: false }), this.internalEntity, this.internalPropertyKey);
|
|
3202
3201
|
}
|
|
3203
3202
|
this.metadata = EntityUtilities.getPropertyMetadata(this.internalEntity, this.internalPropertyKey, this.type);
|
|
3204
3203
|
switch (this.type) {
|