tuain-ng-forms-lib 15.2.1 → 15.2.2
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.
|
@@ -2170,6 +2170,10 @@ class FormStructureAndData {
|
|
|
2170
2170
|
this.title = (definitionReceived.form && definitionReceived.form.formTitle)
|
|
2171
2171
|
? definitionReceived.form.formTitle : '';
|
|
2172
2172
|
allStates = definitionReceived?.states?.map(sttInfo => sttInfo.name);
|
|
2173
|
+
console.log('definitionReceived?.states');
|
|
2174
|
+
console.log(definitionReceived?.states);
|
|
2175
|
+
console.log('allStates');
|
|
2176
|
+
console.log(allStates);
|
|
2173
2177
|
this.setStateFlow(definitionReceived?.states, definitionReceived?.transitions, definitionReceived?.defaultState, definitionReceived?.stateDescriptions);
|
|
2174
2178
|
this.immutableData = definitionReceived.immutableData;
|
|
2175
2179
|
this.extraInfo = definitionReceived.extraInfo;
|
|
@@ -2254,9 +2258,13 @@ class FormStructureAndData {
|
|
|
2254
2258
|
let visibleStates = objDef.visibleStates
|
|
2255
2259
|
?? (objDef.sectionModes?.split(',')?.map(state => state.trim())?.filter(state => state))
|
|
2256
2260
|
?? [];
|
|
2261
|
+
console.log(`Sección ${objDef.sectionCode} visible 1 ${visibleStates}`);
|
|
2257
2262
|
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}`);
|
|
2258
2265
|
visibleStates = (visibleStates === neverVisible) ? [] : allStates;
|
|
2259
2266
|
}
|
|
2267
|
+
console.log(`Sección ${objDef.sectionCode} visible 2 ${visibleStates}`);
|
|
2260
2268
|
return { ...objDef, visibleStates };
|
|
2261
2269
|
});
|
|
2262
2270
|
for (const sectionReceived of formSections) {
|