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