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