@xuda.io/runtime-bundle 1.0.270 → 1.0.272
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.
|
@@ -33756,35 +33756,30 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
33756
33756
|
const common_fx = {
|
|
33757
33757
|
"xu-bind": async function ($elm, val) {
|
|
33758
33758
|
if (is_skeleton) return;
|
|
33759
|
-
|
|
33759
|
+
|
|
33760
33760
|
let view_field_id = val.value;
|
|
33761
|
+
let field_id_from_exp
|
|
33762
|
+
if (!_.isEmpty($elm?.data()?.xuAttributes?.["xu-exp:xu-bind"])) {
|
|
33763
|
+
const res = (
|
|
33764
|
+
await func.expression.get(
|
|
33765
|
+
SESSION_ID,
|
|
33766
|
+
$elm.data().xuAttributes["xu-exp:xu-bind"],
|
|
33767
|
+
paramsP.dsSessionP,
|
|
33768
|
+
"UI Attr EXP"
|
|
33769
|
+
)
|
|
33770
|
+
)
|
|
33771
|
+
console.log(res)
|
|
33772
|
+
}
|
|
33773
|
+
|
|
33761
33774
|
let _prog_id = $elm.data().xuData.paramsP.prog_id;
|
|
33762
33775
|
let _dsP = $elm.data().xuData.paramsP.dsSessionP;
|
|
33763
33776
|
const view_ret = await func.utils.VIEWS_OBJ.get(SESSION_ID, _prog_id);
|
|
33764
33777
|
if (!view_ret) return {};
|
|
33765
33778
|
|
|
33766
|
-
|
|
33767
33779
|
let is_dynamic_field = false
|
|
33768
33780
|
let field_prop
|
|
33769
33781
|
|
|
33770
|
-
|
|
33771
|
-
// const reference_source_obj = iterate_info?.reference_source_obj
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
if (["_FOR_VAL", "_FOR_KEY"].includes(val.value)) {
|
|
33776
|
-
// if (reference_source_obj) {
|
|
33777
|
-
// view_field_id = (reference_source_obj.fieldIdP || "") + val.value;
|
|
33778
|
-
// }
|
|
33779
|
-
// view_field_id = $elm.data().xuData.node_org.id + val.value;
|
|
33780
|
-
|
|
33781
|
-
// if (val.value === "_FOR_KEY") {
|
|
33782
|
-
// view_field_id = $elm.data().xuData.iterate_info.iterator_key;
|
|
33783
|
-
// }
|
|
33784
|
-
|
|
33785
|
-
// if (val.value === "_FOR_VAL") {
|
|
33786
|
-
// view_field_id = $elm.data().xuData.iterate_info.iterator_val;
|
|
33787
|
-
// }
|
|
33782
|
+
if (["_FOR_VAL", "_FOR_KEY"].includes(view_field_id)) {
|
|
33788
33783
|
is_dynamic_field = true
|
|
33789
33784
|
field_prop = _ds.dynamic_fields[view_field_id]
|
|
33790
33785
|
} else {
|
|
@@ -34184,7 +34179,7 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
34184
34179
|
is_val_dynamic_field,
|
|
34185
34180
|
reference_source_obj
|
|
34186
34181
|
};
|
|
34187
|
-
let _parent_info = _.cloneDeep(
|
|
34182
|
+
let _parent_info = _.cloneDeep(parent_infoP) || {}
|
|
34188
34183
|
_parent_info.iterate_info = iterate_info
|
|
34189
34184
|
// if (parent_infoP) {
|
|
34190
34185
|
// _parent_info = iterate_info;
|