@dialpad/dialtone-vue 4.11.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 (542) hide show
  1. package/dist/{Combobox-BKj61IcR.js → Combobox-8vN7Njqe.js} +3 -3
  2. package/dist/{Combobox-BKj61IcR.js.map → Combobox-8vN7Njqe.js.map} +1 -1
  3. package/dist/{Combobox-BOGcBq-6.cjs → Combobox-CmASo310.cjs} +2 -2
  4. package/dist/{Combobox-BOGcBq-6.cjs.map → Combobox-CmASo310.cjs.map} +1 -1
  5. package/dist/{Datepicker-DOSIyo8a.js → Datepicker-BeNUNF5U.js} +2 -2
  6. package/dist/{Datepicker-DOSIyo8a.js.map → Datepicker-BeNUNF5U.js.map} +1 -1
  7. package/dist/{Datepicker-DfdVsVb9.cjs → Datepicker-C-aExL3M.cjs} +2 -2
  8. package/dist/{Datepicker-DfdVsVb9.cjs.map → Datepicker-C-aExL3M.cjs.map} +1 -1
  9. package/dist/{EmojiPicker-B_ZVTdOY.js → EmojiPicker-Bondna8R.js} +2 -2
  10. package/dist/{EmojiPicker-B_ZVTdOY.js.map → EmojiPicker-Bondna8R.js.map} +1 -1
  11. package/dist/{EmojiPicker-DS8XmAHV.cjs → EmojiPicker-DDtsv-Ix.cjs} +2 -2
  12. package/dist/{EmojiPicker-DS8XmAHV.cjs.map → EmojiPicker-DDtsv-Ix.cjs.map} +1 -1
  13. package/dist/{FilterPill-C4TXD8Tl.js → FilterPill-BUAdXhR-.js} +5 -5
  14. package/dist/{FilterPill-C4TXD8Tl.js.map → FilterPill-BUAdXhR-.js.map} +1 -1
  15. package/dist/{FilterPill-BmYe_SsY.cjs → FilterPill-CgM4bCLl.cjs} +2 -2
  16. package/dist/{FilterPill-BmYe_SsY.cjs.map → FilterPill-CgM4bCLl.cjs.map} +1 -1
  17. package/dist/{ForceLinkify-BMmlUc8Q.cjs → ForceLinkify-5mUtF-wp.cjs} +2 -2
  18. package/dist/{ForceLinkify-BMmlUc8Q.cjs.map → ForceLinkify-5mUtF-wp.cjs.map} +1 -1
  19. package/dist/{ForceLinkify-Cw3Q1Nn7.js → ForceLinkify-W4glPHzT.js} +1 -1
  20. package/dist/{ForceLinkify-Cw3Q1Nn7.js.map → ForceLinkify-W4glPHzT.js.map} +1 -1
  21. package/dist/{MarkdownRenderer-CH4L8Evn.cjs → MarkdownRenderer-DHZjuYwF.cjs} +2 -2
  22. package/dist/{MarkdownRenderer-CH4L8Evn.cjs.map → MarkdownRenderer-DHZjuYwF.cjs.map} +1 -1
  23. package/dist/{MarkdownRenderer-BR-fbldH.js → MarkdownRenderer-uO19k9XV.js} +1 -1
  24. package/dist/{MarkdownRenderer-BR-fbldH.js.map → MarkdownRenderer-uO19k9XV.js.map} +1 -1
  25. package/dist/{Presence-DG9Kvu5J.cjs → Presence-CgrPxxCh.cjs} +2 -2
  26. package/dist/{Presence-DG9Kvu5J.cjs.map → Presence-CgrPxxCh.cjs.map} +1 -1
  27. package/dist/{Presence-BkPCvddH.js → Presence-Cvkwr3-o.js} +2 -2
  28. package/dist/{Presence-BkPCvddH.js.map → Presence-Cvkwr3-o.js.map} +1 -1
  29. package/dist/{ProgressBar-BMycZBZE.cjs → ProgressBar-B3sKagEm.cjs} +2 -2
  30. package/dist/{ProgressBar-BMycZBZE.cjs.map → ProgressBar-B3sKagEm.cjs.map} +1 -1
  31. package/dist/{ProgressBar-Cj8xqPc0.js → ProgressBar-BR6u1SYw.js} +1 -1
  32. package/dist/{ProgressBar-Cj8xqPc0.js.map → ProgressBar-BR6u1SYw.js.map} +1 -1
  33. package/dist/{Resizable-DQoUk81S.cjs → Resizable-DNRQ89ei.cjs} +2 -2
  34. package/dist/{Resizable-DQoUk81S.cjs.map → Resizable-DNRQ89ei.cjs.map} +1 -1
  35. package/dist/{Resizable-BkijqucD.js → Resizable-ZMxRRIiG.js} +3 -3
  36. package/dist/{Resizable-BkijqucD.js.map → Resizable-ZMxRRIiG.js.map} +1 -1
  37. package/dist/{ResizableHandle-D2gZ6dg5.cjs → ResizableHandle-Dj5cqVLM.cjs} +2 -2
  38. package/dist/{ResizableHandle-D2gZ6dg5.cjs.map → ResizableHandle-Dj5cqVLM.cjs.map} +1 -1
  39. package/dist/{ResizableHandle-MDdaNR_t.js → ResizableHandle-Py6b-ZRJ.js} +3 -3
  40. package/dist/{ResizableHandle-MDdaNR_t.js.map → ResizableHandle-Py6b-ZRJ.js.map} +1 -1
  41. package/dist/{ResizableUtils-ChIk3Blc.js → ResizableUtils-D8f1CrnP.js} +1 -1
  42. package/dist/{ResizableUtils-ChIk3Blc.js.map → ResizableUtils-D8f1CrnP.js.map} +1 -1
  43. package/dist/RichTextEditor-D5n9tM7A.cjs +11 -0
  44. package/dist/{RichTextEditor-D6kCBnLJ.cjs.map → RichTextEditor-D5n9tM7A.cjs.map} +1 -1
  45. package/dist/{RichTextEditor-BIcaFJQp.js → RichTextEditor-Dit5pXhR.js} +318 -318
  46. package/dist/{RichTextEditor-BIcaFJQp.js.map → RichTextEditor-Dit5pXhR.js.map} +1 -1
  47. package/dist/{Scroller-eXc7l23J.cjs → Scroller-B1jRO70r.cjs} +2 -2
  48. package/dist/{Scroller-eXc7l23J.cjs.map → Scroller-B1jRO70r.cjs.map} +1 -1
  49. package/dist/{Scroller-D6LZtmkL.js → Scroller-sUpsRoYR.js} +3 -3
  50. package/dist/{Scroller-D6LZtmkL.js.map → Scroller-sUpsRoYR.js.map} +1 -1
  51. package/dist/{Slider-oJROUIMS.js → Slider-DCHze-Pg.js} +4 -4
  52. package/dist/{Slider-oJROUIMS.js.map → Slider-DCHze-Pg.js.map} +1 -1
  53. package/dist/{Slider-B7O2M5_S.cjs → Slider-DJNR095B.cjs} +2 -2
  54. package/dist/{Slider-B7O2M5_S.cjs.map → Slider-DJNR095B.cjs.map} +1 -1
  55. package/dist/{Text-CfiPqjL0.js → Text-B6HaId2l.js} +2 -2
  56. package/dist/{Text-CfiPqjL0.js.map → Text-B6HaId2l.js.map} +1 -1
  57. package/dist/{Text-BDgOWPw7.cjs → Text-BosPFEHO.cjs} +2 -2
  58. package/dist/{Text-BDgOWPw7.cjs.map → Text-BosPFEHO.cjs.map} +1 -1
  59. package/dist/{TextList-DXEov7Ls.js → TextList-BsE0G1zC.js} +1 -1
  60. package/dist/{TextList-DXEov7Ls.js.map → TextList-BsE0G1zC.js.map} +1 -1
  61. package/dist/{TextList-D3HHK2DW.cjs → TextList-DvuP7qmJ.cjs} +2 -2
  62. package/dist/{TextList-D3HHK2DW.cjs.map → TextList-DvuP7qmJ.cjs.map} +1 -1
  63. package/dist/{TextListItem-CaFTtZ3G.js → TextListItem-Cm_gTXMN.js} +2 -2
  64. package/dist/{TextListItem-CaFTtZ3G.js.map → TextListItem-Cm_gTXMN.js.map} +1 -1
  65. package/dist/{TextListItem-C2Vc8Gnu.cjs → TextListItem-Dd7Ht3T9.cjs} +2 -2
  66. package/dist/{TextListItem-C2Vc8Gnu.cjs.map → TextListItem-Dd7Ht3T9.cjs.map} +1 -1
  67. package/dist/{Toast-DImJ0PkZ.cjs → Toast-B2Pf0Xwa.cjs} +2 -2
  68. package/dist/{Toast-DImJ0PkZ.cjs.map → Toast-B2Pf0Xwa.cjs.map} +1 -1
  69. package/dist/{Toast-AGiQccuG.js → Toast-DtUEXL_6.js} +3 -3
  70. package/dist/{Toast-AGiQccuG.js.map → Toast-DtUEXL_6.js.map} +1 -1
  71. package/dist/{UseResizableCalculations-DTxD7NKO.js → UseResizableCalculations-BG_DFstC.js} +2 -2
  72. package/dist/{UseResizableCalculations-DTxD7NKO.js.map → UseResizableCalculations-BG_DFstC.js.map} +1 -1
  73. package/dist/chunk-BK-Lzi7j.cjs +1 -0
  74. package/dist/common/composables/use-accessible-name-warning.cjs +1 -1
  75. package/dist/common/composables/use-indicator-animation.cjs +1 -1
  76. package/dist/common/dates/index.cjs +1 -1
  77. package/dist/common/dates/index.cjs.map +1 -1
  78. package/dist/common/dates/index.d.ts +1 -1
  79. package/dist/common/dates/index.d.ts.map +1 -1
  80. package/dist/common/dates/index.js +1 -1
  81. package/dist/common/dates/index.js.map +1 -1
  82. package/dist/common/emoji/index.cjs +1 -1
  83. package/dist/common/mixins/input-group.cjs +1 -1
  84. package/dist/common/mixins/input-group.js +1 -1
  85. package/dist/common/mixins/input.cjs +1 -1
  86. package/dist/common/mixins/input.js +1 -1
  87. package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
  88. package/dist/common/mixins/keyboard-list-navigation.js +1 -1
  89. package/dist/common/mixins/modal.cjs +1 -1
  90. package/dist/common/mixins/modal.cjs.map +1 -1
  91. package/dist/common/mixins/modal.d.ts +1 -1
  92. package/dist/common/mixins/modal.d.ts.map +1 -1
  93. package/dist/common/mixins/modal.js +1 -1
  94. package/dist/common/mixins/modal.js.map +1 -1
  95. package/dist/common/mixins/mode.js +1 -1
  96. package/dist/common/phone/index.cjs +1 -1
  97. package/dist/common/sr_only_close_button.vue.d.ts +6 -5
  98. package/dist/common/sr_only_close_button.vue.d.ts.map +1 -1
  99. package/dist/common/utils/index.cjs +1 -1
  100. package/dist/common/utils/index.js +1 -1
  101. package/dist/component-documentation.json +1 -1
  102. package/dist/components/Avatar/Avatar.vue.d.ts +4 -4
  103. package/dist/components/Banner/Banner.vue.d.ts +12 -16
  104. package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
  105. package/dist/components/Box/Box.vue.d.ts +6 -10
  106. package/dist/components/Box/Box.vue.d.ts.map +1 -1
  107. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +2 -1
  108. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts.map +1 -1
  109. package/dist/components/Button/Button.vue.d.ts +4 -3
  110. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  111. package/dist/components/Checkbox/Checkbox.vue.d.ts +2 -6
  112. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  113. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -6
  114. package/dist/components/Chip/Chip.vue.d.ts +6 -5
  115. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  116. package/dist/components/Collapsible/Collapsible.vue.d.ts +3 -3
  117. package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
  118. package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +11 -11
  119. package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
  120. package/dist/components/Datepicker/Datepicker.vue.d.ts +1 -66
  121. package/dist/components/Datepicker/Modules/Calendar.vue.d.ts +1 -1
  122. package/dist/components/Dropdown/Dropdown.vue.d.ts +11 -11
  123. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  124. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +1 -904
  125. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
  126. package/dist/components/EmojiPicker/Modules/EmojiDescription.vue.d.ts +1 -1
  127. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +1 -810
  128. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
  129. package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts +1 -4
  130. package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts.map +1 -1
  131. package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts +1 -3
  132. package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts.map +1 -1
  133. package/dist/components/EmojiPicker/Modules/EmojiTabset.vue.d.ts +1 -1
  134. package/dist/components/EmptyState/EmptyState.vue.d.ts +11 -3
  135. package/dist/components/EmptyState/EmptyState.vue.d.ts.map +1 -1
  136. package/dist/components/FilterPill/FilterPill.vue.d.ts +42 -52
  137. package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
  138. package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts +7 -11
  139. package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts.map +1 -1
  140. package/dist/components/Hovercard/Hovercard.vue.d.ts +11 -3264
  141. package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
  142. package/dist/components/ImageViewer/ImageViewer.vue.d.ts +11 -10
  143. package/dist/components/ImageViewer/ImageViewer.vue.d.ts.map +1 -1
  144. package/dist/components/Input/Input.vue.d.ts +2 -6
  145. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  146. package/dist/components/InputGroup/InputGroup.vue.d.ts +2 -6
  147. package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
  148. package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +2 -6
  149. package/dist/components/Loader/Loader.vue.d.ts +3 -2
  150. package/dist/components/Loader/Loader.vue.d.ts.map +1 -1
  151. package/dist/components/Modal/Modal.vue.d.ts +13 -16
  152. package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
  153. package/dist/components/Notice/Notice.vue.d.ts +12 -16
  154. package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
  155. package/dist/components/Notice/NoticeAction.vue.d.ts +11 -10
  156. package/dist/components/Notice/NoticeAction.vue.d.ts.map +1 -1
  157. package/dist/components/Notice/NoticeContent.vue.d.ts +2 -6
  158. package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
  159. package/dist/components/Pagination/Pagination.vue.d.ts +7 -6
  160. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  161. package/dist/components/Popover/Popover.vue.d.ts +11 -11
  162. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  163. package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts +6 -5
  164. package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts.map +1 -1
  165. package/dist/components/Presence/Presence.vue.d.ts +4 -4
  166. package/dist/components/Presence/modules/presence_active_icon.vue.d.ts +1 -1
  167. package/dist/components/Presence/modules/presence_active_icon.vue.d.ts.map +1 -1
  168. package/dist/components/Presence/modules/presence_away_icon.vue.d.ts +1 -1
  169. package/dist/components/Presence/modules/presence_away_icon.vue.d.ts.map +1 -1
  170. package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts +1 -1
  171. package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts.map +1 -1
  172. package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts +1 -1
  173. package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts.map +1 -1
  174. package/dist/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  175. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  176. package/dist/components/Prose/Prose.vue.d.ts +5 -14
  177. package/dist/components/Prose/Prose.vue.d.ts.map +1 -1
  178. package/dist/components/Radio/Radio.vue.d.ts +2 -6
  179. package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
  180. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +2 -6
  181. package/dist/components/Resizable/Resizable.vue.d.ts +16 -23
  182. package/dist/components/Resizable/Resizable.vue.d.ts.map +1 -1
  183. package/dist/components/Resizable/ResizableHandle.vue.d.ts +1 -3
  184. package/dist/components/Resizable/ResizablePanel.vue.d.ts +9 -14
  185. package/dist/components/Resizable/ResizablePanel.vue.d.ts.map +1 -1
  186. package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts.map +1 -1
  187. package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +6 -10
  188. package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +2 -6
  189. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +18 -21
  190. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
  191. package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts +15 -27
  192. package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts.map +1 -1
  193. package/dist/components/Scroller/Modules/DynamicScroller.vue.d.ts +18 -22
  194. package/dist/components/Scroller/Scroller.vue.d.ts +15 -772
  195. package/dist/components/Scroller/Scroller.vue.d.ts.map +1 -1
  196. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +5 -233
  197. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
  198. package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts +24 -23
  199. package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts.map +1 -1
  200. package/dist/components/SelectMenu/SelectMenu.vue.d.ts +2 -6
  201. package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
  202. package/dist/components/Slider/Slider.vue.d.ts +12 -23
  203. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  204. package/dist/components/SplitButton/SplitButton.vue.d.ts +17 -17
  205. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  206. package/dist/components/SplitButton/SplitButtonEnd.vue.d.ts +3 -3
  207. package/dist/components/SplitButton/SplitButtonStart.vue.d.ts +3 -3
  208. package/dist/components/Tab/Tab.vue.d.ts +3 -3
  209. package/dist/components/Tab/TabPanel.vue.d.ts +1 -1
  210. package/dist/components/Tab/TabPanel.vue.d.ts.map +1 -1
  211. package/dist/components/Text/Text.vue.d.ts +2 -6
  212. package/dist/components/Text/modules/SlideViewport.vue.d.ts +6 -19
  213. package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -1
  214. package/dist/components/TextList/TextList.vue.d.ts +6 -15
  215. package/dist/components/TextList/TextList.vue.d.ts.map +1 -1
  216. package/dist/components/TextList/TextListItem.vue.d.ts +8 -12
  217. package/dist/components/TextList/TextListItem.vue.d.ts.map +1 -1
  218. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +12 -16
  219. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
  220. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +12 -16
  221. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
  222. package/dist/components/Toast/Toast.vue.d.ts +48 -64
  223. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  224. package/dist/dialtone-vue.cjs +1 -1
  225. package/dist/dialtone-vue.js +17 -17
  226. package/dist/dist-3sDwkm0K.js +382 -0
  227. package/dist/dist-3sDwkm0K.js.map +1 -0
  228. package/dist/dist-DzjXnVZt.cjs +2 -0
  229. package/dist/dist-DzjXnVZt.cjs.map +1 -0
  230. package/dist/{floating-ui.dom-CuL5LTgX.js → floating-ui.dom-B8Mp8J0T.js} +1 -1
  231. package/dist/{floating-ui.dom-CuL5LTgX.js.map → floating-ui.dom-B8Mp8J0T.js.map} +1 -1
  232. package/dist/{floating-ui.dom-S7QIcAlj.cjs → floating-ui.dom-C23Y4xMx.cjs} +1 -1
  233. package/dist/{floating-ui.dom-S7QIcAlj.cjs.map → floating-ui.dom-C23Y4xMx.cjs.map} +1 -1
  234. package/dist/lib/avatar/avatar.cjs +1 -1
  235. package/dist/lib/avatar/avatar.js +3 -3
  236. package/dist/lib/avatar/index.d.ts +1 -0
  237. package/dist/lib/badge/badge.cjs +1 -1
  238. package/dist/lib/badge/badge.js +2 -2
  239. package/dist/lib/badge/index.d.ts +1 -0
  240. package/dist/lib/banner/banner.cjs +1 -1
  241. package/dist/lib/banner/banner.js +2 -2
  242. package/dist/lib/banner/index.d.ts +1 -0
  243. package/dist/lib/box/box.cjs +1 -1
  244. package/dist/lib/box/index.d.ts +1 -0
  245. package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
  246. package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
  247. package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  248. package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
  249. package/dist/lib/breadcrumbs/index.d.ts +1 -0
  250. package/dist/lib/button/button.cjs +1 -1
  251. package/dist/lib/button/button.js +2 -2
  252. package/dist/lib/button/index.d.ts +1 -0
  253. package/dist/lib/button-group/button-group.cjs +1 -1
  254. package/dist/lib/button-group/button-group.js +1 -1
  255. package/dist/lib/button-group/buttons-decorator.cjs +1 -1
  256. package/dist/lib/button-group/buttons-decorator.js +1 -1
  257. package/dist/lib/button-group/index.d.ts +1 -0
  258. package/dist/lib/card/card.cjs +1 -1
  259. package/dist/lib/card/card.js +2 -2
  260. package/dist/lib/card/index.d.ts +1 -0
  261. package/dist/lib/checkbox/checkbox.cjs +1 -1
  262. package/dist/lib/checkbox/checkbox.js +3 -3
  263. package/dist/lib/checkbox/index.d.ts +1 -0
  264. package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
  265. package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
  266. package/dist/lib/checkbox-group/index.d.ts +1 -0
  267. package/dist/lib/chip/chip.cjs +1 -1
  268. package/dist/lib/chip/chip.js +2 -2
  269. package/dist/lib/chip/index.d.ts +1 -0
  270. package/dist/lib/codeblock/codeblock.cjs +1 -1
  271. package/dist/lib/codeblock/codeblock.js +1 -1
  272. package/dist/lib/codeblock/index.d.ts +1 -0
  273. package/dist/lib/collapsible/collapsible-lazy-show.cjs +1 -1
  274. package/dist/lib/collapsible/collapsible-lazy-show.js +1 -1
  275. package/dist/lib/collapsible/collapsible.cjs +1 -1
  276. package/dist/lib/collapsible/collapsible.js +2 -2
  277. package/dist/lib/collapsible/index.d.ts +1 -0
  278. package/dist/lib/combobox/combobox-empty-list.cjs +1 -1
  279. package/dist/lib/combobox/combobox-empty-list.js +1 -1
  280. package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
  281. package/dist/lib/combobox/combobox-loading-list.js +1 -1
  282. package/dist/lib/combobox/combobox.cjs +1 -1
  283. package/dist/lib/combobox/combobox.js +1 -1
  284. package/dist/lib/combobox/index.cjs +1 -1
  285. package/dist/lib/combobox/index.d.ts +1 -0
  286. package/dist/lib/combobox/index.js +1 -1
  287. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  288. package/dist/lib/combobox-multi-select/combobox-multi-select.js +2 -2
  289. package/dist/lib/combobox-multi-select/index.d.ts +1 -0
  290. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  291. package/dist/lib/combobox-with-popover/combobox-with-popover.js +4 -4
  292. package/dist/lib/combobox-with-popover/index.d.ts +1 -0
  293. package/dist/lib/datepicker/datepicker.cjs +1 -1
  294. package/dist/lib/datepicker/datepicker.js +1 -1
  295. package/dist/lib/datepicker/index.cjs +1 -1
  296. package/dist/lib/datepicker/index.d.ts +1 -0
  297. package/dist/lib/datepicker/index.js +1 -1
  298. package/dist/lib/datepicker/utils.cjs +1 -1
  299. package/dist/lib/description-list/description-list.cjs +1 -1
  300. package/dist/lib/description-list/description-list.js +1 -1
  301. package/dist/lib/description-list/index.d.ts +1 -0
  302. package/dist/lib/dropdown/dropdown-list.cjs +1 -1
  303. package/dist/lib/dropdown/dropdown-list.js +2 -2
  304. package/dist/lib/dropdown/dropdown-separator.cjs +1 -1
  305. package/dist/lib/dropdown/dropdown-separator.js +1 -1
  306. package/dist/lib/dropdown/dropdown.cjs +1 -1
  307. package/dist/lib/dropdown/dropdown.js +3 -3
  308. package/dist/lib/dropdown/index.d.ts +1 -0
  309. package/dist/lib/emoji/emoji.cjs +1 -1
  310. package/dist/lib/emoji/emoji.js +1 -1
  311. package/dist/lib/emoji/index.d.ts +1 -0
  312. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  313. package/dist/lib/emoji-picker/emoji-picker.js +1 -1
  314. package/dist/lib/emoji-picker/index.cjs +1 -1
  315. package/dist/lib/emoji-picker/index.d.ts +1 -0
  316. package/dist/lib/emoji-picker/index.js +1 -1
  317. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  318. package/dist/lib/emoji-text-wrapper/index.d.ts +1 -0
  319. package/dist/lib/empty-state/empty-state.cjs +1 -1
  320. package/dist/lib/empty-state/empty-state.js +2 -2
  321. package/dist/lib/empty-state/index.d.ts +1 -0
  322. package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
  323. package/dist/lib/filter-pill/filter-pill-controlled.js +1 -1
  324. package/dist/lib/filter-pill/filter-pill.cjs +1 -1
  325. package/dist/lib/filter-pill/filter-pill.js +1 -1
  326. package/dist/lib/filter-pill/index.cjs +1 -1
  327. package/dist/lib/filter-pill/index.d.ts +1 -0
  328. package/dist/lib/filter-pill/index.js +1 -1
  329. package/dist/lib/focusgroup-directive/index.d.ts +1 -0
  330. package/dist/lib/focustrap-directive/index.d.ts +1 -0
  331. package/dist/lib/hovercard/hovercard.cjs +1 -1
  332. package/dist/lib/hovercard/hovercard.js +2 -2
  333. package/dist/lib/hovercard/index.d.ts +1 -0
  334. package/dist/lib/icon/icon-constants.cjs +1 -1
  335. package/dist/lib/icon/icon.cjs +1 -1
  336. package/dist/lib/icon/icon.js +1 -1
  337. package/dist/lib/icon/index.d.ts +1 -0
  338. package/dist/lib/illustration/illustration-constants.cjs +1 -1
  339. package/dist/lib/illustration/illustration.cjs +1 -1
  340. package/dist/lib/illustration/index.d.ts +1 -0
  341. package/dist/lib/image-viewer/image-viewer.cjs +1 -1
  342. package/dist/lib/image-viewer/image-viewer.js +2 -2
  343. package/dist/lib/image-viewer/index.d.ts +1 -0
  344. package/dist/lib/input/index.d.ts +1 -0
  345. package/dist/lib/input/input.cjs +1 -1
  346. package/dist/lib/input/input.js +3 -3
  347. package/dist/lib/input-group/index.d.ts +1 -0
  348. package/dist/lib/input-group/input-group.cjs +1 -1
  349. package/dist/lib/input-group/input-group.js +3 -3
  350. package/dist/lib/item-layout/index.d.ts +1 -0
  351. package/dist/lib/item-layout/item-layout.cjs +1 -1
  352. package/dist/lib/item-layout/item-layout.js +2 -2
  353. package/dist/lib/keyboard-shortcut/index.d.ts +1 -0
  354. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
  355. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +2 -2
  356. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
  357. package/dist/lib/kitchen-sink/kitchen-sink-view.js +2 -2
  358. package/dist/lib/lazy-show/index.d.ts +1 -0
  359. package/dist/lib/lazy-show/lazy-show.cjs +1 -1
  360. package/dist/lib/lazy-show/lazy-show.js +1 -1
  361. package/dist/lib/link/index.d.ts +1 -0
  362. package/dist/lib/link/link.cjs +1 -1
  363. package/dist/lib/link/link.js +1 -1
  364. package/dist/lib/list-item/index.d.ts +1 -0
  365. package/dist/lib/list-item/list-item.cjs +1 -1
  366. package/dist/lib/list-item/list-item.js +2 -2
  367. package/dist/lib/list-item-group/index.d.ts +1 -0
  368. package/dist/lib/list-item-group/list-item-group.cjs +1 -1
  369. package/dist/lib/list-item-group/list-item-group.js +2 -2
  370. package/dist/lib/loader/index.d.ts +1 -0
  371. package/dist/lib/loader/loader.cjs +1 -1
  372. package/dist/lib/loader/loader.js +1 -1
  373. package/dist/lib/modal/index.d.ts +1 -0
  374. package/dist/lib/modal/modal.cjs +1 -1
  375. package/dist/lib/modal/modal.js +3 -3
  376. package/dist/lib/mode-directive/index.d.ts +1 -0
  377. package/dist/lib/mode-directive/mode.js +1 -1
  378. package/dist/lib/mode-island/index.d.ts +1 -0
  379. package/dist/lib/mode-island/mode-island.cjs +1 -1
  380. package/dist/lib/mode-island/mode-island.js +1 -1
  381. package/dist/lib/motion-text/index.d.ts +1 -0
  382. package/dist/lib/motion-text/motion-text.cjs +1 -1
  383. package/dist/lib/motion-text/motion-text.js +1 -1
  384. package/dist/lib/notice/index.d.ts +1 -0
  385. package/dist/lib/notice/notice-action.cjs +1 -1
  386. package/dist/lib/notice/notice-action.js +1 -1
  387. package/dist/lib/notice/notice-content.cjs +1 -1
  388. package/dist/lib/notice/notice-content.js +3 -3
  389. package/dist/lib/notice/notice-icon.cjs +1 -1
  390. package/dist/lib/notice/notice-icon.js +2 -2
  391. package/dist/lib/notice/notice.cjs +1 -1
  392. package/dist/lib/notice/notice.js +1 -1
  393. package/dist/lib/pagination/index.d.ts +1 -0
  394. package/dist/lib/pagination/pagination.cjs +1 -1
  395. package/dist/lib/pagination/pagination.js +1 -1
  396. package/dist/lib/popover/index.d.ts +1 -0
  397. package/dist/lib/popover/popover-header-footer.cjs +1 -1
  398. package/dist/lib/popover/popover-header-footer.js +2 -2
  399. package/dist/lib/popover/popover.cjs +1 -1
  400. package/dist/lib/popover/popover.js +2 -2
  401. package/dist/lib/popover/tippy-utils.cjs +1 -1
  402. package/dist/lib/presence/index.cjs +1 -1
  403. package/dist/lib/presence/index.d.ts +1 -0
  404. package/dist/lib/presence/index.js +1 -1
  405. package/dist/lib/presence/presence.cjs +1 -1
  406. package/dist/lib/presence/presence.js +1 -1
  407. package/dist/lib/progress-bar/index.cjs +1 -1
  408. package/dist/lib/progress-bar/index.d.ts +1 -0
  409. package/dist/lib/progress-bar/index.js +1 -1
  410. package/dist/lib/progress-bar/progress-bar.cjs +1 -1
  411. package/dist/lib/progress-bar/progress-bar.js +1 -1
  412. package/dist/lib/progress-circle/index.d.ts +1 -0
  413. package/dist/lib/progress-circle/progress-circle.cjs +1 -1
  414. package/dist/lib/progress-circle/progress-circle.js +1 -1
  415. package/dist/lib/prose/index.d.ts +1 -0
  416. package/dist/lib/prose/prose.cjs +1 -1
  417. package/dist/lib/radio/index.d.ts +1 -0
  418. package/dist/lib/radio/radio.cjs +1 -1
  419. package/dist/lib/radio/radio.js +3 -3
  420. package/dist/lib/radio-group/index.d.ts +1 -0
  421. package/dist/lib/radio-group/radios-decorator.cjs +1 -1
  422. package/dist/lib/radio-group/radios-decorator.js +1 -1
  423. package/dist/lib/resizable/index.cjs +1 -1
  424. package/dist/lib/resizable/index.d.ts +1 -0
  425. package/dist/lib/resizable/index.js +3 -3
  426. package/dist/lib/resizable/resizable-handle.cjs +1 -1
  427. package/dist/lib/resizable/resizable-handle.js +1 -1
  428. package/dist/lib/resizable/resizable-panel.cjs +1 -1
  429. package/dist/lib/resizable/resizable-panel.js +1 -1
  430. package/dist/lib/resizable/resizable.cjs +1 -1
  431. package/dist/lib/resizable/resizable.js +1 -1
  432. package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
  433. package/dist/lib/rich-text-editor/force-linkify.js +1 -1
  434. package/dist/lib/rich-text-editor/index.cjs +1 -1
  435. package/dist/lib/rich-text-editor/index.d.ts +1 -0
  436. package/dist/lib/rich-text-editor/index.js +1 -1
  437. package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
  438. package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
  439. package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  440. package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
  441. package/dist/lib/root-layout/index.d.ts +1 -0
  442. package/dist/lib/root-layout/root-layout.cjs +1 -1
  443. package/dist/lib/root-layout/root-layout.js +1 -1
  444. package/dist/lib/scrollbar-directive/index.d.ts +1 -0
  445. package/dist/lib/scrollbar-directive/scrollbar.cjs +1 -1
  446. package/dist/lib/scroller/index.cjs +1 -1
  447. package/dist/lib/scroller/index.d.ts +1 -0
  448. package/dist/lib/scroller/index.js +1 -1
  449. package/dist/lib/scroller/scroller.cjs +1 -1
  450. package/dist/lib/scroller/scroller.js +1 -1
  451. package/dist/lib/segmented-control/index.d.ts +1 -0
  452. package/dist/lib/segmented-control/segmented-control-item.cjs +1 -1
  453. package/dist/lib/segmented-control/segmented-control.cjs +1 -1
  454. package/dist/lib/segmented-control/segmented-control.js +1 -1
  455. package/dist/lib/select-menu/index.d.ts +1 -0
  456. package/dist/lib/select-menu/select-menu.cjs +1 -1
  457. package/dist/lib/select-menu/select-menu.js +3 -3
  458. package/dist/lib/skeleton/index.d.ts +1 -0
  459. package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
  460. package/dist/lib/skeleton/skeleton-list-item.js +1 -1
  461. package/dist/lib/skeleton/skeleton-paragraph.cjs +1 -1
  462. package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
  463. package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
  464. package/dist/lib/skeleton/skeleton-shape.js +1 -1
  465. package/dist/lib/skeleton/skeleton-text.cjs +1 -1
  466. package/dist/lib/skeleton/skeleton-text.js +1 -1
  467. package/dist/lib/skeleton/skeleton.cjs +1 -1
  468. package/dist/lib/skeleton/skeleton.js +1 -1
  469. package/dist/lib/slider/index.cjs +1 -1
  470. package/dist/lib/slider/index.d.ts +1 -0
  471. package/dist/lib/slider/index.js +1 -1
  472. package/dist/lib/slider/slider.cjs +1 -1
  473. package/dist/lib/slider/slider.js +1 -1
  474. package/dist/lib/split-button/index.d.ts +1 -0
  475. package/dist/lib/split-button/split-button-end.cjs +1 -1
  476. package/dist/lib/split-button/split-button-end.js +2 -2
  477. package/dist/lib/split-button/split-button-start.cjs +1 -1
  478. package/dist/lib/split-button/split-button-start.js +1 -1
  479. package/dist/lib/split-button/split-button.cjs +1 -1
  480. package/dist/lib/split-button/split-button.js +2 -2
  481. package/dist/lib/stack/index.d.ts +1 -0
  482. package/dist/lib/stack/stack.cjs +1 -1
  483. package/dist/lib/stack/stack.js +1 -1
  484. package/dist/lib/tab/index.d.ts +1 -0
  485. package/dist/lib/tab/tab-group.cjs +1 -1
  486. package/dist/lib/tab/tab-group.js +1 -1
  487. package/dist/lib/tab/tab-panel.cjs +1 -1
  488. package/dist/lib/tab/tab-panel.js +2 -2
  489. package/dist/lib/tab/tab.cjs +1 -1
  490. package/dist/lib/tab/tab.js +1 -1
  491. package/dist/lib/text/index.cjs +1 -1
  492. package/dist/lib/text/index.d.ts +1 -0
  493. package/dist/lib/text/index.js +1 -1
  494. package/dist/lib/text/text.cjs +1 -1
  495. package/dist/lib/text/text.js +1 -1
  496. package/dist/lib/text-list/index.cjs +1 -1
  497. package/dist/lib/text-list/index.d.ts +1 -0
  498. package/dist/lib/text-list/index.js +2 -2
  499. package/dist/lib/text-list/text-list-item.cjs +1 -1
  500. package/dist/lib/text-list/text-list-item.js +1 -1
  501. package/dist/lib/text-list/text-list.cjs +1 -1
  502. package/dist/lib/text-list/text-list.js +1 -1
  503. package/dist/lib/toast/index.cjs +1 -1
  504. package/dist/lib/toast/index.d.ts +1 -0
  505. package/dist/lib/toast/index.js +1 -1
  506. package/dist/lib/toast/toast.cjs +1 -1
  507. package/dist/lib/toast/toast.js +1 -1
  508. package/dist/lib/toggle/index.d.ts +1 -0
  509. package/dist/lib/toggle/toggle.cjs +1 -1
  510. package/dist/lib/toggle/toggle.js +2 -2
  511. package/dist/lib/tooltip/index.d.ts +1 -0
  512. package/dist/lib/tooltip/tooltip.cjs +1 -1
  513. package/dist/lib/tooltip/tooltip.js +2 -2
  514. package/dist/lib/tooltip-directive/index.d.ts +1 -0
  515. package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
  516. package/dist/lib/tooltip-directive/tooltip.js +2 -2
  517. package/dist/lib/validation-messages/index.d.ts +1 -0
  518. package/dist/lib/validation-messages/validation-messages.cjs +1 -1
  519. package/dist/lib/validation-messages/validation-messages.js +2 -2
  520. package/dist/localization/index.cjs +1 -1
  521. package/dist/localization/index.cjs.map +1 -1
  522. package/dist/localization/index.d.ts +25 -0
  523. package/dist/localization/index.d.ts.map +1 -0
  524. package/dist/localization/index.js.map +1 -1
  525. package/dist/localization/sync-icons.d.ts +3 -0
  526. package/dist/localization/sync-icons.d.ts.map +1 -0
  527. package/dist/{mode_constants-B8_1b5T8.js → mode_constants-CC73P7d-.js} +1 -1
  528. package/dist/{mode_constants-B8_1b5T8.js.map → mode_constants-CC73P7d-.js.map} +1 -1
  529. package/dist/node_modules/@tiptap/vue-3.cjs +1 -1
  530. package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
  531. package/dist/node_modules/@tiptap/vue-3.js +2 -363
  532. package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
  533. package/dist/shared/sr_only_close_button.cjs +1 -1
  534. package/dist/shared/sr_only_close_button.js +1 -1
  535. package/dist/{utils-BL_SrwnF.js → utils-CXaaZqVu.js} +1 -1
  536. package/dist/{utils-BL_SrwnF.js.map → utils-CXaaZqVu.js.map} +1 -1
  537. package/dist/{utils-GofHWJKi.cjs → utils-Db-kV6Sr.cjs} +2 -2
  538. package/dist/{utils-GofHWJKi.cjs.map → utils-Db-kV6Sr.cjs.map} +1 -1
  539. package/package.json +7 -6
  540. package/dist/RichTextEditor-D6kCBnLJ.cjs +0 -11
  541. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  542. /package/dist/{_plugin-vue_export-helper-BecorN_g.js → _plugin-vue_export-helper-B52Kst-M.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"UseResizableCalculations-DTxD7NKO.js","names":[],"sources":["../components/Resizable/Composables/ConstraintResolver.ts","../components/Resizable/Composables/UseResizableCalculations.ts"],"sourcesContent":["/**\n * Constraint Resolver\n *\n * Pure functions for resolving the constraint hierarchy for resizable panels.\n * No DOM access, no Vue reactivity, no side effects.\n *\n * @see computeLayout.ts\n * @see ../resizable_constants.ts\n */\n\nimport type { ResizablePanelConfig } from '../ResizableConstants';\nimport { parseSizeToPixels } from '../ResizableUtils';\n\n// ============================================================================\n// TYPES\n// ============================================================================\n\n/**\n * Result of constraint hierarchy calculation.\n * User limits are absolute boundaries; system limits are the operating range within user limits.\n */\nexport interface ConstraintHierarchy {\n // User drag limits (absolute boundaries)\n userMinSizePixels?: number;\n userMaxSizePixels?: number;\n // System scaling limits (operating range within user limits)\n systemMinSizePixels?: number;\n systemMaxSizePixels?: number;\n // Auto-collapse threshold (container width, not panel width)\n collapseSizePixels?: number;\n}\n\n// ============================================================================\n// CLAMPING PRIMITIVE\n// ============================================================================\n\n/**\n * Clamp a value to optional min/max bounds.\n * Single source of truth for all constraint clamping in the resizable system.\n */\nexport function clampSize(value: number, min?: number, max?: number): number {\n let result = value;\n if (min !== undefined) result = Math.max(result, min);\n if (max !== undefined) result = Math.min(result, max);\n return result;\n}\n\n/**\n * Resolve effective min/max for a given constraint tier, then clamp.\n * - 'user' tier: uses userMin/userMax only\n * - 'system' tier: uses systemMin/systemMax, falling back to userMin/userMax\n */\nexport function clampToTier(\n value: number,\n constraints: ConstraintHierarchy,\n tier: 'user' | 'system' = 'system'\n): number {\n const min = tier === 'user'\n ? constraints.userMinSizePixels\n : (constraints.systemMinSizePixels ?? constraints.userMinSizePixels);\n const max = tier === 'user'\n ? constraints.userMaxSizePixels\n : (constraints.systemMaxSizePixels ?? constraints.userMaxSizePixels);\n return clampSize(value, min, max);\n}\n\n// ============================================================================\n// INTERNAL HELPERS\n// ============================================================================\n\n/**\n * Resolve user constraints (drag limits) from panel config.\n */\nexport function resolveUserConstraints(\n panelConfig: ResizablePanelConfig,\n containerSize: number\n): { userMinSizePixels?: number; userMaxSizePixels?: number } {\n return {\n userMinSizePixels: panelConfig.userMinSize ? parseSizeToPixels(panelConfig.userMinSize, containerSize) : undefined,\n userMaxSizePixels: panelConfig.userMaxSize ? parseSizeToPixels(panelConfig.userMaxSize, containerSize) : undefined,\n };\n}\n\n/**\n * Clamp system min to be at least user min.\n * System constraints that exceed user boundaries are silently clamped\n * since this is expected behavior during constraint resolution.\n */\nexport function clampSystemMin(systemMin: number | undefined, userMin: number | undefined): number | undefined {\n if (systemMin === undefined || userMin === undefined) return systemMin;\n return Math.max(systemMin, userMin);\n}\n\n/**\n * Clamp system max to be at most user max.\n * System constraints that exceed user boundaries are silently clamped\n * since this is expected behavior during constraint resolution.\n */\nexport function clampSystemMax(systemMax: number | undefined, userMax: number | undefined): number | undefined {\n if (systemMax === undefined || userMax === undefined) return systemMax;\n return Math.min(systemMax, userMax);\n}\n\n/**\n * Resolve system constraints with fallback to user constraints.\n * System limits are silently clamped to stay within user limits.\n */\nexport function resolveSystemConstraints(\n panelConfig: ResizablePanelConfig,\n containerSize: number,\n userMinSizePixels?: number,\n userMaxSizePixels?: number\n): { systemMinSizePixels?: number; systemMaxSizePixels?: number } {\n // Calculate system limits from props, or fall back to user limits\n const rawSystemMin = panelConfig.systemMinSize\n ? parseSizeToPixels(panelConfig.systemMinSize, containerSize)\n : userMinSizePixels;\n const rawSystemMax = panelConfig.systemMaxSize\n ? parseSizeToPixels(panelConfig.systemMaxSize, containerSize)\n : userMaxSizePixels;\n\n // Validate and clamp system limits within user limits\n const systemMinSizePixels = clampSystemMin(rawSystemMin, userMinSizePixels);\n const systemMaxSizePixels = clampSystemMax(rawSystemMax, userMaxSizePixels);\n\n return { systemMinSizePixels, systemMaxSizePixels };\n}\n\n// ============================================================================\n// PUBLIC API\n// ============================================================================\n\n/**\n * Calculate the complete constraint hierarchy for a panel.\n *\n * This separates user drag limits from system scaling limits:\n * - User limits (userMinSize/userMaxSize) are absolute boundaries for user dragging\n * - System limits (systemMinSize/systemMaxSize) are the operating range for viewport resize\n * - System limits must be within user limits (clamped silently if not)\n *\n * @param panelConfig - Panel configuration\n * @param containerSize - Current container size in pixels\n * @returns Complete constraint hierarchy with all pixel values\n */\nexport function calculateConstraintHierarchy(\n panelConfig: ResizablePanelConfig,\n containerSize: number\n): ConstraintHierarchy {\n // Resolve user constraints (drag limits)\n const { userMinSizePixels, userMaxSizePixels } = resolveUserConstraints(panelConfig, containerSize);\n\n // Resolve system constraints (viewport resize limits) with fallback to user limits\n const { systemMinSizePixels, systemMaxSizePixels } = resolveSystemConstraints(\n panelConfig,\n containerSize,\n userMinSizePixels,\n userMaxSizePixels\n );\n\n // Calculate collapse threshold (container width trigger, NOT a panel size)\n // Don't clamp to container - this threshold is compared AGAINST the container width\n const collapseSizePixels = panelConfig.collapseSize\n ? parseSizeToPixels(panelConfig.collapseSize, containerSize, { clampToContainer: false })\n : undefined;\n\n return {\n userMinSizePixels,\n userMaxSizePixels,\n systemMinSizePixels,\n systemMaxSizePixels,\n collapseSizePixels,\n };\n}\n","import { MIN_PANEL_SIZE_PX } from '../ResizableConstants';\nimport type { ResizablePanelState } from '../ResizableConstants';\nimport { clampSize } from './ConstraintResolver';\n\n// ============================================================================\n// RESIZE HANDLING\n// ============================================================================\n\nexport interface ResizeHandler {\n processResizeMove: (\n rawCursorPosition: number,\n beforePanel: ResizablePanelState,\n afterPanel: ResizablePanelState,\n containerSizeValue: number,\n handleId?: string,\n allPanels?: ResizablePanelState[],\n beforePanelLeft?: number\n ) => ResizeMoveResult;\n}\n\nexport interface ResizeMoveResult {\n constrainedCursorPosition: number;\n beforePanelSize: number;\n afterPanelSize: number;\n isValidResize: boolean;\n}\n\nexport function useResizeHandling(containerSize?: () => number) {\n function checkPanelsResizable(\n rawCursorPosition: number,\n beforePanel: ResizablePanelState,\n afterPanel: ResizablePanelState\n ): ResizeMoveResult | null {\n if (beforePanel.resizable === false || afterPanel.resizable === false) {\n return {\n constrainedCursorPosition: rawCursorPosition,\n beforePanelSize: beforePanel.pixelSize || 0,\n afterPanelSize: afterPanel.pixelSize || 0,\n isValidResize: false,\n };\n }\n return null;\n }\n\n function applyPanelConstraints(proposedSize: number, panel: ResizablePanelState): number {\n return clampSize(proposedSize, panel.userMinSizePixels, panel.userMaxSizePixels);\n }\n\n function calculateMaxCursorForAfterPanel(\n afterPanel: ResizablePanelState,\n containerSizeValue: number,\n allPanels?: ResizablePanelState[]\n ): number {\n const minPixels = afterPanel.userMinSizePixels;\n\n if (minPixels === undefined || !allPanels) {\n return containerSizeValue;\n }\n\n const afterPanelIndex = allPanels.findIndex(p => p.id === afterPanel.id);\n const panelsAfterThis = allPanels.slice(afterPanelIndex + 1);\n const totalFixedSpaceAfter = panelsAfterThis.reduce((sum, panel) => sum + (panel.pixelSize || 0), 0);\n\n return containerSizeValue - minPixels - totalFixedSpaceAfter;\n }\n\n function calculateAfterPanelSize(\n cursorPosition: number,\n containerSizeValue: number,\n afterPanel: ResizablePanelState,\n allPanels?: ResizablePanelState[]\n ): number {\n if (!allPanels) {\n return containerSizeValue - cursorPosition;\n }\n\n const afterPanelIndex = allPanels.findIndex(p => p.id === afterPanel.id);\n const panelsAfterThis = allPanels.slice(afterPanelIndex + 1);\n const totalFixedSpaceAfter = panelsAfterThis.reduce((sum, panel) => sum + (panel.pixelSize || 0), 0);\n\n return containerSizeValue - cursorPosition - totalFixedSpaceAfter;\n }\n\n function processResizeMove(\n rawCursorPosition: number,\n beforePanel: ResizablePanelState,\n afterPanel: ResizablePanelState,\n containerSizeValue: number,\n handleId?: string,\n allPanels?: ResizablePanelState[],\n beforePanelLeft?: number\n ): ResizeMoveResult {\n const nonResizableResult = checkPanelsResizable(rawCursorPosition, beforePanel, afterPanel);\n if (nonResizableResult) return nonResizableResult;\n\n const beforeLeft = beforePanelLeft || 0;\n const proposedBeforeSize = rawCursorPosition - beforeLeft;\n const proposedAfterSize = containerSizeValue - rawCursorPosition;\n\n let constrainedBeforeSize = applyPanelConstraints(proposedBeforeSize, beforePanel);\n let constrainedAfterSize = applyPanelConstraints(proposedAfterSize, afterPanel);\n\n const maxCursorForAfterPanel = calculateMaxCursorForAfterPanel(afterPanel, containerSizeValue, allPanels);\n const beforePanelCursor = beforeLeft + constrainedBeforeSize;\n const effectiveCursor = Math.min(beforePanelCursor, maxCursorForAfterPanel);\n\n let constrainedCursorPosition;\n\n if (effectiveCursor < beforePanelCursor) {\n constrainedCursorPosition = effectiveCursor;\n constrainedBeforeSize = constrainedCursorPosition - beforeLeft;\n constrainedAfterSize = calculateAfterPanelSize(\n constrainedCursorPosition,\n containerSizeValue,\n afterPanel,\n allPanels\n );\n } else {\n constrainedCursorPosition = beforePanelCursor;\n constrainedAfterSize = calculateAfterPanelSize(\n constrainedCursorPosition,\n containerSizeValue,\n afterPanel,\n allPanels\n );\n }\n\n return {\n constrainedCursorPosition,\n beforePanelSize: constrainedBeforeSize,\n afterPanelSize: constrainedAfterSize,\n isValidResize: constrainedBeforeSize >= MIN_PANEL_SIZE_PX && constrainedAfterSize >= MIN_PANEL_SIZE_PX,\n };\n }\n\n return {\n processResizeMove,\n };\n}\n"],"mappings":";;AAwCA,SAAgB,EAAU,GAAe,GAAc,GAAsB;CAC3E,IAAI,IAAS;AAGb,QAFI,MAAQ,KAAA,MAAW,IAAS,KAAK,IAAI,GAAQ,EAAI,GACjD,MAAQ,KAAA,MAAW,IAAS,KAAK,IAAI,GAAQ,EAAI,GAC9C;;AAQT,SAAgB,EACd,GACA,GACA,IAA0B,UAClB;AAOR,QAAO,EAAU,GANL,MAAS,SACjB,EAAY,oBACX,EAAY,uBAAuB,EAAY,mBACxC,MAAS,SACjB,EAAY,oBACX,EAAY,uBAAuB,EAAY,kBACnB;;AAUnC,SAAgB,EACd,GACA,GAC4D;AAC5D,QAAO;EACL,mBAAmB,EAAY,cAAc,EAAkB,EAAY,aAAa,EAAc,GAAG,KAAA;EACzG,mBAAmB,EAAY,cAAc,EAAkB,EAAY,aAAa,EAAc,GAAG,KAAA;EAC1G;;AAQH,SAAgB,EAAe,GAA+B,GAAiD;AAE7G,QADI,MAAc,KAAA,KAAa,MAAY,KAAA,IAAkB,IACtD,KAAK,IAAI,GAAW,EAAQ;;AAQrC,SAAgB,EAAe,GAA+B,GAAiD;AAE7G,QADI,MAAc,KAAA,KAAa,MAAY,KAAA,IAAkB,IACtD,KAAK,IAAI,GAAW,EAAQ;;AAOrC,SAAgB,EACd,GACA,GACA,GACA,GACgE;CAEhE,IAAM,IAAe,EAAY,gBAC7B,EAAkB,EAAY,eAAe,EAAc,GAC3D,GACE,IAAe,EAAY,gBAC7B,EAAkB,EAAY,eAAe,EAAc,GAC3D;AAMJ,QAAO;EAAE,qBAHmB,EAAe,GAAc,EAAkB;EAG7C,qBAFF,EAAe,GAAc,EAAkB;EAExB;;AAmBrD,SAAgB,EACd,GACA,GACqB;CAErB,IAAM,EAAE,sBAAmB,yBAAsB,EAAuB,GAAa,EAAc,EAG7F,EAAE,wBAAqB,2BAAwB,EACnD,GACA,GACA,GACA,EACD;AAQD,QAAO;EACL;EACA;EACA;EACA;EACA,oBATyB,EAAY,eACnC,EAAkB,EAAY,cAAc,GAAe,EAAE,kBAAkB,IAAO,CAAC,GACvF,KAAA;EAQH;;;;AChJH,SAAgB,EAAkB,GAA8B;CAC9D,SAAS,EACP,GACA,GACA,GACyB;AASzB,SARI,EAAY,cAAc,MAAS,EAAW,cAAc,KACvD;GACL,2BAA2B;GAC3B,iBAAiB,EAAY,aAAa;GAC1C,gBAAgB,EAAW,aAAa;GACxC,eAAe;GAChB,GAEI;;CAGT,SAAS,EAAsB,GAAsB,GAAoC;AACvF,SAAO,EAAU,GAAc,EAAM,mBAAmB,EAAM,kBAAkB;;CAGlF,SAAS,EACP,GACA,GACA,GACQ;EACR,IAAM,IAAY,EAAW;AAE7B,MAAI,MAAc,KAAA,KAAa,CAAC,EAC9B,QAAO;EAGT,IAAM,IAAkB,EAAU,WAAU,MAAK,EAAE,OAAO,EAAW,GAAG,EAElE,IADkB,EAAU,MAAM,IAAkB,EAAE,CACf,QAAQ,GAAK,MAAU,KAAO,EAAM,aAAa,IAAI,EAAE;AAEpG,SAAO,IAAqB,IAAY;;CAG1C,SAAS,EACP,GACA,GACA,GACA,GACQ;AACR,MAAI,CAAC,EACH,QAAO,IAAqB;EAG9B,IAAM,IAAkB,EAAU,WAAU,MAAK,EAAE,OAAO,EAAW,GAAG,EAElE,IADkB,EAAU,MAAM,IAAkB,EAAE,CACf,QAAQ,GAAK,MAAU,KAAO,EAAM,aAAa,IAAI,EAAE;AAEpG,SAAO,IAAqB,IAAiB;;CAG/C,SAAS,EACP,GACA,GACA,GACA,GACA,GACA,GACA,GACkB;EAClB,IAAM,IAAqB,EAAqB,GAAmB,GAAa,EAAW;AAC3F,MAAI,EAAoB,QAAO;EAE/B,IAAM,IAAa,KAAmB,GAChC,IAAqB,IAAoB,GACzC,IAAoB,IAAqB,GAE3C,IAAwB,EAAsB,GAAoB,EAAY,EAC9E,IAAuB,EAAsB,GAAmB,EAAW,EAEzE,IAAyB,EAAgC,GAAY,GAAoB,EAAU,EACnG,IAAoB,IAAa,GACjC,IAAkB,KAAK,IAAI,GAAmB,EAAuB,EAEvE;AAqBJ,SAnBI,IAAkB,KACpB,IAA4B,GAC5B,IAAwB,IAA4B,GACpD,IAAuB,EACrB,GACA,GACA,GACA,EACD,KAED,IAA4B,GAC5B,IAAuB,EACrB,GACA,GACA,GACA,EACD,GAGI;GACL;GACA,iBAAiB;GACjB,gBAAgB;GAChB,eAAe,KAAA,MAA8C,KAAA;GAC9D;;AAGH,QAAO,EACL,sBACD"}
