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