@vonage/vivid 5.16.0 → 5.17.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 (317) hide show
  1. package/accordion/index.cjs +1 -1
  2. package/accordion/index.js +1 -1
  3. package/accordion-item/index.cjs +1 -1
  4. package/accordion-item/index.js +1 -1
  5. package/action-group/index.cjs +3 -3
  6. package/action-group/index.js +5 -5
  7. package/alert/index.cjs +3 -3
  8. package/alert/index.js +17 -17
  9. package/audio-player/index.cjs +16 -16
  10. package/audio-player/index.js +27 -27
  11. package/avatar/index.cjs +2 -2
  12. package/avatar/index.js +6 -6
  13. package/badge/index.cjs +2 -2
  14. package/badge/index.js +6 -6
  15. package/banner/index.cjs +3 -3
  16. package/banner/index.js +15 -15
  17. package/bundled/base-color-picker.cjs +2 -2
  18. package/bundled/base-color-picker.js +5 -5
  19. package/bundled/button.cjs +1 -1
  20. package/bundled/button.js +2 -2
  21. package/bundled/calendar-picker.template.cjs +2 -2
  22. package/bundled/calendar-picker.template.js +498 -498
  23. package/bundled/definition10.cjs +18 -30
  24. package/bundled/definition10.js +53 -155
  25. package/bundled/definition11.cjs +10 -19
  26. package/bundled/definition11.js +25 -74
  27. package/bundled/definition12.cjs +72 -18
  28. package/bundled/definition12.js +171 -107
  29. package/bundled/definition13.cjs +18 -17
  30. package/bundled/definition13.js +45 -65
  31. package/bundled/definition14.cjs +5 -10
  32. package/bundled/definition14.js +9 -27
  33. package/bundled/definition15.cjs +17 -71
  34. package/bundled/definition15.js +64 -181
  35. package/bundled/definition16.cjs +12 -4
  36. package/bundled/definition16.js +79 -14
  37. package/bundled/definition17.cjs +19 -13
  38. package/bundled/definition17.js +119 -70
  39. package/bundled/definition18.cjs +87 -12
  40. package/bundled/definition18.js +409 -52
  41. package/bundled/definition19.cjs +5 -87
  42. package/bundled/definition19.js +14 -422
  43. package/bundled/definition2.cjs +3 -3
  44. package/bundled/definition2.js +27 -27
  45. package/bundled/definition20.cjs +30 -5
  46. package/bundled/definition20.js +159 -9
  47. package/bundled/definition21.cjs +28 -19
  48. package/bundled/definition21.js +164 -47
  49. package/bundled/definition22.cjs +38 -23
  50. package/bundled/definition22.js +64 -82
  51. package/bundled/definition3.cjs +1 -1
  52. package/bundled/definition3.js +15 -15
  53. package/bundled/definition4.cjs +23 -38
  54. package/bundled/definition4.js +82 -64
  55. package/bundled/definition5.cjs +2 -2
  56. package/bundled/definition5.js +5 -5
  57. package/bundled/definition6.cjs +2 -2
  58. package/bundled/definition6.js +24 -24
  59. package/bundled/definition9.cjs +12 -30
  60. package/bundled/definition9.js +55 -148
  61. package/bundled/divider.cjs +1 -1
  62. package/bundled/divider.js +5 -5
  63. package/bundled/listbox.cjs +1 -1
  64. package/bundled/listbox.js +1 -1
  65. package/bundled/mixins.cjs +4 -4
  66. package/bundled/mixins.js +43 -43
  67. package/bundled/picker-field.template.cjs +7 -7
  68. package/bundled/picker-field.template.js +14 -14
  69. package/bundled/slider.template.cjs +7 -7
  70. package/bundled/slider.template.js +12 -12
  71. package/bundled/slottable-request.cjs +1 -1
  72. package/bundled/slottable-request.js +8 -38
  73. package/bundled/time-selection-picker.template.cjs +4 -4
  74. package/bundled/time-selection-picker.template.js +35 -35
  75. package/bundled/vivid-element.cjs +1 -1
  76. package/bundled/vivid-element.js +1 -1
  77. package/calendar/index.cjs +11 -11
  78. package/calendar/index.js +30 -237
  79. package/calendar-event/index.cjs +3 -3
  80. package/calendar-event/index.js +4 -4
  81. package/card/index.cjs +14 -11
  82. package/card/index.js +16 -13
  83. package/checkbox/index.cjs +1 -1
  84. package/checkbox/index.js +1 -1
  85. package/color-picker/definition.cjs +1 -1
  86. package/color-picker/definition.js +1 -1
  87. package/color-picker/index.cjs +6 -6
  88. package/color-picker/index.js +24 -24
  89. package/combobox/definition.cjs +1 -1
  90. package/combobox/definition.js +1 -1
  91. package/combobox/index.cjs +9 -8
  92. package/combobox/index.js +32 -28
  93. package/contextual-help/definition.cjs +1 -1
  94. package/contextual-help/definition.js +1 -1
  95. package/contextual-help/index.cjs +1 -1
  96. package/contextual-help/index.js +1 -1
  97. package/custom-elements.json +1027 -615
  98. package/data-grid/definition.js +1 -1
  99. package/data-grid/index.cjs +17 -17
  100. package/data-grid/index.js +261 -264
  101. package/date-picker/index.cjs +1 -1
  102. package/date-picker/index.js +12 -12
  103. package/date-range-picker/index.cjs +1 -1
  104. package/date-range-picker/index.js +7 -7
  105. package/date-time-picker/index.cjs +4 -4
  106. package/date-time-picker/index.js +24 -24
  107. package/dial-pad/index.cjs +3 -2
  108. package/dial-pad/index.js +6 -5
  109. package/dialog/index.cjs +4 -4
  110. package/dialog/index.js +5 -5
  111. package/divider/index.cjs +1 -1
  112. package/divider/index.js +1 -1
  113. package/fab/index.cjs +3 -3
  114. package/fab/index.js +8 -8
  115. package/file-picker/index.cjs +16 -13
  116. package/file-picker/index.js +31 -28
  117. package/header/index.cjs +4 -4
  118. package/header/index.js +5 -5
  119. package/index.cjs +24 -21
  120. package/index.js +11 -11
  121. package/lib/combobox/combobox.d.ts +0 -3
  122. package/lib/date-time-picker/date-time-picker.d.ts +0 -4
  123. package/lib/dial-pad/dial-pad.d.ts +6 -2
  124. package/lib/dialog/dialog.d.ts +0 -1
  125. package/lib/menu/menu.d.ts +0 -1
  126. package/lib/option/option.d.ts +0 -1
  127. package/lib/rich-text-editor/rte/exports.d.ts +1 -0
  128. package/lib/rich-text-editor/rte/features/alignment.d.ts +1 -1
  129. package/lib/rich-text-editor/rte/features/character-count.d.ts +21 -0
  130. package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +1 -1
  131. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +1 -1
  132. package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
  133. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
  134. package/lib/rich-text-editor/rte/public-interface.d.ts +6 -0
  135. package/lib/searchable-select/option-tag.d.ts +0 -1
  136. package/lib/table/definition.d.ts +2 -1
  137. package/lib/table/table-header-cell.d.ts +3 -0
  138. package/lib/table/table-sorting-button.d.ts +415 -0
  139. package/lib/table/table-sorting-button.template.d.ts +3 -0
  140. package/locales/de-DE.cjs +4 -178
  141. package/locales/de-DE.js +2 -179
  142. package/locales/en-GB.cjs +4 -9
  143. package/locales/en-GB.js +2 -10
  144. package/locales/en-US.cjs +268 -2
  145. package/locales/en-US.js +265 -1
  146. package/locales/ja-JP.cjs +4 -171
  147. package/locales/ja-JP.js +2 -172
  148. package/locales/zh-CN.cjs +4 -172
  149. package/locales/zh-CN.js +2 -173
  150. package/menu/index.cjs +1 -1
  151. package/menu/index.js +1 -1
  152. package/menu-item/index.cjs +1 -1
  153. package/menu-item/index.js +1 -1
  154. package/nav-disclosure/index.cjs +3 -3
  155. package/nav-disclosure/index.js +8 -8
  156. package/nav-item/index.cjs +1 -1
  157. package/nav-item/index.js +7 -7
  158. package/note/index.cjs +2 -2
  159. package/note/index.js +6 -6
  160. package/number-field/index.cjs +4 -4
  161. package/number-field/index.js +31 -31
  162. package/option/definition.cjs +1 -1
  163. package/option/definition.js +1 -1
  164. package/option/index.cjs +1 -1
  165. package/option/index.js +1 -1
  166. package/package.json +7 -8
  167. package/pagination/index.cjs +3 -3
  168. package/pagination/index.js +15 -15
  169. package/popover/index.cjs +4 -4
  170. package/popover/index.js +5 -5
  171. package/progress/index.cjs +2 -2
  172. package/progress/index.js +5 -5
  173. package/radio/index.cjs +1 -1
  174. package/radio/index.js +1 -1
  175. package/radio-group/index.cjs +4 -4
  176. package/radio-group/index.js +10 -10
  177. package/range-slider/index.cjs +4 -4
  178. package/range-slider/index.js +17 -17
  179. package/rich-text-editor/definition.cjs +1 -0
  180. package/rich-text-editor/definition.js +2 -2
  181. package/rich-text-editor/index.cjs +13 -13
  182. package/rich-text-editor/index.js +1886 -1829
  183. package/rich-text-view/index.cjs +1 -1
  184. package/rich-text-view/index.js +8 -8
  185. package/searchable-select/index.cjs +12 -12
  186. package/searchable-select/index.js +25 -25
  187. package/select/index.cjs +1 -1
  188. package/select/index.js +1 -1
  189. package/selectable-box/index.cjs +7 -7
  190. package/selectable-box/index.js +11 -11
  191. package/shared/foundation/test-utilities/fixture.d.ts +1 -1
  192. package/shared/patterns/linkable.d.ts +1 -1
  193. package/simple-color-picker/index.cjs +3 -3
  194. package/simple-color-picker/index.js +10 -10
  195. package/split-button/index.cjs +5 -5
  196. package/split-button/index.js +10 -10
  197. package/status/index.cjs +2 -2
  198. package/status/index.js +12 -12
  199. package/switch/index.cjs +3 -3
  200. package/switch/index.js +5 -5
  201. package/tab/index.cjs +1 -1
  202. package/tab/index.js +1 -1
  203. package/tab-panel/index.cjs +1 -1
  204. package/tab-panel/index.js +1 -1
  205. package/table/definition.cjs +17 -14
  206. package/table/definition.js +3 -2
  207. package/table/index.cjs +19 -10
  208. package/table/index.js +69 -21
  209. package/tabs/index.cjs +2 -2
  210. package/tabs/index.js +4 -4
  211. package/tag/index.cjs +7 -7
  212. package/tag/index.js +9 -9
  213. package/tag-group/index.cjs +3 -3
  214. package/tag-group/index.js +5 -5
  215. package/text-area/index.cjs +2 -2
  216. package/text-area/index.js +12 -12
  217. package/text-field/definition.cjs +1 -1
  218. package/text-field/definition.js +1 -1
  219. package/text-field/index.cjs +1 -1
  220. package/text-field/index.js +1 -1
  221. package/time-picker/index.cjs +1 -1
  222. package/time-picker/index.js +1 -1
  223. package/toggletip/definition.cjs +1 -1
  224. package/toggletip/definition.js +1 -1
  225. package/toggletip/index.cjs +1 -1
  226. package/toggletip/index.js +1 -1
  227. package/tooltip/definition.cjs +1 -1
  228. package/tooltip/definition.js +1 -1
  229. package/tooltip/index.cjs +1 -1
  230. package/tooltip/index.js +1 -1
  231. package/tree-item/index.cjs +1 -1
  232. package/tree-item/index.js +1 -1
  233. package/tree-view/index.cjs +3 -3
  234. package/tree-view/index.js +17 -17
  235. package/unbundled/button.cjs +2 -2
  236. package/unbundled/button.js +2 -2
  237. package/unbundled/calendar-picker.template.cjs +4347 -9
  238. package/unbundled/calendar-picker.template.js +4345 -7
  239. package/unbundled/chunk.cjs +0 -22
  240. package/unbundled/definition13.cjs +1 -8
  241. package/unbundled/definition13.js +1 -8
  242. package/unbundled/definition14.cjs +2 -2
  243. package/unbundled/definition14.js +2 -2
  244. package/unbundled/definition2.cjs +1 -1
  245. package/unbundled/definition2.js +1 -1
  246. package/unbundled/definition21.cjs +1 -2
  247. package/unbundled/definition21.js +1 -2
  248. package/unbundled/definition22.cjs +7 -2
  249. package/unbundled/definition22.js +7 -2
  250. package/unbundled/definition24.cjs +98 -979
  251. package/unbundled/definition24.js +93 -974
  252. package/unbundled/definition25.cjs +37 -322
  253. package/unbundled/definition25.js +33 -318
  254. package/unbundled/definition26.cjs +317 -91
  255. package/unbundled/definition26.js +313 -87
  256. package/unbundled/definition27.cjs +94 -192
  257. package/unbundled/definition27.js +91 -183
  258. package/unbundled/definition28.cjs +387 -395
  259. package/unbundled/definition28.js +387 -395
  260. package/unbundled/definition29.cjs +189 -110
  261. package/unbundled/definition29.js +180 -107
  262. package/unbundled/definition30.cjs +520 -36
  263. package/unbundled/definition30.js +519 -35
  264. package/unbundled/definition32.cjs +477 -477
  265. package/unbundled/definition32.js +475 -475
  266. package/unbundled/definition33.cjs +87 -2
  267. package/unbundled/definition33.js +77 -4
  268. package/unbundled/definition35.cjs +2 -2
  269. package/unbundled/definition35.js +2 -2
  270. package/unbundled/definition36.cjs +1 -1
  271. package/unbundled/definition36.js +1 -1
  272. package/unbundled/definition37.cjs +6 -2
  273. package/unbundled/definition37.js +6 -2
  274. package/unbundled/definition38.cjs +7 -5
  275. package/unbundled/definition38.js +7 -5
  276. package/unbundled/definition39.cjs +1 -0
  277. package/unbundled/definition39.js +1 -0
  278. package/unbundled/definition42.cjs +22 -11
  279. package/unbundled/definition42.js +22 -11
  280. package/unbundled/definition49.cjs +3 -3
  281. package/unbundled/definition49.js +3 -3
  282. package/unbundled/definition56.cjs +437 -9506
  283. package/unbundled/definition56.js +340 -9415
  284. package/unbundled/definition57.cjs +5 -5
  285. package/unbundled/definition57.js +5 -5
  286. package/unbundled/definition58.cjs +4 -3
  287. package/unbundled/definition58.js +2 -1
  288. package/unbundled/definition59.cjs +4 -3
  289. package/unbundled/definition59.js +4 -3
  290. package/unbundled/definition62.cjs +2 -2
  291. package/unbundled/definition62.js +2 -2
  292. package/unbundled/definition64.cjs +1 -1
  293. package/unbundled/definition64.js +1 -1
  294. package/unbundled/definition71.cjs +2 -2
  295. package/unbundled/definition71.js +2 -2
  296. package/unbundled/definition72.cjs +1 -2
  297. package/unbundled/definition72.js +1 -2
  298. package/unbundled/definition75.cjs +3 -51711
  299. package/unbundled/definition75.js +1 -51711
  300. package/unbundled/listbox.cjs +1 -1
  301. package/unbundled/listbox.js +1 -1
  302. package/unbundled/localized.cjs +2 -2
  303. package/unbundled/localized.js +1 -1
  304. package/unbundled/picker-field.template.cjs +1 -1
  305. package/unbundled/picker-field.template.js +1 -1
  306. package/unbundled/slottable-request.cjs +2 -3168
  307. package/unbundled/slottable-request.js +3 -3097
  308. package/unbundled/time-selection-picker.template.cjs +1 -1
  309. package/unbundled/time-selection-picker.template.js +1 -1
  310. package/unbundled/vivid-element.cjs +1 -1
  311. package/unbundled/vivid-element.js +1 -1
  312. package/video-player/index.cjs +3 -3
  313. package/video-player/index.js +9 -9
  314. package/vivid.api.json +220 -282
  315. package/unbundled/chunk.js +0 -33
  316. package/unbundled/en-US.cjs +0 -447
  317. package/unbundled/en-US.js +0 -443
