@dialpad/dialtone 9.77.0-beta.1 → 9.77.0

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 (944) hide show
  1. package/README.md +26 -23
  2. package/dist/css/dialtone-default-theme.css +3 -0
  3. package/dist/css/dialtone-default-theme.min.css +1 -1
  4. package/dist/css/dialtone.css +3 -0
  5. package/dist/css/dialtone.min.css +1 -1
  6. package/dist/tokens/doc.json +10048 -10048
  7. package/dist/tokens/postcss/rem-to-px.cjs +1 -1
  8. package/dist/tokens/postcss/rem-to-px.js +7 -12
  9. package/dist/tokens/postcss/root-to-host.cjs +1 -0
  10. package/dist/tokens/postcss/root-to-host.js +12 -0
  11. package/dist/tokens/themes/config.cjs +1 -1
  12. package/dist/tokens/themes/config.js +9 -9
  13. package/dist/tokens/types/postcss/constants.d.cts +44 -0
  14. package/dist/tokens/types/postcss/constants.d.cts.map +1 -0
  15. package/dist/tokens/types/postcss/dialtone-tokens.d.cts +3 -0
  16. package/dist/tokens/types/postcss/dialtone-tokens.d.cts.map +1 -0
  17. package/dist/tokens/types/themes/config.d.ts +2 -0
  18. package/dist/tokens/{themes/types → types}/themes/config.d.ts.map +1 -1
  19. package/dist/tokens/{themes/types → types}/themes/dp-dark.d.ts.map +1 -1
  20. package/dist/tokens/{themes/types → types}/themes/dp-light.d.ts.map +1 -1
  21. package/dist/tokens/types/themes/expressive-dark.d.ts.map +1 -0
  22. package/dist/tokens/types/themes/expressive-light.d.ts.map +1 -0
  23. package/dist/tokens/types/themes/expressive-sm-dark.d.ts.map +1 -0
  24. package/dist/tokens/types/themes/expressive-sm-light.d.ts.map +1 -0
  25. package/dist/tokens/{themes/types → types}/themes/tmo-dark.d.ts.map +1 -1
  26. package/dist/tokens/{themes/types → types}/themes/tmo-light.d.ts.map +1 -1
  27. package/dist/vue2/components/emoji_picker/emoji_picker.vue.cjs +3 -7
  28. package/dist/vue2/components/emoji_picker/emoji_picker.vue.cjs.map +1 -1
  29. package/dist/vue2/components/emoji_picker/emoji_picker.vue.js +3 -7
  30. package/dist/vue2/components/emoji_picker/emoji_picker.vue.js.map +1 -1
  31. package/dist/vue2/components/emoji_picker/modules/emoji_selector.vue.cjs +6 -20
  32. package/dist/vue2/components/emoji_picker/modules/emoji_selector.vue.cjs.map +1 -1
  33. package/dist/vue2/components/emoji_picker/modules/emoji_selector.vue.js +6 -20
  34. package/dist/vue2/components/emoji_picker/modules/emoji_selector.vue.js.map +1 -1
  35. package/dist/vue2/components/emoji_picker/modules/emoji_tabset.vue.cjs +5 -9
  36. package/dist/vue2/components/emoji_picker/modules/emoji_tabset.vue.cjs.map +1 -1
  37. package/dist/vue2/components/emoji_picker/modules/emoji_tabset.vue.js +5 -9
  38. package/dist/vue2/components/emoji_picker/modules/emoji_tabset.vue.js.map +1 -1
  39. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.cjs +31 -0
  40. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
  41. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.js +31 -0
  42. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
  43. package/dist/vue2/types/common/dates/index.d.ts +0 -44
  44. package/dist/vue2/types/common/dates/index.d.ts.map +1 -1
  45. package/dist/vue2/types/common/emoji/index.d.ts +0 -3
  46. package/dist/vue2/types/common/emoji/index.d.ts.map +1 -1
  47. package/dist/vue2/types/common/mixins/dom.d.ts +0 -8
  48. package/dist/vue2/types/common/mixins/dom.d.ts.map +1 -1
  49. package/dist/vue2/types/common/mixins/index.d.ts +3 -3
  50. package/dist/vue2/types/common/mixins/input.d.ts +2 -6
  51. package/dist/vue2/types/common/mixins/input.d.ts.map +1 -1
  52. package/dist/vue2/types/common/mixins/input_group.d.ts +2 -2
  53. package/dist/vue2/types/common/mixins/modal.d.ts +0 -32
  54. package/dist/vue2/types/common/mixins/modal.d.ts.map +1 -1
  55. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +2 -10
  56. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  57. package/dist/vue2/types/common/utils/index.d.ts +0 -66
  58. package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
  59. package/dist/vue2/types/components/avatar/avatar.vue.d.ts +4 -138
  60. package/dist/vue2/types/components/avatar/avatar.vue.d.ts.map +1 -1
  61. package/dist/vue2/types/components/avatar/index.d.ts +2 -2
  62. package/dist/vue2/types/components/badge/badge.vue.d.ts +7 -73
  63. package/dist/vue2/types/components/badge/badge.vue.d.ts.map +1 -1
  64. package/dist/vue2/types/components/badge/index.d.ts +2 -2
  65. package/dist/vue2/types/components/banner/banner.vue.d.ts +2 -106
  66. package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
  67. package/dist/vue2/types/components/banner/index.d.ts +1 -1
  68. package/dist/vue2/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +2 -20
  69. package/dist/vue2/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
  70. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +2 -22
  71. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  72. package/dist/vue2/types/components/breadcrumbs/index.d.ts +3 -3
  73. package/dist/vue2/types/components/button/button.vue.d.ts +4 -156
  74. package/dist/vue2/types/components/button/button.vue.d.ts.map +1 -1
  75. package/dist/vue2/types/components/button/index.d.ts +2 -2
  76. package/dist/vue2/types/components/button_group/button_group.vue.d.ts +2 -8
  77. package/dist/vue2/types/components/button_group/button_group.vue.d.ts.map +1 -1
  78. package/dist/vue2/types/components/button_group/index.d.ts +2 -2
  79. package/dist/vue2/types/components/card/card.vue.d.ts +2 -34
  80. package/dist/vue2/types/components/card/card.vue.d.ts.map +1 -1
  81. package/dist/vue2/types/components/card/index.d.ts +1 -1
  82. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts +5 -10
  83. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  84. package/dist/vue2/types/components/checkbox/index.d.ts +1 -1
  85. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts +9 -47
  86. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  87. package/dist/vue2/types/components/checkbox_group/index.d.ts +1 -1
  88. package/dist/vue2/types/components/chip/chip.vue.d.ts +3 -61
  89. package/dist/vue2/types/components/chip/chip.vue.d.ts.map +1 -1
  90. package/dist/vue2/types/components/chip/index.d.ts +2 -2
  91. package/dist/vue2/types/components/codeblock/codeblock.vue.d.ts +2 -2
  92. package/dist/vue2/types/components/codeblock/codeblock.vue.d.ts.map +1 -1
  93. package/dist/vue2/types/components/codeblock/index.d.ts +1 -1
  94. package/dist/vue2/types/components/collapsible/collapsible.vue.d.ts +3 -85
  95. package/dist/vue2/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
  96. package/dist/vue2/types/components/collapsible/collapsible_lazy_show.vue.d.ts +2 -44
  97. package/dist/vue2/types/components/collapsible/collapsible_lazy_show.vue.d.ts.map +1 -1
  98. package/dist/vue2/types/components/collapsible/index.d.ts +1 -1
  99. package/dist/vue2/types/components/combobox/combobox.vue.d.ts +4 -118
  100. package/dist/vue2/types/components/combobox/combobox.vue.d.ts.map +1 -1
  101. package/dist/vue2/types/components/combobox/combobox_empty-list.vue.d.ts +2 -18
  102. package/dist/vue2/types/components/combobox/combobox_empty-list.vue.d.ts.map +1 -1
  103. package/dist/vue2/types/components/combobox/combobox_loading-list.vue.d.ts +1 -1
  104. package/dist/vue2/types/components/combobox/combobox_loading-list.vue.d.ts.map +1 -1
  105. package/dist/vue2/types/components/combobox/index.d.ts +2 -2
  106. package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts +1 -1
  107. package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
  108. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts +0 -5
  109. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  110. package/dist/vue2/types/components/datepicker/formatUtils.d.ts +0 -36
  111. package/dist/vue2/types/components/datepicker/formatUtils.d.ts.map +1 -1
  112. package/dist/vue2/types/components/datepicker/index.d.ts +2 -2
  113. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +2 -2
  114. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  115. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +2 -2
  116. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  117. package/dist/vue2/types/components/description_list/description_list.vue.d.ts +2 -36
  118. package/dist/vue2/types/components/description_list/description_list.vue.d.ts.map +1 -1
  119. package/dist/vue2/types/components/description_list/index.d.ts +2 -2
  120. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +28 -196
  121. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  122. package/dist/vue2/types/components/dropdown/dropdown_separator.vue.d.ts +1 -1
  123. package/dist/vue2/types/components/dropdown/dropdown_separator.vue.d.ts.map +1 -1
  124. package/dist/vue2/types/components/dropdown/index.d.ts +3 -3
  125. package/dist/vue2/types/components/emoji/emoji.vue.d.ts +2 -52
  126. package/dist/vue2/types/components/emoji/emoji.vue.d.ts.map +1 -1
  127. package/dist/vue2/types/components/emoji/index.d.ts +1 -1
  128. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -1
  129. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -1
  130. package/dist/vue2/types/components/emoji_picker/index.d.ts +2 -2
  131. package/dist/vue2/types/components/emoji_picker/modules/emoji_description.vue.d.ts +2 -12
  132. package/dist/vue2/types/components/emoji_picker/modules/emoji_description.vue.d.ts.map +1 -1
  133. package/dist/vue2/types/components/emoji_picker/modules/emoji_search.vue.d.ts +2 -2
  134. package/dist/vue2/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
  135. package/dist/vue2/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +2 -2
  136. package/dist/vue2/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
  137. package/dist/vue2/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts +2 -2
  138. package/dist/vue2/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +1 -1
  139. package/dist/vue2/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +1 -1
  140. package/dist/vue2/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
  141. package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +2 -28
  142. package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  143. package/dist/vue2/types/components/emoji_text_wrapper/index.d.ts +1 -1
  144. package/dist/vue2/types/components/empty_state/empty_state.vue.d.ts +1 -1
  145. package/dist/vue2/types/components/empty_state/empty_state.vue.d.ts.map +1 -1
  146. package/dist/vue2/types/components/empty_state/index.d.ts +2 -2
  147. package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts +1 -1
  148. package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
  149. package/dist/vue2/types/components/hovercard/index.d.ts +1 -1
  150. package/dist/vue2/types/components/icon/icon.vue.d.ts +2 -22
  151. package/dist/vue2/types/components/icon/icon.vue.d.ts.map +1 -1
  152. package/dist/vue2/types/components/icon/index.d.ts +2 -2
  153. package/dist/vue2/types/components/illustration/illustration.vue.d.ts +2 -8
  154. package/dist/vue2/types/components/illustration/illustration.vue.d.ts.map +1 -1
  155. package/dist/vue2/types/components/illustration/index.d.ts +2 -2
  156. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +2 -58
  157. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  158. package/dist/vue2/types/components/image_viewer/index.d.ts +1 -1
  159. package/dist/vue2/types/components/input/index.d.ts +2 -2
  160. package/dist/vue2/types/components/input/input.vue.d.ts +3 -119
  161. package/dist/vue2/types/components/input/input.vue.d.ts.map +1 -1
  162. package/dist/vue2/types/components/input_group/index.d.ts +1 -1
  163. package/dist/vue2/types/components/input_group/input_group.vue.d.ts +8 -37
  164. package/dist/vue2/types/components/input_group/input_group.vue.d.ts.map +1 -1
  165. package/dist/vue2/types/components/item_layout/index.d.ts +1 -1
  166. package/dist/vue2/types/components/item_layout/item_layout.vue.d.ts +2 -16
  167. package/dist/vue2/types/components/item_layout/item_layout.vue.d.ts.map +1 -1
  168. package/dist/vue2/types/components/keyboard_shortcut/index.d.ts +2 -2
  169. package/dist/vue2/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +2 -24
  170. package/dist/vue2/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
  171. package/dist/vue2/types/components/lazy_show/index.d.ts +1 -1
  172. package/dist/vue2/types/components/lazy_show/lazy_show.vue.d.ts +2 -30
  173. package/dist/vue2/types/components/lazy_show/lazy_show.vue.d.ts.map +1 -1
  174. package/dist/vue2/types/components/link/index.d.ts +2 -2
  175. package/dist/vue2/types/components/link/link.vue.d.ts +2 -20
  176. package/dist/vue2/types/components/link/link.vue.d.ts.map +1 -1
  177. package/dist/vue2/types/components/list_item/index.d.ts +2 -2
  178. package/dist/vue2/types/components/list_item/list_item.vue.d.ts +5 -58
  179. package/dist/vue2/types/components/list_item/list_item.vue.d.ts.map +1 -1
  180. package/dist/vue2/types/components/list_item_group/index.d.ts +1 -1
  181. package/dist/vue2/types/components/list_item_group/list_item_group.vue.d.ts +2 -26
  182. package/dist/vue2/types/components/list_item_group/list_item_group.vue.d.ts.map +1 -1
  183. package/dist/vue2/types/components/modal/index.d.ts +2 -2
  184. package/dist/vue2/types/components/modal/modal.vue.d.ts +3 -160
  185. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  186. package/dist/vue2/types/components/notice/index.d.ts +5 -5
  187. package/dist/vue2/types/components/notice/notice.vue.d.ts +2 -94
  188. package/dist/vue2/types/components/notice/notice.vue.d.ts.map +1 -1
  189. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +3 -28
  190. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  191. package/dist/vue2/types/components/notice/notice_content.vue.d.ts +2 -24
  192. package/dist/vue2/types/components/notice/notice_content.vue.d.ts.map +1 -1
  193. package/dist/vue2/types/components/notice/notice_icon.vue.d.ts +2 -10
  194. package/dist/vue2/types/components/notice/notice_icon.vue.d.ts.map +1 -1
  195. package/dist/vue2/types/components/pagination/index.d.ts +1 -1
  196. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +2 -48
  197. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  198. package/dist/vue2/types/components/popover/index.d.ts +2 -2
  199. package/dist/vue2/types/components/popover/popover.vue.d.ts +2 -2
  200. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  201. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +2 -24
  202. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  203. package/dist/vue2/types/components/popover/tippy_utils.d.ts +2 -2
  204. package/dist/vue2/types/components/presence/index.d.ts +2 -2
  205. package/dist/vue2/types/components/presence/presence.vue.d.ts +2 -22
  206. package/dist/vue2/types/components/presence/presence.vue.d.ts.map +1 -1
  207. package/dist/vue2/types/components/radio/index.d.ts +2 -2
  208. package/dist/vue2/types/components/radio/radio.vue.d.ts +4 -10
  209. package/dist/vue2/types/components/radio/radio.vue.d.ts.map +1 -1
  210. package/dist/vue2/types/components/radio_group/index.d.ts +1 -1
  211. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts +8 -39
  212. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts.map +1 -1
  213. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +18 -18
  214. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
  215. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts +2 -2
  216. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts.map +1 -1
  217. package/dist/vue2/types/components/rich_text_editor/extensions/channels/channel.d.ts +1 -1
  218. package/dist/vue2/types/components/rich_text_editor/extensions/custom_link/autolink.d.ts +1 -4
  219. package/dist/vue2/types/components/rich_text_editor/extensions/custom_link/autolink.d.ts.map +1 -1
  220. package/dist/vue2/types/components/rich_text_editor/extensions/custom_link/custom_link.d.ts +1 -1
  221. package/dist/vue2/types/components/rich_text_editor/extensions/custom_link/index.d.ts +1 -1
  222. package/dist/vue2/types/components/rich_text_editor/extensions/custom_link/utils.d.ts +0 -28
  223. package/dist/vue2/types/components/rich_text_editor/extensions/custom_link/utils.d.ts.map +1 -1
  224. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +18 -18
  225. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts.map +1 -1
  226. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +2 -2
  227. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts.map +1 -1
  228. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/emoji.d.ts +1 -1
  229. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/index.d.ts +2 -2
  230. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +18 -18
  231. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
  232. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +2 -2
  233. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  234. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/mention.d.ts +1 -1
  235. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +18 -18
  236. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts.map +1 -1
  237. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +2 -2
  238. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts.map +1 -1
  239. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  240. package/dist/vue2/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +2 -2
  241. package/dist/vue2/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
  242. package/dist/vue2/types/components/rich_text_editor/index.d.ts +2 -2
  243. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -245
  244. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  245. package/dist/vue2/types/components/root_layout/index.d.ts +2 -2
  246. package/dist/vue2/types/components/root_layout/root_layout.vue.d.ts +2 -80
  247. package/dist/vue2/types/components/root_layout/root_layout.vue.d.ts.map +1 -1
  248. package/dist/vue2/types/components/select_menu/index.d.ts +2 -2
  249. package/dist/vue2/types/components/select_menu/select_menu.vue.d.ts +3 -97
  250. package/dist/vue2/types/components/select_menu/select_menu.vue.d.ts.map +1 -1
  251. package/dist/vue2/types/components/skeleton/index.d.ts +6 -6
  252. package/dist/vue2/types/components/skeleton/skeleton-list-item.vue.d.ts +2 -68
  253. package/dist/vue2/types/components/skeleton/skeleton-list-item.vue.d.ts.map +1 -1
  254. package/dist/vue2/types/components/skeleton/skeleton-paragraph.vue.d.ts +2 -76
  255. package/dist/vue2/types/components/skeleton/skeleton-paragraph.vue.d.ts.map +1 -1
  256. package/dist/vue2/types/components/skeleton/skeleton-shape.vue.d.ts +2 -54
  257. package/dist/vue2/types/components/skeleton/skeleton-shape.vue.d.ts.map +1 -1
  258. package/dist/vue2/types/components/skeleton/skeleton-text.vue.d.ts +3 -66
  259. package/dist/vue2/types/components/skeleton/skeleton-text.vue.d.ts.map +1 -1
  260. package/dist/vue2/types/components/skeleton/skeleton.vue.d.ts +2 -70
  261. package/dist/vue2/types/components/skeleton/skeleton.vue.d.ts.map +1 -1
  262. package/dist/vue2/types/components/split_button/index.d.ts +2 -2
  263. package/dist/vue2/types/components/split_button/split_button-alpha.vue.d.ts +4 -74
  264. package/dist/vue2/types/components/split_button/split_button-alpha.vue.d.ts.map +1 -1
  265. package/dist/vue2/types/components/split_button/split_button-omega.vue.d.ts +4 -54
  266. package/dist/vue2/types/components/split_button/split_button-omega.vue.d.ts.map +1 -1
  267. package/dist/vue2/types/components/split_button/split_button.vue.d.ts +4 -150
  268. package/dist/vue2/types/components/split_button/split_button.vue.d.ts.map +1 -1
  269. package/dist/vue2/types/components/stack/index.d.ts +2 -2
  270. package/dist/vue2/types/components/stack/stack.vue.d.ts +1 -1
  271. package/dist/vue2/types/components/stack/stack.vue.d.ts.map +1 -1
  272. package/dist/vue2/types/components/tabs/index.d.ts +4 -4
  273. package/dist/vue2/types/components/tabs/tab.vue.d.ts +3 -43
  274. package/dist/vue2/types/components/tabs/tab.vue.d.ts.map +1 -1
  275. package/dist/vue2/types/components/tabs/tab_group.vue.d.ts +3 -59
  276. package/dist/vue2/types/components/tabs/tab_group.vue.d.ts.map +1 -1
  277. package/dist/vue2/types/components/tabs/tab_panel.vue.d.ts +2 -28
  278. package/dist/vue2/types/components/tabs/tab_panel.vue.d.ts.map +1 -1
  279. package/dist/vue2/types/components/toast/index.d.ts +2 -2
  280. package/dist/vue2/types/components/toast/toast.vue.d.ts +3 -111
  281. package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
  282. package/dist/vue2/types/components/toggle/index.d.ts +2 -2
  283. package/dist/vue2/types/components/toggle/toggle.vue.d.ts +5 -67
  284. package/dist/vue2/types/components/toggle/toggle.vue.d.ts.map +1 -1
  285. package/dist/vue2/types/components/tooltip/index.d.ts +2 -2
  286. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +6 -212
  287. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  288. package/dist/vue2/types/components/validation_messages/index.d.ts +1 -1
  289. package/dist/vue2/types/components/validation_messages/validation_messages.vue.d.ts +3 -24
  290. package/dist/vue2/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  291. package/dist/vue2/types/directives/scrollbar/index.d.ts +1 -1
  292. package/dist/vue2/types/directives/tooltip/index.d.ts +1 -1
  293. package/dist/vue2/types/index.d.ts +80 -80
  294. package/dist/vue2/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -82
  295. package/dist/vue2/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
  296. package/dist/vue2/types/recipes/buttons/callbar_button/index.d.ts +2 -2
  297. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +5 -149
  298. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  299. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/index.d.ts +1 -1
  300. package/dist/vue2/types/recipes/cards/ivr_node/index.d.ts +2 -2
  301. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +2 -32
  302. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  303. package/dist/vue2/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +1 -1
  304. package/dist/vue2/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
  305. package/dist/vue2/types/recipes/chips/grouped_chip/index.d.ts +1 -1
  306. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +2 -2
  307. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
  308. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/index.d.ts +2 -2
  309. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -167
  310. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  311. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/index.d.ts +1 -1
  312. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +2 -20
  313. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  314. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/index.d.ts +1 -1
  315. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -2
  316. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  317. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
  318. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +1 -1
  319. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +4 -178
  320. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  321. package/dist/vue2/types/recipes/conversation_view/editor/index.d.ts +1 -1
  322. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -8
  323. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  324. package/dist/vue2/types/recipes/conversation_view/emoji_row/index.d.ts +2 -2
  325. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +2 -68
  326. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  327. package/dist/vue2/types/recipes/conversation_view/feed_item_row/index.d.ts +2 -2
  328. package/dist/vue2/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +2 -40
  329. package/dist/vue2/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +1 -1
  330. package/dist/vue2/types/recipes/conversation_view/feed_pill/index.d.ts +2 -2
  331. package/dist/vue2/types/recipes/conversation_view/message_input/index.d.ts +1 -1
  332. package/dist/vue2/types/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.d.ts +18 -18
  333. package/dist/vue2/types/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  334. package/dist/vue2/types/recipes/conversation_view/message_input/meeting_pill/meeting_pill.d.ts +1 -1
  335. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -249
  336. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  337. package/dist/vue2/types/recipes/conversation_view/time_pill/index.d.ts +1 -1
  338. package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts +2 -16
  339. package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts.map +1 -1
  340. package/dist/vue2/types/recipes/header/settings_menu_button/index.d.ts +1 -1
  341. package/dist/vue2/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +2 -18
  342. package/dist/vue2/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
  343. package/dist/vue2/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +4 -90
  344. package/dist/vue2/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
  345. package/dist/vue2/types/recipes/item_layout/contact_info/index.d.ts +1 -1
  346. package/dist/vue2/types/recipes/leftbar/callbox/callbox.vue.d.ts +2 -66
  347. package/dist/vue2/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
  348. package/dist/vue2/types/recipes/leftbar/callbox/index.d.ts +2 -2
  349. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -38
  350. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  351. package/dist/vue2/types/recipes/leftbar/contact_centers_row/index.d.ts +1 -1
  352. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +2 -110
  353. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  354. package/dist/vue2/types/recipes/leftbar/contact_row/index.d.ts +1 -1
  355. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -125
  356. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  357. package/dist/vue2/types/recipes/leftbar/general_row/index.d.ts +2 -2
  358. package/dist/vue2/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +2 -2
  359. package/dist/vue2/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts.map +1 -1
  360. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +2 -46
  361. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  362. package/dist/vue2/types/recipes/leftbar/group_row/index.d.ts +1 -1
  363. package/dist/vue2/types/recipes/leftbar/unread_pill/index.d.ts +2 -2
  364. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -18
  365. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  366. package/dist/vue2/types/recipes/notices/top_banner_info/index.d.ts +2 -2
  367. package/dist/vue2/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts +2 -8
  368. package/dist/vue2/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +1 -1
  369. package/dist/vue3/common/sr_only_close_button.vue.cjs.map +1 -1
  370. package/dist/vue3/common/sr_only_close_button.vue.js.map +1 -1
  371. package/dist/vue3/components/avatar/avatar.vue.cjs.map +1 -1
  372. package/dist/vue3/components/avatar/avatar.vue.js.map +1 -1
  373. package/dist/vue3/components/badge/badge.vue.cjs.map +1 -1
  374. package/dist/vue3/components/badge/badge.vue.js.map +1 -1
  375. package/dist/vue3/components/banner/banner.vue.cjs.map +1 -1
  376. package/dist/vue3/components/banner/banner.vue.js.map +1 -1
  377. package/dist/vue3/components/breadcrumbs/breadcrumb_item.vue.cjs.map +1 -1
  378. package/dist/vue3/components/breadcrumbs/breadcrumb_item.vue.js.map +1 -1
  379. package/dist/vue3/components/breadcrumbs/breadcrumbs.vue.cjs.map +1 -1
  380. package/dist/vue3/components/breadcrumbs/breadcrumbs.vue.js.map +1 -1
  381. package/dist/vue3/components/button/button.vue.cjs.map +1 -1
  382. package/dist/vue3/components/button/button.vue.js.map +1 -1
  383. package/dist/vue3/components/button_group/button_group.vue.cjs.map +1 -1
  384. package/dist/vue3/components/button_group/button_group.vue.js.map +1 -1
  385. package/dist/vue3/components/card/card.vue.cjs.map +1 -1
  386. package/dist/vue3/components/card/card.vue.js.map +1 -1
  387. package/dist/vue3/components/checkbox/checkbox.vue.cjs.map +1 -1
  388. package/dist/vue3/components/checkbox/checkbox.vue.js.map +1 -1
  389. package/dist/vue3/components/chip/chip.vue.cjs.map +1 -1
  390. package/dist/vue3/components/chip/chip.vue.js.map +1 -1
  391. package/dist/vue3/components/codeblock/codeblock.vue.cjs.map +1 -1
  392. package/dist/vue3/components/codeblock/codeblock.vue.js.map +1 -1
  393. package/dist/vue3/components/collapsible/collapsible.vue.cjs.map +1 -1
  394. package/dist/vue3/components/collapsible/collapsible.vue.js.map +1 -1
  395. package/dist/vue3/components/collapsible/collapsible_lazy_show.vue.cjs.map +1 -1
  396. package/dist/vue3/components/collapsible/collapsible_lazy_show.vue.js.map +1 -1
  397. package/dist/vue3/components/combobox/combobox.vue.cjs.map +1 -1
  398. package/dist/vue3/components/combobox/combobox.vue.js.map +1 -1
  399. package/dist/vue3/components/combobox/combobox_empty-list.vue.cjs.map +1 -1
  400. package/dist/vue3/components/combobox/combobox_empty-list.vue.js.map +1 -1
  401. package/dist/vue3/components/combobox/combobox_loading-list.vue.cjs.map +1 -1
  402. package/dist/vue3/components/combobox/combobox_loading-list.vue.js.map +1 -1
  403. package/dist/vue3/components/description_list/description_list.vue.cjs.map +1 -1
  404. package/dist/vue3/components/description_list/description_list.vue.js.map +1 -1
  405. package/dist/vue3/components/dropdown/dropdown.vue.cjs.map +1 -1
  406. package/dist/vue3/components/dropdown/dropdown.vue.js.map +1 -1
  407. package/dist/vue3/components/emoji/emoji.vue.cjs.map +1 -1
  408. package/dist/vue3/components/emoji/emoji.vue.js.map +1 -1
  409. package/dist/vue3/components/emoji_picker/emoji_picker.vue.cjs +1 -7
  410. package/dist/vue3/components/emoji_picker/emoji_picker.vue.cjs.map +1 -1
  411. package/dist/vue3/components/emoji_picker/emoji_picker.vue.js +1 -7
  412. package/dist/vue3/components/emoji_picker/emoji_picker.vue.js.map +1 -1
  413. package/dist/vue3/components/emoji_picker/modules/emoji_selector.vue.cjs +2 -22
  414. package/dist/vue3/components/emoji_picker/modules/emoji_selector.vue.cjs.map +1 -1
  415. package/dist/vue3/components/emoji_picker/modules/emoji_selector.vue.js +2 -22
  416. package/dist/vue3/components/emoji_picker/modules/emoji_selector.vue.js.map +1 -1
  417. package/dist/vue3/components/emoji_picker/modules/emoji_tabset.vue.cjs +5 -10
  418. package/dist/vue3/components/emoji_picker/modules/emoji_tabset.vue.cjs.map +1 -1
  419. package/dist/vue3/components/emoji_picker/modules/emoji_tabset.vue.js +6 -11
  420. package/dist/vue3/components/emoji_picker/modules/emoji_tabset.vue.js.map +1 -1
  421. package/dist/vue3/components/icon/icon.vue.cjs.map +1 -1
  422. package/dist/vue3/components/icon/icon.vue.js.map +1 -1
  423. package/dist/vue3/components/image_viewer/image_viewer.vue.cjs.map +1 -1
  424. package/dist/vue3/components/image_viewer/image_viewer.vue.js.map +1 -1
  425. package/dist/vue3/components/input/input.vue.cjs.map +1 -1
  426. package/dist/vue3/components/input/input.vue.js.map +1 -1
  427. package/dist/vue3/components/input_group/input_group.vue.cjs.map +1 -1
  428. package/dist/vue3/components/input_group/input_group.vue.js.map +1 -1
  429. package/dist/vue3/components/item_layout/item_layout.vue.cjs.map +1 -1
  430. package/dist/vue3/components/item_layout/item_layout.vue.js.map +1 -1
  431. package/dist/vue3/components/keyboard_shortcut/keyboard_shortcut.vue.cjs.map +1 -1
  432. package/dist/vue3/components/keyboard_shortcut/keyboard_shortcut.vue.js.map +1 -1
  433. package/dist/vue3/components/lazy_show/lazy_show.vue.cjs.map +1 -1
  434. package/dist/vue3/components/lazy_show/lazy_show.vue.js.map +1 -1
  435. package/dist/vue3/components/link/link.vue.cjs.map +1 -1
  436. package/dist/vue3/components/link/link.vue.js.map +1 -1
  437. package/dist/vue3/components/list_item/list_item.vue.cjs.map +1 -1
  438. package/dist/vue3/components/list_item/list_item.vue.js.map +1 -1
  439. package/dist/vue3/components/list_item_group/list_item_group.vue.cjs.map +1 -1
  440. package/dist/vue3/components/list_item_group/list_item_group.vue.js.map +1 -1
  441. package/dist/vue3/components/modal/modal.vue.cjs.map +1 -1
  442. package/dist/vue3/components/modal/modal.vue.js.map +1 -1
  443. package/dist/vue3/components/notice/notice.vue.cjs.map +1 -1
  444. package/dist/vue3/components/notice/notice.vue.js.map +1 -1
  445. package/dist/vue3/components/notice/notice_action.vue.cjs.map +1 -1
  446. package/dist/vue3/components/notice/notice_action.vue.js.map +1 -1
  447. package/dist/vue3/components/notice/notice_content.vue.cjs.map +1 -1
  448. package/dist/vue3/components/notice/notice_content.vue.js.map +1 -1
  449. package/dist/vue3/components/notice/notice_icon.vue.cjs.map +1 -1
  450. package/dist/vue3/components/notice/notice_icon.vue.js.map +1 -1
  451. package/dist/vue3/components/pagination/pagination.vue.cjs.map +1 -1
  452. package/dist/vue3/components/pagination/pagination.vue.js.map +1 -1
  453. package/dist/vue3/components/popover/popover.vue.cjs.map +1 -1
  454. package/dist/vue3/components/popover/popover.vue.js.map +1 -1
  455. package/dist/vue3/components/popover/popover_header_footer.vue.cjs.map +1 -1
  456. package/dist/vue3/components/popover/popover_header_footer.vue.js.map +1 -1
  457. package/dist/vue3/components/presence/presence.vue.cjs.map +1 -1
  458. package/dist/vue3/components/presence/presence.vue.js.map +1 -1
  459. package/dist/vue3/components/radio/radio.vue.cjs.map +1 -1
  460. package/dist/vue3/components/radio/radio.vue.js.map +1 -1
  461. package/dist/vue3/components/rich_text_editor/extensions/channels/ChannelComponent.vue.cjs.map +1 -1
  462. package/dist/vue3/components/rich_text_editor/extensions/channels/ChannelComponent.vue.js.map +1 -1
  463. package/dist/vue3/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.cjs.map +1 -1
  464. package/dist/vue3/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.js.map +1 -1
  465. package/dist/vue3/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.cjs.map +1 -1
  466. package/dist/vue3/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.js.map +1 -1
  467. package/dist/vue3/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.cjs.map +1 -1
  468. package/dist/vue3/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.js.map +1 -1
  469. package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionComponent.vue.cjs.map +1 -1
  470. package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionComponent.vue.js.map +1 -1
  471. package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.cjs.map +1 -1
  472. package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.js.map +1 -1
  473. package/dist/vue3/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.cjs.map +1 -1
  474. package/dist/vue3/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.js.map +1 -1
  475. package/dist/vue3/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.cjs.map +1 -1
  476. package/dist/vue3/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.js.map +1 -1
  477. package/dist/vue3/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.cjs.map +1 -1
  478. package/dist/vue3/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.js.map +1 -1
  479. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.cjs +31 -0
  480. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
  481. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.js +31 -0
  482. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
  483. package/dist/vue3/components/root_layout/root_layout.vue.cjs.map +1 -1
  484. package/dist/vue3/components/root_layout/root_layout.vue.js.map +1 -1
  485. package/dist/vue3/components/scroller/modules/dynamic_scroller.vue.cjs.map +1 -1
  486. package/dist/vue3/components/scroller/modules/dynamic_scroller.vue.js.map +1 -1
  487. package/dist/vue3/components/select_menu/select_menu.vue.cjs.map +1 -1
  488. package/dist/vue3/components/select_menu/select_menu.vue.js.map +1 -1
  489. package/dist/vue3/components/skeleton/skeleton-list-item.vue.cjs.map +1 -1
  490. package/dist/vue3/components/skeleton/skeleton-list-item.vue.js.map +1 -1
  491. package/dist/vue3/components/skeleton/skeleton-paragraph.vue.cjs.map +1 -1
  492. package/dist/vue3/components/skeleton/skeleton-paragraph.vue.js.map +1 -1
  493. package/dist/vue3/components/skeleton/skeleton-shape.vue.cjs.map +1 -1
  494. package/dist/vue3/components/skeleton/skeleton-shape.vue.js.map +1 -1
  495. package/dist/vue3/components/skeleton/skeleton-text.vue.cjs.map +1 -1
  496. package/dist/vue3/components/skeleton/skeleton-text.vue.js.map +1 -1
  497. package/dist/vue3/components/skeleton/skeleton.vue.cjs.map +1 -1
  498. package/dist/vue3/components/skeleton/skeleton.vue.js.map +1 -1
  499. package/dist/vue3/components/split_button/split_button-alpha.vue.cjs.map +1 -1
  500. package/dist/vue3/components/split_button/split_button-alpha.vue.js.map +1 -1
  501. package/dist/vue3/components/split_button/split_button-omega.vue.cjs.map +1 -1
  502. package/dist/vue3/components/split_button/split_button-omega.vue.js.map +1 -1
  503. package/dist/vue3/components/split_button/split_button.vue.cjs.map +1 -1
  504. package/dist/vue3/components/split_button/split_button.vue.js.map +1 -1
  505. package/dist/vue3/components/stack/stack.vue.cjs.map +1 -1
  506. package/dist/vue3/components/stack/stack.vue.js.map +1 -1
  507. package/dist/vue3/components/tabs/tab.vue.cjs.map +1 -1
  508. package/dist/vue3/components/tabs/tab.vue.js.map +1 -1
  509. package/dist/vue3/components/tabs/tab_group.vue.cjs.map +1 -1
  510. package/dist/vue3/components/tabs/tab_group.vue.js.map +1 -1
  511. package/dist/vue3/components/tabs/tab_panel.vue.cjs.map +1 -1
  512. package/dist/vue3/components/tabs/tab_panel.vue.js.map +1 -1
  513. package/dist/vue3/components/toast/toast.vue.cjs.map +1 -1
  514. package/dist/vue3/components/toast/toast.vue.js.map +1 -1
  515. package/dist/vue3/components/toggle/toggle.vue.cjs.map +1 -1
  516. package/dist/vue3/components/toggle/toggle.vue.js.map +1 -1
  517. package/dist/vue3/components/tooltip/tooltip.vue.cjs.map +1 -1
  518. package/dist/vue3/components/tooltip/tooltip.vue.js.map +1 -1
  519. package/dist/vue3/components/validation_messages/validation_messages.vue.cjs.map +1 -1
  520. package/dist/vue3/components/validation_messages/validation_messages.vue.js.map +1 -1
  521. package/dist/vue3/recipes/buttons/callbar_button/callbar_button.vue.cjs.map +1 -1
  522. package/dist/vue3/recipes/buttons/callbar_button/callbar_button.vue.js.map +1 -1
  523. package/dist/vue3/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.cjs.map +1 -1
  524. package/dist/vue3/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.js.map +1 -1
  525. package/dist/vue3/recipes/cards/ivr_node/ivr_node.vue.cjs.map +1 -1
  526. package/dist/vue3/recipes/cards/ivr_node/ivr_node.vue.js.map +1 -1
  527. package/dist/vue3/recipes/chips/grouped_chip/grouped_chip.vue.cjs.map +1 -1
  528. package/dist/vue3/recipes/chips/grouped_chip/grouped_chip.vue.js.map +1 -1
  529. package/dist/vue3/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.cjs.map +1 -1
  530. package/dist/vue3/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.js.map +1 -1
  531. package/dist/vue3/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.cjs.map +1 -1
  532. package/dist/vue3/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.js.map +1 -1
  533. package/dist/vue3/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.cjs.map +1 -1
  534. package/dist/vue3/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.js.map +1 -1
  535. package/dist/vue3/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.cjs.map +1 -1
  536. package/dist/vue3/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.js.map +1 -1
  537. package/dist/vue3/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.cjs.map +1 -1
  538. package/dist/vue3/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.js.map +1 -1
  539. package/dist/vue3/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
  540. package/dist/vue3/recipes/conversation_view/editor/editor.vue.js.map +1 -1
  541. package/dist/vue3/recipes/conversation_view/emoji_row/emoji_row.vue.cjs.map +1 -1
  542. package/dist/vue3/recipes/conversation_view/emoji_row/emoji_row.vue.js.map +1 -1
  543. package/dist/vue3/recipes/conversation_view/feed_item_row/feed_item_row.vue.cjs.map +1 -1
  544. package/dist/vue3/recipes/conversation_view/feed_item_row/feed_item_row.vue.js.map +1 -1
  545. package/dist/vue3/recipes/conversation_view/feed_pill/feed_item_pill.vue.cjs.map +1 -1
  546. package/dist/vue3/recipes/conversation_view/feed_pill/feed_item_pill.vue.js.map +1 -1
  547. package/dist/vue3/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.cjs.map +1 -1
  548. package/dist/vue3/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.js.map +1 -1
  549. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
  550. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
  551. package/dist/vue3/recipes/conversation_view/time_pill/time_pill.vue.cjs.map +1 -1
  552. package/dist/vue3/recipes/conversation_view/time_pill/time_pill.vue.js.map +1 -1
  553. package/dist/vue3/recipes/header/settings_menu_button/settings_menu_button.vue.cjs.map +1 -1
  554. package/dist/vue3/recipes/header/settings_menu_button/settings_menu_button.vue.js.map +1 -1
  555. package/dist/vue3/recipes/item_layout/contact_info/contact_info.vue.cjs.map +1 -1
  556. package/dist/vue3/recipes/item_layout/contact_info/contact_info.vue.js.map +1 -1
  557. package/dist/vue3/recipes/leftbar/callbox/callbox.vue.cjs.map +1 -1
  558. package/dist/vue3/recipes/leftbar/callbox/callbox.vue.js.map +1 -1
  559. package/dist/vue3/recipes/leftbar/contact_centers_row/contact_centers_row.vue.cjs.map +1 -1
  560. package/dist/vue3/recipes/leftbar/contact_centers_row/contact_centers_row.vue.js.map +1 -1
  561. package/dist/vue3/recipes/leftbar/contact_row/contact_row.vue.cjs.map +1 -1
  562. package/dist/vue3/recipes/leftbar/contact_row/contact_row.vue.js.map +1 -1
  563. package/dist/vue3/recipes/leftbar/general_row/general_row.vue.cjs.map +1 -1
  564. package/dist/vue3/recipes/leftbar/general_row/general_row.vue.js.map +1 -1
  565. package/dist/vue3/recipes/leftbar/general_row/leftbar_general_row_icon.vue.cjs.map +1 -1
  566. package/dist/vue3/recipes/leftbar/general_row/leftbar_general_row_icon.vue.js.map +1 -1
  567. package/dist/vue3/recipes/leftbar/group_row/group_row.vue.cjs.map +1 -1
  568. package/dist/vue3/recipes/leftbar/group_row/group_row.vue.js.map +1 -1
  569. package/dist/vue3/recipes/leftbar/unread_pill/unread_pill.vue.cjs.map +1 -1
  570. package/dist/vue3/recipes/leftbar/unread_pill/unread_pill.vue.js.map +1 -1
  571. package/dist/vue3/recipes/notices/top_banner_info/top_banner_info.vue.cjs.map +1 -1
  572. package/dist/vue3/recipes/notices/top_banner_info/top_banner_info.vue.js.map +1 -1
  573. package/dist/vue3/types/common/dates/index.d.ts +0 -44
  574. package/dist/vue3/types/common/dates/index.d.ts.map +1 -1
  575. package/dist/vue3/types/common/emoji/index.d.ts +0 -3
  576. package/dist/vue3/types/common/emoji/index.d.ts.map +1 -1
  577. package/dist/vue3/types/common/mixins/dom.d.ts +0 -8
  578. package/dist/vue3/types/common/mixins/dom.d.ts.map +1 -1
  579. package/dist/vue3/types/common/mixins/index.d.ts +3 -3
  580. package/dist/vue3/types/common/mixins/input.d.ts +2 -6
  581. package/dist/vue3/types/common/mixins/input.d.ts.map +1 -1
  582. package/dist/vue3/types/common/mixins/input_group.d.ts +2 -2
  583. package/dist/vue3/types/common/mixins/modal.d.ts +0 -32
  584. package/dist/vue3/types/common/mixins/modal.d.ts.map +1 -1
  585. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +2 -10
  586. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  587. package/dist/vue3/types/common/utils/index.d.ts +1 -67
  588. package/dist/vue3/types/common/utils/index.d.ts.map +1 -1
  589. package/dist/vue3/types/components/avatar/avatar.vue.d.ts +5 -139
  590. package/dist/vue3/types/components/avatar/avatar.vue.d.ts.map +1 -1
  591. package/dist/vue3/types/components/avatar/index.d.ts +2 -2
  592. package/dist/vue3/types/components/badge/badge.vue.d.ts +4 -71
  593. package/dist/vue3/types/components/badge/badge.vue.d.ts.map +1 -1
  594. package/dist/vue3/types/components/badge/index.d.ts +2 -2
  595. package/dist/vue3/types/components/banner/banner.vue.d.ts +2 -106
  596. package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
  597. package/dist/vue3/types/components/banner/index.d.ts +1 -1
  598. package/dist/vue3/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +2 -20
  599. package/dist/vue3/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
  600. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +2 -22
  601. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  602. package/dist/vue3/types/components/breadcrumbs/index.d.ts +3 -3
  603. package/dist/vue3/types/components/button/button.vue.d.ts +5 -157
  604. package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
  605. package/dist/vue3/types/components/button/index.d.ts +2 -2
  606. package/dist/vue3/types/components/button_group/button_group.vue.d.ts +2 -8
  607. package/dist/vue3/types/components/button_group/button_group.vue.d.ts.map +1 -1
  608. package/dist/vue3/types/components/button_group/index.d.ts +2 -2
  609. package/dist/vue3/types/components/card/card.vue.d.ts +3 -35
  610. package/dist/vue3/types/components/card/card.vue.d.ts.map +1 -1
  611. package/dist/vue3/types/components/card/index.d.ts +1 -1
  612. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts +4 -4
  613. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  614. package/dist/vue3/types/components/checkbox/index.d.ts +1 -1
  615. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts +12 -54
  616. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  617. package/dist/vue3/types/components/checkbox_group/index.d.ts +1 -1
  618. package/dist/vue3/types/components/chip/chip.vue.d.ts +4 -62
  619. package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
  620. package/dist/vue3/types/components/chip/index.d.ts +2 -2
  621. package/dist/vue3/types/components/codeblock/codeblock.vue.d.ts +2 -2
  622. package/dist/vue3/types/components/codeblock/codeblock.vue.d.ts.map +1 -1
  623. package/dist/vue3/types/components/codeblock/index.d.ts +1 -1
  624. package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts +3 -85
  625. package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
  626. package/dist/vue3/types/components/collapsible/collapsible_lazy_show.vue.d.ts +2 -44
  627. package/dist/vue3/types/components/collapsible/collapsible_lazy_show.vue.d.ts.map +1 -1
  628. package/dist/vue3/types/components/collapsible/index.d.ts +1 -1
  629. package/dist/vue3/types/components/combobox/combobox.vue.d.ts +7 -125
  630. package/dist/vue3/types/components/combobox/combobox.vue.d.ts.map +1 -1
  631. package/dist/vue3/types/components/combobox/combobox_empty-list.vue.d.ts +2 -18
  632. package/dist/vue3/types/components/combobox/combobox_empty-list.vue.d.ts.map +1 -1
  633. package/dist/vue3/types/components/combobox/combobox_loading-list.vue.d.ts +1 -1
  634. package/dist/vue3/types/components/combobox/combobox_loading-list.vue.d.ts.map +1 -1
  635. package/dist/vue3/types/components/combobox/index.d.ts +2 -2
  636. package/dist/vue3/types/components/datepicker/composables/useCalendar.d.ts +2 -2
  637. package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts +3 -3
  638. package/dist/vue3/types/components/datepicker/datepicker.vue.d.ts +2 -2
  639. package/dist/vue3/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
  640. package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts +0 -5
  641. package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  642. package/dist/vue3/types/components/datepicker/index.d.ts +2 -2
  643. package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts +2 -2
  644. package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  645. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts +2 -2
  646. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  647. package/dist/vue3/types/components/description_list/description_list.vue.d.ts +2 -36
  648. package/dist/vue3/types/components/description_list/description_list.vue.d.ts.map +1 -1
  649. package/dist/vue3/types/components/description_list/index.d.ts +2 -2
  650. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +29 -200
  651. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  652. package/dist/vue3/types/components/dropdown/dropdown_separator.vue.d.ts +1 -1
  653. package/dist/vue3/types/components/dropdown/dropdown_separator.vue.d.ts.map +1 -1
  654. package/dist/vue3/types/components/dropdown/index.d.ts +3 -3
  655. package/dist/vue3/types/components/emoji/emoji.vue.d.ts +2 -52
  656. package/dist/vue3/types/components/emoji/emoji.vue.d.ts.map +1 -1
  657. package/dist/vue3/types/components/emoji/index.d.ts +1 -1
  658. package/dist/vue3/types/components/emoji_picker/composables/useKeyboardNavigation.d.ts +3 -3
  659. package/dist/vue3/types/components/emoji_picker/emoji_picker.vue.d.ts +2 -2
  660. package/dist/vue3/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -1
  661. package/dist/vue3/types/components/emoji_picker/index.d.ts +2 -2
  662. package/dist/vue3/types/components/emoji_picker/modules/emoji_description.vue.d.ts +2 -2
  663. package/dist/vue3/types/components/emoji_picker/modules/emoji_description.vue.d.ts.map +1 -1
  664. package/dist/vue3/types/components/emoji_picker/modules/emoji_search.vue.d.ts +2 -2
  665. package/dist/vue3/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
  666. package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +3 -3
  667. package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
  668. package/dist/vue3/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts +2 -2
  669. package/dist/vue3/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +1 -1
  670. package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +2 -2
  671. package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
  672. package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +2 -28
  673. package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  674. package/dist/vue3/types/components/emoji_text_wrapper/index.d.ts +1 -1
  675. package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts +2 -2
  676. package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts.map +1 -1
  677. package/dist/vue3/types/components/empty_state/index.d.ts +2 -2
  678. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +2 -2
  679. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
  680. package/dist/vue3/types/components/hovercard/index.d.ts +1 -1
  681. package/dist/vue3/types/components/icon/icon.vue.d.ts +2 -22
  682. package/dist/vue3/types/components/icon/icon.vue.d.ts.map +1 -1
  683. package/dist/vue3/types/components/icon/index.d.ts +2 -2
  684. package/dist/vue3/types/components/illustration/illustration.vue.d.ts +2 -2
  685. package/dist/vue3/types/components/illustration/illustration.vue.d.ts.map +1 -1
  686. package/dist/vue3/types/components/illustration/index.d.ts +2 -2
  687. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +2 -58
  688. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  689. package/dist/vue3/types/components/image_viewer/index.d.ts +1 -1
  690. package/dist/vue3/types/components/input/index.d.ts +2 -2
  691. package/dist/vue3/types/components/input/input.vue.d.ts +5 -121
  692. package/dist/vue3/types/components/input/input.vue.d.ts.map +1 -1
  693. package/dist/vue3/types/components/input_group/index.d.ts +1 -1
  694. package/dist/vue3/types/components/input_group/input_group.vue.d.ts +7 -29
  695. package/dist/vue3/types/components/input_group/input_group.vue.d.ts.map +1 -1
  696. package/dist/vue3/types/components/item_layout/index.d.ts +1 -1
  697. package/dist/vue3/types/components/item_layout/item_layout.vue.d.ts +3 -17
  698. package/dist/vue3/types/components/item_layout/item_layout.vue.d.ts.map +1 -1
  699. package/dist/vue3/types/components/keyboard_shortcut/index.d.ts +2 -2
  700. package/dist/vue3/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +16 -38
  701. package/dist/vue3/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
  702. package/dist/vue3/types/components/lazy_show/index.d.ts +1 -1
  703. package/dist/vue3/types/components/lazy_show/lazy_show.vue.d.ts +3 -31
  704. package/dist/vue3/types/components/lazy_show/lazy_show.vue.d.ts.map +1 -1
  705. package/dist/vue3/types/components/link/index.d.ts +2 -2
  706. package/dist/vue3/types/components/link/link.vue.d.ts +2 -20
  707. package/dist/vue3/types/components/link/link.vue.d.ts.map +1 -1
  708. package/dist/vue3/types/components/list_item/index.d.ts +2 -2
  709. package/dist/vue3/types/components/list_item/list_item.vue.d.ts +6 -59
  710. package/dist/vue3/types/components/list_item/list_item.vue.d.ts.map +1 -1
  711. package/dist/vue3/types/components/list_item_group/index.d.ts +1 -1
  712. package/dist/vue3/types/components/list_item_group/list_item_group.vue.d.ts +2 -26
  713. package/dist/vue3/types/components/list_item_group/list_item_group.vue.d.ts.map +1 -1
  714. package/dist/vue3/types/components/modal/index.d.ts +2 -2
  715. package/dist/vue3/types/components/modal/modal.vue.d.ts +3 -157
  716. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  717. package/dist/vue3/types/components/notice/index.d.ts +5 -5
  718. package/dist/vue3/types/components/notice/notice.vue.d.ts +2 -94
  719. package/dist/vue3/types/components/notice/notice.vue.d.ts.map +1 -1
  720. package/dist/vue3/types/components/notice/notice_action.vue.d.ts +3 -28
  721. package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
  722. package/dist/vue3/types/components/notice/notice_content.vue.d.ts +3 -25
  723. package/dist/vue3/types/components/notice/notice_content.vue.d.ts.map +1 -1
  724. package/dist/vue3/types/components/notice/notice_icon.vue.d.ts +5 -13
  725. package/dist/vue3/types/components/notice/notice_icon.vue.d.ts.map +1 -1
  726. package/dist/vue3/types/components/pagination/index.d.ts +1 -1
  727. package/dist/vue3/types/components/pagination/pagination.vue.d.ts +2 -48
  728. package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
  729. package/dist/vue3/types/components/popover/index.d.ts +2 -2
  730. package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
  731. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +3 -25
  732. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  733. package/dist/vue3/types/components/popover/tippy_utils.d.ts +2 -2
  734. package/dist/vue3/types/components/presence/index.d.ts +2 -2
  735. package/dist/vue3/types/components/presence/presence.vue.d.ts +2 -22
  736. package/dist/vue3/types/components/presence/presence.vue.d.ts.map +1 -1
  737. package/dist/vue3/types/components/radio/index.d.ts +2 -2
  738. package/dist/vue3/types/components/radio/radio.vue.d.ts +5 -11
  739. package/dist/vue3/types/components/radio/radio.vue.d.ts.map +1 -1
  740. package/dist/vue3/types/components/radio_group/index.d.ts +1 -1
  741. package/dist/vue3/types/components/radio_group/radio_group.vue.d.ts +10 -40
  742. package/dist/vue3/types/components/radio_group/radio_group.vue.d.ts.map +1 -1
  743. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +18 -18
  744. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
  745. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts +2 -2
  746. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts.map +1 -1
  747. package/dist/vue3/types/components/rich_text_editor/extensions/channels/channel.d.ts +1 -1
  748. package/dist/vue3/types/components/rich_text_editor/extensions/custom_link/autolink.d.ts +1 -4
  749. package/dist/vue3/types/components/rich_text_editor/extensions/custom_link/autolink.d.ts.map +1 -1
  750. package/dist/vue3/types/components/rich_text_editor/extensions/custom_link/custom_link.d.ts +1 -1
  751. package/dist/vue3/types/components/rich_text_editor/extensions/custom_link/index.d.ts +1 -1
  752. package/dist/vue3/types/components/rich_text_editor/extensions/custom_link/utils.d.ts +0 -28
  753. package/dist/vue3/types/components/rich_text_editor/extensions/custom_link/utils.d.ts.map +1 -1
  754. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +18 -18
  755. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts.map +1 -1
  756. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +2 -2
  757. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts.map +1 -1
  758. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/emoji.d.ts +1 -1
  759. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/index.d.ts +2 -2
  760. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +18 -18
  761. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
  762. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +2 -2
  763. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  764. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/mention.d.ts +1 -1
  765. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +18 -18
  766. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts.map +1 -1
  767. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +2 -2
  768. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts.map +1 -1
  769. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  770. package/dist/vue3/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +2 -2
  771. package/dist/vue3/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
  772. package/dist/vue3/types/components/rich_text_editor/index.d.ts +2 -2
  773. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -245
  774. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  775. package/dist/vue3/types/components/root_layout/index.d.ts +2 -2
  776. package/dist/vue3/types/components/root_layout/root_layout.vue.d.ts +2 -86
  777. package/dist/vue3/types/components/root_layout/root_layout.vue.d.ts.map +1 -1
  778. package/dist/vue3/types/components/scroller/DtScroller.vue.d.ts +2 -2
  779. package/dist/vue3/types/components/scroller/DtScroller.vue.d.ts.map +1 -1
  780. package/dist/vue3/types/components/scroller/index.d.ts +1 -1
  781. package/dist/vue3/types/components/scroller/modules/core_scroller.vue.d.ts +4 -4
  782. package/dist/vue3/types/components/scroller/modules/core_scroller.vue.d.ts.map +1 -1
  783. package/dist/vue3/types/components/scroller/modules/dynamic_scroller.vue.d.ts +2 -2
  784. package/dist/vue3/types/components/scroller/modules/dynamic_scroller.vue.d.ts.map +1 -1
  785. package/dist/vue3/types/components/scroller/modules/scroller_item.vue.d.ts +3 -9
  786. package/dist/vue3/types/components/scroller/modules/scroller_item.vue.d.ts.map +1 -1
  787. package/dist/vue3/types/components/select_menu/index.d.ts +2 -2
  788. package/dist/vue3/types/components/select_menu/select_menu.vue.d.ts +5 -91
  789. package/dist/vue3/types/components/select_menu/select_menu.vue.d.ts.map +1 -1
  790. package/dist/vue3/types/components/skeleton/index.d.ts +6 -6
  791. package/dist/vue3/types/components/skeleton/skeleton-list-item.vue.d.ts +2 -68
  792. package/dist/vue3/types/components/skeleton/skeleton-list-item.vue.d.ts.map +1 -1
  793. package/dist/vue3/types/components/skeleton/skeleton-paragraph.vue.d.ts +2 -76
  794. package/dist/vue3/types/components/skeleton/skeleton-paragraph.vue.d.ts.map +1 -1
  795. package/dist/vue3/types/components/skeleton/skeleton-shape.vue.d.ts +2 -54
  796. package/dist/vue3/types/components/skeleton/skeleton-shape.vue.d.ts.map +1 -1
  797. package/dist/vue3/types/components/skeleton/skeleton-text.vue.d.ts +3 -66
  798. package/dist/vue3/types/components/skeleton/skeleton-text.vue.d.ts.map +1 -1
  799. package/dist/vue3/types/components/skeleton/skeleton.vue.d.ts +2 -70
  800. package/dist/vue3/types/components/skeleton/skeleton.vue.d.ts.map +1 -1
  801. package/dist/vue3/types/components/split_button/index.d.ts +2 -2
  802. package/dist/vue3/types/components/split_button/split_button-alpha.vue.d.ts +5 -75
  803. package/dist/vue3/types/components/split_button/split_button-alpha.vue.d.ts.map +1 -1
  804. package/dist/vue3/types/components/split_button/split_button-omega.vue.d.ts +5 -55
  805. package/dist/vue3/types/components/split_button/split_button-omega.vue.d.ts.map +1 -1
  806. package/dist/vue3/types/components/split_button/split_button.vue.d.ts +3 -149
  807. package/dist/vue3/types/components/split_button/split_button.vue.d.ts.map +1 -1
  808. package/dist/vue3/types/components/stack/index.d.ts +2 -2
  809. package/dist/vue3/types/components/stack/stack.vue.d.ts.map +1 -1
  810. package/dist/vue3/types/components/tabs/index.d.ts +4 -4
  811. package/dist/vue3/types/components/tabs/tab.vue.d.ts +2 -42
  812. package/dist/vue3/types/components/tabs/tab.vue.d.ts.map +1 -1
  813. package/dist/vue3/types/components/tabs/tab_group.vue.d.ts +3 -59
  814. package/dist/vue3/types/components/tabs/tab_group.vue.d.ts.map +1 -1
  815. package/dist/vue3/types/components/tabs/tab_panel.vue.d.ts +2 -28
  816. package/dist/vue3/types/components/tabs/tab_panel.vue.d.ts.map +1 -1
  817. package/dist/vue3/types/components/toast/index.d.ts +2 -2
  818. package/dist/vue3/types/components/toast/toast.vue.d.ts +3 -111
  819. package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
  820. package/dist/vue3/types/components/toggle/index.d.ts +2 -2
  821. package/dist/vue3/types/components/toggle/toggle.vue.d.ts +6 -68
  822. package/dist/vue3/types/components/toggle/toggle.vue.d.ts.map +1 -1
  823. package/dist/vue3/types/components/tooltip/index.d.ts +2 -2
  824. package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +5 -205
  825. package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  826. package/dist/vue3/types/components/validation_messages/index.d.ts +1 -1
  827. package/dist/vue3/types/components/validation_messages/validation_messages.vue.d.ts +3 -24
  828. package/dist/vue3/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  829. package/dist/vue3/types/directives/scrollbar/index.d.ts +1 -1
  830. package/dist/vue3/types/directives/tooltip/index.d.ts +1 -1
  831. package/dist/vue3/types/index.d.ts +81 -81
  832. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -82
  833. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
  834. package/dist/vue3/types/recipes/buttons/callbar_button/index.d.ts +2 -2
  835. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +5 -165
  836. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  837. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/index.d.ts +1 -1
  838. package/dist/vue3/types/recipes/cards/ivr_node/index.d.ts +2 -2
  839. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +4 -34
  840. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  841. package/dist/vue3/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +3 -3
  842. package/dist/vue3/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
  843. package/dist/vue3/types/recipes/chips/grouped_chip/index.d.ts +1 -1
  844. package/dist/vue3/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
  845. package/dist/vue3/types/recipes/comboboxes/combobox_multi_select/index.d.ts +2 -2
  846. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +5 -167
  847. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  848. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/index.d.ts +1 -1
  849. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +2 -20
  850. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  851. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/index.d.ts +1 -1
  852. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -2
  853. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  854. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
  855. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +1 -1
  856. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +20 -194
  857. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  858. package/dist/vue3/types/recipes/conversation_view/editor/index.d.ts +1 -1
  859. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -8
  860. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  861. package/dist/vue3/types/recipes/conversation_view/emoji_row/index.d.ts +2 -2
  862. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +3 -69
  863. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  864. package/dist/vue3/types/recipes/conversation_view/feed_item_row/index.d.ts +2 -2
  865. package/dist/vue3/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +4 -42
  866. package/dist/vue3/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +1 -1
  867. package/dist/vue3/types/recipes/conversation_view/feed_pill/index.d.ts +2 -2
  868. package/dist/vue3/types/recipes/conversation_view/message_input/index.d.ts +1 -1
  869. package/dist/vue3/types/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.d.ts +18 -18
  870. package/dist/vue3/types/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  871. package/dist/vue3/types/recipes/conversation_view/message_input/meeting_pill/meeting_pill.d.ts +1 -1
  872. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +7 -251
  873. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  874. package/dist/vue3/types/recipes/conversation_view/time_pill/index.d.ts +1 -1
  875. package/dist/vue3/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts +2 -16
  876. package/dist/vue3/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts.map +1 -1
  877. package/dist/vue3/types/recipes/header/settings_menu_button/index.d.ts +1 -1
  878. package/dist/vue3/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +2 -18
  879. package/dist/vue3/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
  880. package/dist/vue3/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +3 -89
  881. package/dist/vue3/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
  882. package/dist/vue3/types/recipes/item_layout/contact_info/index.d.ts +1 -1
  883. package/dist/vue3/types/recipes/leftbar/callbox/callbox.vue.d.ts +2 -66
  884. package/dist/vue3/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
  885. package/dist/vue3/types/recipes/leftbar/callbox/index.d.ts +2 -2
  886. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -38
  887. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  888. package/dist/vue3/types/recipes/leftbar/contact_centers_row/index.d.ts +1 -1
  889. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +2 -110
  890. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  891. package/dist/vue3/types/recipes/leftbar/contact_row/index.d.ts +1 -1
  892. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -125
  893. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  894. package/dist/vue3/types/recipes/leftbar/general_row/index.d.ts +2 -2
  895. package/dist/vue3/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +4 -4
  896. package/dist/vue3/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts.map +1 -1
  897. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +2 -46
  898. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  899. package/dist/vue3/types/recipes/leftbar/group_row/index.d.ts +1 -1
  900. package/dist/vue3/types/recipes/leftbar/unread_pill/index.d.ts +2 -2
  901. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -18
  902. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  903. package/dist/vue3/types/recipes/notices/top_banner_info/index.d.ts +2 -2
  904. package/dist/vue3/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts +2 -8
  905. package/dist/vue3/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +1 -1
  906. package/package.json +59 -20
  907. package/dist/tokens/themes/types/themes/config.d.ts +0 -2
  908. package/dist/tokens/themes/types/themes/expressive-dark.d.ts.map +0 -1
  909. package/dist/tokens/themes/types/themes/expressive-light.d.ts.map +0 -1
  910. package/dist/tokens/themes/types/themes/expressive-sm-dark.d.ts.map +0 -1
  911. package/dist/tokens/themes/types/themes/expressive-sm-light.d.ts.map +0 -1
  912. package/dist/vue2/component-documentation.json +0 -1
  913. package/dist/vue2/types/components/button_group/buttons_decorator.vue.d.ts +0 -3
  914. package/dist/vue2/types/components/button_group/buttons_decorator.vue.d.ts.map +0 -1
  915. package/dist/vue2/types/components/checkbox_group/checkboxes_decorator.vue.d.ts +0 -3
  916. package/dist/vue2/types/components/checkbox_group/checkboxes_decorator.vue.d.ts.map +0 -1
  917. package/dist/vue2/types/components/dropdown/dropdown_list.vue.d.ts +0 -36
  918. package/dist/vue2/types/components/dropdown/dropdown_list.vue.d.ts.map +0 -1
  919. package/dist/vue2/types/components/input_group/decorators/input.vue.d.ts +0 -102
  920. package/dist/vue2/types/components/input_group/decorators/input.vue.d.ts.map +0 -1
  921. package/dist/vue2/types/components/input_group/decorators/inputs.vue.d.ts +0 -3
  922. package/dist/vue2/types/components/input_group/decorators/inputs.vue.d.ts.map +0 -1
  923. package/dist/vue2/types/components/radio_group/radios_decorator.vue.d.ts +0 -3
  924. package/dist/vue2/types/components/radio_group/radios_decorator.vue.d.ts.map +0 -1
  925. package/dist/vue3/types/components/button_group/buttons_decorator.vue.d.ts +0 -3
  926. package/dist/vue3/types/components/button_group/buttons_decorator.vue.d.ts.map +0 -1
  927. package/dist/vue3/types/components/checkbox_group/checkboxes_decorator.vue.d.ts +0 -3
  928. package/dist/vue3/types/components/checkbox_group/checkboxes_decorator.vue.d.ts.map +0 -1
  929. package/dist/vue3/types/components/dropdown/dropdown_list.vue.d.ts +0 -36
  930. package/dist/vue3/types/components/dropdown/dropdown_list.vue.d.ts.map +0 -1
  931. package/dist/vue3/types/components/input_group/decorators/input.vue.d.ts +0 -104
  932. package/dist/vue3/types/components/input_group/decorators/input.vue.d.ts.map +0 -1
  933. package/dist/vue3/types/components/input_group/decorators/inputs.vue.d.ts +0 -3
  934. package/dist/vue3/types/components/input_group/decorators/inputs.vue.d.ts.map +0 -1
  935. package/dist/vue3/types/components/radio_group/radios_decorator.vue.d.ts +0 -3
  936. package/dist/vue3/types/components/radio_group/radios_decorator.vue.d.ts.map +0 -1
  937. /package/dist/tokens/{themes/types → types}/themes/dp-dark.d.ts +0 -0
  938. /package/dist/tokens/{themes/types → types}/themes/dp-light.d.ts +0 -0
  939. /package/dist/tokens/{themes/types → types}/themes/expressive-dark.d.ts +0 -0
  940. /package/dist/tokens/{themes/types → types}/themes/expressive-light.d.ts +0 -0
  941. /package/dist/tokens/{themes/types → types}/themes/expressive-sm-dark.d.ts +0 -0
  942. /package/dist/tokens/{themes/types → types}/themes/expressive-sm-light.d.ts +0 -0
  943. /package/dist/tokens/{themes/types → types}/themes/tmo-dark.d.ts +0 -0
  944. /package/dist/tokens/{themes/types → types}/themes/tmo-light.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"SlashCommandComponent.vue.js","sources":["../../../../../components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <node-view-wrapper\n class=\"d-d-inline-block\"\n >\n {{ text }}\n </node-view-wrapper>\n</template>\n\n<script>\nimport { nodeViewProps, NodeViewWrapper } from '@tiptap/vue-3';\n\nexport default {\n name: 'SlashCommandsComponent',\n components: {\n NodeViewWrapper,\n },\n\n props: nodeViewProps,\n\n emits: ['selected-command'],\n\n computed: {\n text () {\n return '/' + this.$props.node.attrs.command;\n },\n },\n\n created () {\n this.$parent.$emit('selected-command', this.$props.node.attrs.command);\n },\n};\n</script>\n"],"names":["_createBlock"],"mappings":";;;AAYA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,EACD;AAAA,EAED,OAAO;AAAA,EAEP,OAAO,CAAC,kBAAkB;AAAA,EAE1B,UAAU;AAAA,IACR,OAAQ;AACN,aAAO,MAAM,KAAK,OAAO,KAAK,MAAM;AAAA,IACrC;AAAA,EACF;AAAA,EAED,UAAW;AACT,SAAK,QAAQ,MAAM,oBAAoB,KAAK,OAAO,KAAK,MAAM,OAAO;AAAA,EACtE;AACH;;;sBA7BEA,YAIoB,8BAAA,EAHlB,OAAM,sBAAkB;AAAA,qBAExB,MAAU;AAAA,sCAAP,SAAI,IAAA,GAAA,CAAA;AAAA;;;;;"}
