tuain-ng-forms-lib 15.2.3 → 15.2.5

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.
@@ -1172,6 +1172,7 @@ class FieldDescriptor extends FormElement {
1172
1172
  (attrName === 'visible') && this.setVisibility(attrValue);
1173
1173
  (attrName === 'value') && (this._setValue(attrValue) && (this.hasChanged = false));
1174
1174
  (attrName === 'fieldValue') && (this._setValue(attrValue) && (this.hasChanged = false));
1175
+ (attrName === 'placeholder') && (this.placeholder = attrValue);
1175
1176
  (attrName === 'fieldOptions') && (this.options = attrValue);
1176
1177
  (attrName === 'fieldTitle') && (this.title = attrValue);
1177
1178
  (attrName === 'fieldTypeCode') && (this.type = attrValue);
@@ -2170,10 +2171,6 @@ class FormStructureAndData {
2170
2171
  this.title = (definitionReceived.form && definitionReceived.form.formTitle)
2171
2172
  ? definitionReceived.form.formTitle : '';
2172
2173
  allStates = definitionReceived?.states;
2173
- console.log('definitionReceived?.states');
2174
- console.log(definitionReceived?.states);
2175
- console.log('allStates');
2176
- console.log(allStates);
2177
2174
  this.setStateFlow(definitionReceived?.states, definitionReceived?.transitions, definitionReceived?.defaultState, definitionReceived?.stateDescriptions);
2178
2175
  this.immutableData = definitionReceived.immutableData;
2179
2176
  this.extraInfo = definitionReceived.extraInfo;
@@ -2258,13 +2255,9 @@ class FormStructureAndData {
2258
2255
  let visibleStates = objDef.visibleStates
2259
2256
  ?? (objDef.sectionModes?.split(',')?.map(state => state.trim())?.filter(state => state))
2260
2257
  ?? [];
2261
- console.log(`Sección ${objDef.sectionCode} visible 1 ${visibleStates}`);
2262
2258
  if (!Array.isArray(visibleStates) && typeof visibleStates === 'string') {
2263
- console.log(`Sección ${objDef.sectionCode} visible 1.5 ${typeof visibleStates}`);
2264
- console.log(`Sección ${objDef.sectionCode} visible 1.6 ${allStates}`);
2265
2259
  visibleStates = (visibleStates === neverVisible) ? [] : allStates;
2266
2260
  }
2267
- console.log(`Sección ${objDef.sectionCode} visible 2 ${visibleStates}`);
2268
2261
  return { ...objDef, visibleStates };
2269
2262
  });
2270
2263
  for (const sectionReceived of formSections) {