tuain-ng-forms-lib 12.0.10 → 12.0.11

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.
@@ -2600,6 +2600,11 @@
2600
2600
  ? this._sectionsObj[sectionCode] : null;
2601
2601
  return (section) ? section.getSubsection(subsectionCode) : null;
2602
2602
  };
2603
+ Object.defineProperty(FormStructureAndData.prototype, "actions", {
2604
+ get: function () { return this.getActions(); },
2605
+ enumerable: false,
2606
+ configurable: true
2607
+ });
2603
2608
  FormStructureAndData.prototype.getSection = function (sectionCode) {
2604
2609
  return (this._sectionsObj && this._sectionsObj[sectionCode])
2605
2610
  ? this._sectionsObj[sectionCode] : null;
@@ -2784,6 +2789,11 @@
2784
2789
  var actionNames = (Array.isArray(actionArray)) ? actionArray : [actionArray];
2785
2790
  actionNames.forEach(function (actionCode) { return _this.disableAction(actionCode); });
2786
2791
  };
2792
+ Object.defineProperty(FormStructureAndData.prototype, "fields", {
2793
+ get: function () { return this.getFields(); },
2794
+ enumerable: false,
2795
+ configurable: true
2796
+ });
2787
2797
  FormStructureAndData.prototype.enableField = function (fieldCode) {
2788
2798
  var fieldObject = this.getFieldObject(fieldCode);
2789
2799
  return (fieldObject) ? fieldObject.enable() : null;
@@ -3273,6 +3283,8 @@
3273
3283
  this.errorMessage = '';
3274
3284
  this.errorDetail = '';
3275
3285
  this.formStructure = null;
3286
+ this.fields = null;
3287
+ this.actions = null;
3276
3288
  this.controlToken = null;
3277
3289
  this.inputDataFields = {};
3278
3290
  this.definitionObtained = false;
@@ -3586,6 +3598,8 @@
3586
3598
  formDefinition = _j.sent();
3587
3599
  this.inServerProcess = false;
3588
3600
  this.formStructure = new FormStructureAndData(formDefinition, this.formConfig);
3601
+ this.fields = this.formStructure.fields;
3602
+ this.actions = this.formStructure.actions;
3589
3603
  this.definitionObtained = true;
3590
3604
  return [3 /*break*/, 3];
3591
3605
  case 2: