@xuda.io/runtime-bundle 1.0.314 → 1.0.316
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
|
@@ -12196,6 +12196,13 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
12196
12196
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
12197
12197
|
};
|
|
12198
12198
|
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession) {
|
|
12199
|
+
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
12200
|
+
setTimeout(() => {
|
|
12201
|
+
func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession);
|
|
12202
|
+
}, 100);
|
|
12203
|
+
return;
|
|
12204
|
+
}
|
|
12205
|
+
|
|
12199
12206
|
var selectors = {};
|
|
12200
12207
|
var search_from = 'body';
|
|
12201
12208
|
var new_job = jobNoP;
|
|
@@ -12260,9 +12267,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
12260
12267
|
|
|
12261
12268
|
get_selectors();
|
|
12262
12269
|
|
|
12263
|
-
if (_.isEmpty(selectors)) {
|
|
12264
|
-
}
|
|
12265
|
-
|
|
12266
12270
|
for await (let [elem_key, elem_val] of Object.entries(selectors)) {
|
|
12267
12271
|
if (elem_key === 'length') break;
|
|
12268
12272
|
|
|
@@ -12291,7 +12295,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
12291
12295
|
if (!elem_val?.$elm?.data()?.xuAttributes) continue;
|
|
12292
12296
|
|
|
12293
12297
|
if (elem_val.attributes.includes('xu-exp:xu-render')) {
|
|
12294
|
-
debugger;
|
|
12295
12298
|
var res = await func.expression.get(SESSION_ID, elem_val.$elm.data().xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
|
|
12296
12299
|
|
|
12297
12300
|
var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
@@ -14862,12 +14865,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14862
14865
|
var exist_elm_obj = get_element_info();
|
|
14863
14866
|
var $div = exist_elm_obj.div;
|
|
14864
14867
|
|
|
14865
|
-
if (!_session.running_$div) {
|
|
14866
|
-
_session.running_$div = [];
|
|
14867
|
-
}
|
|
14868
|
-
|
|
14869
|
-
_session.running_$div.push($div);
|
|
14870
|
-
|
|
14871
14868
|
if (!exist_elm_obj.div) {
|
|
14872
14869
|
var $wrapper = $('<div>');
|
|
14873
14870
|
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
|
|
@@ -14876,6 +14873,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14876
14873
|
// var id = $div.attr('id');
|
|
14877
14874
|
// }
|
|
14878
14875
|
|
|
14876
|
+
// if (!_session.running_$div) {
|
|
14877
|
+
// _session.running_$div = [];
|
|
14878
|
+
// }
|
|
14879
|
+
|
|
14880
|
+
// _session.running_$div.push($wrapper);
|
|
14881
|
+
|
|
14879
14882
|
if (!$div) return;
|
|
14880
14883
|
|
|
14881
14884
|
if (!REFRESHER_IN_PROGRESS && (paramsP.is_mobile_popover || paramsP.is_mobile_page)) {
|
|
@@ -9606,6 +9606,13 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
9606
9606
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
9607
9607
|
};
|
|
9608
9608
|
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession) {
|
|
9609
|
+
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
9610
|
+
setTimeout(() => {
|
|
9611
|
+
func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession);
|
|
9612
|
+
}, 100);
|
|
9613
|
+
return;
|
|
9614
|
+
}
|
|
9615
|
+
|
|
9609
9616
|
var selectors = {};
|
|
9610
9617
|
var search_from = 'body';
|
|
9611
9618
|
var new_job = jobNoP;
|
|
@@ -9670,9 +9677,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9670
9677
|
|
|
9671
9678
|
get_selectors();
|
|
9672
9679
|
|
|
9673
|
-
if (_.isEmpty(selectors)) {
|
|
9674
|
-
}
|
|
9675
|
-
|
|
9676
9680
|
for await (let [elem_key, elem_val] of Object.entries(selectors)) {
|
|
9677
9681
|
if (elem_key === 'length') break;
|
|
9678
9682
|
|
|
@@ -9701,7 +9705,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9701
9705
|
if (!elem_val?.$elm?.data()?.xuAttributes) continue;
|
|
9702
9706
|
|
|
9703
9707
|
if (elem_val.attributes.includes('xu-exp:xu-render')) {
|
|
9704
|
-
debugger;
|
|
9705
9708
|
var res = await func.expression.get(SESSION_ID, elem_val.$elm.data().xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
|
|
9706
9709
|
|
|
9707
9710
|
var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
@@ -12272,12 +12275,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12272
12275
|
var exist_elm_obj = get_element_info();
|
|
12273
12276
|
var $div = exist_elm_obj.div;
|
|
12274
12277
|
|
|
12275
|
-
if (!_session.running_$div) {
|
|
12276
|
-
_session.running_$div = [];
|
|
12277
|
-
}
|
|
12278
|
-
|
|
12279
|
-
_session.running_$div.push($div);
|
|
12280
|
-
|
|
12281
12278
|
if (!exist_elm_obj.div) {
|
|
12282
12279
|
var $wrapper = $('<div>');
|
|
12283
12280
|
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
|
|
@@ -12286,6 +12283,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12286
12283
|
// var id = $div.attr('id');
|
|
12287
12284
|
// }
|
|
12288
12285
|
|
|
12286
|
+
// if (!_session.running_$div) {
|
|
12287
|
+
// _session.running_$div = [];
|
|
12288
|
+
// }
|
|
12289
|
+
|
|
12290
|
+
// _session.running_$div.push($wrapper);
|
|
12291
|
+
|
|
12289
12292
|
if (!$div) return;
|
|
12290
12293
|
|
|
12291
12294
|
if (!REFRESHER_IN_PROGRESS && (paramsP.is_mobile_popover || paramsP.is_mobile_page)) {
|