@xuda.io/runtime-bundle 1.0.1269 → 1.0.1271

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.
@@ -8695,7 +8695,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8695
8695
  await func.datasource.update(SESSION_ID, datasource_changes);
8696
8696
  }
8697
8697
  }
8698
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8698
+ if (!currentRecordId) return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8699
8699
  },
8700
8700
  execute_xu_render_attributes: async function () {
8701
8701
  const _data = queue_obj.paramsP.elem_val.$elm.data();
@@ -8722,7 +8722,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8722
8722
  );
8723
8723
  }
8724
8724
 
8725
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8725
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8726
8726
  },
8727
8727
  execute_xu_all_attributes: async function () {
8728
8728
  const done = function () {
@@ -8793,7 +8793,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8793
8793
  var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
8794
8794
 
8795
8795
  if (!$elm?.length) {
8796
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8796
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8797
8797
  }
8798
8798
 
8799
8799
  // $elm.empty();
@@ -8810,7 +8810,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8810
8810
  const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
8811
8811
  await func.UI.screen.render_ui_tree(queue_obj.paramsP.SESSION_ID, queue_obj.paramsP.elem_val.$elm, node_to_render, null, _data.xuData.paramsP, queue_obj.jobNoP, null, _data.xuData.key, null, _data.xuData.parent_node, null, _data.xuData.$root_container);
8812
8812
  } catch (error) {}
8813
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8813
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8814
8814
  },
8815
8815
  render_viewport: async function () {
8816
8816
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
@@ -8831,7 +8831,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8831
8831
  }
8832
8832
  }
8833
8833
 
8834
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8834
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8835
8835
  },
8836
8836
  set_viewport_height: async function () {
8837
8837
  const { $div, height } = queue_obj?.paramsP || {};
@@ -8842,14 +8842,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8842
8842
  }
8843
8843
  });
8844
8844
 
8845
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8845
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8846
8846
  },
8847
8847
  execute_xu_widget: async function () {
8848
8848
  try {
8849
8849
  var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
8850
8850
 
8851
8851
  if (!$elm?.length) {
8852
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8852
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8853
8853
  }
8854
8854
 
8855
8855
  // $elm.empty();
@@ -8868,7 +8868,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8868
8868
  const node_to_render = _data.xuData.node_org; //_data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
8869
8869
  await func.UI.screen.render_ui_tree(queue_obj.paramsP.SESSION_ID, $(`[xu-ui-id="${parent_id}"]`), node_to_render, null, _data.xuData.paramsP, queue_obj.jobNoP, null, _data.xuData.key, null, _data.xuData.parent_node, null, _data.xuData.$root_container);
8870
8870
  } catch (error) {}
8871
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8871
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8872
8872
  },
8873
8873
  };
8874
8874
 
@@ -8696,7 +8696,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8696
8696
  await func.datasource.update(SESSION_ID, datasource_changes);
8697
8697
  }
8698
8698
  }
8699
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8699
+ if (!currentRecordId) return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8700
8700
  },
8701
8701
  execute_xu_render_attributes: async function () {
8702
8702
  const _data = queue_obj.paramsP.elem_val.$elm.data();
@@ -8723,7 +8723,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8723
8723
  );
8724
8724
  }
8725
8725
 
8726
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8726
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8727
8727
  },
8728
8728
  execute_xu_all_attributes: async function () {
8729
8729
  const done = function () {
@@ -8794,7 +8794,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8794
8794
  var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
8795
8795
 
8796
8796
  if (!$elm?.length) {
8797
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8797
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8798
8798
  }
8799
8799
 
8800
8800
  // $elm.empty();
@@ -8811,7 +8811,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8811
8811
  const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
8812
8812
  await func.UI.screen.render_ui_tree(queue_obj.paramsP.SESSION_ID, queue_obj.paramsP.elem_val.$elm, node_to_render, null, _data.xuData.paramsP, queue_obj.jobNoP, null, _data.xuData.key, null, _data.xuData.parent_node, null, _data.xuData.$root_container);
8813
8813
  } catch (error) {}
8814
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8814
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8815
8815
  },
8816
8816
  render_viewport: async function () {
8817
8817
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
@@ -8832,7 +8832,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8832
8832
  }
8833
8833
  }
8834
8834
 
8835
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8835
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8836
8836
  },
8837
8837
  set_viewport_height: async function () {
8838
8838
  const { $div, height } = queue_obj?.paramsP || {};
@@ -8843,14 +8843,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8843
8843
  }
8844
8844
  });
8845
8845
 
8846
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8846
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8847
8847
  },
8848
8848
  execute_xu_widget: async function () {
8849
8849
  try {
8850
8850
  var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
8851
8851
 
8852
8852
  if (!$elm?.length) {
8853
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8853
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8854
8854
  }
8855
8855
 
8856
8856
  // $elm.empty();
@@ -8869,7 +8869,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8869
8869
  const node_to_render = _data.xuData.node_org; //_data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
8870
8870
  await func.UI.screen.render_ui_tree(queue_obj.paramsP.SESSION_ID, $(`[xu-ui-id="${parent_id}"]`), node_to_render, null, _data.xuData.paramsP, queue_obj.jobNoP, null, _data.xuData.key, null, _data.xuData.parent_node, null, _data.xuData.$root_container);
8871
8871
  } catch (error) {}
8872
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8872
+ return await func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8873
8873
  },
8874
8874
  };
8875
8875