@xuda.io/runtime-bundle 1.0.891 → 1.0.892
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
|
@@ -11429,15 +11429,13 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11429
11429
|
.find('*')
|
|
11430
11430
|
.filter(function () {
|
|
11431
11431
|
// // look if the changed field include in the calling in parameters
|
|
11432
|
-
|
|
11432
|
+
let parameter_in_filed_id;
|
|
11433
11433
|
|
|
11434
11434
|
let attr = [];
|
|
11435
11435
|
|
|
11436
|
-
$.each(
|
|
11436
|
+
$.each($(this).data()?.xuAttributes, function (key, val) {
|
|
11437
11437
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
11438
11438
|
|
|
11439
|
-
let parameter_in_filed_id; //= elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
11440
|
-
|
|
11441
11439
|
if (key === 'xu-bind') {
|
|
11442
11440
|
if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
|
|
11443
11441
|
attr.push(key);
|
|
@@ -11652,7 +11650,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11652
11650
|
if (avoid_xu_for_refresh) return;
|
|
11653
11651
|
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
11654
11652
|
|
|
11655
|
-
if (
|
|
11653
|
+
if (_session.engine_mode === 'live_preview') {
|
|
11656
11654
|
console.info('node execute_xu_for', obj, panel_val);
|
|
11657
11655
|
}
|
|
11658
11656
|
|
|
@@ -12493,16 +12491,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12493
12491
|
console.warn(e);
|
|
12494
12492
|
}
|
|
12495
12493
|
|
|
12496
|
-
return {
|
|
12497
|
-
},
|
|
12498
|
-
'xu-text': async function ($elm, val) {
|
|
12499
|
-
try {
|
|
12500
|
-
$elm.text(val.value);
|
|
12501
|
-
} catch (error) {
|
|
12502
|
-
console.warn(e);
|
|
12503
|
-
}
|
|
12504
|
-
|
|
12505
|
-
return { abort: true };
|
|
12494
|
+
return {};
|
|
12506
12495
|
},
|
|
12507
12496
|
'xu-for': async function ($elm, data) {
|
|
12508
12497
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|
|
@@ -14491,7 +14480,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14491
14480
|
if (nodeP.content && nodeP.attributes) {
|
|
14492
14481
|
nodeP.attributes['xu-content'] = nodeP.content;
|
|
14493
14482
|
}
|
|
14494
|
-
|
|
14495
14483
|
if (nodeP.tagName === 'xu-widget') {
|
|
14496
14484
|
if (is_skeleton) return;
|
|
14497
14485
|
return await fx['widget']();
|
|
@@ -9156,15 +9156,13 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9156
9156
|
.find('*')
|
|
9157
9157
|
.filter(function () {
|
|
9158
9158
|
// // look if the changed field include in the calling in parameters
|
|
9159
|
-
|
|
9159
|
+
let parameter_in_filed_id;
|
|
9160
9160
|
|
|
9161
9161
|
let attr = [];
|
|
9162
9162
|
|
|
9163
|
-
$.each(
|
|
9163
|
+
$.each($(this).data()?.xuAttributes, function (key, val) {
|
|
9164
9164
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
9165
9165
|
|
|
9166
|
-
let parameter_in_filed_id; //= elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
9167
|
-
|
|
9168
9166
|
if (key === 'xu-bind') {
|
|
9169
9167
|
if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
|
|
9170
9168
|
attr.push(key);
|
|
@@ -9379,7 +9377,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9379
9377
|
if (avoid_xu_for_refresh) return;
|
|
9380
9378
|
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
9381
9379
|
|
|
9382
|
-
if (
|
|
9380
|
+
if (_session.engine_mode === 'live_preview') {
|
|
9383
9381
|
console.info('node execute_xu_for', obj, panel_val);
|
|
9384
9382
|
}
|
|
9385
9383
|
|
|
@@ -10220,16 +10218,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10220
10218
|
console.warn(e);
|
|
10221
10219
|
}
|
|
10222
10220
|
|
|
10223
|
-
return {
|
|
10224
|
-
},
|
|
10225
|
-
'xu-text': async function ($elm, val) {
|
|
10226
|
-
try {
|
|
10227
|
-
$elm.text(val.value);
|
|
10228
|
-
} catch (error) {
|
|
10229
|
-
console.warn(e);
|
|
10230
|
-
}
|
|
10231
|
-
|
|
10232
|
-
return { abort: true };
|
|
10221
|
+
return {};
|
|
10233
10222
|
},
|
|
10234
10223
|
'xu-for': async function ($elm, data) {
|
|
10235
10224
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|
|
@@ -12218,7 +12207,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12218
12207
|
if (nodeP.content && nodeP.attributes) {
|
|
12219
12208
|
nodeP.attributes['xu-content'] = nodeP.content;
|
|
12220
12209
|
}
|
|
12221
|
-
|
|
12222
12210
|
if (nodeP.tagName === 'xu-widget') {
|
|
12223
12211
|
if (is_skeleton) return;
|
|
12224
12212
|
return await fx['widget']();
|