@xuda.io/runtime-bundle 1.0.671 → 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.
@@ -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' && ($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;
@@ -12489,6 +12489,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
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' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
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;
@@ -10211,6 +10211,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
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
  }