@mintplayer/web-components 2.7.0 → 2.8.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.
@@ -1,4 +1,4 @@
1
- import { M as r } from "../chunks/mp-calendar.element-u6uS31_j.mjs";
1
+ import { M as r } from "../chunks/mp-calendar.element-CJ8-t-Zn.mjs";
2
2
  export {
3
3
  r as MpCalendarElement
4
4
  };
@@ -81,7 +81,25 @@ export declare class MpCalendarElement extends LitElement {
81
81
  private startOfWeek;
82
82
  private endOfWeek;
83
83
  private daysBetween;
84
- /** ISO-8601 week-of-year. */
84
+ /**
85
+ * How many days of a year a week must contain to count as that year's week 1.
86
+ * ISO says 4 (the Thursday rule); the US convention says 1 (week 1 is simply
87
+ * the week containing Jan 1). `Intl` reports it per locale, and it is the ONLY
88
+ * thing that distinguishes the two systems once the week start is known.
89
+ */
90
+ private minimalDaysInFirstWeek;
91
+ /** The start of the week that owns week 1 of `year`. */
92
+ private firstWeekStart;
93
+ /**
94
+ * Week-of-year honouring BOTH the week start and the locale's minimal-days
95
+ * rule.
96
+ *
97
+ * Was hardcoded ISO-8601, which is only correct for a Monday-start week. Under
98
+ * a Sunday start — what en-US and ja-JP resolve to — it labelled two
99
+ * consecutive rows of January 2026 "week 1" and ran one short from then on.
100
+ * That column is a real `<th scope="row">`, so a screen reader read the wrong
101
+ * number, and the scheduler's own editor renders this calendar.
102
+ */
85
103
  private weekOfYear;
86
104
  /** Localized weekday short + long names, in the order driven by firstDayOfWeek. */
87
105
  private weekdayNames;