@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.
- package/calendar/index.mjs +1 -1
- package/calendar/src/mp-calendar.element.d.ts +19 -1
- package/chunks/{id-BstjfRrz.mjs → id-DNZVAnGC.mjs} +267 -162
- package/chunks/{mp-calendar.element-u6uS31_j.mjs → mp-calendar.element-CJ8-t-Zn.mjs} +71 -39
- package/chunks/{mp-datetime-picker.element-MPTRHwyc.mjs → mp-datetime-picker.element-D1CiLbHm.mjs} +1 -1
- package/datepicker/index.mjs +1 -1
- package/datetime-picker/index.mjs +1 -1
- package/package.json +1 -1
- package/scheduler/index.mjs +1332 -765
- package/scheduler/src/components/mp-scheduler.d.ts +186 -1
- package/scheduler/src/input/input-handler.d.ts +22 -0
- package/scheduler/src/views/base-view.d.ts +30 -1
- package/scheduler/src/views/index.d.ts +1 -1
- package/scheduler/src/views/timeline-view.d.ts +39 -15
- package/scheduler/src/views/year-view.d.ts +7 -0
- package/scheduler-core/index.mjs +42 -40
- package/scheduler-core/src/models/messages.d.ts +29 -0
- package/scheduler-core/src/models/options.d.ts +24 -7
- package/scheduler-core/src/services/date.service.d.ts +64 -10
- package/scheduler-core/src/utils/color.d.ts +19 -0
package/calendar/index.mjs
CHANGED
|
@@ -81,7 +81,25 @@ export declare class MpCalendarElement extends LitElement {
|
|
|
81
81
|
private startOfWeek;
|
|
82
82
|
private endOfWeek;
|
|
83
83
|
private daysBetween;
|
|
84
|
-
/**
|
|
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;
|