@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(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`./link-constants.cjs`);let n=require(`vue`);var r={name:`DtLink`,props:{tone:{type:String,default:``,validator(e){return t.LINK_VARIANTS.includes(e)}},kind:{type:String,default:void 0},inverted:{type:Boolean,default:!1},href:{type:String,default:null},to:{type:[String,Object],default:null},replace:{type:Boolean,default:!1},underline:{type:Boolean,default:!0}},data(){return{LINK_KIND_MODIFIERS:t.LINK_KIND_MODIFIERS}},computed:{resolvedTone(){return this.kind??this.tone},isUnstyled(){return this.resolvedTone===t.UNSTYLED},computedTag(){return this.to?(0,n.resolveComponent)(`RouterLink`):`a`},computedAttrs(){return this.to?{to:this.to,replace:this.replace}:{href:this.href||`javascript:void(0)`}}},methods:{getLinkClasses(){return this.isUnstyled?[t.LINK_UNSTYLED_CLASS]:[`d-link`,t.getLinkKindModifier(this.resolvedTone,this.inverted),{"d-link--no-underline":!this.underline}]}}};function i(e,t,r,i,a,o){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(o.computedTag),(0,n.mergeProps)({class:o.getLinkClasses(),"data-qa":`dt-link`},o.computedAttrs),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`)]),_:3},16,[`class`])}var a=e.t(r,[[`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`),t=require(`./link-constants.cjs`);let n=require(`vue`);var r={name:`DtLink`,props:{tone:{type:String,default:``,validator(e){return t.LINK_VARIANTS.includes(e)}},kind:{type:String,default:void 0},inverted:{type:Boolean,default:!1},href:{type:String,default:null},to:{type:[String,Object],default:null},replace:{type:Boolean,default:!1},underline:{type:Boolean,default:!0}},data(){return{LINK_KIND_MODIFIERS:t.LINK_KIND_MODIFIERS}},computed:{resolvedTone(){return this.kind??this.tone},isUnstyled(){return this.resolvedTone===t.UNSTYLED},computedTag(){return this.to?(0,n.resolveComponent)(`RouterLink`):`a`},computedAttrs(){return this.to?{to:this.to,replace:this.replace}:{href:this.href||`javascript:void(0)`}}},methods:{getLinkClasses(){return this.isUnstyled?[t.LINK_UNSTYLED_CLASS]:[`d-link`,t.getLinkKindModifier(this.resolvedTone,this.inverted),{"d-link--no-underline":!this.underline}]}}};function i(e,t,r,i,a,o){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(o.computedTag),(0,n.mergeProps)({class:o.getLinkClasses(),"data-qa":`dt-link`},o.computedAttrs),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`)]),_:3},16,[`class`])}var a=e.t(r,[[`render`,i]]);exports.default=a;
2
2
  //# sourceMappingURL=link.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 { LINK_KIND_MODIFIERS as t, LINK_UNSTYLED_CLASS as n, LINK_VARIANTS as r, UNSTYLED as i, getLinkKindModifier as a } from "./link-constants.js";
3
3
  import { createBlock as o, mergeProps as s, openBlock as c, renderSlot as l, resolveComponent as u, resolveDynamicComponent as d, withCtx as f } from "vue";
4
4
  //#region components/Link/Link.vue
@@ -0,0 +1 @@
1
+ export * from '../../components/ListItem/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`./list-item-constants.cjs`),r=require(`../item-layout/item-layout.cjs`);let i=require(`vue`),a=require(`@dialpad/dialtone-icons/vue`);var o={name:`DtListItem`,components:{DtItemLayout:r.default,DtIconCheck:a.DtIconCheck},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return e.default.getUniqueString()}},role:{type:String,default:`listitem`,validator:e=>n.LIST_ITEM_ROLES.includes(e)},elementType:{type:String,default:`li`},type:{type:String,default:n.LIST_ITEM_TYPES.DEFAULT,validator:e=>Object.values(n.LIST_ITEM_TYPES).includes(e)},navigationType:{type:String,default:n.LIST_ITEM_NAVIGATION_TYPES.NONE,validator:e=>Object.values(n.LIST_ITEM_NAVIGATION_TYPES).includes(e)},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wrapperClass:{type:[String,Object,Array],default:``}},emits:[`click`,`keydown`,`mousemove`,`mouseleave`],data(){return{injected:!1,mouseHighlighted:!1}},computed:{isMenuItemRadio(){return this.role===`menuitemradio`},ariaSelected(){return this.role===`listitem`||this.isMenuItemRadio?void 0:this.isHighlighted},isDefaultType(){return this.type===n.LIST_ITEM_TYPES.DEFAULT},listItemListeners(){return{click:e=>{this.onClick(e)},keydown:e=>{[`enter`,`space`].includes(e.code.toLowerCase())&&(this.isMenuItemRadio&&e.preventDefault(),this.onClick(e)),this.$emit(`keydown`,e)},mousemove:e=>{this.onMouseHover(e),this.$emit(`mousemove`,e)},mouseleave:e=>{this.onMouseLeave(e),this.$emit(`mouseleave`,e)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===n.LIST_ITEM_NAVIGATION_TYPES.TAB},isHoverable(){return this.navigationType!==n.LIST_ITEM_NAVIGATION_TYPES.NONE}},methods:{onClick(e){if(this.disabled){e.preventDefault();return}this.$emit(`click`,e)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};function s(e,t,n,r,a,o){let s=(0,i.resolveComponent)(`dt-icon-check`),c=(0,i.resolveComponent)(`dt-item-layout`);return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.elementType),(0,i.mergeProps)({id:n.id,class:[`d-list-item`,{"d-list-item--focusable":o.isFocusable,"d-list-item--highlighted":o.isHighlighted,"d-list-item--static":!o.isHoverable,"d-list-item--disabled":n.disabled}],tabindex:o.isFocusable?0:-1,role:n.role,"aria-selected":o.ariaSelected,"aria-checked":o.isMenuItemRadio?n.selected:void 0,"aria-disabled":n.disabled?`true`:void 0},(0,i.toHandlers)(o.listItemListeners)),{default:(0,i.withCtx)(()=>[o.isDefaultType?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,unstyled:``,class:(0,i.normalizeClass)([`d-list-item__wrapper`,n.wrapperClass]),"start-class":`d-list-item__left`,"content-class":`d-list-item__content`,"title-class":`d-list-item__title`,"subtitle-class":`d-list-item__subtitle`,"block-end-class":`d-list-item__bottom`,"end-class":`d-list-item__right`,"selected-class":`d-list-item__selected`,"data-qa":`dt-list-item-wrapper`},(0,i.createSlots)({_:2},[(0,i.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,n)])})),n.selected?{name:`selected`,fn:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{size:`200`})]),key:`0`}:void 0]),1032,[`class`])):(0,i.renderSlot)(e.$slots,`default`,{key:1})]),_:3},16,[`id`,`class`,`tabindex`,`role`,`aria-selected`,`aria-checked`,`aria-disabled`])}var c=t.t(o,[[`render`,s]]);exports.default=c;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../utils-Db-kV6Sr.cjs`),t=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),n=require(`./list-item-constants.cjs`),r=require(`../item-layout/item-layout.cjs`);let i=require(`vue`),a=require(`@dialpad/dialtone-icons/vue`);var o={name:`DtListItem`,components:{DtItemLayout:r.default,DtIconCheck:a.DtIconCheck},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return e.j.getUniqueString()}},role:{type:String,default:`listitem`,validator:e=>n.LIST_ITEM_ROLES.includes(e)},elementType:{type:String,default:`li`},type:{type:String,default:n.LIST_ITEM_TYPES.DEFAULT,validator:e=>Object.values(n.LIST_ITEM_TYPES).includes(e)},navigationType:{type:String,default:n.LIST_ITEM_NAVIGATION_TYPES.NONE,validator:e=>Object.values(n.LIST_ITEM_NAVIGATION_TYPES).includes(e)},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wrapperClass:{type:[String,Object,Array],default:``}},emits:[`click`,`keydown`,`mousemove`,`mouseleave`],data(){return{injected:!1,mouseHighlighted:!1}},computed:{isMenuItemRadio(){return this.role===`menuitemradio`},ariaSelected(){return this.role===`listitem`||this.isMenuItemRadio?void 0:this.isHighlighted},isDefaultType(){return this.type===n.LIST_ITEM_TYPES.DEFAULT},listItemListeners(){return{click:e=>{this.onClick(e)},keydown:e=>{[`enter`,`space`].includes(e.code.toLowerCase())&&(this.isMenuItemRadio&&e.preventDefault(),this.onClick(e)),this.$emit(`keydown`,e)},mousemove:e=>{this.onMouseHover(e),this.$emit(`mousemove`,e)},mouseleave:e=>{this.onMouseLeave(e),this.$emit(`mouseleave`,e)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===n.LIST_ITEM_NAVIGATION_TYPES.TAB},isHoverable(){return this.navigationType!==n.LIST_ITEM_NAVIGATION_TYPES.NONE}},methods:{onClick(e){if(this.disabled){e.preventDefault();return}this.$emit(`click`,e)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};function s(e,t,n,r,a,o){let s=(0,i.resolveComponent)(`dt-icon-check`),c=(0,i.resolveComponent)(`dt-item-layout`);return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.elementType),(0,i.mergeProps)({id:n.id,class:[`d-list-item`,{"d-list-item--focusable":o.isFocusable,"d-list-item--highlighted":o.isHighlighted,"d-list-item--static":!o.isHoverable,"d-list-item--disabled":n.disabled}],tabindex:o.isFocusable?0:-1,role:n.role,"aria-selected":o.ariaSelected,"aria-checked":o.isMenuItemRadio?n.selected:void 0,"aria-disabled":n.disabled?`true`:void 0},(0,i.toHandlers)(o.listItemListeners)),{default:(0,i.withCtx)(()=>[o.isDefaultType?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,unstyled:``,class:(0,i.normalizeClass)([`d-list-item__wrapper`,n.wrapperClass]),"start-class":`d-list-item__left`,"content-class":`d-list-item__content`,"title-class":`d-list-item__title`,"subtitle-class":`d-list-item__subtitle`,"block-end-class":`d-list-item__bottom`,"end-class":`d-list-item__right`,"selected-class":`d-list-item__selected`,"data-qa":`dt-list-item-wrapper`},(0,i.createSlots)({_:2},[(0,i.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,n)])})),n.selected?{name:`selected`,fn:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{size:`200`})]),key:`0`}:void 0]),1032,[`class`])):(0,i.renderSlot)(e.$slots,`default`,{key:1})]),_:3},16,[`id`,`class`,`tabindex`,`role`,`aria-selected`,`aria-checked`,`aria-disabled`])}var c=t.t(o,[[`render`,s]]);exports.default=c;
2
2
  //# sourceMappingURL=list-item.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.cjs","names":[],"sources":["../../../components/ListItem/ListItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n 'd-list-item--disabled': disabled,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"ariaSelected\"\n :aria-checked=\"isMenuItemRadio ? selected : undefined\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n start-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n block-end-class=\"d-list-item__bottom\"\n end-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"200\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_ROLES,\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './ListItemConstants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue';\nimport { DtItemLayout } from '@/components/ItemLayout';\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Contextual role: listitem for ordinary lists, menuitem for menu actions,\n * menuitemradio for persistent mutually exclusive menu choices, option for listboxes.\n * selected never changes the role automatically.\n * @values listitem, menuitem, option, menuitemradio\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => LIST_ITEM_ROLES.includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\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.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Shows a selected checkmark. For menuitemradio, also sets aria-checked independently of highlight.\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the item unavailable. Sets aria-disabled=\"true\" and the disabled style, and stops\n * the item from emitting click for pointer, Enter or Space activation. The item stays\n * focusable and reachable by keyboard navigation, and still emits keydown, mousemove and\n * mouseleave. Only the item's own activation is gated: a parent that selects by\n * highlighted index, such as Combobox on Enter, must check availability itself.\n * Don't also set an aria-disabled attribute: it overrides the announced state, while this prop\n * still controls the style and activation.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isMenuItemRadio () {\n return this.role === 'menuitemradio';\n },\n\n ariaSelected () {\n return this.role === 'listitem' || this.isMenuItemRadio ? undefined : this.isHighlighted;\n },\n\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n if (this.isMenuItemRadio) event.preventDefault();\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n if (this.disabled) {\n // Also cancel the native default, such as navigation when element-type is \"a\".\n e.preventDefault();\n return;\n }\n this.$emit('click', e);\n },\n\n onMouseHover () {\n this.mouseHighlighted = true;\n },\n\n onMouseLeave () {\n this.mouseHighlighted = false;\n },\n },\n};\n</script>\n"],"mappings":"8XAiEA,IAAK,EAAU,CACb,KAAM,aAEN,WAAY,CACV,aAAA,EAAA,QACA,YAAA,EAAA,YACD,CAKD,OAAQ,CACN,YAAa,CAAE,QAAS,KAAM,CAC/B,CAED,MAAO,CAIL,GAAI,CACF,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,QAAM,iBAAiB,EAC5C,CAQD,KAAM,CACJ,KAAM,OACN,QAAS,WACT,UAAY,GAAS,EAAA,gBAAgB,SAAS,EAAK,CACpD,CAKD,YAAa,CACX,KAAM,OACN,QAAS,KACV,CAMD,KAAM,CACJ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mB,EAAA,2BAA2B,MAE7D,CAED,QAAS,CACP,QAAS,EAAG,CACV,GAAI,KAAK,SAAU,CAEjB,EAAE,gBAAgB,CAClB,OAEF,KAAK,MAAM,QAAS,EAAE,EAGxB,cAAgB,CACd,KAAK,iBAAmB,IAG1B,cAAgB,CACd,KAAK,iBAAmB,IAE3B,CACF,0LA9RQ,EAAA,YAAW,EAAA,EAAA,EAAA,YA8CN,CA7CT,GAAI,EAAA,GACJ,MAAK,CAAA,cAAA,0BAAmE,EAAA,uCAAiD,EAAA,qCAA+C,EAAA,oCAA8C,EAAA,WAQtN,SAAU,EAAA,YAAW,EAAA,GACrB,KAAM,EAAA,KACN,gBAAe,EAAA,aACf,eAAc,EAAA,gBAAkB,EAAA,SAAW,IAAA,GAC3C,gBAAe,EAAA,SAAQ,OAAY,IAAA,qBACZ,EAAlB,kBAAiB,CAAA,CAAA,2BA4BN,CAzBT,EAAA,gBAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,aAyBS,EAAA,OAxBf,SAAA,GACC,OAAA,EAAA,EAAA,gBAAK,CAAA,uBAA2B,EAAA,aAAY,CAAA,CAC7C,cAAY,oBACZ,gBAAc,uBACd,cAAY,qBACZ,iBAAe,wBACf,kBAAgB,sBAChB,YAAU,qBACV,iBAAe,wBACf,UAAQ,kEAGkB,EAAA,QAAhB,EAAG,WACV,uBAGwB,EAAA,EAAA,EAAA,YAAA,EAAA,OAAZ,EAAQ,CAAA,CAAA,IAGf,EAAA,SAAA,MACL,gCAE2B,EAAA,EAAA,EAAA,aAAA,EAAA,CAAb,KAAK,MAAK,CAAA,CAAA,CAAA,qDAId,EAAA,OAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"list-item.cjs","names":[],"sources":["../../../components/ListItem/ListItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n 'd-list-item--disabled': disabled,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"ariaSelected\"\n :aria-checked=\"isMenuItemRadio ? selected : undefined\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n start-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n block-end-class=\"d-list-item__bottom\"\n end-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"200\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_ROLES,\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './ListItemConstants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue';\nimport { DtItemLayout } from '@/components/ItemLayout';\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Contextual role: listitem for ordinary lists, menuitem for menu actions,\n * menuitemradio for persistent mutually exclusive menu choices, option for listboxes.\n * selected never changes the role automatically.\n * @values listitem, menuitem, option, menuitemradio\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => LIST_ITEM_ROLES.includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\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.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Shows a selected checkmark. For menuitemradio, also sets aria-checked independently of highlight.\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the item unavailable. Sets aria-disabled=\"true\" and the disabled style, and stops\n * the item from emitting click for pointer, Enter or Space activation. The item stays\n * focusable and reachable by keyboard navigation, and still emits keydown, mousemove and\n * mouseleave. Only the item's own activation is gated: a parent that selects by\n * highlighted index, such as Combobox on Enter, must check availability itself.\n * Don't also set an aria-disabled attribute: it overrides the announced state, while this prop\n * still controls the style and activation.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isMenuItemRadio () {\n return this.role === 'menuitemradio';\n },\n\n ariaSelected () {\n return this.role === 'listitem' || this.isMenuItemRadio ? undefined : this.isHighlighted;\n },\n\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n if (this.isMenuItemRadio) event.preventDefault();\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n if (this.disabled) {\n // Also cancel the native default, such as navigation when element-type is \"a\".\n e.preventDefault();\n return;\n }\n this.$emit('click', e);\n },\n\n onMouseHover () {\n this.mouseHighlighted = true;\n },\n\n onMouseLeave () {\n this.mouseHighlighted = false;\n },\n },\n};\n</script>\n"],"mappings":"0XAiEA,IAAK,EAAU,CACb,KAAM,aAEN,WAAY,CACV,aAAA,EAAA,QACA,YAAA,EAAA,YACD,CAKD,OAAQ,CACN,YAAa,CAAE,QAAS,KAAM,CAC/B,CAED,MAAO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A,UAAA,CAAA,IAAA,EAAA,CAAA,CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import e from "../../common/utils/index.js";
