@xuda.io/runtime-bundle 1.0.390 → 1.0.391
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
|
@@ -9043,7 +9043,7 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
|
|
|
9043
9043
|
}
|
|
9044
9044
|
};
|
|
9045
9045
|
|
|
9046
|
-
func.UI.update_xu_ref = function (SESSION_ID, dsSessionP) {
|
|
9046
|
+
func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, $elm) {
|
|
9047
9047
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9048
9048
|
let _ds_0 = _session.DS_GLB[0];
|
|
9049
9049
|
|
|
@@ -9052,11 +9052,21 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP) {
|
|
|
9052
9052
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
9053
9053
|
const data = _ds?.data_feed?.rows?.[row_idx] || {};
|
|
9054
9054
|
|
|
9055
|
-
|
|
9056
|
-
const attributes = $elm?.data()?.xuData?.properties || {};
|
|
9057
|
-
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
9055
|
+
let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value];
|
|
9058
9056
|
|
|
9059
|
-
|
|
9057
|
+
if (!SYS_GLOBAL_OBJ_REFS) {
|
|
9058
|
+
SYS_GLOBAL_OBJ_REFS = { ds: _ds, data };
|
|
9059
|
+
} else {
|
|
9060
|
+
SYS_GLOBAL_OBJ_REFS.ds = _ds;
|
|
9061
|
+
SYS_GLOBAL_OBJ_REFS.data = data;
|
|
9062
|
+
|
|
9063
|
+
if ($elm) {
|
|
9064
|
+
// const props = _ds.in_parameters || {};
|
|
9065
|
+
// const attributes = $elm?.data()?.xuData?.properties || {};
|
|
9066
|
+
|
|
9067
|
+
SYS_GLOBAL_OBJ_REFS.xu_ui_id = $elm.attr('xu-ui-id');
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
9060
9070
|
};
|
|
9061
9071
|
func.events = {};
|
|
9062
9072
|
func.events.validate = async function (SESSION_ID, triggerP, dsSessionP, eventIdP, sourceP, argumentsP, return_validation_onlyP) {
|
|
@@ -11946,7 +11956,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
11946
11956
|
|
|
11947
11957
|
const common_fx = {
|
|
11948
11958
|
'xu-ref': async function ($elm, val) {
|
|
11949
|
-
func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP);
|
|
11959
|
+
func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP, $elm);
|
|
11950
11960
|
// const _session = SESSION_OBJ[SESSION_ID];
|
|
11951
11961
|
// let _ds_0 = _session.DS_GLB[0];
|
|
11952
11962
|
|
|
@@ -9044,7 +9044,7 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
|
|
|
9044
9044
|
}
|
|
9045
9045
|
};
|
|
9046
9046
|
|
|
9047
|
-
func.UI.update_xu_ref = function (SESSION_ID, dsSessionP) {
|
|
9047
|
+
func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, $elm) {
|
|
9048
9048
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9049
9049
|
let _ds_0 = _session.DS_GLB[0];
|
|
9050
9050
|
|
|
@@ -9053,11 +9053,21 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP) {
|
|
|
9053
9053
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
9054
9054
|
const data = _ds?.data_feed?.rows?.[row_idx] || {};
|
|
9055
9055
|
|
|
9056
|
-
|
|
9057
|
-
const attributes = $elm?.data()?.xuData?.properties || {};
|
|
9058
|
-
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
9056
|
+
let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value];
|
|
9059
9057
|
|
|
9060
|
-
|
|
9058
|
+
if (!SYS_GLOBAL_OBJ_REFS) {
|
|
9059
|
+
SYS_GLOBAL_OBJ_REFS = { ds: _ds, data };
|
|
9060
|
+
} else {
|
|
9061
|
+
SYS_GLOBAL_OBJ_REFS.ds = _ds;
|
|
9062
|
+
SYS_GLOBAL_OBJ_REFS.data = data;
|
|
9063
|
+
|
|
9064
|
+
if ($elm) {
|
|
9065
|
+
// const props = _ds.in_parameters || {};
|
|
9066
|
+
// const attributes = $elm?.data()?.xuData?.properties || {};
|
|
9067
|
+
|
|
9068
|
+
SYS_GLOBAL_OBJ_REFS.xu_ui_id = $elm.attr('xu-ui-id');
|
|
9069
|
+
}
|
|
9070
|
+
}
|
|
9061
9071
|
};
|
|
9062
9072
|
func.UI.screen = {};
|
|
9063
9073
|
func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callingDataSource_objP, $callingContainerP, triggerIdP, rowIdP, jobNoP, is_panelP, parameters_obj_inP, source_functionP, call_screen_propertiesP) {
|
|
@@ -10019,7 +10029,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10019
10029
|
|
|
10020
10030
|
const common_fx = {
|
|
10021
10031
|
'xu-ref': async function ($elm, val) {
|
|
10022
|
-
func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP);
|
|
10032
|
+
func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP, $elm);
|
|
10023
10033
|
// const _session = SESSION_OBJ[SESSION_ID];
|
|
10024
10034
|
// let _ds_0 = _session.DS_GLB[0];
|
|
10025
10035
|
|