@xuda.io/runtime-bundle 1.0.424 → 1.0.426
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
|
@@ -8637,22 +8637,23 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
|
|
|
8637
8637
|
if (elem_key === 'length') break;
|
|
8638
8638
|
var $div = $(elem_val);
|
|
8639
8639
|
|
|
8640
|
-
const panelXuAttributes = $div?.xuPanelWrapper?.panelXuAttributes;
|
|
8640
|
+
const panelXuAttributes = $div?.data().xuPanelWrapper?.panelXuAttributes;
|
|
8641
8641
|
let prog_id = panelXuAttributes?.program;
|
|
8642
8642
|
const exp = panelXuAttributes?.['xu-exp:program'];
|
|
8643
8643
|
if (exp) {
|
|
8644
8644
|
let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
|
|
8645
8645
|
prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
|
|
8646
8646
|
}
|
|
8647
|
-
let
|
|
8648
|
-
if (!ignore_disableAutoRefresh &&
|
|
8647
|
+
let prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
|
|
8648
|
+
if (!ignore_disableAutoRefresh && prog_doc.properties.disableAutoRefresh) {
|
|
8649
8649
|
continue;
|
|
8650
8650
|
}
|
|
8651
|
-
|
|
8652
|
-
if (!panels_obj[
|
|
8653
|
-
panels_obj[
|
|
8651
|
+
const xu_ui_id = $div.attr('xu-ui-id');
|
|
8652
|
+
if (!panels_obj[xu_ui_id]) {
|
|
8653
|
+
panels_obj[xu_ui_id] = {
|
|
8654
8654
|
prog_id,
|
|
8655
8655
|
panelXuAttributes,
|
|
8656
|
+
progUi: prog_doc.progUi,
|
|
8656
8657
|
};
|
|
8657
8658
|
}
|
|
8658
8659
|
}
|
|
@@ -11636,7 +11637,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11636
11637
|
};
|
|
11637
11638
|
|
|
11638
11639
|
const $xu_embed_container = $('.xu_embed_container');
|
|
11639
|
-
const panels_obj = func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $xu_embed_container, true);
|
|
11640
|
+
const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $xu_embed_container, true);
|
|
11640
11641
|
// let inviable_panels_obj = {};
|
|
11641
11642
|
|
|
11642
11643
|
for await (const field_id of fields_arr) {
|
|
@@ -11659,8 +11660,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11659
11660
|
}
|
|
11660
11661
|
// run panels
|
|
11661
11662
|
for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
|
|
11662
|
-
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
|
|
11663
|
-
await iterate_field_in_progUi(
|
|
11663
|
+
// const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
|
|
11664
|
+
await iterate_field_in_progUi(panel_val.progUi, field_id);
|
|
11664
11665
|
}
|
|
11665
11666
|
|
|
11666
11667
|
// // run invisible panels
|
|
@@ -8638,22 +8638,23 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
|
|
|
8638
8638
|
if (elem_key === 'length') break;
|
|
8639
8639
|
var $div = $(elem_val);
|
|
8640
8640
|
|
|
8641
|
-
const panelXuAttributes = $div?.xuPanelWrapper?.panelXuAttributes;
|
|
8641
|
+
const panelXuAttributes = $div?.data().xuPanelWrapper?.panelXuAttributes;
|
|
8642
8642
|
let prog_id = panelXuAttributes?.program;
|
|
8643
8643
|
const exp = panelXuAttributes?.['xu-exp:program'];
|
|
8644
8644
|
if (exp) {
|
|
8645
8645
|
let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
|
|
8646
8646
|
prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
|
|
8647
8647
|
}
|
|
8648
|
-
let
|
|
8649
|
-
if (!ignore_disableAutoRefresh &&
|
|
8648
|
+
let prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
|
|
8649
|
+
if (!ignore_disableAutoRefresh && prog_doc.properties.disableAutoRefresh) {
|
|
8650
8650
|
continue;
|
|
8651
8651
|
}
|
|
8652
|
-
|
|
8653
|
-
if (!panels_obj[
|
|
8654
|
-
panels_obj[
|
|
8652
|
+
const xu_ui_id = $div.attr('xu-ui-id');
|
|
8653
|
+
if (!panels_obj[xu_ui_id]) {
|
|
8654
|
+
panels_obj[xu_ui_id] = {
|
|
8655
8655
|
prog_id,
|
|
8656
8656
|
panelXuAttributes,
|
|
8657
|
+
progUi: prog_doc.progUi,
|
|
8657
8658
|
};
|
|
8658
8659
|
}
|
|
8659
8660
|
}
|
|
@@ -9709,7 +9710,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9709
9710
|
};
|
|
9710
9711
|
|
|
9711
9712
|
const $xu_embed_container = $('.xu_embed_container');
|
|
9712
|
-
const panels_obj = func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $xu_embed_container, true);
|
|
9713
|
+
const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $xu_embed_container, true);
|
|
9713
9714
|
// let inviable_panels_obj = {};
|
|
9714
9715
|
|
|
9715
9716
|
for await (const field_id of fields_arr) {
|
|
@@ -9732,8 +9733,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9732
9733
|
}
|
|
9733
9734
|
// run panels
|
|
9734
9735
|
for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
|
|
9735
|
-
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
|
|
9736
|
-
await iterate_field_in_progUi(
|
|
9736
|
+
// const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
|
|
9737
|
+
await iterate_field_in_progUi(panel_val.progUi, field_id);
|
|
9737
9738
|
}
|
|
9738
9739
|
|
|
9739
9740
|
// // run invisible panels
|