tuain-ng-forms-lib 12.0.47 → 12.0.51

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.
@@ -587,7 +587,7 @@
587
587
  },] }
588
588
  ];
589
589
  SectionComponent.propDecorators = {
590
- sectionObject: [{ type: core.Input }],
590
+ section: [{ type: core.Input }],
591
591
  formManager: [{ type: core.Input }]
592
592
  };
593
593
 
@@ -1177,6 +1177,7 @@
1177
1177
  this._getDataTrigger.next(tableEvent);
1178
1178
  };
1179
1179
  RecordTable.prototype.clean = function () {
1180
+ this.visibleRecords = [];
1180
1181
  this.tableRecords = [];
1181
1182
  this.tableRecordObj = {};
1182
1183
  };
@@ -2620,10 +2621,10 @@
2620
2621
  FormStructureAndData.prototype.getFieldOptionText = function (code) { var _a; return (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.getOptionText(); };
2621
2622
  FormStructureAndData.prototype.getFieldOptions = function (code) { var _a, _b; return (_b = (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.getFieldOptions()) !== null && _b !== void 0 ? _b : null; };
2622
2623
  FormStructureAndData.prototype.setFieldValue = function (code, value) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.setValue(value); };
2623
- FormStructureAndData.prototype.setFieldError = function (code, message, type) {
2624
+ FormStructureAndData.prototype.setFieldError = function (code, errorCode, message, type) {
2624
2625
  if (type === void 0) { type = 'error'; }
2625
2626
  var _a;
2626
- (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.setError(code, message, type);
2627
+ (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.setError(errorCode, message, type);
2627
2628
  };
2628
2629
  FormStructureAndData.prototype.setFieldIntrinsicErrorMessage = function (code, message) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.setIntrinsicErrorMessage(message); };
2629
2630
  FormStructureAndData.prototype.setFieldRequired = function (code, required) { var _a; (_a = this.getField(code)) === null || _a === void 0 ? void 0 : _a.setRequired(required); };
@@ -2798,11 +2799,11 @@
2798
2799
  };
2799
2800
  Object.defineProperty(FormStructureAndData.prototype, "sections", {
2800
2801
  // Secciones
2801
- get: function () { return this._sectionArray; },
2802
+ get: function () { return this._sections; },
2802
2803
  enumerable: false,
2803
2804
  configurable: true
2804
2805
  });
2805
- FormStructureAndData.prototype.getSections = function () { return this.sections; };
2806
+ FormStructureAndData.prototype.getSections = function () { return this._sectionArray; };
2806
2807
  FormStructureAndData.prototype.getSectionsByAttribute = function (name, value) { return this._sectionArray.filter(function (item) { return item.matchAttribute(name, value); }); };
2807
2808
  Object.defineProperty(FormStructureAndData.prototype, "sectionTitles", {
2808
2809
  get: function () { return this._sectionArray.map(function (formSection) { return formSection.sectionTitle; }); },
@@ -3105,7 +3106,7 @@
3105
3106
  BasicFormComponent.prototype.setFieldValue = function (code, value) { var _a; return (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.setFieldValue(code, value); };
3106
3107
  BasicFormComponent.prototype.setFieldRequired = function (code, required) { var _a; return (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.setFieldRequired(code, required); };
3107
3108
  BasicFormComponent.prototype.setFieldErrorMessage = function (code, errorMessage) { var _a; return (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.setFieldErrorMessage(code, errorMessage); };
3108
- BasicFormComponent.prototype.setFieldError = function (code, message, type) { var _a; return (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.setFieldError(code, message, type); };
3109
+ BasicFormComponent.prototype.setFieldError = function (code, errorCode, message, type) { var _a; return (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.setFieldError(code, errorCode, message, type); };
3109
3110
  BasicFormComponent.prototype.setFieldIntrinsicErrorMessage = function (code, message) {
3110
3111
  var _a;
3111
3112
  return (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.setFieldIntrinsicErrorMessage(code, message);
@@ -3341,6 +3342,7 @@
3341
3342
  this._formStructure = null;
3342
3343
  this.fields = null;
3343
3344
  this.actions = null;
3345
+ this.sections = null;
3344
3346
  this._controlToken = null;
3345
3347
  this.inputDataFields = {};
3346
3348
  this._definitionObtained = false;
@@ -3592,6 +3594,7 @@
3592
3594
  this._formStructure = new FormStructureAndData(formDefinition, this.formConfig);
3593
3595
  this.fields = this._formStructure.fields;
3594
3596
  this.actions = this._formStructure.actions;
3597
+ this.sections = this._formStructure.sections;
3595
3598
  this._definitionObtained = true;
3596
3599
  return [3 /*break*/, 3];
3597
3600
  case 2: