classcard-ui 0.2.524 → 0.2.527
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 +59 -55
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +59 -55
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +8 -8
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CCalendar/CCalendar.vue +4 -2
- package/src/icons.js +4 -0
package/package.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
>{{ getEventsCountForDate(date) }} events</span
|
|
95
95
|
>
|
|
96
96
|
<span
|
|
97
|
-
v-if="eventsCount"
|
|
97
|
+
v-if="eventsCount && getEventsCountForDate(date) > 0"
|
|
98
98
|
class="-mx-0.5 mt-auto flex flex-wrap-reverse"
|
|
99
99
|
>
|
|
100
100
|
<span
|
|
@@ -232,9 +232,11 @@ export default {
|
|
|
232
232
|
methods: {
|
|
233
233
|
handlePreviousMonthClick() {
|
|
234
234
|
this.activeDate = this.activeDate.subtract(1, "month");
|
|
235
|
+
this.$emit("prev-month", this.getActiveStartAndEndDates());
|
|
235
236
|
},
|
|
236
237
|
handleNextMonthClick() {
|
|
237
238
|
this.activeDate = this.activeDate.add(1, "month");
|
|
239
|
+
this.$emit("next-month", this.getActiveStartAndEndDates());
|
|
238
240
|
},
|
|
239
241
|
getDayFromDate(date) {
|
|
240
242
|
return dayjs(date).format("D");
|
|
@@ -256,7 +258,7 @@ export default {
|
|
|
256
258
|
},
|
|
257
259
|
getEventsCountForDate(date) {
|
|
258
260
|
let eventsCountObj = this.eventsCount.find((event) =>
|
|
259
|
-
dayjs(date).isSame(dayjs(event.date))
|
|
261
|
+
dayjs(date).isSame(dayjs(event.date), "day")
|
|
260
262
|
);
|
|
261
263
|
if (eventsCountObj) {
|
|
262
264
|
return eventsCountObj.eventsCount;
|
package/src/icons.js
CHANGED
|
@@ -3,6 +3,10 @@ export default {
|
|
|
3
3
|
bell: "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",
|
|
4
4
|
"chevron-down":
|
|
5
5
|
"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
6
|
+
"office-building-outline":
|
|
7
|
+
"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4",
|
|
8
|
+
"office-building":
|
|
9
|
+
"M4 4a2 2 0 012-2h8a2 2 0 012 2v12a1 1 0 110 2h-3a1 1 0 01-1-1v-2a1 1 0 00-1-1H9a1 1 0 00-1 1v2a1 1 0 01-1 1H4a1 1 0 110-2V4zm3 1h2v2H7V5zm2 4H7v2h2V9zm2-4h2v2h-2V5zm2 4h-2v2h2V9z",
|
|
6
10
|
check:
|
|
7
11
|
"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
8
12
|
"exclamation-circle":
|