vueless 0.0.402 → 0.0.403

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.402",
3
+ "version": "0.0.403",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -57,14 +57,13 @@
57
57
  <slot name="header-right" />
58
58
  </div>
59
59
 
60
- <div v-bind="closeIconAttrs">
60
+ <div v-if="closeOnCross" v-bind="closeIconAttrs">
61
61
  <!--
62
62
  @slot Use it to add something instead of the close button.
63
63
  @binding {string} icon-name
64
64
  -->
65
65
  <slot name="close-button" :icon-name="config.defaults.closeIcon">
66
66
  <UIcon
67
- v-if="closeOnCross"
68
67
  internal
69
68
  interactive
70
69
  size="sm"
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <UInput
3
3
  :id="elementId"
4
+ ref="inputRef"
4
5
  :model-value="localValue"
5
6
  :size="size"
6
7
  :disabled="disabled"
@@ -253,6 +254,9 @@ let updateValueWithDebounce = createDebounce((value) => {
253
254
  }, Number(props.debounce));
254
255
 
255
256
  const localValue = ref("");
257
+ const inputRef = ref(null);
258
+
259
+ defineExpose({ inputRef });
256
260
 
257
261
  const elementId = props.id || useId();
258
262
 
@@ -677,7 +677,7 @@ const isSelectedValueLabelVisible = computed(() => {
677
677
  });
678
678
 
679
679
  const filteredOptions = computed(() => {
680
- const normalizedSearch = search.value.toLowerCase().trim();
680
+ const normalizedSearch = search.value.toLowerCase().trim() || "";
681
681
 
682
682
  let options = props.multiple
683
683
  ? SelectService.removeSelectedValues(
@@ -688,10 +688,6 @@ const filteredOptions = computed(() => {
688
688
  )
689
689
  : [...props.options];
690
690
 
691
- if (!normalizedSearch) {
692
- return options.slice(0, props.optionsLimit || options.length);
693
- }
694
-
695
691
  options = props.groupValueKey
696
692
  ? filterAndFlat(options, normalizedSearch, props.labelKey)
697
693
  : SelectService.filterOptions(options, normalizedSearch, props.labelKey);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.402",
4
+ "version": "0.0.403",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",