@sprucelabs/spruce-calendar-components 25.4.2 → 25.5.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/build/.spruce/schemas/schemas.types.d.ts +580 -580
- package/build/__tests__/support/SpyEventManager.d.ts +1 -0
- package/build/calendar/CalendarEventManager.d.ts +1 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +580 -580
- package/build/esm/__tests__/support/SpyEventManager.d.ts +1 -0
- package/build/esm/calendar/CalendarEventManager.d.ts +1 -0
- package/build/esm/stores/RemoteEventStore.js +5 -4
- package/build/stores/RemoteEventStore.js +5 -4
- package/package.json +1 -1
|
@@ -48,6 +48,7 @@ export default class SpyEventManager extends CalendarEventManager {
|
|
|
48
48
|
meta?: Record<string, any> | null | undefined;
|
|
49
49
|
error?: Error | null | undefined;
|
|
50
50
|
isSelected?: boolean | null | undefined;
|
|
51
|
+
colors?: import("@sprucelabs/spruce-core-schemas").SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CalendarEventColorOverride | null | undefined;
|
|
51
52
|
controller?: import("@sprucelabs/heartwood-view-controllers").CalendarEventViewController | null | undefined;
|
|
52
53
|
}>;
|
|
53
54
|
}
|
|
@@ -81,6 +81,7 @@ export default class CalendarEventManager {
|
|
|
81
81
|
meta?: Record<string, any> | null | undefined;
|
|
82
82
|
error?: Error | null | undefined;
|
|
83
83
|
isSelected?: boolean | null | undefined;
|
|
84
|
+
colors?: import("@sprucelabs/calendar-utils").SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CalendarEventColorOverride | null | undefined;
|
|
84
85
|
controller?: import("@sprucelabs/heartwood-view-controllers").CalendarEventViewController | null | undefined;
|
|
85
86
|
}>;
|
|
86
87
|
private setEventInContext;
|
|
@@ -52,17 +52,18 @@ export default class RemoteEventStoreImpl {
|
|
|
52
52
|
this.pendingEvents[event.id] = event;
|
|
53
53
|
return event;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
const id = this.getId(event.id);
|
|
56
|
+
if (!this.queueByEventId[id]) {
|
|
57
|
+
this.queueByEventId[id] = [];
|
|
57
58
|
}
|
|
58
59
|
const promise = new Promise((resolve, reject) => {
|
|
59
|
-
this.queueByEventId[
|
|
60
|
+
this.queueByEventId[id].push({
|
|
60
61
|
event,
|
|
61
62
|
resolve,
|
|
62
63
|
reject,
|
|
63
64
|
promiseIdx: this.promises.length,
|
|
64
65
|
});
|
|
65
|
-
void this.startQueueForEvent(
|
|
66
|
+
void this.startQueueForEvent(id);
|
|
66
67
|
});
|
|
67
68
|
this.promises.push(promise);
|
|
68
69
|
return promise;
|
|
@@ -45,17 +45,18 @@ class RemoteEventStoreImpl {
|
|
|
45
45
|
this.pendingEvents[event.id] = event;
|
|
46
46
|
return event;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
const id = this.getId(event.id);
|
|
49
|
+
if (!this.queueByEventId[id]) {
|
|
50
|
+
this.queueByEventId[id] = [];
|
|
50
51
|
}
|
|
51
52
|
const promise = new Promise((resolve, reject) => {
|
|
52
|
-
this.queueByEventId[
|
|
53
|
+
this.queueByEventId[id].push({
|
|
53
54
|
event,
|
|
54
55
|
resolve,
|
|
55
56
|
reject,
|
|
56
57
|
promiseIdx: this.promises.length,
|
|
57
58
|
});
|
|
58
|
-
void this.startQueueForEvent(
|
|
59
|
+
void this.startQueueForEvent(id);
|
|
59
60
|
});
|
|
60
61
|
this.promises.push(promise);
|
|
61
62
|
return promise;
|