@xuda.io/runtime-bundle 1.0.599 → 1.0.601
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
|
@@ -8894,12 +8894,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8894
8894
|
// return func.events.delete_job(SESSION_ID, queue_obj.jobNoP);
|
|
8895
8895
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8896
8896
|
}
|
|
8897
|
+
|
|
8898
|
+
const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.elem_val?.xu_for_item_id);
|
|
8897
8899
|
$elm.empty();
|
|
8898
8900
|
let _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
8899
8901
|
func.UI.screen.render_ui_tree(
|
|
8900
8902
|
queue_obj.paramsP.SESSION_ID,
|
|
8901
8903
|
queue_obj.paramsP.elem_val.$elm,
|
|
8902
|
-
_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8904
|
+
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8903
8905
|
null,
|
|
8904
8906
|
_data.xuData.paramsP,
|
|
8905
8907
|
queue_obj.jobNoP,
|
|
@@ -11936,6 +11938,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11936
11938
|
elem_key: _elem_key,
|
|
11937
11939
|
elem_val: _elem_val,
|
|
11938
11940
|
fields_arr,
|
|
11941
|
+
xu_for_item_id: item.id,
|
|
11939
11942
|
};
|
|
11940
11943
|
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
11941
11944
|
|
|
@@ -13544,7 +13547,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
13544
13547
|
try {
|
|
13545
13548
|
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
13546
13549
|
const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
|
|
13547
|
-
let ui_id = `${nodeP.
|
|
13550
|
+
let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
13548
13551
|
|
|
13549
13552
|
/////////////////////////////////
|
|
13550
13553
|
|
|
@@ -13600,7 +13603,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
13600
13603
|
prog_id: _paramsP.prog_id,
|
|
13601
13604
|
nodeid: nodeP.id,
|
|
13602
13605
|
ui_type: nodeP.tagName,
|
|
13603
|
-
xu_id
|
|
13606
|
+
xu_id,
|
|
13604
13607
|
recordid: currentRecordId,
|
|
13605
13608
|
paramsP: _paramsP,
|
|
13606
13609
|
key: keyP,
|
|
@@ -13608,7 +13611,6 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
13608
13611
|
screenId: _paramsP.screenId,
|
|
13609
13612
|
parent_container: $container?.attr('id'),
|
|
13610
13613
|
elem_key,
|
|
13611
|
-
ui_id,
|
|
13612
13614
|
properties: prop,
|
|
13613
13615
|
node: nodeP,
|
|
13614
13616
|
node_org: _.cloneDeep(nodeP),
|
|
@@ -8895,12 +8895,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8895
8895
|
// return func.events.delete_job(SESSION_ID, queue_obj.jobNoP);
|
|
8896
8896
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8897
8897
|
}
|
|
8898
|
+
|
|
8899
|
+
const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.elem_val?.xu_for_item_id);
|
|
8898
8900
|
$elm.empty();
|
|
8899
8901
|
let _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
8900
8902
|
func.UI.screen.render_ui_tree(
|
|
8901
8903
|
queue_obj.paramsP.SESSION_ID,
|
|
8902
8904
|
queue_obj.paramsP.elem_val.$elm,
|
|
8903
|
-
_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8905
|
+
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8904
8906
|
null,
|
|
8905
8907
|
_data.xuData.paramsP,
|
|
8906
8908
|
queue_obj.jobNoP,
|
|
@@ -9667,6 +9669,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9667
9669
|
elem_key: _elem_key,
|
|
9668
9670
|
elem_val: _elem_val,
|
|
9669
9671
|
fields_arr,
|
|
9672
|
+
xu_for_item_id: item.id,
|
|
9670
9673
|
};
|
|
9671
9674
|
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
9672
9675
|
|
|
@@ -11275,7 +11278,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
11275
11278
|
try {
|
|
11276
11279
|
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
11277
11280
|
const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
|
|
11278
|
-
let ui_id = `${nodeP.
|
|
11281
|
+
let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
11279
11282
|
|
|
11280
11283
|
/////////////////////////////////
|
|
11281
11284
|
|
|
@@ -11331,7 +11334,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
11331
11334
|
prog_id: _paramsP.prog_id,
|
|
11332
11335
|
nodeid: nodeP.id,
|
|
11333
11336
|
ui_type: nodeP.tagName,
|
|
11334
|
-
xu_id
|
|
11337
|
+
xu_id,
|
|
11335
11338
|
recordid: currentRecordId,
|
|
11336
11339
|
paramsP: _paramsP,
|
|
11337
11340
|
key: keyP,
|
|
@@ -11339,7 +11342,6 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
11339
11342
|
screenId: _paramsP.screenId,
|
|
11340
11343
|
parent_container: $container?.attr('id'),
|
|
11341
11344
|
elem_key,
|
|
11342
|
-
ui_id,
|
|
11343
11345
|
properties: prop,
|
|
11344
11346
|
node: nodeP,
|
|
11345
11347
|
node_org: _.cloneDeep(nodeP),
|