@energycap/components 0.39.36-ECAP-26840-date-input.20241119-1203 → 0.39.36-ECAP-26840-date-input.20241119-1615

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.
@@ -466,18 +466,16 @@ class CalendarItemComponent {
466
466
  this.selected = false;
467
467
  this.outsideActiveMonth = false;
468
468
  }
469
- ngOnChanges(changes) {
470
- if (changes.item || changes.activeDate || changes.selection || changes.view) {
471
- if (this.view !== 'day') {
472
- this.today = false;
473
- this.outsideActiveMonth = false;
474
- }
475
- else {
476
- this.today = moment(this.item?.date).isSame(moment(), 'day');
477
- this.outsideActiveMonth = !moment(this.item?.date).isSame(this.activeDate, 'month');
478
- }
479
- this.selected = this.isSelected(this.item?.date, this.selection, this.view);
469
+ ngOnChanges() {
470
+ if (this.view !== 'day') {
471
+ this.today = false;
472
+ this.outsideActiveMonth = false;
473
+ }
474
+ else {
475
+ this.today = moment(this.item?.date).isSame(moment(), 'day');
476
+ this.outsideActiveMonth = !moment(this.item?.date).isSame(this.activeDate, 'month');
480
477
  }
478
+ this.selected = this.isSelected(this.item?.date, this.selection, this.view);
481
479
  }
482
480
  isSelected(date, selection, view) {
483
481
  if (!date || !selection) {