@xuda.io/runtime-bundle 1.0.274 → 1.0.275
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
|
@@ -14388,8 +14388,8 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
14388
14388
|
"xu-bind": async function ($elm, val) {
|
|
14389
14389
|
if (is_skeleton) return;
|
|
14390
14390
|
|
|
14391
|
-
let view_field_id = val.value;
|
|
14392
|
-
|
|
14391
|
+
// let view_field_id = val.value;
|
|
14392
|
+
let val_is_reference_field = false
|
|
14393
14393
|
|
|
14394
14394
|
let _prog_id = $elm.data().xuData.paramsP.prog_id;
|
|
14395
14395
|
let _dsP = $elm.data().xuData.paramsP.dsSessionP;
|
|
@@ -14440,9 +14440,9 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
14440
14440
|
|
|
14441
14441
|
try {
|
|
14442
14442
|
bind_field_id = await get_bind_field(val.value)
|
|
14443
|
+
val_is_reference_field = true
|
|
14443
14444
|
} catch (err) {
|
|
14444
14445
|
try {
|
|
14445
|
-
|
|
14446
14446
|
if (!_.isEmpty($elm?.data()?.xuAttributes?.["xu-exp:xu-bind"])) {
|
|
14447
14447
|
const res = (
|
|
14448
14448
|
await func.expression.get(
|
|
@@ -14533,11 +14533,15 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
14533
14533
|
if (!_ds.currentRecordId) return;
|
|
14534
14534
|
let value
|
|
14535
14535
|
try {
|
|
14536
|
-
if (
|
|
14537
|
-
|
|
14536
|
+
if (val_is_reference_field) {
|
|
14537
|
+
if (is_dynamic_field) {
|
|
14538
|
+
value = _ds.dynamic_fields[bind_field_id].value;
|
|
14539
|
+
} else {
|
|
14540
|
+
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
14541
|
+
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
14542
|
+
}
|
|
14538
14543
|
} else {
|
|
14539
|
-
|
|
14540
|
-
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
14544
|
+
value = val
|
|
14541
14545
|
}
|
|
14542
14546
|
if (typeof value === "undefined") return;
|
|
14543
14547
|
bind.setter($elm[0], value);
|
|
@@ -11798,8 +11798,8 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
11798
11798
|
"xu-bind": async function ($elm, val) {
|
|
11799
11799
|
if (is_skeleton) return;
|
|
11800
11800
|
|
|
11801
|
-
let view_field_id = val.value;
|
|
11802
|
-
|
|
11801
|
+
// let view_field_id = val.value;
|
|
11802
|
+
let val_is_reference_field = false
|
|
11803
11803
|
|
|
11804
11804
|
let _prog_id = $elm.data().xuData.paramsP.prog_id;
|
|
11805
11805
|
let _dsP = $elm.data().xuData.paramsP.dsSessionP;
|
|
@@ -11850,9 +11850,9 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
11850
11850
|
|
|
11851
11851
|
try {
|
|
11852
11852
|
bind_field_id = await get_bind_field(val.value)
|
|
11853
|
+
val_is_reference_field = true
|
|
11853
11854
|
} catch (err) {
|
|
11854
11855
|
try {
|
|
11855
|
-
|
|
11856
11856
|
if (!_.isEmpty($elm?.data()?.xuAttributes?.["xu-exp:xu-bind"])) {
|
|
11857
11857
|
const res = (
|
|
11858
11858
|
await func.expression.get(
|
|
@@ -11943,11 +11943,15 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
11943
11943
|
if (!_ds.currentRecordId) return;
|
|
11944
11944
|
let value
|
|
11945
11945
|
try {
|
|
11946
|
-
if (
|
|
11947
|
-
|
|
11946
|
+
if (val_is_reference_field) {
|
|
11947
|
+
if (is_dynamic_field) {
|
|
11948
|
+
value = _ds.dynamic_fields[bind_field_id].value;
|
|
11949
|
+
} else {
|
|
11950
|
+
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
11951
|
+
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
11952
|
+
}
|
|
11948
11953
|
} else {
|
|
11949
|
-
|
|
11950
|
-
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
11954
|
+
value = val
|
|
11951
11955
|
}
|
|
11952
11956
|
if (typeof value === "undefined") return;
|
|
11953
11957
|
bind.setter($elm[0], value);
|