@xuda.io/runtime-bundle 1.0.415 → 1.0.417
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
|
@@ -9066,7 +9066,7 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
9066
9066
|
};
|
|
9067
9067
|
|
|
9068
9068
|
func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_name) {
|
|
9069
|
-
let
|
|
9069
|
+
let elm_nodes = [];
|
|
9070
9070
|
const iterate_progUi = function (node) {
|
|
9071
9071
|
for (let item of node) {
|
|
9072
9072
|
if (!tag_name || item.tagName === tag_name) {
|
|
@@ -9076,7 +9076,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
|
|
|
9076
9076
|
if (attr === `xu-exp:${prop}` || attr === prop) {
|
|
9077
9077
|
// found = val.includes('@' + field_id);
|
|
9078
9078
|
if (val.includes('@' + field_id)) {
|
|
9079
|
-
|
|
9079
|
+
elm_nodes.push(item);
|
|
9080
9080
|
break;
|
|
9081
9081
|
}
|
|
9082
9082
|
}
|
|
@@ -9084,11 +9084,11 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
|
|
|
9084
9084
|
}
|
|
9085
9085
|
} else {
|
|
9086
9086
|
if (tag_name) {
|
|
9087
|
-
|
|
9087
|
+
elm_nodes.push(item);
|
|
9088
9088
|
}
|
|
9089
9089
|
}
|
|
9090
9090
|
}
|
|
9091
|
-
if (elm_node) break;
|
|
9091
|
+
// if (elm_node) break;
|
|
9092
9092
|
|
|
9093
9093
|
if (item.children) {
|
|
9094
9094
|
iterate_progUi(item.children);
|
|
@@ -9096,7 +9096,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
|
|
|
9096
9096
|
}
|
|
9097
9097
|
};
|
|
9098
9098
|
iterate_progUi(progUi);
|
|
9099
|
-
return
|
|
9099
|
+
return elm_nodes;
|
|
9100
9100
|
};
|
|
9101
9101
|
func.events = {};
|
|
9102
9102
|
func.events.validate = async function (SESSION_ID, triggerP, dsSessionP, eventIdP, sourceP, argumentsP, return_validation_onlyP) {
|
|
@@ -11613,16 +11613,16 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11613
11613
|
const progUi = $xu_embed_container?.data()?.xuData?.screenInfo?.progUi;
|
|
11614
11614
|
if (progUi) {
|
|
11615
11615
|
await iterate_field_in_progUi(progUi, field_id);
|
|
11616
|
-
// find invisible panels
|
|
11617
|
-
const
|
|
11618
|
-
console.log('
|
|
11619
|
-
let prog_id = elm_node?.attributes?.program;
|
|
11620
|
-
const exp = elm_node?.attributes?.['xu-exp:program'];
|
|
11621
|
-
if (exp) {
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
}
|
|
11616
|
+
// // find invisible panels
|
|
11617
|
+
// const inviable_panels_arr = func.UI.find_field_in_progUi_attributes(progUi, field_id, null, 'xu-panel');
|
|
11618
|
+
// console.log('inviable_panels_arr', inviable_panels_arr);
|
|
11619
|
+
// let prog_id = elm_node?.attributes?.program;
|
|
11620
|
+
// const exp = elm_node?.attributes?.['xu-exp:program'];
|
|
11621
|
+
// if (exp) {
|
|
11622
|
+
// let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
|
|
11623
|
+
// prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
|
|
11624
|
+
// inviable_panels_obj[elm_node.id] = { prog_id };
|
|
11625
|
+
// }
|
|
11626
11626
|
}
|
|
11627
11627
|
}
|
|
11628
11628
|
// run panels
|
|
@@ -11631,11 +11631,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11631
11631
|
await iterate_field_in_progUi(prog_doc.progUi, field_id);
|
|
11632
11632
|
}
|
|
11633
11633
|
|
|
11634
|
-
// run invisible panels
|
|
11635
|
-
for await (const [parent_element_ui_id, panel_val] of Object.entries(inviable_panels_obj)) {
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
}
|
|
11634
|
+
// // run invisible panels
|
|
11635
|
+
// for await (const [parent_element_ui_id, panel_val] of Object.entries(inviable_panels_obj)) {
|
|
11636
|
+
// const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
|
|
11637
|
+
// await iterate_field_in_progUi(prog_doc.progUi, field_id);
|
|
11638
|
+
// }
|
|
11639
11639
|
}
|
|
11640
11640
|
|
|
11641
11641
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
@@ -11705,7 +11705,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
11705
11705
|
if (found) break;
|
|
11706
11706
|
|
|
11707
11707
|
// found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
|
|
11708
|
-
found = func.UI.find_field_in_progUi_attributes(prog_doc.progUi, parameter_in_field_id, 'xu-for');
|
|
11708
|
+
found = func.UI.find_field_in_progUi_attributes(prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
|
|
11709
11709
|
if (found) break;
|
|
11710
11710
|
}
|
|
11711
11711
|
}
|
|
@@ -12943,6 +12943,7 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
12943
12943
|
};
|
|
12944
12944
|
var $old_panel_div = find_old_panels_elements();
|
|
12945
12945
|
const set_xuPanelData_to_the_new_rendered_items = (_) => {
|
|
12946
|
+
wrapper.data().xuData.xuPanelWrapper = true;
|
|
12946
12947
|
$.each($wrapper.children(), function (key, val) {
|
|
12947
12948
|
if (!$(val).data().xuPanelData) {
|
|
12948
12949
|
$(val).data().xuPanelData = {};
|
|
@@ -9067,7 +9067,7 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
9067
9067
|
};
|
|
9068
9068
|
|
|
9069
9069
|
func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_name) {
|
|
9070
|
-
let
|
|
9070
|
+
let elm_nodes = [];
|
|
9071
9071
|
const iterate_progUi = function (node) {
|
|
9072
9072
|
for (let item of node) {
|
|
9073
9073
|
if (!tag_name || item.tagName === tag_name) {
|
|
@@ -9077,7 +9077,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
|
|
|
9077
9077
|
if (attr === `xu-exp:${prop}` || attr === prop) {
|
|
9078
9078
|
// found = val.includes('@' + field_id);
|
|
9079
9079
|
if (val.includes('@' + field_id)) {
|
|
9080
|
-
|
|
9080
|
+
elm_nodes.push(item);
|
|
9081
9081
|
break;
|
|
9082
9082
|
}
|
|
9083
9083
|
}
|
|
@@ -9085,11 +9085,11 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
|
|
|
9085
9085
|
}
|
|
9086
9086
|
} else {
|
|
9087
9087
|
if (tag_name) {
|
|
9088
|
-
|
|
9088
|
+
elm_nodes.push(item);
|
|
9089
9089
|
}
|
|
9090
9090
|
}
|
|
9091
9091
|
}
|
|
9092
|
-
if (elm_node) break;
|
|
9092
|
+
// if (elm_node) break;
|
|
9093
9093
|
|
|
9094
9094
|
if (item.children) {
|
|
9095
9095
|
iterate_progUi(item.children);
|
|
@@ -9097,7 +9097,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
|
|
|
9097
9097
|
}
|
|
9098
9098
|
};
|
|
9099
9099
|
iterate_progUi(progUi);
|
|
9100
|
-
return
|
|
9100
|
+
return elm_nodes;
|
|
9101
9101
|
};
|
|
9102
9102
|
func.UI.screen = {};
|
|
9103
9103
|
func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callingDataSource_objP, $callingContainerP, triggerIdP, rowIdP, jobNoP, is_panelP, parameters_obj_inP, source_functionP, call_screen_propertiesP) {
|
|
@@ -9686,16 +9686,16 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9686
9686
|
const progUi = $xu_embed_container?.data()?.xuData?.screenInfo?.progUi;
|
|
9687
9687
|
if (progUi) {
|
|
9688
9688
|
await iterate_field_in_progUi(progUi, field_id);
|
|
9689
|
-
// find invisible panels
|
|
9690
|
-
const
|
|
9691
|
-
console.log('
|
|
9692
|
-
let prog_id = elm_node?.attributes?.program;
|
|
9693
|
-
const exp = elm_node?.attributes?.['xu-exp:program'];
|
|
9694
|
-
if (exp) {
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
}
|
|
9689
|
+
// // find invisible panels
|
|
9690
|
+
// const inviable_panels_arr = func.UI.find_field_in_progUi_attributes(progUi, field_id, null, 'xu-panel');
|
|
9691
|
+
// console.log('inviable_panels_arr', inviable_panels_arr);
|
|
9692
|
+
// let prog_id = elm_node?.attributes?.program;
|
|
9693
|
+
// const exp = elm_node?.attributes?.['xu-exp:program'];
|
|
9694
|
+
// if (exp) {
|
|
9695
|
+
// let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
|
|
9696
|
+
// prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
|
|
9697
|
+
// inviable_panels_obj[elm_node.id] = { prog_id };
|
|
9698
|
+
// }
|
|
9699
9699
|
}
|
|
9700
9700
|
}
|
|
9701
9701
|
// run panels
|
|
@@ -9704,11 +9704,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9704
9704
|
await iterate_field_in_progUi(prog_doc.progUi, field_id);
|
|
9705
9705
|
}
|
|
9706
9706
|
|
|
9707
|
-
// run invisible panels
|
|
9708
|
-
for await (const [parent_element_ui_id, panel_val] of Object.entries(inviable_panels_obj)) {
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
}
|
|
9707
|
+
// // run invisible panels
|
|
9708
|
+
// for await (const [parent_element_ui_id, panel_val] of Object.entries(inviable_panels_obj)) {
|
|
9709
|
+
// const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
|
|
9710
|
+
// await iterate_field_in_progUi(prog_doc.progUi, field_id);
|
|
9711
|
+
// }
|
|
9712
9712
|
}
|
|
9713
9713
|
|
|
9714
9714
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
@@ -9778,7 +9778,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9778
9778
|
if (found) break;
|
|
9779
9779
|
|
|
9780
9780
|
// found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
|
|
9781
|
-
found = func.UI.find_field_in_progUi_attributes(prog_doc.progUi, parameter_in_field_id, 'xu-for');
|
|
9781
|
+
found = func.UI.find_field_in_progUi_attributes(prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
|
|
9782
9782
|
if (found) break;
|
|
9783
9783
|
}
|
|
9784
9784
|
}
|
|
@@ -11016,6 +11016,7 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
11016
11016
|
};
|
|
11017
11017
|
var $old_panel_div = find_old_panels_elements();
|
|
11018
11018
|
const set_xuPanelData_to_the_new_rendered_items = (_) => {
|
|
11019
|
+
wrapper.data().xuData.xuPanelWrapper = true;
|
|
11019
11020
|
$.each($wrapper.children(), function (key, val) {
|
|
11020
11021
|
if (!$(val).data().xuPanelData) {
|
|
11021
11022
|
$(val).data().xuPanelData = {};
|