adminforth 1.4.3-next.12 → 1.4.3-next.14
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.
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
type="submit"
|
|
5
5
|
class="flex items-center justify-center gap-1 text-lightPrimaryContrast bg-lightPrimary dark:bg-darkPrimary hover:brightness-110
|
|
6
6
|
focus:ring-4 focus:outline-none focus:ring-lightPrimary focus:ring-opacity-50 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:focus:ring-darkPrimary dark:focus:ring-opacity-50"
|
|
7
|
+
:class="{
|
|
8
|
+
'cursor-default': props.disabled,
|
|
9
|
+
'opacity-50': props.disabled,
|
|
10
|
+
'pointer-events-none': props.disabled,
|
|
11
|
+
}"
|
|
7
12
|
>
|
|
8
13
|
<svg v-if="props.loader"
|
|
9
14
|
aria-hidden="true" class="w-4 h-4 text-gray-200 animate-spin dark:text-gray-600 fill-lightPrimary dark:fill-darkPrimary"
|
|
@@ -16,6 +21,7 @@
|
|
|
16
21
|
|
|
17
22
|
const props = defineProps({
|
|
18
23
|
loader: Boolean,
|
|
24
|
+
disabled: Boolean,
|
|
19
25
|
});
|
|
20
26
|
|
|
21
27
|
</script>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<IconCaretUpSolid v-else class="h-5 w-5 text-lightPrimary dark:text-gray-400 opacity-50" />
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
|
-
<div v-if="showDropdown" class="absolute z-10 mt-1 w-full bg-white shadow-lg dark:shadow-black dark:bg-gray-700 dark:border-gray-600 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm">
|
|
31
|
+
<div v-if="showDropdown" class="absolute z-10 mt-1 w-full bg-white shadow-lg dark:shadow-black dark:bg-gray-700 dark:border-gray-600 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm max-h-96">
|
|
32
32
|
<div
|
|
33
33
|
v-for="item in filteredItems"
|
|
34
34
|
:key="item.value"
|