@sprucelabs/spruce-calendar-components 39.0.7 → 39.0.8

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.
@@ -18,6 +18,7 @@ export default class VenueListViewController extends AbstractViewController<List
18
18
  selectVenue(venue: Venue): Promise<void>;
19
19
  private optionallyRenderJoinUrlCell;
20
20
  private isSelected;
21
+ hasVenues(): boolean;
21
22
  private renderCheckboxCell;
22
23
  private handleOnClickJoinUrl;
23
24
  private handleClickVenue;
@@ -34,4 +35,5 @@ export interface VenueListConstructorOptions {
34
35
  export interface VenueList extends ViewController<List> {
35
36
  load(options: VenueListLoadOptions): Promise<void>;
36
37
  selectVenue(venue: Venue): Promise<void>;
38
+ hasVenues(): boolean;
37
39
  }
@@ -114,6 +114,9 @@ class VenueListViewController extends AbstractViewController {
114
114
  var _a;
115
115
  return ((_a = this.selectedVenue) === null || _a === void 0 ? void 0 : _a.provider) === venue.provider;
116
116
  }
117
+ hasVenues() {
118
+ return this.venues.length > 0;
119
+ }
117
120
  renderCheckboxCell(venue) {
118
121
  return {
119
122
  checkboxInput: {
@@ -18,6 +18,7 @@ export default class VenueListViewController extends AbstractViewController<List
18
18
  selectVenue(venue: Venue): Promise<void>;
19
19
  private optionallyRenderJoinUrlCell;
20
20
  private isSelected;
21
+ hasVenues(): boolean;
21
22
  private renderCheckboxCell;
22
23
  private handleOnClickJoinUrl;
23
24
  private handleClickVenue;
@@ -34,4 +35,5 @@ export interface VenueListConstructorOptions {
34
35
  export interface VenueList extends ViewController<List> {
35
36
  load(options: VenueListLoadOptions): Promise<void>;
36
37
  selectVenue(venue: Venue): Promise<void>;
38
+ hasVenues(): boolean;
37
39
  }
@@ -99,6 +99,9 @@ class VenueListViewController extends heartwood_view_controllers_1.AbstractViewC
99
99
  isSelected(venue) {
100
100
  return this.selectedVenue?.provider === venue.provider;
101
101
  }
102
+ hasVenues() {
103
+ return this.venues.length > 0;
104
+ }
102
105
  renderCheckboxCell(venue) {
103
106
  return {
104
107
  checkboxInput: {
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": "39.0.7",
4
+ "version": "39.0.8",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },