@xuda.io/runtime-bundle 1.0.890 → 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,11 +11429,11 @@ 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
|
-
|
|
11433
|
-
|
|
11432
|
+
let parameter_in_filed_id;
|
|
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
11439
|
if (key === 'xu-bind') {
|
|
@@ -11650,7 +11650,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11650
11650
|
if (avoid_xu_for_refresh) return;
|
|
11651
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);
|
|
11652
11652
|
|
|
11653
|
-
if (
|
|
11653
|
+
if (_session.engine_mode === 'live_preview') {
|
|
11654
11654
|
console.info('node execute_xu_for', obj, panel_val);
|
|
11655
11655
|
}
|
|
11656
11656
|
|
|
@@ -12491,16 +12491,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12491
12491
|
console.warn(e);
|
|
12492
12492
|
}
|
|
12493
12493
|
|
|
12494
|
-
return {
|
|
12495
|
-
},
|
|
12496
|
-
'xu-text': async function ($elm, val) {
|
|
12497
|
-
try {
|
|
12498
|
-
$elm.text(val.value);
|
|
12499
|
-
} catch (error) {
|
|
12500
|
-
console.warn(e);
|
|
12501
|
-
}
|
|
12502
|
-
|
|
12503
|
-
return { abort: true };
|
|
12494
|
+
return {};
|
|
12504
12495
|
},
|
|
12505
12496
|
'xu-for': async function ($elm, data) {
|
|
12506
12497
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|
|
@@ -14489,7 +14480,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14489
14480
|
if (nodeP.content && nodeP.attributes) {
|
|
14490
14481
|
nodeP.attributes['xu-content'] = nodeP.content;
|
|
14491
14482
|
}
|
|
14492
|
-
|
|
14493
14483
|
if (nodeP.tagName === 'xu-widget') {
|
|
14494
14484
|
if (is_skeleton) return;
|
|
14495
14485
|
return await fx['widget']();
|
|
@@ -9156,11 +9156,11 @@ 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
|
-
|
|
9160
|
-
|
|
9159
|
+
let parameter_in_filed_id;
|
|
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
9166
|
if (key === 'xu-bind') {
|
|
@@ -9377,7 +9377,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9377
9377
|
if (avoid_xu_for_refresh) return;
|
|
9378
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);
|
|
9379
9379
|
|
|
9380
|
-
if (
|
|
9380
|
+
if (_session.engine_mode === 'live_preview') {
|
|
9381
9381
|
console.info('node execute_xu_for', obj, panel_val);
|
|
9382
9382
|
}
|
|
9383
9383
|
|
|
@@ -10218,16 +10218,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10218
10218
|
console.warn(e);
|
|
10219
10219
|
}
|
|
10220
10220
|
|
|
10221
|
-
return {
|
|
10222
|
-
},
|
|
10223
|
-
'xu-text': async function ($elm, val) {
|
|
10224
|
-
try {
|
|
10225
|
-
$elm.text(val.value);
|
|
10226
|
-
} catch (error) {
|
|
10227
|
-
console.warn(e);
|
|
10228
|
-
}
|
|
10229
|
-
|
|
10230
|
-
return { abort: true };
|
|
10221
|
+
return {};
|
|
10231
10222
|
},
|
|
10232
10223
|
'xu-for': async function ($elm, data) {
|
|
10233
10224
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|
|
@@ -12216,7 +12207,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12216
12207
|
if (nodeP.content && nodeP.attributes) {
|
|
12217
12208
|
nodeP.attributes['xu-content'] = nodeP.content;
|
|
12218
12209
|
}
|
|
12219
|
-
|
|
12220
12210
|
if (nodeP.tagName === 'xu-widget') {
|
|
12221
12211
|
if (is_skeleton) return;
|
|
12222
12212
|
return await fx['widget']();
|