tuain-ng-forms-lib 12.0.27 → 12.0.31
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 +5 -5
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/element.js +2 -2
- package/esm2015/lib/classes/forms/form.js +2 -2
- package/esm2015/lib/classes/forms/subsection.js +4 -4
- package/fesm2015/tuain-ng-forms-lib.js +5 -5
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
this.disabled = (_a = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.disabled) !== null && _a !== void 0 ? _a : false;
|
|
658
658
|
this.setVisibility((_b = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.visible) !== null && _b !== void 0 ? _b : true);
|
|
659
659
|
this.widget = null;
|
|
660
|
-
this.customAttributes = (_c = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.customAttributes) !== null && _c !== void 0 ? _c :
|
|
660
|
+
this.customAttributes = (_c = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.customAttributes) !== null && _c !== void 0 ? _c : {};
|
|
661
661
|
}
|
|
662
662
|
FormElement.prototype.getCustomAttribute = function (name) { var _a, _b; return (_b = (_a = this.customAttributes) === null || _a === void 0 ? void 0 : _a[name]) !== null && _b !== void 0 ? _b : null; };
|
|
663
663
|
FormElement.prototype.setCustomAttribute = function (name, value) {
|
|
@@ -2110,15 +2110,15 @@
|
|
|
2110
2110
|
var type = receivedElement.type, code = receivedElement.code;
|
|
2111
2111
|
switch (type) {
|
|
2112
2112
|
case elementTypes.field:
|
|
2113
|
-
elementObject = formObject.
|
|
2113
|
+
elementObject = formObject.getField(code);
|
|
2114
2114
|
arrayToAdd = this.subSectionFields;
|
|
2115
2115
|
break;
|
|
2116
2116
|
case elementTypes.table:
|
|
2117
|
-
elementObject = formObject.
|
|
2117
|
+
elementObject = formObject.getTable(code);
|
|
2118
2118
|
arrayToAdd = this.subSectionTables;
|
|
2119
2119
|
break;
|
|
2120
2120
|
case elementTypes.action:
|
|
2121
|
-
elementObject = formObject.
|
|
2121
|
+
elementObject = formObject.getAction(code);
|
|
2122
2122
|
arrayToAdd = this.subSectionActions;
|
|
2123
2123
|
break;
|
|
2124
2124
|
}
|
|
@@ -2583,7 +2583,7 @@
|
|
|
2583
2583
|
FormStructureAndData.prototype.getField = function (code) { var _a; return (code && ((_a = this._fields) === null || _a === void 0 ? void 0 : _a[code])) ? this._fields[code] : null; };
|
|
2584
2584
|
FormStructureAndData.prototype.enableField = function (code) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.enable(); };
|
|
2585
2585
|
FormStructureAndData.prototype.disableField = function (code) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.disable(); };
|
|
2586
|
-
FormStructureAndData.prototype.getFieldValue = function (code) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.getValue(); };
|
|
2586
|
+
FormStructureAndData.prototype.getFieldValue = function (code) { var _a; return (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.getValue(); };
|
|
2587
2587
|
FormStructureAndData.prototype.getFieldOptions = function (code) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.getFieldOptions(); };
|
|
2588
2588
|
FormStructureAndData.prototype.setFieldValue = function (code, value) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.setValue(value); };
|
|
2589
2589
|
FormStructureAndData.prototype.setFieldError = function (code, message, type) {
|