@dialpad/dialtone-vue 3.120.0 → 3.120.2

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 (425) hide show
  1. package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js +11 -0
  2. package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js.map +1 -0
  3. package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js +10 -0
  4. package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js.map +1 -0
  5. package/dist/chunks/{dropdown-eWOvBvwq.js → dropdown-Hn-TeTvZ.js} +151 -104
  6. package/dist/chunks/{dropdown-UO3UJalk.js.map → dropdown-Hn-TeTvZ.js.map} +1 -1
  7. package/dist/chunks/dropdown-w8Do29L5.js +442 -0
  8. package/dist/chunks/{dropdown-eWOvBvwq.js.map → dropdown-w8Do29L5.js.map} +1 -1
  9. package/dist/chunks/dropdown_constants-2pGCXy7m.js +8 -0
  10. package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -0
  11. package/dist/chunks/dropdown_constants-w1MXGC3Z.js +9 -0
  12. package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -0
  13. package/dist/chunks/{icon_constants-OpYAAKwF.js → icon_constants-Dy4MEUJL.js} +7 -6
  14. package/dist/chunks/{icon_constants-2S_OSQ1t.js.map → icon_constants-Dy4MEUJL.js.map} +1 -1
  15. package/dist/chunks/icon_constants-QYpmdE0R.js +16 -0
  16. package/dist/chunks/{icon_constants-OpYAAKwF.js.map → icon_constants-QYpmdE0R.js.map} +1 -1
  17. package/dist/chunks/index-4qgKeErp.js +446 -0
  18. package/dist/chunks/{index-b4iXYvId.js.map → index-4qgKeErp.js.map} +1 -1
  19. package/dist/chunks/index-b_MgDylR.js +447 -0
  20. package/dist/chunks/{index-6tYeqbgP.js.map → index-b_MgDylR.js.map} +1 -1
  21. package/dist/chunks/{input-4UQWegUk.js → input-NmYDD5bn.js} +83 -60
  22. package/dist/chunks/{input-0Uksk4DP.js.map → input-NmYDD5bn.js.map} +1 -1
  23. package/dist/chunks/input-ttnte8zB.js +295 -0
  24. package/dist/chunks/{input-4UQWegUk.js.map → input-ttnte8zB.js.map} +1 -1
  25. package/dist/chunks/input_group-M-D25pOJ.js +152 -0
  26. package/dist/chunks/{input_group-bBKaq3Wi.js.map → input_group-M-D25pOJ.js.map} +1 -1
  27. package/dist/chunks/{input_group-bBKaq3Wi.js → input_group-jWnq2DJT.js} +27 -24
  28. package/dist/chunks/{input_group-AS760Cp7.js.map → input_group-jWnq2DJT.js.map} +1 -1
  29. package/dist/chunks/keyboard_list_navigation-ScXhrxya.js +284 -0
  30. package/dist/chunks/{keyboard_list_navigation-N74Bpdq7.js.map → keyboard_list_navigation-ScXhrxya.js.map} +1 -1
  31. package/dist/chunks/keyboard_list_navigation-fJnl_Iox.js +283 -0
  32. package/dist/chunks/{keyboard_list_navigation-F0O8nht0.js.map → keyboard_list_navigation-fJnl_Iox.js.map} +1 -1
  33. package/dist/chunks/link_constants-Huj7D_hm.js +22 -0
  34. package/dist/chunks/{link_constants-Kn6kP4i1.js.map → link_constants-Huj7D_hm.js.map} +1 -1
  35. package/dist/chunks/link_constants-nWVlXQBs.js +23 -0
  36. package/dist/chunks/{link_constants-vIUB92L4.js.map → link_constants-nWVlXQBs.js.map} +1 -1
  37. package/dist/chunks/list_item_constants-EiqkqZvP.js +13 -0
  38. package/dist/chunks/{list_item_constants-Tsz5CO1m.js.map → list_item_constants-EiqkqZvP.js.map} +1 -1
  39. package/dist/chunks/list_item_constants-u1xcN9Dd.js +14 -0
  40. package/dist/chunks/{list_item_constants-LTUc74pD.js.map → list_item_constants-u1xcN9Dd.js.map} +1 -1
  41. package/dist/chunks/modal-VgxXAQFP.js +105 -0
  42. package/dist/chunks/{modal-qEzlo0Sj.js.map → modal-VgxXAQFP.js.map} +1 -1
  43. package/dist/chunks/modal-XOr4kiNZ.js +106 -0
  44. package/dist/chunks/{modal-VuMFkZFH.js.map → modal-XOr4kiNZ.js.map} +1 -1
  45. package/dist/chunks/notice_action-WTucGhvr.js +222 -0
  46. package/dist/chunks/{notice_action-tJfD5Qw1.js.map → notice_action-WTucGhvr.js.map} +1 -1
  47. package/dist/chunks/notice_action-p-ePanW_.js +223 -0
  48. package/dist/chunks/{notice_action-jO199emq.js.map → notice_action-p-ePanW_.js.map} +1 -1
  49. package/dist/chunks/notice_constants-7Qt2CQEY.js +7 -0
  50. package/dist/chunks/{notice_constants-mC6al2Dm.js.map → notice_constants-7Qt2CQEY.js.map} +1 -1
  51. package/dist/chunks/notice_constants-UXo9e3bS.js +6 -0
  52. package/dist/chunks/{notice_constants-c--hBFQw.js.map → notice_constants-UXo9e3bS.js.map} +1 -1
  53. package/dist/chunks/popover_constants-JwBF9h1Z.js +143 -0
  54. package/dist/chunks/{popover_constants-hOEhklvr.js.map → popover_constants-JwBF9h1Z.js.map} +1 -1
  55. package/dist/chunks/popover_constants-Qkpb0yh2.js +144 -0
  56. package/dist/chunks/{popover_constants-qjlEkroB.js.map → popover_constants-Qkpb0yh2.js.map} +1 -1
  57. package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js → sr_only_close_button-3EdsV-dH.js} +28 -24
  58. package/dist/chunks/{sr_only_close_button-iD7s1Pbj.js.map → sr_only_close_button-3EdsV-dH.js.map} +1 -1
  59. package/dist/chunks/sr_only_close_button-xGrHFjwA.js +91 -0
  60. package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js.map → sr_only_close_button-xGrHFjwA.js.map} +1 -1
  61. package/dist/chunks/stack_constants-HraCekPm.js +15 -0
  62. package/dist/chunks/{stack_constants-m9Ickqw0.js.map → stack_constants-HraCekPm.js.map} +1 -1
  63. package/dist/chunks/stack_constants-SMzMWnAQ.js +14 -0
  64. package/dist/chunks/{stack_constants-u7tNqGtc.js.map → stack_constants-SMzMWnAQ.js.map} +1 -1
  65. package/dist/chunks/tab-RTDgnD9-.js +391 -0
  66. package/dist/chunks/{tab-at7WWglk.js.map → tab-RTDgnD9-.js.map} +1 -1
  67. package/dist/chunks/tab-qc3f42Yp.js +390 -0
  68. package/dist/chunks/{tab-GQZFMq83.js.map → tab-qc3f42Yp.js.map} +1 -1
  69. package/dist/common/constants.cjs +60 -0
  70. package/dist/{lib → common}/constants.cjs.map +1 -1
  71. package/dist/{lib → common}/constants.js +25 -18
  72. package/dist/{lib → common}/constants.js.map +1 -1
  73. package/dist/common/dates.cjs +72 -0
  74. package/dist/{lib → common}/dates.cjs.map +1 -1
  75. package/dist/common/dates.js +72 -0
  76. package/dist/{lib → common}/dates.js.map +1 -1
  77. package/dist/common/emoji.cjs +163 -0
  78. package/dist/common/emoji.cjs.map +1 -0
  79. package/dist/common/emoji.js +168 -0
  80. package/dist/common/emoji.js.map +1 -0
  81. package/dist/common/mixins.cjs +17 -0
  82. package/dist/{lib → common}/mixins.cjs.map +1 -1
  83. package/dist/common/mixins.js +17 -0
  84. package/dist/common/utils.cjs +243 -0
  85. package/dist/{lib → common}/utils.cjs.map +1 -1
  86. package/dist/common/utils.js +243 -0
  87. package/dist/{lib → common}/utils.js.map +1 -1
  88. package/dist/common/validators.cjs +23 -0
  89. package/dist/{lib → common}/validators.cjs.map +1 -1
  90. package/dist/common/validators.js +23 -0
  91. package/dist/{lib → common}/validators.js.map +1 -1
  92. package/dist/dialtone-vue.cjs +373 -1
  93. package/dist/dialtone-vue.cjs.map +1 -1
  94. package/dist/dialtone-vue.js +328 -327
  95. package/dist/dialtone-vue.js.map +1 -1
  96. package/dist/lib/attachment-carousel.cjs +345 -1
  97. package/dist/lib/attachment-carousel.cjs.map +1 -1
  98. package/dist/lib/attachment-carousel.js +126 -108
  99. package/dist/lib/attachment-carousel.js.map +1 -1
  100. package/dist/lib/avatar.cjs +447 -1
  101. package/dist/lib/avatar.cjs.map +1 -1
  102. package/dist/lib/avatar.js +135 -101
  103. package/dist/lib/avatar.js.map +1 -1
  104. package/dist/lib/badge.cjs +206 -1
  105. package/dist/lib/badge.cjs.map +1 -1
  106. package/dist/lib/badge.js +64 -48
  107. package/dist/lib/badge.js.map +1 -1
  108. package/dist/lib/banner.cjs +242 -2
  109. package/dist/lib/banner.cjs.map +1 -1
  110. package/dist/lib/banner.js +81 -71
  111. package/dist/lib/banner.js.map +1 -1
  112. package/dist/lib/breadcrumbs.cjs +150 -1
  113. package/dist/lib/breadcrumbs.cjs.map +1 -1
  114. package/dist/lib/breadcrumbs.js +60 -52
  115. package/dist/lib/breadcrumbs.js.map +1 -1
  116. package/dist/lib/button-group.cjs +41 -1
  117. package/dist/lib/button-group.cjs.map +1 -1
  118. package/dist/lib/button-group.js +15 -14
  119. package/dist/lib/button-group.js.map +1 -1
  120. package/dist/lib/button.cjs +356 -1
  121. package/dist/lib/button.cjs.map +1 -1
  122. package/dist/lib/button.js +108 -88
  123. package/dist/lib/button.js.map +1 -1
  124. package/dist/lib/callbar-button-with-popover.cjs +322 -1
  125. package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
  126. package/dist/lib/callbar-button-with-popover.js +101 -83
  127. package/dist/lib/callbar-button-with-popover.js.map +1 -1
  128. package/dist/lib/callbar-button.cjs +200 -1
  129. package/dist/lib/callbar-button.cjs.map +1 -1
  130. package/dist/lib/callbar-button.js +52 -45
  131. package/dist/lib/callbar-button.js.map +1 -1
  132. package/dist/lib/callbox.cjs +217 -1
  133. package/dist/lib/callbox.cjs.map +1 -1
  134. package/dist/lib/callbox.js +80 -67
  135. package/dist/lib/callbox.js.map +1 -1
  136. package/dist/lib/card.cjs +91 -1
  137. package/dist/lib/card.cjs.map +1 -1
  138. package/dist/lib/card.js +27 -27
  139. package/dist/lib/card.js.map +1 -1
  140. package/dist/lib/checkbox-group.cjs +115 -1
  141. package/dist/lib/checkbox-group.cjs.map +1 -1
  142. package/dist/lib/checkbox-group.js +34 -23
  143. package/dist/lib/checkbox-group.js.map +1 -1
  144. package/dist/lib/checkbox.cjs +156 -1
  145. package/dist/lib/checkbox.cjs.map +1 -1
  146. package/dist/lib/checkbox.js +72 -60
  147. package/dist/lib/checkbox.js.map +1 -1
  148. package/dist/lib/chip.cjs +235 -1
  149. package/dist/lib/chip.cjs.map +1 -1
  150. package/dist/lib/chip.js +84 -67
  151. package/dist/lib/chip.js.map +1 -1
  152. package/dist/lib/codeblock.cjs +23 -2
  153. package/dist/lib/codeblock.cjs.map +1 -1
  154. package/dist/lib/codeblock.js +13 -13
  155. package/dist/lib/codeblock.js.map +1 -1
  156. package/dist/lib/collapsible.cjs +398 -1
  157. package/dist/lib/collapsible.cjs.map +1 -1
  158. package/dist/lib/collapsible.js +123 -100
  159. package/dist/lib/collapsible.js.map +1 -1
  160. package/dist/lib/combobox-multi-select.cjs +589 -1
  161. package/dist/lib/combobox-multi-select.cjs.map +1 -1
  162. package/dist/lib/combobox-multi-select.js +270 -177
  163. package/dist/lib/combobox-multi-select.js.map +1 -1
  164. package/dist/lib/combobox-with-popover.cjs +452 -1
  165. package/dist/lib/combobox-with-popover.cjs.map +1 -1
  166. package/dist/lib/combobox-with-popover.js +172 -127
  167. package/dist/lib/combobox-with-popover.js.map +1 -1
  168. package/dist/lib/combobox.cjs +18 -1
  169. package/dist/lib/combobox.cjs.map +1 -1
  170. package/dist/lib/combobox.js +9 -9
  171. package/dist/lib/contact-info.cjs +205 -1
  172. package/dist/lib/contact-info.cjs.map +1 -1
  173. package/dist/lib/contact-info.js +69 -60
  174. package/dist/lib/contact-info.js.map +1 -1
  175. package/dist/lib/contact-row.cjs +246 -1
  176. package/dist/lib/contact-row.cjs.map +1 -1
  177. package/dist/lib/contact-row.js +67 -63
  178. package/dist/lib/contact-row.js.map +1 -1
  179. package/dist/lib/datepicker.cjs +854 -1
  180. package/dist/lib/datepicker.cjs.map +1 -1
  181. package/dist/lib/datepicker.js +585 -441
  182. package/dist/lib/datepicker.js.map +1 -1
  183. package/dist/lib/description-list.cjs +116 -1
  184. package/dist/lib/description-list.cjs.map +1 -1
  185. package/dist/lib/description-list.js +56 -24
  186. package/dist/lib/description-list.js.map +1 -1
  187. package/dist/lib/dropdown.cjs +36 -1
  188. package/dist/lib/dropdown.cjs.map +1 -1
  189. package/dist/lib/dropdown.js +22 -21
  190. package/dist/lib/dropdown.js.map +1 -1
  191. package/dist/lib/editor.cjs +711 -1
  192. package/dist/lib/editor.cjs.map +1 -1
  193. package/dist/lib/editor.js +271 -235
  194. package/dist/lib/editor.js.map +1 -1
  195. package/dist/lib/emoji-picker.cjs +1277 -1
  196. package/dist/lib/emoji-picker.cjs.map +1 -1
  197. package/dist/lib/emoji-picker.js +859 -569
  198. package/dist/lib/emoji-picker.js.map +1 -1
  199. package/dist/lib/emoji-row.cjs +128 -1
  200. package/dist/lib/emoji-row.cjs.map +1 -1
  201. package/dist/lib/emoji-row.js +89 -75
  202. package/dist/lib/emoji-row.js.map +1 -1
  203. package/dist/lib/emoji-text-wrapper.cjs +102 -1
  204. package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
  205. package/dist/lib/emoji-text-wrapper.js +42 -31
  206. package/dist/lib/emoji-text-wrapper.js.map +1 -1
  207. package/dist/lib/emoji.cjs +158 -1
  208. package/dist/lib/emoji.cjs.map +1 -1
  209. package/dist/lib/emoji.js +153 -6
  210. package/dist/lib/emoji.js.map +1 -1
  211. package/dist/lib/feed-item-row.cjs +296 -1
  212. package/dist/lib/feed-item-row.cjs.map +1 -1
  213. package/dist/lib/feed-item-row.js +119 -100
  214. package/dist/lib/feed-item-row.js.map +1 -1
  215. package/dist/lib/feed-pill.cjs +173 -1
  216. package/dist/lib/feed-pill.cjs.map +1 -1
  217. package/dist/lib/feed-pill.js +70 -57
  218. package/dist/lib/feed-pill.js.map +1 -1
  219. package/dist/lib/general-row.cjs +518 -1
  220. package/dist/lib/general-row.cjs.map +1 -1
  221. package/dist/lib/general-row.js +186 -148
  222. package/dist/lib/general-row.js.map +1 -1
  223. package/dist/lib/group-row.cjs +116 -1
  224. package/dist/lib/group-row.cjs.map +1 -1
  225. package/dist/lib/group-row.js +37 -35
  226. package/dist/lib/group-row.js.map +1 -1
  227. package/dist/lib/grouped-chip.cjs +96 -1
  228. package/dist/lib/grouped-chip.cjs.map +1 -1
  229. package/dist/lib/grouped-chip.js +51 -46
  230. package/dist/lib/grouped-chip.js.map +1 -1
  231. package/dist/lib/hovercard.cjs +223 -1
  232. package/dist/lib/hovercard.cjs.map +1 -1
  233. package/dist/lib/hovercard.js +115 -80
  234. package/dist/lib/hovercard.js.map +1 -1
  235. package/dist/lib/icon.cjs +58 -1
  236. package/dist/lib/icon.cjs.map +1 -1
  237. package/dist/lib/icon.js +20 -20
  238. package/dist/lib/icon.js.map +1 -1
  239. package/dist/lib/image-viewer.cjs +243 -1
  240. package/dist/lib/image-viewer.cjs.map +1 -1
  241. package/dist/lib/image-viewer.js +104 -80
  242. package/dist/lib/image-viewer.js.map +1 -1
  243. package/dist/lib/input-group.cjs +91 -1
  244. package/dist/lib/input-group.cjs.map +1 -1
  245. package/dist/lib/input-group.js +41 -39
  246. package/dist/lib/input-group.js.map +1 -1
  247. package/dist/lib/input.cjs +578 -1
  248. package/dist/lib/input.cjs.map +1 -1
  249. package/dist/lib/input.js +185 -137
  250. package/dist/lib/input.js.map +1 -1
  251. package/dist/lib/item-layout.cjs +91 -1
  252. package/dist/lib/item-layout.cjs.map +1 -1
  253. package/dist/lib/item-layout.js +45 -39
  254. package/dist/lib/item-layout.js.map +1 -1
  255. package/dist/lib/ivr-node.cjs +263 -1
  256. package/dist/lib/ivr-node.cjs.map +1 -1
  257. package/dist/lib/ivr-node.js +130 -112
  258. package/dist/lib/ivr-node.js.map +1 -1
  259. package/dist/lib/keyboard-shortcut.cjs +119 -1
  260. package/dist/lib/keyboard-shortcut.cjs.map +1 -1
  261. package/dist/lib/keyboard-shortcut.js +58 -48
  262. package/dist/lib/keyboard-shortcut.js.map +1 -1
  263. package/dist/lib/lazy-show.cjs +82 -1
  264. package/dist/lib/lazy-show.cjs.map +1 -1
  265. package/dist/lib/lazy-show.js +21 -19
  266. package/dist/lib/lazy-show.js.map +1 -1
  267. package/dist/lib/link.cjs +43 -1
  268. package/dist/lib/link.cjs.map +1 -1
  269. package/dist/lib/link.js +20 -19
  270. package/dist/lib/link.js.map +1 -1
  271. package/dist/lib/list-item-group.cjs +67 -1
  272. package/dist/lib/list-item-group.cjs.map +1 -1
  273. package/dist/lib/list-item-group.js +24 -22
  274. package/dist/lib/list-item-group.js.map +1 -1
  275. package/dist/lib/list-item.cjs +216 -1
  276. package/dist/lib/list-item.cjs.map +1 -1
  277. package/dist/lib/list-item.js +71 -60
  278. package/dist/lib/list-item.js.map +1 -1
  279. package/dist/lib/message-input.cjs +708 -1
  280. package/dist/lib/message-input.cjs.map +1 -1
  281. package/dist/lib/message-input.js +232 -206
  282. package/dist/lib/message-input.js.map +1 -1
  283. package/dist/lib/modal.cjs +444 -2
  284. package/dist/lib/modal.cjs.map +1 -1
  285. package/dist/lib/modal.js +153 -120
  286. package/dist/lib/modal.js.map +1 -1
  287. package/dist/lib/notice.cjs +197 -1
  288. package/dist/lib/notice.cjs.map +1 -1
  289. package/dist/lib/notice.js +66 -63
  290. package/dist/lib/notice.js.map +1 -1
  291. package/dist/lib/pagination.cjs +205 -1
  292. package/dist/lib/pagination.cjs.map +1 -1
  293. package/dist/lib/pagination.js +96 -81
  294. package/dist/lib/pagination.js.map +1 -1
  295. package/dist/lib/popover.cjs +1080 -1
  296. package/dist/lib/popover.cjs.map +1 -1
  297. package/dist/lib/popover.js +447 -267
  298. package/dist/lib/popover.js.map +1 -1
  299. package/dist/lib/presence.cjs +70 -1
  300. package/dist/lib/presence.cjs.map +1 -1
  301. package/dist/lib/presence.js +33 -27
  302. package/dist/lib/presence.js.map +1 -1
  303. package/dist/lib/radio-group.cjs +88 -1
  304. package/dist/lib/radio-group.cjs.map +1 -1
  305. package/dist/lib/radio-group.js +18 -18
  306. package/dist/lib/radio-group.js.map +1 -1
  307. package/dist/lib/radio.cjs +162 -1
  308. package/dist/lib/radio.cjs.map +1 -1
  309. package/dist/lib/radio.js +66 -57
  310. package/dist/lib/radio.js.map +1 -1
  311. package/dist/lib/rich-text-editor.cjs +1137 -1
  312. package/dist/lib/rich-text-editor.cjs.map +1 -1
  313. package/dist/lib/rich-text-editor.js +567 -386
  314. package/dist/lib/rich-text-editor.js.map +1 -1
  315. package/dist/lib/root-layout.cjs +158 -1
  316. package/dist/lib/root-layout.cjs.map +1 -1
  317. package/dist/lib/root-layout.js +33 -31
  318. package/dist/lib/root-layout.js.map +1 -1
  319. package/dist/lib/scroller.cjs +1090 -1
  320. package/dist/lib/scroller.cjs.map +1 -1
  321. package/dist/lib/scroller.js +668 -345
  322. package/dist/lib/scroller.js.map +1 -1
  323. package/dist/lib/select-menu.cjs +312 -1
  324. package/dist/lib/select-menu.cjs.map +1 -1
  325. package/dist/lib/select-menu.js +124 -79
  326. package/dist/lib/select-menu.js.map +1 -1
  327. package/dist/lib/settings-menu-button.cjs +77 -1
  328. package/dist/lib/settings-menu-button.cjs.map +1 -1
  329. package/dist/lib/settings-menu-button.js +31 -30
  330. package/dist/lib/settings-menu-button.js.map +1 -1
  331. package/dist/lib/skeleton.cjs +635 -1
  332. package/dist/lib/skeleton.cjs.map +1 -1
  333. package/dist/lib/skeleton.js +189 -152
  334. package/dist/lib/skeleton.js.map +1 -1
  335. package/dist/lib/stack.cjs +123 -1
  336. package/dist/lib/stack.cjs.map +1 -1
  337. package/dist/lib/stack.js +61 -53
  338. package/dist/lib/stack.js.map +1 -1
  339. package/dist/lib/tabs.cjs +102 -1
  340. package/dist/lib/tabs.cjs.map +1 -1
  341. package/dist/lib/tabs.js +47 -41
  342. package/dist/lib/tabs.js.map +1 -1
  343. package/dist/lib/time-pill.cjs +41 -1
  344. package/dist/lib/time-pill.cjs.map +1 -1
  345. package/dist/lib/time-pill.js +18 -14
  346. package/dist/lib/time-pill.js.map +1 -1
  347. package/dist/lib/toast.cjs +281 -1
  348. package/dist/lib/toast.cjs.map +1 -1
  349. package/dist/lib/toast.js +96 -74
  350. package/dist/lib/toast.js.map +1 -1
  351. package/dist/lib/toggle.cjs +192 -1
  352. package/dist/lib/toggle.cjs.map +1 -1
  353. package/dist/lib/toggle.js +60 -49
  354. package/dist/lib/toggle.js.map +1 -1
  355. package/dist/lib/tooltip-directive.cjs +84 -1
  356. package/dist/lib/tooltip-directive.cjs.map +1 -1
  357. package/dist/lib/tooltip-directive.js +56 -42
  358. package/dist/lib/tooltip-directive.js.map +1 -1
  359. package/dist/lib/tooltip.cjs +460 -1
  360. package/dist/lib/tooltip.cjs.map +1 -1
  361. package/dist/lib/tooltip.js +162 -103
  362. package/dist/lib/tooltip.js.map +1 -1
  363. package/dist/lib/top-banner-info.cjs +71 -1
  364. package/dist/lib/top-banner-info.cjs.map +1 -1
  365. package/dist/lib/top-banner-info.js +27 -22
  366. package/dist/lib/top-banner-info.js.map +1 -1
  367. package/dist/lib/unread-pill.cjs +73 -1
  368. package/dist/lib/unread-pill.cjs.map +1 -1
  369. package/dist/lib/unread-pill.js +28 -25
  370. package/dist/lib/unread-pill.js.map +1 -1
  371. package/dist/lib/validation-messages.cjs +89 -1
  372. package/dist/lib/validation-messages.cjs.map +1 -1
  373. package/dist/lib/validation-messages.js +41 -36
  374. package/dist/lib/validation-messages.js.map +1 -1
  375. package/dist/style.css +1257 -1
  376. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +2 -2
  377. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +2 -2
  378. package/package.json +30 -29
  379. package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js +0 -2
  380. package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js.map +0 -1
  381. package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js +0 -10
  382. package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js.map +0 -1
  383. package/dist/chunks/dropdown-UO3UJalk.js +0 -2
  384. package/dist/chunks/dropdown_constants-EUcDxBrX.js +0 -9
  385. package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +0 -1
  386. package/dist/chunks/dropdown_constants-KHFvVI2L.js +0 -2
  387. package/dist/chunks/dropdown_constants-KHFvVI2L.js.map +0 -1
  388. package/dist/chunks/icon_constants-2S_OSQ1t.js +0 -2
  389. package/dist/chunks/index-6tYeqbgP.js +0 -3
  390. package/dist/chunks/index-IBtQ5jRJ.js +0 -2
  391. package/dist/chunks/index-IBtQ5jRJ.js.map +0 -1
  392. package/dist/chunks/index-b4iXYvId.js +0 -399
  393. package/dist/chunks/index-mRmwpCBG.js +0 -256
  394. package/dist/chunks/index-mRmwpCBG.js.map +0 -1
  395. package/dist/chunks/input-0Uksk4DP.js +0 -2
  396. package/dist/chunks/input_group-AS760Cp7.js +0 -2
  397. package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +0 -197
  398. package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js +0 -2
  399. package/dist/chunks/link_constants-Kn6kP4i1.js +0 -2
  400. package/dist/chunks/link_constants-vIUB92L4.js +0 -16
  401. package/dist/chunks/list_item_constants-LTUc74pD.js +0 -13
  402. package/dist/chunks/list_item_constants-Tsz5CO1m.js +0 -2
  403. package/dist/chunks/modal-VuMFkZFH.js +0 -82
  404. package/dist/chunks/modal-qEzlo0Sj.js +0 -2
  405. package/dist/chunks/notice_action-jO199emq.js +0 -2
  406. package/dist/chunks/notice_action-tJfD5Qw1.js +0 -209
  407. package/dist/chunks/notice_constants-c--hBFQw.js +0 -6
  408. package/dist/chunks/notice_constants-mC6al2Dm.js +0 -2
  409. package/dist/chunks/popover_constants-hOEhklvr.js +0 -2
  410. package/dist/chunks/popover_constants-qjlEkroB.js +0 -114
  411. package/dist/chunks/sr_only_close_button-iD7s1Pbj.js +0 -3
  412. package/dist/chunks/stack_constants-m9Ickqw0.js +0 -2
  413. package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
  414. package/dist/chunks/tab-GQZFMq83.js +0 -367
  415. package/dist/chunks/tab-at7WWglk.js +0 -2
  416. package/dist/lib/constants.cjs +0 -2
  417. package/dist/lib/dates.cjs +0 -2
  418. package/dist/lib/dates.js +0 -57
  419. package/dist/lib/mixins.cjs +0 -2
  420. package/dist/lib/mixins.js +0 -17
  421. package/dist/lib/utils.cjs +0 -2
  422. package/dist/lib/utils.js +0 -171
  423. package/dist/lib/validators.cjs +0 -2
  424. package/dist/lib/validators.js +0 -12
  425. /package/dist/{lib → common}/mixins.js.map +0 -0
