@dialpad/dialtone-vue 4.10.0 → 4.11.1

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 (641) hide show
  1. package/dist/{Combobox-DP8tbe6x.js → Combobox-8vN7Njqe.js} +5 -5
  2. package/dist/{Combobox-DP8tbe6x.js.map → Combobox-8vN7Njqe.js.map} +1 -1
  3. package/dist/Combobox-CmASo310.cjs +3 -0
  4. package/dist/{Combobox-DdBIRmeH.cjs.map → Combobox-CmASo310.cjs.map} +1 -1
  5. package/dist/{Datepicker-CNFVUyyK.js → Datepicker-BeNUNF5U.js} +39 -39
  6. package/dist/{Datepicker-CNFVUyyK.js.map → Datepicker-BeNUNF5U.js.map} +1 -1
  7. package/dist/Datepicker-C-aExL3M.cjs +2 -0
  8. package/dist/{Datepicker-Df6uR0r_.cjs.map → Datepicker-C-aExL3M.cjs.map} +1 -1
  9. package/dist/{EmojiPicker-B7AKJlAM.js → EmojiPicker-Bondna8R.js} +2 -2
  10. package/dist/{EmojiPicker-B7AKJlAM.js.map → EmojiPicker-Bondna8R.js.map} +1 -1
  11. package/dist/EmojiPicker-DDtsv-Ix.cjs +2 -0
  12. package/dist/{EmojiPicker-KbIfc-GH.cjs.map → EmojiPicker-DDtsv-Ix.cjs.map} +1 -1
  13. package/dist/{FilterPill-BR7FAmMG.js → FilterPill-BUAdXhR-.js} +5 -5
  14. package/dist/{FilterPill-BR7FAmMG.js.map → FilterPill-BUAdXhR-.js.map} +1 -1
  15. package/dist/FilterPill-CgM4bCLl.cjs +2 -0
  16. package/dist/{FilterPill-DwapR9JK.cjs.map → FilterPill-CgM4bCLl.cjs.map} +1 -1
  17. package/dist/{ForceLinkify-D4FBhBxD.cjs → ForceLinkify-5mUtF-wp.cjs} +2 -2
  18. package/dist/{ForceLinkify-D4FBhBxD.cjs.map → ForceLinkify-5mUtF-wp.cjs.map} +1 -1
  19. package/dist/{ForceLinkify-wTXS_wJS.js → ForceLinkify-W4glPHzT.js} +1 -1
  20. package/dist/{ForceLinkify-wTXS_wJS.js.map → ForceLinkify-W4glPHzT.js.map} +1 -1
  21. package/dist/{MarkdownRenderer-CaBjENW6.cjs → MarkdownRenderer-DHZjuYwF.cjs} +2 -2
  22. package/dist/{MarkdownRenderer-CaBjENW6.cjs.map → MarkdownRenderer-DHZjuYwF.cjs.map} +1 -1
  23. package/dist/{MarkdownRenderer-3CVbodrq.js → MarkdownRenderer-uO19k9XV.js} +1 -1
  24. package/dist/{MarkdownRenderer-3CVbodrq.js.map → MarkdownRenderer-uO19k9XV.js.map} +1 -1
  25. package/dist/{Presence-DLM3JR-n.cjs → Presence-CgrPxxCh.cjs} +2 -2
  26. package/dist/{Presence-DLM3JR-n.cjs.map → Presence-CgrPxxCh.cjs.map} +1 -1
  27. package/dist/{Presence-CGgyodnC.js → Presence-Cvkwr3-o.js} +2 -2
  28. package/dist/{Presence-CGgyodnC.js.map → Presence-Cvkwr3-o.js.map} +1 -1
  29. package/dist/ProgressBar-B3sKagEm.cjs +2 -0
  30. package/dist/ProgressBar-B3sKagEm.cjs.map +1 -0
  31. package/dist/ProgressBar-BR6u1SYw.js +77 -0
  32. package/dist/ProgressBar-BR6u1SYw.js.map +1 -0
  33. package/dist/{Resizable-BQsHIvDC.cjs → Resizable-DNRQ89ei.cjs} +2 -2
  34. package/dist/{Resizable-BQsHIvDC.cjs.map → Resizable-DNRQ89ei.cjs.map} +1 -1
  35. package/dist/{Resizable-F6PU5oKB.js → Resizable-ZMxRRIiG.js} +3 -3
  36. package/dist/{Resizable-F6PU5oKB.js.map → Resizable-ZMxRRIiG.js.map} +1 -1
  37. package/dist/{ResizableHandle-VBoudEYy.cjs → ResizableHandle-Dj5cqVLM.cjs} +2 -2
  38. package/dist/{ResizableHandle-VBoudEYy.cjs.map → ResizableHandle-Dj5cqVLM.cjs.map} +1 -1
  39. package/dist/{ResizableHandle-CqIIQvza.js → ResizableHandle-Py6b-ZRJ.js} +3 -3
  40. package/dist/{ResizableHandle-CqIIQvza.js.map → ResizableHandle-Py6b-ZRJ.js.map} +1 -1
  41. package/dist/{ResizableUtils-CZdVSd6q.cjs → ResizableUtils-CXU7o9pL.cjs} +1 -1
  42. package/dist/{ResizableUtils-CZdVSd6q.cjs.map → ResizableUtils-CXU7o9pL.cjs.map} +1 -1
  43. package/dist/{ResizableUtils-CrBOa8js.js → ResizableUtils-D8f1CrnP.js} +1 -1
  44. package/dist/{ResizableUtils-CrBOa8js.js.map → ResizableUtils-D8f1CrnP.js.map} +1 -1
  45. package/dist/RichTextEditor-D5n9tM7A.cjs +11 -0
  46. package/dist/{RichTextEditor-ECmStZDK.cjs.map → RichTextEditor-D5n9tM7A.cjs.map} +1 -1
  47. package/dist/{RichTextEditor-DLiJCPI6.js → RichTextEditor-Dit5pXhR.js} +318 -318
  48. package/dist/{RichTextEditor-DLiJCPI6.js.map → RichTextEditor-Dit5pXhR.js.map} +1 -1
  49. package/dist/Scroller-B1jRO70r.cjs +2 -0
  50. package/dist/{Scroller-EIHN3a26.cjs.map → Scroller-B1jRO70r.cjs.map} +1 -1
  51. package/dist/{Scroller-D6f0HvIT.js → Scroller-sUpsRoYR.js} +3 -3
  52. package/dist/{Scroller-D6f0HvIT.js.map → Scroller-sUpsRoYR.js.map} +1 -1
  53. package/dist/{Slider-Bg9KspmL.js → Slider-DCHze-Pg.js} +7 -7
  54. package/dist/{Slider-Bg9KspmL.js.map → Slider-DCHze-Pg.js.map} +1 -1
  55. package/dist/Slider-DJNR095B.cjs +2 -0
  56. package/dist/{Slider-BDgY7gNR.cjs.map → Slider-DJNR095B.cjs.map} +1 -1
  57. package/dist/{Text-5MobHF6z.js → Text-B6HaId2l.js} +4 -4
  58. package/dist/Text-B6HaId2l.js.map +1 -0
  59. package/dist/Text-BosPFEHO.cjs +2 -0
  60. package/dist/Text-BosPFEHO.cjs.map +1 -0
  61. package/dist/{TextList-DIj84CPZ.js → TextList-BsE0G1zC.js} +1 -1
  62. package/dist/{TextList-DIj84CPZ.js.map → TextList-BsE0G1zC.js.map} +1 -1
  63. package/dist/{TextList-1_ZM5zE3.cjs → TextList-DvuP7qmJ.cjs} +2 -2
  64. package/dist/{TextList-1_ZM5zE3.cjs.map → TextList-DvuP7qmJ.cjs.map} +1 -1
  65. package/dist/{TextListItem-BhmijfFO.js → TextListItem-Cm_gTXMN.js} +2 -2
  66. package/dist/{TextListItem-BhmijfFO.js.map → TextListItem-Cm_gTXMN.js.map} +1 -1
  67. package/dist/TextListItem-Dd7Ht3T9.cjs +2 -0
  68. package/dist/{TextListItem-CVjrHr2_.cjs.map → TextListItem-Dd7Ht3T9.cjs.map} +1 -1
  69. package/dist/Toast-B2Pf0Xwa.cjs +2 -0
  70. package/dist/{Toast--W8p7jzA.cjs.map → Toast-B2Pf0Xwa.cjs.map} +1 -1
  71. package/dist/{Toast-4nsu1oxP.js → Toast-DtUEXL_6.js} +3 -3
  72. package/dist/{Toast-4nsu1oxP.js.map → Toast-DtUEXL_6.js.map} +1 -1
  73. package/dist/{UseResizableCalculations-B-yTU9ZI.js → UseResizableCalculations-BG_DFstC.js} +2 -2
  74. package/dist/{UseResizableCalculations-B-yTU9ZI.js.map → UseResizableCalculations-BG_DFstC.js.map} +1 -1
  75. package/dist/{UseResizableCalculations-CahDXDOn.cjs → UseResizableCalculations-D4xVxWje.cjs} +2 -2
  76. package/dist/{UseResizableCalculations-CahDXDOn.cjs.map → UseResizableCalculations-D4xVxWje.cjs.map} +1 -1
  77. package/dist/chunk-BK-Lzi7j.cjs +1 -0
  78. package/dist/common/composables/use-accessible-name-warning.cjs +2 -0
  79. package/dist/common/composables/use-accessible-name-warning.cjs.map +1 -0
  80. package/dist/common/composables/use-accessible-name-warning.js +11 -0
  81. package/dist/common/composables/use-accessible-name-warning.js.map +1 -0
  82. package/dist/common/composables/use-indicator-animation.cjs +1 -1
  83. package/dist/common/composables/use-indicator-animation.cjs.map +1 -1
  84. package/dist/common/composables/use-indicator-animation.js +14 -14
  85. package/dist/common/composables/use-indicator-animation.js.map +1 -1
  86. package/dist/common/composables/useAccessibleNameWarning.d.ts +2 -0
  87. package/dist/common/composables/useAccessibleNameWarning.d.ts.map +1 -0
  88. package/dist/common/composables/useIndicatorAnimation.d.ts +2 -1
  89. package/dist/common/composables/useIndicatorAnimation.d.ts.map +1 -1
  90. package/dist/common/dates/index.cjs +1 -1
  91. package/dist/common/dates/index.cjs.map +1 -1
  92. package/dist/common/dates/index.d.ts +1 -1
  93. package/dist/common/dates/index.d.ts.map +1 -1
  94. package/dist/common/dates/index.js +1 -1
  95. package/dist/common/dates/index.js.map +1 -1
  96. package/dist/common/emoji/index.cjs +1 -1
  97. package/dist/common/mixins/input-group.cjs +1 -1
  98. package/dist/common/mixins/input-group.cjs.map +1 -1
  99. package/dist/common/mixins/input-group.js +5 -5
  100. package/dist/common/mixins/input.cjs +1 -1
  101. package/dist/common/mixins/input.cjs.map +1 -1
  102. package/dist/common/mixins/input.js +1 -1
  103. package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
  104. package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  105. package/dist/common/mixins/keyboard-list-navigation.js +1 -1
  106. package/dist/common/mixins/modal.cjs +1 -1
  107. package/dist/common/mixins/modal.cjs.map +1 -1
  108. package/dist/common/mixins/modal.d.ts +1 -1
  109. package/dist/common/mixins/modal.d.ts.map +1 -1
  110. package/dist/common/mixins/modal.js +1 -1
  111. package/dist/common/mixins/modal.js.map +1 -1
  112. package/dist/common/mixins/mode.cjs +1 -1
  113. package/dist/common/mixins/mode.js +1 -1
  114. package/dist/common/owned_classes.d.ts +4 -0
  115. package/dist/common/owned_classes.d.ts.map +1 -0
  116. package/dist/common/phone/index.cjs +1 -1
  117. package/dist/common/sr_only_close_button.vue.d.ts +6 -5
  118. package/dist/common/sr_only_close_button.vue.d.ts.map +1 -1
  119. package/dist/common/utils/index.cjs +1 -2
  120. package/dist/common/utils/index.d.ts +2 -2
  121. package/dist/common/utils/index.d.ts.map +1 -1
  122. package/dist/common/utils/index.js +2 -150
  123. package/dist/component-documentation.json +1 -1
  124. package/dist/components/Avatar/Avatar.vue.d.ts +4 -4
  125. package/dist/components/Banner/Banner.vue.d.ts +12 -16
  126. package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
  127. package/dist/components/Box/Box.vue.d.ts +6 -10
  128. package/dist/components/Box/Box.vue.d.ts.map +1 -1
  129. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +2 -1
  130. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts.map +1 -1
  131. package/dist/components/Button/Button.vue.d.ts +4 -3
  132. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  133. package/dist/components/Checkbox/Checkbox.vue.d.ts +2 -6
  134. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  135. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -6
  136. package/dist/components/Chip/Chip.vue.d.ts +6 -5
  137. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  138. package/dist/components/Collapsible/Collapsible.vue.d.ts +3 -3
  139. package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
  140. package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +12 -11
  141. package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
  142. package/dist/components/Datepicker/Datepicker.vue.d.ts +1 -66
  143. package/dist/components/Datepicker/Modules/Calendar.vue.d.ts +1 -1
  144. package/dist/components/Dropdown/Dropdown.vue.d.ts +12 -11
  145. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  146. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +1 -904
  147. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
  148. package/dist/components/EmojiPicker/Modules/EmojiDescription.vue.d.ts +1 -1
  149. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +1 -810
  150. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
  151. package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts +1 -4
  152. package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts.map +1 -1
  153. package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts +1 -3
  154. package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts.map +1 -1
  155. package/dist/components/EmojiPicker/Modules/EmojiTabset.vue.d.ts +1 -1
  156. package/dist/components/EmptyState/EmptyState.vue.d.ts +11 -3
  157. package/dist/components/EmptyState/EmptyState.vue.d.ts.map +1 -1
  158. package/dist/components/FilterPill/FilterPill.vue.d.ts +44 -52
  159. package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
  160. package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts +7 -11
  161. package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts.map +1 -1
  162. package/dist/components/Hovercard/Hovercard.vue.d.ts +11 -3260
  163. package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
  164. package/dist/components/ImageViewer/ImageViewer.vue.d.ts +11 -10
  165. package/dist/components/ImageViewer/ImageViewer.vue.d.ts.map +1 -1
  166. package/dist/components/Input/Input.vue.d.ts +2 -6
  167. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  168. package/dist/components/InputGroup/InputGroup.vue.d.ts +2 -6
  169. package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
  170. package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +2 -6
  171. package/dist/components/Loader/Loader.vue.d.ts +3 -2
  172. package/dist/components/Loader/Loader.vue.d.ts.map +1 -1
  173. package/dist/components/Modal/Modal.vue.d.ts +13 -16
  174. package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
  175. package/dist/components/Notice/Notice.vue.d.ts +12 -16
  176. package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
  177. package/dist/components/Notice/NoticeAction.vue.d.ts +11 -10
  178. package/dist/components/Notice/NoticeAction.vue.d.ts.map +1 -1
  179. package/dist/components/Notice/NoticeContent.vue.d.ts +2 -6
  180. package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
  181. package/dist/components/Pagination/Pagination.vue.d.ts +7 -6
  182. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  183. package/dist/components/Popover/Popover.vue.d.ts +12 -11
  184. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  185. package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts +6 -5
  186. package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts.map +1 -1
  187. package/dist/components/Presence/Presence.vue.d.ts +4 -4
  188. package/dist/components/Presence/modules/presence_active_icon.vue.d.ts +1 -1
  189. package/dist/components/Presence/modules/presence_active_icon.vue.d.ts.map +1 -1
  190. package/dist/components/Presence/modules/presence_away_icon.vue.d.ts +1 -1
  191. package/dist/components/Presence/modules/presence_away_icon.vue.d.ts.map +1 -1
  192. package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts +1 -1
  193. package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts.map +1 -1
  194. package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts +1 -1
  195. package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts.map +1 -1
  196. package/dist/components/ProgressBar/ProgressBar.vue.d.ts +66 -0
  197. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -0
  198. package/dist/components/ProgressBar/ProgressBarConstants.d.ts +18 -0
  199. package/dist/components/ProgressBar/ProgressBarConstants.d.ts.map +1 -0
  200. package/dist/components/ProgressBar/index.d.ts +3 -0
  201. package/dist/components/ProgressBar/index.d.ts.map +1 -0
  202. package/dist/components/ProgressCircle/ProgressCircle.vue.d.ts +41 -9
  203. package/dist/components/Prose/Prose.vue.d.ts +5 -14
  204. package/dist/components/Prose/Prose.vue.d.ts.map +1 -1
  205. package/dist/components/Radio/Radio.vue.d.ts +2 -6
  206. package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
  207. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +2 -6
  208. package/dist/components/Resizable/Resizable.vue.d.ts +16 -23
  209. package/dist/components/Resizable/Resizable.vue.d.ts.map +1 -1
  210. package/dist/components/Resizable/ResizableHandle.vue.d.ts +1 -3
  211. package/dist/components/Resizable/ResizablePanel.vue.d.ts +9 -14
  212. package/dist/components/Resizable/ResizablePanel.vue.d.ts.map +1 -1
  213. package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts.map +1 -1
  214. package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +6 -10
  215. package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +2 -6
  216. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +19 -21
  217. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
  218. package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts +15 -27
  219. package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts.map +1 -1
  220. package/dist/components/Scroller/Modules/DynamicScroller.vue.d.ts +18 -22
  221. package/dist/components/Scroller/Scroller.vue.d.ts +15 -772
  222. package/dist/components/Scroller/Scroller.vue.d.ts.map +1 -1
  223. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +5 -233
  224. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
  225. package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts +28 -17
  226. package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts.map +1 -1
  227. package/dist/components/SelectMenu/SelectMenu.vue.d.ts +2 -6
  228. package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
  229. package/dist/components/Slider/Slider.vue.d.ts +12 -23
  230. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  231. package/dist/components/SplitButton/SplitButton.vue.d.ts +18 -17
  232. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  233. package/dist/components/SplitButton/SplitButtonEnd.vue.d.ts +3 -3
  234. package/dist/components/SplitButton/SplitButtonStart.vue.d.ts +3 -3
  235. package/dist/components/Tab/Tab.vue.d.ts +21 -3
  236. package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
  237. package/dist/components/Tab/TabGroup.vue.d.ts +3 -1
  238. package/dist/components/Tab/TabGroup.vue.d.ts.map +1 -1
  239. package/dist/components/Tab/TabPanel.vue.d.ts +1 -1
  240. package/dist/components/Tab/TabPanel.vue.d.ts.map +1 -1
  241. package/dist/components/Text/Text.vue.d.ts +2 -6
  242. package/dist/components/Text/modules/SlideViewport.vue.d.ts +6 -19
  243. package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -1
  244. package/dist/components/Text/modules/slide.d.ts.map +1 -1
  245. package/dist/components/TextList/TextList.vue.d.ts +6 -15
  246. package/dist/components/TextList/TextList.vue.d.ts.map +1 -1
  247. package/dist/components/TextList/TextListItem.vue.d.ts +8 -12
  248. package/dist/components/TextList/TextListItem.vue.d.ts.map +1 -1
  249. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +12 -16
  250. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
  251. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +12 -16
  252. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
  253. package/dist/components/Toast/Toast.vue.d.ts +48 -64
  254. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  255. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  256. package/dist/dialtone-vue.cjs +1 -1
  257. package/dist/dialtone-vue.js +51 -49
  258. package/dist/dist-3sDwkm0K.js +382 -0
  259. package/dist/dist-3sDwkm0K.js.map +1 -0
  260. package/dist/dist-DzjXnVZt.cjs +2 -0
  261. package/dist/dist-DzjXnVZt.cjs.map +1 -0
  262. package/dist/{floating-ui.dom-Cqf6X2Wc.js → floating-ui.dom-B8Mp8J0T.js} +1 -1
  263. package/dist/{floating-ui.dom-Cqf6X2Wc.js.map → floating-ui.dom-B8Mp8J0T.js.map} +1 -1
  264. package/dist/{floating-ui.dom-n1CheoWj.cjs → floating-ui.dom-C23Y4xMx.cjs} +1 -1
  265. package/dist/{floating-ui.dom-n1CheoWj.cjs.map → floating-ui.dom-C23Y4xMx.cjs.map} +1 -1
  266. package/dist/index.d.ts +1 -0
  267. package/dist/lib/avatar/avatar.cjs +1 -1
  268. package/dist/lib/avatar/avatar.cjs.map +1 -1
  269. package/dist/lib/avatar/avatar.js +7 -7
  270. package/dist/lib/avatar/index.d.ts +1 -0
  271. package/dist/lib/badge/badge.cjs +1 -1
  272. package/dist/lib/badge/badge.cjs.map +1 -1
  273. package/dist/lib/badge/badge.js +2 -2
  274. package/dist/lib/badge/index.d.ts +1 -0
  275. package/dist/lib/banner/banner.cjs +1 -1
  276. package/dist/lib/banner/banner.cjs.map +1 -1
  277. package/dist/lib/banner/banner.js +2 -2
  278. package/dist/lib/banner/index.d.ts +1 -0
  279. package/dist/lib/box/box.cjs +1 -1
  280. package/dist/lib/box/index.d.ts +1 -0
  281. package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
  282. package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  283. package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
  284. package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  285. package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
  286. package/dist/lib/breadcrumbs/index.d.ts +1 -0
  287. package/dist/lib/button/button.cjs +1 -1
  288. package/dist/lib/button/button.cjs.map +1 -1
  289. package/dist/lib/button/button.js +6 -6
  290. package/dist/lib/button/button.js.map +1 -1
  291. package/dist/lib/button/index.d.ts +1 -0
  292. package/dist/lib/button-group/button-group.cjs +1 -1
  293. package/dist/lib/button-group/button-group.js +1 -1
  294. package/dist/lib/button-group/buttons-decorator.cjs +1 -1
  295. package/dist/lib/button-group/buttons-decorator.js +1 -1
  296. package/dist/lib/button-group/index.d.ts +1 -0
  297. package/dist/lib/card/card.cjs +1 -1
  298. package/dist/lib/card/card.cjs.map +1 -1
  299. package/dist/lib/card/card.js +2 -2
  300. package/dist/lib/card/index.d.ts +1 -0
  301. package/dist/lib/checkbox/checkbox.cjs +1 -1
  302. package/dist/lib/checkbox/checkbox.cjs.map +1 -1
  303. package/dist/lib/checkbox/checkbox.js +5 -5
  304. package/dist/lib/checkbox/index.d.ts +1 -0
  305. package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
  306. package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
  307. package/dist/lib/checkbox-group/index.d.ts +1 -0
  308. package/dist/lib/chip/chip.cjs +1 -1
  309. package/dist/lib/chip/chip.cjs.map +1 -1
  310. package/dist/lib/chip/chip.js +4 -4
  311. package/dist/lib/chip/index.d.ts +1 -0
  312. package/dist/lib/codeblock/codeblock.cjs +1 -1
  313. package/dist/lib/codeblock/codeblock.js +1 -1
  314. package/dist/lib/codeblock/index.d.ts +1 -0
  315. package/dist/lib/collapsible/collapsible-lazy-show.cjs +1 -1
  316. package/dist/lib/collapsible/collapsible-lazy-show.js +1 -1
  317. package/dist/lib/collapsible/collapsible.cjs +1 -1
  318. package/dist/lib/collapsible/collapsible.cjs.map +1 -1
  319. package/dist/lib/collapsible/collapsible.js +4 -4
  320. package/dist/lib/collapsible/index.d.ts +1 -0
  321. package/dist/lib/combobox/combobox-empty-list.cjs +1 -1
  322. package/dist/lib/combobox/combobox-empty-list.js +1 -1
  323. package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
  324. package/dist/lib/combobox/combobox-loading-list.js +1 -1
  325. package/dist/lib/combobox/combobox.cjs +1 -1
  326. package/dist/lib/combobox/combobox.js +1 -1
  327. package/dist/lib/combobox/index.cjs +1 -1
  328. package/dist/lib/combobox/index.d.ts +1 -0
  329. package/dist/lib/combobox/index.js +1 -1
  330. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  331. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  332. package/dist/lib/combobox-multi-select/combobox-multi-select.js +8 -8
  333. package/dist/lib/combobox-multi-select/index.d.ts +1 -0
  334. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  335. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  336. package/dist/lib/combobox-with-popover/combobox-with-popover.js +7 -7
  337. package/dist/lib/combobox-with-popover/index.d.ts +1 -0
  338. package/dist/lib/datepicker/datepicker.cjs +1 -1
  339. package/dist/lib/datepicker/datepicker.js +1 -1
  340. package/dist/lib/datepicker/index.cjs +1 -1
  341. package/dist/lib/datepicker/index.d.ts +1 -0
  342. package/dist/lib/datepicker/index.js +1 -1
  343. package/dist/lib/datepicker/utils.cjs +1 -1
  344. package/dist/lib/description-list/description-list.cjs +1 -1
  345. package/dist/lib/description-list/description-list.js +1 -1
  346. package/dist/lib/description-list/index.d.ts +1 -0
  347. package/dist/lib/dropdown/dropdown-list.cjs +1 -1
  348. package/dist/lib/dropdown/dropdown-list.js +2 -2
  349. package/dist/lib/dropdown/dropdown-separator.cjs +1 -1
  350. package/dist/lib/dropdown/dropdown-separator.js +1 -1
  351. package/dist/lib/dropdown/dropdown.cjs +1 -1
  352. package/dist/lib/dropdown/dropdown.cjs.map +1 -1
  353. package/dist/lib/dropdown/dropdown.js +3 -3
  354. package/dist/lib/dropdown/dropdown.js.map +1 -1
  355. package/dist/lib/dropdown/index.d.ts +1 -0
  356. package/dist/lib/emoji/emoji.cjs +1 -1
  357. package/dist/lib/emoji/emoji.js +1 -1
  358. package/dist/lib/emoji/index.d.ts +1 -0
  359. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  360. package/dist/lib/emoji-picker/emoji-picker.js +1 -1
  361. package/dist/lib/emoji-picker/index.cjs +1 -1
  362. package/dist/lib/emoji-picker/index.d.ts +1 -0
  363. package/dist/lib/emoji-picker/index.js +1 -1
  364. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  365. package/dist/lib/emoji-text-wrapper/index.d.ts +1 -0
  366. package/dist/lib/empty-state/empty-state.cjs +1 -1
  367. package/dist/lib/empty-state/empty-state.cjs.map +1 -1
  368. package/dist/lib/empty-state/empty-state.js +2 -2
  369. package/dist/lib/empty-state/index.d.ts +1 -0
  370. package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
  371. package/dist/lib/filter-pill/filter-pill-controlled.cjs.map +1 -1
  372. package/dist/lib/filter-pill/filter-pill-controlled.js +1 -1
  373. package/dist/lib/filter-pill/filter-pill.cjs +1 -1
  374. package/dist/lib/filter-pill/filter-pill.js +1 -1
  375. package/dist/lib/filter-pill/index.cjs +1 -1
  376. package/dist/lib/filter-pill/index.d.ts +1 -0
  377. package/dist/lib/filter-pill/index.js +1 -1
  378. package/dist/lib/focusgroup-directive/index.d.ts +1 -0
  379. package/dist/lib/focustrap-directive/index.d.ts +1 -0
  380. package/dist/lib/hovercard/hovercard.cjs +1 -1
  381. package/dist/lib/hovercard/hovercard.cjs.map +1 -1
  382. package/dist/lib/hovercard/hovercard.js +2 -2
  383. package/dist/lib/hovercard/index.d.ts +1 -0
  384. package/dist/lib/icon/icon-constants.cjs +1 -1
  385. package/dist/lib/icon/icon.cjs +1 -1
  386. package/dist/lib/icon/icon.js +1 -1
  387. package/dist/lib/icon/index.d.ts +1 -0
  388. package/dist/lib/illustration/illustration-constants.cjs +1 -1
  389. package/dist/lib/illustration/illustration.cjs +1 -1
  390. package/dist/lib/illustration/index.d.ts +1 -0
  391. package/dist/lib/image-viewer/image-viewer.cjs +1 -1
  392. package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
  393. package/dist/lib/image-viewer/image-viewer.js +2 -2
  394. package/dist/lib/image-viewer/index.d.ts +1 -0
  395. package/dist/lib/input/index.d.ts +1 -0
  396. package/dist/lib/input/input.cjs +1 -1
  397. package/dist/lib/input/input.cjs.map +1 -1
  398. package/dist/lib/input/input.js +8 -8
  399. package/dist/lib/input-group/index.d.ts +1 -0
  400. package/dist/lib/input-group/input-group.cjs +1 -1
  401. package/dist/lib/input-group/input-group.cjs.map +1 -1
  402. package/dist/lib/input-group/input-group.js +5 -5
  403. package/dist/lib/item-layout/index.d.ts +1 -0
  404. package/dist/lib/item-layout/item-layout.cjs +2 -2
  405. package/dist/lib/item-layout/item-layout.cjs.map +1 -1
  406. package/dist/lib/item-layout/item-layout.js +2 -2
  407. package/dist/lib/keyboard-shortcut/index.d.ts +1 -0
  408. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
  409. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +2 -2
  410. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
  411. package/dist/lib/kitchen-sink/kitchen-sink-view.js +2 -2
  412. package/dist/lib/lazy-show/index.d.ts +1 -0
  413. package/dist/lib/lazy-show/lazy-show.cjs +1 -1
  414. package/dist/lib/lazy-show/lazy-show.js +1 -1
  415. package/dist/lib/link/index.d.ts +1 -0
  416. package/dist/lib/link/link.cjs +1 -1
  417. package/dist/lib/link/link.js +1 -1
  418. package/dist/lib/list-item/index.d.ts +1 -0
  419. package/dist/lib/list-item/list-item.cjs +1 -1
  420. package/dist/lib/list-item/list-item.cjs.map +1 -1
  421. package/dist/lib/list-item/list-item.js +2 -2
  422. package/dist/lib/list-item-group/index.d.ts +1 -0
  423. package/dist/lib/list-item-group/list-item-group.cjs +1 -1
  424. package/dist/lib/list-item-group/list-item-group.cjs.map +1 -1
  425. package/dist/lib/list-item-group/list-item-group.js +2 -2
  426. package/dist/lib/loader/index.d.ts +1 -0
  427. package/dist/lib/loader/loader.cjs +1 -1
  428. package/dist/lib/loader/loader.js +1 -1
  429. package/dist/lib/modal/index.d.ts +1 -0
  430. package/dist/lib/modal/modal.cjs +1 -1
  431. package/dist/lib/modal/modal.cjs.map +1 -1
  432. package/dist/lib/modal/modal.js +9 -9
  433. package/dist/lib/modal/modal.js.map +1 -1
  434. package/dist/lib/mode-directive/index.d.ts +1 -0
  435. package/dist/lib/mode-directive/mode.cjs +1 -1
  436. package/dist/lib/mode-directive/mode.js +1 -1
  437. package/dist/lib/mode-island/index.d.ts +1 -0
  438. package/dist/lib/mode-island/mode-island.cjs +1 -1
  439. package/dist/lib/mode-island/mode-island.js +1 -1
  440. package/dist/lib/motion-text/index.d.ts +1 -0
  441. package/dist/lib/motion-text/motion-text.cjs +1 -1
  442. package/dist/lib/motion-text/motion-text.js +1 -1
  443. package/dist/lib/notice/index.d.ts +1 -0
  444. package/dist/lib/notice/notice-action.cjs +1 -1
  445. package/dist/lib/notice/notice-action.js +1 -1
  446. package/dist/lib/notice/notice-content.cjs +1 -1
  447. package/dist/lib/notice/notice-content.cjs.map +1 -1
  448. package/dist/lib/notice/notice-content.js +3 -3
  449. package/dist/lib/notice/notice-icon.cjs +1 -1
  450. package/dist/lib/notice/notice-icon.cjs.map +1 -1
  451. package/dist/lib/notice/notice-icon.js +2 -2
  452. package/dist/lib/notice/notice.cjs +1 -1
  453. package/dist/lib/notice/notice.js +1 -1
  454. package/dist/lib/pagination/index.d.ts +1 -0
  455. package/dist/lib/pagination/pagination.cjs +1 -1
  456. package/dist/lib/pagination/pagination.js +1 -1
  457. package/dist/lib/popover/index.d.ts +1 -0
  458. package/dist/lib/popover/popover-header-footer.cjs +1 -1
  459. package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
  460. package/dist/lib/popover/popover-header-footer.js +4 -4
  461. package/dist/lib/popover/popover.cjs +1 -1
  462. package/dist/lib/popover/popover.cjs.map +1 -1
  463. package/dist/lib/popover/popover.js +95 -82
  464. package/dist/lib/popover/popover.js.map +1 -1
  465. package/dist/lib/popover/tippy-utils.cjs +1 -1
  466. package/dist/lib/presence/index.cjs +1 -1
  467. package/dist/lib/presence/index.d.ts +1 -0
  468. package/dist/lib/presence/index.js +1 -1
  469. package/dist/lib/presence/presence.cjs +1 -1
  470. package/dist/lib/presence/presence.js +1 -1
  471. package/dist/lib/progress-bar/index.cjs +1 -0
  472. package/dist/lib/progress-bar/index.d.ts +1 -0
  473. package/dist/lib/progress-bar/index.js +2 -0
  474. package/dist/lib/progress-bar/progress-bar.cjs +1 -0
  475. package/dist/lib/progress-bar/progress-bar.js +2 -0
  476. package/dist/lib/progress-circle/index.d.ts +1 -0
  477. package/dist/lib/progress-circle/progress-circle.cjs +1 -1
  478. package/dist/lib/progress-circle/progress-circle.cjs.map +1 -1
  479. package/dist/lib/progress-circle/progress-circle.js +81 -42
  480. package/dist/lib/progress-circle/progress-circle.js.map +1 -1
  481. package/dist/lib/prose/index.d.ts +1 -0
  482. package/dist/lib/prose/prose.cjs +1 -1
  483. package/dist/lib/radio/index.d.ts +1 -0
  484. package/dist/lib/radio/radio.cjs +1 -1
  485. package/dist/lib/radio/radio.cjs.map +1 -1
  486. package/dist/lib/radio/radio.js +7 -7
  487. package/dist/lib/radio-group/index.d.ts +1 -0
  488. package/dist/lib/radio-group/radios-decorator.cjs +1 -1
  489. package/dist/lib/radio-group/radios-decorator.js +1 -1
  490. package/dist/lib/resizable/index.cjs +1 -1
  491. package/dist/lib/resizable/index.d.ts +1 -0
  492. package/dist/lib/resizable/index.js +3 -3
  493. package/dist/lib/resizable/resizable-handle.cjs +1 -1
  494. package/dist/lib/resizable/resizable-handle.js +1 -1
  495. package/dist/lib/resizable/resizable-panel.cjs +1 -1
  496. package/dist/lib/resizable/resizable-panel.js +1 -1
  497. package/dist/lib/resizable/resizable.cjs +1 -1
  498. package/dist/lib/resizable/resizable.js +1 -1
  499. package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
  500. package/dist/lib/rich-text-editor/force-linkify.js +1 -1
  501. package/dist/lib/rich-text-editor/index.cjs +1 -1
  502. package/dist/lib/rich-text-editor/index.d.ts +1 -0
  503. package/dist/lib/rich-text-editor/index.js +1 -1
  504. package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
  505. package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
  506. package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  507. package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
  508. package/dist/lib/root-layout/index.d.ts +1 -0
  509. package/dist/lib/root-layout/root-layout.cjs +1 -1
  510. package/dist/lib/root-layout/root-layout.js +1 -1
  511. package/dist/lib/scrollbar-directive/index.d.ts +1 -0
  512. package/dist/lib/scrollbar-directive/scrollbar.cjs +1 -1
  513. package/dist/lib/scroller/index.cjs +1 -1
  514. package/dist/lib/scroller/index.d.ts +1 -0
  515. package/dist/lib/scroller/index.js +1 -1
  516. package/dist/lib/scroller/scroller.cjs +1 -1
  517. package/dist/lib/scroller/scroller.js +1 -1
  518. package/dist/lib/segmented-control/index.d.ts +1 -0
  519. package/dist/lib/segmented-control/segmented-control-item.cjs +1 -1
  520. package/dist/lib/segmented-control/segmented-control-item.cjs.map +1 -1
  521. package/dist/lib/segmented-control/segmented-control-item.js +34 -4
  522. package/dist/lib/segmented-control/segmented-control-item.js.map +1 -1
  523. package/dist/lib/segmented-control/segmented-control.cjs +1 -1
  524. package/dist/lib/segmented-control/segmented-control.cjs.map +1 -1
  525. package/dist/lib/segmented-control/segmented-control.js +1 -1
  526. package/dist/lib/select-menu/index.d.ts +1 -0
  527. package/dist/lib/select-menu/select-menu.cjs +1 -1
  528. package/dist/lib/select-menu/select-menu.cjs.map +1 -1
  529. package/dist/lib/select-menu/select-menu.js +8 -8
  530. package/dist/lib/skeleton/index.d.ts +1 -0
  531. package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
  532. package/dist/lib/skeleton/skeleton-list-item.js +1 -1
  533. package/dist/lib/skeleton/skeleton-paragraph.cjs +1 -1
  534. package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
  535. package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
  536. package/dist/lib/skeleton/skeleton-shape.js +1 -1
  537. package/dist/lib/skeleton/skeleton-text.cjs +1 -1
  538. package/dist/lib/skeleton/skeleton-text.js +1 -1
  539. package/dist/lib/skeleton/skeleton.cjs +1 -1
  540. package/dist/lib/skeleton/skeleton.js +1 -1
  541. package/dist/lib/slider/index.cjs +1 -1
  542. package/dist/lib/slider/index.d.ts +1 -0
  543. package/dist/lib/slider/index.js +1 -1
  544. package/dist/lib/slider/slider.cjs +1 -1
  545. package/dist/lib/slider/slider.js +1 -1
  546. package/dist/lib/split-button/index.d.ts +1 -0
  547. package/dist/lib/split-button/split-button-end.cjs +1 -1
  548. package/dist/lib/split-button/split-button-end.cjs.map +1 -1
  549. package/dist/lib/split-button/split-button-end.js +2 -2
  550. package/dist/lib/split-button/split-button-start.cjs +1 -1
  551. package/dist/lib/split-button/split-button-start.js +1 -1
  552. package/dist/lib/split-button/split-button.cjs +1 -1
  553. package/dist/lib/split-button/split-button.cjs.map +1 -1
  554. package/dist/lib/split-button/split-button.js +5 -5
  555. package/dist/lib/stack/index.d.ts +1 -0
  556. package/dist/lib/stack/stack.cjs +1 -1
  557. package/dist/lib/stack/stack.js +1 -1
  558. package/dist/lib/tab/index.d.ts +1 -0
  559. package/dist/lib/tab/tab-group.cjs +1 -1
  560. package/dist/lib/tab/tab-group.cjs.map +1 -1
  561. package/dist/lib/tab/tab-group.js +12 -4
  562. package/dist/lib/tab/tab-group.js.map +1 -1
  563. package/dist/lib/tab/tab-panel.cjs +1 -1
  564. package/dist/lib/tab/tab-panel.cjs.map +1 -1
  565. package/dist/lib/tab/tab-panel.js +2 -2
  566. package/dist/lib/tab/tab.cjs +1 -1
  567. package/dist/lib/tab/tab.cjs.map +1 -1
  568. package/dist/lib/tab/tab.js +36 -6
  569. package/dist/lib/tab/tab.js.map +1 -1
  570. package/dist/lib/text/index.cjs +1 -1
  571. package/dist/lib/text/index.d.ts +1 -0
  572. package/dist/lib/text/index.js +1 -1
  573. package/dist/lib/text/text.cjs +1 -1
  574. package/dist/lib/text/text.js +1 -1
  575. package/dist/lib/text-list/index.cjs +1 -1
  576. package/dist/lib/text-list/index.d.ts +1 -0
  577. package/dist/lib/text-list/index.js +2 -2
  578. package/dist/lib/text-list/text-list-item.cjs +1 -1
  579. package/dist/lib/text-list/text-list-item.js +1 -1
  580. package/dist/lib/text-list/text-list.cjs +1 -1
  581. package/dist/lib/text-list/text-list.js +1 -1
  582. package/dist/lib/toast/index.cjs +1 -1
  583. package/dist/lib/toast/index.d.ts +1 -0
  584. package/dist/lib/toast/index.js +1 -1
  585. package/dist/lib/toast/toast.cjs +1 -1
  586. package/dist/lib/toast/toast.js +1 -1
  587. package/dist/lib/toggle/index.d.ts +1 -0
  588. package/dist/lib/toggle/toggle.cjs +1 -1
  589. package/dist/lib/toggle/toggle.cjs.map +1 -1
  590. package/dist/lib/toggle/toggle.js +4 -4
  591. package/dist/lib/tooltip/index.d.ts +1 -0
  592. package/dist/lib/tooltip/tooltip.cjs +1 -1
  593. package/dist/lib/tooltip/tooltip.cjs.map +1 -1
  594. package/dist/lib/tooltip/tooltip.js +6 -6
  595. package/dist/lib/tooltip/tooltip.js.map +1 -1
  596. package/dist/lib/tooltip-directive/index.d.ts +1 -0
  597. package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
  598. package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
  599. package/dist/lib/tooltip-directive/tooltip.js +2 -2
  600. package/dist/lib/validation-messages/index.d.ts +1 -0
  601. package/dist/lib/validation-messages/validation-messages.cjs +1 -1
  602. package/dist/lib/validation-messages/validation-messages.cjs.map +1 -1
  603. package/dist/lib/validation-messages/validation-messages.js +4 -4
  604. package/dist/localization/index.cjs +1 -1
  605. package/dist/localization/index.cjs.map +1 -1
  606. package/dist/localization/index.d.ts +25 -0
  607. package/dist/localization/index.d.ts.map +1 -0
  608. package/dist/localization/index.js.map +1 -1
  609. package/dist/localization/sync-icons.d.ts +3 -0
  610. package/dist/localization/sync-icons.d.ts.map +1 -0
  611. package/dist/{mode_constants-tb7TL85q.js → mode_constants-CC73P7d-.js} +1 -1
  612. package/dist/{mode_constants-tb7TL85q.js.map → mode_constants-CC73P7d-.js.map} +1 -1
  613. package/dist/{mode_constants-CzYJW9ua.cjs → mode_constants-DM0SVbFM.cjs} +1 -1
  614. package/dist/{mode_constants-CzYJW9ua.cjs.map → mode_constants-DM0SVbFM.cjs.map} +1 -1
  615. package/dist/node_modules/@tiptap/vue-3.cjs +1 -1
  616. package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
  617. package/dist/node_modules/@tiptap/vue-3.js +2 -363
  618. package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
  619. package/dist/shared/sr_only_close_button.cjs +1 -1
  620. package/dist/shared/sr_only_close_button.js +1 -1
  621. package/dist/utils-CXaaZqVu.js +172 -0
  622. package/dist/utils-CXaaZqVu.js.map +1 -0
  623. package/dist/utils-Db-kV6Sr.cjs +2 -0
  624. package/dist/{common/utils/index.js.map → utils-Db-kV6Sr.cjs.map} +1 -1
  625. package/package.json +8 -7
  626. package/dist/Combobox-DdBIRmeH.cjs +0 -3
  627. package/dist/Datepicker-Df6uR0r_.cjs +0 -2
  628. package/dist/EmojiPicker-KbIfc-GH.cjs +0 -2
  629. package/dist/FilterPill-DwapR9JK.cjs +0 -2
  630. package/dist/RichTextEditor-ECmStZDK.cjs +0 -11
  631. package/dist/Scroller-EIHN3a26.cjs +0 -2
  632. package/dist/Slider-BDgY7gNR.cjs +0 -2
  633. package/dist/Text-5MobHF6z.js.map +0 -1
  634. package/dist/Text-DNVNZree.cjs +0 -2
  635. package/dist/Text-DNVNZree.cjs.map +0 -1
  636. package/dist/TextListItem-CVjrHr2_.cjs +0 -2
  637. package/dist/Toast--W8p7jzA.cjs +0 -2
  638. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  639. package/dist/common/utils/index.cjs.map +0 -1
  640. /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-B52Kst-M.js} +0 -0
  641. /package/dist/{_plugin-vue_export-helper-D8jCH6HB.cjs → _plugin-vue_export-helper-CX7YVcP6.cjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { ordinalSizeValidator as e } from "../../common/validators/index.js";
2
- import { getUniqueString as t, hasSlotContent as n } from "../../common/utils/index.js";
3
- import { t as r } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { _ as t, m as n } from "../../utils-CXaaZqVu.js";
3
+ import { t as r } from "../../_plugin-vue_export-helper-B52Kst-M.js";
4
4
  import { DialtoneLocalization as i } from "../../localization/index.js";
5
5
  import a from "../button/button.js";
6
6
  import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as o, CHIP_ICON_SIZES as s, CHIP_SIZE_MODIFIERS as c } from "./chip-constants.js";