1
+ {"version":3,"file":"UseResizableCalculations-BG_DFstC.js","names":[],"sources":["../components/Resizable/Composables/ConstraintResolver.ts","../components/Resizable/Composables/UseResizableCalculations.ts"],"sourcesContent":["/**\n * Constraint Resolver\n *\n * Pure functions for resolving the constraint hierarchy for resizable panels.\n * No DOM access, no Vue reactivity, no side effects.\n *\n * @see computeLayout.ts\n * @see ../resizable_constants.ts\n */\n\nimport type { ResizablePanelConfig } from '../ResizableConstants';\nimport { parseSizeToPixels } from '../ResizableUtils';\n\n// ============================================================================\n// TYPES\n// ============================================================================\n\n/**\n * Result of constraint hierarchy calculation.\n * User limits are absolute boundaries; system limits are the operating range within user limits.\n */\nexport interface ConstraintHierarchy {\n // User drag limits (absolute boundaries)\n userMinSizePixels?: number;\n userMaxSizePixels?: number;\n // System scaling limits (operating range within user limits)\n systemMinSizePixels?: number;\n systemMaxSizePixels?: number;\n // Auto-collapse threshold (container width, not panel width)\n collapseSizePixels?: number;\n}\n\n// ============================================================================\n// CLAMPING PRIMITIVE\n// ============================================================================\n\n/**\n * Clamp a value to optional min/max bounds.\n * Single source of truth for all constraint clamping in the resizable system.\n */\nexport function clampSize(value: number, min?: number, max?: number): number {\n let result = value;\n if (min !== undefined) result = Math.max(result, min);\n if (max !== undefined) result = Math.min(result, max);\n return result;\n}\n\n/**\n * Resolve effective min/max for a given constraint tier, then clamp.\n * - 'user' tier: uses userMin/userMax only\n * - 'system' tier: uses systemMin/systemMax, falling back to userMin/userMax\n */\nexport function clampToTier(\n value: number,\n constraints: ConstraintHierarchy,\n tier: 'user' | 'system' = 'system'\n): number {\n const min = tier === 'user'\n ? constraints.userMinSizePixels\n : (constraints.systemMinSizePixels ?? constraints.userMinSizePixels);\n const max = tier === 'user'\n ? constraints.userMaxSizePixels\n : (constraints.systemMaxSizePixels ?? constraints.userMaxSizePixels);\n return clampSize(value, min, max);\n}\n\n// ============================================================================\n// INTERNAL HELPERS\n// ============================================================================\n\n/**\n * Resolve user constraints (drag limits) from panel config.\n */\nexport function resolveUserConstraints(\n panelConfig: ResizablePanelConfig,\n containerSize: number\n): { userMinSizePixels?: number; userMaxSizePixels?: number } {\n return {\n userMinSizePixels: panelConfig.userMinSize ? parseSizeToPixels(panelConfig.userMinSize, containerSize) : undefined,\n userMaxSizePixels: panelConfig.userMaxSize ? parseSizeToPixels(panelConfig.userMaxSize, containerSize) : undefined,\n };\n}\n\n/**\n * Clamp system min to be at least user min.\n * System constraints that exceed user boundaries are silently clamped\n * since this is expected behavior during constraint resolution.\n */\nexport function clampSystemMin(systemMin: number | undefined, userMin: number | undefined): number | undefined {\n if (systemMin === undefined || userMin === undefined) return systemMin;\n return Math.max(systemMin, userMin);\n}\n\n/**\n * Clamp system max to be at most user max.\n * System constraints that exceed user boundaries are silently clamped\n * since this is expected behavior during constraint resolution.\n */\nexport function clampSystemMax(systemMax: number | undefined, userMax: number | undefined): number | undefined {\n if (systemMax === undefined || userMax === undefined) return systemMax;\n return Math.min(systemMax, userMax);\n}\n\n/**\n * Resolve system constraints with fallback to user constraints.\n * System limits are silently clamped to stay within user limits.\n */\nexport function resolveSystemConstraints(\n panelConfig: ResizablePanelConfig,\n containerSize: number,\n userMinSizePixels?: number,\n userMaxSizePixels?: number\n): { systemMinSizePixels?: number; systemMaxSizePixels?: number } {\n // Calculate system limits from props, or fall back to user limits\n const rawSystemMin = panelConfig.systemMinSize\n ? parseSizeToPixels(panelConfig.systemMinSize, containerSize)\n : userMinSizePixels;\n const rawSystemMax = panelConfig.systemMaxSize\n ? parseSizeToPixels(panelConfig.systemMaxSize, containerSize)\n : userMaxSizePixels;\n\n // Validate and clamp system limits within user limits\n const systemMinSizePixels = clampSystemMin(rawSystemMin, userMinSizePixels);\n const systemMaxSizePixels = clampSystemMax(rawSystemMax, userMaxSizePixels);\n\n return { systemMinSizePixels, systemMaxSizePixels };\n}\n\n// ============================================================================\n// PUBLIC API\n// ============================================================================\n\n/**\n * Calculate the complete constraint hierarchy for a panel.\n *\n * This separates user drag limits from system scaling limits:\n * - User limits (userMinSize/userMaxSize) are absolute boundaries for user dragging\n * - System limits (systemMinSize/systemMaxSize) are the operating range for viewport resize\n * - System limits must be within user limits (clamped silently if not)\n *\n * @param panelConfig - Panel configuration\n * @param containerSize - Current container size in pixels\n * @returns Complete constraint hierarchy with all pixel values\n */\nexport function calculateConstraintHierarchy(\n panelConfig: ResizablePanelConfig,\n containerSize: number\n): ConstraintHierarchy {\n // Resolve user constraints (drag limits)\n const { userMinSizePixels, userMaxSizePixels } = resolveUserConstraints(panelConfig, containerSize);\n\n // Resolve system constraints (viewport resize limits) with fallback to user limits\n const { systemMinSizePixels, systemMaxSizePixels } = resolveSystemConstraints(\n panelConfig,\n containerSize,\n userMinSizePixels,\n userMaxSizePixels\n );\n\n // Calculate collapse threshold (container width trigger, NOT a panel size)\n // Don't clamp to container - this threshold is compared AGAINST the container width\n const collapseSizePixels = panelConfig.collapseSize\n ? parseSizeToPixels(panelConfig.collapseSize, containerSize, { clampToContainer: false })\n : undefined;\n\n return {\n userMinSizePixels,\n userMaxSizePixels,\n systemMinSizePixels,\n systemMaxSizePixels,\n collapseSizePixels,\n };\n}\n","import { MIN_PANEL_SIZE_PX } from '../ResizableConstants';\nimport type { ResizablePanelState } from '../ResizableConstants';\nimport { clampSize } from './ConstraintResolver';\n\n// ============================================================================\n// RESIZE HANDLING\n// ============================================================================\n\nexport interface ResizeHandler {\n processResizeMove: (\n rawCursorPosition: number,\n beforePanel: ResizablePanelState,\n afterPanel: ResizablePanelState,\n containerSizeValue: number,\n handleId?: string,\n allPanels?: ResizablePanelState[],\n beforePanelLeft?: number\n ) => ResizeMoveResult;\n}\n\nexport interface ResizeMoveResult {\n constrainedCursorPosition: number;\n beforePanelSize: number;\n afterPanelSize: number;\n isValidResize: boolean;\n}\n\nexport function useResizeHandling(containerSize?: () => number) {\n function checkPanelsResizable(\n rawCursorPosition: number,\n beforePanel: ResizablePanelState,\n afterPanel: ResizablePanelState\n ): ResizeMoveResult | null {\n if (beforePanel.resizable === false || afterPanel.resizable === false) {\n return {\n constrainedCursorPosition: rawCursorPosition,\n beforePanelSize: beforePanel.pixelSize || 0,\n afterPanelSize: afterPanel.pixelSize || 0,\n isValidResize: false,\n };\n }\n return null;\n }\n\n function applyPanelConstraints(proposedSize: number, panel: ResizablePanelState): number {\n return clampSize(proposedSize, panel.userMinSizePixels, panel.userMaxSizePixels);\n }\n\n function calculateMaxCursorForAfterPanel(\n afterPanel: ResizablePanelState,\n containerSizeValue: number,\n allPanels?: ResizablePanelState[]\n ): number {\n const minPixels = afterPanel.userMinSizePixels;\n\n if (minPixels === undefined || !allPanels) {\n return containerSizeValue;\n }\n\n const afterPanelIndex = allPanels.findIndex(p => p.id === afterPanel.id);\n const panelsAfterThis = allPanels.slice(afterPanelIndex + 1);\n const totalFixedSpaceAfter = panelsAfterThis.reduce((sum, panel) => sum + (panel.pixelSize || 0), 0);\n\n return containerSizeValue - minPixels - totalFixedSpaceAfter;\n }\n\n function calculateAfterPanelSize(\n cursorPosition: number,\n containerSizeValue: number,\n afterPanel: ResizablePanelState,\n allPanels?: ResizablePanelState[]\n ): number {\n if (!allPanels) {\n return containerSizeValue - cursorPosition;\n }\n\n const afterPanelIndex = allPanels.findIndex(p => p.id === afterPanel.id);\n const panelsAfterThis = allPanels.slice(afterPanelIndex + 1);\n const totalFixedSpaceAfter = panelsAfterThis.reduce((sum, panel) => sum + (panel.pixelSize || 0), 0);\n\n return containerSizeValue - cursorPosition - totalFixedSpaceAfter;\n }\n\n function processResizeMove(\n rawCursorPosition: number,\n beforePanel: ResizablePanelState,\n afterPanel: ResizablePanelState,\n containerSizeValue: number,\n handleId?: string,\n allPanels?: ResizablePanelState[],\n beforePanelLeft?: number\n ): ResizeMoveResult {\n const nonResizableResult = checkPanelsResizable(rawCursorPosition, beforePanel, afterPanel);\n if (nonResizableResult) return nonResizableResult;\n\n const beforeLeft = beforePanelLeft || 0;\n const proposedBeforeSize = rawCursorPosition - beforeLeft;\n const proposedAfterSize = containerSizeValue - rawCursorPosition;\n\n let constrainedBeforeSize = applyPanelConstraints(proposedBeforeSize, beforePanel);\n let constrainedAfterSize = applyPanelConstraints(proposedAfterSize, afterPanel);\n\n const maxCursorForAfterPanel = calculateMaxCursorForAfterPanel(afterPanel, containerSizeValue, allPanels);\n const beforePanelCursor = beforeLeft + constrainedBeforeSize;\n const effectiveCursor = Math.min(beforePanelCursor, maxCursorForAfterPanel);\n\n let constrainedCursorPosition;\n\n if (effectiveCursor < beforePanelCursor) {\n constrainedCursorPosition = effectiveCursor;\n constrainedBeforeSize = constrainedCursorPosition - beforeLeft;\n constrainedAfterSize = calculateAfterPanelSize(\n constrainedCursorPosition,\n containerSizeValue,\n afterPanel,\n allPanels\n );\n } else {\n constrainedCursorPosition = beforePanelCursor;\n constrainedAfterSize = calculateAfterPanelSize(\n constrainedCursorPosition,\n containerSizeValue,\n afterPanel,\n allPanels\n );\n }\n\n return {\n constrainedCursorPosition,\n beforePanelSize: constrainedBeforeSize,\n afterPanelSize: constrainedAfterSize,\n isValidResize: constrainedBeforeSize >= MIN_PANEL_SIZE_PX && constrainedAfterSize >= MIN_PANEL_SIZE_PX,\n };\n }\n\n return {\n processResizeMove,\n };\n}\n"],"mappings":";;AAwCA,SAAgB,EAAU,GAAe,GAAc,GAAsB;CAC3E,IAAI,IAAS;AAGb,QAFI,MAAQ,KAAA,MAAW,IAAS,KAAK,IAAI,GAAQ,EAAI,GACjD,MAAQ,KAAA,MAAW,IAAS,KAAK,IAAI,GAAQ,EAAI,GAC9C;;AAQT,SAAgB,EACd,GACA,GACA,IAA0B,UAClB;AAOR,QAAO,EAAU,GANL,MAAS,SACjB,EAAY,oBACX,EAAY,uBAAuB,EAAY,mBACxC,MAAS,SACjB,EAAY,oBACX,EAAY,uBAAuB,EAAY,kBACnB;;AAUnC,SAAgB,EACd,GACA,GAC4D;AAC5D,QAAO;EACL,mBAAmB,EAAY,cAAc,EAAkB,EAAY,aAAa,EAAc,GAAG,KAAA;EACzG,mBAAmB,EAAY,cAAc,EAAkB,EAAY,aAAa,EAAc,GAAG,KAAA;EAC1G;;AAQH,SAAgB,EAAe,GAA+B,GAAiD;AAE7G,QADI,MAAc,KAAA,KAAa,MAAY,KAAA,IAAkB,IACtD,KAAK,IAAI,GAAW,EAAQ;;AAQrC,SAAgB,EAAe,GAA+B,GAAiD;AAE7G,QADI,MAAc,KAAA,KAAa,MAAY,KAAA,IAAkB,IACtD,KAAK,IAAI,GAAW,EAAQ;;AAOrC,SAAgB,EACd,GACA,GACA,GACA,GACgE;CAEhE,IAAM,IAAe,EAAY,gBAC7B,EAAkB,EAAY,eAAe,EAAc,GAC3D,GACE,IAAe,EAAY,gBAC7B,EAAkB,EAAY,eAAe,EAAc,GAC3D;AAMJ,QAAO;EAAE,qBAHmB,EAAe,GAAc,EAAkB;EAG7C,qBAFF,EAAe,GAAc,EAAkB;EAExB;;AAmBrD,SAAgB,EACd,GACA,GACqB;CAErB,IAAM,EAAE,sBAAmB,yBAAsB,EAAuB,GAAa,EAAc,EAG7F,EAAE,wBAAqB,2BAAwB,EACnD,GACA,GACA,GACA,EACD;AAQD,QAAO;EACL;EACA;EACA;EACA;EACA,oBATyB,EAAY,eACnC,EAAkB,EAAY,cAAc,GAAe,EAAE,kBAAkB,IAAO,CAAC,GACvF,KAAA;EAQH;;;;AChJH,SAAgB,EAAkB,GAA8B;CAC9D,SAAS,EACP,GACA,GACA,GACyB;AASzB,SARI,EAAY,cAAc,MAAS,EAAW,cAAc,KACvD;GACL,2BAA2B;GAC3B,iBAAiB,EAAY,aAAa;GAC1C,gBAAgB,EAAW,aAAa;GACxC,eAAe;GAChB,GAEI;;CAGT,SAAS,EAAsB,GAAsB,GAAoC;AACvF,SAAO,EAAU,GAAc,EAAM,mBAAmB,EAAM,kBAAkB;;CAGlF,SAAS,EACP,GACA,GACA,GACQ;EACR,IAAM,IAAY,EAAW;AAE7B,MAAI,MAAc,KAAA,KAAa,CAAC,EAC9B,QAAO;EAGT,IAAM,IAAkB,EAAU,WAAU,MAAK,EAAE,OAAO,EAAW,GAAG,EAElE,IADkB,EAAU,MAAM,IAAkB,EAAE,CACf,QAAQ,GAAK,MAAU,KAAO,EAAM,aAAa,IAAI,EAAE;AAEpG,SAAO,IAAqB,IAAY;;CAG1C,SAAS,EACP,GACA,GACA,GACA,GACQ;AACR,MAAI,CAAC,EACH,QAAO,IAAqB;EAG9B,IAAM,IAAkB,EAAU,WAAU,MAAK,EAAE,OAAO,EAAW,GAAG,EAElE,IADkB,EAAU,MAAM,IAAkB,EAAE,CACf,QAAQ,GAAK,MAAU,KAAO,EAAM,aAAa,IAAI,EAAE;AAEpG,SAAO,IAAqB,IAAiB;;CAG/C,SAAS,EACP,GACA,GACA,GACA,GACA,GACA,GACA,GACkB;EAClB,IAAM,IAAqB,EAAqB,GAAmB,GAAa,EAAW;AAC3F,MAAI,EAAoB,QAAO;EAE/B,IAAM,IAAa,KAAmB,GAChC,IAAqB,IAAoB,GACzC,IAAoB,IAAqB,GAE3C,IAAwB,EAAsB,GAAoB,EAAY,EAC9E,IAAuB,EAAsB,GAAmB,EAAW,EAEzE,IAAyB,EAAgC,GAAY,GAAoB,EAAU,EACnG,IAAoB,IAAa,GACjC,IAAkB,KAAK,IAAI,GAAmB,EAAuB,EAEvE;AAqBJ,SAnBI,IAAkB,KACpB,IAA4B,GAC5B,IAAwB,IAA4B,GACpD,IAAuB,EACrB,GACA,GACA,GACA,EACD,KAED,IAA4B,GAC5B,IAAuB,EACrB,GACA,GACA,GACA,EACD,GAGI;GACL;GACA,iBAAiB;GACjB,gBAAgB;GAChB,eAAe,KAAA,MAA8C,KAAA;GAC9D;;AAGH,QAAO,EACL,sBACD"}
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(e,t,n)=>(s(e,t,`default`),n&&s(n,t,`default`)),l=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);let e=require(`vue`);function t(t,n,r){process.env.NODE_ENV!==`production`&&(0,e.watch)(()=>!!(String(n()??``).trim()||String(r[`aria-labelledby`]??``).trim()),e=>{e||console.info(`[Dialtone] ${t}: provide aria-label or aria-labelledby for accessibility.`)},{immediate:!0})}exports.useAccessibleNameWarning=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-BK-Lzi7j.cjs`);let e=require(`vue`);function t(t,n,r){process.env.NODE_ENV!==`production`&&(0,e.watch)(()=>!!(String(n()??``).trim()||String(r[`aria-labelledby`]??``).trim()),e=>{e||console.info(`[Dialtone] ${t}: provide aria-label or aria-labelledby for accessibility.`)},{immediate:!0})}exports.useAccessibleNameWarning=t;
2
2
  //# sourceMappingURL=use-accessible-name-warning.cjs.map
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);let e=require(`vue`);function t(t,n,r){let i={indicator:null,hideNative:null},a=200,o=`ease`,s=!1;(0,e.onMounted)(()=>{let i=typeof t==`function`?t():(0,e.unref)(t),c=i?.$el||i;if(!c)return;let l=getComputedStyle(c);a=parseInt(l.getPropertyValue(n),10)||200,o=l.getPropertyValue(r).trim()||`ease`;let u=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;s=typeof c.animate==`function`&&!u}),(0,e.onBeforeUnmount)(()=>{u()});function c(n){if(!s)return null;let r=typeof t==`function`?t():(0,e.unref)(t),i=(r?.$el||r)?.querySelector(n);if(!i)return null;let a=getComputedStyle(i);return{rect:i.getBoundingClientRect(),style:{borderColor:a.borderColor,borderWidth:a.borderWidth,backgroundColor:a.backgroundColor},el:i}}function l({oldRect:e,newEl:t,orientation:n,checkRowOverlap:r,hideProps:c,indicatorExtra:l={},pseudoElement:d}){if(!s)return;u();let f=t.getBoundingClientRect(),p=n===`vertical`,m=p?f.width:f.height,h=Math.abs(p?e.left-f.left:e.top-f.top);if(r?Math.max(e.top,f.top)>=Math.min(e.bottom,f.bottom):h>m/2)return;let g=p?e.top+e.height/2-(f.top+f.height/2):e.left+e.width/2-(f.left+f.width/2);if(g===0)return;let _=p?`0 ${g}px`:`${g}px 0`,v=p?`1 ${e.height/f.height}`:`${e.width/f.width} 1`,y={duration:a,easing:o};i.hideNative=t.animate([c,c],{...y,fill:`forwards`}),i.indicator=t.animate([{translate:_,scale:v,...l},{translate:`0 0`,scale:`1 1`,...l}],{...y,pseudoElement:d}),i.indicator.onfinish=()=>{i.hideNative?.cancel()}}function u(){i.indicator&&(i.indicator.onfinish=null,i.indicator.cancel()),i.hideNative&&(i.hideNative.onfinish=null,i.hideNative.cancel())}function d(){return s}return{animate:l,cancel:u,canAnimate:d,snapshot:c}}exports.useIndicatorAnimation=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-BK-Lzi7j.cjs`);let e=require(`vue`);function t(t,n,r){let i={indicator:null,hideNative:null},a=200,o=`ease`,s=!1;(0,e.onMounted)(()=>{let i=typeof t==`function`?t():(0,e.unref)(t),c=i?.$el||i;if(!c)return;let l=getComputedStyle(c);a=parseInt(l.getPropertyValue(n),10)||200,o=l.getPropertyValue(r).trim()||`ease`;let u=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;s=typeof c.animate==`function`&&!u}),(0,e.onBeforeUnmount)(()=>{u()});function c(n){if(!s)return null;let r=typeof t==`function`?t():(0,e.unref)(t),i=(r?.$el||r)?.querySelector(n);if(!i)return null;let a=getComputedStyle(i);return{rect:i.getBoundingClientRect(),style:{borderColor:a.borderColor,borderWidth:a.borderWidth,backgroundColor:a.backgroundColor},el:i}}function l({oldRect:e,newEl:t,orientation:n,checkRowOverlap:r,hideProps:c,indicatorExtra:l={},pseudoElement:d}){if(!s)return;u();let f=t.getBoundingClientRect(),p=n===`vertical`,m=p?f.width:f.height,h=Math.abs(p?e.left-f.left:e.top-f.top);if(r?Math.max(e.top,f.top)>=Math.min(e.bottom,f.bottom):h>m/2)return;let g=p?e.top+e.height/2-(f.top+f.height/2):e.left+e.width/2-(f.left+f.width/2);if(g===0)return;let _=p?`0 ${g}px`:`${g}px 0`,v=p?`1 ${e.height/f.height}`:`${e.width/f.width} 1`,y={duration:a,easing:o};i.hideNative=t.animate([c,c],{...y,fill:`forwards`}),i.indicator=t.animate([{translate:_,scale:v,...l},{translate:`0 0`,scale:`1 1`,...l}],{...y,pseudoElement:d}),i.indicator.onfinish=()=>{i.hideNative?.cancel()}}function u(){i.indicator&&(i.indicator.onfinish=null,i.indicator.cancel()),i.hideNative&&(i.hideNative.onfinish=null,i.hideNative.cancel())}function d(){return s}return{animate:l,cancel:u,canAnimate:d,snapshot:c}}exports.useIndicatorAnimation=t;
2
2
  //# sourceMappingURL=use-indicator-animation.cjs.map
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../utils-GofHWJKi.cjs`);let t=require(`date-fns`);var n;function r(e,r){return s(),(0,t.format)(e,r,{locale:n})}function i(e,r){return s(),(0,t.formatDuration)(e,{locale:n,format:r})}function a(e,r){return s(),(0,t.formatDistance)(e,r,{locale:n})}function o(){return n!==void 0}function s(){if(!o())throw Error(`Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function`)}function c(e){n=e}function l(e){return r(e,`MMMM d, y`)}function u(e){return e<60?a(0,29*1e3):i((0,t.intervalToDuration)({start:0,end:e*1e3}),[`hours`,`minutes`])}function d(t){return e.t(new Intl.RelativeTimeFormat(n.code,{numeric:`auto`}).formatToParts(t,`day`)[0].value,n.code)}function f(e){return(0,t.isToday)(e)?d(0):(0,t.isYesterday)(e)?d(-1):(0,t.isThisWeek)(e)?r(e,`EEEE`):(0,t.isThisYear)(e)?r(e,`EEEE, MMMM d`):r(e,`MMMM d, y`)}exports.durationInHHMM=u,exports.getDateMedium=l,exports.relativeDate=f,exports.setDateLocale=c;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../utils-Db-kV6Sr.cjs`);let t=require(`date-fns`);var n;function r(e,r){return s(),(0,t.format)(e,r,{locale:n})}function i(e,r){return s(),(0,t.formatDuration)(e,{locale:n,format:r})}function a(e,r){return s(),(0,t.formatDistance)(e,r,{locale:n})}function o(){return n!==void 0}function s(){if(!o())throw Error(`Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function`)}function c(e){n=e}function l(e){return r(e,`MMMM d, y`)}function u(e){return e<60?a(0,29*1e3):i((0,t.intervalToDuration)({start:0,end:e*1e3}),[`hours`,`minutes`])}function d(t){return e.t(new Intl.RelativeTimeFormat(n.code,{numeric:`auto`}).formatToParts(t,`day`)[0].value,n.code)}function f(e){return(0,t.isToday)(e)?d(0):(0,t.isYesterday)(e)?d(-1):(0,t.isThisWeek)(e)?r(e,`EEEE`):(0,t.isThisYear)(e)?r(e,`EEEE, MMMM d`):r(e,`MMMM d, y`)}exports.durationInHHMM=u,exports.getDateMedium=l,exports.relativeDate=f,exports.setDateLocale=c;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["capitalizeFirstLetter"],"sources":["../../../common/dates/index.js"],"sourcesContent":["import {\n format,\n formatDuration,\n intervalToDuration,\n formatDistance,\n isToday,\n isYesterday,\n isThisWeek,\n isThisYear,\n} from 'date-fns';\nimport { capitalizeFirstLetter } from '../utils';\n\nlet dialtoneLocale;\n\n// Base functions just wrap core date-fns functions, but this allows us to do checks and set default options.\n\nfunction _baseFormat (date, formatString) {\n _checkLocaleSet();\n return format(date, formatString, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _baseFormatDuration (duration, formatString) {\n _checkLocaleSet();\n return formatDuration(duration, {\n locale: dialtoneLocale,\n format: formatString,\n });\n}\n\nfunction _baseFormatDistance (date, baseDate) {\n _checkLocaleSet();\n return formatDistance(date, baseDate, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _isLocaleSet () {\n return dialtoneLocale !== undefined;\n}\n\nfunction _checkLocaleSet () {\n if (!_isLocaleSet()) {\n throw new Error('Locale not set, please call setDateLocale(locale) and pass ' +\n 'in a datefns locale object as the locale param before calling this function');\n }\n}\n\n/**\n * Sets the locale for date-fns. This should be called before any date-fns functions are called.\n * @param {Locale} locale A date-fns locale object\n */\nexport function setDateLocale (locale) {\n dialtoneLocale = locale;\n}\n\n/**\n * This formats a date to the Dialtone standard medium date format as shown here:\n * https://dialtone.dialpad.com/guides/writing-guidelines/#formats-by-length\n * @param {Date} date A javascript date object\n * @returns {string} A string in the format of 'September 2, 2022'\n */\nexport function getDateMedium (date) {\n return _baseFormat(date, 'MMMM d, y');\n}\n\n/**\n * Converts a call duration in total number of seconds to a human readable string\n * such as 'less than a minute' or '4 hours 34 minutes'.\n * @param {number} durationInSeconds The duration of the call in seconds\n * @returns {string} A human readable string representing the duration of the call\n */\nexport function durationInHHMM (durationInSeconds) {\n if (durationInSeconds < 60) {\n // returns 'less than a minute', we're doing it like this instead of returning a string\n // so datefns handles i18n.\n return _baseFormatDistance(0, 29 * 1000);\n }\n const duration = intervalToDuration({\n start: 0,\n end: durationInSeconds * 1000,\n });\n return _baseFormatDuration(duration, ['hours', 'minutes']);\n}\n\n/**\n * gets the human readable name of the day relative to the current time. For example, if you pass in -1 it will\n * say \"Yesterday\" if you pass in 0 it will say \"Today\", if you pass in 1 it will say \"Tomorrow\".\n * @param {number} days The number of days relative to the current time\n * @returns {string} A human readable string representing the distance between the date and now\n */\nfunction _getRelativeDaysText (days) {\n const rtl = new Intl.RelativeTimeFormat(dialtoneLocale.code, { numeric: 'auto' });\n return capitalizeFirstLetter(rtl.formatToParts(days, 'day')[0].value, dialtoneLocale.code);\n}\n\n/**\n * Returns the distance between the passed in date and now in a human readable format, typically used\n * when showing a history of items in a log such as a feed list.\n *\n * datefns does not support 'today' and 'yesterday' without showing time so we use Intl for these cases.\n *\n * examples below to explain\n * the different potential formats:\n *\n * If current day:\n * Today\n *\n * If previous day:\n * Yesterday\n *\n * Older than yesterday, but in the same calendar week:\n * Monday\n *\n * Older than the most recent calendar week, but in the same year:\n * Monday, October 14\n *\n * older than a calendar year:\n * October 14, 2022\n *\n *\n * @param {Date} date The timestamp of the item's date\n * @returns {string} A human readable string representing the distance between the date and now\n */\nexport function relativeDate (date) {\n if (isToday(date)) {\n return _getRelativeDaysText(0);\n } else if (isYesterday(date)) {\n return _getRelativeDaysText(-1);\n } else if (isThisWeek(date)) {\n return _baseFormat(date, 'EEEE');\n } else if (isThisYear(date)) {\n return _baseFormat(date, 'EEEE, MMMM d');\n } else {\n return _baseFormat(date, 'MMMM d, y');\n }\n}\n"],"mappings":"6KAYA,IAAI,EAIJ,SAAS,EAAa,EAAM,EAAc,CAExC,OADA,GAAiB,EACjB,EAAA,EAAA,QAAc,EAAM,EAAc,CAChC,OAAQ,EACT,CAAC,CAGJ,SAAS,EAAqB,EAAU,EAAc,CAEpD,OADA,GAAiB,EACjB,EAAA,EAAA,gBAAsB,EAAU,CAC9B,OAAQ,EACR,OAAQ,EACT,CAAC,CAGJ,SAAS,EAAqB,EAAM,EAAU,CAE5C,OADA,GAAiB,EACjB,EAAA,EAAA,gBAAsB,EAAM,EAAU,CACpC,OAAQ,EACT,CAAC,CAGJ,SAAS,GAAgB,CACvB,OAAO,IAAmB,IAAA,GAG5B,SAAS,GAAmB,CAC1B,GAAI,CAAC,GAAc,CACjB,MAAU,MAAM,yIAC8D,CAQlF,SAAgB,EAAe,EAAQ,CACrC,EAAiB,EASnB,SAAgB,EAAe,EAAM,CACnC,OAAO,EAAY,EAAM,YAAY,CASvC,SAAgB,EAAgB,EAAmB,CAUjD,OATI,EAAoB,GAGf,EAAoB,EAAG,GAAK,IAAK,CAMnC,GAAA,EAAA,EAAA,oBAJ6B,CAClC,MAAO,EACP,IAAK,EAAoB,IAC1B,CAAC,CACmC,CAAC,QAAS,UAAU,CAAC,CAS5D,SAAS,EAAsB,EAAM,CAEnC,OAAOA,EAAAA,EADK,IAAI,KAAK,mBAAmB,EAAe,KAAM,CAAE,QAAS,OAAQ,CAAC,CAChD,cAAc,EAAM,MAAM,CAAC,GAAG,MAAO,EAAe,KAAK,CA+B5F,SAAgB,EAAc,EAAM,CAUhC,OATF,EAAA,EAAA,SAAY,EAAK,CACR,EAAqB,EAAE,mBACT,EAAK,CACnB,EAAqB,GAAG,kBACX,EAAK,CAClB,EAAY,EAAM,OAAO,kBACZ,EAAK,CAClB,EAAY,EAAM,eAAe,CAEjC,EAAY,EAAM,YAAY"}
1
+ {"version":3,"file":"index.cjs","names":["capitalizeFirstLetter"],"sources":["../../../common/dates/index.js"],"sourcesContent":["import {\n format,\n formatDuration,\n intervalToDuration,\n formatDistance,\n isToday,\n isYesterday,\n isThisWeek,\n isThisYear,\n} from 'date-fns';\nimport { capitalizeFirstLetter } from '../utils';\n\nlet dialtoneLocale;\n\n// Base functions just wrap core date-fns functions, but this allows us to do checks and set default options.\n\nfunction _baseFormat (date, formatString) {\n _checkLocaleSet();\n return format(date, formatString, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _baseFormatDuration (duration, formatString) {\n _checkLocaleSet();\n return formatDuration(duration, {\n locale: dialtoneLocale,\n format: formatString,\n });\n}\n\nfunction _baseFormatDistance (date, baseDate) {\n _checkLocaleSet();\n return formatDistance(date, baseDate, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _isLocaleSet () {\n return dialtoneLocale !== undefined;\n}\n\nfunction _checkLocaleSet () {\n if (!_isLocaleSet()) {\n throw new Error('Locale not set, please call setDateLocale(locale) and pass ' +\n 'in a datefns locale object as the locale param before calling this function');\n }\n}\n\n/**\n * Sets the locale for date-fns. This should be called before any date-fns functions are called.\n * @param {import('date-fns').Locale} locale A date-fns locale object\n */\nexport function setDateLocale (locale) {\n dialtoneLocale = locale;\n}\n\n/**\n * This formats a date to the Dialtone standard medium date format as shown here:\n * https://dialtone.dialpad.com/guides/writing-guidelines/#formats-by-length\n * @param {Date} date A javascript date object\n * @returns {string} A string in the format of 'September 2, 2022'\n */\nexport function getDateMedium (date) {\n return _baseFormat(date, 'MMMM d, y');\n}\n\n/**\n * Converts a call duration in total number of seconds to a human readable string\n * such as 'less than a minute' or '4 hours 34 minutes'.\n * @param {number} durationInSeconds The duration of the call in seconds\n * @returns {string} A human readable string representing the duration of the call\n */\nexport function durationInHHMM (durationInSeconds) {\n if (durationInSeconds < 60) {\n // returns 'less than a minute', we're doing it like this instead of returning a string\n // so datefns handles i18n.\n return _baseFormatDistance(0, 29 * 1000);\n }\n const duration = intervalToDuration({\n start: 0,\n end: durationInSeconds * 1000,\n });\n return _baseFormatDuration(duration, ['hours', 'minutes']);\n}\n\n/**\n * gets the human readable name of the day relative to the current time. For example, if you pass in -1 it will\n * say \"Yesterday\" if you pass in 0 it will say \"Today\", if you pass in 1 it will say \"Tomorrow\".\n * @param {number} days The number of days relative to the current time\n * @returns {string} A human readable string representing the distance between the date and now\n */\nfunction _getRelativeDaysText (days) {\n const rtl = new Intl.RelativeTimeFormat(dialtoneLocale.code, { numeric: 'auto' });\n return capitalizeFirstLetter(rtl.formatToParts(days, 'day')[0].value, dialtoneLocale.code);\n}\n\n/**\n * Returns the distance between the passed in date and now in a human readable format, typically used\n * when showing a history of items in a log such as a feed list.\n *\n * datefns does not support 'today' and 'yesterday' without showing time so we use Intl for these cases.\n *\n * examples below to explain\n * the different potential formats:\n *\n * If current day:\n * Today\n *\n * If previous day:\n * Yesterday\n *\n * Older than yesterday, but in the same calendar week:\n * Monday\n *\n * Older than the most recent calendar week, but in the same year:\n * Monday, October 14\n *\n * older than a calendar year:\n * October 14, 2022\n *\n *\n * @param {Date} date The timestamp of the item's date\n * @returns {string} A human readable string representing the distance between the date and now\n */\nexport function relativeDate (date) {\n if (isToday(date)) {\n return _getRelativeDaysText(0);\n } else if (isYesterday(date)) {\n return _getRelativeDaysText(-1);\n } else if (isThisWeek(date)) {\n return _baseFormat(date, 'EEEE');\n } else if (isThisYear(date)) {\n return _baseFormat(date, 'EEEE, MMMM d');\n } else {\n return _baseFormat(date, 'MMMM d, y');\n }\n}\n"],"mappings":"6KAYA,IAAI,EAIJ,SAAS,EAAa,EAAM,EAAc,CAExC,OADA,GAAiB,EACjB,EAAA,EAAA,QAAc,EAAM,EAAc,CAChC,OAAQ,EACT,CAAC,CAGJ,SAAS,EAAqB,EAAU,EAAc,CAEpD,OADA,GAAiB,EACjB,EAAA,EAAA,gBAAsB,EAAU,CAC9B,OAAQ,EACR,OAAQ,EACT,CAAC,CAGJ,SAAS,EAAqB,EAAM,EAAU,CAE5C,OADA,GAAiB,EACjB,EAAA,EAAA,gBAAsB,EAAM,EAAU,CACpC,OAAQ,EACT,CAAC,CAGJ,SAAS,GAAgB,CACvB,OAAO,IAAmB,IAAA,GAG5B,SAAS,GAAmB,CAC1B,GAAI,CAAC,GAAc,CACjB,MAAU,MAAM,yIAC8D,CAQlF,SAAgB,EAAe,EAAQ,CACrC,EAAiB,EASnB,SAAgB,EAAe,EAAM,CACnC,OAAO,EAAY,EAAM,YAAY,CASvC,SAAgB,EAAgB,EAAmB,CAUjD,OATI,EAAoB,GAGf,EAAoB,EAAG,GAAK,IAAK,CAMnC,GAAA,EAAA,EAAA,oBAJ6B,CAClC,MAAO,EACP,IAAK,EAAoB,IAC1B,CAAC,CACmC,CAAC,QAAS,UAAU,CAAC,CAS5D,SAAS,EAAsB,EAAM,CAEnC,OAAOA,EAAAA,EADK,IAAI,KAAK,mBAAmB,EAAe,KAAM,CAAE,QAAS,OAAQ,CAAC,CAChD,cAAc,EAAM,MAAM,CAAC,GAAG,MAAO,EAAe,KAAK,CA+B5F,SAAgB,EAAc,EAAM,CAUhC,OATF,EAAA,EAAA,SAAY,EAAK,CACR,EAAqB,EAAE,mBACT,EAAK,CACnB,EAAqB,GAAG,kBACX,EAAK,CAClB,EAAY,EAAM,OAAO,kBACZ,EAAK,CAClB,EAAY,EAAM,eAAe,CAEjC,EAAY,EAAM,YAAY"}
@@ -1,4 +1,4 @@
1
- export function setDateLocale(locale: Locale): void;
1
+ export function setDateLocale(locale: import('date-fns').Locale): void;
2
2
  export function getDateMedium(date: Date): string;