1
+ {"version":3,"file":"SlashCommandComponent.vue.js","sources":["../../../../../components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <node-view-wrapper\n class=\"d-d-inline-block\"\n >\n {{ text }}\n </node-view-wrapper>\n</template>\n\n<script>\nimport { nodeViewProps, NodeViewWrapper } from '@tiptap/vue-3';\n\nexport default {\n name: 'SlashCommandsComponent',\n components: {\n NodeViewWrapper,\n },\n\n props: nodeViewProps,\n\n emits: ['selected-command'],\n\n computed: {\n text () {\n return '/' + this.$props.node.attrs.command;\n },\n },\n\n created () {\n this.$parent.$emit('selected-command', this.$props.node.attrs.command);\n },\n};\n</script>\n"],"names":["_createBlock","_withCtx","_createTextVNode","_toDisplayString"],"mappings":";;;AAYA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,EACD;AAAA,EAED,OAAO;AAAA,EAEP,OAAO,CAAC,kBAAkB;AAAA,EAE1B,UAAU;AAAA,IACR,OAAQ;AACN,aAAO,MAAM,KAAK,OAAO,KAAK,MAAM;AAAA,IACrC;AAAA,EACF;AAAA,EAED,UAAW;AACT,SAAK,QAAQ,MAAM,oBAAoB,KAAK,OAAO,KAAK,MAAM,OAAO;AAAA,EACtE;AACH;;;sBA7BEA,YAIoB,8BAAA,EAHlB,OAAM,sBAAkB;AAAA,IAH5B,SAAAC,QAKI,MAAU;AAAA,MALdC,gBAAAC,gBAKO,SAAI,IAAA,GAAA,CAAA;AAAA;IALX,GAAA;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SlashCommandSuggestion.vue.cjs","sources":["../../../../../components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <div>\n <div class=\"d-body--md-compact\">\n <span>/{{ command }}</span><span v-if=\"parametersExample\"> {{ parametersExample }}</span>\n </div>\n <div class=\"d-body--sm d-fc-tertiary\">\n {{ description }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'SlashCommandSuggestion',\n\n props: {\n item: {\n type: Object,\n required: true,\n },\n },\n\n computed: {\n command () {\n return this.item.command;\n },\n\n description () {\n return this.item.description;\n },\n\n parametersExample () {\n return this.item.parametersExample;\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","_createElementVNode","_toDisplayString","_openBlock"],"mappings":";;;AAaA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,UAAW;AACT,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,cAAe;AACb,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,oBAAqB;AACnB,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,EACF;AACH;AAjCS,MAAA,aAAA,EAAA,OAAM,qBAAoB;;AAG1B,MAAA,aAAA,EAAA,OAAM,2BAA0B;;0BAJvCA,uBAOM,OAAA,MAAA;AAAA,IANJC,IAAA,mBAEM,OAFN,YAEM;AAAA,MADJA,uBAA2B,QAAA,MAArB,MAACC,IAAA,gBAAG,SAAO,OAAA,GAAA,CAAA;AAAA,MAAsB,SAAiB,qBAA7BC,cAAA,GAAAH,IAAA,mBAA8D,wCAA3B,SAAiB,iBAAA,GAAA,CAAA;;IAEjFC,IAEM,mBAAA,OAFN,YAEMC,IAAAA,gBADD,SAAW,WAAA,GAAA,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"SlashCommandSuggestion.vue.cjs","sources":["../../../../../components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <div>\n <div class=\"d-body--md-compact\">\n <span>/{{ command }}</span><span v-if=\"parametersExample\"> {{ parametersExample }}</span>\n </div>\n <div class=\"d-body--sm d-fc-tertiary\">\n {{ description }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'SlashCommandSuggestion',\n\n props: {\n item: {\n type: Object,\n required: true,\n },\n },\n\n computed: {\n command () {\n return this.item.command;\n },\n\n description () {\n return this.item.description;\n },\n\n parametersExample () {\n return this.item.parametersExample;\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","_createElementVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;AAaA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,UAAW;AACT,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,cAAe;AACb,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,oBAAqB;AACnB,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,EACF;AACH;AAjCS,MAAA,aAAA,EAAA,OAAM,qBAAoB;qBAHnC,KAAA,EAAA;AAMS,MAAA,aAAA,EAAA,OAAM,2BAA0B;;0BAJvCA,uBAOM,OAAA,MAAA;AAAA,IANJC,IAAA,mBAEM,OAFN,YAEM;AAAA,MADJA,uBAA2B,QAAA,MAArB,MAACC,IAAA,gBAAG,SAAO,OAAA,GAAA,CAAA;AAAA,MAAsB,SAAiB,sCAA7BF,IAA8D,mBAAA,QAJ/F,gCAIoE,SAAiB,iBAAA,GAAA,CAAA,KAJrFG,IAAA,mBAAA,IAAA,IAAA;AAAA;IAMIF,IAEM,mBAAA,OAFN,YAEMC,IAAAA,gBADD,SAAW,WAAA,GAAA,CAAA;AAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SlashCommandSuggestion.vue.js","sources":["../../../../../components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <div>\n <div class=\"d-body--md-compact\">\n <span>/{{ command }}</span><span v-if=\"parametersExample\"> {{ parametersExample }}</span>\n </div>\n <div class=\"d-body--sm d-fc-tertiary\">\n {{ description }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'SlashCommandSuggestion',\n\n props: {\n item: {\n type: Object,\n required: true,\n },\n },\n\n computed: {\n command () {\n return this.item.command;\n },\n\n description () {\n return this.item.description;\n },\n\n parametersExample () {\n return this.item.parametersExample;\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","_createElementVNode","_toDisplayString","_openBlock"],"mappings":";;AAaA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,UAAW;AACT,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,cAAe;AACb,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,oBAAqB;AACnB,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,EACF;AACH;AAjCS,MAAA,aAAA,EAAA,OAAM,qBAAoB;;AAG1B,MAAA,aAAA,EAAA,OAAM,2BAA0B;;sBAJvCA,mBAOM,OAAA,MAAA;AAAA,IANJC,mBAEM,OAFN,YAEM;AAAA,MADJA,mBAA2B,QAAA,MAArB,MAACC,gBAAG,SAAO,OAAA,GAAA,CAAA;AAAA,MAAsB,SAAiB,qBAA7BC,UAAA,GAAAH,mBAA8D,oCAA3B,SAAiB,iBAAA,GAAA,CAAA;;IAEjFC,mBAEM,OAFN,YAEMC,gBADD,SAAW,WAAA,GAAA,CAAA;AAAA;;;"}
1
+ {"version":3,"file":"SlashCommandSuggestion.vue.js","sources":["../../../../../components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <div>\n <div class=\"d-body--md-compact\">\n <span>/{{ command }}</span><span v-if=\"parametersExample\"> {{ parametersExample }}</span>\n </div>\n <div class=\"d-body--sm d-fc-tertiary\">\n {{ description }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'SlashCommandSuggestion',\n\n props: {\n item: {\n type: Object,\n required: true,\n },\n },\n\n computed: {\n command () {\n return this.item.command;\n },\n\n description () {\n return this.item.description;\n },\n\n parametersExample () {\n return this.item.parametersExample;\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","_createElementVNode","_toDisplayString","_createCommentVNode"],"mappings":";;AAaA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,UAAW;AACT,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,cAAe;AACb,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,IAED,oBAAqB;AACnB,aAAO,KAAK,KAAK;AAAA,IAClB;AAAA,EACF;AACH;AAjCS,MAAA,aAAA,EAAA,OAAM,qBAAoB;qBAHnC,KAAA,EAAA;AAMS,MAAA,aAAA,EAAA,OAAM,2BAA0B;;sBAJvCA,mBAOM,OAAA,MAAA;AAAA,IANJC,mBAEM,OAFN,YAEM;AAAA,MADJA,mBAA2B,QAAA,MAArB,MAACC,gBAAG,SAAO,OAAA,GAAA,CAAA;AAAA,MAAsB,SAAiB,kCAA7BF,mBAA8D,QAJ/F,4BAIoE,SAAiB,iBAAA,GAAA,CAAA,KAJrFG,mBAAA,IAAA,IAAA;AAAA;IAMIF,mBAEM,OAFN,YAEMC,gBADD,SAAW,WAAA,GAAA,CAAA;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionList.vue.cjs","sources":["../../../../../components/rich_text_editor/extensions/suggestion/SuggestionList.vue"],"sourcesContent":["<template>\n <div class=\"d-popover__dialog dt-suggestion-list__container\">\n <ul\n v-show=\"items.length\"\n ref=\"suggestionList\"\n class=\"dt-suggestion-list\"\n >\n <dt-list-item\n v-for=\"(item, index) in items\"\n :key=\"item.id\"\n :class=\"[\n 'dt-suggestion-list--item',\n { 'dt-list-item--highlighted': index === selectedIndex },\n ]\"\n navigation-type=\"arrow-keys\"\n @click=\"selectItem(index)\"\n @keydown.prevent=\"onKeyDown\"\n >\n <component\n :is=\"itemComponent\"\n :item=\"item\"\n />\n </dt-list-item>\n </ul>\n </div>\n</template>\n\n<script>\nimport { DtListItem } from '@/components/list_item';\n\nexport default {\n name: 'SuggestionList',\n components: {\n DtListItem,\n },\n\n props: {\n items: {\n type: Array,\n required: true,\n },\n\n command: {\n type: Function,\n required: true,\n },\n\n itemComponent: {\n type: Object,\n required: true,\n },\n\n itemType: {\n type: String,\n required: true,\n },\n },\n\n data () {\n return {\n selectedIndex: 0,\n };\n },\n\n watch: {\n items () {\n this.selectedIndex = 0;\n },\n },\n\n methods: {\n onKeyDown ({ event }) {\n if (event.key === 'ArrowUp') {\n this.upHandler();\n return true;\n }\n\n if (event.key === 'ArrowDown') {\n this.downHandler();\n return true;\n }\n\n if (event.key === 'Enter' || event.key === 'Tab') {\n this.selectHandler();\n return true;\n }\n\n return false;\n },\n\n upHandler () {\n this.selectedIndex = ((this.selectedIndex + this.items.length) - 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n downHandler () {\n this.selectedIndex = (this.selectedIndex + 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n async scrollActiveElementIntoView () {\n await this.$nextTick();\n const activeElement = this.$refs.suggestionList.querySelector('.dt-list-item--highlighted');\n if (activeElement) {\n activeElement.scrollIntoView({\n behaviour: 'smooth',\n block: 'center',\n });\n }\n },\n\n selectHandler () {\n this.selectItem(this.selectedIndex);\n },\n\n selectItem (index) {\n const item = this.items[index];\n\n switch (this.itemType) {\n case 'emoji':\n this.command(item);\n return;\n case 'mention':\n this.command({ name: item.name, id: item.id, avatarSrc: item.avatarSrc });\n break;\n case 'channel':\n this.command({ name: item.name, id: item.id });\n break;\n case 'slash-command':\n this.command({ command: item.command });\n break;\n }\n },\n },\n};\n</script>\n\n<style>\n.dt-suggestion-list__container {\n max-height: var(--dt-size-875);\n}\n\n.dt-suggestion-list {\n position: relative;\n padding: var(--dt-size-300);\n min-width: var(--dt-size-925);\n max-width: var(--dt-size-975);\n}\n\n.dt-suggestion-list--item {\n border: var(--dt-size-100) solid transparent;\n}\n</style>\n"],"names":["DtListItem","_openBlock","_createElementBlock","_withDirectives","_createElementVNode","_Fragment","_renderList","_createBlock","_normalizeClass","_resolveDynamicComponent","_vShow"],"mappings":";;;;;AA8BA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,gBACVA;AAAAA,EACD;AAAA,EAED,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,eAAe;AAAA,MACb,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,OAAQ;AACN,WAAO;AAAA,MACL,eAAe;AAAA;EAElB;AAAA,EAED,OAAO;AAAA,IACL,QAAS;AACP,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACF;AAAA,EAED,SAAS;AAAA,IACP,UAAW,EAAE,SAAS;AACpB,UAAI,MAAM,QAAQ,WAAW;AAC3B,aAAK,UAAS;AACd,eAAO;AAAA,MACT;AAEA,UAAI,MAAM,QAAQ,aAAa;AAC7B,aAAK,YAAW;AAChB,eAAO;AAAA,MACT;AAEA,UAAI,MAAM,QAAQ,WAAW,MAAM,QAAQ,OAAO;AAChD,aAAK,cAAa;AAClB,eAAO;AAAA,MACT;AAEA,aAAO;AAAA,IACR;AAAA,IAED,YAAa;AACX,WAAK,iBAAkB,KAAK,gBAAgB,KAAK,MAAM,SAAU,KAAK,KAAK,MAAM;AAEjF,WAAK,4BAA2B;AAAA,IACjC;AAAA,IAED,cAAe;AACb,WAAK,iBAAiB,KAAK,gBAAgB,KAAK,KAAK,MAAM;AAE3D,WAAK,4BAA2B;AAAA,IACjC;AAAA,IAED,MAAM,8BAA+B;AACnC,YAAM,KAAK;AACX,YAAM,gBAAgB,KAAK,MAAM,eAAe,cAAc,4BAA4B;AAC1F,UAAI,eAAe;AACjB,sBAAc,eAAe;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A,MAAA,CAAA;AAAA;;;;;MAjBP,CAAAC,WAAA,OAAA,MAAM,MAAM;AAAA;;;;;"}
1
+ {"version":3,"file":"SuggestionList.vue.cjs","sources":["../../../../../components/rich_text_editor/extensions/suggestion/SuggestionList.vue"],"sourcesContent":["<template>\n <div class=\"d-popover__dialog dt-suggestion-list__container\">\n <ul\n v-show=\"items.length\"\n ref=\"suggestionList\"\n class=\"dt-suggestion-list\"\n >\n <dt-list-item\n v-for=\"(item, index) in items\"\n :key=\"item.id\"\n :class=\"[\n 'dt-suggestion-list--item',\n { 'dt-list-item--highlighted': index === selectedIndex },\n ]\"\n navigation-type=\"arrow-keys\"\n @click=\"selectItem(index)\"\n @keydown.prevent=\"onKeyDown\"\n >\n <component\n :is=\"itemComponent\"\n :item=\"item\"\n />\n </dt-list-item>\n </ul>\n </div>\n</template>\n\n<script>\nimport { DtListItem } from '@/components/list_item';\n\nexport default {\n name: 'SuggestionList',\n components: {\n DtListItem,\n },\n\n props: {\n items: {\n type: Array,\n required: true,\n },\n\n command: {\n type: Function,\n required: true,\n },\n\n itemComponent: {\n type: Object,\n required: true,\n },\n\n itemType: {\n type: String,\n required: true,\n },\n },\n\n data () {\n return {\n selectedIndex: 0,\n };\n },\n\n watch: {\n items () {\n this.selectedIndex = 0;\n },\n },\n\n methods: {\n onKeyDown ({ event }) {\n if (event.key === 'ArrowUp') {\n this.upHandler();\n return true;\n }\n\n if (event.key === 'ArrowDown') {\n this.downHandler();\n return true;\n }\n\n if (event.key === 'Enter' || event.key === 'Tab') {\n this.selectHandler();\n return true;\n }\n\n return false;\n },\n\n upHandler () {\n this.selectedIndex = ((this.selectedIndex + this.items.length) - 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n downHandler () {\n this.selectedIndex = (this.selectedIndex + 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n async scrollActiveElementIntoView () {\n await this.$nextTick();\n const activeElement = this.$refs.suggestionList.querySelector('.dt-list-item--highlighted');\n if (activeElement) {\n activeElement.scrollIntoView({\n behaviour: 'smooth',\n block: 'center',\n });\n }\n },\n\n selectHandler () {\n this.selectItem(this.selectedIndex);\n },\n\n selectItem (index) {\n const item = this.items[index];\n\n switch (this.itemType) {\n case 'emoji':\n this.command(item);\n return;\n case 'mention':\n this.command({ name: item.name, id: item.id, avatarSrc: item.avatarSrc });\n break;\n case 'channel':\n this.command({ name: item.name, id: item.id });\n break;\n case 'slash-command':\n this.command({ command: item.command });\n break;\n }\n },\n },\n};\n</script>\n\n<style>\n.dt-suggestion-list__container {\n max-height: var(--dt-size-875);\n}\n\n.dt-suggestion-list {\n position: relative;\n padding: var(--dt-size-300);\n min-width: var(--dt-size-925);\n max-width: var(--dt-size-975);\n}\n\n.dt-suggestion-list--item {\n border: var(--dt-size-100) solid transparent;\n}\n</style>\n"],"names":["DtListItem","_openBlock","_createElementBlock","_withDirectives","_createElementVNode","_Fragment","_renderList","_createBlock","_normalizeClass","_withModifiers","_withCtx","_resolveDynamicComponent","_vShow"],"mappings":";;;;;AA8BA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,gBACVA;AAAAA,EACD;AAAA,EAED,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,eAAe;AAAA,MACb,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,OAAQ;AACN,WAAO;AAAA,MACL,eAAe;AAAA;EAElB;AAAA,EAED,OAAO;AAAA,IACL,QAAS;AACP,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACF;AAAA,EAED,SAAS;AAAA,IACP,UAAW,EAAE,SAAS;AACpB,UAAI,MAAM,QAAQ,WAAW;AAC3B,aAAK,UAAS;AACd,eAAO;AAA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AuBM,OAvBN,YAuBM;AAAA,IAtBJC,mBAAAC,IAAAA,mBAqBK,MArBL,YAqBK;AAAA,OAhBHH,IAAAA,UAAA,IAAA,GAAAC,IAAA,mBAeeG,oBAtBrBC,IAQgC,WAAA,OAAA,OARhC,CAQgB,MAAM,UAAK;gCADrBC,IAee,YAAA,yBAAA;AAAA,UAbZ,KAAK,KAAK;AAAA,UACV,OAVTC,IAAAA,eAAA;AAAA;YAUiG,EAAA,6BAAA,UAAU,MAAa,cAAA;AAAA;UAIhH,mBAAgB;AAAA,UACf,SAAK,YAAE,SAAU,WAAC,KAAK;AAAA,UACvB,WAhBTC,IAAAA,cAgB0B,SAAS,WAAA,CAAA,SAAA,CAAA;AAAA;UAhBnC,SAAAC,IAAA,QAkBQ,MAGE;AAAA,aAHFT,IAAAA,UAAA,GAAAM,IAAA,YAGEI,4BAFK,OAAA,aAAa,GACjB,EAAA,KAAU,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA;AAAA;UApBrB,GAAA;AAAA;;;MAGc,CAAAC,WAAA,OAAA,MAAM,MAAM;AAAA;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionList.vue.js","sources":["../../../../../components/rich_text_editor/extensions/suggestion/SuggestionList.vue"],"sourcesContent":["<template>\n <div class=\"d-popover__dialog dt-suggestion-list__container\">\n <ul\n v-show=\"items.length\"\n ref=\"suggestionList\"\n class=\"dt-suggestion-list\"\n >\n <dt-list-item\n v-for=\"(item, index) in items\"\n :key=\"item.id\"\n :class=\"[\n 'dt-suggestion-list--item',\n { 'dt-list-item--highlighted': index === selectedIndex },\n ]\"\n navigation-type=\"arrow-keys\"\n @click=\"selectItem(index)\"\n @keydown.prevent=\"onKeyDown\"\n >\n <component\n :is=\"itemComponent\"\n :item=\"item\"\n />\n </dt-list-item>\n </ul>\n </div>\n</template>\n\n<script>\nimport { DtListItem } from '@/components/list_item';\n\nexport default {\n name: 'SuggestionList',\n components: {\n DtListItem,\n },\n\n props: {\n items: {\n type: Array,\n required: true,\n },\n\n command: {\n type: Function,\n required: true,\n },\n\n itemComponent: {\n type: Object,\n required: true,\n },\n\n itemType: {\n type: String,\n required: true,\n },\n },\n\n data () {\n return {\n selectedIndex: 0,\n };\n },\n\n watch: {\n items () {\n this.selectedIndex = 0;\n },\n },\n\n methods: {\n onKeyDown ({ event }) {\n if (event.key === 'ArrowUp') {\n this.upHandler();\n return true;\n }\n\n if (event.key === 'ArrowDown') {\n this.downHandler();\n return true;\n }\n\n if (event.key === 'Enter' || event.key === 'Tab') {\n this.selectHandler();\n return true;\n }\n\n return false;\n },\n\n upHandler () {\n this.selectedIndex = ((this.selectedIndex + this.items.length) - 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n downHandler () {\n this.selectedIndex = (this.selectedIndex + 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n async scrollActiveElementIntoView () {\n await this.$nextTick();\n const activeElement = this.$refs.suggestionList.querySelector('.dt-list-item--highlighted');\n if (activeElement) {\n activeElement.scrollIntoView({\n behaviour: 'smooth',\n block: 'center',\n });\n }\n },\n\n selectHandler () {\n this.selectItem(this.selectedIndex);\n },\n\n selectItem (index) {\n const item = this.items[index];\n\n switch (this.itemType) {\n case 'emoji':\n this.command(item);\n return;\n case 'mention':\n this.command({ name: item.name, id: item.id, avatarSrc: item.avatarSrc });\n break;\n case 'channel':\n this.command({ name: item.name, id: item.id });\n break;\n case 'slash-command':\n this.command({ command: item.command });\n break;\n }\n },\n },\n};\n</script>\n\n<style>\n.dt-suggestion-list__container {\n max-height: var(--dt-size-875);\n}\n\n.dt-suggestion-list {\n position: relative;\n padding: var(--dt-size-300);\n min-width: var(--dt-size-925);\n max-width: var(--dt-size-975);\n}\n\n.dt-suggestion-list--item {\n border: var(--dt-size-100) solid transparent;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_withDirectives","_createElementVNode","_Fragment","_renderList","_createBlock","_normalizeClass","_resolveDynamicComponent","_vShow"],"mappings":";;;;AA8BA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.vue"],"sourcesContent":["<template>\n <div class=\"d-popover__dialog dt-suggestion-list__container\">\n <ul\n v-show=\"items.length\"\n ref=\"suggestionList\"\n class=\"dt-suggestion-list\"\n >\n <dt-list-item\n v-for=\"(item, index) in items\"\n :key=\"item.id\"\n :class=\"[\n 'dt-suggestion-list--item',\n { 'dt-list-item--highlighted': index === selectedIndex },\n ]\"\n navigation-type=\"arrow-keys\"\n @click=\"selectItem(index)\"\n @keydown.prevent=\"onKeyDown\"\n >\n <component\n :is=\"itemComponent\"\n :item=\"item\"\n />\n </dt-list-item>\n </ul>\n </div>\n</template>\n\n<script>\nimport { DtListItem } from '@/components/list_item';\n\nexport default {\n name: 'SuggestionList',\n components: {\n DtListItem,\n },\n\n props: {\n items: {\n type: Array,\n required: true,\n },\n\n command: {\n type: Function,\n required: true,\n },\n\n itemComponent: {\n type: Object,\n required: true,\n },\n\n itemType: {\n type: String,\n required: true,\n },\n },\n\n data () {\n return {\n selectedIndex: 0,\n };\n },\n\n watch: {\n items () {\n this.selectedIndex = 0;\n },\n },\n\n methods: {\n onKeyDown ({ event }) {\n if (event.key === 'ArrowUp') {\n this.upHandler();\n return true;\n }\n\n if (event.key === 'ArrowDown') {\n this.downHandler();\n return true;\n }\n\n if (event.key === 'Enter' || event.key === 'Tab') {\n this.selectHandler();\n return true;\n }\n\n return false;\n },\n\n upHandler () {\n this.selectedIndex = ((this.selectedIndex + this.items.length) - 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n downHandler () {\n this.selectedIndex = (this.selectedIndex + 1) % this.items.length;\n\n this.scrollActiveElementIntoView();\n },\n\n async scrollActiveElementIntoView () {\n await this.$nextTick();\n const activeElement = this.$refs.suggestionList.querySelector('.dt-list-item--highlighted');\n if (activeElement) {\n activeElement.scrollIntoView({\n behaviour: 'smooth',\n block: 'center',\n });\n }\n },\n\n selectHandler () {\n this.selectItem(this.selectedIndex);\n },\n\n selectItem (index) {\n const item = this.items[index];\n\n switch (this.itemType) {\n case 'emoji':\n this.command(item);\n return;\n case 'mention':\n this.command({ name: item.name, id: item.id, avatarSrc: item.avatarSrc });\n break;\n case 'channel':\n this.command({ name: item.name, id: item.id });\n break;\n case 'slash-command':\n this.command({ command: item.command });\n break;\n }\n },\n },\n};\n</script>\n\n<style>\n.dt-suggestion-list__container {\n max-height: var(--dt-size-875);\n}\n\n.dt-suggestion-list {\n position: relative;\n padding: var(--dt-size-300);\n min-width: var(--dt-size-925);\n max-width: var(--dt-size-975);\n}\n\n.dt-suggestion-list--item {\n border: var(--dt-size-100) solid transparent;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_withDirectives","_createElementVNode","_Fragment","_renderList","_createBlock","_normalizeClass","_withModifiers","_withCtx","_resolveDynamicComponent","_vShow"],"mappings":";;;;AA8BA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,EACD;AAAA,EAED,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,eAAe;AAAA,MACb,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EAED,OAAQ;AACN,WAAO;AAAA,MACL,eAAe;AAAA;EAElB;AAAA,EAED,OAAO;AAAA,IACL,QAAS;AACP,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACF;AAAA,EAED,SAAS;AAAA,IACP,UAAW,EAAE,SAAS;AACpB,UAAI,MAAM,QAAQ,WAAW;AAC3B,aAAK,UAAS;AACd,eAAO;AAAA,MACT;AAEA,UAAI,MAAM,QAAQ,aAAa;AAC7B,aAAK,YAAW;AAChB,eAAO;AAAA,MACT;AAEA,UAAI,MAAM,QAAQ,WAAW,MAAM,QAAQ,OAAO;AAChD,aAAK,cAAa;AAClB,eAAO;AAA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Aee,yBAAA;AAAA,UAbZ,KAAK,KAAK;AAAA,UACV,OAVTC,eAAA;AAAA;YAUiG,EAAA,6BAAA,UAAU,MAAa,cAAA;AAAA;UAIhH,mBAAgB;AAAA,UACf,SAAK,YAAE,SAAU,WAAC,KAAK;AAAA,UACvB,WAhBTC,cAgB0B,SAAS,WAAA,CAAA,SAAA,CAAA;AAAA;UAhBnC,SAAAC,QAkBQ,MAGE;AAAA,aAHFT,UAAA,GAAAM,YAGEI,wBAFK,OAAA,aAAa,GACjB,EAAA,KAAU,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA;AAAA;UApBrB,GAAA;AAAA;;;MAGc,CAAAC,OAAA,OAAA,MAAM,MAAM;AAAA;;;;"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  const vue3 = require("@tiptap/vue-3");
3
+ const model = require("@tiptap/pm/model");
3
4
  const Blockquote = require("@tiptap/extension-blockquote");
