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