tuain-ng-forms-lib 12.0.5 → 12.0.9

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.
@@ -372,6 +372,7 @@
372
372
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
373
373
  }
374
374
 
375
+ var VALUE = '';
375
376
  var FieldComponent = /** @class */ (function () {
376
377
  function FieldComponent() {
377
378
  }
@@ -390,13 +391,20 @@
390
391
  this.fieldObject.attributeChange.subscribe(function (event) {
391
392
  var fieldAttr = event.name, value = event.value;
392
393
  var compAttr = _this.formConfig.componentFieldAttrMap[fieldAttr];
393
- _this.hasOwnProperty(compAttr) && (_this[compAttr] = value);
394
+ if (compAttr === VALUE) {
395
+ _this.updateValue();
396
+ }
397
+ else if (_this.hasOwnProperty(compAttr)) {
398
+ _this[compAttr] = value;
399
+ }
394
400
  });
395
401
  }
396
402
  this.start();
397
403
  };
398
404
  FieldComponent.prototype.start = function () { };
399
405
  FieldComponent.prototype.focus = function () { };
406
+ FieldComponent.prototype.updateValue = function () { };
407
+ FieldComponent.prototype.updateObject = function () { };
400
408
  FieldComponent.prototype.onInputChange = function () {
401
409
  var _this = this;
402
410
  setTimeout(function () { return _this.fieldObject.notifyEditionPartial(); }, 50);
@@ -935,13 +943,13 @@
935
943
  _this._recordSelectionTrigger = new rxjs.Subject();
936
944
  _this._selectionActionTrigger = new rxjs.Subject();
937
945
  _this._getDataTrigger = new rxjs.Subject();
946
+ _this._attributeChange = new rxjs.Subject();
938
947
  _this.tableRecordObj = {};
939
948
  _this._tableColumnObj = {};
940
949
  _this._actionsObj = {};
941
950
  _this.allSelected = false;
942
951
  _this.elementType = elementTypes.table;
943
952
  _this.waiting = false;
944
- _this.complexFilter = false;
945
953
  _this.currentPage = 1;
946
954
  _this.totalPages = 1;
947
955
  _this.requestedPage = 1;
@@ -949,26 +957,29 @@
949
957
  _this._tableColumnObj = {};
950
958
  _this._actions = [];
951
959
  _this._actionsObj = {};
952
- _this.filterConfig = [];
953
- _this.filterObject = new Filter();
954
960
  _this.tableRecords = [];
955
- _this.tableCode = tableReceived.tableCode;
961
+ _this.setAttr('allSelected', false);
962
+ _this.setAttr('filterObject', new Filter());
963
+ _this.setAttr('filterConfig', []);
964
+ _this.setAttr('tableCode', tableReceived.tableCode);
956
965
  _this.tableTitle = tableReceived.tableTitle;
957
- _this.clientPaging = (_a = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.clientPaging) !== null && _a !== void 0 ? _a : true;
958
- _this.simpleFilter = (_b = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.simpleFilter) !== null && _b !== void 0 ? _b : false;
966
+ _this.setAttr('clientPaging', (_a = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.clientPaging) !== null && _a !== void 0 ? _a : true);
967
+ _this.setAttr('simpleFilter', (_b = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.simpleFilter) !== null && _b !== void 0 ? _b : false);
968
+ _this.setAttr('complexFilter', false);
959
969
  _this._appendPages = (_c = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.append) !== null && _c !== void 0 ? _c : false;
960
970
  _this.selectable = (_d = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.selectable) !== null && _d !== void 0 ? _d : false;
961
- _this.selectionBackend = (_e = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.selectionBackend) !== null && _e !== void 0 ? _e : false;
971
+ _this.setAttr('selectionBackend', (_e = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.selectionBackend) !== null && _e !== void 0 ? _e : false);
962
972
  _this.customAttributes = (_f = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.customAttributes) !== null && _f !== void 0 ? _f : {};
963
- _this.sortable = (_g = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.sortable) !== null && _g !== void 0 ? _g : false;
964
- _this.sorting = { columnName: '', direction: '' };
965
- _this.recordsPerPage = formConfig.defaultRecordsPerPage;
973
+ _this.setAttr('sortable', (_g = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.sortable) !== null && _g !== void 0 ? _g : false);
974
+ _this.setAttr('sorting', { columnName: '', direction: '' });
975
+ _this.setAttr('recordsPerPage', formConfig.defaultRecordsPerPage);
966
976
  if (tableReceived.fields) {
977
+ var columns = [];
967
978
  try {
968
979
  for (var _l = __values(tableReceived.fields), _m = _l.next(); !_m.done; _m = _l.next()) {
969
980
  var columnReceived = _m.value;
970
981
  var columnDefinition = new RecordTableColumn(columnReceived, _this._formConfig);
971
- _this.columns.push(columnDefinition);
982
+ columns.push(columnDefinition);
972
983
  _this._tableColumnObj[columnDefinition.fieldCode] = columnDefinition;
973
984
  }
974
985
  }
@@ -979,6 +990,7 @@
979
990
  }
980
991
  finally { if (e_1) throw e_1.error; }
981
992
  }
