@xuda.io/runtime-bundle 1.0.1135 → 1.0.1137

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.
@@ -32342,8 +32342,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32342
32342
  }
32343
32343
  func.events.delete_job(SESSION_ID, jobNoP);
32344
32344
  };
32345
-
32346
- if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
32345
+ // if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
32346
+ if ($elm && $(`[xu-ui-id="${$elm.attr('xu-ui-id')}"]`).length) {
32347
32347
  if (new_$div.data().xuData.paramsP) {
32348
32348
  return await replace();
32349
32349
  }
@@ -32862,7 +32862,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32862
32862
  prop_val.value = res.result;
32863
32863
  }
32864
32864
  }
32865
-
32865
+ $elm.data().xu_ui_plugin = { properties };
32866
32866
  const plugin_runtime_src = await func.utils.get_plugin_npm_cdn(SESSION_ID, plugin_name, `${_plugin.manifest['runtime.mjs'].dist ? 'dist/' : ''}runtime.mjs`);
32867
32867
 
32868
32868
  const plugin_runtime_resources = await import(plugin_runtime_src);
@@ -32874,7 +32874,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32874
32874
  }
32875
32875
 
32876
32876
  if (plugin_runtime_resources.fn) {
32877
- await plugin_runtime_resources.fn(plugin_name, $elm?.[0], properties);
32877
+ // await plugin_runtime_resources.fn(plugin_name, $elm?.[0], properties);
32878
+ await plugin_runtime_resources.fn(plugin_name, $elm?.[0], $elm.data().xu_ui_plugin.properties);
32878
32879
  }
32879
32880
  }
32880
32881
  }
@@ -33363,8 +33364,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33363
33364
  return val.xu_tree_id || val.id;
33364
33365
  });
33365
33366
  var currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
33366
- var xu_id = (glb.screen_num++).toString();
33367
- xu_id = xu_id += '_' + currentRecordId;
33367
+ // var xu_id = (glb.screen_num++).toString();
33368
+ // xu_id = xu_id += '_' + currentRecordId;
33368
33369
 
33369
33370
  try {
33370
33371
  const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
@@ -33445,7 +33446,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33445
33446
  prog_id: _paramsP.prog_id,
33446
33447
  nodeid: nodeP.id,
33447
33448
  ui_type: nodeP.tagName,
33448
- xu_id,
33449
+ // xu_id,
33449
33450
  recordid: currentRecordId,
33450
33451
  paramsP: _paramsP,
33451
33452
  key: keyP,