@sprucelabs/spruce-calendar-components 24.2.17 → 24.2.19
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 +354 -354
- package/build/calendar/Calendar.vc.js +2 -2
- package/build/calendar/StubPeopleSorter.d.ts +4 -0
- package/build/calendar/StubPeopleSorter.js +9 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +354 -354
- package/build/esm/calendar/Calendar.vc.js +2 -2
- package/build/esm/calendar/StubPeopleSorter.d.ts +4 -0
- package/build/esm/calendar/StubPeopleSorter.js +6 -0
- package/package.json +5 -1
|
@@ -14,10 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
const calendar_utils_1 = require("@sprucelabs/calendar-utils");
|
|
18
17
|
const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-controllers");
|
|
19
18
|
const schema_1 = require("@sprucelabs/schema");
|
|
20
19
|
const draftGenerator_1 = __importDefault(require("../utilities/draftGenerator"));
|
|
20
|
+
const StubPeopleSorter_1 = __importDefault(require("./StubPeopleSorter"));
|
|
21
21
|
class CalendarViewController extends heartwood_view_controllers_1.CalendarViewController {
|
|
22
22
|
constructor(options) {
|
|
23
23
|
const { remoteEventStore, onDropEvent } = options, rest = __rest(options, ["remoteEventStore", "onDropEvent"]);
|
|
@@ -31,7 +31,7 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
|
|
|
31
31
|
this.activelyPersisting = {};
|
|
32
32
|
this.isSwapping = false;
|
|
33
33
|
const { onAddDraftEvent, onRemoveDraftEvent, onEventSwapped } = (0, schema_1.assertOptions)(options, ['onAddDraftEvent']);
|
|
34
|
-
this.sorter = new
|
|
34
|
+
this.sorter = new StubPeopleSorter_1.default();
|
|
35
35
|
this.draftAddedHandler = onAddDraftEvent;
|
|
36
36
|
this.draftRemovedHandler = onRemoveDraftEvent;
|
|
37
37
|
this.eventSwappedHandler = onEventSwapped;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const calendar_utils_1 = require("@sprucelabs/calendar-utils");
|
|
4
|
+
class StubPeopleSorter extends calendar_utils_1.PeopleSorter {
|
|
5
|
+
sort() {
|
|
6
|
+
return this.getPeople();
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = StubPeopleSorter;
|