@@ -34,7 +34,7 @@ var S = {
34
34
  id: {
35
35
  type: String,
36
36
  default: function() {
37
- return t();
37
+ return n();
38
38
  }
39
39
  },
40
40
  ariaLabel: {
@@ -83,7 +83,7 @@ var S = {
83
83
  data() {
84
84
  return {
85
85
  isActive: !1,
86
- hasSlotContent: n,
86
+ hasSlotContent: t,
87
87
  i18n: new i()
88
88
  };
89
89
  },
@@ -0,0 +1 @@
1
+ export * from '../../components/Chip/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`./codeblock-constants.cjs`);let r=require(`vue`);var i={name:`DtCodeblock`,props:{text:{type:String,required:!0},bordered:{type:Boolean,default:!1},size:{type:[String,Number],default:200,validator:e.ordinalSizeValidator(n.CODEBLOCK_SIZES)}},computed:{sizeClass(){return n.CODEBLOCK_SIZE_MAP[String(this.size)]||String(this.size)}}};function a(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)(`pre`,{class:(0,r.normalizeClass)([`d-codeblock`,{"d-codeblock--bordered":n.bordered}]),"data-qa":`dt-codeblock`},[(0,r.createElementVNode)(`code`,{class:(0,r.normalizeClass)([`d-codeblock__code`,`d-codeblock__code--${o.sizeClass}`]),"data-qa":`dt-codeblock-code`},(0,r.toDisplayString)(n.text),3)],2)}var o=t.t(i,[[`render`,a]]);exports.default=o;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),n=require(`./codeblock-constants.cjs`);let r=require(`vue`);var i={name:`DtCodeblock`,props:{text:{type:String,required:!0},bordered:{type:Boolean,default:!1},size:{type:[String,Number],default:200,validator:e.ordinalSizeValidator(n.CODEBLOCK_SIZES)}},computed:{sizeClass(){return n.CODEBLOCK_SIZE_MAP[String(this.size)]||String(this.size)}}};function a(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)(`pre`,{class:(0,r.normalizeClass)([`d-codeblock`,{"d-codeblock--bordered":n.bordered}]),"data-qa":`dt-codeblock`},[(0,r.createElementVNode)(`code`,{class:(0,r.normalizeClass)([`d-codeblock__code`,`d-codeblock__code--${o.sizeClass}`]),"data-qa":`dt-codeblock-code`},(0,r.toDisplayString)(n.text),3)],2)}var o=t.t(i,[[`render`,a]]);exports.default=o;
2
2
  //# sourceMappingURL=codeblock.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { ordinalSizeValidator as e } from "../../common/validators/index.js";
2
- import { t } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t } from "../../_plugin-vue_export-helper-B52Kst-M.js";
3
3
  import { CODEBLOCK_SIZES as n, CODEBLOCK_SIZE_MAP as r } from "./codeblock-constants.js";
4
4
  import { createElementBlock as i, createElementVNode as a, normalizeClass as o, openBlock as s, toDisplayString as c } from "vue";
5
5
  //#region components/Codeblock/Codeblock.vue
@@ -0,0 +1 @@
1
+ export * from '../../components/Codeblock/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`);let t=require(`vue`);var n={name:`DtCollapsibleLazyShow`,inheritAttrs:!1,props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:`div`}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!==`test`}},watch:{show:function(e){!e||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(e){requestAnimationFrame(()=>{e.style.height||(e.style.height=`0px`)})},enter(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height=`${e.scrollHeight}px`})})},afterEnter(e){e.style.height=null},beforeLeave(e){requestAnimationFrame(()=>{e.style.height||(e.style.height=`${e.offsetHeight}px`)})},leave(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height=`0px`})})},afterLeave(e){e.style.height=null}}};function r(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,(0,t.mergeProps)({appear:r.appear,"enter-active-class":`d-collapsible__enter-active`,"leave-active-class":`d-collapsible__leave-active`},e.$attrs,{css:o.isCSSEnabled,onBeforeEnter:o.beforeEnter,onEnter:o.enter,onAfterEnter:o.afterEnter,onBeforeLeave:o.beforeLeave,onLeave:o.leave,onAfterLeave:o.afterLeave}),{default:(0,t.withCtx)(()=>[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.elementType),(0,t.normalizeProps)((0,t.guardReactiveProps)(e.$attrs)),{default:(0,t.withCtx)(()=>[a.initialized?(0,t.renderSlot)(e.$slots,`default`,{key:0}):(0,t.createCommentVNode)(``,!0)]),_:3},16)),[[t.vShow,r.show]])]),_:3},16,[`appear`,`css`,`onBeforeEnter`,`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])}var i=e.t(n,[[`render`,r]]);exports.default=i;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`);let t=require(`vue`);var n={name:`DtCollapsibleLazyShow`,inheritAttrs:!1,props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:`div`}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!==`test`}},watch:{show:function(e){!e||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(e){requestAnimationFrame(()=>{e.style.height||(e.style.height=`0px`)})},enter(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height=`${e.scrollHeight}px`})})},afterEnter(e){e.style.height=null},beforeLeave(e){requestAnimationFrame(()=>{e.style.height||(e.style.height=`${e.offsetHeight}px`)})},leave(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height=`0px`})})},afterLeave(e){e.style.height=null}}};function r(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,(0,t.mergeProps)({appear:r.appear,"enter-active-class":`d-collapsible__enter-active`,"leave-active-class":`d-collapsible__leave-active`},e.$attrs,{css:o.isCSSEnabled,onBeforeEnter:o.beforeEnter,onEnter:o.enter,onAfterEnter:o.afterEnter,onBeforeLeave:o.beforeLeave,onLeave:o.leave,onAfterLeave:o.afterLeave}),{default:(0,t.withCtx)(()=>[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.elementType),(0,t.normalizeProps)((0,t.guardReactiveProps)(e.$attrs)),{default:(0,t.withCtx)(()=>[a.initialized?(0,t.renderSlot)(e.$slots,`default`,{key:0}):(0,t.createCommentVNode)(``,!0)]),_:3},16)),[[t.vShow,r.show]])]),_:3},16,[`appear`,`css`,`onBeforeEnter`,`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])}var i=e.t(n,[[`render`,r]]);exports.default=i;
2
2
  //# sourceMappingURL=collapsible-lazy-show.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
1
+ import { t as e } from "../../_plugin-vue_export-helper-B52Kst-M.js";
2
2
  import { Transition as t, createBlock as n, createCommentVNode as r, guardReactiveProps as i, mergeProps as a, normalizeProps as o, openBlock as s, renderSlot as c, resolveDynamicComponent as l, vShow as u, withCtx as d, withDirectives as f } from "vue";
3
3
  //#region components/Collapsible/CollapsibleLazyShow.vue
4
4
  var p = {
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`../button/button.cjs`),r=require(`./collapsible-lazy-show.cjs`);let i=require(`vue`),a=require(`@dialpad/dialtone-icons/vue`);var o={name:`DtCollapsible`,components:{DtButton:n.default,DtCollapsibleLazyShow:r.default,DtIconChevronDown:a.DtIconChevronDown,DtIconChevronRight:a.DtIconChevronRight},props:{anchorText:{type:String,default:null},open:{type:[Boolean,null],default:null},id:{type:String,default(){return e.getUniqueString()}},elementType:{type:String,default:`div`},contentElementType:{type:String,default:`div`},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:[`update:open`,`opened`],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&e.getUniqueString(`DtCollapsible__anchor`)},collapsibleListeners(){return e.extractVueListeners(this.$attrs)}},watch:{open:{handler:function(e){e!==null&&(this.isOpen=e)},immediate:!0}},created(){this.validateProperAnchor()},beforeUnmount(){this._isUnmounting=!0},methods:{onLeaveTransitionComplete(){this._isUnmounting||(this.$emit(`opened`,!1),this.open!==null&&this.$emit(`update:open`,!1))},onEnterTransitionComplete(){this._isUnmounting||(this.$emit(`opened`,!0,this.$refs.content),this.open!==null&&this.$emit(`update:open`,!0))},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!e.hasSlotContent(this.$slots.anchor)&&console.error(`anchor text and anchor slot content cannot both be falsy`)}}},s=[`id`],c=[`title`];function l(e,t,n,r,a,o){let l=(0,i.resolveComponent)(`dt-icon-chevron-down`),u=(0,i.resolveComponent)(`dt-icon-chevron-right`),d=(0,i.resolveComponent)(`dt-button`),f=(0,i.resolveComponent)(`dt-collapsible-lazy-show`);return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.elementType),(0,i.mergeProps)({ref:`collapsible`},(0,i.toHandlers)(o.collapsibleListeners)),{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,{id:!n.ariaLabelledBy&&o.labelledBy,ref:`anchor`,class:(0,i.normalizeClass)(n.anchorClass)},[(0,i.renderSlot)(e.$slots,`anchor`,{attrs:{"aria-controls":n.id,"aria-expanded":a.isOpen.toString(),role:`button`}},()=>[(0,i.createVNode)(d,{importance:`clear`,kind:`muted`,"aria-controls":n.id,"aria-expanded":`${a.isOpen}`,style:(0,i.normalizeStyle)({width:n.maxWidth}),onClick:o.defaultToggleOpen},{startIcon:(0,i.withCtx)(()=>[a.isOpen?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,class:`d-collapsible__icon`,size:`300`})):((0,i.openBlock)(),(0,i.createBlock)(u,{key:1,class:`d-collapsible__icon`,size:`300`}))]),default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`span`,{class:`d-collapsible__anchor-text`,title:n.anchorText},(0,i.toDisplayString)(n.anchorText),9,c)]),_:1},8,[`aria-controls`,`aria-expanded`,`style`,`onClick`])])],10,s),(0,i.createVNode)(f,(0,i.mergeProps)({id:n.id,ref:`contentWrapper`,"aria-hidden":`${!a.isOpen}`,"aria-labelledby":o.labelledBy,"aria-label":n.ariaLabel,show:a.isOpen,"element-type":n.contentElementType,class:n.contentClass,style:{"max-height":n.maxHeight,"max-width":n.maxWidth},"data-qa":`dt-collapsible--content`,tabindex:`-1`,appear:``},(0,i.toHandlers)(o.collapsibleListeners),{onAfterLeave:o.onLeaveTransitionComplete,onAfterEnter:o.onEnterTransitionComplete}),{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`content`)]),_:3},16,[`id`,`aria-hidden`,`aria-labelledby`,`aria-label`,`show`,`element-type`,`class`,`style`,`onAfterLeave`,`onAfterEnter`])]),_:3},16)}var u=t.t(o,[[`render`,l]]);exports.default=u;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../utils-Db-kV6Sr.cjs`),t=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),n=require(`../button/button.cjs`),r=require(`./collapsible-lazy-show.cjs`);let i=require(`vue`),a=require(`@dialpad/dialtone-icons/vue`);var o={name:`DtCollapsible`,components:{DtButton:n.default,DtCollapsibleLazyShow:r.default,DtIconChevronDown:a.DtIconChevronDown,DtIconChevronRight:a.DtIconChevronRight},props:{anchorText:{type:String,default:null},open:{type:[Boolean,null],default:null},id:{type:String,default(){return e.m()}},elementType:{type:String,default:`div`},contentElementType:{type:String,default:`div`},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:[`update:open`,`opened`],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&e.m(`DtCollapsible__anchor`)},collapsibleListeners(){return e.o(this.$attrs)}},watch:{open:{handler:function(e){e!==null&&(this.isOpen=e)},immediate:!0}},created(){this.validateProperAnchor()},beforeUnmount(){this._isUnmounting=!0},methods:{onLeaveTransitionComplete(){this._isUnmounting||(this.$emit(`opened`,!1),this.open!==null&&this.$emit(`update:open`,!1))},onEnterTransitionComplete(){this._isUnmounting||(this.$emit(`opened`,!0,this.$refs.content),this.open!==null&&this.$emit(`update:open`,!0))},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!e._(this.$slots.anchor)&&console.error(`anchor text and anchor slot content cannot both be falsy`)}}},s=[`id`],c=[`title`];function l(e,t,n,r,a,o){let l=(0,i.resolveComponent)(`dt-icon-chevron-down`),u=(0,i.resolveComponent)(`dt-icon-chevron-right`),d=(0,i.resolveComponent)(`dt-button`),f=(0,i.resolveComponent)(`dt-collapsible-lazy-show`);return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.elementType),(0,i.mergeProps)({ref:`collapsible`},(0,i.toHandlers)(o.collapsibleListeners)),{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,{id:!n.ariaLabelledBy&&o.labelledBy,ref:`anchor`,class:(0,i.normalizeClass)(n.anchorClass)},[(0,i.renderSlot)(e.$slots,`anchor`,{attrs:{"aria-controls":n.id,"aria-expanded":a.isOpen.toString(),role:`button`}},()=>[(0,i.createVNode)(d,{importance:`clear`,kind:`muted`,"aria-controls":n.id,"aria-expanded":`${a.isOpen}`,style:(0,i.normalizeStyle)({width:n.maxWidth}),onClick:o.defaultToggleOpen},{startIcon:(0,i.withCtx)(()=>[a.isOpen?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,class:`d-collapsible__icon`,size:`300`})):((0,i.openBlock)(),(0,i.createBlock)(u,{key:1,class:`d-collapsible__icon`,size:`300`}))]),default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`span`,{class:`d-collapsible__anchor-text`,title:n.anchorText},(0,i.toDisplayString)(n.anchorText),9,c)]),_:1},8,[`aria-controls`,`aria-expanded`,`style`,`onClick`])])],10,s),(0,i.createVNode)(f,(0,i.mergeProps)({id:n.id,ref:`contentWrapper`,"aria-hidden":`${!a.isOpen}`,"aria-labelledby":o.labelledBy,"aria-label":n.ariaLabel,show:a.isOpen,"element-type":n.contentElementType,class:n.contentClass,style:{"max-height":n.maxHeight,"max-width":n.maxWidth},"data-qa":`dt-collapsible--content`,tabindex:`-1`,appear:``},(0,i.toHandlers)(o.collapsibleListeners),{onAfterLeave:o.onLeaveTransitionComplete,onAfterEnter:o.onEnterTransitionComplete}),{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`content`)]),_:3},16,[`id`,`aria-hidden`,`aria-labelledby`,`aria-label`,`show`,`element-type`,`class`,`style`,`onAfterLeave`,`onAfterEnter`])]),_:3},16)}var u=t.t(o,[[`render`,l]]);exports.default=u;
2
2
  //# sourceMappingURL=collapsible.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.cjs","names":[],"sources":["../../../components/Collapsible/Collapsible.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n ref=\"collapsible\"\n v-on=\"collapsibleListeners\"\n >\n <!-- Element for capturing keypress events -->\n <div\n :id=\"!ariaLabelledBy && labelledBy\"\n ref=\"anchor\"\n :class=\"anchorClass\"\n >\n <!-- @slot Slot for the anchor element that toggles the collapsible content -->\n <slot\n name=\"anchor\"\n :attrs=\"{\n 'aria-controls': id,\n 'aria-expanded': isOpen.toString(),\n 'role': 'button',\n }\"\n >\n <dt-button\n importance=\"clear\"\n kind=\"muted\"\n :aria-controls=\"id\"\n :aria-expanded=\"`${isOpen}`\"\n :style=\"{\n 'width': maxWidth,\n }\"\n @click=\"defaultToggleOpen\"\n >\n <template #startIcon>\n <dt-icon-chevron-down\n v-if=\"isOpen\"\n class=\"d-collapsible__icon\"\n size=\"300\"\n />\n <dt-icon-chevron-right\n v-else\n class=\"d-collapsible__icon\"\n size=\"300\"\n />\n </template>\n <span\n class=\"d-collapsible__anchor-text\"\n :title=\"anchorText\"\n >\n {{ anchorText }}\n </span>\n </dt-button>\n </slot>\n </div>\n <dt-collapsible-lazy-show\n :id=\"id\"\n ref=\"contentWrapper\"\n :aria-hidden=\"`${!isOpen}`\"\n :aria-labelledby=\"labelledBy\"\n :aria-label=\"ariaLabel\"\n :show=\"isOpen\"\n :element-type=\"contentElementType\"\n :class=\"contentClass\"\n :style=\"{\n 'max-height': maxHeight,\n 'max-width': maxWidth,\n }\"\n data-qa=\"dt-collapsible--content\"\n tabindex=\"-1\"\n appear\n v-on=\"collapsibleListeners\"\n @after-leave=\"onLeaveTransitionComplete\"\n @after-enter=\"onEnterTransitionComplete\"\n >\n <!-- @slot Slot for the collapsible element that is expanded by the anchor -->\n <slot\n name=\"content\"\n />\n </dt-collapsible-lazy-show>\n </component>\n</template>\n\n<script>\nimport { extractVueListeners, getUniqueString, hasSlotContent } from '@/common/utils';\nimport DtCollapsibleLazyShow from './CollapsibleLazyShow.vue';\nimport { DtButton } from '@/components/Button';\nimport { DtIconChevronDown, DtIconChevronRight } from '@dialpad/dialtone-icons/vue';\n\n/**\n * A collapsible is a component consisting of an interactive anchor that toggled the expandable/collapsible element.\n * @see https://dialtone.dialpad.com/components/collapsible.html\n */\nexport default {\n name: 'DtCollapsible',\n\n components: {\n DtButton,\n DtCollapsibleLazyShow,\n DtIconChevronDown,\n DtIconChevronRight,\n },\n\n props: {\n /**\n * Text that is displayed on the anchor if nothing is passed in the slot.\n * Ignored if the anchor slot is used.\n */\n anchorText: {\n type: String,\n default: null,\n },\n\n /**\n * Controls whether the collapsible is shown. When null (default), the collapsible\n * starts expanded and toggles on click. When set to true or false, the default\n * trigger is disabled and the parent controls visibility via v-model:open.\n * @values null, true, false\n */\n open: {\n type: [Boolean, null],\n default: null,\n },\n\n /**\n * The id of the content wrapper.\n */\n id: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * HTML element type (tag name) of the root element of the component.\n */\n elementType: {\n type: String,\n default: 'div',\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n contentElementType: {\n type: String,\n default: 'div',\n },\n\n /**\n * Additional class name for the anchor wrapper element.\n */\n anchorClass: {\n type: [String, Array, Object],\n default: null,\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: null,\n },\n\n /**\n * The maximum width of the anchor and collapsible element.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: null,\n },\n\n /**\n * The maximum height of the collapsible element.\n * Possible units rem|px|%|em\n */\n maxHeight: {\n type: String,\n default: null,\n },\n\n /**\n * Label on the collapsible content. Should provide this or ariaLabelledBy but not both.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Id of the element that labels the collapsible content. Defaults to the anchor element.\n * Should provide this or ariaLabel but not both.\n */\n ariaLabelledBy: {\n type: String,\n default: null,\n },\n },\n\n emits: [\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n\n /**\n * Event fired when the content is shown or hidden\n *\n * @event opened\n * @type {Boolean}\n */\n 'opened',\n ],\n\n data () {\n return {\n isOpen: true,\n };\n },\n\n computed: {\n labelledBy () {\n // aria-labelledby should be set only if aria-labelledby is passed as a prop, or if\n // there is no aria-label and the labelledby should point to the anchor\n return this.ariaLabelledBy || (!this.ariaLabel && getUniqueString('DtCollapsible__anchor'));\n },\n\n collapsibleListeners () {\n return extractVueListeners(this.$attrs);\n },\n },\n\n watch: {\n open: {\n handler: function (open) {\n if (open !== null) {\n this.isOpen = open;\n }\n },\n\n immediate: true,\n },\n },\n\n created () {\n this.validateProperAnchor();\n },\n\n beforeUnmount () {\n this._isUnmounting = true;\n // Prevent transition callbacks from calling into dead lifecycle methods\n // after this component is torn down (DP-185811).\n },\n\n methods: {\n onLeaveTransitionComplete () {\n if (this._isUnmounting) return;\n this.$emit('opened', false);\n if (this.open !== null) {\n this.$emit('update:open', false);\n }\n },\n\n onEnterTransitionComplete () {\n if (this._isUnmounting) return;\n this.$emit('opened', true, this.$refs.content);\n if (this.open !== null) {\n this.$emit('update:open', true);\n }\n },\n\n defaultToggleOpen () {\n if (this.open === null) {\n this.toggleOpen();\n }\n },\n\n toggleOpen () {\n this.isOpen = !this.isOpen;\n },\n\n validateProperAnchor () {\n if (!this.anchorText && !hasSlotContent(this.$slots.anchor)) {\n console.error('anchor text and anchor slot content cannot both be falsy');\n }\n },\n },\n};\n</script>\n"],"mappings":"sXA0FA,IAAK,EAAU,CACb,KAAM,gBAEN,WAAY,CACV,SAAA,EAAA,QACA,sBAAA,EAAA,QACA,kBAAA,EAAA,kBACA,mBAAA,EAAA,mBACD,CAED,MAAO,CAKL,WAAY,CACV,KAAM,OACN,QAAS,KACV,CAQD,KAAM,CACJ,KAAM,CAAC,QAAS,KAAK,CACrB,QAAS,KACV,CAKD,GAAI,CACF,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,iBAAiB,EACtC,CAKD,YAAa,CACX,KAAM,OACN,QAAS,MACV,CAKD,mBAAoB,CAClB,KAAM,OACN,QAAS,MACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,KACV,CAKD,aAAc,CACZ,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,KACV,CAMD,SAAU,CACR,KAAM,OACN,QAAS,KACV,CAMD,UAAW,CACT,KAAM,OACN,QAAS,KACV,CAKD,UAAW,CACT,KAAM,OACN,QAAS,KACV,CAMD,eAAgB,CACd,KAAM,OACN,QAAS,KACV,CACF,CAED,MAAO,CAKL,cAQA,SACD,CAED,MAAQ,CACN,MAAO,CACL,OAAQ,GACT,EAGH,SAAU,CACR,YAAc,CAGZ,OAAO,KAAK,gBAAmB,CAAC,KAAK,WAAa,EAAA,gBAAgB,wBAAwB,EAG5F,sBAAwB,CACtB,OAAO,EAAA,oBAAoB,KAAK,OAAO,EAE1C,CAED,MAAO,CACL,KAAM,CACJ,QAAS,SAAU,EAAM,CACnB,IAAS,OACX,KAAK,OAAS,IAIlB,UAAW,GACZ,CACF,CAED,SAAW,CACT,KAAK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AO,EAAA,kCAEL,EAAA,WAAU,CAAA,EAAA,EAAA,CAAA,CAAA,wFA6BM,GAAA,EAAA,EAAA,YAAA,CAvBxB,GAAI,EAAA,GACL,IAAI,iBACH,cAAW,GAAA,CAAM,EAAA,SACjB,kBAAiB,EAAA,WACjB,aAAY,EAAA,UACZ,KAAM,EAAA,OACN,eAAc,EAAA,mBACd,MAAO,EAAA,aACP,MAAK,cAA0B,EAAA,sBAAgC,EAAA,UAIhE,UAAQ,0BACR,SAAS,KACT,OAAA,qBAC2B,EAArB,qBAAoB,CAAA,CACzB,aAAa,EAAA,0BACb,aAAa,EAAA,uDAKZ,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"collapsible.cjs","names":[],"sources":["../../../components/Collapsible/Collapsible.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n ref=\"collapsible\"\n v-on=\"collapsibleListeners\"\n >\n <!-- Element for capturing keypress events -->\n <div\n :id=\"!ariaLabelledBy && labelledBy\"\n ref=\"anchor\"\n :class=\"anchorClass\"\n >\n <!-- @slot Slot for the anchor element that toggles the collapsible content -->\n <slot\n name=\"anchor\"\n :attrs=\"{\n 'aria-controls': id,\n 'aria-expanded': isOpen.toString(),\n 'role': 'button',\n }\"\n >\n <dt-button\n importance=\"clear\"\n kind=\"muted\"\n :aria-controls=\"id\"\n :aria-expanded=\"`${isOpen}`\"\n :style=\"{\n 'width': maxWidth,\n }\"\n @click=\"defaultToggleOpen\"\n >\n <template #startIcon>\n <dt-icon-chevron-down\n v-if=\"isOpen\"\n class=\"d-collapsible__icon\"\n size=\"300\"\n />\n <dt-icon-chevron-right\n v-else\n class=\"d-collapsible__icon\"\n size=\"300\"\n />\n </template>\n <span\n class=\"d-collapsible__anchor-text\"\n :title=\"anchorText\"\n >\n {{ anchorText }}\n </span>\n </dt-button>\n </slot>\n </div>\n <dt-collapsible-lazy-show\n :id=\"id\"\n ref=\"contentWrapper\"\n :aria-hidden=\"`${!isOpen}`\"\n :aria-labelledby=\"labelledBy\"\n :aria-label=\"ariaLabel\"\n :show=\"isOpen\"\n :element-type=\"contentElementType\"\n :class=\"contentClass\"\n :style=\"{\n 'max-height': maxHeight,\n 'max-width': maxWidth,\n }\"\n data-qa=\"dt-collapsible--content\"\n tabindex=\"-1\"\n appear\n v-on=\"collapsibleListeners\"\n @after-leave=\"onLeaveTransitionComplete\"\n @after-enter=\"onEnterTransitionComplete\"\n >\n <!-- @slot Slot for the collapsible element that is expanded by the anchor -->\n <slot\n name=\"content\"\n />\n </dt-collapsible-lazy-show>\n </component>\n</template>\n\n<script>\nimport { extractVueListeners, getUniqueString, hasSlotContent } from '@/common/utils';\nimport DtCollapsibleLazyShow from './CollapsibleLazyShow.vue';\nimport { DtButton } from '@/components/Button';\nimport { DtIconChevronDown, DtIconChevronRight } from '@dialpad/dialtone-icons/vue';\n\n/**\n * A collapsible is a component consisting of an interactive anchor that toggled the expandable/collapsible element.\n * @see https://dialtone.dialpad.com/components/collapsible.html\n */\nexport default {\n name: 'DtCollapsible',\n\n components: {\n DtButton,\n DtCollapsibleLazyShow,\n DtIconChevronDown,\n DtIconChevronRight,\n },\n\n props: {\n /**\n * Text that is displayed on the anchor if nothing is passed in the slot.\n * Ignored if the anchor slot is used.\n */\n anchorText: {\n type: String,\n default: null,\n },\n\n /**\n * Controls whether the collapsible is shown. When null (default), the collapsible\n * starts expanded and toggles on click. When set to true or false, the default\n * trigger is disabled and the parent controls visibility via v-model:open.\n * @values null, true, false\n */\n open: {\n type: [Boolean, null],\n default: null,\n },\n\n /**\n * The id of the content wrapper.\n */\n id: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * HTML element type (tag name) of the root element of the component.\n */\n elementType: {\n type: String,\n default: 'div',\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n contentElementType: {\n type: String,\n default: 'div',\n },\n\n /**\n * Additional class name for the anchor wrapper element.\n */\n anchorClass: {\n type: [String, Array, Object],\n default: null,\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: null,\n },\n\n /**\n * The maximum width of the anchor and collapsible element.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: null,\n },\n\n /**\n * The maximum height of the collapsible element.\n * Possible units rem|px|%|em\n */\n maxHeight: {\n type: String,\n default: null,\n },\n\n /**\n * Label on the collapsible content. Should provide this or ariaLabelledBy but not both.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Id of the element that labels the collapsible content. Defaults to the anchor element.\n * Should provide this or ariaLabel but not both.\n */\n ariaLabelledBy: {\n type: String,\n default: null,\n },\n },\n\n emits: [\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n\n /**\n * Event fired when the content is shown or hidden\n *\n * @event opened\n * @type {Boolean}\n */\n 'opened',\n ],\n\n data () {\n return {\n isOpen: true,\n };\n },\n\n computed: {\n labelledBy () {\n // aria-labelledby should be set only if aria-labelledby is passed as a prop, or if\n // there is no aria-label and the labelledby should point to the anchor\n return this.ariaLabelledBy || (!this.ariaLabel && getUniqueString('DtCollapsible__anchor'));\n },\n\n collapsibleListeners () {\n return extractVueListeners(this.$attrs);\n },\n },\n\n watch: {\n open: {\n handler: function (open) {\n if (open !== null) {\n this.isOpen = open;\n }\n },\n\n immediate: true,\n },\n },\n\n created () {\n this.validateProperAnchor();\n },\n\n beforeUnmount () {\n this._isUnmounting = true;\n // Prevent transition callbacks from calling into dead lifecycle methods\n // after this component is torn down (DP-185811).\n },\n\n methods: {\n onLeaveTransitionComplete () {\n if (this._isUnmounting) return;\n this.$emit('opened', false);\n if (this.open !== null) {\n this.$emit('update:open', false);\n }\n },\n\n onEnterTransitionComplete () {\n if (this._isUnmounting) return;\n this.$emit('opened', true, this.$refs.content);\n if (this.open !== null) {\n this.$emit('update:open', true);\n }\n },\n\n defaultToggleOpen () {\n if (this.open === null) {\n this.toggleOpen();\n }\n },\n\n toggleOpen () {\n this.isOpen = !this.isOpen;\n },\n\n validateProperAnchor () {\n if (!this.anchorText && !hasSlotContent(this.$slots.anchor)) {\n console.error('anchor text and anchor slot content cannot both be falsy');\n }\n },\n },\n};\n</script>\n"],"mappings":"kXA0FA,IAAK,EAAU,CACb,KAAM,gBAEN,WAAY,CACV,SAAA,EAAA,QACA,sBAAA,EAAA,QACA,kBAAA,EAAA,kBACA,mBAAA,EAAA,mBACD,CAED,MAAO,CAKL,WAAY,CACV,KAAM,OACN,QAAS,KACV,CAQD,KAAM,CACJ,KAAM,CAAC,QAAS,KAAK,CACrB,QAAS,KACV,CAKD,GAAI,CACF,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,GAAiB,EACtC,CAKD,YAAa,CACX,KAAM,OACN,QAAS,MACV,CAKD,mBAAoB,CAClB,KAAM,OACN,QAAS,MACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,KACV,CAKD,aAAc,CACZ,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,KACV,CAMD,SAAU,CACR,KAAM,OACN,QAAS,KACV,CAMD,UAAW,CACT,KAAM,OACN,QAAS,KACV,CAKD,UAAW,CACT,KAAM,OACN,QAAS,KACV,CAMD,eAAgB,CACd,KAAM,OACN,QAAS,KACV,CACF,CAED,MAAO,CAKL,cAQA,SACD,CAED,MAAQ,CACN,MAAO,CACL,OAAQ,GACT,EAGH,SAAU,CACR,YAAc,CAGZ,OAAO,KAAK,gBAAmB,CAAC,KAAK,WAAa,EAAA,EAAgB,wBAAwB,EAG5F,sBAAwB,CACtB,OAAO,EAAA,EAAoB,KAAK,OAAO,EAE1C,CAED,MAAO,CACL,KAAM,CACJ,QAAS,SAAU,EAAM,CACnB,IAAS,OACX,KAAK,OAAS,IAIlB,UAAW,GACZ,CACF,CAED,SAAW,CACT,KAAK,sBAAsB,EAG7B,eAAiB,CACf,KAAK,cAAgB,IAKvB,QAAS,CACP,2BAA6B,CACvB,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AAA,EAAA,YAAA,CAvBxB,GAAI,EAAA,GACL,IAAI,iBACH,cAAW,GAAA,CAAM,EAAA,SACjB,kBAAiB,EAAA,WACjB,aAAY,EAAA,UACZ,KAAM,EAAA,OACN,eAAc,EAAA,mBACd,MAAO,EAAA,aACP,MAAK,cAA0B,EAAA,sBAAgC,EAAA,UAIhE,UAAQ,0BACR,SAAS,KACT,OAAA,qBAC2B,EAArB,qBAAoB,CAAA,CACzB,aAAa,EAAA,0BACb,aAAa,EAAA,uDAKZ,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { extractVueListeners as e, getUniqueString as t, hasSlotContent as n } from "../../common/utils/index.js";
2
- import { t as r } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
1
+ import { _ as e, m as t, o as n } from "../../utils-CXaaZqVu.js";
2
+ import { t as r } from "../../_plugin-vue_export-helper-B52Kst-M.js";
3
3
  import i from "../button/button.js";
4
4
  import a from "./collapsible-lazy-show.js";
5
5
  import { createBlock as o, createElementVNode as s, createVNode as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDynamicComponent as h, toDisplayString as g, toHandlers as _, withCtx as v } from "vue";
@@ -78,7 +78,7 @@ var x = {
78
78
  return this.ariaLabelledBy || !this.ariaLabel && t("DtCollapsible__anchor");
79
79
  },
80
80
  collapsibleListeners() {
81
- return e(this.$attrs);
81
+ return n(this.$attrs);
82
82
  }
83
83
  },
84
84
  watch: { open: {
@@ -107,7 +107,7 @@ var x = {
107
107
  this.isOpen = !this.isOpen;
108
108
  },
109
109
  validateProperAnchor() {
110
- !this.anchorText && !n(this.$slots.anchor) && console.error("anchor text and anchor slot content cannot both be falsy");
110
+ !this.anchorText && !e(this.$slots.anchor) && console.error("anchor text and anchor slot content cannot both be falsy");
111
111
  }
112
112
  }
113
113
  }, S = ["id"], C = ["title"];
@@ -0,0 +1 @@
1
+ export * from '../../components/Collapsible/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`../list-item/list-item.cjs`);let n=require(`vue`);var r={name:`ComboboxEmptyList`,components:{DtListItem:t.default},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:``}}},i={class:`d-combobox__empty-list`,"data-qa":`dt-combobox-empty-list`};function a(e,t,r,a,o,s){let c=(0,n.resolveComponent)(`dt-list-item`);return(0,n.openBlock)(),(0,n.createElementBlock)(`ol`,i,[(0,n.renderSlot)(e.$slots,`default`,{},()=>[(0,n.createVNode)(c,{role:`option`,"navigation-type":`none`,type:`custom`,class:(0,n.normalizeClass)([`d-combobox__empty-list-item`,r.itemClass])},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)(r.message),1)]),_:1},8,[`class`])])])}var o=e.t(r,[[`render`,a]]);exports.default=o;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),t=require(`../list-item/list-item.cjs`);let n=require(`vue`);var r={name:`ComboboxEmptyList`,components:{DtListItem:t.default},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:``}}},i={class:`d-combobox__empty-list`,"data-qa":`dt-combobox-empty-list`};function a(e,t,r,a,o,s){let c=(0,n.resolveComponent)(`dt-list-item`);return(0,n.openBlock)(),(0,n.createElementBlock)(`ol`,i,[(0,n.renderSlot)(e.$slots,`default`,{},()=>[(0,n.createVNode)(c,{role:`option`,"navigation-type":`none`,type:`custom`,class:(0,n.normalizeClass)([`d-combobox__empty-list-item`,r.itemClass])},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)(r.message),1)]),_:1},8,[`class`])])])}var o=e.t(r,[[`render`,a]]);exports.default=o;
2
2
  //# sourceMappingURL=combobox-empty-list.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
1
+ import { t as e } from "../../_plugin-vue_export-helper-B52Kst-M.js";
2
2
  import t from "../list-item/list-item.js";
3
3
  import { createElementBlock as n, createElementVNode as r, createVNode as i, normalizeClass as a, openBlock as o, renderSlot as s, resolveComponent as c, toDisplayString as l, withCtx as u } from "vue";
4
4
  //#region components/Combobox/ComboboxEmptyList.vue
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`../list-item/list-item.cjs`),n=require(`../skeleton/skeleton.cjs`);let r=require(`vue`);var i={name:`ComboboxLoadingList`,components:{DtListItem:t.default,DtSkeleton:n.default}},a={class:`d-combobox__loading-list`,"aria-busy":`true`};function o(e,t,n,i,o,s){let c=(0,r.resolveComponent)(`dt-skeleton`),l=(0,r.resolveComponent)(`dt-list-item`);return(0,r.openBlock)(),(0,r.createElementBlock)(`ol`,a,[((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(7,e=>(0,r.createVNode)(l,{key:e,role:`option`,"navigation-type":`none`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(c,{"text-option":{type:`body`},offset:0})]),_:1})),64))])}var s=e.t(i,[[`render`,o]]);exports.default=s;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),t=require(`../list-item/list-item.cjs`),n=require(`../skeleton/skeleton.cjs`);let r=require(`vue`);var i={name:`ComboboxLoadingList`,components:{DtListItem:t.default,DtSkeleton:n.default}},a={class:`d-combobox__loading-list`,"aria-busy":`true`};function o(e,t,n,i,o,s){let c=(0,r.resolveComponent)(`dt-skeleton`),l=(0,r.resolveComponent)(`dt-list-item`);return(0,r.openBlock)(),(0,r.createElementBlock)(`ol`,a,[((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(7,e=>(0,r.createVNode)(l,{key:e,role:`option`,"navigation-type":`none`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(c,{"text-option":{type:`body`},offset:0})]),_:1})),64))])}var s=e.t(i,[[`render`,o]]);exports.default=s;
2
2
  //# sourceMappingURL=combobox-loading-list.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
1
+ import { t as e } from "../../_plugin-vue_export-helper-B52Kst-M.js";
2
2
  import t from "../list-item/list-item.js";
3
3
  import n from "../skeleton/skeleton.js";
4
4
  import { Fragment as r, createElementBlock as i, createVNode as a, openBlock as o, renderList as s, resolveComponent as c, withCtx as l } from "vue";
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Combobox-DdBIRmeH.cjs`);exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Combobox-CmASo310.cjs`);exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Combobox-DP8tbe6x.js";
1
+ import { t as e } from "../../Combobox-8vN7Njqe.js";
2
2
  export { e as default };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Combobox-DdBIRmeH.cjs`),t=require(`./combobox-constants.cjs`);exports.COMBOBOX_LABEL_SIZES=t.COMBOBOX_LABEL_SIZES,exports.DtCombobox=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Combobox-CmASo310.cjs`),t=require(`./combobox-constants.cjs`);exports.COMBOBOX_LABEL_SIZES=t.COMBOBOX_LABEL_SIZES,exports.DtCombobox=e.t;
@@ -0,0 +1 @@
1
+ export * from '../../components/Combobox/index.js';
@@ -1,3 +1,3 @@
1
- import { t as e } from "../../Combobox-DP8tbe6x.js";
1
+ import { t as e } from "../../Combobox-8vN7Njqe.js";
2
2
  import { COMBOBOX_LABEL_SIZES as t } from "./combobox-constants.js";
3
3
  export { t as COMBOBOX_LABEL_SIZES, e as DtCombobox };
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/constants/sizes.cjs`),t=require(`../../common/constants/index.cjs`),n=require(`../../common/validators/index.cjs`),r=require(`../../common/utils/index.cjs`),i=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),a=require(`../validation-messages/validation-messages.cjs`),o=require(`../chip/chip.cjs`),s=require(`../popover/popover-constants.cjs`),c=require(`../input/input.cjs`),l=require(`../combobox-with-popover/combobox-with-popover.cjs`),u=require(`./combobox-multi-select-constants.cjs`);let d=require(`vue`);var f={name:`DtComboboxMultiSelect`,components:{DtComboboxWithPopover:l.default,DtInput:c.default,DtChip:o.default,DtValidationMessages:a.default},inheritAttrs:!1,props:{label:{type:String,required:!0},showLabel:{type:Boolean,default:!0},description:{type:String,default:``},placeholder:{type:String,default:`Select one or start typing`},inputMessages:{type:Array,default:()=>[],validator:e=>n.validationMessageValidator(e)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:`loading...`},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:`300px`},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:[String,Number],default:300,validator:n.ordinalSizeValidator(u.CHIP_SIZES)},appendTo:{type:[t.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>s.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:`fade`},collapseOnFocusOut:{type:Boolean,default:!1},listMaxWidth:{type:String,default:``},reservedRightSpace:{type:Number,default:64},chipMaxWidth:{type:String,default:``},inputClass:{type:[String,Object,Array],default:``},inputWrapperClass:{type:[String,Object,Array],default:``},disabled:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},listClass:{type:[String,Array,Object],default:``},dialogClass:{type:[String,Object,Array],default:``}},emits:[`update:modelValue`,`select`,`remove`,`max-selected`,`keydown`,`chip-keydown`,`escape`,`enter`,`combobox-highlight`],data(){return{value:``,popoverOffset:[0,4],showValidationMessages:!1,resizeWindowObserver:null,inputVisibilityObserver:null,initialInputHeight:null,CHIP_SIZES:u.CHIP_SIZES,hasSlotContent:r.hasSlotContent,inputFocused:!1,hideInputText:!1,messagesId:r.getUniqueString()}},computed:{inputPlaceHolder(){return this.selectedItems?.length>0?``:this.placeholder},chipListeners(){return{keydown:e=>{this.disabled||(this.onChipKeyDown(e),this.$emit(`chip-keydown`,e))}}},inputListeners(){return{...r.extractVueListeners(this.$attrs),onInput:e=>{this.$emit(`update:modelValue`,e),this.hasSuggestionList&&this.showComboboxList()},onKeydown:e=>{if(this.disabled)return;this.onInputKeyDown(e),this.$emit(`keydown`,e);let t=e.key?.toLowerCase();t===`escape`?this.$emit(`escape`,e):t===`enter`&&this.$emit(`enter`,e)},onClick:()=>{this.hasSuggestionList&&this.showComboboxList()}}},ariaInvalid(){return r.getValidationState(this.maxSelectedMessage)===t.VALIDATION_MESSAGE_TYPES.CRITICAL?`true`:void 0},ariaDescribedBy(){return this.showValidationMessages&&this.maxSelectedMessage.length>0?this.messagesId:void 0},inputHeightFloor(){return this.initialInputHeight&&this.size!==`xs`?`${this.initialInputHeight}px`:``},chipWrapperClass(){let t=e.COMPONENT_SIZES[String(this.size)]||this.size;return[`d-combobox-multi-select__chip-wrapper--${t}`,{[`d-combobox-multi-select__chip-wrapper-${t}--collapsed`]:!this.inputFocused&&this.collapseOnFocusOut}]}},watch:{selectedItems:{deep:!0,handler:async function(){await this.initSelectedItems()}},chipMaxWidth:{async handler(){await this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();let e=this.getInput();this.revertInputPadding(e),this.setInitialInputHeight(),this.setInputPadding(),this.setChipsTopPosition()}}},async mounted(){if(this.setInitialInputHeight(),this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),!this.initialInputHeight){let e=this.getInput();e&&(this.inputVisibilityObserver=new ResizeObserver(()=>{this.initialInputHeight||(this.setInitialInputHeight(),this.initialInputHeight&&(this.setInputPadding(),this.setChipsTopPosition(),this.inputVisibilityObserver?.disconnect(),this.inputVisibilityObserver=null))}),this.inputVisibilityObserver.observe(e))}await this.initSelectedItems()},beforeUnmount(){this.resizeWindowObserver?.unobserve(document.body),this.inputVisibilityObserver?.disconnect()},methods:{extractNonListeners:r.extractNonListeners,comboboxHighlight(e){this.$emit(`combobox-highlight`,e)},async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(e){this.$emit(`remove`,e),this.$refs.input?.focus()},onComboboxSelect(e){this.loading||(this.value=``,this.$emit(`select`,e))},showComboboxList(){this.showList??this.$refs.comboboxWithPopover?.showComboboxList()},closeComboboxList(){this.showList??this.$refs.comboboxWithPopover?.closeComboboxList()},getChips(){if(!this.selectedItems.length||!this.$refs.chips)return null;let e=new Set;return this.selectedItems.map(t=>this.$refs.chips.find((n,i)=>e.has(i)?!1:r.returnFirstEl(n.$el)?.querySelector(`.d-chip__label`)?.textContent?.trim()===t?(e.add(i),!0):!1)).filter(Boolean).map(e=>r.returnFirstEl(e.$el))},getChipButtons(){let e=this.getChips();return e&&e.map(e=>r.returnFirstEl(e).querySelector(`button`))},getLastChipButton(){let e=this.getChipButtons();return e&&e[e.length-1]},getLastChip(){let e=this.getChips();return e&&e[e.length-1]},getFirstChip(){let e=this.getChips();return e&&e[0]},getInput(){return this.$refs.input?.$refs.input},onChipKeyDown(e){let t=e.code?.toLowerCase();t===`arrowleft`?this.navigateBetweenChips(e.target,!0):t===`arrowright`&&(e.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(e.target,!1))},onInputKeyDown(e){let t=e.key?.toLowerCase();if(this.selectedItems.length>0&&e.target.selectionStart===0){if(e.target.selectionEnd!==e.target.selectionStart)return;(t===`backspace`||t===`arrowleft`)&&this.moveFromInputToChip()}},moveFromInputToChip(){this.getLastChipButton().focus(),this.$refs.input?.blur(),this.closeComboboxList()},moveFromChipToInput(){this.getLastChipButton().blur(),this.$refs.input?.focus(),this.showComboboxList()},navigateBetweenChips(e,t){let n=this.getChipButtons().indexOf(e),r=t?n-1:n+1;r<0||r>=this.$refs.chips?.length||(this.getChipButtons()[n].blur(),this.getChipButtons()[r].focus(),this.closeComboboxList())},setChipsTopPosition(){let e=this.getInput(),t=this.$refs.chipsWrapper,n=this.getFirstChip();if(!e||!t||!n)return;let r=e.getBoundingClientRect().top-this.$refs.inputSlotWrapper.getBoundingClientRect().top,i=this.initialInputHeight||e.getBoundingClientRect().height,a=n.getBoundingClientRect(),o=a.top-t.getBoundingClientRect().top,s=r+(i-a.height)/2-o;t.style.top=s+`px`},setInputPadding(){let e=this.getLastChip(),t=this.getInput();if(!t||(this.revertInputPadding(t),this.popoverOffset=[0,4],!e)||this.collapseOnFocusOut&&!this.inputFocused)return;let n=this.getComputedPx(t,`paddingTop`),r=e.offsetLeft+this.getFullWidth(e),i=t.getBoundingClientRect().width-r,a=this.getFirstChip(),o=a&&e.offsetTop>a.offsetTop;i>this.reservedRightSpace?t.style.paddingInlineStart=r+`px`:t.style.paddingInlineStart=`4px`;let s=this.getCaretRowTop(e,a,i>this.reservedRightSpace,o);s!=null&&(t.style.paddingTop=`${s+n}px`,this.growInputForWrappedRows(t,s))},growInputForWrappedRows(e,t){this.initialInputHeight&&(e.style.minHeight=`${t+this.initialInputHeight}px`)},getComputedPx(e,t){return parseFloat(getComputedStyle(e)[t])||0},getCaretRowTop(e,t,n,r){if(n&&!r)return null;let i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;if(n)return i;let a=this.getComputedPx(this.$refs.chipsWrapper,`rowGap`);return i+e.getBoundingClientRect().height+a},revertInputPadding(e){e.style.paddingInlineStart=``,e.style.paddingTop=``,e.style.minHeight=this.inputHeightFloor},getFullWidth(e){let t=window.getComputedStyle(e);return e.offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)},setInputMinWidth(){let e=this.getFirstChip(),t=this.getInput();t&&(e?t.style.minWidth=this.getFullWidth(e)+4+`px`:t.style.minWidth=``)},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit(`max-selected`)):this.showValidationMessages=!1)},setInitialInputHeight(){let e=this.getInput();e&&(e.style.minHeight=``,e.style.height=``,this.initialInputHeight=e.getBoundingClientRect().height,this.size!==`xs`&&(e.style.minHeight=`${this.initialInputHeight}px`,e.style.height=`auto`))},async handleInputFocusIn(){this.inputFocused=!0,this.collapseOnFocusOut&&(this.hideInputText=!1,await this.$nextTick(),this.setInputPadding())},async handleInputFocusOut(){if(this.inputFocused=!1,this.collapseOnFocusOut){this.hideInputText=!0;let e=this.getInput();if(!e||!e.style.paddingTop)return;this.revertInputPadding(e)}}}},p={key:1,class:`d-combobox-multi-select__list--loading`};function m(e,t,n,r,i,a){let o=(0,d.resolveComponent)(`dt-chip`),s=(0,d.resolveComponent)(`dt-input`),c=(0,d.resolveComponent)(`dt-validation-messages`),l=(0,d.resolveComponent)(`dt-combobox-with-popover`);return(0,d.openBlock)(),(0,d.createBlock)(l,(0,d.mergeProps)({ref:`comboboxWithPopover`,label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"max-width":n.listMaxWidth,"popover-offset":i.popoverOffset,"has-suggestion-list":n.hasSuggestionList,"content-width":`anchor`,"append-to":n.appendTo,"dialog-class":n.dialogClass,transition:n.transition},a.extractNonListeners(e.$attrs),{onSelect:a.onComboboxSelect,onHighlight:a.comboboxHighlight}),(0,d.createSlots)({input:(0,d.withCtx)(({onInput:e})=>[(0,d.createElementVNode)(`span`,{ref:`inputSlotWrapper`,class:`d-combobox-multi-select__input-wrapper`,onFocusin:t[1]||(t[1]=(...e)=>a.handleInputFocusIn&&a.handleInputFocusIn(...e)),onFocusout:t[2]||(t[2]=(...e)=>a.handleInputFocusOut&&a.handleInputFocusOut(...e))},[(0,d.createElementVNode)(`span`,{ref:`chipsWrapper`,class:(0,d.normalizeClass)([`d-combobox-multi-select__chip-wrapper`,a.chipWrapperClass])},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.selectedItems,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(o,(0,d.mergeProps)({ref_for:!0,ref:`chips`,key:`${t}-${e}`,interactive:!0,"label-class":[`d-chip__label--focus-always`],class:[`d-combobox-multi-select__chip`,{"d-combobox-multi-select__chip--truncate":!!n.chipMaxWidth}],style:{maxWidth:n.chipMaxWidth},size:i.CHIP_SIZES[String(n.size)],disabled:n.disabled},(0,d.toHandlers)(a.chipListeners),{onKeydown:(0,d.withKeys)(t=>a.onChipRemove(e),[`backspace`]),onClose:t=>a.onChipRemove(e)}),{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e),1)]),_:2},1040,[`class`,`style`,`size`,`disabled`,`onKeydown`,`onClose`]))),128))],2),(0,d.createVNode)(s,(0,d.mergeProps)({ref:`input`,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),class:`d-combobox-multi-select__input`,"input-class":[n.inputClass,{"d-combobox-multi-select__input--hidden":i.hideInputText}],"input-wrapper-class":n.inputWrapperClass,disabled:n.disabled,"aria-label":n.label,"aria-invalid":a.ariaInvalid,"aria-describedby":a.ariaDescribedBy,label:n.showLabel?n.label:``,description:n.description,placeholder:a.inputPlaceHolder,"show-messages":n.showInputMessages,messages:n.inputMessages,size:n.size},a.inputListeners,{"onUpdate:modelValue":e}),null,16,[`modelValue`,`input-class`,`input-wrapper-class`,`disabled`,`aria-label`,`aria-invalid`,`aria-describedby`,`label`,`description`,`placeholder`,`show-messages`,`messages`,`size`,`onUpdate:modelValue`]),(0,d.createVNode)(c,{id:i.messagesId,"validation-messages":n.maxSelectedMessage,"show-messages":i.showValidationMessages},null,8,[`id`,`validation-messages`,`show-messages`])],544)]),list:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref:`list`,class:(0,d.normalizeClass)([`d-combobox-multi-select__list`,n.listClass]),onMousedown:t[3]||(t[3]=(0,d.withModifiers)(()=>{},[`prevent`]))},[n.loading?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,p,(0,d.toDisplayString)(n.loadingMessage),1)):(0,d.renderSlot)(e.$slots,`list`,{key:0})],34)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:`header`,fn:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref:`header`,class:(0,d.normalizeClass)(n.headerClass)},[(0,d.renderSlot)(e.$slots,`header`)],2)]),key:`0`}:void 0,i.hasSlotContent(e.$slots.footer)?{name:`footer`,fn:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref:`footer`,class:(0,d.normalizeClass)(n.footerClass)},[(0,d.renderSlot)(e.$slots,`footer`)],2)]),key:`1`}:void 0]),1040,[`label`,`show-list`,`max-height`,`max-width`,`popover-offset`,`has-suggestion-list`,`append-to`,`dialog-class`,`transition`,`onSelect`,`onHighlight`])}var h=i.t(f,[[`render`,m]]);exports.default=h;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/constants/sizes.cjs`),t=require(`../../common/constants/index.cjs`),n=require(`../../common/validators/index.cjs`),r=require(`../../utils-Db-kV6Sr.cjs`),i=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),a=require(`../validation-messages/validation-messages.cjs`),o=require(`../chip/chip.cjs`),s=require(`../popover/popover-constants.cjs`),c=require(`../input/input.cjs`),l=require(`../combobox-with-popover/combobox-with-popover.cjs`),u=require(`./combobox-multi-select-constants.cjs`);let d=require(`vue`);var f={name:`DtComboboxMultiSelect`,components:{DtComboboxWithPopover:l.default,DtInput:c.default,DtChip:o.default,DtValidationMessages:a.default},inheritAttrs:!1,props:{label:{type:String,required:!0},showLabel:{type:Boolean,default:!0},description:{type:String,default:``},placeholder:{type:String,default:`Select one or start typing`},inputMessages:{type:Array,default:()=>[],validator:e=>n.validationMessageValidator(e)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:`loading...`},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:`300px`},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:[String,Number],default:300,validator:n.ordinalSizeValidator(u.CHIP_SIZES)},appendTo:{type:[t.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>s.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:`fade`},collapseOnFocusOut:{type:Boolean,default:!1},listMaxWidth:{type:String,default:``},reservedRightSpace:{type:Number,default:64},chipMaxWidth:{type:String,default:``},inputClass:{type:[String,Object,Array],default:``},inputWrapperClass:{type:[String,Object,Array],default:``},disabled:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},listClass:{type:[String,Array,Object],default:``},dialogClass:{type:[String,Object,Array],default:``}},emits:[`update:modelValue`,`select`,`remove`,`max-selected`,`keydown`,`chip-keydown`,`escape`,`enter`,`combobox-highlight`],data(){return{value:``,popoverOffset:[0,4],showValidationMessages:!1,resizeWindowObserver:null,inputVisibilityObserver:null,initialInputHeight:null,CHIP_SIZES:u.CHIP_SIZES,hasSlotContent:r._,inputFocused:!1,hideInputText:!1,messagesId:r.m()}},computed:{inputPlaceHolder(){return this.selectedItems?.length>0?``:this.placeholder},chipListeners(){return{keydown:e=>{this.disabled||(this.onChipKeyDown(e),this.$emit(`chip-keydown`,e))}}},inputListeners(){return{...r.o(this.$attrs),onInput:e=>{this.$emit(`update:modelValue`,e),this.hasSuggestionList&&this.showComboboxList()},onKeydown:e=>{if(this.disabled)return;this.onInputKeyDown(e),this.$emit(`keydown`,e);let t=e.key?.toLowerCase();t===`escape`?this.$emit(`escape`,e):t===`enter`&&this.$emit(`enter`,e)},onClick:()=>{this.hasSuggestionList&&this.showComboboxList()}}},ariaInvalid(){return r.h(this.maxSelectedMessage)===t.VALIDATION_MESSAGE_TYPES.CRITICAL?`true`:void 0},ariaDescribedBy(){return this.showValidationMessages&&this.maxSelectedMessage.length>0?this.messagesId:void 0},inputHeightFloor(){return this.initialInputHeight&&this.size!==`xs`?`${this.initialInputHeight}px`:``},chipWrapperClass(){let t=e.COMPONENT_SIZES[String(this.size)]||this.size;return[`d-combobox-multi-select__chip-wrapper--${t}`,{[`d-combobox-multi-select__chip-wrapper-${t}--collapsed`]:!this.inputFocused&&this.collapseOnFocusOut}]}},watch:{selectedItems:{deep:!0,handler:async function(){await this.initSelectedItems()}},chipMaxWidth:{async handler(){await this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();let e=this.getInput();this.revertInputPadding(e),this.setInitialInputHeight(),this.setInputPadding(),this.setChipsTopPosition()}}},async mounted(){if(this.setInitialInputHeight(),this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),!this.initialInputHeight){let e=this.getInput();e&&(this.inputVisibilityObserver=new ResizeObserver(()=>{this.initialInputHeight||(this.setInitialInputHeight(),this.initialInputHeight&&(this.setInputPadding(),this.setChipsTopPosition(),this.inputVisibilityObserver?.disconnect(),this.inputVisibilityObserver=null))}),this.inputVisibilityObserver.observe(e))}await this.initSelectedItems()},beforeUnmount(){this.resizeWindowObserver?.unobserve(document.body),this.inputVisibilityObserver?.disconnect()},methods:{extractNonListeners:r.a,comboboxHighlight(e){this.$emit(`combobox-highlight`,e)},async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(e){this.$emit(`remove`,e),this.$refs.input?.focus()},onComboboxSelect(e){this.loading||(this.value=``,this.$emit(`select`,e))},showComboboxList(){this.showList??this.$refs.comboboxWithPopover?.showComboboxList()},closeComboboxList(){this.showList??this.$refs.comboboxWithPopover?.closeComboboxList()},getChips(){if(!this.selectedItems.length||!this.$refs.chips)return null;let e=new Set;return this.selectedItems.map(t=>this.$refs.chips.find((n,i)=>e.has(i)?!1:r.O(n.$el)?.querySelector(`.d-chip__label`)?.textContent?.trim()===t?(e.add(i),!0):!1)).filter(Boolean).map(e=>r.O(e.$el))},getChipButtons(){let e=this.getChips();return e&&e.map(e=>r.O(e).querySelector(`button`))},getLastChipButton(){let e=this.getChipButtons();return e&&e[e.length-1]},getLastChip(){let e=this.getChips();return e&&e[e.length-1]},getFirstChip(){let e=this.getChips();return e&&e[0]},getInput(){return this.$refs.input?.$refs.input},onChipKeyDown(e){let t=e.code?.toLowerCase();t===`arrowleft`?this.navigateBetweenChips(e.target,!0):t===`arrowright`&&(e.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(e.target,!1))},onInputKeyDown(e){let t=e.key?.toLowerCase();if(this.selectedItems.length>0&&e.target.selectionStart===0){if(e.target.selectionEnd!==e.target.selectionStart)return;(t===`backspace`||t===`arrowleft`)&&this.moveFromInputToChip()}},moveFromInputToChip(){this.getLastChipButton().focus(),this.$refs.input?.blur(),this.closeComboboxList()},moveFromChipToInput(){this.getLastChipButton().blur(),this.$refs.input?.focus(),this.showComboboxList()},navigateBetweenChips(e,t){let n=this.getChipButtons().indexOf(e),r=t?n-1:n+1;r<0||r>=this.$refs.chips?.length||(this.getChipButtons()[n].blur(),this.getChipButtons()[r].focus(),this.closeComboboxList())},setChipsTopPosition(){let e=this.getInput(),t=this.$refs.chipsWrapper,n=this.getFirstChip();if(!e||!t||!n)return;let r=e.getBoundingClientRect().top-this.$refs.inputSlotWrapper.getBoundingClientRect().top,i=this.initialInputHeight||e.getBoundingClientRect().height,a=n.getBoundingClientRect(),o=a.top-t.getBoundingClientRect().top,s=r+(i-a.height)/2-o;t.style.top=s+`px`},setInputPadding(){let e=this.getLastChip(),t=this.getInput();if(!t||(this.revertInputPadding(t),this.popoverOffset=[0,4],!e)||this.collapseOnFocusOut&&!this.inputFocused)return;let n=this.getComputedPx(t,`paddingTop`),r=e.offsetLeft+this.getFullWidth(e),i=t.getBoundingClientRect().width-r,a=this.getFirstChip(),o=a&&e.offsetTop>a.offsetTop;i>this.reservedRightSpace?t.style.paddingInlineStart=r+`px`:t.style.paddingInlineStart=`4px`;let s=this.getCaretRowTop(e,a,i>this.reservedRightSpace,o);s!=null&&(t.style.paddingTop=`${s+n}px`,this.growInputForWrappedRows(t,s))},growInputForWrappedRows(e,t){this.initialInputHeight&&(e.style.minHeight=`${t+this.initialInputHeight}px`)},getComputedPx(e,t){return parseFloat(getComputedStyle(e)[t])||0},getCaretRowTop(e,t,n,r){if(n&&!r)return null;let i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;if(n)return i;let a=this.getComputedPx(this.$refs.chipsWrapper,`rowGap`);return i+e.getBoundingClientRect().height+a},revertInputPadding(e){e.style.paddingInlineStart=``,e.style.paddingTop=``,e.style.minHeight=this.inputHeightFloor},getFullWidth(e){let t=window.getComputedStyle(e);return e.offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)},setInputMinWidth(){let e=this.getFirstChip(),t=this.getInput();t&&(e?t.style.minWidth=this.getFullWidth(e)+4+`px`:t.style.minWidth=``)},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit(`max-selected`)):this.showValidationMessages=!1)},setInitialInputHeight(){let e=this.getInput();e&&(e.style.minHeight=``,e.style.height=``,this.initialInputHeight=e.getBoundingClientRect().height,this.size!==`xs`&&(e.style.minHeight=`${this.initialInputHeight}px`,e.style.height=`auto`))},async handleInputFocusIn(){this.inputFocused=!0,this.collapseOnFocusOut&&(this.hideInputText=!1,await this.$nextTick(),this.setInputPadding())},async handleInputFocusOut(){if(this.inputFocused=!1,this.collapseOnFocusOut){this.hideInputText=!0;let e=this.getInput();if(!e||!e.style.paddingTop)return;this.revertInputPadding(e)}}}},p={key:1,class:`d-combobox-multi-select__list--loading`};function m(e,t,n,r,i,a){let o=(0,d.resolveComponent)(`dt-chip`),s=(0,d.resolveComponent)(`dt-input`),c=(0,d.resolveComponent)(`dt-validation-messages`),l=(0,d.resolveComponent)(`dt-combobox-with-popover`);return(0,d.openBlock)(),(0,d.createBlock)(l,(0,d.mergeProps)({ref:`comboboxWithPopover`,label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"max-width":n.listMaxWidth,"popover-offset":i.popoverOffset,"has-suggestion-list":n.hasSuggestionList,"content-width":`anchor`,"append-to":n.appendTo,"dialog-class":n.dialogClass,transition:n.transition},a.extractNonListeners(e.$attrs),{onSelect:a.onComboboxSelect,onHighlight:a.comboboxHighlight}),(0,d.createSlots)({input:(0,d.withCtx)(({onInput:e})=>[(0,d.createElementVNode)(`span`,{ref:`inputSlotWrapper`,class:`d-combobox-multi-select__input-wrapper`,onFocusin:t[1]||(t[1]=(...e)=>a.handleInputFocusIn&&a.handleInputFocusIn(...e)),onFocusout:t[2]||(t[2]=(...e)=>a.handleInputFocusOut&&a.handleInputFocusOut(...e))},[(0,d.createElementVNode)(`span`,{ref:`chipsWrapper`,class:(0,d.normalizeClass)([`d-combobox-multi-select__chip-wrapper`,a.chipWrapperClass])},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.selectedItems,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(o,(0,d.mergeProps)({ref_for:!0,ref:`chips`,key:`${t}-${e}`,interactive:!0,"label-class":[`d-chip__label--focus-always`],class:[`d-combobox-multi-select__chip`,{"d-combobox-multi-select__chip--truncate":!!n.chipMaxWidth}],style:{maxWidth:n.chipMaxWidth},size:i.CHIP_SIZES[String(n.size)],disabled:n.disabled},(0,d.toHandlers)(a.chipListeners),{onKeydown:(0,d.withKeys)(t=>a.onChipRemove(e),[`backspace`]),onClose:t=>a.onChipRemove(e)}),{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e),1)]),_:2},1040,[`class`,`style`,`size`,`disabled`,`onKeydown`,`onClose`]))),128))],2),(0,d.createVNode)(s,(0,d.mergeProps)({ref:`input`,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),class:`d-combobox-multi-select__input`,"input-class":[n.inputClass,{"d-combobox-multi-select__input--hidden":i.hideInputText}],"input-wrapper-class":n.inputWrapperClass,disabled:n.disabled,"aria-label":n.label,"aria-invalid":a.ariaInvalid,"aria-describedby":a.ariaDescribedBy,label:n.showLabel?n.label:``,description:n.description,placeholder:a.inputPlaceHolder,"show-messages":n.showInputMessages,messages:n.inputMessages,size:n.size},a.inputListeners,{"onUpdate:modelValue":e}),null,16,[`modelValue`,`input-class`,`input-wrapper-class`,`disabled`,`aria-label`,`aria-invalid`,`aria-describedby`,`label`,`description`,`placeholder`,`show-messages`,`messages`,`size`,`onUpdate:modelValue`]),(0,d.createVNode)(c,{id:i.messagesId,"validation-messages":n.maxSelectedMessage,"show-messages":i.showValidationMessages},null,8,[`id`,`validation-messages`,`show-messages`])],544)]),list:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref:`list`,class:(0,d.normalizeClass)([`d-combobox-multi-select__list`,n.listClass]),onMousedown:t[3]||(t[3]=(0,d.withModifiers)(()=>{},[`prevent`]))},[n.loading?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,p,(0,d.toDisplayString)(n.loadingMessage),1)):(0,d.renderSlot)(e.$slots,`list`,{key:0})],34)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:`header`,fn:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref:`header`,class:(0,d.normalizeClass)(n.headerClass)},[(0,d.renderSlot)(e.$slots,`header`)],2)]),key:`0`}:void 0,i.hasSlotContent(e.$slots.footer)?{name:`footer`,fn:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref:`footer`,class:(0,d.normalizeClass)(n.footerClass)},[(0,d.renderSlot)(e.$slots,`footer`)],2)]),key:`1`}:void 0]),1040,[`label`,`show-list`,`max-height`,`max-width`,`popover-offset`,`has-suggestion-list`,`append-to`,`dialog-class`,`transition`,`onSelect`,`onHighlight`])}var h=i.t(f,[[`render`,m]]);exports.default=h;
2
2
  //# sourceMappingURL=combobox-multi-select.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-multi-select.cjs","names":[],"sources":["../../../components/ComboboxMultiSelect/ComboboxMultiSelect.vue"],"sourcesContent":["<!-- eslint-disable vue/no-static-inline-styles -->\n<template>\n <dt-combobox-with-popover\n ref=\"comboboxWithPopover\"\n :label=\"label\"\n :show-list=\"showList\"\n :max-height=\"listMaxHeight\"\n :max-width=\"listMaxWidth\"\n :popover-offset=\"popoverOffset\"\n :has-suggestion-list=\"hasSuggestionList\"\n content-width=\"anchor\"\n :append-to=\"appendTo\"\n :dialog-class=\"dialogClass\"\n :transition=\"transition\"\n v-bind=\"extractNonListeners($attrs)\"\n @select=\"onComboboxSelect\"\n @highlight=\"comboboxHighlight\"\n >\n <template #input=\"{ onInput }\">\n <span\n ref=\"inputSlotWrapper\"\n class=\"d-combobox-multi-select__input-wrapper\"\n @focusin=\"handleInputFocusIn\"\n @focusout=\"handleInputFocusOut\"\n >\n <span\n ref=\"chipsWrapper\"\n :class=\"['d-combobox-multi-select__chip-wrapper', chipWrapperClass]\"\n >\n <dt-chip\n v-for=\"(item, index) in selectedItems\"\n ref=\"chips\"\n :key=\"`${index}-${item}`\"\n :interactive=\"true\"\n :label-class=\"['d-chip__label--focus-always']\"\n :class=\"[\n 'd-combobox-multi-select__chip',\n { 'd-combobox-multi-select__chip--truncate': !!chipMaxWidth },\n ]\"\n :style=\"{ maxWidth: chipMaxWidth }\"\n :size=\"CHIP_SIZES[String(size)]\"\n :disabled=\"disabled\"\n v-on=\"chipListeners\"\n @keydown.backspace=\"onChipRemove(item)\"\n @close=\"onChipRemove(item)\"\n >\n {{ item }}\n </dt-chip>\n </span>\n\n <dt-input\n ref=\"input\"\n v-model=\"value\"\n class=\"d-combobox-multi-select__input\"\n :input-class=\"[\n inputClass, {\n 'd-combobox-multi-select__input--hidden': hideInputText,\n }]\"\n :input-wrapper-class=\"inputWrapperClass\"\n :disabled=\"disabled\"\n :aria-label=\"label\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"ariaDescribedBy\"\n :label=\"showLabel ? label : ''\"\n :description=\"description\"\n :placeholder=\"inputPlaceHolder\"\n :show-messages=\"showInputMessages\"\n :messages=\"inputMessages\"\n :size=\"size\"\n v-bind=\"inputListeners\"\n @update:model-value=\"onInput\"\n />\n\n <dt-validation-messages\n :id=\"messagesId\"\n :validation-messages=\"maxSelectedMessage\"\n :show-messages=\"showValidationMessages\"\n />\n </span>\n </template>\n\n <!-- @slot slot for popover header -->\n <template\n v-if=\"hasSlotContent($slots.header)\"\n #header\n >\n <div\n ref=\"header\"\n :class=\"headerClass\"\n >\n <slot name=\"header\" />\n </div>\n </template>\n\n <!-- @slot slot for popover list -->\n <template #list>\n <div\n ref=\"list\"\n :class=\"['d-combobox-multi-select__list', listClass]\"\n @mousedown.prevent\n >\n <slot\n v-if=\"!loading\"\n name=\"list\"\n />\n <div\n v-else\n class=\"d-combobox-multi-select__list--loading\"\n >\n {{ loadingMessage }}\n </div>\n </div>\n </template>\n\n <!-- @slot slot for popover footer -->\n <template\n v-if=\"hasSlotContent($slots.footer)\"\n #footer\n >\n <div\n ref=\"footer\"\n :class=\"footerClass\"\n >\n <slot name=\"footer\" />\n </div>\n </template>\n </dt-combobox-with-popover>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport DtComboboxWithPopover from '@/components/ComboboxWithPopover/ComboboxWithPopover.vue';\nimport DtInput from '@/components/Input/Input.vue';\nimport DtChip from '@/components/Chip/Chip.vue';\nimport DtValidationMessages from '@/components/ValidationMessages/ValidationMessages.vue';\nimport { validationMessageValidator, ordinalSizeValidator } from '@/common/validators';\nimport { extractVueListeners, extractNonListeners, hasSlotContent, returnFirstEl, getUniqueString, getValidationState } from '@/common/utils';\nimport { HTML_ELEMENT_TYPE } from '@/common/constants';\nimport {\n POPOVER_APPEND_TO_VALUES,\n} from '@/components/Popover/PopoverConstants';\nimport {\n CHIP_SIZES,\n} from './ComboboxMultiSelectConstants';\nimport { COMPONENT_SIZES, VALIDATION_MESSAGE_TYPES } from '@/common/constants';\n\nexport default {\n name: 'DtComboboxMultiSelect',\n\n components: {\n DtComboboxWithPopover,\n DtInput,\n DtChip,\n DtValidationMessages,\n },\n\n inheritAttrs: false,\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n showLabel: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Input placeholder\n */\n placeholder: {\n type: String,\n default: 'Select one or start typing',\n },\n\n /**\n * Input validation messages\n */\n inputMessages: {\n type: Array,\n default: () => [],\n validator: inputMessages => {\n return validationMessageValidator(inputMessages);\n },\n },\n\n /**\n * Show input validation message\n */\n showInputMessages: {\n type: Boolean,\n default: true,\n },\n\n // @TODO: https://dialpad.atlassian.net/browse/DP-52324\n // type: {\n // type: String,\n // values: ['input', 'select'],\n // default: 'select',\n // },\n\n /**\n * Determines if the list is loading\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The message when the list is loading\n */\n loadingMessage: {\n type: String,\n default: 'loading...',\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * Leaving this null will have the combobox trigger on input focus by default.\n * If you set this value, the default trigger behavior will be disabled and you can\n * control it as you need.\n */\n showList: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxHeight: {\n type: String,\n default: '300px',\n },\n\n /**\n * The selected items\n */\n selectedItems: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Would be the maximum number of selections you can make. 0 is unlimited\n */\n maxSelected: {\n type: Number,\n default: 0,\n },\n\n /**\n * Max select message when the max selections is exceeded with the structure:\n * `[{\"message\": string, \"type\": VALIDATION_MESSAGE_TYPES }]`\n */\n maxSelectedMessage: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Displays the list when the combobox is focused, before the user has typed anything.\n * When this is enabled the list will not close after selection.\n */\n hasSuggestionList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the chip.\n * @values 100, 200, 300\n */\n size: {\n type: [String, Number],\n default: 300,\n validator: ordinalSizeValidator(CHIP_SIZES),\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', 'root', HTMLElement,\n */\n appendTo: {\n type: [HTML_ELEMENT_TYPE, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n\n /**\n * Determines whether the combobox should collapse to a single when losing focus.\n * @type {boolean}\n */\n collapseOnFocusOut: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Amount of reserved space (in px) on the right side of the input\n * before the chips and the input caret jump to the next line.\n * default is 64\n */\n reservedRightSpace: {\n type: Number,\n default: 64,\n },\n\n /**\n * Determines the maximum width of a single chip. If the text within this chip exceeds the value\n * it will be truncated with ellipses.\n * Possible units rem|px|em\n */\n chipMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the input element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n inputClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the input wrapper element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n inputWrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * When true, disables the underlying input.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the list wrapper element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the popover dialog element.\n */\n dialogClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Event fired to sync the modelValue prop with the parent component\n *\n * @event update:modelValue\n * @type {String}\n */\n 'update:modelValue',\n\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when item removed\n *\n * @event remove\n * @type {String}\n */\n 'remove',\n\n /**\n * Event fired when max selected items limit is reached\n *\n * @event max-selected\n * @type {Object}\n */\n 'max-selected',\n\n /**\n * Native keydown event fired when a key is pressed in the text input.\n * For the common Escape and Enter cases, listen to `escape` / `enter` instead.\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native keydown event fired when a key is pressed while a chip is focused.\n *\n * @event chip-keydown\n * @type {KeyboardEvent}\n */\n 'chip-keydown',\n\n /**\n * Fired when Escape is pressed in the text input.\n * Not fired when a chip is focused.\n *\n * @event escape\n * @type {KeyboardEvent}\n */\n 'escape',\n\n /**\n * Fired when Enter is pressed in the text input.\n * Not fired when a chip is focused.\n *\n * @event enter\n * @type {KeyboardEvent}\n */\n 'enter',\n\n /**\n * Event fired when combobox item is highlighted\n *\n * @event combobox-highlight\n * @type {Object}\n */\n 'combobox-highlight',\n ],\n\n data () {\n return {\n value: '',\n popoverOffset: [0, 4],\n showValidationMessages: false,\n resizeWindowObserver: null,\n inputVisibilityObserver: null,\n initialInputHeight: null,\n CHIP_SIZES,\n hasSlotContent,\n inputFocused: false,\n hideInputText: false,\n messagesId: getUniqueString(),\n };\n },\n\n computed: {\n inputPlaceHolder () {\n return this.selectedItems?.length > 0 ? '' : this.placeholder;\n },\n\n chipListeners () {\n return {\n keydown: event => {\n if (this.disabled) return;\n this.onChipKeyDown(event);\n this.$emit('chip-keydown', event);\n },\n };\n },\n\n inputListeners () {\n return {\n ...extractVueListeners(this.$attrs),\n onInput: event => {\n this.$emit('update:modelValue', event);\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n\n onKeydown: event => {\n if (this.disabled) return;\n this.onInputKeyDown(event);\n this.$emit('keydown', event);\n // Use event.key (not event.code) so NumpadEnter normalizes to 'Enter'\n // and consumers don't have to special-case the numpad.\n const key = event.key?.toLowerCase();\n if (key === 'escape') {\n this.$emit('escape', event);\n } else if (key === 'enter') {\n this.$emit('enter', event);\n }\n },\n\n onClick: () => {\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n };\n },\n\n ariaInvalid () {\n return getValidationState(this.maxSelectedMessage) === VALIDATION_MESSAGE_TYPES.CRITICAL ? 'true' : undefined;\n },\n\n ariaDescribedBy () {\n return this.showValidationMessages && this.maxSelectedMessage.length > 0 ? this.messagesId : undefined;\n },\n\n // Sizes other than xs need a height floor so the box can grow for wrapped\n // chip rows without collapsing back; xs renders correctly without one.\n inputHeightFloor () {\n return (this.initialInputHeight && this.size !== 'xs')\n ? `${this.initialInputHeight}px`\n : '';\n },\n\n chipWrapperClass () {\n const size = COMPONENT_SIZES[String(this.size)] || this.size;\n return [\n // Always emitted so the CSS can size the row rhythm without reaching\n // sideways into DtInput's markup to discover the size.\n `d-combobox-multi-select__chip-wrapper--${size}`,\n {\n [`d-combobox-multi-select__chip-wrapper-${size}--collapsed`]: !this.inputFocused && this.collapseOnFocusOut,\n },\n ];\n },\n },\n\n watch: {\n selectedItems: {\n deep: true,\n handler: async function () {\n await this.initSelectedItems();\n },\n },\n\n chipMaxWidth: {\n async handler () {\n await this.initSelectedItems();\n },\n },\n\n async label () {\n await this.$nextTick();\n // Adjust the chips position if label changed\n this.setChipsTopPosition();\n },\n\n async description () {\n await this.$nextTick();\n // Adjust the chips position if description changed\n this.setChipsTopPosition();\n },\n\n size: {\n async handler () {\n await this.$nextTick();\n const input = this.getInput();\n this.revertInputPadding(input);\n this.setInitialInputHeight();\n this.setInputPadding();\n this.setChipsTopPosition();\n },\n },\n },\n\n async mounted () {\n this.setInitialInputHeight();\n // Recalculate chip position and input padding when resizing window\n this.resizeWindowObserver = new ResizeObserver(async () => {\n this.setChipsTopPosition();\n this.setInputPadding();\n });\n this.resizeWindowObserver.observe(document.body);\n\n // The measurement above can land on a zero-size input — for example it's inside a collapsed\n // panel or a not-yet-visible tab. Nothing else is guaranteed to react once the input later\n // becomes visible: revealing it doesn't necessarily resize document.body, and with the\n // default collapseOnFocusOut: false, focusing the input doesn't recompute anything either.\n // Watch the input's own box directly so we can recover the instant it actually gets real\n // layout, instead of depending on some other call site to happen to run again.\n if (!this.initialInputHeight) {\n const input = this.getInput();\n if (input) {\n this.inputVisibilityObserver = new ResizeObserver(() => {\n if (this.initialInputHeight) return;\n this.setInitialInputHeight();\n if (!this.initialInputHeight) return;\n this.setInputPadding();\n this.setChipsTopPosition();\n this.inputVisibilityObserver?.disconnect();\n this.inputVisibilityObserver = null;\n });\n this.inputVisibilityObserver.observe(input);\n }\n }\n\n await this.initSelectedItems();\n },\n\n beforeUnmount () {\n this.resizeWindowObserver?.unobserve(document.body);\n this.inputVisibilityObserver?.disconnect();\n },\n\n methods: {\n extractNonListeners,\n comboboxHighlight (highlightIndex) {\n this.$emit('combobox-highlight', highlightIndex);\n },\n\n async initSelectedItems () {\n await this.$nextTick();\n this.setInputPadding();\n this.setChipsTopPosition();\n this.setInputMinWidth();\n this.checkMaxSelected();\n },\n\n onChipRemove (item) {\n this.$emit('remove', item);\n this.$refs.input?.focus();\n },\n\n onComboboxSelect (i) {\n if (this.loading) return;\n this.value = '';\n this.$emit('select', i);\n },\n\n showComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.showComboboxList();\n },\n\n closeComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.closeComboboxList();\n },\n\n getChips () {\n if (!this.selectedItems.length || !this.$refs.chips) return null;\n\n // Use the order from selectedItems to not rely on DOM order which may be stale.\n // Track matched indices to handle duplicate item names correctly.\n const matched = new Set();\n const chips = this.selectedItems.map(item => {\n return this.$refs.chips.find((chip, index) => {\n if (matched.has(index)) return false;\n const chipLabel = returnFirstEl(chip.$el)?.querySelector('.d-chip__label')?.textContent?.trim();\n if (chipLabel === item) {\n matched.add(index);\n return true;\n }\n return false;\n });\n });\n return chips.filter(Boolean).map(chip => returnFirstEl(chip.$el));\n },\n\n getChipButtons () {\n const chips = this.getChips();\n return chips && chips.map(chip => returnFirstEl(chip).querySelector('button'));\n },\n\n getLastChipButton () {\n const chipButtons = this.getChipButtons();\n return chipButtons && chipButtons[chipButtons.length - 1];\n },\n\n getLastChip () {\n const chips = this.getChips();\n return chips && chips[chips.length - 1];\n },\n\n getFirstChip () {\n const chips = this.getChips();\n return chips && chips[0];\n },\n\n getInput () {\n return this.$refs.input?.$refs.input;\n },\n\n onChipKeyDown (event) {\n const key = event.code?.toLowerCase();\n if (key === 'arrowleft') {\n // Move to the previous chip\n this.navigateBetweenChips(event.target, true);\n } else if (key === 'arrowright') {\n if (event.target.id === this.getLastChipButton().id) {\n // Move to the input if it's the last chip\n this.moveFromChipToInput();\n } else {\n // Move to the next chip\n this.navigateBetweenChips(event.target, false);\n }\n }\n },\n\n onInputKeyDown (event) {\n const key = event.key?.toLowerCase();\n // If the cursor is at the start of the text,\n // press 'backspace' or 'left' focuses the last chip\n if (this.selectedItems.length > 0 && event.target.selectionStart === 0) {\n // if there is selected text, do not focus the last chip\n if (event.target.selectionEnd !== event.target.selectionStart) {\n return;\n }\n if (key === 'backspace' || key === 'arrowleft') {\n this.moveFromInputToChip();\n }\n }\n },\n\n moveFromInputToChip () {\n this.getLastChipButton().focus();\n this.$refs.input?.blur();\n this.closeComboboxList();\n },\n\n moveFromChipToInput () {\n this.getLastChipButton().blur();\n this.$refs.input?.focus();\n this.showComboboxList();\n },\n\n navigateBetweenChips (target, toLeft) {\n const from = this.getChipButtons().indexOf(target);\n const to = toLeft ? from - 1 : from + 1;\n if (to < 0 || to >= this.$refs.chips?.length) {\n return;\n }\n this.getChipButtons()[from].blur();\n this.getChipButtons()[to].focus();\n this.closeComboboxList();\n },\n\n setChipsTopPosition () {\n // Centers the first row of chips on the input box's first line.\n // Two offsets have to be measured rather than derived: the input's\n // position within the slot wrapper (label and description heights vary),\n // and the chip's position within its own wrapper (the chips are atomic\n // inline boxes, so line-box metrics — not just the chip margin — decide\n // where the row starts).\n const input = this.getInput();\n const chipsWrapper = this.$refs.chipsWrapper;\n const firstChip = this.getFirstChip();\n if (!input || !chipsWrapper || !firstChip) return;\n\n const inputTop = input.getBoundingClientRect().top -\n this.$refs.inputSlotWrapper.getBoundingClientRect().top;\n // The empty-input height, so chips stay on the first line rather than\n // recentering on the whole box once it grows to fit wrapped rows.\n const inputRowHeight = this.initialInputHeight || input.getBoundingClientRect().height;\n const chipRect = firstChip.getBoundingClientRect();\n const chipOffsetInWrapper = chipRect.top - chipsWrapper.getBoundingClientRect().top;\n\n const top = inputTop + (inputRowHeight - chipRect.height) / 2 - chipOffsetInWrapper;\n chipsWrapper.style.top = top + 'px';\n },\n\n setInputPadding () {\n const lastChip = this.getLastChip();\n const input = this.getInput();\n if (!input) return;\n this.revertInputPadding(input);\n this.popoverOffset = [0, 4];\n if (!lastChip) return;\n // Avoid adding extra padding when the input is not focused if collapseOnFocusOut is true\n // This ensures the input returns to its original state when resizing\n if (this.collapseOnFocusOut && !this.inputFocused) return;\n\n // Read while revertInputPadding() above has the inline override cleared,\n // so this is the input's own padding rather than a previous run's value.\n const inputPaddingTop = this.getComputedPx(input, 'paddingTop');\n\n // Get the position of the last chip\n // The input cursor should be the same \"top\" as that chip and next besides it\n const left = lastChip.offsetLeft + this.getFullWidth(lastChip);\n const spaceLeft = input.getBoundingClientRect().width - left;\n const firstChip = this.getFirstChip();\n const isWrapped = firstChip && lastChip.offsetTop > firstChip.offsetTop;\n\n if (spaceLeft > this.reservedRightSpace) {\n input.style.paddingInlineStart = left + 'px';\n } else {\n input.style.paddingInlineStart = '4px';\n }\n\n const caretRowTop = this.getCaretRowTop(lastChip, firstChip, spaceLeft > this.reservedRightSpace, isWrapped);\n if (caretRowTop != null) {\n // Adding the input's own padding reproduces the single-row layout on\n // the caret's row, so the typed text keeps the same baseline relative\n // to the chips beside it no matter how many rows have accumulated.\n input.style.paddingTop = `${caretRowTop + inputPaddingTop}px`;\n this.growInputForWrappedRows(input, caretRowTop);\n }\n },\n\n growInputForWrappedRows (input, caretRowTop) {\n // The grown box would otherwise end at the caret line, leaving the last\n // chip row flush against the block-end border. Extend the height floor\n // so the last row keeps the same breathing room the first row gets from\n // centering: its row top plus the single-row envelope.\n if (!this.initialInputHeight) return;\n input.style.minHeight = `${caretRowTop + this.initialInputHeight}px`;\n },\n\n getComputedPx (el, property) {\n return parseFloat(getComputedStyle(el)[property]) || 0;\n },\n\n // Distance from the first chip row to the row the caret belongs on.\n getCaretRowTop (lastChip, firstChip, hasSpace, isWrapped) {\n // Chip fits beside the cursor on the first row; CSS centers it already.\n if (hasSpace && !isWrapped) return null;\n // Measured rather than offsetTop, which rounds to whole pixels and drifts\n // further out of alignment with every row added.\n const rowTop = lastChip.getBoundingClientRect().top - firstChip.getBoundingClientRect().top;\n // Chip wrapped onto a new row with space remaining; share that row.\n if (hasSpace) return rowTop;\n // No space left on that row — predict the next one. Row spacing belongs\n // to the wrapper's row-gap, not to the chip.\n const rowGap = this.getComputedPx(this.$refs.chipsWrapper, 'rowGap');\n return rowTop + lastChip.getBoundingClientRect().height + rowGap;\n },\n\n revertInputPadding (input) {\n input.style.paddingInlineStart = '';\n // setInputPadding writes the physical paddingTop slot, so that is the\n // slot to clear — the logical one is a different CSSOM property.\n input.style.paddingTop = '';\n // Restore the single-row height floor that setInitialInputHeight\n // applies (setInputPadding grows it while rows are wrapped).\n input.style.minHeight = this.inputHeightFloor;\n },\n\n getFullWidth (el) {\n const styles = window.getComputedStyle(el);\n return el.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);\n },\n\n setInputMinWidth () {\n // Ensure the width of the input is \"slightly bigger\" than the width of a single chip\n const firstChip = this.getFirstChip();\n const input = this.getInput();\n if (!input) return;\n if (firstChip) {\n // Add 4px buffer for typing room\n input.style.minWidth = (this.getFullWidth(firstChip) + 4) + 'px';\n } else {\n input.style.minWidth = '';\n }\n },\n\n checkMaxSelected () {\n if (this.maxSelected === 0) return;\n if (this.selectedItems.length > this.maxSelected) {\n this.showValidationMessages = true;\n this.$emit('max-selected');\n } else {\n this.showValidationMessages = false;\n }\n },\n\n setInitialInputHeight () {\n const input = this.getInput();\n if (!input) return;\n input.style.minHeight = '';\n input.style.height = '';\n this.initialInputHeight = input.getBoundingClientRect().height;\n // xs renders correctly without a min-height floor; other sizes need it to grow when chips wrap.\n if (this.size !== 'xs') {\n input.style.minHeight = `${this.initialInputHeight}px`;\n input.style.height = 'auto';\n }\n },\n\n async handleInputFocusIn () {\n this.inputFocused = true;\n if (this.collapseOnFocusOut) {\n this.hideInputText = false;\n await this.$nextTick();\n this.setInputPadding();\n }\n },\n\n async handleInputFocusOut () {\n this.inputFocused = false;\n if (this.collapseOnFocusOut) {\n this.hideInputText = true;\n const input = this.getInput();\n if (!input) return;\n // Hide the input text when is not on first line\n if (!input.style.paddingTop) {\n return;\n }\n this.revertInputPadding(input);\n }\n },\n },\n};\n</script>\n"],"mappings":"wqBAkJA,IAAK,EAAU,CACb,KAAM,wBAEN,WAAY,CACV,sBAAA,EAAA,QACA,QAAA,EAAA,QACA,OAAA,EAAA,QACA,qBAAA,EAAA,QACD,CAED,aAAc,GAEd,MAAO,CAIL,MAAO,CACL,KAAM,OACN,SAAU,GACX,CAMD,UAAW,CACT,KAAM,QACN,QAAS,GACV,CAKD,YAAa,CACX,KAAM,OACN,QAAS,GACV,CAKD,YAAa,CACX,KAAM,OACN,QAAS,6BACV,CAKD,cAAe,CACb,KAAM,MACN,YAAe,EAAE,CACjB,UAAW,GACF,EAAA,2BAA2B,EAAc,CAEnD,CAKD,kBAAmB,CACjB,KAAM,QACN,QAAS,GACV,CAYD,QAAS,CACP,KAAM,QACN,QAAS,GACV,CAKD,eAAgB,CACd,KAAM,OACN,QAAS,aACV,CAQD,SAAU,CACR,KAAM,QACN,QAAS,KACV,CAMD,cAAe,CACb,KAAM,OACN,QAAS,QACV,CAKD,cAAe,CACb,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,EAAE,EACjC,CAKD,YAAa,CACX,KAAM,OACN,QAAS,EACV,CAMD,mBAAoB,CAClB,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,EAAE,EACjC,CAMD,kBAAmB,CACjB,KAAM,QACN,QAAS,GACV,CAMD,KAAM,CACJ,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,IACT,UAAW,EAAA,qBAAqB,EAAA,WAAW,CAC5C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,gBAAK,CAAA,gCAAoC,EAAA,UAAS,CAAA,CAClD,YAAS,EAAA,KAAA,EAAA,IAAA,EAAA,EAAA,mBAAV,GAAkB,CAAA,UAAA,CAAA,IAGT,EAAA,UAEP,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAMI,MALN,GAAA,EAAA,EAAA,iBAIK,EAAA,eAAc,CAAA,EAAA,GAPV,EAAA,EAAA,YAEP,EAAA,OAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAKiB,CAAA,GAAA,CAAA,CAAA,OA1Bf,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,8BAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,iBA0BlB,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,8BAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"combobox-multi-select.cjs","names":[],"sources":["../../../components/ComboboxMultiSelect/ComboboxMultiSelect.vue"],"sourcesContent":["<!-- eslint-disable vue/no-static-inline-styles -->\n<template>\n <dt-combobox-with-popover\n ref=\"comboboxWithPopover\"\n :label=\"label\"\n :show-list=\"showList\"\n :max-height=\"listMaxHeight\"\n :max-width=\"listMaxWidth\"\n :popover-offset=\"popoverOffset\"\n :has-suggestion-list=\"hasSuggestionList\"\n content-width=\"anchor\"\n :append-to=\"appendTo\"\n :dialog-class=\"dialogClass\"\n :transition=\"transition\"\n v-bind=\"extractNonListeners($attrs)\"\n @select=\"onComboboxSelect\"\n @highlight=\"comboboxHighlight\"\n >\n <template #input=\"{ onInput }\">\n <span\n ref=\"inputSlotWrapper\"\n class=\"d-combobox-multi-select__input-wrapper\"\n @focusin=\"handleInputFocusIn\"\n @focusout=\"handleInputFocusOut\"\n >\n <span\n ref=\"chipsWrapper\"\n :class=\"['d-combobox-multi-select__chip-wrapper', chipWrapperClass]\"\n >\n <dt-chip\n v-for=\"(item, index) in selectedItems\"\n ref=\"chips\"\n :key=\"`${index}-${item}`\"\n :interactive=\"true\"\n :label-class=\"['d-chip__label--focus-always']\"\n :class=\"[\n 'd-combobox-multi-select__chip',\n { 'd-combobox-multi-select__chip--truncate': !!chipMaxWidth },\n ]\"\n :style=\"{ maxWidth: chipMaxWidth }\"\n :size=\"CHIP_SIZES[String(size)]\"\n :disabled=\"disabled\"\n v-on=\"chipListeners\"\n @keydown.backspace=\"onChipRemove(item)\"\n @close=\"onChipRemove(item)\"\n >\n {{ item }}\n </dt-chip>\n </span>\n\n <dt-input\n ref=\"input\"\n v-model=\"value\"\n class=\"d-combobox-multi-select__input\"\n :input-class=\"[\n inputClass, {\n 'd-combobox-multi-select__input--hidden': hideInputText,\n }]\"\n :input-wrapper-class=\"inputWrapperClass\"\n :disabled=\"disabled\"\n :aria-label=\"label\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"ariaDescribedBy\"\n :label=\"showLabel ? label : ''\"\n :description=\"description\"\n :placeholder=\"inputPlaceHolder\"\n :show-messages=\"showInputMessages\"\n :messages=\"inputMessages\"\n :size=\"size\"\n v-bind=\"inputListeners\"\n @update:model-value=\"onInput\"\n />\n\n <dt-validation-messages\n :id=\"messagesId\"\n :validation-messages=\"maxSelectedMessage\"\n :show-messages=\"showValidationMessages\"\n />\n </span>\n </template>\n\n <!-- @slot slot for popover header -->\n <template\n v-if=\"hasSlotContent($slots.header)\"\n #header\n >\n <div\n ref=\"header\"\n :class=\"headerClass\"\n >\n <slot name=\"header\" />\n </div>\n </template>\n\n <!-- @slot slot for popover list -->\n <template #list>\n <div\n ref=\"list\"\n :class=\"['d-combobox-multi-select__list', listClass]\"\n @mousedown.prevent\n >\n <slot\n v-if=\"!loading\"\n name=\"list\"\n />\n <div\n v-else\n class=\"d-combobox-multi-select__list--loading\"\n >\n {{ loadingMessage }}\n </div>\n </div>\n </template>\n\n <!-- @slot slot for popover footer -->\n <template\n v-if=\"hasSlotContent($slots.footer)\"\n #footer\n >\n <div\n ref=\"footer\"\n :class=\"footerClass\"\n >\n <slot name=\"footer\" />\n </div>\n </template>\n </dt-combobox-with-popover>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport DtComboboxWithPopover from '@/components/ComboboxWithPopover/ComboboxWithPopover.vue';\nimport DtInput from '@/components/Input/Input.vue';\nimport DtChip from '@/components/Chip/Chip.vue';\nimport DtValidationMessages from '@/components/ValidationMessages/ValidationMessages.vue';\nimport { validationMessageValidator, ordinalSizeValidator } from '@/common/validators';\nimport { extractVueListeners, extractNonListeners, hasSlotContent, returnFirstEl, getUniqueString, getValidationState } from '@/common/utils';\nimport { HTML_ELEMENT_TYPE } from '@/common/constants';\nimport {\n POPOVER_APPEND_TO_VALUES,\n} from '@/components/Popover/PopoverConstants';\nimport {\n CHIP_SIZES,\n} from './ComboboxMultiSelectConstants';\nimport { COMPONENT_SIZES, VALIDATION_MESSAGE_TYPES } from '@/common/constants';\n\nexport default {\n name: 'DtComboboxMultiSelect',\n\n components: {\n DtComboboxWithPopover,\n DtInput,\n DtChip,\n DtValidationMessages,\n },\n\n inheritAttrs: false,\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n showLabel: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Input placeholder\n */\n placeholder: {\n type: String,\n default: 'Select one or start typing',\n },\n\n /**\n * Input validation messages\n */\n inputMessages: {\n type: Array,\n default: () => [],\n validator: inputMessages => {\n return validationMessageValidator(inputMessages);\n },\n },\n\n /**\n * Show input validation message\n */\n showInputMessages: {\n type: Boolean,\n default: true,\n },\n\n // @TODO: https://dialpad.atlassian.net/browse/DP-52324\n // type: {\n // type: String,\n // values: ['input', 'select'],\n // default: 'select',\n // },\n\n /**\n * Determines if the list is loading\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The message when the list is loading\n */\n loadingMessage: {\n type: String,\n default: 'loading...',\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * Leaving this null will have the combobox trigger on input focus by default.\n * If you set this value, the default trigger behavior will be disabled and you can\n * control it as you need.\n */\n showList: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxHeight: {\n type: String,\n default: '300px',\n },\n\n /**\n * The selected items\n */\n selectedItems: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Would be the maximum number of selections you can make. 0 is unlimited\n */\n maxSelected: {\n type: Number,\n default: 0,\n },\n\n /**\n * Max select message when the max selections is exceeded with the structure:\n * `[{\"message\": string, \"type\": VALIDATION_MESSAGE_TYPES }]`\n */\n maxSelectedMessage: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Displays the list when the combobox is focused, before the user has typed anything.\n * When this is enabled the list will not close after selection.\n */\n hasSuggestionList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the chip.\n * @values 100, 200, 300\n */\n size: {\n type: [String, Number],\n default: 300,\n validator: ordinalSizeValidator(CHIP_SIZES),\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', 'root', HTMLElement,\n */\n appendTo: {\n type: [HTML_ELEMENT_TYPE, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n\n /**\n * Determines whether the combobox should collapse to a single when losing focus.\n * @type {boolean}\n */\n collapseOnFocusOut: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Amount of reserved space (in px) on the right side of the input\n * before the chips and the input caret jump to the next line.\n * default is 64\n */\n reservedRightSpace: {\n type: Number,\n default: 64,\n },\n\n /**\n * Determines the maximum width of a single chip. If the text within this chip exceeds the value\n * it will be truncated with ellipses.\n * Possible units rem|px|em\n */\n chipMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the input element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n inputClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the input wrapper element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n inputWrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * When true, disables the underlying input.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the list wrapper element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the popover dialog element.\n */\n dialogClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Event fired to sync the modelValue prop with the parent component\n *\n * @event update:modelValue\n * @type {String}\n */\n 'update:modelValue',\n\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when item removed\n *\n * @event remove\n * @type {String}\n */\n 'remove',\n\n /**\n * Event fired when max selected items limit is reached\n *\n * @event max-selected\n * @type {Object}\n */\n 'max-selected',\n\n /**\n * Native keydown event fired when a key is pressed in the text input.\n * For the common Escape and Enter cases, listen to `escape` / `enter` instead.\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native keydown event fired when a key is pressed while a chip is focused.\n *\n * @event chip-keydown\n * @type {KeyboardEvent}\n */\n 'chip-keydown',\n\n /**\n * Fired when Escape is pressed in the text input.\n * Not fired when a chip is focused.\n *\n * @event escape\n * @type {KeyboardEvent}\n */\n 'escape',\n\n /**\n * Fired when Enter is pressed in the text input.\n * Not fired when a chip is focused.\n *\n * @event enter\n * @type {KeyboardEvent}\n */\n 'enter',\n\n /**\n * Event fired when combobox item is highlighted\n *\n * @event combobox-highlight\n * @type {Object}\n */\n 'combobox-highlight',\n ],\n\n data () {\n return {\n value: '',\n popoverOffset: [0, 4],\n showValidationMessages: false,\n resizeWindowObserver: null,\n inputVisibilityObserver: null,\n initialInputHeight: null,\n CHIP_SIZES,\n hasSlotContent,\n inputFocused: false,\n hideInputText: false,\n messagesId: getUniqueString(),\n };\n },\n\n computed: {\n inputPlaceHolder () {\n return this.selectedItems?.length > 0 ? '' : this.placeholder;\n },\n\n chipListeners () {\n return {\n keydown: event => {\n if (this.disabled) return;\n this.onChipKeyDown(event);\n this.$emit('chip-keydown', event);\n },\n };\n },\n\n inputListeners () {\n return {\n ...extractVueListeners(this.$attrs),\n onInput: event => {\n this.$emit('update:modelValue', event);\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n\n onKeydown: event => {\n if (this.disabled) return;\n this.onInputKeyDown(event);\n this.$emit('keydown', event);\n // Use event.key (not event.code) so NumpadEnter normalizes to 'Enter'\n // and consumers don't have to special-case the numpad.\n const key = event.key?.toLowerCase();\n if (key === 'escape') {\n this.$emit('escape', event);\n } else if (key === 'enter') {\n this.$emit('enter', event);\n }\n },\n\n onClick: () => {\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n };\n },\n\n ariaInvalid () {\n return getValidationState(this.maxSelectedMessage) === VALIDATION_MESSAGE_TYPES.CRITICAL ? 'true' : undefined;\n },\n\n ariaDescribedBy () {\n return this.showValidationMessages && this.maxSelectedMessage.length > 0 ? this.messagesId : undefined;\n },\n\n // Sizes other than xs need a height floor so the box can grow for wrapped\n // chip rows without collapsing back; xs renders correctly without one.\n inputHeightFloor () {\n return (this.initialInputHeight && this.size !== 'xs')\n ? `${this.initialInputHeight}px`\n : '';\n },\n\n chipWrapperClass () {\n const size = COMPONENT_SIZES[String(this.size)] || this.size;\n return [\n // Always emitted so the CSS can size the row rhythm without reaching\n // sideways into DtInput's markup to discover the size.\n `d-combobox-multi-select__chip-wrapper--${size}`,\n {\n [`d-combobox-multi-select__chip-wrapper-${size}--collapsed`]: !this.inputFocused && this.collapseOnFocusOut,\n },\n ];\n },\n },\n\n watch: {\n selectedItems: {\n deep: true,\n handler: async function () {\n await this.initSelectedItems();\n },\n },\n\n chipMaxWidth: {\n async handler () {\n await this.initSelectedItems();\n },\n },\n\n async label () {\n await this.$nextTick();\n // Adjust the chips position if label changed\n this.setChipsTopPosition();\n },\n\n async description () {\n await this.$nextTick();\n // Adjust the chips position if description changed\n this.setChipsTopPosition();\n },\n\n size: {\n async handler () {\n await this.$nextTick();\n const input = this.getInput();\n this.revertInputPadding(input);\n this.setInitialInputHeight();\n this.setInputPadding();\n this.setChipsTopPosition();\n },\n },\n },\n\n async mounted () {\n this.setInitialInputHeight();\n // Recalculate chip position and input padding when resizing window\n this.resizeWindowObserver = new ResizeObserver(async () => {\n this.setChipsTopPosition();\n this.setInputPadding();\n });\n this.resizeWindowObserver.observe(document.body);\n\n // The measurement above can land on a zero-size input — for example it's inside a collapsed\n // panel or a not-yet-visible tab. Nothing else is guaranteed to react once the input later\n // becomes visible: revealing it doesn't necessarily resize document.body, and with the\n // default collapseOnFocusOut: false, focusing the input doesn't recompute anything either.\n // Watch the input's own box directly so we can recover the instant it actually gets real\n // layout, instead of depending on some other call site to happen to run again.\n if (!this.initialInputHeight) {\n const input = this.getInput();\n if (input) {\n this.inputVisibilityObserver = new ResizeObserver(() => {\n if (this.initialInputHeight) return;\n this.setInitialInputHeight();\n if (!this.initialInputHeight) return;\n this.setInputPadding();\n this.setChipsTopPosition();\n this.inputVisibilityObserver?.disconnect();\n this.inputVisibilityObserver = null;\n });\n this.inputVisibilityObserver.observe(input);\n }\n }\n\n await this.initSelectedItems();\n },\n\n beforeUnmount () {\n this.resizeWindowObserver?.unobserve(document.body);\n this.inputVisibilityObserver?.disconnect();\n },\n\n methods: {\n extractNonListeners,\n comboboxHighlight (highlightIndex) {\n this.$emit('combobox-highlight', highlightIndex);\n },\n\n async initSelectedItems () {\n await this.$nextTick();\n this.setInputPadding();\n this.setChipsTopPosition();\n this.setInputMinWidth();\n this.checkMaxSelected();\n },\n\n onChipRemove (item) {\n this.$emit('remove', item);\n this.$refs.input?.focus();\n },\n\n onComboboxSelect (i) {\n if (this.loading) return;\n this.value = '';\n this.$emit('select', i);\n },\n\n showComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.showComboboxList();\n },\n\n closeComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.closeComboboxList();\n },\n\n getChips () {\n if (!this.selectedItems.length || !this.$refs.chips) return null;\n\n // Use the order from selectedItems to not rely on DOM order which may be stale.\n // Track matched indices to handle duplicate item names correctly.\n const matched = new Set();\n const chips = this.selectedItems.map(item => {\n return this.$refs.chips.find((chip, index) => {\n if (matched.has(index)) return false;\n const chipLabel = returnFirstEl(chip.$el)?.querySelector('.d-chip__label')?.textContent?.trim();\n if (chipLabel === item) {\n matched.add(index);\n return true;\n }\n return false;\n });\n });\n return chips.filter(Boolean).map(chip => returnFirstEl(chip.$el));\n },\n\n getChipButtons () {\n const chips = this.getChips();\n return chips && chips.map(chip => returnFirstEl(chip).querySelector('button'));\n },\n\n getLastChipButton () {\n const chipButtons = this.getChipButtons();\n return chipButtons && chipButtons[chipButtons.length - 1];\n },\n\n getLastChip () {\n const chips = this.getChips();\n return chips && chips[chips.length - 1];\n },\n\n getFirstChip () {\n const chips = this.getChips();\n return chips && chips[0];\n },\n\n getInput () {\n return this.$refs.input?.$refs.input;\n },\n\n onChipKeyDown (event) {\n const key = event.code?.toLowerCase();\n if (key === 'arrowleft') {\n // Move to the previous chip\n this.navigateBetweenChips(event.target, true);\n } else if (key === 'arrowright') {\n if (event.target.id === this.getLastChipButton().id) {\n // Move to the input if it's the last chip\n this.moveFromChipToInput();\n } else {\n // Move to the next chip\n this.navigateBetweenChips(event.target, false);\n }\n }\n },\n\n onInputKeyDown (event) {\n const key = event.key?.toLowerCase();\n // If the cursor is at the start of the text,\n // press 'backspace' or 'left' focuses the last chip\n if (this.selectedItems.length > 0 && event.target.selectionStart === 0) {\n // if there is selected text, do not focus the last chip\n if (event.target.selectionEnd !== event.target.selectionStart) {\n return;\n }\n if (key === 'backspace' || key === 'arrowleft') {\n this.moveFromInputToChip();\n }\n }\n },\n\n moveFromInputToChip () {\n this.getLastChipButton().focus();\n this.$refs.input?.blur();\n this.closeComboboxList();\n },\n\n moveFromChipToInput () {\n this.getLastChipButton().blur();\n this.$refs.input?.focus();\n this.showComboboxList();\n },\n\n navigateBetweenChips (target, toLeft) {\n const from = this.getChipButtons().indexOf(target);\n const to = toLeft ? from - 1 : from + 1;\n if (to < 0 || to >= this.$refs.chips?.length) {\n return;\n }\n this.getChipButtons()[from].blur();\n this.getChipButtons()[to].focus();\n this.closeComboboxList();\n },\n\n setChipsTopPosition () {\n // Centers the first row of chips on the input box's first line.\n // Two offsets have to be measured rather than derived: the input's\n // position within the slot wrapper (label and description heights vary),\n // and the chip's position within its own wrapper (the chips are atomic\n // inline boxes, so line-box metrics — not just the chip margin — decide\n // where the row starts).\n const input = this.getInput();\n const chipsWrapper = this.$refs.chipsWrapper;\n const firstChip = this.getFirstChip();\n if (!input || !chipsWrapper || !firstChip) return;\n\n const inputTop = input.getBoundingClientRect().top -\n this.$refs.inputSlotWrapper.getBoundingClientRect().top;\n // The empty-input height, so chips stay on the first line rather than\n // recentering on the whole box once it grows to fit wrapped rows.\n const inputRowHeight = this.initialInputHeight || input.getBoundingClientRect().height;\n const chipRect = firstChip.getBoundingClientRect();\n const chipOffsetInWrapper = chipRect.top - chipsWrapper.getBoundingClientRect().top;\n\n const top = inputTop + (inputRowHeight - chipRect.height) / 2 - chipOffsetInWrapper;\n chipsWrapper.style.top = top + 'px';\n },\n\n setInputPadding () {\n const lastChip = this.getLastChip();\n const input = this.getInput();\n if (!input) return;\n this.revertInputPadding(input);\n this.popoverOffset = [0, 4];\n if (!lastChip) return;\n // Avoid adding extra padding when the input is not focused if collapseOnFocusOut is true\n // This ensures the input returns to its original state when resizing\n if (this.collapseOnFocusOut && !this.inputFocused) return;\n\n // Read while revertInputPadding() above has the inline override cleared,\n // so this is the input's own padding rather than a previous run's value.\n const inputPaddingTop = this.getComputedPx(input, 'paddingTop');\n\n // Get the position of the last chip\n // The input cursor should be the same \"top\" as that chip and next besides it\n const left = lastChip.offsetLeft + this.getFullWidth(lastChip);\n const spaceLeft = input.getBoundingClientRect().width - left;\n const firstChip = this.getFirstChip();\n const isWrapped = firstChip && lastChip.offsetTop > firstChip.offsetTop;\n\n if (spaceLeft > this.reservedRightSpace) {\n input.style.paddingInlineStart = left + 'px';\n } else {\n input.style.paddingInlineStart = '4px';\n }\n\n const caretRowTop = this.getCaretRowTop(lastChip, firstChip, spaceLeft > this.reservedRightSpace, isWrapped);\n if (caretRowTop != null) {\n // Adding the input's own padding reproduces the single-row layout on\n // the caret's row, so the typed text keeps the same baseline relative\n // to the chips beside it no matter how many rows have accumulated.\n input.style.paddingTop = `${caretRowTop + inputPaddingTop}px`;\n this.growInputForWrappedRows(input, caretRowTop);\n }\n },\n\n growInputForWrappedRows (input, caretRowTop) {\n // The grown box would otherwise end at the caret line, leaving the last\n // chip row flush against the block-end border. Extend the height floor\n // so the last row keeps the same breathing room the first row gets from\n // centering: its row top plus the single-row envelope.\n if (!this.initialInputHeight) return;\n input.style.minHeight = `${caretRowTop + this.initialInputHeight}px`;\n },\n\n getComputedPx (el, property) {\n return parseFloat(getComputedStyle(el)[property]) || 0;\n },\n\n // Distance from the first chip row to the row the caret belongs on.\n getCaretRowTop (lastChip, firstChip, hasSpace, isWrapped) {\n // Chip fits beside the cursor on the first row; CSS centers it already.\n if (hasSpace && !isWrapped) return null;\n // Measured rather than offsetTop, which rounds to whole pixels and drifts\n // further out of alignment with every row added.\n const rowTop = lastChip.getBoundingClientRect().top - firstChip.getBoundingClientRect().top;\n // Chip wrapped onto a new row with space remaining; share that row.\n if (hasSpace) return rowTop;\n // No space left on that row — predict the next one. Row spacing belongs\n // to the wrapper's row-gap, not to the chip.\n const rowGap = this.getComputedPx(this.$refs.chipsWrapper, 'rowGap');\n return rowTop + lastChip.getBoundingClientRect().height + rowGap;\n },\n\n revertInputPadding (input) {\n input.style.paddingInlineStart = '';\n // setInputPadding writes the physical paddingTop slot, so that is the\n // slot to clear — the logical one is a different CSSOM property.\n input.style.paddingTop = '';\n // Restore the single-row height floor that setInitialInputHeight\n // applies (setInputPadding grows it while rows are wrapped).\n input.style.minHeight = this.inputHeightFloor;\n },\n\n getFullWidth (el) {\n const styles = window.getComputedStyle(el);\n return el.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);\n },\n\n setInputMinWidth () {\n // Ensure the width of the input is \"slightly bigger\" than the width of a single chip\n const firstChip = this.getFirstChip();\n const input = this.getInput();\n if (!input) return;\n if (firstChip) {\n // Add 4px buffer for typing room\n input.style.minWidth = (this.getFullWidth(firstChip) + 4) + 'px';\n } else {\n input.style.minWidth = '';\n }\n },\n\n checkMaxSelected () {\n if (this.maxSelected === 0) return;\n if (this.selectedItems.length > this.maxSelected) {\n this.showValidationMessages = true;\n this.$emit('max-selected');\n } else {\n this.showValidationMessages = false;\n }\n },\n\n setInitialInputHeight () {\n const input = this.getInput();\n if (!input) return;\n input.style.minHeight = '';\n input.style.height = '';\n this.initialInputHeight = input.getBoundingClientRect().height;\n // xs renders correctly without a min-height floor; other sizes need it to grow when chips wrap.\n if (this.size !== 'xs') {\n input.style.minHeight = `${this.initialInputHeight}px`;\n input.style.height = 'auto';\n }\n },\n\n async handleInputFocusIn () {\n this.inputFocused = true;\n if (this.collapseOnFocusOut) {\n this.hideInputText = false;\n await this.$nextTick();\n this.setInputPadding();\n }\n },\n\n async handleInputFocusOut () {\n this.inputFocused = false;\n if (this.collapseOnFocusOut) {\n this.hideInputText = true;\n const input = this.getInput();\n if (!input) return;\n // Hide the input text when is not on first line\n if (!input.style.paddingTop) {\n return;\n }\n this.revertInputPadding(input);\n }\n },\n },\n};\n</script>\n"],"mappings":"oqBAkJA,IAAK,EAAU,CACb,KAAM,wBAEN,WAAY,CACV,sBAAA,EAAA,QACA,QAAA,EAAA,QACA,OAAA,EAAA,QACA,qBAAA,EAAA,QACD,CAED,aAAc,GAEd,MAAO,CAIL,MAAO,CACL,KAAM,OACN,SAAU,GACX,CAMD,UAAW,CACT,KAAM,QACN,QAAS,GACV,CAKD,YAAa,CACX,KAAM,OACN,QAAS,GACV,CAKD,YAAa,CACX,KAAM,OACN,QAAS,6BACV,CAKD,cAAe,CACb,KAAM,MACN,YAAe,EAAE,CACjB,UAAW,GACF,EAAA,2BAA2B,EAAc,CAEnD,CAKD,kBAAmB,CACjB,KAAM,QACN,QAAS,GACV,CAYD,QAAS,CACP,KAAM,QACN,QAAS,GACV,CAKD,eAAgB,CACd,KAAM,OACN,QAAS,aACV,CAQD,SAAU,CACR,KAAM,QACN,QAAS,KACV,CAMD,cAAe,CACb,KAAM,OACN,QAAS,QACV,CAKD,cAAe,CACb,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,EAAE,EACjC,CAKD,YAAa,CACX,KAAM,OACN,QAAS,EACV,CAMD,mBAAoB,CAClB,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,EAAE,EACjC,CAMD,kBAAmB,CACjB,KAAM,QACN,QAAS,GACV,CAMD,KAAM,CACJ,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,IACT,UAAW,EAAA,qBAAqB,EAAA,WAAW,CAC5C,CAOD,SAAU,CACR,K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AAA,UAAS,CAAA,CAClD,YAAS,EAAA,KAAA,EAAA,IAAA,EAAA,EAAA,mBAAV,GAAkB,CAAA,UAAA,CAAA,IAGT,EAAA,UAEP,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAMI,MALN,GAAA,EAAA,EAAA,iBAIK,EAAA,eAAc,CAAA,EAAA,GAPV,EAAA,EAAA,YAEP,EAAA,OAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAKiB,CAAA,GAAA,CAAA,CAAA,OA1Bf,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,8BAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,iBA0BlB,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,8BAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { COMPONENT_SIZES as e } from "../../common/constants/sizes.js";
