@super-calendar/dom 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-calendar/dom",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
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.0"
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,
@@ -450,6 +459,9 @@ export function Calendar<T = unknown>({
450
459
  showNowIndicator={showNowIndicator}
451
460
  showAllDayEventCell={showAllDayEventCell}
452
461
  highlightWeekends={highlightWeekends}
462
+ eventStartEditable={eventStartEditable}
463
+ eventDurationEditable={eventDurationEditable}
464
+ eventOverlap={eventOverlap}
453
465
  dragStepMinutes={dragStepMinutes}
454
466
  onPressEvent={onPressEvent}
455
467
  onPressCell={onPressCell}