@xuda.io/runtime-bundle 1.0.626 → 1.0.628

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.
@@ -12295,11 +12295,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12295
12295
  return ret;
12296
12296
  }
12297
12297
 
12298
- ////// render default children tree
12299
- // if (nodeP.children.length) {
12300
- // const default_children_ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
12301
- // }
12302
-
12303
12298
  if (!val.value) {
12304
12299
  val.value = '_empty_panel_program';
12305
12300
  }
@@ -14491,29 +14486,28 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14491
14486
  }
14492
14487
 
14493
14488
  const empty_result = async function () {
14494
- var content = prop.empty_result_content || '';
14495
-
14496
- var res = await func.expression.get(
14497
- SESSION_ID,
14498
- content, // prop["xu-exp:empty_result_content"],
14499
- paramsP.dsSessionP,
14500
- 'empty_result_content_EXP',
14501
- _ds.currentRecordId,
14502
- );
14503
- content = res.result;
14504
- // }
14489
+ // var content = prop.empty_result_content || '';
14505
14490
 
14506
- let empty_result_node = {
14507
- type: 'element',
14508
- id: crypto.randomUUID(),
14509
- content,
14510
- // : content || (typeof content === "undefined" && "Empty results"),
14511
- tagName: 'div',
14512
- attributes: {},
14513
- children: [],
14514
- };
14491
+ // var res = await func.expression.get(
14492
+ // SESSION_ID,
14493
+ // content, // prop["xu-exp:empty_result_content"],
14494
+ // paramsP.dsSessionP,
14495
+ // 'empty_result_content_EXP',
14496
+ // _ds.currentRecordId,
14497
+ // );
14498
+ // content = res.result;
14499
+
14500
+ // let empty_result_node = {
14501
+ // type: 'element',
14502
+ // id: crypto.randomUUID(),
14503
+ // content,
14504
+ // // : content || (typeof content === "undefined" && "Empty results"),
14505
+ // tagName: 'div',
14506
+ // attributes: {},
14507
+ // children: [],
14508
+ // };
14515
14509
 
14516
- const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
14510
+ // const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
14517
14511
  await func.events.validate(SESSION_ID, 'record_not_found', paramsP.dsSessionP);
14518
14512
  return await done(null);
14519
14513
  };
@@ -14557,20 +14551,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14557
14551
  var $wrapper = $('<div>');
14558
14552
  $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
14559
14553
 
14560
- // let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
14561
- // if (ret.abort) {
14562
- // // render N
14563
- // return (ret.$new_div = $('<template>').append($div));
14564
- // }
14554
+ let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
14555
+ if (ret.abort) {
14556
+ // render N
14557
+ return (ret.$new_div = $('<template>').append($div));
14558
+ }
14565
14559
 
14566
- // let ret_done = await done(ret.$new_div);
14560
+ let ret_done = await done(ret.$new_div);
14567
14561
 
14568
- // return ret_done;
14562
+ return ret_done;
14569
14563
 
14570
14564
  ////// render default children tree
14571
14565
  if (nodeP.children.length) {
14572
14566
  const default_children_ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
14573
14567
  debugger;
14568
+ await done(default_children_ret);
14574
14569
  }
14575
14570
  },
14576
14571
  };
@@ -10026,11 +10026,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10026
10026
  return ret;
10027
10027
  }
10028
10028
 
10029
- ////// render default children tree
10030
- // if (nodeP.children.length) {
10031
- // const default_children_ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
10032
- // }
10033
-
10034
10029
  if (!val.value) {
10035
10030
  val.value = '_empty_panel_program';
10036
10031
  }
@@ -12222,29 +12217,28 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12222
12217
  }
12223
12218
 
12224
12219
  const empty_result = async function () {
12225
- var content = prop.empty_result_content || '';
12226
-
12227
- var res = await func.expression.get(
12228
- SESSION_ID,
12229
- content, // prop["xu-exp:empty_result_content"],
12230
- paramsP.dsSessionP,
12231
- 'empty_result_content_EXP',
12232
- _ds.currentRecordId,
12233
- );
12234
- content = res.result;
12235
- // }
12220
+ // var content = prop.empty_result_content || '';
12236
12221
 
12237
- let empty_result_node = {
12238
- type: 'element',
12239
- id: crypto.randomUUID(),
12240
- content,
12241
- // : content || (typeof content === "undefined" && "Empty results"),
12242
- tagName: 'div',
12243
- attributes: {},
12244
- children: [],
12245
- };
12222
+ // var res = await func.expression.get(
12223
+ // SESSION_ID,
12224
+ // content, // prop["xu-exp:empty_result_content"],
12225
+ // paramsP.dsSessionP,
12226
+ // 'empty_result_content_EXP',
12227
+ // _ds.currentRecordId,
12228
+ // );
12229
+ // content = res.result;
12230
+
12231
+ // let empty_result_node = {
12232
+ // type: 'element',
12233
+ // id: crypto.randomUUID(),
12234
+ // content,
12235
+ // // : content || (typeof content === "undefined" && "Empty results"),
12236
+ // tagName: 'div',
12237
+ // attributes: {},
12238
+ // children: [],
12239
+ // };
12246
12240
 
12247
- const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
12241
+ // const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
12248
12242
  await func.events.validate(SESSION_ID, 'record_not_found', paramsP.dsSessionP);
12249
12243
  return await done(null);
12250
12244
  };
@@ -12288,20 +12282,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12288
12282
  var $wrapper = $('<div>');
12289
12283
  $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
12290
12284
 
12291
- // let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
12292
- // if (ret.abort) {
12293
- // // render N
12294
- // return (ret.$new_div = $('<template>').append($div));
12295
- // }
12285
+ let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
12286
+ if (ret.abort) {
12287
+ // render N
12288
+ return (ret.$new_div = $('<template>').append($div));
12289
+ }
12296
12290
 
12297
- // let ret_done = await done(ret.$new_div);
12291
+ let ret_done = await done(ret.$new_div);
12298
12292
 
12299
- // return ret_done;
12293
+ return ret_done;
12300
12294
 
12301
12295
  ////// render default children tree
12302
12296
  if (nodeP.children.length) {
12303
12297
  const default_children_ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
12304
12298
  debugger;
12299
+ await done(default_children_ret);
12305
12300
  }
12306
12301
  },
12307
12302
  };