classcard-ui 0.2.623 → 0.2.624
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 +58 -59
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +58 -59
- 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 +1 -1
- package/src/components/CMultiselect/CMultiselect.vue +12 -16
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div class="flex items-center">
|
|
4
|
-
<label v-if="label" class="text-sm font-medium text-gray-900">{{
|
|
5
|
-
label
|
|
6
|
-
}}</label>
|
|
4
|
+
<label v-if="label" class="text-sm font-medium text-gray-900">{{ label }}</label>
|
|
7
5
|
<!-- asterisk sign to render if field is required -->
|
|
8
6
|
<p v-if="isRequired" class="ml-1 text-red-600">*</p>
|
|
9
7
|
</div>
|
|
10
8
|
<v-select
|
|
11
|
-
class="mt-1 text-sm"
|
|
9
|
+
class="mt-1 text-sm disabled-opacity-50 disabled-pointer-events-none disabled-cursor-default"
|
|
12
10
|
:placeholder="placeholder"
|
|
13
11
|
:multiple="isMultiple"
|
|
14
12
|
:taggable="isTaggable"
|
|
@@ -24,6 +22,7 @@
|
|
|
24
22
|
:loading="loading"
|
|
25
23
|
@open="onOpen"
|
|
26
24
|
@close="onClose"
|
|
25
|
+
:disabled="isDisabled"
|
|
27
26
|
>
|
|
28
27
|
<template #open-indicator="{ attributes }">
|
|
29
28
|
<span v-bind="attributes">
|
|
@@ -43,9 +42,7 @@
|
|
|
43
42
|
</template>
|
|
44
43
|
<!-- eslint-disable-next-line vue/no-unused-vars -->
|
|
45
44
|
<template #no-options="{ search, searching, loading }">
|
|
46
|
-
<span v-if="search.length < 1"
|
|
47
|
-
>Start typing to search for options...</span
|
|
48
|
-
>
|
|
45
|
+
<span v-if="search.length < 1">Start typing to search for options...</span>
|
|
49
46
|
<span v-else>No options found, try searching something else.</span>
|
|
50
47
|
</template>
|
|
51
48
|
<template #spinner="{ loading }">
|
|
@@ -94,9 +91,7 @@
|
|
|
94
91
|
</div>
|
|
95
92
|
</template>
|
|
96
93
|
<template #list-footer>
|
|
97
|
-
<li ref="load" class="loader" v-show="hasNextPage">
|
|
98
|
-
Loading more options...
|
|
99
|
-
</li>
|
|
94
|
+
<li ref="load" class="loader" v-show="hasNextPage">Loading more options...</li>
|
|
100
95
|
<li
|
|
101
96
|
v-if="showFooterButton"
|
|
102
97
|
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"
|
|
@@ -219,15 +214,16 @@ export default {
|
|
|
219
214
|
type: Boolean,
|
|
220
215
|
default: false,
|
|
221
216
|
},
|
|
217
|
+
isDisabled: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: false,
|
|
220
|
+
},
|
|
222
221
|
},
|
|
223
222
|
computed: {},
|
|
224
223
|
data() {
|
|
225
224
|
return {
|
|
226
225
|
loaderSearching: true,
|
|
227
|
-
value:
|
|
228
|
-
this.optionsSelected && this.optionsSelected.length
|
|
229
|
-
? this.optionsSelected
|
|
230
|
-
: [],
|
|
226
|
+
value: this.optionsSelected && this.optionsSelected.length ? this.optionsSelected : [],
|
|
231
227
|
observer: null,
|
|
232
228
|
};
|
|
233
229
|
},
|
|
@@ -282,7 +278,7 @@ export default {
|
|
|
282
278
|
@apply cursor-pointer;
|
|
283
279
|
}
|
|
284
280
|
.vs__dropdown-toggle {
|
|
285
|
-
@apply w-full rounded-md border border-gray-300 bg-white pl-3 text-left shadow-sm focus:border-indigo-500 focus:
|
|
281
|
+
@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;
|
|
286
282
|
padding-top: 0.4rem;
|
|
287
283
|
padding-bottom: 0.4rem;
|
|
288
284
|
}
|
|
@@ -310,7 +306,7 @@ export default {
|
|
|
310
306
|
@apply pt-0 pr-3;
|
|
311
307
|
}
|
|
312
308
|
.vs__dropdown-menu {
|
|
313
|
-
@apply mt-2 max-h-60 overflow-auto rounded-md bg-white py-0 text-base shadow-lg ring-1 ring-opacity-5
|
|
309
|
+
@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;
|
|
314
310
|
}
|
|
315
311
|
.vs__dropdown-option {
|
|
316
312
|
@apply py-2;
|