classcard-ui 0.2.593 → 0.2.596

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.593",
3
+ "version": "0.2.596",
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.8",
43
- "@storybook/addon-essentials": "^6.5.8",
44
- "@storybook/addon-links": "^6.5.8",
45
- "@storybook/vue": "^6.5.8",
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,9 +2,9 @@
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
- class="relative z-20 flex items-center justify-between border-b border-gray-200 py-4"
7
+ class="relative z-20 flex items-center justify-between border-b border-gray-200 py-4 px-4 sm:px-0"
8
8
  >
9
9
  <h2 class="flex-auto font-semibold text-gray-900">
10
10
  {{ currentMonthAndYear }}
@@ -123,9 +123,12 @@
123
123
  </div>
124
124
  <section
125
125
  v-if="eventsData && validSelectedDate"
126
- class="col-span-1 mt-4 md:mt-0"
126
+ class="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
129
+ v-if="showSelectedDate"
130
+ class="hidden py-4 font-semibold text-gray-900 md:block"
131
+ >
129
132
  Schedule for
130
133
  <time :datetime="selectedDateForDateTime">{{
131
134
  formattedSelectedDate
@@ -138,6 +141,7 @@
138
141
  Sorry, no events found for this date.
139
142
  </p>
140
143
  <ol
144
+ v-if="getEventsForDate(value).length !== 0"
141
145
  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
146
  >
143
147
  <li
@@ -268,6 +272,14 @@ export default {
268
272
  type: Array,
269
273
  default: () => null,
270
274
  },
275
+ calendarClasses: {
276
+ type: String,
277
+ default: "",
278
+ },
279
+ showSelectedDate: {
280
+ type: Boolean,
281
+ default: true,
282
+ },
271
283
  },
272
284
  data() {
273
285
  return {
@@ -14,6 +14,7 @@
14
14
  </div>
15
15
  <div class="relative mt-1 rounded-md">
16
16
  <input
17
+ :readonly="readonly"
17
18
  :type="type"
18
19
  :value="inputValue"
19
20
  @input="$emit('input', $event.target.value)"
@@ -54,6 +55,10 @@ export default {
54
55
  label: {
55
56
  type: String,
56
57
  },
58
+ // Read only of input field
59
+ readonly: {
60
+ type: Boolean,
61
+ },
57
62
  // placeholder of input
58
63
  placeholder: {
59
64
  type: String,
@@ -121,7 +121,6 @@ export default {
121
121
  this.showSection = !this.showSection;
122
122
  },
123
123
  deleteItem(item) {
124
- console.log(this.listId);
125
124
  if (this.listId) {
126
125
  this.$emit("delete-item", this.listId, item);
127
126
  } else {