@xuda.io/runtime-bundle 1.0.1131 → 1.0.1133
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/modules/xuda-event-ui-elements-module.esm.js +25 -642
- package/js/xuda-runtime-bundle.js +132 -128
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +132 -128
- package/js/xuda-runtime-slim.min.es.js +132 -128
- package/js/xuda-runtime-slim.min.js +1 -1
- package/package.json +1 -1
|
@@ -26960,66 +26960,67 @@ func.UI.utils.get_nodeId = function (SESSION_ID, dsSessionP, ui_idP, $container,
|
|
|
26960
26960
|
return $elm.attr('nodeId');
|
|
26961
26961
|
}
|
|
26962
26962
|
};
|
|
26963
|
-
func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
26964
|
-
|
|
26965
|
-
|
|
26966
|
-
|
|
26967
|
-
|
|
26968
|
-
|
|
26969
|
-
|
|
26970
|
-
|
|
26971
|
-
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
26975
|
-
|
|
26976
|
-
|
|
26977
|
-
|
|
26978
|
-
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
26963
|
+
// func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
26964
|
+
// var $elm = func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP);
|
|
26965
|
+
// var ret = {};
|
|
26966
|
+
// if ($elm?.length) {
|
|
26967
|
+
// //length added 20210209
|
|
26968
|
+
// // if (is_app_panel) {
|
|
26969
|
+
// // if ($elm?.data()?.xuData.panel_info) {
|
|
26970
|
+
// // ret.nodeId = $elm.data().xuData.panel_info.prop.id;
|
|
26971
|
+
// // } else {
|
|
26972
|
+
// // ret.nodeId = $elm.data().xuData.properties.id;
|
|
26973
|
+
// // }
|
|
26974
|
+
// // } else {
|
|
26975
|
+
// // ret.nodeId = $elm.data().xuData.nodeId;
|
|
26976
|
+
// ret.nodeId = $elm.data().xuData.xu_id;
|
|
26977
|
+
|
|
26978
|
+
// // ret.nodeId = $elm.attr('xu-ui-id');
|
|
26979
|
+
// // }
|
|
26980
|
+
// }
|
|
26981
|
+
// ret.$elm = $elm;
|
|
26982
|
+
// return ret;
|
|
26983
|
+
// };
|
|
26983
26984
|
func.UI.utils.get_ui_id_count = function (SESSION_ID, dsSessionP, ui_idP, $container) {
|
|
26984
26985
|
return func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, null, null).length;
|
|
26985
26986
|
};
|
|
26986
|
-
func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
26987
|
-
|
|
26988
|
-
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
|
|
26987
|
+
// func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
26988
|
+
// var drill_parent = function () {
|
|
26989
|
+
// if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
|
|
26990
|
+
// return func.UI.utils.get_ui_info_tree_scope(SESSION_ID, SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo, ui_id, is_app_panel, ui_type);
|
|
26991
|
+
// } else if (ui_type === 'xu-app-page') {
|
|
26992
|
+
// if (elm_info.$elm.length) {
|
|
26993
|
+
// return {
|
|
26994
|
+
// ds: dsP,
|
|
26995
|
+
// id: id,
|
|
26996
|
+
// $elm: elm_info.$elm,
|
|
26997
|
+
// };
|
|
26998
|
+
// }
|
|
26999
|
+
// }
|
|
27000
|
+
// };
|
|
27001
|
+
// if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
|
|
27001
27002
|
|
|
27002
|
-
|
|
27003
|
-
|
|
27003
|
+
// var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
|
|
27004
|
+
// var id = elm_info.nodeId;
|
|
27004
27005
|
|
|
27005
|
-
|
|
27006
|
-
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27015
|
-
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27019
|
-
|
|
27020
|
-
|
|
27021
|
-
|
|
27022
|
-
};
|
|
27006
|
+
// if (!id) {
|
|
27007
|
+
// return drill_parent();
|
|
27008
|
+
// } else {
|
|
27009
|
+
// if (is_app_panel) {
|
|
27010
|
+
// return {
|
|
27011
|
+
// ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
|
|
27012
|
+
// id: id,
|
|
27013
|
+
// $elm: elm_info.$elm,
|
|
27014
|
+
// };
|
|
27015
|
+
// } else {
|
|
27016
|
+
// return {
|
|
27017
|
+
// ds: dsP,
|
|
27018
|
+
// id: id,
|
|
27019
|
+
// $elm: elm_info.$elm,
|
|
27020
|
+
// };
|
|
27021
|
+
// }
|
|
27022
|
+
// }
|
|
27023
|
+
// };
|
|
27023
27024
|
|
|
27024
27025
|
func.UI.utils.clean_node_busy = function (node) {
|
|
27025
27026
|
var run_node = function (node) {
|
|
@@ -27032,34 +27033,34 @@ func.UI.utils.clean_node_busy = function (node) {
|
|
|
27032
27033
|
return node;
|
|
27033
27034
|
};
|
|
27034
27035
|
|
|
27035
|
-
func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
|
|
27039
|
-
|
|
27040
|
-
|
|
27036
|
+
// func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
27037
|
+
// var ret;
|
|
27038
|
+
// var is_app_panel = false;
|
|
27039
|
+
// if (ui_type === 'xu-panel') {
|
|
27040
|
+
// is_app_panel = true;
|
|
27041
|
+
// }
|
|
27041
27042
|
|
|
27042
|
-
|
|
27043
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
27043
27044
|
|
|
27044
|
-
|
|
27045
|
-
|
|
27046
|
-
|
|
27047
|
-
|
|
27048
|
-
|
|
27049
|
-
|
|
27050
|
-
|
|
27051
|
-
|
|
27052
|
-
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
};
|
|
27045
|
+
// if (!ret) {
|
|
27046
|
+
// var attempts = 0;
|
|
27047
|
+
// const run = function () {
|
|
27048
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
27049
|
+
// if (ret || attempts > 10) {
|
|
27050
|
+
// callback(ret);
|
|
27051
|
+
// } else {
|
|
27052
|
+
// attempts++;
|
|
27053
|
+
// console.log(attempts, dsP, ui_id, is_app_panel);
|
|
27054
|
+
// setTimeout(function () {
|
|
27055
|
+
// run();
|
|
27056
|
+
// }, 100);
|
|
27057
|
+
// }
|
|
27058
|
+
// };
|
|
27059
|
+
// run();
|
|
27060
|
+
// } else {
|
|
27061
|
+
// callback(ret);
|
|
27062
|
+
// }
|
|
27063
|
+
// };
|
|
27063
27064
|
|
|
27064
27065
|
func.UI.utils.live_preview_element_inspect_on = function (SESSION_ID, service) {
|
|
27065
27066
|
$.each($('[xu-ui-id]'), function (key, val) {
|
|
@@ -27838,12 +27839,12 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27838
27839
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27839
27840
|
};
|
|
27840
27841
|
|
|
27841
|
-
var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
27842
|
-
|
|
27842
|
+
// var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
27843
|
+
var $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
27843
27844
|
|
|
27844
|
-
if (glb.new_xu_render) {
|
|
27845
|
-
|
|
27846
|
-
}
|
|
27845
|
+
// if (glb.new_xu_render) {
|
|
27846
|
+
// $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
27847
|
+
// }
|
|
27847
27848
|
|
|
27848
27849
|
if (!$elm.length) {
|
|
27849
27850
|
return done();
|
|
@@ -31293,7 +31294,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31293
31294
|
}
|
|
31294
31295
|
});
|
|
31295
31296
|
|
|
31296
|
-
const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
31297
|
+
// const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
31298
|
+
|
|
31299
|
+
const selector_id = $(this).attr('xu-ui-id');
|
|
31297
31300
|
|
|
31298
31301
|
if (attr.length) {
|
|
31299
31302
|
selectors[selector_id] = selectors[selector_id];
|
|
@@ -31451,7 +31454,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31451
31454
|
for (let item of node) {
|
|
31452
31455
|
if (!_.isEmpty(item.attributes)) {
|
|
31453
31456
|
const parent_element_ui_id = node_id;
|
|
31454
|
-
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
31457
|
+
// const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
31455
31458
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
31456
31459
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
31457
31460
|
if (val?.includes(field_id)) {
|
|
@@ -31459,8 +31462,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31459
31462
|
// debugger;
|
|
31460
31463
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
31461
31464
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
31462
|
-
|
|
31463
|
-
const _elem_key = parent_element_ui_id;
|
|
31465
|
+
const _$elem = func.UI.utils.find_in_element_data('xuData', 'body', 'nodeid', parent_element_ui_id);
|
|
31466
|
+
// const _elem_key = parent_element_ui_id;
|
|
31467
|
+
const _elem_key = _$elem.attr('xu-ui-id');
|
|
31464
31468
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
31465
31469
|
if (!_$elem?.length) continue;
|
|
31466
31470
|
|
|
@@ -31488,44 +31492,44 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31488
31492
|
}
|
|
31489
31493
|
}
|
|
31490
31494
|
|
|
31491
|
-
if (glb.new_xu_render) {
|
|
31492
|
-
|
|
31493
|
-
|
|
31494
|
-
|
|
31495
|
-
|
|
31496
|
-
|
|
31497
|
-
|
|
31498
|
-
|
|
31499
|
-
|
|
31500
|
-
|
|
31501
|
-
|
|
31502
|
-
|
|
31503
|
-
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
|
|
31520
|
-
|
|
31521
|
-
|
|
31522
|
-
|
|
31523
|
-
|
|
31524
|
-
|
|
31525
|
-
|
|
31526
|
-
|
|
31527
|
-
|
|
31528
|
-
}
|
|
31495
|
+
// if (glb.new_xu_render) {
|
|
31496
|
+
// if (attr === 'xu-exp:xu-render') {
|
|
31497
|
+
// //|| attr === 'xu-render'
|
|
31498
|
+
// for await (const [key, val] of Object.entries(_$elem)) {
|
|
31499
|
+
// if (key === 'length') break;
|
|
31500
|
+
// if ($(val).data().xuData.node) {
|
|
31501
|
+
// for await (const node of $(val).data().xuData.node.children) {
|
|
31502
|
+
// if (item.id !== node.id) continue;
|
|
31503
|
+
|
|
31504
|
+
// if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
31505
|
+
// const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
31506
|
+
// parent_element_ui_id;
|
|
31507
|
+
// const elem_key = node.xu_render_xu_ui_id;
|
|
31508
|
+
// const elem_val = { attributes: [attr], $elm: node_data.$div, data: node_data.data };
|
|
31509
|
+
// if (!elem_val.data?.xuData) continue;
|
|
31510
|
+
// elem_val.data.xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
|
|
31511
|
+
// var res = await func.expression.get(SESSION_ID, elem_val.data.xuAttributes['xu-exp:xu-render'], elem_val.data.xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.data.xuData.recordid);
|
|
31512
|
+
|
|
31513
|
+
// var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
31514
|
+
// try {
|
|
31515
|
+
// const obj = {
|
|
31516
|
+
// ui_type: elem_val.data.xuData.ui_type,
|
|
31517
|
+
// SESSION_ID,
|
|
31518
|
+
// elem_key,
|
|
31519
|
+
// elem_val,
|
|
31520
|
+
// fields_arr,
|
|
31521
|
+
// attr_value,
|
|
31522
|
+
// };
|
|
31523
|
+
// 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);
|
|
31524
|
+
// } catch (error) {
|
|
31525
|
+
// debugger;
|
|
31526
|
+
// }
|
|
31527
|
+
// }
|
|
31528
|
+
// }
|
|
31529
|
+
// }
|
|
31530
|
+
// }
|
|
31531
|
+
// }
|
|
31532
|
+
// }
|
|
31529
31533
|
}
|
|
31530
31534
|
}
|
|
31531
31535
|
if (found) break;
|