@super-calendar/dom 2.7.0 → 2.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-calendar/dom",
3
- "version": "2.7.0",
3
+ "version": "2.8.1",
4
4
  "description": "Virtualized month / week / day calendar and date picker for react-dom. No React Native, no react-native-web.",
5
5
  "keywords": [
6
6
  "calendar",
@@ -48,7 +48,7 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@super-calendar/core": "2.7.0"
51
+ "@super-calendar/core": "2.8.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@legendapp/list": ">=3",
package/src/Calendar.tsx CHANGED
@@ -138,6 +138,12 @@ export interface CalendarProps<T = unknown>
138
138
  showAllDayEventCell?: boolean;
139
139
  /** Tint weekend columns (default true). Set false to treat weekends normally. */
140
140
  highlightWeekends?: boolean;
141
+ /** Allow moving events by default (per-event `startEditable` overrides). Default true. */
142
+ eventStartEditable?: boolean;
143
+ /** Allow resizing events by default (per-event `durationEditable` overrides). Default true. */
144
+ eventDurationEditable?: boolean;
145
+ /** Reject drags/resizes that would overlap another event (default true = allowed). */
146
+ eventOverlap?: boolean;
141
147
  /** Snap dragged/created events to this many minutes. */
142
148
  dragStepMinutes?: number;
143
149
  /** Tap empty grid space. */
@@ -287,6 +293,9 @@ export function Calendar<T = unknown>({
287
293
  showNowIndicator,
288
294
  showAllDayEventCell,
289
295
  highlightWeekends,
296
+ eventStartEditable,
297
+ eventDurationEditable,
298
+ eventOverlap,
290
299
  dragStepMinutes,
291
300
  onPressCell,
292
301
  onCreateEvent,
@@ -393,6 +402,7 @@ export function Calendar<T = unknown>({
393
402
  weekStartsOn={weekStartsOn}
394
403
  hiddenDays={hiddenDays}
395
404
  weekdayFormat={weekdayFormat}
405
+ highlightWeekends={highlightWeekends}
396
406
  locale={locale}
397
407
  theme={theme}
398
408
  className={className}
@@ -450,6 +460,9 @@ export function Calendar<T = unknown>({
450
460
  showNowIndicator={showNowIndicator}
451
461
  showAllDayEventCell={showAllDayEventCell}
452
462
  highlightWeekends={highlightWeekends}
463
+ eventStartEditable={eventStartEditable}
464
+ eventDurationEditable={eventDurationEditable}
465
+ eventOverlap={eventOverlap}
453
466
  dragStepMinutes={dragStepMinutes}
454
467
  onPressEvent={onPressEvent}
455
468
  onPressCell={onPressCell}
package/src/MonthList.tsx CHANGED
@@ -37,6 +37,8 @@ export interface MonthListProps<T = unknown>
37
37
  weekStartsOn?: WeekStartsOn;
38
38
  /** Weekday header label width: `narrow` ("M"), `short` ("Mon", default), or `long` ("Monday"). */
39
39
  weekdayFormat?: WeekdayFormat;
40
+ /** Tint weekend day cells with the theme's weekend background (default true). */
41
+ highlightWeekends?: boolean;
40
42
  /** Events to render as chips in each day cell (calendar layout when provided). */
41
43
  events?: CalendarEvent<T>[];
42
44
  /** Custom chip renderer; falls back to the built-in titled chip. */
@@ -91,6 +93,7 @@ export function MonthList<T = unknown>({
91
93
  pastMonths = 1,
92
94
  futureMonths = 12,
93
95
  weekdayFormat = "short",
96
+ highlightWeekends = true,
94
97
  weekStartsOn = 0,
95
98
  events,
96
99
  renderEvent,
@@ -189,6 +192,7 @@ export function MonthList<T = unknown>({
189
192
  <MonthView<T>
190
193
  date={item}
191
194
  weekStartsOn={weekStartsOn}
195
+ highlightWeekends={highlightWeekends}
192
196
  events={events}
193
197
  eventsByDay={eventsByDay}
194
198
  renderEvent={renderEvent}