@xuda.io/runtime-bundle 1.0.905 → 1.0.907
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.
|
@@ -31114,16 +31114,19 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31114
31114
|
$(search_from)
|
|
31115
31115
|
.find('*')
|
|
31116
31116
|
.filter(function () {
|
|
31117
|
-
//
|
|
31117
|
+
// check if the changed field include in the calling in parameters
|
|
31118
31118
|
const elm_data = $(this).data();
|
|
31119
31119
|
|
|
31120
31120
|
let attr = [];
|
|
31121
31121
|
|
|
31122
31122
|
const validate_param_in = function (exp) {
|
|
31123
|
-
|
|
31123
|
+
let exp_val_for_parameter_in_validation;
|
|
31124
|
+
if (typeof exp === 'string') exp_val_for_parameter_in_validation = exp;
|
|
31125
|
+
if (typeof exp === 'object') exp_val_for_parameter_in_validation = JSON.stringify(exp);
|
|
31126
|
+
if (!exp_val_for_parameter_in_validation) return;
|
|
31124
31127
|
if (!exp.includes('@')) return;
|
|
31125
31128
|
if (_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) return;
|
|
31126
|
-
|
|
31129
|
+
|
|
31127
31130
|
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
31128
31131
|
if (!param_val.includes('@')) continue;
|
|
31129
31132
|
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll('@' + param_key, param_val);
|
|
@@ -31132,22 +31135,25 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31132
31135
|
};
|
|
31133
31136
|
|
|
31134
31137
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
31138
|
+
if (typeof exp !== 'string' && typeof exp !== 'object') return true;
|
|
31139
|
+
if (typeof exp === 'string' && !val?.includes('@')) return true;
|
|
31135
31140
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
31136
31141
|
|
|
31137
|
-
if (key === 'xu-bind') {
|
|
31142
|
+
if (key === 'xu-bind' || key === 'xu-for') {
|
|
31138
31143
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31139
31144
|
attr.push(key);
|
|
31140
31145
|
}
|
|
31141
31146
|
return true;
|
|
31142
31147
|
}
|
|
31143
31148
|
|
|
31144
|
-
if (key === 'xu-for') {
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
}
|
|
31149
|
+
// if (key === 'xu-for') {
|
|
31150
|
+
// // match static value for xu-for
|
|
31151
|
+
// if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31152
|
+
// attr.push(key);
|
|
31153
|
+
// }
|
|
31154
|
+
// return true;
|
|
31155
|
+
// }
|
|
31156
|
+
|
|
31151
31157
|
// console.log(key, val);
|
|
31152
31158
|
|
|
31153
31159
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|