@@ -1,28 +1,28 @@
1
- import { resolveComponent as s, openBlock as m, createElementBlock as k, normalizeClass as w, withKeys as C, withModifiers as v, createElementVNode as u, normalizeStyle as L, createVNode as r, mergeProps as S, renderSlot as I, createBlock as c, withCtx as l, createCommentVNode as d, withDirectives as D, toDisplayString as h, vShow as F, createSlots as E } from "vue";
2
- import { _ as T } from "../chunks/_plugin-vue_export-helper-hUChTQA_.js";
3
- import { DtButton as x } from "./button.js";
4
- import { DtEmojiPicker as O } from "./emoji-picker.js";
5
- import { DtIcon as _ } from "./icon.js";
6
- import { DtInput as V } from "./input.js";
7
- import { DtPopover as q } from "./popover.js";
8
- import { DtRichTextEditor as M, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as U, RICH_TEXT_EDITOR_OUTPUT_FORMATS as R } from "./rich-text-editor.js";
9
- import { DtTooltip as z } from "./tooltip.js";
10
- import "./utils.js";
11
- import "./constants.js";
12
- import "../chunks/link_constants-vIUB92L4.js";
13
- import "../chunks/tab-GQZFMq83.js";
1
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, withKeys, withModifiers, createElementVNode, normalizeStyle, createVNode, mergeProps, renderSlot, createBlock, withCtx, createCommentVNode, withDirectives, toDisplayString, vShow, createSlots } from "vue";
2
+ import { _export_sfc } from "../chunks/_plugin-vue_export-helper-caHeSgYY.js";
3
+ import { DtButton } from "./button.js";
4
+ import { DtEmojiPicker as _sfc_main$1 } from "./emoji-picker.js";
5
+ import { DtIcon } from "./icon.js";
6
+ import { DtInput } from "./input.js";
7
+ import { DtPopover } from "./popover.js";
8
+ import { DtRichTextEditor, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES, RICH_TEXT_EDITOR_OUTPUT_FORMATS } from "./rich-text-editor.js";
9
+ import { DtTooltip } from "./tooltip.js";
10
+ import "../common/utils.js";
11
+ import "../common/constants.js";
12
+ import "../chunks/link_constants-nWVlXQBs.js";
13
+ import "../chunks/tab-RTDgnD9-.js";
14
14
  import "@dialpad/dialtone-emojis";
