classcard-ui 0.2.810 → 0.2.812
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 +66 -78
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +66 -78
- 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/CSelect/CSelect.vue +13 -25
- package/src/components/CTable/CTable.vue +2 -0
package/package.json
CHANGED
|
@@ -12,18 +12,7 @@
|
|
|
12
12
|
<span v-if="hint" class="text-sm text-gray-500">{{ hint }}</span>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="relative">
|
|
15
|
-
<div
|
|
16
|
-
class="relative flex items-center rounded-md"
|
|
17
|
-
:class="{ ...classes, [inputClasses]: true }"
|
|
18
|
-
>
|
|
19
|
-
<c-icon
|
|
20
|
-
class="ml-3"
|
|
21
|
-
v-if="icon && !showImage"
|
|
22
|
-
:class="icon.class"
|
|
23
|
-
:name="icon.name"
|
|
24
|
-
:type="icon.type"
|
|
25
|
-
>
|
|
26
|
-
</c-icon>
|
|
15
|
+
<div :class="label ? 'mt-1' : ''">
|
|
27
16
|
<input
|
|
28
17
|
type="text"
|
|
29
18
|
v-model="selectSearch"
|
|
@@ -33,13 +22,8 @@
|
|
|
33
22
|
aria-haspopup="listbox"
|
|
34
23
|
aria-expanded="true"
|
|
35
24
|
aria-labelledby="listbox-label"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
? 'hover:bg-indigo-100'
|
|
39
|
-
: type === 'gray'
|
|
40
|
-
? 'bg-gray-100 hover:bg-gray-200'
|
|
41
|
-
: ''
|
|
42
|
-
} focus:ring-0 disabled:opacity-50 sm:text-sm`"
|
|
25
|
+
class="w-full cursor-pointer rounded-md py-2 pl-2 pr-10 text-left text-sm focus:ring-0 disabled:opacity-50 sm:text-sm"
|
|
26
|
+
:class="{ ...classes, [inputClasses]: true }"
|
|
43
27
|
:disabled="isDisabled"
|
|
44
28
|
autocomplete="off"
|
|
45
29
|
/>
|
|
@@ -63,10 +47,14 @@
|
|
|
63
47
|
:isDynamicallyColored="coloredAvatars"
|
|
64
48
|
></c-avatar>
|
|
65
49
|
</div>
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
class="
|
|
50
|
+
<c-icon
|
|
51
|
+
v-if="icon && !showImage && !selectSearch"
|
|
52
|
+
:class="icon.class"
|
|
53
|
+
:name="icon.name"
|
|
54
|
+
:type="icon.type"
|
|
69
55
|
>
|
|
56
|
+
</c-icon>
|
|
57
|
+
<p :class="showImage ? 'ml-3' : ''" class="block truncate text-sm">
|
|
70
58
|
{{
|
|
71
59
|
selectedValue
|
|
72
60
|
? selectedValue
|
|
@@ -280,11 +268,11 @@ export default {
|
|
|
280
268
|
computed: {
|
|
281
269
|
classes() {
|
|
282
270
|
return {
|
|
283
|
-
"text-gray-900 border border-gray-200 hover:bg-gray-200 bg-gray-100 focus
|
|
271
|
+
"text-gray-900 border border-gray-200 hover:bg-gray-200 bg-gray-100 focus:ring-2 focus:border-gray-200 focus:ring-gray-200 focus:ring-offset-2 shadow-sm":
|
|
284
272
|
this.type == "gray",
|
|
285
|
-
"bg-white border border-gray-200 hover:bg-indigo-100 text-indigo-600 hover:text-indigo-800 focus-
|
|
273
|
+
"bg-white border border-gray-200 hover:bg-indigo-100 text-indigo-600 hover:text-indigo-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-200":
|
|
286
274
|
this.type == "tertiary",
|
|
287
|
-
"border border-gray-300
|
|
275
|
+
"border border-gray-300 focus:ring-indigo-500 focus:border-indigo-500 bg-white shadow-sm focus:ring-1":
|
|
288
276
|
this.type == null,
|
|
289
277
|
};
|
|
290
278
|
},
|
|
@@ -426,6 +426,7 @@ export default {
|
|
|
426
426
|
},
|
|
427
427
|
});
|
|
428
428
|
sortable.on("sortable:stop", (e) => this.rearrange(e.oldIndex, e.newIndex));
|
|
429
|
+
sortable.on("sortable:stop", (e) => console.log(e));
|
|
429
430
|
document.addEventListener("keydown", this.handleControlClick, true);
|
|
430
431
|
document.addEventListener("keyup", this.handleControlRelease, true);
|
|
431
432
|
},
|
|
@@ -492,6 +493,7 @@ export default {
|
|
|
492
493
|
...remainingItems.slice(newIndex),
|
|
493
494
|
];
|
|
494
495
|
this.reorderedArray = [...reorderedItems];
|
|
496
|
+
console.log(this.reorderedArray);
|
|
495
497
|
this.$emit("reordered", this.reorderedArray);
|
|
496
498
|
},
|
|
497
499
|
// listing functions
|