@xuda.io/runtime-bundle 1.0.908 → 1.0.909
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.
|
@@ -31119,7 +31119,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31119
31119
|
|
|
31120
31120
|
let attr = [];
|
|
31121
31121
|
|
|
31122
|
-
const validate_param_in = function (exp) {
|
|
31122
|
+
const validate_param_in = function (exp, without_var) {
|
|
31123
31123
|
let exp_val_for_parameter_in_validation;
|
|
31124
31124
|
if (typeof exp === 'string') exp_val_for_parameter_in_validation = exp;
|
|
31125
31125
|
if (typeof exp === 'object') exp_val_for_parameter_in_validation = JSON.stringify(exp);
|
|
@@ -31129,18 +31129,18 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31129
31129
|
|
|
31130
31130
|
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
31131
31131
|
if (!param_val.includes('@')) continue;
|
|
31132
|
-
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll('@' + param_key, param_val);
|
|
31132
|
+
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll((without_var ? '' : '@') + param_key, param_val);
|
|
31133
31133
|
}
|
|
31134
|
-
return exp_val_for_parameter_in_validation?.includes?.('@' + val_field);
|
|
31134
|
+
return exp_val_for_parameter_in_validation?.includes?.((without_var ? '' : '@') + val_field);
|
|
31135
31135
|
};
|
|
31136
31136
|
|
|
31137
31137
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
31138
31138
|
if (typeof val !== 'string' && typeof val !== 'object') return true;
|
|
31139
|
-
if (typeof val === 'string' && !val?.includes('@')) return true;
|
|
31139
|
+
if (typeof val === 'string' && !val?.includes('@') && key !== 'xu-bind' && key !== 'xu-for') return true;
|
|
31140
31140
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
31141
31141
|
|
|
31142
31142
|
if (key === 'xu-bind' || key === 'xu-for') {
|
|
31143
|
-
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31143
|
+
if (val?.includes?.(val_field) || validate_param_in(val, true)) {
|
|
31144
31144
|
attr.push(key);
|
|
31145
31145
|
}
|
|
31146
31146
|
return true;
|
|
@@ -32193,7 +32193,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32193
32193
|
console.warn(e);
|
|
32194
32194
|
}
|
|
32195
32195
|
return;
|
|
32196
|
-
return { abort: true };
|
|
32197
32196
|
},
|
|
32198
32197
|
'xu-text': async function ($elm, val) {
|
|
32199
32198
|
try {
|
|
@@ -32202,7 +32201,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32202
32201
|
console.warn(e);
|
|
32203
32202
|
}
|
|
32204
32203
|
return;
|
|
32205
|
-
return { abort: true };
|
|
32206
32204
|
},
|
|
32207
32205
|
'xu-html': async function ($elm, val) {
|
|
32208
32206
|
try {
|
|
@@ -32211,7 +32209,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32211
32209
|
console.warn(e);
|
|
32212
32210
|
}
|
|
32213
32211
|
return;
|
|
32214
|
-
return { abort: true };
|
|
32215
32212
|
},
|
|
32216
32213
|
'xu-for': async function ($elm, data) {
|
|
32217
32214
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|