@xuda.io/runtime-bundle 1.0.905 → 1.0.907
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);
|
|
@@ -11446,22 +11449,25 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11446
11449
|
};
|
|
11447
11450
|
|
|
11448
11451
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
11452
|
+
if (typeof exp !== 'string' && typeof exp !== 'object') return true;
|
|
11453
|
+
if (typeof exp === 'string' && !val?.includes('@')) return true;
|
|
11449
11454
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
11450
11455
|
|
|
11451
|
-
if (key === 'xu-bind') {
|
|
11456
|
+
if (key === 'xu-bind' || key === 'xu-for') {
|
|
11452
11457
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
11453
11458
|
attr.push(key);
|
|
11454
11459
|
}
|
|
11455
11460
|
return true;
|
|
11456
11461
|
}
|
|
11457
11462
|
|
|
11458
|
-
if (key === 'xu-for') {
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
}
|
|
11463
|
+
// if (key === 'xu-for') {
|
|
11464
|
+
// // match static value for xu-for
|
|
11465
|
+
// if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
11466
|
+
// attr.push(key);
|
|
11467
|
+
// }
|
|
11468
|
+
// return true;
|
|
11469
|
+
// }
|
|
11470
|
+
|
|
11465
11471
|
// console.log(key, val);
|
|
11466
11472
|
|
|
11467
11473
|
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);
|
|
@@ -9173,22 +9176,25 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9173
9176
|
};
|
|
9174
9177
|
|
|
9175
9178
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
9179
|
+
if (typeof exp !== 'string' && typeof exp !== 'object') return true;
|
|
9180
|
+
if (typeof exp === 'string' && !val?.includes('@')) return true;
|
|
9176
9181
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
9177
9182
|
|
|
9178
|
-
if (key === 'xu-bind') {
|
|
9183
|
+
if (key === 'xu-bind' || key === 'xu-for') {
|
|
9179
9184
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
9180
9185
|
attr.push(key);
|
|
9181
9186
|
}
|
|
9182
9187
|
return true;
|
|
9183
9188
|
}
|
|
9184
9189
|
|
|
9185
|
-
if (key === 'xu-for') {
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
}
|
|
9190
|
+
// if (key === 'xu-for') {
|
|
9191
|
+
// // match static value for xu-for
|
|
9192
|
+
// if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
9193
|
+
// attr.push(key);
|
|
9194
|
+
// }
|
|
9195
|
+
// return true;
|
|
9196
|
+
// }
|
|
9197
|
+
|
|
9192
9198
|
// console.log(key, val);
|
|
9193
9199
|
|
|
9194
9200
|
if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
|