2
2
  import { HTML_ELEMENT_TYPE as t, VALIDATION_MESSAGE_TYPES as n } from "../../common/constants/index.js";
3
3
  import { ordinalSizeValidator as r, validationMessageValidator as i } from "../../common/validators/index.js";
4
- import { extractNonListeners as a, extractVueListeners as o, getUniqueString as s, getValidationState as c, hasSlotContent as l, returnFirstEl as u } from "../../common/utils/index.js";
5
- import { t as d } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
4
+ import { O as a, _ as o, a as s, h as c, m as l, o as u } from "../../utils-CXaaZqVu.js";
5
+ import { t as d } from "../../_plugin-vue_export-helper-B52Kst-M.js";
6
6
  import f from "../validation-messages/validation-messages.js";
7
7
  import p from "../chip/chip.js";
8
8
  import { POPOVER_APPEND_TO_VALUES as m } from "../popover/popover-constants.js";
@@ -185,10 +185,10 @@ var I = {
185
185
  inputVisibilityObserver: null,
186
186
  initialInputHeight: null,
187
187
  CHIP_SIZES: _,
188
- hasSlotContent: l,
188
+ hasSlotContent: o,
189
189
  inputFocused: !1,
190
190
  hideInputText: !1,
191
- messagesId: s()
191
+ messagesId: l()
192
192
  };