4
5
  const CodeBlock = require("@tiptap/extension-code-block");
5
6
  const Document = require("@tiptap/extension-document");
@@ -451,6 +452,36 @@ const _sfc_main = {
451
452
  attributes: {
452
453
  ...this.inputAttrs,
453
454
  class: this.inputClass
455
+ },
456
+ /* Absolutely crazy that this is what's needed to paste line breaks properly in prosemirror, but it does seem
457
+ to fix our issue of line breaks outputting as paragraphs. Code taken from this thread:
458
+ https://discuss.prosemirror.net/t/how-to-preserve-hard-breaks-when-pasting-html-into-a-plain-text-schema/4202/4
459
+ */
460
+ handlePaste: function(view, event, slice) {
461
+ var _a;
462
+ const { state } = view;
463
+ const { tr } = state;
464
+ if (!state.schema.nodes.hardBreak) {
465
+ return false;
466
+ }
467
+ const clipboardText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain").trim();
468
+ if (!clipboardText) {
469
+ return false;
470
+ }
471
+ const textLines = clipboardText.split(/(?:\r\n|\r|\n)/g);
472
+ const nodes = textLines.reduce((nodes2, line, index) => {
473
+ if (line.length > 0) {
474
+ nodes2.push(state.schema.text(line));
475
+ }
476
+ if (index < textLines.length - 1) {
477
+ nodes2.push(state.schema.nodes.hardBreak.create());
478
+ }
479
+ return nodes2;
480
+ }, []);
481
+ view.dispatch(
482
+ tr.replaceSelection(model.Slice.maxOpen(model.Fragment.fromArray(nodes))).scrollIntoView()
483
+ );
484
+ return true;
454
485
  }
455
486
  }
