@dialpad/dialtone-vue 2.127.0 → 2.127.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-vue2_normalizer-1aBeR4AK.js +59 -0
- package/dist/chunks/_plugin-vue2_normalizer-1aBeR4AK.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer-sOSkiPF3.js +60 -0
- package/dist/chunks/_plugin-vue2_normalizer-sOSkiPF3.js.map +1 -0
- package/dist/chunks/{dropdown-SMWaTWyF.js → dropdown-DTtcQEFC.js} +131 -84
- package/dist/chunks/{dropdown-SMWaTWyF.js.map → dropdown-DTtcQEFC.js.map} +1 -1
- package/dist/chunks/dropdown-IaLNHmVd.js +403 -0
- package/dist/chunks/{dropdown-zhMEz3bn.js.map → dropdown-IaLNHmVd.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-eJ-WWRdf.js +442 -0
- package/dist/chunks/{index-2jPosQBn.js.map → index-eJ-WWRdf.js.map} +1 -1
- package/dist/chunks/index-gj1jEXP4.js +441 -0
- package/dist/chunks/{index-nIyl_PL6.js.map → index-gj1jEXP4.js.map} +1 -1
- package/dist/chunks/{input-1tm09l_-.js → input-6kbd8Pju.js} +83 -60
- package/dist/chunks/{input-o-fc1X4b.js.map → input-6kbd8Pju.js.map} +1 -1
- package/dist/chunks/input-Axw-wFj2.js +295 -0
- package/dist/chunks/{input-1tm09l_-.js.map → input-Axw-wFj2.js.map} +1 -1
- package/dist/chunks/input_group-m3cWYUfI.js +143 -0
- package/dist/chunks/{input_group-zcAq3DQl.js.map → input_group-m3cWYUfI.js.map} +1 -1
- package/dist/chunks/{input_group-zcAq3DQl.js → input_group-qVZaS5Bb.js} +27 -24
- package/dist/chunks/{input_group-j2gTtc1C.js.map → input_group-qVZaS5Bb.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-IRUoLX2d.js +196 -0
- package/dist/chunks/{notice_action-u3ZKIhit.js.map → notice_action-IRUoLX2d.js.map} +1 -1
- package/dist/chunks/notice_action-P6uDyE9x.js +195 -0
- package/dist/chunks/{notice_action-9NmtQRai.js.map → notice_action-P6uDyE9x.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-81bHIpPu.js +95 -0
- package/dist/chunks/{sr_only_close_button-ErijKGYR.js.map → sr_only_close_button-81bHIpPu.js.map} +1 -1
- package/dist/chunks/sr_only_close_button-ZaGdAHz7.js +94 -0
- package/dist/chunks/{sr_only_close_button-JGole5Xi.js.map → sr_only_close_button-ZaGdAHz7.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-FcsV5VmK.js +386 -0
- package/dist/chunks/{tab-7hJQSLFx.js.map → tab-FcsV5VmK.js.map} +1 -1
- package/dist/chunks/tab-V4cb44Ry.js +387 -0
- package/dist/chunks/{tab-Qm9LVkYj.js.map → tab-V4cb44Ry.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 +237 -0
- package/dist/{lib → common}/utils.cjs.map +1 -1
- package/dist/common/utils.js +237 -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 +372 -1
- package/dist/dialtone-vue.cjs.map +1 -1
- package/dist/dialtone-vue.js +325 -324
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/attachment-carousel.cjs +260 -1
- package/dist/lib/attachment-carousel.cjs.map +1 -1
- package/dist/lib/attachment-carousel.js +96 -84
- package/dist/lib/attachment-carousel.js.map +1 -1
- package/dist/lib/avatar.cjs +399 -1
- package/dist/lib/avatar.cjs.map +1 -1
- package/dist/lib/avatar.js +111 -79
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/badge.cjs +182 -1
- package/dist/lib/badge.cjs.map +1 -1
- package/dist/lib/badge.js +53 -38
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/banner.cjs +209 -2
- package/dist/lib/banner.cjs.map +1 -1
- package/dist/lib/banner.js +58 -47
- package/dist/lib/banner.js.map +1 -1
- package/dist/lib/breadcrumbs.cjs +146 -1
- package/dist/lib/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs.js +57 -48
- package/dist/lib/breadcrumbs.js.map +1 -1
- package/dist/lib/button-group.cjs +47 -1
- package/dist/lib/button-group.cjs.map +1 -1
- package/dist/lib/button-group.js +21 -18
- package/dist/lib/button-group.js.map +1 -1
- package/dist/lib/button.cjs +349 -1
- package/dist/lib/button.cjs.map +1 -1
- package/dist/lib/button.js +98 -76
- package/dist/lib/button.js.map +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +249 -1
- package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover.js +66 -50
- package/dist/lib/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbar-button.cjs +182 -1
- package/dist/lib/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button.js +42 -34
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/callbox.cjs +146 -1
- package/dist/lib/callbox.cjs.map +1 -1
- package/dist/lib/callbox.js +38 -32
- package/dist/lib/callbox.js.map +1 -1
- package/dist/lib/card.cjs +73 -1
- package/dist/lib/card.cjs.map +1 -1
- package/dist/lib/card.js +22 -20
- package/dist/lib/card.js.map +1 -1
- package/dist/lib/checkbox-group.cjs +129 -1
- package/dist/lib/checkbox-group.cjs.map +1 -1
- package/dist/lib/checkbox-group.js +42 -29
- package/dist/lib/checkbox-group.js.map +1 -1
- package/dist/lib/checkbox.cjs +127 -1
- package/dist/lib/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox.js +46 -35
- package/dist/lib/checkbox.js.map +1 -1
- package/dist/lib/chip.cjs +198 -1
- package/dist/lib/chip.cjs.map +1 -1
- package/dist/lib/chip.js +59 -45
- package/dist/lib/chip.js.map +1 -1
- package/dist/lib/codeblock.cjs +29 -2
- package/dist/lib/codeblock.cjs.map +1 -1
- package/dist/lib/codeblock.js +15 -14
- package/dist/lib/codeblock.js.map +1 -1
- package/dist/lib/collapsible.cjs +334 -1
- package/dist/lib/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible.js +91 -68
- package/dist/lib/collapsible.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +519 -1
- package/dist/lib/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select.js +223 -136
- package/dist/lib/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover.cjs +384 -1
- package/dist/lib/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover.js +130 -86
- 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 +145 -1
- package/dist/lib/contact-info.cjs.map +1 -1
- package/dist/lib/contact-info.js +34 -32
- package/dist/lib/contact-info.js.map +1 -1
- package/dist/lib/contact-row.cjs +205 -1
- package/dist/lib/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row.js +42 -39
- package/dist/lib/contact-row.js.map +1 -1
- package/dist/lib/datepicker.cjs +662 -1
- package/dist/lib/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker.js +330 -218
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/description-list.cjs +114 -1
- package/dist/lib/description-list.cjs.map +1 -1
- package/dist/lib/description-list.js +51 -19
- package/dist/lib/description-list.js.map +1 -1
- package/dist/lib/dropdown.cjs +45 -1
- package/dist/lib/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown.js +27 -25
- package/dist/lib/dropdown.js.map +1 -1
- package/dist/lib/editor.cjs +555 -1
- package/dist/lib/editor.cjs.map +1 -1
- package/dist/lib/editor.js +191 -162
- package/dist/lib/editor.js.map +1 -1
- package/dist/lib/emoji-picker.cjs +1063 -1
- package/dist/lib/emoji-picker.cjs.map +1 -1
- package/dist/lib/emoji-picker.js +638 -374
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +88 -1
- package/dist/lib/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row.js +46 -40
- package/dist/lib/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper.cjs +109 -1
- package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
- package/dist/lib/emoji-text-wrapper.js +49 -35
- package/dist/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/emoji.cjs +145 -1
- package/dist/lib/emoji.cjs.map +1 -1
- package/dist/lib/emoji.js +140 -5
- package/dist/lib/emoji.js.map +1 -1
- package/dist/lib/feed-item-row.cjs +213 -1
- package/dist/lib/feed-item-row.cjs.map +1 -1
- package/dist/lib/feed-item-row.js +71 -63
- package/dist/lib/feed-item-row.js.map +1 -1
- package/dist/lib/feed-pill.cjs +149 -1
- package/dist/lib/feed-pill.cjs.map +1 -1
- package/dist/lib/feed-pill.js +60 -51
- package/dist/lib/feed-pill.js.map +1 -1
- package/dist/lib/general-row.cjs +405 -1
- package/dist/lib/general-row.cjs.map +1 -1
- package/dist/lib/general-row.js +133 -106
- package/dist/lib/general-row.js.map +1 -1
- package/dist/lib/group-row.cjs +117 -1
- package/dist/lib/group-row.cjs.map +1 -1
- package/dist/lib/group-row.js +33 -30
- package/dist/lib/group-row.js.map +1 -1
- package/dist/lib/grouped-chip.cjs +45 -1
- package/dist/lib/grouped-chip.cjs.map +1 -1
- package/dist/lib/grouped-chip.js +28 -26
- package/dist/lib/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard.cjs +227 -1
- package/dist/lib/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard.js +98 -63
- package/dist/lib/hovercard.js.map +1 -1
- package/dist/lib/icon.cjs +59 -1
- package/dist/lib/icon.cjs.map +1 -1
- package/dist/lib/icon.js +22 -20
- package/dist/lib/icon.js.map +1 -1
- package/dist/lib/image-viewer.cjs +190 -1
- package/dist/lib/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer.js +83 -62
- 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 +29 -27
- package/dist/lib/input-group.js.map +1 -1
- package/dist/lib/input.cjs +492 -1
- package/dist/lib/input.cjs.map +1 -1
- package/dist/lib/input.js +127 -89
- package/dist/lib/input.js.map +1 -1
- package/dist/lib/item-layout.cjs +40 -1
- package/dist/lib/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout.js +15 -13
- package/dist/lib/item-layout.js.map +1 -1
- package/dist/lib/ivr-node.cjs +209 -1
- package/dist/lib/ivr-node.cjs.map +1 -1
- package/dist/lib/ivr-node.js +115 -99
- package/dist/lib/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut.cjs +106 -1
- package/dist/lib/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut.js +42 -34
- package/dist/lib/keyboard-shortcut.js.map +1 -1
- package/dist/lib/lazy-show.cjs +80 -1
- package/dist/lib/lazy-show.cjs.map +1 -1
- package/dist/lib/lazy-show.js +20 -16
- package/dist/lib/lazy-show.js.map +1 -1
- package/dist/lib/link.cjs +70 -1
- package/dist/lib/link.cjs.map +1 -1
- package/dist/lib/link.js +22 -20
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/list-item-group.cjs +60 -1
- package/dist/lib/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group.js +19 -17
- package/dist/lib/list-item-group.js.map +1 -1
- package/dist/lib/list-item.cjs +204 -1
- package/dist/lib/list-item.cjs.map +1 -1
- package/dist/lib/list-item.js +67 -56
- package/dist/lib/list-item.js.map +1 -1
- package/dist/lib/message-input.cjs +554 -1
- package/dist/lib/message-input.cjs.map +1 -1
- package/dist/lib/message-input.js +174 -152
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/modal.cjs +350 -2
- package/dist/lib/modal.cjs.map +1 -1
- package/dist/lib/modal.js +118 -90
- package/dist/lib/modal.js.map +1 -1
- package/dist/lib/notice.cjs +159 -1
- package/dist/lib/notice.cjs.map +1 -1
- package/dist/lib/notice.js +46 -43
- package/dist/lib/notice.js.map +1 -1
- package/dist/lib/pagination.cjs +152 -1
- package/dist/lib/pagination.cjs.map +1 -1
- package/dist/lib/pagination.js +60 -48
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/popover.cjs +956 -1
- package/dist/lib/popover.cjs.map +1 -1
- package/dist/lib/popover.js +401 -221
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/presence.cjs +65 -1
- package/dist/lib/presence.cjs.map +1 -1
- package/dist/lib/presence.js +32 -26
- package/dist/lib/presence.js.map +1 -1
- package/dist/lib/radio-group.cjs +98 -1
- package/dist/lib/radio-group.cjs.map +1 -1
- package/dist/lib/radio-group.js +24 -22
- package/dist/lib/radio-group.js.map +1 -1
- package/dist/lib/radio.cjs +118 -1
- package/dist/lib/radio.cjs.map +1 -1
- package/dist/lib/radio.js +43 -35
- package/dist/lib/radio.js.map +1 -1
- package/dist/lib/rich-text-editor.cjs +1138 -1
- package/dist/lib/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor.js +574 -387
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/root-layout.cjs +130 -1
- package/dist/lib/root-layout.cjs.map +1 -1
- package/dist/lib/root-layout.js +28 -24
- package/dist/lib/root-layout.js.map +1 -1
- package/dist/lib/select-menu.cjs +282 -1
- package/dist/lib/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu.js +101 -61
- package/dist/lib/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button.cjs +65 -1
- package/dist/lib/settings-menu-button.cjs.map +1 -1
- package/dist/lib/settings-menu-button.js +26 -24
- package/dist/lib/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton.cjs +612 -1
- package/dist/lib/skeleton.cjs.map +1 -1
- package/dist/lib/skeleton.js +174 -135
- package/dist/lib/skeleton.js.map +1 -1
- package/dist/lib/stack.cjs +127 -1
- package/dist/lib/stack.cjs.map +1 -1
- package/dist/lib/stack.js +66 -56
- package/dist/lib/stack.js.map +1 -1
- package/dist/lib/tabs.cjs +99 -1
- package/dist/lib/tabs.cjs.map +1 -1
- package/dist/lib/tabs.js +42 -35
- package/dist/lib/tabs.js.map +1 -1
- package/dist/lib/time-pill.cjs +47 -1
- package/dist/lib/time-pill.cjs.map +1 -1
- package/dist/lib/time-pill.js +21 -16
- package/dist/lib/time-pill.js.map +1 -1
- package/dist/lib/toast.cjs +247 -1
- package/dist/lib/toast.cjs.map +1 -1
- package/dist/lib/toast.js +78 -55
- package/dist/lib/toast.js.map +1 -1
- package/dist/lib/toggle.cjs +177 -1
- package/dist/lib/toggle.cjs.map +1 -1
- package/dist/lib/toggle.js +46 -37
- package/dist/lib/toggle.js.map +1 -1
- package/dist/lib/tooltip-directive.cjs +87 -1
- package/dist/lib/tooltip-directive.cjs.map +1 -1
- package/dist/lib/tooltip-directive.js +55 -41
- package/dist/lib/tooltip-directive.js.map +1 -1
- package/dist/lib/tooltip.cjs +436 -1
- package/dist/lib/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip.js +152 -90
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info.cjs +63 -1
- package/dist/lib/top-banner-info.cjs.map +1 -1
- package/dist/lib/top-banner-info.js +22 -18
- package/dist/lib/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill.cjs +63 -1
- package/dist/lib/unread-pill.cjs.map +1 -1
- package/dist/lib/unread-pill.js +25 -21
- package/dist/lib/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages.cjs +85 -1
- package/dist/lib/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages.js +32 -29
- package/dist/lib/validation-messages.js.map +1 -1
- package/dist/style.css +1214 -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 +31 -30
- package/dist/chunks/_plugin-vue2_normalizer-ZK80B3OL.js +0 -2
- package/dist/chunks/_plugin-vue2_normalizer-ZK80B3OL.js.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js +0 -33
- package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js.map +0 -1
- package/dist/chunks/dropdown-zhMEz3bn.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-2jPosQBn.js +0 -3
- package/dist/chunks/index-YkSDT8-g.js +0 -244
- package/dist/chunks/index-YkSDT8-g.js.map +0 -1
- package/dist/chunks/index-nIyl_PL6.js +0 -372
- package/dist/chunks/index-sdfB7Aok.js +0 -2
- package/dist/chunks/index-sdfB7Aok.js.map +0 -1
- package/dist/chunks/input-o-fc1X4b.js +0 -2
- package/dist/chunks/input_group-j2gTtc1C.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-9NmtQRai.js +0 -182
- package/dist/chunks/notice_action-u3ZKIhit.js +0 -2
- 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-ErijKGYR.js +0 -3
- package/dist/chunks/sr_only_close_button-JGole5Xi.js +0 -86
- package/dist/chunks/stack_constants-m9Ickqw0.js +0 -2
- package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
- package/dist/chunks/tab-7hJQSLFx.js +0 -2
- package/dist/chunks/tab-Qm9LVkYj.js +0 -346
- 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 -175
- package/dist/lib/validators.cjs +0 -2
- package/dist/lib/validators.js +0 -12
- /package/dist/{lib → common}/mixins.js.map +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DtButton
|
|
3
|
-
import { DtEmojiPicker
|
|
4
|
-
import { DtIcon
|
|
5
|
-
import { DtInput
|
|
6
|
-
import { DtPopover
|
|
7
|
-
import { DtRichTextEditor
|
|
8
|
-
import { DtTooltip
|
|
1
|
+
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
2
|
+
import { DtButton } from "./button.js";
|
|
3
|
+
import { DtEmojiPicker } from "./emoji-picker.js";
|
|
4
|
+
import { DtIcon } from "./icon.js";
|
|
5
|
+
import { DtInput } from "./input.js";
|
|
6
|
+
import { DtPopover } from "./popover.js";
|
|
7
|
+
import { DtRichTextEditor, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES, RICH_TEXT_EDITOR_OUTPUT_FORMATS } from "./rich-text-editor.js";
|
|
8
|
+
import { DtTooltip } from "./tooltip.js";
|
|
9
9
|
import "vue";
|
|
10
|
-
import "../chunks/link_constants-
|
|
11
|
-
import "../chunks/tab-
|
|
10
|
+
import "../chunks/link_constants-nWVlXQBs.js";
|
|
11
|
+
import "../chunks/tab-V4cb44Ry.js";
|
|
12
12
|
import "@dialpad/dialtone-emojis";
|
|
13
13
|
import "@dialpad/dialtone-icons/vue2";
|
|
14
|
-
import "../chunks/icon_constants-
|
|
14
|
+
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
15
15
|
import "@dialpad/dialtone-icons/icons.json";
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "../chunks/input-
|
|
19
|
-
import "
|
|
16
|
+
import "../common/constants.js";
|
|
17
|
+
import "../common/utils.js";
|
|
18
|
+
import "../chunks/input-6kbd8Pju.js";
|
|
19
|
+
import "../common/validators.js";
|
|
20
20
|
import "./validation-messages.js";
|
|
21
|
-
import "../chunks/popover_constants-
|
|
21
|
+
import "../chunks/popover_constants-Qkpb0yh2.js";
|
|
22
22
|
import "tippy.js";
|
|
23
23
|
import "./lazy-show.js";
|
|
24
24
|
import "@linusborg/vue-simple-portal";
|
|
25
|
-
import "../chunks/modal-
|
|
26
|
-
import "../chunks/sr_only_close_button-
|
|
25
|
+
import "../chunks/modal-XOr4kiNZ.js";
|
|
26
|
+
import "../chunks/sr_only_close_button-81bHIpPu.js";
|
|
27
27
|
import "@tiptap/vue-2";
|
|
28
28
|
import "@tiptap/extension-blockquote";
|
|
29
29
|
import "@tiptap/extension-code-block";
|
|
@@ -42,34 +42,35 @@ import "@tiptap/extension-underline";
|
|
|
42
42
|
import "@tiptap/extension-text";
|
|
43
43
|
import "@tiptap/extension-text-align";
|
|
44
44
|
import "@tiptap/core";
|
|
45
|
-
import "
|
|
45
|
+
import "./emoji.js";
|
|
46
|
+
import "../common/emoji.js";
|
|
46
47
|
import "emoji-regex";
|
|
47
48
|
import "emoji-toolkit/emoji_strategy.json";
|
|
48
49
|
import "./skeleton.js";
|
|
49
50
|
import "@tiptap/pm/state";
|
|
50
51
|
import "@tiptap/suggestion";
|
|
51
52
|
import "./list-item.js";
|
|
52
|
-
import "../chunks/list_item_constants-
|
|
53
|
+
import "../chunks/list_item_constants-u1xcN9Dd.js";
|
|
53
54
|
import "./item-layout.js";
|
|
54
55
|
import "./stack.js";
|
|
55
|
-
import "../chunks/stack_constants-
|
|
56
|
+
import "../chunks/stack_constants-HraCekPm.js";
|
|
56
57
|
import "@tiptap/extension-mention";
|
|
57
58
|
import "./link.js";
|
|
58
59
|
import "./avatar.js";
|
|
59
60
|
import "./presence.js";
|
|
60
|
-
const
|
|
61
|
+
const _sfc_main = {
|
|
61
62
|
name: "DtRecipeMessageInput",
|
|
62
63
|
components: {
|
|
63
|
-
DtButton
|
|
64
|
-
DtEmojiPicker
|
|
65
|
-
DtIcon
|
|
66
|
-
DtInput
|
|
67
|
-
DtPopover
|
|
68
|
-
DtRichTextEditor
|
|
69
|
-
DtTooltip
|
|
64
|
+
DtButton,
|
|
65
|
+
DtEmojiPicker,
|
|
66
|
+
DtIcon,
|
|
67
|
+
DtInput,
|
|
68
|
+
DtPopover,
|
|
69
|
+
DtRichTextEditor,
|
|
70
|
+
DtTooltip
|
|
70
71
|
},
|
|
71
72
|
mixins: [],
|
|
72
|
-
inheritAttrs:
|
|
73
|
+
inheritAttrs: false,
|
|
73
74
|
props: {
|
|
74
75
|
/**
|
|
75
76
|
* Value of the input. The object format should match TipTap's JSON
|
|
@@ -84,14 +85,14 @@ const h = {
|
|
|
84
85
|
*/
|
|
85
86
|
editable: {
|
|
86
87
|
type: Boolean,
|
|
87
|
-
default:
|
|
88
|
+
default: true
|
|
88
89
|
},
|
|
89
90
|
/**
|
|
90
91
|
* Descriptive label for the input element
|
|
91
92
|
*/
|
|
92
93
|
inputAriaLabel: {
|
|
93
94
|
type: String,
|
|
94
|
-
required:
|
|
95
|
+
required: true,
|
|
95
96
|
default: ""
|
|
96
97
|
},
|
|
97
98
|
/**
|
|
@@ -116,9 +117,12 @@ const h = {
|
|
|
116
117
|
*/
|
|
117
118
|
autoFocus: {
|
|
118
119
|
type: [Boolean, String, Number],
|
|
119
|
-
default:
|
|
120
|
-
validator(
|
|
121
|
-
|
|
120
|
+
default: false,
|
|
121
|
+
validator(autoFocus) {
|
|
122
|
+
if (typeof autoFocus === "string") {
|
|
123
|
+
return RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(autoFocus);
|
|
124
|
+
}
|
|
125
|
+
return true;
|
|
122
126
|
}
|
|
123
127
|
},
|
|
124
128
|
/**
|
|
@@ -130,8 +134,8 @@ const h = {
|
|
|
130
134
|
outputFormat: {
|
|
131
135
|
type: String,
|
|
132
136
|
default: "text",
|
|
133
|
-
validator(
|
|
134
|
-
return
|
|
137
|
+
validator(outputFormat) {
|
|
138
|
+
return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);
|
|
135
139
|
}
|
|
136
140
|
},
|
|
137
141
|
/**
|
|
@@ -139,7 +143,7 @@ const h = {
|
|
|
139
143
|
*/
|
|
140
144
|
link: {
|
|
141
145
|
type: [Boolean, Object],
|
|
142
|
-
default:
|
|
146
|
+
default: false
|
|
143
147
|
},
|
|
144
148
|
/**
|
|
145
149
|
* Placeholder text
|
|
@@ -153,7 +157,7 @@ const h = {
|
|
|
153
157
|
*/
|
|
154
158
|
disableSend: {
|
|
155
159
|
type: Boolean,
|
|
156
|
-
default:
|
|
160
|
+
default: false
|
|
157
161
|
},
|
|
158
162
|
/**
|
|
159
163
|
* Content area needs to dynamically adjust height based on the conversation area height.
|
|
@@ -166,7 +170,7 @@ const h = {
|
|
|
166
170
|
// Emoji picker props
|
|
167
171
|
showEmojiPicker: {
|
|
168
172
|
type: Boolean,
|
|
169
|
-
default:
|
|
173
|
+
default: true
|
|
170
174
|
},
|
|
171
175
|
/**
|
|
172
176
|
* Props to pass into the emoji picker.
|
|
@@ -174,14 +178,14 @@ const h = {
|
|
|
174
178
|
emojiPickerProps: {
|
|
175
179
|
type: Object,
|
|
176
180
|
default: () => ({}),
|
|
177
|
-
validate(
|
|
181
|
+
validate(emojiPickerProps) {
|
|
178
182
|
return [
|
|
179
183
|
"searchNoResultsLabel",
|
|
180
184
|
"searchResultsLabel",
|
|
181
185
|
"searchPlaceholderLabel",
|
|
182
186
|
"skinSelectorButtonTooltipLabel",
|
|
183
187
|
"tabSetLabels"
|
|
184
|
-
].every((
|
|
188
|
+
].every((prop) => emojiPickerProps[prop] != null);
|
|
185
189
|
}
|
|
186
190
|
},
|
|
187
191
|
/**
|
|
@@ -244,42 +248,42 @@ const h = {
|
|
|
244
248
|
*/
|
|
245
249
|
allowBlockquote: {
|
|
246
250
|
type: Boolean,
|
|
247
|
-
default:
|
|
251
|
+
default: true
|
|
248
252
|
},
|
|
249
253
|
/**
|
|
250
254
|
* Whether the input allows for bold to be introduced in the text.
|
|
251
255
|
*/
|
|
252
256
|
allowBold: {
|
|
253
257
|
type: Boolean,
|
|
254
|
-
default:
|
|
258
|
+
default: true
|
|
255
259
|
},
|
|
256
260
|
/**
|
|
257
261
|
* Whether the input allows for bullet list to be introduced in the text.
|
|
258
262
|
*/
|
|
259
263
|
allowBulletList: {
|
|
260
264
|
type: Boolean,
|
|
261
|
-
default:
|
|
265
|
+
default: true
|
|
262
266
|
},
|
|
263
267
|
/**
|
|
264
268
|
* Whether the input allows for italic to be introduced in the text.
|
|
265
269
|
*/
|
|
266
270
|
allowItalic: {
|
|
267
271
|
type: Boolean,
|
|
268
|
-
default:
|
|
272
|
+
default: true
|
|
269
273
|
},
|
|
270
274
|
/**
|
|
271
275
|
* Whether the input allows for strike to be introduced in the text.
|
|
272
276
|
*/
|
|
273
277
|
allowStrike: {
|
|
274
278
|
type: Boolean,
|
|
275
|
-
default:
|
|
279
|
+
default: true
|
|
276
280
|
},
|
|
277
281
|
/**
|
|
278
282
|
* Whether the input allows for underline to be introduced in the text.
|
|
279
283
|
*/
|
|
280
284
|
allowUnderline: {
|
|
281
285
|
type: Boolean,
|
|
282
|
-
default:
|
|
286
|
+
default: true
|
|
283
287
|
}
|
|
284
288
|
},
|
|
285
289
|
emits: [
|
|
@@ -355,11 +359,11 @@ const h = {
|
|
|
355
359
|
return {
|
|
356
360
|
internalInputValue: this.value,
|
|
357
361
|
// internal input content
|
|
358
|
-
hasFocus:
|
|
359
|
-
imagePickerFocus:
|
|
360
|
-
emojiPickerFocus:
|
|
361
|
-
sendButtonFocus:
|
|
362
|
-
emojiPickerOpened:
|
|
362
|
+
hasFocus: false,
|
|
363
|
+
imagePickerFocus: false,
|
|
364
|
+
emojiPickerFocus: false,
|
|
365
|
+
sendButtonFocus: false,
|
|
366
|
+
emojiPickerOpened: false
|
|
363
367
|
};
|
|
364
368
|
},
|
|
365
369
|
computed: {
|
|
@@ -367,7 +371,7 @@ const h = {
|
|
|
367
371
|
return this.internalInputValue.length;
|
|
368
372
|
},
|
|
369
373
|
displayCharacterLimitWarning() {
|
|
370
|
-
return
|
|
374
|
+
return Boolean(this.showCharacterLimit) && this.showCharacterLimit.count - this.inputLength <= this.showCharacterLimit.warning;
|
|
371
375
|
},
|
|
372
376
|
characterLimitTooltipEnabled() {
|
|
373
377
|
return this.showCharacterLimit.message && this.showCharacterLimit.count - this.inputLength < 0;
|
|
@@ -385,40 +389,46 @@ const h = {
|
|
|
385
389
|
}
|
|
386
390
|
},
|
|
387
391
|
watch: {
|
|
388
|
-
value(
|
|
389
|
-
this.internalInputValue =
|
|
392
|
+
value(newValue) {
|
|
393
|
+
this.internalInputValue = newValue;
|
|
390
394
|
}
|
|
391
395
|
},
|
|
392
396
|
methods: {
|
|
393
|
-
onDrag(
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
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);
|
|
406
414
|
}
|
|
407
415
|
},
|
|
408
|
-
onSkinTone(
|
|
409
|
-
this.$emit("skin-tone",
|
|
416
|
+
onSkinTone(skinTone) {
|
|
417
|
+
this.$emit("skin-tone", skinTone);
|
|
410
418
|
},
|
|
411
|
-
onSelectEmoji(
|
|
412
|
-
if (!
|
|
413
|
-
this.emojiPickerOpened =
|
|
419
|
+
onSelectEmoji(emoji) {
|
|
420
|
+
if (!emoji) {
|
|
421
|
+
this.emojiPickerOpened = false;
|
|
414
422
|
return;
|
|
415
423
|
}
|
|
416
424
|
this.$refs.richTextEditor.editor.commands.insertContent({
|
|
417
425
|
type: "emoji",
|
|
418
426
|
attrs: {
|
|
419
|
-
code:
|
|
427
|
+
code: emoji.shortname
|
|
420
428
|
}
|
|
421
|
-
})
|
|
429
|
+
});
|
|
430
|
+
this.emojiPickerOpened = false;
|
|
431
|
+
this.$emit("selected-emoji", emoji);
|
|
422
432
|
},
|
|
423
433
|
onSelectImage() {
|
|
424
434
|
this.$refs.messageInputImageUpload.$refs.input.click();
|
|
@@ -430,104 +440,116 @@ const h = {
|
|
|
430
440
|
this.emojiPickerOpened = !this.emojiPickerOpened;
|
|
431
441
|
},
|
|
432
442
|
onSend() {
|
|
433
|
-
|
|
443
|
+
if (this.isSendDisabled) {
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
this.$emit("submit", this.internalInputValue);
|
|
434
447
|
},
|
|
435
448
|
onCancel() {
|
|
436
449
|
this.$emit("cancel");
|
|
437
450
|
},
|
|
438
|
-
onFocus(
|
|
439
|
-
var
|
|
440
|
-
this.hasFocus =
|
|
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);
|
|
441
456
|
},
|
|
442
|
-
onBlur(
|
|
443
|
-
this.hasFocus =
|
|
457
|
+
onBlur(event) {
|
|
458
|
+
this.hasFocus = false;
|
|
459
|
+
this.$emit("blur", event);
|
|
444
460
|
},
|
|
445
|
-
onInput(
|
|
446
|
-
this.$emit("input",
|
|
461
|
+
onInput(event) {
|
|
462
|
+
this.$emit("input", event);
|
|
447
463
|
}
|
|
448
464
|
}
|
|
449
465
|
};
|
|
450
|
-
var
|
|
451
|
-
var
|
|
452
|
-
return
|
|
466
|
+
var _sfc_render = function render() {
|
|
467
|
+
var _vm = this, _c = _vm._self._c;
|
|
468
|
+
return _c("div", { class: [
|
|
453
469
|
"d-d-flex",
|
|
454
470
|
"d-fd-column",
|
|
455
471
|
"d-bar8",
|
|
456
472
|
"d-baw1",
|
|
457
473
|
"d-ba",
|
|
458
474
|
"d-c-text",
|
|
459
|
-
{ "d-bc-bold d-bs-sm":
|
|
460
|
-
], attrs: { "data-qa": "dt-message-input", role: "presentation" }, on: { click: function(
|
|
461
|
-
var
|
|
462
|
-
(
|
|
463
|
-
}, "drag-enter":
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
return
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
},
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}, proxy:
|
|
502
|
-
return [
|
|
475
|
+
{ "d-bc-bold d-bs-sm": _vm.hasFocus, "d-bc-default": !_vm.hasFocus }
|
|
476
|
+
], attrs: { "data-qa": "dt-message-input", "role": "presentation" }, on: { "click": function($event) {
|
|
477
|
+
var _a;
|
|
478
|
+
(_a = _vm.$refs.richTextEditor) == null ? void 0 : _a.focusEditor();
|
|
479
|
+
}, "drag-enter": _vm.onDrag, "drag-over": _vm.onDrag, "drop": _vm.onDrop, "keydown": function($event) {
|
|
480
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter"))
|
|
481
|
+
return null;
|
|
482
|
+
if ($event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey)
|
|
483
|
+
return null;
|
|
484
|
+
return _vm.onSend.apply(null, arguments);
|
|
485
|
+
}, "paste": _vm.onPaste } }, [_c("div", { staticClass: "d-of-auto d-mx16 d-mt8 d-mb4", style: { "max-height": _vm.maxHeight } }, [_c("dt-rich-text-editor", _vm._b({ ref: "richTextEditor", attrs: { "editable": _vm.editable, "input-aria-label": _vm.inputAriaLabel, "input-class": _vm.inputClass, "output-format": _vm.outputFormat, "auto-focus": _vm.autoFocus, "link": _vm.link, "placeholder": _vm.placeholder, "mention-suggestion": _vm.mentionSuggestion, "allow-blockquote": _vm.allowBlockquote, "allow-bold": _vm.allowBold, "allow-bullet-list": _vm.allowBulletList, "allow-italic": _vm.allowItalic, "allow-strike": _vm.allowStrike, "allow-underline": _vm.allowUnderline }, on: { "focus": _vm.onFocus, "blur": _vm.onBlur, "input": function($event) {
|
|
486
|
+
return _vm.onInput($event);
|
|
487
|
+
} }, model: { value: _vm.internalInputValue, callback: function($$v) {
|
|
488
|
+
_vm.internalInputValue = $$v;
|
|
489
|
+
}, expression: "internalInputValue" } }, "dt-rich-text-editor", _vm.$attrs, false))], 1), _vm._t("middle"), _c("section", { staticClass: "d-d-flex d-jc-space-between d-mx8 d-my4" }, [_c("div", { staticClass: "d-d-flex" }, [_vm.showImagePicker ? _c("dt-tooltip", { attrs: { "placement": "top-start", "message": _vm.showImagePicker.tooltipLabel, "offset": [-4, -4] }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
|
|
490
|
+
return [_c("dt-button", { attrs: { "data-qa": "dt-message-input-image-btn", "size": "sm", "circle": "", "kind": _vm.imagePickerFocus ? "default" : "muted", "importance": "clear", "aria-label": _vm.showImagePicker.ariaLabel }, on: { "click": _vm.onSelectImage, "mouseenter": function($event) {
|
|
491
|
+
_vm.imagePickerFocus = true;
|
|
492
|
+
}, "mouseleave": function($event) {
|
|
493
|
+
_vm.imagePickerFocus = false;
|
|
494
|
+
}, "focus": function($event) {
|
|
495
|
+
_vm.imagePickerFocus = true;
|
|
496
|
+
}, "blur": function($event) {
|
|
497
|
+
_vm.imagePickerFocus = false;
|
|
498
|
+
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
499
|
+
return [_c("dt-icon", { attrs: { "name": "image", "size": "300" } })];
|
|
500
|
+
}, proxy: true }], null, false, 2561380377) }), _c("dt-input", { ref: "messageInputImageUpload", staticClass: "d-ps-absolute", attrs: { "data-qa": "dt-message-input-image-input", "type": "file", "multiple": "", "hidden": "" }, on: { "input": _vm.onImageUpload } })];
|
|
501
|
+
}, proxy: true }], null, false, 3687934814) }) : _vm._e(), _vm.showEmojiPicker ? _c("dt-popover", { attrs: { "data-qa": "dt-message-input-emoji-picker-popover", "open": _vm.emojiPickerOpened, "initial-focus-element": "#searchInput", "padding": "none" }, on: { "opened": (open) => {
|
|
502
|
+
_vm.emojiPickerOpened = open;
|
|
503
|
+
} }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
|
|
504
|
+
return [_c("dt-tooltip", { attrs: { "message": _vm.emojiTooltipMessage, "offset": [0, -4] }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
|
|
505
|
+
return [_c("dt-button", { attrs: { "data-qa": "dt-message-input-emoji-picker-btn", "size": "sm", "circle": "", "kind": _vm.emojiPickerHovered ? "default" : "muted", "importance": "clear", "aria-label": _vm.emojiButtonAriaLabel, "offset": [0, 0] }, on: { "click": _vm.toggleEmojiPicker, "mouseenter": function($event) {
|
|
506
|
+
_vm.emojiPickerFocus = true;
|
|
507
|
+
}, "mouseleave": function($event) {
|
|
508
|
+
_vm.emojiPickerFocus = false;
|
|
509
|
+
}, "focus": function($event) {
|
|
510
|
+
_vm.emojiPickerFocus = true;
|
|
511
|
+
}, "blur": function($event) {
|
|
512
|
+
_vm.emojiPickerFocus = false;
|
|
513
|
+
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
514
|
+
return [_c("dt-icon", { attrs: { "name": !_vm.emojiPickerHovered ? "satisfied" : "very-satisfied", "size": "300" } })];
|
|
515
|
+
}, proxy: true }], null, false, 352772906) })];
|
|
516
|
+
}, proxy: true }], null, false, 3933528398) })];
|
|
517
|
+
}, proxy: true }, { key: "content", fn: function() {
|
|
518
|
+
return [_c("dt-emoji-picker", _vm._b({ on: { "skin-tone": _vm.onSkinTone, "selected-emoji": _vm.onSelectEmoji } }, "dt-emoji-picker", _vm.emojiPickerProps, false))];
|
|
519
|
+
}, proxy: true }], null, false, 1278205067) }) : _vm._e()], 1), _c("div", { staticClass: "d-d-flex" }, [Boolean(_vm.showCharacterLimit) ? _c("dt-tooltip", { staticClass: "dt-message-input--remaining-char-tooltip", attrs: { "placement": "top-end", "enabled": _vm.characterLimitTooltipEnabled, "message": _vm.showCharacterLimit.message, "offset": [10, -8] }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
|
|
520
|
+
return [_c("p", { directives: [{ name: "show", rawName: "v-show", value: _vm.displayCharacterLimitWarning, expression: "displayCharacterLimitWarning" }], staticClass: "d-fc-error d-mr16 dt-message-input--remaining-char", attrs: { "data-qa": "dt-message-input-character-limit" } }, [_vm._v(" " + _vm._s(_vm.showCharacterLimit.count - _vm.inputLength) + " ")])];
|
|
521
|
+
}, proxy: true }], null, false, 2591914334) }) : _vm._e(), _vm.showCancel ? _c("dt-button", { staticClass: "dt-message-input--cancel-button", attrs: { "data-qa": "dt-message-input-cancel-button", "size": "sm", "kind": "muted", "importance": "clear", "aria-label": _vm.showCancel.ariaLabel }, on: { "click": _vm.onCancel } }, [_c("p", [_vm._v(_vm._s(_vm.showCancel.text))])]) : _vm._e(), _vm.showSend ? _c("dt-tooltip", { attrs: { "placement": "top-end", "enabled": !_vm.showSend, "message": _vm.showSend.tooltipLabel, "show": !_vm.isSendDisabled && _vm.sendButtonFocus, "offset": [6, -8] }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
|
|
522
|
+
return [_c("dt-button", { class: [
|
|
503
523
|
{
|
|
504
|
-
"message-input-button__disabled d-fc-muted":
|
|
505
|
-
"d-btn--circle":
|
|
524
|
+
"message-input-button__disabled d-fc-muted": _vm.isSendDisabled,
|
|
525
|
+
"d-btn--circle": _vm.showSend.icon
|
|
506
526
|
}
|
|
507
|
-
], attrs: { "data-qa": "dt-message-input-send-btn", size: "sm", kind: "default", importance: "primary", "aria-label":
|
|
508
|
-
|
|
509
|
-
}, mouseleave: function(
|
|
510
|
-
|
|
511
|
-
}, focus: function(
|
|
512
|
-
|
|
513
|
-
}, blur: function(
|
|
514
|
-
|
|
515
|
-
} }, scopedSlots:
|
|
516
|
-
return [
|
|
517
|
-
}, proxy:
|
|
518
|
-
}, proxy:
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
527
|
+
], attrs: { "data-qa": "dt-message-input-send-btn", "size": "sm", "kind": "default", "importance": "primary", "aria-label": _vm.showSend.ariaLabel, "aria-disabled": _vm.isSendDisabled }, on: { "click": _vm.onSend, "mouseenter": function($event) {
|
|
528
|
+
_vm.sendButtonFocus = true;
|
|
529
|
+
}, "mouseleave": function($event) {
|
|
530
|
+
_vm.sendButtonFocus = false;
|
|
531
|
+
}, "focus": function($event) {
|
|
532
|
+
_vm.sendButtonFocus = true;
|
|
533
|
+
}, "blur": function($event) {
|
|
534
|
+
_vm.sendButtonFocus = false;
|
|
535
|
+
} }, scopedSlots: _vm._u([_vm.showSend.icon ? { key: "icon", fn: function() {
|
|
536
|
+
return [_c("dt-icon", { attrs: { "name": _vm.showSend.icon, "size": "300" } })];
|
|
537
|
+
}, proxy: true } : null], null, true) }, [_vm.showSend.text ? [_c("p", [_vm._v(_vm._s(_vm.showSend.text))])] : _vm._e()], 2)];
|
|
538
|
+
}, proxy: true }], null, false, 2570122596) }) : _vm._e()], 1)])], 2);
|
|
539
|
+
};
|
|
540
|
+
var _sfc_staticRenderFns = [];
|
|
541
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
542
|
+
_sfc_main,
|
|
543
|
+
_sfc_render,
|
|
544
|
+
_sfc_staticRenderFns,
|
|
545
|
+
false,
|
|
524
546
|
null,
|
|
525
547
|
null,
|
|
526
548
|
null,
|
|
527
549
|
null
|
|
528
550
|
);
|
|
529
|
-
const
|
|
551
|
+
const message_input = __component__.exports;
|
|
530
552
|
export {
|
|
531
|
-
|
|
553
|
+
message_input as DtRecipeMessageInput
|
|
532
554
|
};
|
|
533
555
|
//# sourceMappingURL=message-input.js.map
|