@sprucelabs/spruce-calendar-components 22.6.21 → 22.6.22
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/build/.spruce/schemas/schemas.types.d.ts +362 -362
- package/build/__tests__/support/SpyEventManager.d.ts +1 -1
- package/build/esm/.spruce/schemas/schemas.types.d.ts +362 -362
- package/build/utilities/CalendarEventManager.d.ts +1 -1
- package/build/viewControllers/Calendar.vc.d.ts +8 -8
- package/build/viewControllers/EventRepeatingTool.vc.d.ts +3 -3
- package/build/viewControllers/RepeatingControlsList.vc.d.ts +3 -3
- package/package.json +1 -1
|
@@ -67,7 +67,7 @@ export default class CalendarEventManager {
|
|
|
67
67
|
eventTypeSlug?: string | null | undefined;
|
|
68
68
|
startDateTimeMs: number;
|
|
69
69
|
isResizeable?: boolean | null | undefined;
|
|
70
|
-
style?: "
|
|
70
|
+
style?: "draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical" | null | undefined;
|
|
71
71
|
groupId?: string | null | undefined;
|
|
72
72
|
timeBlocks: import("@sprucelabs/calendar-utils").SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[];
|
|
73
73
|
repeats?: "weekly" | "monthly" | "daily" | null | undefined;
|
|
@@ -43,29 +43,29 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
43
43
|
private addDraftEventFromClick;
|
|
44
44
|
addDraftEvent(e: Omit<Event, 'id'>): Promise<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent | {
|
|
45
45
|
id: string;
|
|
46
|
-
|
|
47
|
-
error?: Error | null | undefined;
|
|
48
|
-
style?: "active" | "blocked" | "draft" | "tentative" | "upcoming" | "unavailable" | "past" | "warn" | "critical" | null | undefined;
|
|
49
|
-
target: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget;
|
|
46
|
+
isSelected?: boolean | null | undefined;
|
|
50
47
|
isBusy?: boolean | null | undefined;
|
|
48
|
+
controller?: import("@sprucelabs/heartwood-view-controllers").CalendarEventViewController | null | undefined;
|
|
49
|
+
daysOfWeek?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | null | undefined;
|
|
50
|
+
target: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget;
|
|
51
51
|
calendarId: string;
|
|
52
52
|
eventTypeSlug?: string | null | undefined;
|
|
53
53
|
startDateTimeMs: number;
|
|
54
54
|
isResizeable?: boolean | null | undefined;
|
|
55
|
+
style?: "draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical" | null | undefined;
|
|
55
56
|
groupId?: string | null | undefined;
|
|
56
57
|
timeBlocks: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[];
|
|
57
58
|
repeats?: "weekly" | "monthly" | "daily" | null | undefined;
|
|
58
|
-
daysOfWeek?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | null | undefined;
|
|
59
59
|
daysOfMonth?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | null | undefined;
|
|
60
60
|
repeatsUntil?: number | null | undefined;
|
|
61
61
|
occurrences?: number | null | undefined;
|
|
62
|
+
interval?: number | null | undefined;
|
|
62
63
|
nthOccurrences?: number[] | null | undefined;
|
|
63
64
|
activeUntilDate?: number | null | undefined;
|
|
64
65
|
exclusionDates?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | null | undefined;
|
|
65
66
|
nthInRepeating?: number | null | undefined;
|
|
66
67
|
totalInRepeating?: number | null | undefined;
|
|
67
|
-
|
|
68
|
-
isSelected?: boolean | null | undefined;
|
|
68
|
+
error?: Error | null | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
getIsSwappingEvent(): boolean;
|
|
71
71
|
private swapEvent;
|
|
@@ -87,7 +87,7 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
87
87
|
selectedDates?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CalendarSelectedDate[] | null | undefined;
|
|
88
88
|
timezoneOffsetMs?: number | null | undefined;
|
|
89
89
|
shouldEnableAnimations?: boolean | null | undefined;
|
|
90
|
-
view?: "
|
|
90
|
+
view?: "month" | "day" | null | undefined;
|
|
91
91
|
shouldRenderHeader?: boolean | null | undefined;
|
|
92
92
|
onChangeStartDate?: ((date: number) => void | Promise<void>) | null | undefined;
|
|
93
93
|
onClick?: ((options: ClickCalendarViewOptions) => void | Promise<void>) | null | undefined;
|
|
@@ -41,13 +41,13 @@ export default class EventRepeatingToolViewController extends AbstractViewContro
|
|
|
41
41
|
getFormVc(): FormVc;
|
|
42
42
|
getValues(): {
|
|
43
43
|
repeatsUntil: number | undefined;
|
|
44
|
-
|
|
44
|
+
daysOfWeek?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | null | undefined;
|
|
45
45
|
startDateTimeMs?: number | undefined;
|
|
46
46
|
repeats?: "weekly" | "monthly" | "daily" | null | undefined;
|
|
47
|
-
daysOfWeek?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | null | undefined;
|
|
48
47
|
daysOfMonth?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | null | undefined;
|
|
49
48
|
occurrences?: number | null | undefined;
|
|
50
|
-
|
|
49
|
+
interval?: number | null | undefined;
|
|
50
|
+
repeatAmount?: "forever" | "until" | "after" | undefined;
|
|
51
51
|
};
|
|
52
52
|
setValues(repeating: RepeatingOptions): void;
|
|
53
53
|
getCalendarVc(): import("@sprucelabs/heartwood-view-controllers").CalendarViewController | undefined;
|
|
@@ -33,13 +33,13 @@ export default class RepeatingControlsListViewController extends AbstractViewCon
|
|
|
33
33
|
getListVc(): ListViewController;
|
|
34
34
|
getRepeating(): {
|
|
35
35
|
repeatsUntil: number | undefined;
|
|
36
|
-
|
|
36
|
+
daysOfWeek?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | null | undefined;
|
|
37
37
|
startDateTimeMs?: number | undefined;
|
|
38
38
|
repeats?: "weekly" | "monthly" | "daily" | null | undefined;
|
|
39
|
-
daysOfWeek?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | null | undefined;
|
|
40
39
|
daysOfMonth?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | null | undefined;
|
|
41
40
|
occurrences?: number | null | undefined;
|
|
42
|
-
|
|
41
|
+
interval?: number | null | undefined;
|
|
42
|
+
repeatAmount?: "forever" | "until" | "after" | undefined;
|
|
43
43
|
};
|
|
44
44
|
updateRepeating(repeating: RepeatingOptions): void;
|
|
45
45
|
private setCalendarSelectedDatesFromDate;
|