@xuda.io/runtime-bundle 1.0.1107 → 1.0.1109
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
|
}
|
|
@@ -14914,15 +14914,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14914
14914
|
|
|
14915
14915
|
if (ret.has_xu_exp_render_attribute) {
|
|
14916
14916
|
// $div.css('display', 'unset');
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
return $div;
|
|
14925
|
-
}
|
|
14917
|
+
|
|
14918
|
+
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
|
|
14919
|
+
const _$div = $div.clone(true);
|
|
14920
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: _$div, paramsP, data: _$div.data() };
|
|
14921
|
+
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
14922
|
+
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
14923
|
+
|
|
14926
14924
|
if (ret.xu_render_background_processing) {
|
|
14927
14925
|
temp_$div.remove();
|
|
14928
14926
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -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
|
}
|
|
@@ -12639,15 +12639,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12639
12639
|
|
|
12640
12640
|
if (ret.has_xu_exp_render_attribute) {
|
|
12641
12641
|
// $div.css('display', 'unset');
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
return $div;
|
|
12650
|
-
}
|
|
12642
|
+
|
|
12643
|
+
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
|
|
12644
|
+
const _$div = $div.clone(true);
|
|
12645
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: _$div, paramsP, data: _$div.data() };
|
|
12646
|
+
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
12647
|
+
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
12648
|
+
|
|
12651
12649
|
if (ret.xu_render_background_processing) {
|
|
12652
12650
|
temp_$div.remove();
|
|
12653
12651
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|