@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,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../utils-GofHWJKi.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),r=require(`./toggle-constants.cjs`);let i=require(`vue`);var a={name:`DtToggle`,inheritAttrs:!1,props:{id:{type:String,default(){return t.m()}},disabled:{type:Boolean,default:!1},modelValue:{type:[Boolean,String],default:!1,validator:e=>r.TOGGLE_CHECKED_VALUES.includes(e)},toggleOnClick:{type:Boolean,default:!0},size:{type:[String,Number],default:300,validator:e.ordinalSizeValidator(r.TOGGLE_SIZE_MODIFIERS)},showLabel:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:``},labelChildProps:{type:Object,default:()=>({})}},emits:[`update:modelValue`],data(){return{internalChecked:this.modelValue,hasSlotContent:t._}},computed:{inputListeners(){return{...t.D(this.$attrs),onClick:()=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked===`mixed`},toggleRole(){return this.isIndeterminate?`checkbox`:`switch`},toggleClasses(){return[`d-toggle`,r.TOGGLE_SIZE_MODIFIERS[String(this.size)],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{modelValue(e){this.internalChecked=e}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit(`update:modelValue`,!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){!(this.showLabel&&this.hasSlotLabel())&&!this.$attrs[`aria-label`]&&console.info(`[Dialtone] A label is required for accessibility. Provide a label and use show-label="false" to hide it visually.`)}}},o=[`for`],s=[`id`,`role`,`aria-checked`,`disabled`,`aria-disabled`],c={key:0,class:`d-toggle__inner`};function l(e,t,n,r,a,l){return(0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)([`d-toggle-wrapper`,e.$attrs.class]),style:(0,i.normalizeStyle)(e.$attrs.style)},[n.showLabel&&a.hasSlotContent(e.$slots.default)?((0,i.openBlock)(),(0,i.createElementBlock)(`label`,(0,i.mergeProps)({key:0,class:n.labelClass,for:n.id},n.labelChildProps,{"data-qa":`toggle-label`}),[(0,i.renderSlot)(e.$slots,`default`)],16,o)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`button`,(0,i.mergeProps)({id:n.id,role:l.toggleRole,type:`button`,"aria-checked":a.internalChecked.toString(),disabled:n.disabled,"aria-disabled":n.disabled.toString(),class:l.toggleClasses},l.inputListeners),[n.showIcon?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,c)):(0,i.createCommentVNode)(``,!0)],16,s)],6)}var u=n.t(a,[[`render`,l]]);exports.default=u;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),r=require(`./toggle-constants.cjs`);let i=require(`vue`);var a={name:`DtToggle`,inheritAttrs:!1,props:{id:{type:String,default(){return t.m()}},disabled:{type:Boolean,default:!1},modelValue:{type:[Boolean,String],default:!1,validator:e=>r.TOGGLE_CHECKED_VALUES.includes(e)},toggleOnClick:{type:Boolean,default:!0},size:{type:[String,Number],default:300,validator:e.ordinalSizeValidator(r.TOGGLE_SIZE_MODIFIERS)},showLabel:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:``},labelChildProps:{type:Object,default:()=>({})}},emits:[`update:modelValue`],data(){return{internalChecked:this.modelValue,hasSlotContent:t._}},computed:{inputListeners(){return{...t.D(this.$attrs),onClick:()=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked===`mixed`},toggleRole(){return this.isIndeterminate?`checkbox`:`switch`},toggleClasses(){return[`d-toggle`,r.TOGGLE_SIZE_MODIFIERS[String(this.size)],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{modelValue(e){this.internalChecked=e}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit(`update:modelValue`,!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){!(this.showLabel&&this.hasSlotLabel())&&!this.$attrs[`aria-label`]&&console.info(`[Dialtone] A label is required for accessibility. Provide a label and use show-label="false" to hide it visually.`)}}},o=[`for`],s=[`id`,`role`,`aria-checked`,`disabled`,`aria-disabled`],c={key:0,class:`d-toggle__inner`};function l(e,t,n,r,a,l){return(0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)([`d-toggle-wrapper`,e.$attrs.class]),style:(0,i.normalizeStyle)(e.$attrs.style)},[n.showLabel&&a.hasSlotContent(e.$slots.default)?((0,i.openBlock)(),(0,i.createElementBlock)(`label`,(0,i.mergeProps)({key:0,class:n.labelClass,for:n.id},n.labelChildProps,{"data-qa":`toggle-label`}),[(0,i.renderSlot)(e.$slots,`default`)],16,o)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`button`,(0,i.mergeProps)({id:n.id,role:l.toggleRole,type:`button`,"aria-checked":a.internalChecked.toString(),disabled:n.disabled,"aria-disabled":n.disabled.toString(),class:l.toggleClasses},l.inputListeners),[n.showIcon?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,c)):(0,i.createCommentVNode)(``,!0)],16,s)],6)}var u=n.t(a,[[`render`,l]]);exports.default=u;
2
2
  //# sourceMappingURL=toggle.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { ordinalSizeValidator as e } from "../../common/validators/index.js";
2
- import { D as t, _ as n, m as r } from "../../utils-BL_SrwnF.js";
3
- import { t as i } from "../../_plugin-vue_export-helper-BecorN_g.js";
2
+ import { D as t, _ as n, m as r } from "../../utils-CXaaZqVu.js";
3
+ import { t as i } from "../../_plugin-vue_export-helper-B52Kst-M.js";
4
4
  import { TOGGLE_CHECKED_VALUES as a, TOGGLE_SIZE_MODIFIERS as o } from "./toggle-constants.js";
5
5
  import { createCommentVNode as s, createElementBlock as c, createElementVNode as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, openBlock as p, renderSlot as m } from "vue";
6
6
  //#region components/Toggle/Toggle.vue
