y200subcontrols 0.1.35 → 0.1.352
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.
|
@@ -78,7 +78,10 @@ onMount(() => {
|
|
|
78
78
|
{#if labelText}
|
|
79
79
|
<label
|
|
80
80
|
for={id}
|
|
81
|
-
class="inline-block mb-1 text-slate-600 dark:text-neutral-200 font-thin
|
|
81
|
+
class="inline-block mb-1 text-slate-600 dark:text-neutral-200 font-thin
|
|
82
|
+
{size === 'lg' ? 'text-lg' : ''}
|
|
83
|
+
{size === 'sm' ? 'text-sm' : ''}
|
|
84
|
+
"
|
|
82
85
|
>
|
|
83
86
|
{labelText}
|
|
84
87
|
{#if required}
|
|
@@ -96,7 +99,7 @@ onMount(() => {
|
|
|
96
99
|
type="text"
|
|
97
100
|
{required}
|
|
98
101
|
{autocomplete}
|
|
99
|
-
class="border peer block w-full rounded shadow-sm bg-white text-neutral-900
|
|
102
|
+
class="border peer block w-full rounded shadow-sm bg-white text-neutral-900
|
|
100
103
|
{size === 'sm' ? 'py-1 px-2 text-sm' : ''}
|
|
101
104
|
{size === 'md' ? 'py-1.5 px-2 text-base' : ''}
|
|
102
105
|
{size === 'lg' ? 'py-2 px-2 text-lg' : ''}
|
|
@@ -9,6 +9,11 @@ let select;
|
|
|
9
9
|
let elements = [];
|
|
10
10
|
let elementsFilterd = [];
|
|
11
11
|
function selectELement(element) {
|
|
12
|
+
if (select.value === element.value) {
|
|
13
|
+
select.value = "";
|
|
14
|
+
dispatch("change", void 0);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
12
17
|
select.value = element.value;
|
|
13
18
|
dispatch("change", element);
|
|
14
19
|
}
|