@xuda.io/runtime-bundle 1.0.1106 → 1.0.1108
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
|
@@ -12737,7 +12737,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12737
12737
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
12738
12738
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
12739
12739
|
new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP, parent_infoP, paramsP, jobNoP, null, keyP, null, parent_nodeP, null, $root_container);
|
|
12740
|
-
|
|
12740
|
+
const _$div = new_$div.clone(true);
|
|
12741
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = _$div;
|
|
12742
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].data = _$div.data();
|
|
12741
12743
|
}
|
|
12742
12744
|
// append order handling
|
|
12743
12745
|
|
|
@@ -14912,14 +14914,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14912
14914
|
|
|
14913
14915
|
if (ret.has_xu_exp_render_attribute) {
|
|
14914
14916
|
// $div.css('display', 'unset');
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
}
|
|
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
|
+
|
|
14923
14924
|
if (ret.xu_render_background_processing) {
|
|
14924
14925
|
temp_$div.remove();
|
|
14925
14926
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -15159,12 +15160,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
|
|
|
15159
15160
|
const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
|
|
15160
15161
|
const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
|
|
15161
15162
|
|
|
15162
|
-
// var _session = SESSION_OBJ[SESSION_ID];
|
|
15163
|
-
// var _ds = _session.DS_GLB[dsSessionP];
|
|
15164
|
-
|
|
15165
|
-
// const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
15166
|
-
// const data = _ds.data_feed.rows[idx];
|
|
15167
|
-
|
|
15168
15163
|
let str = '';
|
|
15169
15164
|
|
|
15170
15165
|
for (const [key, val] of Object.entries(fields_obj)) {
|
|
@@ -15172,33 +15167,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
|
|
|
15172
15167
|
str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
|
|
15173
15168
|
}
|
|
15174
15169
|
|
|
15175
|
-
// if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
15176
|
-
// str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
15177
|
-
// }
|
|
15178
|
-
|
|
15179
15170
|
return 'C-' + (await func.common.sha256(str));
|
|
15180
15171
|
};
|
|
15181
|
-
|
|
15182
|
-
// const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
|
|
15183
|
-
// var _session = SESSION_OBJ[SESSION_ID];
|
|
15184
|
-
// var _ds = _session.DS_GLB[dsSessionP];
|
|
15185
|
-
|
|
15186
|
-
// const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
15187
|
-
// const data = _ds.data_feed.rows[idx];
|
|
15188
|
-
|
|
15189
|
-
// let str = '';
|
|
15190
|
-
|
|
15191
|
-
// for (const [key, val] of Object.entries(data)) {
|
|
15192
|
-
// if (exclude_vars.includes(key)) continue;
|
|
15193
|
-
// str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
|
|
15194
|
-
// }
|
|
15195
|
-
|
|
15196
|
-
// if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
15197
|
-
// str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
15198
|
-
// }
|
|
15199
|
-
|
|
15200
|
-
// return 'C-' + (await func.common.sha256(str));
|
|
15201
|
-
// };
|
|
15202
15172
|
func.UI.component = {};
|
|
15203
15173
|
|
|
15204
15174
|
func.UI.component.create_app_modal_component = function (
|
|
@@ -10462,7 +10462,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10462
10462
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
10463
10463
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
10464
10464
|
new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP, parent_infoP, paramsP, jobNoP, null, keyP, null, parent_nodeP, null, $root_container);
|
|
10465
|
-
|
|
10465
|
+
const _$div = new_$div.clone(true);
|
|
10466
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = _$div;
|
|
10467
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].data = _$div.data();
|
|
10466
10468
|
}
|
|
10467
10469
|
// append order handling
|
|
10468
10470
|
|
|
@@ -12637,14 +12639,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12637
12639
|
|
|
12638
12640
|
if (ret.has_xu_exp_render_attribute) {
|
|
12639
12641
|
// $div.css('display', 'unset');
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
}
|
|
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
|
+
|
|
12648
12649
|
if (ret.xu_render_background_processing) {
|
|
12649
12650
|
temp_$div.remove();
|
|
12650
12651
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -12884,12 +12885,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
|
|
|
12884
12885
|
const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
|
|
12885
12886
|
const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
|
|
12886
12887
|
|
|
12887
|
-
// var _session = SESSION_OBJ[SESSION_ID];
|
|
12888
|
-
// var _ds = _session.DS_GLB[dsSessionP];
|
|
12889
|
-
|
|
12890
|
-
// const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
12891
|
-
// const data = _ds.data_feed.rows[idx];
|
|
12892
|
-
|
|
12893
12888
|
let str = '';
|
|
12894
12889
|
|
|
12895
12890
|
for (const [key, val] of Object.entries(fields_obj)) {
|
|
@@ -12897,33 +12892,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
|
|
|
12897
12892
|
str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
|
|
12898
12893
|
}
|
|
12899
12894
|
|
|
12900
|
-
// if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
12901
|
-
// str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
12902
|
-
// }
|
|
12903
|
-
|
|
12904
12895
|
return 'C-' + (await func.common.sha256(str));
|
|
12905
12896
|
};
|
|
12906
|
-
|
|
12907
|
-
// const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
|
|
12908
|
-
// var _session = SESSION_OBJ[SESSION_ID];
|
|
12909
|
-
// var _ds = _session.DS_GLB[dsSessionP];
|
|
12910
|
-
|
|
12911
|
-
// const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
12912
|
-
// const data = _ds.data_feed.rows[idx];
|
|
12913
|
-
|
|
12914
|
-
// let str = '';
|
|
12915
|
-
|
|
12916
|
-
// for (const [key, val] of Object.entries(data)) {
|
|
12917
|
-
// if (exclude_vars.includes(key)) continue;
|
|
12918
|
-
// str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
|
|
12919
|
-
// }
|
|
12920
|
-
|
|
12921
|
-
// if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
12922
|
-
// str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
12923
|
-
// }
|
|
12924
|
-
|
|
12925
|
-
// return 'C-' + (await func.common.sha256(str));
|
|
12926
|
-
// };
|
|
12927
12897
|
func.UI.component = {};
|
|
12928
12898
|
|
|
12929
12899
|
func.UI.component.create_app_modal_component = function (
|