@po-ui/ng-components 6.5.1 → 6.6.0

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.
@@ -17694,7 +17694,7 @@ class PoComboBaseComponent {
17694
17694
  this.setInputValue(optionLabel);
17695
17695
  }
17696
17696
  if (isUpdateModel) {
17697
- const optionValue = (option && option.value) || undefined;
17697
+ const optionValue = option?.value !== undefined ? option.value : undefined;
17698
17698
  this.updateModel(optionValue);
17699
17699
  }
17700
17700
  }
@@ -28812,6 +28812,7 @@ class PoRadioGroupBaseComponent {
28812
28812
  */
28813
28813
  this.change = new EventEmitter();
28814
28814
  this.mdColumns = poRadioGroupColumnsDefaultLength;
28815
+ this.onTouched = null;
28815
28816
  this._columns = poRadioGroupColumnsDefaultLength;
28816
28817
  this._disabled = false;
28817
28818
  this._required = false;
@@ -28901,7 +28902,9 @@ class PoRadioGroupBaseComponent {
28901
28902
  registerOnChange(fn) {
28902
28903
  this.onChangePropagate = fn;
28903
28904
  }
28904
- registerOnTouched(fn) { }
28905
+ registerOnTouched(fn) {
28906
+ this.onTouched = fn;
28907
+ }
28905
28908
  registerOnValidatorChange(fn) {
28906
28909
  this.validatorChange = fn;
28907
28910
  }
@@ -29044,6 +29047,7 @@ class PoRadioGroupComponent extends PoRadioGroupBaseComponent {
29044
29047
  }
29045
29048
  eventClick(value, disabled) {
29046
29049
  if (!disabled) {
29050
+ this.onTouched?.();
29047
29051
  this.changeValue(value);
29048
29052
  }
29049
29053
  }