@xuda.io/runtime-bundle 1.0.346 → 1.0.348
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
|
@@ -12202,12 +12202,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12202
12202
|
const common_fx = {
|
|
12203
12203
|
'xu-ref': async function ($elm, val) {
|
|
12204
12204
|
console.log('xu-ref', $elm, val);
|
|
12205
|
+
const _session = SESSION_OBJ[SESSION_ID];
|
|
12205
12206
|
let _ds_0 = _session.DS_GLB[0];
|
|
12206
12207
|
if (!_ds_0.data_system['SYS_GLOBAL_OBJ_REFS']) {
|
|
12207
12208
|
_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'] = {};
|
|
12208
12209
|
}
|
|
12209
12210
|
// if (!_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val]) {
|
|
12210
|
-
|
|
12211
|
+
const _ds = _session.DS_GLB[paramsP.dsSessionP];
|
|
12212
|
+
_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data: _ds?.data_feed?.rows || {}, props: $elm?.data()?.xuData?.properties };
|
|
12211
12213
|
// }
|
|
12212
12214
|
return {};
|
|
12213
12215
|
},
|
|
@@ -12396,6 +12398,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12396
12398
|
|
|
12397
12399
|
const post_render = async function () {
|
|
12398
12400
|
if (value) {
|
|
12401
|
+
// abort if already rended
|
|
12402
|
+
if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
|
|
12403
|
+
return func.events.delete_job(SESSION_ID, jobNoP);
|
|
12404
|
+
}
|
|
12405
|
+
|
|
12399
12406
|
let original_data_obj = $elm.data().xuData.original_data_obj;
|
|
12400
12407
|
|
|
12401
12408
|
if (!original_data_obj) {
|
|
@@ -10268,12 +10268,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10268
10268
|
const common_fx = {
|
|
10269
10269
|
'xu-ref': async function ($elm, val) {
|
|
10270
10270
|
console.log('xu-ref', $elm, val);
|
|
10271
|
+
const _session = SESSION_OBJ[SESSION_ID];
|
|
10271
10272
|
let _ds_0 = _session.DS_GLB[0];
|
|
10272
10273
|
if (!_ds_0.data_system['SYS_GLOBAL_OBJ_REFS']) {
|
|
10273
10274
|
_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'] = {};
|
|
10274
10275
|
}
|
|
10275
10276
|
// if (!_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val]) {
|
|
10276
|
-
|
|
10277
|
+
const _ds = _session.DS_GLB[paramsP.dsSessionP];
|
|
10278
|
+
_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data: _ds?.data_feed?.rows || {}, props: $elm?.data()?.xuData?.properties };
|
|
10277
10279
|
// }
|
|
10278
10280
|
return {};
|
|
10279
10281
|
},
|
|
@@ -10462,6 +10464,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10462
10464
|
|
|
10463
10465
|
const post_render = async function () {
|
|
10464
10466
|
if (value) {
|
|
10467
|
+
// abort if already rended
|
|
10468
|
+
if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
|
|
10469
|
+
return func.events.delete_job(SESSION_ID, jobNoP);
|
|
10470
|
+
}
|
|
10471
|
+
|
|
10465
10472
|
let original_data_obj = $elm.data().xuData.original_data_obj;
|
|
10466
10473
|
|
|
10467
10474
|
if (!original_data_obj) {
|