@xuda.io/runtime-bundle 1.0.412 → 1.0.414
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
|
@@ -11089,7 +11089,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
11089
11089
|
id: screenId,
|
|
11090
11090
|
ui_engine: UI_FRAMEWORK_INSTALLED,
|
|
11091
11091
|
})
|
|
11092
|
-
.addClass('
|
|
11092
|
+
.addClass('xu_embed_container')
|
|
11093
11093
|
.data({
|
|
11094
11094
|
xuData: {
|
|
11095
11095
|
paramsP: params,
|
|
@@ -11603,13 +11603,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11603
11603
|
return found;
|
|
11604
11604
|
};
|
|
11605
11605
|
|
|
11606
|
-
const $
|
|
11607
|
-
|
|
11606
|
+
const $xu_embed_container = $('.xu_embed_container');
|
|
11607
|
+
const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, true);
|
|
11608
|
+
let inviable_panels_obj = {};
|
|
11608
11609
|
|
|
11609
11610
|
for await (const field_id of fields_arr) {
|
|
11610
11611
|
// run root
|
|
11611
|
-
if ($
|
|
11612
|
-
const progUi = $
|
|
11612
|
+
if ($xu_embed_container.length) {
|
|
11613
|
+
const progUi = $xu_embed_container?.data()?.xuData?.screenInfo?.progUi;
|
|
11613
11614
|
if (progUi) {
|
|
11614
11615
|
await iterate_field_in_progUi(progUi, field_id);
|
|
11615
11616
|
// find invisible panels
|
|
@@ -11618,15 +11619,15 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11618
11619
|
let prog_id = elm_node?.attributes?.program;
|
|
11619
11620
|
const exp = elm_node?.attributes?.['xu-exp:program'];
|
|
11620
11621
|
if (exp) {
|
|
11621
|
-
let exp_ret = await func.expression.get(SESSION_ID, exp, $
|
|
11622
|
+
let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
|
|
11622
11623
|
prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
|
|
11623
|
-
|
|
11624
|
+
inviable_panels_obj[elm_node.id] = { prog_id };
|
|
11624
11625
|
}
|
|
11625
11626
|
}
|
|
11626
11627
|
}
|
|
11627
11628
|
// run panels
|
|
11628
11629
|
for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
|
|
11629
|
-
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id
|
|
11630
|
+
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id);
|
|
11630
11631
|
|
|
11631
11632
|
await iterate_field_in_progUi(prog_doc.progUi, field_id);
|
|
11632
11633
|
}
|
|
@@ -9162,7 +9162,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
9162
9162
|
id: screenId,
|
|
9163
9163
|
ui_engine: UI_FRAMEWORK_INSTALLED,
|
|
9164
9164
|
})
|
|
9165
|
-
.addClass('
|
|
9165
|
+
.addClass('xu_embed_container')
|
|
9166
9166
|
.data({
|
|
9167
9167
|
xuData: {
|
|
9168
9168
|
paramsP: params,
|
|
@@ -9676,13 +9676,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9676
9676
|
return found;
|
|
9677
9677
|
};
|
|
9678
9678
|
|
|
9679
|
-
const $
|
|
9680
|
-
|
|
9679
|
+
const $xu_embed_container = $('.xu_embed_container');
|
|
9680
|
+
const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, true);
|
|
9681
|
+
let inviable_panels_obj = {};
|
|
9681
9682
|
|
|
9682
9683
|
for await (const field_id of fields_arr) {
|
|
9683
9684
|
// run root
|
|
9684
|
-
if ($
|
|
9685
|
-
const progUi = $
|
|
9685
|
+
if ($xu_embed_container.length) {
|
|
9686
|
+
const progUi = $xu_embed_container?.data()?.xuData?.screenInfo?.progUi;
|
|
9686
9687
|
if (progUi) {
|
|
9687
9688
|
await iterate_field_in_progUi(progUi, field_id);
|
|
9688
9689
|
// find invisible panels
|
|
@@ -9691,15 +9692,15 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9691
9692
|
let prog_id = elm_node?.attributes?.program;
|
|
9692
9693
|
const exp = elm_node?.attributes?.['xu-exp:program'];
|
|
9693
9694
|
if (exp) {
|
|
9694
|
-
let exp_ret = await func.expression.get(SESSION_ID, exp, $
|
|
9695
|
+
let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
|
|
9695
9696
|
prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
|
|
9696
|
-
|
|
9697
|
+
inviable_panels_obj[elm_node.id] = { prog_id };
|
|
9697
9698
|
}
|
|
9698
9699
|
}
|
|
9699
9700
|
}
|
|
9700
9701
|
// run panels
|
|
9701
9702
|
for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
|
|
9702
|
-
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id
|
|
9703
|
+
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id);
|
|
9703
9704
|
|
|
9704
9705
|
await iterate_field_in_progUi(prog_doc.progUi, field_id);
|
|
9705
9706
|
}
|