3
3
  export function durationInHHMM(durationInSeconds: number): string;
4
4
  export function relativeDate(date: Date): string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/dates/index.js"],"names":[],"mappings":"AAqDA,sCAFW,MAAM,QAIhB;AAQD,oCAHW,IAAI,GACF,MAAM,CAIlB;AAQD,kDAHW,MAAM,GACJ,MAAM,CAalB;AAyCD,mCAHW,IAAI,GACF,MAAM,CAclB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/dates/index.js"],"names":[],"mappings":"AAqDA,sCAFW,OAAO,UAAU,EAAE,MAAM,QAInC;AAQD,oCAHW,IAAI,GACF,MAAM,CAIlB;AAQD,kDAHW,MAAM,GACJ,MAAM,CAalB;AAyCD,mCAHW,IAAI,GACF,MAAM,CAclB"}
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../utils-BL_SrwnF.js";
1
+ import { t as e } from "../../utils-CXaaZqVu.js";
2
2
  import { format as t, formatDistance as n, formatDuration as r, intervalToDuration as i, isThisWeek as a, isThisYear as o, isToday as s, isYesterday as c } from "date-fns";
3
3
  //#region common/dates/index.js
4
4
  var l;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../common/dates/index.js"],"sourcesContent":["import {\n format,\n formatDuration,\n intervalToDuration,\n formatDistance,\n isToday,\n isYesterday,\n isThisWeek,\n isThisYear,\n} from 'date-fns';\nimport { capitalizeFirstLetter } from '../utils';\n\nlet dialtoneLocale;\n\n// Base functions just wrap core date-fns functions, but this allows us to do checks and set default options.\n\nfunction _baseFormat (date, formatString) {\n _checkLocaleSet();\n return format(date, formatString, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _baseFormatDuration (duration, formatString) {\n _checkLocaleSet();\n return formatDuration(duration, {\n locale: dialtoneLocale,\n format: formatString,\n });\n}\n\nfunction _baseFormatDistance (date, baseDate) {\n _checkLocaleSet();\n return formatDistance(date, baseDate, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _isLocaleSet () {\n return dialtoneLocale !== undefined;\n}\n\nfunction _checkLocaleSet () {\n if (!_isLocaleSet()) {\n throw new Error('Locale not set, please call setDateLocale(locale) and pass ' +\n 'in a datefns locale object as the locale param before calling this function');\n }\n}\n\n/**\n * Sets the locale for date-fns. This should be called before any date-fns functions are called.\n * @param {Locale} locale A date-fns locale object\n */\nexport function setDateLocale (locale) {\n dialtoneLocale = locale;\n}\n\n/**\n * This formats a date to the Dialtone standard medium date format as shown here:\n * https://dialtone.dialpad.com/guides/writing-guidelines/#formats-by-length\n * @param {Date} date A javascript date object\n * @returns {string} A string in the format of 'September 2, 2022'\n */\nexport function getDateMedium (date) {\n return _baseFormat(date, 'MMMM d, y');\n}\n\n/**\n * Converts a call duration in total number of seconds to a human readable string\n * such as 'less than a minute' or '4 hours 34 minutes'.\n * @param {number} durationInSeconds The duration of the call in seconds\n * @returns {string} A human readable string representing the duration of the call\n */\nexport function durationInHHMM (durationInSeconds) {\n if (durationInSeconds < 60) {\n // returns 'less than a minute', we're doing it like this instead of returning a string\n // so datefns handles i18n.\n return _baseFormatDistance(0, 29 * 1000);\n }\n const duration = intervalToDuration({\n start: 0,\n end: durationInSeconds * 1000,\n });\n return _baseFormatDuration(duration, ['hours', 'minutes']);\n}\n\n/**\n * gets the human readable name of the day relative to the current time. For example, if you pass in -1 it will\n * say \"Yesterday\" if you pass in 0 it will say \"Today\", if you pass in 1 it will say \"Tomorrow\".\n * @param {number} days The number of days relative to the current time\n * @returns {string} A human readable string representing the distance between the date and now\n */\nfunction _getRelativeDaysText (days) {\n const rtl = new Intl.RelativeTimeFormat(dialtoneLocale.code, { numeric: 'auto' });\n return capitalizeFirstLetter(rtl.formatToParts(days, 'day')[0].value, dialtoneLocale.code);\n}\n\n/**\n * Returns the distance between the passed in date and now in a human readable format, typically used\n * when showing a history of items in a log such as a feed list.\n *\n * datefns does not support 'today' and 'yesterday' without showing time so we use Intl for these cases.\n *\n * examples below to explain\n * the different potential formats:\n *\n * If current day:\n * Today\n *\n * If previous day:\n * Yesterday\n *\n * Older than yesterday, but in the same calendar week:\n * Monday\n *\n * Older than the most recent calendar week, but in the same year:\n * Monday, October 14\n *\n * older than a calendar year:\n * October 14, 2022\n *\n *\n * @param {Date} date The timestamp of the item's date\n * @returns {string} A human readable string representing the distance between the date and now\n */\nexport function relativeDate (date) {\n if (isToday(date)) {\n return _getRelativeDaysText(0);\n } else if (isYesterday(date)) {\n return _getRelativeDaysText(-1);\n } else if (isThisWeek(date)) {\n return _baseFormat(date, 'EEEE');\n } else if (isThisYear(date)) {\n return _baseFormat(date, 'EEEE, MMMM d');\n } else {\n return _baseFormat(date, 'MMMM d, y');\n }\n}\n"],"mappings":";;;AAYA,IAAI;AAIJ,SAAS,EAAa,GAAM,GAAc;AAExC,QADA,GAAiB,EACV,EAAO,GAAM,GAAc,EAChC,QAAQ,GACT,CAAC;;AAGJ,SAAS,EAAqB,GAAU,GAAc;AAEpD,QADA,GAAiB,EACV,EAAe,GAAU;EAC9B,QAAQ;EACR,QAAQ;EACT,CAAC;;AAGJ,SAAS,EAAqB,GAAM,GAAU;AAE5C,QADA,GAAiB,EACV,EAAe,GAAM,GAAU,EACpC,QAAQ,GACT,CAAC;;AAGJ,SAAS,IAAgB;AACvB,QAAO,MAAmB,KAAA;;AAG5B,SAAS,IAAmB;AAC1B,KAAI,CAAC,GAAc,CACjB,OAAU,MAAM,yIAC8D;;AAQlF,SAAgB,EAAe,GAAQ;AACrC,KAAiB;;AASnB,SAAgB,EAAe,GAAM;AACnC,QAAO,EAAY,GAAM,YAAY;;AASvC,SAAgB,EAAgB,GAAmB;AAUjD,QATI,IAAoB,KAGf,EAAoB,GAAG,KAAK,IAAK,GAMnC,EAJU,EAAmB;EAClC,OAAO;EACP,KAAK,IAAoB;EAC1B,CAAC,EACmC,CAAC,SAAS,UAAU,CAAC;;AAS5D,SAAS,EAAsB,GAAM;AAEnC,QAAO,EADK,IAAI,KAAK,mBAAmB,EAAe,MAAM,EAAE,SAAS,QAAQ,CAAC,CAChD,cAAc,GAAM,MAAM,CAAC,GAAG,OAAO,EAAe,KAAK;;AA+B5F,SAAgB,EAAc,GAAM;AAUhC,QATE,EAAQ,EAAK,GACR,EAAqB,EAAE,GACrB,EAAY,EAAK,GACnB,EAAqB,GAAG,GACtB,EAAW,EAAK,GAClB,EAAY,GAAM,OAAO,GACvB,EAAW,EAAK,GAClB,EAAY,GAAM,eAAe,GAEjC,EAAY,GAAM,YAAY"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../common/dates/index.js"],"sourcesContent":["import {\n format,\n formatDuration,\n intervalToDuration,\n formatDistance,\n isToday,\n isYesterday,\n isThisWeek,\n isThisYear,\n} from 'date-fns';\nimport { capitalizeFirstLetter } from '../utils';\n\nlet dialtoneLocale;\n\n// Base functions just wrap core date-fns functions, but this allows us to do checks and set default options.\n\nfunction _baseFormat (date, formatString) {\n _checkLocaleSet();\n return format(date, formatString, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _baseFormatDuration (duration, formatString) {\n _checkLocaleSet();\n return formatDuration(duration, {\n locale: dialtoneLocale,\n format: formatString,\n });\n}\n\nfunction _baseFormatDistance (date, baseDate) {\n _checkLocaleSet();\n return formatDistance(date, baseDate, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _isLocaleSet () {\n return dialtoneLocale !== undefined;\n}\n\nfunction _checkLocaleSet () {\n if (!_isLocaleSet()) {\n throw new Error('Locale not set, please call setDateLocale(locale) and pass ' +\n 'in a datefns locale object as the locale param before calling this function');\n }\n}\n\n/**\n * Sets the locale for date-fns. This should be called before any date-fns functions are called.\n * @param {import('date-fns').Locale} locale A date-fns locale object\n */\nexport function setDateLocale (locale) {\n dialtoneLocale = locale;\n}\n\n/**\n * This formats a date to the Dialtone standard medium date format as shown here:\n * https://dialtone.dialpad.com/guides/writing-guidelines/#formats-by-length\n * @param {Date} date A javascript date object\n * @returns {string} A string in the format of 'September 2, 2022'\n */\nexport function getDateMedium (date) {\n return _baseFormat(date, 'MMMM d, y');\n}\n\n/**\n * Converts a call duration in total number of seconds to a human readable string\n * such as 'less than a minute' or '4 hours 34 minutes'.\n * @param {number} durationInSeconds The duration of the call in seconds\n * @returns {string} A human readable string representing the duration of the call\n */\nexport function durationInHHMM (durationInSeconds) {\n if (durationInSeconds < 60) {\n // returns 'less than a minute', we're doing it like this instead of returning a string\n // so datefns handles i18n.\n return _baseFormatDistance(0, 29 * 1000);\n }\n const duration = intervalToDuration({\n start: 0,\n end: durationInSeconds * 1000,\n });\n return _baseFormatDuration(duration, ['hours', 'minutes']);\n}\n\n/**\n * gets the human readable name of the day relative to the current time. For example, if you pass in -1 it will\n * say \"Yesterday\" if you pass in 0 it will say \"Today\", if you pass in 1 it will say \"Tomorrow\".\n * @param {number} days The number of days relative to the current time\n * @returns {string} A human readable string representing the distance between the date and now\n */\nfunction _getRelativeDaysText (days) {\n const rtl = new Intl.RelativeTimeFormat(dialtoneLocale.code, { numeric: 'auto' });\n return capitalizeFirstLetter(rtl.formatToParts(days, 'day')[0].value, dialtoneLocale.code);\n}\n\n/**\n * Returns the distance between the passed in date and now in a human readable format, typically used\n * when showing a history of items in a log such as a feed list.\n *\n * datefns does not support 'today' and 'yesterday' without showing time so we use Intl for these cases.\n *\n * examples below to explain\n * the different potential formats:\n *\n * If current day:\n * Today\n *\n * If previous day:\n * Yesterday\n *\n * Older than yesterday, but in the same calendar week:\n * Monday\n *\n * Older than the most recent calendar week, but in the same year:\n * Monday, October 14\n *\n * older than a calendar year:\n * October 14, 2022\n *\n *\n * @param {Date} date The timestamp of the item's date\n * @returns {string} A human readable string representing the distance between the date and now\n */\nexport function relativeDate (date) {\n if (isToday(date)) {\n return _getRelativeDaysText(0);\n } else if (isYesterday(date)) {\n return _getRelativeDaysText(-1);\n } else if (isThisWeek(date)) {\n return _baseFormat(date, 'EEEE');\n } else if (isThisYear(date)) {\n return _baseFormat(date, 'EEEE, MMMM d');\n } else {\n return _baseFormat(date, 'MMMM d, y');\n }\n}\n"],"mappings":";;;AAYA,IAAI;AAIJ,SAAS,EAAa,GAAM,GAAc;AAExC,QADA,GAAiB,EACV,EAAO,GAAM,GAAc,EAChC,QAAQ,GACT,CAAC;;AAGJ,SAAS,EAAqB,GAAU,GAAc;AAEpD,QADA,GAAiB,EACV,EAAe,GAAU;EAC9B,QAAQ;EACR,QAAQ;EACT,CAAC;;AAGJ,SAAS,EAAqB,GAAM,GAAU;AAE5C,QADA,GAAiB,EACV,EAAe,GAAM,GAAU,EACpC,QAAQ,GACT,CAAC;;AAGJ,SAAS,IAAgB;AACvB,QAAO,MAAmB,KAAA;;AAG5B,SAAS,IAAmB;AAC1B,KAAI,CAAC,GAAc,CACjB,OAAU,MAAM,yIAC8D;;AAQlF,SAAgB,EAAe,GAAQ;AACrC,KAAiB;;AASnB,SAAgB,EAAe,GAAM;AACnC,QAAO,EAAY,GAAM,YAAY;;AASvC,SAAgB,EAAgB,GAAmB;AAUjD,QATI,IAAoB,KAGf,EAAoB,GAAG,KAAK,IAAK,GAMnC,EAJU,EAAmB;EAClC,OAAO;EACP,KAAK,IAAoB;EAC1B,CAAC,EACmC,CAAC,SAAS,UAAU,CAAC;;AAS5D,SAAS,EAAsB,GAAM;AAEnC,QAAO,EADK,IAAI,KAAK,mBAAmB,EAAe,MAAM,EAAE,SAAS,QAAQ,CAAC,CAChD,cAAc,GAAM,MAAM,CAAC,GAAG,OAAO,EAAe,KAAK;;AA+B5F,SAAgB,EAAc,GAAM;AAUhC,QATE,EAAQ,EAAK,GACR,EAAqB,EAAE,GACrB,EAAY,EAAK,GACnB,EAAqB,GAAG,GACtB,EAAW,EAAK,GAClB,EAAY,GAAM,OAAO,GACvB,EAAW,EAAK,GAClB,EAAY,GAAM,eAAe,GAEjC,EAAY,GAAM,YAAY"}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`regex-combined-emojis`),n=require(`emoji-toolkit/emoji_strategy.json`);n=e.t(n);var r=new RegExp(t.emojiPattern,`g`),i=`9.0`,a=`https://cdn.jsdelivr.net/joypixels/assets/9.0/png/unicode/32/`,o=null,s=a,c=`.png`,l=a,u=`.png`,d=n.default,f=/(^| |(?<=:))(:\w+:)/g;function p(){return d}function m(e,t=`.png`){e.endsWith(`/`)||(e+=`/`),s=e,c=t}function h(e,t=`.svg`){e.endsWith(`/`)||(e+=`/`),l=e,u=t}function g(e){o=e}function _(e){v(e)}function v(e){let t=[`custom`,`date_added`,`image`],n=[`date_added`,`image`,`unicode_output`,`shortname`,`shortname_alternates`,`custom`,`name`],r=(e,n,r)=>{if(e[n]===void 0){if(!t.includes(n))return;e[n]=r}else Array.isArray(e[n])?e[n]=e[n].concat(r):e[n]=r};Object.entries(e).forEach(e=>{let[t,i]=e;if(t in d){let e=d[t];for(let t in i){let n=i[t];r(e,t,n)}}else n.every(e=>i[e]!==void 0)?d[t]=i:console.error(`The following custom emoji doesn't contain the required properties:`,i)})}function y(e){function t(r,i){if(!(!r||typeof r!=`object`)){if(`shortname`in r&&(r.shortname===e||r.shortname_alternates.includes(e)))return r.key=i,n=r,!0;Object.keys(r).some(function(e){return t(r[e],e)})}}let n;return t(p(),null),n}function b(e){return e.startsWith(`:`)?e:d[x(e)]?.shortname}function x(e){let t=``;for(let n of e){let e=n.codePointAt(0).toString(16).padStart(4,`0`);[`200d`,`fe0f`].includes(e)||(t!==``&&(t+=`-`),t+=e)}return t}function S(e){let t=e.split(`-`),n=``;return t.forEach(e=>{n+=String.fromCodePoint(parseInt(e,16))}),n}function C(e){if(e=e?.trim(),e.startsWith(`:`)&&e.endsWith(`:`))return y(e);{let t=x(e),n=d[t];return n&&(n.key=t),n}}function w(e){return T((e.match(f)||[]).map(e=>e.trim()))}function T(e){let t=e?e.filter(e=>y(e)):[];return new Set(t)}function E(e){let t=[...e.matchAll(r)],n=t.length?t.map(e=>e[0]):[];return new Set(n)}exports.codeToEmojiData=C,Object.defineProperty(exports,`customEmojiAssetUrl`,{enumerable:!0,get:function(){return o}}),exports.defaultEmojiAssetUrl=a,Object.defineProperty(exports,`emojiFileExtensionLarge`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`emojiFileExtensionSmall`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`emojiImageUrlLarge`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`emojiImageUrlSmall`,{enumerable:!0,get:function(){return s}}),exports.emojiJson=d,exports.emojiRegex=r,exports.emojiShortCodeRegex=f,exports.emojiVersion=i,exports.filterValidShortCodes=T,exports.findEmojis=E,exports.findShortCodes=w,exports.getEmojiData=p,exports.getEmojiShortCode=b,exports.setCustomEmojiJson=_,exports.setCustomEmojiUrl=g,exports.setEmojiAssetUrlLarge=h,exports.setEmojiAssetUrlSmall=m,exports.shortcodeToEmojiData=y,exports.stringToUnicode=S,exports.unicodeToString=x,exports.validateCustomEmojiJson=v;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../chunk-BK-Lzi7j.cjs`);let t=require(`regex-combined-emojis`),n=require(`emoji-toolkit/emoji_strategy.json`);n=e.r(n);var r=new RegExp(t.emojiPattern,`g`),i=`9.0`,a=`https://cdn.jsdelivr.net/joypixels/assets/9.0/png/unicode/32/`,o=null,s=a,c=`.png`,l=a,u=`.png`,d=n.default,f=/(^| |(?<=:))(:\w+:)/g;function p(){return d}function m(e,t=`.png`){e.endsWith(`/`)||(e+=`/`),s=e,c=t}function h(e,t=`.svg`){e.endsWith(`/`)||(e+=`/`),l=e,u=t}function g(e){o=e}function _(e){v(e)}function v(e){let t=[`custom`,`date_added`,`image`],n=[`date_added`,`image`,`unicode_output`,`shortname`,`shortname_alternates`,`custom`,`name`],r=(e,n,r)=>{if(e[n]===void 0){if(!t.includes(n))return;e[n]=r}else Array.isArray(e[n])?e[n]=e[n].concat(r):e[n]=r};Object.entries(e).forEach(e=>{let[t,i]=e;if(t in d){let e=d[t];for(let t in i){let n=i[t];r(e,t,n)}}else n.every(e=>i[e]!==void 0)?d[t]=i:console.error(`The following custom emoji doesn't contain the required properties:`,i)})}function y(e){function t(r,i){if(!(!r||typeof r!=`object`)){if(`shortname`in r&&(r.shortname===e||r.shortname_alternates.includes(e)))return r.key=i,n=r,!0;Object.keys(r).some(function(e){return t(r[e],e)})}}let n;return t(p(),null),n}function b(e){return e.startsWith(`:`)?e:d[x(e)]?.shortname}function x(e){let t=``;for(let n of e){let e=n.codePointAt(0).toString(16).padStart(4,`0`);[`200d`,`fe0f`].includes(e)||(t!==``&&(t+=`-`),t+=e)}return t}function S(e){let t=e.split(`-`),n=``;return t.forEach(e=>{n+=String.fromCodePoint(parseInt(e,16))}),n}function C(e){if(e=e?.trim(),e.startsWith(`:`)&&e.endsWith(`:`))return y(e);{let t=x(e),n=d[t];return n&&(n.key=t),n}}function w(e){return T((e.match(f)||[]).map(e=>e.trim()))}function T(e){let t=e?e.filter(e=>y(e)):[];return new Set(t)}function E(e){let t=[...e.matchAll(r)],n=t.length?t.map(e=>e[0]):[];return new Set(n)}exports.codeToEmojiData=C,Object.defineProperty(exports,`customEmojiAssetUrl`,{enumerable:!0,get:function(){return o}}),exports.defaultEmojiAssetUrl=a,Object.defineProperty(exports,`emojiFileExtensionLarge`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`emojiFileExtensionSmall`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`emojiImageUrlLarge`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`emojiImageUrlSmall`,{enumerable:!0,get:function(){return s}}),exports.emojiJson=d,exports.emojiRegex=r,exports.emojiShortCodeRegex=f,exports.emojiVersion=i,exports.filterValidShortCodes=T,exports.findEmojis=E,exports.findShortCodes=w,exports.getEmojiData=p,exports.getEmojiShortCode=b,exports.setCustomEmojiJson=_,exports.setCustomEmojiUrl=g,exports.setEmojiAssetUrlLarge=h,exports.setEmojiAssetUrlSmall=m,exports.shortcodeToEmojiData=y,exports.stringToUnicode=S,exports.unicodeToString=x,exports.validateCustomEmojiJson=v;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../validators/index.cjs`),t=require(`../../utils-GofHWJKi.cjs`),n=require(`../../lib/validation-messages/validation-messages.cjs`);let r=require(`vue`);var i={components:{DtValidationMessages:n.default},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return t.m()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:``},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>e.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:``},messagesClass:{type:[String,Array,Object],default:``},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},emits:[`update:modelValue`],data(){let e=t.u(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:t.h(e)}}},computed:{formattedMessages(){return t.u(this.messages)},validationState(){return t.h(this.formattedMessages)}},watch:{disabled(e){this.provideObj.disabled=e},validationState(e){this.provideObj.validationState=e}},methods:{setGroupValue(e){this.internalValue=e,this.$emit(`update:modelValue`,e)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs[`aria-label`]&&(0,r.warn)(`It is expected that an aria-label is provided when there is no legend.`,this)}},a={InputGroupMixin:i};exports.InputGroupMixin=i,exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../validators/index.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`),n=require(`../../lib/validation-messages/validation-messages.cjs`);let r=require(`vue`);var i={components:{DtValidationMessages:n.default},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return t.m()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:``},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>e.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:``},messagesClass:{type:[String,Array,Object],default:``},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},emits:[`update:modelValue`],data(){let e=t.u(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:t.h(e)}}},computed:{formattedMessages(){return t.u(this.messages)},validationState(){return t.h(this.formattedMessages)}},watch:{disabled(e){this.provideObj.disabled=e},validationState(e){this.provideObj.validationState=e}},methods:{setGroupValue(e){this.internalValue=e,this.$emit(`update:modelValue`,e)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs[`aria-label`]&&(0,r.warn)(`It is expected that an aria-label is provided when there is no legend.`,this)}},a={InputGroupMixin:i};exports.InputGroupMixin=i,exports.default=a;
