classcard-ui 0.2.735 → 0.2.737

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.735",
3
+ "version": "0.2.737",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -155,7 +155,7 @@
155
155
  {{ formatTimeFromDate(event.end) }}
156
156
  </div>
157
157
  <div
158
- class="mt-1 text-sm font-semibold"
158
+ class="mt-1 text-sm font-semibold flex"
159
159
  :style="{ color: event.color }"
160
160
  :class="event.status === 7 ? 'line-through' : ''"
161
161
  >
@@ -163,7 +163,7 @@
163
163
  v-if="event.attendance"
164
164
  name="check"
165
165
  type="solid"
166
- class="h-4 w-4 shrink-0"
166
+ class="mt-0.5 h-4 w-4 shrink-0"
167
167
  :style="`color:${event.color}`"
168
168
  ></c-icon>
169
169
  {{ event.title }} ({{ event.booked }}/{{ event.seats }})
@@ -3,7 +3,9 @@
3
3
  <div class="flex w-full items-center justify-between" v-if="label">
4
4
  <div class="flex items-center">
5
5
  <!-- label of multiselect field -->
6
- <label v-if="label" class="text-sm font-medium text-gray-900">{{ label }}</label>
6
+ <label v-if="label" class="text-sm font-medium text-gray-900">{{
7
+ label
8
+ }}</label>
7
9
  <!-- asterisk sign to render if field is required -->
8
10
  <p v-if="isRequired" class="ml-1 text-red-600">*</p>
9
11
  </div>
@@ -20,7 +22,6 @@
20
22
  :options="options"
21
23
  @input="setSelectedOptions"
22
24
  @search="fetchOptions"
23
- @search:focus="$emit('search:focus')"
24
25
  :label="optionLabel"
25
26
  :clearable="clearable"
26
27
  :loading="loading"
@@ -46,7 +47,9 @@
46
47
  </template>
47
48
  <!-- eslint-disable-next-line vue/no-unused-vars -->
48
49
  <template #no-options="{ search, searching, loading }">
49
- <span v-if="search.length < 1">Start typing to search for options...</span>
50
+ <span v-if="search.length < 1"
51
+ >Start typing to search for options...</span
52
+ >
50
53
  <span v-else>No options found, try searching something else.</span>
51
54
  </template>
52
55
  <template #spinner="{ loading }">
@@ -76,7 +79,11 @@
76
79
  <slot name="custom-option" v-bind:option="option"></slot>
77
80
  </template>
78
81
  <template v-if="showOptionImage" v-slot:option="option">
79
- <div :class="`flex w-full ${option.description ? 'items-start' : 'items-center'}`">
82
+ <div
83
+ :class="`flex w-full ${
84
+ option.description ? 'items-start' : 'items-center'
85
+ }`"
86
+ >
80
87
  <c-avatar
81
88
  v-if="option.image"
82
89
  size="extraextrasmall"
@@ -102,7 +109,9 @@
102
109
  </div>
103
110
  </template>
104
111
  <template #list-footer>
105
- <li ref="load" class="loader" v-show="hasNextPage">Loading more options...</li>
112
+ <li ref="load" class="loader" v-show="hasNextPage">
113
+ Loading more options...
114
+ </li>
106
115
  <li
107
116
  v-if="showFooterButton"
108
117
  class="group sticky bottom-0 mt-1 cursor-pointer select-none bg-gray-50 py-2 pl-3 pr-9 text-gray-700 hover:bg-gray-100 hover:text-gray-900"
@@ -242,7 +251,10 @@ export default {
242
251
  data() {
243
252
  return {
244
253
  loaderSearching: true,
245
- value: this.optionsSelected && this.optionsSelected.length ? this.optionsSelected : [],
254
+ value:
255
+ this.optionsSelected && this.optionsSelected.length
256
+ ? this.optionsSelected
257
+ : [],
246
258
  observer: null,
247
259
  };
248
260
  },
@@ -297,7 +309,7 @@ export default {
297
309
  @apply cursor-pointer;
298
310
  }
299
311
  .vs__dropdown-toggle {
300
- @apply focus:outline-none w-full rounded-md border border-gray-300 bg-white pl-3 text-left shadow-sm focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 sm:text-sm;
312
+ @apply w-full rounded-md border border-gray-300 bg-white pl-3 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm;
301
313
  padding-top: 0.4rem;
302
314
  padding-bottom: 0.4rem;
303
315
  }
@@ -325,7 +337,7 @@ export default {
325
337
  @apply pt-0 pr-3;
326
338
  }
327
339
  .vs__dropdown-menu {
328
- @apply focus:outline-none mt-2 max-h-60 overflow-auto rounded-md bg-white py-0 text-base shadow-lg ring-1 ring-opacity-5 sm:text-sm;
340
+ @apply mt-2 max-h-60 overflow-auto rounded-md bg-white py-0 text-base shadow-lg ring-1 ring-opacity-5 focus:outline-none sm:text-sm;
329
341
  }
330
342
  .vs__dropdown-option {
331
343
  @apply py-2;