993
+ _this.setAttr('columns', columns);
982
994
  }
983
995
  if (tableReceived.actions) {
984
996
  var tableActions = tableReceived.actions.map(function (objDef) {
@@ -1011,12 +1023,13 @@
1011
1023
  }
1012
1024
  }
1013
1025
  if (tableReceived.filters && tableReceived.filters.length > 0) {
1014
- _this.complexFilter = true;
1026
+ _this.setAttr('complexFilter', true);
1027
+ var filterConfig = _this.filterConfig;
1015
1028
  try {
1016
1029
  for (var _o = __values(tableReceived.filters), _p = _o.next(); !_p.done; _p = _o.next()) {
1017
1030
  var filterReceived = _p.value;
1018
1031
  var filterItem = new FieldSearch(filterReceived);
1019
- _this.filterConfig.push(filterItem);
1032
+ filterConfig.push(filterItem);
1020
1033
  }
1021
1034
  }
1022
1035
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
@@ -1026,6 +1039,7 @@
1026
1039
  }
1027
1040
  finally { if (e_3) throw e_3.error; }
1028
1041
  }
1042
+ _this.setAttr('filterConfig', filterConfig);
1029
1043
  }
1030
1044
  if (_this.selectable) {
1031
1045
  _this.selectionField = _this.columns
@@ -1058,6 +1072,11 @@
1058
1072
  enumerable: false,
1059
1073
  configurable: true
1060
1074
  });
1075
+ Object.defineProperty(RecordTable.prototype, "attributeChange", {
1076
+ get: function () { return this._attributeChange; },
1077
+ enumerable: false,
1078
+ configurable: true
1079
+ });
1061
1080
  Object.defineProperty(RecordTable.prototype, "hasActions", {
1062
1081
  get: function () { return (this._actions.length > 0); },
1063
1082
  enumerable: false,
@@ -1087,6 +1106,12 @@
1087
1106
  enumerable: false,
1088
1107
  configurable: true
1089
1108
  });
1109
+ RecordTable.prototype.setAttr = function (name, value) {
1110
+ this[name] = value;
1111
+ if (this._formConfig.monitoredTableAttributes.includes(name)) {
1112
+ this._attributeChange.next({ name: name, value: value });
1113
+ }
1114
+ };
1090
1115
  RecordTable.prototype.appendRecords = function (records) { this.setTableRecords(records, true); };
1091
1116
  RecordTable.prototype.replaceRecords = function (records) { this.setTableRecords(records, false); };
1092
1117
  RecordTable.prototype.columnDefinition = function (fieldCode) { return this._tableColumnObj[fieldCode]; };
@@ -1154,11 +1179,11 @@
1154
1179
  this.tableRecordObj = {};
1155
1180
  };
1156
1181
  RecordTable.prototype.selectAll = function () {
1157
- this.allSelected = true;
1182
+ this.setAttr('allSelected', true);
1158
1183
  this.tableRecords.forEach(function (record) { return record.select(); });
1159
1184
  };
1160
1185
  RecordTable.prototype.unSelectAll = function () {
1161
- this.allSelected = false;
1186
+ this.setAttr('allSelected', false);
1162
1187
  this.tableRecords.forEach(function (record) { return record.unselect(); });
1163
1188
  };
