Skip to content

Commit

Permalink
fix: remove agenda from mode-types
Browse files Browse the repository at this point in the history
  • Loading branch information
tomosterlund committed Dec 11, 2023
1 parent 52d8074 commit 98ac613
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/typings/interfaces/event.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { modeType } from '../types';
import type {extendedModeType, modeType} from '../types';

export type eventId = string | number;

Expand All @@ -25,7 +25,7 @@ export interface eventInterface {
isEditable?: boolean; // If true, the event has delete- and edit icons in Event-Flyout. Can also be dragged and dropped.
disableDnD?: modeType[]; // Disable Drag and Drop for this event, in the modes specified
disableResize?: modeType[]; // Disable Resize for this event, in the modes specified
isCustom?: boolean | modeType[]; // If true, the event expects to be displayed using the event slot. It can also be specified as an array, of all modes, where the event should be displayed using the event slot.
isCustom?: boolean | extendedModeType[]; // If true, the event expects to be displayed using the event slot. It can also be specified as an array, of all modes, where the event should be displayed using the event slot.

// These are properties that should never be fed into the Calendar
// Instead, they are assigned to events, in order to for example position/style them correctly
Expand Down
5 changes: 4 additions & 1 deletion src/typings/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export interface DOMRect {
y: number;
}

export type modeType = "day" | "week" | "month" | "agenda";
export type modeType = "day" | "week" | "month";

// Includes the pseudo-mode "agenda", which is the alternative to the month mode on small screens
export type extendedModeType = modeType | "agenda";

export enum DRAG_N_RESIZE_DIRECTION {
BACKWARDS = "backwards",
Expand Down

0 comments on commit 98ac613

Please sign in to comment.