@dialpad/dialtone 9.130.0 → 9.131.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1131) hide show
  1. package/dist/css/dialtone-default-theme.css +8 -2
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone-docs.json +1 -1
  4. package/dist/css/dialtone.css +8 -2
  5. package/dist/css/dialtone.min.css +1 -1
  6. package/dist/css/tokens-docs.json +1 -1
  7. package/dist/tokens/css/tokens-dp-dark.css +104 -265
  8. package/dist/tokens/css/tokens-expressive-dark.css +104 -265
  9. package/dist/tokens/css/tokens-expressive-sm-dark.css +104 -265
  10. package/dist/tokens/css/tokens-tmo-dark.css +104 -265
  11. package/dist/tokens/doc.json +43289 -45313
  12. package/dist/tokens/themes/dp-dark.cjs +1 -1
  13. package/dist/tokens/themes/dp-dark.js +1 -1
  14. package/dist/tokens/themes/expressive-dark.cjs +1 -1
  15. package/dist/tokens/themes/expressive-dark.js +1 -1
  16. package/dist/tokens/themes/expressive-sm-dark.cjs +1 -1
  17. package/dist/tokens/themes/expressive-sm-dark.js +1 -1
  18. package/dist/tokens/themes/tmo-dark.cjs +1 -1
  19. package/dist/tokens/themes/tmo-dark.js +1 -1
  20. package/dist/tokens/tokens-dp-dark.json +11 -34
  21. package/dist/tokens/tokens-expressive-dark.json +11 -34
  22. package/dist/tokens/tokens-expressive-sm-dark.json +11 -34
  23. package/dist/tokens/tokens-tmo-dark.json +11 -34
  24. package/dist/vue2/common/constants/index.cjs.map +1 -1
  25. package/dist/vue2/common/constants/index.js.map +1 -1
  26. package/dist/vue2/common/dates/index.cjs.map +1 -1
  27. package/dist/vue2/common/dates/index.js +3 -3
  28. package/dist/vue2/common/dates/index.js.map +1 -1
  29. package/dist/vue2/common/emoji/index.cjs.map +1 -1
  30. package/dist/vue2/common/emoji/index.js.map +1 -1
  31. package/dist/vue2/common/mixins/dom.cjs.map +1 -1
  32. package/dist/vue2/common/mixins/dom.js.map +1 -1
  33. package/dist/vue2/common/mixins/input-group.cjs.map +1 -1
  34. package/dist/vue2/common/mixins/input-group.js +5 -5
  35. package/dist/vue2/common/mixins/input-group.js.map +1 -1
  36. package/dist/vue2/common/mixins/input.cjs.map +1 -1
  37. package/dist/vue2/common/mixins/input.js.map +1 -1
  38. package/dist/vue2/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  39. package/dist/vue2/common/mixins/keyboard-list-navigation.js.map +1 -1
  40. package/dist/vue2/common/mixins/modal.cjs.map +1 -1
  41. package/dist/vue2/common/mixins/modal.js.map +1 -1
  42. package/dist/vue2/common/mixins/skeleton.cjs.map +1 -1
  43. package/dist/vue2/common/mixins/skeleton.js.map +1 -1
  44. package/dist/vue2/common/utils/index.cjs.map +1 -1
  45. package/dist/vue2/common/utils/index.js +0 -1
  46. package/dist/vue2/common/utils/index.js.map +1 -1
  47. package/dist/vue2/common/validators/index.cjs.map +1 -1
  48. package/dist/vue2/common/validators/index.js.map +1 -1
  49. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  50. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  51. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +4 -4
  52. package/dist/vue2/lib/avatar/avatar-constants.cjs.map +1 -1
  53. package/dist/vue2/lib/avatar/avatar-constants.js.map +1 -1
  54. package/dist/vue2/lib/avatar/avatar.cjs.map +1 -1
  55. package/dist/vue2/lib/avatar/avatar.js +11 -11
  56. package/dist/vue2/lib/avatar/avatar.js.map +1 -1
  57. package/dist/vue2/lib/avatar/utils.cjs.map +1 -1
  58. package/dist/vue2/lib/avatar/utils.js.map +1 -1
  59. package/dist/vue2/lib/badge/badge.cjs.map +1 -1
  60. package/dist/vue2/lib/badge/badge.js +7 -7
  61. package/dist/vue2/lib/badge/badge.js.map +1 -1
  62. package/dist/vue2/lib/banner/banner.cjs +1 -1
  63. package/dist/vue2/lib/banner/banner.cjs.map +1 -1
  64. package/dist/vue2/lib/banner/banner.js +4 -4
  65. package/dist/vue2/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  66. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  67. package/dist/vue2/lib/button/button-constants.cjs.map +1 -1
  68. package/dist/vue2/lib/button/button-constants.js.map +1 -1
  69. package/dist/vue2/lib/button/button.cjs +1 -1
  70. package/dist/vue2/lib/button/button.cjs.map +1 -1
  71. package/dist/vue2/lib/button/button.js +14 -14
  72. package/dist/vue2/lib/button/button.js.map +1 -1
  73. package/dist/vue2/lib/button-group/button-group.cjs.map +1 -1
  74. package/dist/vue2/lib/button-group/buttons-decorator.cjs.map +1 -1
  75. package/dist/vue2/lib/callbar-button/callbar-button-constants.cjs.map +1 -1
  76. package/dist/vue2/lib/callbar-button/callbar-button-constants.js.map +1 -1
  77. package/dist/vue2/lib/callbar-button/callbar-button.cjs +1 -1
  78. package/dist/vue2/lib/callbar-button/callbar-button.cjs.map +1 -1
  79. package/dist/vue2/lib/callbar-button/callbar-button.js +3 -3
  80. package/dist/vue2/lib/callbar-button/callbar-button.js.map +1 -1
  81. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  82. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  83. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +6 -6
  84. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  85. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  86. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  87. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +6 -6
  88. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  89. package/dist/vue2/lib/callbox/callbox-constants.cjs.map +1 -1
  90. package/dist/vue2/lib/callbox/callbox-constants.js.map +1 -1
  91. package/dist/vue2/lib/callbox/callbox.cjs.map +1 -1
  92. package/dist/vue2/lib/callbox/callbox.js +5 -5
  93. package/dist/vue2/lib/checkbox/checkbox-constants.cjs.map +1 -1
  94. package/dist/vue2/lib/checkbox/checkbox-constants.js.map +1 -1
  95. package/dist/vue2/lib/checkbox/checkbox.cjs.map +1 -1
  96. package/dist/vue2/lib/checkbox-group/checkbox-group.cjs.map +1 -1
  97. package/dist/vue2/lib/checkbox-group/checkbox-group.js.map +1 -1
  98. package/dist/vue2/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
  99. package/dist/vue2/lib/chip/chip-constants.cjs.map +1 -1
  100. package/dist/vue2/lib/chip/chip-constants.js.map +1 -1
  101. package/dist/vue2/lib/chip/chip.cjs.map +1 -1
  102. package/dist/vue2/lib/chip/chip.js +3 -3
  103. package/dist/vue2/lib/collapsible/collapsible.cjs +1 -1
  104. package/dist/vue2/lib/collapsible/collapsible.cjs.map +1 -1
  105. package/dist/vue2/lib/collapsible/collapsible.js +7 -7
  106. package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
  107. package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
  108. package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
  109. package/dist/vue2/lib/combobox/combobox-loading-list.cjs +1 -1
  110. package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
  111. package/dist/vue2/lib/combobox/combobox-loading-list.js +3 -3
  112. package/dist/vue2/lib/combobox/combobox.cjs +1 -1
  113. package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
  114. package/dist/vue2/lib/combobox/combobox.js +1 -1
  115. package/dist/vue2/lib/combobox/combobox.js.map +1 -1
  116. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
  117. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
  118. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-story-constants.cjs.map +1 -1
  119. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-story-constants.js.map +1 -1
  120. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  121. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  122. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +4 -4
  123. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  124. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  125. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  126. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +9 -9
  127. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  128. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  129. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +7 -7
  130. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  131. package/dist/vue2/lib/contact-info/contact-info.cjs.map +1 -1
  132. package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
  133. package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
  134. package/dist/vue2/lib/contact-row/contact-row.js +4 -4
  135. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  136. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  137. package/dist/vue2/lib/datepicker/datepicker.js +83 -83
  138. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  139. package/dist/vue2/lib/datepicker/formatUtils.cjs.map +1 -1
  140. package/dist/vue2/lib/datepicker/formatUtils.js.map +1 -1
  141. package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
  142. package/dist/vue2/lib/datepicker/utils.js.map +1 -1
  143. package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
  144. package/dist/vue2/lib/dropdown/dropdown-constants.cjs.map +1 -1
  145. package/dist/vue2/lib/dropdown/dropdown-constants.js.map +1 -1
  146. package/dist/vue2/lib/dropdown/dropdown-story-constants.cjs.map +1 -1
  147. package/dist/vue2/lib/dropdown/dropdown-story-constants.js.map +1 -1
  148. package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
  149. package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
  150. package/dist/vue2/lib/dropdown/dropdown.js +1 -1
  151. package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
  152. package/dist/vue2/lib/editor/editor-constants.cjs.map +1 -1
  153. package/dist/vue2/lib/editor/editor-constants.js.map +1 -1
  154. package/dist/vue2/lib/editor/editor.cjs +1 -1
  155. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  156. package/dist/vue2/lib/editor/editor.js +44 -44
  157. package/dist/vue2/lib/editor/editor.js.map +1 -1
  158. package/dist/vue2/lib/emoji/emoji.cjs.map +1 -1
  159. package/dist/vue2/lib/emoji/emoji.js +4 -4
  160. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  161. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  162. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  163. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  164. package/dist/vue2/lib/emoji-picker/emoji-picker.js +9 -9
  165. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  166. package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  167. package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
  168. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  169. package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
  170. package/dist/vue2/lib/emoji-row/emoji-row.js +5 -5
  171. package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
  172. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  173. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
  174. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.js +1 -1
  175. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
  176. package/dist/vue2/lib/empty-state/empty-state-constants.cjs.map +1 -1
  177. package/dist/vue2/lib/empty-state/empty-state-constants.js.map +1 -1
  178. package/dist/vue2/lib/empty-state/empty-state.cjs.map +1 -1
  179. package/dist/vue2/lib/empty-state/empty-state.js +3 -3
  180. package/dist/vue2/lib/empty-state/empty-state.js.map +1 -1
  181. package/dist/vue2/lib/feed-item-pill/feed-item-pill-constants.cjs.map +1 -1
  182. package/dist/vue2/lib/feed-item-pill/feed-item-pill-constants.js.map +1 -1
  183. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  184. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  185. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +3 -3
  186. package/dist/vue2/lib/feed-item-row/feed-item-row-constants.cjs.map +1 -1
  187. package/dist/vue2/lib/feed-item-row/feed-item-row-constants.js.map +1 -1
  188. package/dist/vue2/lib/feed-item-row/feed-item-row.cjs +1 -1
  189. package/dist/vue2/lib/feed-item-row/feed-item-row.cjs.map +1 -1
  190. package/dist/vue2/lib/feed-item-row/feed-item-row.js +9 -9
  191. package/dist/vue2/lib/feed-item-row/feed-item-row.js.map +1 -1
  192. package/dist/vue2/lib/general-row/general-row-constants.cjs.map +1 -1
  193. package/dist/vue2/lib/general-row/general-row-constants.js.map +1 -1
  194. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  195. package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
  196. package/dist/vue2/lib/general-row/general-row.js +14 -14
  197. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  198. package/dist/vue2/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
  199. package/dist/vue2/lib/general-row/leftbar-general-row-icon.js +30 -30
  200. package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
  201. package/dist/vue2/lib/grouped-chip/grouped-chip.cjs.map +1 -1
  202. package/dist/vue2/lib/hovercard/hovercard.cjs +1 -1
  203. package/dist/vue2/lib/hovercard/hovercard.cjs.map +1 -1
  204. package/dist/vue2/lib/hovercard/hovercard.js +7 -7
  205. package/dist/vue2/lib/hovercard/hovercard.js.map +1 -1
  206. package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
  207. package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
  208. package/dist/vue2/lib/icon/icon.js +3 -3
  209. package/dist/vue2/lib/illustration/illustration-constants.cjs.map +1 -1
  210. package/dist/vue2/lib/illustration/illustration-constants.js.map +1 -1
  211. package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
  212. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  213. package/dist/vue2/lib/input/input-constants.cjs.map +1 -1
  214. package/dist/vue2/lib/input/input-constants.js.map +1 -1
  215. package/dist/vue2/lib/input/input.cjs.map +1 -1
  216. package/dist/vue2/lib/input/input.js +8 -8
  217. package/dist/vue2/lib/input/input.js.map +1 -1
  218. package/dist/vue2/lib/input-group/input-group.cjs.map +1 -1
  219. package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  220. package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
  221. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  222. package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
  223. package/dist/vue2/lib/ivr-node/ivr-node.js +27 -27
  224. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  225. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.js +13 -13
  226. package/dist/vue2/lib/link/link-constants.cjs.map +1 -1
  227. package/dist/vue2/lib/link/link-constants.js.map +1 -1
  228. package/dist/vue2/lib/link/link.cjs.map +1 -1
  229. package/dist/vue2/lib/link/link.js +3 -3
  230. package/dist/vue2/lib/list-item/list-item-constants.cjs.map +1 -1
  231. package/dist/vue2/lib/list-item/list-item-constants.js.map +1 -1
  232. package/dist/vue2/lib/list-item/list-item.cjs.map +1 -1
  233. package/dist/vue2/lib/list-item/list-item.js +1 -1
  234. package/dist/vue2/lib/list-item/list-item.js.map +1 -1
  235. package/dist/vue2/lib/list-item-group/list-item-group-constants.cjs.map +1 -1
  236. package/dist/vue2/lib/list-item-group/list-item-group-constants.js.map +1 -1
  237. package/dist/vue2/lib/list-item-group/list-item-group.cjs.map +1 -1
  238. package/dist/vue2/lib/loader/loader.cjs.map +1 -1
  239. package/dist/vue2/lib/message-input/last-active-nodes.cjs +1 -1
  240. package/dist/vue2/lib/message-input/last-active-nodes.cjs.map +1 -1
  241. package/dist/vue2/lib/message-input/last-active-nodes.js +22 -22
  242. package/dist/vue2/lib/message-input/last-active-nodes.js.map +1 -1
  243. package/dist/vue2/lib/message-input/message-input-button.cjs +1 -1
  244. package/dist/vue2/lib/message-input/message-input-button.cjs.map +1 -1
  245. package/dist/vue2/lib/message-input/message-input-button.js +8 -8
  246. package/dist/vue2/lib/message-input/message-input-constants.cjs.map +1 -1
  247. package/dist/vue2/lib/message-input/message-input-constants.js.map +1 -1
  248. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  249. package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
  250. package/dist/vue2/lib/message-input/message-input-link.js +8 -8
  251. package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
  252. package/dist/vue2/lib/message-input/message-input-topbar.js +9 -9
  253. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  254. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  255. package/dist/vue2/lib/message-input/message-input.js +28 -28
  256. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  257. package/dist/vue2/lib/modal/modal.cjs +1 -1
  258. package/dist/vue2/lib/modal/modal.cjs.map +1 -1
  259. package/dist/vue2/lib/modal/modal.js +12 -12
  260. package/dist/vue2/lib/modal/modal.js.map +1 -1
  261. package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
  262. package/dist/vue2/lib/notice/notice-constants.cjs.map +1 -1
  263. package/dist/vue2/lib/notice/notice-constants.js.map +1 -1
  264. package/dist/vue2/lib/notice/notice-icon.cjs.map +1 -1
  265. package/dist/vue2/lib/notice/notice-icon.js +9 -9
  266. package/dist/vue2/lib/notice/notice.cjs.map +1 -1
  267. package/dist/vue2/lib/notice/notice.js +3 -3
  268. package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
  269. package/dist/vue2/lib/pagination/pagination.js +3 -3
  270. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  271. package/dist/vue2/lib/popover/popover-constants.cjs.map +1 -1
  272. package/dist/vue2/lib/popover/popover-constants.js.map +1 -1
  273. package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
  274. package/dist/vue2/lib/popover/popover.cjs +1 -1
  275. package/dist/vue2/lib/popover/popover.cjs.map +1 -1
  276. package/dist/vue2/lib/popover/popover.js +16 -16
  277. package/dist/vue2/lib/popover/popover.js.map +1 -1
  278. package/dist/vue2/lib/popover/tippy-utils.cjs +1 -1
  279. package/dist/vue2/lib/popover/tippy-utils.cjs.map +1 -1
  280. package/dist/vue2/lib/popover/tippy-utils.js +16 -18
  281. package/dist/vue2/lib/popover/tippy-utils.js.map +1 -1
  282. package/dist/vue2/lib/presence/presence.cjs.map +1 -1
  283. package/dist/vue2/lib/radio/radio-constants.cjs.map +1 -1
  284. package/dist/vue2/lib/radio/radio-constants.js.map +1 -1
  285. package/dist/vue2/lib/radio/radio.cjs.map +1 -1
  286. package/dist/vue2/lib/radio-group/radio-group.cjs.map +1 -1
  287. package/dist/vue2/lib/radio-group/radios-decorator.cjs.map +1 -1
  288. package/dist/vue2/lib/recipes/eslint.config.cjs +2 -0
  289. package/dist/vue2/lib/recipes/eslint.config.cjs.map +1 -0
  290. package/dist/vue2/lib/recipes/eslint.config.js +12 -0
  291. package/dist/vue2/lib/recipes/eslint.config.js.map +1 -0
  292. package/dist/vue2/lib/rich-text-editor/channel-suggestion.cjs.map +1 -1
  293. package/dist/vue2/lib/rich-text-editor/channel-suggestion.js.map +1 -1
  294. package/dist/vue2/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  295. package/dist/vue2/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  296. package/dist/vue2/lib/rich-text-editor/rich-text-editor-constants.cjs.map +1 -1
  297. package/dist/vue2/lib/rich-text-editor/rich-text-editor-constants.js.map +1 -1
  298. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +2 -2
  299. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  300. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +72 -65
  301. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  302. package/dist/vue2/lib/rich-text-editor/slash-command-suggestion.cjs.map +1 -1
  303. package/dist/vue2/lib/rich-text-editor/slash-command-suggestion.js.map +1 -1
  304. package/dist/vue2/lib/root-layout/root-layout-constants.cjs.map +1 -1
  305. package/dist/vue2/lib/root-layout/root-layout-constants.js.map +1 -1
  306. package/dist/vue2/lib/root-layout/root-layout.cjs.map +1 -1
  307. package/dist/vue2/lib/root-layout/root-layout.js +1 -1
  308. package/dist/vue2/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
  309. package/dist/vue2/lib/scrollbar-directive/scrollbar.js.map +1 -1
  310. package/dist/vue2/lib/select-menu/select-menu-constants.cjs.map +1 -1
  311. package/dist/vue2/lib/select-menu/select-menu-constants.js.map +1 -1
  312. package/dist/vue2/lib/select-menu/select-menu.cjs.map +1 -1
  313. package/dist/vue2/lib/select-menu/select-menu.js +7 -7
  314. package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  315. package/dist/vue2/lib/skeleton/skeleton-constants.cjs.map +1 -1
  316. package/dist/vue2/lib/skeleton/skeleton-constants.js.map +1 -1
  317. package/dist/vue2/lib/skeleton/skeleton-list-item.cjs.map +1 -1
  318. package/dist/vue2/lib/skeleton/skeleton-paragraph.cjs.map +1 -1
  319. package/dist/vue2/lib/skeleton/skeleton-paragraph.js.map +1 -1
  320. package/dist/vue2/lib/skeleton/skeleton-shape.cjs.map +1 -1
  321. package/dist/vue2/lib/skeleton/skeleton-shape.js +1 -1
  322. package/dist/vue2/lib/skeleton/skeleton-text.cjs.map +1 -1
  323. package/dist/vue2/lib/skeleton/skeleton.cjs +1 -1
  324. package/dist/vue2/lib/skeleton/skeleton.cjs.map +1 -1
  325. package/dist/vue2/lib/skeleton/skeleton.js +1 -1
  326. package/dist/vue2/lib/skeleton/skeleton.js.map +1 -1
  327. package/dist/vue2/lib/split-button/split-button-alpha.cjs.map +1 -1
  328. package/dist/vue2/lib/split-button/split-button-constants.cjs.map +1 -1
  329. package/dist/vue2/lib/split-button/split-button-constants.js.map +1 -1
  330. package/dist/vue2/lib/split-button/split-button-omega.cjs.map +1 -1
  331. package/dist/vue2/lib/split-button/split-button.cjs.map +1 -1
  332. package/dist/vue2/lib/split-button/split-button.js +5 -5
  333. package/dist/vue2/lib/split-button/split-button.js.map +1 -1
  334. package/dist/vue2/lib/stack/stack-constants.cjs.map +1 -1
  335. package/dist/vue2/lib/stack/stack-constants.js.map +1 -1
  336. package/dist/vue2/lib/stack/stack.cjs.map +1 -1
  337. package/dist/vue2/lib/stack/stack.js +9 -9
  338. package/dist/vue2/lib/stack/utils.cjs.map +1 -1
  339. package/dist/vue2/lib/stack/utils.js.map +1 -1
  340. package/dist/vue2/lib/stack/validators.cjs.map +1 -1
  341. package/dist/vue2/lib/stack/validators.js.map +1 -1
  342. package/dist/vue2/lib/tab/tab-group.cjs.map +1 -1
  343. package/dist/vue2/lib/tab/tab-group.js +5 -5
  344. package/dist/vue2/lib/tab/tab-group.js.map +1 -1
  345. package/dist/vue2/lib/tab/tab.cjs.map +1 -1
  346. package/dist/vue2/lib/toast/toast-constants.cjs.map +1 -1
  347. package/dist/vue2/lib/toast/toast-constants.js.map +1 -1
  348. package/dist/vue2/lib/toast/toast.cjs +1 -1
  349. package/dist/vue2/lib/toast/toast.cjs.map +1 -1
  350. package/dist/vue2/lib/toast/toast.js +11 -11
  351. package/dist/vue2/lib/toggle/toggle-constants.cjs.map +1 -1
  352. package/dist/vue2/lib/toggle/toggle-constants.js.map +1 -1
  353. package/dist/vue2/lib/toggle/toggle.cjs +1 -1
  354. package/dist/vue2/lib/toggle/toggle.cjs.map +1 -1
  355. package/dist/vue2/lib/toggle/toggle.js +1 -1
  356. package/dist/vue2/lib/toggle/toggle.js.map +1 -1
  357. package/dist/vue2/lib/tooltip/tooltip-constants.cjs.map +1 -1
  358. package/dist/vue2/lib/tooltip/tooltip-constants.js.map +1 -1
  359. package/dist/vue2/lib/tooltip/tooltip.cjs +1 -1
  360. package/dist/vue2/lib/tooltip/tooltip.cjs.map +1 -1
  361. package/dist/vue2/lib/tooltip/tooltip.js +63 -64
  362. package/dist/vue2/lib/tooltip/tooltip.js.map +1 -1
  363. package/dist/vue2/lib/tooltip-directive/tooltip.cjs.map +1 -1
  364. package/dist/vue2/lib/tooltip-directive/tooltip.js.map +1 -1
  365. package/dist/vue2/lib/top-banner-info/top-banner-info-constants.cjs.map +1 -1
  366. package/dist/vue2/lib/top-banner-info/top-banner-info-constants.js.map +1 -1
  367. package/dist/vue2/lib/top-banner-info/top-banner-info.cjs.map +1 -1
  368. package/dist/vue2/lib/unread-pill/unread-pill-constants.cjs.map +1 -1
  369. package/dist/vue2/lib/unread-pill/unread-pill-constants.js.map +1 -1
  370. package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
  371. package/dist/vue2/lib/unread-pill/unread-pill.js +6 -6
  372. package/dist/vue2/lib/validation-messages/validation-messages.cjs.map +1 -1
  373. package/dist/vue2/lib/validation-messages/validation-messages.js +3 -3
  374. package/dist/vue2/localization/de-DE.cjs.map +1 -1
  375. package/dist/vue2/localization/de-DE.js.map +1 -1
  376. package/dist/vue2/localization/en-US.cjs.map +1 -1
  377. package/dist/vue2/localization/en-US.js.map +1 -1
  378. package/dist/vue2/localization/es-LA.cjs.map +1 -1
  379. package/dist/vue2/localization/es-LA.js.map +1 -1
  380. package/dist/vue2/localization/fr-FR.cjs.map +1 -1
  381. package/dist/vue2/localization/fr-FR.js.map +1 -1
  382. package/dist/vue2/localization/index.cjs.map +1 -1
  383. package/dist/vue2/localization/index.js.map +1 -1
  384. package/dist/vue2/localization/it-IT.cjs.map +1 -1
  385. package/dist/vue2/localization/it-IT.js.map +1 -1
  386. package/dist/vue2/localization/ja-JP.cjs.map +1 -1
  387. package/dist/vue2/localization/ja-JP.js.map +1 -1
  388. package/dist/vue2/localization/nl-NL.cjs.map +1 -1
  389. package/dist/vue2/localization/nl-NL.js.map +1 -1
  390. package/dist/vue2/localization/pt-BR.cjs.map +1 -1
  391. package/dist/vue2/localization/pt-BR.js.map +1 -1
  392. package/dist/vue2/localization/ru-RU.cjs.map +1 -1
  393. package/dist/vue2/localization/ru-RU.js.map +1 -1
  394. package/dist/vue2/localization/zh-CN.cjs.map +1 -1
  395. package/dist/vue2/localization/zh-CN.js.map +1 -1
  396. package/dist/vue2/node_modules/@linusborg/vue-simple-portal.cjs.map +1 -1
  397. package/dist/vue2/node_modules/@linusborg/vue-simple-portal.js.map +1 -1
  398. package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
  399. package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
  400. package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
  401. package/dist/vue2/types/common/constants/index.d.ts.map +1 -1
  402. package/dist/vue2/types/common/dates/index.d.ts.map +1 -1
  403. package/dist/vue2/types/common/emoji/index.d.ts.map +1 -1
  404. package/dist/vue2/types/common/mixins/dom.d.ts.map +1 -1
  405. package/dist/vue2/types/common/mixins/input.d.ts +7 -7
  406. package/dist/vue2/types/common/mixins/input.d.ts.map +1 -1
  407. package/dist/vue2/types/common/mixins/input_group.d.ts +3 -3
  408. package/dist/vue2/types/common/mixins/modal.d.ts.map +1 -1
  409. package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
  410. package/dist/vue2/types/components/avatar/avatar.vue.d.ts +8 -8
  411. package/dist/vue2/types/components/badge/badge.vue.d.ts +3 -3
  412. package/dist/vue2/types/components/banner/banner.vue.d.ts +2 -2
  413. package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
  414. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -1
  415. package/dist/vue2/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +1 -1
  416. package/dist/vue2/types/components/button/button.vue.d.ts +2 -2
  417. package/dist/vue2/types/components/button/button_constants.d.ts.map +1 -1
  418. package/dist/vue2/types/components/card/card.vue.d.ts +8 -8
  419. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts +7 -7
  420. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts +3 -3
  421. package/dist/vue2/types/components/chip/chip.vue.d.ts +5 -5
  422. package/dist/vue2/types/components/collapsible/collapsible.vue.d.ts +4 -4
  423. package/dist/vue2/types/components/combobox/combobox.vue.d.ts +3 -3
  424. package/dist/vue2/types/components/combobox/combobox_empty-list.vue.d.ts +2 -2
  425. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  426. package/dist/vue2/types/components/datepicker/formatUtils.d.ts +5 -5
  427. package/dist/vue2/types/components/datepicker/formatUtils.d.ts.map +1 -1
  428. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +1 -1
  429. package/dist/vue2/types/components/description_list/description_list.vue.d.ts +4 -4
  430. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +8 -8
  431. package/dist/vue2/types/components/emoji/emoji.vue.d.ts +2 -2
  432. package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts.map +1 -1
  433. package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +1 -1
  434. package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  435. package/dist/vue2/types/components/eslint.config.d.ts +8 -0
  436. package/dist/vue2/types/components/eslint.config.d.ts.map +1 -0
  437. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  438. package/dist/vue2/types/components/input/input.vue.d.ts +7 -7
  439. package/dist/vue2/types/components/input_group/input_group.vue.d.ts +3 -3
  440. package/dist/vue2/types/components/item_layout/item_layout.vue.d.ts +1 -1
  441. package/dist/vue2/types/components/link/link_constants.d.ts.map +1 -1
  442. package/dist/vue2/types/components/list_item/list_item.vue.d.ts +2 -2
  443. package/dist/vue2/types/components/list_item_group/list_item_group.vue.d.ts +4 -4
  444. package/dist/vue2/types/components/modal/modal.vue.d.ts +13 -13
  445. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  446. package/dist/vue2/types/components/notice/notice.vue.d.ts +2 -2
  447. package/dist/vue2/types/components/popover/popover.vue.d.ts +22 -22
  448. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  449. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +2 -2
  450. package/dist/vue2/types/components/popover/tippy_utils.d.ts +2 -3
  451. package/dist/vue2/types/components/popover/tippy_utils.d.ts.map +1 -1
  452. package/dist/vue2/types/components/radio/radio.vue.d.ts +7 -7
  453. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts +3 -3
  454. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  455. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
  456. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +12 -17
  457. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  458. package/dist/vue2/types/components/root_layout/root_layout.vue.d.ts +8 -8
  459. package/dist/vue2/types/components/select_menu/select_menu.vue.d.ts +10 -10
  460. package/dist/vue2/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  461. package/dist/vue2/types/components/skeleton/skeleton-paragraph.vue.d.ts +1 -1
  462. package/dist/vue2/types/components/skeleton/skeleton-shape.vue.d.ts +3 -3
  463. package/dist/vue2/types/components/skeleton/skeleton-text.vue.d.ts +1 -1
  464. package/dist/vue2/types/components/skeleton/skeleton.vue.d.ts +7 -7
  465. package/dist/vue2/types/components/skeleton/skeleton_constants.d.ts.map +1 -1
  466. package/dist/vue2/types/components/split_button/split_button-alpha.vue.d.ts +3 -3
  467. package/dist/vue2/types/components/split_button/split_button-omega.vue.d.ts +1 -1
  468. package/dist/vue2/types/components/split_button/split_button.vue.d.ts +2 -2
  469. package/dist/vue2/types/components/tab/tab.vue.d.ts +2 -2
  470. package/dist/vue2/types/components/tab/tab_group.vue.d.ts +2 -2
  471. package/dist/vue2/types/components/tab/tab_panel.vue.d.ts +2 -2
  472. package/dist/vue2/types/components/tab/tab_panel.vue.d.ts.map +1 -1
  473. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +2 -2
  474. package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +2 -2
  475. package/dist/vue2/types/components/toast/toast.vue.d.ts +7 -7
  476. package/dist/vue2/types/components/toast/toast_constants.d.ts.map +1 -1
  477. package/dist/vue2/types/components/toggle/toggle.vue.d.ts +5 -5
  478. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +8 -8
  479. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  480. package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  481. package/dist/vue2/types/components/validation_messages/validation_messages.vue.d.ts +0 -1
  482. package/dist/vue2/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  483. package/dist/vue2/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  484. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +5 -5
  485. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +6 -6
  486. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  487. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  488. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +7 -7
  489. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +3 -3
  490. package/dist/vue2/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -1
  491. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +4 -4
  492. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  493. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  494. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts.map +1 -1
  495. package/dist/vue2/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -1
  496. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -15
  497. package/dist/vue2/types/recipes/eslint.config.d.ts +8 -0
  498. package/dist/vue2/types/recipes/eslint.config.d.ts.map +1 -0
  499. package/dist/vue2/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +1 -1
  500. package/dist/vue2/types/recipes/leftbar/callbox/callbox.vue.d.ts +1 -1
  501. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +1 -1
  502. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  503. package/dist/vue3/common/constants/index.cjs.map +1 -1
  504. package/dist/vue3/common/constants/index.js.map +1 -1
  505. package/dist/vue3/common/dates/index.cjs.map +1 -1
  506. package/dist/vue3/common/dates/index.js +3 -3
  507. package/dist/vue3/common/dates/index.js.map +1 -1
  508. package/dist/vue3/common/emoji/index.cjs.map +1 -1
  509. package/dist/vue3/common/emoji/index.js.map +1 -1
  510. package/dist/vue3/common/mixins/dom.cjs.map +1 -1
  511. package/dist/vue3/common/mixins/dom.js.map +1 -1
  512. package/dist/vue3/common/mixins/input-group.cjs.map +1 -1
  513. package/dist/vue3/common/mixins/input-group.js +5 -5
  514. package/dist/vue3/common/mixins/input-group.js.map +1 -1
  515. package/dist/vue3/common/mixins/input.cjs.map +1 -1
  516. package/dist/vue3/common/mixins/input.js.map +1 -1
  517. package/dist/vue3/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  518. package/dist/vue3/common/mixins/keyboard-list-navigation.js.map +1 -1
  519. package/dist/vue3/common/mixins/modal.cjs.map +1 -1
  520. package/dist/vue3/common/mixins/modal.js.map +1 -1
  521. package/dist/vue3/common/mixins/skeleton.cjs.map +1 -1
  522. package/dist/vue3/common/mixins/skeleton.js.map +1 -1
  523. package/dist/vue3/common/utils/index.cjs.map +1 -1
  524. package/dist/vue3/common/utils/index.js +3 -3
  525. package/dist/vue3/common/utils/index.js.map +1 -1
  526. package/dist/vue3/common/validators/index.cjs.map +1 -1
  527. package/dist/vue3/common/validators/index.js.map +1 -1
  528. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  529. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  530. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +5 -5
  531. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  532. package/dist/vue3/lib/avatar/avatar-constants.cjs.map +1 -1
  533. package/dist/vue3/lib/avatar/avatar-constants.js.map +1 -1
  534. package/dist/vue3/lib/avatar/avatar.cjs.map +1 -1
  535. package/dist/vue3/lib/avatar/avatar.js +11 -11
  536. package/dist/vue3/lib/avatar/avatar.js.map +1 -1
  537. package/dist/vue3/lib/avatar/utils.cjs.map +1 -1
  538. package/dist/vue3/lib/avatar/utils.js.map +1 -1
  539. package/dist/vue3/lib/badge/badge.cjs.map +1 -1
  540. package/dist/vue3/lib/badge/badge.js +12 -12
  541. package/dist/vue3/lib/badge/badge.js.map +1 -1
  542. package/dist/vue3/lib/banner/banner.cjs +1 -1
  543. package/dist/vue3/lib/banner/banner.cjs.map +1 -1
  544. package/dist/vue3/lib/banner/banner.js +7 -7
  545. package/dist/vue3/lib/banner/banner.js.map +1 -1
  546. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  547. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.js +5 -5
  548. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
  549. package/dist/vue3/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  550. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js +1 -1
  551. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  552. package/dist/vue3/lib/button/button-constants.cjs.map +1 -1
  553. package/dist/vue3/lib/button/button-constants.js.map +1 -1
  554. package/dist/vue3/lib/button/button.cjs.map +1 -1
  555. package/dist/vue3/lib/button/button.js +22 -22
  556. package/dist/vue3/lib/button/button.js.map +1 -1
  557. package/dist/vue3/lib/button-group/button-group.cjs.map +1 -1
  558. package/dist/vue3/lib/button-group/button-group.js +2 -2
  559. package/dist/vue3/lib/button-group/button-group.js.map +1 -1
  560. package/dist/vue3/lib/button-group/buttons-decorator.cjs.map +1 -1
  561. package/dist/vue3/lib/button-group/buttons-decorator.js +2 -2
  562. package/dist/vue3/lib/button-group/buttons-decorator.js.map +1 -1
  563. package/dist/vue3/lib/callbar-button/callbar-button-constants.cjs.map +1 -1
  564. package/dist/vue3/lib/callbar-button/callbar-button-constants.js.map +1 -1
  565. package/dist/vue3/lib/callbar-button/callbar-button.cjs +1 -1
  566. package/dist/vue3/lib/callbar-button/callbar-button.cjs.map +1 -1
  567. package/dist/vue3/lib/callbar-button/callbar-button.js +13 -13
  568. package/dist/vue3/lib/callbar-button/callbar-button.js.map +1 -1
  569. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  570. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  571. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +13 -13
  572. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  573. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  574. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  575. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js +13 -13
  576. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  577. package/dist/vue3/lib/callbox/callbox-constants.cjs.map +1 -1
  578. package/dist/vue3/lib/callbox/callbox-constants.js.map +1 -1
  579. package/dist/vue3/lib/callbox/callbox.cjs.map +1 -1
  580. package/dist/vue3/lib/callbox/callbox.js +6 -6
  581. package/dist/vue3/lib/callbox/callbox.js.map +1 -1
  582. package/dist/vue3/lib/card/card.cjs.map +1 -1
  583. package/dist/vue3/lib/card/card.js +4 -4
  584. package/dist/vue3/lib/card/card.js.map +1 -1
  585. package/dist/vue3/lib/checkbox/checkbox-constants.cjs.map +1 -1
  586. package/dist/vue3/lib/checkbox/checkbox-constants.js.map +1 -1
  587. package/dist/vue3/lib/checkbox/checkbox.cjs.map +1 -1
  588. package/dist/vue3/lib/checkbox/checkbox.js +8 -8
  589. package/dist/vue3/lib/checkbox/checkbox.js.map +1 -1
  590. package/dist/vue3/lib/checkbox-group/checkbox-group.cjs.map +1 -1
  591. package/dist/vue3/lib/checkbox-group/checkbox-group.js.map +1 -1
  592. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
  593. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.js +1 -1
  594. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.js.map +1 -1
  595. package/dist/vue3/lib/chip/chip-constants.cjs.map +1 -1
  596. package/dist/vue3/lib/chip/chip-constants.js.map +1 -1
  597. package/dist/vue3/lib/chip/chip.cjs.map +1 -1
  598. package/dist/vue3/lib/chip/chip.js +13 -13
  599. package/dist/vue3/lib/chip/chip.js.map +1 -1
  600. package/dist/vue3/lib/codeblock/codeblock.cjs.map +1 -1
  601. package/dist/vue3/lib/codeblock/codeblock.js +2 -2
  602. package/dist/vue3/lib/codeblock/codeblock.js.map +1 -1
  603. package/dist/vue3/lib/collapsible/collapsible-lazy-show.cjs.map +1 -1
  604. package/dist/vue3/lib/collapsible/collapsible-lazy-show.js +3 -3
  605. package/dist/vue3/lib/collapsible/collapsible-lazy-show.js.map +1 -1
  606. package/dist/vue3/lib/collapsible/collapsible.cjs +1 -1
  607. package/dist/vue3/lib/collapsible/collapsible.cjs.map +1 -1
  608. package/dist/vue3/lib/collapsible/collapsible.js +18 -18
  609. package/dist/vue3/lib/collapsible/collapsible.js.map +1 -1
  610. package/dist/vue3/lib/combobox/combobox-constants.cjs.map +1 -1
  611. package/dist/vue3/lib/combobox/combobox-constants.js.map +1 -1
  612. package/dist/vue3/lib/combobox/combobox-empty-list.cjs.map +1 -1
  613. package/dist/vue3/lib/combobox/combobox-empty-list.js +2 -2
  614. package/dist/vue3/lib/combobox/combobox-empty-list.js.map +1 -1
  615. package/dist/vue3/lib/combobox/combobox-loading-list.cjs +1 -1
  616. package/dist/vue3/lib/combobox/combobox-loading-list.cjs.map +1 -1
  617. package/dist/vue3/lib/combobox/combobox-loading-list.js +6 -6
  618. package/dist/vue3/lib/combobox/combobox-loading-list.js.map +1 -1
  619. package/dist/vue3/lib/combobox/combobox.cjs +1 -1
  620. package/dist/vue3/lib/combobox/combobox.cjs.map +1 -1
  621. package/dist/vue3/lib/combobox/combobox.js +8 -8
  622. package/dist/vue3/lib/combobox/combobox.js.map +1 -1
  623. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
  624. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
  625. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-story-constants.cjs.map +1 -1
  626. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-story-constants.js.map +1 -1
  627. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  628. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  629. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +16 -16
  630. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  631. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  632. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  633. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js +13 -13
  634. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
  635. package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  636. package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  637. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js +19 -19
  638. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  639. package/dist/vue3/lib/contact-info/contact-info.cjs.map +1 -1
  640. package/dist/vue3/lib/contact-info/contact-info.js +1 -1
  641. package/dist/vue3/lib/contact-info/contact-info.js.map +1 -1
  642. package/dist/vue3/lib/contact-row/contact-row.cjs +1 -1
  643. package/dist/vue3/lib/contact-row/contact-row.cjs.map +1 -1
  644. package/dist/vue3/lib/contact-row/contact-row.js +12 -12
  645. package/dist/vue3/lib/contact-row/contact-row.js.map +1 -1
  646. package/dist/vue3/lib/datepicker/datepicker.cjs +1 -1
  647. package/dist/vue3/lib/datepicker/datepicker.cjs.map +1 -1
  648. package/dist/vue3/lib/datepicker/datepicker.js +139 -139
  649. package/dist/vue3/lib/datepicker/datepicker.js.map +1 -1
  650. package/dist/vue3/lib/datepicker/formatUtils.cjs.map +1 -1
  651. package/dist/vue3/lib/datepicker/formatUtils.js.map +1 -1
  652. package/dist/vue3/lib/datepicker/utils.cjs.map +1 -1
  653. package/dist/vue3/lib/datepicker/utils.js.map +1 -1
  654. package/dist/vue3/lib/description-list/description-list.cjs.map +1 -1
  655. package/dist/vue3/lib/description-list/description-list.js +3 -3
  656. package/dist/vue3/lib/description-list/description-list.js.map +1 -1
  657. package/dist/vue3/lib/dropdown/dropdown-constants.cjs.map +1 -1
  658. package/dist/vue3/lib/dropdown/dropdown-constants.js.map +1 -1
  659. package/dist/vue3/lib/dropdown/dropdown-list.cjs.map +1 -1
  660. package/dist/vue3/lib/dropdown/dropdown-list.js +5 -5
  661. package/dist/vue3/lib/dropdown/dropdown-list.js.map +1 -1
  662. package/dist/vue3/lib/dropdown/dropdown-separator.cjs.map +1 -1
  663. package/dist/vue3/lib/dropdown/dropdown-separator.js +2 -2
  664. package/dist/vue3/lib/dropdown/dropdown-separator.js.map +1 -1
  665. package/dist/vue3/lib/dropdown/dropdown-story-constants.cjs.map +1 -1
  666. package/dist/vue3/lib/dropdown/dropdown-story-constants.js.map +1 -1
  667. package/dist/vue3/lib/dropdown/dropdown.cjs +1 -1
  668. package/dist/vue3/lib/dropdown/dropdown.cjs.map +1 -1
  669. package/dist/vue3/lib/dropdown/dropdown.js +3 -3
  670. package/dist/vue3/lib/dropdown/dropdown.js.map +1 -1
  671. package/dist/vue3/lib/editor/editor-constants.cjs.map +1 -1
  672. package/dist/vue3/lib/editor/editor-constants.js.map +1 -1
  673. package/dist/vue3/lib/editor/editor.cjs +1 -1
  674. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  675. package/dist/vue3/lib/editor/editor.js +48 -48
  676. package/dist/vue3/lib/editor/editor.js.map +1 -1
  677. package/dist/vue3/lib/emoji/emoji.cjs.map +1 -1
  678. package/dist/vue3/lib/emoji/emoji.js +6 -6
  679. package/dist/vue3/lib/emoji/emoji.js.map +1 -1
  680. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  681. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  682. package/dist/vue3/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  683. package/dist/vue3/lib/emoji-picker/emoji-picker.js +2 -2
  684. package/dist/vue3/lib/emoji-picker/emoji-picker.js.map +1 -1
  685. package/dist/vue3/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  686. package/dist/vue3/lib/emoji-row/emoji-row-constants.js.map +1 -1
  687. package/dist/vue3/lib/emoji-row/emoji-row.cjs +1 -1
  688. package/dist/vue3/lib/emoji-row/emoji-row.cjs.map +1 -1
  689. package/dist/vue3/lib/emoji-row/emoji-row.js +10 -10
  690. package/dist/vue3/lib/emoji-row/emoji-row.js.map +1 -1
  691. package/dist/vue3/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  692. package/dist/vue3/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
  693. package/dist/vue3/lib/emoji-text-wrapper/emoji-text-wrapper.js +1 -1
  694. package/dist/vue3/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
  695. package/dist/vue3/lib/empty-state/empty-state-constants.cjs.map +1 -1
  696. package/dist/vue3/lib/empty-state/empty-state-constants.js.map +1 -1
  697. package/dist/vue3/lib/empty-state/empty-state.cjs.map +1 -1
  698. package/dist/vue3/lib/empty-state/empty-state.js +7 -7
  699. package/dist/vue3/lib/feed-item-pill/feed-item-pill-constants.cjs.map +1 -1
  700. package/dist/vue3/lib/feed-item-pill/feed-item-pill-constants.js.map +1 -1
  701. package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  702. package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  703. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js +6 -6
  704. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  705. package/dist/vue3/lib/feed-item-row/feed-item-row-constants.cjs.map +1 -1
  706. package/dist/vue3/lib/feed-item-row/feed-item-row-constants.js.map +1 -1
  707. package/dist/vue3/lib/feed-item-row/feed-item-row.cjs +1 -1
  708. package/dist/vue3/lib/feed-item-row/feed-item-row.cjs.map +1 -1
  709. package/dist/vue3/lib/feed-item-row/feed-item-row.js +56 -56
  710. package/dist/vue3/lib/feed-item-row/feed-item-row.js.map +1 -1
  711. package/dist/vue3/lib/general-row/general-row-constants.cjs.map +1 -1
  712. package/dist/vue3/lib/general-row/general-row-constants.js.map +1 -1
  713. package/dist/vue3/lib/general-row/general-row.cjs +1 -1
  714. package/dist/vue3/lib/general-row/general-row.cjs.map +1 -1
  715. package/dist/vue3/lib/general-row/general-row.js +30 -30
  716. package/dist/vue3/lib/general-row/general-row.js.map +1 -1
  717. package/dist/vue3/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
  718. package/dist/vue3/lib/general-row/leftbar-general-row-icon.js +35 -35
  719. package/dist/vue3/lib/general-row/leftbar-general-row-icon.js.map +1 -1
  720. package/dist/vue3/lib/group-row/group-row.cjs.map +1 -1
  721. package/dist/vue3/lib/group-row/group-row.js +3 -3
  722. package/dist/vue3/lib/group-row/group-row.js.map +1 -1
  723. package/dist/vue3/lib/grouped-chip/grouped-chip.cjs.map +1 -1
  724. package/dist/vue3/lib/grouped-chip/grouped-chip.js +14 -14
  725. package/dist/vue3/lib/grouped-chip/grouped-chip.js.map +1 -1
  726. package/dist/vue3/lib/hovercard/hovercard.cjs +1 -1
  727. package/dist/vue3/lib/hovercard/hovercard.cjs.map +1 -1
  728. package/dist/vue3/lib/hovercard/hovercard.js +6 -6
  729. package/dist/vue3/lib/hovercard/hovercard.js.map +1 -1
  730. package/dist/vue3/lib/icon/icon-constants.cjs.map +1 -1
  731. package/dist/vue3/lib/icon/icon-constants.js.map +1 -1
  732. package/dist/vue3/lib/icon/icon.cjs.map +1 -1
  733. package/dist/vue3/lib/icon/icon.js +6 -6
  734. package/dist/vue3/lib/icon/icon.js.map +1 -1
  735. package/dist/vue3/lib/illustration/illustration-constants.cjs.map +1 -1
  736. package/dist/vue3/lib/illustration/illustration-constants.js.map +1 -1
  737. package/dist/vue3/lib/illustration/illustration.cjs.map +1 -1
  738. package/dist/vue3/lib/illustration/illustration.js +3 -3
  739. package/dist/vue3/lib/image-viewer/image-viewer.cjs.map +1 -1
  740. package/dist/vue3/lib/image-viewer/image-viewer.js +12 -12
  741. package/dist/vue3/lib/image-viewer/image-viewer.js.map +1 -1
  742. package/dist/vue3/lib/input/input-constants.cjs.map +1 -1
  743. package/dist/vue3/lib/input/input-constants.js.map +1 -1
  744. package/dist/vue3/lib/input/input.cjs.map +1 -1
  745. package/dist/vue3/lib/input/input.js +20 -20
  746. package/dist/vue3/lib/input/input.js.map +1 -1
  747. package/dist/vue3/lib/input-group/input-group.cjs.map +1 -1
  748. package/dist/vue3/lib/input-group/input-group.js +8 -8
  749. package/dist/vue3/lib/input-group/input-group.js.map +1 -1
  750. package/dist/vue3/lib/item-layout/item-layout.cjs.map +1 -1
  751. package/dist/vue3/lib/item-layout/item-layout.js +13 -13
  752. package/dist/vue3/lib/item-layout/item-layout.js.map +1 -1
  753. package/dist/vue3/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  754. package/dist/vue3/lib/ivr-node/ivr-node-constants.js.map +1 -1
  755. package/dist/vue3/lib/ivr-node/ivr-node.cjs +1 -1
  756. package/dist/vue3/lib/ivr-node/ivr-node.cjs.map +1 -1
  757. package/dist/vue3/lib/ivr-node/ivr-node.js +36 -36
  758. package/dist/vue3/lib/ivr-node/ivr-node.js.map +1 -1
  759. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  760. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.js +15 -15
  761. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  762. package/dist/vue3/lib/lazy-show/lazy-show.cjs.map +1 -1
  763. package/dist/vue3/lib/lazy-show/lazy-show.js +2 -2
  764. package/dist/vue3/lib/lazy-show/lazy-show.js.map +1 -1
  765. package/dist/vue3/lib/link/link-constants.cjs.map +1 -1
  766. package/dist/vue3/lib/link/link-constants.js.map +1 -1
  767. package/dist/vue3/lib/link/link.cjs.map +1 -1
  768. package/dist/vue3/lib/link/link.js +5 -5
  769. package/dist/vue3/lib/link/link.js.map +1 -1
  770. package/dist/vue3/lib/list-item/list-item-constants.cjs.map +1 -1
  771. package/dist/vue3/lib/list-item/list-item-constants.js.map +1 -1
  772. package/dist/vue3/lib/list-item/list-item.cjs.map +1 -1
  773. package/dist/vue3/lib/list-item/list-item.js +4 -4
  774. package/dist/vue3/lib/list-item/list-item.js.map +1 -1
  775. package/dist/vue3/lib/list-item-group/list-item-group-constants.cjs.map +1 -1
  776. package/dist/vue3/lib/list-item-group/list-item-group-constants.js.map +1 -1
  777. package/dist/vue3/lib/list-item-group/list-item-group.cjs.map +1 -1
  778. package/dist/vue3/lib/list-item-group/list-item-group.js +5 -5
  779. package/dist/vue3/lib/list-item-group/list-item-group.js.map +1 -1
  780. package/dist/vue3/lib/loader/loader.cjs.map +1 -1
  781. package/dist/vue3/lib/loader/loader.js +2 -2
  782. package/dist/vue3/lib/loader/loader.js.map +1 -1
  783. package/dist/vue3/lib/message-input/last-active-nodes.cjs +1 -1
  784. package/dist/vue3/lib/message-input/last-active-nodes.cjs.map +1 -1
  785. package/dist/vue3/lib/message-input/last-active-nodes.js +22 -22
  786. package/dist/vue3/lib/message-input/last-active-nodes.js.map +1 -1
  787. package/dist/vue3/lib/message-input/message-input-button.cjs +1 -1
  788. package/dist/vue3/lib/message-input/message-input-button.cjs.map +1 -1
  789. package/dist/vue3/lib/message-input/message-input-button.js +14 -14
  790. package/dist/vue3/lib/message-input/message-input-button.js.map +1 -1
  791. package/dist/vue3/lib/message-input/message-input-constants.cjs.map +1 -1
  792. package/dist/vue3/lib/message-input/message-input-constants.js.map +1 -1
  793. package/dist/vue3/lib/message-input/message-input-link.cjs +1 -1
  794. package/dist/vue3/lib/message-input/message-input-link.cjs.map +1 -1
  795. package/dist/vue3/lib/message-input/message-input-link.js +10 -10
  796. package/dist/vue3/lib/message-input/message-input-link.js.map +1 -1
  797. package/dist/vue3/lib/message-input/message-input-topbar.cjs.map +1 -1
  798. package/dist/vue3/lib/message-input/message-input-topbar.js +11 -11
  799. package/dist/vue3/lib/message-input/message-input-topbar.js.map +1 -1
  800. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  801. package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
  802. package/dist/vue3/lib/message-input/message-input.js +32 -32
  803. package/dist/vue3/lib/message-input/message-input.js.map +1 -1
  804. package/dist/vue3/lib/modal/modal.cjs +1 -1
  805. package/dist/vue3/lib/modal/modal.cjs.map +1 -1
  806. package/dist/vue3/lib/modal/modal.js +14 -14
  807. package/dist/vue3/lib/modal/modal.js.map +1 -1
  808. package/dist/vue3/lib/notice/notice-action.cjs.map +1 -1
  809. package/dist/vue3/lib/notice/notice-action.js +1 -1
  810. package/dist/vue3/lib/notice/notice-action.js.map +1 -1
  811. package/dist/vue3/lib/notice/notice-constants.cjs.map +1 -1
  812. package/dist/vue3/lib/notice/notice-constants.js.map +1 -1
  813. package/dist/vue3/lib/notice/notice-content.cjs.map +1 -1
  814. package/dist/vue3/lib/notice/notice-content.js +6 -6
  815. package/dist/vue3/lib/notice/notice-content.js.map +1 -1
  816. package/dist/vue3/lib/notice/notice-icon.cjs.map +1 -1
  817. package/dist/vue3/lib/notice/notice-icon.js +13 -13
  818. package/dist/vue3/lib/notice/notice-icon.js.map +1 -1
  819. package/dist/vue3/lib/notice/notice.cjs.map +1 -1
  820. package/dist/vue3/lib/notice/notice.js +4 -4
  821. package/dist/vue3/lib/notice/notice.js.map +1 -1
  822. package/dist/vue3/lib/pagination/pagination.cjs.map +1 -1
  823. package/dist/vue3/lib/pagination/pagination.js +4 -4
  824. package/dist/vue3/lib/pagination/pagination.js.map +1 -1
  825. package/dist/vue3/lib/popover/popover-constants.cjs.map +1 -1
  826. package/dist/vue3/lib/popover/popover-constants.js.map +1 -1
  827. package/dist/vue3/lib/popover/popover-header-footer.cjs.map +1 -1
  828. package/dist/vue3/lib/popover/popover-header-footer.js +6 -6
  829. package/dist/vue3/lib/popover/popover-header-footer.js.map +1 -1
  830. package/dist/vue3/lib/popover/popover.cjs +1 -1
  831. package/dist/vue3/lib/popover/popover.cjs.map +1 -1
  832. package/dist/vue3/lib/popover/popover.js +17 -17
  833. package/dist/vue3/lib/popover/popover.js.map +1 -1
  834. package/dist/vue3/lib/popover/tippy-utils.cjs +1 -1
  835. package/dist/vue3/lib/popover/tippy-utils.cjs.map +1 -1
  836. package/dist/vue3/lib/popover/tippy-utils.js +16 -18
  837. package/dist/vue3/lib/popover/tippy-utils.js.map +1 -1
  838. package/dist/vue3/lib/presence/presence.cjs.map +1 -1
  839. package/dist/vue3/lib/presence/presence.js +4 -4
  840. package/dist/vue3/lib/presence/presence.js.map +1 -1
  841. package/dist/vue3/lib/radio/radio-constants.cjs.map +1 -1
  842. package/dist/vue3/lib/radio/radio-constants.js.map +1 -1
  843. package/dist/vue3/lib/radio/radio.cjs.map +1 -1
  844. package/dist/vue3/lib/radio/radio.js +13 -13
  845. package/dist/vue3/lib/radio/radio.js.map +1 -1
  846. package/dist/vue3/lib/radio-group/radio-group.cjs.map +1 -1
  847. package/dist/vue3/lib/radio-group/radio-group.js.map +1 -1
  848. package/dist/vue3/lib/radio-group/radios-decorator.cjs.map +1 -1
  849. package/dist/vue3/lib/radio-group/radios-decorator.js +1 -1
  850. package/dist/vue3/lib/radio-group/radios-decorator.js.map +1 -1
  851. package/dist/vue3/lib/recipes/eslint.config.cjs +2 -0
  852. package/dist/vue3/lib/recipes/eslint.config.cjs.map +1 -0
  853. package/dist/vue3/lib/recipes/eslint.config.js +12 -0
  854. package/dist/vue3/lib/recipes/eslint.config.js.map +1 -0
  855. package/dist/vue3/lib/rich-text-editor/channel-suggestion.cjs.map +1 -1
  856. package/dist/vue3/lib/rich-text-editor/channel-suggestion.js.map +1 -1
  857. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  858. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  859. package/dist/vue3/lib/rich-text-editor/rich-text-editor-constants.cjs.map +1 -1
  860. package/dist/vue3/lib/rich-text-editor/rich-text-editor-constants.js.map +1 -1
  861. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
  862. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  863. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +61 -54
  864. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  865. package/dist/vue3/lib/rich-text-editor/slash-command-suggestion.cjs.map +1 -1
  866. package/dist/vue3/lib/rich-text-editor/slash-command-suggestion.js.map +1 -1
  867. package/dist/vue3/lib/root-layout/root-layout-constants.cjs.map +1 -1
  868. package/dist/vue3/lib/root-layout/root-layout-constants.js.map +1 -1
  869. package/dist/vue3/lib/root-layout/root-layout.cjs.map +1 -1
  870. package/dist/vue3/lib/root-layout/root-layout.js +3 -3
  871. package/dist/vue3/lib/root-layout/root-layout.js.map +1 -1
  872. package/dist/vue3/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
  873. package/dist/vue3/lib/scrollbar-directive/scrollbar.js.map +1 -1
  874. package/dist/vue3/lib/scroller/scroller.cjs +1 -1
  875. package/dist/vue3/lib/scroller/scroller.cjs.map +1 -1
  876. package/dist/vue3/lib/scroller/scroller.js +2 -2
  877. package/dist/vue3/lib/scroller/scroller.js.map +1 -1
  878. package/dist/vue3/lib/select-menu/select-menu-constants.cjs.map +1 -1
  879. package/dist/vue3/lib/select-menu/select-menu-constants.js.map +1 -1
  880. package/dist/vue3/lib/select-menu/select-menu.cjs.map +1 -1
  881. package/dist/vue3/lib/select-menu/select-menu.js +21 -21
  882. package/dist/vue3/lib/select-menu/select-menu.js.map +1 -1
  883. package/dist/vue3/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  884. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js +3 -3
  885. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  886. package/dist/vue3/lib/skeleton/skeleton-constants.cjs.map +1 -1
  887. package/dist/vue3/lib/skeleton/skeleton-constants.js.map +1 -1
  888. package/dist/vue3/lib/skeleton/skeleton-list-item.cjs.map +1 -1
  889. package/dist/vue3/lib/skeleton/skeleton-list-item.js +2 -2
  890. package/dist/vue3/lib/skeleton/skeleton-list-item.js.map +1 -1
  891. package/dist/vue3/lib/skeleton/skeleton-paragraph.cjs.map +1 -1
  892. package/dist/vue3/lib/skeleton/skeleton-paragraph.js +1 -1
  893. package/dist/vue3/lib/skeleton/skeleton-paragraph.js.map +1 -1
  894. package/dist/vue3/lib/skeleton/skeleton-shape.cjs.map +1 -1
  895. package/dist/vue3/lib/skeleton/skeleton-shape.js +5 -5
  896. package/dist/vue3/lib/skeleton/skeleton-shape.js.map +1 -1
  897. package/dist/vue3/lib/skeleton/skeleton-text.cjs.map +1 -1
  898. package/dist/vue3/lib/skeleton/skeleton-text.js +7 -7
  899. package/dist/vue3/lib/skeleton/skeleton-text.js.map +1 -1
  900. package/dist/vue3/lib/skeleton/skeleton.cjs +1 -1
  901. package/dist/vue3/lib/skeleton/skeleton.cjs.map +1 -1
  902. package/dist/vue3/lib/skeleton/skeleton.js +11 -11
  903. package/dist/vue3/lib/skeleton/skeleton.js.map +1 -1
  904. package/dist/vue3/lib/split-button/split-button-alpha.cjs.map +1 -1
  905. package/dist/vue3/lib/split-button/split-button-alpha.js +2 -2
  906. package/dist/vue3/lib/split-button/split-button-alpha.js.map +1 -1
  907. package/dist/vue3/lib/split-button/split-button-constants.cjs.map +1 -1
  908. package/dist/vue3/lib/split-button/split-button-constants.js.map +1 -1
  909. package/dist/vue3/lib/split-button/split-button-omega.cjs.map +1 -1
  910. package/dist/vue3/lib/split-button/split-button-omega.js +2 -2
  911. package/dist/vue3/lib/split-button/split-button-omega.js.map +1 -1
  912. package/dist/vue3/lib/split-button/split-button.cjs.map +1 -1
  913. package/dist/vue3/lib/split-button/split-button.js +19 -19
  914. package/dist/vue3/lib/split-button/split-button.js.map +1 -1
  915. package/dist/vue3/lib/stack/stack-constants.cjs.map +1 -1
  916. package/dist/vue3/lib/stack/stack-constants.js.map +1 -1
  917. package/dist/vue3/lib/stack/stack.cjs.map +1 -1
  918. package/dist/vue3/lib/stack/stack.js +11 -11
  919. package/dist/vue3/lib/stack/stack.js.map +1 -1
  920. package/dist/vue3/lib/stack/utils.cjs.map +1 -1
  921. package/dist/vue3/lib/stack/utils.js.map +1 -1
  922. package/dist/vue3/lib/stack/validators.cjs.map +1 -1
  923. package/dist/vue3/lib/stack/validators.js +5 -5
  924. package/dist/vue3/lib/stack/validators.js.map +1 -1
  925. package/dist/vue3/lib/tab/tab-group.cjs.map +1 -1
  926. package/dist/vue3/lib/tab/tab-group.js +7 -7
  927. package/dist/vue3/lib/tab/tab-group.js.map +1 -1
  928. package/dist/vue3/lib/tab/tab-panel.cjs.map +1 -1
  929. package/dist/vue3/lib/tab/tab-panel.js +2 -2
  930. package/dist/vue3/lib/tab/tab-panel.js.map +1 -1
  931. package/dist/vue3/lib/tab/tab.cjs.map +1 -1
  932. package/dist/vue3/lib/tab/tab.js +2 -2
  933. package/dist/vue3/lib/tab/tab.js.map +1 -1
  934. package/dist/vue3/lib/time-pill/time-pill.cjs.map +1 -1
  935. package/dist/vue3/lib/time-pill/time-pill.js +2 -2
  936. package/dist/vue3/lib/time-pill/time-pill.js.map +1 -1
  937. package/dist/vue3/lib/toast/toast-constants.cjs.map +1 -1
  938. package/dist/vue3/lib/toast/toast-constants.js.map +1 -1
  939. package/dist/vue3/lib/toast/toast.cjs +1 -1
  940. package/dist/vue3/lib/toast/toast.cjs.map +1 -1
  941. package/dist/vue3/lib/toast/toast.js +12 -12
  942. package/dist/vue3/lib/toast/toast.js.map +1 -1
  943. package/dist/vue3/lib/toggle/toggle-constants.cjs.map +1 -1
  944. package/dist/vue3/lib/toggle/toggle-constants.js.map +1 -1
  945. package/dist/vue3/lib/toggle/toggle.cjs +1 -1
  946. package/dist/vue3/lib/toggle/toggle.cjs.map +1 -1
  947. package/dist/vue3/lib/toggle/toggle.js +14 -14
  948. package/dist/vue3/lib/toggle/toggle.js.map +1 -1
  949. package/dist/vue3/lib/tooltip/tooltip-constants.cjs.map +1 -1
  950. package/dist/vue3/lib/tooltip/tooltip-constants.js.map +1 -1
  951. package/dist/vue3/lib/tooltip/tooltip.cjs +1 -1
  952. package/dist/vue3/lib/tooltip/tooltip.cjs.map +1 -1
  953. package/dist/vue3/lib/tooltip/tooltip.js +20 -22
  954. package/dist/vue3/lib/tooltip/tooltip.js.map +1 -1
  955. package/dist/vue3/lib/tooltip-directive/tooltip.cjs.map +1 -1
  956. package/dist/vue3/lib/tooltip-directive/tooltip.js +1 -1
  957. package/dist/vue3/lib/tooltip-directive/tooltip.js.map +1 -1
  958. package/dist/vue3/lib/top-banner-info/top-banner-info-constants.cjs.map +1 -1
  959. package/dist/vue3/lib/top-banner-info/top-banner-info-constants.js.map +1 -1
  960. package/dist/vue3/lib/top-banner-info/top-banner-info.cjs.map +1 -1
  961. package/dist/vue3/lib/top-banner-info/top-banner-info.js +2 -2
  962. package/dist/vue3/lib/top-banner-info/top-banner-info.js.map +1 -1
  963. package/dist/vue3/lib/unread-pill/unread-pill-constants.cjs.map +1 -1
  964. package/dist/vue3/lib/unread-pill/unread-pill-constants.js.map +1 -1
  965. package/dist/vue3/lib/unread-pill/unread-pill.cjs.map +1 -1
  966. package/dist/vue3/lib/unread-pill/unread-pill.js +7 -7
  967. package/dist/vue3/lib/unread-pill/unread-pill.js.map +1 -1
  968. package/dist/vue3/lib/validation-messages/validation-messages.cjs.map +1 -1
  969. package/dist/vue3/lib/validation-messages/validation-messages.js +9 -9
  970. package/dist/vue3/lib/validation-messages/validation-messages.js.map +1 -1
  971. package/dist/vue3/localization/de-DE.cjs.map +1 -1
  972. package/dist/vue3/localization/de-DE.js.map +1 -1
  973. package/dist/vue3/localization/en-US.cjs.map +1 -1
  974. package/dist/vue3/localization/en-US.js.map +1 -1
  975. package/dist/vue3/localization/es-LA.cjs.map +1 -1
  976. package/dist/vue3/localization/es-LA.js.map +1 -1
  977. package/dist/vue3/localization/fr-FR.cjs.map +1 -1
  978. package/dist/vue3/localization/fr-FR.js.map +1 -1
  979. package/dist/vue3/localization/index.cjs.map +1 -1
  980. package/dist/vue3/localization/index.js.map +1 -1
  981. package/dist/vue3/localization/it-IT.cjs.map +1 -1
  982. package/dist/vue3/localization/it-IT.js.map +1 -1
  983. package/dist/vue3/localization/ja-JP.cjs.map +1 -1
  984. package/dist/vue3/localization/ja-JP.js.map +1 -1
  985. package/dist/vue3/localization/nl-NL.cjs.map +1 -1
  986. package/dist/vue3/localization/nl-NL.js.map +1 -1
  987. package/dist/vue3/localization/pt-BR.cjs.map +1 -1
  988. package/dist/vue3/localization/pt-BR.js.map +1 -1
  989. package/dist/vue3/localization/ru-RU.cjs.map +1 -1
  990. package/dist/vue3/localization/ru-RU.js.map +1 -1
  991. package/dist/vue3/localization/zh-CN.cjs.map +1 -1
  992. package/dist/vue3/localization/zh-CN.js.map +1 -1
  993. package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
  994. package/dist/vue3/node_modules/@tiptap/vue-3.js +3 -3
  995. package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
  996. package/dist/vue3/shared/sr_only_close_button.cjs.map +1 -1
  997. package/dist/vue3/shared/sr_only_close_button.js +2 -2
  998. package/dist/vue3/shared/sr_only_close_button.js.map +1 -1
  999. package/dist/vue3/types/common/constants/index.d.ts.map +1 -1
  1000. package/dist/vue3/types/common/dates/index.d.ts.map +1 -1
  1001. package/dist/vue3/types/common/emoji/index.d.ts.map +1 -1
  1002. package/dist/vue3/types/common/mixins/dom.d.ts.map +1 -1
  1003. package/dist/vue3/types/common/mixins/input.d.ts +6 -6
  1004. package/dist/vue3/types/common/mixins/input.d.ts.map +1 -1
  1005. package/dist/vue3/types/common/mixins/input_group.d.ts +2 -2
  1006. package/dist/vue3/types/common/mixins/modal.d.ts.map +1 -1
  1007. package/dist/vue3/types/common/utils/index.d.ts.map +1 -1
  1008. package/dist/vue3/types/components/avatar/avatar.vue.d.ts +12 -12
  1009. package/dist/vue3/types/components/badge/badge.vue.d.ts +4 -4
  1010. package/dist/vue3/types/components/banner/banner.vue.d.ts +1 -1
  1011. package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
  1012. package/dist/vue3/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +1 -1
  1013. package/dist/vue3/types/components/button/button.vue.d.ts +3 -3
  1014. package/dist/vue3/types/components/button/button_constants.d.ts.map +1 -1
  1015. package/dist/vue3/types/components/card/card.vue.d.ts +12 -12
  1016. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts +6 -6
  1017. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts +2 -2
  1018. package/dist/vue3/types/components/chip/chip.vue.d.ts +6 -6
  1019. package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts +6 -6
  1020. package/dist/vue3/types/components/combobox/combobox.vue.d.ts +4 -4
  1021. package/dist/vue3/types/components/combobox/combobox_empty-list.vue.d.ts +3 -3
  1022. package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  1023. package/dist/vue3/types/components/datepicker/formatUtils.d.ts +5 -5
  1024. package/dist/vue3/types/components/datepicker/formatUtils.d.ts.map +1 -1
  1025. package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts +1 -1
  1026. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -1
  1027. package/dist/vue3/types/components/description_list/description_list.vue.d.ts +6 -6
  1028. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +10 -10
  1029. package/dist/vue3/types/components/emoji/emoji.vue.d.ts +3 -3
  1030. package/dist/vue3/types/components/emoji_picker/emoji_picker_constants.d.ts.map +1 -1
  1031. package/dist/vue3/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
  1032. package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
  1033. package/dist/vue3/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +1 -1
  1034. package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
  1035. package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +1 -1
  1036. package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  1037. package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts +7 -11
  1038. package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts.map +1 -1
  1039. package/dist/vue3/types/components/eslint.config.d.ts +8 -0
  1040. package/dist/vue3/types/components/eslint.config.d.ts.map +1 -0
  1041. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +686 -11
  1042. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
  1043. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  1044. package/dist/vue3/types/components/input/input.vue.d.ts +8 -8
  1045. package/dist/vue3/types/components/input_group/input_group.vue.d.ts +2 -2
  1046. package/dist/vue3/types/components/item_layout/item_layout.vue.d.ts +1 -1
  1047. package/dist/vue3/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +7 -210
  1048. package/dist/vue3/types/components/lazy_show/lazy_show.vue.d.ts +1 -1
  1049. package/dist/vue3/types/components/link/link_constants.d.ts.map +1 -1
  1050. package/dist/vue3/types/components/list_item/list_item.vue.d.ts +3 -3
  1051. package/dist/vue3/types/components/list_item_group/list_item_group.vue.d.ts +6 -6
  1052. package/dist/vue3/types/components/modal/modal.vue.d.ts +16 -16
  1053. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  1054. package/dist/vue3/types/components/notice/notice.vue.d.ts +1 -1
  1055. package/dist/vue3/types/components/notice/notice_icon.vue.d.ts +1 -30
  1056. package/dist/vue3/types/components/notice/notice_icon.vue.d.ts.map +1 -1
  1057. package/dist/vue3/types/components/popover/popover.vue.d.ts +26 -26
  1058. package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
  1059. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +3 -3
  1060. package/dist/vue3/types/components/popover/tippy_utils.d.ts +2 -3
  1061. package/dist/vue3/types/components/popover/tippy_utils.d.ts.map +1 -1
  1062. package/dist/vue3/types/components/radio/radio.vue.d.ts +6 -6
  1063. package/dist/vue3/types/components/radio_group/radio_group.vue.d.ts +2 -2
  1064. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +22 -22
  1065. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +22 -22
  1066. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +22 -22
  1067. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +22 -22
  1068. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  1069. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
  1070. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +7 -12
  1071. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  1072. package/dist/vue3/types/components/root_layout/root_layout.vue.d.ts +15 -15
  1073. package/dist/vue3/types/components/scroller/modules/core_scroller.vue.d.ts +26 -16
  1074. package/dist/vue3/types/components/scroller/modules/core_scroller.vue.d.ts.map +1 -1
  1075. package/dist/vue3/types/components/scroller/modules/scroller_item.vue.d.ts +1 -1
  1076. package/dist/vue3/types/components/scroller/scroller.vue.d.ts +245 -12
  1077. package/dist/vue3/types/components/scroller/scroller.vue.d.ts.map +1 -1
  1078. package/dist/vue3/types/components/select_menu/select_menu.vue.d.ts +13 -13
  1079. package/dist/vue3/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  1080. package/dist/vue3/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
  1081. package/dist/vue3/types/components/skeleton/skeleton-shape.vue.d.ts +4 -4
  1082. package/dist/vue3/types/components/skeleton/skeleton-text.vue.d.ts +1 -1
  1083. package/dist/vue3/types/components/skeleton/skeleton.vue.d.ts +1 -1
  1084. package/dist/vue3/types/components/skeleton/skeleton_constants.d.ts.map +1 -1
  1085. package/dist/vue3/types/components/split_button/split_button-alpha.vue.d.ts +3 -3
  1086. package/dist/vue3/types/components/split_button/split_button.vue.d.ts +3 -3
  1087. package/dist/vue3/types/components/tab/tab.vue.d.ts +3 -3
  1088. package/dist/vue3/types/components/tab/tab_group.vue.d.ts +3 -3
  1089. package/dist/vue3/types/components/tab/tab_panel.vue.d.ts +3 -3
  1090. package/dist/vue3/types/components/tab/tab_panel.vue.d.ts.map +1 -1
  1091. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -1
  1092. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate_icon.vue.d.ts +1 -30
  1093. package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -1
  1094. package/dist/vue3/types/components/toast/toast.vue.d.ts +4 -4
  1095. package/dist/vue3/types/components/toast/toast_constants.d.ts.map +1 -1
  1096. package/dist/vue3/types/components/toggle/toggle.vue.d.ts +7 -7
  1097. package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +10 -10
  1098. package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  1099. package/dist/vue3/types/components/validation_messages/validation_messages.vue.d.ts +0 -1
  1100. package/dist/vue3/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  1101. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +7 -7
  1102. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -7
  1103. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +9 -9
  1104. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +1 -30
  1105. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  1106. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  1107. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +9 -9
  1108. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +9 -241
  1109. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  1110. package/dist/vue3/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -1
  1111. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +7 -36
  1112. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  1113. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  1114. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  1115. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts.map +1 -1
  1116. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +22 -22
  1117. package/dist/vue3/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -1
  1118. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +7 -7
  1119. package/dist/vue3/types/recipes/eslint.config.d.ts +8 -0
  1120. package/dist/vue3/types/recipes/eslint.config.d.ts.map +1 -0
  1121. package/dist/vue3/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +1 -1
  1122. package/dist/vue3/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -30
  1123. package/package.json +7 -6
  1124. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +0 -47
  1125. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +0 -1
  1126. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +0 -47
  1127. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +0 -1
  1128. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +0 -47
  1129. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts.map +0 -1
  1130. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +0 -52
  1131. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"formatUtils.cjs","sources":["../../../components/datepicker/formatUtils.js"],"sourcesContent":["import { DialtoneLocalization } from '@/localization';\n\n/**\n * Formats a date into a long format using the specified locale.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string.\n */\nexport function formatLong (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats the given date in medium format.\n *\n * @param {Date} date - The date to be formatted.\n * @param {string} [locale='default'] - The locale to be used for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string in medium format.\n */\nexport function formatMedium (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a short string representation.\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [showWeekday=true] - Whether to include the weekday in the formatted string. Defaults to true.\n * @returns {string} The formatted date string.\n */\nexport function formatShort (date, locale = null, showWeekday = true) {\n const options = showWeekday ? { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' } : { year: 'numeric', month: 'short', day: 'numeric' };\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), options).format(date);\n}\n\n/**\n * Formats a date without the year.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [abbreviated=false] - Whether to use abbreviated month names. Defaults to false.\n * @returns {string} The formatted date without the year.\n */\nexport function formatNoYear (date, locale = null, abbreviated = false) {\n const monthFormat = abbreviated ? 'short' : 'long';\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { month: monthFormat, day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a numerical string representation.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted numerical date string.\n */\nexport function formatNumerical (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: '2-digit', month: '2-digit', day: '2-digit' }).format(date);\n}\n\nexport default {\n formatLong,\n formatMedium,\n formatShort,\n formatNoYear,\n formatNumerical,\n};\n"],"names":["formatLong","date","locale","DialtoneLocalization","formatMedium","formatShort","showWeekday","options","formatNoYear","abbreviated","monthFormat","formatNumerical","formatUtils"],"mappings":"4JASO,SAASA,EAAYC,EAAMC,EAAS,KAAM,CAC/C,OAAO,IAAI,KAAK,eAAeA,GAAUC,EAAoB,qBAAC,mBAAoB,EAAE,CAAE,QAAS,OAAQ,KAAM,UAAW,MAAO,OAAQ,IAAK,SAAS,CAAE,EAAE,OAAOF,CAAI,CACtK,CASO,SAASG,EAAcH,EAAMC,EAAS,KAAM,CACjD,OAAO,IAAI,KAAK,eAAeA,GAAUC,EAAAA,qBAAqB,mBAAoB,EAAE,CAAE,KAAM,UAAW,MAAO,OAAQ,IAAK,SAAW,CAAA,EAAE,OAAOF,CAAI,CACrJ,CASO,SAASI,EAAaJ,EAAMC,EAAS,KAAMI,EAAc,GAAM,CACpE,MAAMC,EAAUD,EAAc,CAAE,QAAS,QAAS,KAAM,UAAW,MAAO,QAAS,IAAK,SAAW,EAAG,CAAE,KAAM,UAAW,MAAO,QAAS,IAAK,WAC9I,OAAO,IAAI,KAAK,eAAeJ,GAAUC,EAAoB,qBAAC,mBAAoB,EAAEI,CAAO,EAAE,OAAON,CAAI,CAC1G,CAUO,SAASO,EAAcP,EAAMC,EAAS,KAAMO,EAAc,GAAO,CACtE,MAAMC,EAAcD,EAAc,QAAU,OAC5C,OAAO,IAAI,KAAK,eAAeP,GAAUC,EAAoB,qBAAC,mBAAkB,EAAI,CAAE,MAAOO,EAAa,IAAK,SAAS,CAAE,EAAE,OAAOT,CAAI,CACzI,CASO,SAASU,EAAiBV,EAAMC,EAAS,KAAM,CACpD,OAAO,IAAI,KAAK,eAAeA,GAAUC,EAAAA,qBAAqB,mBAAoB,EAAE,CAAE,KAAM,UAAW,MAAO,UAAW,IAAK,SAAW,CAAA,EAAE,OAAOF,CAAI,CACxJ,CAEA,MAAeW,EAAA,CACb,WAAAZ,EACA,aAAAI,EACA,YAAAC,EACA,aAAAG,EACA,gBAAAG,CACF"}
