classcard-ui 0.2.546 → 0.2.549
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 +75 -65
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +75 -65
- 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/CAvatar/CAvatar.vue +1 -1
- package/src/components/CMultiselect/CMultiselect.vue +17 -7
- package/src/components/CTabs/CTabs.vue +4 -2
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div
|
|
14
14
|
v-else
|
|
15
15
|
:class="nameInitialsClasses"
|
|
16
|
-
class="
|
|
16
|
+
class="flex-none border-red-300 bg-red-100 text-center font-medium text-red-600"
|
|
17
17
|
:style="[
|
|
18
18
|
size == 'medium' ? { 'line-height': '3rem' } : '',
|
|
19
19
|
size == 'large' ? { 'line-height': '3.5rem' } : '',
|
|
@@ -1,11 +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">{{
|
|
4
|
+
<label v-if="label" class="text-sm font-medium text-gray-900">{{
|
|
5
|
+
label
|
|
6
|
+
}}</label>
|
|
5
7
|
<!-- asterisk sign to render if field is required -->
|
|
6
8
|
<p v-if="isRequired" class="ml-1 text-red-600">*</p>
|
|
7
9
|
</div>
|
|
8
|
-
<p v-if="subLabel" class="text-sm text-gray-500">{{ subLabel }}</p>
|
|
9
10
|
<v-select
|
|
10
11
|
class="mt-1 text-sm"
|
|
11
12
|
:placeholder="placeholder"
|
|
@@ -42,7 +43,9 @@
|
|
|
42
43
|
</template>
|
|
43
44
|
<!-- eslint-disable-next-line vue/no-unused-vars -->
|
|
44
45
|
<template #no-options="{ search, searching, loading }">
|
|
45
|
-
<span v-if="search.length < 1"
|
|
46
|
+
<span v-if="search.length < 1"
|
|
47
|
+
>Start typing to search for options...</span
|
|
48
|
+
>
|
|
46
49
|
<span v-else>No options found, try searching something else.</span>
|
|
47
50
|
</template>
|
|
48
51
|
<template #spinner="{ loading }">
|
|
@@ -91,7 +94,9 @@
|
|
|
91
94
|
</div>
|
|
92
95
|
</template>
|
|
93
96
|
<template #list-footer>
|
|
94
|
-
<li ref="load" class="loader" v-show="hasNextPage">
|
|
97
|
+
<li ref="load" class="loader" v-show="hasNextPage">
|
|
98
|
+
Loading more options...
|
|
99
|
+
</li>
|
|
95
100
|
<li
|
|
96
101
|
v-if="showFooterButton"
|
|
97
102
|
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"
|
|
@@ -119,6 +124,8 @@
|
|
|
119
124
|
</li>
|
|
120
125
|
</template>
|
|
121
126
|
</v-select>
|
|
127
|
+
|
|
128
|
+
<p v-if="subLabel" class="text-sm text-gray-500">{{ subLabel }}</p>
|
|
122
129
|
<p v-if="!isValidate" class="mt-2 text-sm text-red-600">
|
|
123
130
|
{{ errorMessage }}
|
|
124
131
|
</p>
|
|
@@ -217,7 +224,10 @@ export default {
|
|
|
217
224
|
data() {
|
|
218
225
|
return {
|
|
219
226
|
loaderSearching: true,
|
|
220
|
-
value:
|
|
227
|
+
value:
|
|
228
|
+
this.optionsSelected && this.optionsSelected.length
|
|
229
|
+
? this.optionsSelected
|
|
230
|
+
: [],
|
|
221
231
|
observer: null,
|
|
222
232
|
};
|
|
223
233
|
},
|
|
@@ -272,7 +282,7 @@ export default {
|
|
|
272
282
|
@apply cursor-pointer;
|
|
273
283
|
}
|
|
274
284
|
.vs__dropdown-toggle {
|
|
275
|
-
@apply
|
|
285
|
+
@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;
|
|
276
286
|
padding-top: 0.4rem;
|
|
277
287
|
padding-bottom: 0.4rem;
|
|
278
288
|
}
|
|
@@ -299,7 +309,7 @@ export default {
|
|
|
299
309
|
@apply pt-0 pr-3;
|
|
300
310
|
}
|
|
301
311
|
.vs__dropdown-menu {
|
|
302
|
-
@apply
|
|
312
|
+
@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;
|
|
303
313
|
}
|
|
304
314
|
.vs__dropdown-option {
|
|
305
315
|
@apply py-2;
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
class="block w-full rounded-md border-gray-300 focus:border-indigo-500 focus:ring-indigo-500"
|
|
10
10
|
id="tabs"
|
|
11
11
|
>
|
|
12
|
-
<option v-for="tab in tabs" :key="tab.text"
|
|
12
|
+
<option v-for="tab in tabs" :key="tab.text" :value="tab.name">
|
|
13
|
+
{{ tab.text }}
|
|
14
|
+
</option>
|
|
13
15
|
</select>
|
|
14
16
|
<div>
|
|
15
17
|
<slot :name="tabPanelSlotName"></slot>
|
|
@@ -93,7 +95,7 @@ export default {
|
|
|
93
95
|
},
|
|
94
96
|
switchTabForMobile(index) {
|
|
95
97
|
var selectedOption = this.tabs[index];
|
|
96
|
-
this.activeTab = selectedOption.
|
|
98
|
+
this.activeTab = selectedOption.name;
|
|
97
99
|
},
|
|
98
100
|
tabHeadSlotName(tabName) {
|
|
99
101
|
return `tab-head-${tabName}`;
|