@xuda.io/runtime-bundle 1.0.1014 → 1.0.1015
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/js/xuda-runtime-slim.js
CHANGED
|
@@ -12702,34 +12702,33 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12702
12702
|
|
|
12703
12703
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
12704
12704
|
// // was true before
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12705
|
+
if ($elm.data().xuData.xurender_node) {
|
|
12706
|
+
$xurender.data({
|
|
12707
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
12708
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
12709
|
+
});
|
|
12710
|
+
} else {
|
|
12711
|
+
// default new state
|
|
12712
|
+
|
|
12713
|
+
$xurender.data({
|
|
12714
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
12715
|
+
xuData: $elm.data().xuData || {},
|
|
12716
|
+
});
|
|
12717
|
+
const original_data_obj = {
|
|
12718
|
+
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
12719
|
+
paramsP: $elm.data().xuData.paramsP,
|
|
12720
|
+
$container: $elm.clone(true),
|
|
12721
|
+
parent_infoP: parent_infoP,
|
|
12722
|
+
};
|
|
12723
12723
|
|
|
12724
|
-
|
|
12724
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
12725
12725
|
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12726
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
12727
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
12728
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
12729
|
+
}
|
|
12730
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12729
12731
|
}
|
|
12730
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12731
|
-
|
|
12732
|
-
// }
|
|
12733
12732
|
$elm.replaceWith(tmp_$div.children());
|
|
12734
12733
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12735
12734
|
};
|
|
@@ -10427,34 +10427,33 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10427
10427
|
|
|
10428
10428
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
10429
10429
|
// // was true before
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10430
|
+
if ($elm.data().xuData.xurender_node) {
|
|
10431
|
+
$xurender.data({
|
|
10432
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
10433
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
10434
|
+
});
|
|
10435
|
+
} else {
|
|
10436
|
+
// default new state
|
|
10437
|
+
|
|
10438
|
+
$xurender.data({
|
|
10439
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
10440
|
+
xuData: $elm.data().xuData || {},
|
|
10441
|
+
});
|
|
10442
|
+
const original_data_obj = {
|
|
10443
|
+
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
10444
|
+
paramsP: $elm.data().xuData.paramsP,
|
|
10445
|
+
$container: $elm.clone(true),
|
|
10446
|
+
parent_infoP: parent_infoP,
|
|
10447
|
+
};
|
|
10448
10448
|
|
|
10449
|
-
|
|
10449
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
10450
10450
|
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10451
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
10452
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
10453
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
10454
|
+
}
|
|
10455
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10454
10456
|
}
|
|
10455
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10456
|
-
|
|
10457
|
-
// }
|
|
10458
10457
|
$elm.replaceWith(tmp_$div.children());
|
|
10459
10458
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10460
10459
|
};
|