1
+ {"version":3,"file":"formatUtils.cjs","sources":["../../../components/datepicker/formatUtils.js"],"sourcesContent":["import { DialtoneLocalization } from '@/localization';\n\n/**\n * Formats a date into a long format using the specified locale.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string.\n */\nexport function formatLong (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats the given date in medium format.\n *\n * @param {Date} date - The date to be formatted.\n * @param {string} [locale='default'] - The locale to be used for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string in medium format.\n */\nexport function formatMedium (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a short string representation.\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [showWeekday=true] - Whether to include the weekday in the formatted string. Defaults to true.\n * @returns {string} The formatted date string.\n */\nexport function formatShort (date, locale = null, showWeekday = true) {\n const options = showWeekday ? { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' } : { year: 'numeric', month: 'short', day: 'numeric' };\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), options).format(date);\n}\n\n/**\n * Formats a date without the year.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [abbreviated=false] - Whether to use abbreviated month names. Defaults to false.\n * @returns {string} The formatted date without the year.\n */\nexport function formatNoYear (date, locale = null, abbreviated = false) {\n const monthFormat = abbreviated ? 'short' : 'long';\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { month: monthFormat, day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a numerical string representation.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted numerical date string.\n */\nexport function formatNumerical (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: '2-digit', month: '2-digit', day: '2-digit' }).format(date);\n}\n\nexport default {\n formatLong,\n formatMedium,\n formatShort,\n formatNoYear,\n formatNumerical,\n};\n"],"names":["formatLong","date","locale","DialtoneLocalization","formatMedium","formatShort","showWeekday","options","formatNoYear","abbreviated","monthFormat","formatNumerical","formatUtils"],"mappings":"4JASO,SAASA,EAAYC,EAAMC,EAAS,KAAM,CAC/C,OAAO,IAAI,KAAK,eAAeA,GAAUC,EAAAA,qBAAqB,mBAAkB,EAAI,CAAE,QAAS,OAAQ,KAAM,UAAW,MAAO,OAAQ,IAAK,UAAW,EAAE,OAAOF,CAAI,CACtK,CASO,SAASG,EAAcH,EAAMC,EAAS,KAAM,CACjD,OAAO,IAAI,KAAK,eAAeA,GAAUC,EAAAA,qBAAqB,mBAAkB,EAAI,CAAE,KAAM,UAAW,MAAO,OAAQ,IAAK,SAAS,CAAE,EAAE,OAAOF,CAAI,CACrJ,CASO,SAASI,EAAaJ,EAAMC,EAAS,KAAMI,EAAc,GAAM,CACpE,MAAMC,EAAUD,EAAc,CAAE,QAAS,QAAS,KAAM,UAAW,MAAO,QAAS,IAAK,SAAS,EAAK,CAAE,KAAM,UAAW,MAAO,QAAS,IAAK,SAAS,EACvJ,OAAO,IAAI,KAAK,eAAeJ,GAAUC,EAAAA,qBAAqB,mBAAkB,EAAII,CAAO,EAAE,OAAON,CAAI,CAC1G,CAUO,SAASO,EAAcP,EAAMC,EAAS,KAAMO,EAAc,GAAO,CACtE,MAAMC,EAAcD,EAAc,QAAU,OAC5C,OAAO,IAAI,KAAK,eAAeP,GAAUC,EAAAA,qBAAqB,mBAAkB,EAAI,CAAE,MAAOO,EAAa,IAAK,SAAS,CAAE,EAAE,OAAOT,CAAI,CACzI,CASO,SAASU,EAAiBV,EAAMC,EAAS,KAAM,CACpD,OAAO,IAAI,KAAK,eAAeA,GAAUC,EAAAA,qBAAqB,mBAAkB,EAAI,CAAE,KAAM,UAAW,MAAO,UAAW,IAAK,SAAS,CAAE,EAAE,OAAOF,CAAI,CACxJ,CAEA,MAAAW,EAAe,CACb,WAAAZ,EACA,aAAAI,EACA,YAAAC,EACA,aAAAG,EACA,gBAAAG,CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatUtils.js","sources":["../../../components/datepicker/formatUtils.js"],"sourcesContent":["import { DialtoneLocalization } from '@/localization';\n\n/**\n * Formats a date into a long format using the specified locale.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string.\n */\nexport function formatLong (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats the given date in medium format.\n *\n * @param {Date} date - The date to be formatted.\n * @param {string} [locale='default'] - The locale to be used for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string in medium format.\n */\nexport function formatMedium (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a short string representation.\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [showWeekday=true] - Whether to include the weekday in the formatted string. Defaults to true.\n * @returns {string} The formatted date string.\n */\nexport function formatShort (date, locale = null, showWeekday = true) {\n const options = showWeekday ? { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' } : { year: 'numeric', month: 'short', day: 'numeric' };\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), options).format(date);\n}\n\n/**\n * Formats a date without the year.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [abbreviated=false] - Whether to use abbreviated month names. Defaults to false.\n * @returns {string} The formatted date without the year.\n */\nexport function formatNoYear (date, locale = null, abbreviated = false) {\n const monthFormat = abbreviated ? 'short' : 'long';\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { month: monthFormat, day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a numerical string representation.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted numerical date string.\n */\nexport function formatNumerical (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: '2-digit', month: '2-digit', day: '2-digit' }).format(date);\n}\n\nexport default {\n formatLong,\n formatMedium,\n formatShort,\n formatNoYear,\n formatNumerical,\n};\n"],"names":["formatLong","date","locale","DialtoneLocalization","formatMedium","formatShort","showWeekday","options","formatNoYear","abbreviated","monthFormat","formatNumerical","formatUtils"],"mappings":";AASO,SAASA,EAAYC,GAAMC,IAAS,MAAM;AAC/C,SAAO,IAAI,KAAK,eAAeA,KAAUC,EAAqB,mBAAoB,GAAE,EAAE,SAAS,QAAQ,MAAM,WAAW,OAAO,QAAQ,KAAK,UAAS,CAAE,EAAE,OAAOF,CAAI;AACtK;AASO,SAASG,EAAcH,GAAMC,IAAS,MAAM;AACjD,SAAO,IAAI,KAAK,eAAeA,KAAUC,EAAqB,mBAAoB,GAAE,EAAE,MAAM,WAAW,OAAO,QAAQ,KAAK,UAAW,CAAA,EAAE,OAAOF,CAAI;AACrJ;AASO,SAASI,EAAaJ,GAAMC,IAAS,MAAMI,IAAc,IAAM;AACpE,QAAMC,IAAUD,IAAc,EAAE,SAAS,SAAS,MAAM,WAAW,OAAO,SAAS,KAAK,UAAW,IAAG,EAAE,MAAM,WAAW,OAAO,SAAS,KAAK;AAC9I,SAAO,IAAI,KAAK,eAAeJ,KAAUC,EAAqB,mBAAoB,GAAEI,CAAO,EAAE,OAAON,CAAI;AAC1G;AAUO,SAASO,EAAcP,GAAMC,IAAS,MAAMO,IAAc,IAAO;AACtE,QAAMC,IAAcD,IAAc,UAAU;AAC5C,SAAO,IAAI,KAAK,eAAeP,KAAUC,EAAqB,mBAAkB,GAAI,EAAE,OAAOO,GAAa,KAAK,UAAS,CAAE,EAAE,OAAOT,CAAI;AACzI;AASO,SAASU,EAAiBV,GAAMC,IAAS,MAAM;AACpD,SAAO,IAAI,KAAK,eAAeA,KAAUC,EAAqB,mBAAoB,GAAE,EAAE,MAAM,WAAW,OAAO,WAAW,KAAK,UAAW,CAAA,EAAE,OAAOF,CAAI;AACxJ;AAEA,MAAeW,IAAA;AAAA,EACb,YAAAZ;AAAA,EACA,cAAAI;AAAA,EACA,aAAAC;AAAA,EACA,cAAAG;AAAA,EACA,iBAAAG;AACF;"}
1
+ {"version":3,"file":"formatUtils.js","sources":["../../../components/datepicker/formatUtils.js"],"sourcesContent":["import { DialtoneLocalization } from '@/localization';\n\n/**\n * Formats a date into a long format using the specified locale.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string.\n */\nexport function formatLong (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats the given date in medium format.\n *\n * @param {Date} date - The date to be formatted.\n * @param {string} [locale='default'] - The locale to be used for formatting. Defaults to 'default'.\n * @returns {string} The formatted date string in medium format.\n */\nexport function formatMedium (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: 'numeric', month: 'long', day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a short string representation.\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [showWeekday=true] - Whether to include the weekday in the formatted string. Defaults to true.\n * @returns {string} The formatted date string.\n */\nexport function formatShort (date, locale = null, showWeekday = true) {\n const options = showWeekday ? { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' } : { year: 'numeric', month: 'short', day: 'numeric' };\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), options).format(date);\n}\n\n/**\n * Formats a date without the year.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @param {boolean} [abbreviated=false] - Whether to use abbreviated month names. Defaults to false.\n * @returns {string} The formatted date without the year.\n */\nexport function formatNoYear (date, locale = null, abbreviated = false) {\n const monthFormat = abbreviated ? 'short' : 'long';\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { month: monthFormat, day: 'numeric' }).format(date);\n}\n\n/**\n * Formats a date into a numerical string representation.\n *\n * @param {Date} date - The date to format.\n * @param {string} [locale='default'] - The locale to use for formatting. Defaults to 'default'.\n * @returns {string} The formatted numerical date string.\n */\nexport function formatNumerical (date, locale = null) {\n return new Intl.DateTimeFormat(locale || DialtoneLocalization.getPreferredLocale(), { year: '2-digit', month: '2-digit', day: '2-digit' }).format(date);\n}\n\nexport default {\n formatLong,\n formatMedium,\n formatShort,\n formatNoYear,\n formatNumerical,\n};\n"],"names":["formatLong","date","locale","DialtoneLocalization","formatMedium","formatShort","showWeekday","options","formatNoYear","abbreviated","monthFormat","formatNumerical","formatUtils"],"mappings":";AASO,SAASA,EAAYC,GAAMC,IAAS,MAAM;AAC/C,SAAO,IAAI,KAAK,eAAeA,KAAUC,EAAqB,mBAAkB,GAAI,EAAE,SAAS,QAAQ,MAAM,WAAW,OAAO,QAAQ,KAAK,WAAW,EAAE,OAAOF,CAAI;AACtK;AASO,SAASG,EAAcH,GAAMC,IAAS,MAAM;AACjD,SAAO,IAAI,KAAK,eAAeA,KAAUC,EAAqB,mBAAkB,GAAI,EAAE,MAAM,WAAW,OAAO,QAAQ,KAAK,UAAS,CAAE,EAAE,OAAOF,CAAI;AACrJ;AASO,SAASI,EAAaJ,GAAMC,IAAS,MAAMI,IAAc,IAAM;AACpE,QAAMC,IAAUD,IAAc,EAAE,SAAS,SAAS,MAAM,WAAW,OAAO,SAAS,KAAK,UAAS,IAAK,EAAE,MAAM,WAAW,OAAO,SAAS,KAAK,UAAS;AACvJ,SAAO,IAAI,KAAK,eAAeJ,KAAUC,EAAqB,mBAAkB,GAAII,CAAO,EAAE,OAAON,CAAI;AAC1G;AAUO,SAASO,EAAcP,GAAMC,IAAS,MAAMO,IAAc,IAAO;AACtE,QAAMC,IAAcD,IAAc,UAAU;AAC5C,SAAO,IAAI,KAAK,eAAeP,KAAUC,EAAqB,mBAAkB,GAAI,EAAE,OAAOO,GAAa,KAAK,UAAS,CAAE,EAAE,OAAOT,CAAI;AACzI;AASO,SAASU,EAAiBV,GAAMC,IAAS,MAAM;AACpD,SAAO,IAAI,KAAK,eAAeA,KAAUC,EAAqB,mBAAkB,GAAI,EAAE,MAAM,WAAW,OAAO,WAAW,KAAK,UAAS,CAAE,EAAE,OAAOF,CAAI;AACxJ;AAEA,MAAAW,IAAe;AAAA,EACb,YAAAZ;AAAA,EACA,cAAAI;AAAA,EACA,aAAAC;AAAA,EACA,cAAAG;AAAA,EACA,iBAAAG;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.cjs","sources":["../../../components/datepicker/utils.js"],"sourcesContent":["import {\n startOfWeek, addDays, getMonth, isEqual,\n addMonths, startOfMonth, getDay, getDate,\n subMonths, endOfMonth,\n} from 'date-fns';\nimport { WEEK_START } from '@/components/datepicker/datepicker_constants.js';\n\nconst _parsedGetDate = (value) => (value ? new Date(value) : new Date());\n\n/**\n * Get 7 days from the provided start date, month is used to check\n * whether the date is from the specified month or in the offset\n */\nconst getWeekDays = (startDay, month, selectedDay) => {\n const startDate = _parsedGetDate(JSON.parse(JSON.stringify(startDay)));\n const dates = [];\n for (let i = 0; i < 7; i++) {\n const next = addDays(startDate, i);\n const isNext = getMonth(next) !== month;\n dates.push({\n text: next.getDate(),\n value: next,\n currentMonth: !isNext,\n isFirstDayOfMonth: next.getDate() === 1 && !isNext,\n // will be selected if the date is the same as the selected day and is from the current month\n selected: selectedDay ? (next.getDate() === selectedDay && !isNext) : false,\n });\n }\n return dates;\n};\n\nconst isDateEqual = (date, dateToCompare) => {\n if (!date || !dateToCompare) {\n return false;\n }\n return isEqual(date, dateToCompare);\n};\n\n/**\n * Get days for the calendar to be displayed in a table grouped by weeks\n */\nexport const getCalendarDays = (month, year, selectedDay) => {\n const weeks = [];\n const firstDate = _parsedGetDate(new Date(year, month));\n const lastDate = _parsedGetDate(new Date(year, month + 1, 0));\n\n const weekStartsOn = WEEK_START;\n\n const firstDateInCalendar = startOfWeek(firstDate, { weekStartsOn });\n\n const addDaysToWeek = (date) => {\n const days = getWeekDays(date, month, selectedDay);\n\n weeks.push({ days });\n\n if (\n !weeks[weeks.length - 1].days.some((day) =>\n isDateEqual(day.value, lastDate),\n )\n ) {\n const nextDate = addDays(date, 7);\n addDaysToWeek(nextDate);\n }\n };\n\n addDaysToWeek(firstDateInCalendar);\n\n return weeks;\n};\n\n/**\n * Generate week day names based on locale and in order specified in week start\n */\nexport const getWeekDayNames = (locale, weekStart) => {\n // Get list in order from sun ... sat\n const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {\n return new Intl.DateTimeFormat(locale, { weekday: 'short', timeZone: 'UTC' })\n .format(new Date(`2017-01-0${day}T00:00:00+00:00`))\n .slice(0, 2);\n });\n\n // Get days that are in order before specified week start\n const beforeWeekStart = days.slice(0, weekStart);\n // Get days that are in order after specified week start\n const afterWeekStart = days.slice(weekStart + 1, days.length);\n\n // return them in correct order\n return [days[weekStart]].concat(...afterWeekStart).concat(...beforeWeekStart);\n};\n\nexport const formatMonth = (month, monthFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { month: monthFormat }).format(new Date(2000, month, 1));\n};\n\nexport const formatDate = (date, dateFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { dateStyle: dateFormat }).format(new Date(date));\n};\n\nexport const calculateNextFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n const nextMonthDate = addMonths(date, 1);\n const nextMonthStart = startOfMonth(nextMonthDate);\n const nextMonthStartWeekday = getDay(nextMonthStart);\n\n const dayDifference = (currentWeekday - nextMonthStartWeekday + 7) % 7;\n\n // Add the difference in days to the first day of the next month\n const focusDate = addDays(nextMonthStart, dayDifference);\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n\nexport const calculatePrevFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n\n // Move to the last day of the previous month\n const lastDayOfPrevMonth = endOfMonth(subMonths(date, 1));\n let focusDate = lastDayOfPrevMonth;\n\n // Adjust to the same weekday in the last week of the previous month\n while (getDay(focusDate) !== currentWeekday) {\n focusDate = addDays(focusDate, -1);\n }\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n"],"names":["_parsedGetDate","value","getWeekDays","startDay","month","selectedDay","startDate","dates","i","next","addDays","isNext","getMonth","isDateEqual","date","dateToCompare","isEqual","getCalendarDays","year","weeks","firstDate","lastDate","weekStartsOn","WEEK_START","firstDateInCalendar","startOfWeek","addDaysToWeek","days","day","nextDate","getWeekDayNames","locale","weekStart","beforeWeekStart","afterWeekStart","formatMonth","monthFormat","formatDate","dateFormat","calculateNextFocusDate","currentDate","currentWeekday","getDay","nextMonthDate","addMonths","nextMonthStart","startOfMonth","nextMonthStartWeekday","dayDifference","focusDate","getDate","calculatePrevFocusDate","endOfMonth","subMonths"],"mappings":"oJAOMA,EAAkBC,GAAWA,EAAQ,IAAI,KAAKA,CAAK,EAAI,IAAI,KAM3DC,EAAc,CAACC,EAAUC,EAAOC,IAAgB,CACpD,MAAMC,EAAYN,EAAe,KAAK,MAAM,KAAK,UAAUG,CAAQ,CAAC,CAAC,EAC/DI,EAAQ,CAAA,EACd,QAASC,EAAI,EAAGA,EAAI,EAAGA,IAAK,CAC1B,MAAMC,EAAOC,EAAAA,QAAQJ,EAAWE,CAAC,EAC3BG,EAASC,EAAAA,SAASH,CAAI,IAAML,EAClCG,EAAM,KAAK,CACT,KAAME,EAAK,QAAS,EACpB,MAAOA,EACP,aAAc,CAACE,EACf,kBAAmBF,EAAK,YAAc,GAAK,CAACE,EAE5C,SAAUN,EAAeI,EAAK,QAAS,IAAKJ,GAAe,CAACM,EAAU,EAC5E,CAAK,CACF,CACD,OAAOJ,CACT,EAEMM,EAAc,CAACC,EAAMC,IACrB,CAACD,GAAQ,CAACC,EACL,GAEFC,EAAO,QAACF,EAAMC,CAAa,EAMvBE,EAAkB,CAACb,EAAOc,EAAMb,IAAgB,CAC3D,MAAMc,EAAQ,CAAA,EACRC,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O,CAAY,CAAA,EAAE,OAAO,IAAI,KAAKxB,CAAI,CAAC,EAG5EyB,EAA0BC,GAAgB,CACrD,MAAM1B,EAAO,IAAI,KAAK0B,CAAW,EAC3BC,EAAiBC,SAAO5B,CAAI,EAC5B6B,EAAgBC,EAAAA,UAAU9B,EAAM,CAAC,EACjC+B,EAAiBC,eAAaH,CAAa,EAC3CI,EAAwBL,SAAOG,CAAc,EAE7CG,GAAiBP,EAAiBM,EAAwB,GAAK,EAG/DE,EAAYvC,EAAAA,QAAQmC,EAAgBG,CAAa,EAGvD,OAAOE,EAAAA,QAAQD,CAAS,CAC1B,EAEaE,EAA0BX,GAAgB,CACrD,MAAM1B,EAAO,IAAI,KAAK0B,CAAW,EAC3BC,EAAiBC,SAAO5B,CAAI,EAIlC,IAAImC,EADuBG,EAAAA,WAAWC,EAAAA,UAAUvC,EAAM,CAAC,CAAC,EAIxD,KAAO4B,EAAM,OAACO,CAAS,IAAMR,GAC3BQ,EAAYvC,EAAO,QAACuC,EAAW,EAAE,EAInC,OAAOC,EAAAA,QAAQD,CAAS,CAC1B"}
1
+ {"version":3,"file":"utils.cjs","sources":["../../../components/datepicker/utils.js"],"sourcesContent":["import {\n startOfWeek, addDays, getMonth, isEqual,\n addMonths, startOfMonth, getDay, getDate,\n subMonths, endOfMonth,\n} from 'date-fns';\nimport { WEEK_START } from '@/components/datepicker/datepicker_constants.js';\n\nconst _parsedGetDate = (value) => (value ? new Date(value) : new Date());\n\n/**\n * Get 7 days from the provided start date, month is used to check\n * whether the date is from the specified month or in the offset\n */\nconst getWeekDays = (startDay, month, selectedDay) => {\n const startDate = _parsedGetDate(JSON.parse(JSON.stringify(startDay)));\n const dates = [];\n for (let i = 0; i < 7; i++) {\n const next = addDays(startDate, i);\n const isNext = getMonth(next) !== month;\n dates.push({\n text: next.getDate(),\n value: next,\n currentMonth: !isNext,\n isFirstDayOfMonth: next.getDate() === 1 && !isNext,\n // will be selected if the date is the same as the selected day and is from the current month\n selected: selectedDay ? (next.getDate() === selectedDay && !isNext) : false,\n });\n }\n return dates;\n};\n\nconst isDateEqual = (date, dateToCompare) => {\n if (!date || !dateToCompare) {\n return false;\n }\n return isEqual(date, dateToCompare);\n};\n\n/**\n * Get days for the calendar to be displayed in a table grouped by weeks\n */\nexport const getCalendarDays = (month, year, selectedDay) => {\n const weeks = [];\n const firstDate = _parsedGetDate(new Date(year, month));\n const lastDate = _parsedGetDate(new Date(year, month + 1, 0));\n\n const weekStartsOn = WEEK_START;\n\n const firstDateInCalendar = startOfWeek(firstDate, { weekStartsOn });\n\n const addDaysToWeek = (date) => {\n const days = getWeekDays(date, month, selectedDay);\n\n weeks.push({ days });\n\n if (\n !weeks[weeks.length - 1].days.some((day) =>\n isDateEqual(day.value, lastDate),\n )\n ) {\n const nextDate = addDays(date, 7);\n addDaysToWeek(nextDate);\n }\n };\n\n addDaysToWeek(firstDateInCalendar);\n\n return weeks;\n};\n\n/**\n * Generate week day names based on locale and in order specified in week start\n */\nexport const getWeekDayNames = (locale, weekStart) => {\n // Get list in order from sun ... sat\n const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {\n return new Intl.DateTimeFormat(locale, { weekday: 'short', timeZone: 'UTC' })\n .format(new Date(`2017-01-0${day}T00:00:00+00:00`))\n .slice(0, 2);\n });\n\n // Get days that are in order before specified week start\n const beforeWeekStart = days.slice(0, weekStart);\n // Get days that are in order after specified week start\n const afterWeekStart = days.slice(weekStart + 1, days.length);\n\n // return them in correct order\n return [days[weekStart]].concat(...afterWeekStart).concat(...beforeWeekStart);\n};\n\nexport const formatMonth = (month, monthFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { month: monthFormat }).format(new Date(2000, month, 1));\n};\n\nexport const formatDate = (date, dateFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { dateStyle: dateFormat }).format(new Date(date));\n};\n\nexport const calculateNextFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n const nextMonthDate = addMonths(date, 1);\n const nextMonthStart = startOfMonth(nextMonthDate);\n const nextMonthStartWeekday = getDay(nextMonthStart);\n\n const dayDifference = (currentWeekday - nextMonthStartWeekday + 7) % 7;\n\n // Add the difference in days to the first day of the next month\n const focusDate = addDays(nextMonthStart, dayDifference);\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n\nexport const calculatePrevFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n\n // Move to the last day of the previous month\n const lastDayOfPrevMonth = endOfMonth(subMonths(date, 1));\n let focusDate = lastDayOfPrevMonth;\n\n // Adjust to the same weekday in the last week of the previous month\n while (getDay(focusDate) !== currentWeekday) {\n focusDate = addDays(focusDate, -1);\n }\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n"],"names":["_parsedGetDate","value","getWeekDays","startDay","month","selectedDay","startDate","dates","i","next","addDays","isNext","getMonth","isDateEqual","date","dateToCompare","isEqual","getCalendarDays","year","weeks","firstDate","lastDate","weekStartsOn","WEEK_START","firstDateInCalendar","startOfWeek","addDaysToWeek","days","day","nextDate","getWeekDayNames","locale","weekStart","beforeWeekStart","afterWeekStart","formatMonth","monthFormat","formatDate","dateFormat","calculateNextFocusDate","currentDate","currentWeekday","getDay","nextMonthDate","addMonths","nextMonthStart","startOfMonth","nextMonthStartWeekday","dayDifference","focusDate","getDate","calculatePrevFocusDate","endOfMonth","subMonths"],"mappings":"oJAOMA,EAAkBC,GAAWA,EAAQ,IAAI,KAAKA,CAAK,EAAI,IAAI,KAM3DC,EAAc,CAACC,EAAUC,EAAOC,IAAgB,CACpD,MAAMC,EAAYN,EAAe,KAAK,MAAM,KAAK,UAAUG,CAAQ,CAAC,CAAC,EAC/DI,EAAQ,CAAA,EACd,QAASC,EAAI,EAAGA,EAAI,EAAGA,IAAK,CAC1B,MAAMC,EAAOC,EAAAA,QAAQJ,EAAWE,CAAC,EAC3BG,EAASC,EAAAA,SAASH,CAAI,IAAML,EAClCG,EAAM,KAAK,CACT,KAAME,EAAK,QAAO,EACl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K,MAAM,EAG5D,MAAO,CAACA,EAAKK,CAAS,CAAC,EAAE,OAAO,GAAGE,CAAc,EAAE,OAAO,GAAGD,CAAe,CAC9E,EAEaE,EAAc,CAAC/B,EAAOgC,EAAaL,IACvC,IAAI,KAAK,eAAeA,EAAQ,CAAE,MAAOK,CAAW,CAAE,EAAE,OAAO,IAAI,KAAK,IAAMhC,EAAO,CAAC,CAAC,EAGnFiC,EAAa,CAACvB,EAAMwB,EAAYP,IACpC,IAAI,KAAK,eAAeA,EAAQ,CAAE,UAAWO,CAAU,CAAE,EAAE,OAAO,IAAI,KAAKxB,CAAI,CAAC,EAG5EyB,EAA0BC,GAAgB,CACrD,MAAM1B,EAAO,IAAI,KAAK0B,CAAW,EAC3BC,EAAiBC,EAAAA,OAAO5B,CAAI,EAC5B6B,EAAgBC,EAAAA,UAAU9B,EAAM,CAAC,EACjC+B,EAAiBC,EAAAA,aAAaH,CAAa,EAC3CI,EAAwBL,EAAAA,OAAOG,CAAc,EAE7CG,GAAiBP,EAAiBM,EAAwB,GAAK,EAG/DE,EAAYvC,EAAAA,QAAQmC,EAAgBG,CAAa,EAGvD,OAAOE,EAAAA,QAAQD,CAAS,CAC1B,EAEaE,EAA0BX,GAAgB,CACrD,MAAM1B,EAAO,IAAI,KAAK0B,CAAW,EAC3BC,EAAiBC,EAAAA,OAAO5B,CAAI,EAIlC,IAAImC,EADuBG,EAAAA,WAAWC,EAAAA,UAAUvC,EAAM,CAAC,CAAC,EAIxD,KAAO4B,EAAAA,OAAOO,CAAS,IAAMR,GAC3BQ,EAAYvC,EAAAA,QAAQuC,EAAW,EAAE,EAInC,OAAOC,EAAAA,QAAQD,CAAS,CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../components/datepicker/utils.js"],"sourcesContent":["import {\n startOfWeek, addDays, getMonth, isEqual,\n addMonths, startOfMonth, getDay, getDate,\n subMonths, endOfMonth,\n} from 'date-fns';\nimport { WEEK_START } from '@/components/datepicker/datepicker_constants.js';\n\nconst _parsedGetDate = (value) => (value ? new Date(value) : new Date());\n\n/**\n * Get 7 days from the provided start date, month is used to check\n * whether the date is from the specified month or in the offset\n */\nconst getWeekDays = (startDay, month, selectedDay) => {\n const startDate = _parsedGetDate(JSON.parse(JSON.stringify(startDay)));\n const dates = [];\n for (let i = 0; i < 7; i++) {\n const next = addDays(startDate, i);\n const isNext = getMonth(next) !== month;\n dates.push({\n text: next.getDate(),\n value: next,\n currentMonth: !isNext,\n isFirstDayOfMonth: next.getDate() === 1 && !isNext,\n // will be selected if the date is the same as the selected day and is from the current month\n selected: selectedDay ? (next.getDate() === selectedDay && !isNext) : false,\n });\n }\n return dates;\n};\n\nconst isDateEqual = (date, dateToCompare) => {\n if (!date || !dateToCompare) {\n return false;\n }\n return isEqual(date, dateToCompare);\n};\n\n/**\n * Get days for the calendar to be displayed in a table grouped by weeks\n */\nexport const getCalendarDays = (month, year, selectedDay) => {\n const weeks = [];\n const firstDate = _parsedGetDate(new Date(year, month));\n const lastDate = _parsedGetDate(new Date(year, month + 1, 0));\n\n const weekStartsOn = WEEK_START;\n\n const firstDateInCalendar = startOfWeek(firstDate, { weekStartsOn });\n\n const addDaysToWeek = (date) => {\n const days = getWeekDays(date, month, selectedDay);\n\n weeks.push({ days });\n\n if (\n !weeks[weeks.length - 1].days.some((day) =>\n isDateEqual(day.value, lastDate),\n )\n ) {\n const nextDate = addDays(date, 7);\n addDaysToWeek(nextDate);\n }\n };\n\n addDaysToWeek(firstDateInCalendar);\n\n return weeks;\n};\n\n/**\n * Generate week day names based on locale and in order specified in week start\n */\nexport const getWeekDayNames = (locale, weekStart) => {\n // Get list in order from sun ... sat\n const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {\n return new Intl.DateTimeFormat(locale, { weekday: 'short', timeZone: 'UTC' })\n .format(new Date(`2017-01-0${day}T00:00:00+00:00`))\n .slice(0, 2);\n });\n\n // Get days that are in order before specified week start\n const beforeWeekStart = days.slice(0, weekStart);\n // Get days that are in order after specified week start\n const afterWeekStart = days.slice(weekStart + 1, days.length);\n\n // return them in correct order\n return [days[weekStart]].concat(...afterWeekStart).concat(...beforeWeekStart);\n};\n\nexport const formatMonth = (month, monthFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { month: monthFormat }).format(new Date(2000, month, 1));\n};\n\nexport const formatDate = (date, dateFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { dateStyle: dateFormat }).format(new Date(date));\n};\n\nexport const calculateNextFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n const nextMonthDate = addMonths(date, 1);\n const nextMonthStart = startOfMonth(nextMonthDate);\n const nextMonthStartWeekday = getDay(nextMonthStart);\n\n const dayDifference = (currentWeekday - nextMonthStartWeekday + 7) % 7;\n\n // Add the difference in days to the first day of the next month\n const focusDate = addDays(nextMonthStart, dayDifference);\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n\nexport const calculatePrevFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n\n // Move to the last day of the previous month\n const lastDayOfPrevMonth = endOfMonth(subMonths(date, 1));\n let focusDate = lastDayOfPrevMonth;\n\n // Adjust to the same weekday in the last week of the previous month\n while (getDay(focusDate) !== currentWeekday) {\n focusDate = addDays(focusDate, -1);\n }\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n"],"names":["_parsedGetDate","value","getWeekDays","startDay","month","selectedDay","startDate","dates","i","next","addDays","isNext","getMonth","isDateEqual","date","dateToCompare","isEqual","getCalendarDays","year","weeks","firstDate","lastDate","firstDateInCalendar","startOfWeek","WEEK_START","addDaysToWeek","days","day","nextDate","getWeekDayNames","locale","weekStart","beforeWeekStart","afterWeekStart","formatMonth","monthFormat","formatDate","dateFormat","calculateNextFocusDate","currentDate","currentWeekday","getDay","nextMonthDate","addMonths","nextMonthStart","startOfMonth","nextMonthStartWeekday","dayDifference","focusDate","getDate","calculatePrevFocusDate","endOfMonth","subMonths"],"mappings":";;AAOA,MA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AAIkC,IADuBG,EAAWC,EAAUtC,GAAM,CAAC,CAAC;AAIxD,SAAO2B,EAAOO,CAAS,MAAMR;AAC3B,IAAAQ,IAAYtC,EAAQsC,GAAW,EAAE;AAInC,SAAOC,EAAQD,CAAS;AAC1B;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../components/datepicker/utils.js"],"sourcesContent":["import {\n startOfWeek, addDays, getMonth, isEqual,\n addMonths, startOfMonth, getDay, getDate,\n subMonths, endOfMonth,\n} from 'date-fns';\nimport { WEEK_START } from '@/components/datepicker/datepicker_constants.js';\n\nconst _parsedGetDate = (value) => (value ? new Date(value) : new Date());\n\n/**\n * Get 7 days from the provided start date, month is used to check\n * whether the date is from the specified month or in the offset\n */\nconst getWeekDays = (startDay, month, selectedDay) => {\n const startDate = _parsedGetDate(JSON.parse(JSON.stringify(startDay)));\n const dates = [];\n for (let i = 0; i < 7; i++) {\n const next = addDays(startDate, i);\n const isNext = getMonth(next) !== month;\n dates.push({\n text: next.getDate(),\n value: next,\n currentMonth: !isNext,\n isFirstDayOfMonth: next.getDate() === 1 && !isNext,\n // will be selected if the date is the same as the selected day and is from the current month\n selected: selectedDay ? (next.getDate() === selectedDay && !isNext) : false,\n });\n }\n return dates;\n};\n\nconst isDateEqual = (date, dateToCompare) => {\n if (!date || !dateToCompare) {\n return false;\n }\n return isEqual(date, dateToCompare);\n};\n\n/**\n * Get days for the calendar to be displayed in a table grouped by weeks\n */\nexport const getCalendarDays = (month, year, selectedDay) => {\n const weeks = [];\n const firstDate = _parsedGetDate(new Date(year, month));\n const lastDate = _parsedGetDate(new Date(year, month + 1, 0));\n\n const weekStartsOn = WEEK_START;\n\n const firstDateInCalendar = startOfWeek(firstDate, { weekStartsOn });\n\n const addDaysToWeek = (date) => {\n const days = getWeekDays(date, month, selectedDay);\n\n weeks.push({ days });\n\n if (\n !weeks[weeks.length - 1].days.some((day) =>\n isDateEqual(day.value, lastDate),\n )\n ) {\n const nextDate = addDays(date, 7);\n addDaysToWeek(nextDate);\n }\n };\n\n addDaysToWeek(firstDateInCalendar);\n\n return weeks;\n};\n\n/**\n * Generate week day names based on locale and in order specified in week start\n */\nexport const getWeekDayNames = (locale, weekStart) => {\n // Get list in order from sun ... sat\n const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {\n return new Intl.DateTimeFormat(locale, { weekday: 'short', timeZone: 'UTC' })\n .format(new Date(`2017-01-0${day}T00:00:00+00:00`))\n .slice(0, 2);\n });\n\n // Get days that are in order before specified week start\n const beforeWeekStart = days.slice(0, weekStart);\n // Get days that are in order after specified week start\n const afterWeekStart = days.slice(weekStart + 1, days.length);\n\n // return them in correct order\n return [days[weekStart]].concat(...afterWeekStart).concat(...beforeWeekStart);\n};\n\nexport const formatMonth = (month, monthFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { month: monthFormat }).format(new Date(2000, month, 1));\n};\n\nexport const formatDate = (date, dateFormat, locale) => {\n return new Intl.DateTimeFormat(locale, { dateStyle: dateFormat }).format(new Date(date));\n};\n\nexport const calculateNextFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n const nextMonthDate = addMonths(date, 1);\n const nextMonthStart = startOfMonth(nextMonthDate);\n const nextMonthStartWeekday = getDay(nextMonthStart);\n\n const dayDifference = (currentWeekday - nextMonthStartWeekday + 7) % 7;\n\n // Add the difference in days to the first day of the next month\n const focusDate = addDays(nextMonthStart, dayDifference);\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n\nexport const calculatePrevFocusDate = (currentDate) => {\n const date = new Date(currentDate);\n const currentWeekday = getDay(date);\n\n // Move to the last day of the previous month\n const lastDayOfPrevMonth = endOfMonth(subMonths(date, 1));\n let focusDate = lastDayOfPrevMonth;\n\n // Adjust to the same weekday in the last week of the previous month\n while (getDay(focusDate) !== currentWeekday) {\n focusDate = addDays(focusDate, -1);\n }\n\n // Returns only the day of the month\n return getDate(focusDate);\n};\n"],"names":["_parsedGetDate","value","getWeekDays","startDay","month","selectedDay","startDate","dates","i","next","addDays","isNext","getMonth","isDateEqual","date","dateToCompare","isEqual","getCalendarDays","year","weeks","firstDate","lastDate","firstDateInCalendar","startOfWeek","WEEK_START","addDaysToWeek","days","day","nextDate","getWeekDayNames","locale","weekStart","beforeWeekStart","afterWeekStart","formatMonth","monthFormat","formatDate","dateFormat","calculateNextFocusDate","currentDate","currentWeekday","getDay","nextMonthDate","addMonths","nextMonthStart","startOfMonth","nextMonthStartWeekday","dayDifference","focusDate","getDate","calculatePrevFocusDate","endOfMonth","subMonths"],"mappings":";;AAOA,MAAMA,IAAiB,CAACC,MAAWA,IAAQ,IAAI,KAAKA,CAAK,IAAI,oBAAI,QAM3DC,IAAc,CAACC,GAAUC,GAAOC,MAAgB;AACpD,QAAMC,IAAYN,EAAe,KAAK,MAAM,KAAK,UAAUG,CAAQ,CAAC,CAAC,GAC/DI,IAAQ,CAAA;AACd,WAASC,IAAI,GAAGA,IAAI,GAAGA,KAAK;AAC1B,UAAMC,IAAOC,EAAQJ,GAAWE,CAAC,GAC3BG,IAASC,EAASH,CAAI,MAAML;AAClC,IAAAG,EAAM,KAAK;AAAA,MACT,MAAME,EAAK,QAAO;AAAA,MAClB,OAAOA;AAAA,MACP,cAAc,CAACE;AAAA,MACf,mBAAmBF,EAAK,cAAc,KAAK,CAACE;AAAA;AAAA,MAE5C,UAAUN,IAAeI,EAAK,QAAO,MAAOJ,KAAe,CAACM,IAAU;AAAA,IAC5E,CAAK;AAAA,EACH;AACA,SAAOJ;AACT,GAEMM,IAAc,CAACC,GAAMC,MACrB,CAACD,KAAQ,CAACC,IACL,KAEFC,EAAQF,GAAMC,CAAa,GAMvBE,IAAkB,CAACb,GAAOc,GAAMb,MAAgB;AAC3D,QAAMc,IAAQ,CAAA,GACRC,IAAYpB,EAAe,IAAI,KAAKkB,GAAMd,CAAK,CAAC,GAChDiB,IAAWrB,EAAe,IAAI,KAAKkB,GAAMd,IAAQ,GAAG,CAAC,CAAC,GAItDkB,IAAsBC,EAAYH,GAAW,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C,EAAO3B,CAAI,GAC5B4B,IAAgBC,EAAU7B,GAAM,CAAC,GACjC8B,IAAiBC,EAAaH,CAAa,GAC3CI,IAAwBL,EAAOG,CAAc,GAE7CG,KAAiBP,IAAiBM,IAAwB,KAAK,GAG/DE,IAAYtC,EAAQkC,GAAgBG,CAAa;AAGvD,SAAOE,EAAQD,CAAS;AAC1B,GAEaE,IAAyB,CAACX,MAAgB;AACrD,QAAMzB,IAAO,IAAI,KAAKyB,CAAW,GAC3BC,IAAiBC,EAAO3B,CAAI;AAIlC,MAAIkC,IADuBG,EAAWC,EAAUtC,GAAM,CAAC,CAAC;AAIxD,SAAO2B,EAAOO,CAAS,MAAMR;AAC3B,IAAAQ,IAAYtC,EAAQsC,GAAW,EAAE;AAInC,SAAOC,EAAQD,CAAS;AAC1B;"}
@@ -1 +1 @@
1
- {"version":3,"file":"description-list.cjs","sources":["../../../components/description_list/description_list.vue"],"sourcesContent":["<template>\n <dl :class=\"['d-description-list', getDirectionClass, getGapClass]\">\n <template\n v-for=\"item in items\"\n >\n <dt\n :key=\"`dt-${item.term}`\"\n :class=\"dtClass\"\n >\n {{ item.term }}\n </dt>\n <dd\n :key=\"`dd-${item.term}`\"\n :class=\"ddClass\"\n >\n {{ item.description }}\n </dd>\n </template>\n </dl>\n</template>\n\n<script>\nimport { DT_STACK_GAP } from '@/components/stack';\nimport { DT_DESCRIPTION_LIST_DIRECTION } from './description_list_constants';\nimport { itemsValidator } from './description_list_validators';\n\nexport default {\n name: 'DtDescriptionList',\n\n props: {\n /**\n * The direction for the list\n * @values row, column\n */\n direction: {\n type: String,\n default: 'row',\n validator: direction => DT_DESCRIPTION_LIST_DIRECTION.includes(direction),\n },\n\n /**\n * A list of items that represent the term and the description\n */\n items: {\n type: Array,\n default: () => [],\n validator: items => itemsValidator(items),\n required: true,\n },\n\n /**\n * Set the space between the elements\n * @values 0, 100, 200, 300, 400, 500, 600\n */\n gap: {\n type: String,\n default: '400',\n validator: (gap) => DT_STACK_GAP.includes(gap),\n },\n\n /**\n * Used to customize the term element\n */\n termClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the description element\n */\n descriptionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n computed: {\n dtClass () {\n return ['d-description-list__term', this.termClass];\n },\n\n ddClass () {\n return ['d-description-list__description', this.descriptionClass];\n },\n\n getDirectionClass () {\n return `d-description-list--${this.direction}`;\n },\n\n getGapClass () {\n return `d-description-list--gap-${this.gap}`;\n },\n },\n};\n</script>\n"],"names":["_sfc_main","direction","DT_DESCRIPTION_LIST_DIRECTION","items","itemsValidator","gap","DT_STACK_GAP"],"mappings":"iTA0BAA,EAAA,CACA,KAAA,oBAEA,MAAA,CAKA,UAAA,CACA,KAAA,OACA,QAAA,MACA,UAAAC,GAAAC,gCAAA,SAAAD,CAAA,CACA,EAKA,MAAA,CACA,KAAA,MACA,QAAA,IAAA,CAAA,EACA,UAAAE,GAAAC,EAAA,eAAAD,CAAA,EACA,SAAA,EACA,EAMA,IAAA,CACA,KAAA,OACA,QAAA,MACA,UAAAE,GAAAC,eAAA,SAAAD,CAAA,CACA,EAKA,UAAA,CACA,KAAA,CAAA,OAAA,MAAA,MAAA,EACA,QAAA,EACA,EAKA,iBAAA,CACA,KAAA,CAAA,OAAA,MAAA,MAAA,EACA,QAAA,EACA,CACA,EAEA,SAAA,CACA,SAAA,CACA,MAAA,CAAA,2BAAA,KAAA,SAAA,CACA,EAEA,SAAA,CACA,MAAA,CAAA,kCAAA,KAAA,gBAAA,CACA,EAEA,mBAAA,CACA,MAAA,uBAAA,KAAA,SAAA,EACA,EAEA,aAAA,CACA,MAAA,2BAAA,KAAA,GAAA,EACA,CACA,CACA"}
1
+ {"version":3,"file":"description-list.cjs","sources":["../../../components/description_list/description_list.vue"],"sourcesContent":["<template>\n <dl :class=\"['d-description-list', getDirectionClass, getGapClass]\">\n <template\n v-for=\"item in items\"\n >\n <dt\n :key=\"`dt-${item.term}`\"\n :class=\"dtClass\"\n >\n {{ item.term }}\n </dt>\n <dd\n :key=\"`dd-${item.term}`\"\n :class=\"ddClass\"\n >\n {{ item.description }}\n </dd>\n </template>\n </dl>\n</template>\n\n<script>\nimport { DT_STACK_GAP } from '@/components/stack';\nimport { DT_DESCRIPTION_LIST_DIRECTION } from './description_list_constants';\nimport { itemsValidator } from './description_list_validators';\n\nexport default {\n name: 'DtDescriptionList',\n\n props: {\n /**\n * The direction for the list\n * @values row, column\n */\n direction: {\n type: String,\n default: 'row',\n validator: direction => DT_DESCRIPTION_LIST_DIRECTION.includes(direction),\n },\n\n /**\n * A list of items that represent the term and the description\n */\n items: {\n type: Array,\n default: () => [],\n validator: items => itemsValidator(items),\n required: true,\n },\n\n /**\n * Set the space between the elements\n * @values 0, 100, 200, 300, 400, 500, 600\n */\n gap: {\n type: String,\n default: '400',\n validator: (gap) => DT_STACK_GAP.includes(gap),\n },\n\n /**\n * Used to customize the term element\n */\n termClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the description element\n */\n descriptionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n computed: {\n dtClass () {\n return ['d-description-list__term', this.termClass];\n },\n\n ddClass () {\n return ['d-description-list__description', this.descriptionClass];\n },\n\n getDirectionClass () {\n return `d-description-list--${this.direction}`;\n },\n\n getGapClass () {\n return `d-description-list--gap-${this.gap}`;\n },\n },\n};\n</script>\n"],"names":["_sfc_main","direction","DT_DESCRIPTION_LIST_DIRECTION","items","itemsValidator","gap","DT_STACK_GAP"],"mappings":"iTA0BAA,EAAA,CACA,KAAA,oBAEA,MAAA,CAKA,UAAA,CACA,KAAA,OACA,QAAA,MACA,UAAAC,GAAAC,gCAAA,SAAAD,CAAA,CACA,EAKA,MAAA,CACA,KAAA,MACA,QAAA,IAAA,CAAA,EACA,UAAAE,GAAAC,EAAAA,eAAAD,CAAA,EACA,SAAA,EACA,EAMA,IAAA,CACA,KAAA,OACA,QAAA,MACA,UAAAE,GAAAC,eAAA,SAAAD,CAAA,CACA,EAKA,UAAA,CACA,KAAA,CAAA,OAAA,MAAA,MAAA,EACA,QAAA,EACA,EAKA,iBAAA,CACA,KAAA,CAAA,OAAA,MAAA,MAAA,EACA,QAAA,EACA,CACA,EAEA,SAAA,CACA,SAAA,CACA,MAAA,CAAA,2BAAA,KAAA,SAAA,CACA,EAEA,SAAA,CACA,MAAA,CAAA,kCAAA,KAAA,gBAAA,CACA,EAEA,mBAAA,CACA,MAAA,uBAAA,KAAA,SAAA,EACA,EAEA,aAAA,CACA,MAAA,2BAAA,KAAA,GAAA,EACA,CACA,CACA"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-constants.cjs","sources":["../../../components/dropdown/dropdown_constants.js"],"sourcesContent":["export const DROPDOWN_PADDING_CLASSES = {\n none: undefined,\n small: 'd-py0',\n large: 'd-py4',\n};\n\nexport default {\n DROPDOWN_PADDING_CLASSES,\n};\n"],"names":["DROPDOWN_PADDING_CLASSES","dropdown_constants"],"mappings":"4GAAY,MAACA,EAA2B,CACtC,KAAM,OACN,MAAO,QACP,MAAO,OACT,EAEeC,EAAA,CACb,yBAAAD,CACF"}
1
+ {"version":3,"file":"dropdown-constants.cjs","sources":["../../../components/dropdown/dropdown_constants.js"],"sourcesContent":["export const DROPDOWN_PADDING_CLASSES = {\n none: undefined,\n small: 'd-py0',\n large: 'd-py4',\n};\n\nexport default {\n DROPDOWN_PADDING_CLASSES,\n};\n"],"names":["DROPDOWN_PADDING_CLASSES","dropdown_constants"],"mappings":"4GAAY,MAACA,EAA2B,CACtC,KAAM,OACN,MAAO,QACP,MAAO,OACT,EAEAC,EAAe,CACb,yBAAAD,CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-constants.js","sources":["../../../components/dropdown/dropdown_constants.js"],"sourcesContent":["export const DROPDOWN_PADDING_CLASSES = {\n none: undefined,\n small: 'd-py0',\n large: 'd-py4',\n};\n\nexport default {\n DROPDOWN_PADDING_CLASSES,\n};\n"],"names":["DROPDOWN_PADDING_CLASSES","dropdown_constants"],"mappings":"AAAY,MAACA,IAA2B;AAAA,EACtC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AACT,GAEeC,IAAA;AAAA,EACb,0BAAAD;AACF;"}
1
+ {"version":3,"file":"dropdown-constants.js","sources":["../../../components/dropdown/dropdown_constants.js"],"sourcesContent":["export const DROPDOWN_PADDING_CLASSES = {\n none: undefined,\n small: 'd-py0',\n large: 'd-py4',\n};\n\nexport default {\n DROPDOWN_PADDING_CLASSES,\n};\n"],"names":["DROPDOWN_PADDING_CLASSES","dropdown_constants"],"mappings":"AAAY,MAACA,IAA2B;AAAA,EACtC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AACT,GAEAC,IAAe;AAAA,EACb,0BAAAD;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-story-constants.cjs","sources":["../../../components/dropdown/dropdown_story_constants.js"],"sourcesContent":["export const DROPDOWN_STORY_ITEMS = [\n { name: 'Menu item 1', id: 1 },\n { name: 'Menu item 2', id: 2 },\n { name: 'Another menu item 1', id: 3 },\n { name: 'Menu item 3', id: 4 },\n { name: 'Another menu item 2', id: 5 },\n];\n"],"names":["DROPDOWN_STORY_ITEMS"],"mappings":"gFAAY,MAACA,EAAuB,CAClC,CAAE,KAAM,cAAe,GAAI,CAAG,EAC9B,CAAE,KAAM,cAAe,GAAI,CAAG,EAC9B,CAAE,KAAM,sBAAuB,GAAI,CAAG,EACtC,CAAE,KAAM,cAAe,GAAI,CAAG,EAC9B,CAAE,KAAM,sBAAuB,GAAI,CAAG,CACxC"}
1
+ {"version":3,"file":"dropdown-story-constants.cjs","sources":["../../../components/dropdown/dropdown_story_constants.js"],"sourcesContent":["export const DROPDOWN_STORY_ITEMS = [\n { name: 'Menu item 1', id: 1 },\n { name: 'Menu item 2', id: 2 },\n { name: 'Another menu item 1', id: 3 },\n { name: 'Menu item 3', id: 4 },\n { name: 'Another menu item 2', id: 5 },\n];\n"],"names":["DROPDOWN_STORY_ITEMS"],"mappings":"gFAAY,MAACA,EAAuB,CAClC,CAAE,KAAM,cAAe,GAAI,CAAC,EAC5B,CAAE,KAAM,cAAe,GAAI,CAAC,EAC5B,CAAE,KAAM,sBAAuB,GAAI,CAAC,EACpC,CAAE,KAAM,cAAe,GAAI,CAAC,EAC5B,CAAE,KAAM,sBAAuB,GAAI,CAAC,CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-story-constants.js","sources":["../../../components/dropdown/dropdown_story_constants.js"],"sourcesContent":["export const DROPDOWN_STORY_ITEMS = [\n { name: 'Menu item 1', id: 1 },\n { name: 'Menu item 2', id: 2 },\n { name: 'Another menu item 1', id: 3 },\n { name: 'Menu item 3', id: 4 },\n { name: 'Another menu item 2', id: 5 },\n];\n"],"names":["DROPDOWN_STORY_ITEMS"],"mappings":"AAAY,MAACA,IAAuB;AAAA,EAClC,EAAE,MAAM,eAAe,IAAI,EAAG;AAAA,EAC9B,EAAE,MAAM,eAAe,IAAI,EAAG;AAAA,EAC9B,EAAE,MAAM,uBAAuB,IAAI,EAAG;AAAA,EACtC,EAAE,MAAM,eAAe,IAAI,EAAG;AAAA,EAC9B,EAAE,MAAM,uBAAuB,IAAI,EAAG;AACxC;"}
1
+ {"version":3,"file":"dropdown-story-constants.js","sources":["../../../components/dropdown/dropdown_story_constants.js"],"sourcesContent":["export const DROPDOWN_STORY_ITEMS = [\n { name: 'Menu item 1', id: 1 },\n { name: 'Menu item 2', id: 2 },\n { name: 'Another menu item 1', id: 3 },\n { name: 'Menu item 3', id: 4 },\n { name: 'Another menu item 2', id: 5 },\n];\n"],"names":["DROPDOWN_STORY_ITEMS"],"mappings":"AAAY,MAACA,IAAuB;AAAA,EAClC,EAAE,MAAM,eAAe,IAAI,EAAC;AAAA,EAC5B,EAAE,MAAM,eAAe,IAAI,EAAC;AAAA,EAC5B,EAAE,MAAM,uBAAuB,IAAI,EAAC;AAAA,EACpC,EAAE,MAAM,eAAe,IAAI,EAAC;AAAA,EAC5B,EAAE,MAAM,uBAAuB,IAAI,EAAC;AACtC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../common/mixins/keyboard-list-navigation.cjs"),o=require("./dropdown-constants.cjs"),l=require("../../common/utils/index.cjs"),n=require("../../common/constants/index.cjs"),d=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),h=require("../popover/popover.cjs"),s=require("../list-item/list-item-constants.cjs"),p=require("../popover/popover-constants.cjs"),u={name:"DtDropdown",components:{DtPopover:h.default},mixins:[a.default({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0})],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:e=>Object.keys(o.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return l.getUniqueString()}},navigationType:{type:String,default:s.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:e=>Object.values(s.LIST_ITEM_NAVIGATION_TYPES).includes(e)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>p.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["highlight","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:s.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:o.DROPDOWN_PADDING_CLASSES,EVENT_KEYNAMES:n.EVENT_KEYNAMES,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:e=>{this.updateInitialHighlightIndex(e)},keydown:e=>{switch(e.code){case n.EVENT_KEYNAMES.up:case n.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(e),e.stopPropagation(),e.preventDefault();break;case n.EVENT_KEYNAMES.down:case n.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(e),e.stopPropagation(),e.preventDefault();break;case n.EVENT_KEYNAMES.space:case n.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case n.EVENT_KEYNAMES.enter:this.onEnterKey();break;case n.EVENT_KEYNAMES.home:this.onHomeKeyPress(e),e.stopPropagation(),e.preventDefault();break;case n.EVENT_KEYNAMES.end:this.onEndKeyPress(e),e.stopPropagation(),e.preventDefault();break;default:this.onKeyPress(e);break}this.$emit("keydown",e)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-dropdown-list",o.DROPDOWN_PADDING_CLASSES[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(e){const t=e.target.closest("li");t&&t.role&&this.highlightId!==t.id&&(this.setHighlightId(t.id),t.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.highlightIndex!==this._itemsLength()-1&&this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(e){this.isOpen=e,e?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(e){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(e.key)))return e.stopPropagation(),e.preventDefault(),this.onNavigationKey(e.key)}}};var g=function(){var t=this,r=t._self._c;return r("dt-popover",t._g({ref:"popover",attrs:{"content-width":t.contentWidth,open:t.open,placement:t.placement,"initial-focus-element":t.openedWithKeyboard?"first":"dialog","fallback-placements":t.fallbackPlacements,padding:"none",role:"menu","append-to":t.appendTo,modal:t.modal,"max-height":t.maxHeight,"max-width":t.maxWidth,"open-with-arrow-keys":t.shouldOpenWithArrowKeys,"open-on-context":t.openOnContext,tether:t.tether,transition:t.transition},scopedSlots:t._u([{key:"anchor",fn:function({attrs:i}){return[t._t("anchor",null,null,i)]}},{key:"content",fn:function({close:i}){return[r("ul",{ref:"listWrapper",class:t.listClasses,attrs:{id:t.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:t.clearHighlightIndex,"!mousemove":function(_){return t.onMouseHighlight.apply(null,arguments)}}},[t._t("list",null,{close:i})],2)]}},{key:"footerContent",fn:function({close:i}){return[t._t("footer",null,{close:i})]}}],null,!0)},t.dropdownListeners))},c=[],f=d.n(u,g,c);const E=f.exports;exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../common/mixins/keyboard-list-navigation.cjs"),o=require("./dropdown-constants.cjs"),l=require("../../common/utils/index.cjs"),n=require("../../common/constants/index.cjs"),d=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),s=require("../list-item/list-item-constants.cjs"),h=require("../popover/popover.cjs"),p=require("../popover/popover-constants.cjs"),u={name:"DtDropdown",components:{DtPopover:h.default},mixins:[a.default({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0})],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:e=>Object.keys(o.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return l.getUniqueString()}},navigationType:{type:String,default:s.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:e=>Object.values(s.LIST_ITEM_NAVIGATION_TYPES).includes(e)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>p.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["highlight","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:s.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:o.DROPDOWN_PADDING_CLASSES,EVENT_KEYNAMES:n.EVENT_KEYNAMES,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:e=>{this.updateInitialHighlightIndex(e)},keydown:e=>{switch(e.code){case n.EVENT_KEYNAMES.up:case n.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(e),e.stopPropagation(),e.preventDefault();break;case n.EVENT_KEYNAMES.down:case n.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(e),e.stopPropagation(),e.preventDefault();break;case n.EVENT_KEYNAMES.space:case n.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case n.EVENT_KEYNAMES.enter:this.onEnterKey();break;case n.EVENT_KEYNAMES.home:this.onHomeKeyPress(e),e.stopPropagation(),e.preventDefault();break;case n.EVENT_KEYNAMES.end:this.onEndKeyPress(e),e.stopPropagation(),e.preventDefault();break;default:this.onKeyPress(e);break}this.$emit("keydown",e)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-dropdown-list",o.DROPDOWN_PADDING_CLASSES[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(e){const t=e.target.closest("li");t&&t.role&&this.highlightId!==t.id&&(this.setHighlightId(t.id),t.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.highlightIndex!==this._itemsLength()-1&&this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(e){this.isOpen=e,e?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(e){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(e.key)))return e.stopPropagation(),e.preventDefault(),this.onNavigationKey(e.key)}}};var g=function(){var t=this,r=t._self._c;return r("dt-popover",t._g({ref:"popover",attrs:{"content-width":t.contentWidth,open:t.open,placement:t.placement,"initial-focus-element":t.openedWithKeyboard?"first":"dialog","fallback-placements":t.fallbackPlacements,padding:"none",role:"menu","append-to":t.appendTo,modal:t.modal,"max-height":t.maxHeight,"max-width":t.maxWidth,"open-with-arrow-keys":t.shouldOpenWithArrowKeys,"open-on-context":t.openOnContext,tether:t.tether,transition:t.transition},scopedSlots:t._u([{key:"anchor",fn:function({attrs:i}){return[t._t("anchor",null,null,i)]}},{key:"content",fn:function({close:i}){return[r("ul",{ref:"listWrapper",class:t.listClasses,attrs:{id:t.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:t.clearHighlightIndex,"!mousemove":function(_){return t.onMouseHighlight.apply(null,arguments)}}},[t._t("list",null,{close:i})],2)]}},{key:"footerContent",fn:function({close:i}){return[t._t("footer",null,{close:i})]}}],null,!0)},t.dropdownListeners))},c=[],f=d.n(u,g,c);const E=f.exports;exports.default=E;
2
2
  //# sourceMappingURL=dropdown.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.cjs","sources":["../../../components/dropdown/dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :open=\"open\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n :tether=\"tether\"\n :transition=\"transition\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!-- @slot Anchor element that activates the dropdown -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events, vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/list_item';\nimport { DROPDOWN_PADDING_CLASSES } from './dropdown_constants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES } from '@/common/constants';\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: 'menuitem',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n props: {\n /**\n * Controls whether the dropdown is shown. Leaving this null will have the dropdown trigger on click by default.\n * If you set this value, the default trigger behavior will be disabled and you can control it as you need.\n * Supports .sync modifier\n */\n open: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n },\n\n emits: [\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when dropdown is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n isOpen: null,\n };\n },\n\n computed: {\n dropdownListeners () {\n return {\n ...this.$listeners,\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey();\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement && liElement.role && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n liElement.focus();\n }\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtPopover","KeyboardNavigation","padding","DROPDOWN_PADDING_CLASSES","item","getUniqueString","LIST_ITEM_NAVIGATION_TYPES","t","appendTo","POPOVER_APPEND_TO_VALUES","EVENT_KEYNAMES","isPopoverOpen","event","liElement"],"mappings":"0eAiEAA,EAAA,CACA,KAAA,aAEA,WAAA,CACA,UAAAC,EAAA,OACA,EAEA,OAAA,CACAC,UAAA,CACA,SAAA,iBACA,MAAA,cACA,eAAA,iBACA,aAAA,WACA,qBAAA,iBACA,sBAAA,wBACA,gBAAA,kBACA,cAAA,eACA,0BAAA,EACA,CAAA,CACA,EAEA,MAAA,CAMA,KAAA,CACA,KAAA,QACA,QAAA,IACA,EAMA,cAAA,CACA,KAAA,QACA,QAAA,EACA,EAMA,QAAA,CACA,KAAA,OACA,QAAA,QACA,UAAAC,GACA,OAAA,KAAAC,0BAAA,EAAA,KAAAC,GAAAA,IAAAF,CAAA,CAEA,EAMA,MAA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AAA,CAAA,EAEA,KAAA,MAAA,SAAA,EAAA,IAEA,KAAA,oBAAA,EACA,KAAA,mBAAA,GACA,KAAA,MAAA,SAAA,EAAA,EAEA,EAEA,YAAA,CACA,KAAA,OACA,KAAA,mBAAA,GAEA,EAEA,YAAA,CACA,KAAA,OACA,KAAA,mBAAA,GAEA,EAEA,cAAA,CACA,GAAA,CAAA,KAAA,OAAA,CACA,KAAA,mBAAA,GACA,MACA,CACA,GAAA,KAAA,cACA,OAAA,KAAA,SAEA,EAEA,gBAAA,CACA,GAAA,CAAA,KAAA,OAAA,CACA,KAAA,mBAAA,GACA,MACA,CACA,GAAA,KAAA,cACA,OAAA,KAAA,WAEA,EAEA,gBAAA,CACA,GAAA,GAAA,KAAA,QAAA,CAAA,KAAA,eAIA,OAAA,KAAA,WACA,EAEA,eAAA,CACA,GAAA,GAAA,KAAA,QAAA,CAAA,KAAA,eAIA,OAAA,KAAA,UACA,EAEA,WAAA,EAAA,CACA,GAAA,GAAA,KAAA,QAAA,CAAA,KAAA,eAAA,CAAA,KAAA,cAAA,EAAA,GAAA,GAIA,SAAA,gBAAA,EACA,EAAA,eAAA,EAEA,KAAA,gBAAA,EAAA,GAAA,CACA,CACA,CACA"}
1
+ {"version":3,"file":"dropdown.cjs","sources":["../../../components/dropdown/dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :open=\"open\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n :tether=\"tether\"\n :transition=\"transition\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!-- @slot Anchor element that activates the dropdown -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events, vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/list_item';\nimport { DROPDOWN_PADDING_CLASSES } from './dropdown_constants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES } from '@/common/constants';\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: 'menuitem',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n props: {\n /**\n * Controls whether the dropdown is shown. Leaving this null will have the dropdown trigger on click by default.\n * If you set this value, the default trigger behavior will be disabled and you can control it as you need.\n * Supports .sync modifier\n */\n open: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n },\n\n emits: [\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when dropdown is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n isOpen: null,\n };\n },\n\n computed: {\n dropdownListeners () {\n return {\n ...this.$listeners,\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey();\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement && liElement.role && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n liElement.focus();\n }\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtPopover","KeyboardNavigation","padding","DROPDOWN_PADDING_CLASSES","item","getUniqueString","LIST_ITEM_NAVIGATION_TYPES","t","appendTo","POPOVER_APPEND_TO_VALUES","EVENT_KEYNAMES","isPopoverOpen","event","liElement"],"mappings":"0eAiEAA,EAAA,CACA,KAAA,aAEA,WAAA,CACA,UAAAC,EAAAA,OACA,EAEA,OAAA,CACAC,UAAA,CACA,SAAA,iBACA,MAAA,cACA,eAAA,iBACA,aAAA,WACA,qBAAA,iBACA,sBAAA,wBACA,gBAAA,kBACA,cAAA,eACA,0BAAA,EACA,CAAA,CACA,EAEA,MAAA,CAMA,KAAA,CACA,KAAA,QACA,QAAA,IACA,EAMA,cAAA,CACA,KAAA,QACA,QAAA,EACA,EAMA,QAAA,CACA,KAAA,OACA,QAAA,QACA,UAAAC,GACA,OAAA,KAAAC,0BAAA,EAAA,KAAAC,GAAAA,IAAAF,CAAA,CAEA,EAMA,MAAA,CACA,KAAA,QACA,QAAA,EACA,EAOA,aAAA,CACA,KAAA,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AA,EAAA,IAEA,KAAA,oBAAA,EACA,KAAA,mBAAA,GACA,KAAA,MAAA,SAAA,EAAA,EAEA,EAEA,YAAA,CACA,KAAA,OACA,KAAA,mBAAA,GAEA,EAEA,YAAA,CACA,KAAA,OACA,KAAA,mBAAA,GAEA,EAEA,cAAA,CACA,GAAA,CAAA,KAAA,OAAA,CACA,KAAA,mBAAA,GACA,MACA,CACA,GAAA,KAAA,cACA,OAAA,KAAA,QAAA,CAEA,EAEA,gBAAA,CACA,GAAA,CAAA,KAAA,OAAA,CACA,KAAA,mBAAA,GACA,MACA,CACA,GAAA,KAAA,cACA,OAAA,KAAA,UAAA,CAEA,EAEA,gBAAA,CACA,GAAA,GAAA,KAAA,QAAA,CAAA,KAAA,eAIA,OAAA,KAAA,UAAA,CACA,EAEA,eAAA,CACA,GAAA,GAAA,KAAA,QAAA,CAAA,KAAA,eAIA,OAAA,KAAA,SAAA,CACA,EAEA,WAAA,EAAA,CACA,GAAA,GAAA,KAAA,QAAA,CAAA,KAAA,eAAA,CAAA,KAAA,cAAA,EAAA,GAAA,GAIA,SAAA,gBAAA,EACA,EAAA,eAAA,EAEA,KAAA,gBAAA,EAAA,GAAA,CACA,CACA,CACA"}
@@ -3,8 +3,8 @@ import { DROPDOWN_PADDING_CLASSES as o } from "./dropdown-constants.js";
3
3
  import { getUniqueString as l } from "../../common/utils/index.js";
4
4
  import { EVENT_KEYNAMES as i } from "../../common/constants/index.js";
5
5
  import { n as h } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
6
- import d from "../popover/popover.js";
7
6
  import { LIST_ITEM_NAVIGATION_TYPES as r } from "../list-item/list-item-constants.js";
7
+ import d from "../popover/popover.js";
8
8
  import { POPOVER_APPEND_TO_VALUES as p } from "../popover/popover-constants.js";
9
9
  const u = {
10
10
  name: "DtDropdown",
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.js","sources":["../../../components/dropdown/dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :open=\"open\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n :tether=\"tether\"\n :transition=\"transition\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!-- @slot Anchor element that activates the dropdown -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events, vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/list_item';\nimport { DROPDOWN_PADDING_CLASSES } from './dropdown_constants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES } from '@/common/constants';\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: 'menuitem',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n props: {\n /**\n * Controls whether the dropdown is shown. Leaving this null will have the dropdown trigger on click by default.\n * If you set this value, the default trigger behavior will be disabled and you can control it as you need.\n * Supports .sync modifier\n */\n open: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n },\n\n emits: [\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when dropdown is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n isOpen: null,\n };\n },\n\n computed: {\n dropdownListeners () {\n return {\n ...this.$listeners,\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey();\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement && liElement.role && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n liElement.focus();\n }\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtPopover","KeyboardNavigation","padding","DROPDOWN_PADDING_CLASSES","item","getUniqueString","LIST_ITEM_NAVIGATION_TYPES","t","appendTo","POPOVER_APPEND_TO_VALUES","EVENT_KEYNAMES","isPopoverOpen","event","liElement"],"mappings":";;;;;;;;AAiEA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,WAAAC;AAAA,EACA;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A,WAAA,GAAA;AACA,UAAA,GAAA,KAAA,UAAA,CAAA,KAAA,iBAAA,CAAA,KAAA,cAAA,EAAA,GAAA;AAIA,iBAAA,gBAAA,GACA,EAAA,eAAA,GAEA,KAAA,gBAAA,EAAA,GAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dropdown.js","sources":["../../../components/dropdown/dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :open=\"open\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n :tether=\"tether\"\n :transition=\"transition\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!-- @slot Anchor element that activates the dropdown -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events, vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/list_item';\nimport { DROPDOWN_PADDING_CLASSES } from './dropdown_constants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES } from '@/common/constants';\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: 'menuitem',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n props: {\n /**\n * Controls whether the dropdown is shown. Leaving this null will have the dropdown trigger on click by default.\n * If you set this value, the default trigger behavior will be disabled and you can control it as you need.\n * Supports .sync modifier\n */\n open: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n },\n\n emits: [\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when dropdown is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n isOpen: null,\n };\n },\n\n computed: {\n dropdownListeners () {\n return {\n ...this.$listeners,\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey();\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement && liElement.role && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n liElement.focus();\n }\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtPopover","KeyboardNavigation","padding","DROPDOWN_PADDING_CLASSES","item","getUniqueString","LIST_ITEM_NAVIGATION_TYPES","t","appendTo","POPOVER_APPEND_TO_VALUES","EVENT_KEYNAMES","isPopoverOpen","event","liElement"],"mappings":";;;;;;;;AAiEA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,WAAAC;AAAA,EACA;AAAA,EAEA,QAAA;AAAA,IACAC,EAAA;AAAA,MACA,UAAA;AAAA,MACA,OAAA;AAAA,MACA,gBAAA;AAAA,MACA,cAAA;AAAA,MACA,sBAAA;AAAA,MACA,uBAAA;AAAA,MACA,iBAAA;AAAA,MACA,eAAA;AAAA,MACA,2BAAA;AAAA,IACA,CAAA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAAC,MACA,OAAA,KAAAC,CAAA,EAAA,KAAA,CAAAC,MAAAA,MAAAF,CAAA;AAAA,IAEA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,cAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,UAAA;AAAA,MACA,MAAA;AAAA,M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,KAAA,QAAA;AAAA,IAEA;AAAA,IAEA,iBAAA;AACA,UAAA,CAAA,KAAA,QAAA;AACA,aAAA,qBAAA;AACA;AAAA,MACA;AACA,UAAA,KAAA;AACA,eAAA,KAAA,UAAA;AAAA,IAEA;AAAA,IAEA,iBAAA;AACA,UAAA,GAAA,KAAA,UAAA,CAAA,KAAA;AAIA,eAAA,KAAA,UAAA;AAAA,IACA;AAAA,IAEA,gBAAA;AACA,UAAA,GAAA,KAAA,UAAA,CAAA,KAAA;AAIA,eAAA,KAAA,SAAA;AAAA,IACA;AAAA,IAEA,WAAA,GAAA;AACA,UAAA,GAAA,KAAA,UAAA,CAAA,KAAA,iBAAA,CAAA,KAAA,cAAA,EAAA,GAAA;AAIA,iBAAA,gBAAA,GACA,EAAA,eAAA,GAEA,KAAA,gBAAA,EAAA,GAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"editor-constants.cjs","sources":["../../../recipes/conversation_view/editor/editor_constants.js"],"sourcesContent":["export const EDITOR_SUPPORTED_LINK_PROTOCOLS = [\n /^https?:\\/\\//,\n /^http?:\\/\\//,\n /^ftp?:\\/\\//,\n /^ftps?:\\/\\//,\n /^ftps?:\\/\\//,\n /mailto:([^?]*)/,\n];\n\nexport const EDITOR_DEFAULT_LINK_PREFIX = 'https://';\n\nexport default {\n EDITOR_SUPPORTED_LINK_PROTOCOLS,\n EDITOR_DEFAULT_LINK_PREFIX,\n};\n"],"names":["EDITOR_SUPPORTED_LINK_PROTOCOLS","EDITOR_DEFAULT_LINK_PREFIX","editor_constants"],"mappings":"4GAAY,MAACA,EAAkC,CAC7C,eACA,cACA,aACA,cACA,cACA,gBACF,EAEaC,EAA6B,WAE3BC,EAAA,CACb,gCAAAF,EACA,2BAAAC,CACF"}
1
+ {"version":3,"file":"editor-constants.cjs","sources":["../../../recipes/conversation_view/editor/editor_constants.js"],"sourcesContent":["export const EDITOR_SUPPORTED_LINK_PROTOCOLS = [\n /^https?:\\/\\//,\n /^http?:\\/\\//,\n /^ftp?:\\/\\//,\n /^ftps?:\\/\\//,\n /^ftps?:\\/\\//,\n /mailto:([^?]*)/,\n];\n\nexport const EDITOR_DEFAULT_LINK_PREFIX = 'https://';\n\nexport default {\n EDITOR_SUPPORTED_LINK_PROTOCOLS,\n EDITOR_DEFAULT_LINK_PREFIX,\n};\n"],"names":["EDITOR_SUPPORTED_LINK_PROTOCOLS","EDITOR_DEFAULT_LINK_PREFIX","editor_constants"],"mappings":"4GAAY,MAACA,EAAkC,CAC7C,eACA,cACA,aACA,cACA,cACA,gBACF,EAEaC,EAA6B,WAE1CC,EAAe,CACb,gCAAAF,EACA,2BAAAC,CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"editor-constants.js","sources":["../../../recipes/conversation_view/editor/editor_constants.js"],"sourcesContent":["export const EDITOR_SUPPORTED_LINK_PROTOCOLS = [\n /^https?:\\/\\//,\n /^http?:\\/\\//,\n /^ftp?:\\/\\//,\n /^ftps?:\\/\\//,\n /^ftps?:\\/\\//,\n /mailto:([^?]*)/,\n];\n\nexport const EDITOR_DEFAULT_LINK_PREFIX = 'https://';\n\nexport default {\n EDITOR_SUPPORTED_LINK_PROTOCOLS,\n EDITOR_DEFAULT_LINK_PREFIX,\n};\n"],"names":["EDITOR_SUPPORTED_LINK_PROTOCOLS","EDITOR_DEFAULT_LINK_PREFIX","editor_constants"],"mappings":"AAAY,MAACA,IAAkC;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAA6B,YAE3BC,IAAA;AAAA,EACb,iCAAAF;AAAA,EACA,4BAAAC;AACF;"}
1
+ {"version":3,"file":"editor-constants.js","sources":["../../../recipes/conversation_view/editor/editor_constants.js"],"sourcesContent":["export const EDITOR_SUPPORTED_LINK_PROTOCOLS = [\n /^https?:\\/\\//,\n /^http?:\\/\\//,\n /^ftp?:\\/\\//,\n /^ftps?:\\/\\//,\n /^ftps?:\\/\\//,\n /mailto:([^?]*)/,\n];\n\nexport const EDITOR_DEFAULT_LINK_PREFIX = 'https://';\n\nexport default {\n EDITOR_SUPPORTED_LINK_PROTOCOLS,\n EDITOR_DEFAULT_LINK_PREFIX,\n};\n"],"names":["EDITOR_SUPPORTED_LINK_PROTOCOLS","EDITOR_DEFAULT_LINK_PREFIX","editor_constants"],"mappings":"AAAY,MAACA,IAAkC;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAA6B,YAE1CC,IAAe;AAAA,EACb,iCAAAF;AAAA,EACA,4BAAAC;AACF;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./editor-constants.cjs"),o=require("@dialpad/dialtone-icons/vue2"),d=require("../../localization/index.cjs"),h=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),p=require("../rich-text-editor/rich-text-editor.cjs"),f=require("../button/button.cjs"),k=require("../popover/popover.cjs"),g=require("../stack/stack.cjs"),B=require("../input/input.cjs"),I=require("../tooltip/tooltip.cjs"),a=require("../rich-text-editor/rich-text-editor-constants.cjs"),_={name:"DtRecipeEditor",components:{DtRichTextEditor:p.default,DtButton:f.default,DtPopover:k.default,DtStack:g.default,DtInput:B.default,DtTooltip:I.default,DtIconQuickReply:o.DtIconQuickReply,DtIconBold:o.DtIconBold,DtIconItalic:o.DtIconItalic,DtIconUnderline:o.DtIconUnderline,DtIconStrikethrough:o.DtIconStrikethrough,DtIconListBullet:o.DtIconListBullet,DtIconListOrdered:o.DtIconListOrdered,DtIconAlignLeft:o.DtIconAlignLeft,DtIconAlignCenter:o.DtIconAlignCenter,DtIconAlignRight:o.DtIconAlignRight,DtIconAlignJustify:o.DtIconAlignJustify,DtIconQuote:o.DtIconQuote,DtIconCodeBlock:o.DtIconCodeBlock,DtIconLink2:o.DtIconLink2,DtIconImage:o.DtIconImage},inheritAttrs:!1,props:{value:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(e){return typeof e=="string"?a.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(e):!0}},placeholder:{type:String,default:""},maxHeight:{type:String,default:"unset"},setLinkPlaceholder:{type:String,default:""},showBoldButton:{type:Boolean,default:!0},showItalicsButton:{type:Boolean,default:!0},showUnderlineButton:{type:Boolean,default:!0},showStrikeButton:{type:Boolean,default:!0},showListItemsButton:{type:Boolean,default:!0},showOrderedListButton:{type:Boolean,default:!0},showAlignLeftButton:{type:Boolean,default:!0},showAlignCenterButton:{type:Boolean,default:!0},showAlignRightButton:{type:Boolean,default:!0},showAlignJustifyButton:{type:Boolean,default:!0},showQuoteButton:{type:Boolean,default:!0},showCodeBlockButton:{type:Boolean,default:!0},showQuickRepliesButton:{type:Boolean,default:!0},showInlineImageButton:{type:Boolean,default:!1},showAddLink:{type:Object,default:()=>({showAddLinkButton:!0})},useDivTags:{type:Boolean,default:!1}},emits:["focus","blur","input","quick-replies-click","inline-image-click","text-input"],data(){return{internalInputValue:this.value,hasFocus:!1,linkOptions:{class:"d-recipe-editor__link"},showLinkInput:!1,linkInput:"",currentButtonRefIndex:0,i18n:new d.DialtoneLocalization}},computed:{inputLength(){return this.internalInputValue.length},htmlOutputFormat(){return a.RICH_TEXT_EDITOR_OUTPUT_FORMATS[2]},showingTextFormatButtons(){return this.showBoldButton||this.showItalicsButton||this.showStrikeButton||this.showUnderlineButton},showingAlignmentButtons(){return this.showAlignLeftButton||this.showAlignCenterButton||this.showAlignRightButton||this.showAlignJustifyButton},showingListButtons(){return this.showListItemsButton||this.showOrderedListButton},orderedRefs(){const e=this.buttonGroups.reduce((function(t,i){return i.buttonGroup.forEach(n=>{t.push(this.getButtonRef(i.key,n.selector))},this),t}).bind(this),[]);return e.push(this.getButtonRef("custom","link")),e},buttonGroups(){const e=this.individualButtons.map(t=>({key:t.selector,buttonGroup:[t]}));return[{key:"new",buttonGroup:this.newButtons},{key:"format",buttonGroup:this.textFormatButtons},{key:"alignment",buttonGroup:this.alignmentButtons},{key:"list",buttonGroup:this.listButtons},...e].filter(t=>t.buttonGroup.length>0)},newButtons(){return[{showBtn:this.showQuickRepliesButton,label:this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),selector:"quickReplies",icon:o.DtIconQuickReply,dataQA:"dt-recipe-editor-quick-replies-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),onClick:this.onQuickRepliesClick}].filter(e=>e.showBtn)},textFormatButtons(){return[{showBtn:this.showBoldButton,selector:"bold",icon:o.DtIconBold,dataQA:"dt-recipe-editor-bold-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_BOLD_BUTTON_LABEL"),onClick:this.onBoldTextToggle},{showBtn:this.showItalicsButton,selector:"italic",icon:o.DtIconItalic,dataQA:"dt-recipe-editor-italics-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ITALICS_BUTTON_LABEL"),onClick:this.onItalicTextToggle},{showBtn:this.showUnderlineButton,selector:"underline",icon:o.DtIconUnderline,dataQA:"dt-recipe-editor-underline-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_UNDERLINE_BUTTON_LABEL"),onClick:this.onUnderlineTextToggle},{showBtn:this.showStrikeButton,selector:"strike",icon:o.DtIconStrikethrough,dataQA:"dt-recipe-editor-strike-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_STRIKE_BUTTON_LABEL"),onClick:this.onStrikethroughTextToggle}].filter(e=>e.showBtn)},alignmentButtons(){return[{showBtn:this.showAlignLeftButton,selector:{textAlign:"left"},icon:o.DtIconAlignLeft,dataQA:"dt-recipe-editor-align-left-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_LEFT_BUTTON_LABEL"),onClick:()=>this.onTextAlign("left")},{showBtn:this.showAlignCenterButton,selector:{textAlign:"center"},icon:o.DtIconAlignCenter,dataQA:"dt-recipe-editor-align-center-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_CENTER_BUTTON_LABEL"),onClick:()=>this.onTextAlign("center")},{showBtn:this.showAlignRightButton,selector:{textAlign:"right"},icon:o.DtIconAlignRight,dataQA:"dt-recipe-editor-align-right-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_RIGHT_BUTTON_LABEL"),onClick:()=>this.onTextAlign("right")},{showBtn:this.showAlignJustifyButton,selector:{textAlign:"justify"},icon:o.DtIconAlignJustify,dataQA:"dt-recipe-editor-align-justify-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_JUSTIFY_BUTTON_LABEL"),onClick:()=>this.onTextAlign("justify")}].filter(e=>e.showBtn)},listButtons(){return[{showBtn:this.showListItemsButton,selector:"bulletList",icon:o.DtIconListBullet,dataQA:"dt-recipe-editor-list-items-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_BULLET_LIST_BUTTON_LABEL"),onClick:this.onBulletListToggle},{showBtn:this.showOrderedListButton,selector:"orderedList",icon:o.DtIconListOrdered,dataQA:"dt-recipe-editor-ordered-list-items-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ORDERED_LIST_BUTTON_LABEL"),onClick:this.onOrderedListToggle}].filter(e=>e.showBtn)},individualButtons(){return[{showBtn:this.showQuoteButton,selector:"blockquote",icon:o.DtIconQuote,dataQA:"dt-recipe-editor-blockquote-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_QUOTE_BUTTON_LABEL"),onClick:this.onBlockquoteToggle},{showBtn:this.showCodeBlockButton,selector:"codeBlock",icon:o.DtIconCodeBlock,dataQA:"dt-recipe-editor-code-block-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_CODE_BUTTON_LABEL"),onClick:this.onCodeBlockToggle},{showBtn:this.showInlineImageButton,selector:"image",icon:o.DtIconImage,dataQA:"dt-recipe-editor-inline-image-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_IMAGE_BUTTON_LABEL"),onClick:this.onInsertInlineImageClick}].filter(e=>e.showBtn)},linkButton(){return{showBtn:this.showAddLink.showAddLinkButton,selector:"link",icon:o.DtIconLink2,dataQA:"dt-recipe-editor-add-link-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_LINK_BUTTON_LABEL"),onClick:this.openLinkInput}},confirmSetLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_CONFIRM_SET_LINK_BUTTON")},cancelSetLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_CANCEL_SET_LINK_BUTTON")},removeLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_REMOVE_LINK_BUTTON")},showAddLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_ADD_LINK_BUTTON")}},watch:{value(e){this.internalInputValue=e}},methods:{onInputFocus(e){e==null||e.stopPropagation()},removeLink(){var e,t,i,n,r;(r=(n=(i=(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null?void 0:t.chain())==null?void 0:i.focus())==null?void 0:n.unsetLink())==null||r.run(),this.closeLinkInput()},setLink(e){var r,s,u;const t=(r=this.$refs.richTextEditor)==null?void 0:r.editor;if(e==null||e.preventDefault(),e==null||e.stopPropagation(),!this.linkInput){this.removeLink();return}c.EDITOR_SUPPORTED_LINK_PROTOCOLS.find(l=>l.test(this.linkInput))||(this.linkInput=`${c.EDITOR_DEFAULT_LINK_PREFIX}${this.linkInput}`);const n=(u=(s=t==null?void 0:t.view)==null?void 0:s.state)==null?void 0:u.selection;n.anchor===n.head?t.chain().focus().insertContentAt(n.anchor,`<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`).run():t.chain().focus().extendMarkRange("link").setLink({href:this.linkInput,class:this.linkOptions.class}).run(),this.closeLinkInput()},openLinkInput(){this.showLinkInput=!0},updateInput(e){var t,i,n;if(!e)return this.closeLinkInput();this.linkInput=(n=(i=(t=this.$refs.richTextEditor)==null?void 0:t.editor)==null?void 0:i.getAttributes("link"))==null?void 0:n.href},closeLinkInput(){var e;this.showLinkInput=!1,this.linkInput="",(e=this.$refs.richTextEditor.editor)==null||e.chain().focus()},onBoldTextToggle(){var e,t;(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null||t.chain().focus().toggleBold().run()},onItalicTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleItalic().run()},onUnderlineTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleUnderline().run()},onStrikethroughTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleStrike().run()},onTextAlign(e){var t,i,n,r;if((i=(t=this.$refs.richTextEditor)==null?void 0:t.editor)!=null&&i.isActive({textAlign:e}))return(n=this.$refs.richTextEditor)==null?void 0:n.editor.chain().focus().unsetTextAlign().run();(r=this.$refs.richTextEditor)==null||r.editor.chain().focus().setTextAlign(e).run()},onBulletListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBulletList().run()},onOrderedListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleOrderedList().run()},onCodeBlockToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleCodeBlock().run()},onQuickRepliesClick(){this.$emit("quick-replies-click")},onInsertInlineImageClick(){this.$emit("inline-image-click")},insertInlineImage(e){var t;(t=this.$refs.richTextEditor)==null||t.editor.chain().focus().setImage({src:e}).run()},onBlockquoteToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBlockquote().run()},insertInMessageBody(e){var t;(t=this.$refs.richTextEditor)==null||t.editor.chain().focus().insertContent(e).run()},setCursorPosition(e=null){var t;(t=this.$refs.richTextEditor)==null||t.editor.chain().focus(e).run()},onTextInput(e){this.$emit("text-input",e)},onFocus(e){this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(e){this.$emit("input",e)},getButtonKey(e,t){return`${e}-${JSON.stringify(t)}`},getButtonRef(e,t){return`${this.getButtonKey(e,t)}-ref`},canFocus(e){return e===this.orderedRefs[this.currentButtonRefIndex]},shiftActionBarFocusRight(){this.shiftButtonRefIndex(1)},shiftActionBarFocusLeft(){this.shiftButtonRefIndex(-1)},shiftButtonRefIndex(e){const t=this.$refs[this.orderedRefs[this.currentButtonRefIndex]],i=Array.isArray(t)?t[0]:t,n=(this.currentButtonRefIndex+e)%this.orderedRefs.length;this.currentButtonRefIndex=n>=0?n:this.orderedRefs.length+n;const r=this.$refs[this.orderedRefs[this.currentButtonRefIndex]],s=Array.isArray(r)?r[0]:r;i.$el.blur(),s.$el.focus()}}};var T=function(){var t=this,i=t._self._c;return i("div",{staticClass:"d-recipe-editor",attrs:{"data-qa":"dt-recipe-editor",role:"presentation"},on:{click:function(n){return t.$refs.richTextEditor.focusEditor()}}},[i("dt-stack",{staticClass:"d-recipe-editor__top-bar",attrs:{direction:"row",gap:"450"}},[t._l(t.buttonGroups,function(n){return i("dt-stack",{key:n.key,attrs:{direction:"row",gap:"300"}},[t._l(n.buttonGroup,function(r){return i("dt-tooltip",{key:t.getButtonKey(n.key,r.selector),attrs:{message:r.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var s,u;return[i("dt-button",{ref:t.getButtonRef(n.key,r.selector),refInFor:!0,attrs:{active:(u=(s=t.$refs.richTextEditor)==null?void 0:s.editor)==null?void 0:u.isActive(r.selector),"aria-label":r.tooltipMessage,"data-qa":r.dataQA,tabindex:t.canFocus(t.getButtonRef(n.key,r.selector))?0:-1,importance:"clear",kind:"muted",size:"xs"},on:{click:function(l){return r.onClick()},keydown:[function(l){return!l.type.indexOf("key")&&t._k(l.keyCode,"right",39,l.key,["Right","ArrowRight"])||"button"in l&&l.button!==2?null:(l.stopPropagation(),t.shiftActionBarFocusRight.apply(null,arguments))},function(l){return!l.type.indexOf("key")&&t._k(l.keyCode,"left",37,l.key,["Left","ArrowLeft"])||"button"in l&&l.button!==0?null:(l.stopPropagation(),t.shiftActionBarFocusLeft.apply(null,arguments))}]},scopedSlots:t._u([{key:"icon",fn:function(){return[i(r.icon,{tag:"component",attrs:{size:"200"}})]},proxy:!0}],null,!0)},[r.label?i("span",[t._v(t._s(r.label))]):t._e()])]},proxy:!0}],null,!0)})}),i("div",{staticClass:"d-recipe-editor__button-group-divider"})],2)}),t.linkButton.showBtn?i("dt-stack",{attrs:{direction:"row",gap:"300"}},[i("dt-popover",{attrs:{open:t.showLinkInput,"show-close-button":!1,"data-qa":"dt-recipe-editor-link-input-popover",padding:"none",placement:"bottom-start"},on:{"update:open":function(n){t.showLinkInput=n},click:t.onInputFocus,opened:t.updateInput},nativeOn:{click:function(n){return n.stopPropagation(),t.onInputFocus.apply(null,arguments)}},scopedSlots:t._u([{key:"anchor",fn:function(){return[i("dt-tooltip",{key:t.linkButton.key,attrs:{message:t.linkButton.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var n,r;return[i("dt-button",{ref:t.getButtonRef("custom","link"),attrs:{active:(r=(n=t.$refs.richTextEditor)==null?void 0:n.editor)==null?void 0:r.isActive(t.linkButton.selector),"aria-label":t.linkButton.tooltipMessage,"data-qa":t.linkButton.dataQA,tabindex:t.canFocus(t.getButtonRef("custom","link"))?0:-1,importance:"clear",kind:"muted",size:"xs"},on:{click:function(s){return t.linkButton.onClick()},keydown:[function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"right",39,s.key,["Right","ArrowRight"])||"button"in s&&s.button!==2?null:(s.stopPropagation(),t.shiftActionBarFocusRight.apply(null,arguments))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"left",37,s.key,["Left","ArrowLeft"])||"button"in s&&s.button!==0?null:(s.stopPropagation(),t.shiftActionBarFocusLeft.apply(null,arguments))}]},scopedSlots:t._u([{key:"icon",fn:function(){return[i(t.linkButton.icon,{tag:"component",attrs:{size:"200"}})]},proxy:!0}],null,!1,3601441856)})]},proxy:!0}],null,!1,1067010212)})]},proxy:!0},{key:"content",fn:function(){return[i("div",{staticClass:"d-recipe-editor__popover-content"},[i("span",[t._v(" "+t._s(t.showAddLinkButtonLabels.title)+" ")]),i("dt-input",{attrs:{"input-aria-label":t.showAddLinkButtonLabels["aria-label"],placeholder:t.setLinkPlaceholder,"data-qa":"dt-recipe-editor-link-input","input-wrapper-class":"d-recipe-editor-link__input-wrapper"},on:{click:t.onInputFocus,focus:t.onInputFocus,keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.setLink.apply(null,arguments)}},nativeOn:{click:function(n){return n.stopPropagation(),t.onInputFocus.apply(null,arguments)}},model:{value:t.linkInput,callback:function(n){t.linkInput=n},expression:"linkInput"}})],1)]},proxy:!0},{key:"footerContent",fn:function(){return[i("dt-stack",{staticClass:"d-recipe-editor__popover-footer",attrs:{direction:"row",gap:"300"}},[i("dt-button",t._b({attrs:{"data-qa":"dt-recipe-editor-remove-link-btn",importance:"clear",kind:"muted",size:"sm"},on:{click:t.removeLink}},"dt-button",t.removeLinkButtonLabels,!1),[t._v(" "+t._s(t.removeLinkButtonLabels.title)+" ")]),i("dt-button",t._b({attrs:{"data-qa":"dt-recipe-editor-set-link-cancel-btn",importance:"clear",kind:"muted",size:"sm"},on:{click:t.closeLinkInput}},"dt-button",t.cancelSetLinkButtonLabels,!1),[t._v(" "+t._s(t.cancelSetLinkButtonLabels.title)+" ")]),i("dt-button",t._b({attrs:{"data-qa":"dt-recipe-editor-set-link-confirm-btn",size:"sm"},on:{click:t.setLink}},"dt-button",t.confirmSetLinkButtonLabels,!1),[t._v(" "+t._s(t.confirmSetLinkButtonLabels.title)+" ")])],1)]},proxy:!0}],null,!1,2563529431)})],1):t._e()],2),i("div",{staticClass:"d-recipe-editor__content",style:{"max-height":t.maxHeight}},[i("dt-rich-text-editor",t._b({ref:"richTextEditor",attrs:{"allow-font-color":!0,"allow-font-family":!0,"allow-inline-images":!0,"allow-line-breaks":!0,"hide-link-bubble-menu":!0,"auto-focus":t.autoFocus,editable:t.editable,"input-aria-label":t.inputAriaLabel,"input-class":`d-recipe-editor__content-input ${t.inputClass}`,link:!0,"output-format":t.htmlOutputFormat,placeholder:t.placeholder,"use-div-tags":t.useDivTags,"data-qa":"dt-rich-text-editor"},on:{"text-input":t.onTextInput,blur:t.onBlur,focus:t.onFocus,input:function(n){return t.onInput(n)}},model:{value:t.internalInputValue,callback:function(n){t.internalInputValue=n},expression:"internalInputValue"}},"dt-rich-text-editor",t.$attrs,!1))],1)],1)},L=[],A=h.n(_,T,L);const E=A.exports;exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./editor-constants.cjs"),o=require("@dialpad/dialtone-icons/vue2"),d=require("../../localization/index.cjs"),h=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),p=require("../tooltip/tooltip.cjs"),f=require("../input/input.cjs"),k=require("../stack/stack.cjs"),g=require("../popover/popover.cjs"),B=require("../button/button.cjs"),I=require("../rich-text-editor/rich-text-editor.cjs"),a=require("../rich-text-editor/rich-text-editor-constants.cjs"),_={name:"DtRecipeEditor",components:{DtRichTextEditor:I.default,DtButton:B.default,DtPopover:g.default,DtStack:k.default,DtInput:f.default,DtTooltip:p.default,DtIconQuickReply:o.DtIconQuickReply,DtIconBold:o.DtIconBold,DtIconItalic:o.DtIconItalic,DtIconUnderline:o.DtIconUnderline,DtIconStrikethrough:o.DtIconStrikethrough,DtIconListBullet:o.DtIconListBullet,DtIconListOrdered:o.DtIconListOrdered,DtIconAlignLeft:o.DtIconAlignLeft,DtIconAlignCenter:o.DtIconAlignCenter,DtIconAlignRight:o.DtIconAlignRight,DtIconAlignJustify:o.DtIconAlignJustify,DtIconQuote:o.DtIconQuote,DtIconCodeBlock:o.DtIconCodeBlock,DtIconLink2:o.DtIconLink2,DtIconImage:o.DtIconImage},inheritAttrs:!1,props:{value:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(e){return typeof e=="string"?a.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(e):!0}},placeholder:{type:String,default:""},maxHeight:{type:String,default:"unset"},setLinkPlaceholder:{type:String,default:""},showBoldButton:{type:Boolean,default:!0},showItalicsButton:{type:Boolean,default:!0},showUnderlineButton:{type:Boolean,default:!0},showStrikeButton:{type:Boolean,default:!0},showListItemsButton:{type:Boolean,default:!0},showOrderedListButton:{type:Boolean,default:!0},showAlignLeftButton:{type:Boolean,default:!0},showAlignCenterButton:{type:Boolean,default:!0},showAlignRightButton:{type:Boolean,default:!0},showAlignJustifyButton:{type:Boolean,default:!0},showQuoteButton:{type:Boolean,default:!0},showCodeBlockButton:{type:Boolean,default:!0},showQuickRepliesButton:{type:Boolean,default:!0},showInlineImageButton:{type:Boolean,default:!1},showAddLink:{type:Object,default:()=>({showAddLinkButton:!0})},useDivTags:{type:Boolean,default:!1}},emits:["focus","blur","input","quick-replies-click","inline-image-click","text-input"],data(){return{internalInputValue:this.value,hasFocus:!1,linkOptions:{class:"d-recipe-editor__link"},showLinkInput:!1,linkInput:"",currentButtonRefIndex:0,i18n:new d.DialtoneLocalization}},computed:{inputLength(){return this.internalInputValue.length},htmlOutputFormat(){return a.RICH_TEXT_EDITOR_OUTPUT_FORMATS[2]},showingTextFormatButtons(){return this.showBoldButton||this.showItalicsButton||this.showStrikeButton||this.showUnderlineButton},showingAlignmentButtons(){return this.showAlignLeftButton||this.showAlignCenterButton||this.showAlignRightButton||this.showAlignJustifyButton},showingListButtons(){return this.showListItemsButton||this.showOrderedListButton},orderedRefs(){const e=this.buttonGroups.reduce((function(t,i){return i.buttonGroup.forEach(n=>{t.push(this.getButtonRef(i.key,n.selector))},this),t}).bind(this),[]);return e.push(this.getButtonRef("custom","link")),e},buttonGroups(){const e=this.individualButtons.map(t=>({key:t.selector,buttonGroup:[t]}));return[{key:"new",buttonGroup:this.newButtons},{key:"format",buttonGroup:this.textFormatButtons},{key:"alignment",buttonGroup:this.alignmentButtons},{key:"list",buttonGroup:this.listButtons},...e].filter(t=>t.buttonGroup.length>0)},newButtons(){return[{showBtn:this.showQuickRepliesButton,label:this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),selector:"quickReplies",icon:o.DtIconQuickReply,dataQA:"dt-recipe-editor-quick-replies-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),onClick:this.onQuickRepliesClick}].filter(e=>e.showBtn)},textFormatButtons(){return[{showBtn:this.showBoldButton,selector:"bold",icon:o.DtIconBold,dataQA:"dt-recipe-editor-bold-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_BOLD_BUTTON_LABEL"),onClick:this.onBoldTextToggle},{showBtn:this.showItalicsButton,selector:"italic",icon:o.DtIconItalic,dataQA:"dt-recipe-editor-italics-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ITALICS_BUTTON_LABEL"),onClick:this.onItalicTextToggle},{showBtn:this.showUnderlineButton,selector:"underline",icon:o.DtIconUnderline,dataQA:"dt-recipe-editor-underline-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_UNDERLINE_BUTTON_LABEL"),onClick:this.onUnderlineTextToggle},{showBtn:this.showStrikeButton,selector:"strike",icon:o.DtIconStrikethrough,dataQA:"dt-recipe-editor-strike-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_STRIKE_BUTTON_LABEL"),onClick:this.onStrikethroughTextToggle}].filter(e=>e.showBtn)},alignmentButtons(){return[{showBtn:this.showAlignLeftButton,selector:{textAlign:"left"},icon:o.DtIconAlignLeft,dataQA:"dt-recipe-editor-align-left-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_LEFT_BUTTON_LABEL"),onClick:()=>this.onTextAlign("left")},{showBtn:this.showAlignCenterButton,selector:{textAlign:"center"},icon:o.DtIconAlignCenter,dataQA:"dt-recipe-editor-align-center-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_CENTER_BUTTON_LABEL"),onClick:()=>this.onTextAlign("center")},{showBtn:this.showAlignRightButton,selector:{textAlign:"right"},icon:o.DtIconAlignRight,dataQA:"dt-recipe-editor-align-right-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_RIGHT_BUTTON_LABEL"),onClick:()=>this.onTextAlign("right")},{showBtn:this.showAlignJustifyButton,selector:{textAlign:"justify"},icon:o.DtIconAlignJustify,dataQA:"dt-recipe-editor-align-justify-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ALIGN_JUSTIFY_BUTTON_LABEL"),onClick:()=>this.onTextAlign("justify")}].filter(e=>e.showBtn)},listButtons(){return[{showBtn:this.showListItemsButton,selector:"bulletList",icon:o.DtIconListBullet,dataQA:"dt-recipe-editor-list-items-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_BULLET_LIST_BUTTON_LABEL"),onClick:this.onBulletListToggle},{showBtn:this.showOrderedListButton,selector:"orderedList",icon:o.DtIconListOrdered,dataQA:"dt-recipe-editor-ordered-list-items-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_ORDERED_LIST_BUTTON_LABEL"),onClick:this.onOrderedListToggle}].filter(e=>e.showBtn)},individualButtons(){return[{showBtn:this.showQuoteButton,selector:"blockquote",icon:o.DtIconQuote,dataQA:"dt-recipe-editor-blockquote-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_QUOTE_BUTTON_LABEL"),onClick:this.onBlockquoteToggle},{showBtn:this.showCodeBlockButton,selector:"codeBlock",icon:o.DtIconCodeBlock,dataQA:"dt-recipe-editor-code-block-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_CODE_BUTTON_LABEL"),onClick:this.onCodeBlockToggle},{showBtn:this.showInlineImageButton,selector:"image",icon:o.DtIconImage,dataQA:"dt-recipe-editor-inline-image-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_IMAGE_BUTTON_LABEL"),onClick:this.onInsertInlineImageClick}].filter(e=>e.showBtn)},linkButton(){return{showBtn:this.showAddLink.showAddLinkButton,selector:"link",icon:o.DtIconLink2,dataQA:"dt-recipe-editor-add-link-btn",tooltipMessage:this.i18n.$t("DIALTONE_EDITOR_LINK_BUTTON_LABEL"),onClick:this.openLinkInput}},confirmSetLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_CONFIRM_SET_LINK_BUTTON")},cancelSetLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_CANCEL_SET_LINK_BUTTON")},removeLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_REMOVE_LINK_BUTTON")},showAddLinkButtonLabels(){return this.i18n.$ta("DIALTONE_EDITOR_ADD_LINK_BUTTON")}},watch:{value(e){this.internalInputValue=e}},methods:{onInputFocus(e){e==null||e.stopPropagation()},removeLink(){var e,t,i,n,r;(r=(n=(i=(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null?void 0:t.chain())==null?void 0:i.focus())==null?void 0:n.unsetLink())==null||r.run(),this.closeLinkInput()},setLink(e){var r,s,u;const t=(r=this.$refs.richTextEditor)==null?void 0:r.editor;if(e==null||e.preventDefault(),e==null||e.stopPropagation(),!this.linkInput){this.removeLink();return}c.EDITOR_SUPPORTED_LINK_PROTOCOLS.find(l=>l.test(this.linkInput))||(this.linkInput=`${c.EDITOR_DEFAULT_LINK_PREFIX}${this.linkInput}`);const n=(u=(s=t==null?void 0:t.view)==null?void 0:s.state)==null?void 0:u.selection;n.anchor===n.head?t.chain().focus().insertContentAt(n.anchor,`<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`).run():t.chain().focus().extendMarkRange("link").setLink({href:this.linkInput,class:this.linkOptions.class}).run(),this.closeLinkInput()},openLinkInput(){this.showLinkInput=!0},updateInput(e){var t,i,n;if(!e)return this.closeLinkInput();this.linkInput=(n=(i=(t=this.$refs.richTextEditor)==null?void 0:t.editor)==null?void 0:i.getAttributes("link"))==null?void 0:n.href},closeLinkInput(){var e;this.showLinkInput=!1,this.linkInput="",(e=this.$refs.richTextEditor.editor)==null||e.chain().focus()},onBoldTextToggle(){var e,t;(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null||t.chain().focus().toggleBold().run()},onItalicTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleItalic().run()},onUnderlineTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleUnderline().run()},onStrikethroughTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleStrike().run()},onTextAlign(e){var t,i,n,r;if((i=(t=this.$refs.richTextEditor)==null?void 0:t.editor)!=null&&i.isActive({textAlign:e}))return(n=this.$refs.richTextEditor)==null?void 0:n.editor.chain().focus().unsetTextAlign().run();(r=this.$refs.richTextEditor)==null||r.editor.chain().focus().setTextAlign(e).run()},onBulletListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBulletList().run()},onOrderedListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleOrderedList().run()},onCodeBlockToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleCodeBlock().run()},onQuickRepliesClick(){this.$emit("quick-replies-click")},onInsertInlineImageClick(){this.$emit("inline-image-click")},insertInlineImage(e){var t;(t=this.$refs.richTextEditor)==null||t.editor.chain().focus().setImage({src:e}).run()},onBlockquoteToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBlockquote().run()},insertInMessageBody(e){var t;(t=this.$refs.richTextEditor)==null||t.editor.chain().focus().insertContent(e).run()},setCursorPosition(e=null){var t;(t=this.$refs.richTextEditor)==null||t.editor.chain().focus(e).run()},onTextInput(e){this.$emit("text-input",e)},onFocus(e){this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(e){this.$emit("input",e)},getButtonKey(e,t){return`${e}-${JSON.stringify(t)}`},getButtonRef(e,t){return`${this.getButtonKey(e,t)}-ref`},canFocus(e){return e===this.orderedRefs[this.currentButtonRefIndex]},shiftActionBarFocusRight(){this.shiftButtonRefIndex(1)},shiftActionBarFocusLeft(){this.shiftButtonRefIndex(-1)},shiftButtonRefIndex(e){const t=this.$refs[this.orderedRefs[this.currentButtonRefIndex]],i=Array.isArray(t)?t[0]:t,n=(this.currentButtonRefIndex+e)%this.orderedRefs.length;this.currentButtonRefIndex=n>=0?n:this.orderedRefs.length+n;const r=this.$refs[this.orderedRefs[this.currentButtonRefIndex]],s=Array.isArray(r)?r[0]:r;i.$el.blur(),s.$el.focus()}}};var T=function(){var t=this,i=t._self._c;return i("div",{staticClass:"d-recipe-editor",attrs:{"data-qa":"dt-recipe-editor",role:"presentation"},on:{click:function(n){return t.$refs.richTextEditor.focusEditor()}}},[i("dt-stack",{staticClass:"d-recipe-editor__top-bar",attrs:{direction:"row",gap:"450"}},[t._l(t.buttonGroups,function(n){return i("dt-stack",{key:n.key,attrs:{direction:"row",gap:"300"}},[t._l(n.buttonGroup,function(r){return i("dt-tooltip",{key:t.getButtonKey(n.key,r.selector),attrs:{message:r.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var s,u;return[i("dt-button",{ref:t.getButtonRef(n.key,r.selector),refInFor:!0,attrs:{active:(u=(s=t.$refs.richTextEditor)==null?void 0:s.editor)==null?void 0:u.isActive(r.selector),"aria-label":r.tooltipMessage,"data-qa":r.dataQA,tabindex:t.canFocus(t.getButtonRef(n.key,r.selector))?0:-1,importance:"clear",kind:"muted",size:"xs"},on:{click:function(l){return r.onClick()},keydown:[function(l){return!l.type.indexOf("key")&&t._k(l.keyCode,"right",39,l.key,["Right","ArrowRight"])||"button"in l&&l.button!==2?null:(l.stopPropagation(),t.shiftActionBarFocusRight.apply(null,arguments))},function(l){return!l.type.indexOf("key")&&t._k(l.keyCode,"left",37,l.key,["Left","ArrowLeft"])||"button"in l&&l.button!==0?null:(l.stopPropagation(),t.shiftActionBarFocusLeft.apply(null,arguments))}]},scopedSlots:t._u([{key:"icon",fn:function(){return[i(r.icon,{tag:"component",attrs:{size:"200"}})]},proxy:!0}],null,!0)},[r.label?i("span",[t._v(t._s(r.label))]):t._e()])]},proxy:!0}],null,!0)})}),i("div",{staticClass:"d-recipe-editor__button-group-divider"})],2)}),t.linkButton.showBtn?i("dt-stack",{attrs:{direction:"row",gap:"300"}},[i("dt-popover",{attrs:{open:t.showLinkInput,"show-close-button":!1,"data-qa":"dt-recipe-editor-link-input-popover",padding:"none",placement:"bottom-start"},on:{"update:open":function(n){t.showLinkInput=n},click:t.onInputFocus,opened:t.updateInput},nativeOn:{click:function(n){return n.stopPropagation(),t.onInputFocus.apply(null,arguments)}},scopedSlots:t._u([{key:"anchor",fn:function(){return[i("dt-tooltip",{key:t.linkButton.key,attrs:{message:t.linkButton.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var n,r;return[i("dt-button",{ref:t.getButtonRef("custom","link"),attrs:{active:(r=(n=t.$refs.richTextEditor)==null?void 0:n.editor)==null?void 0:r.isActive(t.linkButton.selector),"aria-label":t.linkButton.tooltipMessage,"data-qa":t.linkButton.dataQA,tabindex:t.canFocus(t.getButtonRef("custom","link"))?0:-1,importance:"clear",kind:"muted",size:"xs"},on:{click:function(s){return t.linkButton.onClick()},keydown:[function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"right",39,s.key,["Right","ArrowRight"])||"button"in s&&s.button!==2?null:(s.stopPropagation(),t.shiftActionBarFocusRight.apply(null,arguments))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"left",37,s.key,["Left","ArrowLeft"])||"button"in s&&s.button!==0?null:(s.stopPropagation(),t.shiftActionBarFocusLeft.apply(null,arguments))}]},scopedSlots:t._u([{key:"icon",fn:function(){return[i(t.linkButton.icon,{tag:"component",attrs:{size:"200"}})]},proxy:!0}],null,!1,3601441856)})]},proxy:!0}],null,!1,1067010212)})]},proxy:!0},{key:"content",fn:function(){return[i("div",{staticClass:"d-recipe-editor__popover-content"},[i("span",[t._v(" "+t._s(t.showAddLinkButtonLabels.title)+" ")]),i("dt-input",{attrs:{"input-aria-label":t.showAddLinkButtonLabels["aria-label"],placeholder:t.setLinkPlaceholder,"data-qa":"dt-recipe-editor-link-input","input-wrapper-class":"d-recipe-editor-link__input-wrapper"},on:{click:t.onInputFocus,focus:t.onInputFocus,keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.setLink.apply(null,arguments)}},nativeOn:{click:function(n){return n.stopPropagation(),t.onInputFocus.apply(null,arguments)}},model:{value:t.linkInput,callback:function(n){t.linkInput=n},expression:"linkInput"}})],1)]},proxy:!0},{key:"footerContent",fn:function(){return[i("dt-stack",{staticClass:"d-recipe-editor__popover-footer",attrs:{direction:"row",gap:"300"}},[i("dt-button",t._b({attrs:{"data-qa":"dt-recipe-editor-remove-link-btn",importance:"clear",kind:"muted",size:"sm"},on:{click:t.removeLink}},"dt-button",t.removeLinkButtonLabels,!1),[t._v(" "+t._s(t.removeLinkButtonLabels.title)+" ")]),i("dt-button",t._b({attrs:{"data-qa":"dt-recipe-editor-set-link-cancel-btn",importance:"clear",kind:"muted",size:"sm"},on:{click:t.closeLinkInput}},"dt-button",t.cancelSetLinkButtonLabels,!1),[t._v(" "+t._s(t.cancelSetLinkButtonLabels.title)+" ")]),i("dt-button",t._b({attrs:{"data-qa":"dt-recipe-editor-set-link-confirm-btn",size:"sm"},on:{click:t.setLink}},"dt-button",t.confirmSetLinkButtonLabels,!1),[t._v(" "+t._s(t.confirmSetLinkButtonLabels.title)+" ")])],1)]},proxy:!0}],null,!1,2563529431)})],1):t._e()],2),i("div",{staticClass:"d-recipe-editor__content",style:{"max-height":t.maxHeight}},[i("dt-rich-text-editor",t._b({ref:"richTextEditor",attrs:{"allow-font-color":!0,"allow-font-family":!0,"allow-inline-images":!0,"allow-line-breaks":!0,"hide-link-bubble-menu":!0,"auto-focus":t.autoFocus,editable:t.editable,"input-aria-label":t.inputAriaLabel,"input-class":`d-recipe-editor__content-input ${t.inputClass}`,link:!0,"output-format":t.htmlOutputFormat,placeholder:t.placeholder,"use-div-tags":t.useDivTags,"data-qa":"dt-rich-text-editor"},on:{"text-input":t.onTextInput,blur:t.onBlur,focus:t.onFocus,input:function(n){return t.onInput(n)}},model:{value:t.internalInputValue,callback:function(n){t.internalInputValue=n},expression:"internalInputValue"}},"dt-rich-text-editor",t.$attrs,!1))],1)],1)},L=[],A=h.n(_,T,L);const E=A.exports;exports.default=E;
2
2
  //# sourceMappingURL=editor.cjs.map