@bagelink/vue 1.17.6 → 1.18.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.17.6",
4
+ "version": "1.18.3",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -2,7 +2,7 @@
2
2
  import type { IconType, Option } from '../../../index'
3
3
  import type { AlignedPlacement } from '../../Dropdown.types'
4
4
  import { Btn, Card, Skeleton, Dropdown, Icon, TextInput, useSearch, useI18n, resolveI18n } from '../../../index'
5
- import { computed, onMounted, ref, useId, watch } from 'vue'
5
+ import { computed, nextTick, onMounted, ref, useId, watch } from 'vue'
6
6
  import { getOptionIcon, getOptionLabel, getOptionSubtitle, getOptionValue } from '../../../utils/options'
7
7
  import 'floating-vue/style.css'
8
8
  import type { BagelInputShellProps } from './bagelInputShell'
@@ -232,8 +232,10 @@ watch(
232
232
  watch(() => open.value, (value) => {
233
233
  if (value) {
234
234
  highlightedIndex.value = -1
235
- // Scroll to selected item when dropdown opens
236
- setTimeout(() => { scrollToSelectedItem() }, 10)
235
+ nextTick(() => {
236
+ if (props.searchable) searchInput.value?.focus()
237
+ scrollToSelectedItem()
238
+ })
237
239
  }
238
240
  })
239
241
 
@@ -439,6 +439,10 @@ function getFieldProps(field: FieldBuilder, key: string) {
439
439
  baseProps.multiline = true
440
440
  }
441
441
 
442
+ if (field._type === 'datetime') {
443
+ baseProps.enableTime = true
444
+ }
445
+
442
446
  if (field._type === 'multiselect') {
443
447
  baseProps.multiselect = true
444
448
  }