@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,12 +1,12 @@
1
- import { resolveComponent as h, openBlock as d, createElementBlock as k, createVNode as u, withCtx as r, Fragment as A, renderList as x, createBlock as g, normalizeClass as O, createTextVNode as f, toDisplayString as m, withModifiers as y, createCommentVNode as I, withKeys as S, createElementVNode as b, normalizeStyle as v, mergeProps as F } from "vue";
2
- import { _ as R } from "../chunks/_plugin-vue_export-helper-hUChTQA_.js";
3
- import { DtRichTextEditor as Q, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as N, RICH_TEXT_EDITOR_OUTPUT_FORMATS as q } from "./rich-text-editor.js";
4
- import { DtButton as M } from "./button.js";
5
- import { DtIcon as D } from "./icon.js";
6
- import { DtPopover as U } from "./popover.js";
7
- import { DtStack as V } from "./stack.js";
8
- import { DtInput as P } from "./input.js";
9
- import { DtTooltip as j } from "./tooltip.js";
1
+ import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, normalizeClass, createTextVNode, toDisplayString, withModifiers, createCommentVNode, withKeys, createElementVNode, normalizeStyle, mergeProps } from "vue";
2
+ import { _export_sfc } from "../chunks/_plugin-vue_export-helper-caHeSgYY.js";
3
+ import { DtRichTextEditor, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES, RICH_TEXT_EDITOR_OUTPUT_FORMATS } from "./rich-text-editor.js";
4
+ import { DtButton } from "./button.js";
5
+ import { DtIcon } from "./icon.js";
6
+ import { DtPopover } from "./popover.js";
7
+ import { DtStack } from "./stack.js";
8
+ import { DtInput } from "./input.js";
9
+ import { DtTooltip } from "./tooltip.js";
10
10
  import "@tiptap/vue-3";
11
11
  import "@tiptap/extension-blockquote";
12
12
  import "@tiptap/extension-code-block";
@@ -25,54 +25,57 @@ import "@tiptap/extension-underline";
25
25
  import "@tiptap/extension-text";
26
26
  import "@tiptap/extension-text-align";
27
27
  import "@tiptap/core";
28
- import "../chunks/index-mRmwpCBG.js";
28
+ import "./emoji.js";
29
+ import "../common/emoji.js";
29
30
  import "emoji-regex";
30
31
  import "@dialpad/dialtone-emojis";
31
32
  import "./skeleton.js";
32
- import "../chunks/icon_constants-OpYAAKwF.js";
33
+ import "../chunks/icon_constants-Dy4MEUJL.js";
33
34
  import "@dialpad/dialtone-icons/icons.json";
34
35
  import "@tiptap/pm/state";
35
36
  import "@tiptap/suggestion";
36
37
  import "./list-item.js";
37
- import "../chunks/list_item_constants-LTUc74pD.js";
38
- import "./utils.js";
39
- import "./constants.js";
38
+ import "../chunks/list_item_constants-u1xcN9Dd.js";
39
+ import "../common/utils.js";
40
+ import "../common/constants.js";
40
41
  import "./item-layout.js";
41
42
  import "@dialpad/dialtone-icons/vue3";
42
43
  import "tippy.js";
43
44
  import "@tiptap/extension-mention";
44
45
  import "./link.js";
45
- import "../chunks/link_constants-vIUB92L4.js";
46
+ import "../chunks/link_constants-nWVlXQBs.js";
46
47
  import "./avatar.js";
47
48
  import "./presence.js";
48
- import "../chunks/stack_constants-u7tNqGtc.js";
49
- import "../chunks/popover_constants-qjlEkroB.js";
50
- import "../chunks/modal-VuMFkZFH.js";
51
- import "../chunks/sr_only_close_button-7O-Ev8uM.js";
49
+ import "../chunks/stack_constants-HraCekPm.js";
50
+ import "../chunks/popover_constants-Qkpb0yh2.js";
51
+ import "../chunks/modal-XOr4kiNZ.js";
52
+ import "../chunks/sr_only_close_button-3EdsV-dH.js";
52
53
  import "./lazy-show.js";
53
- import "../chunks/input-4UQWegUk.js";
54
- import "./validators.js";
54
+ import "../chunks/input-NmYDD5bn.js";
55
+ import "../common/validators.js";
55
56
  import "./validation-messages.js";
