@sprucelabs/spruce-calendar-components 38.1.11 → 38.1.13

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.
@@ -5,7 +5,7 @@ export default class VenuesListViewController extends AbstractViewController<Lis
5
5
  protected listVc: ListViewController;
6
6
  private venues;
7
7
  protected onSelectHandler?: (venue: Venue) => void;
8
- private router;
8
+ private router?;
9
9
  private isLoaded;
10
10
  private selectedVenue?;
11
11
  constructor(options: ViewControllerOptions & VenuesListConstructorOptions);
@@ -27,6 +27,6 @@ export interface VenuesListLoadOptions {
27
27
  organizationId: string;
28
28
  }
29
29
  export interface VenuesListConstructorOptions {
30
- router: Router;
30
+ router?: Router;
31
31
  onSelect?: (venue: Venue) => void;
32
32
  }
@@ -20,7 +20,7 @@ class VenuesListViewController extends AbstractViewController {
20
20
  }
21
21
  ListVc() {
22
22
  return this.Controller('list', {
23
- id: 'venues-list',
23
+ id: 'venue-list',
24
24
  columnWidths: ['content', 'fill'],
25
25
  });
26
26
  }
@@ -126,7 +126,8 @@ class VenuesListViewController extends AbstractViewController {
126
126
  }
127
127
  handleOnClickJoinUrl(joinUrl) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
- yield this.router.redirect(joinUrl);
129
+ var _a;
130
+ yield ((_a = this.router) === null || _a === void 0 ? void 0 : _a.redirect(joinUrl));
130
131
  });
131
132
  }
132
133
  handleClickedCheckbox(venue) {
@@ -5,7 +5,7 @@ export default class VenuesListViewController extends AbstractViewController<Lis
5
5
  protected listVc: ListViewController;
6
6
  private venues;
7
7
  protected onSelectHandler?: (venue: Venue) => void;
8
- private router;
8
+ private router?;
9
9
  private isLoaded;
10
10
  private selectedVenue?;
11
11
  constructor(options: ViewControllerOptions & VenuesListConstructorOptions);
@@ -27,6 +27,6 @@ export interface VenuesListLoadOptions {
27
27
  organizationId: string;
28
28
  }
29
29
  export interface VenuesListConstructorOptions {
30
- router: Router;
30
+ router?: Router;
31
31
  onSelect?: (venue: Venue) => void;
32
32
  }
@@ -13,7 +13,7 @@ class VenuesListViewController extends heartwood_view_controllers_1.AbstractView
13
13
  }
14
14
  ListVc() {
15
15
  return this.Controller('list', {
16
- id: 'venues-list',
16
+ id: 'venue-list',
17
17
  columnWidths: ['content', 'fill'],
18
18
  });
19
19
  }
@@ -110,7 +110,7 @@ class VenuesListViewController extends heartwood_view_controllers_1.AbstractView
110
110
  };
111
111
  }
112
112
  async handleOnClickJoinUrl(joinUrl) {
113
- await this.router.redirect(joinUrl);
113
+ await this.router?.redirect(joinUrl);
114
114
  }
115
115
  handleClickedCheckbox(venue) {
116
116
  this.venues.forEach(async (v) => {
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": "38.1.11",
4
+ "version": "38.1.13",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },