@sprucelabs/spruce-calendar-components 20.1.3 → 20.3.1

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.
@@ -177,7 +177,7 @@ export default class CalendarViewController extends CoreCalendarViewController {
177
177
  const _super = Object.create(null, {
178
178
  updateEvent: { get: () => super.updateEvent }
179
179
  });
180
- var _a, _b;
180
+ var _a, _b, _c;
181
181
  return __awaiter(this, void 0, void 0, function* () {
182
182
  const id = event.id;
183
183
  const isBusy = (options === null || options === void 0 ? void 0 : options.isBusy) === true;
@@ -188,12 +188,13 @@ export default class CalendarViewController extends CoreCalendarViewController {
188
188
  }
189
189
  if (id !== saved.id) {
190
190
  if (this.lastSwappedId === id) {
191
- this.updateEvent(saved.id, saved);
191
+ _super.updateEvent.call(this, saved.id, saved);
192
+ yield ((_b = this.eventSwappedHandler) === null || _b === void 0 ? void 0 : _b.call(this, saved));
192
193
  }
193
194
  else {
194
195
  this.lastSwappedId = id;
195
196
  yield this.swapEvent(event, saved);
196
- yield ((_b = this.eventSwappedHandler) === null || _b === void 0 ? void 0 : _b.call(this, saved));
197
+ yield ((_c = this.eventSwappedHandler) === null || _c === void 0 ? void 0 : _c.call(this, saved));
197
198
  }
198
199
  }
199
200
  else {
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -155,7 +155,7 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
155
155
  return updated;
156
156
  }
157
157
  async persist(event, options) {
158
- var _a, _b;
158
+ var _a, _b, _c;
159
159
  const id = event.id;
160
160
  const isBusy = (options === null || options === void 0 ? void 0 : options.isBusy) === true;
161
161
  try {
@@ -165,12 +165,13 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
165
165
  }
166
166
  if (id !== saved.id) {
167
167
  if (this.lastSwappedId === id) {
168
- this.updateEvent(saved.id, saved);
168
+ super.updateEvent(saved.id, saved);
169
+ await ((_b = this.eventSwappedHandler) === null || _b === void 0 ? void 0 : _b.call(this, saved));
169
170
  }
170
171
  else {
171
172
  this.lastSwappedId = id;
172
173
  await this.swapEvent(event, saved);
173
- await ((_b = this.eventSwappedHandler) === null || _b === void 0 ? void 0 : _b.call(this, saved));
174
+ await ((_c = this.eventSwappedHandler) === null || _c === void 0 ? void 0 : _c.call(this, saved));
174
175
  }
175
176
  }
176
177
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-calendar-components",
3
3
  "description": "Calendar components for working with calendars and Sprucebot.",
4
- "version": "20.1.3",
4
+ "version": "20.3.1",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },