@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,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(`../../mode_constants-CzYJW9ua.cjs`),o=require(`../combobox/combobox-loading-list.cjs`),s=require(`../combobox/combobox-empty-list.cjs`),c=require(`../../Combobox-DdBIRmeH.cjs`),l=require(`../combobox/combobox-constants.cjs`),u=require(`../popover/popover-constants.cjs`),d=require(`../popover/popover.cjs`),f=require(`../dropdown/dropdown-constants.cjs`);let p=require(`vue`);var m={name:`DtComboboxWithPopover`,components:{DtCombobox:c.t,DtPopover:d.default,ComboboxLoadingList:o.default,ComboboxEmptyList:s.default},props:{contentMode:a.t,label:{type:String,required:!0},showLabel:{type:Boolean,default:!0},size:{type:[String,Number],default:null,validator:t=>t===null||Object.values(l.COMBOBOX_LABEL_SIZES).includes(t)||n.ordinalSizeValidator(e.COMPONENT_SIZES)(t)},description:{type:String,default:``},showList:{type:Boolean,default:null},listId:{type:String,default(){return r.getUniqueString()}},listClass:{type:[String,Array,Object],default:``},headerClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},dialogClass:{type:[String,Array,Object],default:``},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:``},maxWidth:{type:String,default:``},padding:{type:String,default:`small`,validator:e=>Object.keys(f.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},contentWidth:{type:String,default:null,validator:e=>u.POPOVER_CONTENT_WIDTHS.includes(e)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:``},appendTo:{type:[t.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:`fade`}},emits:[`select`,`escape`,`highlight`,`opened`],data(){return{DROPDOWN_PADDING_CLASSES:f.DROPDOWN_PADDING_CLASSES,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:r.getUniqueString(),hasSlotContent:r.hasSlotContent}},computed:{comboboxListeners(){return{...this.$attrs,onSelect:this.onSelect,onEscape:this.onEscape,onHighlight:this.onHighlight}}},watch:{showList:{handler:function(e){e!==null&&(this.isListShown=e)},immediate:!0},isListShown(e){e?window.addEventListener(`mousedown`,this.onFocusOut):window.removeEventListener(`mousedown`,this.onFocusOut),this.onOpened(e)}},methods:{handleDisplayList(e){!this.hasSuggestionList&&e&&this.showComboboxList(),!this.hasSuggestionList&&!e&&this.closeComboboxList()},showComboboxList(){this.showList??(this.isListShown=!0)},closeComboboxList(){this.showList??(this.isListShown=!1)},onSelect(e){this.loading||(this.$emit(`select`,e),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit(`escape`),this.closeComboboxList()},onHighlight(e){this.loading||this.$emit(`highlight`,e)},onOpened(e){this.$emit(`opened`,e)},onFocusIn(e){this.hasSuggestionList&&e&&this.$refs.input?.querySelector(`input`)===e.target&&this.showComboboxList()},onFocusOut(e){let t=this.$refs.popover?.tip?.popper,n=this.$refs.input;e.composedPath()?.some(e=>[t,n].includes(e))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},h=[`id`],g=[`onMouseleave`,`onFocusout`];function _(e,t,n,r,i,a){let o=(0,p.resolveComponent)(`combobox-loading-list`),s=(0,p.resolveComponent)(`combobox-empty-list`),c=(0,p.resolveComponent)(`dt-popover`),l=(0,p.resolveComponent)(`dt-combobox`);return(0,p.openBlock)(),(0,p.createBlock)(l,(0,p.mergeProps)({ref:`combobox`,loading:n.loading,label:n.label,"show-label":n.showLabel,size:n.size,description:n.description,"empty-list":n.emptyList,"empty-state-message":n.emptyStateMessage,"show-list":i.isListShown,"on-beginning-of-list":n.onBeginningOfList,"on-end-of-list":n.onEndOfList,"list-rendered-outside":!0,"list-id":n.listId,"data-qa":`dt-combobox`},a.comboboxListeners),{input:(0,p.withCtx)(({inputProps:n})=>[(0,p.createElementVNode)(`div`,{id:i.externalAnchor,ref:`input`,onFocusin:t[0]||(t[0]=(...e)=>a.onFocusIn&&a.onFocusIn(...e)),onKeydown:[t[1]||(t[1]=(0,p.withKeys)(e=>a.openOnArrowKeyPress(e),[`up`])),t[2]||(t[2]=(0,p.withKeys)(e=>a.openOnArrowKeyPress(e),[`down`]))]},[(0,p.renderSlot)(e.$slots,`input`,{inputProps:n,onInput:a.handleDisplayList})],40,h)]),list:(0,p.withCtx)(({opened:r,listProps:a,clearHighlightIndex:l})=>[(0,p.createVNode)(c,{ref:`popover`,open:i.isListShown,"onUpdate:open":t[3]||(t[3]=e=>i.isListShown=e),"close-on-click":!1,"max-height":n.maxHeight,"max-width":n.maxWidth,offset:n.popoverOffset,sticky:n.popoverSticky,"content-mode":n.contentMode,placement:`bottom-start`,"initial-focus-element":`none`,padding:`none`,role:`listbox`,"external-anchor":i.externalAnchor,"content-width":n.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":n.appendTo,"dialog-class":n.dialogClass,transition:n.transition,onOpened:r},(0,p.createSlots)({content:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref:`listWrapper`,class:(0,p.normalizeClass)([`d-combobox-with-popover__list`,i.DROPDOWN_PADDING_CLASSES[n.padding],n.listClass]),onMouseleave:l,onFocusout:l},[n.loading?((0,p.openBlock)(),(0,p.createBlock)(o,(0,p.normalizeProps)((0,p.mergeProps)({key:0},a)),null,16)):n.emptyList&&n.emptyStateMessage?((0,p.openBlock)(),(0,p.createBlock)(s,(0,p.mergeProps)({key:1},a,{message:n.emptyStateMessage}),null,16,[`message`])):(0,p.renderSlot)(e.$slots,`list`,{key:2,listProps:a})],42,g)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:`headerContent`,fn:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref:`header`,class:(0,p.normalizeClass)(n.headerClass)},[(0,p.renderSlot)(e.$slots,`header`)],2)]),key:`0`}:void 0,i.hasSlotContent(e.$slots.footer)?{name:`footerContent`,fn:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref:`footer`,class:(0,p.normalizeClass)(n.footerClass)},[(0,p.renderSlot)(e.$slots,`footer`)],2)]),key:`1`}:void 0]),1032,[`open`,`max-height`,`max-width`,`offset`,`sticky`,`content-mode`,`external-anchor`,`content-width`,`append-to`,`dialog-class`,`transition`,`onOpened`])]),_:3},16,[`loading`,`label`,`show-label`,`size`,`description`,`empty-list`,`empty-state-message`,`show-list`,`on-beginning-of-list`,`on-end-of-list`,`list-id`])}var v=i.t(m,[[`render`,_]]);exports.default=v;
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(`../../mode_constants-DM0SVbFM.cjs`),o=require(`../combobox/combobox-loading-list.cjs`),s=require(`../combobox/combobox-empty-list.cjs`),c=require(`../../Combobox-CmASo310.cjs`),l=require(`../combobox/combobox-constants.cjs`),u=require(`../popover/popover-constants.cjs`),d=require(`../popover/popover.cjs`),f=require(`../dropdown/dropdown-constants.cjs`);let p=require(`vue`);var m={name:`DtComboboxWithPopover`,components:{DtCombobox:c.t,DtPopover:d.default,ComboboxLoadingList:o.default,ComboboxEmptyList:s.default},props:{contentMode:a.t,label:{type:String,required:!0},showLabel:{type:Boolean,default:!0},size:{type:[String,Number],default:null,validator:t=>t===null||Object.values(l.COMBOBOX_LABEL_SIZES).includes(t)||n.ordinalSizeValidator(e.COMPONENT_SIZES)(t)},description:{type:String,default:``},showList:{type:Boolean,default:null},listId:{type:String,default(){return r.m()}},listClass:{type:[String,Array,Object],default:``},headerClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},dialogClass:{type:[String,Array,Object],default:``},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:``},maxWidth:{type:String,default:``},padding:{type:String,default:`small`,validator:e=>Object.keys(f.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},contentWidth:{type:String,default:null,validator:e=>u.POPOVER_CONTENT_WIDTHS.includes(e)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:``},appendTo:{type:[t.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:`fade`}},emits:[`select`,`escape`,`highlight`,`opened`],data(){return{DROPDOWN_PADDING_CLASSES:f.DROPDOWN_PADDING_CLASSES,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:r.m(),hasSlotContent:r._}},computed:{comboboxListeners(){return{...this.$attrs,onSelect:this.onSelect,onEscape:this.onEscape,onHighlight:this.onHighlight}}},watch:{showList:{handler:function(e){e!==null&&(this.isListShown=e)},immediate:!0},isListShown(e){e?window.addEventListener(`mousedown`,this.onFocusOut):window.removeEventListener(`mousedown`,this.onFocusOut),this.onOpened(e)}},methods:{handleDisplayList(e){!this.hasSuggestionList&&e&&this.showComboboxList(),!this.hasSuggestionList&&!e&&this.closeComboboxList()},showComboboxList(){this.showList??(this.isListShown=!0)},closeComboboxList(){this.showList??(this.isListShown=!1)},onSelect(e){this.loading||(this.$emit(`select`,e),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit(`escape`),this.closeComboboxList()},onHighlight(e){this.loading||this.$emit(`highlight`,e)},onOpened(e){this.$emit(`opened`,e)},onFocusIn(e){this.hasSuggestionList&&e&&this.$refs.input?.querySelector(`input`)===e.target&&this.showComboboxList()},onFocusOut(e){let t=this.$refs.popover?.tip?.popper,n=this.$refs.input;e.composedPath()?.some(e=>[t,n].includes(e))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},h=[`id`],g=[`onMouseleave`,`onFocusout`];function _(e,t,n,r,i,a){let o=(0,p.resolveComponent)(`combobox-loading-list`),s=(0,p.resolveComponent)(`combobox-empty-list`),c=(0,p.resolveComponent)(`dt-popover`),l=(0,p.resolveComponent)(`dt-combobox`);return(0,p.openBlock)(),(0,p.createBlock)(l,(0,p.mergeProps)({ref:`combobox`,loading:n.loading,label:n.label,"show-label":n.showLabel,size:n.size,description:n.description,"empty-list":n.emptyList,"empty-state-message":n.emptyStateMessage,"show-list":i.isListShown,"on-beginning-of-list":n.onBeginningOfList,"on-end-of-list":n.onEndOfList,"list-rendered-outside":!0,"list-id":n.listId,"data-qa":`dt-combobox`},a.comboboxListeners),{input:(0,p.withCtx)(({inputProps:n})=>[(0,p.createElementVNode)(`div`,{id:i.externalAnchor,ref:`input`,onFocusin:t[0]||(t[0]=(...e)=>a.onFocusIn&&a.onFocusIn(...e)),onKeydown:[t[1]||(t[1]=(0,p.withKeys)(e=>a.openOnArrowKeyPress(e),[`up`])),t[2]||(t[2]=(0,p.withKeys)(e=>a.openOnArrowKeyPress(e),[`down`]))]},[(0,p.renderSlot)(e.$slots,`input`,{inputProps:n,onInput:a.handleDisplayList})],40,h)]),list:(0,p.withCtx)(({opened:r,listProps:a,clearHighlightIndex:l})=>[(0,p.createVNode)(c,{ref:`popover`,open:i.isListShown,"onUpdate:open":t[3]||(t[3]=e=>i.isListShown=e),"close-on-click":!1,"max-height":n.maxHeight,"max-width":n.maxWidth,offset:n.popoverOffset,sticky:n.popoverSticky,"content-mode":n.contentMode,placement:`bottom-start`,"initial-focus-element":`none`,padding:`none`,role:`listbox`,"external-anchor":i.externalAnchor,"content-width":n.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":n.appendTo,"dialog-class":n.dialogClass,transition:n.transition,onOpened:r},(0,p.createSlots)({content:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref:`listWrapper`,class:(0,p.normalizeClass)([`d-combobox-with-popover__list`,i.DROPDOWN_PADDING_CLASSES[n.padding],n.listClass]),onMouseleave:l,onFocusout:l},[n.loading?((0,p.openBlock)(),(0,p.createBlock)(o,(0,p.normalizeProps)((0,p.mergeProps)({key:0},a)),null,16)):n.emptyList&&n.emptyStateMessage?((0,p.openBlock)(),(0,p.createBlock)(s,(0,p.mergeProps)({key:1},a,{message:n.emptyStateMessage}),null,16,[`message`])):(0,p.renderSlot)(e.$slots,`list`,{key:2,listProps:a})],42,g)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:`headerContent`,fn:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref:`header`,class:(0,p.normalizeClass)(n.headerClass)},[(0,p.renderSlot)(e.$slots,`header`)],2)]),key:`0`}:void 0,i.hasSlotContent(e.$slots.footer)?{name:`footerContent`,fn:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref:`footer`,class:(0,p.normalizeClass)(n.footerClass)},[(0,p.renderSlot)(e.$slots,`footer`)],2)]),key:`1`}:void 0]),1032,[`open`,`max-height`,`max-width`,`offset`,`sticky`,`content-mode`,`external-anchor`,`content-width`,`append-to`,`dialog-class`,`transition`,`onOpened`])]),_:3},16,[`loading`,`label`,`show-label`,`size`,`description`,`empty-list`,`empty-state-message`,`show-list`,`on-beginning-of-list`,`on-end-of-list`,`list-id`])}var v=i.t(m,[[`render`,_]]);exports.default=v;
2
2
  //# sourceMappingURL=combobox-with-popover.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-with-popover.cjs","names":[],"sources":["../../../components/ComboboxWithPopover/ComboboxWithPopover.vue"],"sourcesContent":["<template>\n <dt-combobox\n ref=\"combobox\"\n :loading=\"loading\"\n :label=\"label\"\n :show-label=\"showLabel\"\n :size=\"size\"\n :description=\"description\"\n :empty-list=\"emptyList\"\n :empty-state-message=\"emptyStateMessage\"\n :show-list=\"isListShown\"\n :on-beginning-of-list=\"onBeginningOfList\"\n :on-end-of-list=\"onEndOfList\"\n :list-rendered-outside=\"true\"\n :list-id=\"listId\"\n data-qa=\"dt-combobox\"\n v-bind=\"comboboxListeners\"\n >\n <template\n #input=\"{ inputProps }\"\n >\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <div\n :id=\"externalAnchor\"\n ref=\"input\"\n @focusin=\"onFocusIn\"\n @keydown.up=\"openOnArrowKeyPress($event)\"\n @keydown.down=\"openOnArrowKeyPress($event)\"\n >\n <slot\n name=\"input\"\n :input-props=\"inputProps\"\n :on-input=\"handleDisplayList\"\n />\n </div>\n </template>\n <template #list=\"{ opened, listProps, clearHighlightIndex }\">\n <dt-popover\n ref=\"popover\"\n v-model:open=\"isListShown\"\n :close-on-click=\"false\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :offset=\"popoverOffset\"\n :sticky=\"popoverSticky\"\n :content-mode=\"contentMode\"\n placement=\"bottom-start\"\n initial-focus-element=\"none\"\n padding=\"none\"\n role=\"listbox\"\n :external-anchor=\"externalAnchor\"\n :content-width=\"contentWidth\"\n :content-appear=\"true\"\n :content-tabindex=\"null\"\n :modal=\"false\"\n :auto-focus=\"false\"\n :append-to=\"appendTo\"\n :dialog-class=\"dialogClass\"\n :transition=\"transition\"\n @opened=\"opened\"\n >\n <template\n v-if=\"hasSlotContent($slots.header)\"\n #headerContent\n >\n <div\n ref=\"header\"\n :class=\"headerClass\"\n >\n <slot name=\"header\" />\n </div>\n </template>\n\n <template #content>\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <div\n ref=\"listWrapper\"\n :class=\"[\n 'd-combobox-with-popover__list',\n DROPDOWN_PADDING_CLASSES[padding],\n listClass,\n ]\"\n @mouseleave=\"clearHighlightIndex\"\n @focusout=\"clearHighlightIndex\"\n >\n <combobox-loading-list\n v-if=\"loading\"\n v-bind=\"listProps\"\n />\n <combobox-empty-list\n v-else-if=\"emptyList && emptyStateMessage\"\n v-bind=\"listProps\"\n :message=\"emptyStateMessage\"\n />\n <slot\n v-else\n name=\"list\"\n :list-props=\"listProps\"\n />\n </div>\n </template>\n\n <template\n v-if=\"hasSlotContent($slots.footer)\"\n #footerContent\n >\n <div\n ref=\"footer\"\n :class=\"footerClass\"\n >\n <slot name=\"footer\" />\n </div>\n </template>\n </dt-popover>\n </template>\n </dt-combobox>\n</template>\n\n<script>\nimport ComboboxLoadingList from '@/components/Combobox/ComboboxLoadingList.vue';\nimport ComboboxEmptyList from '@/components/Combobox/ComboboxEmptyList.vue';\nimport { DtCombobox, COMBOBOX_LABEL_SIZES } from '@/components/Combobox';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES, POPOVER_CONTENT_WIDTHS } from '@/components/Popover';\nimport { getUniqueString, hasSlotContent } from '@/common/utils';\nimport { COMPONENT_SIZES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { ordinalSizeValidator } from '@/common/validators';\nimport { DROPDOWN_PADDING_CLASSES } from '@/components/Dropdown';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\nexport default {\n name: 'DtComboboxWithPopover',\n\n components: {\n DtCombobox,\n DtPopover,\n ComboboxLoadingList,\n ComboboxEmptyList,\n },\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\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 * Size of the input.\n * @values 100, 200, 300, 400, 500\n */\n size: {\n type: [String, Number],\n default: null,\n validator: (t) => t === null\n || Object.values(COMBOBOX_LABEL_SIZES).includes(t)\n || ordinalSizeValidator(COMPONENT_SIZES)(t),\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\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 * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the popover dialog element.\n */\n dialogClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Vertical padding size around the list element.\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n */\n contentWidth: {\n type: String,\n default: null,\n validator: contentWidth => POPOVER_CONTENT_WIDTHS.includes(contentWidth),\n },\n\n /**\n * If the list should be shown by pressing up or down arrow key on the input element.\n * This can be set when not passing showList prop.\n */\n openWithArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displaces the popover content box from its anchor element\n * by the specified number of pixels.\n */\n popoverOffset: {\n type: Array,\n default: () => [0, 4],\n },\n\n /**\n * If the popover sticks to the input.\n */\n popoverSticky: {\n type: [Boolean, String],\n default: false,\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 * Determines when to show the skeletons and also controls aria-busy attribute.\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.\n */\n emptyList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Message to show when the list is empty\n */\n emptyStateMessage: {\n type: String,\n default: '',\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 emits: [\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when 'escape' key is pressed\n *\n * @event escape\n */\n 'escape',\n\n /**\n * Event fired when an item is highlighted\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Emitted when items are shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n ],\n\n data () {\n return {\n DROPDOWN_PADDING_CLASSES,\n isListShown: false,\n isInputFocused: false,\n isListFocused: false,\n externalAnchor: getUniqueString(),\n hasSlotContent,\n };\n },\n\n computed: {\n comboboxListeners () {\n return {\n ...this.$attrs,\n\n onSelect: this.onSelect,\n\n onEscape: this.onEscape,\n\n onHighlight: this.onHighlight,\n };\n },\n },\n\n watch: {\n showList: {\n handler: function (show) {\n if (show !== null) {\n this.isListShown = show;\n }\n },\n\n immediate: true,\n },\n\n isListShown (val) {\n if (val) {\n window.addEventListener('mousedown', this.onFocusOut);\n } else {\n window.removeEventListener('mousedown', this.onFocusOut);\n }\n this.onOpened(val);\n },\n },\n\n methods: {\n handleDisplayList (value) {\n if (!this.hasSuggestionList && value) { this.showComboboxList(); }\n if (!this.hasSuggestionList && !value) { this.closeComboboxList(); }\n },\n\n showComboboxList () {\n if (this.showList != null) { return; }\n this.isListShown = true;\n },\n\n closeComboboxList () {\n if (this.showList != null) { return; }\n this.isListShown = false;\n },\n\n onSelect (highlightIndex) {\n if (this.loading) return;\n\n this.$emit('select', highlightIndex);\n if (!this.hasSuggestionList) {\n // we don't display the list before the user has typed anything\n this.closeComboboxList();\n }\n },\n\n onEscape () {\n this.$emit('escape');\n this.closeComboboxList();\n },\n\n onHighlight (highlightIndex) {\n if (this.loading) return;\n\n this.$emit('highlight', highlightIndex);\n },\n\n onOpened (opened) {\n this.$emit('opened', opened);\n },\n\n onFocusIn (e) {\n if (this.hasSuggestionList && e && this.$refs.input?.querySelector('input') === e.target) {\n // only trigger if we show suggestion list when focused, and\n // it's the input specifically that was focused\n this.showComboboxList();\n }\n },\n\n onFocusOut (e) {\n // Check if the focus change was to another target within the combobox component\n const popoverEl = this.$refs.popover?.tip?.popper;\n const comboboxEl = this.$refs.input;\n\n if (e.composedPath()?.some(el => [popoverEl, comboboxEl].includes(el))) return;\n\n // If outside the combobox then close\n this.closeComboboxList();\n },\n\n openOnArrowKeyPress () {\n if (this.showList !== null || this.isListShown || !this.openWithArrowKe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jC,qCAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,iBAkClB,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,qCAOK,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-with-popover.cjs","names":[],"sources":["../../../components/ComboboxWithPopover/ComboboxWithPopover.vue"],"sourcesContent":["<template>\n <dt-combobox\n ref=\"combobox\"\n :loading=\"loading\"\n :label=\"label\"\n :show-label=\"showLabel\"\n :size=\"size\"\n :description=\"description\"\n :empty-list=\"emptyList\"\n :empty-state-message=\"emptyStateMessage\"\n :show-list=\"isListShown\"\n :on-beginning-of-list=\"onBeginningOfList\"\n :on-end-of-list=\"onEndOfList\"\n :list-rendered-outside=\"true\"\n :list-id=\"listId\"\n data-qa=\"dt-combobox\"\n v-bind=\"comboboxListeners\"\n >\n <template\n #input=\"{ inputProps }\"\n >\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <div\n :id=\"externalAnchor\"\n ref=\"input\"\n @focusin=\"onFocusIn\"\n @keydown.up=\"openOnArrowKeyPress($event)\"\n @keydown.down=\"openOnArrowKeyPress($event)\"\n >\n <slot\n name=\"input\"\n :input-props=\"inputProps\"\n :on-input=\"handleDisplayList\"\n />\n </div>\n </template>\n <template #list=\"{ opened, listProps, clearHighlightIndex }\">\n <dt-popover\n ref=\"popover\"\n v-model:open=\"isListShown\"\n :close-on-click=\"false\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :offset=\"popoverOffset\"\n :sticky=\"popoverSticky\"\n :content-mode=\"contentMode\"\n placement=\"bottom-start\"\n initial-focus-element=\"none\"\n padding=\"none\"\n role=\"listbox\"\n :external-anchor=\"externalAnchor\"\n :content-width=\"contentWidth\"\n :content-appear=\"true\"\n :content-tabindex=\"null\"\n :modal=\"false\"\n :auto-focus=\"false\"\n :append-to=\"appendTo\"\n :dialog-class=\"dialogClass\"\n :transition=\"transition\"\n @opened=\"opened\"\n >\n <template\n v-if=\"hasSlotContent($slots.header)\"\n #headerContent\n >\n <div\n ref=\"header\"\n :class=\"headerClass\"\n >\n <slot name=\"header\" />\n </div>\n </template>\n\n <template #content>\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <div\n ref=\"listWrapper\"\n :class=\"[\n 'd-combobox-with-popover__list',\n DROPDOWN_PADDING_CLASSES[padding],\n listClass,\n ]\"\n @mouseleave=\"clearHighlightIndex\"\n @focusout=\"clearHighlightIndex\"\n >\n <combobox-loading-list\n v-if=\"loading\"\n v-bind=\"listProps\"\n />\n <combobox-empty-list\n v-else-if=\"emptyList && emptyStateMessage\"\n v-bind=\"listProps\"\n :message=\"emptyStateMessage\"\n />\n <slot\n v-else\n name=\"list\"\n :list-props=\"listProps\"\n />\n </div>\n </template>\n\n <template\n v-if=\"hasSlotContent($slots.footer)\"\n #footerContent\n >\n <div\n ref=\"footer\"\n :class=\"footerClass\"\n >\n <slot name=\"footer\" />\n </div>\n </template>\n </dt-popover>\n </template>\n </dt-combobox>\n</template>\n\n<script>\nimport ComboboxLoadingList from '@/components/Combobox/ComboboxLoadingList.vue';\nimport ComboboxEmptyList from '@/components/Combobox/ComboboxEmptyList.vue';\nimport { DtCombobox, COMBOBOX_LABEL_SIZES } from '@/components/Combobox';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES, POPOVER_CONTENT_WIDTHS } from '@/components/Popover';\nimport { getUniqueString, hasSlotContent } from '@/common/utils';\nimport { COMPONENT_SIZES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { ordinalSizeValidator } from '@/common/validators';\nimport { DROPDOWN_PADDING_CLASSES } from '@/components/Dropdown';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\nexport default {\n name: 'DtComboboxWithPopover',\n\n components: {\n DtCombobox,\n DtPopover,\n ComboboxLoadingList,\n ComboboxEmptyList,\n },\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\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 * Size of the input.\n * @values 100, 200, 300, 400, 500\n */\n size: {\n type: [String, Number],\n default: null,\n validator: (t) => t === null\n || Object.values(COMBOBOX_LABEL_SIZES).includes(t)\n || ordinalSizeValidator(COMPONENT_SIZES)(t),\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\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 * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the popover dialog element.\n */\n dialogClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Vertical padding size around the list element.\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n */\n contentWidth: {\n type: String,\n default: null,\n validator: contentWidth => POPOVER_CONTENT_WIDTHS.includes(contentWidth),\n },\n\n /**\n * If the list should be shown by pressing up or down arrow key on the input element.\n * This can be set when not passing showList prop.\n */\n openWithArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displaces the popover content box from its anchor element\n * by the specified number of pixels.\n */\n popoverOffset: {\n type: Array,\n default: () => [0, 4],\n },\n\n /**\n * If the popover sticks to the input.\n */\n popoverSticky: {\n type: [Boolean, String],\n default: false,\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 * Determines when to show the skeletons and also controls aria-busy attribute.\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.\n */\n emptyList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Message to show when the list is empty\n */\n emptyStateMessage: {\n type: String,\n default: '',\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 emits: [\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when 'escape' key is pressed\n *\n * @event escape\n */\n 'escape',\n\n /**\n * Event fired when an item is highlighted\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Emitted when items are shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n ],\n\n data () {\n return {\n DROPDOWN_PADDING_CLASSES,\n isListShown: false,\n isInputFocused: false,\n isListFocused: false,\n externalAnchor: getUniqueString(),\n hasSlotContent,\n };\n },\n\n computed: {\n comboboxListeners () {\n return {\n ...this.$attrs,\n\n onSelect: this.onSelect,\n\n onEscape: this.onEscape,\n\n onHighlight: this.onHighlight,\n };\n },\n },\n\n watch: {\n showList: {\n handler: function (show) {\n if (show !== null) {\n this.isListShown = show;\n }\n },\n\n immediate: true,\n },\n\n isListShown (val) {\n if (val) {\n window.addEventListener('mousedown', this.onFocusOut);\n } else {\n window.removeEventListener('mousedown', this.onFocusOut);\n }\n this.onOpened(val);\n },\n },\n\n methods: {\n handleDisplayList (value) {\n if (!this.hasSuggestionList && value) { this.showComboboxList(); }\n if (!this.hasSuggestionList && !value) { this.closeComboboxList(); }\n },\n\n showComboboxList () {\n if (this.showList != null) { return; }\n this.isListShown = true;\n },\n\n closeComboboxList () {\n if (this.showList != null) { return; }\n this.isListShown = false;\n },\n\n onSelect (highlightIndex) {\n if (this.loading) return;\n\n this.$emit('select', highlightIndex);\n if (!this.hasSuggestionList) {\n // we don't display the list before the user has typed anything\n this.closeComboboxList();\n }\n },\n\n onEscape () {\n this.$emit('escape');\n this.closeComboboxList();\n },\n\n onHighlight (highlightIndex) {\n if (this.loading) return;\n\n this.$emit('highlight', highlightIndex);\n },\n\n onOpened (opened) {\n this.$emit('opened', opened);\n },\n\n onFocusIn (e) {\n if (this.hasSuggestionList && e && this.$refs.input?.querySelector('input') === e.target) {\n // only trigger if we show suggestion list when focused, and\n // it's the input specifically that was focused\n this.showComboboxList();\n }\n },\n\n onFocusOut (e) {\n // Check if the focus change was to another target within the combobox component\n const popoverEl = this.$refs.popover?.tip?.popper;\n const comboboxEl = this.$refs.input;\n\n if (e.composedPath()?.some(el => [popoverEl, comboboxEl].includes(el))) return;\n\n // If outside the combobox then close\n this.closeComboboxList();\n },\n\n openOnArrowKeyPress () {\n if (this.showList !== null || this.isListShown || !this.openWithArrowKeys) { return; }\n\n this.showComboboxList();\n },\n },\n};\n</script>\n"],"mappings":"uvBAiIA,IAAK,EAAU,CACb,KAAM,wBAEN,WAAY,CACV,WAAA,EAAA,EACA,UAAA,EAAA,QACA,oBAAA,EAAA,QACA,kBAAA,EAAA,QACD,CAED,MAAO,CAKL,YAAa,EAAA,EAKb,MAAO,CACL,KAAM,OACN,SAAU,GACX,CAMD,UAAW,CACT,KAAM,QACN,QAAS,GACV,CAMD,KAAM,CACJ,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,KACT,UAAY,GAAM,IAAM,MACnB,OAAO,OAAO,EAAA,qBAAqB,CAAC,SAAS,EAAC,EAC9C,EAAA,qBAAqB,EAAA,gBAAgB,CAAC,EAAE,CAC9C,CAKD,YAAa,CACX,KAAM,OACN,QAAS,GACV,CAQD,SAAU,CACR,KAAM,QACN,QAAS,KACV,CAMD,OAAQ,CACN,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,GAAiB,EACtC,CAKD,UAAW,CACT,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,kBAAmB,CACjB,KAAM,SACN,QAAS,KACV,CAKD,YAAa,CACX,KAAM,SACN,QAAS,KACV,CAMD,UAAW,CACT,KAA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A,EAAA,YAAA,EAAA,EAAA,EAAA,aAGxB,GAAA,EAAA,EAAA,YAAA,CAAA,IAAA,EAAA,CAFQ,EAAS,CAChB,QAAS,EAAA,kBAAiB,CAAA,CAAA,KAAA,GAAA,CAAA,UAAA,CAAA,GAAA,EAAA,EAAA,YAM3B,EAAA,OAAA,OAAA,OADa,6BAnCX,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,qCAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,iBAkClB,EAAA,eAAe,EAAA,OAAO,OAAM,CAAA,MACjC,qCAOK,EAAA,EAAA,EAAA,oBAAA,MAAA,CAJJ,IAAI,SACH,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,oBAEG,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import { COMPONENT_SIZES as e } from "../../common/constants/sizes.js";
2
2
  import { HTML_ELEMENT_TYPE as t } from "../../common/constants/index.js";
3
3
  import { ordinalSizeValidator as n } from "../../common/validators/index.js";
4
- import { getUniqueString as r, hasSlotContent as i } from "../../common/utils/index.js";
5
- import { t as a } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
6
- import { t as o } from "../../mode_constants-tb7TL85q.js";
4
+ import { _ as r, m as i } from "../../utils-CXaaZqVu.js";
5
+ import { t as a } from "../../_plugin-vue_export-helper-B52Kst-M.js";
6
+ import { t as o } from "../../mode_constants-CC73P7d-.js";
7
7
  import s from "../combobox/combobox-loading-list.js";
8
8
  import c from "../combobox/combobox-empty-list.js";
9
- import { t as l } from "../../Combobox-DP8tbe6x.js";
9
+ import { t as l } from "../../Combobox-8vN7Njqe.js";
10
10
  import { COMBOBOX_LABEL_SIZES as u } from "../combobox/combobox-constants.js";
11
11
  import { POPOVER_APPEND_TO_VALUES as d, POPOVER_CONTENT_WIDTHS as f } from "../popover/popover-constants.js";
12
12
  import p from "../popover/popover.js";
@@ -47,7 +47,7 @@ var D = {
47
47
  listId: {
48
48
  type: String,
49
49
  default() {
50
- return r();
50
+ return i();
51
51
  }
52
52
  },
53
53
  listClass: {
@@ -158,8 +158,8 @@ var D = {
158
158
  isListShown: !1,
159
159
  isInputFocused: !1,
160
160
  isListFocused: !1,
161
- externalAnchor: r(),
162
- hasSlotContent: i
161
+ externalAnchor: i(),
162
+ hasSlotContent: r
163
163
  };
164
164
  },
165
165
  computed: { comboboxListeners() {
@@ -0,0 +1 @@
1
+ export * from '../../components/ComboboxWithPopover/index.js';
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Datepicker-Df6uR0r_.cjs`);exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Datepicker-C-aExL3M.cjs`);exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Datepicker-CNFVUyyK.js";
1
+ import { t as e } from "../../Datepicker-BeNUNF5U.js";
2
2
  export { e as default };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Datepicker-Df6uR0r_.cjs`),t=require(`./format-utils.cjs`);exports.DtDatepicker=e.t,exports.formatLong=t.formatLong,exports.formatMedium=t.formatMedium,exports.formatNoYear=t.formatNoYear,exports.formatNumerical=t.formatNumerical,exports.formatShort=t.formatShort;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Datepicker-C-aExL3M.cjs`),t=require(`./format-utils.cjs`);exports.DtDatepicker=e.t,exports.formatLong=t.formatLong,exports.formatMedium=t.formatMedium,exports.formatNoYear=t.formatNoYear,exports.formatNumerical=t.formatNumerical,exports.formatShort=t.formatShort;
@@ -0,0 +1 @@
1
+ export * from '../../components/Datepicker/index.js';
@@ -1,3 +1,3 @@
1
- import { t as e } from "../../Datepicker-CNFVUyyK.js";
1
+ import { t as e } from "../../Datepicker-BeNUNF5U.js";
2
2
  import { formatLong as t, formatMedium as n, formatNoYear as r, formatNumerical as i, formatShort as a } from "./format-utils.js";
3
3
  export { e as DtDatepicker, t as formatLong, n as formatMedium, r as formatNoYear, i as formatNumerical, a as formatShort };
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`),require(`./datepicker-constants.cjs`);let e=require(`date-fns`);var t=e=>e?new Date(e):new Date,n=(n,r,i,a=null,o=null)=>{let s=t(JSON.parse(JSON.stringify(n))),c=a?(0,e.startOfDay)(a):null,l=o?(0,e.startOfDay)(o):null,u=[];for(let t=0;t<7;t++){let n=(0,e.addDays)(s,t),a=(0,e.getMonth)(n)!==r,o=a||c&&(0,e.startOfDay)(n)<c||l&&(0,e.startOfDay)(n)>l;u.push({text:n.getDate(),value:n,currentMonth:!a,disabled:!!o,isFirstDayOfMonth:n.getDate()===1&&!a,selected:i?n.getDate()===i&&!o:!1})}return u},r=(t,n)=>!t||!n?!1:(0,e.isEqual)(t,n),i=(i,a,o,s=null,c=null,l=0)=>{let u=[],d=t(new Date(a,i)),f=t(new Date(a,i+1,0)),p=(0,e.startOfWeek)(d,{weekStartsOn:l}),m=t=>{let a=n(t,i,o,s,c);u.push({days:a}),u[u.length-1].days.some(e=>r(e.value,f))||m((0,e.addDays)(t,7))};return m(p),u},a=(e,t)=>{let n=[1,2,3,4,5,6,7].map(t=>new Intl.DateTimeFormat(e,{weekday:`short`,timeZone:`UTC`}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)),r=n.slice(0,t),i=n.slice(t+1,n.length);return[n[t]].concat(...i,...r)},o=(e,t,n)=>new Intl.DateTimeFormat(n,{month:t}).format(new Date(2e3,e,1)),s=(e,t,n)=>new Intl.DateTimeFormat(n,{dateStyle:t}).format(new Date(e)),c=t=>{let n=new Date(t),r=(0,e.getDay)(n),i=(0,e.startOfMonth)((0,e.addMonths)(n,1));return(0,e.getDate)((0,e.addDays)(i,(r-(0,e.getDay)(i)+7)%7))},l=t=>{let n=new Date(t),r=(0,e.getDay)(n),i=(0,e.endOfMonth)((0,e.subMonths)(n,1));for(;(0,e.getDay)(i)!==r;)i=(0,e.addDays)(i,-1);return(0,e.getDate)(i)};exports.calculateNextFocusDate=c,exports.calculatePrevFocusDate=l,exports.formatDate=s,exports.formatMonth=o,exports.getCalendarDays=i,exports.getWeekDayNames=a;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-BK-Lzi7j.cjs`),require(`./datepicker-constants.cjs`);let e=require(`date-fns`);var t=e=>e?new Date(e):new Date,n=(n,r,i,a=null,o=null)=>{let s=t(JSON.parse(JSON.stringify(n))),c=a?(0,e.startOfDay)(a):null,l=o?(0,e.startOfDay)(o):null,u=[];for(let t=0;t<7;t++){let n=(0,e.addDays)(s,t),a=(0,e.getMonth)(n)!==r,o=a||c&&(0,e.startOfDay)(n)<c||l&&(0,e.startOfDay)(n)>l;u.push({text:n.getDate(),value:n,currentMonth:!a,disabled:!!o,isFirstDayOfMonth:n.getDate()===1&&!a,selected:i?n.getDate()===i&&!o:!1})}return u},r=(t,n)=>!t||!n?!1:(0,e.isEqual)(t,n),i=(i,a,o,s=null,c=null,l=0)=>{let u=[],d=t(new Date(a,i)),f=t(new Date(a,i+1,0)),p=(0,e.startOfWeek)(d,{weekStartsOn:l}),m=t=>{let a=n(t,i,o,s,c);u.push({days:a}),u[u.length-1].days.some(e=>r(e.value,f))||m((0,e.addDays)(t,7))};return m(p),u},a=(e,t)=>{let n=[1,2,3,4,5,6,7].map(t=>new Intl.DateTimeFormat(e,{weekday:`short`,timeZone:`UTC`}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)),r=n.slice(0,t),i=n.slice(t+1,n.length);return[n[t]].concat(...i,...r)},o=(e,t,n)=>new Intl.DateTimeFormat(n,{month:t}).format(new Date(2e3,e,1)),s=(e,t,n)=>new Intl.DateTimeFormat(n,{dateStyle:t}).format(new Date(e)),c=t=>{let n=new Date(t),r=(0,e.getDay)(n),i=(0,e.startOfMonth)((0,e.addMonths)(n,1));return(0,e.getDate)((0,e.addDays)(i,(r-(0,e.getDay)(i)+7)%7))},l=t=>{let n=new Date(t),r=(0,e.getDay)(n),i=(0,e.endOfMonth)((0,e.subMonths)(n,1));for(;(0,e.getDay)(i)!==r;)i=(0,e.addDays)(i,-1);return(0,e.getDate)(i)};exports.calculateNextFocusDate=c,exports.calculatePrevFocusDate=l,exports.formatDate=s,exports.formatMonth=o,exports.getCalendarDays=i,exports.getWeekDayNames=a;
2
2
  //# sourceMappingURL=utils.cjs.map
@@ -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(`../stack/stack-constants.cjs`),n=require(`./description-list-constants.cjs`),r=require(`./description-list-validators.cjs`);let i=require(`vue`);var a={name:`DtDescriptionList`,props:{direction:{type:String,default:`row`,validator:e=>n.DT_DESCRIPTION_LIST_DIRECTION.includes(e)},items:{type:Array,default:()=>[],validator:e=>r.itemsValidator(e),required:!0},gap:{type:String,default:`100`,validator:e=>t.DT_STACK_GAP.includes(e)},termClass:{type:[String,Array,Object],default:``},descriptionClass:{type:[String,Array,Object],default:``}},computed:{dtClass(){return[`d-description-list__term`,this.termClass]},ddClass(){return[`d-description-list__description`,this.descriptionClass]},getDirectionClass(){return`d-description-list--${this.direction}`},getGapClass(){return`d-description-list--gap-${this.gap}`}}};function o(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)(`dl`,{class:(0,i.normalizeClass)([`d-description-list`,o.getDirectionClass,o.getGapClass]),"data-qa":`dt-description-list`},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.items,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:`${t}-${e.term}`},[(0,i.createElementVNode)(`dt`,{class:(0,i.normalizeClass)(o.dtClass),"data-qa":`dt-description-list-term`},(0,i.toDisplayString)(e.term),3),(0,i.createElementVNode)(`dd`,{class:(0,i.normalizeClass)(o.ddClass),"data-qa":`dt-description-list-description`},(0,i.toDisplayString)(e.description),3)],64))),128))],2)}var s=e.t(a,[[`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(`../stack/stack-constants.cjs`),n=require(`./description-list-constants.cjs`),r=require(`./description-list-validators.cjs`);let i=require(`vue`);var a={name:`DtDescriptionList`,props:{direction:{type:String,default:`row`,validator:e=>n.DT_DESCRIPTION_LIST_DIRECTION.includes(e)},items:{type:Array,default:()=>[],validator:e=>r.itemsValidator(e),required:!0},gap:{type:String,default:`100`,validator:e=>t.DT_STACK_GAP.includes(e)},termClass:{type:[String,Array,Object],default:``},descriptionClass:{type:[String,Array,Object],default:``}},computed:{dtClass(){return[`d-description-list__term`,this.termClass]},ddClass(){return[`d-description-list__description`,this.descriptionClass]},getDirectionClass(){return`d-description-list--${this.direction}`},getGapClass(){return`d-description-list--gap-${this.gap}`}}};function o(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)(`dl`,{class:(0,i.normalizeClass)([`d-description-list`,o.getDirectionClass,o.getGapClass]),"data-qa":`dt-description-list`},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.items,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:`${t}-${e.term}`},[(0,i.createElementVNode)(`dt`,{class:(0,i.normalizeClass)(o.dtClass),"data-qa":`dt-description-list-term`},(0,i.toDisplayString)(e.term),3),(0,i.createElementVNode)(`dd`,{class:(0,i.normalizeClass)(o.ddClass),"data-qa":`dt-description-list-description`},(0,i.toDisplayString)(e.description),3)],64))),128))],2)}var s=e.t(a,[[`render`,o]]);exports.default=s;
2
2
  //# sourceMappingURL=description-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 { DT_STACK_GAP as t } from "../stack/stack-constants.js";
3
3
  import { DT_DESCRIPTION_LIST_DIRECTION as n } from "./description-list-constants.js";
4
4
  import { itemsValidator as r } from "./description-list-validators.js";
@@ -0,0 +1 @@
1
+ export * from '../../components/DescriptionList/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(`../../Text-DNVNZree.cjs`),n=require(`../stack/stack.cjs`);let r=require(`vue`);var i={name:`DtDropdownList`,components:{DtStack:n.default,DtText:t.t},props:{heading:{type:String,default:``},listClass:{type:[String,Array,Object],default:``}}};function a(e,t,n,i,a,o){let s=(0,r.resolveComponent)(`dt-text`),c=(0,r.resolveComponent)(`dt-stack`);return(0,r.openBlock)(),(0,r.createElementBlock)(`li`,null,[n.heading?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,direction:`row`,align:`center`,class:`dt-dropdown-list--header d-py-50 d-px-150`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(s,{kind:`label`,size:100,strength:`bold`,tone:`muted`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(n.heading),1)]),_:1})]),_:1})):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`ul`,{class:(0,r.normalizeClass)([`d-ps-relative`,`d-stack2`,`d-px-0`,n.listClass]),"data-qa":`dt-dropdown-list-wrapper`},[(0,r.renderSlot)(e.$slots,`default`)],2)])}var o=e.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(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),t=require(`../../Text-BosPFEHO.cjs`),n=require(`../stack/stack.cjs`);let r=require(`vue`);var i={name:`DtDropdownList`,components:{DtStack:n.default,DtText:t.t},props:{heading:{type:String,default:``},listClass:{type:[String,Array,Object],default:``}}};function a(e,t,n,i,a,o){let s=(0,r.resolveComponent)(`dt-text`),c=(0,r.resolveComponent)(`dt-stack`);return(0,r.openBlock)(),(0,r.createElementBlock)(`li`,null,[n.heading?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,direction:`row`,align:`center`,class:`dt-dropdown-list--header d-py-50 d-px-150`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(s,{kind:`label`,size:100,strength:`bold`,tone:`muted`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(n.heading),1)]),_:1})]),_:1})):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`ul`,{class:(0,r.normalizeClass)([`d-ps-relative`,`d-stack2`,`d-px-0`,n.listClass]),"data-qa":`dt-dropdown-list-wrapper`},[(0,r.renderSlot)(e.$slots,`default`)],2)])}var o=e.t(i,[[`render`,a]]);exports.default=o;
2
2
  //# sourceMappingURL=dropdown-list.cjs.map
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
2
- import { t } from "../../Text-5MobHF6z.js";
1
+ import { t as e } from "../../_plugin-vue_export-helper-B52Kst-M.js";
2
+ import { t } from "../../Text-B6HaId2l.js";
3
3
  import n from "../stack/stack.js";
4
4
  import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, normalizeClass as l, openBlock as u, renderSlot as d, resolveComponent as f, toDisplayString as p, withCtx as m } from "vue";
5
5
  //#region components/Dropdown/DropdownList.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`);let t=require(`vue`);var n={name:`DtDropdownSeparator`},r={"aria-hidden":`true`,class:`d-list-item-separator`};function i(e,n,i,a,o,s){return(0,t.openBlock)(),(0,t.createElementBlock)(`li`,r)}var a=e.t(n,[[`render`,i]]);exports.default=a;
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:`DtDropdownSeparator`},r={"aria-hidden":`true`,class:`d-list-item-separator`};function i(e,n,i,a,o,s){return(0,t.openBlock)(),(0,t.createElementBlock)(`li`,r)}var a=e.t(n,[[`render`,i]]);exports.default=a;
2
2
  //# sourceMappingURL=dropdown-separator.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 { createElementBlock as t, openBlock as n } from "vue";
3
3
  //#region components/Dropdown/DropdownSeparator.vue
4
4
  var r = { name: "DtDropdownSeparator" }, i = {
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../common/utils/index.cjs`),n=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),r=require(`../../common/mixins/keyboard-list-navigation.cjs`),i=require(`../../mode_constants-CzYJW9ua.cjs`),a=require(`../list-item/list-item-constants.cjs`),o=require(`../popover/popover-constants.cjs`),s=require(`../popover/popover.cjs`),c=require(`./dropdown-constants.cjs`);let l=require(`vue`);var u=e=>!!e?.classList.contains(`d-list-item--disabled`),d={name:`DtDropdown`,components:{DtPopover:s.default},mixins:[r.default({indexKey:`highlightIndex`,idKey:`highlightId`,listElementKey:`getListElement`,listItemRole:[`menuitem`,`menuitemradio`],afterHighlightMethod:`afterHighlight`,beginningOfListMethod:`beginningOfListMethod`,endOfListMethod:`endOfListMethod`,activeItemKey:`activeItemEl`,focusOnKeyboardNavigation:!0})],inheritAttrs:!1,props:{contentMode:i.t,open:{type:[Boolean,null],default:null},visibilityChangeCallback:{type:Function,default:null},forwardAnchorArrowKeys:{type:Boolean,default:!1},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:`small`,validator:e=>Object.keys(c.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:``},maxWidth:{type:String,default:``},listId:{type:String,default(){return t.getUniqueString()}},navigationType:{type:String,default:a.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:e=>Object.values(a.LIST_ITEM_NAVIGATION_TYPES).includes(e)},fallbackPlacements:{type:Array,default:()=>[`auto`]},placement:{type:String,default:`bottom`},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},appendTo:{type:[e.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>o.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:`fade`}},emits:[`keydown`,`highlight`,`update:open`,`opened`],data(){return{LIST_ITEM_NAVIGATION_TYPES:a.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:c.DROPDOWN_PADDING_CLASSES,EVENT_KEYNAMES:e.EVENT_KEYNAMES,openedWithKeyboard:!1,pendingArrowOpening:null,isOpen:null,isLogicallyOpen:!1}},computed:{popoverAttrs(){let{dialogClass:e,"dialog-class":t,...n}=this.$attrs;return{...n,dialogClass:[e,t,{"d-dropdown__menu--arrow-keys":this.isArrowKeyNav&&(!(`role`in n)||n.role===`menu`)}]}},dropdownListeners(){return{"update:open":e=>{this.$emit(`update:open`,e)},opened:e=>{this.updateInitialHighlightIndex(e)},keydown:t=>{let n=t.code,r=[e.EVENT_KEYNAMES.up,e.EVENT_KEYNAMES.arrowup,e.EVENT_KEYNAMES.down,e.EVENT_KEYNAMES.arrowdown].includes(n);if(this.forwardAnchorArrowKeys&&this.open!==null&&!this.isLogicallyOpen&&r&&this.$refs.popover?.$refs.anchor?.contains(t.target)){let e=Symbol(`arrow-opening`);this.pendingArrowOpening=e,this.openedWithKeyboard=!0,this.$emit(`keydown`,t),this.$nextTick(()=>{this.pendingArrowOpening===e&&!this.isLogicallyOpen&&(this.openedWithKeyboard=!1)});return}switch(n){case e.EVENT_KEYNAMES.up:case e.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.down:case e.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.space:case e.EVENT_KEYNAMES.spacebar:this.onSpaceKey(t);break;case e.EVENT_KEYNAMES.enter:this.onEnterKey();break;case e.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit(`keydown`,t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.highlightId&&this._getListItemNodes()?.find(e=>e.id===this.highlightId)||null},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return[`d-dropdown-list`,c.DROPDOWN_PADDING_CLASSES[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onVisibilityChange(e){this.isLogicallyOpen=e,this.visibilityChangeCallback?.(e)},onMouseHighlight(e){let t=e.target.closest(`li`);t?.role&&t.id&&this.highlightId!==t.id&&(this.setHighlightId(t.id),this._getListItemNodes()?.includes(t)&&this.focusHoveredRow(t))},focusHoveredRow(e){u(e)&&this.focusMenuContent()||e.focus()},focusMenuContent(){let e=this.$refs.popover?.popoverContentEl;return e?.focus(),!!e&&e.getRootNode().activeElement===e},getListElement(){return this.$refs.listWrapper},getMenuCloseButton(){let e=this.$refs.popover;return e?.role===`menu`?e.getCloseButtonElement():null},isMenuCloseFocused(){let e=this.getMenuCloseButton();return e&&e.getRootNode().activeElement===e},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.highlightIndex!==this._itemsLength()-1&&this.$emit(`highlight`,this.highlightIndex)},updateInitialHighlightIndex(e){this.isOpen=e,e?(this.openedWithKeyboard&&this.isArrowKeyNav&&(this.setHighlightIndex(0),!Object.entries(this.$attrs).some(([e,t])=>e.replace(/-/g,``).toLowerCase()===`initialfocuselement`&&t!==void 0)&&u(this.activeItemEl)&&this.activeItemEl.focus()),this.$emit(`opened`,!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit(`opened`,!1))},onSpaceKey(e){this.open||(this.openedWithKeyboard=!0),u(this.activeItemEl)&&e.target===this.$refs.popover?.popoverContentEl&&e.preventDefault()},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.isMenuCloseFocused()?this.onEndKey():this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.isMenuCloseFocused()?this.onHomeKey():this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(e){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(e.key)))return e.stopPropagation(),e.preventDefault(),this.onNavigationKey(e.key)}}},f=[`id`];function p(e,t,n,r,i,a){let o=(0,l.resolveComponent)(`dt-popover`);return(0,l.openBlock)(),(0,l.createBlock)(o,(0,l.mergeProps)({ref:`popover`,"content-width":n.contentWidth,"content-mode":n.contentMode,open:n.open,"forward-anchor-arrow-keys":n.forwardAnchorArrowKeys,"visibility-change-callback":a.onVisibilityChange,placement:n.placement,"initial-focus-element":i.openedWithKeyboard?`first`:`dialog`,"fallback-placements":n.fallbackPlacements,padding:`none`,role:`menu`,"append-to":n.appendTo,modal:n.modal,"max-height":n.maxHeight,"max-width":n.maxWidth,"open-with-arrow-keys":a.shouldOpenWithArrowKeys,"open-on-context":n.openOnContext},a.popoverAttrs,{tether:n.tether,transition:n.transition,"footer-class":n.footerClass},(0,l.toHandlers)(a.dropdownListeners)),{anchor:(0,l.withCtx)(({attrs:t})=>[(0,l.renderSlot)(e.$slots,`anchor`,(0,l.mergeProps)({ref:`anchor`},t))]),content:(0,l.withCtx)(({close:r})=>[(0,l.createElementVNode)(`ul`,{id:n.listId,ref:`listWrapper`,role:`none`,class:(0,l.normalizeClass)(a.listClasses),"data-qa":`dt-dropdown-list-wrapper`,onMouseleave:t[0]||(t[0]=(...e)=>a.clearHighlightIndex&&a.clearHighlightIndex(...e)),onMousemoveCapture:t[1]||(t[1]=(...e)=>a.onMouseHighlight&&a.onMouseHighlight(...e))},[(0,l.renderSlot)(e.$slots,`list`,{close:r})],42,f)]),footerContent:(0,l.withCtx)(({close:t})=>[(0,l.renderSlot)(e.$slots,`footer`,{close:t})]),_:3},16,[`content-width`,`content-mode`,`open`,`forward-anchor-arrow-keys`,`visibility-change-callback`,`placement`,`initial-focus-element`,`fallback-placements`,`append-to`,`modal`,`max-height`,`max-width`,`open-with-arrow-keys`,`open-on-context`,`tether`,`transition`,`footer-class`])}var m=n.t(d,[[`render`,p]]);exports.default=m;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),r=require(`../../common/mixins/keyboard-list-navigation.cjs`),i=require(`../../mode_constants-DM0SVbFM.cjs`),a=require(`../list-item/list-item-constants.cjs`),o=require(`../popover/popover-constants.cjs`),s=require(`../popover/popover.cjs`),c=require(`./dropdown-constants.cjs`);let l=require(`vue`);var u=e=>!!e?.classList.contains(`d-list-item--disabled`),d={name:`DtDropdown`,components:{DtPopover:s.default},mixins:[r.default({indexKey:`highlightIndex`,idKey:`highlightId`,listElementKey:`getListElement`,listItemRole:[`menuitem`,`menuitemradio`],afterHighlightMethod:`afterHighlight`,beginningOfListMethod:`beginningOfListMethod`,endOfListMethod:`endOfListMethod`,activeItemKey:`activeItemEl`,focusOnKeyboardNavigation:!0})],inheritAttrs:!1,props:{contentMode:i.t,open:{type:[Boolean,null],default:null},visibilityChangeCallback:{type:Function,default:null},forwardAnchorArrowKeys:{type:Boolean,default:!1},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:`small`,validator:e=>Object.keys(c.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:``},maxWidth:{type:String,default:``},listId:{type:String,default(){return t.m()}},navigationType:{type:String,default:a.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:e=>Object.values(a.LIST_ITEM_NAVIGATION_TYPES).includes(e)},fallbackPlacements:{type:Array,default:()=>[`auto`]},placement:{type:String,default:`bottom`},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},appendTo:{type:[e.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>o.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:`fade`}},emits:[`keydown`,`highlight`,`update:open`,`opened`],data(){return{LIST_ITEM_NAVIGATION_TYPES:a.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:c.DROPDOWN_PADDING_CLASSES,EVENT_KEYNAMES:e.EVENT_KEYNAMES,openedWithKeyboard:!1,pendingArrowOpening:null,isOpen:null,isLogicallyOpen:!1}},computed:{popoverAttrs(){let{dialogClass:e,"dialog-class":t,...n}=this.$attrs;return{...n,dialogClass:[e,t,{"d-dropdown__menu--arrow-keys":this.isArrowKeyNav&&(!(`role`in n)||n.role===`menu`)}]}},dropdownListeners(){return{"update:open":e=>{this.$emit(`update:open`,e)},opened:e=>{this.updateInitialHighlightIndex(e)},keydown:t=>{let n=t.code,r=[e.EVENT_KEYNAMES.up,e.EVENT_KEYNAMES.arrowup,e.EVENT_KEYNAMES.down,e.EVENT_KEYNAMES.arrowdown].includes(n);if(this.forwardAnchorArrowKeys&&this.open!==null&&!this.isLogicallyOpen&&r&&this.$refs.popover?.$refs.anchor?.contains(t.target)){let e=Symbol(`arrow-opening`);this.pendingArrowOpening=e,this.openedWithKeyboard=!0,this.$emit(`keydown`,t),this.$nextTick(()=>{this.pendingArrowOpening===e&&!this.isLogicallyOpen&&(this.openedWithKeyboard=!1)});return}switch(n){case e.EVENT_KEYNAMES.up:case e.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.down:case e.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.space:case e.EVENT_KEYNAMES.spacebar:this.onSpaceKey(t);break;case e.EVENT_KEYNAMES.enter:this.onEnterKey();break;case e.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit(`keydown`,t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.highlightId&&this._getListItemNodes()?.find(e=>e.id===this.highlightId)||null},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return[`d-dropdown-list`,c.DROPDOWN_PADDING_CLASSES[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onVisibilityChange(e){this.isLogicallyOpen=e,this.visibilityChangeCallback?.(e)},onMouseHighlight(e){let t=e.target.closest(`li`);t?.role&&t.id&&this.highlightId!==t.id&&(this.setHighlightId(t.id),this._getListItemNodes()?.includes(t)&&this.focusHoveredRow(t))},focusHoveredRow(e){u(e)&&this.focusMenuContent()||e.focus()},focusMenuContent(){let e=this.$refs.popover?.popoverContentEl;return e?.focus(),!!e&&e.getRootNode().activeElement===e},getListElement(){return this.$refs.listWrapper},getMenuCloseButton(){let e=this.$refs.popover;return e?.role===`menu`?e.getCloseButtonElement():null},isMenuCloseFocused(){let e=this.getMenuCloseButton();return e&&e.getRootNode().activeElement===e},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.highlightIndex!==this._itemsLength()-1&&this.$emit(`highlight`,this.highlightIndex)},updateInitialHighlightIndex(e){this.isOpen=e,e?(this.openedWithKeyboard&&this.isArrowKeyNav&&(this.setHighlightIndex(0),!Object.entries(this.$attrs).some(([e,t])=>e.replace(/-/g,``).toLowerCase()===`initialfocuselement`&&t!==void 0)&&u(this.activeItemEl)&&this.activeItemEl.focus()),this.$emit(`opened`,!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit(`opened`,!1))},onSpaceKey(e){this.open||(this.openedWithKeyboard=!0),u(this.activeItemEl)&&e.target===this.$refs.popover?.popoverContentEl&&e.preventDefault()},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.isMenuCloseFocused()?this.onEndKey():this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.isMenuCloseFocused()?this.onHomeKey():this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(e){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(e.key)))return e.stopPropagation(),e.preventDefault(),this.onNavigationKey(e.key)}}},f=[`id`];function p(e,t,n,r,i,a){let o=(0,l.resolveComponent)(`dt-popover`);return(0,l.openBlock)(),(0,l.createBlock)(o,(0,l.mergeProps)({ref:`popover`,"content-width":n.contentWidth,"content-mode":n.contentMode,open:n.open,"forward-anchor-arrow-keys":n.forwardAnchorArrowKeys,"visibility-change-callback":a.onVisibilityChange,placement:n.placement,"initial-focus-element":i.openedWithKeyboard?`first`:`dialog`,"fallback-placements":n.fallbackPlacements,padding:`none`,role:`menu`,"append-to":n.appendTo,modal:n.modal,"max-height":n.maxHeight,"max-width":n.maxWidth,"open-with-arrow-keys":a.shouldOpenWithArrowKeys,"open-on-context":n.openOnContext},a.popoverAttrs,{tether:n.tether,transition:n.transition,"footer-class":n.footerClass},(0,l.toHandlers)(a.dropdownListeners)),{anchor:(0,l.withCtx)(({attrs:t})=>[(0,l.renderSlot)(e.$slots,`anchor`,(0,l.mergeProps)({ref:`anchor`},t))]),content:(0,l.withCtx)(({close:r})=>[(0,l.createElementVNode)(`ul`,{id:n.listId,ref:`listWrapper`,role:`none`,class:(0,l.normalizeClass)(a.listClasses),"data-qa":`dt-dropdown-list-wrapper`,onMouseleave:t[0]||(t[0]=(...e)=>a.clearHighlightIndex&&a.clearHighlightIndex(...e)),onMousemoveCapture:t[1]||(t[1]=(...e)=>a.onMouseHighlight&&a.onMouseHighlight(...e))},[(0,l.renderSlot)(e.$slots,`list`,{close:r})],42,f)]),footerContent:(0,l.withCtx)(({close:t})=>[(0,l.renderSlot)(e.$slots,`footer`,{close:t})]),_:3},16,[`content-width`,`content-mode`,`open`,`forward-anchor-arrow-keys`,`visibility-change-callback`,`placement`,`initial-focus-element`,`fallback-placements`,`append-to`,`modal`,`max-height`,`max-width`,`open-with-arrow-keys`,`open-on-context`,`tether`,`transition`,`footer-class`])}var m=n.t(d,[[`render`,p]]);exports.default=m;
2
2
  //# sourceMappingURL=dropdown.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.cjs","names":[],"sources":["../../../components/Dropdown/Dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :content-mode=\"contentMode\"\n :open=\"open\"\n :forward-anchor-arrow-keys=\"forwardAnchorArrowKeys\"\n :visibility-change-callback=\"onVisibilityChange\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n v-bind=\"popoverAttrs\"\n :tether=\"tether\"\n :transition=\"transition\"\n :footer-class=\"footerClass\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!--\n @slot Dropdown trigger. Bind the three ARIA slot props individually to the trigger to preserve consumer refs.\n @binding {string} ref Internal ref key. Do not forward it to the trigger.\n @binding {string} aria-expanded Whether the dropdown is open, as \"true\" or \"false\".\n @binding {string} aria-controls ID of the popup element with role=\"menu\".\n @binding {string} aria-haspopup Popup role, \"menu\".\n -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n role=\"none\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/Popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/ListItem';\nimport { DROPDOWN_PADDING_CLASSES } from './DropdownConstants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\n// DtListItem's `disabled` modifier. Hand-rolled aria-disabled rows don't carry it and keep the legacy behavior.\nconst isDisabledRow = el => Boolean(el?.classList.contains('d-list-item--disabled'));\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: ['menuitem', 'menuitemradio'],\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n inheritAttrs: false,\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\n /**\n * Controls whether the dropdown is shown. When null (default), the dropdown\n * toggles on click. When set to true or false, the default trigger is\n * 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 * Optional callback receiving the open boolean synchronously on logical visibility changes.\n * Includes initial true during creation, before mount, when open=true.\n * Does not declare or emit an open-change event.\n * For modal removal, keep modal=true, its anchor and scroll container unchanged until opened(false).\n * Changing modal or the anchor's scroll context after opening can retain the original lock.\n * opened(false) reports transition completion, not global scroll-lock ownership.\n * A closed modal with no pending transition or retained scroll lock can be removed immediately.\n * Defer direct app.unmount() until Vue's next tick.\n */\n visibilityChangeCallback: {\n type: Function,\n default: null,\n },\n\n /**\n * Forwards anchor ArrowUp/ArrowDown with a boolean open prop without toggling.\n * Closed anchor arrows retain their default action and propagation for consumer handling.\n * Accept opening synchronously in the emitted keydown callback for first-row focus.\n * @values true, false\n */\n forwardAnchorArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n * @values top, top-start, top-end, right, right-start, right-end, left, left-start, left-end, bottom, bottom-start, bottom-end, auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\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 * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\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 emits: [\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\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 after the current transition and initial focus work complete\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n pendingArrowOpening: null,\n isOpen: null,\n isLogicallyOpen: false,\n };\n },\n\n computed: {\n popoverAttrs () {\n const { dialogClass, 'dialog-class': kebabDialogClass, ...attrs } = this.$attrs;\n return {\n ...attrs,\n dialogClass: [dialogClass, kebabDialogClass, {\n 'd-dropdown__menu--arrow-keys': this.isArrowKeyNav && (!('role' in attrs) || attrs.role === 'menu'),\n }],\n };\n },\n\n dropdownListeners () {\n return {\n\n 'update:open': value => {\n this.$emit('update:open', value);\n },\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n const isArrow = [EVENT_KEYNAMES.up, EVENT_KEYNAMES.arrowup,\n EVENT_KEYNAMES.down, EVENT_KEYNAMES.arrowdown].includes(eventCode);\n\n if (this.forwardAnchorArrowKeys && this.open !== null && !this.isLogicallyOpen && isArrow &&\n this.$refs.popover?.$refs.anchor?.contains(event.target)) {\n const pending = Symbol('arrow-opening');\n this.pendingArrowOpening = pending;\n this.openedWithKeyboard = true;\n this.$emit('keydown', event);\n // Let synchronous acceptance in the emitted handler flush before discarding ignored modality.\n this.$nextTick(() => {\n if (this.pendingArrowOpening === pending && !this.isLogicallyOpen) {\n this.openedWithKeyboard = false;\n }\n });\n return;\n }\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey(event);\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n if (!this.highlightId) return null;\n return this._getListItemNodes()?.find(item => item.id === this.highlightId) || null;\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onVisibilityChange (isOpen) {\n this.isLogicallyOpen = isOpen;\n this.visibilityChangeCallback?.(isOpen);\n },\n\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement?.role && liElement.id && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n if (this._getListItemNodes()?.includes(liElement)) this.focusHoveredRow(liElement);\n }\n },\n\n // A DtListItem disabled row takes the highlight but not focus, which would draw the keyboard\n // focus ring under the pointer. The menu holds focus so Enter can't activate another row.\n focusHoveredRow (row) {\n if (isDisabledRow(row) && this.focusMenuContent()) return;\n row.focus();\n },\n\n /** Focuses the menu container; false when it can't take focus (contentTabindex null). */\n focusMenuContent () {\n const content = this.$refs.popover?.popoverContentEl;\n content?.focus();\n return Boolean(content) && content.getRootNode().activeElement === content;\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n getMenuCloseButton () {\n const popover = this.$refs.popover;\n return popover?.role === 'menu' ? popover.getCloseButtonElement() : null;\n },\n\n isMenuCloseFocused () {\n const closeButton = this.getMenuCloseButton();\n return closeButton && closeButton.getRootNode().activeElement === closeButton;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n // Popover's default first-element focus skips aria-disabled rows, but a DtListItem disabled row\n // stays reachable: focus it so focus and keyboard position agree. A consumer focus target wins.\n const consumerFocus = Object.entries(this.$attrs).some(([key, value]) =>\n key.replace(/-/g, '').toLowerCase() === 'initialfocuselement' && value !== undefined);\n if (!consumerFocus && isDisabledRow(this.activeItemEl)) this.activeItemEl.focus();\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey (event) {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n // The menu holds focus while the pointer rests on a disabled row; keep Space from scrolling it.\n if (isDisabledRow(this.activeItemEl) && event.target === this.$refs.popover?.popoverContentEl) {\n event.preventDefault();\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onEndKey();\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onHomeKey();\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"mappings":"ukBA+EA,IAAM,EAAgB,GAAM,EAAQ,GAAI,UAAU,SAAS,wBAAwB,CAE9E,EAAU,CACb,KAAM,aAEN,WAAY,CACV,UAAA,EAAA,QACD,CAED,OAAQ,CACN,EAAA,QAAmB,CACjB,SAAU,iBACV,MAAO,cACP,eAAgB,iBAChB,aAAc,CAAC,WAAY,gBAAgB,CAC3C,qBAAsB,iBACtB,sBAAuB,wBACvB,gBAAiB,kBACjB,cAAe,eACf,0BAA2B,GAC5B,CAAC,CACH,CAED,aAAc,GAEd,MAAO,CAKL,YAAa,EAAA,EAQb,KAAM,CACJ,KAAM,CAAC,QAAS,KAAK,CACrB,QAAS,KACV,CAYD,yBAA0B,CACxB,KAAM,SACN,QAAS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CAAA,CAIR,eAAA,EAAA,EAAA,UAKP,CALwB,WAAK,EAAA,EAAA,EAAA,YAK7B,EAAA,OAAA,SAAA,CADQ,QAAK,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"dropdown.cjs","names":[],"sources":["../../../components/Dropdown/Dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :content-mode=\"contentMode\"\n :open=\"open\"\n :forward-anchor-arrow-keys=\"forwardAnchorArrowKeys\"\n :visibility-change-callback=\"onVisibilityChange\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n v-bind=\"popoverAttrs\"\n :tether=\"tether\"\n :transition=\"transition\"\n :footer-class=\"footerClass\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!--\n @slot Dropdown trigger. Bind the three ARIA slot props individually to the trigger to preserve consumer refs.\n @binding {string} ref Internal ref key. Do not forward it to the trigger.\n @binding {string} aria-expanded Whether the dropdown is open, as \"true\" or \"false\".\n @binding {string} aria-controls ID of the popup element with role=\"menu\".\n @binding {string} aria-haspopup Popup role, \"menu\".\n -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n role=\"none\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/Popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/ListItem';\nimport { DROPDOWN_PADDING_CLASSES } from './DropdownConstants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\n// DtListItem's `disabled` modifier. Hand-rolled aria-disabled rows don't carry it and keep the legacy behavior.\nconst isDisabledRow = el => Boolean(el?.classList.contains('d-list-item--disabled'));\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: ['menuitem', 'menuitemradio'],\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n inheritAttrs: false,\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\n /**\n * Controls whether the dropdown is shown. When null (default), the dropdown\n * toggles on click. When set to true or false, the default trigger is\n * 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 * Optional callback receiving the open boolean synchronously on logical visibility changes.\n * Includes initial true during creation, before mount, when open=true.\n * Does not declare or emit an open-change event.\n * Removing it while open or closing releases its scroll lock; other open overlays keep theirs.\n * Removal skips the close transition and focus restoration. To close visibly first, remove after opened(false).\n * Defer direct app.unmount() until Vue's next tick.\n */\n visibilityChangeCallback: {\n type: Function,\n default: null,\n },\n\n /**\n * Forwards anchor ArrowUp/ArrowDown with a boolean open prop without toggling.\n * Closed anchor arrows retain their default action and propagation for consumer handling.\n * Accept opening synchronously in the emitted keydown callback for first-row focus.\n * @values true, false\n */\n forwardAnchorArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n * @values top, top-start, top-end, right, right-start, right-end, left, left-start, left-end, bottom, bottom-start, bottom-end, auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\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 * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\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 emits: [\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\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 after the current transition and initial focus work complete\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n pendingArrowOpening: null,\n isOpen: null,\n isLogicallyOpen: false,\n };\n },\n\n computed: {\n popoverAttrs () {\n const { dialogClass, 'dialog-class': kebabDialogClass, ...attrs } = this.$attrs;\n return {\n ...attrs,\n dialogClass: [dialogClass, kebabDialogClass, {\n 'd-dropdown__menu--arrow-keys': this.isArrowKeyNav && (!('role' in attrs) || attrs.role === 'menu'),\n }],\n };\n },\n\n dropdownListeners () {\n return {\n\n 'update:open': value => {\n this.$emit('update:open', value);\n },\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n const isArrow = [EVENT_KEYNAMES.up, EVENT_KEYNAMES.arrowup,\n EVENT_KEYNAMES.down, EVENT_KEYNAMES.arrowdown].includes(eventCode);\n\n if (this.forwardAnchorArrowKeys && this.open !== null && !this.isLogicallyOpen && isArrow &&\n this.$refs.popover?.$refs.anchor?.contains(event.target)) {\n const pending = Symbol('arrow-opening');\n this.pendingArrowOpening = pending;\n this.openedWithKeyboard = true;\n this.$emit('keydown', event);\n // Let synchronous acceptance in the emitted handler flush before discarding ignored modality.\n this.$nextTick(() => {\n if (this.pendingArrowOpening === pending && !this.isLogicallyOpen) {\n this.openedWithKeyboard = false;\n }\n });\n return;\n }\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey(event);\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n if (!this.highlightId) return null;\n return this._getListItemNodes()?.find(item => item.id === this.highlightId) || null;\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onVisibilityChange (isOpen) {\n this.isLogicallyOpen = isOpen;\n this.visibilityChangeCallback?.(isOpen);\n },\n\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement?.role && liElement.id && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n if (this._getListItemNodes()?.includes(liElement)) this.focusHoveredRow(liElement);\n }\n },\n\n // A DtListItem disabled row takes the highlight but not focus, which would draw the keyboard\n // focus ring under the pointer. The menu holds focus so Enter can't activate another row.\n focusHoveredRow (row) {\n if (isDisabledRow(row) && this.focusMenuContent()) return;\n row.focus();\n },\n\n /** Focuses the menu container; false when it can't take focus (contentTabindex null). */\n focusMenuContent () {\n const content = this.$refs.popover?.popoverContentEl;\n content?.focus();\n return Boolean(content) && content.getRootNode().activeElement === content;\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n getMenuCloseButton () {\n const popover = this.$refs.popover;\n return popover?.role === 'menu' ? popover.getCloseButtonElement() : null;\n },\n\n isMenuCloseFocused () {\n const closeButton = this.getMenuCloseButton();\n return closeButton && closeButton.getRootNode().activeElement === closeButton;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n // Popover's default first-element focus skips aria-disabled rows, but a DtListItem disabled row\n // stays reachable: focus it so focus and keyboard position agree. A consumer focus target wins.\n const consumerFocus = Object.entries(this.$attrs).some(([key, value]) =>\n key.replace(/-/g, '').toLowerCase() === 'initialfocuselement' && value !== undefined);\n if (!consumerFocus && isDisabledRow(this.activeItemEl)) this.activeItemEl.focus();\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey (event) {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n // The menu holds focus while the pointer rests on a disabled row; keep Space from scrolling it.\n if (isDisabledRow(this.activeItemEl) && event.target === this.$refs.popover?.popoverContentEl) {\n event.preventDefault();\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onEndKey();\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onHomeKey();\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"mappings":"mkBA+EA,IAAM,EAAgB,GAAM,EAAQ,GAAI,UAAU,SAAS,wBAAwB,CAE9E,EAAU,CACb,KAAM,aAEN,WAAY,CACV,UAAA,EAAA,QACD,CAED,OAAQ,CACN,EAAA,QAAmB,CACjB,SAAU,iBACV,MAAO,cACP,eAAgB,iBAChB,aAAc,CAAC,WAAY,gBAAgB,CAC3C,qBAAsB,iBACtB,sBAAuB,wBACvB,gBAAiB,kBACjB,cAAe,eACf,0BAA2B,GAC5B,CAAC,CACH,CAED,aAAc,GAEd,MAAO,CAKL,YAAa,EAAA,EAQb,KAAM,CACJ,KAAM,CAAC,QAAS,KAAK,CACrB,QAAS,KACV,CAUD,yBAA0B,CACxB,KAAM,SACN,QAAS,KACV,CAQD,uBAAwB,CACtB,KAAM,QACN,QAAS,GACV,CAMD,cAAe,CACb,KAAM,QACN,QAAS,GACV,CAMD,QAAS,CACP,KAAM,OACN,QAAS,QACT,UAAY,GACH,OAAO,KAAK,EAAA,yBAAyB,CAAC,KAAM,GAAS,IAAS,EAAQ,CAEhF,CAMD,MAAO,CACL,KAAM,QACN,QAAS,GACV,CAOD,aAAc,CACZ,KAAM,OACN,QAAS,KACV,CAMD,UAAW,CACT,KAAM,OACN,QAAS,GACV,CAMD,SAAU,CACR,KAAM,OACN,QAAS,GACV,CAMD,OAAQ,CACN,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,GAAiB,EACtC,CAS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A,SACzC,sBAAqB,EAAA,mBACtB,QAAQ,OACR,KAAK,OACJ,YAAW,EAAA,SACX,MAAO,EAAA,MACP,aAAY,EAAA,UACZ,YAAW,EAAA,SACX,uBAAsB,EAAA,wBACtB,kBAAiB,EAAA,eACV,EAAA,aAAY,CACnB,OAAQ,EAAA,OACR,WAAY,EAAA,WACZ,eAAc,EAAA,8BACS,EAAlB,kBAAiB,CAAA,CAAA,CAEZ,QAAA,EAAA,EAAA,UAYP,CAZiB,WAAK,EAAA,EAAA,EAAA,YAYtB,EAAA,OAAA,UAAA,EAAA,EAAA,YAAA,CAHA,IAAI,SAAQ,CAEJ,EAAK,CAAA,CAAA,CAAA,CAGN,SAAA,EAAA,EAAA,UAiBJ,CAjBe,WAAK,EAAA,EAAA,EAAA,oBAiBpB,KAAA,CAbF,GAAI,EAAA,OACL,IAAI,cACJ,KAAK,OACJ,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,CACnB,UAAQ,2BACP,aAAU,EAAA,KAAA,EAAA,IAAA,GAAA,IAAE,EAAA,qBAAA,EAAA,oBAAA,GAAA,EAAmB,yCACZ,EAAA,kBAAA,EAAA,iBAAA,GAAA,EAAgB,qBAMlC,EAAA,OAAA,OAAA,CADQ,QAAK,CAAA,CAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAIR,eAAA,EAAA,EAAA,UAKP,CALwB,WAAK,EAAA,EAAA,EAAA,YAK7B,EAAA,OAAA,SAAA,CADQ,QAAK,CAAA,CAAA,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { EVENT_KEYNAMES as e, HTML_ELEMENT_TYPE as t } from "../../common/constants/index.js";
2
- import { getUniqueString as n } from "../../common/utils/index.js";
3
- import { t as r } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { m as n } from "../../utils-CXaaZqVu.js";
3
+ import { t as r } from "../../_plugin-vue_export-helper-B52Kst-M.js";
4
4
  import i from "../../common/mixins/keyboard-list-navigation.js";
5
- import { t as a } from "../../mode_constants-tb7TL85q.js";
5
+ import { t as a } from "../../mode_constants-CC73P7d-.js";
6
6
  import { LIST_ITEM_NAVIGATION_TYPES as o } from "../list-item/list-item-constants.js";
7
7
  import { POPOVER_APPEND_TO_VALUES as s } from "../popover/popover-constants.js";
8
8
  import c from "../popover/popover.js";
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.js","names":[],"sources":["../../../components/Dropdown/Dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :content-mode=\"contentMode\"\n :open=\"open\"\n :forward-anchor-arrow-keys=\"forwardAnchorArrowKeys\"\n :visibility-change-callback=\"onVisibilityChange\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n v-bind=\"popoverAttrs\"\n :tether=\"tether\"\n :transition=\"transition\"\n :footer-class=\"footerClass\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!--\n @slot Dropdown trigger. Bind the three ARIA slot props individually to the trigger to preserve consumer refs.\n @binding {string} ref Internal ref key. Do not forward it to the trigger.\n @binding {string} aria-expanded Whether the dropdown is open, as \"true\" or \"false\".\n @binding {string} aria-controls ID of the popup element with role=\"menu\".\n @binding {string} aria-haspopup Popup role, \"menu\".\n -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n role=\"none\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/Popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/ListItem';\nimport { DROPDOWN_PADDING_CLASSES } from './DropdownConstants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\n// DtListItem's `disabled` modifier. Hand-rolled aria-disabled rows don't carry it and keep the legacy behavior.\nconst isDisabledRow = el => Boolean(el?.classList.contains('d-list-item--disabled'));\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: ['menuitem', 'menuitemradio'],\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n inheritAttrs: false,\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\n /**\n * Controls whether the dropdown is shown. When null (default), the dropdown\n * toggles on click. When set to true or false, the default trigger is\n * 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 * Optional callback receiving the open boolean synchronously on logical visibility changes.\n * Includes initial true during creation, before mount, when open=true.\n * Does not declare or emit an open-change event.\n * For modal removal, keep modal=true, its anchor and scroll container unchanged until opened(false).\n * Changing modal or the anchor's scroll context after opening can retain the original lock.\n * opened(false) reports transition completion, not global scroll-lock ownership.\n * A closed modal with no pending transition or retained scroll lock can be removed immediately.\n * Defer direct app.unmount() until Vue's next tick.\n */\n visibilityChangeCallback: {\n type: Function,\n default: null,\n },\n\n /**\n * Forwards anchor ArrowUp/ArrowDown with a boolean open prop without toggling.\n * Closed anchor arrows retain their default action and propagation for consumer handling.\n * Accept opening synchronously in the emitted keydown callback for first-row focus.\n * @values true, false\n */\n forwardAnchorArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n * @values top, top-start, top-end, right, right-start, right-end, left, left-start, left-end, bottom, bottom-start, bottom-end, auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\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 * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\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 emits: [\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\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 after the current transition and initial focus work complete\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n pendingArrowOpening: null,\n isOpen: null,\n isLogicallyOpen: false,\n };\n },\n\n computed: {\n popoverAttrs () {\n const { dialogClass, 'dialog-class': kebabDialogClass, ...attrs } = this.$attrs;\n return {\n ...attrs,\n dialogClass: [dialogClass, kebabDialogClass, {\n 'd-dropdown__menu--arrow-keys': this.isArrowKeyNav && (!('role' in attrs) || attrs.role === 'menu'),\n }],\n };\n },\n\n dropdownListeners () {\n return {\n\n 'update:open': value => {\n this.$emit('update:open', value);\n },\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n const isArrow = [EVENT_KEYNAMES.up, EVENT_KEYNAMES.arrowup,\n EVENT_KEYNAMES.down, EVENT_KEYNAMES.arrowdown].includes(eventCode);\n\n if (this.forwardAnchorArrowKeys && this.open !== null && !this.isLogicallyOpen && isArrow &&\n this.$refs.popover?.$refs.anchor?.contains(event.target)) {\n const pending = Symbol('arrow-opening');\n this.pendingArrowOpening = pending;\n this.openedWithKeyboard = true;\n this.$emit('keydown', event);\n // Let synchronous acceptance in the emitted handler flush before discarding ignored modality.\n this.$nextTick(() => {\n if (this.pendingArrowOpening === pending && !this.isLogicallyOpen) {\n this.openedWithKeyboard = false;\n }\n });\n return;\n }\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey(event);\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n if (!this.highlightId) return null;\n return this._getListItemNodes()?.find(item => item.id === this.highlightId) || null;\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onVisibilityChange (isOpen) {\n this.isLogicallyOpen = isOpen;\n this.visibilityChangeCallback?.(isOpen);\n },\n\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement?.role && liElement.id && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n if (this._getListItemNodes()?.includes(liElement)) this.focusHoveredRow(liElement);\n }\n },\n\n // A DtListItem disabled row takes the highlight but not focus, which would draw the keyboard\n // focus ring under the pointer. The menu holds focus so Enter can't activate another row.\n focusHoveredRow (row) {\n if (isDisabledRow(row) && this.focusMenuContent()) return;\n row.focus();\n },\n\n /** Focuses the menu container; false when it can't take focus (contentTabindex null). */\n focusMenuContent () {\n const content = this.$refs.popover?.popoverContentEl;\n content?.focus();\n return Boolean(content) && content.getRootNode().activeElement === content;\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n getMenuCloseButton () {\n const popover = this.$refs.popover;\n return popover?.role === 'menu' ? popover.getCloseButtonElement() : null;\n },\n\n isMenuCloseFocused () {\n const closeButton = this.getMenuCloseButton();\n return closeButton && closeButton.getRootNode().activeElement === closeButton;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n // Popover's default first-element focus skips aria-disabled rows, but a DtListItem disabled row\n // stays reachable: focus it so focus and keyboard position agree. A consumer focus target wins.\n const consumerFocus = Object.entries(this.$attrs).some(([key, value]) =>\n key.replace(/-/g, '').toLowerCase() === 'initialfocuselement' && value !== undefined);\n if (!consumerFocus && isDisabledRow(this.activeItemEl)) this.activeItemEl.focus();\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey (event) {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n // The menu holds focus while the pointer rests on a disabled row; keep Space from scrolling it.\n if (isDisabledRow(this.activeItemEl) && event.target === this.$refs.popover?.popoverContentEl) {\n event.preventDefault();\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onEndKey();\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onHomeKey();\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"mappings":";;;;;;;;;;;AA+EA,IAAM,KAAgB,MAAM,EAAQ,GAAI,UAAU,SAAS,wBAAwB,EAE9E,IAAU;CACb,MAAM;CAEN,YAAY,EACV,WAAA,GACD;CAED,QAAQ,CACN,EAAmB;EACjB,UAAU;EACV,OAAO;EACP,gBAAgB;EAChB,cAAc,CAAC,YAAY,gBAAgB;EAC3C,sBAAsB;EACtB,uBAAuB;EACvB,iBAAiB;EACjB,eAAe;EACf,2BAA2B;EAC5B,CAAC,CACH;CAED,cAAc;CAEd,OAAO;EAKL,aAAa;EAQb,MAAM;GACJ,MAAM,CAAC,SAAS,KAAK;GACrB,SAAS;GACV;EAYD,0BAA0B;GACxB,MAAM;GACN,SAAS;GACV;EAQD,wBAAwB;GACtB,MAAM;GACN,SAAS;GACV;EAMD,eAAe;GACb,MAAM;GACN,SAAS;GACV;EAMD,SAAS;GACP,MAAM;GACN,SAAS;GACT,YAAY,MACH,OAAO,KAAK,EAAyB,CAAC,MAAM,MAAS,MAAS,EAAQ;GAEhF;EAMD,OAAO;GACL,MAAM;GACN,SAAS;GACV;EAOD,cAAc;GACZ,MAAM;GACN,SAAS;GACV;EAMD,WAAW;GACT,MAAM;GACN,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AA;EAC3B,8BAA4B,EAAA;EAC5B,WAAW,EAAA;EACX,yBAAuB,EAAA,qBAAkB,UAAA;EACzC,uBAAqB,EAAA;EACtB,SAAQ;EACR,MAAK;EACJ,aAAW,EAAA;EACX,OAAO,EAAA;EACP,cAAY,EAAA;EACZ,aAAW,EAAA;EACX,wBAAsB,EAAA;EACtB,mBAAiB,EAAA;IACV,EAAA,cAAY;EACnB,QAAQ,EAAA;EACR,YAAY,EAAA;EACZ,gBAAc,EAAA;IACf,EAAwB,EAAlB,kBAAiB,CAAA,EAAA;EAEZ,QAAM,GAYb,EAZiB,eAAK,CAQxB,EAIE,EAAA,QAAA,UAJF,EAIE,EAHA,KAAI,UAAQ,EAEJ,EAAK,CAAA,CAAA,CAAA;EAGN,SAAO,GAiBX,EAjBe,eAAK,CAGzB,EAcK,MAAA;GAbF,IAAI,EAAA;GACL,KAAI;GACJ,MAAK;GACJ,OAAK,EAAE,EAAA,YAAW;GACnB,WAAQ;GACP,cAAU,EAAA,OAAA,EAAA,MAAA,GAAA,MAAE,EAAA,uBAAA,EAAA,oBAAA,GAAA,EAAmB;iDACZ,EAAA,oBAAA,EAAA,iBAAA,GAAA,EAAgB;MAGpC,EAGE,EAAA,QAAA,QAAA,EADQ,UAAK,CAAA,CAAA,EAAA,IAAA,EAAA,CAAA,CAAA;EAIR,eAAa,GAKpB,EALwB,eAAK,CAE/B,EAGE,EAAA,QAAA,UAAA,EADQ,UAAK,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"dropdown.js","names":[],"sources":["../../../components/Dropdown/Dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :content-mode=\"contentMode\"\n :open=\"open\"\n :forward-anchor-arrow-keys=\"forwardAnchorArrowKeys\"\n :visibility-change-callback=\"onVisibilityChange\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n v-bind=\"popoverAttrs\"\n :tether=\"tether\"\n :transition=\"transition\"\n :footer-class=\"footerClass\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!--\n @slot Dropdown trigger. Bind the three ARIA slot props individually to the trigger to preserve consumer refs.\n @binding {string} ref Internal ref key. Do not forward it to the trigger.\n @binding {string} aria-expanded Whether the dropdown is open, as \"true\" or \"false\".\n @binding {string} aria-controls ID of the popup element with role=\"menu\".\n @binding {string} aria-haspopup Popup role, \"menu\".\n -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n role=\"none\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/Popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/ListItem';\nimport { DROPDOWN_PADDING_CLASSES } from './DropdownConstants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\n// DtListItem's `disabled` modifier. Hand-rolled aria-disabled rows don't carry it and keep the legacy behavior.\nconst isDisabledRow = el => Boolean(el?.classList.contains('d-list-item--disabled'));\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: ['menuitem', 'menuitemradio'],\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n inheritAttrs: false,\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\n /**\n * Controls whether the dropdown is shown. When null (default), the dropdown\n * toggles on click. When set to true or false, the default trigger is\n * 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 * Optional callback receiving the open boolean synchronously on logical visibility changes.\n * Includes initial true during creation, before mount, when open=true.\n * Does not declare or emit an open-change event.\n * Removing it while open or closing releases its scroll lock; other open overlays keep theirs.\n * Removal skips the close transition and focus restoration. To close visibly first, remove after opened(false).\n * Defer direct app.unmount() until Vue's next tick.\n */\n visibilityChangeCallback: {\n type: Function,\n default: null,\n },\n\n /**\n * Forwards anchor ArrowUp/ArrowDown with a boolean open prop without toggling.\n * Closed anchor arrows retain their default action and propagation for consumer handling.\n * Accept opening synchronously in the emitted keydown callback for first-row focus.\n * @values true, false\n */\n forwardAnchorArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n * @values top, top-start, top-end, right, right-start, right-end, left, left-start, left-end, bottom, bottom-start, bottom-end, auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\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 * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\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 emits: [\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\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 after the current transition and initial focus work complete\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n pendingArrowOpening: null,\n isOpen: null,\n isLogicallyOpen: false,\n };\n },\n\n computed: {\n popoverAttrs () {\n const { dialogClass, 'dialog-class': kebabDialogClass, ...attrs } = this.$attrs;\n return {\n ...attrs,\n dialogClass: [dialogClass, kebabDialogClass, {\n 'd-dropdown__menu--arrow-keys': this.isArrowKeyNav && (!('role' in attrs) || attrs.role === 'menu'),\n }],\n };\n },\n\n dropdownListeners () {\n return {\n\n 'update:open': value => {\n this.$emit('update:open', value);\n },\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n const isArrow = [EVENT_KEYNAMES.up, EVENT_KEYNAMES.arrowup,\n EVENT_KEYNAMES.down, EVENT_KEYNAMES.arrowdown].includes(eventCode);\n\n if (this.forwardAnchorArrowKeys && this.open !== null && !this.isLogicallyOpen && isArrow &&\n this.$refs.popover?.$refs.anchor?.contains(event.target)) {\n const pending = Symbol('arrow-opening');\n this.pendingArrowOpening = pending;\n this.openedWithKeyboard = true;\n this.$emit('keydown', event);\n // Let synchronous acceptance in the emitted handler flush before discarding ignored modality.\n this.$nextTick(() => {\n if (this.pendingArrowOpening === pending && !this.isLogicallyOpen) {\n this.openedWithKeyboard = false;\n }\n });\n return;\n }\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey(event);\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n if (!this.highlightId) return null;\n return this._getListItemNodes()?.find(item => item.id === this.highlightId) || null;\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onVisibilityChange (isOpen) {\n this.isLogicallyOpen = isOpen;\n this.visibilityChangeCallback?.(isOpen);\n },\n\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement?.role && liElement.id && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n if (this._getListItemNodes()?.includes(liElement)) this.focusHoveredRow(liElement);\n }\n },\n\n // A DtListItem disabled row takes the highlight but not focus, which would draw the keyboard\n // focus ring under the pointer. The menu holds focus so Enter can't activate another row.\n focusHoveredRow (row) {\n if (isDisabledRow(row) && this.focusMenuContent()) return;\n row.focus();\n },\n\n /** Focuses the menu container; false when it can't take focus (contentTabindex null). */\n focusMenuContent () {\n const content = this.$refs.popover?.popoverContentEl;\n content?.focus();\n return Boolean(content) && content.getRootNode().activeElement === content;\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n getMenuCloseButton () {\n const popover = this.$refs.popover;\n return popover?.role === 'menu' ? popover.getCloseButtonElement() : null;\n },\n\n isMenuCloseFocused () {\n const closeButton = this.getMenuCloseButton();\n return closeButton && closeButton.getRootNode().activeElement === closeButton;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n // Popover's default first-element focus skips aria-disabled rows, but a DtListItem disabled row\n // stays reachable: focus it so focus and keyboard position agree. A consumer focus target wins.\n const consumerFocus = Object.entries(this.$attrs).some(([key, value]) =>\n key.replace(/-/g, '').toLowerCase() === 'initialfocuselement' && value !== undefined);\n if (!consumerFocus && isDisabledRow(this.activeItemEl)) this.activeItemEl.focus();\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey (event) {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n // The menu holds focus while the pointer rests on a disabled row; keep Space from scrolling it.\n if (isDisabledRow(this.activeItemEl) && event.target === this.$refs.popover?.popoverContentEl) {\n event.preventDefault();\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onEndKey();\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onHomeKey();\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"mappings":";;;;;;;;;;;AA+EA,IAAM,KAAgB,MAAM,EAAQ,GAAI,UAAU,SAAS,wBAAwB,EAE9E,IAAU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