@@ -0,0 +1 @@
1
+ export * from '../../components/Tooltip/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../utils-GofHWJKi.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),r=require(`../../common/mixins/mode.cjs`),i=require(`../popover/tippy-utils.cjs`),a=require(`./tooltip-constants.cjs`),o=require(`../popover/popover-constants.cjs`);let s=require(`vue`);var c=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="7"><path d="M 14.5,7 8,0 1.5,7 Z"/></svg>`,l={name:`DtTooltip`,mixins:[r.default],props:{id:{type:String,default(){return t.m()}},fallbackPlacements:{type:Array,default:()=>[`auto`]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,12]},showArrow:{type:Boolean,default:!0},placement:{type:String,default:`top`,validator(e){return a.TOOLTIP_DIRECTIONS.includes(e)}},sticky:{type:[Boolean,String],default:!0,validator:e=>a.TOOLTIP_STICKY_VALUES.includes(e)},appendTo:{type:[e.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>o.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},contentClass:{type:[String,Object,Array],default:``},anchorClass:{type:[String,Object,Array],default:``},message:{type:String,default:``},enabled:{type:Boolean,default:!0},open:{type:[Boolean,null],default:null},transition:{type:Boolean,default:!0},delay:{type:Boolean,default:!0},theme:{type:String,default:null},externalAnchor:{type:String,default:null},externalAnchorElement:{type:e.HTML_ELEMENT_TYPE,default:null}},emits:[`shown`,`update:open`],data(){return{TOOLTIP_KIND_MODIFIERS:a.TOOLTIP_KIND_MODIFIERS,hasSlotContent:t._,tip:null,inTimer:null,internalShow:!1,currentPlacement:this.placement}},computed:{tippyArrow(){return this.showArrow?c:!1},tippyProps(){return{arrow:this.tippyArrow,offset:this.offset,delay:this.delay?300:!1,placement:this.placement,sticky:this.sticky,theme:this.inverted?`inverted`:this.theme,animation:this.transition?`fade`:!1,onShown:e=>this.onShow(e,`onShown`),onShow:e=>this.onShow(e,`onShow`),onHidden:this.onHide,popperOptions:i.getPopperOptions({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}},anchor(){return this.externalAnchorElement?this.externalAnchorElement:this.externalAnchor?document.body.querySelector(this.externalAnchor):i.getAnchor(this.$refs.anchor)}},watch:{tippyProps:`setProps`,offset:{deep:!0,handler(e,t){e===t&&this.setProps()}},fallbackPlacements:{deep:!0,handler(e,t){e===t&&this.setProps()}},open:{handler:function(e){e!==null&&this.enabled&&(this.internalShow=e)},immediate:!0},internalShow(e){!this.tip||!this.anchor||(e?(this.setProps(),this.tip.show()):this.tip.hide())},sticky(e){this.tip.setProps({sticky:e})}},async mounted(){!this.enabled&&this.open!=null&&(console.warn(`Tooltip: You cannot use both the enabled and open props at the same time.`),console.warn(`The open prop will be ignored.`)),this.tip=i.createTippy(this.anchor,this.initOptions()),(this.externalAnchor||this.externalAnchorElement)&&(await t.l(),this.addExternalAnchorEventListeners()),t.M(t.O(this.$el),this.$options.name)},beforeUnmount(){(this.externalAnchor||this.externalAnchorElement)&&this.removeExternalAnchorEventListeners(),this.anchor?._tippy&&this.tip?.destroy()},methods:{getModeReferenceEl(){return this.anchor},calculateAnchorZindex(){return t.O(this.$el).getRootNode().querySelector(`.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"], .d-modal[open], .d-modal--transparent[open]`)||t.O(this.$el).closest(`.d-zi-drawer`)?651:400},hasVisibleFocus(){return this.anchor.matches(`:focus-visible`)},onEnterAnchor(e){this.enabled&&(this.delay&&this.inTimer===null?this.inTimer=setTimeout(()=>{this.triggerShow(e)},300):this.triggerShow(e))},triggerShow(e){e.type===`focusin`?this.open===null&&this.hasVisibleFocus()&&(this.internalShow=!0):this.open===null&&(this.internalShow=!0)},onLeaveAnchor(e){e.type===`keydown`&&e.code!==`Escape`||(clearTimeout(this.inTimer),this.inTimer=null,this.triggerHide())},triggerHide(){this.open===null&&(this.internalShow=!1)},onChangePlacement(e){this.currentPlacement=e},onHide(){this.tip?.unmount(),this.$emit(`shown`,!1),this.open!==null&&this.$emit(`update:open`,!1)},onShow(e,t){if(!this.tooltipHasContent(e))return!1;this.transition&&t===`onShow`||(this.$emit(`shown`,!0),this.open!==null&&this.$emit(`update:open`,!0))},resolveAppendTo(){return this.appendTo===`body`?this.anchor?.closest(`dialog`)??this.anchor?.getRootNode()?.querySelector?.(`body`)??document.body:this.appendTo},setProps(){!this.tip||!this.tip.setProps||!this.anchor||this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,appendTo:this.resolveAppendTo(),zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},tooltipHasContent(e){return e.props.content.textContent.trim().length!==0},initOptions(){return{content:this.$refs.content,arrow:this.tippyArrow,duration:180,interactive:!1,trigger:`manual`,hideOnClick:!1,touch:!1,onMount:this.onMount,showOnCreate:this.internalShow,appendTo:this.resolveAppendTo(),popperOptions:i.getPopperOptions({hasHideModifierEnabled:!0})}},addExternalAnchorEventListeners(){[`focusin`,`mouseenter`].forEach(e=>{this.anchor?.addEventListener(e,e=>this.onEnterAnchor(e))}),[`focusout`,`mouseleave`,`keydown`].forEach(e=>{this.anchor?.addEventListener(e,e=>this.onLeaveAnchor(e))})},removeExternalAnchorEventListeners(){[`focusin`,`mouseenter`].forEach(e=>{this.anchor?.removeEventListener(e,e=>this.onEnterAnchor(e))}),[`focusout`,`mouseleave`,`keydown`].forEach(e=>{this.anchor?.removeEventListener(e,e=>this.onLeaveAnchor(e))})}}},u={"data-qa":`dt-tooltip-container`},d=[`id`];function f(e,t,n,r,i,a){return(0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[!n.externalAnchor&&!n.externalAnchorElement?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,{key:0,ref:`anchor`,class:(0,s.normalizeClass)(n.anchorClass),"data-qa":`dt-tooltip-anchor`,onFocusin:t[0]||(t[0]=(...e)=>a.onEnterAnchor&&a.onEnterAnchor(...e)),onFocusout:t[1]||(t[1]=(...e)=>a.onLeaveAnchor&&a.onLeaveAnchor(...e)),onMouseenter:t[2]||(t[2]=(...e)=>a.onEnterAnchor&&a.onEnterAnchor(...e)),onMouseleave:t[3]||(t[3]=(...e)=>a.onLeaveAnchor&&a.onLeaveAnchor(...e)),onKeydown:t[4]||(t[4]=(0,s.withKeys)((...e)=>a.onLeaveAnchor&&a.onLeaveAnchor(...e),[`esc`]))},[(0,s.renderSlot)(e.$slots,`anchor`)],34)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,(0,s.mergeProps)({id:n.id,ref:`content`,"data-qa":`dt-tooltip`,class:[`d-tooltip`,{[i.TOOLTIP_KIND_MODIFIERS.inverted]:n.inverted},n.contentClass]},e.modeAttrs),[(0,s.renderSlot)(e.$slots,`default`,{},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(n.message),1)])],16,d)])}var p=n.t(l,[[`render`,f]]);exports.default=p;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`),r=require(`../../common/mixins/mode.cjs`),i=require(`../popover/tippy-utils.cjs`),a=require(`./tooltip-constants.cjs`),o=require(`../popover/popover-constants.cjs`);let s=require(`vue`);var c=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="7"><path d="M 14.5,7 8,0 1.5,7 Z"/></svg>`,l={name:`DtTooltip`,mixins:[r.default],props:{id:{type:String,default(){return t.m()}},fallbackPlacements:{type:Array,default:()=>[`auto`]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,12]},showArrow:{type:Boolean,default:!0},placement:{type:String,default:`top`,validator(e){return a.TOOLTIP_DIRECTIONS.includes(e)}},sticky:{type:[Boolean,String],default:!0,validator:e=>a.TOOLTIP_STICKY_VALUES.includes(e)},appendTo:{type:[e.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>o.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},contentClass:{type:[String,Object,Array],default:``},anchorClass:{type:[String,Object,Array],default:``},message:{type:String,default:``},enabled:{type:Boolean,default:!0},open:{type:[Boolean,null],default:null},transition:{type:Boolean,default:!0},delay:{type:Boolean,default:!0},theme:{type:String,default:null},externalAnchor:{type:String,default:null},externalAnchorElement:{type:e.HTML_ELEMENT_TYPE,default:null}},emits:[`shown`,`update:open`],data(){return{TOOLTIP_KIND_MODIFIERS:a.TOOLTIP_KIND_MODIFIERS,hasSlotContent:t._,tip:null,inTimer:null,internalShow:!1,currentPlacement:this.placement}},computed:{tippyArrow(){return this.showArrow?c:!1},tippyProps(){return{arrow:this.tippyArrow,offset:this.offset,delay:this.delay?300:!1,placement:this.placement,sticky:this.sticky,theme:this.inverted?`inverted`:this.theme,animation:this.transition?`fade`:!1,onShown:e=>this.onShow(e,`onShown`),onShow:e=>this.onShow(e,`onShow`),onHidden:this.onHide,popperOptions:i.getPopperOptions({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}},anchor(){return this.externalAnchorElement?this.externalAnchorElement:this.externalAnchor?document.body.querySelector(this.externalAnchor):i.getAnchor(this.$refs.anchor)}},watch:{tippyProps:`setProps`,offset:{deep:!0,handler(e,t){e===t&&this.setProps()}},fallbackPlacements:{deep:!0,handler(e,t){e===t&&this.setProps()}},open:{handler:function(e){e!==null&&this.enabled&&(this.internalShow=e)},immediate:!0},internalShow(e){!this.tip||!this.anchor||(e?(this.setProps(),this.tip.show()):this.tip.hide())},sticky(e){this.tip.setProps({sticky:e})}},async mounted(){!this.enabled&&this.open!=null&&(console.warn(`Tooltip: You cannot use both the enabled and open props at the same time.`),console.warn(`The open prop will be ignored.`)),this.tip=i.createTippy(this.anchor,this.initOptions()),(this.externalAnchor||this.externalAnchorElement)&&(await t.l(),this.addExternalAnchorEventListeners()),t.M(t.O(this.$el),this.$options.name)},beforeUnmount(){(this.externalAnchor||this.externalAnchorElement)&&this.removeExternalAnchorEventListeners(),this.anchor?._tippy&&this.tip?.destroy()},methods:{getModeReferenceEl(){return this.anchor},calculateAnchorZindex(){return t.O(this.$el).getRootNode().querySelector(`.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"], .d-modal[open], .d-modal--transparent[open]`)||t.O(this.$el).closest(`.d-zi-drawer`)?651:400},hasVisibleFocus(){return this.anchor.matches(`:focus-visible`)},onEnterAnchor(e){this.enabled&&(this.delay&&this.inTimer===null?this.inTimer=setTimeout(()=>{this.triggerShow(e)},300):this.triggerShow(e))},triggerShow(e){e.type===`focusin`?this.open===null&&this.hasVisibleFocus()&&(this.internalShow=!0):this.open===null&&(this.internalShow=!0)},onLeaveAnchor(e){e.type===`keydown`&&e.code!==`Escape`||(clearTimeout(this.inTimer),this.inTimer=null,this.triggerHide())},triggerHide(){this.open===null&&(this.internalShow=!1)},onChangePlacement(e){this.currentPlacement=e},onHide(){this.tip?.unmount(),this.$emit(`shown`,!1),this.open!==null&&this.$emit(`update:open`,!1)},onShow(e,t){if(!this.tooltipHasContent(e))return!1;this.transition&&t===`onShow`||(this.$emit(`shown`,!0),this.open!==null&&this.$emit(`update:open`,!0))},resolveAppendTo(){return this.appendTo===`body`?this.anchor?.closest(`dialog`)??this.anchor?.getRootNode()?.querySelector?.(`body`)??document.body:this.appendTo},setProps(){!this.tip||!this.tip.setProps||!this.anchor||this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,appendTo:this.resolveAppendTo(),zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},tooltipHasContent(e){return e.props.content.textContent.trim().length!==0},initOptions(){return{content:this.$refs.content,arrow:this.tippyArrow,duration:180,interactive:!1,trigger:`manual`,hideOnClick:!1,touch:!1,onMount:this.onMount,showOnCreate:this.internalShow,appendTo:this.resolveAppendTo(),popperOptions:i.getPopperOptions({hasHideModifierEnabled:!0})}},addExternalAnchorEventListeners(){[`focusin`,`mouseenter`].forEach(e=>{this.anchor?.addEventListener(e,e=>this.onEnterAnchor(e))}),[`focusout`,`mouseleave`,`keydown`].forEach(e=>{this.anchor?.addEventListener(e,e=>this.onLeaveAnchor(e))})},removeExternalAnchorEventListeners(){[`focusin`,`mouseenter`].forEach(e=>{this.anchor?.removeEventListener(e,e=>this.onEnterAnchor(e))}),[`focusout`,`mouseleave`,`keydown`].forEach(e=>{this.anchor?.removeEventListener(e,e=>this.onLeaveAnchor(e))})}}},u={"data-qa":`dt-tooltip-container`},d=[`id`];function f(e,t,n,r,i,a){return(0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[!n.externalAnchor&&!n.externalAnchorElement?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,{key:0,ref:`anchor`,class:(0,s.normalizeClass)(n.anchorClass),"data-qa":`dt-tooltip-anchor`,onFocusin:t[0]||(t[0]=(...e)=>a.onEnterAnchor&&a.onEnterAnchor(...e)),onFocusout:t[1]||(t[1]=(...e)=>a.onLeaveAnchor&&a.onLeaveAnchor(...e)),onMouseenter:t[2]||(t[2]=(...e)=>a.onEnterAnchor&&a.onEnterAnchor(...e)),onMouseleave:t[3]||(t[3]=(...e)=>a.onLeaveAnchor&&a.onLeaveAnchor(...e)),onKeydown:t[4]||(t[4]=(0,s.withKeys)((...e)=>a.onLeaveAnchor&&a.onLeaveAnchor(...e),[`esc`]))},[(0,s.renderSlot)(e.$slots,`anchor`)],34)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,(0,s.mergeProps)({id:n.id,ref:`content`,"data-qa":`dt-tooltip`,class:[`d-tooltip`,{[i.TOOLTIP_KIND_MODIFIERS.inverted]:n.inverted},n.contentClass]},e.modeAttrs),[(0,s.renderSlot)(e.$slots,`default`,{},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(n.message),1)])],16,d)])}var p=n.t(l,[[`render`,f]]);exports.default=p;
2
2
  //# sourceMappingURL=tooltip.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { HTML_ELEMENT_TYPE as e } from "../../common/constants/index.js";
2
- import { M as t, O as n, _ as r, l as i, m as a } from "../../utils-BL_SrwnF.js";
3
- import { t as o } from "../../_plugin-vue_export-helper-BecorN_g.js";
2
+ import { M as t, O as n, _ as r, l as i, m as a } from "../../utils-CXaaZqVu.js";
3
+ import { t as o } from "../../_plugin-vue_export-helper-B52Kst-M.js";
4
4
  import s from "../../common/mixins/mode.js";
5
5
  import { createTippy as c, getAnchor as l, getPopperOptions as u } from "../popover/tippy-utils.js";
6
6
  import { TOOLTIP_DIRECTIONS as d, TOOLTIP_KIND_MODIFIERS as f, TOOLTIP_STICKY_VALUES as p } from "./tooltip-constants.js";
