@xuda.io/runtime-bundle 1.0.1016 → 1.0.1018
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.
|
@@ -27785,12 +27785,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27785
27785
|
execute_xu_render_attributes: async function () {
|
|
27786
27786
|
const _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
27787
27787
|
if (_data?.xuData?.paramsP) {
|
|
27788
|
-
await func.UI.screen.execute_xu_functions(
|
|
27789
|
-
|
|
27790
|
-
|
|
27791
|
-
|
|
27792
|
-
|
|
27793
|
-
|
|
27788
|
+
await func.UI.screen.execute_xu_functions(
|
|
27789
|
+
SESSION_ID,
|
|
27790
|
+
null,
|
|
27791
|
+
_data.xuData.$root_container,
|
|
27792
|
+
_data.xuData.node,
|
|
27793
|
+
$(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`),
|
|
27794
|
+
_data.xuData.paramsP,
|
|
27795
|
+
{},
|
|
27796
|
+
queue_obj.jobNoP,
|
|
27797
|
+
_data.xuData.key,
|
|
27798
|
+
_data.xuData.parent_node,
|
|
27799
|
+
'xu-render',
|
|
27800
|
+
queue_obj.paramsP.elem_val.$elm,
|
|
27801
|
+
{
|
|
27802
|
+
key: 'xu-render',
|
|
27803
|
+
value: queue_obj.paramsP.attr_value, //? "Y" : "N",
|
|
27804
|
+
fields_arr: queue_obj.paramsP.fields_arr,
|
|
27805
|
+
jobNoP: queue_obj.jobNoP,
|
|
27806
|
+
},
|
|
27807
|
+
);
|
|
27794
27808
|
}
|
|
27795
27809
|
|
|
27796
27810
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
@@ -32386,44 +32400,44 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32386
32400
|
|
|
32387
32401
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
32388
32402
|
// // was true before
|
|
32389
|
-
if ($elm.data().xuData.xurender_node) {
|
|
32390
|
-
|
|
32391
|
-
|
|
32392
|
-
|
|
32393
|
-
|
|
32394
|
-
} else {
|
|
32395
|
-
|
|
32396
|
-
|
|
32397
|
-
|
|
32398
|
-
|
|
32399
|
-
|
|
32400
|
-
|
|
32401
|
-
|
|
32402
|
-
|
|
32403
|
-
|
|
32404
|
-
|
|
32405
|
-
|
|
32406
|
-
|
|
32407
|
-
|
|
32408
|
-
|
|
32409
|
-
|
|
32410
|
-
|
|
32411
|
-
|
|
32412
|
-
|
|
32413
|
-
|
|
32414
|
-
|
|
32415
|
-
|
|
32416
|
-
|
|
32417
|
-
|
|
32403
|
+
// if ($elm.data().xuData.xurender_node) {
|
|
32404
|
+
// $xurender.data({
|
|
32405
|
+
// xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
32406
|
+
// xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
32407
|
+
// });
|
|
32408
|
+
// } else {
|
|
32409
|
+
// default new state
|
|
32410
|
+
|
|
32411
|
+
$xurender.data({
|
|
32412
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
32413
|
+
xuData: $elm.data().xuData || {},
|
|
32414
|
+
});
|
|
32415
|
+
// const original_data_obj = {
|
|
32416
|
+
// nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
32417
|
+
// paramsP: $elm.data().xuData.paramsP,
|
|
32418
|
+
// $container: $elm.clone(true),
|
|
32419
|
+
// parent_infoP: parent_infoP,
|
|
32420
|
+
// };
|
|
32421
|
+
const cloned_$div = $elm.clone(true);
|
|
32422
|
+
let original_data_obj = {
|
|
32423
|
+
force_render: false,
|
|
32424
|
+
$container: cloned_$div,
|
|
32425
|
+
nodeP: cloned_$div.data().xuData.node_org,
|
|
32426
|
+
parent_infoP,
|
|
32427
|
+
paramsP,
|
|
32428
|
+
keyP,
|
|
32429
|
+
parent_nodeP, //:cloned_$div.data().xuData.original_data_obj.parent_nodeP,
|
|
32430
|
+
$root_container,
|
|
32431
|
+
};
|
|
32418
32432
|
|
|
32419
|
-
|
|
32433
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32420
32434
|
|
|
32421
|
-
|
|
32422
|
-
|
|
32423
|
-
|
|
32424
|
-
}
|
|
32425
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
32435
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32436
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32437
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
32426
32438
|
}
|
|
32439
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
32440
|
+
// }
|
|
32427
32441
|
$elm.replaceWith(tmp_$div.children());
|
|
32428
32442
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32429
32443
|
};
|