@@ -1,57 +1,541 @@
1
- import { o as defineVividComponent, s as createRegisterFunction, t as VividElement } from "./vivid-element.js";
2
- import { r as Icon, t as iconDefinition } from "./definition2.js";
1
+ import { o as defineVividComponent, s as createRegisterFunction } from "./vivid-element.js";
2
+ import { t as iconDefinition } from "./definition2.js";
3
3
  import { t as __decorate } from "./decorate.js";
4
- import { n as toggletipDefinition, r as Toggletip } from "./definition29.js";
5
- import { attr, html } from "@microsoft/fast-element";
6
- import { classNames } from "@microsoft/fast-web-utilities";
7
- //#region src/lib/contextual-help/contextual-help.ts
4
+ import { a as affixIconTemplateFactory, i as IconWrapper, t as AffixIcon } from "./affix.js";
5
+ import { n as FormAssociated } from "./form-associated.js";
6
+ import { t as FormElement } from "./form-element.js";
7
+ import { t as WithSuccessText } from "./with-success-text.js";
8
+ import { t as WithErrorText } from "./with-error-text.js";
9
+ import { t as WithContextualHelp } from "./with-contextual-help.js";
10
+ import { r as chevronTemplateFactory } from "./definition7.js";
11
+ import { t as handleEscapeKeyAndStopPropogation } from "./dialog.js";
12
+ import { i as Popup, t as popupDefinition } from "./definition10.js";
13
+ import { a as feedbackMessageDefinition, t as WithFeedback } from "./mixins.js";
14
+ import { t as text_field_default } from "./text-field.js";
15
+ import { t as listboxOptionDefinition } from "./definition29.js";
16
+ import { t as Listbox } from "./listbox.js";
17
+ import { Observable, attr, html, observable, ref, slotted, when } from "@microsoft/fast-element";
18
+ import { classNames, limit, uniqueId } from "@microsoft/fast-web-utilities";
19
+ //#region src/lib/combobox/combobox.scss?inline
20
+ var combobox_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;transition:transform .2s;display:flex;transform:rotate(0)}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:column;gap:4px;display:inline-flex;position:relative}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-400);cursor:not-allowed}.base{--_text-field-gutter-end:8px;--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.base.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.base:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.base.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.base:disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.base:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.base.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.base.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.base.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.base.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.base.error:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:var(--vvd-color-alert-500)}.base.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:transparent}.base.success:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:var(--vvd-color-success-500)}.base.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:transparent}.base:not(.shape-pill) .base{border-radius:var(--_text-field-border-radius)}.base.shape-pill .base{border-radius:var(--_text-field-pill-border-radius)}.base slot[name=icon]{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);pointer-events:none;line-height:1;display:inline-block;position:absolute;inset-block-start:50%;inset-inline-start:var(--_text-field-gutter-start);transform:translateY(-50%)}.base.has-meta{padding-inline-end:16px}.control{text-overflow:ellipsis;white-space:nowrap}.fieldset .leading-items-wrapper{flex-shrink:0;align-items:center;gap:8px;padding-inline-end:16px;display:flex;position:relative}.listbox{max-height:var(--combobox-height,408px);contain:paint;border-radius:8px;flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}::part(popup-base){inline-size:max-content;min-inline-size:var(--_combobox-fixed-width,100%)}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .fieldset:focus-within:after{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}::slotted([data-vvd-component=option][current-selected]){border-radius:8px}:host(.has-activedescendant) ::slotted([data-vvd-component=option][current-selected]){box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent}";
21
+ //#endregion
22
+ //#region src/lib/combobox/combobox.options.ts
23
+ /**
24
+ * Autocomplete values for combobox.
25
+ * @public
26
+ */
27
+ var ComboboxAutocomplete = {
28
+ inline: "inline",
29
+ list: "list",
30
+ both: "both",
31
+ none: "none"
32
+ };
33
+ //#endregion
34
+ //#region src/lib/combobox/combobox.ts
8
35
  /**
9
36
  * @public
10
- * @component contextual-help
37
+ * @component combobox
11
38
  * @slot - Default slot.
12
- * @slot icon - Custom icon slot (optional).
39
+ * @slot icon - The preferred way to add an icon to the combobox control.
40
+ * @slot meta - Slot to add meta content to the combobox control.
41
+ * @slot helper-text - Describes how to use the combobox. Alternative to the `helper-text` attribute.
42
+ * @event {CustomEvent<undefined>} change - Fires a custom 'change' event when the value updates
43
+ * @vueModel modelValue value change `event.currentTarget.value`
44
+ * @testAction fill comboboxFill
45
+ * @testAction clear comboboxClear
46
+ * @testAction selectOptionByText selectOptionByText
47
+ * @testAction selectOptionByValue selectOptionByValue
48
+ * @testRef control shadow input.control
13
49
  */
