@xuda.io/runtime-bundle 1.0.248 → 1.0.250
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-bundle.js +2 -55
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +1 -1
- package/js/xuda-runtime-mini-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +2 -55
- package/js/xuda-runtime-slim.min.es.js +2 -55
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +2 -2
- package/js/xuda-worker-bundle.js +2 -2
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -25191,7 +25191,7 @@ glb.run_xu_before = [
|
|
|
25191
25191
|
// "xu-ui-plugin",
|
|
25192
25192
|
// "programParameters",
|
|
25193
25193
|
];
|
|
25194
|
-
glb.run_xu_after = ["xu-class", "xu-script", "xu-ui-plugin"];
|
|
25194
|
+
glb.run_xu_after = ["xu-bind", "xu-class", "xu-script", "xu-ui-plugin"];
|
|
25195
25195
|
glb.attr_abbreviations_arr = [
|
|
25196
25196
|
"xu-click",
|
|
25197
25197
|
"xu-dblclick",
|
|
@@ -32414,7 +32414,7 @@ func.datasource.add_dynamic_field_to_ds = function (
|
|
|
32414
32414
|
field_id: key,
|
|
32415
32415
|
},
|
|
32416
32416
|
props: {
|
|
32417
|
-
fieldType: val ? toType(val) : "string",
|
|
32417
|
+
fieldType: typeof (val) !== "undefined" ? toType(val) : "string",
|
|
32418
32418
|
},
|
|
32419
32419
|
value: val,
|
|
32420
32420
|
};
|
|
@@ -33762,61 +33762,8 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
33762
33762
|
let _dsP = $elm.data().xuData.paramsP.dsSessionP;
|
|
33763
33763
|
const view_ret = await func.utils.VIEWS_OBJ.get(SESSION_ID, _prog_id);
|
|
33764
33764
|
if (!view_ret) return {};
|
|
33765
|
-
// const tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _prog_id);
|
|
33766
33765
|
|
|
33767
33766
|
|
|
33768
|
-
|
|
33769
|
-
// let field_prop = func.common.find_item_by_key(
|
|
33770
|
-
// view_ret.progFields,
|
|
33771
|
-
// "field_id",
|
|
33772
|
-
// view_field_id
|
|
33773
|
-
// );
|
|
33774
|
-
// if (!field_prop) {
|
|
33775
|
-
// /// find the field everywhere in the chain Aug 30 2024
|
|
33776
|
-
// const ret_get_value = await func.datasource.get_value(
|
|
33777
|
-
// SESSION_ID,
|
|
33778
|
-
// view_field_id,
|
|
33779
|
-
// _dsP // $elm.data().xuData.paramsP.dsSessionP
|
|
33780
|
-
// );
|
|
33781
|
-
|
|
33782
|
-
// if (ret_get_value.found) {
|
|
33783
|
-
// _dsP = ret_get_value.dsSessionP;
|
|
33784
|
-
// let _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
|
|
33785
|
-
// _prog_id = _ds.prog_id;
|
|
33786
|
-
// const view_ret = await func.utils.VIEWS_OBJ.get(SESSION_ID, _prog_id);
|
|
33787
|
-
// if (!view_ret) return {};
|
|
33788
|
-
// field_prop = func.common.find_item_by_key(
|
|
33789
|
-
// view_ret.progFields,
|
|
33790
|
-
// "field_id",
|
|
33791
|
-
// view_field_id
|
|
33792
|
-
// );
|
|
33793
|
-
// }
|
|
33794
|
-
// if (!field_prop) {
|
|
33795
|
-
// console.error(
|
|
33796
|
-
// `field ${view_field_id} not found in the program scope`
|
|
33797
|
-
// );
|
|
33798
|
-
// return {};
|
|
33799
|
-
// }
|
|
33800
|
-
// }
|
|
33801
|
-
|
|
33802
|
-
/////////////////////
|
|
33803
|
-
|
|
33804
|
-
// let is_key_dynamic_field
|
|
33805
|
-
// let is_val_dynamic_field
|
|
33806
|
-
|
|
33807
|
-
// switch (view_field_id) {
|
|
33808
|
-
// case "_FOR_KEY":
|
|
33809
|
-
// is_key_dynamic_field = true
|
|
33810
|
-
// break;
|
|
33811
|
-
|
|
33812
|
-
// case "_FOR_VAL":
|
|
33813
|
-
// is_val_dynamic_field = true
|
|
33814
|
-
// break;
|
|
33815
|
-
|
|
33816
|
-
// default:
|
|
33817
|
-
// break;
|
|
33818
|
-
// }
|
|
33819
|
-
|
|
33820
33767
|
let is_dynamic_field = false
|
|
33821
33768
|
let field_prop
|
|
33822
33769
|
|