@xuda.io/runtime-bundle 1.0.530 → 1.0.532
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 +48 -44
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +48 -44
- package/js/xuda-runtime-slim.min.es.js +48 -44
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +46 -43
- package/js/xuda-worker-bundle.js +46 -43
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -30480,57 +30480,60 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
30480
30480
|
continue;
|
|
30481
30481
|
}
|
|
30482
30482
|
|
|
30483
|
-
|
|
30484
|
-
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
|
|
30488
|
-
|
|
30489
|
-
|
|
30490
|
-
|
|
30491
|
-
|
|
30492
|
-
|
|
30493
|
-
|
|
30494
|
-
|
|
30495
|
-
|
|
30496
|
-
|
|
30497
|
-
|
|
30498
|
-
|
|
30499
|
-
|
|
30500
|
-
|
|
30501
|
-
|
|
30502
|
-
|
|
30503
|
-
|
|
30504
|
-
|
|
30483
|
+
try {
|
|
30484
|
+
const row_idx = func.common.find_ROWID_idx(_ds, record_id);
|
|
30485
|
+
if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
30486
|
+
_ds.data_feed.rows[row_idx][field_id] = value;
|
|
30487
|
+
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
30488
|
+
|
|
30489
|
+
// search the field in refs
|
|
30490
|
+
update_xu_ref(dataSource);
|
|
30491
|
+
|
|
30492
|
+
if (!update_local_scope_only) {
|
|
30493
|
+
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
30494
|
+
if (glb.IS_WORKER) {
|
|
30495
|
+
// RUN AT SERVER
|
|
30496
|
+
if (tree_ret.menuType === 'globals' || tree_ret.menuType === 'component') {
|
|
30497
|
+
const _progFields = await func.datasource.get_progFields(SESSION_ID, dataSource);
|
|
30498
|
+
let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', field_id);
|
|
30499
|
+
if (!view_field_obj?.data?.serverField && record_id !== 'data_system') {
|
|
30500
|
+
if (!client_datasource_changes[dataSource]) {
|
|
30501
|
+
client_datasource_changes[dataSource] = {};
|
|
30502
|
+
}
|
|
30503
|
+
if (!client_datasource_changes[dataSource][record_id]) {
|
|
30504
|
+
client_datasource_changes[dataSource][record_id] = {};
|
|
30505
|
+
}
|
|
30506
|
+
client_datasource_changes[dataSource][record_id][field_id] = value;
|
|
30505
30507
|
}
|
|
30506
|
-
client_datasource_changes[dataSource][record_id][field_id] = value;
|
|
30507
30508
|
}
|
|
30508
|
-
}
|
|
30509
|
-
|
|
30510
|
-
|
|
30511
|
-
|
|
30512
|
-
|
|
30513
|
-
|
|
30514
|
-
|
|
30515
|
-
|
|
30516
|
-
|
|
30509
|
+
} else {
|
|
30510
|
+
// RUN AT CLIENT
|
|
30511
|
+
if ((tree_ret.menuType === 'component' && _ds._run_at !== 'client') || tree_ret.menuType === 'globals') {
|
|
30512
|
+
if (!server_datasource_changes[dataSource]) {
|
|
30513
|
+
server_datasource_changes[dataSource] = {};
|
|
30514
|
+
}
|
|
30515
|
+
if (!server_datasource_changes[dataSource][record_id]) {
|
|
30516
|
+
server_datasource_changes[dataSource][record_id] = {};
|
|
30517
|
+
}
|
|
30518
|
+
server_datasource_changes[dataSource][record_id][field_id] = value;
|
|
30517
30519
|
}
|
|
30518
|
-
server_datasource_changes[dataSource][record_id][field_id] = value;
|
|
30519
30520
|
}
|
|
30520
30521
|
}
|
|
30521
|
-
}
|
|
30522
30522
|
|
|
30523
|
-
|
|
30524
|
-
|
|
30525
|
-
|
|
30526
|
-
|
|
30527
|
-
|
|
30528
|
-
|
|
30523
|
+
if (!fields_changed.includes(field_id)) {
|
|
30524
|
+
fields_changed.push(field_id);
|
|
30525
|
+
}
|
|
30526
|
+
if (!datasource_changed.includes(dataSource)) {
|
|
30527
|
+
datasource_changed.push(dataSource);
|
|
30528
|
+
}
|
|
30529
30529
|
|
|
30530
|
-
|
|
30531
|
-
|
|
30530
|
+
if (!_ds.data_feed.rows_changed) {
|
|
30531
|
+
_ds.data_feed.rows_changed = [];
|
|
30532
|
+
}
|
|
30533
|
+
if (!_ds.data_feed.rows_changed.includes(record_id)) _ds.data_feed.rows_changed.push(record_id);
|
|
30532
30534
|
}
|
|
30533
|
-
|
|
30535
|
+
} catch (error) {
|
|
30536
|
+
debugger;
|
|
30534
30537
|
}
|
|
30535
30538
|
} else if (fields_data === 'set') {
|
|
30536
30539
|
_ds.currentRecordId = record_id;
|
|
@@ -32696,7 +32699,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32696
32699
|
|
|
32697
32700
|
let tmp_$div = $('<div>');
|
|
32698
32701
|
|
|
32699
|
-
let $xurender = $('<xurender>').attr('xu-ui-id', $elm.data().xuData.
|
|
32702
|
+
let $xurender = $('<xurender>').attr('xu-ui-id', $elm.data().xuData.node.id).appendTo(tmp_$div).hide();
|
|
32700
32703
|
// was true before
|
|
32701
32704
|
if ($elm.data().xuData.xurender_node) {
|
|
32702
32705
|
$xurender.data({
|
|
@@ -33918,6 +33921,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
33918
33921
|
|
|
33919
33922
|
SESSION_OBJ[SESSION_ID].DS_GLB[0].data_system.SYS_OBJ_WIN_ELEMENT_HOVERED_ATTRIBUTES = attributes;
|
|
33920
33923
|
//////////////////////////////////
|
|
33924
|
+
if (!$div.data()) return;
|
|
33921
33925
|
const _iterate_info = $div.data().xuData.iterate_info;
|
|
33922
33926
|
if (_iterate_info) {
|
|
33923
33927
|
if (_iterate_info.is_key_dynamic_field) {
|