@xuda.io/runtime-bundle 1.0.891 → 1.0.893
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);
|
|
@@ -12495,15 +12493,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12495
12493
|
|
|
12496
12494
|
return { abort: true };
|
|
12497
12495
|
},
|
|
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 };
|
|
12506
|
-
},
|
|
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)
|
|
12509
12498
|
if (parent_infoP?.iterate_info) return {};
|
|
@@ -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);
|
|
@@ -10222,15 +10220,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10222
10220
|
|
|
10223
10221
|
return { abort: true };
|
|
10224
10222
|
},
|
|
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 };
|
|
10233
|
-
},
|
|
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)
|
|
10236
10225
|
if (parent_infoP?.iterate_info) return {};
|
|
@@ -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']();
|