classcard-ui 0.2.594 → 0.2.597

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.594",
3
+ "version": "0.2.597",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -4,7 +4,7 @@
4
4
  <div class="grid grid-cols-1 md:grid-cols-2 md:gap-8">
5
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="md: col-span-1 my-10 mx-4 md:mx-0 md:my-0"
126
+ class="col-span-1 my-10 mx-4 md:mx-0 md:my-0"
127
127
  >
128
- <h2 class="hidden py-4 font-semibold text-gray-900 md:block">
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
@@ -273,6 +276,10 @@ export default {
273
276
  type: String,
274
277
  default: "",
275
278
  },
279
+ showSelectedDate: {
280
+ type: Boolean,
281
+ default: true,
282
+ },
276
283
  },
277
284
  data() {
278
285
  return {
@@ -20,7 +20,7 @@
20
20
  </svg>
21
21
  <svg
22
22
  v-if="name !== 'loader' && type == 'solid'"
23
- :class="(classes ? classes : '') + (cursorType ? cursorType : ' cursor-pointer')"
23
+ :class="(classes ? classes : '') + (cursorType ? cursorType : '')"
24
24
  :viewBox="viewBox"
25
25
  fill="currentColor"
26
26
  fill-rule="evenodd"
@@ -29,12 +29,17 @@
29
29
  </svg>
30
30
  <svg
31
31
  v-if="name !== 'loader' && type == 'outline'"
32
- :class="(classes ? classes : '') + (cursorType ? cursorType : ' cursor-pointer')"
32
+ :class="(classes ? classes : '') + (cursorType ? cursorType : '')"
33
33
  viewBox="0 0 24 24"
34
34
  fill="none"
35
35
  stroke="currentColor"
36
36
  >
37
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="path" />
37
+ <path
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ stroke-width="2"
41
+ :d="path"
42
+ />
38
43
  </svg>
39
44
  </div>
40
45
  </template>
@@ -60,7 +65,7 @@ export default {
60
65
  },
61
66
  cursorType: {
62
67
  type: String,
63
- default: "cursor-pointer",
68
+ default: "cursor-default",
64
69
  },
65
70
  },
66
71
  computed: {
@@ -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 {