2
2
  //# sourceMappingURL=input-group.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { validationMessageValidator as e } from "../validators/index.js";
2
- import { h as t, m as n, u as r } from "../../utils-BL_SrwnF.js";
2
+ import { h as t, m as n, u as r } from "../../utils-CXaaZqVu.js";
3
3
  import i from "../../lib/validation-messages/validation-messages.js";
4
4
  import { warn as a } from "vue";
5
5
  //#region common/mixins/input_group.js
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../constants/index.cjs`),t=require(`../validators/index.cjs`),n=require(`../../utils-GofHWJKi.cjs`);let r=require(`vue`);var i={inheritAttrs:!1,props:{label:{type:String,default:``},name:{type:String,default:``},value:{type:[String,Number,Boolean,Object],default:null},description:{type:String,default:``},disabled:{type:Boolean,default:!1},validationState:{type:String,default:``,validator:t=>t?Object.values(e.VALIDATION_MESSAGE_TYPES).includes(t):!0},inputClass:{type:[String,Array,Object],default:``},labelClass:{type:[String,Array,Object],default:``},descriptionClass:{type:[String,Array,Object],default:``},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})}},data(){return{internalDisabled:this.disabled,internalValidationState:this.validationState}},watch:{disabled(e){this.internalDisabled=e},validationState(e){this.internalValidationState=e}},methods:{validateInputLabels(e,t){!e&&!t&&(0,r.warn)(`You must provide an aria-label when there is no label passed`,this)}}},a={props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:null}},data(){return{internalChecked:this.modelValue,internalIndeterminate:this.indeterminate}},watch:{modelValue(e){this.internalChecked=e},indeterminate(e){this.internalIndeterminate=e}}},o={inject:{groupContext:{default:{}},setGroupValue:{default:()=>()=>{}}},data(){return{internalValue:this.value}},computed:{hasGroup(){return Object.prototype.hasOwnProperty.call(this.groupContext,`name`)},groupName(){return this.groupContext?.name??``},groupValue(){return this.groupContext?.value},groupDisabled(){return this.groupContext?.disabled??!1},groupValidationState(){return this.groupContext?.validationState??null},internalName(){return this.name||this.groupName}},watch:{value(e){this.internalValue=e},groupValue:{immediate:!0,handler(e){this.hasGroup&&(this.internalValue=e)}},groupDisabled:{immediate:!0,handler(e){this.hasGroup&&(this.internalDisabled=this.disabled||e)}},groupValidationState:{immediate:!0,handler(e){this.hasGroup&&(this.internalValidationState=e||this.validationState)}}},created(){let e=Object.prototype.hasOwnProperty.call(this.groupContext,`name`),t=this.groupContext?.name;this.name&&e&&t!==this.name&&(0,r.warn)(`Component is being used inside a Group. Did you mean to override the name prop value (${t}) with (${this.name})? It is recommended to only set name at the Group level.`,this)}},s={props:{messagesClass:{type:[String,Array,Object],default:``},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:e=>t.validationMessageValidator(e)}},computed:{formattedMessages(){return n.u(this.messages)}}},c={InputMixin:i,CheckableMixin:a,GroupableMixin:o,MessagesMixin:s};exports.CheckableMixin=a,exports.GroupableMixin=o,exports.InputMixin=i,exports.MessagesMixin=s,exports.default=c;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../constants/index.cjs`),t=require(`../validators/index.cjs`),n=require(`../../utils-Db-kV6Sr.cjs`);let r=require(`vue`);var i={inheritAttrs:!1,props:{label:{type:String,default:``},name:{type:String,default:``},value:{type:[String,Number,Boolean,Object],default:null},description:{type:String,default:``},disabled:{type:Boolean,default:!1},validationState:{type:String,default:``,validator:t=>t?Object.values(e.VALIDATION_MESSAGE_TYPES).includes(t):!0},inputClass:{type:[String,Array,Object],default:``},labelClass:{type:[String,Array,Object],default:``},descriptionClass:{type:[String,Array,Object],default:``},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})}},data(){return{internalDisabled:this.disabled,internalValidationState:this.validationState}},watch:{disabled(e){this.internalDisabled=e},validationState(e){this.internalValidationState=e}},methods:{validateInputLabels(e,t){!e&&!t&&(0,r.warn)(`You must provide an aria-label when there is no label passed`,this)}}},a={props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:null}},data(){return{internalChecked:this.modelValue,internalIndeterminate:this.indeterminate}},watch:{modelValue(e){this.internalChecked=e},indeterminate(e){this.internalIndeterminate=e}}},o={inject:{groupContext:{default:{}},setGroupValue:{default:()=>()=>{}}},data(){return{internalValue:this.value}},computed:{hasGroup(){return Object.prototype.hasOwnProperty.call(this.groupContext,`name`)},groupName(){return this.groupContext?.name??``},groupValue(){return this.groupContext?.value},groupDisabled(){return this.groupContext?.disabled??!1},groupValidationState(){return this.groupContext?.validationState??null},internalName(){return this.name||this.groupName}},watch:{value(e){this.internalValue=e},groupValue:{immediate:!0,handler(e){this.hasGroup&&(this.internalValue=e)}},groupDisabled:{immediate:!0,handler(e){this.hasGroup&&(this.internalDisabled=this.disabled||e)}},groupValidationState:{immediate:!0,handler(e){this.hasGroup&&(this.internalValidationState=e||this.validationState)}}},created(){let e=Object.prototype.hasOwnProperty.call(this.groupContext,`name`),t=this.groupContext?.name;this.name&&e&&t!==this.name&&(0,r.warn)(`Component is being used inside a Group. Did you mean to override the name prop value (${t}) with (${this.name})? It is recommended to only set name at the Group level.`,this)}},s={props:{messagesClass:{type:[String,Array,Object],default:``},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:e=>t.validationMessageValidator(e)}},computed:{formattedMessages(){return n.u(this.messages)}}},c={InputMixin:i,CheckableMixin:a,GroupableMixin:o,MessagesMixin:s};exports.CheckableMixin=a,exports.GroupableMixin=o,exports.InputMixin=i,exports.MessagesMixin=s,exports.default=c;
2
2
  //# sourceMappingURL=input.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { VALIDATION_MESSAGE_TYPES as e } from "../constants/index.js";