15
- import "../chunks/input-4UQWegUk.js";
16
- import "./validators.js";
15
+ import "../chunks/input-NmYDD5bn.js";
16
+ import "../common/validators.js";
17
17
  import "./validation-messages.js";
18
18
  import "@dialpad/dialtone-icons/vue3";
19
- import "../chunks/icon_constants-OpYAAKwF.js";
19
+ import "../chunks/icon_constants-Dy4MEUJL.js";
20
20
  import "@dialpad/dialtone-icons/icons.json";
21
- import "../chunks/popover_constants-qjlEkroB.js";
21
+ import "../chunks/popover_constants-Qkpb0yh2.js";
22
22
  import "tippy.js";
23
23
  import "./lazy-show.js";
24
- import "../chunks/modal-VuMFkZFH.js";
25
- import "../chunks/sr_only_close_button-7O-Ev8uM.js";
24
+ import "../chunks/modal-XOr4kiNZ.js";
25
+ import "../chunks/sr_only_close_button-3EdsV-dH.js";
26
26
  import "@tiptap/vue-3";
27
27
  import "@tiptap/extension-blockquote";
28
28
  import "@tiptap/extension-code-block";
@@ -41,33 +41,34 @@ import "@tiptap/extension-underline";
41
41
  import "@tiptap/extension-text";
