classcard-ui 0.2.591 → 0.2.594
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 +85 -83
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +85 -83
- 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 +5 -5
- package/src/components/CCalendar/CCalendar.vue +8 -3
- package/src/components/CStackedList/CStackedList.vue +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "classcard-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.594",
|
|
4
4
|
"main": "dist/classcard-ui.umd.min.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.15.5",
|
|
42
|
-
"@storybook/addon-actions": "^6.5.
|
|
43
|
-
"@storybook/addon-essentials": "^6.5.
|
|
44
|
-
"@storybook/addon-links": "^6.5.
|
|
45
|
-
"@storybook/vue": "^6.5.
|
|
42
|
+
"@storybook/addon-actions": "^6.5.9",
|
|
43
|
+
"@storybook/addon-essentials": "^6.5.9",
|
|
44
|
+
"@storybook/addon-links": "^6.5.9",
|
|
45
|
+
"@storybook/vue": "^6.5.9",
|
|
46
46
|
"@tailwindcss/postcss7-compat": "^2.2.14",
|
|
47
47
|
"@types/lodash-es": "^4.17.5",
|
|
48
48
|
"@vue/cli-plugin-babel": "^4.5.13",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!-- This example requires Tailwind CSS v2.0+ -->
|
|
3
3
|
<div>
|
|
4
4
|
<div class="grid grid-cols-1 md:grid-cols-2 md:gap-8">
|
|
5
|
-
<div>
|
|
5
|
+
<div :class="`sticky top-0 md:block ${calendarClasses}`">
|
|
6
6
|
<div
|
|
7
7
|
class="relative z-20 flex items-center justify-between border-b border-gray-200 py-4"
|
|
8
8
|
>
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
</div>
|
|
124
124
|
<section
|
|
125
125
|
v-if="eventsData && validSelectedDate"
|
|
126
|
-
class="col-span-1
|
|
126
|
+
class="md: col-span-1 my-10 mx-4 md:mx-0 md:my-0"
|
|
127
127
|
>
|
|
128
|
-
<h2 class="py-4 font-semibold text-gray-900">
|
|
128
|
+
<h2 class="hidden py-4 font-semibold text-gray-900 md:block">
|
|
129
129
|
Schedule for
|
|
130
130
|
<time :datetime="selectedDateForDateTime">{{
|
|
131
131
|
formattedSelectedDate
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
Sorry, no events found for this date.
|
|
139
139
|
</p>
|
|
140
140
|
<ol
|
|
141
|
+
v-if="getEventsForDate(value).length !== 0"
|
|
141
142
|
class="mt-3 divide-y divide-gray-100 overflow-hidden rounded-lg bg-white text-sm shadow ring-1 ring-indigo-700 ring-opacity-5"
|
|
142
143
|
>
|
|
143
144
|
<li
|
|
@@ -268,6 +269,10 @@ export default {
|
|
|
268
269
|
type: Array,
|
|
269
270
|
default: () => null,
|
|
270
271
|
},
|
|
272
|
+
calendarClasses: {
|
|
273
|
+
type: String,
|
|
274
|
+
default: "",
|
|
275
|
+
},
|
|
271
276
|
},
|
|
272
277
|
data() {
|
|
273
278
|
return {
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
<button
|
|
71
71
|
v-if="items.listIcon"
|
|
72
72
|
type="button"
|
|
73
|
+
:id="listId ? listId : ''"
|
|
73
74
|
class="flex h-8 w-8 items-center justify-center rounded-full text-gray-500 hover:bg-red-100 hover:text-red-800 focus:outline-none focus:ring-2 focus:ring-red-500"
|
|
74
75
|
@click="deleteItem"
|
|
75
76
|
>
|
|
@@ -103,6 +104,9 @@ export default {
|
|
|
103
104
|
type: Boolean,
|
|
104
105
|
default: false,
|
|
105
106
|
},
|
|
107
|
+
listId: {
|
|
108
|
+
type: String,
|
|
109
|
+
},
|
|
106
110
|
icon: {
|
|
107
111
|
type: Object,
|
|
108
112
|
},
|
|
@@ -117,8 +121,12 @@ export default {
|
|
|
117
121
|
this.showSection = !this.showSection;
|
|
118
122
|
},
|
|
119
123
|
deleteItem(item) {
|
|
120
|
-
console.log(
|
|
121
|
-
this
|
|
124
|
+
console.log(this.listId);
|
|
125
|
+
if (this.listId) {
|
|
126
|
+
this.$emit("delete-item", this.listId, item);
|
|
127
|
+
} else {
|
|
128
|
+
this.$emit("delete-item", item);
|
|
129
|
+
}
|
|
122
130
|
},
|
|
123
131
|
},
|
|
124
132
|
};
|