wabtec-internal-volt-basic-components 1.2.0 → 1.4.0

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.
Files changed (1043) hide show
  1. package/dist/assets/scripts/figma-props-vds.json +191 -0
  2. package/dist/assets/scripts/figma-tokens-to-css.js +278 -0
  3. package/dist/cjs/attribute-sync-BjXJ3Bpx.js +118 -0
  4. package/dist/cjs/{base-group-header-BBa6o7j-.js → base-group-header-T64Yqp-w.js} +2 -5
  5. package/dist/cjs/{base-item-z-efWd2M.js → base-item-DbRYZi9C.js} +34 -7
  6. package/dist/cjs/clone-attributes-DOqpVwDK.js +21 -0
  7. package/dist/cjs/{combine-classes-Cs05zl1M.js → combine-classes-BWEYe4UE.js} +6 -3
  8. package/dist/{esm/floating-engine-utils-ClEAm9Wn.js → cjs/floating-engine-utils-BYIoxOr2.js} +344 -300
  9. package/dist/cjs/form-Yf-Cfxkl.js +59 -0
  10. package/dist/cjs/icon-attr.utils-B0fSRoC6.js +0 -3
  11. package/dist/cjs/icon-utils-3UYxf58h.js +163 -0
  12. package/dist/cjs/{index-CwXszEUj.js → index-BVTk936l.js} +289 -232
  13. package/dist/cjs/index.cjs.js +142 -5
  14. package/dist/cjs/{vds-basic-dropdown.utils-B8SPgJv4.js → keyboard-navigation-DffeaRPP.js} +187 -19
  15. package/dist/cjs/loader.cjs.js +2 -5
  16. package/dist/cjs/{node-utils-BZh70EVv.js → node-utils-C8-XBEJe.js} +12 -4
  17. package/dist/cjs/number-utils-CR47_3vx.js +12 -0
  18. package/dist/cjs/slider.utils-FbBdFloW.js +218 -0
  19. package/dist/cjs/utils-DhCTTpab.js +92 -0
  20. package/dist/cjs/vds-autocomplete-item.cjs.entry.js +98 -17
  21. package/dist/cjs/vds-avatar_2.cjs.entry.js +113 -14
  22. package/dist/cjs/vds-badge-pill.cjs.entry.js +52 -18
  23. package/dist/cjs/vds-badge-pill.utils-DDjHf_ZH.js +0 -3
  24. package/dist/cjs/vds-basic-accordion.cjs.entry.js +71 -33
  25. package/dist/cjs/vds-basic-autocomplete.cjs.entry.js +560 -87
  26. package/dist/cjs/vds-basic-combo-box.cjs.entry.js +90 -36
  27. package/dist/cjs/{vds-basic-dropdown_23.cjs.entry.js → vds-basic-dropdown_24.cjs.entry.js} +2399 -597
  28. package/dist/cjs/vds-basic-input.utils-Ui8YYkvJ.js +140 -0
  29. package/dist/cjs/vds-basic-slider-range-continuous.cjs.entry.js +193 -137
  30. package/dist/cjs/vds-breadcrumbs-item.cjs.entry.js +18 -7
  31. package/dist/cjs/vds-chip.cjs.entry.js +71 -47
  32. package/dist/cjs/vds-dialog-action-footer.cjs.entry.js +16 -10
  33. package/dist/cjs/vds-dialog-body.cjs.entry.js +7 -4
  34. package/dist/cjs/vds-dialog-header.cjs.entry.js +12 -5
  35. package/dist/cjs/vds-dialog-modal.cjs.entry.js +7 -4
  36. package/dist/cjs/vds-dialog.cjs.entry.js +73 -32
  37. package/dist/cjs/vds-display.cjs.entry.js +208 -0
  38. package/dist/cjs/vds-footer.cjs.entry.js +85 -11
  39. package/dist/cjs/vds-header.cjs.entry.js +79 -24
  40. package/dist/cjs/vds-icon-button.utils-BhiIMLsS.js +0 -3
  41. package/dist/cjs/vds-key-value-pair.cjs.entry.js +22 -7
  42. package/dist/cjs/vds-notification.cjs.entry.js +69 -10
  43. package/dist/cjs/vds-popover.cjs.entry.js +92 -20
  44. package/dist/cjs/vds-progress-linear.cjs.entry.js +44 -27
  45. package/dist/cjs/vds-radio-button.cjs.entry.js +71 -36
  46. package/dist/cjs/vds-segmented-button.cjs.entry.js +53 -11
  47. package/dist/cjs/vds-sheet.cjs.entry.js +89 -14
  48. package/dist/cjs/vds-sidenav-item-app.cjs.entry.js +18 -6
  49. package/dist/cjs/vds-sidenav-item-button.cjs.entry.js +42 -8
  50. package/dist/cjs/vds-sidenav-item-category.cjs.entry.js +53 -9
  51. package/dist/cjs/vds-sidenav-item-input.cjs.entry.js +85 -40
  52. package/dist/cjs/vds-skeleton-loading.cjs.entry.js +28 -8
  53. package/dist/cjs/vds-stepper-item-header.cjs.entry.js +16 -5
  54. package/dist/cjs/vds-stepper-item.cjs.entry.js +81 -20
  55. package/dist/cjs/vds-switch.cjs.entry.js +60 -25
  56. package/dist/cjs/vds-tab.cjs.entry.js +99 -18
  57. package/dist/cjs/vds-tabs-group.cjs.entry.js +133 -24
  58. package/dist/cjs/vds-tooltip.cjs.entry.js +186 -23
  59. package/dist/cjs/vds-topbar.cjs.entry.js +27 -0
  60. package/dist/cjs/vds-upload-drag.cjs.entry.js +56 -7
  61. package/dist/cjs/volt-basic-components.cjs.js +3 -6
  62. package/dist/collection/collection-manifest.json +3 -1
  63. package/dist/collection/components/accordion/vds-basic-accordion.css +20 -18
  64. package/dist/collection/components/accordion/vds-basic-accordion.js +170 -51
  65. package/dist/collection/components/accordion/vds-basic-accordion.stories.js +0 -1
  66. package/dist/collection/components/autocomplete/vds-basic-autocomplete.css +39 -16
  67. package/dist/collection/components/autocomplete/vds-basic-autocomplete.js +1138 -151
  68. package/dist/collection/components/autocomplete/vds-basic-autocomplete.stories.js +71 -5
  69. package/dist/collection/components/autocomplete/vds-basic-autocomplete.utils.js +0 -1
  70. package/dist/collection/components/autocomplete-item/vds-autocomplete-item.css +25 -15
  71. package/dist/collection/components/autocomplete-item/vds-autocomplete-item.js +393 -43
  72. package/dist/collection/components/autocomplete-item/vds-autocomplete-item.stories.js +2 -1
  73. package/dist/collection/components/avatar/vds-avatar.css +16 -15
  74. package/dist/collection/components/avatar/vds-avatar.js +118 -10
  75. package/dist/collection/components/avatar/vds-avatar.stories.js +0 -1
  76. package/dist/collection/components/badge-dot/vds-badge-dot.css +16 -11
  77. package/dist/collection/components/badge-dot/vds-badge-dot.js +91 -19
  78. package/dist/collection/components/badge-dot/vds-badge-dot.stories.js +0 -1
  79. package/dist/collection/components/badge-pill/vds-badge-pill.css +31 -18
  80. package/dist/collection/components/badge-pill/vds-badge-pill.js +140 -36
  81. package/dist/collection/components/badge-pill/vds-badge-pill.stories.js +39 -15
  82. package/dist/collection/components/badge-pill/vds-badge-pill.utils.js +0 -1
  83. package/dist/collection/components/base-group-header/base-group-header.js +0 -1
  84. package/dist/collection/components/base-item/base-item.js +66 -3
  85. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.css +23 -19
  86. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.js +661 -124
  87. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.stories.js +261 -6
  88. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.utils.js +32 -17
  89. package/dist/collection/components/breadcrumb-item/vds-breadcrumbs-item.css +16 -11
  90. package/dist/collection/components/breadcrumb-item/vds-breadcrumbs-item.js +36 -8
  91. package/dist/collection/components/breadcrumb-item/vds-breadcrumbs-item.stories.js +0 -1
  92. package/dist/collection/components/button/vds-button.css +167 -87
  93. package/dist/collection/components/button/vds-button.js +260 -16
  94. package/dist/collection/components/button/vds-button.stories.js +338 -60
  95. package/dist/collection/components/card/vds-card.css +19 -11
  96. package/dist/collection/components/card/vds-card.js +418 -45
  97. package/dist/collection/components/card/vds-card.stories.js +0 -1
  98. package/dist/collection/components/checkbox/vds-checkbox.css +16 -11
  99. package/dist/collection/components/checkbox/vds-checkbox.js +158 -53
  100. package/dist/collection/components/checkbox/vds-checkbox.stories.js +0 -1
  101. package/dist/collection/components/checkbox/vds-checkbox.utils.js +0 -1
  102. package/dist/collection/components/chip/vds-chip.css +52 -25
  103. package/dist/collection/components/chip/vds-chip.js +403 -69
  104. package/dist/collection/components/chip/vds-chip.stories.js +62 -1
  105. package/dist/collection/components/dialog/vds-dialog.css +24 -14
  106. package/dist/collection/components/dialog/vds-dialog.js +159 -45
  107. package/dist/collection/components/dialog/vds-dialog.stories.js +4 -3
  108. package/dist/collection/components/dialog-action-footer/vds-dialog-action-footer.css +16 -11
  109. package/dist/collection/components/dialog-action-footer/vds-dialog-action-footer.js +27 -10
  110. package/dist/collection/components/dialog-action-footer/vds-dialog-action-footer.stories.js +0 -1
  111. package/dist/collection/components/dialog-body/vds-dialog-body.css +16 -12
  112. package/dist/collection/components/dialog-body/vds-dialog-body.js +10 -2
  113. package/dist/collection/components/dialog-body/vds-dialog-body.stories.js +0 -1
  114. package/dist/collection/components/dialog-header/vds-dialog-header.css +16 -11
  115. package/dist/collection/components/dialog-header/vds-dialog-header.js +30 -6
  116. package/dist/collection/components/dialog-header/vds-dialog-header.stories.js +0 -1
  117. package/dist/collection/components/dialog-modal/vds-dialog-modal.css +16 -11
  118. package/dist/collection/components/dialog-modal/vds-dialog-modal.js +13 -2
  119. package/dist/collection/components/dialog-modal/vds-dialog-modal.stories.js +0 -1
  120. package/dist/collection/components/display/vds-display.css +1027 -0
  121. package/dist/collection/components/display/vds-display.js +304 -0
  122. package/dist/collection/components/display/vds-display.stories.js +192 -0
  123. package/dist/collection/components/divider/vds-divider.css +16 -11
  124. package/dist/collection/components/divider/vds-divider.js +75 -17
  125. package/dist/collection/components/divider/vds-divider.stories.js +0 -1
  126. package/dist/collection/components/drawer/vds-drawer.css +24 -18
  127. package/dist/collection/components/drawer/vds-drawer.js +627 -37
  128. package/dist/collection/components/drawer/vds-drawer.stories.js +0 -1
  129. package/dist/collection/components/dropdown-group-header/vds-dropdown-group-header.css +16 -15
  130. package/dist/collection/components/dropdown-group-header/vds-dropdown-group-header.js +24 -5
  131. package/dist/collection/components/dropdown-group-header/vds-dropdown-group-header.stories.js +0 -1
  132. package/dist/collection/components/dropdown-item/vds-basic-dropdown-item.stories.js +40 -1
  133. package/dist/collection/components/dropdown-item/vds-dropdown-item-clicked-event.js +0 -1
  134. package/dist/collection/components/dropdown-item/vds-dropdown-item.css +25 -15
  135. package/dist/collection/components/dropdown-item/vds-dropdown-item.js +280 -42
  136. package/dist/collection/components/dropdown-multiselect/vds-basic-dropdown-multiselect.css +23 -15
  137. package/dist/collection/components/dropdown-multiselect/vds-basic-dropdown-multiselect.js +532 -110
  138. package/dist/collection/components/dropdown-multiselect/vds-basic-dropdown-multiselect.stories.js +16 -5
  139. package/dist/collection/components/field/vds-field.css +18 -15
  140. package/dist/collection/components/field/vds-field.js +177 -19
  141. package/dist/collection/components/field/vds-field.stories.js +68 -1
  142. package/dist/collection/components/footer/vds-footer.css +16 -15
  143. package/dist/collection/components/footer/vds-footer.js +174 -17
  144. package/dist/collection/components/footer/vds-footer.stories.js +0 -1
  145. package/dist/collection/components/header/utils/utils.js +0 -1
  146. package/dist/collection/components/header/vds-header.css +42 -29
  147. package/dist/collection/components/header/vds-header.js +169 -41
  148. package/dist/collection/components/header/vds-header.stories.js +71 -4
  149. package/dist/collection/components/icon/utils/icons-list.js +1 -2
  150. package/dist/collection/components/icon/vds-icon.css +16 -15
  151. package/dist/collection/components/icon/vds-icon.js +246 -16
  152. package/dist/collection/components/icon/vds-icon.stories.js +0 -1
  153. package/dist/collection/components/icon-button/vds-icon-button.css +19 -14
  154. package/dist/collection/components/icon-button/vds-icon-button.js +93 -15
  155. package/dist/collection/components/icon-button/vds-icon-button.stories.js +0 -1
  156. package/dist/collection/components/icon-button/vds-icon-button.utils.js +0 -1
  157. package/dist/collection/components/input/vds-basic-input.css +27 -18
  158. package/dist/collection/components/input/vds-basic-input.js +309 -80
  159. package/dist/collection/components/input/vds-basic-input.stories.js +0 -1
  160. package/dist/collection/components/input/vds-basic-input.utils.js +15 -5
  161. package/dist/collection/components/key-value-pair/vds-key-value-pair.css +16 -11
  162. package/dist/collection/components/key-value-pair/vds-key-value-pair.js +113 -17
  163. package/dist/collection/components/key-value-pair/vds-key-value-pair.stories.js +0 -1
  164. package/dist/collection/components/label/vds-label.css +22 -16
  165. package/dist/collection/components/label/vds-label.js +108 -15
  166. package/dist/collection/components/label/vds-label.stories.js +0 -1
  167. package/dist/collection/components/link/vds-link.css +16 -15
  168. package/dist/collection/components/link/vds-link.js +188 -32
  169. package/dist/collection/components/link/vds-link.stories.js +0 -1
  170. package/dist/collection/components/menu/vds-menu.css +30 -12
  171. package/dist/collection/components/menu/vds-menu.js +374 -52
  172. package/dist/collection/components/menu/vds-menu.stories.js +1 -2
  173. package/dist/collection/components/menu-group-header/vds-menu-group-header.css +16 -15
  174. package/dist/collection/components/menu-group-header/vds-menu-group-header.js +54 -6
  175. package/dist/collection/components/menu-group-header/vds-menu-group-header.stories.js +0 -1
  176. package/dist/collection/components/menu-item/vds-menu-item.css +25 -15
  177. package/dist/collection/components/menu-item/vds-menu-item.js +307 -33
  178. package/dist/collection/components/menu-item/vds-menu-item.stories.js +0 -1
  179. package/dist/collection/components/menu-list/vds-menu-list.css +16 -11
  180. package/dist/collection/components/menu-list/vds-menu-list.js +61 -2
  181. package/dist/collection/components/notification/vds-notification-utils.js +0 -1
  182. package/dist/collection/components/notification/vds-notification.css +16 -11
  183. package/dist/collection/components/notification/vds-notification.js +213 -20
  184. package/dist/collection/components/notification/vds-notification.stories.js +0 -1
  185. package/dist/collection/components/popover/utils/utils.js +0 -1
  186. package/dist/collection/components/popover/vds-popover.css +16 -12
  187. package/dist/collection/components/popover/vds-popover.js +269 -36
  188. package/dist/collection/components/popover/vds-popover.stories.js +1 -2
  189. package/dist/collection/components/progress-circular/vds-progress-circular.css +16 -11
  190. package/dist/collection/components/progress-circular/vds-progress-circular.js +299 -35
  191. package/dist/collection/components/progress-circular/vds-progress-circular.stories.js +0 -1
  192. package/dist/collection/components/progress-linear/vds-progress-linear.css +16 -11
  193. package/dist/collection/components/progress-linear/vds-progress-linear.js +126 -32
  194. package/dist/collection/components/progress-linear/vds-progress-linear.stories.js +0 -1
  195. package/dist/collection/components/radio-button/vds-radio-button.css +16 -11
  196. package/dist/collection/components/radio-button/vds-radio-button.js +210 -47
  197. package/dist/collection/components/radio-button/vds-radio-button.stories.js +0 -1
  198. package/dist/collection/components/radio-button/vds-radio-button.utils.js +0 -1
  199. package/dist/collection/components/segmented-button/vds-segmented-button.css +39 -17
  200. package/dist/collection/components/segmented-button/vds-segmented-button.js +214 -16
  201. package/dist/collection/components/segmented-button/vds-segmented-button.stories.js +18 -9
  202. package/dist/collection/components/sheet/vds-sheet.css +24 -16
  203. package/dist/collection/components/sheet/vds-sheet.js +229 -17
  204. package/dist/collection/components/sheet/vds-sheet.stories.js +0 -1
  205. package/dist/collection/components/sidenav-item/vds-sidenav-item.css +78 -25
  206. package/dist/collection/components/sidenav-item/vds-sidenav-item.js +290 -32
  207. package/dist/collection/components/sidenav-item/vds-sidenav-item.stories.js +25 -3
  208. package/dist/collection/components/sidenav-item-app/vds-sidenav-item-app.css +16 -15
  209. package/dist/collection/components/sidenav-item-app/vds-sidenav-item-app.js +146 -11
  210. package/dist/collection/components/sidenav-item-app/vds-sidenav-item-app.stories.js +0 -1
  211. package/dist/collection/components/sidenav-item-button/vds-sidenav-item-button.css +16 -15
  212. package/dist/collection/components/sidenav-item-button/vds-sidenav-item-button.js +168 -14
  213. package/dist/collection/components/sidenav-item-button/vds-sidenav-item-button.stories.js +0 -1
  214. package/dist/collection/components/sidenav-item-category/vds-sidenav-item-category.css +16 -15
  215. package/dist/collection/components/sidenav-item-category/vds-sidenav-item-category.js +174 -10
  216. package/dist/collection/components/sidenav-item-category/vds-sidenav-item-category.stories.js +0 -1
  217. package/dist/collection/components/sidenav-item-input/vds-sidenav-item-input.css +16 -11
  218. package/dist/collection/components/sidenav-item-input/vds-sidenav-item-input.js +263 -55
  219. package/dist/collection/components/sidenav-item-input/vds-sidenav-item-input.stories.js +0 -1
  220. package/dist/collection/components/skeleton-loading/vds-skeleton-loading.css +16 -11
  221. package/dist/collection/components/skeleton-loading/vds-skeleton-loading.js +140 -8
  222. package/dist/collection/components/skeleton-loading/vds-skeleton-loading.stories.js +0 -1
  223. package/dist/collection/components/slider-continuous/vds-basic-slider-continuous.css +95 -24
  224. package/dist/collection/components/slider-continuous/vds-basic-slider-continuous.js +449 -112
  225. package/dist/collection/components/slider-continuous/vds-basic-slider-continuous.stories.js +47 -1
  226. package/dist/collection/components/slider-range-continuous/vds-basic-slider-range-continuous.css +138 -66
  227. package/dist/collection/components/slider-range-continuous/vds-basic-slider-range-continuous.js +498 -161
  228. package/dist/collection/components/slider-range-continuous/vds-basic-slider-range-continuous.stories.js +49 -1
  229. package/dist/collection/components/stepper-item/vds-stepper-item.css +16 -11
  230. package/dist/collection/components/stepper-item/vds-stepper-item.js +276 -28
  231. package/dist/collection/components/stepper-item/vds-stepper-item.stories.js +0 -1
  232. package/dist/collection/components/stepper-item-header/vds-stepper-item-header.css +16 -11
  233. package/dist/collection/components/stepper-item-header/vds-stepper-item-header.js +167 -7
  234. package/dist/collection/components/stepper-item-header/vds-stepper-item-header.stories.js +0 -1
  235. package/dist/collection/components/switch/vds-switch.css +16 -11
  236. package/dist/collection/components/switch/vds-switch.js +218 -31
  237. package/dist/collection/components/switch/vds-switch.stories.js +0 -1
  238. package/dist/collection/components/tab/vds-tab.css +22 -16
  239. package/dist/collection/components/tab/vds-tab.js +294 -30
  240. package/dist/collection/components/tab/vds-tab.stories.js +0 -1
  241. package/dist/collection/components/tabs-group/vds-tabs-group.css +19 -11
  242. package/dist/collection/components/tabs-group/vds-tabs-group.js +366 -37
  243. package/dist/collection/components/tabs-group/vds-tabs-group.stories.js +79 -13
  244. package/dist/collection/components/textarea/vds-basic-textarea.css +16 -15
  245. package/dist/collection/components/textarea/vds-basic-textarea.js +409 -94
  246. package/dist/collection/components/textarea/vds-basic-textarea.stories.js +0 -1
  247. package/dist/collection/components/tooltip/vds-tooltip.css +16 -16
  248. package/dist/collection/components/tooltip/vds-tooltip.js +602 -42
  249. package/dist/collection/components/tooltip/vds-tooltip.stories.js +1 -2
  250. package/dist/collection/components/topbar/vds-topbar.css +961 -0
  251. package/dist/collection/components/topbar/vds-topbar.js +251 -0
  252. package/dist/collection/components/topbar/vds-topbar.stories.js +375 -0
  253. package/dist/collection/components/upload-drag/vds-upload-drag.css +16 -11
  254. package/dist/collection/components/upload-drag/vds-upload-drag.js +330 -17
  255. package/dist/collection/components/upload-drag/vds-upload-drag.stories.js +0 -1
  256. package/dist/collection/components/upload-item/vds-upload-item.css +25 -15
  257. package/dist/collection/components/upload-item/vds-upload-item.js +366 -23
  258. package/dist/collection/components/vds-basic-combo-box/vds-basic-combo-box.css +16 -15
  259. package/dist/collection/components/vds-basic-combo-box/vds-basic-combo-box.js +425 -63
  260. package/dist/collection/components/vds-basic-combo-box/vds-basic-combo-box.stories.js +0 -1
  261. package/dist/collection/components.js +1 -0
  262. package/dist/collection/constants/color-vars.js +1 -2
  263. package/dist/collection/constants/icon-sprite.js +1 -2
  264. package/dist/collection/constants/shadow-vars.js +0 -1
  265. package/dist/collection/constants/spacing-vars.js +1 -1
  266. package/dist/collection/constants/thickness-vars.js +0 -1
  267. package/dist/collection/constants/typography-vars.js +0 -1
  268. package/dist/collection/definitions/colors.js +0 -1
  269. package/dist/collection/definitions/shadows.js +0 -1
  270. package/dist/collection/definitions/spacing.js +0 -1
  271. package/dist/collection/definitions/thickness.js +0 -1
  272. package/dist/collection/definitions/typography.js +0 -1
  273. package/dist/collection/index.js +24 -2
  274. package/dist/collection/scripts/sass-export.js +469 -0
  275. package/dist/collection/scripts/sass-to-json-script.js +2 -2
  276. package/dist/collection/scripts/svg-adaptation.js +40 -13
  277. package/dist/collection/utils/array-utils.js +0 -1
  278. package/dist/collection/utils/attribute-sync.js +114 -0
  279. package/dist/collection/utils/clone-attributes.js +8 -1
  280. package/dist/collection/utils/combine-classes.js +6 -1
  281. package/dist/collection/utils/device-detection.js +36 -0
  282. package/dist/collection/utils/floating-engine-utils.js +89 -92
  283. package/dist/collection/utils/floating-engine.js +2 -3
  284. package/dist/collection/utils/form.js +27 -6
  285. package/dist/collection/utils/get-deep-active-element.js +7 -0
  286. package/dist/collection/utils/get-random-id.js +3 -0
  287. package/dist/collection/utils/icon-attr.utils.js +0 -1
  288. package/dist/collection/utils/icon-generation.utils.js +0 -1
  289. package/dist/collection/utils/icon-utils.js +0 -1
  290. package/dist/collection/utils/is-key-event.js +3 -0
  291. package/dist/collection/utils/is-of-type.js +1 -0
  292. package/dist/collection/utils/keyboard-navigation.js +143 -0
  293. package/dist/collection/utils/node-utils.js +10 -1
  294. package/dist/collection/utils/number-utils.js +0 -1
  295. package/dist/collection/utils/parentHasClass.js +6 -0
  296. package/dist/collection/utils/rems-to-px.js +4 -0
  297. package/dist/collection/utils/slider.utils.js +172 -27
  298. package/dist/collection/utils/spacing-utils.js +0 -1
  299. package/dist/collection/utils/utils.js +0 -1
  300. package/dist/components/array-utils.js +1 -0
  301. package/dist/components/attribute-sync.js +1 -0
  302. package/dist/components/base-group-header.js +1 -19
  303. package/dist/components/base-item.js +1 -111
  304. package/dist/components/clone-attributes.js +1 -13
  305. package/dist/components/combine-classes.js +1 -6
  306. package/dist/components/floating-engine-utils.js +1 -1828
  307. package/dist/components/form.js +1 -35
  308. package/dist/components/icon-attr.utils.js +1 -87
  309. package/dist/components/icon-generation.utils.js +1 -0
  310. package/dist/components/icon-sprite.js +1 -6
  311. package/dist/components/icon-utils.js +1 -0
  312. package/dist/components/index.d.ts +2 -0
  313. package/dist/components/index.js +1 -9
  314. package/dist/components/keyboard-navigation.js +1 -0
  315. package/dist/components/node-utils.js +1 -22
  316. package/dist/components/number-utils.js +1 -0
  317. package/dist/components/slider.utils.js +1 -64
  318. package/dist/components/utils.js +1 -25
  319. package/dist/components/vds-autocomplete-item.js +1 -9
  320. package/dist/components/vds-autocomplete-item2.js +1 -126
  321. package/dist/components/vds-avatar.js +1 -9
  322. package/dist/components/vds-avatar2.js +1 -138
  323. package/dist/components/vds-badge-dot.js +1 -9
  324. package/dist/components/vds-badge-dot2.js +1 -64
  325. package/dist/components/vds-badge-pill.js +1 -88
  326. package/dist/components/vds-badge-pill.utils.js +1 -8
  327. package/dist/components/vds-basic-accordion.js +1 -157
  328. package/dist/components/vds-basic-autocomplete.js +1 -601
  329. package/dist/components/vds-basic-combo-box.js +1 -207
  330. package/dist/components/vds-basic-dropdown-multiselect.js +1 -330
  331. package/dist/components/vds-basic-dropdown.js +1 -375
  332. package/dist/components/vds-basic-dropdown.utils.js +1 -239
  333. package/dist/components/vds-basic-input.js +1 -9
  334. package/dist/components/vds-basic-input.utils.js +1 -137
  335. package/dist/components/vds-basic-input2.js +1 -201
  336. package/dist/components/vds-basic-slider-continuous.js +1 -295
  337. package/dist/components/vds-basic-slider-range-continuous.js +1 -423
  338. package/dist/components/vds-basic-textarea.js +1 -231
  339. package/dist/components/vds-breadcrumbs-item.js +1 -46
  340. package/dist/components/vds-button.js +1 -76
  341. package/dist/components/vds-card.js +1 -9
  342. package/dist/components/vds-card2.js +1 -128
  343. package/dist/components/vds-checkbox.js +1 -205
  344. package/dist/components/vds-chip.js +1 -9
  345. package/dist/components/vds-chip2.js +1 -186
  346. package/dist/components/vds-dialog-action-footer.js +1 -57
  347. package/dist/components/vds-dialog-body.js +1 -38
  348. package/dist/components/vds-dialog-header.js +1 -55
  349. package/dist/components/vds-dialog-modal.js +1 -38
  350. package/dist/components/vds-dialog.js +1 -174
  351. package/dist/components/vds-display.d.ts +11 -0
  352. package/dist/components/vds-display.js +1 -0
  353. package/dist/components/vds-divider.js +1 -9
  354. package/dist/components/vds-divider2.js +1 -56
  355. package/dist/components/vds-drawer.js +1 -122
  356. package/dist/components/vds-dropdown-group-header.js +1 -43
  357. package/dist/components/vds-dropdown-item.js +1 -141
  358. package/dist/components/vds-field.js +1 -75
  359. package/dist/components/vds-footer.js +1 -126
  360. package/dist/components/vds-header.js +1 -116
  361. package/dist/components/vds-icon-button.js +1 -9
  362. package/dist/components/vds-icon-button.utils.js +1 -11
  363. package/dist/components/vds-icon-button2.js +1 -66
  364. package/dist/components/vds-icon.js +1 -9
  365. package/dist/components/vds-icon2.js +1 -133
  366. package/dist/components/vds-key-value-pair.js +1 -50
  367. package/dist/components/vds-label.js +1 -9
  368. package/dist/components/vds-label2.js +1 -61
  369. package/dist/components/vds-link.js +1 -96
  370. package/dist/components/vds-menu-group-header.js +1 -43
  371. package/dist/components/vds-menu-item.js +1 -147
  372. package/dist/components/vds-menu-list.js +1 -38
  373. package/dist/components/vds-menu.js +1 -194
  374. package/dist/components/vds-notification.js +1 -138
  375. package/dist/components/vds-popover.js +1 -170
  376. package/dist/components/vds-progress-circular.js +1 -9
  377. package/dist/components/vds-progress-circular2.js +1 -137
  378. package/dist/components/vds-progress-linear.js +1 -116
  379. package/dist/components/vds-radio-button.js +1 -179
  380. package/dist/components/vds-segmented-button.js +1 -87
  381. package/dist/components/vds-sheet.js +1 -179
  382. package/dist/components/vds-sidenav-item-app.js +1 -58
  383. package/dist/components/vds-sidenav-item-button.js +1 -89
  384. package/dist/components/vds-sidenav-item-category.js +1 -85
  385. package/dist/components/vds-sidenav-item-input.js +1 -194
  386. package/dist/components/vds-sidenav-item.js +1 -9
  387. package/dist/components/vds-sidenav-item2.js +1 -110
  388. package/dist/components/vds-skeleton-loading.js +1 -59
  389. package/dist/components/vds-stepper-item-header.js +1 -54
  390. package/dist/components/vds-stepper-item.js +1 -142
  391. package/dist/components/vds-switch.js +1 -159
  392. package/dist/components/vds-tab.js +1 -180
  393. package/dist/components/vds-tabs-group.js +1 -209
  394. package/dist/components/vds-tooltip.js +1 -169
  395. package/dist/components/vds-topbar.d.ts +11 -0
  396. package/dist/components/vds-topbar.js +1 -0
  397. package/dist/components/vds-upload-drag.js +1 -94
  398. package/dist/components/vds-upload-item.js +1 -97
  399. package/dist/esm/attribute-sync-C0soA0Iu.js +116 -0
  400. package/dist/esm/{base-group-header-Dv2b0x2u.js → base-group-header-DHyRadI2.js} +2 -5
  401. package/dist/esm/{base-item-BJCnJ_64.js → base-item-LifVg8NG.js} +34 -7
  402. package/dist/esm/clone-attributes-XcEz9ONw.js +18 -0
  403. package/dist/esm/combine-classes-B9-Fmd9T.js +9 -0
  404. package/dist/{cjs/floating-engine-utils-DDIydT_O.js → esm/floating-engine-utils-BWyJL18G.js} +329 -302
  405. package/dist/esm/form-D4qxRmcx.js +54 -0
  406. package/dist/esm/{icon-attr.utils-DB1QD50d.js → icon-attr.utils-D8QL-1vr.js} +1 -4
  407. package/dist/esm/icon-utils-DbtAUzUv.js +146 -0
  408. package/dist/esm/{index-YrP3OJ_T.js → index-Db7Bd9sr.js} +289 -232
  409. package/dist/esm/index.js +74 -5
  410. package/dist/esm/{vds-basic-dropdown.utils-BMJUPaKN.js → keyboard-navigation-DhK6Gkic.js} +184 -19
  411. package/dist/esm/loader.js +3 -6
  412. package/dist/esm/{node-utils-Ds4TZ2g7.js → node-utils-DZjA6IyG.js} +12 -5
  413. package/dist/esm/number-utils-BlDCXeBH.js +9 -0
  414. package/dist/esm/slider.utils-Dz7FcsEt.js +207 -0
  415. package/dist/esm/utils-pnHDnu6c.js +86 -0
  416. package/dist/esm/vds-autocomplete-item.entry.js +98 -17
  417. package/dist/esm/vds-avatar_2.entry.js +113 -14
  418. package/dist/esm/vds-badge-pill.entry.js +53 -19
  419. package/dist/esm/vds-badge-pill.utils-0Hrrk76k.js +0 -3
  420. package/dist/esm/vds-basic-accordion.entry.js +72 -34
  421. package/dist/esm/vds-basic-autocomplete.entry.js +558 -85
  422. package/dist/esm/vds-basic-combo-box.entry.js +90 -36
  423. package/dist/esm/{vds-basic-dropdown_23.entry.js → vds-basic-dropdown_24.entry.js} +2373 -572
  424. package/dist/esm/vds-basic-input.utils-C0J5GoBo.js +132 -0
  425. package/dist/esm/vds-basic-slider-range-continuous.entry.js +192 -136
  426. package/dist/esm/vds-breadcrumbs-item.entry.js +18 -7
  427. package/dist/esm/vds-chip.entry.js +71 -47
  428. package/dist/esm/vds-dialog-action-footer.entry.js +16 -10
  429. package/dist/esm/vds-dialog-body.entry.js +7 -4
  430. package/dist/esm/vds-dialog-header.entry.js +12 -5
  431. package/dist/esm/vds-dialog-modal.entry.js +7 -4
  432. package/dist/esm/vds-dialog.entry.js +73 -32
  433. package/dist/esm/vds-display.entry.js +206 -0
  434. package/dist/esm/vds-footer.entry.js +85 -11
  435. package/dist/esm/vds-header.entry.js +79 -24
  436. package/dist/esm/vds-icon-button.utils-B9dRf1-F.js +0 -3
  437. package/dist/esm/vds-key-value-pair.entry.js +22 -7
  438. package/dist/esm/vds-notification.entry.js +69 -10
  439. package/dist/esm/vds-popover.entry.js +92 -20
  440. package/dist/esm/vds-progress-linear.entry.js +44 -27
  441. package/dist/esm/vds-radio-button.entry.js +72 -37
  442. package/dist/esm/vds-segmented-button.entry.js +53 -11
  443. package/dist/esm/vds-sheet.entry.js +89 -14
  444. package/dist/esm/vds-sidenav-item-app.entry.js +18 -6
  445. package/dist/esm/vds-sidenav-item-button.entry.js +42 -8
  446. package/dist/esm/vds-sidenav-item-category.entry.js +53 -9
  447. package/dist/esm/vds-sidenav-item-input.entry.js +85 -40
  448. package/dist/esm/vds-skeleton-loading.entry.js +28 -8
  449. package/dist/esm/vds-stepper-item-header.entry.js +16 -5
  450. package/dist/esm/vds-stepper-item.entry.js +81 -20
  451. package/dist/esm/vds-switch.entry.js +61 -26
  452. package/dist/esm/vds-tab.entry.js +99 -18
  453. package/dist/esm/vds-tabs-group.entry.js +133 -24
  454. package/dist/esm/vds-tooltip.entry.js +186 -23
  455. package/dist/esm/vds-topbar.entry.js +25 -0
  456. package/dist/esm/vds-upload-drag.entry.js +56 -7
  457. package/dist/esm/volt-basic-components.js +4 -7
  458. package/dist/types/components/accordion/vds-basic-accordion.d.ts +105 -35
  459. package/dist/types/components/autocomplete/vds-basic-autocomplete.d.ts +610 -54
  460. package/dist/types/components/autocomplete/vds-basic-autocomplete.stories.d.ts +13 -0
  461. package/dist/types/components/autocomplete-item/vds-autocomplete-item.d.ts +314 -17
  462. package/dist/types/components/avatar/vds-avatar.d.ts +89 -7
  463. package/dist/types/components/badge-dot/vds-badge-dot.d.ts +52 -6
  464. package/dist/types/components/badge-pill/vds-badge-pill.d.ts +90 -13
  465. package/dist/types/components/badge-pill/vds-badge-pill.stories.d.ts +1 -12
  466. package/dist/types/components/base-item/base-item.d.ts +21 -1
  467. package/dist/types/components/basic-dropdown/vds-basic-dropdown.d.ts +431 -31
  468. package/dist/types/components/basic-dropdown/vds-basic-dropdown.stories.d.ts +8 -0
  469. package/dist/types/components/basic-dropdown/vds-basic-dropdown.utils.d.ts +8 -1
  470. package/dist/types/components/breadcrumb-item/vds-breadcrumbs-item.d.ts +19 -2
  471. package/dist/types/components/button/vds-button.d.ts +220 -7
  472. package/dist/types/components/button/vds-button.stories.d.ts +2 -0
  473. package/dist/types/components/card/vds-card.d.ts +343 -19
  474. package/dist/types/components/checkbox/vds-checkbox.d.ts +102 -38
  475. package/dist/types/components/chip/vds-chip.d.ts +362 -34
  476. package/dist/types/components/chip/vds-chip.stories.d.ts +1 -0
  477. package/dist/types/components/dialog/vds-dialog.d.ts +91 -26
  478. package/dist/types/components/dialog-action-footer/vds-dialog-action-footer.d.ts +27 -7
  479. package/dist/types/components/dialog-body/vds-dialog-body.d.ts +9 -0
  480. package/dist/types/components/dialog-header/vds-dialog-header.d.ts +19 -2
  481. package/dist/types/components/dialog-modal/vds-dialog-modal.d.ts +12 -0
  482. package/dist/types/components/display/vds-display.d.ts +135 -0
  483. package/dist/types/components/display/vds-display.stories.d.ts +15 -0
  484. package/dist/types/components/divider/vds-divider.d.ts +34 -4
  485. package/dist/types/components/drawer/vds-drawer.d.ts +488 -11
  486. package/dist/types/components/dropdown-group-header/vds-dropdown-group-header.d.ts +14 -1
  487. package/dist/types/components/dropdown-item/vds-basic-dropdown-item.stories.d.ts +1 -0
  488. package/dist/types/components/dropdown-item/vds-dropdown-item.d.ts +155 -18
  489. package/dist/types/components/dropdown-multiselect/vds-basic-dropdown-multiselect.d.ts +368 -40
  490. package/dist/types/components/dropdown-multiselect/vds-basic-dropdown-multiselect.stories.d.ts +6 -0
  491. package/dist/types/components/field/vds-field.d.ts +147 -7
  492. package/dist/types/components/field/vds-field.stories.d.ts +1 -0
  493. package/dist/types/components/footer/vds-footer.d.ts +155 -7
  494. package/dist/types/components/header/vds-header.d.ts +139 -19
  495. package/dist/types/components/header/vds-header.stories.d.ts +1 -0
  496. package/dist/types/components/icon/vds-icon.d.ts +255 -4
  497. package/dist/types/components/icon-button/vds-icon-button.d.ts +70 -5
  498. package/dist/types/components/input/vds-basic-input.d.ts +241 -47
  499. package/dist/types/components/input/vds-basic-input.utils.d.ts +3 -2
  500. package/dist/types/components/key-value-pair/vds-key-value-pair.d.ts +82 -5
  501. package/dist/types/components/label/vds-label.d.ts +81 -5
  502. package/dist/types/components/link/vds-link.d.ts +128 -13
  503. package/dist/types/components/menu/vds-menu.d.ts +263 -12
  504. package/dist/types/components/menu-group-header/vds-menu-group-header.d.ts +43 -1
  505. package/dist/types/components/menu-item/vds-menu-item.d.ts +215 -18
  506. package/dist/types/components/menu-list/vds-menu-list.d.ts +60 -0
  507. package/dist/types/components/notification/vds-notification.d.ts +172 -9
  508. package/dist/types/components/popover/vds-popover.d.ts +194 -11
  509. package/dist/types/components/progress-circular/vds-progress-circular.d.ts +303 -27
  510. package/dist/types/components/progress-linear/vds-progress-linear.d.ts +109 -26
  511. package/dist/types/components/radio-button/vds-radio-button.d.ts +157 -34
  512. package/dist/types/components/segmented-button/vds-segmented-button.d.ts +151 -9
  513. package/dist/types/components/segmented-button/vds-segmented-button.stories.d.ts +6 -0
  514. package/dist/types/components/sheet/vds-sheet.d.ts +183 -10
  515. package/dist/types/components/sidenav-item/vds-sidenav-item.d.ts +179 -11
  516. package/dist/types/components/sidenav-item/vds-sidenav-item.stories.d.ts +9 -0
  517. package/dist/types/components/sidenav-item-app/vds-sidenav-item-app.d.ts +132 -6
  518. package/dist/types/components/sidenav-item-button/vds-sidenav-item-button.d.ts +137 -8
  519. package/dist/types/components/sidenav-item-category/vds-sidenav-item-category.d.ts +147 -3
  520. package/dist/types/components/sidenav-item-input/vds-sidenav-item-input.d.ts +205 -38
  521. package/dist/types/components/skeleton-loading/vds-skeleton-loading.d.ts +118 -3
  522. package/dist/types/components/slider-continuous/vds-basic-slider-continuous.d.ts +293 -64
  523. package/dist/types/components/slider-continuous/vds-basic-slider-continuous.stories.d.ts +1 -0
  524. package/dist/types/components/slider-range-continuous/vds-basic-slider-range-continuous.d.ts +346 -88
  525. package/dist/types/components/slider-range-continuous/vds-basic-slider-range-continuous.stories.d.ts +1 -0
  526. package/dist/types/components/stepper-item/vds-stepper-item.d.ts +209 -10
  527. package/dist/types/components/stepper-item-header/vds-stepper-item-header.d.ts +153 -4
  528. package/dist/types/components/switch/vds-switch.d.ts +173 -23
  529. package/dist/types/components/tab/vds-tab.d.ts +257 -16
  530. package/dist/types/components/tabs-group/vds-tabs-group.d.ts +279 -13
  531. package/dist/types/components/tabs-group/vds-tabs-group.stories.d.ts +1 -0
  532. package/dist/types/components/textarea/vds-basic-textarea.d.ts +282 -57
  533. package/dist/types/components/tooltip/vds-tooltip.d.ts +479 -14
  534. package/dist/types/components/topbar/vds-topbar.d.ts +204 -0
  535. package/dist/types/components/topbar/vds-topbar.stories.d.ts +15 -0
  536. package/dist/types/components/upload-drag/vds-upload-drag.d.ts +301 -6
  537. package/dist/types/components/upload-item/vds-upload-item.d.ts +314 -8
  538. package/dist/types/components/vds-basic-combo-box/vds-basic-combo-box.d.ts +347 -33
  539. package/dist/types/components.d.ts +22340 -866
  540. package/dist/types/constants/icon-sprite.d.ts +82 -74
  541. package/dist/types/constants/spacing-vars.d.ts +1 -0
  542. package/dist/types/index.d.ts +25 -1
  543. package/dist/types/stencil-public-runtime.d.ts +66 -5
  544. package/dist/types/utils/attribute-sync.d.ts +10 -0
  545. package/dist/types/utils/clone-attributes.d.ts +1 -0
  546. package/dist/types/utils/combine-classes.d.ts +6 -0
  547. package/dist/types/utils/device-detection.d.ts +21 -0
  548. package/dist/types/utils/floating-engine-utils.d.ts +16 -2
  549. package/dist/types/utils/floating-engine.d.ts +2 -2
  550. package/dist/types/utils/form.d.ts +12 -3
  551. package/dist/types/utils/get-deep-active-element.d.ts +1 -0
  552. package/dist/types/utils/get-random-id.d.ts +1 -0
  553. package/dist/types/utils/is-key-event.d.ts +1 -0
  554. package/dist/types/utils/is-of-type.d.ts +1 -0
  555. package/dist/types/utils/keyboard-navigation.d.ts +66 -0
  556. package/dist/types/utils/node-utils.d.ts +1 -0
  557. package/dist/types/utils/parentHasClass.d.ts +1 -0
  558. package/dist/types/utils/rems-to-px.d.ts +1 -0
  559. package/dist/types/utils/slider.utils.d.ts +61 -8
  560. package/dist/volt-basic-components/index.esm.js +1 -2
  561. package/dist/volt-basic-components/p-05a2a882.entry.js +1 -0
  562. package/dist/volt-basic-components/p-09402cea.entry.js +1 -0
  563. package/dist/volt-basic-components/p-0Hrrk76k.js +1 -2
  564. package/dist/volt-basic-components/p-101fbeb8.entry.js +1 -0
  565. package/dist/volt-basic-components/p-10fdf96c.entry.js +1 -0
  566. package/dist/volt-basic-components/p-11008108.entry.js +1 -0
  567. package/dist/volt-basic-components/p-1f389638.entry.js +1 -0
  568. package/dist/volt-basic-components/p-25e9a74e.entry.js +1 -0
  569. package/dist/volt-basic-components/p-3600d02d.entry.js +1 -0
  570. package/dist/volt-basic-components/p-4719880a.entry.js +1 -0
  571. package/dist/volt-basic-components/p-58a76c39.entry.js +1 -0
  572. package/dist/volt-basic-components/p-5a44e11e.entry.js +1 -0
  573. package/dist/volt-basic-components/p-63057c0e.entry.js +1 -0
  574. package/dist/volt-basic-components/p-6636ddcf.entry.js +1 -0
  575. package/dist/volt-basic-components/p-6715c0b0.entry.js +1 -0
  576. package/dist/volt-basic-components/p-67da205b.entry.js +1 -0
  577. package/dist/volt-basic-components/p-69d470d6.entry.js +1 -0
  578. package/dist/volt-basic-components/p-6ba78ef6.entry.js +1 -0
  579. package/dist/volt-basic-components/p-6c64718c.entry.js +1 -0
  580. package/dist/volt-basic-components/{p-6b5d3b93.entry.js → p-6ecc8e28.entry.js} +1 -2
  581. package/dist/volt-basic-components/{p-8eaa41f7.entry.js → p-7924ce85.entry.js} +1 -2
  582. package/dist/volt-basic-components/p-93b0963e.entry.js +1 -0
  583. package/dist/volt-basic-components/p-9849a2d1.entry.js +1 -0
  584. package/dist/volt-basic-components/p-9b4e42c4.entry.js +1 -0
  585. package/dist/volt-basic-components/p-B9-Fmd9T.js +1 -0
  586. package/dist/volt-basic-components/p-B9dRf1-F.js +1 -2
  587. package/dist/volt-basic-components/p-BWyJL18G.js +1 -0
  588. package/dist/volt-basic-components/p-BlDCXeBH.js +1 -0
  589. package/dist/volt-basic-components/p-Bm0XJ41F.js +1 -0
  590. package/dist/volt-basic-components/p-C0soA0Iu.js +1 -0
  591. package/dist/volt-basic-components/p-C_bdkm1d.js +1 -0
  592. package/dist/volt-basic-components/p-D4qxRmcx.js +1 -0
  593. package/dist/volt-basic-components/p-D8QL-1vr.js +1 -0
  594. package/dist/volt-basic-components/p-DOhxGOTz.js +1 -0
  595. package/dist/volt-basic-components/p-Db7Bd9sr.js +2 -0
  596. package/dist/volt-basic-components/p-DbtAUzUv.js +1 -0
  597. package/dist/volt-basic-components/p-DdZ3OHy_.js +1 -0
  598. package/dist/volt-basic-components/p-DhK6Gkic.js +1 -0
  599. package/dist/volt-basic-components/p-Dz7FcsEt.js +1 -0
  600. package/dist/volt-basic-components/p-XcEz9ONw.js +1 -0
  601. package/dist/volt-basic-components/p-a17d6698.entry.js +1 -0
  602. package/dist/volt-basic-components/p-b1fbcee4.entry.js +1 -0
  603. package/dist/volt-basic-components/p-b331bdb6.entry.js +1 -0
  604. package/dist/volt-basic-components/{p-47763451.entry.js → p-ba4c5a8a.entry.js} +1 -2
  605. package/dist/volt-basic-components/p-c298ffc1.entry.js +1 -0
  606. package/dist/volt-basic-components/p-d026ac02.entry.js +1 -0
  607. package/dist/volt-basic-components/p-d5276c76.entry.js +1 -0
  608. package/dist/volt-basic-components/p-d5c6bd2e.entry.js +1 -0
  609. package/dist/volt-basic-components/p-e103054e.entry.js +1 -0
  610. package/dist/volt-basic-components/p-e1b2a05e.entry.js +1 -0
  611. package/dist/volt-basic-components/p-e5a20a2d.entry.js +1 -0
  612. package/dist/volt-basic-components/{p-2d5a6a63.entry.js → p-e9f60758.entry.js} +1 -2
  613. package/dist/volt-basic-components/p-f9f262f0.entry.js +1 -0
  614. package/dist/volt-basic-components/p-fc33c39b.entry.js +1 -0
  615. package/dist/volt-basic-components/{p-661f67dd.entry.js → p-ff329d79.entry.js} +1 -2
  616. package/dist/volt-basic-components/p-pnHDnu6c.js +1 -0
  617. package/dist/volt-basic-components/volt-basic-components.css +1 -1
  618. package/dist/volt-basic-components/volt-basic-components.esm.js +1 -2
  619. package/package.json +12 -9
  620. package/dist/cjs/base-group-header-BBa6o7j-.js.map +0 -1
  621. package/dist/cjs/base-item-z-efWd2M.js.map +0 -1
  622. package/dist/cjs/clone-attributes-CR_poqM1.js +0 -15
  623. package/dist/cjs/clone-attributes-CR_poqM1.js.map +0 -1
  624. package/dist/cjs/combine-classes-Cs05zl1M.js.map +0 -1
  625. package/dist/cjs/floating-engine-utils-DDIydT_O.js.map +0 -1
  626. package/dist/cjs/form-Bk65VSLB.js +0 -38
  627. package/dist/cjs/form-Bk65VSLB.js.map +0 -1
  628. package/dist/cjs/icon-attr.utils-B0fSRoC6.js.map +0 -1
  629. package/dist/cjs/index-CwXszEUj.js.map +0 -1
  630. package/dist/cjs/index.cjs.js.map +0 -1
  631. package/dist/cjs/loader.cjs.js.map +0 -1
  632. package/dist/cjs/node-utils-BZh70EVv.js.map +0 -1
  633. package/dist/cjs/slider.utils-BVinQXJn.js +0 -68
  634. package/dist/cjs/slider.utils-BVinQXJn.js.map +0 -1
  635. package/dist/cjs/vds-badge-pill.utils-DDjHf_ZH.js.map +0 -1
  636. package/dist/cjs/vds-basic-dropdown.utils-B8SPgJv4.js.map +0 -1
  637. package/dist/cjs/vds-basic-input.utils-B5_cIWpL.js +0 -146
  638. package/dist/cjs/vds-basic-input.utils-B5_cIWpL.js.map +0 -1
  639. package/dist/cjs/vds-basic-slider-continuous.cjs.entry.js +0 -257
  640. package/dist/cjs/vds-icon-button.utils-BhiIMLsS.js.map +0 -1
  641. package/dist/cjs/volt-basic-components.cjs.js.map +0 -1
  642. package/dist/collection/components/accordion/vds-basic-accordion.js.map +0 -1
  643. package/dist/collection/components/accordion/vds-basic-accordion.stories.js.map +0 -1
  644. package/dist/collection/components/autocomplete/vds-basic-autocomplete.js.map +0 -1
  645. package/dist/collection/components/autocomplete/vds-basic-autocomplete.stories.js.map +0 -1
  646. package/dist/collection/components/autocomplete/vds-basic-autocomplete.utils.js.map +0 -1
  647. package/dist/collection/components/autocomplete-item/vds-autocomplete-item.js.map +0 -1
  648. package/dist/collection/components/autocomplete-item/vds-autocomplete-item.stories.js.map +0 -1
  649. package/dist/collection/components/avatar/vds-avatar.js.map +0 -1
  650. package/dist/collection/components/avatar/vds-avatar.stories.js.map +0 -1
  651. package/dist/collection/components/badge-dot/vds-badge-dot.js.map +0 -1
  652. package/dist/collection/components/badge-dot/vds-badge-dot.stories.js.map +0 -1
  653. package/dist/collection/components/badge-pill/vds-badge-pill.js.map +0 -1
  654. package/dist/collection/components/badge-pill/vds-badge-pill.stories.js.map +0 -1
  655. package/dist/collection/components/badge-pill/vds-badge-pill.utils.js.map +0 -1
  656. package/dist/collection/components/base-group-header/base-group-header.js.map +0 -1
  657. package/dist/collection/components/base-item/base-item.js.map +0 -1
  658. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.js.map +0 -1
  659. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.stories.js.map +0 -1
  660. package/dist/collection/components/basic-dropdown/vds-basic-dropdown.utils.js.map +0 -1
  661. package/dist/collection/components/breadcrumb-item/vds-breadcrumbs-item.js.map +0 -1
  662. package/dist/collection/components/breadcrumb-item/vds-breadcrumbs-item.stories.js.map +0 -1
  663. package/dist/collection/components/button/vds-button.js.map +0 -1
  664. package/dist/collection/components/button/vds-button.stories.js.map +0 -1
  665. package/dist/collection/components/card/vds-card.js.map +0 -1
  666. package/dist/collection/components/card/vds-card.stories.js.map +0 -1
  667. package/dist/collection/components/checkbox/vds-checkbox.js.map +0 -1
  668. package/dist/collection/components/checkbox/vds-checkbox.stories.js.map +0 -1
  669. package/dist/collection/components/checkbox/vds-checkbox.utils.js.map +0 -1
  670. package/dist/collection/components/chip/vds-chip.js.map +0 -1
  671. package/dist/collection/components/chip/vds-chip.stories.js.map +0 -1
  672. package/dist/collection/components/dialog/vds-dialog.js.map +0 -1
  673. package/dist/collection/components/dialog/vds-dialog.stories.js.map +0 -1
  674. package/dist/collection/components/dialog-action-footer/vds-dialog-action-footer.js.map +0 -1
  675. package/dist/collection/components/dialog-action-footer/vds-dialog-action-footer.stories.js.map +0 -1
  676. package/dist/collection/components/dialog-body/vds-dialog-body.js.map +0 -1
  677. package/dist/collection/components/dialog-body/vds-dialog-body.stories.js.map +0 -1
  678. package/dist/collection/components/dialog-header/vds-dialog-header.js.map +0 -1
  679. package/dist/collection/components/dialog-header/vds-dialog-header.stories.js.map +0 -1
  680. package/dist/collection/components/dialog-modal/vds-dialog-modal.js.map +0 -1
  681. package/dist/collection/components/dialog-modal/vds-dialog-modal.stories.js.map +0 -1
  682. package/dist/collection/components/divider/vds-divider.js.map +0 -1
  683. package/dist/collection/components/divider/vds-divider.stories.js.map +0 -1
  684. package/dist/collection/components/drawer/vds-drawer.js.map +0 -1
  685. package/dist/collection/components/drawer/vds-drawer.stories.js.map +0 -1
  686. package/dist/collection/components/dropdown-group-header/vds-dropdown-group-header.js.map +0 -1
  687. package/dist/collection/components/dropdown-group-header/vds-dropdown-group-header.stories.js.map +0 -1
  688. package/dist/collection/components/dropdown-item/vds-basic-dropdown-item.stories.js.map +0 -1
  689. package/dist/collection/components/dropdown-item/vds-dropdown-item-clicked-event.js.map +0 -1
  690. package/dist/collection/components/dropdown-item/vds-dropdown-item.js.map +0 -1
  691. package/dist/collection/components/dropdown-multiselect/vds-basic-dropdown-multiselect.js.map +0 -1
  692. package/dist/collection/components/dropdown-multiselect/vds-basic-dropdown-multiselect.stories.js.map +0 -1
  693. package/dist/collection/components/field/vds-field.js.map +0 -1
  694. package/dist/collection/components/field/vds-field.stories.js.map +0 -1
  695. package/dist/collection/components/footer/vds-footer.js.map +0 -1
  696. package/dist/collection/components/footer/vds-footer.stories.js.map +0 -1
  697. package/dist/collection/components/header/utils/utils.js.map +0 -1
  698. package/dist/collection/components/header/vds-header.js.map +0 -1
  699. package/dist/collection/components/header/vds-header.stories.js.map +0 -1
  700. package/dist/collection/components/icon/utils/icons-list.js.map +0 -1
  701. package/dist/collection/components/icon/vds-icon.js.map +0 -1
  702. package/dist/collection/components/icon/vds-icon.stories.js.map +0 -1
  703. package/dist/collection/components/icon-button/vds-icon-button.js.map +0 -1
  704. package/dist/collection/components/icon-button/vds-icon-button.stories.js.map +0 -1
  705. package/dist/collection/components/icon-button/vds-icon-button.utils.js.map +0 -1
  706. package/dist/collection/components/input/vds-basic-input.js.map +0 -1
  707. package/dist/collection/components/input/vds-basic-input.stories.js.map +0 -1
  708. package/dist/collection/components/input/vds-basic-input.utils.js.map +0 -1
  709. package/dist/collection/components/key-value-pair/vds-key-value-pair.js.map +0 -1
  710. package/dist/collection/components/key-value-pair/vds-key-value-pair.stories.js.map +0 -1
  711. package/dist/collection/components/label/vds-label.js.map +0 -1
  712. package/dist/collection/components/label/vds-label.stories.js.map +0 -1
  713. package/dist/collection/components/link/vds-link.js.map +0 -1
  714. package/dist/collection/components/link/vds-link.stories.js.map +0 -1
  715. package/dist/collection/components/menu/vds-menu.js.map +0 -1
  716. package/dist/collection/components/menu/vds-menu.stories.js.map +0 -1
  717. package/dist/collection/components/menu-group-header/vds-menu-group-header.js.map +0 -1
  718. package/dist/collection/components/menu-group-header/vds-menu-group-header.stories.js.map +0 -1
  719. package/dist/collection/components/menu-item/vds-menu-item.js.map +0 -1
  720. package/dist/collection/components/menu-item/vds-menu-item.stories.js.map +0 -1
  721. package/dist/collection/components/menu-list/vds-menu-list.js.map +0 -1
  722. package/dist/collection/components/notification/vds-notification-utils.js.map +0 -1
  723. package/dist/collection/components/notification/vds-notification.js.map +0 -1
  724. package/dist/collection/components/notification/vds-notification.stories.js.map +0 -1
  725. package/dist/collection/components/popover/utils/utils.js.map +0 -1
  726. package/dist/collection/components/popover/vds-popover.js.map +0 -1
  727. package/dist/collection/components/popover/vds-popover.stories.js.map +0 -1
  728. package/dist/collection/components/progress-circular/vds-progress-circular.js.map +0 -1
  729. package/dist/collection/components/progress-circular/vds-progress-circular.stories.js.map +0 -1
  730. package/dist/collection/components/progress-linear/vds-progress-linear.js.map +0 -1
  731. package/dist/collection/components/progress-linear/vds-progress-linear.stories.js.map +0 -1
  732. package/dist/collection/components/radio-button/vds-radio-button.js.map +0 -1
  733. package/dist/collection/components/radio-button/vds-radio-button.stories.js.map +0 -1
  734. package/dist/collection/components/radio-button/vds-radio-button.utils.js.map +0 -1
  735. package/dist/collection/components/segmented-button/vds-segmented-button.js.map +0 -1
  736. package/dist/collection/components/segmented-button/vds-segmented-button.stories.js.map +0 -1
  737. package/dist/collection/components/sheet/vds-sheet.js.map +0 -1
  738. package/dist/collection/components/sheet/vds-sheet.stories.js.map +0 -1
  739. package/dist/collection/components/sidenav-item/vds-sidenav-item.js.map +0 -1
  740. package/dist/collection/components/sidenav-item/vds-sidenav-item.stories.js.map +0 -1
  741. package/dist/collection/components/sidenav-item-app/vds-sidenav-item-app.js.map +0 -1
  742. package/dist/collection/components/sidenav-item-app/vds-sidenav-item-app.stories.js.map +0 -1
  743. package/dist/collection/components/sidenav-item-button/vds-sidenav-item-button.js.map +0 -1
  744. package/dist/collection/components/sidenav-item-button/vds-sidenav-item-button.stories.js.map +0 -1
  745. package/dist/collection/components/sidenav-item-category/vds-sidenav-item-category.js.map +0 -1
  746. package/dist/collection/components/sidenav-item-category/vds-sidenav-item-category.stories.js.map +0 -1
  747. package/dist/collection/components/sidenav-item-input/vds-sidenav-item-input.js.map +0 -1
  748. package/dist/collection/components/sidenav-item-input/vds-sidenav-item-input.stories.js.map +0 -1
  749. package/dist/collection/components/skeleton-loading/vds-skeleton-loading.js.map +0 -1
  750. package/dist/collection/components/skeleton-loading/vds-skeleton-loading.stories.js.map +0 -1
  751. package/dist/collection/components/slider-continuous/vds-basic-slider-continuous.js.map +0 -1
  752. package/dist/collection/components/slider-continuous/vds-basic-slider-continuous.stories.js.map +0 -1
  753. package/dist/collection/components/slider-range-continuous/vds-basic-slider-range-continuous.js.map +0 -1
  754. package/dist/collection/components/slider-range-continuous/vds-basic-slider-range-continuous.stories.js.map +0 -1
  755. package/dist/collection/components/stepper-item/vds-stepper-item.js.map +0 -1
  756. package/dist/collection/components/stepper-item/vds-stepper-item.stories.js.map +0 -1
  757. package/dist/collection/components/stepper-item-header/vds-stepper-item-header.js.map +0 -1
  758. package/dist/collection/components/stepper-item-header/vds-stepper-item-header.stories.js.map +0 -1
  759. package/dist/collection/components/switch/vds-switch.js.map +0 -1
  760. package/dist/collection/components/switch/vds-switch.stories.js.map +0 -1
  761. package/dist/collection/components/tab/vds-tab.js.map +0 -1
  762. package/dist/collection/components/tab/vds-tab.stories.js.map +0 -1
  763. package/dist/collection/components/tabs-group/vds-tabs-group.js.map +0 -1
  764. package/dist/collection/components/tabs-group/vds-tabs-group.stories.js.map +0 -1
  765. package/dist/collection/components/textarea/vds-basic-textarea.js.map +0 -1
  766. package/dist/collection/components/textarea/vds-basic-textarea.stories.js.map +0 -1
  767. package/dist/collection/components/tooltip/vds-tooltip.js.map +0 -1
  768. package/dist/collection/components/tooltip/vds-tooltip.stories.js.map +0 -1
  769. package/dist/collection/components/upload-drag/vds-upload-drag.js.map +0 -1
  770. package/dist/collection/components/upload-drag/vds-upload-drag.stories.js.map +0 -1
  771. package/dist/collection/components/upload-item/vds-upload-item.js.map +0 -1
  772. package/dist/collection/components/vds-basic-combo-box/vds-basic-combo-box.js.map +0 -1
  773. package/dist/collection/components/vds-basic-combo-box/vds-basic-combo-box.stories.js.map +0 -1
  774. package/dist/collection/constants/color-vars.js.map +0 -1
  775. package/dist/collection/constants/icon-sprite.js.map +0 -1
  776. package/dist/collection/constants/shadow-vars.js.map +0 -1
  777. package/dist/collection/constants/spacing-vars.js.map +0 -1
  778. package/dist/collection/constants/thickness-vars.js.map +0 -1
  779. package/dist/collection/constants/typography-vars.js.map +0 -1
  780. package/dist/collection/definitions/colors.js.map +0 -1
  781. package/dist/collection/definitions/shadows.js.map +0 -1
  782. package/dist/collection/definitions/spacing.js.map +0 -1
  783. package/dist/collection/definitions/thickness.js.map +0 -1
  784. package/dist/collection/definitions/typography.js.map +0 -1
  785. package/dist/collection/index.js.map +0 -1
  786. package/dist/collection/utils/array-utils.js.map +0 -1
  787. package/dist/collection/utils/clone-attributes.js.map +0 -1
  788. package/dist/collection/utils/combine-classes.js.map +0 -1
  789. package/dist/collection/utils/floating-engine-utils.js.map +0 -1
  790. package/dist/collection/utils/floating-engine.js.map +0 -1
  791. package/dist/collection/utils/form.js.map +0 -1
  792. package/dist/collection/utils/icon-attr.utils.js.map +0 -1
  793. package/dist/collection/utils/icon-generation.utils.js.map +0 -1
  794. package/dist/collection/utils/icon-utils.js.map +0 -1
  795. package/dist/collection/utils/node-utils.js.map +0 -1
  796. package/dist/collection/utils/number-utils.js.map +0 -1
  797. package/dist/collection/utils/slider.utils.js.map +0 -1
  798. package/dist/collection/utils/spacing-utils.js.map +0 -1
  799. package/dist/collection/utils/utils.js.map +0 -1
  800. package/dist/components/base-group-header.js.map +0 -1
  801. package/dist/components/base-item.js.map +0 -1
  802. package/dist/components/clone-attributes.js.map +0 -1
  803. package/dist/components/combine-classes.js.map +0 -1
  804. package/dist/components/floating-engine-utils.js.map +0 -1
  805. package/dist/components/form.js.map +0 -1
  806. package/dist/components/icon-attr.utils.js.map +0 -1
  807. package/dist/components/icon-sprite.js.map +0 -1
  808. package/dist/components/index.js.map +0 -1
  809. package/dist/components/node-utils.js.map +0 -1
  810. package/dist/components/slider.utils.js.map +0 -1
  811. package/dist/components/utils.js.map +0 -1
  812. package/dist/components/vds-autocomplete-item.js.map +0 -1
  813. package/dist/components/vds-autocomplete-item2.js.map +0 -1
  814. package/dist/components/vds-avatar.js.map +0 -1
  815. package/dist/components/vds-avatar2.js.map +0 -1
  816. package/dist/components/vds-badge-dot.js.map +0 -1
  817. package/dist/components/vds-badge-dot2.js.map +0 -1
  818. package/dist/components/vds-badge-pill.js.map +0 -1
  819. package/dist/components/vds-badge-pill.utils.js.map +0 -1
  820. package/dist/components/vds-basic-accordion.js.map +0 -1
  821. package/dist/components/vds-basic-autocomplete.js.map +0 -1
  822. package/dist/components/vds-basic-combo-box.js.map +0 -1
  823. package/dist/components/vds-basic-dropdown-multiselect.js.map +0 -1
  824. package/dist/components/vds-basic-dropdown.js.map +0 -1
  825. package/dist/components/vds-basic-dropdown.utils.js.map +0 -1
  826. package/dist/components/vds-basic-input.js.map +0 -1
  827. package/dist/components/vds-basic-input.utils.js.map +0 -1
  828. package/dist/components/vds-basic-input2.js.map +0 -1
  829. package/dist/components/vds-basic-slider-continuous.js.map +0 -1
  830. package/dist/components/vds-basic-slider-range-continuous.js.map +0 -1
  831. package/dist/components/vds-basic-textarea.js.map +0 -1
  832. package/dist/components/vds-breadcrumbs-item.js.map +0 -1
  833. package/dist/components/vds-button.js.map +0 -1
  834. package/dist/components/vds-card.js.map +0 -1
  835. package/dist/components/vds-card2.js.map +0 -1
  836. package/dist/components/vds-checkbox.js.map +0 -1
  837. package/dist/components/vds-chip.js.map +0 -1
  838. package/dist/components/vds-chip2.js.map +0 -1
  839. package/dist/components/vds-dialog-action-footer.js.map +0 -1
  840. package/dist/components/vds-dialog-body.js.map +0 -1
  841. package/dist/components/vds-dialog-header.js.map +0 -1
  842. package/dist/components/vds-dialog-modal.js.map +0 -1
  843. package/dist/components/vds-dialog.js.map +0 -1
  844. package/dist/components/vds-divider.js.map +0 -1
  845. package/dist/components/vds-divider2.js.map +0 -1
  846. package/dist/components/vds-drawer.js.map +0 -1
  847. package/dist/components/vds-dropdown-group-header.js.map +0 -1
  848. package/dist/components/vds-dropdown-item.js.map +0 -1
  849. package/dist/components/vds-field.js.map +0 -1
  850. package/dist/components/vds-footer.js.map +0 -1
  851. package/dist/components/vds-header.js.map +0 -1
  852. package/dist/components/vds-icon-button.js.map +0 -1
  853. package/dist/components/vds-icon-button.utils.js.map +0 -1
  854. package/dist/components/vds-icon-button2.js.map +0 -1
  855. package/dist/components/vds-icon.js.map +0 -1
  856. package/dist/components/vds-icon2.js.map +0 -1
  857. package/dist/components/vds-key-value-pair.js.map +0 -1
  858. package/dist/components/vds-label.js.map +0 -1
  859. package/dist/components/vds-label2.js.map +0 -1
  860. package/dist/components/vds-link.js.map +0 -1
  861. package/dist/components/vds-menu-group-header.js.map +0 -1
  862. package/dist/components/vds-menu-item.js.map +0 -1
  863. package/dist/components/vds-menu-list.js.map +0 -1
  864. package/dist/components/vds-menu.js.map +0 -1
  865. package/dist/components/vds-notification.js.map +0 -1
  866. package/dist/components/vds-popover.js.map +0 -1
  867. package/dist/components/vds-progress-circular.js.map +0 -1
  868. package/dist/components/vds-progress-circular2.js.map +0 -1
  869. package/dist/components/vds-progress-linear.js.map +0 -1
  870. package/dist/components/vds-radio-button.js.map +0 -1
  871. package/dist/components/vds-segmented-button.js.map +0 -1
  872. package/dist/components/vds-sheet.js.map +0 -1
  873. package/dist/components/vds-sidenav-item-app.js.map +0 -1
  874. package/dist/components/vds-sidenav-item-button.js.map +0 -1
  875. package/dist/components/vds-sidenav-item-category.js.map +0 -1
  876. package/dist/components/vds-sidenav-item-input.js.map +0 -1
  877. package/dist/components/vds-sidenav-item.js.map +0 -1
  878. package/dist/components/vds-sidenav-item2.js.map +0 -1
  879. package/dist/components/vds-skeleton-loading.js.map +0 -1
  880. package/dist/components/vds-stepper-item-header.js.map +0 -1
  881. package/dist/components/vds-stepper-item.js.map +0 -1
  882. package/dist/components/vds-switch.js.map +0 -1
  883. package/dist/components/vds-tab.js.map +0 -1
  884. package/dist/components/vds-tabs-group.js.map +0 -1
  885. package/dist/components/vds-tooltip.js.map +0 -1
  886. package/dist/components/vds-upload-drag.js.map +0 -1
  887. package/dist/components/vds-upload-item.js.map +0 -1
  888. package/dist/esm/base-group-header-Dv2b0x2u.js.map +0 -1
  889. package/dist/esm/base-item-BJCnJ_64.js.map +0 -1
  890. package/dist/esm/clone-attributes-CqHfuEQc.js +0 -13
  891. package/dist/esm/clone-attributes-CqHfuEQc.js.map +0 -1
  892. package/dist/esm/combine-classes-B23UkaEC.js +0 -6
  893. package/dist/esm/combine-classes-B23UkaEC.js.map +0 -1
  894. package/dist/esm/floating-engine-utils-ClEAm9Wn.js.map +0 -1
  895. package/dist/esm/form-BVF1zxcZ.js +0 -35
  896. package/dist/esm/form-BVF1zxcZ.js.map +0 -1
  897. package/dist/esm/icon-attr.utils-DB1QD50d.js.map +0 -1
  898. package/dist/esm/index-YrP3OJ_T.js.map +0 -1
  899. package/dist/esm/index.js.map +0 -1
  900. package/dist/esm/loader.js.map +0 -1
  901. package/dist/esm/node-utils-Ds4TZ2g7.js.map +0 -1
  902. package/dist/esm/slider.utils-B7ukJ3F4.js +0 -64
  903. package/dist/esm/slider.utils-B7ukJ3F4.js.map +0 -1
  904. package/dist/esm/vds-autocomplete-item.entry.js.map +0 -1
  905. package/dist/esm/vds-badge-pill.entry.js.map +0 -1
  906. package/dist/esm/vds-badge-pill.utils-0Hrrk76k.js.map +0 -1
  907. package/dist/esm/vds-basic-accordion.entry.js.map +0 -1
  908. package/dist/esm/vds-basic-autocomplete.entry.js.map +0 -1
  909. package/dist/esm/vds-basic-combo-box.entry.js.map +0 -1
  910. package/dist/esm/vds-basic-dropdown.utils-BMJUPaKN.js.map +0 -1
  911. package/dist/esm/vds-basic-input.utils-DswuOEPv.js +0 -137
  912. package/dist/esm/vds-basic-input.utils-DswuOEPv.js.map +0 -1
  913. package/dist/esm/vds-basic-slider-continuous.entry.js +0 -255
  914. package/dist/esm/vds-basic-slider-continuous.entry.js.map +0 -1
  915. package/dist/esm/vds-basic-slider-range-continuous.entry.js.map +0 -1
  916. package/dist/esm/vds-breadcrumbs-item.entry.js.map +0 -1
  917. package/dist/esm/vds-chip.entry.js.map +0 -1
  918. package/dist/esm/vds-dialog-action-footer.entry.js.map +0 -1
  919. package/dist/esm/vds-dialog-body.entry.js.map +0 -1
  920. package/dist/esm/vds-dialog-header.entry.js.map +0 -1
  921. package/dist/esm/vds-dialog-modal.entry.js.map +0 -1
  922. package/dist/esm/vds-dialog.entry.js.map +0 -1
  923. package/dist/esm/vds-footer.entry.js.map +0 -1
  924. package/dist/esm/vds-header.entry.js.map +0 -1
  925. package/dist/esm/vds-icon-button.utils-B9dRf1-F.js.map +0 -1
  926. package/dist/esm/vds-key-value-pair.entry.js.map +0 -1
  927. package/dist/esm/vds-notification.entry.js.map +0 -1
  928. package/dist/esm/vds-popover.entry.js.map +0 -1
  929. package/dist/esm/vds-progress-linear.entry.js.map +0 -1
  930. package/dist/esm/vds-radio-button.entry.js.map +0 -1
  931. package/dist/esm/vds-segmented-button.entry.js.map +0 -1
  932. package/dist/esm/vds-sheet.entry.js.map +0 -1
  933. package/dist/esm/vds-sidenav-item-app.entry.js.map +0 -1
  934. package/dist/esm/vds-sidenav-item-button.entry.js.map +0 -1
  935. package/dist/esm/vds-sidenav-item-category.entry.js.map +0 -1
  936. package/dist/esm/vds-sidenav-item-input.entry.js.map +0 -1
  937. package/dist/esm/vds-skeleton-loading.entry.js.map +0 -1
  938. package/dist/esm/vds-stepper-item-header.entry.js.map +0 -1
  939. package/dist/esm/vds-stepper-item.entry.js.map +0 -1
  940. package/dist/esm/vds-switch.entry.js.map +0 -1
  941. package/dist/esm/vds-tab.entry.js.map +0 -1
  942. package/dist/esm/vds-tabs-group.entry.js.map +0 -1
  943. package/dist/esm/vds-tooltip.entry.js.map +0 -1
  944. package/dist/esm/vds-upload-drag.entry.js.map +0 -1
  945. package/dist/esm/volt-basic-components.js.map +0 -1
  946. package/dist/volt-basic-components/index.esm.js.map +0 -1
  947. package/dist/volt-basic-components/loader.esm.js.map +0 -1
  948. package/dist/volt-basic-components/p-0Hrrk76k.js.map +0 -1
  949. package/dist/volt-basic-components/p-20d5fd8b.entry.js +0 -2
  950. package/dist/volt-basic-components/p-20d5fd8b.entry.js.map +0 -1
  951. package/dist/volt-basic-components/p-2a61923a.entry.js +0 -2
  952. package/dist/volt-basic-components/p-2a61923a.entry.js.map +0 -1
  953. package/dist/volt-basic-components/p-2d5a6a63.entry.js.map +0 -1
  954. package/dist/volt-basic-components/p-32b69f9b.entry.js +0 -2
  955. package/dist/volt-basic-components/p-32b69f9b.entry.js.map +0 -1
  956. package/dist/volt-basic-components/p-34ea0d8c.entry.js +0 -2
  957. package/dist/volt-basic-components/p-34ea0d8c.entry.js.map +0 -1
  958. package/dist/volt-basic-components/p-364cb260.entry.js +0 -2
  959. package/dist/volt-basic-components/p-364cb260.entry.js.map +0 -1
  960. package/dist/volt-basic-components/p-47763451.entry.js.map +0 -1
  961. package/dist/volt-basic-components/p-485bde4b.entry.js +0 -2
  962. package/dist/volt-basic-components/p-485bde4b.entry.js.map +0 -1
  963. package/dist/volt-basic-components/p-4d5baf21.entry.js +0 -2
  964. package/dist/volt-basic-components/p-4d5baf21.entry.js.map +0 -1
  965. package/dist/volt-basic-components/p-551ca7c2.entry.js +0 -2
  966. package/dist/volt-basic-components/p-551ca7c2.entry.js.map +0 -1
  967. package/dist/volt-basic-components/p-564d6645.entry.js +0 -2
  968. package/dist/volt-basic-components/p-564d6645.entry.js.map +0 -1
  969. package/dist/volt-basic-components/p-59590dea.entry.js +0 -2
  970. package/dist/volt-basic-components/p-59590dea.entry.js.map +0 -1
  971. package/dist/volt-basic-components/p-5b84a64e.entry.js +0 -2
  972. package/dist/volt-basic-components/p-5b84a64e.entry.js.map +0 -1
  973. package/dist/volt-basic-components/p-647240b0.entry.js +0 -2
  974. package/dist/volt-basic-components/p-647240b0.entry.js.map +0 -1
  975. package/dist/volt-basic-components/p-661f67dd.entry.js.map +0 -1
  976. package/dist/volt-basic-components/p-6b5d3b93.entry.js.map +0 -1
  977. package/dist/volt-basic-components/p-70f9e8a4.entry.js +0 -2
  978. package/dist/volt-basic-components/p-70f9e8a4.entry.js.map +0 -1
  979. package/dist/volt-basic-components/p-72402820.entry.js +0 -2
  980. package/dist/volt-basic-components/p-72402820.entry.js.map +0 -1
  981. package/dist/volt-basic-components/p-8532d9d2.entry.js +0 -2
  982. package/dist/volt-basic-components/p-8532d9d2.entry.js.map +0 -1
  983. package/dist/volt-basic-components/p-8eaa41f7.entry.js.map +0 -1
  984. package/dist/volt-basic-components/p-8ee1bb32.entry.js +0 -2
  985. package/dist/volt-basic-components/p-8ee1bb32.entry.js.map +0 -1
  986. package/dist/volt-basic-components/p-8f92ee2b.entry.js +0 -2
  987. package/dist/volt-basic-components/p-8f92ee2b.entry.js.map +0 -1
  988. package/dist/volt-basic-components/p-934fc893.entry.js +0 -2
  989. package/dist/volt-basic-components/p-934fc893.entry.js.map +0 -1
  990. package/dist/volt-basic-components/p-B23UkaEC.js +0 -2
  991. package/dist/volt-basic-components/p-B23UkaEC.js.map +0 -1
  992. package/dist/volt-basic-components/p-B7ukJ3F4.js +0 -2
  993. package/dist/volt-basic-components/p-B7ukJ3F4.js.map +0 -1
  994. package/dist/volt-basic-components/p-B9dRf1-F.js.map +0 -1
  995. package/dist/volt-basic-components/p-BMJUPaKN.js +0 -2
  996. package/dist/volt-basic-components/p-BMJUPaKN.js.map +0 -1
  997. package/dist/volt-basic-components/p-BVF1zxcZ.js +0 -2
  998. package/dist/volt-basic-components/p-BVF1zxcZ.js.map +0 -1
  999. package/dist/volt-basic-components/p-CTN5pQJJ.js +0 -2
  1000. package/dist/volt-basic-components/p-CTN5pQJJ.js.map +0 -1
  1001. package/dist/volt-basic-components/p-ClEAm9Wn.js +0 -2
  1002. package/dist/volt-basic-components/p-ClEAm9Wn.js.map +0 -1
  1003. package/dist/volt-basic-components/p-CqHfuEQc.js +0 -2
  1004. package/dist/volt-basic-components/p-CqHfuEQc.js.map +0 -1
  1005. package/dist/volt-basic-components/p-DB1QD50d.js +0 -2
  1006. package/dist/volt-basic-components/p-DB1QD50d.js.map +0 -1
  1007. package/dist/volt-basic-components/p-DTEGZIhO.js +0 -2
  1008. package/dist/volt-basic-components/p-DTEGZIhO.js.map +0 -1
  1009. package/dist/volt-basic-components/p-DswuOEPv.js +0 -2
  1010. package/dist/volt-basic-components/p-DswuOEPv.js.map +0 -1
  1011. package/dist/volt-basic-components/p-YrP3OJ_T.js +0 -3
  1012. package/dist/volt-basic-components/p-YrP3OJ_T.js.map +0 -1
  1013. package/dist/volt-basic-components/p-a1cc6c0d.entry.js +0 -2
  1014. package/dist/volt-basic-components/p-a1cc6c0d.entry.js.map +0 -1
  1015. package/dist/volt-basic-components/p-a41826c5.entry.js +0 -2
  1016. package/dist/volt-basic-components/p-a41826c5.entry.js.map +0 -1
  1017. package/dist/volt-basic-components/p-a4c1543b.entry.js +0 -2
  1018. package/dist/volt-basic-components/p-a4c1543b.entry.js.map +0 -1
  1019. package/dist/volt-basic-components/p-aca9ba37.entry.js +0 -2
  1020. package/dist/volt-basic-components/p-aca9ba37.entry.js.map +0 -1
  1021. package/dist/volt-basic-components/p-b0829f2e.entry.js +0 -2
  1022. package/dist/volt-basic-components/p-b0829f2e.entry.js.map +0 -1
  1023. package/dist/volt-basic-components/p-c05abda7.entry.js +0 -2
  1024. package/dist/volt-basic-components/p-c05abda7.entry.js.map +0 -1
  1025. package/dist/volt-basic-components/p-c0849c4c.entry.js +0 -2
  1026. package/dist/volt-basic-components/p-c0849c4c.entry.js.map +0 -1
  1027. package/dist/volt-basic-components/p-c50a4dc1.entry.js +0 -2
  1028. package/dist/volt-basic-components/p-c50a4dc1.entry.js.map +0 -1
  1029. package/dist/volt-basic-components/p-d15595fe.entry.js +0 -2
  1030. package/dist/volt-basic-components/p-d15595fe.entry.js.map +0 -1
  1031. package/dist/volt-basic-components/p-e611857c.entry.js +0 -2
  1032. package/dist/volt-basic-components/p-e611857c.entry.js.map +0 -1
  1033. package/dist/volt-basic-components/p-eb8e671a.entry.js +0 -2
  1034. package/dist/volt-basic-components/p-eb8e671a.entry.js.map +0 -1
  1035. package/dist/volt-basic-components/p-ed992336.entry.js +0 -2
  1036. package/dist/volt-basic-components/p-ed992336.entry.js.map +0 -1
  1037. package/dist/volt-basic-components/p-f261ff52.entry.js +0 -2
  1038. package/dist/volt-basic-components/p-f261ff52.entry.js.map +0 -1
  1039. package/dist/volt-basic-components/p-f9a6e970.entry.js +0 -2
  1040. package/dist/volt-basic-components/p-f9a6e970.entry.js.map +0 -1
  1041. package/dist/volt-basic-components/p-jn6JrwWv.js +0 -2
  1042. package/dist/volt-basic-components/p-jn6JrwWv.js.map +0 -1
  1043. package/dist/volt-basic-components/volt-basic-components.esm.js.map +0 -1
