@xuda.io/runtime-bundle 1.0.895 → 1.0.896
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -11436,10 +11436,16 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11436
11436
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
11437
11437
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
11438
11438
|
|
|
11439
|
-
|
|
11439
|
+
let parameter_in_filed_id = elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
11440
|
+
let exp_val_for_parameter_in_validation = _.clone(val);
|
|
11441
|
+
if (!_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
11442
|
+
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
11443
|
+
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll(param_val, param_key);
|
|
11444
|
+
}
|
|
11445
|
+
}
|
|
11440
11446
|
|
|
11441
11447
|
if (key === 'xu-bind') {
|
|
11442
|
-
if (val?.includes?.(val_field) ||
|
|
11448
|
+
if (val?.includes?.(val_field) || exp_val_for_parameter_in_validation?.includes?.(val_field)) {
|
|
11443
11449
|
attr.push(key);
|
|
11444
11450
|
}
|
|
11445
11451
|
return true;
|
|
@@ -11447,7 +11453,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11447
11453
|
|
|
11448
11454
|
if (key === 'xu-for') {
|
|
11449
11455
|
// match static value for xu-for
|
|
11450
|
-
if (val?.includes?.(val_field) ||
|
|
11456
|
+
if (val?.includes?.(val_field) || exp_val_for_parameter_in_validation?.includes?.(val_field)) {
|
|
11451
11457
|
attr.push(key);
|
|
11452
11458
|
}
|
|
11453
11459
|
return true;
|
|
@@ -11455,7 +11461,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11455
11461
|
// console.log(key, val);
|
|
11456
11462
|
|
|
11457
11463
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|
|
11458
|
-
if (val?.includes?.('@' + val_field) ||
|
|
11464
|
+
if (val?.includes?.('@' + val_field) || exp_val_for_parameter_in_validation?.includes?.('@' + val_field)) {
|
|
11459
11465
|
attr.push(key);
|
|
11460
11466
|
}
|
|
11461
11467
|
return true;
|
|
@@ -11463,8 +11469,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11463
11469
|
|
|
11464
11470
|
if (key.substr(0, 8) === 'xu-class') {
|
|
11465
11471
|
try {
|
|
11466
|
-
// let obj = JSON.parse(val);
|
|
11467
|
-
|
|
11468
11472
|
const classes_string = val;
|
|
11469
11473
|
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
11470
11474
|
|
|
@@ -9163,10 +9163,16 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9163
9163
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
9164
9164
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
9165
9165
|
|
|
9166
|
-
|
|
9166
|
+
let parameter_in_filed_id = elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
9167
|
+
let exp_val_for_parameter_in_validation = _.clone(val);
|
|
9168
|
+
if (!_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
9169
|
+
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
9170
|
+
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll(param_val, param_key);
|
|
9171
|
+
}
|
|
9172
|
+
}
|
|
9167
9173
|
|
|
9168
9174
|
if (key === 'xu-bind') {
|
|
9169
|
-
if (val?.includes?.(val_field) ||
|
|
9175
|
+
if (val?.includes?.(val_field) || exp_val_for_parameter_in_validation?.includes?.(val_field)) {
|
|
9170
9176
|
attr.push(key);
|
|
9171
9177
|
}
|
|
9172
9178
|
return true;
|
|
@@ -9174,7 +9180,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9174
9180
|
|
|
9175
9181
|
if (key === 'xu-for') {
|
|
9176
9182
|
// match static value for xu-for
|
|
9177
|
-
if (val?.includes?.(val_field) ||
|
|
9183
|
+
if (val?.includes?.(val_field) || exp_val_for_parameter_in_validation?.includes?.(val_field)) {
|
|
9178
9184
|
attr.push(key);
|
|
9179
9185
|
}
|
|
9180
9186
|
return true;
|
|
@@ -9182,7 +9188,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9182
9188
|
// console.log(key, val);
|
|
9183
9189
|
|
|
9184
9190
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|
|
9185
|
-
if (val?.includes?.('@' + val_field) ||
|
|
9191
|
+
if (val?.includes?.('@' + val_field) || exp_val_for_parameter_in_validation?.includes?.('@' + val_field)) {
|
|
9186
9192
|
attr.push(key);
|
|
9187
9193
|
}
|
|
9188
9194
|
return true;
|
|
@@ -9190,8 +9196,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9190
9196
|
|
|
9191
9197
|
if (key.substr(0, 8) === 'xu-class') {
|
|
9192
9198
|
try {
|
|
9193
|
-
// let obj = JSON.parse(val);
|
|
9194
|
-
|
|
9195
9199
|
const classes_string = val;
|
|
9196
9200
|
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
9197
9201
|
|