@xuda.io/runtime-bundle 1.0.905 → 1.0.906
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);
|
|
@@ -31134,20 +31137,21 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31134
31137
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
31135
31138
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
31136
31139
|
|
|
31137
|
-
if (key === 'xu-bind') {
|
|
31140
|
+
if (key === 'xu-bind' || key === 'xu-for') {
|
|
31138
31141
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31139
31142
|
attr.push(key);
|
|
31140
31143
|
}
|
|
31141
31144
|
return true;
|
|
31142
31145
|
}
|
|
31143
31146
|
|
|
31144
|
-
if (key === 'xu-for') {
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
}
|
|
31147
|
+
// if (key === 'xu-for') {
|
|
31148
|
+
// // match static value for xu-for
|
|
31149
|
+
// if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31150
|
+
// attr.push(key);
|
|
31151
|
+
// }
|
|
31152
|
+
// return true;
|
|
31153
|
+
// }
|
|
31154
|
+
|
|
31151
31155
|
// console.log(key, val);
|
|
31152
31156
|
|
|
31153
31157
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|