@antify/ui 4.1.12 → 4.1.17
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.
|
@@ -140,13 +140,16 @@ const skeletonGrouped = computed(() => {
|
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
const filteredOptions = computed(() => {
|
|
143
|
+
const searchTerm = tagInput.value.toLowerCase();
|
|
144
|
+
|
|
143
145
|
return props.options.filter(option => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
if (option.isDeleted) return false;
|
|
147
|
+
|
|
148
|
+
if (!props.allowDuplicates && _modelValue.value?.includes(option.value)) {
|
|
149
|
+
return false;
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
return option.label.toLowerCase().includes(
|
|
152
|
+
return option.label.toLowerCase().includes(searchTerm);
|
|
150
153
|
});
|
|
151
154
|
});
|
|
152
155
|
|
|
@@ -59,8 +59,8 @@ const props = withDefaults(defineProps<{
|
|
|
59
59
|
iconLeft?: IconDefinition;
|
|
60
60
|
nullable?: boolean;
|
|
61
61
|
inputRef?: null | HTMLInputElement;
|
|
62
|
-
min?: string;
|
|
63
|
-
max?: string;
|
|
62
|
+
min?: string | number;
|
|
63
|
+
max?: string | number;
|
|
64
64
|
}>(), {
|
|
65
65
|
state: InputState.base,
|
|
66
66
|
disabled: false,
|
|
@@ -271,8 +271,8 @@ function onClickClearIcon() {
|
|
|
271
271
|
:max="max"
|
|
272
272
|
title=""
|
|
273
273
|
v-bind="$attrs"
|
|
274
|
-
@blur="onBlur"
|
|
275
274
|
:data-e2e-state="state"
|
|
275
|
+
@blur="onBlur"
|
|
276
276
|
>
|
|
277
277
|
|
|
278
278
|
<div
|