@codetectonics/mantle 1.2.0 → 1.2.2
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.
|
@@ -2286,13 +2286,13 @@ class NumberInputComponent {
|
|
|
2286
2286
|
return null;
|
|
2287
2287
|
}
|
|
2288
2288
|
const errors = {};
|
|
2289
|
-
if (this.options
|
|
2289
|
+
if (this.options?.min !== undefined && val < this.options.min) {
|
|
2290
2290
|
errors.min = `must be greater than or equal to ${this.options.min}`;
|
|
2291
2291
|
}
|
|
2292
|
-
if (this.options
|
|
2292
|
+
if (this.options?.max !== undefined && val > this.options.max) {
|
|
2293
2293
|
errors.max = `must be lower than or equal to ${this.options.max}`;
|
|
2294
2294
|
}
|
|
2295
|
-
if (this.options
|
|
2295
|
+
if (this.options?.decimal_places !== undefined) {
|
|
2296
2296
|
const factor = Math.pow(10, this.options.decimal_places);
|
|
2297
2297
|
if (Math.round(val * factor) / factor !== val) {
|
|
2298
2298
|
errors.decimal_places =
|
|
@@ -3820,7 +3820,7 @@ class DialogNestedFormComponent {
|
|
|
3820
3820
|
this.changeDetectorRef.detectChanges();
|
|
3821
3821
|
}
|
|
3822
3822
|
onSave() {
|
|
3823
|
-
let formData = this.form.getRawValue();
|
|
3823
|
+
let formData = this.dynamicFormService.transformFormValue(this.form.getRawValue());
|
|
3824
3824
|
this.dialogRef.close(formData);
|
|
3825
3825
|
}
|
|
3826
3826
|
onDelete() {
|