@sprucelabs/spruce-calendar-components 39.0.6 → 39.0.7

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.
@@ -20,7 +20,7 @@ export default class VenueListViewController extends AbstractViewController<List
20
20
  private isSelected;
21
21
  private renderCheckboxCell;
22
22
  private handleOnClickJoinUrl;
23
- private handleClickedCheckbox;
23
+ private handleClickVenue;
24
24
  render(): List;
25
25
  }
26
26
  export interface VenueListLoadOptions {
@@ -84,7 +84,7 @@ class VenueListViewController extends AbstractViewController {
84
84
  this.optionallyRenderJoinUrlCell(venue),
85
85
  ].filter(Boolean),
86
86
  onClick: () => __awaiter(this, void 0, void 0, function* () {
87
- yield this.selectVenue(venue);
87
+ yield this.handleClickVenue(venue);
88
88
  }),
89
89
  };
90
90
  }
@@ -121,7 +121,7 @@ class VenueListViewController extends AbstractViewController {
121
121
  value: this.isSelected(venue),
122
122
  onChange: (value) => __awaiter(this, void 0, void 0, function* () {
123
123
  if (value) {
124
- yield this.handleClickedCheckbox(venue);
124
+ yield this.handleClickVenue(venue);
125
125
  }
126
126
  }),
127
127
  },
@@ -133,15 +133,10 @@ class VenueListViewController extends AbstractViewController {
133
133
  yield ((_a = this.router) === null || _a === void 0 ? void 0 : _a.redirect(joinUrl));
134
134
  });
135
135
  }
136
- handleClickedCheckbox(venue) {
136
+ handleClickVenue(venue) {
137
137
  return __awaiter(this, void 0, void 0, function* () {
138
138
  var _a;
139
- this.venues.forEach((v) => __awaiter(this, void 0, void 0, function* () {
140
- if (v.provider === venue.provider) {
141
- return;
142
- }
143
- yield this.venueListVc.setValue(v.provider, 'isSelected', false);
144
- }));
139
+ yield this.selectVenue(venue);
145
140
  yield ((_a = this.onSelectHandler) === null || _a === void 0 ? void 0 : _a.call(this, venue));
146
141
  });
147
142
  }
@@ -20,7 +20,7 @@ export default class VenueListViewController extends AbstractViewController<List
20
20
  private isSelected;
21
21
  private renderCheckboxCell;
22
22
  private handleOnClickJoinUrl;
23
- private handleClickedCheckbox;
23
+ private handleClickVenue;
24
24
  render(): List;
25
25
  }
26
26
  export interface VenueListLoadOptions {
@@ -73,7 +73,7 @@ class VenueListViewController extends heartwood_view_controllers_1.AbstractViewC
73
73
  this.optionallyRenderJoinUrlCell(venue),
74
74
  ].filter(Boolean),
75
75
  onClick: async () => {
76
- await this.selectVenue(venue);
76
+ await this.handleClickVenue(venue);
77
77
  },
78
78
  };
79
79
  }
@@ -106,7 +106,7 @@ class VenueListViewController extends heartwood_view_controllers_1.AbstractViewC
106
106
  value: this.isSelected(venue),
107
107
  onChange: async (value) => {
108
108
  if (value) {
109
- await this.handleClickedCheckbox(venue);
109
+ await this.handleClickVenue(venue);
110
110
  }
111
111
  },
112
112
  },
@@ -115,13 +115,8 @@ class VenueListViewController extends heartwood_view_controllers_1.AbstractViewC
115
115
  async handleOnClickJoinUrl(joinUrl) {
116
116
  await this.router?.redirect(joinUrl);
117
117
  }
118
- async handleClickedCheckbox(venue) {
119
- this.venues.forEach(async (v) => {
120
- if (v.provider === venue.provider) {
121
- return;
122
- }
123
- await this.venueListVc.setValue(v.provider, 'isSelected', false);
124
- });
118
+ async handleClickVenue(venue) {
119
+ await this.selectVenue(venue);
125
120
  await this.onSelectHandler?.(venue);
126
121
  }
127
122
  render() {
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.6",
4
+ "version": "39.0.7",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },