classcard-ui 0.2.533 → 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/dist/classcard-ui.common.js +57 -59
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +57 -59
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CCalendar/CCalendar.vue +12 -14
package/package.json
CHANGED
|
@@ -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) }} -
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
{{ event.title }} ({{ event.booked }}/{{ event.seats }})
|
|
148
149
|
</div>
|
|
149
150
|
<div class="-m-0.5 flex flex-wrap items-center">
|
|
150
|
-
<div class="m-0.5 flex items-center space-x-
|
|
151
|
+
<div class="m-0.5 flex items-center space-x-0.5">
|
|
151
152
|
<svg
|
|
152
153
|
xmlns="http://www.w3.org/2000/svg"
|
|
153
154
|
class="h-4 w-4 text-gray-400"
|
|
@@ -162,13 +163,13 @@
|
|
|
162
163
|
d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
163
164
|
/>
|
|
164
165
|
</svg>
|
|
165
|
-
<span class="
|
|
166
|
+
<span class="text-sm text-gray-500"
|
|
166
167
|
>{{ event.duration }} mins</span
|
|
167
168
|
>
|
|
168
169
|
</div>
|
|
169
170
|
<div
|
|
170
171
|
v-if="event.subject && event.subject.length"
|
|
171
|
-
class="m-0.5 flex items-center space-x-
|
|
172
|
+
class="m-0.5 flex items-center space-x-0.5"
|
|
172
173
|
>
|
|
173
174
|
<svg
|
|
174
175
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -184,13 +185,11 @@
|
|
|
184
185
|
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
|
|
185
186
|
/>
|
|
186
187
|
</svg>
|
|
187
|
-
<span class="
|
|
188
|
-
event.subject
|
|
189
|
-
}}</span>
|
|
188
|
+
<span class="text-sm text-gray-500">{{ event.subject }}</span>
|
|
190
189
|
</div>
|
|
191
190
|
<div
|
|
192
191
|
v-if="event.location && event.location.length"
|
|
193
|
-
class="m-0.5 flex items-center space-x-
|
|
192
|
+
class="m-0.5 flex items-center space-x-0.5"
|
|
194
193
|
>
|
|
195
194
|
<svg
|
|
196
195
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -206,13 +205,11 @@
|
|
|
206
205
|
d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"
|
|
207
206
|
/>
|
|
208
207
|
</svg>
|
|
209
|
-
<span class="
|
|
210
|
-
event.location
|
|
211
|
-
}}</span>
|
|
208
|
+
<span class="text-sm text-gray-500">{{ event.location }}</span>
|
|
212
209
|
</div>
|
|
213
210
|
<div
|
|
214
211
|
v-if="event.staff && event.staff.length"
|
|
215
|
-
class="m-0.5 flex items-center space-x-
|
|
212
|
+
class="m-0.5 flex items-center space-x-0.5"
|
|
216
213
|
>
|
|
217
214
|
<svg
|
|
218
215
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -228,9 +225,7 @@
|
|
|
228
225
|
d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
|
|
229
226
|
/>
|
|
230
227
|
</svg>
|
|
231
|
-
<span class="
|
|
232
|
-
event.staff
|
|
233
|
-
}}</span>
|
|
228
|
+
<span class="text-sm text-gray-500">{{ event.staff }}</span>
|
|
234
229
|
</div>
|
|
235
230
|
</div>
|
|
236
231
|
</li>
|
|
@@ -318,6 +313,9 @@ export default {
|
|
|
318
313
|
dayjs(date).isSame(dayjs(event.start), "day")
|
|
319
314
|
);
|
|
320
315
|
},
|
|
316
|
+
handleEventClick(event) {
|
|
317
|
+
this.$emit("event-click", event);
|
|
318
|
+
},
|
|
321
319
|
},
|
|
322
320
|
computed: {
|
|
323
321
|
currentMonthAndYear() {
|