193
193
  },
194
194
  computed: {
@@ -202,7 +202,7 @@ var I = {
202
202
  },
203
203
  inputListeners() {
204
204
  return {
205
- ...o(this.$attrs),
205
+ ...u(this.$attrs),
206
206
  onInput: (e) => {
207
207
  this.$emit("update:modelValue", e), this.hasSuggestionList && this.showComboboxList();
208
208
  },
@@ -268,7 +268,7 @@ var I = {
268
268
  this.resizeWindowObserver?.unobserve(document.body), this.inputVisibilityObserver?.disconnect();
269
269
  },
270
270
  methods: {
271
- extractNonListeners: a,
271
+ extractNonListeners: s,
272
272
  comboboxHighlight(e) {
273
273
  this.$emit("combobox-highlight", e);
274
274
  },
@@ -290,11 +290,11 @@ var I = {
290
290
  getChips() {
291
291
  if (!this.selectedItems.length || !this.$refs.chips) return null;
292
292
  let e = /* @__PURE__ */ new Set();
293
- return this.selectedItems.map((t) => this.$refs.chips.find((n, r) => e.has(r) ? !1 : u(n.$el)?.querySelector(".d-chip__label")?.textContent?.trim() === t ? (e.add(r), !0) : !1)).filter(Boolean).map((e) => u(e.$el));
293
+ return this.selectedItems.map((t) => this.$refs.chips.find((n, r) => e.has(r) ? !1 : a(n.$el)?.querySelector(".d-chip__label")?.textContent?.trim() === t ? (e.add(r), !0) : !1)).filter(Boolean).map((e) => a(e.$el));
294
294
  },
295
295
  getChipButtons() {
296
296
  let e = this.getChips();
297
- return e && e.map((e) => u(e).querySelector("button"));
297
+ return e && e.map((e) => a(e).querySelector("button"));
298
298
  },
299
299
  getLastChipButton() {
300
300
  let e = this.getChipButtons();
@@ -0,0 +1 @@
1
+ export * from '../../components/ComboboxMultiSelect/index.js';