2
- import { t } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
1
+ import { j as e } from "../../utils-CXaaZqVu.js";
2
+ import { t } from "../../_plugin-vue_export-helper-B52Kst-M.js";
3
3
  import { LIST_ITEM_NAVIGATION_TYPES as n, LIST_ITEM_ROLES as r, LIST_ITEM_TYPES as i } from "./list-item-constants.js";
4
4
  import a from "../item-layout/item-layout.js";
5
5
  import { createBlock as o, createSlots as s, createVNode as c, mergeProps as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, resolveComponent as m, resolveDynamicComponent as h, toHandlers as g, withCtx as _ } from "vue";
@@ -0,0 +1 @@
1
+ export * from '../../components/ListItemGroup/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`);let n=require(`vue`);var r={name:`DtListItemGroup`,props:{id:{type:String,default(){return e.getUniqueString()}},heading:{type:String,default:``},headingClass:{type:[String,Array,Object],default:``},listClass:{type:[String,Array,Object],default:``}}},i=[`id`,`aria-labelledby`],a=[`id`];function o(e,t,r,o,s,c){return(0,n.openBlock)(),(0,n.createElementBlock)(`ul`,{id:r.id,class:(0,n.normalizeClass)([`d-list-item-group`,r.listClass]),role:`group`,"data-qa":`dt-dropdown-list-wrapper`,"aria-labelledby":`${r.id}-heading`},[r.heading?((0,n.openBlock)(),(0,n.createElementBlock)(`li`,{key:0,id:`${r.id}-heading`,role:`presentation`,"data-qa":`dt-dropdown-list-heading`,class:(0,n.normalizeClass)([`dt-dropdown-list--header`,r.headingClass])},[(0,n.renderSlot)(e.$slots,`heading`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(r.heading),1)])],10,a)):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(e.$slots,`default`)],10,i)}var s=t.t(r,[[`render`,o]]);exports.default=s;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../utils-Db-kV6Sr.cjs`),t=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`);let n=require(`vue`);var r={name:`DtListItemGroup`,props:{id:{type:String,default(){return e.m()}},heading:{type:String,default:``},headingClass:{type:[String,Array,Object],default:``},listClass:{type:[String,Array,Object],default:``}}},i=[`id`,`aria-labelledby`],a=[`id`];function o(e,t,r,o,s,c){return(0,n.openBlock)(),(0,n.createElementBlock)(`ul`,{id:r.id,class:(0,n.normalizeClass)([`d-list-item-group`,r.listClass]),role:`group`,"data-qa":`dt-dropdown-list-wrapper`,"aria-labelledby":`${r.id}-heading`},[r.heading?((0,n.openBlock)(),(0,n.createElementBlock)(`li`,{key:0,id:`${r.id}-heading`,role:`presentation`,"data-qa":`dt-dropdown-list-heading`,class:(0,n.normalizeClass)([`dt-dropdown-list--header`,r.headingClass])},[(0,n.renderSlot)(e.$slots,`heading`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(r.heading),1)])],10,a)):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(e.$slots,`default`)],10,i)}var s=t.t(r,[[`render`,o]]);exports.default=s;
2
2
  //# sourceMappingURL=list-item-group.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item-group.cjs","names":[],"sources":["../../../components/ListItemGroup/ListItemGroup.vue"],"sourcesContent":["<template>\n <ul\n :id=\"id\"\n :class=\"['d-list-item-group', listClass]\"\n role=\"group\"\n data-qa=\"dt-dropdown-list-wrapper\"\n :aria-labelledby=\"`${id}-heading`\"\n >\n <li\n v-if=\"heading\"\n :id=\"`${id}-heading`\"\n role=\"presentation\"\n data-qa=\"dt-dropdown-list-heading\"\n :class=\"['dt-dropdown-list--header', headingClass]\"\n >\n <!-- @slot Slot for heading, will override heading prop -->\n <slot name=\"heading\">\n {{ heading }}\n </slot>\n </li>\n <!-- @slot Slot for the list component -->\n <slot />\n </ul>\n</template>\n\n<script>\nimport {} from './ListItemGroupConstants';\nimport { getUniqueString } from '@/common/utils';\n\nexport default {\n name: 'DtListItemGroup',\n\n props: {\n /**\n * Id of the List Item Group\n */\n id: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * List's heading.\n * Can also be overridden with a slot of the same name.\n */\n heading: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class to style the heading\n */\n headingClass: {\n type: [String, Array, Object],\n default: '',\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</script>\n"],"mappings":"kQA6BA,IAAK,EAAU,CACb,KAAM,kBAEN,MAAO,CAIL,GAAI,CACF,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,iBAAiB,EACtC,CAMD,QAAS,CACP,KAAM,OACN,QAAS,GACV,CAKD,aAAc,CACZ,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,UAAW,CACT,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CACF,CACF,8GA5CM,KAAA,CApBF,GAAI,EAAA,GACJ,OAAA,EAAA,EAAA,gBAAK,CAAA,oBAAwB,EAAA,UAAS,CAAA,CACvC,KAAK,QACL,UAAQ,2BACP,kBAAe,GAAK,EAAA,GAAE,YAGf,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAUH,KAAA,OATF,GAAE,GAAK,EAAA,GAAE,UACV,KAAK,eACL,UAAQ,2BACP,OAAA,EAAA,EAAA,gBAAK,CAAA,2BAA+B,EAAA,aAAY,CAAA,oBAK1C,EAAA,OAAA,UAAA,EAAA,KAAA,EAAA,EAAA,EAAA,kBAAA,EAAA,EAAA,iBADF,EAAA,QAAO,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA,GAAA,EAAA,EAAA,oBAAA,GAAA,GAAA,EAAA,EAAA,EAAA,YAIN,EAAA,OAAA,UAAA,CAAA,CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"list-item-group.cjs","names":[],"sources":["../../../components/ListItemGroup/ListItemGroup.vue"],"sourcesContent":["<template>\n <ul\n :id=\"id\"\n :class=\"['d-list-item-group', listClass]\"\n role=\"group\"\n data-qa=\"dt-dropdown-list-wrapper\"\n :aria-labelledby=\"`${id}-heading`\"\n >\n <li\n v-if=\"heading\"\n :id=\"`${id}-heading`\"\n role=\"presentation\"\n data-qa=\"dt-dropdown-list-heading\"\n :class=\"['dt-dropdown-list--header', headingClass]\"\n >\n <!-- @slot Slot for heading, will override heading prop -->\n <slot name=\"heading\">\n {{ heading }}\n </slot>\n </li>\n <!-- @slot Slot for the list component -->\n <slot />\n </ul>\n</template>\n\n<script>\nimport {} from './ListItemGroupConstants';\nimport { getUniqueString } from '@/common/utils';\n\nexport default {\n name: 'DtListItemGroup',\n\n props: {\n /**\n * Id of the List Item Group\n */\n id: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * List's heading.\n * Can also be overridden with a slot of the same name.\n */\n heading: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class to style the heading\n */\n headingClass: {\n type: [String, Array, Object],\n default: '',\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</script>\n"],"mappings":"8PA6BA,IAAK,EAAU,CACb,KAAM,kBAEN,MAAO,CAIL,GAAI,CACF,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,GAAiB,EACtC,CAMD,QAAS,CACP,KAAM,OACN,QAAS,GACV,CAKD,aAAc,CACZ,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,UAAW,CACT,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CACF,CACF,8GA5CM,KAAA,CApBF,GAAI,EAAA,GACJ,OAAA,EAAA,EAAA,gBAAK,CAAA,oBAAwB,EAAA,UAAS,CAAA,CACvC,KAAK,QACL,UAAQ,2BACP,kBAAe,GAAK,EAAA,GAAE,YAGf,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAUH,KAAA,OATF,GAAE,GAAK,EAAA,GAAE,UACV,KAAK,eACL,UAAQ,2BACP,OAAA,EAAA,EAAA,gBAAK,CAAA,2BAA+B,EAAA,aAAY,CAAA,oBAK1C,EAAA,OAAA,UAAA,EAAA,KAAA,EAAA,EAAA,EAAA,kBAAA,EAAA,EAAA,iBADF,EAAA,QAAO,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA,GAAA,EAAA,EAAA,oBAAA,GAAA,GAAA,EAAA,EAAA,EAAA,YAIN,EAAA,OAAA,UAAA,CAAA,CAAA,GAAA,EAAA"}
@@ -1,5 +1,5 @@
1
- import { getUniqueString as e } from "../../common/utils/index.js";
2
- import { t } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
1
+ import { m as e } from "../../utils-CXaaZqVu.js";
2
+ import { t } from "../../_plugin-vue_export-helper-B52Kst-M.js";
3
3
  import { createCommentVNode as n, createElementBlock as r, createTextVNode as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c } from "vue";
4
4
  //#region components/ListItemGroup/ListItemGroup.vue
