@xuda.io/runtime-bundle 1.0.657 → 1.0.658

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.
@@ -12385,6 +12385,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12385
12385
 
12386
12386
  const field_changed = async function (e) {
12387
12387
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
12388
+
12389
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
12390
+ let value_before_cast = await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId);
12391
+ debugger;
12392
+ }
12393
+
12388
12394
  var value = await func.common.get_cast_val(SESSION_ID, 'xu-bind', 'value', field_prop.props.fieldType, bind.getter($elm[0]));
12389
12395
 
12390
12396
  if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
@@ -12450,7 +12456,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12450
12456
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
12451
12457
  value = _ds.data_feed.rows?.[row_idx]?.[val.value];
12452
12458
  }
12453
- if (_.isArray(value) && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
12459
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
12454
12460
  if (value.includes($elm.attr('value'))) {
12455
12461
  value = true;
12456
12462
  } else {
@@ -10107,6 +10107,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10107
10107
 
10108
10108
  const field_changed = async function (e) {
10109
10109
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
10110
+
10111
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
10112
+ let value_before_cast = await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId);
10113
+ debugger;
10114
+ }
10115
+
10110
10116
  var value = await func.common.get_cast_val(SESSION_ID, 'xu-bind', 'value', field_prop.props.fieldType, bind.getter($elm[0]));
10111
10117
 
10112
10118
  if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
@@ -10172,7 +10178,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10172
10178
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
10173
10179
  value = _ds.data_feed.rows?.[row_idx]?.[val.value];
10174
10180
  }
10175
- if (_.isArray(value) && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
10181
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
10176
10182
  if (value.includes($elm.attr('value'))) {
10177
10183
  value = true;
10178
10184
  } else {