@xuda.io/runtime-bundle 1.0.902 → 1.0.904
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
|
@@ -11448,14 +11448,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11448
11448
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
11449
11449
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
11450
11450
|
|
|
11451
|
-
let parameter_in_filed_id; //= elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
11452
|
-
// let exp_val_for_parameter_in_validation = _.clone(val);
|
|
11453
|
-
// if (!_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj) && typeof exp_val_for_parameter_in_validation === 'string') {
|
|
11454
|
-
// for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
11455
|
-
// exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll(param_val, '@' + param_key);
|
|
11456
|
-
// }
|
|
11457
|
-
// }
|
|
11458
|
-
|
|
11459
11451
|
if (key === 'xu-bind') {
|
|
11460
11452
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
11461
11453
|
attr.push(key);
|
|
@@ -11485,7 +11477,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11485
11477
|
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
11486
11478
|
|
|
11487
11479
|
$.each(classes_obj, function (cla, cond) {
|
|
11488
|
-
if (cond.includes('@' + val_field) || cond
|
|
11480
|
+
if (cond.includes('@' + val_field) || validate_param_in(cond)) {
|
|
11489
11481
|
attr.push('xu-class');
|
|
11490
11482
|
return false;
|
|
11491
11483
|
}
|
|
@@ -11500,7 +11492,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11500
11492
|
|
|
11501
11493
|
if (key === 'xu-ui-plugin') {
|
|
11502
11494
|
const plugin_str = JSON.stringify(val);
|
|
11503
|
-
if (plugin_str.includes('@' + val_field) || plugin_str
|
|
11495
|
+
if (plugin_str.includes('@' + val_field) || validate_param_in(plugin_str)) {
|
|
11504
11496
|
attr.push(key);
|
|
11505
11497
|
return false;
|
|
11506
11498
|
}
|
|
@@ -14412,7 +14404,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14412
14404
|
);
|
|
14413
14405
|
|
|
14414
14406
|
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
|
|
14415
|
-
if (ret.abort || nodeP.tagName === 'svg') return await done();
|
|
14407
|
+
if (ret.abort || nodeP.tagName === 'svg' || nodeP?.attributes?.['xu-text'] || nodeP?.attributes?.['xu-html']) return await done();
|
|
14416
14408
|
// check if iterator made to prevent children render
|
|
14417
14409
|
|
|
14418
14410
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
@@ -9175,14 +9175,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9175
9175
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
9176
9176
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
9177
9177
|
|
|
9178
|
-
let parameter_in_filed_id; //= elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
|
|
9179
|
-
// let exp_val_for_parameter_in_validation = _.clone(val);
|
|
9180
|
-
// if (!_.isEmpty(elm_data?.xuData?.paramsP?.parameters_raw_obj) && typeof exp_val_for_parameter_in_validation === 'string') {
|
|
9181
|
-
// for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
9182
|
-
// exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll(param_val, '@' + param_key);
|
|
9183
|
-
// }
|
|
9184
|
-
// }
|
|
9185
|
-
|
|
9186
9178
|
if (key === 'xu-bind') {
|
|
9187
9179
|
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
9188
9180
|
attr.push(key);
|
|
@@ -9212,7 +9204,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9212
9204
|
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
9213
9205
|
|
|
9214
9206
|
$.each(classes_obj, function (cla, cond) {
|
|
9215
|
-
if (cond.includes('@' + val_field) || cond
|
|
9207
|
+
if (cond.includes('@' + val_field) || validate_param_in(cond)) {
|
|
9216
9208
|
attr.push('xu-class');
|
|
9217
9209
|
return false;
|
|
9218
9210
|
}
|
|
@@ -9227,7 +9219,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9227
9219
|
|
|
9228
9220
|
if (key === 'xu-ui-plugin') {
|
|
9229
9221
|
const plugin_str = JSON.stringify(val);
|
|
9230
|
-
if (plugin_str.includes('@' + val_field) || plugin_str
|
|
9222
|
+
if (plugin_str.includes('@' + val_field) || validate_param_in(plugin_str)) {
|
|
9231
9223
|
attr.push(key);
|
|
9232
9224
|
return false;
|
|
9233
9225
|
}
|
|
@@ -12139,7 +12131,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12139
12131
|
);
|
|
12140
12132
|
|
|
12141
12133
|
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
|
|
12142
|
-
if (ret.abort || nodeP.tagName === 'svg') return await done();
|
|
12134
|
+
if (ret.abort || nodeP.tagName === 'svg' || nodeP?.attributes?.['xu-text'] || nodeP?.attributes?.['xu-html']) return await done();
|
|
12143
12135
|
// check if iterator made to prevent children render
|
|
12144
12136
|
|
|
12145
12137
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|