@acorex/components 22.4.11 → 22.4.12

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.
@@ -626,22 +626,19 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
626
626
  //
627
627
  // const focused = d.dayOfMonth == this._footPrint.day && d.monthOfYear == this._footPrint.month && d.year == this._footPrint.year;
628
628
  //
629
+ r.cssClass = {};
630
+ if (d.compare(monthStart, 'day') === 0) {
631
+ const columnStart = ((d.weekdayIndex - startsOn + 7) % 7) + 1;
632
+ r.cssClass[`ax-column-start-${columnStart}`] = true;
633
+ }
629
634
  if (r.disabled) {
630
- r.cssClass = {
631
- 'ax-state-disabled': true,
632
- };
635
+ r.cssClass['ax-state-disabled'] = true;
633
636
  }
634
637
  else {
635
- r.cssClass = {
636
- 'ax-state-today': r.today,
637
- 'ax-state-selected': r.selected,
638
- 'ax-state-holiday': r.holiday,
639
- // 'ax-state-focused': focused,
640
- };
641
- if (d.compare(monthStart, 'day') === 0) {
642
- const columnStart = ((d.weekdayIndex - startsOn + 7) % 7) + 1;
643
- r.cssClass[`ax-column-start-${columnStart}`] = true;
644
- }
638
+ r.cssClass['ax-state-today'] = r.today;
639
+ r.cssClass['ax-state-selected'] = r.selected;
640
+ r.cssClass['ax-state-holiday'] = r.holiday;
641
+ // 'ax-state-focused': focused,
645
642
  if (holidayInfo?.cssClass) {
646
643
  holidayInfo.cssClass.split(' ').forEach((c) => {
647
644
  if (c)