@xuda.io/runtime-bundle 1.0.1025 → 1.0.1027
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.
|
@@ -32395,57 +32395,66 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32395
32395
|
|
|
32396
32396
|
/////////// !value ///////////
|
|
32397
32397
|
|
|
32398
|
-
|
|
32399
|
-
|
|
32400
|
-
|
|
32398
|
+
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32399
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32400
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
32401
32401
|
}
|
|
32402
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32403
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = { $div: $elm.clone(true) };
|
|
32404
|
+
$elm.remove();
|
|
32405
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32402
32406
|
|
|
32403
|
-
|
|
32404
|
-
//
|
|
32405
|
-
|
|
32406
|
-
|
|
32407
|
-
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
32408
|
-
// // was true before
|
|
32409
|
-
// if ($elm.data().xuData.xurender_node) {
|
|
32410
|
-
// $xurender.data({
|
|
32411
|
-
// xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
32412
|
-
// xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
32413
|
-
// });
|
|
32414
|
-
// } else {
|
|
32415
|
-
// default new state
|
|
32407
|
+
// if ($elm.prop('tagName') === 'XURENDER') {
|
|
32408
|
+
// func.events.delete_job(SESSION_ID, jobNoP);
|
|
32409
|
+
// return;
|
|
32410
|
+
// }
|
|
32416
32411
|
|
|
32417
|
-
$
|
|
32418
|
-
|
|
32419
|
-
|
|
32420
|
-
|
|
32421
|
-
//
|
|
32422
|
-
//
|
|
32423
|
-
//
|
|
32424
|
-
// $
|
|
32425
|
-
//
|
|
32412
|
+
// let tmp_$div = $('<div>');
|
|
32413
|
+
// // const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32414
|
+
// const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
32415
|
+
|
|
32416
|
+
// let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
32417
|
+
// // // was true before
|
|
32418
|
+
// // if ($elm.data().xuData.xurender_node) {
|
|
32419
|
+
// // $xurender.data({
|
|
32420
|
+
// // xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
32421
|
+
// // xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
32422
|
+
// // });
|
|
32423
|
+
// // } else {
|
|
32424
|
+
// // default new state
|
|
32425
|
+
|
|
32426
|
+
// $xurender.data({
|
|
32427
|
+
// xuAttributes: $elm.data().xuAttributes || {},
|
|
32428
|
+
// xuData: $elm.data().xuData || {},
|
|
32429
|
+
// });
|
|
32430
|
+
// // const original_data_obj = {
|
|
32431
|
+
// // nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
32432
|
+
// // paramsP: $elm.data().xuData.paramsP,
|
|
32433
|
+
// // $container: $elm.clone(true),
|
|
32434
|
+
// // parent_infoP: parent_infoP,
|
|
32435
|
+
// // };
|
|
32436
|
+
// const cloned_$div = $elm.clone(true);
|
|
32437
|
+
// let original_data_obj = {
|
|
32438
|
+
// force_render: false,
|
|
32439
|
+
// $container: cloned_$div,
|
|
32440
|
+
// nodeP: cloned_$div.data().xuData.node_org,
|
|
32441
|
+
// parent_infoP,
|
|
32442
|
+
// paramsP,
|
|
32443
|
+
// keyP,
|
|
32444
|
+
// parent_nodeP, //:cloned_$div.data().xuData.original_data_obj.parent_nodeP,
|
|
32445
|
+
// $root_container,
|
|
32426
32446
|
// };
|
|
32427
|
-
const cloned_$div = $elm.clone(true);
|
|
32428
|
-
let original_data_obj = {
|
|
32429
|
-
force_render: false,
|
|
32430
|
-
$container: cloned_$div,
|
|
32431
|
-
nodeP: cloned_$div.data().xuData.node_org,
|
|
32432
|
-
parent_infoP,
|
|
32433
|
-
paramsP,
|
|
32434
|
-
keyP,
|
|
32435
|
-
parent_nodeP, //:cloned_$div.data().xuData.original_data_obj.parent_nodeP,
|
|
32436
|
-
$root_container,
|
|
32437
|
-
};
|
|
32438
32447
|
|
|
32439
|
-
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32448
|
+
// $xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32440
32449
|
|
|
32441
|
-
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32442
|
-
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32443
|
-
|
|
32444
|
-
}
|
|
32445
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
32450
|
+
// const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32451
|
+
// if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32452
|
+
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
32446
32453
|
// }
|
|
32447
|
-
|
|
32448
|
-
|
|
32454
|
+
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
32455
|
+
// // }
|
|
32456
|
+
// $elm.replaceWith(tmp_$div.children());
|
|
32457
|
+
// func.events.delete_job(SESSION_ID, jobNoP);
|
|
32449
32458
|
};
|
|
32450
32459
|
if (is_init) {
|
|
32451
32460
|
return await init_render();
|
|
@@ -34453,7 +34462,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34453
34462
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
34454
34463
|
}
|
|
34455
34464
|
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
34456
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = $div.clone(true);
|
|
34465
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = { $div: $div.clone(true) };
|
|
34457
34466
|
return $div;
|
|
34458
34467
|
} else {
|
|
34459
34468
|
$container.append(temp_$container.children());
|