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.
@@ -294,7 +294,7 @@ class FormElement {
294
294
  this.disabled = (_a = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.disabled) !== null && _a !== void 0 ? _a : false;
295
295
  this.setVisibility((_b = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.visible) !== null && _b !== void 0 ? _b : true);
296
296
  this.widget = null;
297
- this.customAttributes = (_c = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.customAttributes) !== null && _c !== void 0 ? _c : null;
297
+ this.customAttributes = (_c = elementDefinition === null || elementDefinition === void 0 ? void 0 : elementDefinition.customAttributes) !== null && _c !== void 0 ? _c : {};
298
298
  }
299
299
  getCustomAttribute(name) { var _a, _b; return (_b = (_a = this.customAttributes) === null || _a === void 0 ? void 0 : _a[name]) !== null && _b !== void 0 ? _b : null; }
300
300
  setCustomAttribute(name, value) { if (name) {
@@ -1318,6 +1318,8 @@ class FieldDescriptor extends FormElement {
1318
1318
  ? this._fieldValue.replace(',', '') : this._fieldValue;
1319
1319
  break;
1320
1320
  default:
1321
+ console.log('Valor del campo...');
1322
+ console.log(this._fieldValue);
1321
1323
  return this._fieldValue;
1322
1324
  break;
1323
1325
  }
@@ -1491,15 +1493,15 @@ class RecordFormSubSection {
1491
1493
  const { type, code } = receivedElement;
1492
1494
  switch (type) {
1493
1495
  case elementTypes.field:
1494
- elementObject = formObject.getFieldObject(code);
1496
+ elementObject = formObject.getField(code);
1495
1497
  arrayToAdd = this.subSectionFields;
1496
1498
  break;
1497
1499
  case elementTypes.table:
1498
- elementObject = formObject.getTableObject(code);
1500
+ elementObject = formObject.getTable(code);
1499
1501
  arrayToAdd = this.subSectionTables;
1500
1502
  break;
1501
1503
  case elementTypes.action:
1502
- elementObject = formObject.getActionObject(code);
1504
+ elementObject = formObject.getAction(code);
1503
1505
  arrayToAdd = this.subSectionActions;
1504
1506
  break;
1505
1507
  }