2
2
  import { validationMessageValidator as t } from "../validators/index.js";
3
- import { u as n } from "../../utils-BL_SrwnF.js";
3
+ import { u as n } from "../../utils-CXaaZqVu.js";
4
4
  import { warn as r } from "vue";
5
5
  //#region common/mixins/input.js
6
6
  var i = {
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./dom.cjs`),t=require(`../../utils-GofHWJKi.cjs`);var n=`listElementKey is required or the referenced element doesn't exist. Received listElement: `,r=({listItemRole:r=`option`,indexKey:i=`highlightIndex`,idKey:a=`highlightId`,listElementKey:o=`listRef`,activeItemKey:s=``,openMethod:c=null,afterHighlightMethod:l=null,beginningOfListMethod:u=null,endOfListMethod:d=null,scrollToOnHighlight:f=!0,focusOnKeyboardNavigation:p=!1}={})=>({mixins:[e.default],data(){return{[i]:-1,[a]:``,scrollToOnHighlight:f,focusOnKeyboardNavigation:p}},provide(){return{highlightId:()=>this[a]}},methods:{_getListElement(){return t.O(this[o]()?.$el)||this[o]()},_itemsLength(){let e=this._getListItemNodes();return e===null?0:e.length},_getListItemNodes(){let e=this._getListElement();if(!e)return console.error(n,e),null;let t=(Array.isArray(r)?r:[r]).map(e=>`[role="${e}"]`).join(`, `);return Array.from(e.querySelectorAll(`${t}, #sr-only-close-button`)).filter(e=>e.getAttribute(`role`)!==`menuitemradio`||e.id)},onUpKey(){c&&this[c](!0),this[i]>0?this.setHighlightIndex(this[i]-1):u&&this[u](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){c&&this[c](!0),this[i]<this._itemsLength()-1?this.setHighlightIndex(this[i]+1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(e){let t=this._getListItemNodes(),n=(t||[]).filter(t=>t.textContent.trim().toLowerCase().startsWith(e.toLowerCase()));if(n.length<=0)return;let r=n.findIndex(e=>this[i]===t.indexOf(e)),a=t.indexOf(r<n.length-1?n[r+1]:n[0]);this.setHighlightIndex(a),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(e){return e.length>1?!1:e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(e){this[i]=e,this[a]=this._getItemId(e),this._itemsLength()&&l&&this[l](e)},setHighlightId(e){if(!e)return;let t=this._getItemIndex(e);this[a]=e,this[i]=t,this._itemsLength()&&l&&this[l](t)},_getItemIndex(e){if(!e)return-1;if(this._getListElement())return this._getListItemNodes()?.findIndex(t=>t.id===e)??-1},_getItemId(e){return this._getListItemNodes()?.[e]?.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;let e=this[s];if(e){let t=this._getListElement();this.scrollElementIntoViewIfNeeded(e,null,null,t)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;let e=this[s];e&&e.focus()}}});exports.default=r;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./dom.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`);var n=`listElementKey is required or the referenced element doesn't exist. Received listElement: `,r=({listItemRole:r=`option`,indexKey:i=`highlightIndex`,idKey:a=`highlightId`,listElementKey:o=`listRef`,activeItemKey:s=``,openMethod:c=null,afterHighlightMethod:l=null,beginningOfListMethod:u=null,endOfListMethod:d=null,scrollToOnHighlight:f=!0,focusOnKeyboardNavigation:p=!1}={})=>({mixins:[e.default],data(){return{[i]:-1,[a]:``,scrollToOnHighlight:f,focusOnKeyboardNavigation:p}},provide(){return{highlightId:()=>this[a]}},methods:{_getListElement(){return t.O(this[o]()?.$el)||this[o]()},_itemsLength(){let e=this._getListItemNodes();return e===null?0:e.length},_getListItemNodes(){let e=this._getListElement();if(!e)return console.error(n,e),null;let t=(Array.isArray(r)?r:[r]).map(e=>`[role="${e}"]`).join(`, `);return Array.from(e.querySelectorAll(`${t}, #sr-only-close-button`)).filter(e=>e.getAttribute(`role`)!==`menuitemradio`||e.id)},onUpKey(){c&&this[c](!0),this[i]>0?this.setHighlightIndex(this[i]-1):u&&this[u](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){c&&this[c](!0),this[i]<this._itemsLength()-1?this.setHighlightIndex(this[i]+1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(e){let t=this._getListItemNodes(),n=(t||[]).filter(t=>t.textContent.trim().toLowerCase().startsWith(e.toLowerCase()));if(n.length<=0)return;let r=n.findIndex(e=>this[i]===t.indexOf(e)),a=t.indexOf(r<n.length-1?n[r+1]:n[0]);this.setHighlightIndex(a),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(e){return e.length>1?!1:e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(e){this[i]=e,this[a]=this._getItemId(e),this._itemsLength()&&l&&this[l](e)},setHighlightId(e){if(!e)return;let t=this._getItemIndex(e);this[a]=e,this[i]=t,this._itemsLength()&&l&&this[l](t)},_getItemIndex(e){if(!e)return-1;if(this._getListElement())return this._getListItemNodes()?.findIndex(t=>t.id===e)??-1},_getItemId(e){return this._getListItemNodes()?.[e]?.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;let e=this[s];if(e){let t=this._getListElement();this.scrollElementIntoViewIfNeeded(e,null,null,t)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;let e=this[s];e&&e.focus()}}});exports.default=r;
2
2
  //# sourceMappingURL=keyboard-list-navigation.cjs.map
@@ -1,5 +1,5 @@
1
1
  import e from "./dom.js";
2
- import { O as t } from "../../utils-BL_SrwnF.js";
2
+ import { O as t } from "../../utils-CXaaZqVu.js";
3
3
  //#region common/mixins/keyboard_list_navigation.js
4
4
  var n = "listElementKey is required or the referenced element doesn't exist. Received listElement: ", r = ({ listItemRole: r = "option", indexKey: i = "highlightIndex", idKey: a = "highlightId", listElementKey: o = "listRef", activeItemKey: s = "", openMethod: c = null, afterHighlightMethod: l = null, beginningOfListMethod: u = null, endOfListMethod: d = null, scrollToOnHighlight: f = !0, focusOnKeyboardNavigation: p = !1 } = {}) => ({
5
5
  mixins: [e],
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../utils-GofHWJKi.cjs`);var t=`:not(:disabled):not([aria-disabled="true"]):not([role="presentation"])`,n=`${t}:not([tabindex="-1"])`,r=`button,[href],input,select,textarea,details,[tabindex]`,i={methods:{async getFirstFocusableElement(e){await this.$nextTick();let t=this._getFocusableElements(e,!0);return this._getFirstFocusElement(t)},async focusFirstElement(t=this.$el){(await this.getFirstFocusableElement(e.O(t)))?.focus({preventScroll:!0})},async focusElementById(t){await this.$nextTick();let n=e.O(this.$el)?.querySelector(t);if(n){n.focus();return}console.warn(`Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.`),await this.focusFirstElement()},_getFirstFocusElement(e){if(!e.length)return;let t=e[0];return t.matches(`[type="radio"]:not(:checked)`)&&(t=e.find(e=>e.checked&&e.name===t.name)||t),t},_getFocusableElements(i=this.$el,a=!1){return i=e.O(i),i?[...i.querySelectorAll(r)].filter(e=>{let r=window.getComputedStyle(e);return r.getPropertyValue(`display`)!==`none`&&r.getPropertyValue(`visibility`)!==`hidden`&&e.matches(a?t:n)}):[]},focusTrappedTabPress(e,t){if(e.key!==`Tab`)return;let n=this._getFocusableElements(t);if(!n.length){e.preventDefault();return}let r=this._getFirstFocusElement(n),i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}}};exports.default=i;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../utils-Db-kV6Sr.cjs`);var t=`:not(:disabled):not([aria-disabled="true"]):not([role="presentation"])`,n=`${t}:not([tabindex="-1"])`,r=`button,[href],input,select,textarea,details,[tabindex]`,i={methods:{async getFirstFocusableElement(e){await this.$nextTick();let t=this._getFocusableElements(e,!0);return this._getFirstFocusElement(t)},async focusFirstElement(t=this.$el){(await this.getFirstFocusableElement(e.O(t)))?.focus({preventScroll:!0})},async focusElementById(t){await this.$nextTick();let n=e.O(this.$el)?.querySelector(t);if(n){n.focus();return}console.warn(`Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.`),await this.focusFirstElement()},_getFirstFocusElement(e){if(!e.length)return;let t=e[0];return t.matches(`[type="radio"]:not(:checked)`)&&(t=e.find(e=>e.checked&&e.name===t.name)||t),t},_getFocusableElements(i=this.$el,a=!1){return i=e.O(i),i?[...i.querySelectorAll(r)].filter(e=>{let r=window.getComputedStyle(e);return r.getPropertyValue(`display`)!==`none`&&r.getPropertyValue(`visibility`)!==`hidden`&&e.matches(a?t:n)}):[]},focusTrappedTabPress(e,t){if(e.key!==`Tab`)return;let n=this._getFocusableElements(t);if(!n.length){e.preventDefault();return}let r=this._getFirstFocusElement(n),i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}}};exports.default=i;
2
2
  //# sourceMappingURL=modal.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.cjs","names":["returnFirstEl"],"sources":["../../../common/mixins/modal.js"],"sourcesContent":["import { returnFirstEl } from '@/common/utils';\n\nconst focusableAttrs = ':not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])';\nconst tabbableAttrs = `${focusableAttrs}:not([tabindex=\"-1\"])`;\nconst focusableElementsList = `button,[href],input,select,textarea,details,[tabindex]`;\n\n/**\n * This mixin provides the methods to automatically trap tab focus within\n * the component this mixin is on, meaning it is not possible to tab out\n * of the component without dismissing it.\n *\n * Useful for accessibility reasons on things like important actionable alerts.\n *\n * Use focusFirstElement to focus on the first tabbable element within your component, and call\n * focusTrappedTabPress every time tab is pressed to trap tab within this\n * component.\n *\n * Note that focusFirstElement WILL focus elements with tabindex=\"-1\",\n * however focusTrappedTabPress will not.\n * @displayName Modal Mixin\n */\nexport default {\n methods: {\n /**\n * get the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async getFirstFocusableElement (el) {\n await this.$nextTick();\n const focusableElements = this._getFocusableElements(el, true);\n return this._getFirstFocusElement(focusableElements);\n },\n\n /**\n * set focus to the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async focusFirstElement (el = this.$el) {\n const elToFocus = await this.getFirstFocusableElement(returnFirstEl(el));\n elToFocus?.focus({ preventScroll: true });\n },\n\n async focusElementById (elementId) {\n await this.$nextTick();\n const result = returnFirstEl(this.$el)?.querySelector(elementId);\n if (result) {\n result.focus();\n return;\n }\n\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 await this.focusFirstElement();\n },\n\n /**\n * internal use only.\n *\n * @param focusableElements - list of focusable elements\n * @returns {*} - first DOM element that is focusable.\n * @private\n */\n _getFirstFocusElement (focusableElements) {\n if (!focusableElements.length) {\n return;\n }\n let firstFocusEl = focusableElements[0];\n // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.\n if (firstFocusEl.matches('[type=\"radio\"]:not(:checked)')) {\n firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;\n }\n return firstFocusEl;\n },\n\n /**\n * internal use only.\n *\n * gets all the focusable elements within the component\n * and sets the first and last of those elements.\n *\n * @param {object} el - the root dom element to find focusable elements in.\n * @param {bool} includeNegativeTabIndex - will include tabindex=\"-1\" in the list of focusable elements.\n */\n _getFocusableElements (el = this.$el, includeNegativeTabIndex = false) {\n el = returnFirstEl(el);\n if (!el) return [];\n const focusableContent = [...el.querySelectorAll(focusableElementsList)];\n return focusableContent.filter((fc) => {\n const style = window.getComputedStyle(fc);\n return style.getPropertyValue('display') !== 'none' &&\n style.getPropertyValue('visibility') !== 'hidden' &&\n fc.matches(includeNegativeTabIndex ? focusableAttrs : tabbableAttrs);\n });\n },\n\n /**\n * tabs to the next element contained within your component, does not include tabindex=\"-1\".\n * @param {object} e - keypress event\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n focusTrappedTabPress (e, el) {\n const isTabPressed = e.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n const focusableElements = this._getFocusableElements(el);\n if (!focusableElements.length) {\n e.preventDefault();\n return;\n }\n\n const firstFocusableElement = this._getFirstFocusElement(focusableElements);\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n },\n },\n};\n"],"mappings":"2IAEA,IAAM,EAAiB,yEACjB,EAAgB,GAAG,EAAe,uBAClC,EAAwB,yDAiB9B,EAAe,CACb,QAAS,CAMP,MAAM,yBAA0B,EAAI,CAClC,MAAM,KAAK,WAAW,CACtB,IAAM,EAAoB,KAAK,sBAAsB,EAAI,GAAK,CAC9D,OAAO,KAAK,sBAAsB,EAAkB,EAQtD,MAAM,kBAAmB,EAAK,KAAK,IAAK,EACpB,MAAM,KAAK,yBAAyBA,EAAAA,EAAc,EAAG,CAAC,GAC7D,MAAM,CAAE,cAAe,GAAM,CAAC,EAG3C,MAAM,iBAAkB,EAAW,CACjC,MAAM,KAAK,WAAW,CACtB,IAAM,EAASA,EAAAA,EAAc,KAAK,IAAI,EAAE,cAAc,EAAU,CAChE,GAAI,EAAQ,CACV,EAAO,OAAO,CACd,OAIF,QAAQ,KAAK,yHACiC,CAC9C,MAAM,KAAK,mBAAmB,EAUhC,sBAAuB,EAAmB,CACxC,GAAI,CAAC,EAAkB,OACrB,OAEF,IAAI,EAAe,EAAkB,GAKrC,OAHI,EAAa,QAAQ,+BAA+B,GACtD,EAAe,EAAkB,KAAK,GAAM,EAAG,SAAW,EAAG,OAAS,EAAa,KAAK,EAAI,GAEvF,GAYT,sBAAuB,EAAK,KAAK,IAAK,EAA0B,GAAO,CAIrE,MAHA,GAAKA,EAAAA,EAAc,EAAG,CACjB,EACoB,CAAC,GAAG,EAAG,iBAAiB,EAAsB,CAAC,CAChD,OAAQ,GAAO,CACrC,IAAM,EAAQ,OAAO,iBAAiB,EAAG,CACzC,OAAO,EAAM,iBAAiB,UAAU,GAAK,QAC3C,EAAM,iBAAiB,aAAa,GAAK,UACzC,EAAG,QAAQ,EAA0B,EAAiB,EAAc,EACtE,CAPc,EAAE,EAgBpB,qBAAsB,EAAG,EAAI,CAG3B,GAFqB,EAAE,MAAQ,MAG7B,OAGF,IAAM,EAAoB,KAAK,sBAAsB,EAAG,CACxD,GAAI,CAAC,EAAkB,OAAQ,CAC7B,EAAE,gBAAgB,CAClB,OAGF,IAAM,EAAwB,KAAK,sBAAsB,EAAkB,CACrE,EAAuB,EAAkB,EAAkB,OAAS,GAEtE,EAAE,SACA,SAAS,gBAAkB,IAC7B,EAAqB,OAAO,CAC5B,EAAE,gBAAgB,EAGhB,SAAS,gBAAkB,IAC7B,EAAsB,OAAO,CAC7B,EAAE,gBAAgB,GAIzB,CACF"}
1
+ {"version":3,"file":"modal.cjs","names":["returnFirstEl"],"sources":["../../../common/mixins/modal.js"],"sourcesContent":["import { returnFirstEl } from '@/common/utils';\n\nconst focusableAttrs = ':not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])';\nconst tabbableAttrs = `${focusableAttrs}:not([tabindex=\"-1\"])`;\nconst focusableElementsList = `button,[href],input,select,textarea,details,[tabindex]`;\n\n/**\n * This mixin provides the methods to automatically trap tab focus within\n * the component this mixin is on, meaning it is not possible to tab out\n * of the component without dismissing it.\n *\n * Useful for accessibility reasons on things like important actionable alerts.\n *\n * Use focusFirstElement to focus on the first tabbable element within your component, and call\n * focusTrappedTabPress every time tab is pressed to trap tab within this\n * component.\n *\n * Note that focusFirstElement WILL focus elements with tabindex=\"-1\",\n * however focusTrappedTabPress will not.\n * @displayName Modal Mixin\n */\nexport default {\n methods: {\n /**\n * get the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async getFirstFocusableElement (el) {\n await this.$nextTick();\n const focusableElements = this._getFocusableElements(el, true);\n return this._getFirstFocusElement(focusableElements);\n },\n\n /**\n * set focus to the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async focusFirstElement (el = this.$el) {\n const elToFocus = await this.getFirstFocusableElement(returnFirstEl(el));\n elToFocus?.focus({ preventScroll: true });\n },\n\n async focusElementById (elementId) {\n await this.$nextTick();\n const result = returnFirstEl(this.$el)?.querySelector(elementId);\n if (result) {\n result.focus();\n return;\n }\n\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 await this.focusFirstElement();\n },\n\n /**\n * internal use only.\n *\n * @param focusableElements - list of focusable elements\n * @returns {*} - first DOM element that is focusable.\n * @private\n */\n _getFirstFocusElement (focusableElements) {\n if (!focusableElements.length) {\n return;\n }\n let firstFocusEl = focusableElements[0];\n // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.\n if (firstFocusEl.matches('[type=\"radio\"]:not(:checked)')) {\n firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;\n }\n return firstFocusEl;\n },\n\n /**\n * internal use only.\n *\n * gets all the focusable elements within the component\n * and sets the first and last of those elements.\n *\n * @param {object} el - the root dom element to find focusable elements in.\n * @param {boolean} includeNegativeTabIndex - will include tabindex=\"-1\" in the list of focusable elements.\n */\n _getFocusableElements (el = this.$el, includeNegativeTabIndex = false) {\n el = returnFirstEl(el);\n if (!el) return [];\n const focusableContent = [...el.querySelectorAll(focusableElementsList)];\n return focusableContent.filter((fc) => {\n const style = window.getComputedStyle(fc);\n return style.getPropertyValue('display') !== 'none' &&\n style.getPropertyValue('visibility') !== 'hidden' &&\n fc.matches(includeNegativeTabIndex ? focusableAttrs : tabbableAttrs);\n });\n },\n\n /**\n * tabs to the next element contained within your component, does not include tabindex=\"-1\".\n * @param {object} e - keypress event\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n focusTrappedTabPress (e, el) {\n const isTabPressed = e.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n const focusableElements = this._getFocusableElements(el);\n if (!focusableElements.length) {\n e.preventDefault();\n return;\n }\n\n const firstFocusableElement = this._getFirstFocusElement(focusableElements);\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n },\n },\n};\n"],"mappings":"2IAEA,IAAM,EAAiB,yEACjB,EAAgB,GAAG,EAAe,uBAClC,EAAwB,yDAiB9B,EAAe,CACb,QAAS,CAMP,MAAM,yBAA0B,EAAI,CAClC,MAAM,KAAK,WAAW,CACtB,IAAM,EAAoB,KAAK,sBAAsB,EAAI,GAAK,CAC9D,OAAO,KAAK,sBAAsB,EAAkB,EAQtD,MAAM,kBAAmB,EAAK,KAAK,IAAK,EACpB,MAAM,KAAK,yBAAyBA,EAAAA,EAAc,EAAG,CAAC,GAC7D,MAAM,CAAE,cAAe,GAAM,CAAC,EAG3C,MAAM,iBAAkB,EAAW,CACjC,MAAM,KAAK,WAAW,CACtB,IAAM,EAASA,EAAAA,EAAc,KAAK,IAAI,EAAE,cAAc,EAAU,CAChE,GAAI,EAAQ,CACV,EAAO,OAAO,CACd,OAIF,QAAQ,KAAK,yHACiC,CAC9C,MAAM,KAAK,mBAAmB,EAUhC,sBAAuB,EAAmB,CACxC,GAAI,CAAC,EAAkB,OACrB,OAEF,IAAI,EAAe,EAAkB,GAKrC,OAHI,EAAa,QAAQ,+BAA+B,GACtD,EAAe,EAAkB,KAAK,GAAM,EAAG,SAAW,EAAG,OAAS,EAAa,KAAK,EAAI,GAEvF,GAYT,sBAAuB,EAAK,KAAK,IAAK,EAA0B,GAAO,CAIrE,MAHA,GAAKA,EAAAA,EAAc,EAAG,CACjB,EACoB,CAAC,GAAG,EAAG,iBAAiB,EAAsB,CAAC,CAChD,OAAQ,GAAO,CACrC,IAAM,EAAQ,OAAO,iBAAiB,EAAG,CACzC,OAAO,EAAM,iBAAiB,UAAU,GAAK,QAC3C,EAAM,iBAAiB,aAAa,GAAK,UACzC,EAAG,QAAQ,EAA0B,EAAiB,EAAc,EACtE,CAPc,EAAE,EAgBpB,qBAAsB,EAAG,EAAI,CAG3B,GAFqB,EAAE,MAAQ,MAG7B,OAGF,IAAM,EAAoB,KAAK,sBAAsB,EAAG,CACxD,GAAI,CAAC,EAAkB,OAAQ,CAC7B,EAAE,gBAAgB,CAClB,OAGF,IAAM,EAAwB,KAAK,sBAAsB,EAAkB,CACrE,EAAuB,EAAkB,EAAkB,OAAS,GAEtE,EAAE,SACA,SAAS,gBAAkB,IAC7B,EAAqB,OAAO,CAC5B,EAAE,gBAAgB,EAGhB,SAAS,gBAAkB,IAC7B,EAAsB,OAAO,CAC7B,EAAE,gBAAgB,GAIzB,CACF"}
@@ -4,7 +4,7 @@ declare namespace _default {
4
4
  function focusFirstElement(el?: object): Promise<void>;
5
5
  function focusElementById(elementId: any): Promise<void>;
6
6
  function _getFirstFocusElement(focusableElements: any): any;
7
- function _getFocusableElements(el?: object, includeNegativeTabIndex?: bool): any[];
7
+ function _getFocusableElements(el?: object, includeNegativeTabIndex?: boolean): any[];
8
8
  function focusTrappedTabPress(e: object, el: object): void;
9
9
  }
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../common/mixins/modal.js"],"names":[],"mappings":";;QA4BI,sCAHW,MAAM,gBAOhB;QAOD,gCAHW,MAAM,iBAMhB;QAED,yDAYC;QASD,wDAHa,GAAC,CAab;QAWD,oCAHW,MAAM,4BACN,IAAI,SAYd;QAQD,iCAJW,MAAM,MACN,MAAM,QA8BhB"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../common/mixins/modal.js"],"names":[],"mappings":";;QA4BI,sCAHW,MAAM,gBAOhB;QAOD,gCAHW,MAAM,iBAMhB;QAED,yDAYC;QASD,wDAHa,GAAC,CAab;QAWD,oCAHW,MAAM,4BACN,OAAO,SAYjB;QAQD,iCAJW,MAAM,MACN,MAAM,QA8BhB"}
@@ -1,4 +1,4 @@
1
- import { O as e } from "../../utils-BL_SrwnF.js";
1
+ import { O as e } from "../../utils-CXaaZqVu.js";
2
2
  //#region common/mixins/modal.js
