@xuda.io/runtime-bundle 1.0.1104 → 1.0.1106
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
|
@@ -11801,16 +11801,19 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11801
11801
|
var res = await func.expression.get(SESSION_ID, elem_val.$elm.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
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11804
|
+
try {
|
|
11805
|
+
const obj = {
|
|
11806
|
+
ui_type: elem_val.$elm.data().xuData.ui_type,
|
|
11807
|
+
SESSION_ID,
|
|
11808
|
+
elem_key,
|
|
11809
|
+
elem_val,
|
|
11810
|
+
fields_arr,
|
|
11811
|
+
attr_value,
|
|
11812
|
+
};
|
|
11813
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
11814
|
+
} catch (error) {
|
|
11815
|
+
debugger;
|
|
11816
|
+
}
|
|
11814
11817
|
}
|
|
11815
11818
|
}
|
|
11816
11819
|
}
|
|
@@ -14909,10 +14912,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14909
14912
|
|
|
14910
14913
|
if (ret.has_xu_exp_render_attribute) {
|
|
14911
14914
|
// $div.css('display', 'unset');
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
|
|
14915
|
+
if (!ret.xu_render_background_processing) {
|
|
14916
|
+
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 || {}));
|
|
14917
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
14918
|
+
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
14919
|
+
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
14920
|
+
temp_$div.replaceWith($div);
|
|
14921
|
+
return $div;
|
|
14922
|
+
}
|
|
14916
14923
|
if (ret.xu_render_background_processing) {
|
|
14917
14924
|
temp_$div.remove();
|
|
14918
14925
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -15053,11 +15060,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
15053
15060
|
};
|
|
15054
15061
|
xu_viewport();
|
|
15055
15062
|
} else {
|
|
15056
|
-
if (ret.xu_render_background_processing) {
|
|
15057
|
-
|
|
15063
|
+
// if (ret.xu_render_background_processing) {
|
|
15064
|
+
// // let temp_$div = $div.clone(true);
|
|
15065
|
+
// iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
15066
|
+
// } else {
|
|
15067
|
+
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
15068
|
+
// }
|
|
15069
|
+
if (!ret.xu_render_background_processing) {
|
|
15058
15070
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
15059
|
-
} else {
|
|
15060
|
-
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
15061
15071
|
}
|
|
15062
15072
|
}
|
|
15063
15073
|
|
|
@@ -9526,16 +9526,19 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9526
9526
|
var res = await func.expression.get(SESSION_ID, elem_val.$elm.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
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9529
|
+
try {
|
|
9530
|
+
const obj = {
|
|
9531
|
+
ui_type: elem_val.$elm.data().xuData.ui_type,
|
|
9532
|
+
SESSION_ID,
|
|
9533
|
+
elem_key,
|
|
9534
|
+
elem_val,
|
|
9535
|
+
fields_arr,
|
|
9536
|
+
attr_value,
|
|
9537
|
+
};
|
|
9538
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
9539
|
+
} catch (error) {
|
|
9540
|
+
debugger;
|
|
9541
|
+
}
|
|
9539
9542
|
}
|
|
9540
9543
|
}
|
|
9541
9544
|
}
|
|
@@ -12634,10 +12637,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12634
12637
|
|
|
12635
12638
|
if (ret.has_xu_exp_render_attribute) {
|
|
12636
12639
|
// $div.css('display', 'unset');
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12640
|
+
if (!ret.xu_render_background_processing) {
|
|
12641
|
+
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 || {}));
|
|
12642
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
12643
|
+
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
12644
|
+
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
12645
|
+
temp_$div.replaceWith($div);
|
|
12646
|
+
return $div;
|
|
12647
|
+
}
|
|
12641
12648
|
if (ret.xu_render_background_processing) {
|
|
12642
12649
|
temp_$div.remove();
|
|
12643
12650
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -12778,11 +12785,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12778
12785
|
};
|
|
12779
12786
|
xu_viewport();
|
|
12780
12787
|
} else {
|
|
12781
|
-
if (ret.xu_render_background_processing) {
|
|
12782
|
-
|
|
12788
|
+
// if (ret.xu_render_background_processing) {
|
|
12789
|
+
// // let temp_$div = $div.clone(true);
|
|
12790
|
+
// iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12791
|
+
// } else {
|
|
12792
|
+
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12793
|
+
// }
|
|
12794
|
+
if (!ret.xu_render_background_processing) {
|
|
12783
12795
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12784
|
-
} else {
|
|
12785
|
-
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12786
12796
|
}
|
|
12787
12797
|
}
|
|
12788
12798
|
|