@dataloop-ai/components 0.17.21 → 0.17.23
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/package.json
CHANGED
|
@@ -33,11 +33,8 @@
|
|
|
33
33
|
</dl-input>
|
|
34
34
|
<dl-button
|
|
35
35
|
v-show="withSearchButton"
|
|
36
|
-
|
|
37
|
-
style="width: 20%; min-width: fit-content"
|
|
38
|
-
:size="size"
|
|
36
|
+
:size="buttonSize"
|
|
39
37
|
:class="buttonClasses"
|
|
40
|
-
fluid
|
|
41
38
|
@click="onSearchButtonPress"
|
|
42
39
|
>
|
|
43
40
|
Search
|
|
@@ -58,6 +55,11 @@ const SearchSizes = {
|
|
|
58
55
|
} as const
|
|
59
56
|
type TSearchSizes = (typeof SearchSizes)[keyof typeof SearchSizes]
|
|
60
57
|
|
|
58
|
+
const BUTTON_SIZES = {
|
|
59
|
+
l: 'l',
|
|
60
|
+
m: 's'
|
|
61
|
+
}
|
|
62
|
+
|
|
61
63
|
export default defineComponent({
|
|
62
64
|
name: 'DlSearch',
|
|
63
65
|
components: {
|
|
@@ -100,6 +102,9 @@ export default defineComponent({
|
|
|
100
102
|
}
|
|
101
103
|
},
|
|
102
104
|
computed: {
|
|
105
|
+
buttonSize(): string {
|
|
106
|
+
return BUTTON_SIZES[this.size]
|
|
107
|
+
},
|
|
103
108
|
identifierClass(): string {
|
|
104
109
|
return `dl-search-${this.placeholder}`.replaceAll(' ', '-')
|
|
105
110
|
},
|
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
placeholder="Search here"
|
|
9
9
|
:auto-suggest-items="suggestItems"
|
|
10
10
|
/>
|
|
11
|
+
|
|
12
|
+
<dl-search
|
|
13
|
+
v-model="searchValue"
|
|
14
|
+
size="m"
|
|
15
|
+
with-search-button
|
|
16
|
+
highlight-matches
|
|
17
|
+
placeholder="Search here"
|
|
18
|
+
:auto-suggest-items="suggestItems"
|
|
19
|
+
/>
|
|
11
20
|
</div>
|
|
12
21
|
</template>
|
|
13
22
|
|