@xuda.io/runtime-bundle 1.0.1013 → 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.
|
@@ -27785,7 +27785,7 @@ 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(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP,
|
|
27788
|
+
await func.UI.screen.execute_xu_functions(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP, _data.xuData.key, null, 'xu-render', queue_obj.paramsP.elem_val.$elm, {
|
|
27789
27789
|
key: 'xu-render',
|
|
27790
27790
|
value: queue_obj.paramsP.attr_value, //? "Y" : "N",
|
|
27791
27791
|
fields_arr: queue_obj.paramsP.fields_arr,
|
|
@@ -32386,34 +32386,33 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32386
32386
|
|
|
32387
32387
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
32388
32388
|
// // was true before
|
|
32389
|
-
|
|
32390
|
-
|
|
32391
|
-
|
|
32392
|
-
|
|
32393
|
-
|
|
32394
|
-
|
|
32395
|
-
|
|
32396
|
-
|
|
32397
|
-
|
|
32398
|
-
|
|
32399
|
-
|
|
32400
|
-
|
|
32401
|
-
|
|
32402
|
-
|
|
32403
|
-
|
|
32404
|
-
|
|
32405
|
-
|
|
32406
|
-
|
|
32389
|
+
if ($elm.data().xuData.xurender_node) {
|
|
32390
|
+
$xurender.data({
|
|
32391
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
32392
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
32393
|
+
});
|
|
32394
|
+
} else {
|
|
32395
|
+
// default new state
|
|
32396
|
+
|
|
32397
|
+
$xurender.data({
|
|
32398
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
32399
|
+
xuData: $elm.data().xuData || {},
|
|
32400
|
+
});
|
|
32401
|
+
const original_data_obj = {
|
|
32402
|
+
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
32403
|
+
paramsP: $elm.data().xuData.paramsP,
|
|
32404
|
+
$container: $elm.clone(true),
|
|
32405
|
+
parent_infoP: parent_infoP,
|
|
32406
|
+
};
|
|
32407
32407
|
|
|
32408
|
-
|
|
32408
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32409
32409
|
|
|
32410
|
-
|
|
32411
|
-
|
|
32412
|
-
|
|
32410
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32411
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32412
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
32413
|
+
}
|
|
32414
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
32413
32415
|
}
|
|
32414
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
32415
|
-
|
|
32416
|
-
// }
|
|
32417
32416
|
$elm.replaceWith(tmp_$div.children());
|
|
32418
32417
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32419
32418
|
};
|