456
487
  });
@@ -1 +1 @@
1
- {"version":3,"file":"rich_text_editor.vue.cjs","sources":["../../../components/rich_text_editor/rich_text_editor.vue"],"sourcesContent":["<template>\n <editor-content\n :editor=\"editor\"\n data-qa=\"dt-rich-text-editor\"\n class=\"dt-rich-text-editor\"\n v-bind=\"attrs\"\n />\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { Editor, EditorContent } from '@tiptap/vue-3';\nimport Blockquote from '@tiptap/extension-blockquote';\nimport CodeBlock from '@tiptap/extension-code-block';\nimport Document from '@tiptap/extension-document';\nimport HardBreak from '@tiptap/extension-hard-break';\nimport Paragraph from '@tiptap/extension-paragraph';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport Bold from '@tiptap/extension-bold';\nimport BulletList from '@tiptap/extension-bullet-list';\nimport Italic from '@tiptap/extension-italic';\nimport TipTapLink from '@tiptap/extension-link';\nimport ListItem from '@tiptap/extension-list-item';\nimport OrderedList from '@tiptap/extension-ordered-list';\nimport Strike from '@tiptap/extension-strike';\nimport Underline from '@tiptap/extension-underline';\nimport Text from '@tiptap/extension-text';\nimport TextAlign from '@tiptap/extension-text-align';\nimport History from '@tiptap/extension-history';\nimport Emoji from './extensions/emoji';\nimport CustomLink from './extensions/custom_link';\nimport { MentionPlugin } from './extensions/mentions/mention';\nimport { ChannelPlugin } from './extensions/channels/channel';\nimport { SlashCommandPlugin } from './extensions/slash_command/slash_command';\nimport {\n RICH_TEXT_EDITOR_OUTPUT_FORMATS,\n RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,\n RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n} from './rich_text_editor_constants';\n\nimport mentionSuggestion from './extensions/mentions/suggestion';\nimport channelSuggestion from './extensions/channels/suggestion';\nimport slashCommandSuggestion from './extensions/slash_command/suggestion';\n\nexport default {\n name: 'DtRichTextEditor',\n\n components: {\n EditorContent,\n },\n\n props: {\n /**\n * Value of the input. The object format should match TipTap's JSON\n * document structure: https://tiptap.dev/guide/output#option-1-json\n */\n modelValue: {\n type: [Object, String],\n default: '',\n },\n\n /**\n * Whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Prevents the user from typing any further. Deleting text will still work.\n */\n preventTyping: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,\n * line breaks can still be entered by pressing shift+enter.\n */\n allowLineBreaks: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Descriptive label for the input element\n */\n inputAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * Additional class name for the input element. Only accepts a String value\n * because this is passed to the editor via options. For multiple classes,\n * join them into one string, e.g. \"d-p8 d-hmx96\"\n */\n inputClass: {\n type: String,\n default: '',\n },\n\n /**\n * Whether the input should receive focus after the component has been\n * mounted. Either one of `start`, `end`, `all` or a Boolean or a Number.\n * - `start` Sets the focus to the beginning of the input\n * - `end` Sets the focus to the end of the input\n * - `all` Selects the whole contents of the input\n * - `Number` Sets the focus to a specific position in the input\n * - `true` Defaults to `start`\n * - `false` Disables autofocus\n * @values true, false, start, end, all, number\n */\n autoFocus: {\n type: [Boolean, String, Number],\n default: false,\n validator (autoFocus) {\n if (typeof autoFocus === 'string') {\n return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);\n }\n return true;\n },\n },\n\n /**\n * The output format that the editor uses when emitting the \"@input\" event.\n * One of `text`, `json`, `html`. See https://tiptap.dev/guide/output for\n * examples.\n * @values text, json, html\n */\n outputFormat: {\n type: String,\n default: 'html',\n validator (outputFormat) {\n return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);\n },\n },\n\n /**\n * Placeholder text\n */\n placeholder: {\n type: String,\n default: '',\n },\n\n /**\n * Enables the TipTap Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the custom link extension at the same time.\n */\n link: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * Enables the Custom Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the built in TipTap link extension at the same time.\n *\n * The custom link does some additional things on top of the built in TipTap link\n * extension such as styling phone numbers and IP adresses as links, and allows you\n * to linkify text without having to type a space after the link. Currently it is missing some\n * functionality such as editing links and will likely require more work to be fully usable,\n * so it is recommended to use the built in TipTap link for now.\n */\n customLink: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the contacts for suggestion.\n * items({ query }) => { return [ContactObject]; }\n * ContactObject format:\n * { name: string, avatarSrc: string, id: string }\n *\n * When null, it does not add the plugin.\n */\n mentionSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the channels for suggestion.\n * items({ query }) => { return [ChannelObject]; }\n * ChannelObject format:\n * { name: string, id: string, locked: boolean }\n *\n * When null, it does not add the plugin. Setting locked to true will display a lock rather than hash.\n */\n channelSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the slash commands for suggestion.\n * items({ query }) => { return [SlashCommandObject]; }\n * SlashCommandObject format:\n * { command: string, description: string, parametersExample?: string }\n * The \"parametersExample\" parameter is optional, and describes an example\n * of the parameters that command can take.\n *\n * When null, it does not add the plugin.\n * Note that slash commands only work when they are the first word in the input.\n */\n slashCommandSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * Whether the input allows for block quote.\n */\n allowBlockquote: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bold to be introduced in the text.\n */\n allowBold: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bullet list to be introduced in the text.\n */\n allowBulletList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for italic to be introduced in the text.\n */\n allowItalic: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for strike to be introduced in the text.\n */\n allowStrike: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for underline to be introduced in the text.\n */\n allowUnderline: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows codeblock to be introduced in the text.\n */\n allowCodeblock: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional TipTap extensions to be added to the editor.\n */\n additionalExtensions: {\n type: Array,\n default: () => [],\n },\n },\n\n emits: [\n /**\n * Editor input event\n * @event input\n * @type {String|JSON}\n */\n 'input',\n\n /**\n * Event to sync the value with the parent\n * @event update:value\n * @type {String|JSON}\n */\n 'update:modelValue',\n\n /**\n * Editor blur event\n * @event blur\n * @type {FocusEvent}\n */\n 'blur',\n\n /**\n * Editor focus event\n * @event focus\n * @type {FocusEvent}\n */\n 'focus',\n\n /**\n * Enter was pressed. Note that shift enter must be pressed to line break the input.\n * @event enter\n * @type {String}\n */\n 'enter',\n ],\n\n data () {\n return {\n editor: null,\n };\n },\n\n computed: {\n attrs () {\n return {\n ...this.$attrs,\n onInput: () => {},\n onFocus: () => {},\n onBlur: () => {},\n };\n },\n\n // eslint-disable-next-line complexity\n extensions () {\n // These are the default extensions needed just for plain text.\n const extensions = [Document, Paragraph, Text, History];\n if (this.link) {\n extensions.push(TipTapLink.extend({ inclusive: false }).configure({\n HTMLAttributes: {\n class: 'd-link d-wb-break-all',\n },\n autolink: true,\n protocols: RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n }));\n }\n if (this.customLink) {\n extensions.push(this.getExtension(CustomLink, this.customLink));\n }\n if (this.allowBlockquote) {\n extensions.push(Blockquote);\n }\n if (this.allowBold) {\n extensions.push(Bold);\n }\n if (this.allowBulletList) {\n extensions.push(BulletList);\n extensions.push(ListItem);\n extensions.push(OrderedList);\n }\n if (this.allowItalic) {\n extensions.push(Italic);\n }\n if (this.allowStrike) {\n extensions.push(Strike);\n }\n if (this.allowUnderline) {\n extensions.push(Underline);\n }\n\n // Enable placeholderText\n if (this.placeholder) {\n extensions.push(\n Placeholder.configure({ placeholder: this.placeholder }),\n );\n }\n\n // make sure that this is defined before any other extensions\n // where Enter and Shift+Enter should have its own interaction. otherwise it will be ignored\n if (!this.allowLineBreaks) {\n const self = this;\n extensions.push(\n HardBreak.extend({\n addKeyboardShortcuts () {\n return {\n Enter: () => {\n self.$emit('enter');\n return true;\n },\n 'Shift-Enter': () => {\n this.editor.commands.setHardBreak();\n return true;\n },\n };\n },\n }),\n );\n } else {\n extensions.push(HardBreak);\n }\n\n if (this.mentionSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.mentionSuggestion, ...mentionSuggestion };\n extensions.push(MentionPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.channelSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.channelSuggestion, ...channelSuggestion };\n extensions.push(ChannelPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.slashCommandSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.slashCommandSuggestion, ...slashCommandSuggestion };\n extensions.push(SlashCommandPlugin.configure({ suggestion: suggestionObject }));\n }\n\n // Emoji has some interactions with Enter key\n // hence this should be done last otherwise the enter wont add a emoji.\n extensions.push(Emoji);\n\n extensions.push(TextAlign.configure({\n types: ['paragraph'],\n defaultAlignment: 'left',\n }));\n\n if (this.allowCodeblock) {\n extensions.push(CodeBlock.configure({\n HTMLAttributes: {\n class: 'dt-rich-text-editor--code-block',\n },\n }));\n }\n\n if (this.additionalExtensions.length) {\n extensions.push(...this.additionalExtensions);\n }\n\n return extensions;\n },\n\n inputAttrs () {\n const attrs = {\n 'aria-label': this.inputAriaLabel,\n 'aria-multiline': true,\n role: 'textbox',\n };\n if (!this.editable) {\n attrs['aria-readonly'] = true;\n }\n return attrs;\n },\n },\n\n /**\n * Because the Editor instance is initialized when mounted it does not get\n * updated props automatically, so the ones that can change after mount have\n * to be hooked up to the Editor's own API.\n */\n watch: {\n editable (isEditable) {\n this.editor.setEditable(isEditable);\n this.updateEditorAttributes({ 'aria-readonly': !isEditable });\n },\n\n inputClass (newClass) {\n this.updateEditorAttributes({ class: newClass });\n },\n\n inputAriaLabel (newLabel) {\n this.updateEditorAttributes({ 'aria-label': newLabel });\n },\n\n extensions () {\n // Extensions can't be registered on the fly, so just recreate the editor.\n // https://github.com/ueberdosis/tiptap/issues/1044\n this.destroyEditor();\n this.createEditor();\n },\n\n modelValue (newValue) {\n let currentValue = this.getOutput();\n if (this.outputFormat === 'json') {\n newValue = JSON.stringify(newValue);\n currentValue = JSON.stringify(currentValue);\n }\n if (newValue === currentValue) {\n // The new value came from this component and was passed back down\n // through the parent, so don't do anything here.\n return;\n }\n // Otherwise replace the content (resets the cursor position).\n this.editor.commands.setContent(newValue, false);\n },\n },\n\n created () {\n this.createEditor();\n },\n\n beforeUnmount () {\n this.destroyEditor();\n },\n\n methods: {\n\n createEditor () {\n // For all available options, see https://tiptap.dev/api/editor#settings\n this.editor = new Editor({\n autofocus: this.autoFocus,\n content: this.modelValue,\n editable: this.editable,\n extensions: this.extensions,\n editorProps: {\n attributes: {\n ...this.inputAttrs,\n class: this.inputClass,\n },\n },\n });\n this.addEditorListeners();\n },\n\n destroyEditor () {\n this.editor.destroy();\n },\n\n /**\n * The Editor exposes event hooks that we have to map our emits into. See\n * https://tiptap.dev/api/events for all events.\n */\n addEditorListeners () {\n // The content has changed.\n this.editor.on('update', () => {\n const value = this.getOutput();\n // When preventTyping is true and user wants to type, we revert to last value\n // If Backspace (keyCode = 8) is pressed, we allow updating the text\n if (this.preventTyping && this.editor.view?.input?.lastKeyCode !== 8) {\n this.editor.commands.setContent(this.value, false);\n return;\n }\n this.$emit('input', value);\n this.$emit('update:modelValue', value);\n });\n\n // The editor is focused.\n this.editor.on('focus', ({ event }) => {\n this.$emit('focus', event);\n });\n\n // The editor isn’t focused anymore.\n this.editor.on('blur', ({ event }) => {\n this.$emit('blur', event);\n });\n },\n\n getOutput () {\n switch (this.outputFormat) {\n case 'json':\n return this.editor.getJSON();\n case 'html':\n return this.editor.getHTML();\n case 'text':\n default:\n return this.editor.getText();\n }\n },\n\n getExtension (extension, options) {\n if (typeof options === 'boolean') {\n return extension;\n }\n return extension.configure?.(options);\n },\n\n updateEditorAttributes (attributes) {\n this.editor.setOptions({ editorProps: { attributes } });\n },\n\n focusEditor () {\n this.editor.commands.focus();\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n .dt-rich-text-editor {\n &--code-block {\n background: var(--dt-color-surface-secondary);\n padding: var(--dt-space-400);\n }\n\n > .ProseMirror {\n box-shadow: none;\n\n p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--dt-color-foreground-placeholder);\n pointer-events: none;\n height: 0;\n }\n\n ul, ol {\n padding-left: var(--dt-space-525);\n }\n\n ul > li {\n list-style-type: disc;\n }\n\n ol > li {\n list-style-type: decimal;\n }\n\n blockquote {\n padding-left: var(--dt-space-400);\n border-left: var(--dt-size-border-300) solid var(--dt-color-foreground-muted-inverted);\n margin-left: 0;\n }\n }\n }\n</style>\n"],"names":["EditorContent","RICH_TEXT_EDITOR_AUTOFOCUS_TYPES","RICH_TEXT_EDITOR_OUTPUT_FORMATS","RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS","CustomLink","mentionSuggestion","MentionPlugin","channelSuggestion","ChannelPlugin","slashCommandSuggestion","SlashCommandPlugin","Emoji","Editor","_openBlock","_createBlock","_mergeProps"],"mappings":";;;;;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AAY;AAClC,WAAK,OAAO,WAAW,EAAE,aAAa,EAAE,WAAa,EAAA,CAAC;AAAA,IACvD;AAAA,IAED,cAAe;AACb,WAAK,OAAO,SAAS;IACtB;AAAA,EACF;AACH;;;AAllBE,SAAAC,cAAA,GAAAC,gBAKE,2BALFC,IAAAA,WAKE;AAAA,IAJC,QAAQ,MAAM;AAAA,IACf,WAAQ;AAAA,IACR,OAAM;AAAA,KACE,SAAK,KAAA,GAAA,MAAA,IAAA,CAAA,QAAA,CAAA;;;;"}
1
+ {"version":3,"file":"rich_text_editor.vue.cjs","sources":["../../../components/rich_text_editor/rich_text_editor.vue"],"sourcesContent":["<template>\n <editor-content\n :editor=\"editor\"\n data-qa=\"dt-rich-text-editor\"\n class=\"dt-rich-text-editor\"\n v-bind=\"attrs\"\n />\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { Editor, EditorContent } from '@tiptap/vue-3';\nimport { Slice, Fragment } from '@tiptap/pm/model';\nimport Blockquote from '@tiptap/extension-blockquote';\nimport CodeBlock from '@tiptap/extension-code-block';\nimport Document from '@tiptap/extension-document';\nimport HardBreak from '@tiptap/extension-hard-break';\nimport Paragraph from '@tiptap/extension-paragraph';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport Bold from '@tiptap/extension-bold';\nimport BulletList from '@tiptap/extension-bullet-list';\nimport Italic from '@tiptap/extension-italic';\nimport TipTapLink from '@tiptap/extension-link';\nimport ListItem from '@tiptap/extension-list-item';\nimport OrderedList from '@tiptap/extension-ordered-list';\nimport Strike from '@tiptap/extension-strike';\nimport Underline from '@tiptap/extension-underline';\nimport Text from '@tiptap/extension-text';\nimport TextAlign from '@tiptap/extension-text-align';\nimport History from '@tiptap/extension-history';\nimport Emoji from './extensions/emoji';\nimport CustomLink from './extensions/custom_link';\nimport { MentionPlugin } from './extensions/mentions/mention';\nimport { ChannelPlugin } from './extensions/channels/channel';\nimport { SlashCommandPlugin } from './extensions/slash_command/slash_command';\nimport {\n RICH_TEXT_EDITOR_OUTPUT_FORMATS,\n RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,\n RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n} from './rich_text_editor_constants';\n\nimport mentionSuggestion from './extensions/mentions/suggestion';\nimport channelSuggestion from './extensions/channels/suggestion';\nimport slashCommandSuggestion from './extensions/slash_command/suggestion';\n\nexport default {\n name: 'DtRichTextEditor',\n\n components: {\n EditorContent,\n },\n\n props: {\n /**\n * Value of the input. The object format should match TipTap's JSON\n * document structure: https://tiptap.dev/guide/output#option-1-json\n */\n modelValue: {\n type: [Object, String],\n default: '',\n },\n\n /**\n * Whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Prevents the user from typing any further. Deleting text will still work.\n */\n preventTyping: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,\n * line breaks can still be entered by pressing shift+enter.\n */\n allowLineBreaks: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Descriptive label for the input element\n */\n inputAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * Additional class name for the input element. Only accepts a String value\n * because this is passed to the editor via options. For multiple classes,\n * join them into one string, e.g. \"d-p8 d-hmx96\"\n */\n inputClass: {\n type: String,\n default: '',\n },\n\n /**\n * Whether the input should receive focus after the component has been\n * mounted. Either one of `start`, `end`, `all` or a Boolean or a Number.\n * - `start` Sets the focus to the beginning of the input\n * - `end` Sets the focus to the end of the input\n * - `all` Selects the whole contents of the input\n * - `Number` Sets the focus to a specific position in the input\n * - `true` Defaults to `start`\n * - `false` Disables autofocus\n * @values true, false, start, end, all, number\n */\n autoFocus: {\n type: [Boolean, String, Number],\n default: false,\n validator (autoFocus) {\n if (typeof autoFocus === 'string') {\n return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);\n }\n return true;\n },\n },\n\n /**\n * The output format that the editor uses when emitting the \"@input\" event.\n * One of `text`, `json`, `html`. See https://tiptap.dev/guide/output for\n * examples.\n * @values text, json, html\n */\n outputFormat: {\n type: String,\n default: 'html',\n validator (outputFormat) {\n return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);\n },\n },\n\n /**\n * Placeholder text\n */\n placeholder: {\n type: String,\n default: '',\n },\n\n /**\n * Enables the TipTap Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the custom link extension at the same time.\n */\n link: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * Enables the Custom Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the built in TipTap link extension at the same time.\n *\n * The custom link does some additional things on top of the built in TipTap link\n * extension such as styling phone numbers and IP adresses as links, and allows you\n * to linkify text without having to type a space after the link. Currently it is missing some\n * functionality such as editing links and will likely require more work to be fully usable,\n * so it is recommended to use the built in TipTap link for now.\n */\n customLink: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the contacts for suggestion.\n * items({ query }) => { return [ContactObject]; }\n * ContactObject format:\n * { name: string, avatarSrc: string, id: string }\n *\n * When null, it does not add the plugin.\n */\n mentionSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the channels for suggestion.\n * items({ query }) => { return [ChannelObject]; }\n * ChannelObject format:\n * { name: string, id: string, locked: boolean }\n *\n * When null, it does not add the plugin. Setting locked to true will display a lock rather than hash.\n */\n channelSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the slash commands for suggestion.\n * items({ query }) => { return [SlashCommandObject]; }\n * SlashCommandObject format:\n * { command: string, description: string, parametersExample?: string }\n * The \"parametersExample\" parameter is optional, and describes an example\n * of the parameters that command can take.\n *\n * When null, it does not add the plugin.\n * Note that slash commands only work when they are the first word in the input.\n */\n slashCommandSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * Whether the input allows for block quote.\n */\n allowBlockquote: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bold to be introduced in the text.\n */\n allowBold: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bullet list to be introduced in the text.\n */\n allowBulletList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for italic to be introduced in the text.\n */\n allowItalic: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for strike to be introduced in the text.\n */\n allowStrike: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for underline to be introduced in the text.\n */\n allowUnderline: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows codeblock to be introduced in the text.\n */\n allowCodeblock: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional TipTap extensions to be added to the editor.\n */\n additionalExtensions: {\n type: Array,\n default: () => [],\n },\n },\n\n emits: [\n /**\n * Editor input event\n * @event input\n * @type {String|JSON}\n */\n 'input',\n\n /**\n * Event to sync the value with the parent\n * @event update:value\n * @type {String|JSON}\n */\n 'update:modelValue',\n\n /**\n * Editor blur event\n * @event blur\n * @type {FocusEvent}\n */\n 'blur',\n\n /**\n * Editor focus event\n * @event focus\n * @type {FocusEvent}\n */\n 'focus',\n\n /**\n * Enter was pressed. Note that shift enter must be pressed to line break the input.\n * @event enter\n * @type {String}\n */\n 'enter',\n ],\n\n data () {\n return {\n editor: null,\n };\n },\n\n computed: {\n attrs () {\n return {\n ...this.$attrs,\n onInput: () => {},\n onFocus: () => {},\n onBlur: () => {},\n };\n },\n\n // eslint-disable-next-line complexity\n extensions () {\n // These are the default extensions needed just for plain text.\n const extensions = [Document, Paragraph, Text, History];\n if (this.link) {\n extensions.push(TipTapLink.extend({ inclusive: false }).configure({\n HTMLAttributes: {\n class: 'd-link d-wb-break-all',\n },\n autolink: true,\n protocols: RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n }));\n }\n if (this.customLink) {\n extensions.push(this.getExtension(CustomLink, this.customLink));\n }\n if (this.allowBlockquote) {\n extensions.push(Blockquote);\n }\n if (this.allowBold) {\n extensions.push(Bold);\n }\n if (this.allowBulletList) {\n extensions.push(BulletList);\n extensions.push(ListItem);\n extensions.push(OrderedList);\n }\n if (this.allowItalic) {\n extensions.push(Italic);\n }\n if (this.allowStrike) {\n extensions.push(Strike);\n }\n if (this.allowUnderline) {\n extensions.push(Underline);\n }\n\n // Enable placeholderText\n if (this.placeholder) {\n extensions.push(\n Placeholder.configure({ placeholder: this.placeholder }),\n );\n }\n\n // make sure that this is defined before any other extensions\n // where Enter and Shift+Enter should have its own interaction. otherwise it will be ignored\n if (!this.allowLineBreaks) {\n const self = this;\n extensions.push(\n HardBreak.extend({\n addKeyboardShortcuts () {\n return {\n Enter: () => {\n self.$emit('enter');\n return true;\n },\n 'Shift-Enter': () => {\n this.editor.commands.setHardBreak();\n return true;\n },\n };\n },\n }),\n );\n } else {\n extensions.push(HardBreak);\n }\n\n if (this.mentionSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.mentionSuggestion, ...mentionSuggestion };\n extensions.push(MentionPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.channelSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.channelSuggestion, ...channelSuggestion };\n extensions.push(ChannelPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.slashCommandSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.slashCommandSuggestion, ...slashCommandSuggestion };\n extensions.push(SlashCommandPlugin.configure({ suggestion: suggestionObject }));\n }\n\n // Emoji has some interactions with Enter key\n // hence this should be done last otherwise the enter wont add a emoji.\n extensions.push(Emoji);\n\n extensions.push(TextAlign.configure({\n types: ['paragraph'],\n defaultAlignment: 'left',\n }));\n\n if (this.allowCodeblock) {\n extensions.push(CodeBlock.configure({\n HTMLAttributes: {\n class: 'dt-rich-text-editor--code-block',\n },\n }));\n }\n\n if (this.additionalExtensions.length) {\n extensions.push(...this.additionalExtensions);\n }\n\n return extensions;\n },\n\n inputAttrs () {\n const attrs = {\n 'aria-label': this.inputAriaLabel,\n 'aria-multiline': true,\n role: 'textbox',\n };\n if (!this.editable) {\n attrs['aria-readonly'] = true;\n }\n return attrs;\n },\n },\n\n /**\n * Because the Editor instance is initialized when mounted it does not get\n * updated props automatically, so the ones that can change after mount have\n * to be hooked up to the Editor's own API.\n */\n watch: {\n editable (isEditable) {\n this.editor.setEditable(isEditable);\n this.updateEditorAttributes({ 'aria-readonly': !isEditable });\n },\n\n inputClass (newClass) {\n this.updateEditorAttributes({ class: newClass });\n },\n\n inputAriaLabel (newLabel) {\n this.updateEditorAttributes({ 'aria-label': newLabel });\n },\n\n extensions () {\n // Extensions can't be registered on the fly, so just recreate the editor.\n // https://github.com/ueberdosis/tiptap/issues/1044\n this.destroyEditor();\n this.createEditor();\n },\n\n modelValue (newValue) {\n let currentValue = this.getOutput();\n if (this.outputFormat === 'json') {\n newValue = JSON.stringify(newValue);\n currentValue = JSON.stringify(currentValue);\n }\n if (newValue === currentValue) {\n // The new value came from this component and was passed back down\n // through the parent, so don't do anything here.\n return;\n }\n // Otherwise replace the content (resets the cursor position).\n this.editor.commands.setContent(newValue, false);\n },\n },\n\n created () {\n this.createEditor();\n },\n\n beforeUnmount () {\n this.destroyEditor();\n },\n\n methods: {\n\n createEditor () {\n // For all available options, see https://tiptap.dev/api/editor#settings\n this.editor = new Editor({\n autofocus: this.autoFocus,\n content: this.modelValue,\n editable: this.editable,\n extensions: this.extensions,\n editorProps: {\n attributes: {\n ...this.inputAttrs,\n class: this.inputClass,\n },\n\n /* Absolutely crazy that this is what's needed to paste line breaks properly in prosemirror, but it does seem\n to fix our issue of line breaks outputting as paragraphs. Code taken from this thread:\n https://discuss.prosemirror.net/t/how-to-preserve-hard-breaks-when-pasting-html-into-a-plain-text-schema/4202/4\n */\n handlePaste: function (view, event, slice) {\n const { state } = view;\n const { tr } = state;\n\n if (!state.schema.nodes.hardBreak) {\n return false;\n }\n\n const clipboardText = event.clipboardData?.getData('text/plain').trim();\n\n if (!clipboardText) {\n return false;\n }\n\n const textLines = clipboardText.split(/(?:\\r\\n|\\r|\\n)/g);\n\n const nodes = textLines.reduce((nodes, line, index) => {\n if (line.length > 0) {\n nodes.push(state.schema.text(line));\n }\n\n if (index < textLines.length - 1) {\n nodes.push(state.schema.nodes.hardBreak.create());\n }\n\n return nodes;\n }, []);\n\n view.dispatch(\n tr.replaceSelection(Slice.maxOpen(Fragment.fromArray(nodes))).scrollIntoView(),\n );\n\n return true;\n },\n },\n });\n this.addEditorListeners();\n },\n\n destroyEditor () {\n this.editor.destroy();\n },\n\n /**\n * The Editor exposes event hooks that we have to map our emits into. See\n * https://tiptap.dev/api/events for all events.\n */\n addEditorListeners () {\n // The content has changed.\n this.editor.on('update', () => {\n const value = this.getOutput();\n // When preventTyping is true and user wants to type, we revert to last value\n // If Backspace (keyCode = 8) is pressed, we allow updating the text\n if (this.preventTyping && this.editor.view?.input?.lastKeyCode !== 8) {\n this.editor.commands.setContent(this.value, false);\n return;\n }\n this.$emit('input', value);\n this.$emit('update:modelValue', value);\n });\n\n // The editor is focused.\n this.editor.on('focus', ({ event }) => {\n this.$emit('focus', event);\n });\n\n // The editor isn’t focused anymore.\n this.editor.on('blur', ({ event }) => {\n this.$emit('blur', event);\n });\n },\n\n getOutput () {\n switch (this.outputFormat) {\n case 'json':\n return this.editor.getJSON();\n case 'html':\n return this.editor.getHTML();\n case 'text':\n default:\n return this.editor.getText();\n }\n },\n\n getExtension (extension, options) {\n if (typeof options === 'boolean') {\n return extension;\n }\n return extension.configure?.(options);\n },\n\n updateEditorAttributes (attributes) {\n this.editor.setOptions({ editorProps: { attributes } });\n },\n\n focusEditor () {\n this.editor.commands.focus();\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n .dt-rich-text-editor {\n &--code-block {\n background: var(--dt-color-surface-secondary);\n padding: var(--dt-space-400);\n }\n\n > .ProseMirror {\n box-shadow: none;\n\n p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--dt-color-foreground-placeholder);\n pointer-events: none;\n height: 0;\n }\n\n ul, ol {\n padding-left: var(--dt-space-525);\n }\n\n ul > li {\n list-style-type: disc;\n }\n\n ol > li {\n list-style-type: decimal;\n }\n\n blockquote {\n padding-left: var(--dt-space-400);\n border-left: var(--dt-size-border-300) solid var(--dt-color-foreground-muted-inverted);\n margin-left: 0;\n }\n }\n }\n</style>\n"],"names":["EditorContent","RICH_TEXT_EDITOR_AUTOFOCUS_TYPES","RICH_TEXT_EDITOR_OUTPUT_FORMATS","RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS","CustomLink","mentionSuggestion","MentionPlugin","channelSuggestion","ChannelPlugin","slashCommandSuggestion","SlashCommandPlugin","Emoji","Editor","nodes","Slice","Fragment","_openBlock","_createBlock","_mergeProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,YAAY;AAAA,mBACVA,KAAa;AAAA,EACd;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL,YAAY;AAAA,MACV,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,eAAe;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA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Q,KAAK,cAAY;AAAA,QACvB,KAAK;AACH,iBAAO,KAAK,OAAO;QACrB,KAAK;AACH,iBAAO,KAAK,OAAO;QACrB,KAAK;AAAA,QACL;AACE,iBAAO,KAAK,OAAO;MACvB;AAAA,IACD;AAAA,IAED,aAAc,WAAW,SAAS;;AAChC,UAAI,OAAO,YAAY,WAAW;AAChC,eAAO;AAAA,MACT;AACA,cAAO,eAAU,cAAV,mCAAsB;AAAA,IAC9B;AAAA,IAED,uBAAwB,YAAY;AAClC,WAAK,OAAO,WAAW,EAAE,aAAa,EAAE,WAAa,EAAA,CAAC;AAAA,IACvD;AAAA,IAED,cAAe;AACb,WAAK,OAAO,SAAS;IACtB;AAAA,EACF;AACH;;;AA1nBE,SAAAC,cAAA,GAAAC,gBAKE,2BALFC,IAAAA,WAKE;AAAA,IAJC,QAAQ,MAAM;AAAA,IACf,WAAQ;AAAA,IACR,OAAM;AAAA,KACE,SAAK,KAAA,GAAA,MAAA,IAAA,CAAA,QAAA,CAAA;;;;"}
@@ -1,4 +1,5 @@
1
1
  import { EditorContent, Editor } from "@tiptap/vue-3";
2
+ import { Slice, Fragment } from "@tiptap/pm/model";
2
3
  import Blockquote from "@tiptap/extension-blockquote";
3
4
  import CodeBlock from "@tiptap/extension-code-block";
4
5
  import Document from "@tiptap/extension-document";
@@ -450,6 +451,36 @@ const _sfc_main = {
450
451
  attributes: {
451
452
  ...this.inputAttrs,
452
453
  class: this.inputClass
454
+ },
455
+ /* Absolutely crazy that this is what's needed to paste line breaks properly in prosemirror, but it does seem
456
+ to fix our issue of line breaks outputting as paragraphs. Code taken from this thread:
457
+ https://discuss.prosemirror.net/t/how-to-preserve-hard-breaks-when-pasting-html-into-a-plain-text-schema/4202/4
458
+ */
459
+ handlePaste: function(view, event, slice) {
460
+ var _a;
461
+ const { state } = view;
462
+ const { tr } = state;
463
+ if (!state.schema.nodes.hardBreak) {
464
+ return false;
465
+ }
466
+ const clipboardText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain").trim();
467
+ if (!clipboardText) {
468
+ return false;
469
+ }
470
+ const textLines = clipboardText.split(/(?:\r\n|\r|\n)/g);
471
+ const nodes = textLines.reduce((nodes2, line, index) => {
472
+ if (line.length > 0) {
473
+ nodes2.push(state.schema.text(line));
474
+ }
475
+ if (index < textLines.length - 1) {
476
+ nodes2.push(state.schema.nodes.hardBreak.create());
477
+ }
478
+ return nodes2;
479
+ }, []);
480
+ view.dispatch(
481
+ tr.replaceSelection(Slice.maxOpen(Fragment.fromArray(nodes))).scrollIntoView()
482
+ );
483
+ return true;
453
484
  }
454
485
  }
455
486
  });
