tuain-ng-forms-lib 12.0.87 → 12.0.90
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/bundles/tuain-ng-forms-lib.umd.js +6 -1
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/element.js +1 -1
- package/esm2015/lib/classes/forms/field.js +5 -2
- package/esm2015/lib/components/forms/basic-form.js +3 -1
- package/fesm2015/tuain-ng-forms-lib.js +6 -1
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/classes/forms/element.d.ts +1 -1
- package/lib/components/forms/basic-form.d.ts +1 -0
- package/package.json +1 -1
|
@@ -803,7 +803,10 @@ class FieldDescriptor extends FormElement {
|
|
|
803
803
|
}
|
|
804
804
|
setValue(newValue, widgetUpdate = true) {
|
|
805
805
|
var _a;
|
|
806
|
-
if (typeof newValue === UNDEFINED
|
|
806
|
+
if (typeof newValue === UNDEFINED) {
|
|
807
|
+
return true;
|
|
808
|
+
}
|
|
809
|
+
if (newValue === null && this.required) {
|
|
807
810
|
return true;
|
|
808
811
|
}
|
|
809
812
|
let newFinalValue;
|
|
@@ -2600,6 +2603,7 @@ class BasicFormComponent {
|
|
|
2600
2603
|
}
|
|
2601
2604
|
}
|
|
2602
2605
|
formInit(params) {
|
|
2606
|
+
var _a;
|
|
2603
2607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2604
2608
|
let initialState = this.preocessInputParams(params);
|
|
2605
2609
|
if (!this.name) {
|
|
@@ -2631,6 +2635,7 @@ class BasicFormComponent {
|
|
|
2631
2635
|
const recordResponse = yield this.requestFormAction(formActions.getData);
|
|
2632
2636
|
this.checkErrorRecordReceived(recordResponse);
|
|
2633
2637
|
this.visible = true;
|
|
2638
|
+
this.enabledSections = (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.visibleSections;
|
|
2634
2639
|
this.subscribeSectionActivation();
|
|
2635
2640
|
this.subscribeFieldsSubjects();
|
|
2636
2641
|
this.subscribeActionSubjects();
|