@xuda.io/runtime-bundle 1.0.939 → 1.0.941
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/modules/xuda-studio-checker.min.mjs +1 -1
- package/js/modules/xuda-studio-checker.mjs +1 -1
- package/js/xuda-runtime-bundle.js +9 -35
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +9 -35
- package/js/xuda-runtime-slim.min.es.js +9 -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;
|
|
@@ -12334,7 +12305,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12334
12305
|
if (!value) {
|
|
12335
12306
|
var cloned_$div = $elm.clone(true);
|
|
12336
12307
|
|
|
12337
|
-
let $xurender = $('<xurender>')
|
|
12308
|
+
let $xurender = $('<xurender>')
|
|
12309
|
+
.attr('xu-ui-id', nodeP.id + '_' + $elm.data().xuData.recordid)
|
|
12310
|
+
.appendTo($container)
|
|
12311
|
+
.hide();
|
|
12338
12312
|
let original_data_obj = {
|
|
12339
12313
|
$container: cloned_$div,
|
|
12340
12314
|
nodeP: _.cloneDeep(nodeP),
|
|
@@ -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
|
|
|
@@ -10061,7 +10032,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10061
10032
|
if (!value) {
|
|
10062
10033
|
var cloned_$div = $elm.clone(true);
|
|
10063
10034
|
|
|
10064
|
-
let $xurender = $('<xurender>')
|
|
10035
|
+
let $xurender = $('<xurender>')
|
|
10036
|
+
.attr('xu-ui-id', nodeP.id + '_' + $elm.data().xuData.recordid)
|
|
10037
|
+
.appendTo($container)
|
|
10038
|
+
.hide();
|
|
10065
10039
|
let original_data_obj = {
|
|
10066
10040
|
$container: cloned_$div,
|
|
10067
10041
|
nodeP: _.cloneDeep(nodeP),
|
|
@@ -14363,7 +14337,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
14363
14337
|
}
|
|
14364
14338
|
if (typeof retP.value !== 'undefined') {
|
|
14365
14339
|
var_Arr[key].type = retP.type;
|
|
14366
|
-
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 &&
|
|
14340
|
+
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"
|
|
14367
14341
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
14368
14342
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
14369
14343
|
var data = retP.prop;
|