@xuda.io/runtime-bundle 1.0.697 → 1.0.699
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-slim.js
CHANGED
|
@@ -11852,25 +11852,25 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
11852
11852
|
if ($elm?.length) {
|
|
11853
11853
|
const elm_data = $elm.data();
|
|
11854
11854
|
const $wrapper = $elm.parent();
|
|
11855
|
-
const wrapper_data = $wrapper.data();
|
|
11855
|
+
// const wrapper_data = $wrapper.data();
|
|
11856
11856
|
const refreshed_ds = _ds.dsSession;
|
|
11857
11857
|
|
|
11858
|
-
let elm_to_delete = [];
|
|
11859
|
-
const ts = Date.now();
|
|
11860
|
-
$.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11858
|
+
// let elm_to_delete = [];
|
|
11859
|
+
// const ts = Date.now();
|
|
11860
|
+
// $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
|
|
11861
|
+
// let xu_ui_id = $(val).attr('xu-ui-id');
|
|
11862
|
+
// if (xu_ui_id) {
|
|
11863
|
+
// let new_id = xu_ui_id + ts;
|
|
11864
|
+
// elm_to_delete.push(new_id);
|
|
11865
11865
|
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
});
|
|
11866
|
+
// $(val).attr('xu-ui-id', new_id).removeData();
|
|
11867
|
+
// }
|
|
11868
|
+
// // else {
|
|
11869
|
+
// // $(val).remove();
|
|
11870
|
+
// // }
|
|
11871
|
+
// });
|
|
11872
11872
|
|
|
11873
|
-
|
|
11873
|
+
$elm.empty();
|
|
11874
11874
|
if ($elm.data()) {
|
|
11875
11875
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
11876
11876
|
SESSION_ID,
|
|
@@ -11887,10 +11887,10 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
11887
11887
|
elm_data.xuData.$root_container, // the wrapper root container
|
|
11888
11888
|
);
|
|
11889
11889
|
|
|
11890
|
-
// remove old screen content
|
|
11891
|
-
$.each(elm_to_delete, async function (key, val) {
|
|
11892
|
-
|
|
11893
|
-
});
|
|
11890
|
+
// // remove old screen content
|
|
11891
|
+
// $.each(elm_to_delete, async function (key, val) {
|
|
11892
|
+
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
11893
|
+
// });
|
|
11894
11894
|
|
|
11895
11895
|
return;
|
|
11896
11896
|
}
|
|
@@ -14285,7 +14285,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14285
14285
|
};
|
|
14286
14286
|
const get_property_value = async function (fieldIdP, val) {
|
|
14287
14287
|
if (!val) return;
|
|
14288
|
-
var value = props[fieldIdP]
|
|
14288
|
+
var value = fieldIdP in props ? props[fieldIdP] : typeof val.defaultValue === 'function' ? val?.defaultValue?.() : val?.defaultValue;
|
|
14289
14289
|
if (val.render === 'eventId') {
|
|
14290
14290
|
value = props?.[fieldIdP]?.event;
|
|
14291
14291
|
}
|
|
@@ -9574,25 +9574,25 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9574
9574
|
if ($elm?.length) {
|
|
9575
9575
|
const elm_data = $elm.data();
|
|
9576
9576
|
const $wrapper = $elm.parent();
|
|
9577
|
-
const wrapper_data = $wrapper.data();
|
|
9577
|
+
// const wrapper_data = $wrapper.data();
|
|
9578
9578
|
const refreshed_ds = _ds.dsSession;
|
|
9579
9579
|
|
|
9580
|
-
let elm_to_delete = [];
|
|
9581
|
-
const ts = Date.now();
|
|
9582
|
-
$.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9580
|
+
// let elm_to_delete = [];
|
|
9581
|
+
// const ts = Date.now();
|
|
9582
|
+
// $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
|
|
9583
|
+
// let xu_ui_id = $(val).attr('xu-ui-id');
|
|
9584
|
+
// if (xu_ui_id) {
|
|
9585
|
+
// let new_id = xu_ui_id + ts;
|
|
9586
|
+
// elm_to_delete.push(new_id);
|
|
9587
9587
|
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
});
|
|
9588
|
+
// $(val).attr('xu-ui-id', new_id).removeData();
|
|
9589
|
+
// }
|
|
9590
|
+
// // else {
|
|
9591
|
+
// // $(val).remove();
|
|
9592
|
+
// // }
|
|
9593
|
+
// });
|
|
9594
9594
|
|
|
9595
|
-
|
|
9595
|
+
$elm.empty();
|
|
9596
9596
|
if ($elm.data()) {
|
|
9597
9597
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
9598
9598
|
SESSION_ID,
|
|
@@ -9609,10 +9609,10 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9609
9609
|
elm_data.xuData.$root_container, // the wrapper root container
|
|
9610
9610
|
);
|
|
9611
9611
|
|
|
9612
|
-
// remove old screen content
|
|
9613
|
-
$.each(elm_to_delete, async function (key, val) {
|
|
9614
|
-
|
|
9615
|
-
});
|
|
9612
|
+
// // remove old screen content
|
|
9613
|
+
// $.each(elm_to_delete, async function (key, val) {
|
|
9614
|
+
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
9615
|
+
// });
|
|
9616
9616
|
|
|
9617
9617
|
return;
|
|
9618
9618
|
}
|
|
@@ -12007,7 +12007,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12007
12007
|
};
|
|
12008
12008
|
const get_property_value = async function (fieldIdP, val) {
|
|
12009
12009
|
if (!val) return;
|
|
12010
|
-
var value = props[fieldIdP]
|
|
12010
|
+
var value = fieldIdP in props ? props[fieldIdP] : typeof val.defaultValue === 'function' ? val?.defaultValue?.() : val?.defaultValue;
|
|
12011
12011
|
if (val.render === 'eventId') {
|
|
12012
12012
|
value = props?.[fieldIdP]?.event;
|
|
12013
12013
|
}
|