1164
1189
  RecordTable.prototype.setTableRecords = function (tableRecords, append) {
@@ -1192,21 +1217,24 @@
1192
1217
  RecordTable.prototype.updateVisibleRecords = function () {
1193
1218
  var _this = this;
1194
1219
  if (!this.clientPaging || !this.tableRecords || this.tableRecords.length === 0) {
1195
- this.visibleRecords = this.tableRecords;
1220
+ this.setAttr('visibleRecords', this.tableRecords);
1196
1221
  }
1197
- this.visibleRecords = (this.filterObject.filterModeSimple)
1222
+ var recordsVisible = (this.filterObject.filterModeSimple)
1198
1223
  ? this.tableRecords.filter(function (record) { return record.hasPattern(_this.filterObject.simpleFilterWords); })
1199
1224
  : this.tableRecords.filter(function (record) { return record.hasCondition(_this.filterObject.advancedFilter); });
1225
+ this.setAttr('visibleRecords', recordsVisible);
1200
1226
  };
1201
1227
  RecordTable.prototype.updateFromServer = function (tableReceived) {
1202
1228
  this.visible = (tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.visible) || true;
1203
- this.currentPage = parseInt(tableReceived.currentPage, 10) || 1;
1229
+ this.setAttr('currentPage', parseInt(tableReceived.currentPage, 10) || 1);
1204
1230
  this.totalPages = tableReceived.totalPages || 1;
1205
- this.recordsPerPage = tableReceived.recordsPerPage;
1231
+ this.setAttr('recordsPerPage', tableReceived.recordsPerPage);
1206
1232
  this.recordsNumber = tableReceived.recordsNumber;
1207
- this.totalRecordsNumber = tableReceived.totalRecordsNumber;
1208
- this.sorting.columnName = tableReceived.sortingColumn || '';
1209
- this.sorting.direction = tableReceived.sortingDirection || '';
1233
+ this.setAttr('totalRecordsNumber', tableReceived.totalRecordsNumber);
1234
+ this.setAttr('sorting', {
1235
+ columnName: tableReceived.sortingColumn || '',
1236
+ direction: tableReceived.sortingDirection || ''
1237
+ });
1210
1238
  this.requestedPage = 1;
1211
1239
  this.waiting = false;
1212
1240
  this.clean();
@@ -1301,16 +1329,15 @@
1301
1329
  // Ordenamiento
1302
1330
  RecordTable.prototype.setRequiredOrder = function (columnField) {
1303
1331
  if (columnField !== this.sorting.columnName) {
1304
- this.sorting.columnName = columnField;
1305
- this.sorting.direction = TABLE_SORT_ASCENDING;
1332
+ this.setAttr('sorting', {
1333
+ columnName: columnField,
1334
+ direction: TABLE_SORT_ASCENDING
1335
+ });
1306
1336
  }
1307
1337
  else {
1308
- if (this.sorting.direction === TABLE_SORT_ASCENDING) {
1309
- this.sorting.direction = TABLE_SORT_DESCENDING;
1310
- }
1311
- else {
1312
- this.sorting.direction = TABLE_SORT_ASCENDING;
1313
- }
1338
+ var tableSort = this.sorting;
1339
+ tableSort.direction = (tableSort.direction === TABLE_SORT_ASCENDING) ? TABLE_SORT_DESCENDING : TABLE_SORT_ASCENDING;
1340
+ this.setAttr('sorting', tableSort);
1314
1341
  }
1315
1342
  };
1316
1343
  RecordTable.prototype.localSortData = function () {
@@ -1494,15 +1521,30 @@
1494
1521
  this.hasActions = false;
1495
1522
  }
1496
1523
  LibTableComponent.prototype.ngOnInit = function () {
1497
- var _a;
1498
- this.formConfig = (_a = this.tableObject) === null || _a === void 0 ? void 0 : _a._formConfig;
1499
- this.tableFieldStyles = this.formConfig.tableFieldStyles;
1500
- this.selectable = this.tableObject.selectable;
1501
- this.hasActions = this.tableObject.hasActions;
1502
- this.tableObject.widget = this;
1503
- this.inlineActions = this.tableObject.getActions(this.formConfig.tableActions.inline);
1504
- this.globalActions = this.tableObject.getActions(this.formConfig.tableActions.global);
1505
- this.selectionActions = this.tableObject.getActions(this.formConfig.tableActions.selection);
1524
+ var _this = this;
1525
+ var _a, _b;
1526
+ if (this.tableObject) {
1527
+ this.formConfig = (_a = this.tableObject) === null || _a === void 0 ? void 0 : _a._formConfig;
1528
+ this.tableFieldStyles = this.formConfig.tableFieldStyles;
1529
+ this.selectable = this.tableObject.selectable;
1530
+ this.hasActions = this.tableObject.hasActions;
1531
+ this.tableObject.widget = this;
1532
+ this.inlineActions = this.tableObject.getActions(this.formConfig.tableActions.inline);
1533
+ this.globalActions = this.tableObject.getActions(this.formConfig.tableActions.global);
1534
+ this.selectionActions = this.tableObject.getActions(this.formConfig.tableActions.selection);
1535
+ // Inicialización de campos mapeados del objeto
1536
+ var mapping = Object.entries(this.formConfig.componentTableAttrMap);
1537
+ for (var index = 0; index < mapping.length; index++) {
1538
+ var _c = __read(mapping[index], 2), tableAttr = _c[0], compAttr = _c[1];
1539
+ this[compAttr.toString()] = (_b = this.tableObject) === null || _b === void 0 ? void 0 : _b[tableAttr.toString()];
1540
+ }
1541
+ // Subscripción a cambios en atributos
1542
+ this.tableObject.attributeChange.subscribe(function (event) {
1543
+ var tableAttr = event.name, value = event.value;
1544
+ var compAttr = _this.formConfig.componentTableAttrMap[tableAttr];
1545
+ _this.hasOwnProperty(compAttr) && (_this[compAttr] = value);
1546
+ });
1547
+ }
1506
1548
  this.start();
1507
1549
  };
1508
1550
  LibTableComponent.prototype.start = function () { };
@@ -1517,23 +1559,23 @@
1517
1559
  };
1518
1560
  LibTableComponent.prototype.tableColumnSort = function (columnFieldCode) {
1519
1561
  this.tableObject.setRequiredOrder(columnFieldCode);
1520
- if (this.tableObject.clientPaging) {
1562
+ if (this.clientPaging) {
1521
1563
  return this.tableObject.localSortData();
1522
1564
  }
1523
1565
  this.tableObject.notifyGetDataAction();
1524
1566
  };
1525
1567
  LibTableComponent.prototype.changePage = function (requestedPage) {
1526
- if (!this.tableObject.clientPaging) {
1568
+ if (!this.clientPaging) {
1527
1569
  this.tableObject.notifyGetDataAction(requestedPage);
1528
1570
  }
1529
1571
  };
1530
1572
  Object.defineProperty(LibTableComponent.prototype, "records", {
1531
1573
  get: function () {
1532
- var currentPageRecords = this.tableObject.records;
1533
- if (this.tableObject.clientPaging && currentPageRecords && currentPageRecords.length > 0) {
1534
- this.tableObject.totalRecordsNumber = currentPageRecords.length;
1574
+ var currentPageRecords = this.visibleRecords;
1575
+ if (this.clientPaging && currentPageRecords && currentPageRecords.length > 0) {
1576
+ this.totalRecordsNumber = currentPageRecords.length;
1535
1577
  return currentPageRecords.map(function (record, i) { return (Object.assign({ id: i + 1 }, record)); })
1536
- .slice((this.tableObject.currentPage - 1) * this.tableObject.recordsPerPage, (this.tableObject.currentPage - 1) * this.tableObject.recordsPerPage + this.tableObject.recordsPerPage);
1578
+ .slice((this.currentPage - 1) * this.recordsPerPage, (this.currentPage - 1) * this.recordsPerPage + this.recordsPerPage);
1537
1579
  }
1538
1580
  return currentPageRecords;
1539
1581
  },
@@ -1545,8 +1587,8 @@
1545
1587
  var triggerDataUpdate = false;
1546
1588
  if (eventType === TABLE_FILTER_TYPES.simpleFilterChange || eventType === TABLE_FILTER_TYPES.simpleFilterFinish) {
1547
1589
  this.tableObject.simpleFilterText = tableFilterEvent.simpleFilterString.trim();
1548
- if (this.tableObject.clientPaging) {
1549
- this.tableObject.currentPage = 1;
1590
+ if (this.clientPaging) {
1591
+ this.tableObject.setAttr('currentPage', 1);
1550
1592
  this.tableObject.updateVisibleRecords();
1551
1593
  }
1552
1594
  else if (eventType === TABLE_FILTER_TYPES.simpleFilterFinish) {
@@ -1571,13 +1613,27 @@
1571
1613
  this.tableObject.notifyRecordSelection(recordId);
1572
1614
  };
1573
1615
  LibTableComponent.prototype.toggleSelectAll = function () {
1574
- if (this.tableObject.allSelected) {
1616
+ if (this.allSelected) {
1575
1617
  this.tableObject.unSelectAll();
1576
1618
  }
1577
1619
  else {
1578
1620
  this.tableObject.selectAll();
1579
1621
  }
1580
1622
  };
1623
+ Object.defineProperty(LibTableComponent.prototype, "availableFilters", {
1624
+ get: function () {
1625
+ return this.tableObject.availableFilters;
1626
+ },
1627
+ enumerable: false,
1628
+ configurable: true
1629
+ });
1630
+ Object.defineProperty(LibTableComponent.prototype, "selectedRecords", {
1631
+ get: function () {
1632
+ return this.tableObject.selectedRecords;
1633
+ },
1634
+ enumerable: false,
1635
+ configurable: true
1636
+ });
1581
1637
  return LibTableComponent;
1582
1638
  }());
1583
1639
  LibTableComponent.decorators = [
@@ -2112,7 +2168,8 @@
2112
2168
  return (_b = this._fieldValue) !== null && _b !== void 0 ? _b : false;
2113
2169
  break;
2114
2170
  case this._formConfig.fieldTypes.currency:
2115
- return this._fieldValue.replace(',', '');
2171
+ return (typeof this._fieldValue === 'string')
2172
+ ? this._fieldValue.replace(',', '') : this._fieldValue;
2116
2173
  break;
2117
2174
  default:
2118
2175
  return this._fieldValue;
@@ -2125,20 +2182,20 @@
2125
2182
  for (var index = 0; index < fieldKeys.length; index++) {
2126
2183
  var attrName = fieldKeys[index];
2127
2184
  var attrValue = fld[attrName];
2128
- (attrName === this._formConfig.apifieldattrs.visible) && this.setVisibility(attrValue);
2129
- (attrName === this._formConfig.apifieldattrs.labelVisible) && this.setVisibleLabel(fld.visibleLabel);
2130
- (attrName === this._formConfig.apifieldattrs.required) && this.setAttr(fldAttr.required, (_a = fld.required) !== null && _a !== void 0 ? _a : false);
2131
- (attrName === this._formConfig.apifieldattrs.errorCode) && this.setAttr(fldAttr.errorCode, fld.errorCode);
2132
- (attrName === this._formConfig.apifieldattrs.errorMessage) && this.setAttr(fldAttr.errorMessage, fld.errorMessage);
2133
- (attrName === this._formConfig.apifieldattrs.tooltip) && this.setAttr(fldAttr.tooltipText, fld.tooltip);
2134
- (attrName === this._formConfig.apifieldattrs.info) && this.setAttr(fldAttr.info, fld.info);
2135
- (attrName === this._formConfig.apifieldattrs.editable) && this.setEditable(fld.editable);
2136
- (attrName === this._formConfig.apifieldattrs.title) && this.setLabel(fld.fieldTitle.toString());
2137
- (attrName === this._formConfig.apifieldattrs.value) && (this.setValue(fld.fieldValue) && this.setChanged(false));
2138
- (attrName === this._formConfig.apifieldattrs.options) && this.setFieldOptions(fld.fieldOptions);
2139
- (attrName === this._formConfig.apifieldattrs.captureType) && this.setAttr(fldAttr.captureType, fld.captureType || 'INPUT');
2140
- (attrName === this._formConfig.apifieldattrs.type) && this.setFieldType(fld.fieldTypeCode);
2141
- (attrName === this._formConfig.apifieldattrs.maxLength) && this.setAttr(fldAttr.maxLength, fld.maxLength);
2185
+ (attrName === this._formConfig.apiFieldAttrs.visible) && this.setVisibility(attrValue);
2186
+ (attrName === this._formConfig.apiFieldAttrs.labelVisible) && this.setVisibleLabel(fld.visibleLabel);
2187
+ (attrName === this._formConfig.apiFieldAttrs.required) && this.setAttr(fldAttr.required, (_a = fld.required) !== null && _a !== void 0 ? _a : false);
2188
+ (attrName === this._formConfig.apiFieldAttrs.errorCode) && this.setAttr(fldAttr.errorCode, fld.errorCode);
2189
+ (attrName === this._formConfig.apiFieldAttrs.errorMessage) && this.setAttr(fldAttr.errorMessage, fld.errorMessage);
2190
+ (attrName === this._formConfig.apiFieldAttrs.tooltip) && this.setAttr(fldAttr.tooltipText, fld.tooltip);
2191
+ (attrName === this._formConfig.apiFieldAttrs.info) && this.setAttr(fldAttr.info, fld.info);
2192
+ (attrName === this._formConfig.apiFieldAttrs.editable) && this.setEditable(fld.editable);
2193
+ (attrName === this._formConfig.apiFieldAttrs.title) && this.setLabel(fld.fieldTitle.toString());
2194
+ (attrName === this._formConfig.apiFieldAttrs.value) && (this.setValue(fld.fieldValue) && this.setChanged(false));
2195
+ (attrName === this._formConfig.apiFieldAttrs.options) && this.setFieldOptions(fld.fieldOptions);
2196
+ (attrName === this._formConfig.apiFieldAttrs.captureType) && this.setAttr(fldAttr.captureType, fld.captureType || 'INPUT');
2197
+ (attrName === this._formConfig.apiFieldAttrs.type) && this.setFieldType(fld.fieldTypeCode);
2198
+ (attrName === this._formConfig.apiFieldAttrs.maxLength) && this.setAttr(fldAttr.maxLength, fld.maxLength);
2142
2199
  }
2143
2200
  };
2144
2201
  FieldDescriptor.prototype.setFieldType = function (inputFieldType) {
@@ -2552,6 +2609,13 @@
2552
2609
  FormStructureAndData.prototype.getSections = function () {
2553
2610
  return this._sections;
2554
2611
  };
2612
+ Object.defineProperty(FormStructureAndData.prototype, "visibleSections", {
2613
+ get: function () {
2614
+ return this._sections.filter(function (sec) { return sec.visible; });
2615
+ },
2616
+ enumerable: false,
2617
+ configurable: true
2618
+ });
2555
2619
  FormStructureAndData.prototype.numSections = function () {
2556
2620
  return this._sections.length;
2557
2621
  };
@@ -3344,6 +3408,11 @@
3344
3408
  BasicFormComponent.prototype.disableActions = function (actionArray) { return this.formStructure.disableActions(actionArray); };
3345
3409
  BasicFormComponent.prototype.getStates = function () { return this.formStructure.getStates(); };
3346
3410
  BasicFormComponent.prototype.getSections = function () { return this.formStructure.getSections(); };
3411
+ Object.defineProperty(BasicFormComponent.prototype, "visibleSections", {
3412
+ get: function () { return this.formStructure.visibleSections; },
3413
+ enumerable: false,
3414
+ configurable: true
3415
+ });
3347
3416
  BasicFormComponent.prototype.getSection = function (sectionCode) { return this.formStructure.getSection(sectionCode); };
3348
3417
  BasicFormComponent.prototype.activateSection = function (sectionCode) { return this.formStructure.activateSection(sectionCode); };
3349
3418
  BasicFormComponent.prototype.getSubSection = function (sectionCode, subsectionCode) { return this.formStructure.getSubSection(sectionCode, subsectionCode); };
@@ -3443,7 +3512,7 @@
3443
3512
  this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN]) !== null && _a !== void 0 ? _a : null;
3444
3513
  var _j = this.formManagerService.getFormInfo(this.controlToken), token = _j.token, subject = _j.subject, state = _j.state, fields = _j.fields, extra = _j.extra, originToken = _j.originToken;
3445
3514
  if (!this.controlToken || this.controlToken !== token) {
3446
- console.log("No se obtuvo un token v\u00E1lido para abrir el formulario " + this.controlToken + "->" + token);
3515
+ return;
3447
3516
  }
3448
3517
  this.formSubject = (_c = (_b = params === null || params === void 0 ? void 0 : params[SUBJECT]) !== null && _b !== void 0 ? _b : subject) !== null && _c !== void 0 ? _c : null;
3449
3518
  this.inputDataFields = fields;