@dialpad/dialtone 9.124.0 → 9.125.0
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/README.md +9 -2
- package/dist/tokens/doc.json +24416 -24416
- package/dist/vue2/common/mixins/index.cjs +1 -1
- package/dist/vue2/common/mixins/index.js +10 -10
- package/dist/vue2/common/mixins/localization.cjs +2 -0
- package/dist/vue2/common/mixins/localization.cjs.map +1 -0
- package/dist/vue2/common/mixins/localization.js +10 -0
- package/dist/vue2/common/mixins/localization.js.map +1 -0
- package/dist/vue2/common/utils/index.cjs +1 -1
- package/dist/vue2/common/utils/index.cjs.map +1 -1
- package/dist/vue2/common/utils/index.js +43 -39
- package/dist/vue2/common/utils/index.js.map +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +341 -340
- package/dist/vue2/dialtone-vue.js.map +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +61 -86
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
- package/dist/vue2/lib/banner/banner.cjs +2 -2
- package/dist/vue2/lib/banner/banner.cjs.map +1 -1
- package/dist/vue2/lib/banner/banner.js +25 -33
- package/dist/vue2/lib/banner/banner.js.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +14 -12
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/vue2/lib/button/button.cjs +1 -1
- package/dist/vue2/lib/button/button.cjs.map +1 -1
- package/dist/vue2/lib/button/button.js +11 -9
- package/dist/vue2/lib/button/button.js.map +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +19 -25
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +18 -21
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/vue2/lib/chip/chip.cjs +1 -1
- package/dist/vue2/lib/chip/chip.cjs.map +1 -1
- package/dist/vue2/lib/chip/chip.js +24 -29
- package/dist/vue2/lib/chip/chip.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.cjs +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.js +2 -2
- package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox.cjs +2 -2
- package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox.js +12 -12
- package/dist/vue2/lib/combobox/combobox.js.map +1 -1
- package/dist/vue2/lib/combobox/index.cjs +1 -1
- package/dist/vue2/lib/combobox/index.js +3 -3
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +16 -18
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +22 -24
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +40 -36
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.js +11 -25
- package/dist/vue2/lib/contact-row/contact-row.js.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.cjs +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.js +2 -3
- package/dist/vue2/lib/datepicker/datepicker-constants.js.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
- package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker.js +143 -229
- package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
- package/dist/vue2/lib/datepicker/utils.cjs +1 -1
- package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/utils.js +12 -11
- package/dist/vue2/lib/datepicker/utils.js.map +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
- package/dist/vue2/lib/description-list/description-list.js +8 -8
- package/dist/vue2/lib/description-list/description-list.js.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.js +48 -50
- package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
- package/dist/vue2/lib/editor/editor.cjs +1 -1
- package/dist/vue2/lib/editor/editor.cjs.map +1 -1
- package/dist/vue2/lib/editor/editor.js +78 -87
- package/dist/vue2/lib/editor/editor.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js +6 -19
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.js +106 -145
- package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/index.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/index.js +6 -7
- package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row-constants.js +5 -7
- package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.js +31 -22
- package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +20 -22
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
- package/dist/vue2/lib/general-row/general-row.js +63 -52
- package/dist/vue2/lib/general-row/general-row.js.map +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
- package/dist/vue2/lib/group-row/group-row.js +43 -32
- package/dist/vue2/lib/group-row/group-row.js.map +1 -1
- package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
- package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
- package/dist/vue2/lib/icon/icon.cjs +1 -1
- package/dist/vue2/lib/icon/icon.cjs.map +1 -1
- package/dist/vue2/lib/icon/icon.js +12 -8
- package/dist/vue2/lib/icon/icon.js.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.js +30 -31
- package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.js +24 -24
- package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.js +38 -36
- package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input-link.js +48 -23
- package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.js +50 -22
- package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input.js +112 -143
- package/dist/vue2/lib/message-input/message-input.js.map +1 -1
- package/dist/vue2/lib/modal/modal.cjs +1 -2
- package/dist/vue2/lib/modal/modal.cjs.map +1 -1
- package/dist/vue2/lib/modal/modal.js +25 -42
- package/dist/vue2/lib/modal/modal.js.map +1 -1
- package/dist/vue2/lib/notice/notice-action.cjs +1 -1
- package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
- package/dist/vue2/lib/notice/notice-action.js +19 -26
- package/dist/vue2/lib/notice/notice-action.js.map +1 -1
- package/dist/vue2/lib/notice/notice.cjs +1 -1
- package/dist/vue2/lib/notice/notice.cjs.map +1 -1
- package/dist/vue2/lib/notice/notice.js +18 -27
- package/dist/vue2/lib/notice/notice.js.map +1 -1
- package/dist/vue2/lib/pagination/pagination.cjs +1 -1
- package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
- package/dist/vue2/lib/pagination/pagination.js +49 -58
- package/dist/vue2/lib/pagination/pagination.js.map +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.js +24 -26
- package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
- package/dist/vue2/lib/popover/popover.cjs +1 -1
- package/dist/vue2/lib/popover/popover.cjs.map +1 -1
- package/dist/vue2/lib/popover/popover.js +26 -35
- package/dist/vue2/lib/popover/popover.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +5 -5
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +330 -320
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.cjs.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.js.map +1 -1
- package/dist/vue2/lib/toast/toast.cjs +1 -1
- package/dist/vue2/lib/toast/toast.cjs.map +1 -1
- package/dist/vue2/lib/toast/toast.js +64 -97
- package/dist/vue2/lib/toast/toast.js.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.js +27 -18
- package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/vue2/localization/en-US.cjs +185 -0
- package/dist/vue2/localization/en-US.cjs.map +1 -0
- package/dist/vue2/localization/en-US.js +188 -0
- package/dist/vue2/localization/en-US.js.map +1 -0
- package/dist/vue2/localization/es-LA.cjs +169 -0
- package/dist/vue2/localization/es-LA.cjs.map +1 -0
- package/dist/vue2/localization/es-LA.js +172 -0
- package/dist/vue2/localization/es-LA.js.map +1 -0
- package/dist/vue2/localization/index.cjs +1176 -0
- package/dist/vue2/localization/index.cjs.map +1 -0
- package/dist/vue2/localization/index.js +1239 -0
- package/dist/vue2/localization/index.js.map +1 -0
- package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
- package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
- package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
- package/dist/vue2/shared/sr_only_close_button.js +19 -22
- package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
- package/dist/vue2/types/common/mixins/index.d.ts +1 -1
- package/dist/vue2/types/common/mixins/localization.d.ts +8 -0
- package/dist/vue2/types/common/mixins/localization.d.ts.map +1 -0
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +7 -13
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/vue2/types/common/utils/index.d.ts +1 -0
- package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
- package/dist/vue2/types/components/banner/banner.vue.d.ts +0 -33
- package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +5 -1
- package/dist/vue2/types/components/button/button.vue.d.ts +6 -2
- package/dist/vue2/types/components/chip/chip.vue.d.ts +8 -18
- package/dist/vue2/types/components/combobox/combobox_constants.d.ts +2 -2
- package/dist/vue2/types/components/combobox/index.d.ts +1 -1
- package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts +0 -1
- package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +5 -17
- package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +8 -48
- package/dist/vue2/types/components/datepicker/utils.d.ts +1 -0
- package/dist/vue2/types/components/datepicker/utils.d.ts.map +1 -1
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +0 -24
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +5 -1
- package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
- package/dist/vue2/types/components/icon/icon.vue.d.ts +1 -0
- package/dist/vue2/types/components/icon/icon_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +5 -8
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/modal/modal.vue.d.ts +3 -33
- package/dist/vue2/types/components/notice/notice.vue.d.ts +1 -34
- package/dist/vue2/types/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts +3 -31
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts +9 -26
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover.vue.d.ts +0 -33
- package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +8 -11
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -2
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -43
- package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
- package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/toast.vue.d.ts +3 -111
- package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +1 -0
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -13
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +7 -12
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +8 -10
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -25
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +5 -41
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +8 -26
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +20 -61
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +9 -12
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +8 -2
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -90
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +14 -2
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +14 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +10 -11
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +21 -37
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +9 -18
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +7 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/vue2/common/mixins/sr-only-close-button.cjs +0 -3
- package/dist/vue2/common/mixins/sr-only-close-button.cjs.map +0 -1
- package/dist/vue2/common/mixins/sr-only-close-button.js +0 -44
- package/dist/vue2/common/mixins/sr-only-close-button.js.map +0 -1
- package/dist/vue2/lib/contact-row/contact-row-constants.cjs +0 -2
- package/dist/vue2/lib/contact-row/contact-row-constants.cjs.map +0 -1
- package/dist/vue2/lib/contact-row/contact-row-constants.js +0 -5
- package/dist/vue2/lib/contact-row/contact-row-constants.js.map +0 -1
- package/dist/vue2/lib/emoji/emoji-constants.cjs +0 -2
- package/dist/vue2/lib/emoji/emoji-constants.cjs.map +0 -1
- package/dist/vue2/lib/emoji/emoji-constants.js +0 -5
- package/dist/vue2/lib/emoji/emoji-constants.js.map +0 -1
- package/dist/vue2/lib/group-row/group-row-constants.cjs +0 -2
- package/dist/vue2/lib/group-row/group-row-constants.cjs.map +0 -1
- package/dist/vue2/lib/group-row/group-row-constants.js +0 -8
- package/dist/vue2/lib/group-row/group-row-constants.js.map +0 -1
- package/dist/vue2/lib/time-pill/time-pill-constants.cjs +0 -2
- package/dist/vue2/lib/time-pill/time-pill-constants.cjs.map +0 -1
- package/dist/vue2/lib/time-pill/time-pill-constants.js +0 -8
- package/dist/vue2/lib/time-pill/time-pill-constants.js.map +0 -1
- package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts +0 -30
- package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
- package/dist/vue2/types/components/emoji/emoji_constants.d.ts +0 -3
- package/dist/vue2/types/components/emoji/emoji_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
- package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
- package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
|
@@ -2,63 +2,69 @@ import l from "./last-active-nodes.js";
|
|
|
2
2
|
import { Node as c, mergeAttributes as u } from "@tiptap/core";
|
|
3
3
|
import { NodeViewWrapper as d, nodeViewProps as p, VueNodeViewRenderer as m } from "../../node_modules/@tiptap/vue-2.js";
|
|
4
4
|
import { DtIconClose as h, DtIconVideo as f, DtIconImage as g, DtIconVerySatisfied as b, DtIconSatisfied as k, DtIconSend as _ } from "@dialpad/dialtone-icons/vue2";
|
|
5
|
-
import { n as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import v from "./message-input-
|
|
10
|
-
import
|
|
11
|
-
import S from "../
|
|
12
|
-
import
|
|
13
|
-
import O from "../
|
|
14
|
-
import I from "../
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
5
|
+
import { n as s } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
|
|
6
|
+
import T from "../item-layout/item-layout.js";
|
|
7
|
+
import a from "../button/button.js";
|
|
8
|
+
import r from "../../common/mixins/localization.js";
|
|
9
|
+
import v from "./message-input-topbar.js";
|
|
10
|
+
import L from "./message-input-link.js";
|
|
11
|
+
import { EDITOR_SUPPORTED_LINK_PROTOCOLS as S, EDITOR_DEFAULT_LINK_PREFIX as x } from "../editor/editor-constants.js";
|
|
12
|
+
import y from "../emoji-picker/emoji-picker.js";
|
|
13
|
+
import O from "../input/input.js";
|
|
14
|
+
import I from "../popover/popover.js";
|
|
15
|
+
import B from "../rich-text-editor/rich-text-editor.js";
|
|
16
|
+
import E from "../tooltip/tooltip.js";
|
|
17
|
+
import P from "../stack/stack.js";
|
|
18
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as w, RICH_TEXT_EDITOR_OUTPUT_FORMATS as C } from "../rich-text-editor/rich-text-editor-constants.js";
|
|
19
|
+
const j = {
|
|
19
20
|
name: "MeetingPill",
|
|
20
21
|
components: {
|
|
21
22
|
NodeViewWrapper: d,
|
|
22
|
-
DtItemLayout:
|
|
23
|
+
DtItemLayout: T,
|
|
23
24
|
DtIconClose: h,
|
|
24
|
-
DtButton:
|
|
25
|
+
DtButton: a,
|
|
25
26
|
DtIconVideo: f
|
|
26
27
|
},
|
|
28
|
+
mixins: [r],
|
|
27
29
|
props: p,
|
|
28
30
|
emits: ["meeting-pill-close"],
|
|
31
|
+
computed: {
|
|
32
|
+
closeButtonTitle() {
|
|
33
|
+
return this.i18n.$t("DIALTONE_CLOSE_BUTTON");
|
|
34
|
+
}
|
|
35
|
+
},
|
|
29
36
|
methods: {
|
|
30
37
|
close(t) {
|
|
31
38
|
this.$parent.$emit("meeting-pill-close", t);
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
|
-
var
|
|
42
|
+
var D = function() {
|
|
36
43
|
var e = this, i = e._self._c;
|
|
37
44
|
return i("node-view-wrapper", { staticClass: "d-recipe-message-input-meeting-pill" }, [i("dt-item-layout", { staticClass: "d-recipe-message-input-meeting-pill__layout", attrs: { unstyled: "" }, scopedSlots: e._u([{ key: "left", fn: function() {
|
|
38
45
|
return [i("div", { staticClass: "d-recipe-message-input-meeting-pill__icon" }, [i("dt-icon-video", { attrs: { size: "400" } })], 1)];
|
|
39
46
|
}, proxy: !0 }, { key: "right", fn: function() {
|
|
40
|
-
return [i("div", { staticClass: "d-recipe-message-input-meeting-pill__close" }, [i("dt-button", { attrs: { circle: "",
|
|
47
|
+
return [i("div", { staticClass: "d-recipe-message-input-meeting-pill__close" }, [i("dt-button", { attrs: { circle: "", importance: "clear", size: "xs", "aria-label": e.closeButtonTitle, title: e.closeButtonTitle }, on: { click: e.close }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
41
48
|
return [i("dt-icon-close", { attrs: { size: "300" } })];
|
|
42
49
|
}, proxy: !0 }]) })], 1)];
|
|
43
50
|
}, proxy: !0 }]) }, [e._v(" " + e._s(e.node.attrs.text) + " ")])], 1);
|
|
44
|
-
},
|
|
51
|
+
}, $ = [], A = /* @__PURE__ */ s(
|
|
52
|
+
j,
|
|
45
53
|
D,
|
|
46
|
-
|
|
47
|
-
E
|
|
54
|
+
$
|
|
48
55
|
);
|
|
49
|
-
const
|
|
56
|
+
const M = A.exports, N = c.create({
|
|
50
57
|
atom: !0,
|
|
51
58
|
group: "inline",
|
|
52
59
|
inline: !0,
|
|
53
60
|
addNodeView() {
|
|
54
|
-
return m(
|
|
61
|
+
return m(M);
|
|
55
62
|
},
|
|
56
63
|
addAttributes() {
|
|
57
64
|
return {
|
|
58
65
|
text: {
|
|
59
66
|
default: 'Please pass in "text" attribute'
|
|
60
|
-
}
|
|
61
|
-
"close-button-aria-label": {}
|
|
67
|
+
}
|
|
62
68
|
};
|
|
63
69
|
},
|
|
64
70
|
parseHTML() {
|
|
@@ -74,24 +80,24 @@ const F = M.exports, A = c.create({
|
|
|
74
80
|
renderHTML({ HTMLAttributes: t }) {
|
|
75
81
|
return ["meeting-pill", u(t)];
|
|
76
82
|
}
|
|
77
|
-
}),
|
|
83
|
+
}), F = {
|
|
78
84
|
name: "DtRecipeMessageInput",
|
|
79
85
|
components: {
|
|
80
|
-
DtButton:
|
|
81
|
-
DtEmojiPicker:
|
|
82
|
-
DtInput:
|
|
83
|
-
DtPopover:
|
|
84
|
-
DtRecipeMessageInputTopbar:
|
|
85
|
-
DtRecipeMessageInputLink:
|
|
86
|
-
DtRichTextEditor:
|
|
87
|
-
DtTooltip:
|
|
88
|
-
DtStack:
|
|
86
|
+
DtButton: a,
|
|
87
|
+
DtEmojiPicker: y,
|
|
88
|
+
DtInput: O,
|
|
89
|
+
DtPopover: I,
|
|
90
|
+
DtRecipeMessageInputTopbar: v,
|
|
91
|
+
DtRecipeMessageInputLink: L,
|
|
92
|
+
DtRichTextEditor: B,
|
|
93
|
+
DtTooltip: E,
|
|
94
|
+
DtStack: P,
|
|
89
95
|
DtIconImage: g,
|
|
90
96
|
DtIconVerySatisfied: b,
|
|
91
97
|
DtIconSatisfied: k,
|
|
92
98
|
DtIconSend: _
|
|
93
99
|
},
|
|
94
|
-
mixins: [],
|
|
100
|
+
mixins: [r],
|
|
95
101
|
inheritAttrs: !1,
|
|
96
102
|
props: {
|
|
97
103
|
/**
|
|
@@ -160,7 +166,7 @@ const F = M.exports, A = c.create({
|
|
|
160
166
|
type: [Boolean, String, Number],
|
|
161
167
|
default: !1,
|
|
162
168
|
validator(t) {
|
|
163
|
-
return typeof t == "string" ?
|
|
169
|
+
return typeof t == "string" ? w.includes(t) : !0;
|
|
164
170
|
}
|
|
165
171
|
},
|
|
166
172
|
/**
|
|
@@ -173,7 +179,7 @@ const F = M.exports, A = c.create({
|
|
|
173
179
|
type: String,
|
|
174
180
|
default: "json",
|
|
175
181
|
validator(t) {
|
|
176
|
-
return
|
|
182
|
+
return C.includes(t);
|
|
177
183
|
}
|
|
178
184
|
},
|
|
179
185
|
/**
|
|
@@ -208,31 +214,7 @@ const F = M.exports, A = c.create({
|
|
|
208
214
|
*/
|
|
209
215
|
emojiPickerProps: {
|
|
210
216
|
type: Object,
|
|
211
|
-
default: () => ({})
|
|
212
|
-
validate(t) {
|
|
213
|
-
return [
|
|
214
|
-
"searchNoResultsLabel",
|
|
215
|
-
"searchResultsLabel",
|
|
216
|
-
"searchPlaceholderLabel",
|
|
217
|
-
"skinSelectorButtonTooltipLabel",
|
|
218
|
-
"tabSetLabels"
|
|
219
|
-
].every((e) => t[e] != null);
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
/**
|
|
223
|
-
* Emoji button tooltip label
|
|
224
|
-
*/
|
|
225
|
-
emojiTooltipMessage: {
|
|
226
|
-
type: String,
|
|
227
|
-
default: "Emoji"
|
|
228
|
-
},
|
|
229
|
-
// Aria label for buttons
|
|
230
|
-
/**
|
|
231
|
-
* Emoji button aria label
|
|
232
|
-
*/
|
|
233
|
-
emojiButtonAriaLabel: {
|
|
234
|
-
type: String,
|
|
235
|
-
default: "emoji button"
|
|
217
|
+
default: () => ({})
|
|
236
218
|
},
|
|
237
219
|
/**
|
|
238
220
|
* Enable character Limit warning
|
|
@@ -243,21 +225,28 @@ const F = M.exports, A = c.create({
|
|
|
243
225
|
},
|
|
244
226
|
showImagePicker: {
|
|
245
227
|
type: [Boolean, Object],
|
|
246
|
-
default: () => ({
|
|
228
|
+
default: () => ({})
|
|
247
229
|
},
|
|
248
230
|
/**
|
|
249
231
|
* Send button defaults.
|
|
232
|
+
* TODO (Dialtone 10):
|
|
233
|
+
* - Change to `showSendButton`, boolean only.
|
|
250
234
|
*/
|
|
251
235
|
showSend: {
|
|
252
236
|
type: [Boolean, Object],
|
|
253
237
|
default: () => ({})
|
|
254
238
|
},
|
|
239
|
+
/**
|
|
240
|
+
* TODO (Dialtone 10):
|
|
241
|
+
* - Add a prop `iconOnly` default: true to control if localized send button text should be shown
|
|
242
|
+
*/
|
|
255
243
|
/**
|
|
256
244
|
* Cancel button defaults.
|
|
245
|
+
* TODO (Dialtone 10): Change to `showCancelButton`, boolean only.
|
|
257
246
|
*/
|
|
258
247
|
showCancel: {
|
|
259
248
|
type: [Boolean, Object],
|
|
260
|
-
default: () => ({
|
|
249
|
+
default: () => ({})
|
|
261
250
|
},
|
|
262
251
|
/**
|
|
263
252
|
* suggestion object containing the items query function.
|
|
@@ -310,13 +299,11 @@ const F = M.exports, A = c.create({
|
|
|
310
299
|
* descriptive text fields for the bold button
|
|
311
300
|
*
|
|
312
301
|
* object format:
|
|
313
|
-
* {
|
|
302
|
+
* { keyboardShortcutText: string }
|
|
314
303
|
*/
|
|
315
304
|
boldButtonOptions: {
|
|
316
305
|
type: Object,
|
|
317
306
|
default: () => ({
|
|
318
|
-
ariaLabel: "Toggle bold on selected text",
|
|
319
|
-
tooltipText: "Bold",
|
|
320
307
|
keyboardShortcutText: "Mod + B"
|
|
321
308
|
})
|
|
322
309
|
},
|
|
@@ -324,13 +311,11 @@ const F = M.exports, A = c.create({
|
|
|
324
311
|
* descriptive text fields for the italic button
|
|
325
312
|
*
|
|
326
313
|
* object format:
|
|
327
|
-
* {
|
|
314
|
+
* { keyboardShortcutText: string }
|
|
328
315
|
*/
|
|
329
316
|
italicButtonOptions: {
|
|
330
317
|
type: Object,
|
|
331
318
|
default: () => ({
|
|
332
|
-
ariaLabel: "Toggle italic on selected text",
|
|
333
|
-
tooltipText: "Italic",
|
|
334
319
|
keyboardShortcutText: "Mod + I"
|
|
335
320
|
})
|
|
336
321
|
},
|
|
@@ -338,13 +323,11 @@ const F = M.exports, A = c.create({
|
|
|
338
323
|
* descriptive text fields for the strikethrough button
|
|
339
324
|
*
|
|
340
325
|
* object format:
|
|
341
|
-
* {
|
|
326
|
+
* { keyboardShortcutText: string }
|
|
342
327
|
*/
|
|
343
328
|
strikeButtonOptions: {
|
|
344
329
|
type: Object,
|
|
345
330
|
default: () => ({
|
|
346
|
-
ariaLabel: "Toggle strikethrough on selected text",
|
|
347
|
-
tooltipText: "Strikethrough",
|
|
348
331
|
keyboardShortcutText: "Mod + Shift + S"
|
|
349
332
|
})
|
|
350
333
|
},
|
|
@@ -352,36 +335,25 @@ const F = M.exports, A = c.create({
|
|
|
352
335
|
* descriptive text fields for the link button
|
|
353
336
|
*
|
|
354
337
|
* object format:
|
|
355
|
-
* {
|
|
338
|
+
* { keyboardShortcutText: string }
|
|
356
339
|
*/
|
|
357
340
|
linkButtonOptions: {
|
|
358
341
|
type: Object,
|
|
359
342
|
default: () => ({
|
|
360
|
-
ariaLabel: "Create or edit link on selected text",
|
|
361
|
-
tooltipText: "Link",
|
|
362
343
|
// TODO: implement mod k
|
|
363
344
|
keyboardShortcutText: "Mod + K",
|
|
364
|
-
|
|
365
|
-
textLabel: "Text to display (optional)",
|
|
366
|
-
linkLabel: "Link",
|
|
367
|
-
linkPlaceholder: "e.g. https://www.dialpad.com",
|
|
368
|
-
removeLabel: "Remove",
|
|
369
|
-
cancelLabel: "Cancel",
|
|
370
|
-
confirmLabel: "Done",
|
|
371
|
-
visuallyHiddenCloseText: "Close link dialog"
|
|
345
|
+
linkPlaceholder: "e.g. https://www.dialpad.com"
|
|
372
346
|
})
|
|
373
347
|
},
|
|
374
348
|
/**
|
|
375
349
|
* descriptive text fields for the bullet list button
|
|
376
350
|
*
|
|
377
351
|
* object format:
|
|
378
|
-
* {
|
|
352
|
+
* { keyboardShortcutText: string }
|
|
379
353
|
*/
|
|
380
354
|
bulletListButtonOptions: {
|
|
381
355
|
type: Object,
|
|
382
356
|
default: () => ({
|
|
383
|
-
ariaLabel: "Toggle bullet list on selected text",
|
|
384
|
-
tooltipText: "Bullet list",
|
|
385
357
|
keyboardShortcutText: "Mod + Shift + 8"
|
|
386
358
|
})
|
|
387
359
|
},
|
|
@@ -389,13 +361,11 @@ const F = M.exports, A = c.create({
|
|
|
389
361
|
* descriptive text fields for the ordered list button
|
|
390
362
|
*
|
|
391
363
|
* object format:
|
|
392
|
-
* {
|
|
364
|
+
* { keyboardShortcutText: string }
|
|
393
365
|
*/
|
|
394
366
|
orderedListButtonOptions: {
|
|
395
367
|
type: Object,
|
|
396
368
|
default: () => ({
|
|
397
|
-
ariaLabel: "Toggle ordered list on selected text",
|
|
398
|
-
tooltipText: "Ordered list",
|
|
399
369
|
keyboardShortcutText: "Mod + Shift + 7"
|
|
400
370
|
})
|
|
401
371
|
},
|
|
@@ -403,13 +373,11 @@ const F = M.exports, A = c.create({
|
|
|
403
373
|
* descriptive text fields for the italic button
|
|
404
374
|
*
|
|
405
375
|
* object format:
|
|
406
|
-
* {
|
|
376
|
+
* { keyboardShortcutText: string }
|
|
407
377
|
*/
|
|
408
378
|
blockQuoteButtonOptions: {
|
|
409
379
|
type: Object,
|
|
410
380
|
default: () => ({
|
|
411
|
-
ariaLabel: "Toggle Blockquote on selected text",
|
|
412
|
-
tooltipText: "Blockquote",
|
|
413
381
|
keyboardShortcutText: "Mod + Shift + B"
|
|
414
382
|
})
|
|
415
383
|
},
|
|
@@ -417,13 +385,11 @@ const F = M.exports, A = c.create({
|
|
|
417
385
|
* descriptive text fields for the code button
|
|
418
386
|
*
|
|
419
387
|
* object format:
|
|
420
|
-
* {
|
|
388
|
+
* { keyboardShortcutText: string }
|
|
421
389
|
*/
|
|
422
390
|
codeButtonOptions: {
|
|
423
391
|
type: Object,
|
|
424
392
|
default: () => ({
|
|
425
|
-
ariaLabel: "Toggle code tag on selected text",
|
|
426
|
-
tooltipText: "Code",
|
|
427
393
|
keyboardShortcutText: "Mod + E"
|
|
428
394
|
})
|
|
429
395
|
},
|
|
@@ -431,13 +397,11 @@ const F = M.exports, A = c.create({
|
|
|
431
397
|
* descriptive text fields for the code block button
|
|
432
398
|
*
|
|
433
399
|
* object format:
|
|
434
|
-
* {
|
|
400
|
+
* { keyboardShortcutText: string }
|
|
435
401
|
*/
|
|
436
402
|
codeBlockButtonOptions: {
|
|
437
403
|
type: Object,
|
|
438
404
|
default: () => ({
|
|
439
|
-
ariaLabel: "Toggle code block on selected text",
|
|
440
|
-
tooltipText: "Code block",
|
|
441
405
|
keyboardShortcutText: "Mod + Alt + C"
|
|
442
406
|
})
|
|
443
407
|
}
|
|
@@ -530,7 +494,7 @@ const F = M.exports, A = c.create({
|
|
|
530
494
|
// If an ordered list is nested within an unordered list, we only want to show the currently selected list as
|
|
531
495
|
// active. This function performs the logic to determine the farthest active node from the root.
|
|
532
496
|
lastActiveNodes: l,
|
|
533
|
-
additionalExtensions: [
|
|
497
|
+
additionalExtensions: [N],
|
|
534
498
|
internalInputValue: this.value,
|
|
535
499
|
// internal input content
|
|
536
500
|
imagePickerFocus: !1,
|
|
@@ -562,16 +526,23 @@ const F = M.exports, A = c.create({
|
|
|
562
526
|
isSendDisabled() {
|
|
563
527
|
return this.disableSend || this.showCharacterLimit && this.inputLength > this.showCharacterLimit.count;
|
|
564
528
|
},
|
|
565
|
-
computedCloseButtonProps() {
|
|
566
|
-
return {
|
|
567
|
-
ariaLabel: "Close"
|
|
568
|
-
};
|
|
569
|
-
},
|
|
570
529
|
emojiPickerHovered() {
|
|
571
530
|
return this.emojiPickerFocus || this.emojiPickerOpened;
|
|
572
531
|
},
|
|
573
532
|
sendIconSize() {
|
|
574
533
|
return "300";
|
|
534
|
+
},
|
|
535
|
+
sendButtonLabel() {
|
|
536
|
+
return this.i18n.$t("DIALTONE_MESSAGE_INPUT_SEND_BUTTON_ARIA_LABEL");
|
|
537
|
+
},
|
|
538
|
+
imagePickerButtonLabel() {
|
|
539
|
+
return this.i18n.$t("DIALTONE_MESSAGE_INPUT_IMAGE_PICKER_BUTTON_ARIA_LABEL");
|
|
540
|
+
},
|
|
541
|
+
emojiPickerButtonLabel() {
|
|
542
|
+
return this.i18n.$t("DIALTONE_MESSAGE_INPUT_EMOJI_PICKER_BUTTON_ARIA_LABEL");
|
|
543
|
+
},
|
|
544
|
+
cancelButtonLabel() {
|
|
545
|
+
return this.i18n.$t("DIALTONE_MESSAGE_INPUT_CANCEL_BUTTON_ARIA_LABEL");
|
|
575
546
|
}
|
|
576
547
|
},
|
|
577
548
|
watch: {
|
|
@@ -624,8 +595,8 @@ const F = M.exports, A = c.create({
|
|
|
624
595
|
e,
|
|
625
596
|
t,
|
|
626
597
|
this.linkOptions,
|
|
627
|
-
|
|
628
|
-
|
|
598
|
+
S,
|
|
599
|
+
x
|
|
629
600
|
), this.linkDialogOpen = !1;
|
|
630
601
|
},
|
|
631
602
|
// Mousedown instead of click because it fires before the blur event.
|
|
@@ -677,72 +648,70 @@ const F = M.exports, A = c.create({
|
|
|
677
648
|
}
|
|
678
649
|
}
|
|
679
650
|
};
|
|
680
|
-
var
|
|
681
|
-
var n;
|
|
651
|
+
var R = function() {
|
|
682
652
|
var e = this, i = e._self._c;
|
|
683
|
-
return i("div", { staticClass: "d-recipe-message-input", attrs: { "data-qa": "dt-recipe-message-input", role: "presentation" }, on: { dragover: function(
|
|
684
|
-
|
|
685
|
-
}, drop: function(
|
|
686
|
-
return
|
|
653
|
+
return i("div", { staticClass: "d-recipe-message-input", attrs: { "data-qa": "dt-recipe-message-input", role: "presentation" }, on: { dragover: function(n) {
|
|
654
|
+
n.preventDefault();
|
|
655
|
+
}, drop: function(n) {
|
|
656
|
+
return n.preventDefault(), e.onDrop.apply(null, arguments);
|
|
687
657
|
}, paste: e.onPaste, mousedown: e.onMousedown } }, [e._t("top"), e.richText ? i("dt-recipe-message-input-topbar", { key: e.selectedText, attrs: { "bold-button-options": e.boldButtonOptions, "italic-button-options": e.italicButtonOptions, "strike-button-options": e.strikeButtonOptions, "bullet-list-button-options": e.bulletListButtonOptions, "ordered-list-button-options": e.orderedListButtonOptions, "block-quote-button-options": e.blockQuoteButtonOptions, "code-button-options": e.codeButtonOptions, "code-block-button-options": e.codeBlockButtonOptions, "is-selection-active": e.isSelectionActive }, on: { click: e.handleTopbarClick }, scopedSlots: e._u([{ key: "link", fn: function() {
|
|
688
658
|
return [i("dt-recipe-message-input-link", { ref: "link", attrs: { open: e.linkDialogOpen, "link-button-options": e.linkButtonOptions, "is-selection-active": e.isSelectionActive }, on: { opened: e.linkDialogOpened, "set-link": e.setLink, "remove-link": e.removeLink } })];
|
|
689
|
-
}, proxy: !0 }], null, !1, 1527282285) }) : e._e(), i("div", { directives: [{ name: "dt-scrollbar", rawName: "v-dt-scrollbar" }], staticClass: "d-recipe-message-input__editor-wrapper", style: { "max-height": e.maxHeight } }, [i("dt-rich-text-editor", e._g(e._b({ ref: "richTextEditor", attrs: { editable: e.editable, "input-aria-label": e.inputAriaLabel, "input-class": e.inputClass, "output-format": e.outputFormat, "auto-focus": e.autoFocus, link: e.richText, placeholder: e.placeholder, "prevent-typing": e.preventTyping, "mention-suggestion": e.mentionSuggestion, "channel-suggestion": e.channelSuggestion, "slash-command-suggestion": e.slashCommandSuggestion, "allow-blockquote": e.richText, "allow-bold": e.richText, "allow-bullet-list": e.richText, "allow-code": e.richText, "allow-codeblock": e.richText, "allow-italic": e.richText, "allow-strike": e.richText, "allow-underline": e.richText, "additional-extensions": e.additionalExtensions, "hide-link-bubble-menu": e.hideLinkBubbleMenu }, on: { input: e.onInput, "text-input": e.onTextInput, enter: e.onSend, selected: function(
|
|
690
|
-
e.selectedText =
|
|
691
|
-
}, "edit-link": e.initLinkDialog, focus: function(
|
|
659
|
+
}, proxy: !0 }], null, !1, 1527282285) }) : e._e(), i("div", { directives: [{ name: "dt-scrollbar", rawName: "v-dt-scrollbar" }], staticClass: "d-recipe-message-input__editor-wrapper", style: { "max-height": e.maxHeight } }, [i("dt-rich-text-editor", e._g(e._b({ ref: "richTextEditor", attrs: { editable: e.editable, "input-aria-label": e.inputAriaLabel, "input-class": e.inputClass, "output-format": e.outputFormat, "auto-focus": e.autoFocus, link: e.richText, placeholder: e.placeholder, "prevent-typing": e.preventTyping, "mention-suggestion": e.mentionSuggestion, "channel-suggestion": e.channelSuggestion, "slash-command-suggestion": e.slashCommandSuggestion, "paste-rich-text": e.richText, "allow-blockquote": e.richText, "allow-bold": e.richText, "allow-bullet-list": e.richText, "allow-code": e.richText, "allow-codeblock": e.richText, "allow-italic": e.richText, "allow-strike": e.richText, "allow-underline": e.richText, "additional-extensions": e.additionalExtensions, "hide-link-bubble-menu": e.hideLinkBubbleMenu }, on: { input: e.onInput, "text-input": e.onTextInput, enter: e.onSend, selected: function(n) {
|
|
660
|
+
e.selectedText = n;
|
|
661
|
+
}, "edit-link": e.initLinkDialog, focus: function(n) {
|
|
692
662
|
e.isFocused = !0;
|
|
693
|
-
}, blur: function(
|
|
663
|
+
}, blur: function(n) {
|
|
694
664
|
e.isFocused = !1;
|
|
695
|
-
} }, model: { value: e.internalInputValue, callback: function(
|
|
696
|
-
e.internalInputValue =
|
|
697
|
-
}, expression: "internalInputValue" } }, "dt-rich-text-editor", e.$attrs, !1), e.$listeners))], 1), e._t("middle"), i("section", { staticClass: "d-recipe-message-input__bottom-section" }, [i("div", { staticClass: "d-recipe-message-input__bottom-section-left" }, [i("dt-stack", { attrs: { direction: "row", gap: "200" } }, [e.showImagePicker ? i("dt-button", { directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip:top-start", value:
|
|
665
|
+
} }, model: { value: e.internalInputValue, callback: function(n) {
|
|
666
|
+
e.internalInputValue = n;
|
|
667
|
+
}, expression: "internalInputValue" } }, "dt-rich-text-editor", e.$attrs, !1), e.$listeners))], 1), e._t("middle"), i("section", { staticClass: "d-recipe-message-input__bottom-section" }, [i("div", { staticClass: "d-recipe-message-input__bottom-section-left" }, [i("dt-stack", { attrs: { direction: "row", gap: "200" } }, [e.showImagePicker ? i("dt-button", { directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip:top-start", value: e.imagePickerButtonLabel, expression: "imagePickerButtonLabel", arg: "top-start" }], staticClass: "d-recipe-message-input__button", attrs: { "data-qa": "dt-recipe-message-input-image-btn", size: "sm", kind: "muted", importance: "clear", "aria-label": e.imagePickerButtonLabel }, on: { click: e.onSelectImage, mouseenter: function(n) {
|
|
698
668
|
e.imagePickerFocus = !0;
|
|
699
|
-
}, mouseleave: function(
|
|
669
|
+
}, mouseleave: function(n) {
|
|
700
670
|
e.imagePickerFocus = !1;
|
|
701
|
-
}, focus: function(
|
|
671
|
+
}, focus: function(n) {
|
|
702
672
|
e.imagePickerFocus = !0;
|
|
703
|
-
}, blur: function(
|
|
673
|
+
}, blur: function(n) {
|
|
704
674
|
e.imagePickerFocus = !1;
|
|
705
675
|
} }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
706
676
|
return [i("dt-icon-image", { attrs: { size: "300" } })];
|
|
707
|
-
}, proxy: !0 }], null, !1, 4195307205) }) : e._e(), i("dt-input", { ref: "messageInputImageUpload", staticClass: "d-recipe-message-input__image-input", attrs: { "data-qa": "dt-recipe-message-input-image-input", accept: "image/*, video/*", type: "file", multiple: "", hidden: "" }, on: { input: e.onImageUpload } }), e.showEmojiPicker ? i("dt-popover", { attrs: { "open.sync": "emojiPickerOpened", "data-qa": "dt-recipe-message-input-emoji-picker-popover", "initial-focus-element": "#searchInput", padding: "none" }, scopedSlots: e._u([{ key: "anchor", fn: function({ attrs:
|
|
708
|
-
return [i("dt-button", e._b({ directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip", value: e.
|
|
677
|
+
}, proxy: !0 }], null, !1, 4195307205) }) : e._e(), i("dt-input", { ref: "messageInputImageUpload", staticClass: "d-recipe-message-input__image-input", attrs: { "data-qa": "dt-recipe-message-input-image-input", accept: "image/*, video/*", type: "file", multiple: "", hidden: "" }, on: { input: e.onImageUpload } }), e.showEmojiPicker ? i("dt-popover", { attrs: { "open.sync": "emojiPickerOpened", "data-qa": "dt-recipe-message-input-emoji-picker-popover", "initial-focus-element": "#searchInput", padding: "none" }, scopedSlots: e._u([{ key: "anchor", fn: function({ attrs: n }) {
|
|
678
|
+
return [i("dt-button", e._b({ directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip", value: e.emojiPickerButtonLabel, expression: "emojiPickerButtonLabel" }], staticClass: "d-recipe-message-input__button", attrs: { "data-qa": "dt-recipe-message-input-emoji-picker-btn", size: "sm", kind: "muted", importance: "clear", "aria-label": e.emojiPickerButtonLabel }, on: { click: e.toggleEmojiPicker, mouseenter: function(o) {
|
|
709
679
|
e.emojiPickerFocus = !0;
|
|
710
|
-
}, mouseleave: function(
|
|
680
|
+
}, mouseleave: function(o) {
|
|
711
681
|
e.emojiPickerFocus = !1;
|
|
712
|
-
}, focus: function(
|
|
682
|
+
}, focus: function(o) {
|
|
713
683
|
e.emojiPickerFocus = !0;
|
|
714
|
-
}, blur: function(
|
|
684
|
+
}, blur: function(o) {
|
|
715
685
|
e.emojiPickerFocus = !1;
|
|
716
686
|
} }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
717
687
|
return [e.emojiPickerHovered ? i("dt-icon-very-satisfied", { attrs: { size: "300" } }) : i("dt-icon-satisfied", { attrs: { size: "300" } })];
|
|
718
|
-
}, proxy: !0 }], null, !0) }, "dt-button",
|
|
719
|
-
} }, { key: "content", fn: function({ close:
|
|
720
|
-
return [i("dt-emoji-picker", e._b({ on: { "add-emoji": function(
|
|
688
|
+
}, proxy: !0 }], null, !0) }, "dt-button", n, !1))];
|
|
689
|
+
} }, { key: "content", fn: function({ close: n }) {
|
|
690
|
+
return [i("dt-emoji-picker", e._b({ on: { "add-emoji": function(o) {
|
|
721
691
|
return e.$emit("add-emoji");
|
|
722
|
-
}, "skin-tone": e.onSkinTone, "selected-emoji": (
|
|
723
|
-
} }], null, !1,
|
|
692
|
+
}, "skin-tone": e.onSkinTone, "selected-emoji": (o) => e.onSelectEmoji(o, n) } }, "dt-emoji-picker", e.emojiPickerProps, !1))];
|
|
693
|
+
} }], null, !1, 2292511006) }) : e._e(), e._t("emojiGiphyPicker"), e._t("customActionIcons")], 2)], 1), i("div", { staticClass: "d-recipe-message-input__bottom-section-right" }, [i("dt-stack", { attrs: { direction: "row", gap: "300" } }, [i("div", { staticClass: "d-recipe-message-input__sms-count" }, [e._t("smsCount")], 2), e.showCharacterLimit ? i("dt-tooltip", { staticClass: "d-recipe-message-input__remaining-char-tooltip", attrs: { placement: "top-end", enabled: e.characterLimitTooltipEnabled, message: e.showCharacterLimit.message, offset: [10, 8] }, scopedSlots: e._u([{ key: "anchor", fn: function() {
|
|
724
694
|
return [i("p", { directives: [{ name: "show", rawName: "v-show", value: e.displayCharacterLimitWarning, expression: "displayCharacterLimitWarning" }], staticClass: "d-recipe-message-input__remaining-char", attrs: { "data-qa": "dt-recipe-message-input-character-limit" } }, [e._v(" " + e._s(e.showCharacterLimit.count - e.inputLength) + " ")])];
|
|
725
|
-
}, proxy: !0 }], null, !1, 1021505058) }) : e._e(), e.showCancel ? i("dt-button", { staticClass: "d-recipe-message-input__button d-recipe-message-input__cancel-button", attrs: { "data-qa": "dt-recipe-message-input-cancel-button", size: "sm", kind: "muted", importance: "clear", "aria-label": e.
|
|
726
|
-
|
|
727
|
-
return [e.showSend ? i("dt-button", { directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip:top-end", value: (o = e.showSend) == null ? void 0 : o.tooltipLabel, expression: "showSend?.tooltipLabel", arg: "top-end" }], class: [
|
|
695
|
+
}, proxy: !0 }], null, !1, 1021505058) }) : e._e(), e.showCancel ? i("dt-button", { directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip", value: e.cancelButtonLabel, expression: "cancelButtonLabel" }], staticClass: "d-recipe-message-input__button d-recipe-message-input__cancel-button", attrs: { "data-qa": "dt-recipe-message-input-cancel-button", size: "sm", kind: "muted", importance: "clear", "aria-label": e.cancelButtonLabel }, on: { click: e.onCancel } }, [i("p", [e._v(e._s(e.cancelButtonLabel))])]) : e._e(), e._t("sendButton", function() {
|
|
696
|
+
return [e.showSend ? i("dt-button", { directives: [{ name: "dt-tooltip", rawName: "v-dt-tooltip:top-end", value: e.sendButtonLabel, expression: "sendButtonLabel", arg: "top-end" }], class: [
|
|
728
697
|
"d-recipe-message-input__button d-recipe-message-input__send-button",
|
|
729
698
|
{
|
|
730
699
|
"d-recipe-message-input__send-button--disabled": e.isSendDisabled,
|
|
731
700
|
"d-btn--icon-only": e.showSendIcon
|
|
732
701
|
}
|
|
733
|
-
], attrs: { "data-qa": "dt-recipe-message-input-send-btn", size: "sm", kind: "default", importance: "primary", "aria-label": e.
|
|
702
|
+
], attrs: { "data-qa": "dt-recipe-message-input-send-btn", size: "sm", kind: "default", importance: "primary", "aria-label": e.sendButtonLabel, "aria-disabled": e.isSendDisabled }, on: { click: e.onSend }, scopedSlots: e._u([e.showSendIcon ? { key: "icon", fn: function() {
|
|
734
703
|
return [e._t("sendIcon", function() {
|
|
735
704
|
return [i("dt-icon-send", { attrs: { size: e.sendIconSize } })];
|
|
736
705
|
}, { iconSize: e.sendIconSize })];
|
|
737
706
|
}, proxy: !0 } : null], null, !0) }, [e.showSend.text ? [i("p", [e._v(e._s(e.showSend.text))])] : e._e()], 2) : e._e()];
|
|
738
707
|
})], 2)], 1)])], 2);
|
|
739
|
-
},
|
|
708
|
+
}, U = [], z = /* @__PURE__ */ s(
|
|
709
|
+
F,
|
|
740
710
|
R,
|
|
741
|
-
|
|
742
|
-
z
|
|
711
|
+
U
|
|
743
712
|
);
|
|
744
|
-
const
|
|
713
|
+
const re = z.exports;
|
|
745
714
|
export {
|
|
746
|
-
|
|
715
|
+
re as default
|
|
747
716
|
};
|
|
748
717
|
//# sourceMappingURL=message-input.js.map
|