5
5
  var l = {
@@ -0,0 +1 @@
1
+ export * from '../../components/Loader/index.js';
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`../icon/icon-constants.cjs`),r=require(`./loader-constants.cjs`),i=require(`../../localization/index.cjs`);let a=require(`vue`);var o={name:`DtLoader`,inheritAttrs:!1,props:{ariaLabel:{type:String,default:``},kind:{type:String,default:`dots`,validator:e=>Object.keys(r.LOADER_KIND_MODIFIERS).includes(e)},size:{type:[String,Number],default:500,validator:e.ordinalSizeValidator(n.ICON_SIZE_MODIFIERS)}},data(){return{i18n:new i.DialtoneLocalization}},computed:{accessibleLabel(){if(![`none`,`presentation`].includes(this.$attrs.role))return this.ariaLabel||this.i18n.$t(`DIALTONE_LOADING`)},isSpinner(){return this.kind===`spinner`},loaderKindClass(){return this.isSpinner?r.LOADER_KIND_MODIFIERS.spinner:r.LOADER_KIND_MODIFIERS.dots}}},s=[`aria-label`,`role`];function c(e,t,n,r,i,o){return(0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({class:[`d-loader`,o.loaderKindClass],"aria-label":o.accessibleLabel,"data-qa":`dt-loader`},e.$attrs,{role:e.$attrs.role??`img`}),[o.isSpinner?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{class:(0,a.normalizeClass)([`d-icon`,`d-icon--size-${n.size}`,`d-loader__icon-track`]),"data-qa":`dt-loader-icon-track`,viewBox:`0 0 24 24`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},[...t[0]||(t[0]=[(0,a.createElementVNode)(`path`,{d:`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),n=require(`../icon/icon-constants.cjs`),r=require(`./loader-constants.cjs`),i=require(`../../localization/index.cjs`);let a=require(`vue`);var o={name:`DtLoader`,inheritAttrs:!1,props:{ariaLabel:{type:String,default:``},kind:{type:String,default:`dots`,validator:e=>Object.keys(r.LOADER_KIND_MODIFIERS).includes(e)},size:{type:[String,Number],default:500,validator:e.ordinalSizeValidator(n.ICON_SIZE_MODIFIERS)}},data(){return{i18n:new i.DialtoneLocalization}},computed:{accessibleLabel(){if(![`none`,`presentation`].includes(this.$attrs.role))return this.ariaLabel||this.i18n.$t(`DIALTONE_LOADING`)},isSpinner(){return this.kind===`spinner`},loaderKindClass(){return this.isSpinner?r.LOADER_KIND_MODIFIERS.spinner:r.LOADER_KIND_MODIFIERS.dots}}},s=[`aria-label`,`role`];function c(e,t,n,r,i,o){return(0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({class:[`d-loader`,o.loaderKindClass],"aria-label":o.accessibleLabel,"data-qa":`dt-loader`},e.$attrs,{role:e.$attrs.role??`img`}),[o.isSpinner?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{class:(0,a.normalizeClass)([`d-icon`,`d-icon--size-${n.size}`,`d-loader__icon-track`]),"data-qa":`dt-loader-icon-track`,viewBox:`0 0 24 24`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},[...t[0]||(t[0]=[(0,a.createElementVNode)(`path`,{d:`
2
2
  M12 0.0180664C18.6175 0.0180664 23.9819 5.38305 23.9819
3
3
  12.0005C23.9819 18.6177 18.6175 23.9819 12 23.9819C5.38281
4
4
  23.9819 0.0180664 18.6177 0.0180664 12.0005C0.0180664
@@ -1,5 +1,5 @@
1
1
  import { ordinalSizeValidator as e } from "../../common/validators/index.js";
2
- import { t } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t } from "../../_plugin-vue_export-helper-B52Kst-M.js";
3
3
  import { ICON_SIZE_MODIFIERS as n } from "../icon/icon-constants.js";
4
4
  import { LOADER_KIND_MODIFIERS as r } from "./loader-constants.js";
5
5
  import { DialtoneLocalization as i } from "../../localization/index.js";
@@ -0,0 +1 @@
1
+ export * from '../../components/Modal/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../common/utils/index.cjs`),n=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),r=require(`../../common/mixins/mode.cjs`),i=require(`../notice/notice-constants.cjs`),a=require(`../../Text-DNVNZree.cjs`),o=require(`../../localization/index.cjs`),s=require(`../button/button.cjs`),c=require(`../../shared/sr_only_close_button.cjs`),l=require(`./modal-constants.cjs`);let u=require(`vue`),d=require(`@dialpad/dialtone-icons/vue`);var f=`button:not(:disabled),[href],input:not(:disabled),select:not(:disabled),textarea:not(:disabled),details,[tabindex]:not([tabindex="-1"]):not(:disabled):not([aria-disabled="true"])`,p={name:`DtModal`,components:{DtButton:s.default,DtText:a.t,DtIconClose:d.DtIconClose,SrOnlyCloseButton:c.default},mixins:[r.default],props:{copy:{type:String,default:``},describedById:{type:String,default:``},labelledById:{type:String,default:function(){return t.getUniqueString()}},open:{type:Boolean,default:!1},headerText:{type:String,default:void 0},bannerHeaderText:{type:String,default:void 0},kind:{type:String,default:`default`,validator:e=>Object.keys(l.MODAL_KIND_MODIFIERS).includes(e)},fullscreen:{type:Boolean,default:!1},modalClass:{type:[String,Object,Array],default:``},dialogClass:{type:[String,Object,Array],default:``},contentClass:{type:[String,Object,Array],default:``},bannerKind:{type:String,default:`warning`,validator(e){return i.NOTICE_KINDS.includes(e)}},bannerClass:{type:[String,Object,Array],default:``},headerClass:{type:[String,Object,Array],default:``},footerClass:{type:[String,Object,Array],default:``},showClose:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0},initialFocusElement:{type:[String,e.HTML_ELEMENT_TYPE],default:`first`,validator:e=>e===`first`||e instanceof HTMLElement||e.startsWith(`#`)},appendTo:{type:String,default:void 0},transparentBackdrop:{type:Boolean,default:!1},modal:{type:Boolean,default:!1}},emits:[`click`,`keydown`,`update:open`],data(){return{MODAL_KIND_MODIFIERS:l.MODAL_KIND_MODIFIERS,MODAL_BANNER_KINDS:l.MODAL_BANNER_KINDS,hasSlotContent:t.hasSlotContent,i18n:new o.DialtoneLocalization,autoTeleportTarget:null,mousedownOnBackdrop:!1,mouseupOnBackdrop:!1}},computed:{bannerKindClass(){return l.MODAL_BANNER_KINDS[this.bannerKind]},closeButtonTitle(){return this.i18n.$t(`DIALTONE_CLOSE_BUTTON`)}},watch:{open(e){this.syncDialogState(e)}},mounted(){if(!this.appendTo){let e=this.$el?.getRootNode();if(e instanceof ShadowRoot){this.autoTeleportTarget=e,this.open&&this.$nextTick(()=>{this.open&&this.syncDialogState(!0)});return}}this.open&&this.syncDialogState(!0)},beforeUnmount(){let e=this.$refs.dialogEl;e?.open&&(e.close(),t.enableRootScrolling(this.getScrollRoot())),this.previousActiveElement=null},methods:{hasFooterSlot(){return!!this.$slots.footer},getScrollRoot(){return t.returnFirstEl(this.$refs.dialogEl)?.getRootNode()?.host},syncDialogState(e){let n=this.$refs.dialogEl;n&&(e?(this.previousActiveElement=document.activeElement,n.open||(this.modal?n.showModal():n.show()),t.disableRootScrolling(this.getScrollRoot())):n.open&&t.enableRootScrolling(this.getScrollRoot()))},close(){this.$emit(`update:open`,!1)},onBackdropMousedown(e){this.mousedownOnBackdrop=e.target===e.currentTarget},onBackdropMouseup(e){this.mouseupOnBackdrop=e.target===e.currentTarget},onBackdropClick(e){let t=this.mousedownOnBackdrop&&this.mouseupOnBackdrop;this.closeOnClick&&e.target===e.currentTarget&&t&&this.close(),this.$emit(`click`,e)},onKeydown(e){!this.modal&&e.key===`Escape`&&!e.defaultPrevented&&(e.preventDefault(),this.close()),this.$emit(`keydown`,e)},async onAfterEnter(){this.$emit(`update:open`,!0),await this.setFocusAfterTransition()},onAfterLeave(){let e=this.$refs.dialogEl;e?.open&&e.close(),this.previousActiveElement?.focus(),this.previousActiveElement=null},focusFirstTabbable(e){let t=[...e.querySelectorAll(f)];if(!t.length)return;let n=t[0];n.matches(`[type="radio"]:not(:checked)`)&&(n=t.find(e=>e.checked&&e.name===n.name)||n),n.focus({preventScroll:!0})},async setFocusAfterTransition(){let e=this.$refs.dialogEl;if(e)if(await this.$nextTick(),this.initialFocusElement===`first`)this.focusFirstTabbable(e);else if(typeof this.initialFocusElement==`string`&&this.initialFocusElement.startsWith(`#`)){let t=e.querySelector(this.initialFocusElement);t?t.focus():(console.warn(`Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.`),this.focusFirstTabbable(e))}else this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()}}},m=[`aria-modal`,`aria-describedby`,`aria-labelledby`],h=[`id`];function g(e,t,n,r,i,a){let o=(0,u.resolveComponent)(`dt-text`),s=(0,u.resolveComponent)(`sr-only-close-button`),c=(0,u.resolveComponent)(`dt-icon-close`),l=(0,u.resolveComponent)(`dt-button`),d=(0,u.resolveDirective)(`dt-focustrap`);return(0,u.openBlock)(),(0,u.createBlock)(u.Teleport,{disabled:!n.appendTo&&!i.autoTeleportTarget,to:n.appendTo||i.autoTeleportTarget},[(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)(`dialog`,(0,u.mergeProps)({ref:`dialogEl`,class:[`d-modal`,i.MODAL_KIND_MODIFIERS[n.kind],{"d-modal--full":n.fullscreen},{"d-modal--transparent-backdrop":n.transparentBackdrop},n.modalClass],"data-qa":`dt-modal`,"aria-modal":n.modal?`true`:void 0,"aria-describedby":n.describedById||void 0,"aria-labelledby":n.labelledById},e.modeAttrs,{onCancel:t[0]||(t[0]=(0,u.withModifiers)((...e)=>a.close&&a.close(...e),[`prevent`])),onMousedown:t[1]||(t[1]=(...e)=>a.onBackdropMousedown&&a.onBackdropMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>a.onBackdropMouseup&&a.onBackdropMouseup(...e)),onClick:t[3]||(t[3]=(...e)=>a.onBackdropClick&&a.onBackdropClick(...e)),onKeydown:t[4]||(t[4]=(...e)=>a.onKeydown&&a.onKeydown(...e))}),[n.open&&(i.hasSlotContent(e.$slots.banner)||n.bannerHeaderText)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,"data-qa":`dt-modal-banner`,class:(0,u.normalizeClass)([`d-modal__banner`,n.bannerClass,a.bannerKindClass])},[(0,u.renderSlot)(e.$slots,`banner`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(n.bannerHeaderText),1)])],2)):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(u.Transition,{appear:n.open,name:`d-modal__dialog`,onAfterEnter:a.onAfterEnter,onAfterLeave:a.onAfterLeave},{default:(0,u.withCtx)(()=>[(0,u.withDirectives)((0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`d-modal__dialog`,{"d-modal__dialog--scrollable":n.fixedHeaderFooter},n.dialogClass])},[i.hasSlotContent(e.$slots.header)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,id:n.labelledById,class:(0,u.normalizeClass)([`d-modal__header`,n.headerClass]),"data-qa":`dt-modal-title`},[(0,u.renderSlot)(e.$slots,`header`)],10,h)):((0,u.openBlock)(),(0,u.createBlock)(o,{key:1,id:n.labelledById,kind:`headline`,size:600,strength:`medium`,density:`100`,"text-box-trim":`start`,as:`h2`,class:(0,u.normalizeClass)([`d-modal__header`,n.headerClass]),"data-qa":`dt-modal-title`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(n.headerText),1)]),_:1},8,[`id`,`class`])),i.hasSlotContent(e.$slots.default)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,class:(0,u.normalizeClass)([`d-modal__content`,n.contentClass]),"data-qa":`dt-modal-copy`},[(0,u.renderSlot)(e.$slots,`default`)],2)):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,{key:3,class:(0,u.normalizeClass)([`d-modal__content`,n.contentClass]),"data-qa":`dt-modal-copy`},(0,u.toDisplayString)(n.copy),3)),a.hasFooterSlot()?((0,u.openBlock)(),(0,u.createElementBlock)(`footer`,{key:4,class:(0,u.normalizeClass)([`d-modal__footer`,n.footerClass]),"data-qa":`dt-modal-footer`},[(0,u.renderSlot)(e.$slots,`footer`)],2)):(0,u.createCommentVNode)(``,!0),n.showClose?((0,u.openBlock)(),(0,u.createBlock)(l,{key:6,class:`d-modal__close`,"data-qa":`dt-modal-close-button`,size:300,kind:`muted`,importance:`clear`,"aria-label":a.closeButtonTitle,title:a.closeButtonTitle,onClick:a.close},{icon:(0,u.withCtx)(({iconSize:e})=>[(0,u.createVNode)(c,{size:e},null,8,[`size`])]),_:1},8,[`aria-label`,`title`,`onClick`])):((0,u.openBlock)(),(0,u.createBlock)(s,{key:5,onClose:a.close},null,8,[`onClose`]))],2),[[u.vShow,n.open]])]),_:3},8,[`appear`,`onAfterEnter`,`onAfterLeave`])],16,m)),[[d,{active:n.open,initialFocus:!1,restoreFocus:!1}]])],8,[`disabled`,`to`])}var _=n.t(p,[[`render`,g]]);exports.default=_;
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/mode.cjs`),i=require(`../notice/notice-constants.cjs`),a=require(`../../Text-BosPFEHO.cjs`),o=require(`../../localization/index.cjs`),s=require(`../button/button.cjs`),c=require(`../../shared/sr_only_close_button.cjs`),l=require(`./modal-constants.cjs`);let u=require(`vue`),d=require(`@dialpad/dialtone-icons/vue`);var f=`button:not(:disabled),[href],input:not(:disabled),select:not(:disabled),textarea:not(:disabled),details,[tabindex]:not([tabindex="-1"]):not(:disabled):not([aria-disabled="true"])`,p={name:`DtModal`,components:{DtButton:s.default,DtText:a.t,DtIconClose:d.DtIconClose,SrOnlyCloseButton:c.default},mixins:[r.default],props:{copy:{type:String,default:``},describedById:{type:String,default:``},labelledById:{type:String,default:function(){return t.m()}},open:{type:Boolean,default:!1},headerText:{type:String,default:void 0},bannerHeaderText:{type:String,default:void 0},kind:{type:String,default:`default`,validator:e=>Object.keys(l.MODAL_KIND_MODIFIERS).includes(e)},fullscreen:{type:Boolean,default:!1},modalClass:{type:[String,Object,Array],default:``},dialogClass:{type:[String,Object,Array],default:``},contentClass:{type:[String,Object,Array],default:``},bannerKind:{type:String,default:`warning`,validator(e){return i.NOTICE_KINDS.includes(e)}},bannerClass:{type:[String,Object,Array],default:``},headerClass:{type:[String,Object,Array],default:``},footerClass:{type:[String,Object,Array],default:``},showClose:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0},initialFocusElement:{type:[String,e.HTML_ELEMENT_TYPE],default:`first`,validator:e=>e===`first`||e instanceof HTMLElement||e.startsWith(`#`)},appendTo:{type:String,default:void 0},transparentBackdrop:{type:Boolean,default:!1},modal:{type:Boolean,default:!1}},emits:[`click`,`keydown`,`update:open`],data(){return{MODAL_KIND_MODIFIERS:l.MODAL_KIND_MODIFIERS,MODAL_BANNER_KINDS:l.MODAL_BANNER_KINDS,hasSlotContent:t._,i18n:new o.DialtoneLocalization,autoTeleportTarget:null,mousedownOnBackdrop:!1,mouseupOnBackdrop:!1}},computed:{bannerKindClass(){return l.MODAL_BANNER_KINDS[this.bannerKind]},closeButtonTitle(){return this.i18n.$t(`DIALTONE_CLOSE_BUTTON`)}},watch:{open(e){this.syncDialogState(e)}},mounted(){if(!this.appendTo){let e=this.$el?.getRootNode();if(e instanceof ShadowRoot){this.autoTeleportTarget=e,this.open&&this.$nextTick(()=>{this.open&&this.syncDialogState(!0)});return}}this.open&&this.syncDialogState(!0)},beforeUnmount(){let e=this.$refs.dialogEl;e?.open&&e.close(),t.i(this._scrollLockRoot,this),this.previousActiveElement=null},methods:{hasFooterSlot(){return!!this.$slots.footer},getScrollRoot(){return t.O(this.$refs.dialogEl)?.getRootNode()?.host},syncDialogState(e){let n=this.$refs.dialogEl;n&&(e?(this.previousActiveElement=document.activeElement,n.open||(this.modal?n.showModal():n.show()),this._scrollLockRoot=this.getScrollRoot(),t.r(this._scrollLockRoot,this)):t.i(this._scrollLockRoot,this))},close(){this.$emit(`update:open`,!1)},onBackdropMousedown(e){this.mousedownOnBackdrop=e.target===e.currentTarget},onBackdropMouseup(e){this.mouseupOnBackdrop=e.target===e.currentTarget},onBackdropClick(e){let t=this.mousedownOnBackdrop&&this.mouseupOnBackdrop;this.closeOnClick&&e.target===e.currentTarget&&t&&this.close(),this.$emit(`click`,e)},onKeydown(e){!this.modal&&e.key===`Escape`&&!e.defaultPrevented&&(e.preventDefault(),this.close()),this.$emit(`keydown`,e)},async onAfterEnter(){this.$emit(`update:open`,!0),await this.setFocusAfterTransition()},onAfterLeave(){let e=this.$refs.dialogEl;e?.open&&e.close(),this.previousActiveElement?.focus(),this.previousActiveElement=null},focusFirstTabbable(e){let t=[...e.querySelectorAll(f)];if(!t.length)return;let n=t[0];n.matches(`[type="radio"]:not(:checked)`)&&(n=t.find(e=>e.checked&&e.name===n.name)||n),n.focus({preventScroll:!0})},async setFocusAfterTransition(){let e=this.$refs.dialogEl;if(e)if(await this.$nextTick(),this.initialFocusElement===`first`)this.focusFirstTabbable(e);else if(typeof this.initialFocusElement==`string`&&this.initialFocusElement.startsWith(`#`)){let t=e.querySelector(this.initialFocusElement);t?t.focus():(console.warn(`Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.`),this.focusFirstTabbable(e))}else this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()}}},m=[`aria-modal`,`aria-describedby`,`aria-labelledby`],h=[`id`];function g(e,t,n,r,i,a){let o=(0,u.resolveComponent)(`dt-text`),s=(0,u.resolveComponent)(`sr-only-close-button`),c=(0,u.resolveComponent)(`dt-icon-close`),l=(0,u.resolveComponent)(`dt-button`),d=(0,u.resolveDirective)(`dt-focustrap`);return(0,u.openBlock)(),(0,u.createBlock)(u.Teleport,{disabled:!n.appendTo&&!i.autoTeleportTarget,to:n.appendTo||i.autoTeleportTarget},[(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)(`dialog`,(0,u.mergeProps)({ref:`dialogEl`,class:[`d-modal`,i.MODAL_KIND_MODIFIERS[n.kind],{"d-modal--full":n.fullscreen},{"d-modal--transparent-backdrop":n.transparentBackdrop},n.modalClass],"data-qa":`dt-modal`,"aria-modal":n.modal?`true`:void 0,"aria-describedby":n.describedById||void 0,"aria-labelledby":n.labelledById},e.modeAttrs,{onCancel:t[0]||(t[0]=(0,u.withModifiers)((...e)=>a.close&&a.close(...e),[`prevent`])),onMousedown:t[1]||(t[1]=(...e)=>a.onBackdropMousedown&&a.onBackdropMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>a.onBackdropMouseup&&a.onBackdropMouseup(...e)),onClick:t[3]||(t[3]=(...e)=>a.onBackdropClick&&a.onBackdropClick(...e)),onKeydown:t[4]||(t[4]=(...e)=>a.onKeydown&&a.onKeydown(...e))}),[n.open&&(i.hasSlotContent(e.$slots.banner)||n.bannerHeaderText)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,"data-qa":`dt-modal-banner`,class:(0,u.normalizeClass)([`d-modal__banner`,n.bannerClass,a.bannerKindClass])},[(0,u.renderSlot)(e.$slots,`banner`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(n.bannerHeaderText),1)])],2)):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(u.Transition,{appear:n.open,name:`d-modal__dialog`,onAfterEnter:a.onAfterEnter,onAfterLeave:a.onAfterLeave},{default:(0,u.withCtx)(()=>[(0,u.withDirectives)((0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`d-modal__dialog`,{"d-modal__dialog--scrollable":n.fixedHeaderFooter},n.dialogClass])},[i.hasSlotContent(e.$slots.header)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,id:n.labelledById,class:(0,u.normalizeClass)([`d-modal__header`,n.headerClass]),"data-qa":`dt-modal-title`},[(0,u.renderSlot)(e.$slots,`header`)],10,h)):((0,u.openBlock)(),(0,u.createBlock)(o,{key:1,id:n.labelledById,kind:`headline`,size:600,strength:`medium`,density:`100`,"text-box-trim":`start`,as:`h2`,class:(0,u.normalizeClass)([`d-modal__header`,n.headerClass]),"data-qa":`dt-modal-title`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(n.headerText),1)]),_:1},8,[`id`,`class`])),i.hasSlotContent(e.$slots.default)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,class:(0,u.normalizeClass)([`d-modal__content`,n.contentClass]),"data-qa":`dt-modal-copy`},[(0,u.renderSlot)(e.$slots,`default`)],2)):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,{key:3,class:(0,u.normalizeClass)([`d-modal__content`,n.contentClass]),"data-qa":`dt-modal-copy`},(0,u.toDisplayString)(n.copy),3)),a.hasFooterSlot()?((0,u.openBlock)(),(0,u.createElementBlock)(`footer`,{key:4,class:(0,u.normalizeClass)([`d-modal__footer`,n.footerClass]),"data-qa":`dt-modal-footer`},[(0,u.renderSlot)(e.$slots,`footer`)],2)):(0,u.createCommentVNode)(``,!0),n.showClose?((0,u.openBlock)(),(0,u.createBlock)(l,{key:6,class:`d-modal__close`,"data-qa":`dt-modal-close-button`,size:300,kind:`muted`,importance:`clear`,"aria-label":a.closeButtonTitle,title:a.closeButtonTitle,onClick:a.close},{icon:(0,u.withCtx)(({iconSize:e})=>[(0,u.createVNode)(c,{size:e},null,8,[`size`])]),_:1},8,[`aria-label`,`title`,`onClick`])):((0,u.openBlock)(),(0,u.createBlock)(s,{key:5,onClose:a.close},null,8,[`onClose`]))],2),[[u.vShow,n.open]])]),_:3},8,[`appear`,`onAfterEnter`,`onAfterLeave`])],16,m)),[[d,{active:n.open,initialFocus:!1,restoreFocus:!1}]])],8,[`disabled`,`to`])}var _=n.t(p,[[`render`,g]]);exports.default=_;
2
2
  //# sourceMappingURL=modal.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.cjs","names":[],"sources":["../../../components/Modal/Modal.vue"],"sourcesContent":["<template>\n <teleport\n :disabled=\"!appendTo && !autoTeleportTarget\"\n :to=\"appendTo || autoTeleportTarget\"\n >\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <dialog\n ref=\"dialogEl\"\n v-dt-focustrap=\"{ active: open, initialFocus: false, restoreFocus: false }\"\n :class=\"[\n 'd-modal',\n MODAL_KIND_MODIFIERS[kind],\n { 'd-modal--full': fullscreen },\n { 'd-modal--transparent-backdrop': transparentBackdrop },\n modalClass,\n ]\"\n data-qa=\"dt-modal\"\n :aria-modal=\"modal ? 'true' : undefined\"\n :aria-describedby=\"describedById || undefined\"\n :aria-labelledby=\"labelledById\"\n v-bind=\"modeAttrs\"\n @cancel.prevent=\"close\"\n @mousedown=\"onBackdropMousedown\"\n @mouseup=\"onBackdropMouseup\"\n @click=\"onBackdropClick\"\n @keydown=\"onKeydown\"\n >\n <div\n v-if=\"open && (hasSlotContent($slots.banner) || bannerHeaderText)\"\n data-qa=\"dt-modal-banner\"\n :class=\"[\n 'd-modal__banner',\n bannerClass,\n bannerKindClass,\n ]\"\n >\n <!-- @slot Slot for the banner, defaults to bannerHeaderText prop -->\n <slot name=\"banner\">\n {{ bannerHeaderText }}\n </slot>\n </div>\n <transition\n :appear=\"open\"\n name=\"d-modal__dialog\"\n @after-enter=\"onAfterEnter\"\n @after-leave=\"onAfterLeave\"\n >\n <div\n v-show=\"open\"\n :class=\"[\n 'd-modal__dialog',\n { 'd-modal__dialog--scrollable': fixedHeaderFooter },\n dialogClass,\n ]\"\n >\n <div\n v-if=\"hasSlotContent($slots.header)\"\n :id=\"labelledById\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n <!-- @slot Slot for dialog header section, taking the place of any \"headerText\" text prop -->\n <slot name=\"header\" />\n </div>\n <dt-text\n v-else\n :id=\"labelledById\"\n kind=\"headline\"\n :size=\"600\"\n strength=\"medium\"\n density=\"100\"\n text-box-trim=\"start\"\n as=\"h2\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n {{ headerText }}\n </dt-text>\n <div\n v-if=\"hasSlotContent($slots.default)\"\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n <!-- @slot Default slot for dialog body section, taking the place of any \"copy\" text prop -->\n <slot />\n </div>\n <p\n v-else\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n {{ copy }}\n </p>\n <footer\n v-if=\"hasFooterSlot()\"\n :class=\"['d-modal__footer', footerClass]\"\n data-qa=\"dt-modal-footer\"\n >\n <!-- @slot Slot for dialog footer content, often containing cancel and confirm buttons. -->\n <slot name=\"footer\" />\n </footer>\n <sr-only-close-button\n v-if=\"!showClose\"\n @close=\"close\"\n />\n <dt-button\n v-else\n class=\"d-modal__close\"\n data-qa=\"dt-modal-close-button\"\n :size=\"300\"\n kind=\"muted\"\n importance=\"clear\"\n :aria-label=\"closeButtonTitle\"\n :title=\"closeButtonTitle\"\n @click=\"close\"\n >\n <template #icon=\"{ iconSize }\">\n <dt-icon-close\n :size=\"iconSize\"\n />\n </template>\n </dt-button>\n </div>\n </transition>\n </dialog>\n </teleport>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { DtButton } from '@/components/Button';\nimport { DtText } from '@/components/Text';\nimport { DtIconClose } from '@dialpad/dialtone-icons/vue';\nimport ModeMixin from '@/common/mixins/mode';\nimport {\n MODAL_BANNER_KINDS,\n MODAL_KIND_MODIFIERS,\n} from './ModalConstants';\nimport { getUniqueString, hasSlotContent, returnFirstEl, disableRootScrolling, enableRootScrolling } from '@/common/utils';\nimport { HTML_ELEMENT_TYPE } from '@/common/constants';\nimport SrOnlyCloseButton from '@/common/sr_only_close_button.vue';\nimport { NOTICE_KINDS } from '@/components/Notice';\nimport { DialtoneLocalization } from '@/localization';\n\nconst focusableSelector = 'button:not(:disabled),[href],input:not(:disabled),select:not(:disabled),' +\n 'textarea:not(:disabled),details,[tabindex]:not([tabindex=\"-1\"]):not(:disabled):not([aria-disabled=\"true\"])';\n\n/**\n * Modals focus the user's attention exclusively on one task or piece of information\n * via a window that sits on top of the page content.\n * @see https://dialtone.dialpad.com/components/modal.html\n */\nexport default {\n name: 'DtModal',\n\n components: {\n DtButton,\n DtText,\n DtIconClose,\n SrOnlyCloseButton,\n },\n\n mixins: [ModeMixin],\n\n props: {\n /**\n * Body text to display as the modal's main content.\n */\n copy: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-describedby.\n * Recommended only if the dialog content itself isn't enough to give full context,\n * as screen readers should recite the dialog contents by default before any aria-description.\n */\n describedById: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-labelledby.\n */\n labelledById: {\n type: String,\n default: function () { return getUniqueString(); },\n },\n\n /**\n * Whether the modal should be shown.\n * Parent component can sync on this value to control the modal's visibility.\n * @values true, false\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Header text to display in the modal header.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Header text to display in the modal banner.\n */\n bannerHeaderText: {\n type: String,\n default: undefined,\n },\n\n /**\n * The theme of the modal.\n * @values default, critical\n */\n kind: {\n type: String,\n default: 'default',\n validator: (k) => Object.keys(MODAL_KIND_MODIFIERS).includes(k),\n },\n\n /**\n * Whether the modal fills the viewport instead of rendering at its default size.\n * @values true, false\n */\n fullscreen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the root modal element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n modalClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the dialog element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n dialogClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the content element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n contentClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Sets the color of the banner.\n * @values base, critical, info, positive, warning\n */\n bannerKind: {\n type: String,\n default: 'warning',\n validator (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Additional class name for the banner element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n bannerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the header element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n headerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the footer element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n footerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Shows the close button on the modal\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the modal will close when you click outside of the dialog on the overlay.\n * @values true, false\n */\n closeOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Scrollable modal that allows scroll the modal content keeping the header and footer fixed\n * @values true, false\n */\n fixedHeaderFooter: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The element that is focused when the modal is opened. This can be an\n * HTMLElement within the modal, a string starting with '#' which will\n * find the element by ID. 'first' which will automatically focus\n * the first element, or 'dialog' which will focus the dialog window itself.\n * If the dialog is modal this prop cannot be 'none'.\n */\n initialFocusElement: {\n type: [String, HTML_ELEMENT_TYPE],\n default: 'first',\n validator: initialFocusElement => {\n return initialFocusElement === 'first' ||\n (initialFocusElement instanceof HTMLElement) ||\n initialFocusElement.startsWith('#');\n },\n },\n\n /**\n * A CSS selector string for the element to portal the modal to. If not provided, the modal will be rendered in its default location.\n */\n appendTo: {\n type: String,\n default: undefined,\n },\n\n /**\n * When true, the surrounding backdrop is rendered fully transparent\n * instead of the default dimming overlay. The dialog box itself\n * remains opaque. Useful when the underlying UI should remain visible.\n * @values true, false\n */\n transparentBackdrop: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When true, the dialog opens with showModal(), which promotes it to the browser\n * top layer. Nothing outside the top layer can paint above it regardless of\n * z-index, so application surfaces such as toasts and call notifications end up\n * behind it. When false, it opens with show() and stays in the normal stacking\n * order, where the Dialtone z-index scale applies and --zi-notification (700)\n * outranks --zi-modal (600) as documented.\n *\n * Focus trapping, scroll locking and Esc-to-close behave identically in both\n * modes. Background inertness does not: only the top layer provides it, so with\n * modal unset the page outside the dialog stays reachable. That is deliberate —\n * it is what lets an application's own overlays remain usable above a modal —\n * and keyboard containment still comes from the focus trap.\n * @values true, false\n */\n modal: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Native button click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * The modal will emit a \"false\" boolean value for this event when the user performs a modal-closing action.\n * Parent components can sync on this value to create a 2-way binding to control modal visibility.\n *\n * @event update:open\n * @type {Boolean}\n */\n 'update:open',\n ],\n\n data () {\n return {\n MODAL_KIND_MODIFIERS,\n MODAL_BANNER_KINDS,\n hasSlotContent,\n i18n: new DialtoneLocalization(),\n autoTeleportTarget: null,\n mousedownOnBackdrop: false,\n mouseupOnBackdrop: false,\n };\n },\n\n computed: {\n bannerKindClass () {\n return MODAL_BANNER_KINDS[this.bannerKind];\n },\n\n closeButtonTitle () {\n return this.i18n.$t('DIALTONE_CLOSE_BUTTON');\n },\n },\n\n watch: {\n open (isShowing) {\n this.syncDialogState(isShowing);\n },\n },\n\n mounted () {\n if (!this.appendTo) {\n const root = this.$el?.getRootNode();\n if (root instanceof ShadowRoot) {\n this.autoTeleportTarget = root;\n // Defer syncDialogState so the teleport renders inside the shadow root first.\n if (this.open) this.$nextTick(() => { if (this.open) this.syncDialogState(true); });\n return;\n }\n }\n if (this.open) {\n this.syncDialogState(true);\n }\n },\n\n beforeUnmount () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) {\n dialogEl.close();\n enableRootScrolling(this.getScrollRoot());\n }\n this.previousActiveElement = null;\n },\n\n methods: {\n // Reads $slots, which is not reactive, so it must not be cached as a computed.\n hasFooterSlot () {\n return !!this.$slots.footer;\n },\n\n getScrollRoot () {\n return returnFirstEl(this.$refs.dialogEl)?.getRootNode()?.host;\n },\n\n syncDialogState (isShowing) {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n if (isShowing) {\n this.previousActiveElement = document.activeElement;\n if (!dialogEl.open) {\n // show() leaves the dialog in the normal stacking order instead of the\n // top layer, where the z-index scale still applies.\n if (this.modal) dialogEl.showModal(); else dialogEl.show();\n }\n disableRootScrolling(this.getScrollRoot());\n } else if (dialogEl.open) {\n // Leave transition plays via v-show on inner content.\n // close() is called in onAfterLeave when transition completes.\n enableRootScrolling(this.getScrollRoot());\n }\n },\n\n\n\n close () {\n this.$emit('update:open', false);\n },\n\n onBackdropMousedown (event) {\n this.mousedownOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropMouseup (event) {\n this.mouseupOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropClick (event) {\n const pressedAndReleasedOnBackdrop = this.mousedownOnBackdrop && this.mouseupOnBackdrop;\n if (this.closeOnClick && event.target === event.currentTarget && pressedAndReleasedOnBackdrop) {\n this.close();\n }\n this.$emit('click', event);\n },\n\n onKeydown (event) {\n // The native cancel event only fires for dialogs opened with showModal(), so\n // Esc has to be handled explicitly to keep dismissal identical in both modes.\n // defaultPrevented means a nested widget (dropdown, combobox) already consumed\n // it to close itself, and the modal must not close out from under it.\n if (!this.modal && event.key === 'Escape' && !event.defaultPrevented) {\n event.preventDefault();\n this.close();\n }\n this.$emit('keydown', event);\n },\n\n async onAfterEnter () {\n this.$emit('update:open', true);\n await this.setFocusAfterTransition();\n },\n\n onAfterLeave () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) {\n dialogEl.close();\n }\n this.previousActiveElement?.focus();\n this.previousActiveElement = null;\n },\n\n focusFirstTabbable (container) {\n const focusable = [...container.querySelectorAll(focusableSelector)];\n if (!focusable.length) return;\n let target = focusable[0];\n // If first focusable is an unchecked radio, prefer the checked radio in the same group.\n if (target.matches('[type=\"radio\"]:not(:checked)')) {\n target = focusable.find(el => el.checked && el.name === target.name) || target;\n }\n target.focus({ preventScroll: true });\n },\n\n async setFocusAfterTransition () {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n await this.$nextTick();\n\n if (this.initialFocusElement === 'first') {\n this.focusFirstTabbable(dialogEl);\n } else if (typeof this.initialFocusElement === 'string' && this.initialFocusElement.startsWith('#')) {\n const el = dialogEl.querySelector(this.initialFocusElement);\n if (el) {\n el.focus();\n } else {\n // eslint-disable-next-line no-console\n console.warn('Could not find the element specified in dt-modal prop \"initialFocusElement\". ' +\n 'Defaulting to focusing the first element.');\n this.focusFirstTabbable(dialogEl);\n }\n } else if (this.initialFocusElement instanceof HTMLElement) {\n this.initialFocusElement.focus();\n }\n },\n },\n};\n</script>\n"],"mappings":"snBAsJA,IAAM,EAAoB,qLAQrB,EAAU,CACb,KAAM,UAEN,WAAY,CACV,SAAA,EAAA,QACA,OAAA,EAAA,EACA,YAAA,EAAA,YACA,kBAAA,EAAA,QACD,CAED,OAAQ,CAAC,EAAA,QAAU,CAEnB,MAAO,CAIL,KAAM,CACJ,KAAM,OACN,QAAS,GACV,CAOD,cAAe,CACb,KAAM,OACN,QAAS,GACV,CAKD,aAAc,CACZ,KAAM,OACN,QAAS,UAAY,CAAE,OAAO,EAAA,iBAAiB,EAChD,CAOD,KAAM,CACJ,KAAM,QACN,QAAS,GACV,CAKD,WAAY,CACV,KAAM,OACN,QAAS,IAAA,GACV,CAKD,iBAAkB,CAChB,KAAM,OACN,QAAS,IAAA,GACV,CAMD,KAAM,CACJ,KAAM,OACN,QAAS,UACT,UAAY,GAAM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AAA,UAGP,CAHe,cAAQ,EAAA,EAAA,EAAA,aAGvB,EAAA,CADC,KAAM,EAAQ,CAAA,KAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA,6CAhBZ,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,aAEP,EAAA,OADC,QAAO,EAAA,0CA7DF,EAAA,KAAI,CAAA,CAAA,CAAA,CAAA,sEAxCU,EAAA,KAAI,aAAA,GAAA,aAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,WAAA,KAAA,CAAA"}
1
+ {"version":3,"file":"modal.cjs","names":[],"sources":["../../../components/Modal/Modal.vue"],"sourcesContent":["<template>\n <teleport\n :disabled=\"!appendTo && !autoTeleportTarget\"\n :to=\"appendTo || autoTeleportTarget\"\n >\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <dialog\n ref=\"dialogEl\"\n v-dt-focustrap=\"{ active: open, initialFocus: false, restoreFocus: false }\"\n :class=\"[\n 'd-modal',\n MODAL_KIND_MODIFIERS[kind],\n { 'd-modal--full': fullscreen },\n { 'd-modal--transparent-backdrop': transparentBackdrop },\n modalClass,\n ]\"\n data-qa=\"dt-modal\"\n :aria-modal=\"modal ? 'true' : undefined\"\n :aria-describedby=\"describedById || undefined\"\n :aria-labelledby=\"labelledById\"\n v-bind=\"modeAttrs\"\n @cancel.prevent=\"close\"\n @mousedown=\"onBackdropMousedown\"\n @mouseup=\"onBackdropMouseup\"\n @click=\"onBackdropClick\"\n @keydown=\"onKeydown\"\n >\n <div\n v-if=\"open && (hasSlotContent($slots.banner) || bannerHeaderText)\"\n data-qa=\"dt-modal-banner\"\n :class=\"[\n 'd-modal__banner',\n bannerClass,\n bannerKindClass,\n ]\"\n >\n <!-- @slot Slot for the banner, defaults to bannerHeaderText prop -->\n <slot name=\"banner\">\n {{ bannerHeaderText }}\n </slot>\n </div>\n <transition\n :appear=\"open\"\n name=\"d-modal__dialog\"\n @after-enter=\"onAfterEnter\"\n @after-leave=\"onAfterLeave\"\n >\n <div\n v-show=\"open\"\n :class=\"[\n 'd-modal__dialog',\n { 'd-modal__dialog--scrollable': fixedHeaderFooter },\n dialogClass,\n ]\"\n >\n <div\n v-if=\"hasSlotContent($slots.header)\"\n :id=\"labelledById\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n <!-- @slot Slot for dialog header section, taking the place of any \"headerText\" text prop -->\n <slot name=\"header\" />\n </div>\n <dt-text\n v-else\n :id=\"labelledById\"\n kind=\"headline\"\n :size=\"600\"\n strength=\"medium\"\n density=\"100\"\n text-box-trim=\"start\"\n as=\"h2\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n {{ headerText }}\n </dt-text>\n <div\n v-if=\"hasSlotContent($slots.default)\"\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n <!-- @slot Default slot for dialog body section, taking the place of any \"copy\" text prop -->\n <slot />\n </div>\n <p\n v-else\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n {{ copy }}\n </p>\n <footer\n v-if=\"hasFooterSlot()\"\n :class=\"['d-modal__footer', footerClass]\"\n data-qa=\"dt-modal-footer\"\n >\n <!-- @slot Slot for dialog footer content, often containing cancel and confirm buttons. -->\n <slot name=\"footer\" />\n </footer>\n <sr-only-close-button\n v-if=\"!showClose\"\n @close=\"close\"\n />\n <dt-button\n v-else\n class=\"d-modal__close\"\n data-qa=\"dt-modal-close-button\"\n :size=\"300\"\n kind=\"muted\"\n importance=\"clear\"\n :aria-label=\"closeButtonTitle\"\n :title=\"closeButtonTitle\"\n @click=\"close\"\n >\n <template #icon=\"{ iconSize }\">\n <dt-icon-close\n :size=\"iconSize\"\n />\n </template>\n </dt-button>\n </div>\n </transition>\n </dialog>\n </teleport>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { DtButton } from '@/components/Button';\nimport { DtText } from '@/components/Text';\nimport { DtIconClose } from '@dialpad/dialtone-icons/vue';\nimport ModeMixin from '@/common/mixins/mode';\nimport {\n MODAL_BANNER_KINDS,\n MODAL_KIND_MODIFIERS,\n} from './ModalConstants';\nimport { getUniqueString, hasSlotContent, returnFirstEl, disableRootScrolling, enableRootScrolling } from '@/common/utils';\nimport { HTML_ELEMENT_TYPE } from '@/common/constants';\nimport SrOnlyCloseButton from '@/common/sr_only_close_button.vue';\nimport { NOTICE_KINDS } from '@/components/Notice';\nimport { DialtoneLocalization } from '@/localization';\n\nconst focusableSelector = 'button:not(:disabled),[href],input:not(:disabled),select:not(:disabled),' +\n 'textarea:not(:disabled),details,[tabindex]:not([tabindex=\"-1\"]):not(:disabled):not([aria-disabled=\"true\"])';\n\n/**\n * Modals focus the user's attention exclusively on one task or piece of information\n * via a window that sits on top of the page content.\n * @see https://dialtone.dialpad.com/components/modal.html\n */\nexport default {\n name: 'DtModal',\n\n components: {\n DtButton,\n DtText,\n DtIconClose,\n SrOnlyCloseButton,\n },\n\n mixins: [ModeMixin],\n\n props: {\n /**\n * Body text to display as the modal's main content.\n */\n copy: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-describedby.\n * Recommended only if the dialog content itself isn't enough to give full context,\n * as screen readers should recite the dialog contents by default before any aria-description.\n */\n describedById: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-labelledby.\n */\n labelledById: {\n type: String,\n default: function () { return getUniqueString(); },\n },\n\n /**\n * Whether the modal should be shown.\n * Parent component can sync on this value to control the modal's visibility.\n * @values true, false\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Header text to display in the modal header.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Header text to display in the modal banner.\n */\n bannerHeaderText: {\n type: String,\n default: undefined,\n },\n\n /**\n * The theme of the modal.\n * @values default, critical\n */\n kind: {\n type: String,\n default: 'default',\n validator: (k) => Object.keys(MODAL_KIND_MODIFIERS).includes(k),\n },\n\n /**\n * Whether the modal fills the viewport instead of rendering at its default size.\n * @values true, false\n */\n fullscreen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the root modal element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n modalClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the dialog element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n dialogClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the content element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n contentClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Sets the color of the banner.\n * @values base, critical, info, positive, warning\n */\n bannerKind: {\n type: String,\n default: 'warning',\n validator (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Additional class name for the banner element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n bannerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the header element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n headerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the footer element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n footerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Shows the close button on the modal\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the modal will close when you click outside of the dialog on the overlay.\n * @values true, false\n */\n closeOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Scrollable modal that allows scroll the modal content keeping the header and footer fixed\n * @values true, false\n */\n fixedHeaderFooter: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The element that is focused when the modal is opened. This can be an\n * HTMLElement within the modal, a string starting with '#' which will\n * find the element by ID. 'first' which will automatically focus\n * the first element, or 'dialog' which will focus the dialog window itself.\n * If the dialog is modal this prop cannot be 'none'.\n */\n initialFocusElement: {\n type: [String, HTML_ELEMENT_TYPE],\n default: 'first',\n validator: initialFocusElement => {\n return initialFocusElement === 'first' ||\n (initialFocusElement instanceof HTMLElement) ||\n initialFocusElement.startsWith('#');\n },\n },\n\n /**\n * A CSS selector string for the element to portal the modal to. If not provided, the modal will be rendered in its default location.\n */\n appendTo: {\n type: String,\n default: undefined,\n },\n\n /**\n * When true, the surrounding backdrop is rendered fully transparent\n * instead of the default dimming overlay. The dialog box itself\n * remains opaque. Useful when the underlying UI should remain visible.\n * @values true, false\n */\n transparentBackdrop: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When true, the dialog opens with showModal(), which promotes it to the browser\n * top layer. Nothing outside the top layer can paint above it regardless of\n * z-index, so application surfaces such as toasts and call notifications end up\n * behind it. When false, it opens with show() and stays in the normal stacking\n * order, where the Dialtone z-index scale applies and --zi-notification (700)\n * outranks --zi-modal (600) as documented.\n *\n * Focus trapping, scroll locking and Esc-to-close behave identically in both\n * modes. Background inertness does not: only the top layer provides it, so with\n * modal unset the page outside the dialog stays reachable. That is deliberate —\n * it is what lets an application's own overlays remain usable above a modal —\n * and keyboard containment still comes from the focus trap.\n * @values true, false\n */\n modal: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Native button click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * The modal will emit a \"false\" boolean value for this event when the user performs a modal-closing action.\n * Parent components can sync on this value to create a 2-way binding to control modal visibility.\n *\n * @event update:open\n * @type {Boolean}\n */\n 'update:open',\n ],\n\n data () {\n return {\n MODAL_KIND_MODIFIERS,\n MODAL_BANNER_KINDS,\n hasSlotContent,\n i18n: new DialtoneLocalization(),\n autoTeleportTarget: null,\n mousedownOnBackdrop: false,\n mouseupOnBackdrop: false,\n };\n },\n\n computed: {\n bannerKindClass () {\n return MODAL_BANNER_KINDS[this.bannerKind];\n },\n\n closeButtonTitle () {\n return this.i18n.$t('DIALTONE_CLOSE_BUTTON');\n },\n },\n\n watch: {\n open (isShowing) {\n this.syncDialogState(isShowing);\n },\n },\n\n mounted () {\n if (!this.appendTo) {\n const root = this.$el?.getRootNode();\n if (root instanceof ShadowRoot) {\n this.autoTeleportTarget = root;\n // Defer syncDialogState so the teleport renders inside the shadow root first.\n if (this.open) this.$nextTick(() => { if (this.open) this.syncDialogState(true); });\n return;\n }\n }\n if (this.open) {\n this.syncDialogState(true);\n }\n },\n\n beforeUnmount () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) dialogEl.close();\n enableRootScrolling(this._scrollLockRoot, this);\n this.previousActiveElement = null;\n },\n\n methods: {\n // Reads $slots, which is not reactive, so it must not be cached as a computed.\n hasFooterSlot () {\n return !!this.$slots.footer;\n },\n\n getScrollRoot () {\n return returnFirstEl(this.$refs.dialogEl)?.getRootNode()?.host;\n },\n\n syncDialogState (isShowing) {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n if (isShowing) {\n this.previousActiveElement = document.activeElement;\n if (!dialogEl.open) {\n // show() leaves the dialog in the normal stacking order instead of the\n // top layer, where the z-index scale still applies.\n if (this.modal) dialogEl.showModal(); else dialogEl.show();\n }\n // Release from the root locked here, even if the dialog has since been teleported elsewhere.\n this._scrollLockRoot = this.getScrollRoot();\n disableRootScrolling(this._scrollLockRoot, this);\n } else {\n // Leave transition plays via v-show on inner content.\n // close() is called in onAfterLeave when transition completes.\n // Release even if the dialog was already closed natively (e.g. a method=\"dialog\" form).\n enableRootScrolling(this._scrollLockRoot, this);\n }\n },\n\n\n\n close () {\n this.$emit('update:open', false);\n },\n\n onBackdropMousedown (event) {\n this.mousedownOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropMouseup (event) {\n this.mouseupOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropClick (event) {\n const pressedAndReleasedOnBackdrop = this.mousedownOnBackdrop && this.mouseupOnBackdrop;\n if (this.closeOnClick && event.target === event.currentTarget && pressedAndReleasedOnBackdrop) {\n this.close();\n }\n this.$emit('click', event);\n },\n\n onKeydown (event) {\n // The native cancel event only fires for dialogs opened with showModal(), so\n // Esc has to be handled explicitly to keep dismissal identical in both modes.\n // defaultPrevented means a nested widget (dropdown, combobox) already consumed\n // it to close itself, and the modal must not close out from under it.\n if (!this.modal && event.key === 'Escape' && !event.defaultPrevented) {\n event.preventDefault();\n this.close();\n }\n this.$emit('keydown', event);\n },\n\n async onAfterEnter () {\n this.$emit('update:open', true);\n await this.setFocusAfterTransition();\n },\n\n onAfterLeave () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) {\n dialogEl.close();\n }\n this.previousActiveElement?.focus();\n this.previousActiveElement = null;\n },\n\n focusFirstTabbable (container) {\n const focusable = [...container.querySelectorAll(focusableSelector)];\n if (!focusable.length) return;\n let target = focusable[0];\n // If first focusable is an unchecked radio, prefer the checked radio in the same group.\n if (target.matches('[type=\"radio\"]:not(:checked)')) {\n target = focusable.find(el => el.checked && el.name === target.name) || target;\n }\n target.focus({ preventScroll: true });\n },\n\n async setFocusAfterTransition () {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n await this.$nextTick();\n\n if (this.initialFocusElement === 'first') {\n this.focusFirstTabbable(dialogEl);\n } else if (typeof this.initialFocusElement === 'string' && this.initialFocusElement.startsWith('#')) {\n const el = dialogEl.querySelector(this.initialFocusElement);\n if (el) {\n el.focus();\n } else {\n // eslint-disable-next-line no-console\n console.warn('Could not find the element specified in dt-modal prop \"initialFocusElement\". ' +\n 'Defaulting to focusing the first element.');\n this.focusFirstTabbable(dialogEl);\n }\n } else if (this.initialFocusElement instanceof HTMLElement) {\n this.initialFocusElement.focus();\n }\n },\n },\n};\n</script>\n"],"mappings":"knBA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EAAA,EAAA,EAAA,oBAWN,IAAA,OAPD,OAAA,EAAA,EAAA,gBAAK,CAAA,mBAAoD,EAAA,aAAA,CAAA,CAI1D,UAAQ,uCAEL,EAAA,KAAI,CAAA,EAAA,EAGD,EAAA,eAAa,GAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAMZ,SAAA,OALN,OAAA,EAAA,EAAA,gBAAK,CAAA,kBAAsB,EAAA,YAAW,CAAA,CACvC,UAAQ,qCAGc,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,GAAA,EAAA,EAAA,oBAAA,GAAA,GAAA,CAGf,EAAA,+CAmBG,EAAA,OAdV,MAAM,iBACN,UAAQ,wBACP,KAAM,IACP,KAAK,QACL,WAAW,QACV,aAAY,EAAA,iBACZ,MAAO,EAAA,iBACP,QAAO,EAAA,QAEG,MAAA,EAAA,EAAA,UAGP,CAHe,cAAQ,EAAA,EAAA,EAAA,aAGvB,EAAA,CADC,KAAM,EAAQ,CAAA,KAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA,6CAhBZ,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,aAEP,EAAA,OADC,QAAO,EAAA,0CA7DF,EAAA,KAAI,CAAA,CAAA,CAAA,CAAA,sEAxCU,EAAA,KAAI,aAAA,GAAA,aAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,WAAA,KAAA,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import { HTML_ELEMENT_TYPE as e } from "../../common/constants/index.js";
2
- import { disableRootScrolling as t, enableRootScrolling as n, getUniqueString as r, hasSlotContent as i, returnFirstEl as a } from "../../common/utils/index.js";
3
- import { t as o } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { O as t, _ as n, i as r, m as i, r as a } from "../../utils-CXaaZqVu.js";
3
+ import { t as o } from "../../_plugin-vue_export-helper-B52Kst-M.js";
4
4
  import s from "../../common/mixins/mode.js";
5
5
  import { NOTICE_KINDS as c } from "../notice/notice-constants.js";
6
- import { t as l } from "../../Text-5MobHF6z.js";
6
+ import { t as l } from "../../Text-B6HaId2l.js";
7
7
  import { DialtoneLocalization as u } from "../../localization/index.js";
8
8
  import d from "../button/button.js";
9
9
  import f from "../../shared/sr_only_close_button.js";
@@ -32,7 +32,7 @@ var F = "button:not(:disabled),[href],input:not(:disabled),select:not(:disabled)
32
32
  labelledById: {
33
33
  type: String,
34
34
  default: function() {
35
- return r();
35
+ return i();
36
36
  }
37
37
  },
38
38
  open: {
@@ -150,7 +150,7 @@ var F = "button:not(:disabled),[href],input:not(:disabled),select:not(:disabled)
150
150
  return {
151
151
  MODAL_KIND_MODIFIERS: m,
152
152
  MODAL_BANNER_KINDS: p,
153
- hasSlotContent: i,
153
+ hasSlotContent: n,
154
154
  i18n: new u(),
155
155
  autoTeleportTarget: null,
156
156
  mousedownOnBackdrop: !1,
@@ -182,18 +182,18 @@ var F = "button:not(:disabled),[href],input:not(:disabled),select:not(:disabled)
182
182
  },
183
183
  beforeUnmount() {
184
184
  let e = this.$refs.dialogEl;
185
- e?.open && (e.close(), n(this.getScrollRoot())), this.previousActiveElement = null;
185
+ e?.open && e.close(), r(this._scrollLockRoot, this), this.previousActiveElement = null;
186
186
  },
187
187
  methods: {
188
188
  hasFooterSlot() {
189
189
  return !!this.$slots.footer;
190
190
  },
191
191
  getScrollRoot() {
192
- return a(this.$refs.dialogEl)?.getRootNode()?.host;
192
+ return t(this.$refs.dialogEl)?.getRootNode()?.host;
193
193
  },
194
194
  syncDialogState(e) {
195
- let r = this.$refs.dialogEl;
196
- r && (e ? (this.previousActiveElement = document.activeElement, r.open || (this.modal ? r.showModal() : r.show()), t(this.getScrollRoot())) : r.open && n(this.getScrollRoot()));
195
+ let t = this.$refs.dialogEl;
196
+ t && (e ? (this.previousActiveElement = document.activeElement, t.open || (this.modal ? t.showModal() : t.show()), this._scrollLockRoot = this.getScrollRoot(), a(this._scrollLockRoot, this)) : r(this._scrollLockRoot, this));
197
197
  },
198
198
  close() {
199
199
  this.$emit("update:open", !1);
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","names":[],"sources":["../../../components/Modal/Modal.vue"],"sourcesContent":["<template>\n <teleport\n :disabled=\"!appendTo && !autoTeleportTarget\"\n :to=\"appendTo || autoTeleportTarget\"\n >\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <dialog\n ref=\"dialogEl\"\n v-dt-focustrap=\"{ active: open, initialFocus: false, restoreFocus: false }\"\n :class=\"[\n 'd-modal',\n MODAL_KIND_MODIFIERS[kind],\n { 'd-modal--full': fullscreen },\n { 'd-modal--transparent-backdrop': transparentBackdrop },\n modalClass,\n ]\"\n data-qa=\"dt-modal\"\n :aria-modal=\"modal ? 'true' : undefined\"\n :aria-describedby=\"describedById || undefined\"\n :aria-labelledby=\"labelledById\"\n v-bind=\"modeAttrs\"\n @cancel.prevent=\"close\"\n @mousedown=\"onBackdropMousedown\"\n @mouseup=\"onBackdropMouseup\"\n @click=\"onBackdropClick\"\n @keydown=\"onKeydown\"\n >\n <div\n v-if=\"open && (hasSlotContent($slots.banner) || bannerHeaderText)\"\n data-qa=\"dt-modal-banner\"\n :class=\"[\n 'd-modal__banner',\n bannerClass,\n bannerKindClass,\n ]\"\n >\n <!-- @slot Slot for the banner, defaults to bannerHeaderText prop -->\n <slot name=\"banner\">\n {{ bannerHeaderText }}\n </slot>\n </div>\n <transition\n :appear=\"open\"\n name=\"d-modal__dialog\"\n @after-enter=\"onAfterEnter\"\n @after-leave=\"onAfterLeave\"\n >\n <div\n v-show=\"open\"\n :class=\"[\n 'd-modal__dialog',\n { 'd-modal__dialog--scrollable': fixedHeaderFooter },\n dialogClass,\n ]\"\n >\n <div\n v-if=\"hasSlotContent($slots.header)\"\n :id=\"labelledById\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n <!-- @slot Slot for dialog header section, taking the place of any \"headerText\" text prop -->\n <slot name=\"header\" />\n </div>\n <dt-text\n v-else\n :id=\"labelledById\"\n kind=\"headline\"\n :size=\"600\"\n strength=\"medium\"\n density=\"100\"\n text-box-trim=\"start\"\n as=\"h2\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n {{ headerText }}\n </dt-text>\n <div\n v-if=\"hasSlotContent($slots.default)\"\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n <!-- @slot Default slot for dialog body section, taking the place of any \"copy\" text prop -->\n <slot />\n </div>\n <p\n v-else\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n {{ copy }}\n </p>\n <footer\n v-if=\"hasFooterSlot()\"\n :class=\"['d-modal__footer', footerClass]\"\n data-qa=\"dt-modal-footer\"\n >\n <!-- @slot Slot for dialog footer content, often containing cancel and confirm buttons. -->\n <slot name=\"footer\" />\n </footer>\n <sr-only-close-button\n v-if=\"!showClose\"\n @close=\"close\"\n />\n <dt-button\n v-else\n class=\"d-modal__close\"\n data-qa=\"dt-modal-close-button\"\n :size=\"300\"\n kind=\"muted\"\n importance=\"clear\"\n :aria-label=\"closeButtonTitle\"\n :title=\"closeButtonTitle\"\n @click=\"close\"\n >\n <template #icon=\"{ iconSize }\">\n <dt-icon-close\n :size=\"iconSize\"\n />\n </template>\n </dt-button>\n </div>\n </transition>\n </dialog>\n </teleport>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { DtButton } from '@/components/Button';\nimport { DtText } from '@/components/Text';\nimport { DtIconClose } from '@dialpad/dialtone-icons/vue';\nimport ModeMixin from '@/common/mixins/mode';\nimport {\n MODAL_BANNER_KINDS,\n MODAL_KIND_MODIFIERS,\n} from './ModalConstants';\nimport { getUniqueString, hasSlotContent, returnFirstEl, disableRootScrolling, enableRootScrolling } from '@/common/utils';\nimport { HTML_ELEMENT_TYPE } from '@/common/constants';\nimport SrOnlyCloseButton from '@/common/sr_only_close_button.vue';\nimport { NOTICE_KINDS } from '@/components/Notice';\nimport { DialtoneLocalization } from '@/localization';\n\nconst focusableSelector = 'button:not(:disabled),[href],input:not(:disabled),select:not(:disabled),' +\n 'textarea:not(:disabled),details,[tabindex]:not([tabindex=\"-1\"]):not(:disabled):not([aria-disabled=\"true\"])';\n\n/**\n * Modals focus the user's attention exclusively on one task or piece of information\n * via a window that sits on top of the page content.\n * @see https://dialtone.dialpad.com/components/modal.html\n */\nexport default {\n name: 'DtModal',\n\n components: {\n DtButton,\n DtText,\n DtIconClose,\n SrOnlyCloseButton,\n },\n\n mixins: [ModeMixin],\n\n props: {\n /**\n * Body text to display as the modal's main content.\n */\n copy: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-describedby.\n * Recommended only if the dialog content itself isn't enough to give full context,\n * as screen readers should recite the dialog contents by default before any aria-description.\n */\n describedById: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-labelledby.\n */\n labelledById: {\n type: String,\n default: function () { return getUniqueString(); },\n },\n\n /**\n * Whether the modal should be shown.\n * Parent component can sync on this value to control the modal's visibility.\n * @values true, false\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Header text to display in the modal header.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Header text to display in the modal banner.\n */\n bannerHeaderText: {\n type: String,\n default: undefined,\n },\n\n /**\n * The theme of the modal.\n * @values default, critical\n */\n kind: {\n type: String,\n default: 'default',\n validator: (k) => Object.keys(MODAL_KIND_MODIFIERS).includes(k),\n },\n\n /**\n * Whether the modal fills the viewport instead of rendering at its default size.\n * @values true, false\n */\n fullscreen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the root modal element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n modalClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the dialog element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n dialogClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the content element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n contentClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Sets the color of the banner.\n * @values base, critical, info, positive, warning\n */\n bannerKind: {\n type: String,\n default: 'warning',\n validator (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Additional class name for the banner element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n bannerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the header element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n headerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the footer element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n footerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Shows the close button on the modal\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the modal will close when you click outside of the dialog on the overlay.\n * @values true, false\n */\n closeOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Scrollable modal that allows scroll the modal content keeping the header and footer fixed\n * @values true, false\n */\n fixedHeaderFooter: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The element that is focused when the modal is opened. This can be an\n * HTMLElement within the modal, a string starting with '#' which will\n * find the element by ID. 'first' which will automatically focus\n * the first element, or 'dialog' which will focus the dialog window itself.\n * If the dialog is modal this prop cannot be 'none'.\n */\n initialFocusElement: {\n type: [String, HTML_ELEMENT_TYPE],\n default: 'first',\n validator: initialFocusElement => {\n return initialFocusElement === 'first' ||\n (initialFocusElement instanceof HTMLElement) ||\n initialFocusElement.startsWith('#');\n },\n },\n\n /**\n * A CSS selector string for the element to portal the modal to. If not provided, the modal will be rendered in its default location.\n */\n appendTo: {\n type: String,\n default: undefined,\n },\n\n /**\n * When true, the surrounding backdrop is rendered fully transparent\n * instead of the default dimming overlay. The dialog box itself\n * remains opaque. Useful when the underlying UI should remain visible.\n * @values true, false\n */\n transparentBackdrop: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When true, the dialog opens with showModal(), which promotes it to the browser\n * top layer. Nothing outside the top layer can paint above it regardless of\n * z-index, so application surfaces such as toasts and call notifications end up\n * behind it. When false, it opens with show() and stays in the normal stacking\n * order, where the Dialtone z-index scale applies and --zi-notification (700)\n * outranks --zi-modal (600) as documented.\n *\n * Focus trapping, scroll locking and Esc-to-close behave identically in both\n * modes. Background inertness does not: only the top layer provides it, so with\n * modal unset the page outside the dialog stays reachable. That is deliberate —\n * it is what lets an application's own overlays remain usable above a modal —\n * and keyboard containment still comes from the focus trap.\n * @values true, false\n */\n modal: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Native button click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * The modal will emit a \"false\" boolean value for this event when the user performs a modal-closing action.\n * Parent components can sync on this value to create a 2-way binding to control modal visibility.\n *\n * @event update:open\n * @type {Boolean}\n */\n 'update:open',\n ],\n\n data () {\n return {\n MODAL_KIND_MODIFIERS,\n MODAL_BANNER_KINDS,\n hasSlotContent,\n i18n: new DialtoneLocalization(),\n autoTeleportTarget: null,\n mousedownOnBackdrop: false,\n mouseupOnBackdrop: false,\n };\n },\n\n computed: {\n bannerKindClass () {\n return MODAL_BANNER_KINDS[this.bannerKind];\n },\n\n closeButtonTitle () {\n return this.i18n.$t('DIALTONE_CLOSE_BUTTON');\n },\n },\n\n watch: {\n open (isShowing) {\n this.syncDialogState(isShowing);\n },\n },\n\n mounted () {\n if (!this.appendTo) {\n const root = this.$el?.getRootNode();\n if (root instanceof ShadowRoot) {\n this.autoTeleportTarget = root;\n // Defer syncDialogState so the teleport renders inside the shadow root first.\n if (this.open) this.$nextTick(() => { if (this.open) this.syncDialogState(true); });\n return;\n }\n }\n if (this.open) {\n this.syncDialogState(true);\n }\n },\n\n beforeUnmount () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) {\n dialogEl.close();\n enableRootScrolling(this.getScrollRoot());\n }\n this.previousActiveElement = null;\n },\n\n methods: {\n // Reads $slots, which is not reactive, so it must not be cached as a computed.\n hasFooterSlot () {\n return !!this.$slots.footer;\n },\n\n getScrollRoot () {\n return returnFirstEl(this.$refs.dialogEl)?.getRootNode()?.host;\n },\n\n syncDialogState (isShowing) {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n if (isShowing) {\n this.previousActiveElement = document.activeElement;\n if (!dialogEl.open) {\n // show() leaves the dialog in the normal stacking order instead of the\n // top layer, where the z-index scale still applies.\n if (this.modal) dialogEl.showModal(); else dialogEl.show();\n }\n disableRootScrolling(this.getScrollRoot());\n } else if (dialogEl.open) {\n // Leave transition plays via v-show on inner content.\n // close() is called in onAfterLeave when transition completes.\n enableRootScrolling(this.getScrollRoot());\n }\n },\n\n\n\n close () {\n this.$emit('update:open', false);\n },\n\n onBackdropMousedown (event) {\n this.mousedownOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropMouseup (event) {\n this.mouseupOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropClick (event) {\n const pressedAndReleasedOnBackdrop = this.mousedownOnBackdrop && this.mouseupOnBackdrop;\n if (this.closeOnClick && event.target === event.currentTarget && pressedAndReleasedOnBackdrop) {\n this.close();\n }\n this.$emit('click', event);\n },\n\n onKeydown (event) {\n // The native cancel event only fires for dialogs opened with showModal(), so\n // Esc has to be handled explicitly to keep dismissal identical in both modes.\n // defaultPrevented means a nested widget (dropdown, combobox) already consumed\n // it to close itself, and the modal must not close out from under it.\n if (!this.modal && event.key === 'Escape' && !event.defaultPrevented) {\n event.preventDefault();\n this.close();\n }\n this.$emit('keydown', event);\n },\n\n async onAfterEnter () {\n this.$emit('update:open', true);\n await this.setFocusAfterTransition();\n },\n\n onAfterLeave () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) {\n dialogEl.close();\n }\n this.previousActiveElement?.focus();\n this.previousActiveElement = null;\n },\n\n focusFirstTabbable (container) {\n const focusable = [...container.querySelectorAll(focusableSelector)];\n if (!focusable.length) return;\n let target = focusable[0];\n // If first focusable is an unchecked radio, prefer the checked radio in the same group.\n if (target.matches('[type=\"radio\"]:not(:checked)')) {\n target = focusable.find(el => el.checked && el.name === target.name) || target;\n }\n target.focus({ preventScroll: true });\n },\n\n async setFocusAfterTransition () {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n await this.$nextTick();\n\n if (this.initialFocusElement === 'first') {\n this.focusFirstTabbable(dialogEl);\n } else if (typeof this.initialFocusElement === 'string' && this.initialFocusElement.startsWith('#')) {\n const el = dialogEl.querySelector(this.initialFocusElement);\n if (el) {\n el.focus();\n } else {\n // eslint-disable-next-line no-console\n console.warn('Could not find the element specified in dt-modal prop \"initialFocusElement\". ' +\n 'Defaulting to focusing the first element.');\n this.focusFirstTabbable(dialogEl);\n }\n } else if (this.initialFocusElement instanceof HTMLElement) {\n this.initialFocusElement.focus();\n }\n },\n },\n};\n</script>\n"],"mappings":";;;;;;;;;;;;;AAsJA,IAAM,IAAoB,0LAQrB,IAAU;CACb,MAAM;CAEN,YAAY;EACV,UAAA;EACA,QAAA;EACA;EACA,mBAAA;EACD;CAED,QAAQ,CAAC,EAAU;CAEnB,OAAO;EAIL,MAAM;GACJ,MAAM;GACN,SAAS;GACV;EAOD,eAAe;GACb,MAAM;GACN,SAAS;GACV;EAKD,cAAc;GACZ,MAAM;GACN,SAAS,WAAY;AAAE,WAAO,GAAiB;;GAChD;EAOD,MAAM;GACJ,MAAM;GACN,SAAS;GACV;EAKD,YAAY;GACV,MAAM;GACN,SAAS,KAAA;GACV;EAKD,kBAAkB;GAChB,MAAM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,CAAA,EAAA,GAAA,CAAA,YAAA,KAAA,CAAA"}
1
+ {"version":3,"file":"modal.js","names":[],"sources":["../../../components/Modal/Modal.vue"],"sourcesContent":["<template>\n <teleport\n :disabled=\"!appendTo && !autoTeleportTarget\"\n :to=\"appendTo || autoTeleportTarget\"\n >\n <!-- eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -->\n <dialog\n ref=\"dialogEl\"\n v-dt-focustrap=\"{ active: open, initialFocus: false, restoreFocus: false }\"\n :class=\"[\n 'd-modal',\n MODAL_KIND_MODIFIERS[kind],\n { 'd-modal--full': fullscreen },\n { 'd-modal--transparent-backdrop': transparentBackdrop },\n modalClass,\n ]\"\n data-qa=\"dt-modal\"\n :aria-modal=\"modal ? 'true' : undefined\"\n :aria-describedby=\"describedById || undefined\"\n :aria-labelledby=\"labelledById\"\n v-bind=\"modeAttrs\"\n @cancel.prevent=\"close\"\n @mousedown=\"onBackdropMousedown\"\n @mouseup=\"onBackdropMouseup\"\n @click=\"onBackdropClick\"\n @keydown=\"onKeydown\"\n >\n <div\n v-if=\"open && (hasSlotContent($slots.banner) || bannerHeaderText)\"\n data-qa=\"dt-modal-banner\"\n :class=\"[\n 'd-modal__banner',\n bannerClass,\n bannerKindClass,\n ]\"\n >\n <!-- @slot Slot for the banner, defaults to bannerHeaderText prop -->\n <slot name=\"banner\">\n {{ bannerHeaderText }}\n </slot>\n </div>\n <transition\n :appear=\"open\"\n name=\"d-modal__dialog\"\n @after-enter=\"onAfterEnter\"\n @after-leave=\"onAfterLeave\"\n >\n <div\n v-show=\"open\"\n :class=\"[\n 'd-modal__dialog',\n { 'd-modal__dialog--scrollable': fixedHeaderFooter },\n dialogClass,\n ]\"\n >\n <div\n v-if=\"hasSlotContent($slots.header)\"\n :id=\"labelledById\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n <!-- @slot Slot for dialog header section, taking the place of any \"headerText\" text prop -->\n <slot name=\"header\" />\n </div>\n <dt-text\n v-else\n :id=\"labelledById\"\n kind=\"headline\"\n :size=\"600\"\n strength=\"medium\"\n density=\"100\"\n text-box-trim=\"start\"\n as=\"h2\"\n :class=\"['d-modal__header', headerClass]\"\n data-qa=\"dt-modal-title\"\n >\n {{ headerText }}\n </dt-text>\n <div\n v-if=\"hasSlotContent($slots.default)\"\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n <!-- @slot Default slot for dialog body section, taking the place of any \"copy\" text prop -->\n <slot />\n </div>\n <p\n v-else\n :class=\"[\n 'd-modal__content',\n contentClass,\n ]\"\n data-qa=\"dt-modal-copy\"\n >\n {{ copy }}\n </p>\n <footer\n v-if=\"hasFooterSlot()\"\n :class=\"['d-modal__footer', footerClass]\"\n data-qa=\"dt-modal-footer\"\n >\n <!-- @slot Slot for dialog footer content, often containing cancel and confirm buttons. -->\n <slot name=\"footer\" />\n </footer>\n <sr-only-close-button\n v-if=\"!showClose\"\n @close=\"close\"\n />\n <dt-button\n v-else\n class=\"d-modal__close\"\n data-qa=\"dt-modal-close-button\"\n :size=\"300\"\n kind=\"muted\"\n importance=\"clear\"\n :aria-label=\"closeButtonTitle\"\n :title=\"closeButtonTitle\"\n @click=\"close\"\n >\n <template #icon=\"{ iconSize }\">\n <dt-icon-close\n :size=\"iconSize\"\n />\n </template>\n </dt-button>\n </div>\n </transition>\n </dialog>\n </teleport>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { DtButton } from '@/components/Button';\nimport { DtText } from '@/components/Text';\nimport { DtIconClose } from '@dialpad/dialtone-icons/vue';\nimport ModeMixin from '@/common/mixins/mode';\nimport {\n MODAL_BANNER_KINDS,\n MODAL_KIND_MODIFIERS,\n} from './ModalConstants';\nimport { getUniqueString, hasSlotContent, returnFirstEl, disableRootScrolling, enableRootScrolling } from '@/common/utils';\nimport { HTML_ELEMENT_TYPE } from '@/common/constants';\nimport SrOnlyCloseButton from '@/common/sr_only_close_button.vue';\nimport { NOTICE_KINDS } from '@/components/Notice';\nimport { DialtoneLocalization } from '@/localization';\n\nconst focusableSelector = 'button:not(:disabled),[href],input:not(:disabled),select:not(:disabled),' +\n 'textarea:not(:disabled),details,[tabindex]:not([tabindex=\"-1\"]):not(:disabled):not([aria-disabled=\"true\"])';\n\n/**\n * Modals focus the user's attention exclusively on one task or piece of information\n * via a window that sits on top of the page content.\n * @see https://dialtone.dialpad.com/components/modal.html\n */\nexport default {\n name: 'DtModal',\n\n components: {\n DtButton,\n DtText,\n DtIconClose,\n SrOnlyCloseButton,\n },\n\n mixins: [ModeMixin],\n\n props: {\n /**\n * Body text to display as the modal's main content.\n */\n copy: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-describedby.\n * Recommended only if the dialog content itself isn't enough to give full context,\n * as screen readers should recite the dialog contents by default before any aria-description.\n */\n describedById: {\n type: String,\n default: '',\n },\n\n /**\n * Id to use for the dialog's aria-labelledby.\n */\n labelledById: {\n type: String,\n default: function () { return getUniqueString(); },\n },\n\n /**\n * Whether the modal should be shown.\n * Parent component can sync on this value to control the modal's visibility.\n * @values true, false\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Header text to display in the modal header.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Header text to display in the modal banner.\n */\n bannerHeaderText: {\n type: String,\n default: undefined,\n },\n\n /**\n * The theme of the modal.\n * @values default, critical\n */\n kind: {\n type: String,\n default: 'default',\n validator: (k) => Object.keys(MODAL_KIND_MODIFIERS).includes(k),\n },\n\n /**\n * Whether the modal fills the viewport instead of rendering at its default size.\n * @values true, false\n */\n fullscreen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the root modal element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n modalClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the dialog element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n dialogClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the content element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n contentClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Sets the color of the banner.\n * @values base, critical, info, positive, warning\n */\n bannerKind: {\n type: String,\n default: 'warning',\n validator (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Additional class name for the banner element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n bannerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the header element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n headerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the footer element within the modal.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n footerClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Shows the close button on the modal\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the modal will close when you click outside of the dialog on the overlay.\n * @values true, false\n */\n closeOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Scrollable modal that allows scroll the modal content keeping the header and footer fixed\n * @values true, false\n */\n fixedHeaderFooter: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The element that is focused when the modal is opened. This can be an\n * HTMLElement within the modal, a string starting with '#' which will\n * find the element by ID. 'first' which will automatically focus\n * the first element, or 'dialog' which will focus the dialog window itself.\n * If the dialog is modal this prop cannot be 'none'.\n */\n initialFocusElement: {\n type: [String, HTML_ELEMENT_TYPE],\n default: 'first',\n validator: initialFocusElement => {\n return initialFocusElement === 'first' ||\n (initialFocusElement instanceof HTMLElement) ||\n initialFocusElement.startsWith('#');\n },\n },\n\n /**\n * A CSS selector string for the element to portal the modal to. If not provided, the modal will be rendered in its default location.\n */\n appendTo: {\n type: String,\n default: undefined,\n },\n\n /**\n * When true, the surrounding backdrop is rendered fully transparent\n * instead of the default dimming overlay. The dialog box itself\n * remains opaque. Useful when the underlying UI should remain visible.\n * @values true, false\n */\n transparentBackdrop: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When true, the dialog opens with showModal(), which promotes it to the browser\n * top layer. Nothing outside the top layer can paint above it regardless of\n * z-index, so application surfaces such as toasts and call notifications end up\n * behind it. When false, it opens with show() and stays in the normal stacking\n * order, where the Dialtone z-index scale applies and --zi-notification (700)\n * outranks --zi-modal (600) as documented.\n *\n * Focus trapping, scroll locking and Esc-to-close behave identically in both\n * modes. Background inertness does not: only the top layer provides it, so with\n * modal unset the page outside the dialog stays reachable. That is deliberate —\n * it is what lets an application's own overlays remain usable above a modal —\n * and keyboard containment still comes from the focus trap.\n * @values true, false\n */\n modal: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Native button click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * The modal will emit a \"false\" boolean value for this event when the user performs a modal-closing action.\n * Parent components can sync on this value to create a 2-way binding to control modal visibility.\n *\n * @event update:open\n * @type {Boolean}\n */\n 'update:open',\n ],\n\n data () {\n return {\n MODAL_KIND_MODIFIERS,\n MODAL_BANNER_KINDS,\n hasSlotContent,\n i18n: new DialtoneLocalization(),\n autoTeleportTarget: null,\n mousedownOnBackdrop: false,\n mouseupOnBackdrop: false,\n };\n },\n\n computed: {\n bannerKindClass () {\n return MODAL_BANNER_KINDS[this.bannerKind];\n },\n\n closeButtonTitle () {\n return this.i18n.$t('DIALTONE_CLOSE_BUTTON');\n },\n },\n\n watch: {\n open (isShowing) {\n this.syncDialogState(isShowing);\n },\n },\n\n mounted () {\n if (!this.appendTo) {\n const root = this.$el?.getRootNode();\n if (root instanceof ShadowRoot) {\n this.autoTeleportTarget = root;\n // Defer syncDialogState so the teleport renders inside the shadow root first.\n if (this.open) this.$nextTick(() => { if (this.open) this.syncDialogState(true); });\n return;\n }\n }\n if (this.open) {\n this.syncDialogState(true);\n }\n },\n\n beforeUnmount () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) dialogEl.close();\n enableRootScrolling(this._scrollLockRoot, this);\n this.previousActiveElement = null;\n },\n\n methods: {\n // Reads $slots, which is not reactive, so it must not be cached as a computed.\n hasFooterSlot () {\n return !!this.$slots.footer;\n },\n\n getScrollRoot () {\n return returnFirstEl(this.$refs.dialogEl)?.getRootNode()?.host;\n },\n\n syncDialogState (isShowing) {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n if (isShowing) {\n this.previousActiveElement = document.activeElement;\n if (!dialogEl.open) {\n // show() leaves the dialog in the normal stacking order instead of the\n // top layer, where the z-index scale still applies.\n if (this.modal) dialogEl.showModal(); else dialogEl.show();\n }\n // Release from the root locked here, even if the dialog has since been teleported elsewhere.\n this._scrollLockRoot = this.getScrollRoot();\n disableRootScrolling(this._scrollLockRoot, this);\n } else {\n // Leave transition plays via v-show on inner content.\n // close() is called in onAfterLeave when transition completes.\n // Release even if the dialog was already closed natively (e.g. a method=\"dialog\" form).\n enableRootScrolling(this._scrollLockRoot, this);\n }\n },\n\n\n\n close () {\n this.$emit('update:open', false);\n },\n\n onBackdropMousedown (event) {\n this.mousedownOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropMouseup (event) {\n this.mouseupOnBackdrop = event.target === event.currentTarget;\n },\n\n onBackdropClick (event) {\n const pressedAndReleasedOnBackdrop = this.mousedownOnBackdrop && this.mouseupOnBackdrop;\n if (this.closeOnClick && event.target === event.currentTarget && pressedAndReleasedOnBackdrop) {\n this.close();\n }\n this.$emit('click', event);\n },\n\n onKeydown (event) {\n // The native cancel event only fires for dialogs opened with showModal(), so\n // Esc has to be handled explicitly to keep dismissal identical in both modes.\n // defaultPrevented means a nested widget (dropdown, combobox) already consumed\n // it to close itself, and the modal must not close out from under it.\n if (!this.modal && event.key === 'Escape' && !event.defaultPrevented) {\n event.preventDefault();\n this.close();\n }\n this.$emit('keydown', event);\n },\n\n async onAfterEnter () {\n this.$emit('update:open', true);\n await this.setFocusAfterTransition();\n },\n\n onAfterLeave () {\n const dialogEl = this.$refs.dialogEl;\n if (dialogEl?.open) {\n dialogEl.close();\n }\n this.previousActiveElement?.focus();\n this.previousActiveElement = null;\n },\n\n focusFirstTabbable (container) {\n const focusable = [...container.querySelectorAll(focusableSelector)];\n if (!focusable.length) return;\n let target = focusable[0];\n // If first focusable is an unchecked radio, prefer the checked radio in the same group.\n if (target.matches('[type=\"radio\"]:not(:checked)')) {\n target = focusable.find(el => el.checked && el.name === target.name) || target;\n }\n target.focus({ preventScroll: true });\n },\n\n async setFocusAfterTransition () {\n const dialogEl = this.$refs.dialogEl;\n if (!dialogEl) return;\n\n await this.$nextTick();\n\n if (this.initialFocusElement === 'first') {\n this.focusFirstTabbable(dialogEl);\n } else if (typeof this.initialFocusElement === 'string' && this.initialFocusElement.startsWith('#')) {\n const el = dialogEl.querySelector(this.initialFocusElement);\n if (el) {\n el.focus();\n } else {\n // eslint-disable-next-line no-console\n console.warn('Could not find the element specified in dt-modal prop \"initialFocusElement\". ' +\n 'Defaulting to focusing the first element.');\n this.focusFirstTabbable(dialogEl);\n }\n } else if (this.initialFocusElement instanceof HTMLElement) {\n this.initialFocusElement.focus();\n }\n },\n },\n};\n</script>\n"],"mappings":";;;;;;;;;;;;;AAsJA,IAAM,IAAoB,0LAQrB,IAAU;CACb,MAAM;CAEN,YAAY;EACV,UAAA;EACA,QAAA;EACA;EACA,mBAAA;EACD;CAED,QAAQ,CAAC,EAAU;CAEnB,OAAO;EAIL,MAAM;GACJ,MAAM;GACN,SAAS;GACV;EAOD,eAAe;GACb,MAAM;GACN,SAAS;GACV;EAKD,cAAc;GACZ,MAAM;GACN,SAAS,WAAY;AAAE,WAAO,GAAiB;;GAChD;EAOD,MAA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IADC,SAAO,EAAA;;cA7DF,EAAA,KAAI,CAAA,CAAA,CAAA,CAAA;;;;;;;UAxCU,EAAA;EAAI,cAAA;EAAA,cAAA;EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,YAAA,KAAA,CAAA"}
@@ -0,0 +1 @@
1
+ export * from '../../directives/mode_directive/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../mode_constants-CzYJW9ua.cjs`),t=require(`../mode-island/utils.cjs`);var n=e.n,r={inverted:`invert`},i={name:`dt-mode-directive`,install(e){let i=new WeakMap;e.directive(`dt-mode`,{mounted(e,t){if(t.value===!1)return;let n=o(e,a(t.arg));i.set(e,n)},updated(e,t){let n=i.get(e),r=t.value!==t.oldValue,l=a(t.arg),u=l!==n?.arg;if(!r&&!u||(c(n),s(e),i.delete(e),t.value===!1))return;let d=o(e,l);i.set(e,d)},unmounted(e){c(i.get(e)),s(e),i.delete(e)}});function a(e){return e?n.includes(e)?e:r[e]?(console.warn(`[DtModeDirective] Invalid mode "${e}". Did you mean "${r[e]}"? Falling back to "${r[e]}".`),r[e]):(console.warn(`[DtModeDirective] Invalid mode "${e}". Valid modes: ${n.join(`, `)}. Falling back to "invert".`),`invert`):`invert`}function o(e,n){let r={arg:n,contrastObserver:null,materialObserver:null,modeObserver:null};if(e.setAttribute(`data-dt-contrast`,t.getRootContrast()),r.contrastObserver=new MutationObserver(()=>{e.setAttribute(`data-dt-contrast`,t.getRootContrast())}),r.contrastObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-contrast`]}),e.setAttribute(`data-dt-material`,t.getRootMaterial()),r.materialObserver=new MutationObserver(()=>{e.setAttribute(`data-dt-material`,t.getRootMaterial())}),r.materialObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-material`]}),n===`light`||n===`dark`)e.setAttribute(`data-dt-mode`,n);else{let n=t.findParentMode(e);e.setAttribute(`data-dt-mode`,t.getOppositeMode(n));let i={attributes:!0,attributeFilter:[`data-dt-mode`],subtree:!1};r.modeObserver=new MutationObserver(()=>{let n=t.findParentMode(e);e.setAttribute(`data-dt-mode`,t.getOppositeMode(n))}),r.modeObserver.observe(document.documentElement,i);let a=e.parentElement;for(;a&&a!==document.documentElement;)r.modeObserver.observe(a,i),a=a.parentElement}return r}function s(e){e.removeAttribute(`data-dt-mode`),e.removeAttribute(`data-dt-contrast`),e.removeAttribute(`data-dt-material`)}function c(e){e&&(e.contrastObserver&&(e.contrastObserver.disconnect(),e.contrastObserver=null),e.materialObserver&&(e.materialObserver.disconnect(),e.materialObserver=null),e.modeObserver&&(e.modeObserver.disconnect(),e.modeObserver=null))}}};exports.DtModeDirective=i,exports.default=i;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../mode_constants-DM0SVbFM.cjs`),t=require(`../mode-island/utils.cjs`);var n=e.n,r={inverted:`invert`},i={name:`dt-mode-directive`,install(e){let i=new WeakMap;e.directive(`dt-mode`,{mounted(e,t){if(t.value===!1)return;let n=o(e,a(t.arg));i.set(e,n)},updated(e,t){let n=i.get(e),r=t.value!==t.oldValue,l=a(t.arg),u=l!==n?.arg;if(!r&&!u||(c(n),s(e),i.delete(e),t.value===!1))return;let d=o(e,l);i.set(e,d)},unmounted(e){c(i.get(e)),s(e),i.delete(e)}});function a(e){return e?n.includes(e)?e:r[e]?(console.warn(`[DtModeDirective] Invalid mode "${e}". Did you mean "${r[e]}"? Falling back to "${r[e]}".`),r[e]):(console.warn(`[DtModeDirective] Invalid mode "${e}". Valid modes: ${n.join(`, `)}. Falling back to "invert".`),`invert`):`invert`}function o(e,n){let r={arg:n,contrastObserver:null,materialObserver:null,modeObserver:null};if(e.setAttribute(`data-dt-contrast`,t.getRootContrast()),r.contrastObserver=new MutationObserver(()=>{e.setAttribute(`data-dt-contrast`,t.getRootContrast())}),r.contrastObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-contrast`]}),e.setAttribute(`data-dt-material`,t.getRootMaterial()),r.materialObserver=new MutationObserver(()=>{e.setAttribute(`data-dt-material`,t.getRootMaterial())}),r.materialObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-material`]}),n===`light`||n===`dark`)e.setAttribute(`data-dt-mode`,n);else{let n=t.findParentMode(e);e.setAttribute(`data-dt-mode`,t.getOppositeMode(n));let i={attributes:!0,attributeFilter:[`data-dt-mode`],subtree:!1};r.modeObserver=new MutationObserver(()=>{let n=t.findParentMode(e);e.setAttribute(`data-dt-mode`,t.getOppositeMode(n))}),r.modeObserver.observe(document.documentElement,i);let a=e.parentElement;for(;a&&a!==document.documentElement;)r.modeObserver.observe(a,i),a=a.parentElement}return r}function s(e){e.removeAttribute(`data-dt-mode`),e.removeAttribute(`data-dt-contrast`),e.removeAttribute(`data-dt-material`)}function c(e){e&&(e.contrastObserver&&(e.contrastObserver.disconnect(),e.contrastObserver=null),e.materialObserver&&(e.materialObserver.disconnect(),e.materialObserver=null),e.modeObserver&&(e.modeObserver.disconnect(),e.modeObserver=null))}}};exports.DtModeDirective=i,exports.default=i;
2
2
  //# sourceMappingURL=mode.cjs.map
@@ -1,4 +1,4 @@
1
- import { n as e } from "../../mode_constants-tb7TL85q.js";
1
+ import { n as e } from "../../mode_constants-CC73P7d-.js";
2
2
  import { findParentMode as t, getOppositeMode as n, getRootContrast as r, getRootMaterial as i } from "../mode-island/utils.js";
3
3
  //#region directives/mode_directive/mode.js
4
4
  var a = e, o = { inverted: "invert" }, s = {
@@ -0,0 +1 @@
1
+ export * from '../../components/ModeIsland/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(`./utils.cjs`),n=require(`./mode-island-constants.cjs`),r=require(`./validators.cjs`);let i=require(`vue`);var a={name:`DtModeIsland`,provide(){return{dtModeIslandMode:()=>this.computedMode}},inject:{parentModeIslandMode:{from:`dtModeIslandMode`,default:null}},props:{as:{type:String,default:`div`},mode:{type:String,default:n.DT_MODE_ISLAND_TYPES.INVERTED,validator:r.modeValidator}},data(){return{currentContrast:t.getRootContrast(),currentMaterial:t.getRootMaterial(),contrastObserver:null,materialObserver:null,modeObserver:null,elementRef:null,calculatedMode:null}},computed:{isInverted(){return this.mode===n.DT_MODE_ISLAND_TYPES.INVERTED},invertedAttribute(){return this.isInverted?``:null},computedMode(){return this.mode===n.DT_MODE_ISLAND_TYPES.LIGHT||this.mode===n.DT_MODE_ISLAND_TYPES.DARK?this.mode:this.mode===n.DT_MODE_ISLAND_TYPES.INVERTED&&this.calculatedMode?this.calculatedMode:this.calculateInvertedMode()}},beforeCreate(){if(this.$attrs&&this.$attrs[`data-dt-brand`])throw Error(`[DtModeIsland] The data-dt-brand attribute is not allowed on mode islands. Brand should only be set at the root level.`)},mounted(){this.elementRef=this.$el,this.setupContrastObserver(),this.setupMaterialObserver(),this.isInverted&&(this.calculatedMode=this.calculateInvertedMode(),this.setupModeObserver()),this.currentContrast=t.getRootContrast(),this.currentMaterial=t.getRootMaterial()},beforeUnmount(){this.contrastObserver&&(this.contrastObserver.disconnect(),this.contrastObserver=null),this.materialObserver&&(this.materialObserver.disconnect(),this.materialObserver=null),this.modeObserver&&(this.modeObserver.disconnect(),this.modeObserver=null)},methods:{calculateInvertedMode(){return this.parentModeIslandMode?t.getOppositeMode(typeof this.parentModeIslandMode==`function`?this.parentModeIslandMode():this.parentModeIslandMode):this.elementRef?t.getOppositeMode(t.findParentMode(this.elementRef)):t.getOppositeMode(t.getRootMode())},setupContrastObserver(){this.contrastObserver=new MutationObserver(e=>{for(let n of e)n.type===`attributes`&&n.attributeName===`data-dt-contrast`&&(this.currentContrast=t.getRootContrast())}),this.contrastObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-contrast`]})},setupMaterialObserver(){this.materialObserver=new MutationObserver(e=>{for(let n of e)n.type===`attributes`&&n.attributeName===`data-dt-material`&&(this.currentMaterial=t.getRootMaterial())}),this.materialObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-material`]})},setupModeObserver(){let e={attributes:!0,attributeFilter:[`data-dt-mode`],subtree:!1};this.modeObserver=new MutationObserver(e=>{for(let t of e)t.type===`attributes`&&t.attributeName===`data-dt-mode`&&(this.calculatedMode=this.calculateInvertedMode())}),this.modeObserver.observe(document.documentElement,e);let t=this.elementRef?.parentElement;for(;t;)t.hasAttribute(`data-dt-mode`)&&this.modeObserver.observe(t,e),t=t.parentElement}}};function o(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.as),{class:`d-mode-island`,"data-qa":`dt-mode-island`,"data-dt-mode":o.computedMode,"data-mode-island-inverted":o.invertedAttribute,"data-dt-contrast":a.currentContrast,"data-dt-material":a.currentMaterial},{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-dt-mode`,`data-mode-island-inverted`,`data-dt-contrast`,`data-dt-material`])}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(`./utils.cjs`),n=require(`./mode-island-constants.cjs`),r=require(`./validators.cjs`);let i=require(`vue`);var a={name:`DtModeIsland`,provide(){return{dtModeIslandMode:()=>this.computedMode}},inject:{parentModeIslandMode:{from:`dtModeIslandMode`,default:null}},props:{as:{type:String,default:`div`},mode:{type:String,default:n.DT_MODE_ISLAND_TYPES.INVERTED,validator:r.modeValidator}},data(){return{currentContrast:t.getRootContrast(),currentMaterial:t.getRootMaterial(),contrastObserver:null,materialObserver:null,modeObserver:null,elementRef:null,calculatedMode:null}},computed:{isInverted(){return this.mode===n.DT_MODE_ISLAND_TYPES.INVERTED},invertedAttribute(){return this.isInverted?``:null},computedMode(){return this.mode===n.DT_MODE_ISLAND_TYPES.LIGHT||this.mode===n.DT_MODE_ISLAND_TYPES.DARK?this.mode:this.mode===n.DT_MODE_ISLAND_TYPES.INVERTED&&this.calculatedMode?this.calculatedMode:this.calculateInvertedMode()}},beforeCreate(){if(this.$attrs&&this.$attrs[`data-dt-brand`])throw Error(`[DtModeIsland] The data-dt-brand attribute is not allowed on mode islands. Brand should only be set at the root level.`)},mounted(){this.elementRef=this.$el,this.setupContrastObserver(),this.setupMaterialObserver(),this.isInverted&&(this.calculatedMode=this.calculateInvertedMode(),this.setupModeObserver()),this.currentContrast=t.getRootContrast(),this.currentMaterial=t.getRootMaterial()},beforeUnmount(){this.contrastObserver&&(this.contrastObserver.disconnect(),this.contrastObserver=null),this.materialObserver&&(this.materialObserver.disconnect(),this.materialObserver=null),this.modeObserver&&(this.modeObserver.disconnect(),this.modeObserver=null)},methods:{calculateInvertedMode(){return this.parentModeIslandMode?t.getOppositeMode(typeof this.parentModeIslandMode==`function`?this.parentModeIslandMode():this.parentModeIslandMode):this.elementRef?t.getOppositeMode(t.findParentMode(this.elementRef)):t.getOppositeMode(t.getRootMode())},setupContrastObserver(){this.contrastObserver=new MutationObserver(e=>{for(let n of e)n.type===`attributes`&&n.attributeName===`data-dt-contrast`&&(this.currentContrast=t.getRootContrast())}),this.contrastObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-contrast`]})},setupMaterialObserver(){this.materialObserver=new MutationObserver(e=>{for(let n of e)n.type===`attributes`&&n.attributeName===`data-dt-material`&&(this.currentMaterial=t.getRootMaterial())}),this.materialObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-material`]})},setupModeObserver(){let e={attributes:!0,attributeFilter:[`data-dt-mode`],subtree:!1};this.modeObserver=new MutationObserver(e=>{for(let t of e)t.type===`attributes`&&t.attributeName===`data-dt-mode`&&(this.calculatedMode=this.calculateInvertedMode())}),this.modeObserver.observe(document.documentElement,e);let t=this.elementRef?.parentElement;for(;t;)t.hasAttribute(`data-dt-mode`)&&this.modeObserver.observe(t,e),t=t.parentElement}}};function o(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.as),{class:`d-mode-island`,"data-qa":`dt-mode-island`,"data-dt-mode":o.computedMode,"data-mode-island-inverted":o.invertedAttribute,"data-dt-contrast":a.currentContrast,"data-dt-material":a.currentMaterial},{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-dt-mode`,`data-mode-island-inverted`,`data-dt-contrast`,`data-dt-material`])}var s=e.t(a,[[`render`,o]]);exports.default=s;
2
2
  //# sourceMappingURL=mode-island.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 { findParentMode as t, getOppositeMode as n, getRootContrast as r, getRootMaterial as i, getRootMode as a } from "./utils.js";
3
3
  import { DT_MODE_ISLAND_TYPES as o } from "./mode-island-constants.js";
4
4
  import { modeValidator as s } from "./validators.js";
@@ -0,0 +1 @@
1
+ export * from '../../components/MotionText/index.js';