@xuda.io/runtime-bundle 1.0.520 → 1.0.522
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 +17 -6
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +17 -6
- package/js/xuda-runtime-slim.min.es.js +17 -6
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +3 -3
- package/js/xuda-worker-bundle.js +3 -3
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -5326,7 +5326,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5326
5326
|
let client_datasource_changes = {};
|
|
5327
5327
|
let server_datasource_changes = {};
|
|
5328
5328
|
|
|
5329
|
-
const update_xu_ref =
|
|
5329
|
+
const update_xu_ref = function (dataSource) {
|
|
5330
5330
|
let ret;
|
|
5331
5331
|
let _ds_0 = _session.DS_GLB[0];
|
|
5332
5332
|
for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
|
|
@@ -5351,7 +5351,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5351
5351
|
// mechanism to make update directly on the datasource object
|
|
5352
5352
|
if (record_id === 'datasource_main') {
|
|
5353
5353
|
_.set(_ds, field_id, value);
|
|
5354
|
-
const ret = update_xu_ref(dataSource
|
|
5354
|
+
const ret = update_xu_ref(dataSource);
|
|
5355
5355
|
if (ret) {
|
|
5356
5356
|
fields_changed.push(field_id);
|
|
5357
5357
|
datasource_changed.push(dataSource);
|
|
@@ -5372,7 +5372,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5372
5372
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
5373
5373
|
|
|
5374
5374
|
// search the field in refs
|
|
5375
|
-
update_xu_ref(dataSource
|
|
5375
|
+
update_xu_ref(dataSource);
|
|
5376
5376
|
|
|
5377
5377
|
if (!update_local_scope_only) {
|
|
5378
5378
|
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
@@ -12389,12 +12389,18 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12389
12389
|
|
|
12390
12390
|
try {
|
|
12391
12391
|
// const panelDivData = panel_val.$panel_div.data().xuPanelWrapper.panelDivData;
|
|
12392
|
-
|
|
12392
|
+
const ts = Date.now();
|
|
12393
12393
|
// remove old panel content
|
|
12394
12394
|
$.each(panel_val.ids, async function (key, val) {
|
|
12395
|
-
$("[xu-ui-id='" + val + "']").
|
|
12395
|
+
$("[xu-ui-id='" + val + "']").attr('xu-ui-id', val + ts);
|
|
12396
12396
|
});
|
|
12397
12397
|
|
|
12398
|
+
let refreshed_ds;
|
|
12399
|
+
// check if ds exist and deleted by garbage collector
|
|
12400
|
+
if (_session.DS_GLB[panel_val._ds.dsSession]) {
|
|
12401
|
+
refreshed_ds = panel_val._ds.dsSession;
|
|
12402
|
+
}
|
|
12403
|
+
|
|
12398
12404
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
12399
12405
|
SESSION_ID,
|
|
12400
12406
|
$div_elm, // the wrapper
|
|
@@ -12404,11 +12410,16 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12404
12410
|
null,
|
|
12405
12411
|
null,
|
|
12406
12412
|
wrapper_data.xuData.key, // the wrapper key
|
|
12407
|
-
|
|
12413
|
+
refreshed_ds, // the refreshed_ds
|
|
12408
12414
|
wrapper_data.xuData.parent_node, // the wrapper parent node
|
|
12409
12415
|
null,
|
|
12410
12416
|
wrapper_data.xuData.$root_container, // the wrapper root container
|
|
12411
12417
|
);
|
|
12418
|
+
|
|
12419
|
+
// remove old panel content
|
|
12420
|
+
$.each(panel_val.ids, async function (key, val) {
|
|
12421
|
+
$("[xu-ui-id='" + val + ts + "']").remove();
|
|
12422
|
+
});
|
|
12412
12423
|
} catch (error) {
|
|
12413
12424
|
debugger;
|
|
12414
12425
|
}
|
|
@@ -5327,7 +5327,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5327
5327
|
let client_datasource_changes = {};
|
|
5328
5328
|
let server_datasource_changes = {};
|
|
5329
5329
|
|
|
5330
|
-
const update_xu_ref =
|
|
5330
|
+
const update_xu_ref = function (dataSource) {
|
|
5331
5331
|
let ret;
|
|
5332
5332
|
let _ds_0 = _session.DS_GLB[0];
|
|
5333
5333
|
for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
|
|
@@ -5352,7 +5352,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5352
5352
|
// mechanism to make update directly on the datasource object
|
|
5353
5353
|
if (record_id === 'datasource_main') {
|
|
5354
5354
|
_.set(_ds, field_id, value);
|
|
5355
|
-
const ret = update_xu_ref(dataSource
|
|
5355
|
+
const ret = update_xu_ref(dataSource);
|
|
5356
5356
|
if (ret) {
|
|
5357
5357
|
fields_changed.push(field_id);
|
|
5358
5358
|
datasource_changed.push(dataSource);
|
|
@@ -5373,7 +5373,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5373
5373
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
5374
5374
|
|
|
5375
5375
|
// search the field in refs
|
|
5376
|
-
update_xu_ref(dataSource
|
|
5376
|
+
update_xu_ref(dataSource);
|
|
5377
5377
|
|
|
5378
5378
|
if (!update_local_scope_only) {
|
|
5379
5379
|
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
@@ -10121,12 +10121,18 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
10121
10121
|
|
|
10122
10122
|
try {
|
|
10123
10123
|
// const panelDivData = panel_val.$panel_div.data().xuPanelWrapper.panelDivData;
|
|
10124
|
-
|
|
10124
|
+
const ts = Date.now();
|
|
10125
10125
|
// remove old panel content
|
|
10126
10126
|
$.each(panel_val.ids, async function (key, val) {
|
|
10127
|
-
$("[xu-ui-id='" + val + "']").
|
|
10127
|
+
$("[xu-ui-id='" + val + "']").attr('xu-ui-id', val + ts);
|
|
10128
10128
|
});
|
|
10129
10129
|
|
|
10130
|
+
let refreshed_ds;
|
|
10131
|
+
// check if ds exist and deleted by garbage collector
|
|
10132
|
+
if (_session.DS_GLB[panel_val._ds.dsSession]) {
|
|
10133
|
+
refreshed_ds = panel_val._ds.dsSession;
|
|
10134
|
+
}
|
|
10135
|
+
|
|
10130
10136
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
10131
10137
|
SESSION_ID,
|
|
10132
10138
|
$div_elm, // the wrapper
|
|
@@ -10136,11 +10142,16 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
10136
10142
|
null,
|
|
10137
10143
|
null,
|
|
10138
10144
|
wrapper_data.xuData.key, // the wrapper key
|
|
10139
|
-
|
|
10145
|
+
refreshed_ds, // the refreshed_ds
|
|
10140
10146
|
wrapper_data.xuData.parent_node, // the wrapper parent node
|
|
10141
10147
|
null,
|
|
10142
10148
|
wrapper_data.xuData.$root_container, // the wrapper root container
|
|
10143
10149
|
);
|
|
10150
|
+
|
|
10151
|
+
// remove old panel content
|
|
10152
|
+
$.each(panel_val.ids, async function (key, val) {
|
|
10153
|
+
$("[xu-ui-id='" + val + ts + "']").remove();
|
|
10154
|
+
});
|
|
10144
10155
|
} catch (error) {
|
|
10145
10156
|
debugger;
|
|
10146
10157
|
}
|