@xuda.io/runtime-bundle 1.0.750 → 1.0.752
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
|
@@ -12496,28 +12496,37 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12496
12496
|
return field_id;
|
|
12497
12497
|
};
|
|
12498
12498
|
|
|
12499
|
+
// try {
|
|
12500
|
+
// bind_field_id = await get_bind_field(val.value);
|
|
12501
|
+
// val_is_reference_field = true;
|
|
12502
|
+
// } catch (err) {
|
|
12503
|
+
// try {
|
|
12504
|
+
// if (!_.isEmpty($elm?.data()?.xuAttributes?.['xu-exp:xu-bind'])) {
|
|
12505
|
+
// bind_field_exp = $elm.data().xuAttributes['xu-exp:xu-bind'];
|
|
12506
|
+
// const res = await func.expression.get(SESSION_ID, bind_field_exp, paramsP.dsSessionP, 'UI Attr EXP');
|
|
12507
|
+
|
|
12508
|
+
// if (Object.keys(res.fields).length) {
|
|
12509
|
+
// const field_id_from_exp = Object.keys(res.fields)[0];
|
|
12510
|
+
// bind_field_id = await get_bind_field(field_id_from_exp);
|
|
12511
|
+
// } else {
|
|
12512
|
+
// throw err?.message || err;
|
|
12513
|
+
// }
|
|
12514
|
+
// } else {
|
|
12515
|
+
// throw err?.message || err;
|
|
12516
|
+
// }
|
|
12517
|
+
// } catch (err) {
|
|
12518
|
+
// console.error(err?.message || err);
|
|
12519
|
+
// return {};
|
|
12520
|
+
// }
|
|
12521
|
+
// // return {};
|
|
12522
|
+
// }
|
|
12523
|
+
|
|
12499
12524
|
try {
|
|
12500
|
-
bind_field_id = await get_bind_field(val.value);
|
|
12525
|
+
bind_field_id = await get_bind_field(val.value.split('.')[0]);
|
|
12501
12526
|
val_is_reference_field = true;
|
|
12502
12527
|
} catch (err) {
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
bind_field_exp = $elm.data().xuAttributes['xu-exp:xu-bind'];
|
|
12506
|
-
const res = await func.expression.get(SESSION_ID, bind_field_exp, paramsP.dsSessionP, 'UI Attr EXP');
|
|
12507
|
-
|
|
12508
|
-
if (Object.keys(res.fields).length) {
|
|
12509
|
-
const field_id_from_exp = Object.keys(res.fields)[0];
|
|
12510
|
-
bind_field_id = await get_bind_field(field_id_from_exp);
|
|
12511
|
-
} else {
|
|
12512
|
-
throw err?.message || err;
|
|
12513
|
-
}
|
|
12514
|
-
} else {
|
|
12515
|
-
throw err.message;
|
|
12516
|
-
}
|
|
12517
|
-
} catch (err) {
|
|
12518
|
-
console.error(err?.message || err);
|
|
12519
|
-
return {};
|
|
12520
|
-
}
|
|
12528
|
+
console.error(err?.message || err);
|
|
12529
|
+
return {};
|
|
12521
12530
|
// return {};
|
|
12522
12531
|
}
|
|
12523
12532
|
|
|
@@ -12642,6 +12651,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12642
12651
|
value = false;
|
|
12643
12652
|
}
|
|
12644
12653
|
}
|
|
12654
|
+
if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
|
|
12655
|
+
let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
|
|
12656
|
+
value = eval(str);
|
|
12657
|
+
}
|
|
12645
12658
|
} else {
|
|
12646
12659
|
value = val.value;
|
|
12647
12660
|
}
|
|
@@ -10206,28 +10206,37 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10206
10206
|
return field_id;
|
|
10207
10207
|
};
|
|
10208
10208
|
|
|
10209
|
+
// try {
|
|
10210
|
+
// bind_field_id = await get_bind_field(val.value);
|
|
10211
|
+
// val_is_reference_field = true;
|
|
10212
|
+
// } catch (err) {
|
|
10213
|
+
// try {
|
|
10214
|
+
// if (!_.isEmpty($elm?.data()?.xuAttributes?.['xu-exp:xu-bind'])) {
|
|
10215
|
+
// bind_field_exp = $elm.data().xuAttributes['xu-exp:xu-bind'];
|
|
10216
|
+
// const res = await func.expression.get(SESSION_ID, bind_field_exp, paramsP.dsSessionP, 'UI Attr EXP');
|
|
10217
|
+
|
|
10218
|
+
// if (Object.keys(res.fields).length) {
|
|
10219
|
+
// const field_id_from_exp = Object.keys(res.fields)[0];
|
|
10220
|
+
// bind_field_id = await get_bind_field(field_id_from_exp);
|
|
10221
|
+
// } else {
|
|
10222
|
+
// throw err?.message || err;
|
|
10223
|
+
// }
|
|
10224
|
+
// } else {
|
|
10225
|
+
// throw err?.message || err;
|
|
10226
|
+
// }
|
|
10227
|
+
// } catch (err) {
|
|
10228
|
+
// console.error(err?.message || err);
|
|
10229
|
+
// return {};
|
|
10230
|
+
// }
|
|
10231
|
+
// // return {};
|
|
10232
|
+
// }
|
|
10233
|
+
|
|
10209
10234
|
try {
|
|
10210
|
-
bind_field_id = await get_bind_field(val.value);
|
|
10235
|
+
bind_field_id = await get_bind_field(val.value.split('.')[0]);
|
|
10211
10236
|
val_is_reference_field = true;
|
|
10212
10237
|
} catch (err) {
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
bind_field_exp = $elm.data().xuAttributes['xu-exp:xu-bind'];
|
|
10216
|
-
const res = await func.expression.get(SESSION_ID, bind_field_exp, paramsP.dsSessionP, 'UI Attr EXP');
|
|
10217
|
-
|
|
10218
|
-
if (Object.keys(res.fields).length) {
|
|
10219
|
-
const field_id_from_exp = Object.keys(res.fields)[0];
|
|
10220
|
-
bind_field_id = await get_bind_field(field_id_from_exp);
|
|
10221
|
-
} else {
|
|
10222
|
-
throw err?.message || err;
|
|
10223
|
-
}
|
|
10224
|
-
} else {
|
|
10225
|
-
throw err.message;
|
|
10226
|
-
}
|
|
10227
|
-
} catch (err) {
|
|
10228
|
-
console.error(err?.message || err);
|
|
10229
|
-
return {};
|
|
10230
|
-
}
|
|
10238
|
+
console.error(err?.message || err);
|
|
10239
|
+
return {};
|
|
10231
10240
|
// return {};
|
|
10232
10241
|
}
|
|
10233
10242
|
|
|
@@ -10352,6 +10361,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10352
10361
|
value = false;
|
|
10353
10362
|
}
|
|
10354
10363
|
}
|
|
10364
|
+
if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
|
|
10365
|
+
let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
|
|
10366
|
+
value = eval(str);
|
|
10367
|
+
}
|
|
10355
10368
|
} else {
|
|
10356
10369
|
value = val.value;
|
|
10357
10370
|
}
|