@@ -1 +1 @@
1
- {"version":3,"file":"rich_text_editor.vue.js","sources":["../../../components/rich_text_editor/rich_text_editor.vue"],"sourcesContent":["<template>\n <editor-content\n :editor=\"editor\"\n data-qa=\"dt-rich-text-editor\"\n class=\"dt-rich-text-editor\"\n v-bind=\"attrs\"\n />\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { Editor, EditorContent } from '@tiptap/vue-3';\nimport Blockquote from '@tiptap/extension-blockquote';\nimport CodeBlock from '@tiptap/extension-code-block';\nimport Document from '@tiptap/extension-document';\nimport HardBreak from '@tiptap/extension-hard-break';\nimport Paragraph from '@tiptap/extension-paragraph';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport Bold from '@tiptap/extension-bold';\nimport BulletList from '@tiptap/extension-bullet-list';\nimport Italic from '@tiptap/extension-italic';\nimport TipTapLink from '@tiptap/extension-link';\nimport ListItem from '@tiptap/extension-list-item';\nimport OrderedList from '@tiptap/extension-ordered-list';\nimport Strike from '@tiptap/extension-strike';\nimport Underline from '@tiptap/extension-underline';\nimport Text from '@tiptap/extension-text';\nimport TextAlign from '@tiptap/extension-text-align';\nimport History from '@tiptap/extension-history';\nimport Emoji from './extensions/emoji';\nimport CustomLink from './extensions/custom_link';\nimport { MentionPlugin } from './extensions/mentions/mention';\nimport { ChannelPlugin } from './extensions/channels/channel';\nimport { SlashCommandPlugin } from './extensions/slash_command/slash_command';\nimport {\n RICH_TEXT_EDITOR_OUTPUT_FORMATS,\n RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,\n RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n} from './rich_text_editor_constants';\n\nimport mentionSuggestion from './extensions/mentions/suggestion';\nimport channelSuggestion from './extensions/channels/suggestion';\nimport slashCommandSuggestion from './extensions/slash_command/suggestion';\n\nexport default {\n name: 'DtRichTextEditor',\n\n components: {\n EditorContent,\n },\n\n props: {\n /**\n * Value of the input. The object format should match TipTap's JSON\n * document structure: https://tiptap.dev/guide/output#option-1-json\n */\n modelValue: {\n type: [Object, String],\n default: '',\n },\n\n /**\n * Whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Prevents the user from typing any further. Deleting text will still work.\n */\n preventTyping: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,\n * line breaks can still be entered by pressing shift+enter.\n */\n allowLineBreaks: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Descriptive label for the input element\n */\n inputAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * Additional class name for the input element. Only accepts a String value\n * because this is passed to the editor via options. For multiple classes,\n * join them into one string, e.g. \"d-p8 d-hmx96\"\n */\n inputClass: {\n type: String,\n default: '',\n },\n\n /**\n * Whether the input should receive focus after the component has been\n * mounted. Either one of `start`, `end`, `all` or a Boolean or a Number.\n * - `start` Sets the focus to the beginning of the input\n * - `end` Sets the focus to the end of the input\n * - `all` Selects the whole contents of the input\n * - `Number` Sets the focus to a specific position in the input\n * - `true` Defaults to `start`\n * - `false` Disables autofocus\n * @values true, false, start, end, all, number\n */\n autoFocus: {\n type: [Boolean, String, Number],\n default: false,\n validator (autoFocus) {\n if (typeof autoFocus === 'string') {\n return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);\n }\n return true;\n },\n },\n\n /**\n * The output format that the editor uses when emitting the \"@input\" event.\n * One of `text`, `json`, `html`. See https://tiptap.dev/guide/output for\n * examples.\n * @values text, json, html\n */\n outputFormat: {\n type: String,\n default: 'html',\n validator (outputFormat) {\n return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);\n },\n },\n\n /**\n * Placeholder text\n */\n placeholder: {\n type: String,\n default: '',\n },\n\n /**\n * Enables the TipTap Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the custom link extension at the same time.\n */\n link: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * Enables the Custom Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the built in TipTap link extension at the same time.\n *\n * The custom link does some additional things on top of the built in TipTap link\n * extension such as styling phone numbers and IP adresses as links, and allows you\n * to linkify text without having to type a space after the link. Currently it is missing some\n * functionality such as editing links and will likely require more work to be fully usable,\n * so it is recommended to use the built in TipTap link for now.\n */\n customLink: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the contacts for suggestion.\n * items({ query }) => { return [ContactObject]; }\n * ContactObject format:\n * { name: string, avatarSrc: string, id: string }\n *\n * When null, it does not add the plugin.\n */\n mentionSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the channels for suggestion.\n * items({ query }) => { return [ChannelObject]; }\n * ChannelObject format:\n * { name: string, id: string, locked: boolean }\n *\n * When null, it does not add the plugin. Setting locked to true will display a lock rather than hash.\n */\n channelSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the slash commands for suggestion.\n * items({ query }) => { return [SlashCommandObject]; }\n * SlashCommandObject format:\n * { command: string, description: string, parametersExample?: string }\n * The \"parametersExample\" parameter is optional, and describes an example\n * of the parameters that command can take.\n *\n * When null, it does not add the plugin.\n * Note that slash commands only work when they are the first word in the input.\n */\n slashCommandSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * Whether the input allows for block quote.\n */\n allowBlockquote: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bold to be introduced in the text.\n */\n allowBold: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bullet list to be introduced in the text.\n */\n allowBulletList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for italic to be introduced in the text.\n */\n allowItalic: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for strike to be introduced in the text.\n */\n allowStrike: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for underline to be introduced in the text.\n */\n allowUnderline: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows codeblock to be introduced in the text.\n */\n allowCodeblock: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional TipTap extensions to be added to the editor.\n */\n additionalExtensions: {\n type: Array,\n default: () => [],\n },\n },\n\n emits: [\n /**\n * Editor input event\n * @event input\n * @type {String|JSON}\n */\n 'input',\n\n /**\n * Event to sync the value with the parent\n * @event update:value\n * @type {String|JSON}\n */\n 'update:modelValue',\n\n /**\n * Editor blur event\n * @event blur\n * @type {FocusEvent}\n */\n 'blur',\n\n /**\n * Editor focus event\n * @event focus\n * @type {FocusEvent}\n */\n 'focus',\n\n /**\n * Enter was pressed. Note that shift enter must be pressed to line break the input.\n * @event enter\n * @type {String}\n */\n 'enter',\n ],\n\n data () {\n return {\n editor: null,\n };\n },\n\n computed: {\n attrs () {\n return {\n ...this.$attrs,\n onInput: () => {},\n onFocus: () => {},\n onBlur: () => {},\n };\n },\n\n // eslint-disable-next-line complexity\n extensions () {\n // These are the default extensions needed just for plain text.\n const extensions = [Document, Paragraph, Text, History];\n if (this.link) {\n extensions.push(TipTapLink.extend({ inclusive: false }).configure({\n HTMLAttributes: {\n class: 'd-link d-wb-break-all',\n },\n autolink: true,\n protocols: RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n }));\n }\n if (this.customLink) {\n extensions.push(this.getExtension(CustomLink, this.customLink));\n }\n if (this.allowBlockquote) {\n extensions.push(Blockquote);\n }\n if (this.allowBold) {\n extensions.push(Bold);\n }\n if (this.allowBulletList) {\n extensions.push(BulletList);\n extensions.push(ListItem);\n extensions.push(OrderedList);\n }\n if (this.allowItalic) {\n extensions.push(Italic);\n }\n if (this.allowStrike) {\n extensions.push(Strike);\n }\n if (this.allowUnderline) {\n extensions.push(Underline);\n }\n\n // Enable placeholderText\n if (this.placeholder) {\n extensions.push(\n Placeholder.configure({ placeholder: this.placeholder }),\n );\n }\n\n // make sure that this is defined before any other extensions\n // where Enter and Shift+Enter should have its own interaction. otherwise it will be ignored\n if (!this.allowLineBreaks) {\n const self = this;\n extensions.push(\n HardBreak.extend({\n addKeyboardShortcuts () {\n return {\n Enter: () => {\n self.$emit('enter');\n return true;\n },\n 'Shift-Enter': () => {\n this.editor.commands.setHardBreak();\n return true;\n },\n };\n },\n }),\n );\n } else {\n extensions.push(HardBreak);\n }\n\n if (this.mentionSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.mentionSuggestion, ...mentionSuggestion };\n extensions.push(MentionPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.channelSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.channelSuggestion, ...channelSuggestion };\n extensions.push(ChannelPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.slashCommandSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.slashCommandSuggestion, ...slashCommandSuggestion };\n extensions.push(SlashCommandPlugin.configure({ suggestion: suggestionObject }));\n }\n\n // Emoji has some interactions with Enter key\n // hence this should be done last otherwise the enter wont add a emoji.\n extensions.push(Emoji);\n\n extensions.push(TextAlign.configure({\n types: ['paragraph'],\n defaultAlignment: 'left',\n }));\n\n if (this.allowCodeblock) {\n extensions.push(CodeBlock.configure({\n HTMLAttributes: {\n class: 'dt-rich-text-editor--code-block',\n },\n }));\n }\n\n if (this.additionalExtensions.length) {\n extensions.push(...this.additionalExtensions);\n }\n\n return extensions;\n },\n\n inputAttrs () {\n const attrs = {\n 'aria-label': this.inputAriaLabel,\n 'aria-multiline': true,\n role: 'textbox',\n };\n if (!this.editable) {\n attrs['aria-readonly'] = true;\n }\n return attrs;\n },\n },\n\n /**\n * Because the Editor instance is initialized when mounted it does not get\n * updated props automatically, so the ones that can change after mount have\n * to be hooked up to the Editor's own API.\n */\n watch: {\n editable (isEditable) {\n this.editor.setEditable(isEditable);\n this.updateEditorAttributes({ 'aria-readonly': !isEditable });\n },\n\n inputClass (newClass) {\n this.updateEditorAttributes({ class: newClass });\n },\n\n inputAriaLabel (newLabel) {\n this.updateEditorAttributes({ 'aria-label': newLabel });\n },\n\n extensions () {\n // Extensions can't be registered on the fly, so just recreate the editor.\n // https://github.com/ueberdosis/tiptap/issues/1044\n this.destroyEditor();\n this.createEditor();\n },\n\n modelValue (newValue) {\n let currentValue = this.getOutput();\n if (this.outputFormat === 'json') {\n newValue = JSON.stringify(newValue);\n currentValue = JSON.stringify(currentValue);\n }\n if (newValue === currentValue) {\n // The new value came from this component and was passed back down\n // through the parent, so don't do anything here.\n return;\n }\n // Otherwise replace the content (resets the cursor position).\n this.editor.commands.setContent(newValue, false);\n },\n },\n\n created () {\n this.createEditor();\n },\n\n beforeUnmount () {\n this.destroyEditor();\n },\n\n methods: {\n\n createEditor () {\n // For all available options, see https://tiptap.dev/api/editor#settings\n this.editor = new Editor({\n autofocus: this.autoFocus,\n content: this.modelValue,\n editable: this.editable,\n extensions: this.extensions,\n editorProps: {\n attributes: {\n ...this.inputAttrs,\n class: this.inputClass,\n },\n },\n });\n this.addEditorListeners();\n },\n\n destroyEditor () {\n this.editor.destroy();\n },\n\n /**\n * The Editor exposes event hooks that we have to map our emits into. See\n * https://tiptap.dev/api/events for all events.\n */\n addEditorListeners () {\n // The content has changed.\n this.editor.on('update', () => {\n const value = this.getOutput();\n // When preventTyping is true and user wants to type, we revert to last value\n // If Backspace (keyCode = 8) is pressed, we allow updating the text\n if (this.preventTyping && this.editor.view?.input?.lastKeyCode !== 8) {\n this.editor.commands.setContent(this.value, false);\n return;\n }\n this.$emit('input', value);\n this.$emit('update:modelValue', value);\n });\n\n // The editor is focused.\n this.editor.on('focus', ({ event }) => {\n this.$emit('focus', event);\n });\n\n // The editor isn’t focused anymore.\n this.editor.on('blur', ({ event }) => {\n this.$emit('blur', event);\n });\n },\n\n getOutput () {\n switch (this.outputFormat) {\n case 'json':\n return this.editor.getJSON();\n case 'html':\n return this.editor.getHTML();\n case 'text':\n default:\n return this.editor.getText();\n }\n },\n\n getExtension (extension, options) {\n if (typeof options === 'boolean') {\n return extension;\n }\n return extension.configure?.(options);\n },\n\n updateEditorAttributes (attributes) {\n this.editor.setOptions({ editorProps: { attributes } });\n },\n\n focusEditor () {\n this.editor.commands.focus();\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n .dt-rich-text-editor {\n &--code-block {\n background: var(--dt-color-surface-secondary);\n padding: var(--dt-space-400);\n }\n\n > .ProseMirror {\n box-shadow: none;\n\n p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--dt-color-foreground-placeholder);\n pointer-events: none;\n height: 0;\n }\n\n ul, ol {\n padding-left: var(--dt-space-525);\n }\n\n ul > li {\n list-style-type: disc;\n }\n\n ol > li {\n list-style-type: decimal;\n }\n\n blockquote {\n padding-left: var(--dt-space-400);\n border-left: var(--dt-size-border-300) solid var(--dt-color-foreground-muted-inverted);\n margin-left: 0;\n }\n }\n }\n</style>\n"],"names":["_openBlock","_createBlock","_mergeProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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ACb,WAAK,OAAO,SAAS;IACtB;AAAA,EACF;AACH;;;AAllBE,SAAAA,UAAA,GAAAC,YAKE,2BALFC,WAKE;AAAA,IAJC,QAAQ,MAAM;AAAA,IACf,WAAQ;AAAA,IACR,OAAM;AAAA,KACE,SAAK,KAAA,GAAA,MAAA,IAAA,CAAA,QAAA,CAAA;;;"}
1
+ {"version":3,"file":"rich_text_editor.vue.js","sources":["../../../components/rich_text_editor/rich_text_editor.vue"],"sourcesContent":["<template>\n <editor-content\n :editor=\"editor\"\n data-qa=\"dt-rich-text-editor\"\n class=\"dt-rich-text-editor\"\n v-bind=\"attrs\"\n />\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport { Editor, EditorContent } from '@tiptap/vue-3';\nimport { Slice, Fragment } from '@tiptap/pm/model';\nimport Blockquote from '@tiptap/extension-blockquote';\nimport CodeBlock from '@tiptap/extension-code-block';\nimport Document from '@tiptap/extension-document';\nimport HardBreak from '@tiptap/extension-hard-break';\nimport Paragraph from '@tiptap/extension-paragraph';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport Bold from '@tiptap/extension-bold';\nimport BulletList from '@tiptap/extension-bullet-list';\nimport Italic from '@tiptap/extension-italic';\nimport TipTapLink from '@tiptap/extension-link';\nimport ListItem from '@tiptap/extension-list-item';\nimport OrderedList from '@tiptap/extension-ordered-list';\nimport Strike from '@tiptap/extension-strike';\nimport Underline from '@tiptap/extension-underline';\nimport Text from '@tiptap/extension-text';\nimport TextAlign from '@tiptap/extension-text-align';\nimport History from '@tiptap/extension-history';\nimport Emoji from './extensions/emoji';\nimport CustomLink from './extensions/custom_link';\nimport { MentionPlugin } from './extensions/mentions/mention';\nimport { ChannelPlugin } from './extensions/channels/channel';\nimport { SlashCommandPlugin } from './extensions/slash_command/slash_command';\nimport {\n RICH_TEXT_EDITOR_OUTPUT_FORMATS,\n RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,\n RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n} from './rich_text_editor_constants';\n\nimport mentionSuggestion from './extensions/mentions/suggestion';\nimport channelSuggestion from './extensions/channels/suggestion';\nimport slashCommandSuggestion from './extensions/slash_command/suggestion';\n\nexport default {\n name: 'DtRichTextEditor',\n\n components: {\n EditorContent,\n },\n\n props: {\n /**\n * Value of the input. The object format should match TipTap's JSON\n * document structure: https://tiptap.dev/guide/output#option-1-json\n */\n modelValue: {\n type: [Object, String],\n default: '',\n },\n\n /**\n * Whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Prevents the user from typing any further. Deleting text will still work.\n */\n preventTyping: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,\n * line breaks can still be entered by pressing shift+enter.\n */\n allowLineBreaks: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Descriptive label for the input element\n */\n inputAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * Additional class name for the input element. Only accepts a String value\n * because this is passed to the editor via options. For multiple classes,\n * join them into one string, e.g. \"d-p8 d-hmx96\"\n */\n inputClass: {\n type: String,\n default: '',\n },\n\n /**\n * Whether the input should receive focus after the component has been\n * mounted. Either one of `start`, `end`, `all` or a Boolean or a Number.\n * - `start` Sets the focus to the beginning of the input\n * - `end` Sets the focus to the end of the input\n * - `all` Selects the whole contents of the input\n * - `Number` Sets the focus to a specific position in the input\n * - `true` Defaults to `start`\n * - `false` Disables autofocus\n * @values true, false, start, end, all, number\n */\n autoFocus: {\n type: [Boolean, String, Number],\n default: false,\n validator (autoFocus) {\n if (typeof autoFocus === 'string') {\n return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);\n }\n return true;\n },\n },\n\n /**\n * The output format that the editor uses when emitting the \"@input\" event.\n * One of `text`, `json`, `html`. See https://tiptap.dev/guide/output for\n * examples.\n * @values text, json, html\n */\n outputFormat: {\n type: String,\n default: 'html',\n validator (outputFormat) {\n return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);\n },\n },\n\n /**\n * Placeholder text\n */\n placeholder: {\n type: String,\n default: '',\n },\n\n /**\n * Enables the TipTap Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the custom link extension at the same time.\n */\n link: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * Enables the Custom Link extension and optionally passes configurations to it\n *\n * It is not recommended to use this and the built in TipTap link extension at the same time.\n *\n * The custom link does some additional things on top of the built in TipTap link\n * extension such as styling phone numbers and IP adresses as links, and allows you\n * to linkify text without having to type a space after the link. Currently it is missing some\n * functionality such as editing links and will likely require more work to be fully usable,\n * so it is recommended to use the built in TipTap link for now.\n */\n customLink: {\n type: [Boolean, Object],\n default: false,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the contacts for suggestion.\n * items({ query }) => { return [ContactObject]; }\n * ContactObject format:\n * { name: string, avatarSrc: string, id: string }\n *\n * When null, it does not add the plugin.\n */\n mentionSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the channels for suggestion.\n * items({ query }) => { return [ChannelObject]; }\n * ChannelObject format:\n * { name: string, id: string, locked: boolean }\n *\n * When null, it does not add the plugin. Setting locked to true will display a lock rather than hash.\n */\n channelSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * suggestion object containing the items query function.\n * The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion\n *\n * The only required key is the items function which is used to query the slash commands for suggestion.\n * items({ query }) => { return [SlashCommandObject]; }\n * SlashCommandObject format:\n * { command: string, description: string, parametersExample?: string }\n * The \"parametersExample\" parameter is optional, and describes an example\n * of the parameters that command can take.\n *\n * When null, it does not add the plugin.\n * Note that slash commands only work when they are the first word in the input.\n */\n slashCommandSuggestion: {\n type: Object,\n default: null,\n },\n\n /**\n * Whether the input allows for block quote.\n */\n allowBlockquote: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bold to be introduced in the text.\n */\n allowBold: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for bullet list to be introduced in the text.\n */\n allowBulletList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for italic to be introduced in the text.\n */\n allowItalic: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for strike to be introduced in the text.\n */\n allowStrike: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows for underline to be introduced in the text.\n */\n allowUnderline: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether the input allows codeblock to be introduced in the text.\n */\n allowCodeblock: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional TipTap extensions to be added to the editor.\n */\n additionalExtensions: {\n type: Array,\n default: () => [],\n },\n },\n\n emits: [\n /**\n * Editor input event\n * @event input\n * @type {String|JSON}\n */\n 'input',\n\n /**\n * Event to sync the value with the parent\n * @event update:value\n * @type {String|JSON}\n */\n 'update:modelValue',\n\n /**\n * Editor blur event\n * @event blur\n * @type {FocusEvent}\n */\n 'blur',\n\n /**\n * Editor focus event\n * @event focus\n * @type {FocusEvent}\n */\n 'focus',\n\n /**\n * Enter was pressed. Note that shift enter must be pressed to line break the input.\n * @event enter\n * @type {String}\n */\n 'enter',\n ],\n\n data () {\n return {\n editor: null,\n };\n },\n\n computed: {\n attrs () {\n return {\n ...this.$attrs,\n onInput: () => {},\n onFocus: () => {},\n onBlur: () => {},\n };\n },\n\n // eslint-disable-next-line complexity\n extensions () {\n // These are the default extensions needed just for plain text.\n const extensions = [Document, Paragraph, Text, History];\n if (this.link) {\n extensions.push(TipTapLink.extend({ inclusive: false }).configure({\n HTMLAttributes: {\n class: 'd-link d-wb-break-all',\n },\n autolink: true,\n protocols: RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS,\n }));\n }\n if (this.customLink) {\n extensions.push(this.getExtension(CustomLink, this.customLink));\n }\n if (this.allowBlockquote) {\n extensions.push(Blockquote);\n }\n if (this.allowBold) {\n extensions.push(Bold);\n }\n if (this.allowBulletList) {\n extensions.push(BulletList);\n extensions.push(ListItem);\n extensions.push(OrderedList);\n }\n if (this.allowItalic) {\n extensions.push(Italic);\n }\n if (this.allowStrike) {\n extensions.push(Strike);\n }\n if (this.allowUnderline) {\n extensions.push(Underline);\n }\n\n // Enable placeholderText\n if (this.placeholder) {\n extensions.push(\n Placeholder.configure({ placeholder: this.placeholder }),\n );\n }\n\n // make sure that this is defined before any other extensions\n // where Enter and Shift+Enter should have its own interaction. otherwise it will be ignored\n if (!this.allowLineBreaks) {\n const self = this;\n extensions.push(\n HardBreak.extend({\n addKeyboardShortcuts () {\n return {\n Enter: () => {\n self.$emit('enter');\n return true;\n },\n 'Shift-Enter': () => {\n this.editor.commands.setHardBreak();\n return true;\n },\n };\n },\n }),\n );\n } else {\n extensions.push(HardBreak);\n }\n\n if (this.mentionSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.mentionSuggestion, ...mentionSuggestion };\n extensions.push(MentionPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.channelSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.channelSuggestion, ...channelSuggestion };\n extensions.push(ChannelPlugin.configure({ suggestion: suggestionObject }));\n }\n\n if (this.slashCommandSuggestion) {\n // Add both the suggestion plugin as well as means for user to add suggestion items to the plugin\n const suggestionObject = { ...this.slashCommandSuggestion, ...slashCommandSuggestion };\n extensions.push(SlashCommandPlugin.configure({ suggestion: suggestionObject }));\n }\n\n // Emoji has some interactions with Enter key\n // hence this should be done last otherwise the enter wont add a emoji.\n extensions.push(Emoji);\n\n extensions.push(TextAlign.configure({\n types: ['paragraph'],\n defaultAlignment: 'left',\n }));\n\n if (this.allowCodeblock) {\n extensions.push(CodeBlock.configure({\n HTMLAttributes: {\n class: 'dt-rich-text-editor--code-block',\n },\n }));\n }\n\n if (this.additionalExtensions.length) {\n extensions.push(...this.additionalExtensions);\n }\n\n return extensions;\n },\n\n inputAttrs () {\n const attrs = {\n 'aria-label': this.inputAriaLabel,\n 'aria-multiline': true,\n role: 'textbox',\n };\n if (!this.editable) {\n attrs['aria-readonly'] = true;\n }\n return attrs;\n },\n },\n\n /**\n * Because the Editor instance is initialized when mounted it does not get\n * updated props automatically, so the ones that can change after mount have\n * to be hooked up to the Editor's own API.\n */\n watch: {\n editable (isEditable) {\n this.editor.setEditable(isEditable);\n this.updateEditorAttributes({ 'aria-readonly': !isEditable });\n },\n\n inputClass (newClass) {\n this.updateEditorAttributes({ class: newClass });\n },\n\n inputAriaLabel (newLabel) {\n this.updateEditorAttributes({ 'aria-label': newLabel });\n },\n\n extensions () {\n // Extensions can't be registered on the fly, so just recreate the editor.\n // https://github.com/ueberdosis/tiptap/issues/1044\n this.destroyEditor();\n this.createEditor();\n },\n\n modelValue (newValue) {\n let currentValue = this.getOutput();\n if (this.outputFormat === 'json') {\n newValue = JSON.stringify(newValue);\n currentValue = JSON.stringify(currentValue);\n }\n if (newValue === currentValue) {\n // The new value came from this component and was passed back down\n // through the parent, so don't do anything here.\n return;\n }\n // Otherwise replace the content (resets the cursor position).\n this.editor.commands.setContent(newValue, false);\n },\n },\n\n created () {\n this.createEditor();\n },\n\n beforeUnmount () {\n this.destroyEditor();\n },\n\n methods: {\n\n createEditor () {\n // For all available options, see https://tiptap.dev/api/editor#settings\n this.editor = new Editor({\n autofocus: this.autoFocus,\n content: this.modelValue,\n editable: this.editable,\n extensions: this.extensions,\n editorProps: {\n attributes: {\n ...this.inputAttrs,\n class: this.inputClass,\n },\n\n /* Absolutely crazy that this is what's needed to paste line breaks properly in prosemirror, but it does seem\n to fix our issue of line breaks outputting as paragraphs. Code taken from this thread:\n https://discuss.prosemirror.net/t/how-to-preserve-hard-breaks-when-pasting-html-into-a-plain-text-schema/4202/4\n */\n handlePaste: function (view, event, slice) {\n const { state } = view;\n const { tr } = state;\n\n if (!state.schema.nodes.hardBreak) {\n return false;\n }\n\n const clipboardText = event.clipboardData?.getData('text/plain').trim();\n\n if (!clipboardText) {\n return false;\n }\n\n const textLines = clipboardText.split(/(?:\\r\\n|\\r|\\n)/g);\n\n const nodes = textLines.reduce((nodes, line, index) => {\n if (line.length > 0) {\n nodes.push(state.schema.text(line));\n }\n\n if (index < textLines.length - 1) {\n nodes.push(state.schema.nodes.hardBreak.create());\n }\n\n return nodes;\n }, []);\n\n view.dispatch(\n tr.replaceSelection(Slice.maxOpen(Fragment.fromArray(nodes))).scrollIntoView(),\n );\n\n return true;\n },\n },\n });\n this.addEditorListeners();\n },\n\n destroyEditor () {\n this.editor.destroy();\n },\n\n /**\n * The Editor exposes event hooks that we have to map our emits into. See\n * https://tiptap.dev/api/events for all events.\n */\n addEditorListeners () {\n // The content has changed.\n this.editor.on('update', () => {\n const value = this.getOutput();\n // When preventTyping is true and user wants to type, we revert to last value\n // If Backspace (keyCode = 8) is pressed, we allow updating the text\n if (this.preventTyping && this.editor.view?.input?.lastKeyCode !== 8) {\n this.editor.commands.setContent(this.value, false);\n return;\n }\n this.$emit('input', value);\n this.$emit('update:modelValue', value);\n });\n\n // The editor is focused.\n this.editor.on('focus', ({ event }) => {\n this.$emit('focus', event);\n });\n\n // The editor isn’t focused anymore.\n this.editor.on('blur', ({ event }) => {\n this.$emit('blur', event);\n });\n },\n\n getOutput () {\n switch (this.outputFormat) {\n case 'json':\n return this.editor.getJSON();\n case 'html':\n return this.editor.getHTML();\n case 'text':\n default:\n return this.editor.getText();\n }\n },\n\n getExtension (extension, options) {\n if (typeof options === 'boolean') {\n return extension;\n }\n return extension.configure?.(options);\n },\n\n updateEditorAttributes (attributes) {\n this.editor.setOptions({ editorProps: { attributes } });\n },\n\n focusEditor () {\n this.editor.commands.focus();\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n .dt-rich-text-editor {\n &--code-block {\n background: var(--dt-color-surface-secondary);\n padding: var(--dt-space-400);\n }\n\n > .ProseMirror {\n box-shadow: none;\n\n p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--dt-color-foreground-placeholder);\n pointer-events: none;\n height: 0;\n }\n\n ul, ol {\n padding-left: var(--dt-space-525);\n }\n\n ul > li {\n list-style-type: disc;\n }\n\n ol > li {\n list-style-type: decimal;\n }\n\n blockquote {\n padding-left: var(--dt-space-400);\n border-left: var(--dt-size-border-300) solid var(--dt-color-foreground-muted-inverted);\n margin-left: 0;\n }\n }\n }\n</style>\n"],"names":["nodes","_openBlock","_createBlock","_mergeProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,YAAY;AAAA,IACV;AAAA,EACD;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL,YAAY;AAAA,MACV,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,eAAe;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,gBAAgB;AAAA,MACd,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAaD,WAAW;AAAA,MACT,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,MAC9B,SAAS;AAAA,MACT,UAAW,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b,WAAK,OAAO,SAAS;IACtB;AAAA,EACF;AACH;;;AA1nBE,SAAAC,UAAA,GAAAC,YAKE,2BALFC,WAKE;AAAA,IAJC,QAAQ,MAAM;AAAA,IACf,WAAQ;AAAA,IACR,OAAM;AAAA,KACE,SAAK,KAAA,GAAA,MAAA,IAAA,CAAA,QAAA,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"root_layout.vue.cjs","sources":["../../../components/root_layout/root_layout.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n 'root-layout',\n 'd-root-layout',\n {\n 'd-root-layout--fixed': fixed,\n 'd-root-layout--inverted': isInverted,\n [`d-root-layout__responsive--${responsiveBreakpoint}`]: !!responsiveBreakpoint,\n },\n ]\"\n data-qa=\"dt-root-layout\"\n >\n <header\n :class=\"['d-root-layout__header', { 'd-root-layout__header--sticky': headerSticky }, headerClass]\"\n data-qa=\"dt-root-layout-header\"\n >\n <!-- @slot Slot for header content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"header\" />\n </header>\n <aside\n ref=\"root-layout-sidebar\"\n tabindex=\"0\"\n :class=\"['d-root-layout__sidebar', sidebarClass]\"\n data-qa=\"dt-root-layout-sidebar\"\n >\n <!-- @slot Slot for sidebar content, be sure to set a width on the element within this. -->\n <slot name=\"sidebar\" />\n </aside>\n <main\n ref=\"root-layout-content\"\n :class=\"['d-root-layout__content', contentClass]\"\n data-qa=\"dt-root-layout-content\"\n tabindex=\"0\"\n >\n <!-- @slot Slot for the main content -->\n <slot />\n </main>\n <footer\n :class=\"['d-root-layout__footer', footerClass]\"\n data-qa=\"dt-root-layout-footer\"\n >\n <!-- @slot Slot for footer content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script>\nimport { ROOT_LAYOUT_SIDEBAR_POSITIONS, ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS } from './root_layout_constants';\n\n/**\n * A root layout provides a standardized group of containers to display content at the root level.\n */\nexport default {\n name: 'DtRootLayout',\n\n props: {\n /**\n * When true, the header, footer and sidebar will be locked in position and the content will\n * be scrollable. When false the header, footer and sidebar will scroll out of view.\n * @values true, false\n */\n fixed: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the header element\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n headerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Scroll the header with the page\n * @values true, false\n */\n headerSticky: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the body\n */\n bodyClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content element\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the sidebar element\n */\n sidebarClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the width of the inner element instead.\n */\n sidebarWidth: {\n type: String,\n default: '256px',\n },\n\n /**\n * Whether the sidebar is on the left or right side\n * Possible options: 'left', 'right'\n * @values left, right\n */\n sidebarPosition: {\n type: String,\n default: 'left',\n validator: (s) => Object.values(ROOT_LAYOUT_SIDEBAR_POSITIONS).includes(s),\n },\n\n /**\n * Additional class name for the footer element\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n footerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Defines the breakpoint when the root layout will change to responsive version\n * @values 'sm', 'md', 'lg', null\n */\n responsiveBreakpoint: {\n type: String,\n default: null,\n validator: (bp) => ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS.includes(bp),\n },\n },\n\n computed: {\n isInverted () {\n return this.sidebarPosition === ROOT_LAYOUT_SIDEBAR_POSITIONS.RIGHT;\n },\n },\n};\n</script>\n"],"names":["ROOT_LAYOUT_SIDEBAR_POSITIONS","ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS","_createElementBlock","_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;AAAA;AAAA;AAAA;AAAA,IAMD,sBAAsB;AAAA,MACpB,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW,CAAC,OAAOC,yDAAmC,SAAS,EAAE;AAAA,IAClE;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,aAAc;AACZ,aAAO,KAAK,oBAAoBD,sBAA6B,8BAAC;AAAA,IAC/D;AAAA,EACF;AACH;;0BAzKEE,IA8CM,mBAAA,OAAA;AAAA,IA7CH,OAAKC,IAAAA,eAAA;AAAA;;;gCAAwF,OAAK;AAAA,mCAAqC,SAAU;AAAA,QAAyC,CAAA,8BAAA,OAAA,oBAAoB,OAAO,OAAoB;AAAA;;IAS1O,WAAQ;AAAA;IAERC,IAAAA,mBAOS,UAAA;AAAA,MANN,OAAKD,IAAAA,eAAA,CAAA,yBAAA,EAAA,iCAA+D,OAAY,aAAA,GAAI,OAAW,WAAA,CAAA;AAAA,MAChG,WAAQ;AAAA;MAIRE,eAAsB,KAAA,QAAA,QAAA;AAAA;IAExBD,IAAAA,mBAQQ,SAAA;AAAA,MAPN,KAAI;AAAA,MACJ,UAAS;AAAA,MACR,qDAAkC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA;MAGRC,eAAuB,KAAA,QAAA,SAAA;AAAA;IAEzBD,IAAAA,mBAQO,QAAA;AAAA,MAPL,KAAI;AAAA,MACH,qDAAkC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA,MACR,UAAS;AAAA;MAGTC,eAAQ,KAAA,QAAA,SAAA;AAAA;IAEVD,IAAAA,mBAOS,UAAA;AAAA,MANN,oDAAiC,OAAW,WAAA,CAAA;AAAA,MAC7C,WAAQ;AAAA;MAIRC,eAAsB,KAAA,QAAA,QAAA;AAAA;;;;;"}
1
+ {"version":3,"file":"root_layout.vue.cjs","sources":["../../../components/root_layout/root_layout.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n 'root-layout',\n 'd-root-layout',\n {\n 'd-root-layout--fixed': fixed,\n 'd-root-layout--inverted': isInverted,\n [`d-root-layout__responsive--${responsiveBreakpoint}`]: !!responsiveBreakpoint,\n },\n ]\"\n data-qa=\"dt-root-layout\"\n >\n <header\n :class=\"['d-root-layout__header', { 'd-root-layout__header--sticky': headerSticky }, headerClass]\"\n data-qa=\"dt-root-layout-header\"\n >\n <!-- @slot Slot for header content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"header\" />\n </header>\n <aside\n ref=\"root-layout-sidebar\"\n tabindex=\"0\"\n :class=\"['d-root-layout__sidebar', sidebarClass]\"\n data-qa=\"dt-root-layout-sidebar\"\n >\n <!-- @slot Slot for sidebar content, be sure to set a width on the element within this. -->\n <slot name=\"sidebar\" />\n </aside>\n <main\n ref=\"root-layout-content\"\n :class=\"['d-root-layout__content', contentClass]\"\n data-qa=\"dt-root-layout-content\"\n tabindex=\"0\"\n >\n <!-- @slot Slot for the main content -->\n <slot />\n </main>\n <footer\n :class=\"['d-root-layout__footer', footerClass]\"\n data-qa=\"dt-root-layout-footer\"\n >\n <!-- @slot Slot for footer content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script>\nimport { ROOT_LAYOUT_SIDEBAR_POSITIONS, ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS } from './root_layout_constants';\n\n/**\n * A root layout provides a standardized group of containers to display content at the root level.\n */\nexport default {\n name: 'DtRootLayout',\n\n props: {\n /**\n * When true, the header, footer and sidebar will be locked in position and the content will\n * be scrollable. When false the header, footer and sidebar will scroll out of view.\n * @values true, false\n */\n fixed: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the header element\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n headerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Scroll the header with the page\n * @values true, false\n */\n headerSticky: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the body\n */\n bodyClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content element\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the sidebar element\n */\n sidebarClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the width of the inner element instead.\n */\n sidebarWidth: {\n type: String,\n default: '256px',\n },\n\n /**\n * Whether the sidebar is on the left or right side\n * Possible options: 'left', 'right'\n * @values left, right\n */\n sidebarPosition: {\n type: String,\n default: 'left',\n validator: (s) => Object.values(ROOT_LAYOUT_SIDEBAR_POSITIONS).includes(s),\n },\n\n /**\n * Additional class name for the footer element\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n footerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Defines the breakpoint when the root layout will change to responsive version\n * @values 'sm', 'md', 'lg', null\n */\n responsiveBreakpoint: {\n type: String,\n default: null,\n validator: (bp) => ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS.includes(bp),\n },\n },\n\n computed: {\n isInverted () {\n return this.sidebarPosition === ROOT_LAYOUT_SIDEBAR_POSITIONS.RIGHT;\n },\n },\n};\n</script>\n"],"names":["ROOT_LAYOUT_SIDEBAR_POSITIONS","ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;;AAwDA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAML,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,aAAa;AAAA,MACX,MAAM,CAAC,QAAQ,OAAO,MAAM;AAAA,MAC5B,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS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AAAA,QAAyC,CAAA,8BAAA,OAAA,oBAAoB,OAAO,OAAoB;AAAA;;IAS1O,WAAQ;AAAA;IAERC,IAAAA,mBAOS,UAAA;AAAA,MANN,OAdPD,IAAAA,eAAA,CAAA,yBAAA,EAAA,iCAc2E,OAAY,aAAA,GAAI,OAAW,WAAA,CAAA;AAAA,MAChG,WAAQ;AAAA;MAIRE,eAAsB,KAAA,QAAA,QAAA;AAAA;IAExBD,IAAAA,mBAQQ,SAAA;AAAA,MAPN,KAAI;AAAA,MACJ,UAAS;AAAA,MACR,OAxBPD,IAAAA,0CAwByC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA;MAGRE,eAAuB,KAAA,QAAA,SAAA;AAAA;IAEzBD,IAAAA,mBAQO,QAAA;AAAA,MAPL,KAAI;AAAA,MACH,OAhCPD,IAAAA,0CAgCyC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA,MACR,UAAS;AAAA;MAGTE,eAAQ,KAAA,QAAA,SAAA;AAAA;IAEVD,IAAAA,mBAOS,UAAA;AAAA,MANN,OAxCPD,IAAAA,yCAwCwC,OAAW,WAAA,CAAA;AAAA,MAC7C,WAAQ;AAAA;MAIRE,eAAsB,KAAA,QAAA,QAAA;AAAA;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"root_layout.vue.js","sources":["../../../components/root_layout/root_layout.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n 'root-layout',\n 'd-root-layout',\n {\n 'd-root-layout--fixed': fixed,\n 'd-root-layout--inverted': isInverted,\n [`d-root-layout__responsive--${responsiveBreakpoint}`]: !!responsiveBreakpoint,\n },\n ]\"\n data-qa=\"dt-root-layout\"\n >\n <header\n :class=\"['d-root-layout__header', { 'd-root-layout__header--sticky': headerSticky }, headerClass]\"\n data-qa=\"dt-root-layout-header\"\n >\n <!-- @slot Slot for header content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"header\" />\n </header>\n <aside\n ref=\"root-layout-sidebar\"\n tabindex=\"0\"\n :class=\"['d-root-layout__sidebar', sidebarClass]\"\n data-qa=\"dt-root-layout-sidebar\"\n >\n <!-- @slot Slot for sidebar content, be sure to set a width on the element within this. -->\n <slot name=\"sidebar\" />\n </aside>\n <main\n ref=\"root-layout-content\"\n :class=\"['d-root-layout__content', contentClass]\"\n data-qa=\"dt-root-layout-content\"\n tabindex=\"0\"\n >\n <!-- @slot Slot for the main content -->\n <slot />\n </main>\n <footer\n :class=\"['d-root-layout__footer', footerClass]\"\n data-qa=\"dt-root-layout-footer\"\n >\n <!-- @slot Slot for footer content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script>\nimport { ROOT_LAYOUT_SIDEBAR_POSITIONS, ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS } from './root_layout_constants';\n\n/**\n * A root layout provides a standardized group of containers to display content at the root level.\n */\nexport default {\n name: 'DtRootLayout',\n\n props: {\n /**\n * When true, the header, footer and sidebar will be locked in position and the content will\n * be scrollable. When false the header, footer and sidebar will scroll out of view.\n * @values true, false\n */\n fixed: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the header element\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n headerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Scroll the header with the page\n * @values true, false\n */\n headerSticky: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the body\n */\n bodyClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content element\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the sidebar element\n */\n sidebarClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the width of the inner element instead.\n */\n sidebarWidth: {\n type: String,\n default: '256px',\n },\n\n /**\n * Whether the sidebar is on the left or right side\n * Possible options: 'left', 'right'\n * @values left, right\n */\n sidebarPosition: {\n type: String,\n default: 'left',\n validator: (s) => Object.values(ROOT_LAYOUT_SIDEBAR_POSITIONS).includes(s),\n },\n\n /**\n * Additional class name for the footer element\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n footerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Defines the breakpoint when the root layout will change to responsive version\n * @values 'sm', 'md', 'lg', null\n */\n responsiveBreakpoint: {\n type: String,\n default: null,\n validator: (bp) => ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS.includes(bp),\n },\n },\n\n computed: {\n isInverted () {\n return this.sidebarPosition === ROOT_LAYOUT_SIDEBAR_POSITIONS.RIGHT;\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;AAwDA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAML,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,aAAa;AAAA,MACX,MAAM,CAAC,QAAQ,OAAO,MAAM;AAAA,MAC5B,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,WAAW;AAAA,MACT,MAAM,CAAC,QAAQ,OAAO,MAAM;AAAA,MAC5B,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,cAAc;AAAA,MACZ,MAAM,CAAC,QAAQ,OAAO,MAAM;AAAA,MAC5B,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAKD,cAAc;AAAA,MACZ,MAAM,C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AA,SAAA;AAAA;IAEzBD,mBAQO,QAAA;AAAA,MAPL,KAAI;AAAA,MACH,iDAAkC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA,MACR,UAAS;AAAA;MAGTC,WAAQ,KAAA,QAAA,SAAA;AAAA;IAEVD,mBAOS,UAAA;AAAA,MANN,gDAAiC,OAAW,WAAA,CAAA;AAAA,MAC7C,WAAQ;AAAA;MAIRC,WAAsB,KAAA,QAAA,QAAA;AAAA;;;;"}
1
+ {"version":3,"file":"root_layout.vue.js","sources":["../../../components/root_layout/root_layout.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n 'root-layout',\n 'd-root-layout',\n {\n 'd-root-layout--fixed': fixed,\n 'd-root-layout--inverted': isInverted,\n [`d-root-layout__responsive--${responsiveBreakpoint}`]: !!responsiveBreakpoint,\n },\n ]\"\n data-qa=\"dt-root-layout\"\n >\n <header\n :class=\"['d-root-layout__header', { 'd-root-layout__header--sticky': headerSticky }, headerClass]\"\n data-qa=\"dt-root-layout-header\"\n >\n <!-- @slot Slot for header content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"header\" />\n </header>\n <aside\n ref=\"root-layout-sidebar\"\n tabindex=\"0\"\n :class=\"['d-root-layout__sidebar', sidebarClass]\"\n data-qa=\"dt-root-layout-sidebar\"\n >\n <!-- @slot Slot for sidebar content, be sure to set a width on the element within this. -->\n <slot name=\"sidebar\" />\n </aside>\n <main\n ref=\"root-layout-content\"\n :class=\"['d-root-layout__content', contentClass]\"\n data-qa=\"dt-root-layout-content\"\n tabindex=\"0\"\n >\n <!-- @slot Slot for the main content -->\n <slot />\n </main>\n <footer\n :class=\"['d-root-layout__footer', footerClass]\"\n data-qa=\"dt-root-layout-footer\"\n >\n <!-- @slot Slot for footer content, be sure to set a height on the element inside this\n if you want a fixed height. -->\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script>\nimport { ROOT_LAYOUT_SIDEBAR_POSITIONS, ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS } from './root_layout_constants';\n\n/**\n * A root layout provides a standardized group of containers to display content at the root level.\n */\nexport default {\n name: 'DtRootLayout',\n\n props: {\n /**\n * When true, the header, footer and sidebar will be locked in position and the content will\n * be scrollable. When false the header, footer and sidebar will scroll out of view.\n * @values true, false\n */\n fixed: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the header element\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n headerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Scroll the header with the page\n * @values true, false\n */\n headerSticky: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional class name for the body\n */\n bodyClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content element\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the sidebar element\n */\n sidebarClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the width of the inner element instead.\n */\n sidebarWidth: {\n type: String,\n default: '256px',\n },\n\n /**\n * Whether the sidebar is on the left or right side\n * Possible options: 'left', 'right'\n * @values left, right\n */\n sidebarPosition: {\n type: String,\n default: 'left',\n validator: (s) => Object.values(ROOT_LAYOUT_SIDEBAR_POSITIONS).includes(s),\n },\n\n /**\n * Additional class name for the footer element\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * DEPRECATED: set the height of the inner element instead.\n */\n footerHeight: {\n type: String,\n default: '64px',\n },\n\n /**\n * Defines the breakpoint when the root layout will change to responsive version\n * @values 'sm', 'md', 'lg', null\n */\n responsiveBreakpoint: {\n type: String,\n default: null,\n validator: (bp) => ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS.includes(bp),\n },\n },\n\n computed: {\n isInverted () {\n return this.sidebarPosition === ROOT_LAYOUT_SIDEBAR_POSITIONS.RIGHT;\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","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AAAA;AAAA;AAAA;AAAA,IAMD,sBAAsB;AAAA,MACpB,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW,CAAC,OAAO,mCAAmC,SAAS,EAAE;AAAA,IAClE;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,aAAc;AACZ,aAAO,KAAK,oBAAoB,8BAA8B;AAAA,IAC/D;AAAA,EACF;AACH;;sBAzKEA,mBA8CM,OAAA;AAAA,IA7CH,OAFLC,eAAA;AAAA;;;gCAEkG,OAAK;AAAA,mCAAqC,SAAU;AAAA,QAAyC,CAAA,8BAAA,OAAA,oBAAoB,OAAO,OAAoB;AAAA;;IAS1O,WAAQ;AAAA;IAERC,mBAOS,UAAA;AAAA,MANN,OAdPD,eAAA,CAAA,yBAAA,EAAA,iCAc2E,OAAY,aAAA,GAAI,OAAW,WAAA,CAAA;AAAA,MAChG,WAAQ;AAAA;MAIRE,WAAsB,KAAA,QAAA,QAAA;AAAA;IAExBD,mBAQQ,SAAA;AAAA,MAPN,KAAI;AAAA,MACJ,UAAS;AAAA,MACR,OAxBPD,0CAwByC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA;MAGRE,WAAuB,KAAA,QAAA,SAAA;AAAA;IAEzBD,mBAQO,QAAA;AAAA,MAPL,KAAI;AAAA,MACH,OAhCPD,0CAgCyC,OAAY,YAAA,CAAA;AAAA,MAC/C,WAAQ;AAAA,MACR,UAAS;AAAA;MAGTE,WAAQ,KAAA,QAAA,SAAA;AAAA;IAEVD,mBAOS,UAAA;AAAA,MANN,OAxCPD,yCAwCwC,OAAW,WAAA,CAAA;AAAA,MAC7C,WAAQ;AAAA;MAIRE,WAAsB,KAAA,QAAA,QAAA;AAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic_scroller.vue.cjs","sources":["../../../../components/scroller/modules/dynamic_scroller.vue"],"sourcesContent":["<template>\n <core-scroller\n ref=\"scroller\"\n :items=\"itemsWithSize\"\n :min-item-size=\"minItemSize\"\n :direction=\"direction\"\n :key-field=\"keyField\"\n :list-tag=\"listTag\"\n :item-tag=\"itemTag\"\n v-bind=\"$attrs\"\n >\n <template\n #default=\"{ item: itemWithSize, index, active }\"\n >\n <dt-scroller-item\n :item=\"itemWithSize\"\n :active=\"active\"\n :size-dependencies=\"[\n itemWithSize.message,\n ]\"\n :data-index=\"index\"\n >\n <slot\n v-bind=\"{\n item: itemWithSize.item,\n index,\n active,\n itemWithSize,\n }\"\n />\n </dt-scroller-item>\n </template>\n </core-scroller>\n</template>\n\n<!-- eslint-disable-next-line max-len -->\n<!-- This is a code from external library (https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/src/components/DynamicScroller.vue)\nWe have modified it for our own specific use. -->\n<script>\nimport CoreScroller from './core_scroller.vue';\nimport DtScrollerItem from './scroller_item.vue';\n\nexport default {\n name: 'DynamicScroller',\n\n components: {\n CoreScroller,\n DtScrollerItem,\n },\n\n provide () {\n if (typeof ResizeObserver !== 'undefined') {\n this.$_resizeObserver = new ResizeObserver(entries => {\n requestAnimationFrame(() => {\n if (!Array.isArray(entries)) {\n return;\n }\n for (const entry of entries) {\n if (entry.target && entry.target.$_vs_onResize) {\n let width, height;\n if (entry.borderBoxSize) {\n const resizeObserverSize = entry.borderBoxSize[0];\n width = resizeObserverSize.inlineSize;\n height = resizeObserverSize.blockSize;\n } else {\n // @TODO remove when contentRect is deprecated\n width = entry.contentRect.width;\n height = entry.contentRect.height;\n }\n entry.target.$_vs_onResize(entry.target.$_vs_id, width, height);\n }\n }\n });\n });\n }\n\n return {\n vscrollData: this.vscrollData,\n vscrollParent: this,\n vscrollResizeObserver: this.$_resizeObserver,\n };\n },\n\n inheritAttrs: false,\n\n props: {\n /*\n * The items to render.\n * If the items are simple arrays, the index will be used as the key.\n * If the items are objects, the keyField will be used as the key.\n */\n items: {\n type: Array,\n required: true,\n },\n\n /*\n * Indicates if the items are dynamic.\n * If true, the items will be wrapped in a DtScrollerItem component.\n * This is required for dynamic items to be able to react to changes in their size.\n */\n dynamic: {\n type: Boolean,\n default: false,\n },\n\n /*\n * The key field to use for the items.\n * Only used if the items are objects.\n */\n keyField: {\n type: String,\n default: 'id',\n },\n\n /*\n * The direction of the scroller.\n * Can be either 'vertical' or 'horizontal'.\n */\n direction: {\n type: String,\n default: 'vertical',\n validator: (value) => ['vertical', 'horizontal'].includes(value),\n },\n\n /*\n * The tag to use for the list.\n */\n listTag: {\n type: String,\n default: 'div',\n },\n\n /*\n * The tag to use for the items.\n */\n itemTag: {\n type: String,\n default: 'div',\n },\n\n /*\n * Display height (or width in horizontal mode) of the items in pixels\n * used to calculate the scroll size and position.\n * Is required for the initial render of items in DYNAMIC size mode.\n */\n minItemSize: {\n type: [Number, String],\n },\n },\n\n data () {\n return {\n vscrollData: {\n active: true,\n sizes: {},\n keyField: this.keyField,\n simpleArray: false,\n },\n };\n },\n\n computed: {\n simpleArray () {\n return this.items.length && typeof this.items[0] !== 'object';\n },\n\n itemsWithSize () {\n const result = [];\n const { items, keyField, simpleArray } = this;\n const sizes = this.vscrollData.sizes;\n const l = items.length;\n for (let i = 0; i < l; i++) {\n const item = items[i];\n const id = simpleArray ? i : item[keyField];\n let size = sizes[id];\n if (typeof size === 'undefined' && !this.$_undefinedMap[id]) {\n size = 0;\n }\n result.push({\n item,\n [keyField]: id,\n size,\n });\n }\n return result;\n },\n },\n\n watch: {\n simpleArray: {\n handler (value) {\n this.vscrollData.simpleArray = value;\n },\n\n immediate: true,\n },\n\n itemsWithSize (next, prev) {\n const scrollTop = this.$el.scrollTop;\n\n // Calculate total diff between prev and next sizes\n // over current scroll top. Then add it to scrollTop to\n // avoid jumping the contents that the user is seeing.\n let prevActiveTop = 0; let activeTop = 0;\n const length = Math.min(next.length, prev.length);\n for (let i = 0; i < length; i++) {\n if (prevActiveTop >= scrollTop) {\n break;\n }\n prevActiveTop += prev[i].size || this.minItemSize;\n activeTop += next[i].size || this.minItemSize;\n }\n const offset = activeTop - prevActiveTop;\n\n if (offset === 0) {\n return;\n }\n\n this.$el.scrollTop += offset;\n },\n },\n\n beforeCreate () {\n this.$_updates = [];\n this.$_undefinedSizes = 0;\n this.$_undefinedMap = {};\n },\n\n activated () {\n this.vscrollData.active = true;\n },\n\n deactivated () {\n this.vscrollData.active = false;\n },\n\n methods: {\n dynamicScrollerUpdateItems () {\n const scroller = this.$refs.scroller;\n if (scroller) scroller._updateVisibleItems(true);\n },\n\n dynamicScrollerUpdateItemsFromBottom () {\n const scroller = this.$refs.scroller;\n if (scroller) scroller._updateVisibleItems(false, true);\n },\n\n scrollToItem (index) {\n const scroller = this.$refs.scroller;\n if (scroller) scroller.scrollToItem(index);\n },\n\n scrollToBottom () {\n if (this.$_scrollingToBottom) return;\n this.$_scrollingToBottom = true;\n const el = this.$el;\n // Item is inserted to the DOM\n this.$nextTick(() => {\n el.scrollTop = el.scrollHeight + 5000;\n // Item sizes are computed\n const cb = () => {\n el.scrollTop = el.scrollHeight + 5000;\n requestAnimationFrame(() => {\n el.scrollTop = el.scrollHeight + 5000;\n if (this.$_undefinedSizes === 0) {\n this.$_scrollingToBottom = false;\n } else {\n requestAnimationFrame(cb);\n }\n });\n };\n requestAnimationFrame(cb);\n });\n },\n },\n};\n</script>\n"],"names":["CoreScroller","DtScrollerItem","_openBlock","_createBlock","_mergeProps","_createVNode","_renderSlot","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;AA0CA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,YAAY;AAAA,kBACVA;AAAAA,IACA,gBAAAC;AAAAA,EACD;AAAA,EAED,UAAW;AACT,QAAI,OAAO,mBAAmB,aAAa;AACzC,WAAK,mBAAmB,IAAI,eAAe,aAAW;AACpD,8BAAsB,MAAM;AAC1B,cAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC3B;AAAA,UACF;AACA,qBAAW,SAAS,SAAS;AAC3B,gBAAI,MAAM,UAAU,MAAM,OAAO,eAAe;AAC9C,kBAAI,OAAO;AACX,kBAAI,MAA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EAAA,MAlBD,cAAc,OAAO,aAAM;AAAA,MAE7CC,IAAAA,YAgBmB,6BAAA;AAAA,QAfhB,MAAM;AAAA,QACN;AAAA,QACA,qBAAiB;AAAA,UAAc,aAAa;AAAA;QAG5C,cAAY;AAAA;6BAEb,MAOE;AAAA,UAPFC,IAAAA,WAOE,KAAA,QAAA,WAAAC,IAAAA,eAAAC,IAAAA,mBAAA;AAAA,YAN4B,MAAA,aAAa;AAAA,YAAkB;AAAA,YAAmB;AAAA,YAAoB;AAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"dynamic_scroller.vue.cjs","sources":["../../../../components/scroller/modules/dynamic_scroller.vue"],"sourcesContent":["<template>\n <core-scroller\n ref=\"scroller\"\n :items=\"itemsWithSize\"\n :min-item-size=\"minItemSize\"\n :direction=\"direction\"\n :key-field=\"keyField\"\n :list-tag=\"listTag\"\n :item-tag=\"itemTag\"\n v-bind=\"$attrs\"\n >\n <template\n #default=\"{ item: itemWithSize, index, active }\"\n >\n <dt-scroller-item\n :item=\"itemWithSize\"\n :active=\"active\"\n :size-dependencies=\"[\n itemWithSize.message,\n ]\"\n :data-index=\"index\"\n >\n <slot\n v-bind=\"{\n item: itemWithSize.item,\n index,\n active,\n itemWithSize,\n }\"\n />\n </dt-scroller-item>\n </template>\n </core-scroller>\n</template>\n\n<!-- eslint-disable-next-line max-len -->\n<!-- This is a code from external library (https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/src/components/DynamicScroller.vue)\nWe have modified it for our own specific use. -->\n<script>\nimport CoreScroller from './core_scroller.vue';\nimport DtScrollerItem from './scroller_item.vue';\n\nexport default {\n name: 'DynamicScroller',\n\n components: {\n CoreScroller,\n DtScrollerItem,\n },\n\n provide () {\n if (typeof ResizeObserver !== 'undefined') {\n this.$_resizeObserver = new ResizeObserver(entries => {\n requestAnimationFrame(() => {\n if (!Array.isArray(entries)) {\n return;\n }\n for (const entry of entries) {\n if (entry.target && entry.target.$_vs_onResize) {\n let width, height;\n if (entry.borderBoxSize) {\n const resizeObserverSize = entry.borderBoxSize[0];\n width = resizeObserverSize.inlineSize;\n height = resizeObserverSize.blockSize;\n } else {\n // @TODO remove when contentRect is deprecated\n width = entry.contentRect.width;\n height = entry.contentRect.height;\n }\n entry.target.$_vs_onResize(entry.target.$_vs_id, width, height);\n }\n }\n });\n });\n }\n\n return {\n vscrollData: this.vscrollData,\n vscrollParent: this,\n vscrollResizeObserver: this.$_resizeObserver,\n };\n },\n\n inheritAttrs: false,\n\n props: {\n /*\n * The items to render.\n * If the items are simple arrays, the index will be used as the key.\n * If the items are objects, the keyField will be used as the key.\n */\n items: {\n type: Array,\n required: true,\n },\n\n /*\n * Indicates if the items are dynamic.\n * If true, the items will be wrapped in a DtScrollerItem component.\n * This is required for dynamic items to be able to react to changes in their size.\n */\n dynamic: {\n type: Boolean,\n default: false,\n },\n\n /*\n * The key field to use for the items.\n * Only used if the items are objects.\n */\n keyField: {\n type: String,\n default: 'id',\n },\n\n /*\n * The direction of the scroller.\n * Can be either 'vertical' or 'horizontal'.\n */\n direction: {\n type: String,\n default: 'vertical',\n validator: (value) => ['vertical', 'horizontal'].includes(value),\n },\n\n /*\n * The tag to use for the list.\n */\n listTag: {\n type: String,\n default: 'div',\n },\n\n /*\n * The tag to use for the items.\n */\n itemTag: {\n type: String,\n default: 'div',\n },\n\n /*\n * Display height (or width in horizontal mode) of the items in pixels\n * used to calculate the scroll size and position.\n * Is required for the initial render of items in DYNAMIC size mode.\n */\n minItemSize: {\n type: [Number, String],\n },\n },\n\n data () {\n return {\n vscrollData: {\n active: true,\n sizes: {},\n keyField: this.keyField,\n simpleArray: false,\n },\n };\n },\n\n computed: {\n simpleArray () {\n return this.items.length && typeof this.items[0] !== 'object';\n },\n\n itemsWithSize () {\n const result = [];\n const { items, keyField, simpleArray } = this;\n const sizes = this.vscrollData.sizes;\n const l = items.length;\n for (let i = 0; i < l; i++) {\n const item = items[i];\n const id = simpleArray ? i : item[keyField];\n let size = sizes[id];\n if (typeof size === 'undefined' && !this.$_undefinedMap[id]) {\n size = 0;\n }\n result.push({\n item,\n [keyField]: id,\n size,\n });\n }\n return result;\n },\n },\n\n watch: {\n simpleArray: {\n handler (value) {\n this.vscrollData.simpleArray = value;\n },\n\n immediate: true,\n },\n\n itemsWithSize (next, prev) {\n const scrollTop = this.$el.scrollTop;\n\n // Calculate total diff between prev and next sizes\n // over current scroll top. Then add it to scrollTop to\n // avoid jumping the contents that the user is seeing.\n let prevActiveTop = 0; let activeTop = 0;\n const length = Math.min(next.length, prev.length);\n for (let i = 0; i < length; i++) {\n if (prevActiveTop >= scrollTop) {\n break;\n }\n prevActiveTop += prev[i].size || this.minItemSize;\n activeTop += next[i].size || this.minItemSize;\n }\n const offset = activeTop - prevActiveTop;\n\n if (offset === 0) {\n return;\n }\n\n this.$el.scrollTop += offset;\n },\n },\n\n beforeCreate () {\n this.$_updates = [];\n this.$_undefinedSizes = 0;\n this.$_undefinedMap = {};\n },\n\n activated () {\n this.vscrollData.active = true;\n },\n\n deactivated () {\n this.vscrollData.active = false;\n },\n\n methods: {\n dynamicScrollerUpdateItems () {\n const scroller = this.$refs.scroller;\n if (scroller) scroller._updateVisibleItems(true);\n },\n\n dynamicScrollerUpdateItemsFromBottom () {\n const scroller = this.$refs.scroller;\n if (scroller) scroller._updateVisibleItems(false, true);\n },\n\n scrollToItem (index) {\n const scroller = this.$refs.scroller;\n if (scroller) scroller.scrollToItem(index);\n },\n\n scrollToBottom () {\n if (this.$_scrollingToBottom) return;\n this.$_scrollingToBottom = true;\n const el = this.$el;\n // Item is inserted to the DOM\n this.$nextTick(() => {\n el.scrollTop = el.scrollHeight + 5000;\n // Item sizes are computed\n const cb = () => {\n el.scrollTop = el.scrollHeight + 5000;\n requestAnimationFrame(() => {\n el.scrollTop = el.scrollHeight + 5000;\n if (this.$_undefinedSizes === 0) {\n this.$_scrollingToBottom = false;\n } else {\n requestAnimationFrame(cb);\n }\n });\n };\n requestAnimationFrame(cb);\n });\n },\n },\n};\n</script>\n"],"names":["CoreScroller","DtScrollerItem","_openBlock","_createBlock","_mergeProps","_createVNode","_withCtx","_renderSlot","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;AA0CA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,YAAY;AAAA,kBACVA;AAAAA,IACA,gBAAAC;AAAAA,EACD;AAAA,EAED,UAAW;AACT,QAAI,OAAO,mBAAmB,aAAa;AACzC,WAAK,mBAAmB,IAAI,eAAe,aAAW;AACpD,8BAAsB,MAAM;AAC1B,cAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC3B;AAAA,UACF;AACA,qBAAW,SAAS,SAAS;AAC3B,gBAAI,MAAM,UAAU,MAAM,OAAO,eAAe;AAC9C,kBAAI,OAAO;AACX,kBAAI,MAAM,eAAe;AACvB,sBAAM,qBAAqB,MAAM,cAAc,CAAC;AAChD,wBAAQ,mBAAmB;AAC3B,yBAAS,mBAAmB;AAAA,qBACvB;AAEL,wBAAQ,MAAM,YAAY;AAC1B,yBAAS,MAAM,YAAY;AAAA,cAC7B;AACA,oBAAM,OAAO,cAAc,MAAM,OAAO,SAAS,OAAO,MAAM;AAAA,YAChE;AAAA,UACF;AAAA,QACF,CAAC;AAAA,MACH,CAAC;AAAA,IACH;AAEA,WAAO;AAAA,MACL,aAAa,KAAK;AAAA,MAClB,eAAe;AAAA,MACf,uBAAuB,KAAK;AAAA;EAE/B;AAAA,EAED,cAAc;AAAA,EAEd,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAML,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,WAAW;AAAA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