tuain-ng-forms-lib 12.0.26 → 12.0.30

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.
@@ -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 : null;
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) {
@@ -1931,6 +1931,8 @@
1931
1931
  ? this._fieldValue.replace(',', '') : this._fieldValue;
1932
1932
  break;
1933
1933
  default:
1934
+ console.log('Valor del campo...');
1935
+ console.log(this._fieldValue);
1934
1936
  return this._fieldValue;
1935
1937
  break;
1936
1938
  }
@@ -2110,15 +2112,15 @@
2110
2112
  var type = receivedElement.type, code = receivedElement.code;
2111
2113
  switch (type) {
2112
2114
  case elementTypes.field:
2113
- elementObject = formObject.getFieldObject(code);
2115
+ elementObject = formObject.getField(code);
2114
2116
  arrayToAdd = this.subSectionFields;
2115
2117
  break;
2116
2118
  case elementTypes.table:
2117
- elementObject = formObject.getTableObject(code);
2119
+ elementObject = formObject.getTable(code);
2118
2120
  arrayToAdd = this.subSectionTables;
2119
2121
  break;
2120
2122
  case elementTypes.action:
2121
- elementObject = formObject.getActionObject(code);
2123
+ elementObject = formObject.getAction(code);
2122
2124
  arrayToAdd = this.subSectionActions;
2123
2125
  break;
2124
2126
  }