@@ -0,0 +1 @@
1
+ export * from '../../directives/tooltip_directive/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../utils-GofHWJKi.cjs`),n=require(`../../mode_constants-DM0SVbFM.cjs`),r=require(`../tooltip/tooltip-constants.cjs`),i=require(`../tooltip/tooltip.cjs`);let a=require(`vue`),o=require(`deep-equal`);o=e.t(o);var s={name:`dt-tooltip-directive`,install(e){if(!globalThis.__DtTooltipDirectiveApp){let e=(0,a.createApp)({name:`DtTooltipDirectiveApp`,components:{DtTooltip:i.default},data(){return{tooltips:[]}},mounted(){globalThis.__DtTooltipDirectiveApp=this},methods:{addOrUpdateTooltip(e,t){let n=this.tooltips.findIndex(t=>t.id===e);n===-1?this.tooltips.push({id:e,...t}):this.tooltips.splice(n,1,{id:e,...t})},removeTooltip(e){this.tooltips=this.tooltips.filter(t=>t.id!==e)}},render(){return(0,a.h)(`div`,this.tooltips.map(({id:e,anchorElement:t,...n})=>(0,a.h)(i.default,{key:e,...n,sticky:n.sticky===void 0?!0:n.sticky,delay:n.delay===void 0?process.env.NODE_ENV!==`test`:n.delay,externalAnchorElement:t})))}}),t=document.createElement(`div`);document.body.appendChild(t),e.mount(t)}let s=globalThis.__DtTooltipDirectiveApp;e.directive(`dt-tooltip`,{beforeMount(e,t){c(e,t)},updated(e,t){(0,o.default)(t.value,t.oldValue)||c(e,t)},unmounted(e){s.removeTooltip(e.getAttribute(`data-dt-tooltip-id`))}});function c(e,i){if(i.value===null||i.value===void 0){let t=e.getAttribute(`data-dt-tooltip-id`);t&&s.removeTooltip(t);return}let a=e.getAttribute(`data-dt-tooltip-id`)||t.m(),o;if(typeof i.value==`string`)o={message:i.value,placement:i.arg||`top`};else if(typeof i.value==`object`&&i.value!==null)o={placement:i.arg||i.value.placement||`top`,...i.value};else{console.error(`DtTooltipDirective: binding value must be string, object, null or undefined`);return}Object.keys(i.modifiers).forEach(e=>{switch(e){case`inverted`:o.inverted=!0;break;case`no-delay`:o.delay=!1;break;case`no-transition`:o.transition=!1;break;default:n.n.includes(e)?o.contentMode=e:r.TOOLTIP_DIRECTIONS.includes(e)&&(o.placement=e);break}}),o.anchorElement=e,e.setAttribute(`data-dt-tooltip-id`,a),s.addOrUpdateTooltip(a,o)}}};exports.DtTooltipDirective=s,exports.default=s;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../chunk-BK-Lzi7j.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`),n=require(`../../mode_constants-DM0SVbFM.cjs`),r=require(`../tooltip/tooltip-constants.cjs`),i=require(`../tooltip/tooltip.cjs`);let a=require(`vue`),o=require(`deep-equal`);o=e.r(o);var s={name:`dt-tooltip-directive`,install(e){if(!globalThis.__DtTooltipDirectiveApp){let e=(0,a.createApp)({name:`DtTooltipDirectiveApp`,components:{DtTooltip:i.default},data(){return{tooltips:[]}},mounted(){globalThis.__DtTooltipDirectiveApp=this},methods:{addOrUpdateTooltip(e,t){let n=this.tooltips.findIndex(t=>t.id===e);n===-1?this.tooltips.push({id:e,...t}):this.tooltips.splice(n,1,{id:e,...t})},removeTooltip(e){this.tooltips=this.tooltips.filter(t=>t.id!==e)}},render(){return(0,a.h)(`div`,this.tooltips.map(({id:e,anchorElement:t,...n})=>(0,a.h)(i.default,{key:e,...n,sticky:n.sticky===void 0?!0:n.sticky,delay:n.delay===void 0?process.env.NODE_ENV!==`test`:n.delay,externalAnchorElement:t})))}}),t=document.createElement(`div`);document.body.appendChild(t),e.mount(t)}let s=globalThis.__DtTooltipDirectiveApp;e.directive(`dt-tooltip`,{beforeMount(e,t){c(e,t)},updated(e,t){(0,o.default)(t.value,t.oldValue)||c(e,t)},unmounted(e){s.removeTooltip(e.getAttribute(`data-dt-tooltip-id`))}});function c(e,i){if(i.value===null||i.value===void 0){let t=e.getAttribute(`data-dt-tooltip-id`);t&&s.removeTooltip(t);return}let a=e.getAttribute(`data-dt-tooltip-id`)||t.m(),o;if(typeof i.value==`string`)o={message:i.value,placement:i.arg||`top`};else if(typeof i.value==`object`&&i.value!==null)o={placement:i.arg||i.value.placement||`top`,...i.value};else{console.error(`DtTooltipDirective: binding value must be string, object, null or undefined`);return}Object.keys(i.modifiers).forEach(e=>{switch(e){case`inverted`:o.inverted=!0;break;case`no-delay`:o.delay=!1;break;case`no-transition`:o.transition=!1;break;default:n.n.includes(e)?o.contentMode=e:r.TOOLTIP_DIRECTIONS.includes(e)&&(o.placement=e);break}}),o.anchorElement=e,e.setAttribute(`data-dt-tooltip-id`,a),s.addOrUpdateTooltip(a,o)}}};exports.DtTooltipDirective=s,exports.default=s;
2
2
  //# sourceMappingURL=tooltip.cjs.map
@@ -1,5 +1,5 @@
1
- import { m as e } from "../../utils-BL_SrwnF.js";
2
- import { n as t } from "../../mode_constants-B8_1b5T8.js";
1
+ import { m as e } from "../../utils-CXaaZqVu.js";
2
+ import { n as t } from "../../mode_constants-CC73P7d-.js";
3
3
  import { TOOLTIP_DIRECTIONS as n } from "../tooltip/tooltip-constants.js";
4
4
  import r from "../tooltip/tooltip.js";
5
5
  import { createApp as i, h as a } from "vue";
@@ -0,0 +1 @@
1
+ export * from '../../components/ValidationMessages/index.js';
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../utils-GofHWJKi.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`);let r=require(`vue`),i=require(`@dialpad/dialtone-icons/vue`);var a=Object.freeze({warning:i.DtIconAlertTriangle,critical:i.DtIconAlertCircle,positive:i.DtIconCheckCircle,info:i.DtIconInfo}),o={name:`DtValidationMessages`,components:{DtIconAlertTriangle:i.DtIconAlertTriangle,DtIconAlertCircle:i.DtIconAlertCircle,DtIconCheckCircle:i.DtIconCheckCircle,DtIconInfo:i.DtIconInfo},props:{id:{type:String,default(){return t.m()}},validationMessages:{type:Array,default:()=>[],validator:t=>e.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},iconClass:{type:[String,Array,Object],default:``}},computed:{filteredValidationMessages(){return t.s(this.validationMessages)},validationState(){return t.h(this.validationMessages)}},methods:{getMessageKey(e,t){return`validation-message-${e}-${t}-${this.id}`},iconForType(e){return a[e]??null},messageTypeClass(e){return{critical:`base-input__message--critical d-validation-message--critical`,warning:`base-input__message--warning d-validation-message--warning`,positive:`base-input__message--positive d-validation-message--positive`,info:`base-input__message--info d-validation-message--info`}[e]}}},s=[`id`],c=[`innerHTML`];function l(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:n.id,"aria-live":`assertive`,class:`base-input__messages d-validation-message__container`,"data-qa":`validation-messages-container`},[n.showMessages?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(o.filteredValidationMessages,({message:t,type:i},a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:o.getMessageKey(i,a),"data-qa":`validation-message`,class:(0,r.normalizeClass)([`base-input__message`,`d-validation-message`,o.messageTypeClass(i)])},[(0,r.renderSlot)(e.$slots,`icon`,{type:i},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(o.iconForType(i)),{class:(0,r.normalizeClass)([`d-validation-message__icon`,n.iconClass]),"data-qa":`validation-message-icon`,size:`300`},null,8,[`class`]))]),(0,r.createElementVNode)(`p`,{innerHTML:t},null,8,c)],2))),128)):(0,r.createCommentVNode)(``,!0)],8,s)}var u=n.t(o,[[`render`,l]]);exports.default=u;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../utils-Db-kV6Sr.cjs`),n=require(`../../_plugin-vue_export-helper-CX7YVcP6.cjs`);let r=require(`vue`),i=require(`@dialpad/dialtone-icons/vue`);var a=Object.freeze({warning:i.DtIconAlertTriangle,critical:i.DtIconAlertCircle,positive:i.DtIconCheckCircle,info:i.DtIconInfo}),o={name:`DtValidationMessages`,components:{DtIconAlertTriangle:i.DtIconAlertTriangle,DtIconAlertCircle:i.DtIconAlertCircle,DtIconCheckCircle:i.DtIconCheckCircle,DtIconInfo:i.DtIconInfo},props:{id:{type:String,default(){return t.m()}},validationMessages:{type:Array,default:()=>[],validator:t=>e.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},iconClass:{type:[String,Array,Object],default:``}},computed:{filteredValidationMessages(){return t.s(this.validationMessages)},validationState(){return t.h(this.validationMessages)}},methods:{getMessageKey(e,t){return`validation-message-${e}-${t}-${this.id}`},iconForType(e){return a[e]??null},messageTypeClass(e){return{critical:`base-input__message--critical d-validation-message--critical`,warning:`base-input__message--warning d-validation-message--warning`,positive:`base-input__message--positive d-validation-message--positive`,info:`base-input__message--info d-validation-message--info`}[e]}}},s=[`id`],c=[`innerHTML`];function l(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:n.id,"aria-live":`assertive`,class:`base-input__messages d-validation-message__container`,"data-qa":`validation-messages-container`},[n.showMessages?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(o.filteredValidationMessages,({message:t,type:i},a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:o.getMessageKey(i,a),"data-qa":`validation-message`,class:(0,r.normalizeClass)([`base-input__message`,`d-validation-message`,o.messageTypeClass(i)])},[(0,r.renderSlot)(e.$slots,`icon`,{type:i},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(o.iconForType(i)),{class:(0,r.normalizeClass)([`d-validation-message__icon`,n.iconClass]),"data-qa":`validation-message-icon`,size:`300`},null,8,[`class`]))]),(0,r.createElementVNode)(`p`,{innerHTML:t},null,8,c)],2))),128)):(0,r.createCommentVNode)(``,!0)],8,s)}var u=n.t(o,[[`render`,l]]);exports.default=u;
2
2
  //# sourceMappingURL=validation-messages.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { validationMessageValidator as e } from "../../common/validators/index.js";
