classcard-ui 0.2.253 → 0.2.255

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.253",
3
+ "version": "0.2.255",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -15,6 +15,7 @@
15
15
  :options="options"
16
16
  @input="setSelectedOptions"
17
17
  @search="fetchOptions"
18
+ @search:focus="$emit('search:focus')"
18
19
  :label="optionLabel"
19
20
  :clearable="clearable"
20
21
  >
@@ -41,6 +42,29 @@
41
42
  >
42
43
  <span v-else>No options found, try searching something else.</span>
43
44
  </template>
45
+ <template #spinner="{ loading }">
46
+ <svg
47
+ class="animate-spin h-5 w-5 text-gray-400"
48
+ xmlns="http://www.w3.org/2000/svg"
49
+ fill="none"
50
+ viewBox="0 0 24 24"
51
+ v-if="loading"
52
+ >
53
+ <circle
54
+ class="opacity-25"
55
+ cx="12"
56
+ cy="12"
57
+ r="10"
58
+ stroke="currentColor"
59
+ stroke-width="4"
60
+ ></circle>
61
+ <path
62
+ class="opacity-75"
63
+ fill="currentColor"
64
+ d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
65
+ ></path>
66
+ </svg>
67
+ </template>
44
68
  <template slot="option" slot-scope="option">
45
69
  <slot name="custom-option" v-bind:option="option"></slot>
46
70
  </template>