@xuda.io/runtime-bundle 1.0.1108 → 1.0.1110
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
|
@@ -11795,22 +11795,22 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11795
11795
|
const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
11796
11796
|
parent_element_ui_id;
|
|
11797
11797
|
const elem_key = node.xu_render_xu_ui_id;
|
|
11798
|
-
const elem_val = { attributes: [attr], $elm: node_data.$div };
|
|
11799
|
-
if (!elem_val
|
|
11800
|
-
elem_val
|
|
11801
|
-
var res = await func.expression.get(SESSION_ID, elem_val
|
|
11798
|
+
const elem_val = { attributes: [attr], $elm: node_data.$div, data: node_data.data };
|
|
11799
|
+
if (!elem_val.data?.xuData) continue;
|
|
11800
|
+
elem_val.data.xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
|
|
11801
|
+
var res = await func.expression.get(SESSION_ID, elem_val.data.xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
|
|
11802
11802
|
|
|
11803
11803
|
var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
11804
11804
|
try {
|
|
11805
11805
|
const obj = {
|
|
11806
|
-
ui_type: elem_val
|
|
11806
|
+
ui_type: elem_val.data.xuData.ui_type,
|
|
11807
11807
|
SESSION_ID,
|
|
11808
11808
|
elem_key,
|
|
11809
11809
|
elem_val,
|
|
11810
11810
|
fields_arr,
|
|
11811
11811
|
attr_value,
|
|
11812
11812
|
};
|
|
11813
|
-
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val
|
|
11813
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.data.xuData.paramsP.dsSessionP);
|
|
11814
11814
|
} catch (error) {
|
|
11815
11815
|
debugger;
|
|
11816
11816
|
}
|
|
@@ -15069,6 +15069,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
15069
15069
|
// }
|
|
15070
15070
|
if (!ret.xu_render_background_processing) {
|
|
15071
15071
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
15072
|
+
} else {
|
|
15073
|
+
if (ret.has_xu_render_attribute) {
|
|
15074
|
+
$div.css('display', 'none');
|
|
15075
|
+
}
|
|
15072
15076
|
}
|
|
15073
15077
|
}
|
|
15074
15078
|
|
|
@@ -9520,22 +9520,22 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9520
9520
|
const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
9521
9521
|
parent_element_ui_id;
|
|
9522
9522
|
const elem_key = node.xu_render_xu_ui_id;
|
|
9523
|
-
const elem_val = { attributes: [attr], $elm: node_data.$div };
|
|
9524
|
-
if (!elem_val
|
|
9525
|
-
elem_val
|
|
9526
|
-
var res = await func.expression.get(SESSION_ID, elem_val
|
|
9523
|
+
const elem_val = { attributes: [attr], $elm: node_data.$div, data: node_data.data };
|
|
9524
|
+
if (!elem_val.data?.xuData) continue;
|
|
9525
|
+
elem_val.data.xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
|
|
9526
|
+
var res = await func.expression.get(SESSION_ID, elem_val.data.xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
|
|
9527
9527
|
|
|
9528
9528
|
var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
9529
9529
|
try {
|
|
9530
9530
|
const obj = {
|
|
9531
|
-
ui_type: elem_val
|
|
9531
|
+
ui_type: elem_val.data.xuData.ui_type,
|
|
9532
9532
|
SESSION_ID,
|
|
9533
9533
|
elem_key,
|
|
9534
9534
|
elem_val,
|
|
9535
9535
|
fields_arr,
|
|
9536
9536
|
attr_value,
|
|
9537
9537
|
};
|
|
9538
|
-
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val
|
|
9538
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.data.xuData.paramsP.dsSessionP);
|
|
9539
9539
|
} catch (error) {
|
|
9540
9540
|
debugger;
|
|
9541
9541
|
}
|
|
@@ -12794,6 +12794,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12794
12794
|
// }
|
|
12795
12795
|
if (!ret.xu_render_background_processing) {
|
|
12796
12796
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12797
|
+
} else {
|
|
12798
|
+
if (ret.has_xu_render_attribute) {
|
|
12799
|
+
$div.css('display', 'none');
|
|
12800
|
+
}
|
|
12797
12801
|
}
|
|
12798
12802
|
}
|
|
12799
12803
|
|