@@ -5,60 +5,285 @@ import { updateFloatingBoxPosition } from "../../utils/floating-engine-utils";
5
5
  import { cloneAttributes } from "../../utils/clone-attributes";
6
6
  import { findOptionByExactValue, findOptionByValue, getFilteredOptions } from "./vds-basic-autocomplete.utils";
7
7
  import { getIconSize, getActionIconButtonSize, getIconColor } from "../../utils/icon-attr.utils";
8
+ import { getDeepActiveElement, KeyboardNavigation } from "../..";
9
+ /**
10
+ * @component vds-basic-autocomplete
11
+ * @description An autocomplete component that provides filterable dropdown suggestions.
12
+ * Supports single selection, multi-selection, dropdown mode, and various customization options.
13
+ * @slot items - Autocomplete item elements
14
+ * @slot header - Content displayed in the dropdown header
15
+ * @slot (default) - Default slot for autocomplete items
16
+ * @example
17
+ * <!-- Basic autocomplete (single selection with filtering) -->
18
+ * <vds-basic-autocomplete placeholder="Search countries...">
19
+ * <vds-autocomplete-item value="usa">United States</vds-autocomplete-item>
20
+ * <vds-autocomplete-item value="canada">Canada</vds-autocomplete-item>
21
+ * <vds-autocomplete-item value="mexico">Mexico</vds-autocomplete-item>
22
+ * </vds-basic-autocomplete>
23
+ *
24
+ * <!-- With pre-selected value -->
25
+ * <vds-basic-autocomplete
26
+ * value="canada"
27
+ * placeholder="Select country">
28
+ * <vds-autocomplete-item value="usa">United States</vds-autocomplete-item>
29
+ * <vds-autocomplete-item value="canada">Canada</vds-autocomplete-item>
30
+ * <vds-autocomplete-item value="mexico">Mexico</vds-autocomplete-item>
31
+ * </vds-basic-autocomplete>
32
+ *
33
+ * <!-- Multiple selection mode -->
34
+ * <vds-basic-autocomplete
35
+ * id="multi-select"
36
+ * multiple
37
+ * placeholder="Select countries">
38
+ * <vds-autocomplete-item value="usa">United States</vds-autocomplete-item>
39
+ * <vds-autocomplete-item value="canada">Canada</vds-autocomplete-item>
40
+ * <vds-autocomplete-item value="mexico">Mexico</vds-autocomplete-item>
41
+ * <vds-autocomplete-item value="uk">United Kingdom</vds-autocomplete-item>
42
+ * </vds-basic-autocomplete>
43
+ * <script>
44
+ * const multiSelect = document.getElementById('multi-select');
45
+ * multiSelect.multipleValues = ['usa', 'canada'];
46
+ * </script>
47
+ *
48
+ * <!-- Dropdown mode (select without filtering) -->
49
+ * <vds-basic-autocomplete
50
+ * dropdown
51
+ * selected-dropdown-value="option2"
52
+ * placeholder="Select option">
53
+ * <vds-autocomplete-item value="option1">Option 1</vds-autocomplete-item>
54
+ * <vds-autocomplete-item value="option2">Option 2</vds-autocomplete-item>
55
+ * <vds-autocomplete-item value="option3">Option 3</vds-autocomplete-item>
56
+ * </vds-basic-autocomplete>
57
+ *
58
+ * <!-- With informative icon and custom size -->
59
+ * <vds-basic-autocomplete
60
+ * placeholder="Search..."
61
+ * informative-icon="system"
62
+ * size="large">
63
+ * <vds-autocomplete-item value="item1">Item 1</vds-autocomplete-item>
64
+ * <vds-autocomplete-item value="item2">Item 2</vds-autocomplete-item>
65
+ * </vds-basic-autocomplete>
66
+ *
67
+ * <!-- Dynamic informative icon from selected item -->
68
+ * <vds-basic-autocomplete
69
+ * placeholder="Choose status"
70
+ * dynamic-informative-icon
71
+ * dropdown>
72
+ * <vds-autocomplete-item value="active" informative-icon="checked">Active</vds-autocomplete-item>
73
+ * <vds-autocomplete-item value="pending" informative-icon="time">Pending</vds-autocomplete-item>
74
+ * <vds-autocomplete-item value="inactive" informative-icon="error">Inactive</vds-autocomplete-item>
75
+ * </vds-basic-autocomplete>
76
+ *
77
+ * <!-- With debounce and custom action icon -->
78
+ * <vds-basic-autocomplete
79
+ * id="debounced-search"
80
+ * placeholder="Type to search..."
81
+ * action-icon="magnify">
82
+ * <vds-autocomplete-item value="result1">Result 1</vds-autocomplete-item>
83
+ * <vds-autocomplete-item value="result2">Result 2</vds-autocomplete-item>
84
+ * <vds-autocomplete-item value="result3">Result 3</vds-autocomplete-item>
85
+ * </vds-basic-autocomplete>
86
+ * <script>
87
+ * const debouncedSearch = document.getElementById('debounced-search');
88
+ * debouncedSearch.debounce = 300;
89
+ * </script>
90
+ *
91
+ * <!-- With empty message and max height -->
92
+ * <vds-basic-autocomplete
93
+ * placeholder="Search items..."
94
+ * show-empty-message
95
+ * empty-message="No items found"
96
+ * max-height="200px">
97
+ * <vds-autocomplete-item value="a">Item A</vds-autocomplete-item>
98
+ * <vds-autocomplete-item value="b">Item B</vds-autocomplete-item>
99
+ * </vds-basic-autocomplete>
100
+ *
101
+ * <!-- Disabled and readonly states -->
102
+ * <vds-basic-autocomplete
103
+ * disabled
104
+ * value="disabled-value"
105
+ * placeholder="Disabled">
106
+ * <vds-autocomplete-item value="disabled-value">Disabled Item</vds-autocomplete-item>
107
+ * </vds-basic-autocomplete>
108
+ *
109
+ * <vds-basic-autocomplete
110
+ * is-readonly
111
+ * value="readonly-value"
112
+ * placeholder="Read only">
113
+ * <vds-autocomplete-item value="readonly-value">Read Only Item</vds-autocomplete-item>
114
+ * </vds-basic-autocomplete>
115
+ *
116
+ * <!-- With error state and required indicator -->
117
+ * <vds-basic-autocomplete
118
+ * error
119
+ * is-required
120
+ * placeholder="Required field">
121
+ * <vds-autocomplete-item value="val1">Value 1</vds-autocomplete-item>
122
+ * <vds-autocomplete-item value="val2">Value 2</vds-autocomplete-item>
123
+ * </vds-basic-autocomplete>
124
+ *
125
+ * <!-- Small size without clear button -->
126
+ * <vds-basic-autocomplete
127
+ * size="small"
128
+ * show-clear-button="false"
129
+ * placeholder="Compact autocomplete">
130
+ * <vds-autocomplete-item value="opt1">Option 1</vds-autocomplete-item>
131
+ * <vds-autocomplete-item value="opt2">Option 2</vds-autocomplete-item>
132
+ * </vds-basic-autocomplete>
133
+ *
134
+ * <!-- With header slot -->
135
+ * <vds-basic-autocomplete placeholder="Select with header">
136
+ * <div slot="header">
137
+ * <strong>Available Options</strong>
138
+ * </div>
139
+ * <vds-autocomplete-item value="item1">Item 1</vds-autocomplete-item>
140
+ * <vds-autocomplete-item value="item2">Item 2</vds-autocomplete-item>
141
+ * </vds-basic-autocomplete>
142
+ */
8
143
  export class VdsBasicAutocomplete {
9
144
  constructor() {
10
145
  /**
11
146
  * Sets the internal input size.
12
- * If multiple property is true, This will only set the basic-input text value.
147
+ * If multiple property is true, this will only set the basic-input text value.
13
148
  * If multiple property is false and the value prop matches with an option, the option will be selected,
14
- * Otherwise text will be set in the basic-input.
149
+ * otherwise text will be set in the basic-input.
150
+ * @type {("small" | "medium" | "large")}
151
+ * @default "medium"
15
152
  */
16
153
  this.size = "medium";
17
- /** Sets the selected options when multiple is activated */
154
+ /**
155
+ * Sets the selected options when multiple selection is activated.
156
+ * @type {Array<string>}
157
+ * @default []
158
+ */
18
159
  this.multipleValues = [];
19
- /** Sets the selected dropdown value when dropdown is activated */
160
+ /**
161
+ * Sets the selected dropdown value when dropdown mode is activated.
162
+ * @type {string}
163
+ * @default ""
164
+ */
20
165
  this.selectedDropdownValue = "";
21
- /** Toggles the required sign in the internal input */
166
+ /**
167
+ * Toggles the required indicator in the internal input.
168
+ * @type {boolean}
169
+ * @default false
170
+ */
22
171
  this.isRequired = false;
23
- /** Sets custom allowed styles to input (text-align, text-transform, unicode-bidi, direction) */
172
+ /**
173
+ * Allows autocomplete-item informativeIcon to reflect dynamically as the autocomplete's informativeIcon.
174
+ * When true, the selected item's icon becomes the autocomplete's icon.
175
+ * @type {boolean}
176
+ * @default false
177
+ */
178
+ this.dynamicInformativeIcon = false;
179
+ /**
180
+ * Determines which option field to display in the input when an option is selected.
181
+ * - "label": displays the option's label if it exists, otherwise falls back to value.
182
+ * - "value": displays the option's value if it exists, otherwise falls back to label.
183
+ * - "formatted": runs the `formatter` function using label/value fallback order and displays the result.
184
+ * If formatter is not defined, it falls back to label first, then value.
185
+ * @type {"label" | "value" | "formatted"}
186
+ * @default "label"
187
+ */
188
+ this.displayValue = "label";
189
+ /**
190
+ * Sets custom allowed styles to input (text-align, text-transform, unicode-bidi, direction).
191
+ * @type {Array<{ [key: string]: string }>}
192
+ * @default []
193
+ */
24
194
  this.allowedStyles = [];
25
- /** Sets the width value for the floating container of the items to match the items list width */
195
+ /**
196
+ * Sets the floating container width to match the input width.
197
+ * @type {boolean}
198
+ * @default true
199
+ */
26
200
  this.matchWidth = true;
27
- /** Allows user to define a search icon inside the input at its right (zoom by default) . */
201
+ /**
202
+ * Defines a search icon inside the input at its right.
203
+ * @type {string}
204
+ * @default "zoom"
205
+ */
28
206
  this.actionIcon = "zoom";
29
- /** Sets the autocomplete clear button visibility. */
207
+ /**
208
+ * Controls the visibility of the autocomplete clear button.
209
+ * @type {boolean}
210
+ * @default true
211
+ */
30
212
  this.showClearButton = true;
31
213
  /**
32
- * Shows a dropdown chevron arrow that flips up/down when change state open/close.
33
- * Also enables the selectedDropdownValue prop to be able to select an option from dropdown
214
+ * Shows a dropdown chevron arrow that flips up/down when state changes.
215
+ * Enables the selectedDropdownValue prop to select an option from dropdown.
34
216
  * When multiple is true, this prop will be set to false.
217
+ * @type {boolean}
218
+ * @default false
35
219
  */
36
220
  this.dropdown = false;
37
- /** Sets the autocomplete dropdown chevron icon visibility. */
221
+ /**
222
+ * Controls the visibility of the autocomplete dropdown chevron icon.
223
+ * @type {boolean}
224
+ * @default true
225
+ */
38
226
  this.showDropdownIcon = true;
39
- /** Enables a message when there's no match options. */
227
+ /**
228
+ * Enables a message when there are no matching options.
229
+ * @type {boolean}
230
+ * @default false
231
+ */
40
232
  this.showEmptyMessage = false;
41
- /** Allow to set the text message in the 'emptyMessage' state. */
233
+ /**
234
+ * Sets the text message displayed in the empty state.
235
+ * @type {string}
236
+ * @default "No options"
237
+ */
42
238
  this.emptyMessage = "No options";
43
239
  /**
44
- * Allow multiple values to be selected.
45
- * Also enables the multipleValues prop to be able to select multiple options
240
+ * Enables multiple values to be selected.
241
+ * Activates the multipleValues prop to select multiple options.
46
242
  * When multiple is true, dropdown prop will be set to false.
47
- * When multiple is true, valueChanged will emit an array of strings
243
+ * When multiple is true, valueChanged will emit an array of strings.
244
+ * @type {boolean}
245
+ * @default false
48
246
  */
49
247
  this.multiple = false;
248
+ /**
249
+ * Defines the position where the autocomplete dropdown will be opened.
250
+ * @type {"top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end"}
251
+ * @default "bottom"
252
+ */
253
+ this.position = 'bottom';
50
254
  /**
51
255
  * Toggles the floating container auto-positioning based on available window space.
52
- * False by default as it may cause positioning issues in some situations, use with caution
256
+ * False by default as it may cause positioning issues in some situations, use with caution.
257
+ * @type {boolean}
258
+ * @default false
53
259
  */
54
260
  this.autoPosition = false;
55
261
  /**
56
- * Clear selection and input on clicking the close button.
262
+ * Clears selection and input when clicking the close button.
57
263
  * Only works when multiple is true.
264
+ * @type {boolean}
265
+ * @default false
58
266
  */
59
267
  this.clearSelection = false;
60
- /** Toggles the overlay element, allowing interaction only with this element when active */
268
+ /**
269
+ * Toggles the overlay element, allowing interaction only with this element when active.
270
+ * @type {boolean}
271
+ * @default false
272
+ */
61
273
  this.backdrop = false;
274
+ /**
275
+ * Highlights the matching text inside the options.
276
+ * @type {boolean}
277
+ * @default false
278
+ */
279
+ this.highlightText = false;
280
+ /**
281
+ * In dropdown mode, automatically clears the selected value when the input is fully erased.
282
+ * When false, the selection persists even when input is cleared.
283
+ * @type {boolean}
284
+ * @default true
285
+ */
286
+ this.clearOnErase = false;
62
287
  this.floatingCleanUp = () => { };
63
288
  this.isOpened = false;
64
289
  this.options = [];
@@ -66,10 +291,10 @@ export class VdsBasicAutocomplete {
66
291
  this.showUnfilteredOptions = false;
67
292
  this.updateContainerWidth = updateContainerWidth;
68
293
  /**
69
- * Sets autocomplete styles for JSX.style property
70
- *
71
- * @param maxHeight string
72
- * @returns { [key: string]: string }
294
+ * Sets autocomplete styles for the floating container.
295
+ * @private
296
+ * @param {string} maxHeight - Maximum height value
297
+ * @returns {{ [key: string]: string }} Object containing CSS properties
73
298
  */
74
299
  this.setAutoCompleteStyles = (maxHeight) => {
75
300
  let styles = {};
@@ -79,79 +304,178 @@ export class VdsBasicAutocomplete {
79
304
  return styles;
80
305
  };
81
306
  }
307
+ /**
308
+ * Component lifecycle method called before the component loads.
309
+ * Initializes multiselect values, dropdown validation, and default informative icon if dynamic icon is enabled.
310
+ * @returns {void}
311
+ */
82
312
  componentWillLoad() {
83
313
  this.multiselectValues = this.multipleValues;
84
314
  this.validateDropdownValue = true;
315
+ if (this.dynamicInformativeIcon && this.defaultInformativeIcon === undefined) {
316
+ this.defaultInformativeIcon = this.informativeIcon;
317
+ }
85
318
  }
319
+ /**
320
+ * Component lifecycle method called before each render.
321
+ * Ensures dropdown mode is disabled when multiple selection is active.
322
+ * @returns {void}
323
+ */
86
324
  componentWillRender() {
87
325
  if (this.multiple) {
88
326
  this.dropdown = false;
89
327
  }
90
328
  }
329
+ /**
330
+ * Component lifecycle method called after the component loads.
331
+ * Queries for autocomplete items and sets preselection.
332
+ * @returns {void}
333
+ */
91
334
  componentDidLoad() {
335
+ var _a, _b;
92
336
  this.options = Array.from(this.hostEl.querySelectorAll("vds-autocomplete-item"));
93
337
  this.setPreselection();
338
+ this.applyHighlightToOptions();
339
+ this.input = (_b = (_a = this.basicInput) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
94
340
  }
341
+ /**
342
+ * Component lifecycle method called after each render.
343
+ * Updates autocomplete items, positions the floating container, and sets preselection.
344
+ * @returns {void}
345
+ */
95
346
  componentDidRender() {
96
347
  this.options = Array.from(this.hostEl.querySelectorAll("vds-autocomplete-item"));
97
- updateFloatingBoxPosition(this.basicInput, this.autocompleteContent, null, 'bottom', false);
348
+ updateFloatingBoxPosition(this.basicInput, this.autocompleteContent, null, this.position, this.autoPosition, ['top', 'bottom']);
98
349
  this.updateContainerWidth(this.basicInput, this.matchWidth, this.autocompleteContent);
99
350
  this.setPreselection();
351
+ this.refreshKeyboardNavigation();
352
+ }
353
+ /**
354
+ * Component lifecycle method called when the component is disconnected.
355
+ * Removes event listeners and disconnects observer.
356
+ * @returns {void}
357
+ */
358
+ disconnectedCallback() {
359
+ this.destroyKeyboardNavigation();
100
360
  }
361
+ /**
362
+ * Watches multiselectValues and emits valueChanged event with the updated values.
363
+ * @private
364
+ * @returns {void}
365
+ */
101
366
  setMulitpleValueHandler() {
102
367
  this.valueChanged.emit(this.multiselectValues);
103
368
  }
369
+ /**
370
+ * Watches disabled state and closes the autocomplete when disabled.
371
+ * @private
372
+ * @returns {void}
373
+ */
104
374
  setDisabledState() {
105
375
  this.close();
106
376
  }
377
+ /**
378
+ * Watches value state and highlight autocomplete items in case it is needed.
379
+ * @private
380
+ * @returns {void}
381
+ */
382
+ setValueState() {
383
+ this.applyHighlightToOptions();
384
+ this.refreshKeyboardNavigation();
385
+ }
386
+ /**
387
+ * Applies the current input value as highlight text to each autocomplete item.
388
+ * If highlighting is disabled or value is empty, items receive an empty highlight text.
389
+ * @private
390
+ * @returns {void}
391
+ */
392
+ applyHighlightToOptions() {
393
+ var _a;
394
+ if (!this.highlightText)
395
+ return;
396
+ const valueToHighlight = this.highlightText && this.hasValue() ? this.value : "";
397
+ (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
398
+ item.highlightText = valueToHighlight;
399
+ });
400
+ }
401
+ /**
402
+ * Watches selectedDropdownValue and resets validation flag when it changes.
403
+ * @private
404
+ * @returns {void}
405
+ */
107
406
  setDropdownValueValidation() {
108
407
  this.validateDropdownValue = true;
109
408
  }
409
+ /**
410
+ * Watches isOpened state and toggles the autocomplete floating container.
411
+ * Emits opened/closed events and manages floating positioning.
412
+ * @private
413
+ * @returns {Promise<void>}
414
+ */
110
415
  async toggleAutocomplete() {
111
416
  if (this.isOpened) {
112
417
  toggleContainerDisplay(this.autocompleteContent, true);
418
+ this.setDropdownOpenState();
113
419
  this.opened.emit();
114
- this.floatingCleanUp = await updateFloatingBoxPosition(this.basicInput, this.autocompleteContent, null, "bottom", this.autoPosition);
420
+ this.floatingCleanUp = await updateFloatingBoxPosition(this.basicInput, this.autocompleteContent, null, this.position, this.autoPosition, ['top', 'bottom']);
421
+ this.initKeyboardNavigation();
115
422
  }
116
423
  else {
117
424
  toggleContainerDisplay(this.autocompleteContent, false);
425
+ this.destroyKeyboardNavigation();
118
426
  this.closed.emit();
119
427
  this.floatingCleanUp();
120
428
  }
121
429
  }
122
- /* Open the floating element(menu) of the autocomplete. */
430
+ /**
431
+ * Opens the floating element (menu) of the autocomplete.
432
+ * Only opens if the component is not readonly or disabled.
433
+ * @method
434
+ * @public
435
+ * @returns {Promise<void>}
436
+ */
123
437
  async open() {
124
438
  if (!this.isReadonly && !this.disabled) {
125
- setTimeout(() => {
126
- this.isOpened = true;
127
- });
439
+ this.isOpened = true;
128
440
  }
129
441
  }
130
- /* Close the floating element(menu) of the autocomplete. */
442
+ /**
443
+ * Closes the floating element (menu) of the autocomplete.
444
+ * @method
445
+ * @public
446
+ * @returns {Promise<void>}
447
+ */
131
448
  async close() {
132
449
  this.isOpened = false;
133
450
  }
134
- /* Sets focus to the input element */
451
+ /**
452
+ * Sets focus to the input element and opens the autocomplete.
453
+ * @method
454
+ * @public
455
+ * @returns {Promise<void>}
456
+ */
135
457
  async setFocus() {
136
458
  this.basicInput.setFocus();
137
- setTimeout(() => {
138
- this.open();
139
- });
459
+ this.open();
140
460
  }
141
461
  /**
142
462
  * Sets the autocomplete input value to handle filtering.
143
- *
463
+ * @method
464
+ * @public
465
+ * @param {string} value - The value to set
144
466
  * @returns {Promise<void>}
145
467
  */
146
468
  async setValue(value) {
147
469
  this.value = value;
148
470
  }
149
471
  /**
150
- * Sets the autocomplete selection value to handle.
151
- * When multiple is true, sets the selected values from the list
472
+ * Sets the autocomplete selection value.
473
+ * When multiple is true, sets the selected values from the list.
152
474
  * When dropdown is true and multiple is false, sets a single selected value.
153
- * When dropdown is false and When multiple is false, set the input value
154
- *
475
+ * When dropdown is false and multiple is false, sets the input value.
476
+ * @method
477
+ * @public
478
+ * @param {string | string[]} value - The value or values to set
155
479
  * @returns {Promise<void>}
156
480
  */
157
481
  async setSelectionValue(value) {
@@ -165,9 +489,13 @@ export class VdsBasicAutocomplete {
165
489
  }
166
490
  }
167
491
  /**
168
- * Return the autocomplete value.
169
- *
170
- * @returns {Promise<string>} A promise that resolves by returning the autocomplete value.
492
+ * Returns the autocomplete value.
493
+ * Returns multipleValues array if multiple is true.
494
+ * Returns selectedDropdownValue if dropdown is true.
495
+ * Returns the input value otherwise.
496
+ * @method
497
+ * @public
498
+ * @returns {Promise<string | string[]>} A promise that resolves with the autocomplete value
171
499
  */
172
500
  async getValue() {
173
501
  if (this.multiple) {
@@ -180,8 +508,10 @@ export class VdsBasicAutocomplete {
180
508
  }
181
509
  /**
182
510
  * Clears the selected options and resets the value of the autocomplete.
183
- *
184
- * @returns {Promise<void>} A promise that resolves when the clearing operation is complete.
511
+ * Emits a cleared event when complete.
512
+ * @method
513
+ * @public
514
+ * @returns {Promise<void>} A promise that resolves when the clearing operation is complete
185
515
  */
186
516
  async clear() {
187
517
  this.value = '';
@@ -192,8 +522,18 @@ export class VdsBasicAutocomplete {
192
522
  this.multipleValues = this.multiselectValues = [];
193
523
  this.setOptionsMultiple();
194
524
  }
525
+ if (this.dynamicInformativeIcon) {
526
+ this.informativeIcon = this.defaultInformativeIcon;
527
+ }
195
528
  this.cleared.emit();
196
529
  }
530
+ /**
531
+ * Listens for autocompleteClicked events from autocomplete items.
532
+ * Handles option selection for both single and multiple modes.
533
+ * @private
534
+ * @param {CustomEvent<{value: string, selected: boolean}>} evt - The autocomplete clicked event
535
+ * @returns {void}
536
+ */
197
537
  handleSelectOption(evt) {
198
538
  const selectedOption = this.options.find((option) => findOptionByExactValue(option, evt.detail.value));
199
539
  const isValidOption = selectedOption !== null && selectedOption !== undefined;
@@ -205,22 +545,52 @@ export class VdsBasicAutocomplete {
205
545
  this.setOptionsSingle(evt.detail.value);
206
546
  }
207
547
  }
208
- /* Close the autocomplete when click outside */
548
+ /**
549
+ * Listens for clicks outside the autocomplete to close it.
550
+ * @private
551
+ * @param {MouseEvent} evt - The mouse click event
552
+ * @returns {void}
553
+ */
209
554
  handleClickOut(evt) {
210
- evt.stopPropagation();
211
- const target = evt.target;
212
- const isClickInside = this.hostEl.contains(target);
213
- const isClickInsideParentAutocomplete = target.nodeName === "VDS-AUTOCOMPLETE" && target.shadowRoot && evt.target.shadowRoot.contains(this.hostEl);
214
- if (!isClickInside && !isClickInsideParentAutocomplete) {
215
- this.isOpened = false;
555
+ const path = evt.composedPath ? evt.composedPath() : [];
556
+ const isClickInside = path.includes(this.hostEl);
557
+ if (!isClickInside) {
558
+ this.close();
559
+ }
560
+ }
561
+ /**
562
+ * Listens for focusout events to close the autocomplete.
563
+ * Handles focus moving to other focusable elements.
564
+ * @private
565
+ * @param {FocusEvent} evt - The focus event
566
+ * @returns {void}
567
+ */
568
+ handleFocusOut(evt) {
569
+ const relatedTarget = evt.relatedTarget;
570
+ if (!relatedTarget || !this.hostEl.contains(relatedTarget)) {
571
+ if (!this.hostEl.contains(document.activeElement)) {
572
+ this.close();
573
+ }
216
574
  }
217
575
  }
576
+ /**
577
+ * Listens for Escape key presses to close the autocomplete.
578
+ * @private
579
+ * @param {any} evt - The keyboard event
580
+ * @returns {void}
581
+ */
218
582
  handleEscPress(evt) {
219
583
  if (this.isOpened && evt.code === "Escape") {
220
584
  this.close();
221
585
  this.basicInput.blur();
222
586
  }
223
587
  }
588
+ /**
589
+ * Handles multi-selection logic for adding or removing values.
590
+ * @private
591
+ * @param {{value: string, selected: boolean}} selection - The selection details
592
+ * @returns {void}
593
+ */
224
594
  handleMultiselection(selection) {
225
595
  if (selection.selected && !this.multipleValues.find(value => value.toLowerCase() === selection.value.toLowerCase())) {
226
596
  this.multipleValues.push(selection.value);
@@ -231,13 +601,25 @@ export class VdsBasicAutocomplete {
231
601
  this.multiselectValues = Array.from(this.multipleValues);
232
602
  this.basicInput.setFocus();
233
603
  }
604
+ /**
605
+ * Handles value assignment for both single and multiple selection modes.
606
+ * Emits valueChanged and selectedValueChanged events.
607
+ * @private
608
+ * @param {CustomEvent<{ value: string; selected: boolean; }>} evt - The selection event
609
+ * @param {HTMLVdsAutocompleteItemElement} selectedOption - The selected option element
610
+ * @returns {void}
611
+ */
234
612
  handleValueAssignment(evt, selectedOption) {
235
613
  if (this.multiple) {
236
614
  this.handleMultiselection(evt.detail);
237
615
  }
238
616
  else {
239
- this.value = evt.detail.value;
240
617
  this.setSelectionValue(evt.detail.value);
618
+ let display = evt.detail.value;
619
+ if (selectedOption) {
620
+ display = this.formatOptionDisplay(selectedOption);
621
+ }
622
+ this.value = display;
241
623
  this.valueChanged.emit(this.value);
242
624
  if (selectedOption) {
243
625
  this.selectedValueChanged.emit({
@@ -245,44 +627,122 @@ export class VdsBasicAutocomplete {
245
627
  value: selectedOption.value,
246
628
  target: selectedOption
247
629
  });
630
+ if (this.dynamicInformativeIcon && this.dropdown) {
631
+ this.informativeIcon = selectedOption.informativeIcon;
632
+ }
248
633
  }
249
634
  this.handleInputChange();
250
635
  this.close();
251
636
  }
252
637
  }
638
+ /**
639
+ * Handles input change events and debouncing.
640
+ * Emits changeInput event and updates the value with or without debouncing.
641
+ * In dropdown mode, clears the selected option when input is fully erased (if clearOnErase is true).
642
+ * @private
643
+ * @param {CustomEvent<string>} evt - The input change event
644
+ * @returns {void}
645
+ */
253
646
  handleChange(evt) {
254
647
  evt.stopPropagation();
255
- this.changeInput.emit(evt.detail);
648
+ const nextValue = evt.detail;
649
+ this.changeInput.emit(nextValue);
650
+ if (this.dropdown) {
651
+ this.showUnfilteredOptions = false;
652
+ if (this.selectedDropdownValue && nextValue === '') {
653
+ if (this.clearOnErase) {
654
+ this.clearOptions();
655
+ this.value = '';
656
+ this.valueChanged.emit(this.value);
657
+ if (this.dynamicInformativeIcon) {
658
+ this.informativeIcon = this.defaultInformativeIcon;
659
+ }
660
+ }
661
+ return;
662
+ }
663
+ }
256
664
  if (this.debounce !== undefined && this.debounce > 0) {
257
- this.handleDebounceValueChange(evt.detail);
665
+ this.handleDebounceValueChange(nextValue);
258
666
  }
259
667
  else {
260
- this.value = evt.detail;
261
- }
262
- if (this.dropdown) {
263
- this.showUnfilteredOptions = false;
668
+ this.value = nextValue;
264
669
  }
265
670
  }
671
+ /**
672
+ * Dispatches a native input event from the host element.
673
+ * @private
674
+ * @returns {void}
675
+ */
266
676
  handleInputChange() {
267
677
  const inputEvent = new InputEvent("input");
268
678
  this.hostEl.dispatchEvent(inputEvent);
269
679
  }
680
+ /**
681
+ * Handles focus event on the input.
682
+ * Opens the autocomplete and shows unfiltered options in dropdown mode when value exists.
683
+ * @private
684
+ * @returns {void}
685
+ */
270
686
  hasFocus() {
271
687
  this.open();
272
- if (this.hasValue() && this.dropdown) {
273
- this.showUnfilteredOptions = true;
274
- this.validateDropdownValue = false;
275
- }
688
+ this.setDropdownOpenState();
276
689
  }
690
+ /**
691
+ * Handles blur event on the input.
692
+ * Resets unfiltered options display and validation in dropdown mode.
693
+ * @private
694
+ * @returns {void}
695
+ */
277
696
  lostFocus() {
278
697
  if (this.dropdown) {
279
698
  this.showUnfilteredOptions = false;
280
699
  this.validateDropdownValue = true;
281
700
  }
282
701
  }
702
+ /**
703
+ * Emits the actionIconClick event when the action icon is clicked.
704
+ * @private
705
+ * @returns {void}
706
+ */
283
707
  emitActionIcon() {
284
708
  this.actionIconClick.emit();
285
709
  }
710
+ /**
711
+ * Prepares dropdown-only state when the component opens.
712
+ * Keeps the selected option visible in unfiltered mode when a valid value exists.
713
+ * @private
714
+ * @returns {void}
715
+ */
716
+ setDropdownOpenState() {
717
+ if (this.dropdown && this.hasValue()) {
718
+ this.showUnfilteredOptions = true;
719
+ this.validateDropdownValue = false;
720
+ }
721
+ }
722
+ /**
723
+ * Return the display string for an option using the current `displayValue` and `formatter`.
724
+ * @private
725
+ */
726
+ formatOptionDisplay(option) {
727
+ var _a, _b, _c, _d, _e, _f;
728
+ if (!option)
729
+ return '';
730
+ if (this.displayValue === 'label') {
731
+ return (_b = (_a = option.label) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : '';
732
+ }
733
+ if (this.displayValue === 'value') {
734
+ return (_d = (_c = option.value) !== null && _c !== void 0 ? _c : option.label) !== null && _d !== void 0 ? _d : '';
735
+ }
736
+ const raw = (_f = (_e = option.label) !== null && _e !== void 0 ? _e : option.value) !== null && _f !== void 0 ? _f : '';
737
+ const formatted = this.formatter ? this.formatter(raw) : undefined;
738
+ return formatted !== null && formatted !== void 0 ? formatted : raw;
739
+ }
740
+ /**
741
+ * Handles debounced value changes with a timeout.
742
+ * @private
743
+ * @param {string} newValue - The new input value
744
+ * @returns {void}
745
+ */
286
746
  handleDebounceValueChange(newValue) {
287
747
  if (this.debounceTimeTracker !== null) {
288
748
  clearTimeout(this.debounceTimeTracker);
@@ -293,9 +753,19 @@ export class VdsBasicAutocomplete {
293
753
  this.debounceTimeTracker = null;
294
754
  }, this.debounce);
295
755
  }
756
+ /**
757
+ * Checks if the autocomplete has a valid value.
758
+ * @private
759
+ * @returns {boolean} True if the value is valid, false otherwise
760
+ */
296
761
  hasValue() {
297
762
  return this.value !== null && this.value !== undefined && this.value !== "undefined" && this.value !== "";
298
763
  }
764
+ /**
765
+ * Sets preselection for multiple and dropdown modes.
766
+ * @private
767
+ * @returns {void}
768
+ */
299
769
  setPreselection() {
300
770
  if (this.multiple) {
301
771
  this.setOptionsMultiple();
@@ -304,6 +774,11 @@ export class VdsBasicAutocomplete {
304
774
  this.setDropdownOption();
305
775
  }
306
776
  }
777
+ /**
778
+ * Sets checkmarks and selected states for multiple selection mode.
779
+ * @private
780
+ * @returns {void}
781
+ */
307
782
  setOptionsMultiple() {
308
783
  try {
309
784
  this.options.forEach(item => {
@@ -318,9 +793,10 @@ export class VdsBasicAutocomplete {
318
793
  }
319
794
  }
320
795
  /**
321
- * Sets the selected value for a autocomplete type dropdown and updates the options accordingly.
796
+ * Sets the selected value for autocomplete dropdown mode and updates options accordingly.
322
797
  * @private
323
- * @param {string} selectedValue - The value of the selected option.
798
+ * @param {string} selectedValue - The value of the selected option
799
+ * @returns {void}
324
800
  */
325
801
  setOptionsSingle(selectedValue) {
326
802
  try {
@@ -334,6 +810,11 @@ export class VdsBasicAutocomplete {
334
810
  console.warn("[setOptionsSingle]", error);
335
811
  }
336
812
  }
813
+ /**
814
+ * Sets the dropdown option value and validates it.
815
+ * @private
816
+ * @returns {void}
817
+ */
337
818
  setDropdownOption() {
338
819
  var _a, _b;
339
820
  try {
@@ -345,7 +826,15 @@ export class VdsBasicAutocomplete {
345
826
  this.setOptionsSingle(this.selectedDropdownValue);
346
827
  if (this.validateDropdownValue) {
347
828
  const option = (_b = this.options) === null || _b === void 0 ? void 0 : _b.find(opt => findOptionByExactValue(opt, this.selectedDropdownValue));
348
- this.value = option ? (option.label || option.value) : this.value;
829
+ if (option) {
830
+ this.value = this.formatOptionDisplay(option);
831
+ if (this.dynamicInformativeIcon) {
832
+ this.informativeIcon = option.informativeIcon;
833
+ }
834
+ }
835
+ else {
836
+ this.value = this.value;
837
+ }
349
838
  this.validateDropdownValue = false;
350
839
  }
351
840
  }
@@ -355,9 +844,9 @@ export class VdsBasicAutocomplete {
355
844
  }
356
845
  }
357
846
  /**
358
- * Sets the all the options to unselected state
847
+ * Sets all options to unselected state and clears the dropdown value.
359
848
  * @private
360
- * @param {string} selectedValue - The value of the selected option.
849
+ * @returns {void}
361
850
  */
362
851
  clearOptions() {
363
852
  try {
@@ -370,17 +859,37 @@ export class VdsBasicAutocomplete {
370
859
  console.warn("[clearOptions]", error);
371
860
  }
372
861
  }
862
+ /**
863
+ * Renders all unfiltered options in the dropdown.
864
+ * @private
865
+ * @returns {HTMLStencilElement} The unfiltered options container
866
+ */
373
867
  renderUnfilteredOptions() {
374
868
  return (h("div", { class: combineClasses('vds-basic-autocomplete__content-options', this.maxHeight ? 'scrollable' : ''), style: this.setAutoCompleteStyles(this.maxHeight) }, h("slot", { name: "items" }), h("slot", null)));
375
869
  }
870
+ /**
871
+ * Renders a single autocomplete item with proper selection state.
872
+ * @private
873
+ * @param {HTMLVdsAutocompleteItemElement} item - The autocomplete item element
874
+ * @returns {HTMLStencilElement} The rendered autocomplete item
875
+ */
376
876
  renderItem(item) {
377
877
  var _a;
378
878
  let isSelected = false;
379
879
  if (this.multiple) {
380
880
  isSelected = (_a = this.multipleValues) === null || _a === void 0 ? void 0 : _a.some(value => findOptionByValue(item, value));
381
881
  }
382
- return (h("vds-autocomplete-item", Object.assign({ isSelected: isSelected, hasCheckmark: this.multiple }, cloneAttributes(item), { innerHTML: item.innerHTML })));
882
+ else if (this.dropdown) {
883
+ isSelected = findOptionByExactValue(item, this.selectedDropdownValue);
884
+ }
885
+ return (h("vds-autocomplete-item", Object.assign({}, cloneAttributes(item), { disabled: item.disabled, informativeIcon: item.informativeIcon, size: item.size, isActive: item.isActive, isSelected: isSelected, hasCheckmark: this.multiple, innerHTML: item.innerHTML })));
383
886
  }
887
+ /**
888
+ * Renders filtered options based on the current input value.
889
+ * Shows empty message if no options match and showEmptyMessage is true.
890
+ * @private
891
+ * @returns {HTMLStencilElement} The filtered options container or null
892
+ */
384
893
  renderFilteredOptions() {
385
894
  const value = this.hasValue() ? this.value : "";
386
895
  const filteredOptions = getFilteredOptions(this.options, value);
@@ -389,6 +898,11 @@ export class VdsBasicAutocomplete {
389
898
  }
390
899
  return (h("div", { class: combineClasses('vds-basic-autocomplete__content-options', this.maxHeight ? 'scrollable' : ''), style: this.setAutoCompleteStyles(this.maxHeight) }, filteredOptions.map(item => this.renderItem(item))));
391
900
  }
901
+ /**
902
+ * Renders an empty option when no items match the filter.
903
+ * @private
904
+ * @returns {HTMLStencilElement} The empty option element
905
+ */
392
906
  renderEmptyOption() {
393
907
  if (!this.autocompleteItemEmptyOption) {
394
908
  this.autocompleteItemEmptyOption = document.createElement("vds-autocomplete-item");
@@ -400,19 +914,34 @@ export class VdsBasicAutocomplete {
400
914
  this.autocompleteItemEmptyOption.setAttribute("label", this.emptyMessage);
401
915
  return this.renderItem(this.autocompleteItemEmptyOption);
402
916
  }
917
+ /**
918
+ * Renders the clear icon button.
919
+ * @private
920
+ * @returns {HTMLStencilElement} The clear icon button element
921
+ */
403
922
  renderClearIcon() {
404
923
  const disabled = this.disabled || this.isReadonly;
405
924
  return (h("vds-icon-button", { tabIndex: disabled ? -1 : undefined, disabled: disabled, variant: "secondary", size: getActionIconButtonSize(this.size), icon: "close", onClick: disabled ? undefined : () => { this.clear(); this.basicInput.setFocus(); } }));
406
925
  }
926
+ /**
927
+ * Renders the action icon (dropdown chevron or search icon).
928
+ * @private
929
+ * @returns {HTMLStencilElement} The action icon element
930
+ */
407
931
  renderActionIcon() {
408
932
  const disabled = this.disabled || this.isReadonly;
409
933
  if (this.dropdown && this.showDropdownIcon) {
410
- return (h("vds-icon", { svgIcon: this.isOpened ? 'chevron-up' : 'chevron-down', color: getIconColor(this.disabled, this.isReadonly), size: getIconSize(this.size), onClick: disabled ? undefined : () => this.isOpened ? this.close() : this.open() }));
934
+ return (h("vds-icon", { class: "vds-basic-autocomplete__dropdown-icon", svgIcon: this.isOpened ? 'chevron-up' : 'chevron-down', color: getIconColor(this.disabled, this.isReadonly), size: getIconSize(this.size), onClick: disabled ? undefined : () => this.isOpened ? this.close() : this.open() }));
411
935
  }
412
936
  if (this.actionIcon) {
413
937
  return (h("vds-icon-button", { tabIndex: disabled ? -1 : undefined, disabled: disabled, variant: "secondary", size: getActionIconButtonSize(this.size), icon: this.actionIcon, onClick: disabled ? undefined : () => this.emitActionIcon() }));
414
938
  }
415
939
  }
940
+ /**
941
+ * Renders the appropriate options based on dropdown state and value.
942
+ * @private
943
+ * @returns {HTMLStencilElement} The options container
944
+ */
416
945
  renderOptions() {
417
946
  if (this.dropdown && this.showUnfilteredOptions) {
418
947
  return this.renderUnfilteredOptions();
@@ -422,16 +951,85 @@ export class VdsBasicAutocomplete {
422
951
  }
423
952
  return this.renderUnfilteredOptions();
424
953
  }
954
+ /**
955
+ * Initializes keyboard navigation for autocomplete items.
956
+ * Subscribes to keyboard events and manages focus within the autocomplete.
957
+ * Closes autocomplete on Escape key and restores focus to trigger element.
958
+ * @private
959
+ * @returns {void}
960
+ */
961
+ initKeyboardNavigation() {
962
+ const autocompleteItems = this.getAutocompleteItems();
963
+ if (autocompleteItems.length === 0) {
964
+ return;
965
+ }
966
+ const triggerEl = getDeepActiveElement();
967
+ if (!triggerEl) {
968
+ return;
969
+ }
970
+ KeyboardNavigation.subscribe(autocompleteItems, document.body, this.close.bind(this), this.input);
971
+ }
972
+ /**
973
+ * Refreshes keyboard navigation targets after autocomplete items are re-rendered.
974
+ * @private
975
+ * @returns {void}
976
+ */
977
+ refreshKeyboardNavigation() {
978
+ if (!this.isOpened) {
979
+ return;
980
+ }
981
+ const autocompleteItems = this.getAutocompleteItems();
982
+ if (autocompleteItems.length === 0) {
983
+ return;
984
+ }
985
+ KeyboardNavigation.updateFocusedItems(autocompleteItems);
986
+ }
987
+ /**
988
+ * Returns focusable autocomplete items that can be navigated
989
+ * @private
990
+ * @returns {HTMLElement[]} An array of focusable autocomplete items.
991
+ */
992
+ getAutocompleteItems() {
993
+ var _a;
994
+ const optionsContainer = (_a = this.autocompleteContent) === null || _a === void 0 ? void 0 : _a.querySelector('.vds-basic-autocomplete__content-options');
995
+ if (!optionsContainer) {
996
+ return [];
997
+ }
998
+ // Filtered mode renders cloned <vds-autocomplete-item> nodes directly in shadow DOM.
999
+ const renderedItems = Array.from(optionsContainer.querySelectorAll('vds-autocomplete-item:not([disabled]):not(.non-clickable)'));
1000
+ // Unfiltered mode renders slots, so collect assigned elements from those slots.
1001
+ const slottedItems = Array.from(optionsContainer.querySelectorAll('slot'))
1002
+ .flatMap((slotEl) => slotEl.assignedElements({ flatten: true }))
1003
+ .filter((el) => {
1004
+ return el.tagName === 'VDS-AUTOCOMPLETE-ITEM' && !el.hasAttribute('disabled') && !el.classList.contains('non-clickable');
1005
+ });
1006
+ const items = renderedItems.length > 0 ? renderedItems : slottedItems;
1007
+ return items
1008
+ .map((autocomplete) => { var _a, _b; return (_b = (_a = autocomplete.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) !== null && _b !== void 0 ? _b : null; })
1009
+ .filter((btn) => btn !== null);
1010
+ }
1011
+ /**
1012
+ * Destroys the active keyboard navigation session.
1013
+ * @private
1014
+ * @returns {void}
1015
+ */
1016
+ destroyKeyboardNavigation() {
1017
+ KeyboardNavigation.unsubscribe();
1018
+ }
1019
+ /**
1020
+ * Renders the complete autocomplete component.
1021
+ * @returns {HTMLStencilElement} The root autocomplete element
1022
+ */
425
1023
  render() {
426
1024
  const filteredOptions = getFilteredOptions(this.options, this.value || "");
427
- return (h(Host, { key: '33314c7daf892e83429def416796fd44d0072061', class: this.disabled ? "vds-basic-autocomplete--disabled" : "", title: this.value }, h("div", { key: '313249e9a7bfe83f7cdb5c3a19e213efede9288a', class: combineClasses("vds-basic-autocomplete__container") }, h("vds-basic-input", { key: 'a9c7f870b30a5206263a3aabb60e440e1c10b799', ref: (el) => {
1025
+ return (h(Host, { key: 'dd3bc6654bc50937ccdf8964cb519a4b80858152', class: this.disabled ? "vds-basic-autocomplete--disabled" : "", title: this.value }, h("div", { key: '4c1754a52e07045bf8429411bc81b3d577dee48e', class: combineClasses("vds-basic-autocomplete__container") }, h("vds-basic-input", { key: '765dcb8fdd9190c938c05d9d9542fe5384b142f2', ref: (el) => {
428
1026
  if (el) {
429
1027
  this.basicInput = el;
430
1028
  }
431
- }, type: "text", placeholder: this.placeholder, value: this.value, size: this.size, disabled: this.disabled, isReadonly: this.isReadonly, error: this.error, isRequired: this.isRequired, formatter: this.formatter, informativeIcon: this.informativeIcon, allowedStyles: this.allowedStyles, onChangeInput: (evt) => this.handleChange(evt), onFocus: () => this.hasFocus(), onBlur: () => this.lostFocus() }, this.showClearButton && this.hasValue() && (h("div", { key: '2715d86808bda1bbac461e9383da206b6b285224', class: "vds-basic-autocomplete__secondary-action", slot: "secondaryActionIcon" }, this.renderClearIcon())), ((this.dropdown && this.showDropdownIcon) || this.actionIcon) && (h("div", { key: 'a4b2ed560302233dd049634ab825bc09ea447303', class: "vds-basic-autocomplete__primary-action", slot: "primaryActionIcon" }, this.renderActionIcon()))), this.backdrop && this.isOpened ? h("div", { class: "vds-floating-backdrop", onClick: this.close.bind(this) }) : '', h("div", { key: '8627f4c261001c9b3ce9415de579ab39a4a1eca0', ref: (el) => {
1029
+ }, type: "text", placeholder: this.placeholder, value: this.value, size: this.size, disabled: this.disabled, isReadonly: this.isReadonly, error: this.error, isRequired: this.isRequired, formatter: this.formatter, informativeIcon: this.informativeIcon, allowedStyles: this.allowedStyles, onChangeInput: (evt) => this.handleChange(evt), onFocus: () => this.hasFocus(), onBlur: () => this.lostFocus() }, this.showClearButton && this.hasValue() && (h("div", { key: '8dd386ce6dc2ecfe6d784614ae69fc19f577e766', class: "vds-basic-autocomplete__secondary-action", slot: "secondaryActionIcon" }, this.renderClearIcon())), ((this.dropdown && this.showDropdownIcon) || this.actionIcon) && (h("div", { key: '09b1c3b0a3de814bb2bc731e26f72d6d95260baf', class: "vds-basic-autocomplete__primary-action", slot: "primaryActionIcon" }, this.renderActionIcon()))), this.backdrop && this.isOpened ? h("div", { class: "vds-floating-backdrop", onClick: this.close.bind(this) }) : '', h("div", { key: '7feef80588774da5e1a317a32401985192271a9c', ref: (el) => {
432
1030
  if (el)
433
1031
  this.autocompleteContent = el;
434
- }, class: combineClasses("vds-basic-autocomplete__content", this.maxHeight ? "has-scroll" : "", (!this.emptyMessage || this.emptyMessage === "") && filteredOptions.length === 0 ? "no-shadow" : "", !this.showEmptyMessage && filteredOptions.length === 0 ? "no-shadow" : "", !this.value && this.options.length === 0 ? "no-shadow" : "") }, h("div", { key: 'e9c886f1c5c6f3ce1d9195dee4aadb22cfb9dc29', class: "vds-basic-autocomplete__content__header" }, h("slot", { key: 'bf20136cbad0011b8619353c01947552c6dacc3f', name: "header" })), this.renderOptions()))));
1032
+ }, class: combineClasses("vds-basic-autocomplete__content", this.maxHeight ? "has-scroll" : "", (!this.emptyMessage || this.emptyMessage === "") && filteredOptions.length === 0 ? "no-shadow" : "", !this.showEmptyMessage && filteredOptions.length === 0 ? "no-shadow" : "", !this.value && this.options.length === 0 ? "no-shadow" : "") }, h("div", { key: 'ee3b6536ae8b11abf0993a4a413c0950d8b9e051', class: "vds-basic-autocomplete__content__header" }, h("slot", { key: '68310b2e9f3a1cb40f8ad277535040cfc4e9454b', name: "header" })), this.renderOptions()))));
435
1033
  }
436
1034
  static get is() { return "vds-basic-autocomplete"; }
437
1035
  static get encapsulation() { return "shadow"; }
@@ -458,8 +1056,14 @@ export class VdsBasicAutocomplete {
458
1056
  "required": false,
459
1057
  "optional": false,
460
1058
  "docs": {
461
- "tags": [],
462
- "text": "Sets the internal input size.\nIf multiple property is true, This will only set the basic-input text value.\nIf multiple property is false and the value prop matches with an option, the option will be selected,\nOtherwise text will be set in the basic-input."
1059
+ "tags": [{
1060
+ "name": "type",
1061
+ "text": "{(\"small\" | \"medium\" | \"large\")}"
1062
+ }, {
1063
+ "name": "default",
1064
+ "text": "\"medium\""
1065
+ }],
1066
+ "text": "Sets the internal input size.\nIf multiple property is true, this will only set the basic-input text value.\nIf multiple property is false and the value prop matches with an option, the option will be selected,\notherwise text will be set in the basic-input."
463
1067
  },
464
1068
  "getter": false,
465
1069
  "setter": false,
@@ -478,8 +1082,14 @@ export class VdsBasicAutocomplete {
478
1082
  "required": false,
479
1083
  "optional": false,
480
1084
  "docs": {
481
- "tags": [],
482
- "text": "Sets the internal input value"
1085
+ "tags": [{
1086
+ "name": "type",
1087
+ "text": "{string}"
1088
+ }, {
1089
+ "name": "default",
1090
+ "text": "undefined"
1091
+ }],
1092
+ "text": "Sets the internal input value for filtering options."
483
1093
  },
484
1094
  "getter": false,
485
1095
  "setter": false,
@@ -502,8 +1112,14 @@ export class VdsBasicAutocomplete {
502
1112
  "required": false,
503
1113
  "optional": false,
504
1114
  "docs": {
505
- "tags": [],
506
- "text": "Sets the selected options when multiple is activated"
1115
+ "tags": [{
1116
+ "name": "type",
1117
+ "text": "{Array<string>}"
1118
+ }, {
1119
+ "name": "default",
1120
+ "text": "[]"
1121
+ }],
1122
+ "text": "Sets the selected options when multiple selection is activated."
507
1123
  },
508
1124
  "getter": false,
509
1125
  "setter": false,
@@ -511,7 +1127,7 @@ export class VdsBasicAutocomplete {
511
1127
  },
512
1128
  "selectedDropdownValue": {
513
1129
  "type": "string",
514
- "mutable": false,
1130
+ "mutable": true,
515
1131
  "complexType": {
516
1132
  "original": "string",
517
1133
  "resolved": "string",
@@ -520,8 +1136,14 @@ export class VdsBasicAutocomplete {
520
1136
  "required": false,
521
1137
  "optional": false,
522
1138
  "docs": {
523
- "tags": [],
524
- "text": "Sets the selected dropdown value when dropdown is activated"
1139
+ "tags": [{
1140
+ "name": "type",
1141
+ "text": "{string}"
1142
+ }, {
1143
+ "name": "default",
1144
+ "text": "\"\""
1145
+ }],
1146
+ "text": "Sets the selected dropdown value when dropdown mode is activated."
525
1147
  },
526
1148
  "getter": false,
527
1149
  "setter": false,
@@ -540,8 +1162,14 @@ export class VdsBasicAutocomplete {
540
1162
  "required": false,
541
1163
  "optional": false,
542
1164
  "docs": {
543
- "tags": [],
544
- "text": "Sets the internal input placeholder."
1165
+ "tags": [{
1166
+ "name": "type",
1167
+ "text": "{string}"
1168
+ }, {
1169
+ "name": "default",
1170
+ "text": "undefined"
1171
+ }],
1172
+ "text": "Sets the internal input placeholder text."
545
1173
  },
546
1174
  "getter": false,
547
1175
  "setter": false,
@@ -559,7 +1187,13 @@ export class VdsBasicAutocomplete {
559
1187
  "required": false,
560
1188
  "optional": false,
561
1189
  "docs": {
562
- "tags": [],
1190
+ "tags": [{
1191
+ "name": "type",
1192
+ "text": "{boolean}"
1193
+ }, {
1194
+ "name": "default",
1195
+ "text": "undefined"
1196
+ }],
563
1197
  "text": "Sets the internal input in disabled state."
564
1198
  },
565
1199
  "getter": false,
@@ -578,7 +1212,13 @@ export class VdsBasicAutocomplete {
578
1212
  "required": false,
579
1213
  "optional": false,
580
1214
  "docs": {
581
- "tags": [],
1215
+ "tags": [{
1216
+ "name": "type",
1217
+ "text": "{boolean}"
1218
+ }, {
1219
+ "name": "default",
1220
+ "text": "undefined"
1221
+ }],
582
1222
  "text": "Sets the internal input in readonly state."
583
1223
  },
584
1224
  "getter": false,
@@ -597,7 +1237,13 @@ export class VdsBasicAutocomplete {
597
1237
  "required": false,
598
1238
  "optional": false,
599
1239
  "docs": {
600
- "tags": [],
1240
+ "tags": [{
1241
+ "name": "type",
1242
+ "text": "{boolean}"
1243
+ }, {
1244
+ "name": "default",
1245
+ "text": "undefined"
1246
+ }],
601
1247
  "text": "Sets the internal input in error state."
602
1248
  },
603
1249
  "getter": false,
@@ -616,8 +1262,14 @@ export class VdsBasicAutocomplete {
616
1262
  "required": false,
617
1263
  "optional": false,
618
1264
  "docs": {
619
- "tags": [],
620
- "text": "Toggles the required sign in the internal input"
1265
+ "tags": [{
1266
+ "name": "type",
1267
+ "text": "{boolean}"
1268
+ }, {
1269
+ "name": "default",
1270
+ "text": "false"
1271
+ }],
1272
+ "text": "Toggles the required indicator in the internal input."
621
1273
  },
622
1274
  "getter": false,
623
1275
  "setter": false,
@@ -627,7 +1279,7 @@ export class VdsBasicAutocomplete {
627
1279
  },
628
1280
  "informativeIcon": {
629
1281
  "type": "string",
630
- "mutable": false,
1282
+ "mutable": true,
631
1283
  "complexType": {
632
1284
  "original": "string",
633
1285
  "resolved": "string",
@@ -636,14 +1288,46 @@ export class VdsBasicAutocomplete {
636
1288
  "required": false,
637
1289
  "optional": false,
638
1290
  "docs": {
639
- "tags": [],
640
- "text": "Allows user to define a information icon inside the input at its left ."
1291
+ "tags": [{
1292
+ "name": "type",
1293
+ "text": "{string}"
1294
+ }, {
1295
+ "name": "default",
1296
+ "text": "undefined"
1297
+ }],
1298
+ "text": "Defines an informative icon inside the input at its left."
641
1299
  },
642
1300
  "getter": false,
643
1301
  "setter": false,
644
1302
  "reflect": false,
645
1303
  "attribute": "informative-icon"
646
1304
  },
1305
+ "dynamicInformativeIcon": {
1306
+ "type": "boolean",
1307
+ "mutable": true,
1308
+ "complexType": {
1309
+ "original": "boolean",
1310
+ "resolved": "boolean",
1311
+ "references": {}
1312
+ },
1313
+ "required": false,
1314
+ "optional": false,
1315
+ "docs": {
1316
+ "tags": [{
1317
+ "name": "type",
1318
+ "text": "{boolean}"
1319
+ }, {
1320
+ "name": "default",
1321
+ "text": "false"
1322
+ }],
1323
+ "text": "Allows autocomplete-item informativeIcon to reflect dynamically as the autocomplete's informativeIcon.\nWhen true, the selected item's icon becomes the autocomplete's icon."
1324
+ },
1325
+ "getter": false,
1326
+ "setter": false,
1327
+ "reflect": false,
1328
+ "attribute": "dynamic-informative-icon",
1329
+ "defaultValue": "false"
1330
+ },
647
1331
  "formatter": {
648
1332
  "type": "unknown",
649
1333
  "mutable": true,
@@ -660,12 +1344,44 @@ export class VdsBasicAutocomplete {
660
1344
  "required": false,
661
1345
  "optional": false,
662
1346
  "docs": {
663
- "tags": [],
1347
+ "tags": [{
1348
+ "name": "type",
1349
+ "text": "{Function}"
1350
+ }, {
1351
+ "name": "default",
1352
+ "text": "undefined"
1353
+ }],
664
1354
  "text": "Sets character formatting for user input. Useful for adding a mask to the input."
665
1355
  },
666
1356
  "getter": false,
667
1357
  "setter": false
668
1358
  },
1359
+ "displayValue": {
1360
+ "type": "string",
1361
+ "mutable": false,
1362
+ "complexType": {
1363
+ "original": "\"label\" | \"value\" | \"formatted\"",
1364
+ "resolved": "\"formatted\" | \"label\" | \"value\"",
1365
+ "references": {}
1366
+ },
1367
+ "required": false,
1368
+ "optional": false,
1369
+ "docs": {
1370
+ "tags": [{
1371
+ "name": "type",
1372
+ "text": "{\"label\" | \"value\" | \"formatted\"}"
1373
+ }, {
1374
+ "name": "default",
1375
+ "text": "\"label\""
1376
+ }],
1377
+ "text": "Determines which option field to display in the input when an option is selected.\n- \"label\": displays the option's label if it exists, otherwise falls back to value.\n- \"value\": displays the option's value if it exists, otherwise falls back to label.\n- \"formatted\": runs the `formatter` function using label/value fallback order and displays the result.\nIf formatter is not defined, it falls back to label first, then value."
1378
+ },
1379
+ "getter": false,
1380
+ "setter": false,
1381
+ "reflect": false,
1382
+ "attribute": "display-value",
1383
+ "defaultValue": "\"label\""
1384
+ },
669
1385
  "allowedStyles": {
670
1386
  "type": "unknown",
671
1387
  "mutable": true,
@@ -677,8 +1393,14 @@ export class VdsBasicAutocomplete {
677
1393
  "required": false,
678
1394
  "optional": false,
679
1395
  "docs": {
680
- "tags": [],
681
- "text": "Sets custom allowed styles to input (text-align, text-transform, unicode-bidi, direction)"
1396
+ "tags": [{
1397
+ "name": "type",
1398
+ "text": "{Array<{ [key: string]: string }>}"
1399
+ }, {
1400
+ "name": "default",
1401
+ "text": "[]"
1402
+ }],
1403
+ "text": "Sets custom allowed styles to input (text-align, text-transform, unicode-bidi, direction)."
682
1404
  },
683
1405
  "getter": false,
684
1406
  "setter": false,
@@ -695,8 +1417,14 @@ export class VdsBasicAutocomplete {
695
1417
  "required": false,
696
1418
  "optional": false,
697
1419
  "docs": {
698
- "tags": [],
699
- "text": "Set the max height value for the floating container of the items"
1420
+ "tags": [{
1421
+ "name": "type",
1422
+ "text": "{string}"
1423
+ }, {
1424
+ "name": "default",
1425
+ "text": "undefined"
1426
+ }],
1427
+ "text": "Sets the max height value for the floating container of the items."
700
1428
  },
701
1429
  "getter": false,
702
1430
  "setter": false,
@@ -714,8 +1442,14 @@ export class VdsBasicAutocomplete {
714
1442
  "required": false,
715
1443
  "optional": false,
716
1444
  "docs": {
717
- "tags": [],
718
- "text": "Sets the width value for the floating container of the items to match the items list width"
1445
+ "tags": [{
1446
+ "name": "type",
1447
+ "text": "{boolean}"
1448
+ }, {
1449
+ "name": "default",
1450
+ "text": "true"
1451
+ }],
1452
+ "text": "Sets the floating container width to match the input width."
719
1453
  },
720
1454
  "getter": false,
721
1455
  "setter": false,
@@ -734,8 +1468,14 @@ export class VdsBasicAutocomplete {
734
1468
  "required": false,
735
1469
  "optional": false,
736
1470
  "docs": {
737
- "tags": [],
738
- "text": "Debounce time for key inputs before the search"
1471
+ "tags": [{
1472
+ "name": "type",
1473
+ "text": "{number}"
1474
+ }, {
1475
+ "name": "default",
1476
+ "text": "undefined"
1477
+ }],
1478
+ "text": "Debounce time in milliseconds for key inputs before triggering the search."
739
1479
  },
740
1480
  "getter": false,
741
1481
  "setter": false,
@@ -753,8 +1493,14 @@ export class VdsBasicAutocomplete {
753
1493
  "required": false,
754
1494
  "optional": false,
755
1495
  "docs": {
756
- "tags": [],
757
- "text": "Allows user to define a search icon inside the input at its right (zoom by default) ."
1496
+ "tags": [{
1497
+ "name": "type",
1498
+ "text": "{string}"
1499
+ }, {
1500
+ "name": "default",
1501
+ "text": "\"zoom\""
1502
+ }],
1503
+ "text": "Defines a search icon inside the input at its right."
758
1504
  },
759
1505
  "getter": false,
760
1506
  "setter": false,
@@ -773,8 +1519,14 @@ export class VdsBasicAutocomplete {
773
1519
  "required": false,
774
1520
  "optional": false,
775
1521
  "docs": {
776
- "tags": [],
777
- "text": "Sets the autocomplete clear button visibility."
1522
+ "tags": [{
1523
+ "name": "type",
1524
+ "text": "{boolean}"
1525
+ }, {
1526
+ "name": "default",
1527
+ "text": "true"
1528
+ }],
1529
+ "text": "Controls the visibility of the autocomplete clear button."
778
1530
  },
779
1531
  "getter": false,
780
1532
  "setter": false,
@@ -793,8 +1545,14 @@ export class VdsBasicAutocomplete {
793
1545
  "required": false,
794
1546
  "optional": false,
795
1547
  "docs": {
796
- "tags": [],
797
- "text": "Shows a dropdown chevron arrow that flips up/down when change state open/close.\nAlso enables the selectedDropdownValue prop to be able to select an option from dropdown\nWhen multiple is true, this prop will be set to false."
1548
+ "tags": [{
1549
+ "name": "type",
1550
+ "text": "{boolean}"
1551
+ }, {
1552
+ "name": "default",
1553
+ "text": "false"
1554
+ }],
1555
+ "text": "Shows a dropdown chevron arrow that flips up/down when state changes.\nEnables the selectedDropdownValue prop to select an option from dropdown.\nWhen multiple is true, this prop will be set to false."
798
1556
  },
799
1557
  "getter": false,
800
1558
  "setter": false,
@@ -813,8 +1571,14 @@ export class VdsBasicAutocomplete {
813
1571
  "required": false,
814
1572
  "optional": false,
815
1573
  "docs": {
816
- "tags": [],
817
- "text": "Sets the autocomplete dropdown chevron icon visibility."
1574
+ "tags": [{
1575
+ "name": "type",
1576
+ "text": "{boolean}"
1577
+ }, {
1578
+ "name": "default",
1579
+ "text": "true"
1580
+ }],
1581
+ "text": "Controls the visibility of the autocomplete dropdown chevron icon."
818
1582
  },
819
1583
  "getter": false,
820
1584
  "setter": false,
@@ -833,8 +1597,14 @@ export class VdsBasicAutocomplete {
833
1597
  "required": false,
834
1598
  "optional": false,
835
1599
  "docs": {
836
- "tags": [],
837
- "text": "Enables a message when there's no match options."
1600
+ "tags": [{
1601
+ "name": "type",
1602
+ "text": "{boolean}"
1603
+ }, {
1604
+ "name": "default",
1605
+ "text": "false"
1606
+ }],
1607
+ "text": "Enables a message when there are no matching options."
838
1608
  },
839
1609
  "getter": false,
840
1610
  "setter": false,
@@ -853,8 +1623,14 @@ export class VdsBasicAutocomplete {
853
1623
  "required": false,
854
1624
  "optional": false,
855
1625
  "docs": {
856
- "tags": [],
857
- "text": "Allow to set the text message in the 'emptyMessage' state."
1626
+ "tags": [{
1627
+ "name": "type",
1628
+ "text": "{string}"
1629
+ }, {
1630
+ "name": "default",
1631
+ "text": "\"No options\""
1632
+ }],
1633
+ "text": "Sets the text message displayed in the empty state."
858
1634
  },
859
1635
  "getter": false,
860
1636
  "setter": false,
@@ -873,8 +1649,14 @@ export class VdsBasicAutocomplete {
873
1649
  "required": false,
874
1650
  "optional": false,
875
1651
  "docs": {
876
- "tags": [],
877
- "text": "Allow multiple values to be selected.\nAlso enables the multipleValues prop to be able to select multiple options\nWhen multiple is true, dropdown prop will be set to false.\nWhen multiple is true, valueChanged will emit an array of strings"
1652
+ "tags": [{
1653
+ "name": "type",
1654
+ "text": "{boolean}"
1655
+ }, {
1656
+ "name": "default",
1657
+ "text": "false"
1658
+ }],
1659
+ "text": "Enables multiple values to be selected.\nActivates the multipleValues prop to select multiple options.\nWhen multiple is true, dropdown prop will be set to false.\nWhen multiple is true, valueChanged will emit an array of strings."
878
1660
  },
879
1661
  "getter": false,
880
1662
  "setter": false,
@@ -882,6 +1664,32 @@ export class VdsBasicAutocomplete {
882
1664
  "attribute": "multiple",
883
1665
  "defaultValue": "false"
884
1666
  },
1667
+ "position": {
1668
+ "type": "string",
1669
+ "mutable": false,
1670
+ "complexType": {
1671
+ "original": "'top' | 'bottom' | 'right' | 'left' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'",
1672
+ "resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"right\" | \"top\" | \"top-end\" | \"top-start\"",
1673
+ "references": {}
1674
+ },
1675
+ "required": false,
1676
+ "optional": false,
1677
+ "docs": {
1678
+ "tags": [{
1679
+ "name": "type",
1680
+ "text": "{\"top\" | \"bottom\" | \"right\" | \"left\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\"}"
1681
+ }, {
1682
+ "name": "default",
1683
+ "text": "\"bottom\""
1684
+ }],
1685
+ "text": "Defines the position where the autocomplete dropdown will be opened."
1686
+ },
1687
+ "getter": false,
1688
+ "setter": false,
1689
+ "reflect": false,
1690
+ "attribute": "position",
1691
+ "defaultValue": "'bottom'"
1692
+ },
885
1693
  "autoPosition": {
886
1694
  "type": "boolean",
887
1695
  "mutable": true,
@@ -893,8 +1701,14 @@ export class VdsBasicAutocomplete {
893
1701
  "required": false,
894
1702
  "optional": false,
895
1703
  "docs": {
896
- "tags": [],
897
- "text": "Toggles the floating container auto-positioning based on available window space. \nFalse by default as it may cause positioning issues in some situations, use with caution"
1704
+ "tags": [{
1705
+ "name": "type",
1706
+ "text": "{boolean}"
1707
+ }, {
1708
+ "name": "default",
1709
+ "text": "false"
1710
+ }],
1711
+ "text": "Toggles the floating container auto-positioning based on available window space.\nFalse by default as it may cause positioning issues in some situations, use with caution."
898
1712
  },
899
1713
  "getter": false,
900
1714
  "setter": false,
@@ -913,8 +1727,14 @@ export class VdsBasicAutocomplete {
913
1727
  "required": false,
914
1728
  "optional": false,
915
1729
  "docs": {
916
- "tags": [],
917
- "text": "Clear selection and input on clicking the close button.\nOnly works when multiple is true."
1730
+ "tags": [{
1731
+ "name": "type",
1732
+ "text": "{boolean}"
1733
+ }, {
1734
+ "name": "default",
1735
+ "text": "false"
1736
+ }],
1737
+ "text": "Clears selection and input when clicking the close button.\nOnly works when multiple is true."
918
1738
  },
919
1739
  "getter": false,
920
1740
  "setter": false,
@@ -933,21 +1753,80 @@ export class VdsBasicAutocomplete {
933
1753
  "required": false,
934
1754
  "optional": false,
935
1755
  "docs": {
936
- "tags": [],
937
- "text": "Toggles the overlay element, allowing interaction only with this element when active"
1756
+ "tags": [{
1757
+ "name": "type",
1758
+ "text": "{boolean}"
1759
+ }, {
1760
+ "name": "default",
1761
+ "text": "false"
1762
+ }],
1763
+ "text": "Toggles the overlay element, allowing interaction only with this element when active."
938
1764
  },
939
1765
  "getter": false,
940
1766
  "setter": false,
941
1767
  "reflect": false,
942
1768
  "attribute": "backdrop",
943
1769
  "defaultValue": "false"
1770
+ },
1771
+ "highlightText": {
1772
+ "type": "boolean",
1773
+ "mutable": false,
1774
+ "complexType": {
1775
+ "original": "boolean",
1776
+ "resolved": "boolean",
1777
+ "references": {}
1778
+ },
1779
+ "required": false,
1780
+ "optional": false,
1781
+ "docs": {
1782
+ "tags": [{
1783
+ "name": "type",
1784
+ "text": "{boolean}"
1785
+ }, {
1786
+ "name": "default",
1787
+ "text": "false"
1788
+ }],
1789
+ "text": "Highlights the matching text inside the options."
1790
+ },
1791
+ "getter": false,
1792
+ "setter": false,
1793
+ "reflect": false,
1794
+ "attribute": "highlight-text",
1795
+ "defaultValue": "false"
1796
+ },
1797
+ "clearOnErase": {
1798
+ "type": "boolean",
1799
+ "mutable": false,
1800
+ "complexType": {
1801
+ "original": "boolean",
1802
+ "resolved": "boolean",
1803
+ "references": {}
1804
+ },
1805
+ "required": false,
1806
+ "optional": false,
1807
+ "docs": {
1808
+ "tags": [{
1809
+ "name": "type",
1810
+ "text": "{boolean}"
1811
+ }, {
1812
+ "name": "default",
1813
+ "text": "true"
1814
+ }],
1815
+ "text": "In dropdown mode, automatically clears the selected value when the input is fully erased.\nWhen false, the selection persists even when input is cleared."
1816
+ },
1817
+ "getter": false,
1818
+ "setter": false,
1819
+ "reflect": false,
1820
+ "attribute": "clear-on-erase",
1821
+ "defaultValue": "false"
944
1822
  }
945
1823
  };
946
1824
  }
947
1825
  static get states() {
948
1826
  return {
949
1827
  "isOpened": {},
950
- "multiselectValues": {}
1828
+ "multiselectValues": {},
1829
+ "defaultInformativeIcon": {}
951
1830
  };
952
1831
  }
953
1832
  static get events() {
@@ -958,8 +1837,14 @@ export class VdsBasicAutocomplete {
958
1837
  "cancelable": true,
959
1838
  "composed": true,
960
1839
  "docs": {
961
- "tags": [],
962
- "text": "Emits event when floating element gets opens"
1840
+ "tags": [{
1841
+ "name": "event",
1842
+ "text": "opened"
1843
+ }, {
1844
+ "name": "type",
1845
+ "text": "{EventEmitter<void>}"
1846
+ }],
1847
+ "text": "Emitted when the floating element opens."
963
1848
  },
964
1849
  "complexType": {
965
1850
  "original": "void",
@@ -973,8 +1858,14 @@ export class VdsBasicAutocomplete {
973
1858
  "cancelable": true,
974
1859
  "composed": true,
975
1860
  "docs": {
976
- "tags": [],
977
- "text": "Emits event when floating element gets closes"
1861
+ "tags": [{
1862
+ "name": "event",
1863
+ "text": "closed"
1864
+ }, {
1865
+ "name": "type",
1866
+ "text": "{EventEmitter<void>}"
1867
+ }],
1868
+ "text": "Emitted when the floating element closes."
978
1869
  },
979
1870
  "complexType": {
980
1871
  "original": "void",
@@ -988,8 +1879,14 @@ export class VdsBasicAutocomplete {
988
1879
  "cancelable": true,
989
1880
  "composed": true,
990
1881
  "docs": {
991
- "tags": [],
992
- "text": "Emits event when an item is selected, this event contains the label of the selected item(s)"
1882
+ "tags": [{
1883
+ "name": "event",
1884
+ "text": "valueChanged"
1885
+ }, {
1886
+ "name": "type",
1887
+ "text": "{EventEmitter<string | string[]>}"
1888
+ }],
1889
+ "text": "Emitted when an item is selected. Contains the label of the selected item(s)."
993
1890
  },
994
1891
  "complexType": {
995
1892
  "original": "string | string[]",
@@ -1003,8 +1900,14 @@ export class VdsBasicAutocomplete {
1003
1900
  "cancelable": true,
1004
1901
  "composed": true,
1005
1902
  "docs": {
1006
- "tags": [],
1007
- "text": "Emits an event when the clear button is clicked"
1903
+ "tags": [{
1904
+ "name": "event",
1905
+ "text": "cleared"
1906
+ }, {
1907
+ "name": "type",
1908
+ "text": "{EventEmitter<void>}"
1909
+ }],
1910
+ "text": "Emitted when the clear button is clicked."
1008
1911
  },
1009
1912
  "complexType": {
1010
1913
  "original": "void",
@@ -1018,8 +1921,14 @@ export class VdsBasicAutocomplete {
1018
1921
  "cancelable": true,
1019
1922
  "composed": true,
1020
1923
  "docs": {
1021
- "tags": [],
1022
- "text": "Emits an event when the user click the actionIcon (the magnifying glass)"
1924
+ "tags": [{
1925
+ "name": "event",
1926
+ "text": "actionIconClick"
1927
+ }, {
1928
+ "name": "type",
1929
+ "text": "{EventEmitter<void>}"
1930
+ }],
1931
+ "text": "Emitted when the user clicks the actionIcon (the magnifying glass)."
1023
1932
  },
1024
1933
  "complexType": {
1025
1934
  "original": "void",
@@ -1033,8 +1942,14 @@ export class VdsBasicAutocomplete {
1033
1942
  "cancelable": true,
1034
1943
  "composed": true,
1035
1944
  "docs": {
1036
- "tags": [],
1037
- "text": "Emits updated inputed value from the vds-basic-input similar to the input event"
1945
+ "tags": [{
1946
+ "name": "event",
1947
+ "text": "changeInput"
1948
+ }, {
1949
+ "name": "type",
1950
+ "text": "{EventEmitter<string>}"
1951
+ }],
1952
+ "text": "Emitted with the updated input value from the vds-basic-input, similar to the input event."
1038
1953
  },
1039
1954
  "complexType": {
1040
1955
  "original": "string",
@@ -1048,8 +1963,14 @@ export class VdsBasicAutocomplete {
1048
1963
  "cancelable": true,
1049
1964
  "composed": true,
1050
1965
  "docs": {
1051
- "tags": [],
1052
- "text": "Emits event when an item is selected, this event contains the value of the selected item(s)"
1966
+ "tags": [{
1967
+ "name": "event",
1968
+ "text": "selectedValueChanged"
1969
+ }, {
1970
+ "name": "type",
1971
+ "text": "{EventEmitter<SelectedValueChangedEventDetail>}"
1972
+ }],
1973
+ "text": "Emitted when an item is selected. Contains the value of the selected item(s)."
1053
1974
  },
1054
1975
  "complexType": {
1055
1976
  "original": "SelectedValueChangedEventDetail",
@@ -1058,7 +1979,8 @@ export class VdsBasicAutocomplete {
1058
1979
  "SelectedValueChangedEventDetail": {
1059
1980
  "location": "import",
1060
1981
  "path": "./vds-basic-autocomplete.utils",
1061
- "id": "src/components/autocomplete/vds-basic-autocomplete.utils.ts::SelectedValueChangedEventDetail"
1982
+ "id": "src/components/autocomplete/vds-basic-autocomplete.utils.ts::SelectedValueChangedEventDetail",
1983
+ "referenceLocation": "SelectedValueChangedEventDetail"
1062
1984
  }
1063
1985
  }
1064
1986
  }
@@ -1079,8 +2001,17 @@ export class VdsBasicAutocomplete {
1079
2001
  "return": "Promise<void>"
1080
2002
  },
1081
2003
  "docs": {
1082
- "text": "",
1083
- "tags": []
2004
+ "text": "Opens the floating element (menu) of the autocomplete.\nOnly opens if the component is not readonly or disabled.",
2005
+ "tags": [{
2006
+ "name": "method",
2007
+ "text": undefined
2008
+ }, {
2009
+ "name": "public",
2010
+ "text": undefined
2011
+ }, {
2012
+ "name": "returns",
2013
+ "text": undefined
2014
+ }]
1084
2015
  }
1085
2016
  },
1086
2017
  "close": {
@@ -1096,8 +2027,17 @@ export class VdsBasicAutocomplete {
1096
2027
  "return": "Promise<void>"
1097
2028
  },
1098
2029
  "docs": {
1099
- "text": "",
1100
- "tags": []
2030
+ "text": "Closes the floating element (menu) of the autocomplete.",
2031
+ "tags": [{
2032
+ "name": "method",
2033
+ "text": undefined
2034
+ }, {
2035
+ "name": "public",
2036
+ "text": undefined
2037
+ }, {
2038
+ "name": "returns",
2039
+ "text": undefined
2040
+ }]
1101
2041
  }
1102
2042
  },
1103
2043
  "setFocus": {
@@ -1113,8 +2053,17 @@ export class VdsBasicAutocomplete {
1113
2053
  "return": "Promise<void>"
1114
2054
  },
1115
2055
  "docs": {
1116
- "text": "",
1117
- "tags": []
2056
+ "text": "Sets focus to the input element and opens the autocomplete.",
2057
+ "tags": [{
2058
+ "name": "method",
2059
+ "text": undefined
2060
+ }, {
2061
+ "name": "public",
2062
+ "text": undefined
2063
+ }, {
2064
+ "name": "returns",
2065
+ "text": undefined
2066
+ }]
1118
2067
  }
1119
2068
  },
1120
2069
  "setValue": {
@@ -1123,7 +2072,7 @@ export class VdsBasicAutocomplete {
1123
2072
  "parameters": [{
1124
2073
  "name": "value",
1125
2074
  "type": "string",
1126
- "docs": ""
2075
+ "docs": "- The value to set"
1127
2076
  }],
1128
2077
  "references": {
1129
2078
  "Promise": {
@@ -1136,6 +2085,15 @@ export class VdsBasicAutocomplete {
1136
2085
  "docs": {
1137
2086
  "text": "Sets the autocomplete input value to handle filtering.",
1138
2087
  "tags": [{
2088
+ "name": "method",
2089
+ "text": undefined
2090
+ }, {
2091
+ "name": "public",
2092
+ "text": undefined
2093
+ }, {
2094
+ "name": "param",
2095
+ "text": "value - The value to set"
2096
+ }, {
1139
2097
  "name": "returns",
1140
2098
  "text": undefined
1141
2099
  }]
@@ -1147,7 +2105,7 @@ export class VdsBasicAutocomplete {
1147
2105
  "parameters": [{
1148
2106
  "name": "value",
1149
2107
  "type": "string | string[]",
1150
- "docs": ""
2108
+ "docs": "- The value or values to set"
1151
2109
  }],
1152
2110
  "references": {
1153
2111
  "Promise": {
@@ -1158,8 +2116,17 @@ export class VdsBasicAutocomplete {
1158
2116
  "return": "Promise<void>"
1159
2117
  },
1160
2118
  "docs": {
1161
- "text": "Sets the autocomplete selection value to handle.\nWhen multiple is true, sets the selected values from the list\nWhen dropdown is true and multiple is false, sets a single selected value.\nWhen dropdown is false and When multiple is false, set the input value",
2119
+ "text": "Sets the autocomplete selection value.\nWhen multiple is true, sets the selected values from the list.\nWhen dropdown is true and multiple is false, sets a single selected value.\nWhen dropdown is false and multiple is false, sets the input value.",
1162
2120
  "tags": [{
2121
+ "name": "method",
2122
+ "text": undefined
2123
+ }, {
2124
+ "name": "public",
2125
+ "text": undefined
2126
+ }, {
2127
+ "name": "param",
2128
+ "text": "value - The value or values to set"
2129
+ }, {
1163
2130
  "name": "returns",
1164
2131
  "text": undefined
1165
2132
  }]
@@ -1178,10 +2145,16 @@ export class VdsBasicAutocomplete {
1178
2145
  "return": "Promise<string | string[]>"
1179
2146
  },
1180
2147
  "docs": {
1181
- "text": "Return the autocomplete value.",
2148
+ "text": "Returns the autocomplete value.\nReturns multipleValues array if multiple is true.\nReturns selectedDropdownValue if dropdown is true.\nReturns the input value otherwise.",
1182
2149
  "tags": [{
2150
+ "name": "method",
2151
+ "text": undefined
2152
+ }, {
2153
+ "name": "public",
2154
+ "text": undefined
2155
+ }, {
1183
2156
  "name": "returns",
1184
- "text": "A promise that resolves by returning the autocomplete value."
2157
+ "text": "A promise that resolves with the autocomplete value"
1185
2158
  }]
1186
2159
  }
1187
2160
  },
@@ -1198,10 +2171,16 @@ export class VdsBasicAutocomplete {
1198
2171
  "return": "Promise<void>"
1199
2172
  },
1200
2173
  "docs": {
1201
- "text": "Clears the selected options and resets the value of the autocomplete.",
2174
+ "text": "Clears the selected options and resets the value of the autocomplete.\nEmits a cleared event when complete.",
1202
2175
  "tags": [{
2176
+ "name": "method",
2177
+ "text": undefined
2178
+ }, {
2179
+ "name": "public",
2180
+ "text": undefined
2181
+ }, {
1203
2182
  "name": "returns",
1204
- "text": "A promise that resolves when the clearing operation is complete."
2183
+ "text": "A promise that resolves when the clearing operation is complete"
1205
2184
  }]
1206
2185
  }
1207
2186
  }
@@ -1215,6 +2194,9 @@ export class VdsBasicAutocomplete {
1215
2194
  }, {
1216
2195
  "propName": "disabled",
1217
2196
  "methodName": "setDisabledState"
2197
+ }, {
2198
+ "propName": "value",
2199
+ "methodName": "setValueState"
1218
2200
  }, {
1219
2201
  "propName": "selectedDropdownValue",
1220
2202
  "methodName": "setDropdownValueValidation"
@@ -1236,6 +2218,12 @@ export class VdsBasicAutocomplete {
1236
2218
  "target": "window",
1237
2219
  "capture": false,
1238
2220
  "passive": false
2221
+ }, {
2222
+ "name": "focusout",
2223
+ "method": "handleFocusOut",
2224
+ "target": undefined,
2225
+ "capture": false,
2226
+ "passive": false
1239
2227
  }, {
1240
2228
  "name": "keyup",
1241
2229
  "method": "handleEscPress",
@@ -1245,4 +2233,3 @@ export class VdsBasicAutocomplete {
1245
2233
  }];
1246
2234
  }
1247
2235
  }
1248
- //# sourceMappingURL=vds-basic-autocomplete.js.map