56
- const z = [
57
+ const EDITOR_SUPPORTED_LINK_PROTOCOLS = [
57
58
  /^https?:\/\//,
58
59
  /^http?:\/\//,
59
60
  /^ftp?:\/\//,
60
61
  /^ftps?:\/\//,
61
62
  /^ftps?:\/\//,
62
63
  /mailto:([^?]*)/
63
- ], G = "https://", J = {
64
+ ];
65
+ const EDITOR_DEFAULT_LINK_PREFIX = "https://";
66
+ const _sfc_main = {
64
67
  name: "DtRecipeEditor",
65
68
  components: {
66
- DtRichTextEditor: Q,
67
- DtButton: M,
68
- DtIcon: D,
69
- DtPopover: U,
70
- DtStack: V,
71
- DtInput: P,
72
- DtTooltip: j
69
+ DtRichTextEditor,
70
+ DtButton,
71
+ DtIcon,
72
+ DtPopover,
73
+ DtStack,
74
+ DtInput,
75
+ DtTooltip
73
76
  },
74
77
  mixins: [],
75
- inheritAttrs: !1,
78
+ inheritAttrs: false,
76
79
  props: {
77
80
  /**
78
81
  * Value of the input. The object format should match TipTap's JSON
@@ -87,14 +90,14 @@ const z = [
87
90
  */
88
91
  editable: {
89
92
  type: Boolean,
90
- default: !0
93
+ default: true
91
94
  },
92
95
  /**
93
96
  * Descriptive label for the input element
94
97
  */
95
98
  inputAriaLabel: {
96
99
  type: String,
97
- required: !0,
100
+ required: true,
98
101
  default: ""
99
102
  },
100
103
  /**
@@ -119,9 +122,12 @@ const z = [
119
122
  */
120
123
  autoFocus: {
121
124
  type: [Boolean, String, Number],
122
- default: !1,
123
- validator(t) {
124
- return typeof t == "string" ? N.includes(t) : !0;
125
+ default: false,
126
+ validator(autoFocus) {
127
+ if (typeof autoFocus === "string") {
128
+ return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);
129
+ }
130
+ return true;
125
131
  }
126
132
  },
127
133
  /**
@@ -172,91 +178,91 @@ const z = [
172
178
  */
173
179
  showBoldButton: {
174
180
  type: Boolean,
175
- default: !0
181
+ default: true
176
182
  },
177
183
  /**
178
184
  * Show button to render text in italics
179
185
  */
180
186
  showItalicsButton: {
181
187
  type: Boolean,
182
- default: !0
188
+ default: true
183
189
  },
184
190
  /**
185
191
  * Show button to underline text
186
192
  */
187
193
  showUnderlineButton: {
188
194
  type: Boolean,
189
- default: !0
195
+ default: true
190
196
  },
191
197
  /**
192
198
  * Show button to strike text
193
199
  */
194
200
  showStrikeButton: {
195
201
  type: Boolean,
196
- default: !0
202
+ default: true
197
203
  },
198
204
  /**
199
205
  * Show button to render list items
200
206
  */
201
207
  showListItemsButton: {
202
208
  type: Boolean,
203
- default: !0
209
+ default: true
204
210
  },
205
211
  /**
206
212
  * Show button to render ordered list items
207
213
  */
208
214
  showOrderedListButton: {
209
215
  type: Boolean,
210
- default: !0
216
+ default: true
211
217
  },
212
218
  /**
213
219
  * Show button to align text to the left
214
220
  */
215
221
  showAlignLeftButton: {
216
222
  type: Boolean,
217
- default: !0
223
+ default: true
218
224
  },
219
225
  /**
220
226
  * Show button to align text to the center
221
227
  */
222
228
  showAlignCenterButton: {
223
229
  type: Boolean,
224
- default: !0
230
+ default: true
225
231
  },
226
232
  /**
227
233
  * Show button to align text to the right
228
234
  */
229
235
  showAlignRightButton: {
230
236
  type: Boolean,
231
- default: !0
237
+ default: true
232
238
  },
233
239
  /**
234
240
  * Show button to justify text
235
241
  */
236
242
  showAlignJustifyButton: {
237
243
  type: Boolean,
238
- default: !0
244
+ default: true
239
245
  },
240
246
  /**
241
247
  * Show button to add quote format to text
242
248
  */
243
249
  showQuoteButton: {
244
250
  type: Boolean,
245
- default: !0
251
+ default: true
246
252
  },
247
253
  /**
248
254
  * Show button to add code block
249
255
  */
250
256
  showCodeBlockButton: {
251
257
  type: Boolean,
252
- default: !0
258
+ default: true
253
259
  },
254
260
  /**
255
261
  * Show button to handle quick replies
256
262
  */
257
263
  showQuickRepliesButton: {
258
264
  type: Boolean,
259
- default: !0
265
+ default: true
260
266
  },
261
267
  /**
262
268
  * Show add link default config.
@@ -264,7 +270,7 @@ const z = [
264
270
  showAddLink: {
265
271
  type: Object,
266
272
  default: () => ({
267
- showAddLinkButton: !0,
273
+ showAddLinkButton: true,
268
274
  setLinkTitle: "Add a link",
269
275
  setLinkInputAriaLabel: "Input field to add link"
270
276
  })
@@ -300,11 +306,11 @@ const z = [
300
306
  return {
301
307
  internalInputValue: this.value,
302
308
  // internal input content
303
- hasFocus: !1,
309
+ hasFocus: false,
304
310
  linkOptions: {
305
311
  class: "d-link d-c-text d-d-inline-block"
306
312
  },
307
- showLinkInput: !1,
313
+ showLinkInput: false,
308
314
  linkInput: ""
309
315
  };
310
316
  },
@@ -313,7 +319,7 @@ const z = [
313
319
  return this.internalInputValue.length;
314
320
  },
315
321
  htmlOutputFormat() {
316
- return q[2];
322
+ return RICH_TEXT_EDITOR_OUTPUT_FORMATS[2];
317
323
  },
318
324
  showingTextFormatButtons() {
319
325
  return this.showBoldButton || this.showItalicsButton || this.showStrikeButton || this.showUnderlineButton;
@@ -325,22 +331,22 @@ const z = [
325
331
  return this.showListItemsButton || this.showOrderedListButton;
326
332
  },
327
333
  buttonGroups() {
328
- const t = this.individualButtons.map((e) => ({
329
- key: e.selector,
330
- buttonGroup: [e]
334
+ const individualButtonStacks = this.individualButtons.map((buttonData) => ({
335
+ key: buttonData.selector,
336
+ buttonGroup: [buttonData]
331
337
  }));
332
338
  return [
333
339
  { key: "new", buttonGroup: this.newButtons },
334
340
  { key: "format", buttonGroup: this.textFormatButtons },
335
341
  { key: "alignment", buttonGroup: this.alignmentButtons },
336
342
  { key: "list", buttonGroup: this.listButtons },
337
- ...t
338
- ].filter((e) => e.buttonGroup.length > 0);
343
+ ...individualButtonStacks
344
+ ].filter((buttonGroupData) => buttonGroupData.buttonGroup.length > 0);
339
345
  },
340
346
  newButtons() {
341
347
  return [
342
348
  { showBtn: this.showQuickRepliesButton, label: "Quick reply", selector: "quickReplies", iconName: "lightning-bolt", dataQA: "dt-editor-quick-replies-btn", tooltipMessage: "Quick Reply", onClick: this.onQuickRepliesClick }
343
- ].filter((t) => t.showBtn);
349
+ ].filter((button) => button.showBtn);
344
350
  },
345
351
  textFormatButtons() {
346
352
  return [
@@ -348,7 +354,7 @@ const z = [
348
354
  { showBtn: this.showItalicsButton, selector: "italic", iconName: "italic", dataQA: "dt-editor-italics-btn", tooltipMessage: "Italics", onClick: this.onItalicTextToggle },
349
355
  { showBtn: this.showUnderlineButton, selector: "underline", iconName: "underline", dataQA: "dt-editor-underline-btn", tooltipMessage: "Underline", onClick: this.onUnderlineTextToggle },
350
356
  { showBtn: this.showStrikeButton, selector: "strike", iconName: "strikethrough", dataQA: "dt-editor-strike-btn", tooltipMessage: "Strike", onClick: this.onStrikethroughTextToggle }
351
- ].filter((t) => t.showBtn);
357
+ ].filter((button) => button.showBtn);
352
358
  },
353
359
  alignmentButtons() {
354
360
  return [
@@ -356,214 +362,244 @@ const z = [
356
362
  { showBtn: this.showAlignCenterButton, selector: { textAlign: "center" }, iconName: "align-center", dataQA: "dt-editor-align-center-btn", tooltipMessage: "Align Center", onClick: () => this.onTextAlign("center") },
357
363
  { showBtn: this.showAlignRightButton, selector: { textAlign: "right" }, iconName: "align-right", dataQA: "dt-editor-align-right-btn", tooltipMessage: "Align Right", onClick: () => this.onTextAlign("right") },
358
364
  { showBtn: this.showAlignJustifyButton, selector: { textAlign: "justify" }, iconName: "align-justify", dataQA: "dt-editor-align-justify-btn", tooltipMessage: "Align Justify", onClick: () => this.onTextAlign("justify") }
359
- ].filter((t) => t.showBtn);
365
+ ].filter((button) => button.showBtn);
360
366
  },
361
367
  listButtons() {
362
368
  return [
363
369
  { showBtn: this.showListItemsButton, selector: "bulletList", iconName: "list-bullet", dataQA: "dt-editor-list-items-btn", tooltipMessage: "Bullet List", onClick: this.onBulletListToggle },
364
370
  { showBtn: this.showOrderedListButton, selector: "orderedList", iconName: "list-ordered", dataQA: "dt-editor-ordered-list-items-btn", tooltipMessage: "Ordered List", onClick: this.onOrderedListToggle }
365
- ].filter((t) => t.showBtn);
371
+ ].filter((button) => button.showBtn);
366
372
  },
367
373
  individualButtons() {
368
374
  return [
369
375
  { showBtn: this.showQuoteButton, selector: "blockquote", iconName: "quote", dataQA: "dt-editor-blockquote-btn", tooltipMessage: "Quote", onClick: this.onBlockquoteToggle },
370
376
  { showBtn: this.showCodeBlockButton, selector: "codeBlock", iconName: "code-block", dataQA: "dt-editor-code-block-btn", tooltipMessage: "Code", onClick: this.onCodeBlockToggle }
371
- ].filter((t) => t.showBtn);
377
+ ].filter((button) => button.showBtn);
372
378
  },
373
379
  linkButton() {
374
380
  return { showBtn: this.showAddLink.showAddLinkButton, selector: "link", iconName: "link-2", dataQA: "dt-editor-add-link-btn", tooltipMessage: "Link", onClick: this.openLinkInput };
375
381
  }
376
382
  },
377
383
  watch: {
378
- value(t) {
379
- this.internalInputValue = t;
384
+ value(newValue) {
385
+ this.internalInputValue = newValue;
380
386
  }
381
387
  },
382
388
  methods: {
383
- onInputFocus(t) {
384
- t == null || t.stopPropagation();
389
+ onInputFocus(event) {
390
+ event == null ? void 0 : event.stopPropagation();
385
391
  },
386
392
  removeLink() {
387
- var t, e, i, s, n;
388
- (n = (s = (i = (e = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null ? void 0 : e.chain()) == null ? void 0 : i.focus()) == null ? void 0 : s.unsetLink()) == null || n.run(), this.closeLinkInput();
389
- },
390
- setLink(t) {
391
- var n, o, p;
392
- const e = (n = this.$refs.richTextEditor) == null ? void 0 : n.editor;
393
- if (t == null || t.preventDefault(), t == null || t.stopPropagation(), !this.linkInput) {
393
+ var _a, _b, _c, _d, _e;
394
+ (_e = (_d = (_c = (_b = (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor) == null ? void 0 : _b.chain()) == null ? void 0 : _c.focus()) == null ? void 0 : _d.unsetLink()) == null ? void 0 : _e.run();
395
+ this.closeLinkInput();
396
+ },
397
+ setLink(event) {
398
+ var _a, _b, _c;
399
+ const editor2 = (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor;
400
+ event == null ? void 0 : event.preventDefault();
401
+ event == null ? void 0 : event.stopPropagation();
402
+ if (!this.linkInput) {
394
403
  this.removeLink();
395
404
  return;
396
405
  }
397
- z.find((c) => c.test(this.linkInput)) || (this.linkInput = `${G}${this.linkInput}`);
398
- const s = (p = (o = e == null ? void 0 : e.view) == null ? void 0 : o.state) == null ? void 0 : p.selection;
399
- s.anchor === s.head ? e.chain().focus().insertContentAt(
400
- s.anchor,
401
- `<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`
402
- ).run() : e.chain().focus().extendMarkRange("link").setLink({ href: this.linkInput, class: this.linkOptions.class }).run(), this.closeLinkInput();
406
+ const prefix = EDITOR_SUPPORTED_LINK_PROTOCOLS.find((prefixRegex) => prefixRegex.test(this.linkInput));
407
+ if (!prefix) {
408
+ this.linkInput = `${EDITOR_DEFAULT_LINK_PREFIX}${this.linkInput}`;
409
+ }
410
+ const selection = (_c = (_b = editor2 == null ? void 0 : editor2.view) == null ? void 0 : _b.state) == null ? void 0 : _c.selection;
411
+ if (selection.anchor === selection.head) {
412
+ editor2.chain().focus().insertContentAt(
413
+ selection.anchor,
414
+ `<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`
415
+ ).run();
416
+ } else {
417
+ editor2.chain().focus().extendMarkRange("link").setLink({ href: this.linkInput, class: this.linkOptions.class }).run();
418
+ }
419
+ this.closeLinkInput();
403
420
  },
404
421
  openLinkInput() {
405
- this.showLinkInput = !0;
422
+ this.showLinkInput = true;
406
423
  },
407
- updateInput(t) {
408
- var e, i, s;
409
- if (!t)
424
+ updateInput(openedInput) {
425
+ var _a, _b, _c;
426
+ if (!openedInput) {
410
427
  return this.closeLinkInput();
411
- this.linkInput = (s = (i = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : i.getAttributes("link")) == null ? void 0 : s.href;
428
+ }
429
+ this.linkInput = (_c = (_b = (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor) == null ? void 0 : _b.getAttributes("link")) == null ? void 0 : _c.href;
412
430
  },
413
431
  closeLinkInput() {
414
- var t;
415
- this.showLinkInput = !1, this.linkInput = "", (t = this.$refs.richTextEditor.editor) == null || t.chain().focus();
432
+ var _a;
433
+ this.showLinkInput = false;
434
+ this.linkInput = "";
435
+ (_a = this.$refs.richTextEditor.editor) == null ? void 0 : _a.chain().focus();
416
436
  },
417
437
  onBoldTextToggle() {
418
- var t, e;
419
- (e = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null || e.chain().focus().toggleBold().run();
438
+ var _a, _b;
439
+ (_b = (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor) == null ? void 0 : _b.chain().focus().toggleBold().run();
420
440
  },
421
441
  onItalicTextToggle() {
422
- var t;
423
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleItalic().run();
442
+ var _a;
443
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleItalic().run();
424
444
  },
425
445
  onUnderlineTextToggle() {
426
- var t;
427
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleUnderline().run();
446
+ var _a;
447
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleUnderline().run();
428
448
  },
429
449
  onStrikethroughTextToggle() {
430
- var t;
431
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleStrike().run();
450
+ var _a;
451
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleStrike().run();
432
452
  },
433
- onTextAlign(t) {
434
- var e, i, s, n;
435
- if ((i = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) != null && i.isActive({ textAlign: t }))
436
- return (s = this.$refs.richTextEditor) == null ? void 0 : s.editor.chain().focus().unsetTextAlign().run();
437
- (n = this.$refs.richTextEditor) == null || n.editor.chain().focus().setTextAlign(t).run();
453
+ onTextAlign(alignment) {
454
+ var _a, _b, _c, _d;
455
+ if ((_b = (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor) == null ? void 0 : _b.isActive({ textAlign: alignment })) {
456
+ return (_c = this.$refs.richTextEditor) == null ? void 0 : _c.editor.chain().focus().unsetTextAlign().run();
457
+ }
458
+ (_d = this.$refs.richTextEditor) == null ? void 0 : _d.editor.chain().focus().setTextAlign(alignment).run();
438
459
  },
439
460
  onBulletListToggle() {
440
- var t;
441
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleBulletList().run();
461
+ var _a;
462
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleBulletList().run();
442
463
  },
443
464
  onOrderedListToggle() {
444
- var t;
445
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleOrderedList().run();
465
+ var _a;
466
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleOrderedList().run();
446
467
  },
447
468
  onCodeBlockToggle() {
448
- var t;
449
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleCodeBlock().run();
469
+ var _a;
470
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleCodeBlock().run();
450
471
  },
451
472
  onQuickRepliesClick() {
452
473
  this.$emit("quick-replies-click");
453
474
  },
454
475
  onBlockquoteToggle() {
455
- var t;
456
- (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleBlockquote().run();
476
+ var _a;
477
+ (_a = this.$refs.richTextEditor) == null ? void 0 : _a.editor.chain().focus().toggleBlockquote().run();
457
478
  },
458
- onFocus(t) {
459
- this.hasFocus = !0, this.$emit("focus", t);
479
+ onFocus(event) {
480
+ this.hasFocus = true;
481
+ this.$emit("focus", event);
460
482
  },
461
- onBlur(t) {
462
- this.hasFocus = !1, this.$emit("blur", t);
483
+ onBlur(event) {
484
+ this.hasFocus = false;
485
+ this.$emit("blur", event);
463
486
  },
464
- onInput(t) {
465
- this.$emit("input", t);
487
+ onInput(event) {
488
+ this.$emit("input", event);
466
489
  }
467
490
  }
468
- }, K = /* @__PURE__ */ b("div", { class: "dt-editor--button-group-divider" }, null, -1), H = { key: 0 }, X = { class: "d-ml8 d-mr12" };
469
- function W(t, e, i, s, n, o) {
470
- const p = h("dt-icon"), c = h("dt-button"), L = h("dt-tooltip"), B = h("dt-stack"), C = h("dt-input"), _ = h("dt-popover"), E = h("dt-rich-text-editor");
471
- return d(), k("div", {
491
+ };
492
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "dt-editor--button-group-divider" }, null, -1);
493
+ const _hoisted_2 = { key: 0 };
494
+ const _hoisted_3 = { class: "d-ml8 d-mr12" };
495
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
496
+ const _component_dt_icon = resolveComponent("dt-icon");
497
+ const _component_dt_button = resolveComponent("dt-button");
498
+ const _component_dt_tooltip = resolveComponent("dt-tooltip");
499
+ const _component_dt_stack = resolveComponent("dt-stack");
500
+ const _component_dt_input = resolveComponent("dt-input");
501
+ const _component_dt_popover = resolveComponent("dt-popover");
502
+ const _component_dt_rich_text_editor = resolveComponent("dt-rich-text-editor");
503
+ return openBlock(), createElementBlock("div", {
472
504
  "data-qa": "dt-editor",
473
505
  role: "presentation",
474
506
  class: "d-d-flex d-fd-column",
475
- onClick: e[4] || (e[4] = (a) => t.$refs.richTextEditor.focusEditor())
507
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$refs.richTextEditor.focusEditor())
476
508
  }, [
477
- u(B, {
509
+ createVNode(_component_dt_stack, {
478
510
  direction: "row",
479
511
  gap: "450",
480
512
  class: "d-p8 dt-editor--top-bar-background"
481
513
  }, {
482
- default: r(() => [
483
- (d(!0), k(A, null, x(o.buttonGroups, (a) => (d(), g(B, {
484
- key: a.key,
485
- direction: "row",
486
- gap: "300"
487
- }, {
488
- default: r(() => [
489
- (d(!0), k(A, null, x(a.buttonGroup, (l) => (d(), g(L, {
490
- key: `${a.key}-${JSON.stringify(l.selector)}`,
491
- message: l.tooltipMessage,
492
- placement: "top"
493
- }, {
494
- anchor: r(() => {
495
- var w, T;
496
- return [
497
- u(c, {
498
- "data-qa": l.dataQA,
499
- importance: "clear",
500
- kind: "muted",
501
- active: (T = (w = t.$refs.richTextEditor) == null ? void 0 : w.editor) == null ? void 0 : T.isActive(l.selector),
502
- size: "xs",
503
- "aria-label": l.tooltipMessage,
504
- class: O({ "d-btn--icon-only": !l.label }),
505
- onClick: (Y) => l.onClick()
506
- }, {
507
- icon: r(() => [
508
- u(p, {
509
- name: l.iconName,
510
- size: "200"
511
- }, null, 8, ["name"])
512
- ]),
513
- default: r(() => [
514
- f(" " + m(l == null ? void 0 : l.label), 1)
515
- ]),
516
- _: 2
517
- }, 1032, ["data-qa", "active", "aria-label", "class", "onClick"])
518
- ];
519
- }),
520
- _: 2
521
- }, 1032, ["message"]))), 128)),
522
- K
523
- ]),
524
- _: 2
525
- }, 1024))), 128)),
526
- o.linkButton.showBtn ? (d(), g(B, {
514
+ default: withCtx(() => [
515
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.buttonGroups, (buttonGroup) => {
516
+ return openBlock(), createBlock(_component_dt_stack, {
517
+ key: buttonGroup.key,
518
+ direction: "row",
519
+ gap: "300"
520
+ }, {
521
+ default: withCtx(() => [
522
+ (openBlock(true), createElementBlock(Fragment, null, renderList(buttonGroup.buttonGroup, (button) => {
523
+ return openBlock(), createBlock(_component_dt_tooltip, {
524
+ key: `${buttonGroup.key}-${JSON.stringify(button.selector)}`,
525
+ message: button.tooltipMessage,
526
+ placement: "top"
527
+ }, {
528
+ anchor: withCtx(() => {
529
+ var _a, _b;
530
+ return [
531
+ createVNode(_component_dt_button, {
532
+ "data-qa": button.dataQA,
533
+ importance: "clear",
534
+ kind: "muted",
535
+ active: (_b = (_a = _ctx.$refs.richTextEditor) == null ? void 0 : _a.editor) == null ? void 0 : _b.isActive(button.selector),
536
+ size: "xs",
537
+ "aria-label": button.tooltipMessage,
538
+ class: normalizeClass({ "d-btn--icon-only": !button.label }),
539
+ onClick: ($event) => button.onClick()
540
+ }, {
541
+ icon: withCtx(() => [
542
+ createVNode(_component_dt_icon, {
543
+ name: button.iconName,
544
+ size: "200"
545
+ }, null, 8, ["name"])
546
+ ]),
547
+ default: withCtx(() => [
548
+ createTextVNode(" " + toDisplayString(button == null ? void 0 : button.label), 1)
549
+ ]),
550
+ _: 2
551
+ }, 1032, ["data-qa", "active", "aria-label", "class", "onClick"])
552
+ ];
553
+ }),
554
+ _: 2
555
+ }, 1032, ["message"]);
556
+ }), 128)),
557
+ _hoisted_1
558
+ ]),
559
+ _: 2
560
+ }, 1024);
561
+ }), 128)),
562
+ $options.linkButton.showBtn ? (openBlock(), createBlock(_component_dt_stack, {
527
563
  key: 0,
528
564
  direction: "row",
529
565
  gap: "300"
530
566
  }, {
531
- default: r(() => [
532
- u(_, {
533
- open: n.showLinkInput,
567
+ default: withCtx(() => [
568
+ createVNode(_component_dt_popover, {
569
+ open: $data.showLinkInput,
534
570
  placement: "bottom-start",
535
- "visually-hidden-close": !0,
571
+ "visually-hidden-close": true,
536
572
  "visually-hidden-close-label": "Close link input popover",
537
573
  "data-qa": "dt-editor-link-input-popover",
538
- "show-close-button": !1,
574
+ "show-close-button": false,
539
575
  onClick: [
540
- o.onInputFocus,
541
- y(o.onInputFocus, ["stop"])
576
+ $options.onInputFocus,
577
+ withModifiers($options.onInputFocus, ["stop"])
542
578
  ],
543
- onOpened: o.updateInput
579
+ onOpened: $options.updateInput
544
580
  }, {
545
- anchor: r(() => [
546
- (d(), g(L, {
547
- key: o.linkButton.key,
548
- message: o.linkButton.tooltipMessage,
581
+ anchor: withCtx(() => [
582
+ (openBlock(), createBlock(_component_dt_tooltip, {
583
+ key: $options.linkButton.key,
584
+ message: $options.linkButton.tooltipMessage,
549
585
  placement: "top"
550
586
  }, {
551
- anchor: r(() => {
552
- var a, l;
587
+ anchor: withCtx(() => {
588
+ var _a, _b;
553
589
  return [
554
- u(c, {
555
- "data-qa": o.linkButton.dataQA,
590
+ createVNode(_component_dt_button, {
591
+ "data-qa": $options.linkButton.dataQA,
556
592
  importance: "clear",
557
593
  kind: "muted",
558
594
  class: "d-ol-none",
559
- active: (l = (a = t.$refs.richTextEditor) == null ? void 0 : a.editor) == null ? void 0 : l.isActive(o.linkButton.selector),
595
+ active: (_b = (_a = _ctx.$refs.richTextEditor) == null ? void 0 : _a.editor) == null ? void 0 : _b.isActive($options.linkButton.selector),
560
596
  size: "xs",
561
- "aria-label": o.linkButton.tooltipMessage,
562
- onClick: e[0] || (e[0] = (w) => o.linkButton.onClick())
597
+ "aria-label": $options.linkButton.tooltipMessage,
598
+ onClick: _cache[0] || (_cache[0] = ($event) => $options.linkButton.onClick())
563
599
  }, {
564
- icon: r(() => [
565
- u(p, {
566
- name: o.linkButton.iconName,
600
+ icon: withCtx(() => [
601
+ createVNode(_component_dt_icon, {
602
+ name: $options.linkButton.iconName,
567
603
  size: "200",
568
604
  class: "d-fw-bold"
569
605
  }, null, 8, ["name"])
@@ -575,62 +611,62 @@ function W(t, e, i, s, n, o) {
575
611
  _: 1
576
612
  }, 8, ["message"]))
577
613
  ]),
578
- content: r(() => [
579
- i.showAddLink.setLinkTitle.length > 0 ? (d(), k("span", H, m(i.showAddLink.setLinkTitle), 1)) : I("", !0),
580
- u(C, {
581
- modelValue: n.linkInput,
582
- "onUpdate:modelValue": e[1] || (e[1] = (a) => n.linkInput = a),
583
- "input-aria-label": i.showAddLink.setLinkInputAriaLabel,
614
+ content: withCtx(() => [
615
+ $props.showAddLink.setLinkTitle.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString($props.showAddLink.setLinkTitle), 1)) : createCommentVNode("", true),
616
+ createVNode(_component_dt_input, {
617
+ modelValue: $data.linkInput,
618
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkInput = $event),
619
+ "input-aria-label": $props.showAddLink.setLinkInputAriaLabel,
584
620
  "data-qa": "dt-editor-link-input",
585
- placeholder: i.setLinkPlaceholder,
621
+ placeholder: $props.setLinkPlaceholder,
586
622
  "input-wrapper-class": "d-bgc-black-100 d-mt6 d-bar5 d-ba d-baw1 d-bc-black-300 d-py2 d-ol-none",
587
623
  onClick: [
588
- o.onInputFocus,
589
- y(o.onInputFocus, ["stop"])
624
+ $options.onInputFocus,
625
+ withModifiers($options.onInputFocus, ["stop"])
590
626
  ],
591
- onFocus: o.onInputFocus,
592
- onKeydown: S(o.setLink, ["enter"])
627
+ onFocus: $options.onInputFocus,
628
+ onKeydown: withKeys($options.setLink, ["enter"])
593
629
  }, null, 8, ["modelValue", "input-aria-label", "placeholder", "onClick", "onFocus", "onKeydown"])
594
630
  ]),
595
- footerContent: r(() => [
596
- b("div", X, [
597
- u(c, {
631
+ footerContent: withCtx(() => [
632
+ createElementVNode("div", _hoisted_3, [
633
+ createVNode(_component_dt_button, {
598
634
  class: "d-mx2",
599
- "aria-label": i.removeLinkButton.ariaLabel,
635
+ "aria-label": $props.removeLinkButton.ariaLabel,
600
636
  importance: "clear",
601
637
  kind: "muted",
602
638
  size: "sm",
603
639
  "data-qa": "dt-editor-remove-link-btn",
604
- onClick: o.removeLink
640
+ onClick: $options.removeLink
605
641
  }, {
606
- default: r(() => [
607
- f(m(i.removeLinkButton.label), 1)
642
+ default: withCtx(() => [
643
+ createTextVNode(toDisplayString($props.removeLinkButton.label), 1)
608
644
  ]),
609
645
  _: 1
610
646
  }, 8, ["aria-label", "onClick"]),
611
- u(c, {
647
+ createVNode(_component_dt_button, {
612
648
  class: "d-mx2",
613
- "aria-label": i.cancelSetLinkButton.ariaLabel,
649
+ "aria-label": $props.cancelSetLinkButton.ariaLabel,
614
650
  importance: "clear",
615
651
  kind: "muted",
616
652
  size: "sm",
617
653
  "data-qa": "dt-editor-set-link-cancel-btn",
618
- onClick: o.closeLinkInput
654
+ onClick: $options.closeLinkInput
619
655
  }, {
620
- default: r(() => [
621
- f(m(i.cancelSetLinkButton.label), 1)
656
+ default: withCtx(() => [
657
+ createTextVNode(toDisplayString($props.cancelSetLinkButton.label), 1)
622
658
  ]),
623
659
  _: 1
624
660
  }, 8, ["aria-label", "onClick"]),
625
- u(c, {
661
+ createVNode(_component_dt_button, {
626
662
  class: "d-mx2",
627
663
  size: "sm",
628
- "aria-label": i.confirmSetLinkButton.ariaLabel,
664
+ "aria-label": $props.confirmSetLinkButton.ariaLabel,
629
665
  "data-qa": "dt-editor-set-link-confirm-btn",
630
- onClick: o.setLink
666
+ onClick: $options.setLink
631
667
  }, {
632
- default: r(() => [
633
- f(m(i.confirmSetLinkButton.label), 1)
668
+ default: withCtx(() => [
669
+ createTextVNode(toDisplayString($props.confirmSetLinkButton.label), 1)
634
670
  ]),
635
671
  _: 1
636
672
  }, 8, ["aria-label", "onClick"])
@@ -640,37 +676,37 @@ function W(t, e, i, s, n, o) {
640
676
  }, 8, ["open", "onClick", "onOpened"])
641
677
  ]),
642
678
  _: 1
643
- })) : I("", !0)
679
+ })) : createCommentVNode("", true)
644
680
  ]),
645
681
  _: 1
646
682
  }),
647
- b("div", {
683
+ createElementVNode("div", {
648
684
  class: "d-of-auto d-mx16 d-mt8 d-mb16 d-c-text",
649
- style: v({ "max-height": i.maxHeight })
685
+ style: normalizeStyle({ "max-height": $props.maxHeight })
650
686
  }, [
651
- u(E, F({
687
+ createVNode(_component_dt_rich_text_editor, mergeProps({
652
688
  ref: "richTextEditor",
653
- modelValue: n.internalInputValue,
654
- "onUpdate:modelValue": e[2] || (e[2] = (a) => n.internalInputValue = a),
689
+ modelValue: $data.internalInputValue,
690
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.internalInputValue = $event),
655
691
  "data-qa": "dt-rich-text-editor",
656
- editable: i.editable,
657
- "input-aria-label": i.inputAriaLabel,
658
- "input-class": `d-ml16 d-ol-none d-my6 ${i.inputClass}`,
659
- "output-format": o.htmlOutputFormat,
660
- "auto-focus": i.autoFocus,
661
- placeholder: i.placeholder,
662
- "allow-line-breaks": !0,
663
- link: !1
664
- }, t.$attrs, {
665
- onFocus: o.onFocus,
666
- onBlur: o.onBlur,
667
- onInput: e[3] || (e[3] = (a) => o.onInput(a))
692
+ editable: $props.editable,
693
+ "input-aria-label": $props.inputAriaLabel,
694
+ "input-class": `d-ml16 d-ol-none d-my6 ${$props.inputClass}`,
695
+ "output-format": $options.htmlOutputFormat,
696
+ "auto-focus": $props.autoFocus,
697
+ placeholder: $props.placeholder,
698
+ "allow-line-breaks": true,
699
+ link: false
700
+ }, _ctx.$attrs, {
701
+ onFocus: $options.onFocus,
702
+ onBlur: $options.onBlur,
703
+ onInput: _cache[3] || (_cache[3] = ($event) => $options.onInput($event))
668
704
  }), null, 16, ["modelValue", "editable", "input-aria-label", "input-class", "output-format", "auto-focus", "placeholder", "onFocus", "onBlur"])
669
705
  ], 4)
670
706
  ]);
671
707
  }
672
- const $t = /* @__PURE__ */ R(J, [["render", W]]);
708
+ const editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
673
709
  export {
674
- $t as DtRecipeWysiwygEditor
710
+ editor as DtRecipeWysiwygEditor
675
711
  };
676
712
  //# sourceMappingURL=editor.js.map