directual-web-components-v2 3.11.322 → 3.11.323
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.
- package/dist/index.js +3 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19939,31 +19939,23 @@ function FpsForm2(props) {
|
|
|
19939
19939
|
const newModel = _extends({}, flatternModel(_extends({}, gatherDefaults(), _$1__default.get(data, "data[0]"), convertedDates, convertedBools)));
|
|
19940
19940
|
if (!_$1__default.isEqual(newModel, model)) {
|
|
19941
19941
|
submitDebouncedRef.current.cancel();
|
|
19942
|
+
console.log('[SOCKET MODEL LOG] === МОДЕЛЬ ОБНОВЛЕНА СОКЕТОМ ===');
|
|
19943
|
+
console.log('[SOCKET MODEL LOG] Старая модель:', JSON.parse(JSON.stringify(model)));
|
|
19944
|
+
console.log('[SOCKET MODEL LOG] Новая модель:', JSON.parse(JSON.stringify(newModel)));
|
|
19942
19945
|
isSocketUpdateRef.current = true;
|
|
19943
19946
|
setModel(newModel);
|
|
19944
19947
|
setOriginalModel(newModel);
|
|
19945
19948
|
}
|
|
19946
19949
|
setOriginalExtendedModel(newExtendedModel);
|
|
19947
|
-
console.log('[SOCKET/RESTORE LOG] === НАЧАЛО СОКЕТНОГО ОБНОВЛЕНИЯ ===');
|
|
19948
|
-
console.log('[SOCKET/RESTORE LOG] текущий state ДО перезаписи:', JSON.parse(JSON.stringify(state)));
|
|
19949
|
-
console.log('[SOCKET/RESTORE LOG] saveSate перед templateState:', JSON.parse(JSON.stringify(saveSate)));
|
|
19950
19950
|
const templatedState = templateState(_$1__default.get(data, "params.state"), newModel);
|
|
19951
|
-
console.log('[SOCKET/RESTORE LOG] params.state:', _$1__default.get(data, "params.state"));
|
|
19952
|
-
console.log('[SOCKET/RESTORE LOG] templateState вернул:', JSON.parse(JSON.stringify(templatedState)));
|
|
19953
19951
|
saveSate = _extends({}, saveSate, templatedState);
|
|
19954
|
-
console.log('[SOCKET/RESTORE LOG] saveSate после templateState:', JSON.parse(JSON.stringify(saveSate)));
|
|
19955
19952
|
if (_$1__default.get(params, "general.restoreState") && _$1__default.get(params, "general.saveStateTo")) {
|
|
19956
19953
|
const fieldName = _$1__default.get(params, "general.saveStateTo");
|
|
19957
19954
|
const fieldValue = newModel[fieldName];
|
|
19958
|
-
console.log('[SOCKET/RESTORE LOG] Восстанавливаем state из поля:', fieldName);
|
|
19959
|
-
console.log('[SOCKET/RESTORE LOG] Значение поля:', fieldValue);
|
|
19960
19955
|
const restoredState = parseJson(fieldValue);
|
|
19961
|
-
console.log('[SOCKET/RESTORE LOG] restoredState (распарсенный):', JSON.parse(JSON.stringify(restoredState)));
|
|
19962
19956
|
saveSate = _extends({}, saveSate, restoredState);
|
|
19963
19957
|
restoredStepRef.current = restoredState.step;
|
|
19964
19958
|
}
|
|
19965
|
-
console.log('[SOCKET/RESTORE LOG] ИТОГОВЫЙ setState с:', JSON.parse(JSON.stringify(saveSate)));
|
|
19966
|
-
console.log('[SOCKET/RESTORE LOG] === КОНЕЦ СОКЕТНОГО ОБНОВЛЕНИЯ ===');
|
|
19967
19959
|
setState(saveSate);
|
|
19968
19960
|
setInitialized(true);
|
|
19969
19961
|
}
|
|
@@ -20213,14 +20205,10 @@ function FpsForm2(props) {
|
|
|
20213
20205
|
submitMapping = [];
|
|
20214
20206
|
}
|
|
20215
20207
|
if (autoSubmit && isAutoSubmittingRef.current) {
|
|
20216
|
-
console.log('[AUTOSUBMIT LOG] Заблокирован параллельный автосабмит');
|
|
20217
20208
|
finish && finish(false);
|
|
20218
20209
|
return;
|
|
20219
20210
|
}
|
|
20220
20211
|
if (autoSubmit) {
|
|
20221
|
-
console.log('[AUTOSUBMIT LOG] === НАЧАЛО АВТОСАБМИТА ===');
|
|
20222
|
-
console.log('[AUTOSUBMIT LOG] state ДО сабмита:', JSON.parse(JSON.stringify(stateRef.current)));
|
|
20223
|
-
console.log('[AUTOSUBMIT LOG] model:', JSON.parse(JSON.stringify(currentModel || modelRef.current)));
|
|
20224
20212
|
isAutoSubmittingRef.current = true;
|
|
20225
20213
|
}
|
|
20226
20214
|
newExtendedModel = newExtendedModel || extendedModelRef.current;
|