@xuda.io/runtime-bundle 1.0.672 → 1.0.673
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
|
@@ -12395,7 +12395,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12395
12395
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
|
|
12396
12396
|
|
|
12397
12397
|
// update array for checkbox that not in xu-for
|
|
12398
|
-
if (field_prop.props.fieldType === 'array' &&
|
|
12398
|
+
if (field_prop.props.fieldType === 'array' && ($elm.attr('type') === 'checkbox' || $elm.attr('type') === 'radio') && val_is_reference_field) {
|
|
12399
12399
|
let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
|
|
12400
12400
|
let value_from_getter = bind.getter($elm[0]);
|
|
12401
12401
|
let value;
|
|
@@ -12482,13 +12482,21 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12482
12482
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
12483
12483
|
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
12484
12484
|
}
|
|
12485
|
-
if (field_prop.props.fieldType === 'array' &&
|
|
12485
|
+
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
|
|
12486
12486
|
if (value.includes($elm.attr('value'))) {
|
|
12487
12487
|
value = true;
|
|
12488
12488
|
} else {
|
|
12489
12489
|
value = false;
|
|
12490
12490
|
}
|
|
12491
12491
|
}
|
|
12492
|
+
|
|
12493
|
+
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
|
|
12494
|
+
if (value.includes($elm.attr('value'))) {
|
|
12495
|
+
value = $elm.attr('value');
|
|
12496
|
+
} else {
|
|
12497
|
+
value = false;
|
|
12498
|
+
}
|
|
12499
|
+
}
|
|
12492
12500
|
} else {
|
|
12493
12501
|
value = val.value;
|
|
12494
12502
|
}
|
|
@@ -10117,7 +10117,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10117
10117
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
|
|
10118
10118
|
|
|
10119
10119
|
// update array for checkbox that not in xu-for
|
|
10120
|
-
if (field_prop.props.fieldType === 'array' &&
|
|
10120
|
+
if (field_prop.props.fieldType === 'array' && ($elm.attr('type') === 'checkbox' || $elm.attr('type') === 'radio') && val_is_reference_field) {
|
|
10121
10121
|
let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
|
|
10122
10122
|
let value_from_getter = bind.getter($elm[0]);
|
|
10123
10123
|
let value;
|
|
@@ -10204,13 +10204,21 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10204
10204
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
10205
10205
|
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
10206
10206
|
}
|
|
10207
|
-
if (field_prop.props.fieldType === 'array' &&
|
|
10207
|
+
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
|
|
10208
10208
|
if (value.includes($elm.attr('value'))) {
|
|
10209
10209
|
value = true;
|
|
10210
10210
|
} else {
|
|
10211
10211
|
value = false;
|
|
10212
10212
|
}
|
|
10213
10213
|
}
|
|
10214
|
+
|
|
10215
|
+
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
|
|
10216
|
+
if (value.includes($elm.attr('value'))) {
|
|
10217
|
+
value = $elm.attr('value');
|
|
10218
|
+
} else {
|
|
10219
|
+
value = false;
|
|
10220
|
+
}
|
|
10221
|
+
}
|
|
10214
10222
|
} else {
|
|
10215
10223
|
value = val.value;
|
|
10216
10224
|
}
|