@evotor-dev/ui-kit 6.22.2 → 6.22.4

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.
@@ -3966,6 +3966,35 @@
3966
3966
  };
3967
3967
  return _this;
3968
3968
  }
3969
+ Object.defineProperty(EvoDatepickerComponent.prototype, "inputClass", {
3970
+ get: function () {
3971
+ return {
3972
+ 'disabled': this.disabled,
3973
+ 'hidden': !this.isValueExist(),
3974
+ 'valid': this.currentState[exports.EvoControlStates.valid],
3975
+ 'invalid': this.currentState[exports.EvoControlStates.invalid],
3976
+ };
3977
+ },
3978
+ enumerable: false,
3979
+ configurable: true
3980
+ });
3981
+ Object.defineProperty(EvoDatepickerComponent.prototype, "totalClasses", {
3982
+ get: function () {
3983
+ var classes = [];
3984
+ if (this.theme) {
3985
+ classes.push(this.theme);
3986
+ }
3987
+ if (this.uiState.isOpen) {
3988
+ classes.push('opened');
3989
+ }
3990
+ if (this.folded) {
3991
+ classes.push('folded');
3992
+ }
3993
+ return classes;
3994
+ },
3995
+ enumerable: false,
3996
+ configurable: true
3997
+ });
3969
3998
  EvoDatepickerComponent.prototype.writeValue = function (value) {
3970
3999
  this.updatePickerIfNeed(value);
3971
4000
  this.propagateChange(value);
@@ -4010,35 +4039,6 @@
4010
4039
  this.flatpickr = null;
4011
4040
  this.flatpickrElement.nativeElement._flatpickr.destroy();
4012
4041
  };
4013
- Object.defineProperty(EvoDatepickerComponent.prototype, "inputClass", {
4014
- get: function () {
4015
- return {
4016
- 'disabled': this.disabled,
4017
- 'hidden': !this.isValueExist(),
4018
- 'valid': this.currentState[exports.EvoControlStates.valid],
4019
- 'invalid': this.currentState[exports.EvoControlStates.invalid],
4020
- };
4021
- },
4022
- enumerable: false,
4023
- configurable: true
4024
- });
4025
- Object.defineProperty(EvoDatepickerComponent.prototype, "totalClasses", {
4026
- get: function () {
4027
- var classes = [];
4028
- if (this.theme) {
4029
- classes.push(this.theme);
4030
- }
4031
- if (this.uiState.isOpen) {
4032
- classes.push('opened');
4033
- }
4034
- if (this.folded) {
4035
- classes.push('folded');
4036
- }
4037
- return classes;
4038
- },
4039
- enumerable: false,
4040
- configurable: true
4041
- });
4042
4042
  EvoDatepickerComponent.prototype.initMask = function () {
4043
4043
  if (this.config.allowInput && this.maskedInput) {
4044
4044
  this.maskConfig = {
@@ -4085,18 +4085,18 @@
4085
4085
  _this.setRangeConstraints(selectedDates);
4086
4086
  _this.setTimeConstraints(selectedDates);
4087
4087
  _this.updateLabelValues(selectedDates);
4088
- _this.writeValue(selectedDates);
4088
+ _this.zone.run(function () { return _this.writeValue(selectedDates); });
4089
4089
  }, onClose: function (selectedDates) {
4090
4090
  _this.handleSingleSelectedValueInRange(selectedDates);
4091
4091
  _this.setEmptyFieldStateIfNeed();
4092
4092
  _this.resetConstraints();
4093
4093
  _this.setOpenedState(false);
4094
- _this.closePicker.emit(selectedDates);
4094
+ _this.zone.run(function () { return _this.closePicker.emit(selectedDates); });
4095
4095
  }, onOpen: function () {
4096
4096
  _this.setOpenedState(true);
4097
4097
  _this.resetTimeAfterOpen();
4098
4098
  _this.updateLabelValues(_this.flatpickr.selectedDates);
4099
- _this.onTouched();
4099
+ _this.zone.run(function () { return _this.onTouched(); });
4100
4100
  } }, (!this.appendToBody && { appendTo: this.elementRef.nativeElement }));
4101
4101
  };
4102
4102
  EvoDatepickerComponent.prototype.getConfig = function () {