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
|
@@ -1271,7 +1271,10 @@
|
|
|
1271
1271
|
FieldDescriptor.prototype.setValue = function (newValue, widgetUpdate) {
|
|
1272
1272
|
if (widgetUpdate === void 0) { widgetUpdate = true; }
|
|
1273
1273
|
var _a;
|
|
1274
|
-
if (typeof newValue === UNDEFINED
|
|
1274
|
+
if (typeof newValue === UNDEFINED) {
|
|
1275
|
+
return true;
|
|
1276
|
+
}
|
|
1277
|
+
if (newValue === null && this.required) {
|
|
1275
1278
|
return true;
|
|
1276
1279
|
}
|
|
1277
1280
|
var newFinalValue;
|
|
@@ -3497,6 +3500,7 @@
|
|
|
3497
3500
|
}
|
|
3498
3501
|
};
|
|
3499
3502
|
BasicFormComponent.prototype.formInit = function (params) {
|
|
3503
|
+
var _a;
|
|
3500
3504
|
return __awaiter(this, void 0, void 0, function () {
|
|
3501
3505
|
var initialState, formDefinition, inputFieldNames, index, fieldCode, fieldValue, recordResponse;
|
|
3502
3506
|
return __generator(this, function (_j) {
|
|
@@ -3537,6 +3541,7 @@
|
|
|
3537
3541
|
recordResponse = _j.sent();
|
|
3538
3542
|
this.checkErrorRecordReceived(recordResponse);
|
|
3539
3543
|
this.visible = true;
|
|
3544
|
+
this.enabledSections = (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.visibleSections;
|
|
3540
3545
|
this.subscribeSectionActivation();
|
|
3541
3546
|
this.subscribeFieldsSubjects();
|
|
3542
3547
|
this.subscribeActionSubjects();
|