@xuda.io/runtime-bundle 1.0.1014 → 1.0.1016
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
|
@@ -12586,7 +12586,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12586
12586
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
12587
12587
|
const init_render = async function () {
|
|
12588
12588
|
if (!value) {
|
|
12589
|
-
|
|
12589
|
+
const cloned_$div = $elm.clone(true);
|
|
12590
12590
|
|
|
12591
12591
|
const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
12592
12592
|
|
|
@@ -12702,34 +12702,44 @@ 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
|
-
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
12719
|
-
paramsP: $elm.data().xuData.paramsP,
|
|
12720
|
-
$container: $elm.clone(true),
|
|
12721
|
-
parent_infoP: parent_infoP,
|
|
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
|
+
const cloned_$div = $elm.clone(true);
|
|
12724
|
+
let original_data_obj = {
|
|
12725
|
+
force_render: false,
|
|
12726
|
+
$container: cloned_$div,
|
|
12727
|
+
nodeP: _.cloneDeep(cloned_$div.data().xuData.node_org),
|
|
12728
|
+
parent_infoP,
|
|
12729
|
+
paramsP,
|
|
12730
|
+
keyP,
|
|
12731
|
+
parent_nodeP,
|
|
12732
|
+
$root_container,
|
|
12733
|
+
};
|
|
12723
12734
|
|
|
12724
|
-
|
|
12735
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
12725
12736
|
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12737
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
12738
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
12739
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
12740
|
+
}
|
|
12741
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12729
12742
|
}
|
|
12730
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12731
|
-
|
|
12732
|
-
// }
|
|
12733
12743
|
$elm.replaceWith(tmp_$div.children());
|
|
12734
12744
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12735
12745
|
};
|
|
@@ -10311,7 +10311,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10311
10311
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
10312
10312
|
const init_render = async function () {
|
|
10313
10313
|
if (!value) {
|
|
10314
|
-
|
|
10314
|
+
const cloned_$div = $elm.clone(true);
|
|
10315
10315
|
|
|
10316
10316
|
const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
10317
10317
|
|
|
@@ -10427,34 +10427,44 @@ 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
|
-
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
10444
|
-
paramsP: $elm.data().xuData.paramsP,
|
|
10445
|
-
$container: $elm.clone(true),
|
|
10446
|
-
parent_infoP: parent_infoP,
|
|
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
|
+
const cloned_$div = $elm.clone(true);
|
|
10449
|
+
let original_data_obj = {
|
|
10450
|
+
force_render: false,
|
|
10451
|
+
$container: cloned_$div,
|
|
10452
|
+
nodeP: _.cloneDeep(cloned_$div.data().xuData.node_org),
|
|
10453
|
+
parent_infoP,
|
|
10454
|
+
paramsP,
|
|
10455
|
+
keyP,
|
|
10456
|
+
parent_nodeP,
|
|
10457
|
+
$root_container,
|
|
10458
|
+
};
|
|
10448
10459
|
|
|
10449
|
-
|
|
10460
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
10450
10461
|
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10462
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
10463
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
10464
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
10465
|
+
}
|
|
10466
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10454
10467
|
}
|
|
10455
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10456
|
-
|
|
10457
|
-
// }
|
|
10458
10468
|
$elm.replaceWith(tmp_$div.children());
|
|
10459
10469
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10460
10470
|
};
|