@po-ui/ng-components 5.13.0 → 5.13.1

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.
@@ -3842,7 +3842,7 @@
3842
3842
  PoCalendarBaseComponent.prototype.setActivateDate = function (date) {
3843
3843
  var activateDate = date ? date : this.verifyActivateDate();
3844
3844
  if (this.isRange) {
3845
- var checkedStart = new Date(activateDate);
3845
+ var checkedStart = typeof activateDate === 'string' ? this.poDate.convertIsoToDate(activateDate) : new Date(activateDate);
3846
3846
  var checkedEnd = new Date(new Date(checkedStart).setMonth(checkedStart.getMonth() + 1));
3847
3847
  this.activateDate = { start: checkedStart, end: checkedEnd };
3848
3848
  }
@@ -27875,16 +27875,17 @@
27875
27875
  };
27876
27876
  PoDynamicFormFieldsComponent.prototype.onChangeField = function (visibleField, objectValue) {
27877
27877
  return __awaiter(this, void 0, void 0, function () {
27878
- var property, isChangedValueField, _b, changedField, changedFieldIndex;
27878
+ var property, isBooleanType, isChangedValueField, _b, changedField, changedFieldIndex;
27879
27879
  return __generator(this, function (_c) {
27880
27880
  switch (_c.label) {
27881
27881
  case 0:
27882
27882
  property = visibleField.property;
27883
+ isBooleanType = visibleField.type === 'boolean';
27883
27884
  isChangedValueField = this.previousValue[property] !== this.value[property];
27884
27885
  if (visibleField.optionsService) {
27885
27886
  this.objectValue.emit(objectValue);
27886
27887
  }
27887
- if (!(this.form.touched && isChangedValueField)) return [3 /*break*/, 3];
27888
+ if (!((this.form.touched || isBooleanType) && isChangedValueField)) return [3 /*break*/, 3];
27888
27889
  _b = this.getField(property), changedField = _b.changedField, changedFieldIndex = _b.changedFieldIndex;
27889
27890
  if (!changedField.validate) return [3 /*break*/, 2];
27890
27891
  return [4 /*yield*/, this.validateField(changedField, changedFieldIndex, visibleField)];