@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -11428,16 +11428,19 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11428
11428
|
$(search_from)
|
|
11429
11429
|
.find('*')
|
|
11430
11430
|
.filter(function () {
|
|
11431
|
-
//
|
|
11431
|
+
// check if the changed field include in the calling in parameters
|
|
11432
11432
|
const elm_data = $(this).data();
|
|
11433
11433
|
|
|
11434
11434
|
let attr = [];
|
|
11435
11435
|
|
|
11436
11436
|
const validate_param_in = function (exp) {
|
|
11437
|
-
|
|
11437
|
+
let exp_val_for_parameter_in_validation;
|
|
11438
|
+
if (typeof exp === 'string') exp_val_for_parameter_in_validation = exp;
|
|
11439
|
+
if (typeof exp === 'object') exp_val_for_parameter_in_validation = JSON.stringify(exp);
|
|
11440
|
+
if (!exp_val_for_parameter_in_validation) return;
|
|
11438
11441
|
if (!exp.includes('@')) return;
|
|
11439
11442
|
if (_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) return;
|
|
11440
|
-
|
|
11443
|
+
|
|
11441
11444
|
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
11442
11445
|
if (!param_val.includes('@')) continue;
|
|
11443
11446
|
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll('@' + param_key, param_val);
|
|
@@ -11448,20 +11451,21 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11448
11451
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
11449
11452
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
11450
11453
|
|
|
11451
|
-
if (key === 'xu-bind') {
|
|
11454
|
+
if (key === 'xu-bind' || key === 'xu-for') {
|
|
11452
11455
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
11453
11456
|
attr.push(key);
|
|
11454
11457
|
}
|
|
11455
11458
|
return true;
|
|
11456
11459
|
}
|
|
11457
11460
|
|
|
11458
|
-
if (key === 'xu-for') {
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
}
|
|
11461
|
+
// if (key === 'xu-for') {
|
|
11462
|
+
// // match static value for xu-for
|
|
11463
|
+
// if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
11464
|
+
// attr.push(key);
|
|
11465
|
+
// }
|
|
11466
|
+
// return true;
|
|
11467
|
+
// }
|
|
11468
|
+
|
|
11465
11469
|
// console.log(key, val);
|
|
11466
11470
|
|
|
11467
11471
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|
|
@@ -9155,16 +9155,19 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9155
9155
|
$(search_from)
|
|
9156
9156
|
.find('*')
|
|
9157
9157
|
.filter(function () {
|
|
9158
|
-
//
|
|
9158
|
+
// check if the changed field include in the calling in parameters
|
|
9159
9159
|
const elm_data = $(this).data();
|
|
9160
9160
|
|
|
9161
9161
|
let attr = [];
|
|
9162
9162
|
|
|
9163
9163
|
const validate_param_in = function (exp) {
|
|
9164
|
-
|
|
9164
|
+
let exp_val_for_parameter_in_validation;
|
|
9165
|
+
if (typeof exp === 'string') exp_val_for_parameter_in_validation = exp;
|
|
9166
|
+
if (typeof exp === 'object') exp_val_for_parameter_in_validation = JSON.stringify(exp);
|
|
9167
|
+
if (!exp_val_for_parameter_in_validation) return;
|
|
9165
9168
|
if (!exp.includes('@')) return;
|
|
9166
9169
|
if (_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj)) return;
|
|
9167
|
-
|
|
9170
|
+
|
|
9168
9171
|
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
9169
9172
|
if (!param_val.includes('@')) continue;
|
|
9170
9173
|
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll('@' + param_key, param_val);
|
|
@@ -9175,20 +9178,21 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9175
9178
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
9176
9179
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
9177
9180
|
|
|
9178
|
-
if (key === 'xu-bind') {
|
|
9181
|
+
if (key === 'xu-bind' || key === 'xu-for') {
|
|
9179
9182
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
9180
9183
|
attr.push(key);
|
|
9181
9184
|
}
|
|
9182
9185
|
return true;
|
|
9183
9186
|
}
|
|
9184
9187
|
|
|
9185
|
-
if (key === 'xu-for') {
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
}
|
|
9188
|
+
// if (key === 'xu-for') {
|
|
9189
|
+
// // match static value for xu-for
|
|
9190
|
+
// if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
9191
|
+
// attr.push(key);
|
|
9192
|
+
// }
|
|
9193
|
+
// return true;
|
|
9194
|
+
// }
|
|
9195
|
+
|
|
9192
9196
|
// console.log(key, val);
|
|
9193
9197
|
|
|
9194
9198
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|