@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.
|
@@ -31485,16 +31485,19 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31485
31485
|
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);
|
|
31486
31486
|
|
|
31487
31487
|
var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
31488
|
-
|
|
31489
|
-
|
|
31490
|
-
|
|
31491
|
-
|
|
31492
|
-
|
|
31493
|
-
|
|
31494
|
-
|
|
31495
|
-
|
|
31496
|
-
|
|
31497
|
-
|
|
31488
|
+
try {
|
|
31489
|
+
const obj = {
|
|
31490
|
+
ui_type: elem_val.$elm.data().xuData.ui_type,
|
|
31491
|
+
SESSION_ID,
|
|
31492
|
+
elem_key,
|
|
31493
|
+
elem_val,
|
|
31494
|
+
fields_arr,
|
|
31495
|
+
attr_value,
|
|
31496
|
+
};
|
|
31497
|
+
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);
|
|
31498
|
+
} catch (error) {
|
|
31499
|
+
debugger;
|
|
31500
|
+
}
|
|
31498
31501
|
}
|
|
31499
31502
|
}
|
|
31500
31503
|
}
|
|
@@ -34593,10 +34596,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34593
34596
|
|
|
34594
34597
|
if (ret.has_xu_exp_render_attribute) {
|
|
34595
34598
|
// $div.css('display', 'unset');
|
|
34596
|
-
|
|
34597
|
-
|
|
34598
|
-
|
|
34599
|
-
|
|
34599
|
+
if (!ret.xu_render_background_processing) {
|
|
34600
|
+
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 || {}));
|
|
34601
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
34602
|
+
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
34603
|
+
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
34604
|
+
temp_$div.replaceWith($div);
|
|
34605
|
+
return $div;
|
|
34606
|
+
}
|
|
34600
34607
|
if (ret.xu_render_background_processing) {
|
|
34601
34608
|
temp_$div.remove();
|
|
34602
34609
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -34737,11 +34744,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34737
34744
|
};
|
|
34738
34745
|
xu_viewport();
|
|
34739
34746
|
} else {
|
|
34740
|
-
if (ret.xu_render_background_processing) {
|
|
34741
|
-
|
|
34747
|
+
// if (ret.xu_render_background_processing) {
|
|
34748
|
+
// // let temp_$div = $div.clone(true);
|
|
34749
|
+
// iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34750
|
+
// } else {
|
|
34751
|
+
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34752
|
+
// }
|
|
34753
|
+
if (!ret.xu_render_background_processing) {
|
|
34742
34754
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34743
|
-
} else {
|
|
34744
|
-
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34745
34755
|
}
|
|
34746
34756
|
}
|
|
34747
34757
|
|