classcard-ui 0.2.535 → 0.2.536

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.535",
3
+ "version": "0.2.536",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -135,6 +135,7 @@
135
135
  class="cursor-pointer rounded border border-gray-100 bg-white py-2 px-4 shadow focus-within:shadow-md hover:shadow-md"
136
136
  v-for="event in getEventsForDate(value)"
137
137
  :key="event.id"
138
+ @click="handleEventClick(event)"
138
139
  >
139
140
  <div class="text-sm text-gray-900">
140
141
  {{ formatTimeFromDate(event.start) }} -
@@ -312,6 +313,9 @@ export default {
312
313
  dayjs(date).isSame(dayjs(event.start), "day")
313
314
  );
314
315
  },
316
+ handleEventClick(event) {
317
+ this.$emit("event-click", event);
318
+ },
315
319
  },
316
320
  computed: {
317
321
  currentMonthAndYear() {