@xuda.io/runtime-bundle 1.0.938 → 1.0.940
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 +7 -35
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +7 -35
- package/js/xuda-runtime-slim.min.es.js +7 -35
- package/js/xuda-runtime-slim.min.js +2 -2
- 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
|
@@ -27534,33 +27534,6 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27534
27534
|
}, 1000);
|
|
27535
27535
|
};
|
|
27536
27536
|
func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
|
|
27537
|
-
// try {
|
|
27538
|
-
// let params = _.cloneDeep(paramsP);
|
|
27539
|
-
|
|
27540
|
-
// if (params?.elem_val?.$elm) {
|
|
27541
|
-
// params = _.cloneDeep(paramsP);
|
|
27542
|
-
// params.elem_val.elm_xu_ui_id = paramsP.elem_val.$elm.attr("xu-ui-id");
|
|
27543
|
-
// delete params.elem_val.$elm;
|
|
27544
|
-
// }
|
|
27545
|
-
|
|
27546
|
-
// func.UI.worker.ID.postMessage({
|
|
27547
|
-
// method: "add_to_queue",
|
|
27548
|
-
// params: {
|
|
27549
|
-
// SESSION_ID,
|
|
27550
|
-
// source,
|
|
27551
|
-
// functionP,
|
|
27552
|
-
// paramsP: params,
|
|
27553
|
-
// calling_job,
|
|
27554
|
-
// xu_ui_id: elementP?.attr("xu-ui-id") || "",
|
|
27555
|
-
// dsSession,
|
|
27556
|
-
// calling_trigger_prop,
|
|
27557
|
-
// },
|
|
27558
|
-
// });
|
|
27559
|
-
// } catch (error) {
|
|
27560
|
-
// debugger;
|
|
27561
|
-
// }
|
|
27562
|
-
|
|
27563
|
-
// return;
|
|
27564
27537
|
var obj = {
|
|
27565
27538
|
SESSION_ID,
|
|
27566
27539
|
source,
|
|
@@ -27572,12 +27545,7 @@ func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, par
|
|
|
27572
27545
|
calling_trigger_prop,
|
|
27573
27546
|
job_num: UI_WORKER_OBJ.num,
|
|
27574
27547
|
};
|
|
27575
|
-
|
|
27576
|
-
// if (typeof dsSessionP !== "undefined" && dsSessionP !== null) {
|
|
27577
|
-
// obj.prog_id = _ds.prog_id;
|
|
27578
|
-
// obj.parentDataSourceNo = _ds.parentDataSourceNo;
|
|
27579
|
-
// obj.nodeId = _ds.nodeId;
|
|
27580
|
-
// }
|
|
27548
|
+
|
|
27581
27549
|
if (functionP === 'execute_xu_all_attributes') {
|
|
27582
27550
|
const queue_key = source + '_' + functionP + '_' + (elementP?.attr('xu-ui-id') || '') + '_' + (paramsP?.fields_arr?.toString() || '');
|
|
27583
27551
|
|
|
@@ -27615,6 +27583,9 @@ func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, par
|
|
|
27615
27583
|
// UI_WORKER_OBJ.jobs.splice(0, 0, obj);
|
|
27616
27584
|
}
|
|
27617
27585
|
} else {
|
|
27586
|
+
// check case of xu-render if queue has child node of the element then delete job
|
|
27587
|
+
// check case of execute attributes that queue not contain the element then add to parallel queue
|
|
27588
|
+
|
|
27618
27589
|
UI_WORKER_OBJ.jobs.push(obj);
|
|
27619
27590
|
}
|
|
27620
27591
|
|
|
@@ -32391,7 +32362,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32391
32362
|
evt[val.event_modifiers]();
|
|
32392
32363
|
}
|
|
32393
32364
|
|
|
32394
|
-
if (val.handler === 'custom') {
|
|
32365
|
+
// if (val.handler === 'custom') {
|
|
32366
|
+
if (val.workflow) {
|
|
32395
32367
|
// do BL
|
|
32396
32368
|
for await (const [key2, val2] of Object.entries(val.workflow)) {
|
|
32397
32369
|
// var cond = val2.data.enabled;
|
|
@@ -35013,7 +34985,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
35013
34985
|
}
|
|
35014
34986
|
if (typeof retP.value !== 'undefined') {
|
|
35015
34987
|
var_Arr[key].type = retP.type;
|
|
35016
|
-
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 &&
|
|
34988
|
+
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 && !['UI Attr EXP', 'update'].includes(sourceP) ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\"" // new Jul 29 25 to fix quil extra "\" " source!=="UI Attr EXP"
|
|
35017
34989
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
35018
34990
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
35019
34991
|
var data = retP.prop;
|