@xuda.io/runtime-bundle 1.0.671 → 1.0.672

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.
@@ -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' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
12398
+ if (field_prop.props.fieldType === 'array' && ['checkbox', 'radio'].includes($elm.attr('type')) && 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,7 +12482,7 @@ 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' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
12485
+ if (field_prop.props.fieldType === 'array' && ['checkbox', 'radio'].includes($elm.attr('type')) && $elm.attr('value')) {
12486
12486
  if (value.includes($elm.attr('value'))) {
12487
12487
  value = true;
12488
12488
  } else {
@@ -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' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
10120
+ if (field_prop.props.fieldType === 'array' && ['checkbox', 'radio'].includes($elm.attr('type')) && 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,7 +10204,7 @@ 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' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
10207
+ if (field_prop.props.fieldType === 'array' && ['checkbox', 'radio'].includes($elm.attr('type')) && $elm.attr('value')) {
10208
10208
  if (value.includes($elm.attr('value'))) {
10209
10209
  value = true;
10210
10210
  } else {