2
- import { h as t, m as n, s as r } from "../../utils-BL_SrwnF.js";
3
- import { t as i } from "../../_plugin-vue_export-helper-BecorN_g.js";
2
+ import { h as t, m as n, s as r } from "../../utils-CXaaZqVu.js";
3
+ import { t as i } from "../../_plugin-vue_export-helper-B52Kst-M.js";
4
4
  import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, resolveDynamicComponent as m } from "vue";
5
5
  import { DtIconAlertCircle as h, DtIconAlertTriangle as g, DtIconCheckCircle as _, DtIconInfo as v } from "@dialpad/dialtone-icons/vue";
6
6
  //#region components/ValidationMessages/ValidationMessages.vue
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../chunk-Bmb41Sf3.cjs`);const e=require(`./en-US.cjs`),t=require(`./zh-CN.cjs`),n=require(`./nl-NL.cjs`),r=require(`./fr-FR.cjs`),i=require(`./de-DE.cjs`),a=require(`./it-IT.cjs`),o=require(`./ja-JP.cjs`),s=require(`./ko-KR.cjs`),c=require(`./pt-BR.cjs`),l=require(`./ru-RU.cjs`),u=require(`./es-LA.cjs`),d=require(`./sv-SE.cjs`);let f=require(`@dialpad/i18n`);var p=`dialtone`,m={ENGLISH:`en-US`,CHINESE:`zh-CN`,DUTCH:`nl-NL`,FRENCH:`fr-FR`,GERMAN:`de-DE`,ITALIAN:`it-IT`,JAPANESE:`ja-JP`,KOREAN:`ko-KR`,PORTUGUESE:`pt-BR`,RUSSIAN:`ru-RU`,SPANISH:`es-LA`,SWEDISH:`sv-SE`},h=`en-US`,g=`user-locale`,_=class _{constructor(v=null){if(typeof _.instance==`object`)return _.instance;this._locale=v||_.getPreferredLocale();let y={bundleSource:new f.RawBundleSource({resources:f.RawBundleSource.builtResources([[`en-US`,p,e.default],[`zh-CN`,p,t.default],[`nl-NL`,p,n.default],[`fr-FR`,p,r.default],[`de-DE`,p,i.default],[`it-IT`,p,a.default],[`ja-JP`,p,o.default],[`ko-KR`,p,s.default],[`pt-BR`,p,c.default],[`ru-RU`,p,l.default],[`es-LA`,p,u.default],[`sv-SE`,p,d.default]])}),allowedLocales:Object.values(m),fallbackLocale:h,preferredLocale:this._locale,namespaces:[p]},b;try{b=new f.LocaleManager(y)}catch(e){if(e.name!==`SecurityError`)throw e;b=new f.LocaleManager({...y,storageWrapper:new f.MemoryStorageWrapper})}return _.instance=this,this.i18n=b.useI18N(p),typeof window<`u`&&window.addEventListener(`storage`,e=>{e.key===g&&(this.currentLocale=e.newValue)}),this}static getPreferredLocale(){if(typeof window>`u`)return h;let e;try{let t=window.localStorage;if(!t)return h;e=t.getItem(g)}catch{return h}let t=Object.values(m).includes(e)?e:null,n=Object.values(m).find(e=>e.startsWith(navigator.language.slice(0,2)));return t||n||h}static getAllowedLocales(){return m}$t(...e){return this.i18n.$t(...e)}$ta(...e){return this.i18n.$ta(...e)}get currentLocale(){return this._locale}set currentLocale(e){if(e!==this._locale){if(!Object.values(m).includes(e))throw Error(`Locale ${e} is not allowed, please use one of the following: ${Object.values(m).join(`, `)}`);this._locale=e,this.i18n.setI18N({preferredLocale:e},p)}}};exports.DialtoneLocalization=_;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../chunk-BK-Lzi7j.cjs`);const e=require(`./en-US.cjs`),t=require(`./zh-CN.cjs`),n=require(`./nl-NL.cjs`),r=require(`./fr-FR.cjs`),i=require(`./de-DE.cjs`),a=require(`./it-IT.cjs`),o=require(`./ja-JP.cjs`),s=require(`./ko-KR.cjs`),c=require(`./pt-BR.cjs`),l=require(`./ru-RU.cjs`),u=require(`./es-LA.cjs`),d=require(`./sv-SE.cjs`);let f=require(`@dialpad/i18n`);var p=`dialtone`,m={ENGLISH:`en-US`,CHINESE:`zh-CN`,DUTCH:`nl-NL`,FRENCH:`fr-FR`,GERMAN:`de-DE`,ITALIAN:`it-IT`,JAPANESE:`ja-JP`,KOREAN:`ko-KR`,PORTUGUESE:`pt-BR`,RUSSIAN:`ru-RU`,SPANISH:`es-LA`,SWEDISH:`sv-SE`},h=`en-US`,g=`user-locale`,_=class _{constructor(v=null){if(typeof _.instance==`object`)return _.instance;this._locale=v||_.getPreferredLocale();let y={bundleSource:new f.RawBundleSource({resources:f.RawBundleSource.builtResources([[`en-US`,p,e.default],[`zh-CN`,p,t.default],[`nl-NL`,p,n.default],[`fr-FR`,p,r.default],[`de-DE`,p,i.default],[`it-IT`,p,a.default],[`ja-JP`,p,o.default],[`ko-KR`,p,s.default],[`pt-BR`,p,c.default],[`ru-RU`,p,l.default],[`es-LA`,p,u.default],[`sv-SE`,p,d.default]])}),allowedLocales:Object.values(m),fallbackLocale:h,preferredLocale:this._locale,namespaces:[p]},b;try{b=new f.LocaleManager(y)}catch(e){if(e.name!==`SecurityError`)throw e;b=new f.LocaleManager({...y,storageWrapper:new f.MemoryStorageWrapper})}return _.instance=this,this.i18n=b.useI18N(p),typeof window<`u`&&window.addEventListener(`storage`,e=>{e.key===g&&(this.currentLocale=e.newValue)}),this}static getPreferredLocale(){if(typeof window>`u`)return h;let e;try{let t=window.localStorage;if(!t)return h;e=t.getItem(g)}catch{return h}let t=Object.values(m).includes(e)?e:null,n=Object.values(m).find(e=>e.startsWith(navigator.language.slice(0,2)));return t||n||h}static getAllowedLocales(){return m}$t(...e){return this.i18n.$t(...e)}$ta(...e){return this.i18n.$ta(...e)}get currentLocale(){return this._locale}set currentLocale(e){if(e!==this._locale){if(!Object.values(m).includes(e))throw Error(`Locale ${e} is not allowed, please use one of the following: ${Object.values(m).join(`, `)}`);this._locale=e,this.i18n.setI18N({preferredLocale:e},p)}}};exports.DialtoneLocalization=_;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["RawBundleSource","enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","koKR","ptBR","ruRU","esLA","svSE","LocaleManager","MemoryStorageWrapper"],"sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource, MemoryStorageWrapper } from '@dialpad/i18n';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport koKR from './ko-KR.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\nimport svSE from './sv-SE.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n KOREAN: 'ko-KR',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n SWEDISH: 'sv-SE',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n /**\n * @prop {import('@dialpad/i18n').UseI18N} i18n\n * @private\n */\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['ko-KR', dialtoneNamespace, koKR],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ['sv-SE', dialtoneNamespace, svSE],\n ]),\n });\n\n const localeOptions = {\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n };\n let localeManager;\n try {\n localeManager = new LocaleManager(localeOptions);\n } catch (error) {\n if (error.name !== 'SecurityError') throw error;\n localeManager = new LocaleManager({ ...localeOptions, storageWrapper: new MemoryStorageWrapper() });\n }\n\n DialtoneLocalization.instance = this;\n this.i18n = localeManager.useI18N(dialtoneNamespace);\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.addEventListener('storage', (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n });\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined') {\n return fallbackLocale;\n }\n\n let storedLanguage;\n try {\n const storage = window.localStorage;\n if (!storage) return fallbackLocale;\n storedLanguage = storage.getItem(localeManagerStorageKey);\n } catch {\n return fallbackLocale;\n }\n\n // Only trust the stored locale if it's one Dialtone actually ships a bundle for.\n // Callers (e.g. UC/UV) may allow locales Dialtone doesn't support, which would\n // otherwise crash the LocaleManager during render.\n const localStorageLanguage = Object.values(allowedLocales).includes(storedLanguage)\n ? storedLanguage\n : null;\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return this.i18n.$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return this.i18n.$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n this.i18n.setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"mappings":"qbAeA,IAAM,EAAoB,WACpB,EAAiB,CACrB,QAAS,QACT,QAAS,QACT,MAAO,QACP,OAAQ,QACR,OAAQ,QACR,QAAS,QACT,SAAU,QACV,OAAQ,QACR,WAAY,QACZ,QAAS,QACT,QAAS,QACT,QAAS,QACV,CACK,EAAiB,QAIjB,EAA0B,cAOnB,EAAb,MAAa,CAAqB,CAKhC,YAAa,EAAS,KAAM,CAC1B,GAAI,OAAO,EAAqB,UAAa,SAC3C,OAAO,EAAqB,SAG9B,KAAK,QAAU,GAAU,EAAqB,oBAAoB,CAmBlE,IAAM,EAAgB,CACpB,aAlBmB,IAAIA,EAAAA,gBAAgB,CACvC,UAAWA,EAAAA,gBAAgB,eAAe,CACxC,CAAC,QAAS,EAAmBC,EAAAA,QAAK,CAClC,CAAC,QAAS,EAAmBC,EAAAA,QAAK,CAClC,CAAC,QAAS,EAAmBC,EAAAA,QAAK,CAClC,CAAC,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AqB,CAC1B,OAAO,EAST,GAAI,GAAG,EAAM,CACX,OAAO,KAAK,KAAK,GAAG,GAAG,EAAK,CAS9B,IAAK,GAAG,EAAM,CACZ,OAAO,KAAK,KAAK,IAAI,GAAG,EAAK,CAG/B,IAAI,eAAiB,CACnB,OAAO,KAAK,QAGd,IAAI,cAAe,EAAW,CACxB,OAAc,KAAK,QACvB,IAAI,CAAC,OAAO,OAAO,EAAe,CAAC,SAAS,EAAU,CACpD,MAAU,MAAM,UAAU,EAAU,oDAAoD,OAAO,OAAO,EAAe,CAAC,KAAK,KAAK,GAAG,CAGrI,KAAK,QAAU,EACf,KAAK,KAAK,QAAQ,CAAE,gBAAiB,EAAW,CAAE,EAAkB"}
1
+ {"version":3,"file":"index.cjs","names":["RawBundleSource","enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","koKR","ptBR","ruRU","esLA","svSE","LocaleManager","MemoryStorageWrapper"],"sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource, MemoryStorageWrapper } from '@dialpad/i18n';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport koKR from './ko-KR.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\nimport svSE from './sv-SE.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n KOREAN: 'ko-KR',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n SWEDISH: 'sv-SE',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n /**\n * @param {string | null} [locale] The preferred locale, or the browser preference when omitted.\n */\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['ko-KR', dialtoneNamespace, koKR],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ['sv-SE', dialtoneNamespace, svSE],\n ]),\n });\n\n const localeOptions = {\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n };\n let localeManager;\n try {\n localeManager = new LocaleManager(localeOptions);\n } catch (error) {\n if (error.name !== 'SecurityError') throw error;\n localeManager = new LocaleManager({ ...localeOptions, storageWrapper: new MemoryStorageWrapper() });\n }\n\n DialtoneLocalization.instance = this;\n /** @private */\n this.i18n = localeManager.useI18N(dialtoneNamespace);\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.addEventListener('storage', (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n });\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined') {\n return fallbackLocale;\n }\n\n let storedLanguage;\n try {\n const storage = window.localStorage;\n if (!storage) return fallbackLocale;\n storedLanguage = storage.getItem(localeManagerStorageKey);\n } catch {\n return fallbackLocale;\n }\n\n // Only trust the stored locale if it's one Dialtone actually ships a bundle for.\n // Callers (e.g. UC/UV) may allow locales Dialtone doesn't support, which would\n // otherwise crash the LocaleManager during render.\n const localStorageLanguage = Object.values(allowedLocales).includes(storedLanguage)\n ? storedLanguage\n : null;\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return this.i18n.$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return this.i18n.$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n this.i18n.setI18N({ preferredLocale: newLocale }, dial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AAAA,qBAAwB,CAAC,CAoBrG,MAjBA,GAAqB,SAAW,KAEhC,KAAK,KAAO,EAAc,QAAQ,EAAkB,CAEhD,OAAO,OAAW,KAMpB,OAAO,iBAAiB,UAAY,GAAU,CACxC,EAAM,MAAQ,IAChB,KAAK,cAAgB,EAAM,WAE7B,CAGG,KAOT,OAAO,oBAAsB,CAI3B,GAAI,OAAO,OAAW,IACpB,OAAO,EAGT,IAAI,EACJ,GAAI,CACF,IAAM,EAAU,OAAO,aACvB,GAAI,CAAC,EAAS,OAAO,EACrB,EAAiB,EAAQ,QAAQ,EAAwB,MACnD,CACN,OAAO,EAMT,IAAM,EAAuB,OAAO,OAAO,EAAe,CAAC,SAAS,EAAe,CAC/E,EACA,KAGE,EAAoB,OAAO,OAAO,EAAe,CACpD,KAAK,GAAU,EAAO,WAAW,UAAU,SAAS,MAAM,EAAG,EAAE,CAAC,CAAC,CAEpE,OAAO,GAAwB,GAAqB,EAGtD,OAAO,mBAAqB,CAC1B,OAAO,EAST,GAAI,GAAG,EAAM,CACX,OAAO,KAAK,KAAK,GAAG,GAAG,EAAK,CAS9B,IAAK,GAAG,EAAM,CACZ,OAAO,KAAK,KAAK,IAAI,GAAG,EAAK,CAG/B,IAAI,eAAiB,CACnB,OAAO,KAAK,QAGd,IAAI,cAAe,EAAW,CACxB,OAAc,KAAK,QACvB,IAAI,CAAC,OAAO,OAAO,EAAe,CAAC,SAAS,EAAU,CACpD,MAAU,MAAM,UAAU,EAAU,oDAAoD,OAAO,OAAO,EAAe,CAAC,KAAK,KAAK,GAAG,CAGrI,KAAK,QAAU,EACf,KAAK,KAAK,QAAQ,CAAE,gBAAiB,EAAW,CAAE,EAAkB"}
@@ -0,0 +1,25 @@
1
+ export class DialtoneLocalization {
2
+ static getPreferredLocale(): string;
3
+ static getAllowedLocales(): {
4
+ ENGLISH: string;
5
+ CHINESE: string;
6
+ DUTCH: string;
7
+ FRENCH: string;
8
+ GERMAN: string;
9
+ ITALIAN: string;
10
+ JAPANESE: string;
11
+ KOREAN: string;
12
+ PORTUGUESE: string;
13
+ RUSSIAN: string;
14
+ SPANISH: string;
15
+ SWEDISH: string;
16
+ };
17
+ constructor(locale?: string | null);
18
+ _locale: string | undefined;
19
+ private i18n;
20
+ set currentLocale(newLocale: string | undefined);
21
+ get currentLocale(): string | undefined;
22
+ $t(...args: any[]): string;
23
+ $ta(...args: any[]): Record<string, string>;
24
+ }
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../localization/index.js"],"names":[],"mappings":"AAyCA;IAmEE,6BAFc,MAAM,CA+BnB;IAED;;;;;;;;;;;;;MAEC;IAhGD,qBAFW,MAAM,GAAG,IAAI,EA2DvB;IApDC,4BAAkE;IAoClE,aAAoD;IAiFtD,iDAQC;IAZD,wCAEC;IAhBD,2BAEC;IAQD,4CAEC;CAeF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","koKR","ptBR","ruRU","esLA","svSE"],"sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource, MemoryStorageWrapper } from '@dialpad/i18n';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport koKR from './ko-KR.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\nimport svSE from './sv-SE.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n KOREAN: 'ko-KR',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n SWEDISH: 'sv-SE',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n /**\n * @prop {import('@dialpad/i18n').UseI18N} i18n\n * @private\n */\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['ko-KR', dialtoneNamespace, koKR],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ['sv-SE', dialtoneNamespace, svSE],\n ]),\n });\n\n const localeOptions = {\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n };\n let localeManager;\n try {\n localeManager = new LocaleManager(localeOptions);\n } catch (error) {\n if (error.name !== 'SecurityError') throw error;\n localeManager = new LocaleManager({ ...localeOptions, storageWrapper: new MemoryStorageWrapper() });\n }\n\n DialtoneLocalization.instance = this;\n this.i18n = localeManager.useI18N(dialtoneNamespace);\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.addEventListener('storage', (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n });\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined') {\n return fallbackLocale;\n }\n\n let storedLanguage;\n try {\n const storage = window.localStorage;\n if (!storage) return fallbackLocale;\n storedLanguage = storage.getItem(localeManagerStorageKey);\n } catch {\n return fallbackLocale;\n }\n\n // Only trust the stored locale if it's one Dialtone actually ships a bundle for.\n // Callers (e.g. UC/UV) may allow locales Dialtone doesn't support, which would\n // otherwise crash the LocaleManager during render.\n const localStorageLanguage = Object.values(allowedLocales).includes(storedLanguage)\n ? storedLanguage\n : null;\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return this.i18n.$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return this.i18n.$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n this.i18n.setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,IAAM,IAAoB,YACpB,IAAiB;CACrB,SAAS;CACT,SAAS;CACT,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,SAAS;CACT,SAAS;CACT,SAAS;CACV,EACK,IAAiB,SAIjB,IAA0B,eAOnB,IAAb,MAAa,EAAqB;CAKhC,YAAa,IAAS,MAAM;AAC1B,MAAI,OAAO,EAAqB,YAAa,SAC3C,QAAO,EAAqB;AAG9B,OAAK,UAAU,KAAU,EAAqB,oBAAoB;EAmBlE,IAAM,IAAgB;GACpB,cAlBmB,IAAI,EAAgB,EACvC,WAAW,EAAgB,eAAe;IACxC;KAAC;KAAS;KAAmBA;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IACnC,CAAC,EACH,CAAC;GAIA,gBAAgB,OAAO,OAAO,EAAe;GAC7C;GACA,iBAAiB,KAAK;GACtB,YAAY,CAAC,EAAkB;GAChC,EACG;AACJ,MAAI;AACF,OAAgB,IAAI,EAAc,EAAc;WACzC,GAAO;AACd,OAAI,EAAM,SAAS,gBAAiB,OAAM;AAC1C,OAAgB,IAAI,EAAc;IAAE,GAAG;IAAe,gBAAgB,IAAI,GAAsB;IAAE,CAAC;;AAmBrG,SAhBA,EAAqB,WAAW,MAChC,KAAK,OAAO,EAAc,QAAQ,EAAkB,EAEhD,OAAO,SAAW,OAMpB,OAAO,iBAAiB,YAAY,MAAU;AAC5C,GAAI,EAAM,QAAQ,MAChB,KAAK,gBAAgB,EAAM;IAE7B,EAGG;;CAOT,OAAO,qBAAsB;AAI3B,MAAI,OAAO,SAAW,IACpB,QAAO;EAGT,IAAI;AACJ,MAAI;GACF,IAAM,IAAU,OAAO;AACvB,OAAI,CAAC,EAAS,QAAO;AACrB,OAAiB,EAAQ,QAAQ,EAAwB;UACnD;AACN,UAAO;;EAMT,IAAM,IAAuB,OAAO,OAAO,EAAe,CAAC,SAAS,EAAe,GAC/E,IACA,MAGE,IAAoB,OAAO,OAAO,EAAe,CACpD,MAAK,MAAU,EAAO,WAAW,UAAU,SAAS,MAAM,GAAG,EAAE,CAAC,CAAC;AAEpE,SAAO,KAAwB,KAAqB;;CAGtD,OAAO,oBAAqB;AAC1B,SAAO;;CAST,GAAI,GAAG,GAAM;AACX,SAAO,KAAK,KAAK,GAAG,GAAG,EAAK;;CAS9B,IAAK,GAAG,GAAM;AACZ,SAAO,KAAK,KAAK,IAAI,GAAG,EAAK;;CAG/B,IAAI,gBAAiB;AACnB,SAAO,KAAK;;CAGd,IAAI,cAAe,GAAW;AACxB,YAAc,KAAK,SACvB;OAAI,CAAC,OAAO,OAAO,EAAe,CAAC,SAAS,EAAU,CACpD,OAAU,MAAM,UAAU,EAAU,oDAAoD,OAAO,OAAO,EAAe,CAAC,KAAK,KAAK,GAAG;AAIrI,GADA,KAAK,UAAU,GACf,KAAK,KAAK,QAAQ,EAAE,iBAAiB,GAAW,EAAE,EAAkB"}
1
+ {"version":3,"file":"index.js","names":["enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","koKR","ptBR","ruRU","esLA","svSE"],"sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource, MemoryStorageWrapper } from '@dialpad/i18n';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport koKR from './ko-KR.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\nimport svSE from './sv-SE.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n KOREAN: 'ko-KR',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n SWEDISH: 'sv-SE',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n /**\n * @param {string | null} [locale] The preferred locale, or the browser preference when omitted.\n */\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['ko-KR', dialtoneNamespace, koKR],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ['sv-SE', dialtoneNamespace, svSE],\n ]),\n });\n\n const localeOptions = {\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n };\n let localeManager;\n try {\n localeManager = new LocaleManager(localeOptions);\n } catch (error) {\n if (error.name !== 'SecurityError') throw error;\n localeManager = new LocaleManager({ ...localeOptions, storageWrapper: new MemoryStorageWrapper() });\n }\n\n DialtoneLocalization.instance = this;\n /** @private */\n this.i18n = localeManager.useI18N(dialtoneNamespace);\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.addEventListener('storage', (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n });\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined') {\n return fallbackLocale;\n }\n\n let storedLanguage;\n try {\n const storage = window.localStorage;\n if (!storage) return fallbackLocale;\n storedLanguage = storage.getItem(localeManagerStorageKey);\n } catch {\n return fallbackLocale;\n }\n\n // Only trust the stored locale if it's one Dialtone actually ships a bundle for.\n // Callers (e.g. UC/UV) may allow locales Dialtone doesn't support, which would\n // otherwise crash the LocaleManager during render.\n const localStorageLanguage = Object.values(allowedLocales).includes(storedLanguage)\n ? storedLanguage\n : null;\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return this.i18n.$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return this.i18n.$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n this.i18n.setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,IAAM,IAAoB,YACpB,IAAiB;CACrB,SAAS;CACT,SAAS;CACT,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,SAAS;CACT,SAAS;CACT,SAAS;CACV,EACK,IAAiB,SAIjB,IAA0B,eAOnB,IAAb,MAAa,EAAqB;CAIhC,YAAa,IAAS,MAAM;AAC1B,MAAI,OAAO,EAAqB,YAAa,SAC3C,QAAO,EAAqB;AAG9B,OAAK,UAAU,KAAU,EAAqB,oBAAoB;EAmBlE,IAAM,IAAgB;GACpB,cAlBmB,IAAI,EAAgB,EACvC,WAAW,EAAgB,eAAe;IACxC;KAAC;KAAS;KAAmBA;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;IAClC;KAAC;KAAS;KAAmBC;KAAK;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G/B,IAAI,gBAAiB;AACnB,SAAO,KAAK;;CAGd,IAAI,cAAe,GAAW;AACxB,YAAc,KAAK,SACvB;OAAI,CAAC,OAAO,OAAO,EAAe,CAAC,SAAS,EAAU,CACpD,OAAU,MAAM,UAAU,EAAU,oDAAoD,OAAO,OAAO,EAAe,CAAC,KAAK,KAAK,GAAG;AAIrI,GADA,KAAK,UAAU,GACf,KAAK,KAAK,QAAQ,EAAE,iBAAiB,GAAW,EAAE,EAAkB"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/node
2
+ export {};
3
+ //# sourceMappingURL=sync-icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-icons.d.ts","sourceRoot":"","sources":["../../localization/sync-icons.js"],"names":[],"mappings":""}
@@ -11,4 +11,4 @@ var e = Object.values({
11
11
  //#endregion
12
12
  export { e as n, t };
13
13
 
14
- //# sourceMappingURL=mode_constants-B8_1b5T8.js.map
14
+ //# sourceMappingURL=mode_constants-CC73P7d-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mode_constants-B8_1b5T8.js","names":[],"sources":["../common/mode_constants.js"],"sourcesContent":["export const CONTENT_MODE_TYPES = {\n LIGHT: 'light',\n DARK: 'dark',\n INVERT: 'invert',\n};\n\nexport const CONTENT_MODE_VALUES = Object.values(CONTENT_MODE_TYPES);\n\n/**\n * Shared prop definition for the contentMode prop.\n * Use in pass-through components that forward to an inner component with the ModeMixin.\n */\nexport const CONTENT_MODE_PROP = {\n type: String,\n default: null,\n validator: (v) => v === null || CONTENT_MODE_VALUES.includes(v),\n};\n\n/**\n * Shared Storybook argType for the contentMode prop.\n */\nexport const CONTENT_MODE_ARG_TYPE = {\n options: [null, ...CONTENT_MODE_VALUES],\n control: {\n type: 'select',\n labels: { null: '(none)' },\n },\n table: {\n category: 'props',\n defaultValue: { summary: 'null' },\n },\n};\n\nexport default {\n CONTENT_MODE_TYPES,\n CONTENT_MODE_VALUES,\n CONTENT_MODE_PROP,\n CONTENT_MODE_ARG_TYPE,\n};\n"],"mappings":"AAMA,IAAa,IAAsB,OAAO,OANR;CAChC,OAAO;CACP,MAAM;CACN,QAAQ;CACT,CAEmE,EAMvD,IAAoB;CAC/B,MAAM;CACN,SAAS;CACT,YAAY,MAAM,MAAM,QAAQ,EAAoB,SAAS,EAAE;CAChE;AAMU,CAAO,GAAG,EAAoB"}
1
+ {"version":3,"file":"mode_constants-CC73P7d-.js","names":[],"sources":["../common/mode_constants.js"],"sourcesContent":["export const CONTENT_MODE_TYPES = {\n LIGHT: 'light',\n DARK: 'dark',\n INVERT: 'invert',\n};\n\nexport const CONTENT_MODE_VALUES = Object.values(CONTENT_MODE_TYPES);\n\n/**\n * Shared prop definition for the contentMode prop.\n * Use in pass-through components that forward to an inner component with the ModeMixin.\n */\nexport const CONTENT_MODE_PROP = {\n type: String,\n default: null,\n validator: (v) => v === null || CONTENT_MODE_VALUES.includes(v),\n};\n\n/**\n * Shared Storybook argType for the contentMode prop.\n */\nexport const CONTENT_MODE_ARG_TYPE = {\n options: [null, ...CONTENT_MODE_VALUES],\n control: {\n type: 'select',\n labels: { null: '(none)' },\n },\n table: {\n category: 'props',\n defaultValue: { summary: 'null' },\n },\n};\n\nexport default {\n CONTENT_MODE_TYPES,\n CONTENT_MODE_VALUES,\n CONTENT_MODE_PROP,\n CONTENT_MODE_ARG_TYPE,\n};\n"],"mappings":"AAMA,IAAa,IAAsB,OAAO,OANR;CAChC,OAAO;CACP,MAAM;CACN,QAAQ;CACT,CAEmE,EAMvD,IAAoB;CAC/B,MAAM;CACN,SAAS;CACT,YAAY,MAAM,MAAM,QAAQ,EAAoB,SAAS,EAAE;CAChE;AAMU,CAAO,GAAG,EAAoB"}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);let e=require(`vue`),t=require(`@tiptap/core`);function n(t){return(0,e.customRef)((e,n)=>({get(){return e(),t},set(e){t=e,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var r=class extends t.Editor{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=n(this.view.state),this.reactiveExtensionStorage=n(this.extensionStorage),this.on(`beforeTransaction`,({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),(0,e.markRaw)(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){let n=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(e){let t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}},i=(0,e.defineComponent)({name:`EditorContent`,props:{editor:{default:null,type:Object}},setup(t){let n=(0,e.ref)(),r=(0,e.getCurrentInstance)();return(0,e.watchEffect)(()=>{let i=t.editor;i&&i.options.element&&n.value&&(0,e.nextTick)(()=>{if(!n.value||!i.view.dom?.parentNode)return;let t=(0,e.unref)(n.value);n.value.append(...i.view.dom.parentNode.childNodes),i.contentComponent=r.ctx._,r&&(i.appContext={...r.appContext,provides:r.provides}),i.setOptions({element:t}),i.createNodeViews()})}),(0,e.onBeforeUnmount)(()=>{let e=t.editor;e&&(e.contentComponent=null,e.appContext=null)}),{rootEl:n}},render(){return(0,e.h)(`div`,{ref:e=>{this.rootEl=e}})}}),a=(0,e.defineComponent)({name:`NodeViewContent`,props:{as:{type:String,default:`div`}},render(){return(0,e.h)(this.as,{style:{whiteSpace:`pre-wrap`},"data-node-view-content":``})}}),o=(0,e.defineComponent)({name:`NodeViewWrapper`,props:{as:{type:String,default:`div`}},inject:[`onDragStart`,`decorationClasses`],render(){var t;return(0,e.h)(this.as,{class:this.decorationClasses,style:{whiteSpace:`normal`},"data-node-view-wrapper":``,onDragstart:this.onDragStart},(t=this.$slots).default?.call(t))}}),s=(t={})=>{let n=(0,e.shallowRef)();return(0,e.onMounted)(()=>{n.value=new r(t)}),(0,e.onBeforeUnmount)(()=>{var e,t;let r=n.value?.view.dom?.parentNode,i=r?.cloneNode(!0);(e=r?.parentNode)==null||e.replaceChild(i,r),(t=n.value)==null||t.destroy()}),n},c=class{constructor(t,{props:n={},editor:r}){this.destroyed=!1,this.editor=r,this.component=(0,e.markRaw)(t),this.el=document.createElement(`div`),this.props=(0,e.reactive)(n),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){return this.renderedComponent.vNode?.component?.exposed?this.renderedComponent.vNode.component.exposed:this.renderedComponent.vNode?.component?.proxy}renderComponent(){if(this.destroyed)return this.renderedComponent;let t=(0,e.h)(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<`u`&&this.el&&(0,e.render)(t,this.el),{vNode:t,destroy:()=>{this.el&&(0,e.render)(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(e={}){this.destroyed||(Object.entries(e).forEach(([e,t])=>{this.props[e]=t}),this.renderComponent())}destroy(){this.destroyed||(this.destroyed=!0,this.renderedComponent.destroy())}},l={editor:{type:Object,required:!0},mark:{type:Object,required:!0},extension:{type:Object,required:!0},inline:{type:Boolean,required:!0},view:{type:Object,required:!0},updateAttributes:{type:Function,required:!0},HTMLAttributes:{type:Object,required:!0}},u=(0,e.defineComponent)({name:`MarkViewContent`,props:{as:{type:String,default:`span`}},render(){return(0,e.h)(this.as,{style:{whiteSpace:`inherit`},"data-mark-view-content":``})}}),d=class extends t.MarkView{constructor(t,n,r){super(t,n,r);let i={...n,updateAttributes:this.updateAttributes.bind(this)};this.renderer=new c((0,e.defineComponent)({extends:{...t},props:Object.keys(i),template:this.component.template,setup:e=>t.setup?.call(t,e,{expose:()=>void 0}),__scopeId:t.__scopeId,__cssModules:t.__cssModules,__name:t.__name,__file:t.__file}),{editor:this.editor,props:i})}get dom(){return this.renderer.element}get contentDOM(){return this.dom.querySelector(`[data-mark-view-content]`)}updateAttributes(t){let n=(0,e.toRaw)(this.mark);super.updateAttributes(t,n)}destroy(){this.renderer.destroy()}};function f(e,t={}){return n=>n.editor.contentComponent?new d(e,n,t):{}}var p={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0},view:{type:Object,required:!0},innerDecorations:{type:Object,required:!0},HTMLAttributes:{type:Object,required:!0}},m=class extends t.NodeView{constructor(){super(...arguments),this.cachedExtensionWithSyncedStorage=null}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){let e=this.editor,t=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(t,{get(n,r,i){return r===`storage`?e.storage[t.name]??{}:Reflect.get(n,r,i)}})}return this.cachedExtensionWithSyncedStorage}mount(){let t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=(0,e.ref)(this.getDecorationClasses());let r=(0,e.defineComponent)({extends:{...this.component},props:Object.keys(t),template:this.component.template,setup:t=>{var r;return(0,e.provide)(`onDragStart`,n),(0,e.provide)(`decorationClasses`,this.decorationClasses),(r=this.component).setup?.call(r,t,{expose:()=>void 0})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on(`selectionUpdate`,this.handleSelectionUpdate),this.renderer=new c(r,{editor:this.editor,props:t})}get dom(){if(!this.renderer.element||!this.renderer.element.hasAttribute(`data-node-view-wrapper`))throw Error(`Please use the NodeViewWrapper component for your node view.`);return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector(`[data-node-view-content]`)}handleSelectionUpdate(){let{from:e,to:t}=this.editor.state.selection,n=this.getPos();if(typeof n==`number`)if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,t,n){let r=e=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(e)};if(typeof this.options.update==`function`){let i=this.node,a=this.decorations,o=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:i,oldDecorations:a,newNode:e,newDecorations:t,oldInnerDecorations:o,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}return e.type===this.node.type?e===this.node&&this.decorations===t&&this.innerDecorations===n?!0:(this.node=e,this.decorations=t,this.innerDecorations=n,r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage}),!0):!1}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element&&this.renderer.element.classList.add(`ProseMirror-selectednode`)}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element&&this.renderer.element.classList.remove(`ProseMirror-selectednode`)}getDecorationClasses(){return this.decorations.flatMap(e=>e.type.attrs.class).join(` `)}destroy(){this.renderer.destroy(),this.editor.off(`selectionUpdate`,this.handleSelectionUpdate)}};function h(e,t){return n=>n.editor.contentComponent?new m(typeof e==`function`&&`__vccOpts`in e?e.__vccOpts:e,n,t):{}}exports.Editor=r,exports.EditorContent=i,exports.MarkViewContent=u,exports.NodeViewContent=a,exports.NodeViewWrapper=o,exports.VueMarkView=d,exports.VueMarkViewRenderer=f,exports.VueNodeViewRenderer=h,exports.VueRenderer=c,exports.markViewProps=l,exports.nodeViewProps=p,exports.useEditor=s,Object.keys(t).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-BK-Lzi7j.cjs`);const e=require(`../../dist-DzjXnVZt.cjs`);exports.Editor=e.t,exports.EditorContent=e.n,exports.MarkViewContent=e.r,exports.NodeViewContent=e.i,exports.NodeViewWrapper=e.a,exports.VueMarkView=e.o,exports.VueMarkViewRenderer=e.s,exports.VueNodeViewRenderer=e.c,exports.VueRenderer=e.l,exports.markViewProps=e.u,exports.nodeViewProps=e.d,exports.useEditor=e.f;var t=require(`@tiptap/core`);Object.keys(t).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});
2
2
  //# sourceMappingURL=vue-3.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"vue-3.cjs","names":["CoreEditor","MarkView","NodeView"],"sources":["../../../../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=65d98f737afae097542c692b176a81069e1b7b8d577d1d7e222a944_23bfa7b5fde667bfc96216774c3ce084/node_modules/@tiptap/vue-3/dist/index.js"],"sourcesContent":["// src/Editor.ts\nimport { Editor as CoreEditor } from \"@tiptap/core\";\nimport { customRef, markRaw } from \"vue\";\nfunction useDebouncedRef(value) {\n return customRef((track, trigger) => {\n return {\n get() {\n track();\n return value;\n },\n set(newValue) {\n value = newValue;\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n trigger();\n });\n });\n }\n };\n });\n}\nvar Editor = class extends CoreEditor {\n constructor(options = {}) {\n super(options);\n this.contentComponent = null;\n this.appContext = null;\n this.reactiveState = useDebouncedRef(this.view.state);\n this.reactiveExtensionStorage = useDebouncedRef(this.extensionStorage);\n this.on(\"beforeTransaction\", ({ nextState }) => {\n this.reactiveState.value = nextState;\n this.reactiveExtensionStorage.value = this.extensionStorage;\n });\n return markRaw(this);\n }\n get state() {\n return this.reactiveState ? this.reactiveState.value : this.view.state;\n }\n get storage() {\n return this.reactiveExtensionStorage ? this.reactiveExtensionStorage.value : super.storage;\n }\n /**\n * Register a ProseMirror plugin.\n */\n registerPlugin(plugin, handlePlugins) {\n const nextState = super.registerPlugin(plugin, handlePlugins);\n if (this.reactiveState) {\n this.reactiveState.value = nextState;\n }\n return nextState;\n }\n /**\n * Unregister a ProseMirror plugin.\n */\n unregisterPlugin(nameOrPluginKey) {\n const nextState = super.unregisterPlugin(nameOrPluginKey);\n if (this.reactiveState && nextState) {\n this.reactiveState.value = nextState;\n }\n return nextState;\n }\n};\n\n// src/EditorContent.ts\nimport { defineComponent, getCurrentInstance, h, nextTick, onBeforeUnmount, ref, unref, watchEffect } from \"vue\";\nvar EditorContent = defineComponent({\n name: \"EditorContent\",\n props: {\n editor: {\n default: null,\n type: Object\n }\n },\n setup(props) {\n const rootEl = ref();\n const instance = getCurrentInstance();\n watchEffect(() => {\n const editor = props.editor;\n if (editor && editor.options.element && rootEl.value) {\n nextTick(() => {\n var _a;\n if (!rootEl.value || !((_a = editor.view.dom) == null ? void 0 : _a.parentNode)) {\n return;\n }\n const element = unref(rootEl.value);\n rootEl.value.append(...editor.view.dom.parentNode.childNodes);\n editor.contentComponent = instance.ctx._;\n if (instance) {\n editor.appContext = {\n ...instance.appContext,\n // Vue internally uses prototype chain to forward/shadow injects across the entire component chain\n // so don't use object spread operator or 'Object.assign' and just set `provides` as is on editor's appContext\n // @ts-expect-error forward instance's 'provides' into appContext\n provides: instance.provides\n };\n }\n editor.setOptions({\n element\n });\n editor.createNodeViews();\n });\n }\n });\n onBeforeUnmount(() => {\n const editor = props.editor;\n if (!editor) {\n return;\n }\n editor.contentComponent = null;\n editor.appContext = null;\n });\n return { rootEl };\n },\n render() {\n return h(\"div\", {\n ref: (el) => {\n this.rootEl = el;\n }\n });\n }\n});\n\n// src/NodeViewContent.ts\nimport { defineComponent as defineComponent2, h as h2 } from \"vue\";\nvar NodeViewContent = defineComponent2({\n name: \"NodeViewContent\",\n props: {\n as: {\n type: String,\n default: \"div\"\n }\n },\n render() {\n return h2(this.as, {\n style: {\n whiteSpace: \"pre-wrap\"\n },\n \"data-node-view-content\": \"\"\n });\n }\n});\n\n// src/NodeViewWrapper.ts\nimport { defineComponent as defineComponent3, h as h3 } from \"vue\";\nvar NodeViewWrapper = defineComponent3({\n name: \"NodeViewWrapper\",\n props: {\n as: {\n type: String,\n default: \"div\"\n }\n },\n inject: [\"onDragStart\", \"decorationClasses\"],\n render() {\n var _a, _b;\n return h3(\n this.as,\n {\n // @ts-ignore\n class: this.decorationClasses,\n style: {\n whiteSpace: \"normal\"\n },\n \"data-node-view-wrapper\": \"\",\n // @ts-ignore (https://github.com/vuejs/vue-next/issues/3031)\n onDragstart: this.onDragStart\n },\n (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)\n );\n }\n});\n\n// src/useEditor.ts\nimport { onBeforeUnmount as onBeforeUnmount2, onMounted, shallowRef } from \"vue\";\nvar useEditor = (options = {}) => {\n const editor = shallowRef();\n onMounted(() => {\n editor.value = new Editor(options);\n });\n onBeforeUnmount2(() => {\n var _a, _b, _c, _d;\n const nodes = (_b = (_a = editor.value) == null ? void 0 : _a.view.dom) == null ? void 0 : _b.parentNode;\n const newEl = nodes == null ? void 0 : nodes.cloneNode(true);\n (_c = nodes == null ? void 0 : nodes.parentNode) == null ? void 0 : _c.replaceChild(newEl, nodes);\n (_d = editor.value) == null ? void 0 : _d.destroy();\n });\n return editor;\n};\n\n// src/VueMarkViewRenderer.ts\nimport { MarkView } from \"@tiptap/core\";\nimport { defineComponent as defineComponent4, h as h5, toRaw } from \"vue\";\n\n// src/VueRenderer.ts\nimport { h as h4, markRaw as markRaw2, reactive, render } from \"vue\";\nvar VueRenderer = class {\n constructor(component, { props = {}, editor }) {\n /**\n * Flag to track if the renderer has been destroyed, preventing queued or asynchronous renders from executing after teardown.\n */\n this.destroyed = false;\n this.editor = editor;\n this.component = markRaw2(component);\n this.el = document.createElement(\"div\");\n this.props = reactive(props);\n this.renderedComponent = this.renderComponent();\n }\n get element() {\n return this.renderedComponent.el;\n }\n get ref() {\n var _a, _b, _c, _d;\n if ((_b = (_a = this.renderedComponent.vNode) == null ? void 0 : _a.component) == null ? void 0 : _b.exposed) {\n return this.renderedComponent.vNode.component.exposed;\n }\n return (_d = (_c = this.renderedComponent.vNode) == null ? void 0 : _c.component) == null ? void 0 : _d.proxy;\n }\n renderComponent() {\n if (this.destroyed) {\n return this.renderedComponent;\n }\n let vNode = h4(this.component, this.props);\n if (this.editor.appContext) {\n vNode.appContext = this.editor.appContext;\n }\n if (typeof document !== \"undefined\" && this.el) {\n render(vNode, this.el);\n }\n const destroy = () => {\n if (this.el) {\n render(null, this.el);\n }\n this.el = null;\n vNode = null;\n };\n return { vNode, destroy, el: this.el ? this.el.firstElementChild : null };\n }\n updateProps(props = {}) {\n if (this.destroyed) {\n return;\n }\n Object.entries(props).forEach(([key, value]) => {\n this.props[key] = value;\n });\n this.renderComponent();\n }\n destroy() {\n if (this.destroyed) {\n return;\n }\n this.destroyed = true;\n this.renderedComponent.destroy();\n }\n};\n\n// src/VueMarkViewRenderer.ts\nvar markViewProps = {\n editor: {\n type: Object,\n required: true\n },\n mark: {\n type: Object,\n required: true\n },\n extension: {\n type: Object,\n required: true\n },\n inline: {\n type: Boolean,\n required: true\n },\n view: {\n type: Object,\n required: true\n },\n updateAttributes: {\n type: Function,\n required: true\n },\n HTMLAttributes: {\n type: Object,\n required: true\n }\n};\nvar MarkViewContent = defineComponent4({\n name: \"MarkViewContent\",\n props: {\n as: {\n type: String,\n default: \"span\"\n }\n },\n render() {\n return h5(this.as, {\n style: {\n whiteSpace: \"inherit\"\n },\n \"data-mark-view-content\": \"\"\n });\n }\n});\nvar VueMarkView = class extends MarkView {\n constructor(component, props, options) {\n super(component, props, options);\n const componentProps = { ...props, updateAttributes: this.updateAttributes.bind(this) };\n const extendedComponent = defineComponent4({\n extends: { ...component },\n props: Object.keys(componentProps),\n template: this.component.template,\n setup: (reactiveProps) => {\n var _a;\n return (_a = component.setup) == null ? void 0 : _a.call(component, reactiveProps, {\n expose: () => void 0\n });\n },\n // Add support for scoped styles\n __scopeId: component.__scopeId,\n __cssModules: component.__cssModules,\n __name: component.__name,\n __file: component.__file\n });\n this.renderer = new VueRenderer(extendedComponent, {\n editor: this.editor,\n props: componentProps\n });\n }\n get dom() {\n return this.renderer.element;\n }\n get contentDOM() {\n return this.dom.querySelector(\"[data-mark-view-content]\");\n }\n updateAttributes(attrs) {\n const unproxiedMark = toRaw(this.mark);\n super.updateAttributes(attrs, unproxiedMark);\n }\n destroy() {\n this.renderer.destroy();\n }\n};\nfunction VueMarkViewRenderer(component, options = {}) {\n return (props) => {\n if (!props.editor.contentComponent) {\n return {};\n }\n return new VueMarkView(component, props, options);\n };\n}\n\n// src/VueNodeViewRenderer.ts\nimport { NodeView } from \"@tiptap/core\";\nimport { defineComponent as defineComponent5, provide, ref as ref2 } from \"vue\";\nvar nodeViewProps = {\n editor: {\n type: Object,\n required: true\n },\n node: {\n type: Object,\n required: true\n },\n decorations: {\n type: Object,\n required: true\n },\n selected: {\n type: Boolean,\n required: true\n },\n extension: {\n type: Object,\n required: true\n },\n getPos: {\n type: Function,\n required: true\n },\n updateAttributes: {\n type: Function,\n required: true\n },\n deleteNode: {\n type: Function,\n required: true\n },\n view: {\n type: Object,\n required: true\n },\n innerDecorations: {\n type: Object,\n required: true\n },\n HTMLAttributes: {\n type: Object,\n required: true\n }\n};\nvar VueNodeView = class extends NodeView {\n constructor() {\n super(...arguments);\n this.cachedExtensionWithSyncedStorage = null;\n }\n /**\n * Returns a proxy of the extension that redirects storage access to the editor's mutable storage.\n * This preserves the original prototype chain (instanceof checks, methods like configure/extend work).\n * Cached to avoid proxy creation on every update.\n */\n get extensionWithSyncedStorage() {\n if (!this.cachedExtensionWithSyncedStorage) {\n const editor = this.editor;\n const extension = this.extension;\n this.cachedExtensionWithSyncedStorage = new Proxy(extension, {\n get(target, prop, receiver) {\n var _a;\n if (prop === \"storage\") {\n return (_a = editor.storage[extension.name]) != null ? _a : {};\n }\n return Reflect.get(target, prop, receiver);\n }\n });\n }\n return this.cachedExtensionWithSyncedStorage;\n }\n mount() {\n const props = {\n editor: this.editor,\n node: this.node,\n decorations: this.decorations,\n innerDecorations: this.innerDecorations,\n view: this.view,\n selected: false,\n extension: this.extensionWithSyncedStorage,\n HTMLAttributes: this.HTMLAttributes,\n getPos: () => this.getPos(),\n updateAttributes: (attributes = {}) => this.updateAttributes(attributes),\n deleteNode: () => this.deleteNode()\n };\n const onDragStart = this.onDragStart.bind(this);\n this.decorationClasses = ref2(this.getDecorationClasses());\n const extendedComponent = defineComponent5({\n extends: { ...this.component },\n props: Object.keys(props),\n template: this.component.template,\n setup: (reactiveProps) => {\n var _a, _b;\n provide(\"onDragStart\", onDragStart);\n provide(\"decorationClasses\", this.decorationClasses);\n return (_b = (_a = this.component).setup) == null ? void 0 : _b.call(_a, reactiveProps, {\n expose: () => void 0\n });\n },\n // add support for scoped styles\n // @ts-ignore\n // eslint-disable-next-line\n __scopeId: this.component.__scopeId,\n // add support for CSS Modules\n // @ts-ignore\n // eslint-disable-next-line\n __cssModules: this.component.__cssModules,\n // add support for vue devtools\n // @ts-ignore\n // eslint-disable-next-line\n __name: this.component.__name,\n // @ts-ignore\n // eslint-disable-next-line\n __file: this.component.__file\n });\n this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this);\n this.editor.on(\"selectionUpdate\", this.handleSelectionUpdate);\n this.renderer = new VueRenderer(extendedComponent, {\n editor: this.editor,\n props\n });\n }\n /**\n * Return the DOM element.\n * This is the element that will be used to display the node view.\n */\n get dom() {\n if (!this.renderer.element || !this.renderer.element.hasAttribute(\"data-node-view-wrapper\")) {\n throw Error(\"Please use the NodeViewWrapper component for your node view.\");\n }\n return this.renderer.element;\n }\n /**\n * Return the content DOM element.\n * This is the element that will be used to display the rich-text content of the node.\n */\n get contentDOM() {\n if (this.node.isLeaf) {\n return null;\n }\n return this.dom.querySelector(\"[data-node-view-content]\");\n }\n /**\n * On editor selection update, check if the node is selected.\n * If it is, call `selectNode`, otherwise call `deselectNode`.\n */\n handleSelectionUpdate() {\n const { from, to } = this.editor.state.selection;\n const pos = this.getPos();\n if (typeof pos !== \"number\") {\n return;\n }\n if (from <= pos && to >= pos + this.node.nodeSize) {\n if (this.renderer.props.selected) {\n return;\n }\n this.selectNode();\n } else {\n if (!this.renderer.props.selected) {\n return;\n }\n this.deselectNode();\n }\n }\n /**\n * On update, update the React component.\n * To prevent unnecessary updates, the `update` option can be used.\n */\n update(node, decorations, innerDecorations) {\n const rerenderComponent = (props) => {\n this.decorationClasses.value = this.getDecorationClasses();\n this.renderer.updateProps(props);\n };\n if (typeof this.options.update === \"function\") {\n const oldNode = this.node;\n const oldDecorations = this.decorations;\n const oldInnerDecorations = this.innerDecorations;\n this.node = node;\n this.decorations = decorations;\n this.innerDecorations = innerDecorations;\n return this.options.update({\n oldNode,\n oldDecorations,\n newNode: node,\n newDecorations: decorations,\n oldInnerDecorations,\n innerDecorations,\n updateProps: () => rerenderComponent({ node, decorations, innerDecorations, extension: this.extensionWithSyncedStorage })\n });\n }\n if (node.type !== this.node.type) {\n return false;\n }\n if (node === this.node && this.decorations === decorations && this.innerDecorations === innerDecorations) {\n return true;\n }\n this.node = node;\n this.decorations = decorations;\n this.innerDecorations = innerDecorations;\n rerenderComponent({ node, decorations, innerDecorations, extension: this.extensionWithSyncedStorage });\n return true;\n }\n /**\n * Select the node.\n * Add the `selected` prop and the `ProseMirror-selectednode` class.\n */\n selectNode() {\n this.renderer.updateProps({\n selected: true\n });\n if (this.renderer.element) {\n this.renderer.element.classList.add(\"ProseMirror-selectednode\");\n }\n }\n /**\n * Deselect the node.\n * Remove the `selected` prop and the `ProseMirror-selectednode` class.\n */\n deselectNode() {\n this.renderer.updateProps({\n selected: false\n });\n if (this.renderer.element) {\n this.renderer.element.classList.remove(\"ProseMirror-selectednode\");\n }\n }\n getDecorationClasses() {\n return this.decorations.flatMap((item) => item.type.attrs.class).join(\" \");\n }\n destroy() {\n this.renderer.destroy();\n this.editor.off(\"selectionUpdate\", this.handleSelectionUpdate);\n }\n};\nfunction VueNodeViewRenderer(component, options) {\n return (props) => {\n if (!props.editor.contentComponent) {\n return {};\n }\n const normalizedComponent = typeof component === \"function\" && \"__vccOpts\" in component ? component.__vccOpts : component;\n return new VueNodeView(normalizedComponent, props, options);\n };\n}\n\n// src/index.ts\nexport * from \"@tiptap/core\";\nexport {\n Editor,\n EditorContent,\n MarkViewContent,\n NodeViewContent,\n NodeViewWrapper,\n VueMarkView,\n VueMarkViewRenderer,\n VueNodeViewRenderer,\n VueRenderer,\n markViewProps,\n nodeViewProps,\n useEditor\n};\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":"sJAGA,SAAS,EAAgB,EAAO,CAC9B,OAAA,EAAA,EAAA,YAAkB,EAAO,KAChB,CACL,KAAM,CAEJ,OADA,GAAO,CACA,GAET,IAAI,EAAU,CACZ,EAAQ,EACR,0BAA4B,CAC1B,0BAA4B,CAC1B,GAAS,EACT,EACF,EAEL,EACD,CAEJ,IAAI,EAAS,cAAcA,EAAAA,MAAW,CACpC,YAAY,EAAU,EAAE,CAAE,CAUxB,OATA,MAAM,EAAQ,CACd,KAAK,iBAAmB,KACxB,KAAK,WAAa,KAClB,KAAK,cAAgB,EAAgB,KAAK,KAAK,MAAM,CACrD,KAAK,yBAA2B,EAAgB,KAAK,iBAAiB,CACtE,KAAK,GAAG,qBAAsB,CAAE,eAAgB,CAC9C,KAAK,cAAc,MAAQ,EAC3B,KAAK,yBAAyB,MAAQ,KAAK,kBAC3C,EACF,EAAA,EAAA,SAAe,KAAK,CAEtB,IAAI,OAAQ,CACV,OAAO,KAAK,cAAgB,KAAK,cAAc,MAAQ,KAAK,KAAK,MAEnE,IAAI,SAAU,CACZ,OAAO,KAAK,yBAA2B,KAAK,yBAAyB,MAAQ,MAAM,QAKrF,eAAe,EAAQ,EAAe,CACpC,IAAM,EAAY,MAAM,eAAe,EAAQ,EAAc,CAI7D,OAHI,KAAK,gBACP,KAAK,cAAc,MAAQ,GAEtB,EAKT,iBAAiB,EAAiB,CAChC,IAAM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