@xuda.io/runtime-bundle 1.0.897 → 1.0.899
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,19 +31119,29 @@ 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) {
|
|
31123
|
+
if (!typeof exp === 'string') return;
|
|
31124
|
+
if (_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) return;
|
|
31125
|
+
let exp_val_for_parameter_in_validation = _.clone(exp);
|
|
31126
|
+
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
31127
|
+
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll(param_val, '@' + param_key);
|
|
31128
|
+
}
|
|
31129
|
+
return exp_val_for_parameter_in_validation?.includes?.('@' + val_field);
|
|
31130
|
+
};
|
|
31131
|
+
|
|
31122
31132
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
31123
31133
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
31124
31134
|
|
|
31125
31135
|
let parameter_in_filed_id; //= elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
31126
|
-
let exp_val_for_parameter_in_validation = _.clone(val);
|
|
31127
|
-
if (!_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
31128
|
-
|
|
31129
|
-
|
|
31130
|
-
|
|
31131
|
-
}
|
|
31136
|
+
// let exp_val_for_parameter_in_validation = _.clone(val);
|
|
31137
|
+
// if (!_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj) && typeof exp_val_for_parameter_in_validation === 'string') {
|
|
31138
|
+
// for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
31139
|
+
// exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll(param_val, '@' + param_key);
|
|
31140
|
+
// }
|
|
31141
|
+
// }
|
|
31132
31142
|
|
|
31133
31143
|
if (key === 'xu-bind') {
|
|
31134
|
-
if (val?.includes?.(val_field) ||
|
|
31144
|
+
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31135
31145
|
attr.push(key);
|
|
31136
31146
|
}
|
|
31137
31147
|
return true;
|
|
@@ -31139,7 +31149,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31139
31149
|
|
|
31140
31150
|
if (key === 'xu-for') {
|
|
31141
31151
|
// match static value for xu-for
|
|
31142
|
-
if (val?.includes?.(val_field) ||
|
|
31152
|
+
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
31143
31153
|
attr.push(key);
|
|
31144
31154
|
}
|
|
31145
31155
|
return true;
|
|
@@ -31147,7 +31157,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31147
31157
|
// console.log(key, val);
|
|
31148
31158
|
|
|
31149
31159
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|
|
31150
|
-
if (val?.includes?.('@' + val_field) ||
|
|
31160
|
+
if (val?.includes?.('@' + val_field) || validate_param_in(val)) {
|
|
31151
31161
|
attr.push(key);
|
|
31152
31162
|
}
|
|
31153
31163
|
return true;
|