42
42
  import "@tiptap/extension-text-align";
43
43
  import "@tiptap/core";
44
- import "../chunks/index-mRmwpCBG.js";
44
+ import "./emoji.js";
45
+ import "../common/emoji.js";
45
46
  import "emoji-regex";
46
47
  import "./skeleton.js";
47
48
  import "@tiptap/pm/state";
48
49
  import "@tiptap/suggestion";
49
50
  import "./list-item.js";
50
- import "../chunks/list_item_constants-LTUc74pD.js";
51
+ import "../chunks/list_item_constants-u1xcN9Dd.js";
51
52
  import "./item-layout.js";
52
53
  import "./stack.js";
53
- import "../chunks/stack_constants-u7tNqGtc.js";
54
+ import "../chunks/stack_constants-HraCekPm.js";
54
55
  import "@tiptap/extension-mention";
55
56
  import "./link.js";
56
57
  import "./avatar.js";
57
58
  import "./presence.js";
58
- const A = {
59
+ const _sfc_main = {
59
60
  name: "DtRecipeMessageInput",
60
61
  components: {
61
- DtButton: x,
62
- DtEmojiPicker: O,
63
- DtIcon: _,
64
- DtInput: V,
65
- DtPopover: q,
66
- DtRichTextEditor: M,
67
- DtTooltip: z
62
+ DtButton,
63
+ DtEmojiPicker: _sfc_main$1,
64
+ DtIcon,
65
+ DtInput,
66
+ DtPopover,
67
+ DtRichTextEditor,
68
+ DtTooltip
68
69
  },
69
70
  mixins: [],
70
- inheritAttrs: !1,
71
+ inheritAttrs: false,
71
72
  props: {
72
73
  /**
73
74
  * Value of the input. The object format should match TipTap's JSON
@@ -82,14 +83,14 @@ const A = {
82
83
  */
83
84
  editable: {
84
85
  type: Boolean,
85
- default: !0
86
+ default: true
86
87
  },
87
88
  /**
88
89
  * Descriptive label for the input element
89
90
  */
90
91
  inputAriaLabel: {
91
92
  type: String,
92
- required: !0,
93
+ required: true,
93
94
  default: ""
94
95
  },
95
96
  /**
@@ -114,9 +115,12 @@ const A = {
114
115
  */
115
116
  autoFocus: {
116
117
  type: [Boolean, String, Number],
117
- default: !1,
118
- validator(i) {
119
- return typeof i == "string" ? U.includes(i) : !0;
118
+ default: false,
119
+ validator(autoFocus) {
120
+ if (typeof autoFocus === "string") {
121
+ return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);
122
+ }
123
+ return true;
120
124
  }
121
125
  },
122
126
  /**
@@ -128,8 +132,8 @@ const A = {
128
132
  outputFormat: {
129
133
  type: String,
130
134
  default: "text",
131
- validator(i) {
132
- return R.includes(i);
135
+ validator(outputFormat) {
136
+ return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);
133
137
  }
134
138
  },
135
139
  /**
@@ -137,7 +141,7 @@ const A = {
137
141
  */
138
142
  link: {
139
143
  type: [Boolean, Object],
140
- default: !1
144
+ default: false
141
145
  },
142
146
  /**
143
147
  * Placeholder text
@@ -151,7 +155,7 @@ const A = {
151
155
  */
152
156
  disableSend: {
153
157
  type: Boolean,
154
- default: !1
158
+ default: false
155
159
  },
156
160
  /**
157
161
  * Content area needs to dynamically adjust height based on the conversation area height.
@@ -164,7 +168,7 @@ const A = {
164
168
  // Emoji picker props
165
169
  showEmojiPicker: {
166
170
  type: Boolean,
167
- default: !0
171
+ default: true
168
172
  },
169
173
  /**
170
174
  * Props to pass into the emoji picker.
@@ -172,14 +176,14 @@ const A = {
172
176
  emojiPickerProps: {
173
177
  type: Object,
174
178
  default: () => ({}),
175
- validate(i) {
179
+ validate(emojiPickerProps) {
176
180
  return [
177
181
  "searchNoResultsLabel",
178
182
  "searchResultsLabel",
179
183
  "searchPlaceholderLabel",
180
184
  "skinSelectorButtonTooltipLabel",
181
185
  "tabSetLabels"
182
- ].every((e) => i[e] != null);
186
+ ].every((prop) => emojiPickerProps[prop] != null);
183
187
  }
184
188
  },
185
189
  /**
@@ -242,42 +246,42 @@ const A = {
242
246
  */
243
247
  allowBlockquote: {
244
248
  type: Boolean,
245
- default: !0
249
+ default: true
246
250
  },
247
251
  /**
248
252
  * Whether the input allows for bold to be introduced in the text.
249
253
  */
250
254
  allowBold: {
251
255
  type: Boolean,
252
- default: !0
256
+ default: true
253
257
  },
254
258
  /**
255
259
  * Whether the input allows for bullet list to be introduced in the text.
256
260
  */
257
261
  allowBulletList: {
258
262
  type: Boolean,
259
- default: !0
263
+ default: true
260
264
  },
261
265
  /**
262
266
  * Whether the input allows for italic to be introduced in the text.
263
267
  */
264
268
  allowItalic: {
265
269
  type: Boolean,
266
- default: !0
270
+ default: true
267
271
  },
268
272
  /**
269
273
  * Whether the input allows for strike to be introduced in the text.
270
274
  */
271
275
  allowStrike: {
272
276
  type: Boolean,
273
- default: !0
277
+ default: true
274
278
  },
275
279
  /**
276
280
  * Whether the input allows for underline to be introduced in the text.
277
281
  */
278
282
  allowUnderline: {
279
283
  type: Boolean,
280
- default: !0
284
+ default: true
281
285
  }
282
286
  },
283
287
  emits: [
@@ -353,11 +357,11 @@ const A = {
353
357
  return {
354
358
  internalInputValue: this.modelValue,
355
359
  // internal input content
356
- hasFocus: !1,
357
- imagePickerFocus: !1,
358
- emojiPickerFocus: !1,
359
- sendButtonFocus: !1,
360
- emojiPickerOpened: !1
360
+ hasFocus: false,
361
+ imagePickerFocus: false,
362
+ emojiPickerFocus: false,
363
+ sendButtonFocus: false,
364
+ emojiPickerOpened: false
361
365
  };
362
366
  },
363
367
  computed: {
@@ -365,7 +369,7 @@ const A = {
365
369
  return this.internalInputValue.length;
366
370
  },
367
371
  displayCharacterLimitWarning() {
368
- return !!this.showCharacterLimit && this.showCharacterLimit.count - this.inputLength <= this.showCharacterLimit.warning;
372
+ return Boolean(this.showCharacterLimit) && this.showCharacterLimit.count - this.inputLength <= this.showCharacterLimit.warning;
369
373
  },
370
374
  characterLimitTooltipEnabled() {
371
375
  return this.showCharacterLimit.message && this.showCharacterLimit.count - this.inputLength < 0;
@@ -383,40 +387,46 @@ const A = {
383
387
  }
384
388
  },
385
389
  watch: {
386
- modelValue(i) {
387
- this.internalInputValue = i;
390
+ modelValue(newValue) {
391
+ this.internalInputValue = newValue;
388
392
  }
389
393
  },
390
394
  methods: {
391
- onDrag(i) {
392
- i.stopPropagation(), i.preventDefault();
393
- },
394
- onDrop(i) {
395
- i.stopPropagation(), i.preventDefault();
396
- const e = i.dataTransfer, t = Array.from(e.files);
397
- this.$emit("add-media", t);
398
- },
399
- onPaste(i) {
400
- if (i.clipboardData.files.length) {
401
- i.stopPropagation(), i.preventDefault();
402
- const e = [...i.clipboardData.files];
403
- this.$emit("paste-media", e);
395
+ onDrag(e) {
396
+ e.stopPropagation();
397
+ e.preventDefault();
398
+ },
399
+ onDrop(e) {
400
+ e.stopPropagation();
401
+ e.preventDefault();
402
+ const dt = e.dataTransfer;
403
+ const files = Array.from(dt.files);
404
+ this.$emit("add-media", files);
405
+ },
406
+ onPaste(e) {
407
+ if (e.clipboardData.files.length) {
408
+ e.stopPropagation();
409
+ e.preventDefault();
410
+ const files = [...e.clipboardData.files];
411
+ this.$emit("paste-media", files);
404
412
  }
405
413
  },
406
- onSkinTone(i) {
407
- this.$emit("skin-tone", i);
414
+ onSkinTone(skinTone) {
415
+ this.$emit("skin-tone", skinTone);
408
416
  },
409
- onSelectEmoji(i) {
410
- if (!i) {
411
- this.emojiPickerOpened = !1;
417
+ onSelectEmoji(emoji) {
418
+ if (!emoji) {
419
+ this.emojiPickerOpened = false;
412
420
  return;
413
421
  }
414
422
  this.$refs.richTextEditor.editor.commands.insertContent({
415
423
  type: "emoji",
416
424
  attrs: {
417
- code: i.shortname
425
+ code: emoji.shortname
418
426
  }
419
- }), this.emojiPickerOpened = !1, this.$emit("selected-emoji", i);
427
+ });
428
+ this.emojiPickerOpened = false;
429
+ this.$emit("selected-emoji", emoji);
420
430
  },
421
431
  onSelectImage() {
422
432
  this.$refs.messageInputImageUpload.$refs.input.click();
@@ -428,151 +438,167 @@ const A = {
428
438
  this.emojiPickerOpened = !this.emojiPickerOpened;
429
439
  },
430
440
  onSend() {
431
- this.isSendDisabled || this.$emit("submit", this.internalInputValue);
441
+ if (this.isSendDisabled) {
442
+ return;
443
+ }
444
+ this.$emit("submit", this.internalInputValue);
432
445
  },
433
446
  onCancel() {
434
447
  this.$emit("cancel");
435
448
  },
436
- onFocus(i) {
437
- var e;
438
- this.hasFocus = !0, (e = this.$refs.richTextEditor) == null || e.focusEditor(), this.$emit("focus", i);
449
+ onFocus(event) {
450
+ var _a;
451
+ this.hasFocus = true;
452
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.focusEditor();
453
+ this.$emit("focus", event);
439
454
  },
440
- onBlur(i) {
441
- this.hasFocus = !1, this.$emit("blur", i);
455
+ onBlur(event) {
456
+ this.hasFocus = false;
457
+ this.$emit("blur", event);
442
458
  },
443
- onInput(i) {
444
- this.$emit("input", i);
459
+ onInput(event) {
460
+ this.$emit("input", event);
445
461
  }
446
462
  }
447
- }, H = { class: "d-d-flex d-jc-space-between d-mx8 d-my4" }, N = { class: "d-d-flex" }, K = { class: "d-d-flex" }, W = { key: 0 };
448
- function X(i, e, t, Y, a, o) {
449
- const P = s("dt-rich-text-editor"), g = s("dt-icon"), p = s("dt-button"), j = s("dt-input"), f = s("dt-tooltip"), y = s("dt-emoji-picker"), B = s("dt-popover");
450
- return m(), k("div", {
463
+ };
464
+ const _hoisted_1 = { class: "d-d-flex d-jc-space-between d-mx8 d-my4" };
465
+ const _hoisted_2 = { class: "d-d-flex" };
466
+ const _hoisted_3 = { class: "d-d-flex" };
467
+ const _hoisted_4 = { key: 0 };
468
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
469
+ const _component_dt_rich_text_editor = resolveComponent("dt-rich-text-editor");
470
+ const _component_dt_icon = resolveComponent("dt-icon");
471
+ const _component_dt_button = resolveComponent("dt-button");
472
+ const _component_dt_input = resolveComponent("dt-input");
473
+ const _component_dt_tooltip = resolveComponent("dt-tooltip");
474
+ const _component_dt_emoji_picker = resolveComponent("dt-emoji-picker");
475
+ const _component_dt_popover = resolveComponent("dt-popover");
476
+ return openBlock(), createElementBlock("div", {
451
477
  "data-qa": "dt-message-input",
452
478
  role: "presentation",
453
- class: w([
479
+ class: normalizeClass([
454
480
  "d-d-flex",
455
481
  "d-fd-column",
456
482
  "d-bar8",
457
483
  "d-baw1",
458
484
  "d-ba",
459
485
  "d-c-text",
460
- { "d-bc-bold d-bs-sm": a.hasFocus, "d-bc-default": !a.hasFocus }
486
+ { "d-bc-bold d-bs-sm": $data.hasFocus, "d-bc-default": !$data.hasFocus }
461
487
  ]),
462
- onClick: e[15] || (e[15] = (n) => {
463
- var b;
464
- return (b = i.$refs.richTextEditor) == null ? void 0 : b.focusEditor();
488
+ onClick: _cache[15] || (_cache[15] = ($event) => {
489
+ var _a;
490
+ return (_a = _ctx.$refs.richTextEditor) == null ? void 0 : _a.focusEditor();
465
491
  }),
466
- onDragEnter: e[16] || (e[16] = (...n) => o.onDrag && o.onDrag(...n)),
467
- onDragOver: e[17] || (e[17] = (...n) => o.onDrag && o.onDrag(...n)),
468
- onDrop: e[18] || (e[18] = (...n) => o.onDrop && o.onDrop(...n)),
469
- onKeydown: e[19] || (e[19] = C(v((...n) => o.onSend && o.onSend(...n), ["exact"]), ["enter"])),
470
- onPaste: e[20] || (e[20] = (...n) => o.onPaste && o.onPaste(...n))
492
+ onDragEnter: _cache[16] || (_cache[16] = (...args) => $options.onDrag && $options.onDrag(...args)),
493
+ onDragOver: _cache[17] || (_cache[17] = (...args) => $options.onDrag && $options.onDrag(...args)),
494
+ onDrop: _cache[18] || (_cache[18] = (...args) => $options.onDrop && $options.onDrop(...args)),
495
+ onKeydown: _cache[19] || (_cache[19] = withKeys(withModifiers((...args) => $options.onSend && $options.onSend(...args), ["exact"]), ["enter"])),
496
+ onPaste: _cache[20] || (_cache[20] = (...args) => $options.onPaste && $options.onPaste(...args))
471
497
  }, [
472
- u("div", {
498
+ createElementVNode("div", {
473
499
  class: "d-of-auto d-mx16 d-mt8 d-mb4",
474
- style: L({ "max-height": t.maxHeight })
500
+ style: normalizeStyle({ "max-height": $props.maxHeight })
475
501
  }, [
476
- r(P, S({
502
+ createVNode(_component_dt_rich_text_editor, mergeProps({
477
503
  ref: "richTextEditor",
478
- modelValue: a.internalInputValue,
479
- "onUpdate:modelValue": e[0] || (e[0] = (n) => a.internalInputValue = n),
480
- "allow-blockquote": t.allowBlockquote,
481
- "allow-bold": t.allowBold,
482
- "allow-bullet-list": t.allowBulletList,
483
- "allow-italic": t.allowItalic,
484
- "allow-strike": t.allowStrike,
485
- "allow-underline": t.allowUnderline,
486
- editable: t.editable,
487
- "input-aria-label": t.inputAriaLabel,
488
- "input-class": t.inputClass,
489
- "output-format": t.outputFormat,
490
- "auto-focus": t.autoFocus,
491
- link: t.link,
492
- placeholder: t.placeholder,
493
- "mention-suggestion": t.mentionSuggestion
494
- }, i.$attrs, {
495
- onFocus: o.onFocus,
496
- onBlur: o.onBlur,
497
- onInput: e[1] || (e[1] = (n) => o.onInput(n))
504
+ modelValue: $data.internalInputValue,
505
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.internalInputValue = $event),
506
+ "allow-blockquote": $props.allowBlockquote,
507
+ "allow-bold": $props.allowBold,
508
+ "allow-bullet-list": $props.allowBulletList,
509
+ "allow-italic": $props.allowItalic,
510
+ "allow-strike": $props.allowStrike,
511
+ "allow-underline": $props.allowUnderline,
512
+ editable: $props.editable,
513
+ "input-aria-label": $props.inputAriaLabel,
514
+ "input-class": $props.inputClass,
515
+ "output-format": $props.outputFormat,
516
+ "auto-focus": $props.autoFocus,
517
+ link: $props.link,
518
+ placeholder: $props.placeholder,
519
+ "mention-suggestion": $props.mentionSuggestion
520
+ }, _ctx.$attrs, {
521
+ onFocus: $options.onFocus,
522
+ onBlur: $options.onBlur,
523
+ onInput: _cache[1] || (_cache[1] = ($event) => $options.onInput($event))
498
524
  }), null, 16, ["modelValue", "allow-blockquote", "allow-bold", "allow-bullet-list", "allow-italic", "allow-strike", "allow-underline", "editable", "input-aria-label", "input-class", "output-format", "auto-focus", "link", "placeholder", "mention-suggestion", "onFocus", "onBlur"])
499
525
  ], 4),
500
- I(i.$slots, "middle"),
501
- u("section", H, [
502
- u("div", N, [
503
- t.showImagePicker ? (m(), c(f, {
526
+ renderSlot(_ctx.$slots, "middle"),
527
+ createElementVNode("section", _hoisted_1, [
528
+ createElementVNode("div", _hoisted_2, [
529
+ $props.showImagePicker ? (openBlock(), createBlock(_component_dt_tooltip, {
504
530
  key: 0,
505
531
  placement: "top-start",
506
- message: t.showImagePicker.tooltipLabel,
532
+ message: $props.showImagePicker.tooltipLabel,
507
533
  offset: [-4, -4]
508
534
  }, {
509
- anchor: l(() => [
510
- r(p, {
535
+ anchor: withCtx(() => [
536
+ createVNode(_component_dt_button, {
511
537
  "data-qa": "dt-message-input-image-btn",
512
538
  size: "sm",
513
539
  circle: "",
514
- kind: a.imagePickerFocus ? "default" : "muted",
540
+ kind: $data.imagePickerFocus ? "default" : "muted",
515
541
  importance: "clear",
516
- "aria-label": t.showImagePicker.ariaLabel,
517
- onClick: o.onSelectImage,
518
- onMouseenter: e[2] || (e[2] = (n) => a.imagePickerFocus = !0),
519
- onMouseleave: e[3] || (e[3] = (n) => a.imagePickerFocus = !1),
520
- onFocus: e[4] || (e[4] = (n) => a.imagePickerFocus = !0),
521
- onBlur: e[5] || (e[5] = (n) => a.imagePickerFocus = !1)
542
+ "aria-label": $props.showImagePicker.ariaLabel,
543
+ onClick: $options.onSelectImage,
544
+ onMouseenter: _cache[2] || (_cache[2] = ($event) => $data.imagePickerFocus = true),
545
+ onMouseleave: _cache[3] || (_cache[3] = ($event) => $data.imagePickerFocus = false),
546
+ onFocus: _cache[4] || (_cache[4] = ($event) => $data.imagePickerFocus = true),
547
+ onBlur: _cache[5] || (_cache[5] = ($event) => $data.imagePickerFocus = false)
522
548
  }, {
523
- icon: l(() => [
524
- r(g, {
549
+ icon: withCtx(() => [
550
+ createVNode(_component_dt_icon, {
525
551
  name: "image",
526
552
  size: "300"
527
553
  })
528
554
  ]),
529
555
  _: 1
530
556
  }, 8, ["kind", "aria-label", "onClick"]),
531
- r(j, {
557
+ createVNode(_component_dt_input, {
532
558
  ref: "messageInputImageUpload",
533
559
  "data-qa": "dt-message-input-image-input",
534
560
  type: "file",
535
561
  class: "d-ps-absolute",
536
562
  multiple: "",
537
563
  hidden: "",
538
- onInput: o.onImageUpload
564
+ onInput: $options.onImageUpload
539
565
  }, null, 8, ["onInput"])
540
566
  ]),
541
567
  _: 1
542
- }, 8, ["message"])) : d("", !0),
543
- t.showEmojiPicker ? (m(), c(B, {
568
+ }, 8, ["message"])) : createCommentVNode("", true),
569
+ $props.showEmojiPicker ? (openBlock(), createBlock(_component_dt_popover, {
544
570
  key: 1,
545
571
  "data-qa": "dt-message-input-emoji-picker-popover",
546
- open: a.emojiPickerOpened,
572
+ open: $data.emojiPickerOpened,
547
573
  "initial-focus-element": "#searchInput",
548
574
  padding: "none",
549
- onOpened: e[10] || (e[10] = (n) => {
550
- a.emojiPickerOpened = n;
575
+ onOpened: _cache[10] || (_cache[10] = (open) => {
576
+ $data.emojiPickerOpened = open;
551
577
  })
552
578
  }, {
553
- anchor: l(() => [
554
- r(f, {
555
- message: t.emojiTooltipMessage,
579
+ anchor: withCtx(() => [
580
+ createVNode(_component_dt_tooltip, {
581
+ message: $props.emojiTooltipMessage,
556
582
  offset: [0, -4]
557
583
  }, {
558
- anchor: l(() => [
559
- r(p, {
584
+ anchor: withCtx(() => [
585
+ createVNode(_component_dt_button, {
560
586
  "data-qa": "dt-message-input-emoji-picker-btn",
561
587
  size: "sm",
562
588
  circle: "",
563
- kind: o.emojiPickerHovered ? "default" : "muted",
589
+ kind: $options.emojiPickerHovered ? "default" : "muted",
564
590
  importance: "clear",
565
- "aria-label": t.emojiButtonAriaLabel,
591
+ "aria-label": $props.emojiButtonAriaLabel,
566
592
  offset: [0, 0],
567
- onClick: o.toggleEmojiPicker,
568
- onMouseenter: e[6] || (e[6] = (n) => a.emojiPickerFocus = !0),
569
- onMouseleave: e[7] || (e[7] = (n) => a.emojiPickerFocus = !1),
570
- onFocus: e[8] || (e[8] = (n) => a.emojiPickerFocus = !0),
571
- onBlur: e[9] || (e[9] = (n) => a.emojiPickerFocus = !1)
593
+ onClick: $options.toggleEmojiPicker,
594
+ onMouseenter: _cache[6] || (_cache[6] = ($event) => $data.emojiPickerFocus = true),
595
+ onMouseleave: _cache[7] || (_cache[7] = ($event) => $data.emojiPickerFocus = false),
596
+ onFocus: _cache[8] || (_cache[8] = ($event) => $data.emojiPickerFocus = true),
597
+ onBlur: _cache[9] || (_cache[9] = ($event) => $data.emojiPickerFocus = false)
572
598
  }, {
573
- icon: l(() => [
574
- r(g, {
575
- name: o.emojiPickerHovered ? "very-satisfied" : "satisfied",
599
+ icon: withCtx(() => [
600
+ createVNode(_component_dt_icon, {
601
+ name: !$options.emojiPickerHovered ? "satisfied" : "very-satisfied",
576
602
  size: "300"
577
603
  }, null, 8, ["name"])
578
604
  ]),
@@ -582,87 +608,87 @@ function X(i, e, t, Y, a, o) {
582
608
  _: 1
583
609
  }, 8, ["message"])
584
610
  ]),
585
- content: l(() => [
586
- r(y, S(t.emojiPickerProps, {
587
- onSkinTone: o.onSkinTone,
588
- onSelectedEmoji: o.onSelectEmoji
611
+ content: withCtx(() => [
612
+ createVNode(_component_dt_emoji_picker, mergeProps($props.emojiPickerProps, {
613
+ onSkinTone: $options.onSkinTone,
614
+ onSelectedEmoji: $options.onSelectEmoji
589
615
  }), null, 16, ["onSkinTone", "onSelectedEmoji"])
590
616
  ]),
591
617
  _: 1
592
- }, 8, ["open"])) : d("", !0)
618
+ }, 8, ["open"])) : createCommentVNode("", true)
593
619
  ]),
594
- u("div", K, [
595
- t.showCharacterLimit ? (m(), c(f, {
620
+ createElementVNode("div", _hoisted_3, [
621
+ Boolean($props.showCharacterLimit) ? (openBlock(), createBlock(_component_dt_tooltip, {
596
622
  key: 0,
597
623
  class: "dt-message-input--remaining-char-tooltip",
598
624
  placement: "top-end",
599
- enabled: o.characterLimitTooltipEnabled,
600
- message: t.showCharacterLimit.message,
625
+ enabled: $options.characterLimitTooltipEnabled,
626
+ message: $props.showCharacterLimit.message,
601
627
  offset: [10, -8]
602
628
  }, {
603
- anchor: l(() => [
604
- D(u("p", {
629
+ anchor: withCtx(() => [
630
+ withDirectives(createElementVNode("p", {
605
631
  class: "d-fc-error d-mr16 dt-message-input--remaining-char",
606
632
  "data-qa": "dt-message-input-character-limit"
607
- }, h(t.showCharacterLimit.count - o.inputLength), 513), [
608
- [F, o.displayCharacterLimitWarning]
633
+ }, toDisplayString($props.showCharacterLimit.count - $options.inputLength), 513), [
634
+ [vShow, $options.displayCharacterLimitWarning]
609
635
  ])
610
636
  ]),
611
637
  _: 1
612
- }, 8, ["enabled", "message"])) : d("", !0),
613
- t.showCancel ? (m(), c(p, {
638
+ }, 8, ["enabled", "message"])) : createCommentVNode("", true),
639
+ $props.showCancel ? (openBlock(), createBlock(_component_dt_button, {
614
640
  key: 1,
615
641
  "data-qa": "dt-message-input-cancel-button",
616
642
  class: "dt-message-input--cancel-button",
617
643
  size: "sm",
618
644
  kind: "muted",
619
645
  importance: "clear",
620
- "aria-label": t.showCancel.ariaLabel,
621
- onClick: o.onCancel
646
+ "aria-label": $props.showCancel.ariaLabel,
647
+ onClick: $options.onCancel
622
648
  }, {
623
- default: l(() => [
624
- u("p", null, h(t.showCancel.text), 1)
649
+ default: withCtx(() => [
650
+ createElementVNode("p", null, toDisplayString($props.showCancel.text), 1)
625
651
  ]),
626
652
  _: 1
627
- }, 8, ["aria-label", "onClick"])) : d("", !0),
628
- t.showSend ? (m(), c(f, {
653
+ }, 8, ["aria-label", "onClick"])) : createCommentVNode("", true),
654
+ $props.showSend ? (openBlock(), createBlock(_component_dt_tooltip, {
629
655
  key: 2,
630
656
  placement: "top-end",
631
- enabled: !t.showSend,
632
- message: t.showSend.tooltipLabel,
633
- show: !o.isSendDisabled && a.sendButtonFocus,
657
+ enabled: !$props.showSend,
658
+ message: $props.showSend.tooltipLabel,
659
+ show: !$options.isSendDisabled && $data.sendButtonFocus,
634
660
  offset: [6, -8]
635
661
  }, {
636
- anchor: l(() => [
637
- r(p, {
662
+ anchor: withCtx(() => [
663
+ createVNode(_component_dt_button, {
638
664
  "data-qa": "dt-message-input-send-btn",
639
665
  size: "sm",
640
666
  kind: "default",
641
667
  importance: "primary",
642
- class: w([
668
+ class: normalizeClass([
643
669
  {
644
- "message-input-button__disabled d-fc-muted": o.isSendDisabled,
645
- "d-btn--circle": t.showSend.icon
670
+ "message-input-button__disabled d-fc-muted": $options.isSendDisabled,
671
+ "d-btn--circle": $props.showSend.icon
646
672
  }
647
673
  ]),
648
- "aria-label": t.showSend.ariaLabel,
649
- "aria-disabled": o.isSendDisabled,
650
- onClick: o.onSend,
651
- onMouseenter: e[11] || (e[11] = (n) => a.sendButtonFocus = !0),
652
- onMouseleave: e[12] || (e[12] = (n) => a.sendButtonFocus = !1),
653
- onFocus: e[13] || (e[13] = (n) => a.sendButtonFocus = !0),
654
- onBlur: e[14] || (e[14] = (n) => a.sendButtonFocus = !1)
655
- }, E({
656
- default: l(() => [
657
- t.showSend.text ? (m(), k("p", W, h(t.showSend.text), 1)) : d("", !0)
674
+ "aria-label": $props.showSend.ariaLabel,
675
+ "aria-disabled": $options.isSendDisabled,
676
+ onClick: $options.onSend,
677
+ onMouseenter: _cache[11] || (_cache[11] = ($event) => $data.sendButtonFocus = true),
678
+ onMouseleave: _cache[12] || (_cache[12] = ($event) => $data.sendButtonFocus = false),
679
+ onFocus: _cache[13] || (_cache[13] = ($event) => $data.sendButtonFocus = true),
680
+ onBlur: _cache[14] || (_cache[14] = ($event) => $data.sendButtonFocus = false)
681
+ }, createSlots({
682
+ default: withCtx(() => [
683
+ $props.showSend.text ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString($props.showSend.text), 1)) : createCommentVNode("", true)
658
684
  ]),
659
685
  _: 2
660
686
  }, [
661
- t.showSend.icon ? {
687
+ $props.showSend.icon ? {
662
688
  name: "icon",
663
- fn: l(() => [
664
- r(g, {
665
- name: t.showSend.icon,
689
+ fn: withCtx(() => [
690
+ createVNode(_component_dt_icon, {
691
+ name: $props.showSend.icon,
666
692
  size: "300"
667
693
  }, null, 8, ["name"])
668
694
  ]),
@@ -671,13 +697,13 @@ function X(i, e, t, Y, a, o) {
671
697
  ]), 1032, ["class", "aria-label", "aria-disabled", "onClick"])
672
698
  ]),
673
699
  _: 1
674
- }, 8, ["enabled", "message", "show"])) : d("", !0)
700
+ }, 8, ["enabled", "message", "show"])) : createCommentVNode("", true)
675
701
  ])
676
702
  ])
677
703
  ], 34);
678
704
  }
679
- const Ze = /* @__PURE__ */ T(A, [["render", X]]);
705
+ const message_input = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
680
706
  export {
681
- Ze as DtRecipeMessageInput
707
+ message_input as DtRecipeMessageInput
682
708
  };
683
709
  //# sourceMappingURL=message-input.js.map