14
- var ContextualHelp = class extends VividElement {
50
+ var Combobox = class extends WithContextualHelp(WithFeedback(WithErrorText(WithSuccessText(FormElement(AffixIcon(FormAssociated(Listbox))))))) {
15
51
  constructor(..._args) {
16
52
  super(..._args);
17
- this.placement = "right";
53
+ this.filteredOptions = [];
54
+ this.filter = "";
55
+ this._isNavigatingWithKeyboard = false;
56
+ this.fixedDropdown = false;
57
+ this.listboxId = uniqueId("listbox-");
58
+ this.maxHeight = 0;
59
+ this.open = false;
60
+ this.proxy = document.createElement("input");
61
+ }
62
+ /**
63
+ * @internal
64
+ */
65
+ formResetCallback() {
66
+ super.formResetCallback();
67
+ this.selectedIndex = this._newDefaultSelectedIndex([], this.options, -1) ?? -1;
68
+ this.value = this.firstSelectedOption?.text || "";
69
+ }
70
+ /** {@inheritDoc (FormAssociated:interface).validate} */
71
+ validate() {
72
+ super.validate(this.control);
73
+ }
74
+ get isAutocompleteInline() {
75
+ return this.autocomplete === ComboboxAutocomplete.inline || this.isAutocompleteBoth;
76
+ }
77
+ get isAutocompleteList() {
78
+ return this.autocomplete === ComboboxAutocomplete.list || this.isAutocompleteBoth;
79
+ }
80
+ get isAutocompleteBoth() {
81
+ return this.autocomplete === ComboboxAutocomplete.both;
82
+ }
83
+ /**
84
+ * @internal
85
+ */
86
+ openChanged() {
87
+ if (this.open) this.enqueueScrollSelectedOptionIntoViewIfNeeded();
88
+ }
89
+ /**
90
+ * A read-only list of options.
91
+ *
92
+ * @public
93
+ * @remarks
94
+ * Overrides `Listbox.options`.
95
+ */
96
+ get options() {
97
+ Observable.track(this, "options");
98
+ return this.filteredOptions.length ? this.filteredOptions : this._options;
99
+ }
100
+ set options(value) {
101
+ super.options = value;
102
+ }
103
+ /**
104
+ * Updates the placeholder on the proxy element.
105
+ * @internal
106
+ */
107
+ placeholderChanged() {
108
+ /* v8 ignore if -- @preserve */
109
+ if (this.proxy instanceof HTMLInputElement) this.proxy.placeholder = this.placeholder;
110
+ }
111
+ /**
112
+ * @internal
113
+ */
114
+ valueChanged(prev, next) {
115
+ if (this.$fastController.isConnected && this.options) {
116
+ const selectedIndex = this.options.findIndex((el) => el.text.toLowerCase() === next.toLowerCase());
117
+ this.selectedIndex = this.options[this.selectedIndex]?.text !== this.options[selectedIndex]?.text ? selectedIndex : this.selectedIndex;
118
+ }
119
+ super.valueChanged(prev, next);
120
+ }
121
+ /**
122
+ * Handle opening and closing the listbox when the combobox is clicked.
123
+ *
124
+ * @param e - the mouse event
125
+ * @internal
126
+ */
127
+ clickHandler(e) {
128
+ if (this.disabled || this._isFromContextualHelp(e)) return;
129
+ if (this.open) {
130
+ const capturedOption = e.target.closest(`option,[role=option],[data-vvd-component=option]`);
131
+ if (!capturedOption || capturedOption.disabled) return;
132
+ this.selectedOptions = [capturedOption];
133
+ this.control.value = capturedOption.text;
134
+ this.clearSelectionRange();
135
+ this.updateValue(true);
136
+ }
137
+ this.open = !this.open;
138
+ if (this.open) this.control.focus();
139
+ return true;
140
+ }
141
+ /**
142
+ * Handle closing the listbox when the combobox is open and the chevron icon is clicked.
143
+ *
144
+ * @param e - the mouse event
145
+ * @internal
146
+ */
147
+ _chevronIconClickHandler(e) {
148
+ if (!this.open) return;
149
+ e.stopPropagation();
150
+ this.open = false;
151
+ }
152
+ connectedCallback() {
153
+ super.connectedCallback();
154
+ if (this.value) this.initialValue = this.value;
155
+ this._popup.anchor = this._anchor;
156
+ }
157
+ /**
158
+ * Filter available options by text value.
159
+ *
160
+ * @public
161
+ */
162
+ filterOptions() {
163
+ if (!this.autocomplete || this.autocomplete === ComboboxAutocomplete.none) this.filter = "";
164
+ this.filteredOptions = this._options.filter((o) => o.text.toLowerCase().startsWith(this.filter.toLowerCase()));
165
+ if (this.isAutocompleteList) this._options.forEach((o) => {
166
+ o.hidden = !this.filteredOptions.includes(o);
167
+ });
168
+ }
169
+ /**
170
+ * Focus the control and scroll the first selected option into view.
171
+ *
172
+ * @internal
173
+ * @remarks
174
+ * Overrides: `Listbox.focusAndScrollOptionIntoView`
175
+ */
176
+ focusAndScrollOptionIntoView() {
177
+ if (this.contains(document.activeElement)) {
178
+ this.control.focus();
179
+ this.enqueueScrollSelectedOptionIntoViewIfNeeded();
180
+ }
181
+ }
182
+ /**
183
+ * @internal
184
+ */
185
+ enqueueScrollSelectedOptionIntoViewIfNeeded() {
186
+ const firstSelectedOption = this.firstSelectedOption;
187
+ /* v8 ignore else -- @preserve */
188
+ if (firstSelectedOption) requestAnimationFrame(() => {
189
+ firstSelectedOption.scrollIntoView({ block: "nearest" });
190
+ });
191
+ }
192
+ /**
193
+ * Handle focus state when the element or its children lose focus.
194
+ *
195
+ * @param e - The focus event
196
+ * @internal
197
+ */
198
+ focusoutHandler(e) {
199
+ this.syncValue();
200
+ if (!this.open) return true;
201
+ const focusTarget = e.relatedTarget;
202
+ if (this.isSameNode(focusTarget)) {
203
+ this.focus();
204
+ return;
205
+ }
206
+ this.open = false;
207
+ }
208
+ /**
209
+ * Handle content changes on the control input.
210
+ *
211
+ * @param e - the input event
212
+ * @internal
213
+ */
214
+ inputHandler(e) {
215
+ this.filter = this.control.value;
216
+ this.filterOptions();
217
+ if (!this.isAutocompleteInline) this.selectedIndex = this.options.map((option) => option.text).indexOf(this.control.value);
218
+ if (e.inputType.includes("deleteContent") || !this.filter.length) return true;
219
+ if (this.isAutocompleteList && !this.open) this.open = true;
220
+ if (this.isAutocompleteInline) if (this.filteredOptions.length) {
221
+ this.selectedOptions = [this.filteredOptions[0]];
222
+ this.selectedIndex = this.options.indexOf(this.firstSelectedOption);
223
+ this.setInlineSelection();
224
+ } else this.selectedIndex = -1;
225
+ }
226
+ /**
227
+ * Handle keydown actions for listbox navigation.
228
+ *
229
+ * @param e - the keyboard event
230
+ * @internal
231
+ */
232
+ keydownHandler(e) {
233
+ const key = e.key;
234
+ if (e.ctrlKey || e.shiftKey) return true;
235
+ switch (key) {
236
+ case "Enter":
237
+ this.syncValue();
238
+ /* v8 ignore else -- @preserve */
239
+ if (this.isAutocompleteInline) this.filter = this.value;
240
+ this.open = false;
241
+ this.clearSelectionRange();
242
+ break;
243
+ case "Escape":
244
+ /* v8 ignore else -- @preserve */
245
+ if (!this.isAutocompleteInline) this.selectedIndex = -1;
246
+ if (this.open) {
247
+ this.open = false;
248
+ break;
249
+ }
250
+ this.value = "";
251
+ this.control.value = "";
252
+ this.filter = "";
253
+ this.filterOptions();
254
+ break;
255
+ case "Tab":
256
+ this.setInputToSelection();
257
+ if (!this.open) return true;
258
+ e.preventDefault();
259
+ this.open = false;
260
+ break;
261
+ case "ArrowUp":
262
+ case "ArrowDown":
263
+ this.filterOptions();
264
+ if (!this.open) {
265
+ this.open = true;
266
+ break;
267
+ }
268
+ /* v8 ignore else -- @preserve */
269
+ if (this.filteredOptions.length > 0) {
270
+ this._isNavigatingWithKeyboard = true;
271
+ super.keydownHandler(e);
272
+ this._isNavigatingWithKeyboard = false;
273
+ }
274
+ if (this.isAutocompleteInline) this.setInlineSelection();
275
+ break;
276
+ default: return true;
277
+ }
278
+ }
279
+ /**
280
+ * @internal
281
+ */
282
+ setSelectedOptions() {
283
+ super.setSelectedOptions();
284
+ if (!this._isNavigatingWithKeyboard) this._activeDescendant = "";
285
+ }
286
+ /**
287
+ * Ensure that the selectedIndex is within the current allowable filtered range.
288
+ *
289
+ * @param prev - the previous selected index value
290
+ * @param next - the current selected index value
291
+ *
292
+ * @internal
293
+ */
294
+ selectedIndexChanged(prev, next) {
295
+ if (this.$fastController.isConnected) {
296
+ next = limit(-1, this.options.length - 1, next);
297
+ if (next !== this.selectedIndex) {
298
+ this.selectedIndex = next;
299
+ return;
300
+ }
301
+ super.selectedIndexChanged(prev, next);
302
+ }
303
+ }
304
+ /**
305
+ * Move focus to the previous selectable option.
306
+ *
307
+ * @internal
308
+ * @remarks
309
+ * Overrides `Listbox.selectPreviousOption`
310
+ */
311
+ selectPreviousOption() {
312
+ if (!this.disabled && this.selectedIndex >= 0) this.selectedIndex = this.selectedIndex - 1;
313
+ }
314
+ _isDefaultSelected(option) {
315
+ return super._isDefaultSelected(option) || option.text !== "" && option.text === this.initialValue;
316
+ }
317
+ /**
318
+ * Focus and set the content of the control based on the first selected option.
319
+ *
320
+ * @internal
321
+ */
322
+ setInputToSelection() {
323
+ if (this.firstSelectedOption) {
324
+ this.control.value = this.firstSelectedOption.text;
325
+ this.control.focus();
326
+ }
327
+ }
328
+ /**
329
+ * Focus, set and select the content of the control based on the first selected option.
330
+ *
331
+ * @internal
332
+ */
333
+ setInlineSelection() {
334
+ /* v8 ignore else -- @preserve */
335
+ if (this.firstSelectedOption) {
336
+ this.setInputToSelection();
337
+ this.control.setSelectionRange(this.filter.length, this.control.value.length, "backward");
338
+ }
339
+ }
340
+ /**
341
+ * Determines if a value update should involve emitting a change event, then updates the value.
342
+ *
343
+ * @internal
344
+ */
345
+ syncValue() {
346
+ const newValue = this.firstSelectedOption?.text ?? this.control.value;
347
+ this.updateValue(this.value !== newValue);
348
+ }
349
+ /**
350
+ * Ensure that the entire list of options is used when setting the selected property.
351
+ *
352
+ * @param prev - the previous list of selected options
353
+ * @param next - the current list of selected options
354
+ *
355
+ * @internal
356
+ * @remarks
357
+ * Overrides: `Listbox.selectedOptionsChanged`
358
+ */
359
+ selectedOptionsChanged(_prev, next) {
360
+ if (this.$fastController.isConnected) this._options.forEach((o) => {
361
+ o.selected = next.includes(o);
362
+ });
363
+ }
364
+ /**
365
+ * Synchronize the form-associated proxy and update the value property of the element.
366
+ *
367
+ * @param prev - the previous collection of slotted option elements
368
+ * @param next - the next collection of slotted option elements
369
+ *
370
+ * @internal
371
+ */
372
+ slottedOptionsChanged(prev, next) {
373
+ super.slottedOptionsChanged(prev, next);
374
+ this.updateValue();
375
+ const scale = this.getAttribute("scale") || this.scale;
376
+ next.forEach((element) => {
377
+ if (scale) {
378
+ element.setAttribute("scale", scale);
379
+ element.scale = scale;
380
+ }
381
+ });
382
+ }
383
+ /**
384
+ * Sets the value and to match the first selected option.
385
+ *
386
+ * @param shouldEmit - if true, the change event will be emitted
387
+ *
388
+ * @internal
389
+ */
390
+ updateValue(shouldEmit) {
391
+ if (this.$fastController.isConnected) this.value = this.firstSelectedOption?.text || this.control.value;
392
+ if (shouldEmit) this.$emit("change");
393
+ }
394
+ /**
395
+ * @internal
396
+ */
397
+ clearSelectionRange() {
398
+ const controlValueLength = this.control.value.length;
399
+ this.control.setSelectionRange(controlValueLength, controlValueLength);
18
400
  }
19
401
  };
20
- __decorate([attr({ mode: "fromView" })], ContextualHelp.prototype, "placement", void 0);
402
+ __decorate([attr({
403
+ attribute: "autocomplete",
404
+ mode: "fromView"
405
+ })], Combobox.prototype, "autocomplete", void 0);
406
+ __decorate([attr], Combobox.prototype, "appearance", void 0);
407
+ __decorate([attr], Combobox.prototype, "shape", void 0);
408
+ __decorate([attr()], Combobox.prototype, "scale", void 0);
409
+ __decorate([attr], Combobox.prototype, "placement", void 0);
410
+ __decorate([attr({
411
+ mode: "boolean",
412
+ attribute: "fixed-dropdown"
413
+ })], Combobox.prototype, "fixedDropdown", void 0);
414
+ __decorate([observable], Combobox.prototype, "metaSlottedContent", void 0);
415
+ __decorate([observable], Combobox.prototype, "maxHeight", void 0);
416
+ __decorate([attr({
417
+ attribute: "open",
418
+ mode: "boolean"
419
+ })], Combobox.prototype, "open", void 0);
420
+ __decorate([attr], Combobox.prototype, "placeholder", void 0);
21
421
  //#endregion
22
- //#region src/lib/contextual-help/contextual-help.template.ts
23
- var getClasses = (_) => classNames("control");
24
- /**
25
- * The template for the ContextualHelp component.
26
- *
27
- * @param context - element definition context
28
- * @public
29
- */
30
- var ContextualHelpTemplate = (context) => {
31
- const toggletipTag = context.tagFor(Toggletip);
32
- const iconTag = context.tagFor(Icon);
422
+ //#region src/lib/combobox/combobox.template.ts
423
+ var getStateClasses = ({ icon, iconSlottedContent, metaSlottedContent, errorValidationMessage, successText, shape, scale, disabled, placeholder, label, appearance, open, _activeDescendant }) => classNames("base", ["disabled", disabled], [`shape-${shape}`, Boolean(shape)], [`size-${scale}`, Boolean(scale)], ["placeholder", Boolean(placeholder)], [`appearance-${appearance}`, Boolean(appearance)], ["no-label", !label], ["has-icon", !!icon || Boolean(iconSlottedContent?.length)], ["has-meta", Boolean(metaSlottedContent?.length)], ["has-activedescendant", Boolean(_activeDescendant) && open], ["error", Boolean(errorValidationMessage)], ["success", !!successText]);
424
+ function renderLabel() {
425
+ return html` <label for="control" class="label">
426
+ ${(x) => x.label}
427
+ </label>`;
428
+ }
429
+ function setFixedDropdownVarWidth(x) {
430
+ return x.open && x.fixedDropdown ? `--_combobox-fixed-width: ${Math.round(x.getBoundingClientRect().width)}px` : null;
431
+ }
432
+ function renderInput(context) {
433
+ const affixIconTemplate = affixIconTemplateFactory(context);
434
+ const chevronTemplate = chevronTemplateFactory(context);
435
+ return html` <div class="${getStateClasses}" ${ref("_anchor")}>
436
+ <div
437
+ class="label-wrapper"
438
+ ?hidden=${(x) => !x.label && !x._hasContextualHelp}
439
+ >
440
+ ${when((x) => x.label, renderLabel())}
441
+ <slot
442
+ name="contextual-help"
443
+ ${slotted("_contextualHelpSlottedContent")}
444
+ ></slot>
445
+ </div>
446
+ <div class="fieldset">
447
+ ${(x) => affixIconTemplate(x.icon, IconWrapper.Slot)}
448
+ <div class="wrapper">
449
+ <input
450
+ id="control"
451
+ autocomplete="off"
452
+ class="control"
453
+ aria-activedescendant="${(x) => x.open ? x._activeDescendant : null}"
454
+ aria-autocomplete="${(x) => x.autocomplete}"
455
+ aria-controls="${(x) => x.listboxId}"
456
+ aria-expanded="${(x) => x.open}"
457
+ aria-haspopup="listbox"
458
+ aria-describedby="${(x) => x._feedbackDescribedBy}"
459
+ placeholder="${(x) => x.placeholder}"
460
+ role="combobox"
461
+ type="text"
462
+ ?disabled="${(x) => x.disabled}"
463
+ :value="${(x) => x.value}"
464
+ @input="${(x, c) => x.inputHandler(c.event)}"
465
+ ${ref("control")}
466
+ />
467
+ </div>
468
+ <div class="leading-items-wrapper">
469
+ <slot name="meta" ${slotted("metaSlottedContent")}></slot>
470
+ <div
471
+ @click="${(x, c) => x._chevronIconClickHandler(c.event)}"
472
+ >
473
+ ${chevronTemplate}
474
+ </div>
475
+ </div>
476
+ </div>
477
+ </div>`;
478
+ }
479
+ var comboboxTemplate = (context) => {
480
+ const popupTag = context.tagFor(Popup);
33
481
  return html`
34
- <${toggletipTag} class="base" exportparts="vvd-theme-alternate">
35
- <button class="${getClasses}" slot="anchor">
36
- <slot name="icon" slot="icon">
37
- <${iconTag} name="help-solid"></${iconTag}>
38
- </slot>
39
- </button>
40
- <slot></slot>
41
- </${toggletipTag}>
482
+ <template
483
+ tabindex="${(x) => !x.disabled ? "0" : null}"
484
+ class="${(x) => classNames(["has-activedescendant", Boolean(x._activeDescendant) && x.open])}"
485
+ @click="${(x, c) => x.clickHandler(c.event)}"
486
+ @focusout="${(x, c) => x.focusoutHandler(c.event)}"
487
+ @keydown="${(x, { event }) => {
488
+ x.open && handleEscapeKeyAndStopPropogation(event);
489
+ return x.keydownHandler(event);
490
+ }}"
491
+ >
492
+ <div class="control-wrapper">
493
+ ${() => renderInput(context)}
494
+ <${popupTag} class="popup"
495
+ style="${setFixedDropdownVarWidth}"
496
+ ?open="${(x) => x.open}"
497
+ placement="${(x) => x.placement ?? "bottom-start"}"
498
+ strategy="${(x) => x.fixedDropdown ? "fixed" : "absolute"}"
499
+ ${ref("_popup")}>
500
+ <div id="${(x) => x.listboxId}"
501
+ class="listbox"
502
+ role="listbox"
503
+ ?disabled="${(x) => x.disabled}"
504
+ ${ref("listbox")}>
505
+ <slot ${slotted({
506
+ filter: Listbox.slottedOptionFilter,
507
+ flatten: true,
508
+ property: "slottedOptions"
509
+ })}>
510
+ </slot>
511
+ </div>
512
+ </${popupTag}>
513
+ </div>
514
+ <div class="feedback-wrapper" @click="${(_, c) => c.event.stopPropagation()}">
515
+ ${(x) => x._getFeedbackTemplate(context)}
516
+ </div>
517
+ </template>
42
518
  `;
43
519
  };
44
520
  //#endregion
45
- //#region src/lib/contextual-help/definition.ts
521
+ //#region src/lib/combobox/definition.ts
46
522
  /**
47
523
  * @internal
48
524
  */
49
- var contextualHelpDefinition = defineVividComponent("contextual-help", ContextualHelp, ContextualHelpTemplate, [iconDefinition, toggletipDefinition], { styles: ".control{--_connotation-color-primary:var(--vvd-button-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-button-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-button-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-contrast:var(--vvd-button-accent-contrast,var(--vvd-color-neutral-800));--_connotation-color-fierce:var(--vvd-button-accent-fierce,var(--vvd-color-neutral-700));--_connotation-color-firm:var(--vvd-button-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-soft:var(--vvd-button-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-faint:var(--vvd-button-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-fierce-primary:var(--vvd-button-accent-fierce-primary,var(--vvd-color-canvas-text));--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.control:disabled,.control.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control:active:where(:not(.disabled,:disabled)),.control.active:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-soft);--_appearance-color-outline:transparent}.control{--focus-stroke-gap-color:transparent;box-sizing:border-box;background-color:var(--_appearance-color-fill);block-size:var(--_button-block-size,24px);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);cursor:pointer;padding-inline:calc(var(--_button-block-size,24px) / 6);vertical-align:middle;border:0;border-radius:50%;justify-content:center;align-items:center;margin:0;display:inline-flex}@supports (aspect-ratio:auto){.control{aspect-ratio:1;padding:0}}.control:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}slot[name=icon]{font-size:var(--_button-icon-size,16px);line-height:1}" });
525
+ var comboboxDefinition = defineVividComponent("combobox", Combobox, comboboxTemplate, [
526
+ iconDefinition,
527
+ popupDefinition,
528
+ listboxOptionDefinition,
529
+ feedbackMessageDefinition
530
+ ], {
531
+ styles: [text_field_default, combobox_default],
532
+ shadowOptions: { delegatesFocus: true }
533
+ });
50
534
  /**
51
- * Registers the contextual-help element with the design system.
535
+ * Registers the combobox elements with the design system.
52
536
  *
53
537
  * @param prefix - the prefix to use for the component name
54
538
  */
55
- var registerContextualHelp = createRegisterFunction(contextualHelpDefinition);
539
+ var registerCombobox = createRegisterFunction(comboboxDefinition);
56
540
  //#endregion
57
- export { registerContextualHelp as n, ContextualHelp as r, contextualHelpDefinition as t };
541
+ export { registerCombobox as n, Combobox as r, comboboxDefinition as t };