@xuda.io/runtime-bundle 1.0.504 → 1.0.506
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-bundle.js +16 -3
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +16 -3
- package/js/xuda-runtime-slim.min.es.js +16 -3
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +13 -0
- package/js/xuda-worker-bundle.js +13 -0
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -28686,6 +28686,19 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
28686
28686
|
|
|
28687
28687
|
_ds.stat = 'busy';
|
|
28688
28688
|
_ds._run_at = run_atP;
|
|
28689
|
+
|
|
28690
|
+
if (_ds.refreshed) {
|
|
28691
|
+
await func.datasource.update(SESSION_ID, {
|
|
28692
|
+
[_ds.dsSession]: {
|
|
28693
|
+
['datasource_main']: {
|
|
28694
|
+
stat: 'busy',
|
|
28695
|
+
stat_ts: Date.now(),
|
|
28696
|
+
is_worker: glb.IS_WORKER,
|
|
28697
|
+
},
|
|
28698
|
+
},
|
|
28699
|
+
});
|
|
28700
|
+
}
|
|
28701
|
+
|
|
28689
28702
|
// init_v();
|
|
28690
28703
|
|
|
28691
28704
|
if (IS_DATASOURCE_REFRESH) {
|
|
@@ -31109,7 +31122,7 @@ func.datasource.get_args_property_value = async function (SESSION_ID, dsSession,
|
|
|
31109
31122
|
return _value;
|
|
31110
31123
|
};
|
|
31111
31124
|
func.UI.screen = {};
|
|
31112
|
-
func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callingDataSource_objP, $callingContainerP, triggerIdP, rowIdP, jobNoP, is_panelP, parameters_obj_inP, source_functionP, call_screen_propertiesP) {
|
|
31125
|
+
func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callingDataSource_objP, $callingContainerP, triggerIdP, rowIdP, jobNoP, is_panelP, parameters_obj_inP, source_functionP, call_screen_propertiesP, refreshed_ds) {
|
|
31113
31126
|
if (!prog_id) return console.error('program is empty');
|
|
31114
31127
|
let screen_ret = await func.utils.get_screen_obj(SESSION_ID, prog_id);
|
|
31115
31128
|
if (!screen_ret) return console.error('program is not a screen object');
|
|
@@ -31322,7 +31335,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
31322
31335
|
const ret = await func.datasource.create(
|
|
31323
31336
|
SESSION_ID,
|
|
31324
31337
|
prog_id,
|
|
31325
|
-
|
|
31338
|
+
refreshed_ds, //params?.callingDataSource_objP?.dsSession
|
|
31326
31339
|
params.parentDataSourceNoP,
|
|
31327
31340
|
$rootFrame.attr('id'),
|
|
31328
31341
|
rowIdP,
|
|
@@ -32024,7 +32037,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32024
32037
|
async function render_panel() {
|
|
32025
32038
|
const prog_id = val.value?.prog || val.value;
|
|
32026
32039
|
const param_obj = await get_params_obj_new(SESSION_ID, prog_id, nodeP, paramsP.dsSessionP);
|
|
32027
|
-
let ret_panel = await func.UI.screen.init(SESSION_ID, prog_id, paramsP.screenId, _ds, $elm, null, _ds.currentRecordId, null, true, param_obj, 'initXu_panel');
|
|
32040
|
+
let ret_panel = await func.UI.screen.init(SESSION_ID, prog_id, paramsP.screenId, _ds, $elm, null, _ds.currentRecordId, null, true, param_obj, 'initXu_panel', undefined, refreshed_ds);
|
|
32028
32041
|
ret = { $new_div: ret_panel };
|
|
32029
32042
|
$container.data().xuData.xuPanelProps = $elm.data().xuAttributes;
|
|
32030
32043
|
return ret;
|