3
3
  var t = ":not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])", n = `${t}:not([tabindex="-1"])`, r = "button,[href],input,select,textarea,details,[tabindex]", i = { methods: {
4
4
  async getFirstFocusableElement(e) {
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","names":[],"sources":["../../../common/mixins/modal.js"],"sourcesContent":["import { returnFirstEl } from '@/common/utils';\n\nconst focusableAttrs = ':not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])';\nconst tabbableAttrs = `${focusableAttrs}:not([tabindex=\"-1\"])`;\nconst focusableElementsList = `button,[href],input,select,textarea,details,[tabindex]`;\n\n/**\n * This mixin provides the methods to automatically trap tab focus within\n * the component this mixin is on, meaning it is not possible to tab out\n * of the component without dismissing it.\n *\n * Useful for accessibility reasons on things like important actionable alerts.\n *\n * Use focusFirstElement to focus on the first tabbable element within your component, and call\n * focusTrappedTabPress every time tab is pressed to trap tab within this\n * component.\n *\n * Note that focusFirstElement WILL focus elements with tabindex=\"-1\",\n * however focusTrappedTabPress will not.\n * @displayName Modal Mixin\n */\nexport default {\n methods: {\n /**\n * get the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async getFirstFocusableElement (el) {\n await this.$nextTick();\n const focusableElements = this._getFocusableElements(el, true);\n return this._getFirstFocusElement(focusableElements);\n },\n\n /**\n * set focus to the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async focusFirstElement (el = this.$el) {\n const elToFocus = await this.getFirstFocusableElement(returnFirstEl(el));\n elToFocus?.focus({ preventScroll: true });\n },\n\n async focusElementById (elementId) {\n await this.$nextTick();\n const result = returnFirstEl(this.$el)?.querySelector(elementId);\n if (result) {\n result.focus();\n return;\n }\n\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 await this.focusFirstElement();\n },\n\n /**\n * internal use only.\n *\n * @param focusableElements - list of focusable elements\n * @returns {*} - first DOM element that is focusable.\n * @private\n */\n _getFirstFocusElement (focusableElements) {\n if (!focusableElements.length) {\n return;\n }\n let firstFocusEl = focusableElements[0];\n // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.\n if (firstFocusEl.matches('[type=\"radio\"]:not(:checked)')) {\n firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;\n }\n return firstFocusEl;\n },\n\n /**\n * internal use only.\n *\n * gets all the focusable elements within the component\n * and sets the first and last of those elements.\n *\n * @param {object} el - the root dom element to find focusable elements in.\n * @param {bool} includeNegativeTabIndex - will include tabindex=\"-1\" in the list of focusable elements.\n */\n _getFocusableElements (el = this.$el, includeNegativeTabIndex = false) {\n el = returnFirstEl(el);\n if (!el) return [];\n const focusableContent = [...el.querySelectorAll(focusableElementsList)];\n return focusableContent.filter((fc) => {\n const style = window.getComputedStyle(fc);\n return style.getPropertyValue('display') !== 'none' &&\n style.getPropertyValue('visibility') !== 'hidden' &&\n fc.matches(includeNegativeTabIndex ? focusableAttrs : tabbableAttrs);\n });\n },\n\n /**\n * tabs to the next element contained within your component, does not include tabindex=\"-1\".\n * @param {object} e - keypress event\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n focusTrappedTabPress (e, el) {\n const isTabPressed = e.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n const focusableElements = this._getFocusableElements(el);\n if (!focusableElements.length) {\n e.preventDefault();\n return;\n }\n\n const firstFocusableElement = this._getFirstFocusElement(focusableElements);\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n },\n },\n};\n"],"mappings":";;AAEA,IAAM,IAAiB,8EACjB,IAAgB,GAAG,EAAe,wBAClC,IAAwB,0DAiB9B,IAAe,EACb,SAAS;CAMP,MAAM,yBAA0B,GAAI;AAClC,QAAM,KAAK,WAAW;EACtB,IAAM,IAAoB,KAAK,sBAAsB,GAAI,GAAK;AAC9D,SAAO,KAAK,sBAAsB,EAAkB;;CAQtD,MAAM,kBAAmB,IAAK,KAAK,KAAK;AAEtC,GADkB,MAAM,KAAK,yBAAyB,EAAc,EAAG,CAAC,GAC7D,MAAM,EAAE,eAAe,IAAM,CAAC;;CAG3C,MAAM,iBAAkB,GAAW;AACjC,QAAM,KAAK,WAAW;EACtB,IAAM,IAAS,EAAc,KAAK,IAAI,EAAE,cAAc,EAAU;AAChE,MAAI,GAAQ;AACV,KAAO,OAAO;AACd;;AAMF,EAFA,QAAQ,KAAK,2HACiC,EAC9C,MAAM,KAAK,mBAAmB;;CAUhC,sBAAuB,GAAmB;AACxC,MAAI,CAAC,EAAkB,OACrB;EAEF,IAAI,IAAe,EAAkB;AAKrC,SAHI,EAAa,QAAQ,iCAA+B,KACtD,IAAe,EAAkB,MAAK,MAAM,EAAG,WAAW,EAAG,SAAS,EAAa,KAAK,IAAI,IAEvF;;CAYT,sBAAuB,IAAK,KAAK,KAAK,IAA0B,IAAO;AAIrE,SAHA,IAAK,EAAc,EAAG,EACjB,IACoB,CAAC,GAAG,EAAG,iBAAiB,EAAsB,CAAC,CAChD,QAAQ,MAAO;GACrC,IAAM,IAAQ,OAAO,iBAAiB,EAAG;AACzC,UAAO,EAAM,iBAAiB,UAAU,KAAK,UAC3C,EAAM,iBAAiB,aAAa,KAAK,YACzC,EAAG,QAAQ,IAA0B,IAAiB,EAAc;IACtE,GAPc,EAAE;;CAgBpB,qBAAsB,GAAG,GAAI;AAG3B,MAFqB,EAAE,QAAQ,MAG7B;EAGF,IAAM,IAAoB,KAAK,sBAAsB,EAAG;AACxD,MAAI,CAAC,EAAkB,QAAQ;AAC7B,KAAE,gBAAgB;AAClB;;EAGF,IAAM,IAAwB,KAAK,sBAAsB,EAAkB,EACrE,IAAuB,EAAkB,EAAkB,SAAS;AAE1E,EAAI,EAAE,WACA,SAAS,kBAAkB,MAC7B,EAAqB,OAAO,EAC5B,EAAE,gBAAgB,IAGhB,SAAS,kBAAkB,MAC7B,EAAsB,OAAO,EAC7B,EAAE,gBAAgB;;CAIzB,EACF"}
1
+ {"version":3,"file":"modal.js","names":[],"sources":["../../../common/mixins/modal.js"],"sourcesContent":["import { returnFirstEl } from '@/common/utils';\n\nconst focusableAttrs = ':not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])';\nconst tabbableAttrs = `${focusableAttrs}:not([tabindex=\"-1\"])`;\nconst focusableElementsList = `button,[href],input,select,textarea,details,[tabindex]`;\n\n/**\n * This mixin provides the methods to automatically trap tab focus within\n * the component this mixin is on, meaning it is not possible to tab out\n * of the component without dismissing it.\n *\n * Useful for accessibility reasons on things like important actionable alerts.\n *\n * Use focusFirstElement to focus on the first tabbable element within your component, and call\n * focusTrappedTabPress every time tab is pressed to trap tab within this\n * component.\n *\n * Note that focusFirstElement WILL focus elements with tabindex=\"-1\",\n * however focusTrappedTabPress will not.\n * @displayName Modal Mixin\n */\nexport default {\n methods: {\n /**\n * get the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async getFirstFocusableElement (el) {\n await this.$nextTick();\n const focusableElements = this._getFocusableElements(el, true);\n return this._getFirstFocusElement(focusableElements);\n },\n\n /**\n * set focus to the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async focusFirstElement (el = this.$el) {\n const elToFocus = await this.getFirstFocusableElement(returnFirstEl(el));\n elToFocus?.focus({ preventScroll: true });\n },\n\n async focusElementById (elementId) {\n await this.$nextTick();\n const result = returnFirstEl(this.$el)?.querySelector(elementId);\n if (result) {\n result.focus();\n return;\n }\n\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 await this.focusFirstElement();\n },\n\n /**\n * internal use only.\n *\n * @param focusableElements - list of focusable elements\n * @returns {*} - first DOM element that is focusable.\n * @private\n */\n _getFirstFocusElement (focusableElements) {\n if (!focusableElements.length) {\n return;\n }\n let firstFocusEl = focusableElements[0];\n // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.\n if (firstFocusEl.matches('[type=\"radio\"]:not(:checked)')) {\n firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;\n }\n return firstFocusEl;\n },\n\n /**\n * internal use only.\n *\n * gets all the focusable elements within the component\n * and sets the first and last of those elements.\n *\n * @param {object} el - the root dom element to find focusable elements in.\n * @param {boolean} includeNegativeTabIndex - will include tabindex=\"-1\" in the list of focusable elements.\n */\n _getFocusableElements (el = this.$el, includeNegativeTabIndex = false) {\n el = returnFirstEl(el);\n if (!el) return [];\n const focusableContent = [...el.querySelectorAll(focusableElementsList)];\n return focusableContent.filter((fc) => {\n const style = window.getComputedStyle(fc);\n return style.getPropertyValue('display') !== 'none' &&\n style.getPropertyValue('visibility') !== 'hidden' &&\n fc.matches(includeNegativeTabIndex ? focusableAttrs : tabbableAttrs);\n });\n },\n\n /**\n * tabs to the next element contained within your component, does not include tabindex=\"-1\".\n * @param {object} e - keypress event\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n focusTrappedTabPress (e, el) {\n const isTabPressed = e.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n const focusableElements = this._getFocusableElements(el);\n if (!focusableElements.length) {\n e.preventDefault();\n return;\n }\n\n const firstFocusableElement = this._getFirstFocusElement(focusableElements);\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n },\n },\n};\n"],"mappings":";;AAEA,IAAM,IAAiB,8EACjB,IAAgB,GAAG,EAAe,wBAClC,IAAwB,0DAiB9B,IAAe,EACb,SAAS;CAMP,MAAM,yBAA0B,GAAI;AAClC,QAAM,KAAK,WAAW;EACtB,IAAM,IAAoB,KAAK,sBAAsB,GAAI,GAAK;AAC9D,SAAO,KAAK,sBAAsB,EAAkB;;CAQtD,MAAM,kBAAmB,IAAK,KAAK,KAAK;AAEtC,GADkB,MAAM,KAAK,yBAAyB,EAAc,EAAG,CAAC,GAC7D,MAAM,EAAE,eAAe,IAAM,CAAC;;CAG3C,MAAM,iBAAkB,GAAW;AACjC,QAAM,KAAK,WAAW;EACtB,IAAM,IAAS,EAAc,KAAK,IAAI,EAAE,cAAc,EAAU;AAChE,MAAI,GAAQ;AACV,KAAO,OAAO;AACd;;AAMF,EAFA,QAAQ,KAAK,2HACiC,EAC9C,MAAM,KAAK,mBAAmB;;CAUhC,sBAAuB,GAAmB;AACxC,MAAI,CAAC,EAAkB,OACrB;EAEF,IAAI,IAAe,EAAkB;AAKrC,SAHI,EAAa,QAAQ,iCAA+B,KACtD,IAAe,EAAkB,MAAK,MAAM,EAAG,WAAW,EAAG,SAAS,EAAa,KAAK,IAAI,IAEvF;;CAYT,sBAAuB,IAAK,KAAK,KAAK,IAA0B,IAAO;AAIrE,SAHA,IAAK,EAAc,EAAG,EACjB,IACoB,CAAC,GAAG,EAAG,iBAAiB,EAAsB,CAAC,CAChD,QAAQ,MAAO;GACrC,IAAM,IAAQ,OAAO,iBAAiB,EAAG;AACzC,UAAO,EAAM,iBAAiB,UAAU,KAAK,UAC3C,EAAM,iBAAiB,aAAa,KAAK,YACzC,EAAG,QAAQ,IAA0B,IAAiB,EAAc;IACtE,GAPc,EAAE;;CAgBpB,qBAAsB,GAAG,GAAI;AAG3B,MAFqB,EAAE,QAAQ,MAG7B;EAGF,IAAM,IAAoB,KAAK,sBAAsB,EAAG;AACxD,MAAI,CAAC,EAAkB,QAAQ;AAC7B,KAAE,gBAAgB;AAClB;;EAGF,IAAM,IAAwB,KAAK,sBAAsB,EAAkB,EACrE,IAAuB,EAAkB,EAAkB,SAAS;AAE1E,EAAI,EAAE,WACA,SAAS,kBAAkB,MAC7B,EAAqB,OAAO,EAC5B,EAAE,gBAAgB,IAGhB,SAAS,kBAAkB,MAC7B,EAAsB,OAAO,EAC7B,EAAE,gBAAgB;;CAIzB,EACF"}
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../mode_constants-B8_1b5T8.js";
1
+ import { t as e } from "../../mode_constants-CC73P7d-.js";
2
2
  import { findParentMode as t, getOppositeMode as n, getRootContrast as r } from "../../lib/mode-island/utils.js";
3
3
  //#region common/mixins/mode.js
4
4
  var i = {
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);let e=require(`libphonenumber-js/min`);function t(t,{defaultCountry:r}={}){if(!t||typeof t!=`string`)return``;let a=n(r),o=(0,e.parsePhoneNumberFromString)(t.trim(),{defaultCountry:a,extract:!1});if(!o?.isValid())return t;let s=i(o,a);return o.ext?`${s} Ext. ${o.ext}`:s}function n(t){let n=typeof t==`string`?t.toUpperCase():void 0;return(0,e.isSupportedCountry)(n)?n:void 0}var r={formatExtension:e=>e};function i(t,n){let i=t.formatNational(r);return n&&(0,e.getCountryCallingCode)(n)===t.countryCallingCode?i:t.countryCallingCode===`1`?`+1 ${i}`:t.formatInternational(r)}exports.formatPhoneNumber=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-BK-Lzi7j.cjs`);let e=require(`libphonenumber-js/min`);function t(t,{defaultCountry:r}={}){if(!t||typeof t!=`string`)return``;let a=n(r),o=(0,e.parsePhoneNumberFromString)(t.trim(),{defaultCountry:a,extract:!1});if(!o?.isValid())return t;let s=i(o,a);return o.ext?`${s} Ext. ${o.ext}`:s}function n(t){let n=typeof t==`string`?t.toUpperCase():void 0;return(0,e.isSupportedCountry)(n)?n:void 0}var r={formatExtension:e=>e};function i(t,n){let i=t.formatNational(r);return n&&(0,e.getCountryCallingCode)(n)===t.countryCallingCode?i:t.countryCallingCode===`1`?`+1 ${i}`:t.formatInternational(r)}exports.formatPhoneNumber=t;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,8 @@
1
+ import { DialtoneLocalization } from '../localization';
1
2
  declare const _default: import('vue').DefineComponent<{}, {}, {
2
- i18n: any;
3
+ i18n: DialtoneLocalization;
3
4
  }, {
4
- closeButtonTitle(): any;
5
+ closeButtonTitle(): string;
5
6
  }, {
6
7
  close(): void;
7
8
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<{}> & Readonly<{
@@ -173,7 +174,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {
173
174
  };
174
175
  isInFocus: boolean;
175
176
  hasSlotContent: typeof import('./utils').hasSlotContent;
176
- i18n: any;
177
+ i18n: DialtoneLocalization;
177
178
  }, {
178
179
  resolvedUnderline(): boolean;
179
180
  computedTag(): string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
@@ -391,9 +392,9 @@ declare const _default: import('vue').DefineComponent<{}, {}, {
391
392
  validator: (size: any) => boolean;
392
393
  };
393
394
  }>, {}, {
394
- i18n: any;
395
+ i18n: DialtoneLocalization;
395
396
  }, {
396
- accessibleLabel(): any;
397
+ accessibleLabel(): string | undefined;
397
398
  isSpinner(): boolean;
398
399
  loaderKindClass(): string;
399
400
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"sr_only_close_button.vue.d.ts","sourceRoot":"","sources":["../../common/sr_only_close_button.vue"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgE4B,GAAG"}
1
+ {"version":3,"file":"sr_only_close_button.vue.d.ts","sourceRoot":"","sources":["../../common/sr_only_close_button.vue"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgE4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAbM,gBAAgB"}
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../utils-GofHWJKi.cjs`);exports.capitalizeFirstLetter=e.t,exports.debounce=e.n,exports.default=e.j,exports.disableRootScrolling=e.r,exports.enableRootScrolling=e.i,exports.extractNonListeners=e.a,exports.extractVueListeners=e.o,exports.filterFormattedMessages=e.s,exports.findFirstFocusableNode=e.c,exports.flushPromises=e.l,exports.formatMessages=e.u,exports.getPhoneNumberRegex=e.d,exports.getRandomElement=e.f,exports.getRandomInt=e.p,exports.getUniqueString=e.m,exports.getValidationState=e.h,exports.hasFormattedMessageOfType=e.g,exports.hasSlotContent=e._,exports.htmlFragment=e.v,exports.isEmailAddress=e.y,exports.isOutOfViewPort=e.b,exports.isPhoneNumber=e.x,exports.isURL=e.S,exports.javaHashCode=e.C,exports.kebabCaseToPascalCase=e.w,exports.linkRegex=e.T,exports.pascalCaseToKebabCase=e.E,exports.removeClassStyleAttrs=e.D,exports.returnFirstEl=e.O,exports.safeConcatStrings=e.k,exports.toFluentKeyString=e.A,exports.warnIfUnmounted=e.M;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../utils-Db-kV6Sr.cjs`);exports.capitalizeFirstLetter=e.t,exports.debounce=e.n,exports.default=e.j,exports.disableRootScrolling=e.r,exports.enableRootScrolling=e.i,exports.extractNonListeners=e.a,exports.extractVueListeners=e.o,exports.filterFormattedMessages=e.s,exports.findFirstFocusableNode=e.c,exports.flushPromises=e.l,exports.formatMessages=e.u,exports.getPhoneNumberRegex=e.d,exports.getRandomElement=e.f,exports.getRandomInt=e.p,exports.getUniqueString=e.m,exports.getValidationState=e.h,exports.hasFormattedMessageOfType=e.g,exports.hasSlotContent=e._,exports.htmlFragment=e.v,exports.isEmailAddress=e.y,exports.isOutOfViewPort=e.b,exports.isPhoneNumber=e.x,exports.isURL=e.S,exports.javaHashCode=e.C,exports.kebabCaseToPascalCase=e.w,exports.linkRegex=e.T,exports.pascalCaseToKebabCase=e.E,exports.removeClassStyleAttrs=e.D,exports.returnFirstEl=e.O,exports.safeConcatStrings=e.k,exports.toFluentKeyString=e.A,exports.warnIfUnmounted=e.M;
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, M as i, O as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O, w as k, x as A, y as j } from "../../utils-BL_SrwnF.js";
1
+ import { A as e, C as t, D as n, E as r, M as i, O as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O, w as k, x as A, y as j } from "../../utils-CXaaZqVu.js";
2
2
  export { E as capitalizeFirstLetter, x as debounce, _ as default, w as disableRootScrolling, g as enableRootScrolling, l as extractNonListeners, S as extractVueListeners, T as filterFormattedMessages, d as findFirstFocusableNode, y as flushPromises, D as formatMessages, f as getPhoneNumberRegex, p as getRandomElement, C as getRandomInt, b as getUniqueString, h as getValidationState, m as hasFormattedMessageOfType, c as hasSlotContent, O as htmlFragment, j as isEmailAddress, u as isOutOfViewPort, A as isPhoneNumber, o as isURL, t as javaHashCode, k as kebabCaseToPascalCase, s as linkRegex, r as pascalCaseToKebabCase, n as removeClassStyleAttrs, a as returnFirstEl, v as safeConcatStrings, e as toFluentKeyString, i as warnIfUnmounted };