@sprucelabs/spruce-calendar-components 22.0.0 → 22.1.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.
|
@@ -59,6 +59,7 @@ export declare class CalendarEventManager {
|
|
|
59
59
|
private handleDidUpdateContext;
|
|
60
60
|
private saveEvent;
|
|
61
61
|
getIsLoaded(): boolean;
|
|
62
|
+
hasEvent(id: string): boolean;
|
|
62
63
|
optionallyAskForUpdateRepeatingStrategy(event: UpdateEvent): Promise<boolean>;
|
|
63
64
|
}
|
|
64
65
|
export declare type EventManagerCalendarVc = Pick<CalendarViewController, 'replaceEventsInRange' | 'mixinEvents' | 'removeEvent' | 'addEvent' | 'hasEvent' | 'updateEvent' | 'setShifts' | 'getShifts' | 'getEvent' | 'getPeople' | 'setControllerForEventType' | 'setRemoteStore' | 'getSelectedEvent' | 'selectEvent'>;
|
|
@@ -308,6 +308,9 @@ export class CalendarEventManager {
|
|
|
308
308
|
getIsLoaded() {
|
|
309
309
|
return this.isLoaded;
|
|
310
310
|
}
|
|
311
|
+
hasEvent(id) {
|
|
312
|
+
return !!this.allEvents.find((e) => e.id === id);
|
|
313
|
+
}
|
|
311
314
|
optionallyAskForUpdateRepeatingStrategy(event) {
|
|
312
315
|
var _a;
|
|
313
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -59,6 +59,7 @@ export declare class CalendarEventManager {
|
|
|
59
59
|
private handleDidUpdateContext;
|
|
60
60
|
private saveEvent;
|
|
61
61
|
getIsLoaded(): boolean;
|
|
62
|
+
hasEvent(id: string): boolean;
|
|
62
63
|
optionallyAskForUpdateRepeatingStrategy(event: UpdateEvent): Promise<boolean>;
|
|
63
64
|
}
|
|
64
65
|
export declare type EventManagerCalendarVc = Pick<CalendarViewController, 'replaceEventsInRange' | 'mixinEvents' | 'removeEvent' | 'addEvent' | 'hasEvent' | 'updateEvent' | 'setShifts' | 'getShifts' | 'getEvent' | 'getPeople' | 'setControllerForEventType' | 'setRemoteStore' | 'getSelectedEvent' | 'selectEvent'>;
|
|
@@ -267,6 +267,9 @@ class CalendarEventManager {
|
|
|
267
267
|
getIsLoaded() {
|
|
268
268
|
return this.isLoaded;
|
|
269
269
|
}
|
|
270
|
+
hasEvent(id) {
|
|
271
|
+
return !!this.allEvents.find((e) => e.id === id);
|
|
272
|
+
}
|
|
270
273
|
async optionallyAskForUpdateRepeatingStrategy(event) {
|
|
271
274
|
var _a;
|
|
272
275
|
const cleaned = (0, schema_1.normalizeSchemaValues)(heartwood_view_controllers_1.calendarEventSchema, event, {});
|