@xuda.io/runtime-bundle 1.0.908 → 1.0.910
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-bundle.js +6 -9
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +6 -9
- package/js/xuda-runtime-slim.min.es.js +6 -9
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +1 -1
- package/js/xuda-worker-bundle.js +1 -1
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -5193,7 +5193,7 @@ func.datasource.get_value = async function (SESSION_ID, fieldIdP, dsSessionP, ro
|
|
|
5193
5193
|
};
|
|
5194
5194
|
|
|
5195
5195
|
if (ret.value && typeof ret.value === 'string' && ret.type !== 'exp') {
|
|
5196
|
-
if (/"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
|
|
5196
|
+
if (!ret.value.includes('<svg xmlns=') && /"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
|
|
5197
5197
|
// if (/"/.test(ret.value) && ret.value.indexOf("\\") === -1)
|
|
5198
5198
|
// ret.value = ret.value.replace(/"/g, '\\"');
|
|
5199
5199
|
}
|
|
@@ -11433,7 +11433,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11433
11433
|
|
|
11434
11434
|
let attr = [];
|
|
11435
11435
|
|
|
11436
|
-
const validate_param_in = function (exp) {
|
|
11436
|
+
const validate_param_in = function (exp, without_var) {
|
|
11437
11437
|
let exp_val_for_parameter_in_validation;
|
|
11438
11438
|
if (typeof exp === 'string') exp_val_for_parameter_in_validation = exp;
|
|
11439
11439
|
if (typeof exp === 'object') exp_val_for_parameter_in_validation = JSON.stringify(exp);
|
|
@@ -11443,18 +11443,18 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11443
11443
|
|
|
11444
11444
|
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
11445
11445
|
if (!param_val.includes('@')) continue;
|
|
11446
|
-
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll('@' + param_key, param_val);
|
|
11446
|
+
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll((without_var ? '' : '@') + param_key, param_val);
|
|
11447
11447
|
}
|
|
11448
|
-
return exp_val_for_parameter_in_validation?.includes?.('@' + val_field);
|
|
11448
|
+
return exp_val_for_parameter_in_validation?.includes?.((without_var ? '' : '@') + val_field);
|
|
11449
11449
|
};
|
|
11450
11450
|
|
|
11451
11451
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
11452
11452
|
if (typeof val !== 'string' && typeof val !== 'object') return true;
|
|
11453
|
-
if (typeof val === 'string' && !val?.includes('@')) return true;
|
|
11453
|
+
if (typeof val === 'string' && !val?.includes('@') && key !== 'xu-bind' && key !== 'xu-for') return true;
|
|
11454
11454
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
11455
11455
|
|
|
11456
11456
|
if (key === 'xu-bind' || key === 'xu-for') {
|
|
11457
|
-
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
11457
|
+
if (val?.includes?.(val_field) || validate_param_in(val, true)) {
|
|
11458
11458
|
attr.push(key);
|
|
11459
11459
|
}
|
|
11460
11460
|
return true;
|
|
@@ -12507,7 +12507,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12507
12507
|
console.warn(e);
|
|
12508
12508
|
}
|
|
12509
12509
|
return;
|
|
12510
|
-
return { abort: true };
|
|
12511
12510
|
},
|
|
12512
12511
|
'xu-text': async function ($elm, val) {
|
|
12513
12512
|
try {
|
|
@@ -12516,7 +12515,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12516
12515
|
console.warn(e);
|
|
12517
12516
|
}
|
|
12518
12517
|
return;
|
|
12519
|
-
return { abort: true };
|
|
12520
12518
|
},
|
|
12521
12519
|
'xu-html': async function ($elm, val) {
|
|
12522
12520
|
try {
|
|
@@ -12525,7 +12523,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12525
12523
|
console.warn(e);
|
|
12526
12524
|
}
|
|
12527
12525
|
return;
|
|
12528
|
-
return { abort: true };
|
|
12529
12526
|
},
|
|
12530
12527
|
'xu-for': async function ($elm, data) {
|
|
12531
12528
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|
|
@@ -5194,7 +5194,7 @@ func.datasource.get_value = async function (SESSION_ID, fieldIdP, dsSessionP, ro
|
|
|
5194
5194
|
};
|
|
5195
5195
|
|
|
5196
5196
|
if (ret.value && typeof ret.value === 'string' && ret.type !== 'exp') {
|
|
5197
|
-
if (/"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
|
|
5197
|
+
if (!ret.value.includes('<svg xmlns=') && /"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
|
|
5198
5198
|
// if (/"/.test(ret.value) && ret.value.indexOf("\\") === -1)
|
|
5199
5199
|
// ret.value = ret.value.replace(/"/g, '\\"');
|
|
5200
5200
|
}
|
|
@@ -9160,7 +9160,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9160
9160
|
|
|
9161
9161
|
let attr = [];
|
|
9162
9162
|
|
|
9163
|
-
const validate_param_in = function (exp) {
|
|
9163
|
+
const validate_param_in = function (exp, without_var) {
|
|
9164
9164
|
let exp_val_for_parameter_in_validation;
|
|
9165
9165
|
if (typeof exp === 'string') exp_val_for_parameter_in_validation = exp;
|
|
9166
9166
|
if (typeof exp === 'object') exp_val_for_parameter_in_validation = JSON.stringify(exp);
|
|
@@ -9170,18 +9170,18 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9170
9170
|
|
|
9171
9171
|
for (const [param_key, param_val] of Object.entries(elm_data?.xuData?.paramsP?.parameters_raw_obj)) {
|
|
9172
9172
|
if (!param_val.includes('@')) continue;
|
|
9173
|
-
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll('@' + param_key, param_val);
|
|
9173
|
+
exp_val_for_parameter_in_validation = exp_val_for_parameter_in_validation.replaceAll((without_var ? '' : '@') + param_key, param_val);
|
|
9174
9174
|
}
|
|
9175
|
-
return exp_val_for_parameter_in_validation?.includes?.('@' + val_field);
|
|
9175
|
+
return exp_val_for_parameter_in_validation?.includes?.((without_var ? '' : '@') + val_field);
|
|
9176
9176
|
};
|
|
9177
9177
|
|
|
9178
9178
|
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
9179
9179
|
if (typeof val !== 'string' && typeof val !== 'object') return true;
|
|
9180
|
-
if (typeof val === 'string' && !val?.includes('@')) return true;
|
|
9180
|
+
if (typeof val === 'string' && !val?.includes('@') && key !== 'xu-bind' && key !== 'xu-for') return true;
|
|
9181
9181
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
9182
9182
|
|
|
9183
9183
|
if (key === 'xu-bind' || key === 'xu-for') {
|
|
9184
|
-
if (val?.includes?.(val_field) || validate_param_in(val)) {
|
|
9184
|
+
if (val?.includes?.(val_field) || validate_param_in(val, true)) {
|
|
9185
9185
|
attr.push(key);
|
|
9186
9186
|
}
|
|
9187
9187
|
return true;
|
|
@@ -10234,7 +10234,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10234
10234
|
console.warn(e);
|
|
10235
10235
|
}
|
|
10236
10236
|
return;
|
|
10237
|
-
return { abort: true };
|
|
10238
10237
|
},
|
|
10239
10238
|
'xu-text': async function ($elm, val) {
|
|
10240
10239
|
try {
|
|
@@ -10243,7 +10242,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10243
10242
|
console.warn(e);
|
|
10244
10243
|
}
|
|
10245
10244
|
return;
|
|
10246
|
-
return { abort: true };
|
|
10247
10245
|
},
|
|
10248
10246
|
'xu-html': async function ($elm, val) {
|
|
10249
10247
|
try {
|
|
@@ -10252,7 +10250,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10252
10250
|
console.warn(e);
|
|
10253
10251
|
}
|
|
10254
10252
|
return;
|
|
10255
|
-
return { abort: true };
|
|
10256
10253
|
},
|
|
10257
10254
|
'xu-for': async function ($elm, data) {
|
|
10258
10255
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|