@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
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8395,33 +8395,6 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8395
8395
|
}, 1000);
|
|
8396
8396
|
};
|
|
8397
8397
|
func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
|
|
8398
|
-
// try {
|
|
8399
|
-
// let params = _.cloneDeep(paramsP);
|
|
8400
|
-
|
|
8401
|
-
// if (params?.elem_val?.$elm) {
|
|
8402
|
-
// params = _.cloneDeep(paramsP);
|
|
8403
|
-
// params.elem_val.elm_xu_ui_id = paramsP.elem_val.$elm.attr("xu-ui-id");
|
|
8404
|
-
// delete params.elem_val.$elm;
|
|
8405
|
-
// }
|
|
8406
|
-
|
|
8407
|
-
// func.UI.worker.ID.postMessage({
|
|
8408
|
-
// method: "add_to_queue",
|
|
8409
|
-
// params: {
|
|
8410
|
-
// SESSION_ID,
|
|
8411
|
-
// source,
|
|
8412
|
-
// functionP,
|
|
8413
|
-
// paramsP: params,
|
|
8414
|
-
// calling_job,
|
|
8415
|
-
// xu_ui_id: elementP?.attr("xu-ui-id") || "",
|
|
8416
|
-
// dsSession,
|
|
8417
|
-
// calling_trigger_prop,
|
|
8418
|
-
// },
|
|
8419
|
-
// });
|
|
8420
|
-
// } catch (error) {
|
|
8421
|
-
// debugger;
|
|
8422
|
-
// }
|
|
8423
|
-
|
|
8424
|
-
// return;
|
|
8425
8398
|
var obj = {
|
|
8426
8399
|
SESSION_ID,
|
|
8427
8400
|
source,
|
|
@@ -8433,12 +8406,7 @@ func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, par
|
|
|
8433
8406
|
calling_trigger_prop,
|
|
8434
8407
|
job_num: UI_WORKER_OBJ.num,
|
|
8435
8408
|
};
|
|
8436
|
-
|
|
8437
|
-
// if (typeof dsSessionP !== "undefined" && dsSessionP !== null) {
|
|
8438
|
-
// obj.prog_id = _ds.prog_id;
|
|
8439
|
-
// obj.parentDataSourceNo = _ds.parentDataSourceNo;
|
|
8440
|
-
// obj.nodeId = _ds.nodeId;
|
|
8441
|
-
// }
|
|
8409
|
+
|
|
8442
8410
|
if (functionP === 'execute_xu_all_attributes') {
|
|
8443
8411
|
const queue_key = source + '_' + functionP + '_' + (elementP?.attr('xu-ui-id') || '') + '_' + (paramsP?.fields_arr?.toString() || '');
|
|
8444
8412
|
|
|
@@ -8476,6 +8444,9 @@ func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, par
|
|
|
8476
8444
|
// UI_WORKER_OBJ.jobs.splice(0, 0, obj);
|
|
8477
8445
|
}
|
|
8478
8446
|
} else {
|
|
8447
|
+
// check case of xu-render if queue has child node of the element then delete job
|
|
8448
|
+
// check case of execute attributes that queue not contain the element then add to parallel queue
|
|
8449
|
+
|
|
8479
8450
|
UI_WORKER_OBJ.jobs.push(obj);
|
|
8480
8451
|
}
|
|
8481
8452
|
|
|
@@ -10331,7 +10302,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
10331
10302
|
}
|
|
10332
10303
|
if (typeof retP.value !== 'undefined') {
|
|
10333
10304
|
var_Arr[key].type = retP.type;
|
|
10334
|
-
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 &&
|
|
10305
|
+
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"
|
|
10335
10306
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
10336
10307
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
10337
10308
|
var data = retP.prop;
|
|
@@ -12705,7 +12676,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12705
12676
|
evt[val.event_modifiers]();
|
|
12706
12677
|
}
|
|
12707
12678
|
|
|
12708
|
-
if (val.handler === 'custom') {
|
|
12679
|
+
// if (val.handler === 'custom') {
|
|
12680
|
+
if (val.workflow) {
|
|
12709
12681
|
// do BL
|
|
12710
12682
|
for await (const [key2, val2] of Object.entries(val.workflow)) {
|
|
12711
12683
|
// var cond = val2.data.enabled;
|
|
@@ -8396,33 +8396,6 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8396
8396
|
}, 1000);
|
|
8397
8397
|
};
|
|
8398
8398
|
func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
|
|
8399
|
-
// try {
|
|
8400
|
-
// let params = _.cloneDeep(paramsP);
|
|
8401
|
-
|
|
8402
|
-
// if (params?.elem_val?.$elm) {
|
|
8403
|
-
// params = _.cloneDeep(paramsP);
|
|
8404
|
-
// params.elem_val.elm_xu_ui_id = paramsP.elem_val.$elm.attr("xu-ui-id");
|
|
8405
|
-
// delete params.elem_val.$elm;
|
|
8406
|
-
// }
|
|
8407
|
-
|
|
8408
|
-
// func.UI.worker.ID.postMessage({
|
|
8409
|
-
// method: "add_to_queue",
|
|
8410
|
-
// params: {
|
|
8411
|
-
// SESSION_ID,
|
|
8412
|
-
// source,
|
|
8413
|
-
// functionP,
|
|
8414
|
-
// paramsP: params,
|
|
8415
|
-
// calling_job,
|
|
8416
|
-
// xu_ui_id: elementP?.attr("xu-ui-id") || "",
|
|
8417
|
-
// dsSession,
|
|
8418
|
-
// calling_trigger_prop,
|
|
8419
|
-
// },
|
|
8420
|
-
// });
|
|
8421
|
-
// } catch (error) {
|
|
8422
|
-
// debugger;
|
|
8423
|
-
// }
|
|
8424
|
-
|
|
8425
|
-
// return;
|
|
8426
8399
|
var obj = {
|
|
8427
8400
|
SESSION_ID,
|
|
8428
8401
|
source,
|
|
@@ -8434,12 +8407,7 @@ func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, par
|
|
|
8434
8407
|
calling_trigger_prop,
|
|
8435
8408
|
job_num: UI_WORKER_OBJ.num,
|
|
8436
8409
|
};
|
|
8437
|
-
|
|
8438
|
-
// if (typeof dsSessionP !== "undefined" && dsSessionP !== null) {
|
|
8439
|
-
// obj.prog_id = _ds.prog_id;
|
|
8440
|
-
// obj.parentDataSourceNo = _ds.parentDataSourceNo;
|
|
8441
|
-
// obj.nodeId = _ds.nodeId;
|
|
8442
|
-
// }
|
|
8410
|
+
|
|
8443
8411
|
if (functionP === 'execute_xu_all_attributes') {
|
|
8444
8412
|
const queue_key = source + '_' + functionP + '_' + (elementP?.attr('xu-ui-id') || '') + '_' + (paramsP?.fields_arr?.toString() || '');
|
|
8445
8413
|
|
|
@@ -8477,6 +8445,9 @@ func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, par
|
|
|
8477
8445
|
// UI_WORKER_OBJ.jobs.splice(0, 0, obj);
|
|
8478
8446
|
}
|
|
8479
8447
|
} else {
|
|
8448
|
+
// check case of xu-render if queue has child node of the element then delete job
|
|
8449
|
+
// check case of execute attributes that queue not contain the element then add to parallel queue
|
|
8450
|
+
|
|
8480
8451
|
UI_WORKER_OBJ.jobs.push(obj);
|
|
8481
8452
|
}
|
|
8482
8453
|
|
|
@@ -10432,7 +10403,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10432
10403
|
evt[val.event_modifiers]();
|
|
10433
10404
|
}
|
|
10434
10405
|
|
|
10435
|
-
if (val.handler === 'custom') {
|
|
10406
|
+
// if (val.handler === 'custom') {
|
|
10407
|
+
if (val.workflow) {
|
|
10436
10408
|
// do BL
|
|
10437
10409
|
for await (const [key2, val2] of Object.entries(val.workflow)) {
|
|
10438
10410
|
// var cond = val2.data.enabled;
|
|
@@ -14362,7 +14334,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
14362
14334
|
}
|
|
14363
14335
|
if (typeof retP.value !== 'undefined') {
|
|
14364
14336
|
var_Arr[key].type = retP.type;
|
|
14365
|
-
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 &&
|
|
14337
|
+
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"
|
|
14366
14338
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
14367
14339
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
14368
14340
|
var data = retP.prop;
|