@dialpad/dialtone-vue 2.126.0 → 2.127.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/_plugin-vue2_normalizer-1aBeR4AK.js +59 -0
- package/dist/chunks/_plugin-vue2_normalizer-1aBeR4AK.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer-sOSkiPF3.js +60 -0
- package/dist/chunks/_plugin-vue2_normalizer-sOSkiPF3.js.map +1 -0
- package/dist/chunks/{dropdown-SMWaTWyF.js → dropdown-DTtcQEFC.js} +131 -84
- package/dist/chunks/{dropdown-SMWaTWyF.js.map → dropdown-DTtcQEFC.js.map} +1 -1
- package/dist/chunks/dropdown-IaLNHmVd.js +403 -0
- package/dist/chunks/dropdown-IaLNHmVd.js.map +1 -0
- 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-OpYAAKwF.js.map → icon_constants-Dy4MEUJL.js.map} +1 -1
- package/dist/chunks/icon_constants-QYpmdE0R.js +16 -0
- package/dist/chunks/icon_constants-QYpmdE0R.js.map +1 -0
- package/dist/chunks/index-DUr1xHR0.js +442 -0
- package/dist/chunks/{index-nIyl_PL6.js.map → index-DUr1xHR0.js.map} +1 -1
- package/dist/chunks/index-IA-Z8fgm.js +441 -0
- package/dist/chunks/index-IA-Z8fgm.js.map +1 -0
- package/dist/chunks/{input-1tm09l_-.js → input-6kbd8Pju.js} +83 -60
- package/dist/chunks/{input-1tm09l_-.js.map → input-6kbd8Pju.js.map} +1 -1
- package/dist/chunks/input-Axw-wFj2.js +295 -0
- package/dist/chunks/input-Axw-wFj2.js.map +1 -0
- package/dist/chunks/input_group-m3cWYUfI.js +143 -0
- package/dist/chunks/{input_group-zcAq3DQl.js.map → input_group-m3cWYUfI.js.map} +1 -1
- package/dist/chunks/{input_group-zcAq3DQl.js → input_group-qVZaS5Bb.js} +27 -24
- package/dist/chunks/input_group-qVZaS5Bb.js.map +1 -0
- package/dist/chunks/keyboard_list_navigation-ScXhrxya.js +284 -0
- package/dist/chunks/{keyboard_list_navigation-F0O8nht0.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-fJnl_Iox.js.map +1 -0
- package/dist/chunks/link_constants-Huj7D_hm.js +22 -0
- package/dist/chunks/{link_constants-vIUB92L4.js.map → link_constants-Huj7D_hm.js.map} +1 -1
- package/dist/chunks/link_constants-nWVlXQBs.js +23 -0
- package/dist/chunks/link_constants-nWVlXQBs.js.map +1 -0
- package/dist/chunks/list_item_constants-EiqkqZvP.js +13 -0
- package/dist/chunks/{list_item_constants-LTUc74pD.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-u1xcN9Dd.js.map +1 -0
- package/dist/chunks/modal-VgxXAQFP.js +105 -0
- package/dist/chunks/{modal-VuMFkZFH.js.map → modal-VgxXAQFP.js.map} +1 -1
- package/dist/chunks/modal-XOr4kiNZ.js +106 -0
- package/dist/chunks/modal-XOr4kiNZ.js.map +1 -0
- package/dist/chunks/notice_action-IRUoLX2d.js +196 -0
- package/dist/chunks/{notice_action-9NmtQRai.js.map → notice_action-IRUoLX2d.js.map} +1 -1
- package/dist/chunks/notice_action-P6uDyE9x.js +195 -0
- package/dist/chunks/notice_action-P6uDyE9x.js.map +1 -0
- package/dist/chunks/notice_constants-7Qt2CQEY.js +7 -0
- package/dist/chunks/{notice_constants-c--hBFQw.js.map → notice_constants-7Qt2CQEY.js.map} +1 -1
- package/dist/chunks/notice_constants-UXo9e3bS.js +6 -0
- package/dist/chunks/notice_constants-UXo9e3bS.js.map +1 -0
- package/dist/chunks/popover_constants-JwBF9h1Z.js +143 -0
- package/dist/chunks/{popover_constants-qjlEkroB.js.map → popover_constants-JwBF9h1Z.js.map} +1 -1
- package/dist/chunks/popover_constants-Qkpb0yh2.js +144 -0
- package/dist/chunks/popover_constants-Qkpb0yh2.js.map +1 -0
- package/dist/chunks/sr_only_close_button-81bHIpPu.js +95 -0
- package/dist/chunks/{sr_only_close_button-JGole5Xi.js.map → sr_only_close_button-81bHIpPu.js.map} +1 -1
- package/dist/chunks/sr_only_close_button-ZaGdAHz7.js +94 -0
- package/dist/chunks/sr_only_close_button-ZaGdAHz7.js.map +1 -0
- package/dist/chunks/stack_constants-HraCekPm.js +15 -0
- package/dist/chunks/{stack_constants-u7tNqGtc.js.map → stack_constants-HraCekPm.js.map} +1 -1
- package/dist/chunks/stack_constants-SMzMWnAQ.js +14 -0
- package/dist/chunks/stack_constants-SMzMWnAQ.js.map +1 -0
- package/dist/chunks/tab-FcsV5VmK.js +386 -0
- package/dist/chunks/tab-FcsV5VmK.js.map +1 -0
- package/dist/chunks/tab-V4cb44Ry.js +387 -0
- package/dist/chunks/{tab-Qm9LVkYj.js.map → tab-V4cb44Ry.js.map} +1 -1
- package/dist/common/constants.cjs +60 -0
- package/dist/common/constants.cjs.map +1 -0
- 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/common/dates.cjs.map +1 -0
- 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/common/mixins.cjs.map +1 -0
- package/dist/common/mixins.js +17 -0
- package/dist/common/utils.cjs +237 -0
- package/dist/common/utils.cjs.map +1 -0
- package/dist/common/utils.js +237 -0
- package/dist/{lib → common}/utils.js.map +1 -1
- package/dist/common/validators.cjs +23 -0
- package/dist/common/validators.cjs.map +1 -0
- package/dist/common/validators.js +23 -0
- package/dist/{lib → common}/validators.js.map +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +373 -0
- package/dist/dialtone-vue.cjs.map +1 -0
- package/dist/dialtone-vue.js +325 -324
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/attachment-carousel.cjs +261 -0
- package/dist/lib/attachment-carousel.cjs.map +1 -0
- package/dist/lib/attachment-carousel.js +96 -85
- package/dist/lib/attachment-carousel.js.map +1 -1
- package/dist/lib/avatar.cjs +400 -0
- package/dist/lib/avatar.cjs.map +1 -0
- package/dist/lib/avatar.js +111 -80
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/badge.cjs +183 -0
- package/dist/lib/badge.cjs.map +1 -0
- package/dist/lib/badge.js +53 -39
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/banner.cjs +210 -0
- package/dist/lib/banner.cjs.map +1 -0
- package/dist/lib/banner.js +58 -48
- package/dist/lib/banner.js.map +1 -1
- package/dist/lib/breadcrumbs.cjs +147 -0
- package/dist/lib/breadcrumbs.cjs.map +1 -0
- package/dist/lib/breadcrumbs.js +57 -48
- package/dist/lib/breadcrumbs.js.map +1 -1
- package/dist/lib/button-group.cjs +48 -0
- package/dist/lib/button-group.cjs.map +1 -0
- package/dist/lib/button-group.js +21 -18
- package/dist/lib/button-group.js.map +1 -1
- package/dist/lib/button.cjs +350 -0
- package/dist/lib/button.cjs.map +1 -0
- package/dist/lib/button.js +98 -76
- package/dist/lib/button.js.map +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +250 -0
- package/dist/lib/callbar-button-with-popover.cjs.map +1 -0
- package/dist/lib/callbar-button-with-popover.js +66 -51
- package/dist/lib/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbar-button.cjs +183 -0
- package/dist/lib/callbar-button.cjs.map +1 -0
- package/dist/lib/callbar-button.js +42 -34
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/callbox.cjs +147 -0
- package/dist/lib/callbox.cjs.map +1 -0
- package/dist/lib/callbox.js +38 -33
- package/dist/lib/callbox.js.map +1 -1
- package/dist/lib/card.cjs +74 -0
- package/dist/lib/card.cjs.map +1 -0
- package/dist/lib/card.js +22 -20
- package/dist/lib/card.js.map +1 -1
- package/dist/lib/checkbox-group.cjs +130 -0
- package/dist/lib/checkbox-group.cjs.map +1 -0
- package/dist/lib/checkbox-group.js +42 -29
- package/dist/lib/checkbox-group.js.map +1 -1
- package/dist/lib/checkbox.cjs +128 -0
- package/dist/lib/checkbox.cjs.map +1 -0
- package/dist/lib/checkbox.js +46 -35
- package/dist/lib/checkbox.js.map +1 -1
- package/dist/lib/chip.cjs +199 -0
- package/dist/lib/chip.cjs.map +1 -0
- package/dist/lib/chip.js +59 -46
- package/dist/lib/chip.js.map +1 -1
- package/dist/lib/codeblock.cjs +30 -0
- package/dist/lib/codeblock.cjs.map +1 -0
- package/dist/lib/codeblock.js +15 -14
- package/dist/lib/codeblock.js.map +1 -1
- package/dist/lib/collapsible.cjs +335 -0
- package/dist/lib/collapsible.cjs.map +1 -0
- package/dist/lib/collapsible.js +91 -69
- package/dist/lib/collapsible.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +520 -0
- package/dist/lib/combobox-multi-select.cjs.map +1 -0
- package/dist/lib/combobox-multi-select.js +223 -136
- package/dist/lib/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover.cjs +385 -0
- package/dist/lib/combobox-with-popover.cjs.map +1 -0
- package/dist/lib/combobox-with-popover.js +131 -87
- package/dist/lib/combobox-with-popover.js.map +1 -1
- package/dist/lib/combobox.cjs +19 -0
- package/dist/lib/combobox.cjs.map +1 -0
- package/dist/lib/combobox.js +9 -9
- package/dist/lib/contact-info.cjs +146 -0
- package/dist/lib/contact-info.cjs.map +1 -0
- package/dist/lib/contact-info.js +34 -33
- package/dist/lib/contact-info.js.map +1 -1
- package/dist/lib/contact-row.cjs +206 -0
- package/dist/lib/contact-row.cjs.map +1 -0
- package/dist/lib/contact-row.js +42 -39
- package/dist/lib/contact-row.js.map +1 -1
- package/dist/lib/datepicker.cjs +663 -0
- package/dist/lib/datepicker.cjs.map +1 -0
- package/dist/lib/datepicker.js +330 -219
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/description-list.cjs +115 -0
- package/dist/lib/description-list.cjs.map +1 -0
- package/dist/lib/description-list.js +51 -19
- package/dist/lib/description-list.js.map +1 -1
- package/dist/lib/dropdown.cjs +46 -0
- package/dist/lib/dropdown.cjs.map +1 -0
- package/dist/lib/dropdown.js +27 -26
- package/dist/lib/dropdown.js.map +1 -1
- package/dist/lib/editor.cjs +556 -0
- package/dist/lib/editor.cjs.map +1 -0
- package/dist/lib/editor.js +191 -162
- package/dist/lib/editor.js.map +1 -1
- package/dist/lib/emoji-picker.cjs +1064 -0
- package/dist/lib/emoji-picker.cjs.map +1 -0
- package/dist/lib/emoji-picker.js +638 -375
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +89 -0
- package/dist/lib/emoji-row.cjs.map +1 -0
- package/dist/lib/emoji-row.js +46 -40
- package/dist/lib/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper.cjs +110 -0
- package/dist/lib/emoji-text-wrapper.cjs.map +1 -0
- package/dist/lib/emoji-text-wrapper.js +49 -35
- package/dist/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/emoji.cjs +146 -0
- package/dist/lib/emoji.cjs.map +1 -0
- package/dist/lib/emoji.js +140 -5
- package/dist/lib/emoji.js.map +1 -1
- package/dist/lib/feed-item-row.cjs +214 -0
- package/dist/lib/feed-item-row.cjs.map +1 -0
- package/dist/lib/feed-item-row.js +71 -64
- package/dist/lib/feed-item-row.js.map +1 -1
- package/dist/lib/feed-pill.cjs +150 -0
- package/dist/lib/feed-pill.cjs.map +1 -0
- package/dist/lib/feed-pill.js +60 -52
- package/dist/lib/feed-pill.js.map +1 -1
- package/dist/lib/general-row.cjs +406 -0
- package/dist/lib/general-row.cjs.map +1 -0
- package/dist/lib/general-row.js +133 -106
- package/dist/lib/general-row.js.map +1 -1
- package/dist/lib/group-row.cjs +118 -0
- package/dist/lib/group-row.cjs.map +1 -0
- package/dist/lib/group-row.js +34 -31
- package/dist/lib/group-row.js.map +1 -1
- package/dist/lib/grouped-chip.cjs +46 -0
- package/dist/lib/grouped-chip.cjs.map +1 -0
- package/dist/lib/grouped-chip.js +28 -27
- package/dist/lib/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard.cjs +228 -0
- package/dist/lib/hovercard.cjs.map +1 -0
- package/dist/lib/hovercard.js +98 -64
- package/dist/lib/hovercard.js.map +1 -1
- package/dist/lib/icon.cjs +60 -0
- package/dist/lib/icon.cjs.map +1 -0
- package/dist/lib/icon.js +22 -44
- package/dist/lib/icon.js.map +1 -1
- package/dist/lib/image-viewer.cjs +191 -0
- package/dist/lib/image-viewer.cjs.map +1 -0
- package/dist/lib/image-viewer.js +83 -63
- package/dist/lib/image-viewer.js.map +1 -1
- package/dist/lib/input-group.cjs +92 -0
- package/dist/lib/input-group.cjs.map +1 -0
- package/dist/lib/input-group.js +29 -27
- package/dist/lib/input-group.js.map +1 -1
- package/dist/lib/input.cjs +493 -0
- package/dist/lib/input.cjs.map +1 -0
- package/dist/lib/input.js +127 -89
- package/dist/lib/input.js.map +1 -1
- package/dist/lib/item-layout.cjs +41 -0
- package/dist/lib/item-layout.cjs.map +1 -0
- package/dist/lib/item-layout.js +15 -13
- package/dist/lib/item-layout.js.map +1 -1
- package/dist/lib/ivr-node.cjs +210 -0
- package/dist/lib/ivr-node.cjs.map +1 -0
- package/dist/lib/ivr-node.js +115 -100
- package/dist/lib/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut.cjs +107 -0
- package/dist/lib/keyboard-shortcut.cjs.map +1 -0
- package/dist/lib/keyboard-shortcut.js +42 -35
- package/dist/lib/keyboard-shortcut.js.map +1 -1
- package/dist/lib/lazy-show.cjs +81 -0
- package/dist/lib/lazy-show.cjs.map +1 -0
- package/dist/lib/lazy-show.js +20 -16
- package/dist/lib/lazy-show.js.map +1 -1
- package/dist/lib/link.cjs +71 -0
- package/dist/lib/link.cjs.map +1 -0
- package/dist/lib/link.js +22 -20
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/list-item-group.cjs +61 -0
- package/dist/lib/list-item-group.cjs.map +1 -0
- package/dist/lib/list-item-group.js +19 -17
- package/dist/lib/list-item-group.js.map +1 -1
- package/dist/lib/list-item.cjs +205 -0
- package/dist/lib/list-item.cjs.map +1 -0
- package/dist/lib/list-item.js +67 -57
- package/dist/lib/list-item.js.map +1 -1
- package/dist/lib/message-input.cjs +555 -0
- package/dist/lib/message-input.cjs.map +1 -0
- package/dist/lib/message-input.js +211 -147
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/modal.cjs +351 -0
- package/dist/lib/modal.cjs.map +1 -0
- package/dist/lib/modal.js +118 -91
- package/dist/lib/modal.js.map +1 -1
- package/dist/lib/notice.cjs +160 -0
- package/dist/lib/notice.cjs.map +1 -0
- package/dist/lib/notice.js +46 -44
- package/dist/lib/notice.js.map +1 -1
- package/dist/lib/pagination.cjs +153 -0
- package/dist/lib/pagination.cjs.map +1 -0
- package/dist/lib/pagination.js +60 -49
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/popover.cjs +957 -0
- package/dist/lib/popover.cjs.map +1 -0
- package/dist/lib/popover.js +401 -222
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/presence.cjs +66 -0
- package/dist/lib/presence.cjs.map +1 -0
- package/dist/lib/presence.js +32 -26
- package/dist/lib/presence.js.map +1 -1
- package/dist/lib/radio-group.cjs +99 -0
- package/dist/lib/radio-group.cjs.map +1 -0
- package/dist/lib/radio-group.js +24 -22
- package/dist/lib/radio-group.js.map +1 -1
- package/dist/lib/radio.cjs +119 -0
- package/dist/lib/radio.cjs.map +1 -0
- package/dist/lib/radio.js +43 -35
- package/dist/lib/radio.js.map +1 -1
- package/dist/lib/rich-text-editor.cjs +1139 -0
- package/dist/lib/rich-text-editor.cjs.map +1 -0
- package/dist/lib/rich-text-editor.js +611 -392
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/root-layout.cjs +131 -0
- package/dist/lib/root-layout.cjs.map +1 -0
- package/dist/lib/root-layout.js +28 -24
- package/dist/lib/root-layout.js.map +1 -1
- package/dist/lib/select-menu.cjs +283 -0
- package/dist/lib/select-menu.cjs.map +1 -0
- package/dist/lib/select-menu.js +101 -61
- package/dist/lib/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button.cjs +66 -0
- package/dist/lib/settings-menu-button.cjs.map +1 -0
- package/dist/lib/settings-menu-button.js +26 -25
- package/dist/lib/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton.cjs +613 -0
- package/dist/lib/skeleton.cjs.map +1 -0
- package/dist/lib/skeleton.js +174 -135
- package/dist/lib/skeleton.js.map +1 -1
- package/dist/lib/stack.cjs +128 -0
- package/dist/lib/stack.cjs.map +1 -0
- package/dist/lib/stack.js +66 -56
- package/dist/lib/stack.js.map +1 -1
- package/dist/lib/tabs.cjs +100 -0
- package/dist/lib/tabs.cjs.map +1 -0
- package/dist/lib/tabs.js +42 -35
- package/dist/lib/tabs.js.map +1 -1
- package/dist/lib/time-pill.cjs +48 -0
- package/dist/lib/time-pill.cjs.map +1 -0
- package/dist/lib/time-pill.js +21 -16
- package/dist/lib/time-pill.js.map +1 -1
- package/dist/lib/toast.cjs +248 -0
- package/dist/lib/toast.cjs.map +1 -0
- package/dist/lib/toast.js +78 -56
- package/dist/lib/toast.js.map +1 -1
- package/dist/lib/toggle.cjs +178 -0
- package/dist/lib/toggle.cjs.map +1 -0
- package/dist/lib/toggle.js +46 -37
- package/dist/lib/toggle.js.map +1 -1
- package/dist/lib/tooltip-directive.cjs +88 -0
- package/dist/lib/tooltip-directive.cjs.map +1 -0
- package/dist/lib/tooltip-directive.js +55 -41
- package/dist/lib/tooltip-directive.js.map +1 -1
- package/dist/lib/tooltip.cjs +437 -0
- package/dist/lib/tooltip.cjs.map +1 -0
- package/dist/lib/tooltip.js +152 -90
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info.cjs +64 -0
- package/dist/lib/top-banner-info.cjs.map +1 -0
- package/dist/lib/top-banner-info.js +22 -18
- package/dist/lib/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill.cjs +64 -0
- package/dist/lib/unread-pill.cjs.map +1 -0
- package/dist/lib/unread-pill.js +25 -22
- package/dist/lib/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages.cjs +86 -0
- package/dist/lib/validation-messages.cjs.map +1 -0
- package/dist/lib/validation-messages.js +32 -29
- package/dist/lib/validation-messages.js.map +1 -1
- package/dist/style.css +1214 -1
- package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
- package/dist/types/components/button/button.vue.d.ts +2 -2
- package/dist/types/components/card/card.vue.d.ts +1 -1
- package/dist/types/components/chip/chip.vue.d.ts +1 -1
- package/dist/types/components/collapsible/collapsible.vue.d.ts +2 -2
- package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
- package/dist/types/components/emoji/emoji.vue.d.ts +1 -1
- package/dist/types/components/icon/icon.vue.d.ts +2 -22
- package/dist/types/components/icon/icon.vue.d.ts.map +1 -1
- package/dist/types/components/list_item_group/list_item_group.vue.d.ts +1 -1
- package/dist/types/components/modal/modal.vue.d.ts +2 -2
- package/dist/types/components/popover/popover_header_footer.vue.d.ts +1 -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/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +91 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
- package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton-text.vue.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton.vue.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +2 -2
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -2
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +90 -0
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
- package/package.json +37 -35
- package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js +0 -33
- package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js.map +0 -1
- package/dist/chunks/dropdown_constants-EUcDxBrX.js +0 -9
- package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +0 -1
- package/dist/chunks/index-YkSDT8-g.js +0 -244
- package/dist/chunks/index-YkSDT8-g.js.map +0 -1
- package/dist/chunks/index-nIyl_PL6.js +0 -372
- package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +0 -197
- package/dist/chunks/link_constants-vIUB92L4.js +0 -16
- package/dist/chunks/list_item_constants-LTUc74pD.js +0 -13
- package/dist/chunks/modal-VuMFkZFH.js +0 -82
- package/dist/chunks/notice_action-9NmtQRai.js +0 -182
- package/dist/chunks/notice_constants-c--hBFQw.js +0 -6
- package/dist/chunks/popover_constants-qjlEkroB.js +0 -114
- package/dist/chunks/sr_only_close_button-JGole5Xi.js +0 -86
- package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
- package/dist/chunks/tab-Qm9LVkYj.js +0 -346
- package/dist/lib/dates.js +0 -57
- package/dist/lib/mixins.js +0 -17
- package/dist/lib/utils.js +0 -175
- package/dist/lib/validators.js +0 -12
- /package/dist/{lib → common}/mixins.js.map +0 -0
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const popover_constants = require("../chunks/popover_constants-JwBF9h1Z.js");
|
|
4
|
+
const common_utils = require("../common/utils.cjs");
|
|
5
|
+
const vueSimplePortal = require("@linusborg/vue-simple-portal");
|
|
6
|
+
const modal = require("../chunks/modal-VgxXAQFP.js");
|
|
7
|
+
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
8
|
+
const lib_button = require("./button.cjs");
|
|
9
|
+
const lib_icon = require("./icon.cjs");
|
|
10
|
+
const sr_only_close_button = require("../chunks/sr_only_close_button-ZaGdAHz7.js");
|
|
11
|
+
const lib_lazyShow = require("./lazy-show.cjs");
|
|
12
|
+
require("tippy.js");
|
|
13
|
+
require("../common/constants.cjs");
|
|
14
|
+
require("vue");
|
|
15
|
+
require("../chunks/link_constants-Huj7D_hm.js");
|
|
16
|
+
require("@dialpad/dialtone-icons/vue2");
|
|
17
|
+
require("../chunks/icon_constants-QYpmdE0R.js");
|
|
18
|
+
require("@dialpad/dialtone-icons/icons.json");
|
|
19
|
+
const _sfc_main$1 = {
|
|
20
|
+
name: "PopoverHeaderFooter",
|
|
21
|
+
components: {
|
|
22
|
+
DtButton: lib_button.DtButton,
|
|
23
|
+
DtIcon: lib_icon.DtIcon
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
// eslint-disable-next-line vue/require-default-prop
|
|
27
|
+
type: {
|
|
28
|
+
type: String,
|
|
29
|
+
validator: function(value) {
|
|
30
|
+
return ["header", "footer"].includes(value);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Additional class name for the content wrapper element.
|
|
35
|
+
*/
|
|
36
|
+
contentClass: {
|
|
37
|
+
type: [String, Array, Object],
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Determines visibility for close button
|
|
42
|
+
* @values true, false
|
|
43
|
+
*/
|
|
44
|
+
showCloseButton: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* A set of props to be passed into the popover's header close button.
|
|
50
|
+
* Requires an 'ariaLabel' property.
|
|
51
|
+
*/
|
|
52
|
+
closeButtonProps: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: () => {
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
emits: [
|
|
59
|
+
/**
|
|
60
|
+
* Emitted when popover is closed
|
|
61
|
+
*
|
|
62
|
+
* @event close
|
|
63
|
+
* @type { Boolean }
|
|
64
|
+
*/
|
|
65
|
+
"close"
|
|
66
|
+
],
|
|
67
|
+
methods: {
|
|
68
|
+
focusCloseButton() {
|
|
69
|
+
var _a;
|
|
70
|
+
const closeButton = (_a = this.$refs["popover__close-button"]) == null ? void 0 : _a.$el;
|
|
71
|
+
closeButton == null ? void 0 : closeButton.focus();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
var _sfc_render$1 = function render() {
|
|
76
|
+
var _vm = this, _c = _vm._self._c;
|
|
77
|
+
return _c("div", { class: {
|
|
78
|
+
"d-popover__header": _vm.type === "header",
|
|
79
|
+
"d-popover__footer": _vm.type === "footer"
|
|
80
|
+
}, attrs: { "data-qa": "dt-popover-header-footer" } }, [_vm.$slots.content ? _c("div", { class: [{
|
|
81
|
+
"d-popover__header__content": _vm.type === "header",
|
|
82
|
+
"d-popover__footer__content": _vm.type === "footer"
|
|
83
|
+
}, _vm.contentClass], attrs: { "data-qa": "dt-popover-header-footer-content" } }, [_vm._t("content")], 2) : _vm._e(), _vm.showCloseButton ? _c("dt-button", _vm._b({ ref: "popover__close-button", class: {
|
|
84
|
+
"d-popover__header__close-button": _vm.type === "header",
|
|
85
|
+
"d-popover__footer__close-button": _vm.type === "footer"
|
|
86
|
+
}, attrs: { "data-qa": "dt-popover-close", "importance": "outlined", "kind": "muted", "circle": "" }, on: { "click": function($event) {
|
|
87
|
+
return _vm.$emit("close");
|
|
88
|
+
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
89
|
+
return [_c("dt-icon", { attrs: { "name": "close", "size": "300" } })];
|
|
90
|
+
}, proxy: true }], null, false, 2538694920) }, "dt-button", _vm.closeButtonProps, false)) : _vm._e()], 1);
|
|
91
|
+
};
|
|
92
|
+
var _sfc_staticRenderFns$1 = [];
|
|
93
|
+
var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
94
|
+
_sfc_main$1,
|
|
95
|
+
_sfc_render$1,
|
|
96
|
+
_sfc_staticRenderFns$1,
|
|
97
|
+
false,
|
|
98
|
+
null,
|
|
99
|
+
null,
|
|
100
|
+
null,
|
|
101
|
+
null
|
|
102
|
+
);
|
|
103
|
+
const PopoverHeaderFooter = __component__$1.exports;
|
|
104
|
+
const _sfc_main = {
|
|
105
|
+
name: "DtPopover",
|
|
106
|
+
/********************
|
|
107
|
+
* CHILD COMPONENTS *
|
|
108
|
+
********************/
|
|
109
|
+
components: {
|
|
110
|
+
SrOnlyCloseButton: sr_only_close_button.SrOnlyCloseButton,
|
|
111
|
+
DtLazyShow: lib_lazyShow.DtLazyShow,
|
|
112
|
+
PopoverHeaderFooter,
|
|
113
|
+
Portal: vueSimplePortal.Portal
|
|
114
|
+
},
|
|
115
|
+
mixins: [modal.Modal, sr_only_close_button.SrOnlyCloseButtonMixin],
|
|
116
|
+
props: {
|
|
117
|
+
/**
|
|
118
|
+
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
119
|
+
* If you set this value, the default trigger behavior will be disabled, and you can control it as you need.
|
|
120
|
+
* Supports .sync modifier
|
|
121
|
+
* @values null, true, false
|
|
122
|
+
*/
|
|
123
|
+
open: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: null
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* Opens the popover on right click (context menu). If you set this value to `true`,
|
|
129
|
+
* the default trigger behavior will be disabled.
|
|
130
|
+
* @values true, false
|
|
131
|
+
*/
|
|
132
|
+
openOnContext: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* Element type (tag name) of the root element of the component.
|
|
138
|
+
*/
|
|
139
|
+
elementType: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: "div"
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Named transition when the content display is toggled.
|
|
145
|
+
* @see DtLazyShow
|
|
146
|
+
*/
|
|
147
|
+
transition: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: "fade"
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* ARIA role for the content of the popover. Defaults to "dialog".
|
|
153
|
+
* <a class="d-link" href="https://www.w3.org/TR/wai-aria/#aria-haspopup" target="_blank">aria-haspopup</a>
|
|
154
|
+
*/
|
|
155
|
+
role: {
|
|
156
|
+
type: String,
|
|
157
|
+
default: "dialog",
|
|
158
|
+
validator: (role) => {
|
|
159
|
+
return popover_constants.POPOVER_ROLES.includes(role);
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* ID of the element that serves as the label for the popover content.
|
|
164
|
+
* Defaults to the "anchor" element; this exists to provide a different
|
|
165
|
+
* ID of the label element if, for example, the anchor slot contains
|
|
166
|
+
* other items that do not serve as a label. You should provide this
|
|
167
|
+
* or ariaLabel, but not both.
|
|
168
|
+
*/
|
|
169
|
+
ariaLabelledby: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: null
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* Descriptive label for the popover content. You should provide this
|
|
175
|
+
* or ariaLabelledby, but not both.
|
|
176
|
+
*/
|
|
177
|
+
ariaLabel: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: null
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
* A set of props to be passed into the popover's header close button.
|
|
183
|
+
* Requires an 'ariaLabel' property, when the header popover is visible
|
|
184
|
+
*/
|
|
185
|
+
closeButtonProps: {
|
|
186
|
+
type: Object,
|
|
187
|
+
default: () => ({})
|
|
188
|
+
},
|
|
189
|
+
/**
|
|
190
|
+
* Padding size class for the popover content.
|
|
191
|
+
* @values none, small, medium, large
|
|
192
|
+
*/
|
|
193
|
+
padding: {
|
|
194
|
+
type: String,
|
|
195
|
+
default: "large",
|
|
196
|
+
validator: (padding) => {
|
|
197
|
+
return Object.keys(popover_constants.POPOVER_PADDING_CLASSES).some((item) => item === padding);
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* Additional class name for the content wrapper element.
|
|
202
|
+
*/
|
|
203
|
+
contentClass: {
|
|
204
|
+
type: [String, Array, Object],
|
|
205
|
+
default: ""
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* Width configuration for the popover content. When its value is 'anchor',
|
|
209
|
+
* the popover content will have the same width as the anchor.
|
|
210
|
+
* @values null, anchor
|
|
211
|
+
*/
|
|
212
|
+
contentWidth: {
|
|
213
|
+
type: String,
|
|
214
|
+
default: "",
|
|
215
|
+
validator: (contentWidth) => popover_constants.POPOVER_CONTENT_WIDTHS.includes(contentWidth)
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
* Tabindex value for the content. Passing null, no tabindex attribute will be set.
|
|
219
|
+
*/
|
|
220
|
+
contentTabindex: {
|
|
221
|
+
type: Number || null,
|
|
222
|
+
default: -1
|
|
223
|
+
},
|
|
224
|
+
/**
|
|
225
|
+
* External anchor id to use in those cases the anchor can't be provided via the slot.
|
|
226
|
+
* For instance, using the combobox's input as the anchor for the popover.
|
|
227
|
+
*/
|
|
228
|
+
externalAnchor: {
|
|
229
|
+
type: String,
|
|
230
|
+
default: ""
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
* The id of the tooltip
|
|
234
|
+
*/
|
|
235
|
+
id: {
|
|
236
|
+
type: String,
|
|
237
|
+
default() {
|
|
238
|
+
return common_utils.getUniqueString();
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
* Displaces the content box from its anchor element
|
|
243
|
+
* by the specified number of pixels.
|
|
244
|
+
* <a
|
|
245
|
+
* class="d-link"
|
|
246
|
+
* href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
|
|
247
|
+
* target="_blank"
|
|
248
|
+
* >
|
|
249
|
+
* Tippy.js docs
|
|
250
|
+
* </a>
|
|
251
|
+
*/
|
|
252
|
+
offset: {
|
|
253
|
+
type: Array,
|
|
254
|
+
default: () => [0, 4]
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
* Determines if the popover hides upon clicking the
|
|
258
|
+
* anchor or outside the content box.
|
|
259
|
+
* @values true, false
|
|
260
|
+
*/
|
|
261
|
+
hideOnClick: {
|
|
262
|
+
type: Boolean,
|
|
263
|
+
default: true
|
|
264
|
+
},
|
|
265
|
+
/**
|
|
266
|
+
* Determines modal state. If enabled popover has a modal overlay
|
|
267
|
+
* preventing interaction with elements below it, but it is invisible.
|
|
268
|
+
* @values true, false
|
|
269
|
+
*/
|
|
270
|
+
modal: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
default: true
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* If the popover does not fit in the direction described by "placement",
|
|
276
|
+
* it will attempt to change its direction to the "fallbackPlacements".
|
|
277
|
+
* <a
|
|
278
|
+
* class="d-link"
|
|
279
|
+
* href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
|
|
280
|
+
* target="_blank"
|
|
281
|
+
* >
|
|
282
|
+
* Popper.js docs
|
|
283
|
+
* </a>
|
|
284
|
+
* */
|
|
285
|
+
fallbackPlacements: {
|
|
286
|
+
type: Array,
|
|
287
|
+
default: () => {
|
|
288
|
+
return ["auto"];
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* The direction the popover displays relative to the anchor.
|
|
293
|
+
* <a
|
|
294
|
+
* class="d-link"
|
|
295
|
+
* href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
|
|
296
|
+
* target="_blank"
|
|
297
|
+
* >
|
|
298
|
+
* Tippy.js docs
|
|
299
|
+
* </a>
|
|
300
|
+
* @values top, top-start, top-end,
|
|
301
|
+
* right, right-start, right-end,
|
|
302
|
+
* left, left-start, left-end,
|
|
303
|
+
* bottom, bottom-start, bottom-end,
|
|
304
|
+
* auto, auto-start, auto-end
|
|
305
|
+
*/
|
|
306
|
+
placement: {
|
|
307
|
+
type: String,
|
|
308
|
+
default: "bottom-end"
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
312
|
+
* If set to true it will never move from its position relative to the anchor and will clip instead.
|
|
313
|
+
* <a
|
|
314
|
+
* class="d-link"
|
|
315
|
+
* href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether"
|
|
316
|
+
* target="_blank"
|
|
317
|
+
* >
|
|
318
|
+
* Popper.js docs
|
|
319
|
+
* </a>
|
|
320
|
+
* @values true, false
|
|
321
|
+
*/
|
|
322
|
+
tether: {
|
|
323
|
+
type: Boolean,
|
|
324
|
+
default: true
|
|
325
|
+
},
|
|
326
|
+
/**
|
|
327
|
+
* If the popover sticks to the anchor. This is usually not needed, but can be needed
|
|
328
|
+
* if the reference element's position is animating, or to automatically update the popover
|
|
329
|
+
* position in those cases the DOM layout changes the reference element's position.
|
|
330
|
+
* `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
|
|
331
|
+
* checks the "popper" rect for changes.
|
|
332
|
+
* <a
|
|
333
|
+
* class="d-link"
|
|
334
|
+
* href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
|
|
335
|
+
* target="_blank"
|
|
336
|
+
* >
|
|
337
|
+
* Tippy.js docs
|
|
338
|
+
* </a>
|
|
339
|
+
* @values true, false, reference, popper
|
|
340
|
+
*/
|
|
341
|
+
sticky: {
|
|
342
|
+
type: [Boolean, String],
|
|
343
|
+
default: false,
|
|
344
|
+
validator: (sticky) => {
|
|
345
|
+
return popover_constants.POPOVER_STICKY_VALUES.includes(sticky);
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
* Determines maximum height for the popover before overflow.
|
|
350
|
+
* Possible units rem|px|em
|
|
351
|
+
*/
|
|
352
|
+
maxHeight: {
|
|
353
|
+
type: String,
|
|
354
|
+
default: ""
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Determines maximum width for the popover before overflow.
|
|
358
|
+
* Possible units rem|px|%|em
|
|
359
|
+
*/
|
|
360
|
+
maxWidth: {
|
|
361
|
+
type: String,
|
|
362
|
+
default: ""
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
* Determines visibility for close button
|
|
366
|
+
* @values true, false
|
|
367
|
+
*/
|
|
368
|
+
showCloseButton: {
|
|
369
|
+
type: Boolean,
|
|
370
|
+
default: false
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
* Additional class name for the header content wrapper element.
|
|
374
|
+
*/
|
|
375
|
+
headerClass: {
|
|
376
|
+
type: [String, Array, Object],
|
|
377
|
+
default: ""
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
* Additional class name for the footer content wrapper element.
|
|
381
|
+
*/
|
|
382
|
+
footerClass: {
|
|
383
|
+
type: [String, Array, Object],
|
|
384
|
+
default: ""
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* Additional class name for the dialog element.
|
|
388
|
+
*/
|
|
389
|
+
dialogClass: {
|
|
390
|
+
type: [String, Array, Object],
|
|
391
|
+
default: ""
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
394
|
+
* The element that is focused when the popover is opened. This can be an
|
|
395
|
+
* HTMLElement within the popover, a string starting with '#' which will
|
|
396
|
+
* find the element by ID. 'first' which will automatically focus
|
|
397
|
+
* the first element, or 'dialog' which will focus the dialog window itself.
|
|
398
|
+
* If the dialog is modal this prop cannot be 'none'.
|
|
399
|
+
* @values none, dialog, first
|
|
400
|
+
*/
|
|
401
|
+
initialFocusElement: {
|
|
402
|
+
type: [String, HTMLElement],
|
|
403
|
+
default: "first",
|
|
404
|
+
validator: (initialFocusElement) => {
|
|
405
|
+
return popover_constants.POPOVER_INITIAL_FOCUS_STRINGS.includes(initialFocusElement) || initialFocusElement instanceof HTMLElement || initialFocusElement.startsWith("#");
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
410
|
+
* This can be set when not passing open prop.
|
|
411
|
+
* @values true, false
|
|
412
|
+
*/
|
|
413
|
+
openWithArrowKeys: {
|
|
414
|
+
type: Boolean,
|
|
415
|
+
default: false
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
* Sets the element to which the popover is going to append to.
|
|
419
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
420
|
+
* @values 'body', 'parent', HTMLElement,
|
|
421
|
+
*/
|
|
422
|
+
appendTo: {
|
|
423
|
+
type: [HTMLElement, String],
|
|
424
|
+
default: "body",
|
|
425
|
+
validator: (appendTo) => {
|
|
426
|
+
return popover_constants.POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
* Set this prop to true and popover component will support hovercard behaviour
|
|
431
|
+
* It will open on mouseenter and close on mouseleave with timer delay of 300ms
|
|
432
|
+
*/
|
|
433
|
+
hovercard: {
|
|
434
|
+
type: Boolean,
|
|
435
|
+
default: false
|
|
436
|
+
},
|
|
437
|
+
/**
|
|
438
|
+
* The timer is used only when the hovercard prop is true.
|
|
439
|
+
* It defines the delays when opening several hovercards.
|
|
440
|
+
* It must have the keys: enter, leave and current.
|
|
441
|
+
* If null, the default delay of 300ms will be used.
|
|
442
|
+
*/
|
|
443
|
+
timer: {
|
|
444
|
+
type: [Object, null],
|
|
445
|
+
default: null,
|
|
446
|
+
validator: (timer) => {
|
|
447
|
+
return timer === null || timer.enter && timer.leave && Object.keys(timer).includes("current");
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
emits: [
|
|
452
|
+
/**
|
|
453
|
+
* Emitted when popover is shown or hidden
|
|
454
|
+
*
|
|
455
|
+
* @event opened
|
|
456
|
+
* @type {Boolean | Array}
|
|
457
|
+
*/
|
|
458
|
+
"opened",
|
|
459
|
+
/**
|
|
460
|
+
* Emitted to sync value with parent
|
|
461
|
+
*
|
|
462
|
+
* @event update:opened
|
|
463
|
+
* @type {Boolean | Array}
|
|
464
|
+
*/
|
|
465
|
+
"update:open"
|
|
466
|
+
],
|
|
467
|
+
data() {
|
|
468
|
+
return {
|
|
469
|
+
POPOVER_PADDING_CLASSES: popover_constants.POPOVER_PADDING_CLASSES,
|
|
470
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: popover_constants.POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
471
|
+
intersectionObserver: null,
|
|
472
|
+
isOutsideViewport: false,
|
|
473
|
+
isOpen: false,
|
|
474
|
+
anchorEl: null,
|
|
475
|
+
popoverContentEl: null,
|
|
476
|
+
inTimer: null,
|
|
477
|
+
outTimer: null
|
|
478
|
+
};
|
|
479
|
+
},
|
|
480
|
+
computed: {
|
|
481
|
+
popoverListeners() {
|
|
482
|
+
return {
|
|
483
|
+
...this.$listeners,
|
|
484
|
+
keydown: (event) => {
|
|
485
|
+
this.onKeydown(event);
|
|
486
|
+
this.$emit("keydown", event);
|
|
487
|
+
},
|
|
488
|
+
"after-leave": (event) => {
|
|
489
|
+
this.onLeaveTransitionComplete();
|
|
490
|
+
},
|
|
491
|
+
"after-enter": (event) => {
|
|
492
|
+
this.onEnterTransitionComplete();
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
},
|
|
496
|
+
calculatedMaxHeight() {
|
|
497
|
+
if (this.isOutsideViewport && this.modal) {
|
|
498
|
+
return `calc(100vh - var(--dt-space-300))`;
|
|
499
|
+
}
|
|
500
|
+
return this.maxHeight;
|
|
501
|
+
},
|
|
502
|
+
labelledBy() {
|
|
503
|
+
return this.ariaLabelledby || !this.ariaLabel && common_utils.getUniqueString("DtPopover__anchor");
|
|
504
|
+
},
|
|
505
|
+
currentHovercard() {
|
|
506
|
+
var _a;
|
|
507
|
+
return (_a = this.timer) == null ? void 0 : _a.current.value;
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
watch: {
|
|
511
|
+
$props: {
|
|
512
|
+
immediate: true,
|
|
513
|
+
deep: true,
|
|
514
|
+
handler() {
|
|
515
|
+
this.validateProps();
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
modal(modal2) {
|
|
519
|
+
var _a;
|
|
520
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
521
|
+
zIndex: modal2 ? 650 : this.calculateAnchorZindex()
|
|
522
|
+
});
|
|
523
|
+
},
|
|
524
|
+
offset(offset) {
|
|
525
|
+
var _a;
|
|
526
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
527
|
+
offset
|
|
528
|
+
});
|
|
529
|
+
},
|
|
530
|
+
sticky(sticky) {
|
|
531
|
+
var _a;
|
|
532
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
533
|
+
sticky
|
|
534
|
+
});
|
|
535
|
+
},
|
|
536
|
+
fallbackPlacements() {
|
|
537
|
+
var _a;
|
|
538
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
539
|
+
popperOptions: this.popperOptions()
|
|
540
|
+
});
|
|
541
|
+
},
|
|
542
|
+
tether() {
|
|
543
|
+
var _a;
|
|
544
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
545
|
+
popperOptions: this.popperOptions()
|
|
546
|
+
});
|
|
547
|
+
},
|
|
548
|
+
placement(placement) {
|
|
549
|
+
var _a;
|
|
550
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
551
|
+
placement
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
open: {
|
|
555
|
+
handler: function(open) {
|
|
556
|
+
if (open !== null) {
|
|
557
|
+
this.isOpen = open;
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
immediate: true
|
|
561
|
+
},
|
|
562
|
+
isOpen(isOpen, isPrev) {
|
|
563
|
+
if (isOpen) {
|
|
564
|
+
this.initTippyInstance();
|
|
565
|
+
this.tip.show();
|
|
566
|
+
} else if (!isOpen && isPrev !== isOpen) {
|
|
567
|
+
this.removeEventListeners();
|
|
568
|
+
this.tip.hide();
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
currentHovercard() {
|
|
572
|
+
if (this.hovercard && this.timer) {
|
|
573
|
+
if (this.currentHovercard === this.id) {
|
|
574
|
+
this.isOpen = true;
|
|
575
|
+
} else {
|
|
576
|
+
this.isOpen = false;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
mounted() {
|
|
582
|
+
var _a;
|
|
583
|
+
const externalAnchorEl = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
|
|
584
|
+
this.anchorEl = externalAnchorEl ?? this.$refs.anchor.children[0];
|
|
585
|
+
this.popoverContentEl = (_a = this.$refs.content) == null ? void 0 : _a.$el;
|
|
586
|
+
if (this.isOpen) {
|
|
587
|
+
this.initTippyInstance();
|
|
588
|
+
this.tip.show();
|
|
589
|
+
}
|
|
590
|
+
this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport);
|
|
591
|
+
this.intersectionObserver.observe(this.popoverContentEl);
|
|
592
|
+
},
|
|
593
|
+
beforeDestroy() {
|
|
594
|
+
var _a;
|
|
595
|
+
(_a = this.tip) == null ? void 0 : _a.destroy();
|
|
596
|
+
this.intersectionObserver.disconnect();
|
|
597
|
+
this.removeReferences();
|
|
598
|
+
this.removeEventListeners();
|
|
599
|
+
},
|
|
600
|
+
/******************
|
|
601
|
+
* METHODS *
|
|
602
|
+
******************/
|
|
603
|
+
methods: {
|
|
604
|
+
hasIntersectedViewport(entries) {
|
|
605
|
+
var _a;
|
|
606
|
+
const dialog = (_a = entries == null ? void 0 : entries[0]) == null ? void 0 : _a.target;
|
|
607
|
+
if (!dialog)
|
|
608
|
+
return;
|
|
609
|
+
const isOut = common_utils.isOutOfViewPort(dialog);
|
|
610
|
+
this.isOutsideViewport = isOut.bottom || isOut.top;
|
|
611
|
+
},
|
|
612
|
+
popperOptions() {
|
|
613
|
+
return popover_constants.getPopperOptions({
|
|
614
|
+
fallbackPlacements: this.fallbackPlacements,
|
|
615
|
+
tether: this.tether,
|
|
616
|
+
hasHideModifierEnabled: true
|
|
617
|
+
});
|
|
618
|
+
},
|
|
619
|
+
validateProps() {
|
|
620
|
+
if (this.modal && this.initialFocusElement === "none") {
|
|
621
|
+
console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement');
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
calculateAnchorZindex() {
|
|
625
|
+
var _a;
|
|
626
|
+
if (this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 650 when
|
|
627
|
+
// anchor of popover is within a drawer.
|
|
628
|
+
((_a = this.anchorEl) == null ? void 0 : _a.closest(".d-zi-drawer"))) {
|
|
629
|
+
return 650;
|
|
630
|
+
} else {
|
|
631
|
+
return 300;
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
defaultToggleOpen(e) {
|
|
635
|
+
var _a, _b;
|
|
636
|
+
if (this.hovercard) {
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
if (this.openOnContext) {
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
this.open ?? (((_a = this.anchorEl) == null ? void 0 : _a.contains(e.target)) && !((_b = this.anchorEl) == null ? void 0 : _b.disabled) && this.toggleOpen());
|
|
643
|
+
},
|
|
644
|
+
async onContext(event) {
|
|
645
|
+
if (!this.openOnContext) {
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
event.preventDefault();
|
|
649
|
+
this.isOpen = true;
|
|
650
|
+
await this.$nextTick();
|
|
651
|
+
this.tip.setProps({
|
|
652
|
+
placement: "right-start",
|
|
653
|
+
getReferenceClientRect: () => ({
|
|
654
|
+
width: 0,
|
|
655
|
+
height: 0,
|
|
656
|
+
top: event.clientY,
|
|
657
|
+
bottom: event.clientY,
|
|
658
|
+
left: event.clientX,
|
|
659
|
+
right: event.clientX
|
|
660
|
+
})
|
|
661
|
+
});
|
|
662
|
+
},
|
|
663
|
+
toggleOpen() {
|
|
664
|
+
this.isOpen = !this.isOpen;
|
|
665
|
+
},
|
|
666
|
+
onArrowKeyPress(e) {
|
|
667
|
+
var _a;
|
|
668
|
+
if (this.open !== null) {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
if (this.openWithArrowKeys && ((_a = this.anchorEl) == null ? void 0 : _a.contains(e.target))) {
|
|
672
|
+
if (!this.isOpen) {
|
|
673
|
+
this.isOpen = true;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
addEventListeners() {
|
|
678
|
+
window.addEventListener("dt-popover-close", this.closePopover);
|
|
679
|
+
if (this.contentWidth === "anchor") {
|
|
680
|
+
window.addEventListener("resize", this.onResize);
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
removeEventListeners() {
|
|
684
|
+
window.removeEventListener("dt-popover-close", this.closePopover);
|
|
685
|
+
if (this.contentWidth === "anchor") {
|
|
686
|
+
window.removeEventListener("resize", this.onResize);
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
closePopover() {
|
|
690
|
+
this.isOpen = false;
|
|
691
|
+
},
|
|
692
|
+
/*
|
|
693
|
+
* Prevents scrolling outside of the currently opened modal popover by:
|
|
694
|
+
* - when anchor is not within another popover: setting the body to overflow: hidden
|
|
695
|
+
* - when anchor is within another popover: set the popover dialog container to it's non-modal z-index
|
|
696
|
+
* since it is no longer the active modal. This puts it underneath the overlay and prevents scrolling.
|
|
697
|
+
**/
|
|
698
|
+
preventScrolling() {
|
|
699
|
+
var _a, _b;
|
|
700
|
+
if (this.modal) {
|
|
701
|
+
const element = (_a = this.anchorEl) == null ? void 0 : _a.closest("body, .tippy-box");
|
|
702
|
+
if (!element)
|
|
703
|
+
return;
|
|
704
|
+
if (((_b = element.tagName) == null ? void 0 : _b.toLowerCase()) === "body") {
|
|
705
|
+
element.classList.add("d-of-hidden");
|
|
706
|
+
this.tip.setProps({ offset: this.offset });
|
|
707
|
+
} else {
|
|
708
|
+
element.classList.add("d-zi-popover");
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
/*
|
|
713
|
+
* Resets the prevent scrolling properties set in preventScrolling() back to normal.
|
|
714
|
+
**/
|
|
715
|
+
enableScrolling() {
|
|
716
|
+
var _a, _b;
|
|
717
|
+
const element = (_a = this.anchorEl) == null ? void 0 : _a.closest("body, .tippy-box");
|
|
718
|
+
if (!element)
|
|
719
|
+
return;
|
|
720
|
+
if (((_b = element.tagName) == null ? void 0 : _b.toLowerCase()) === "body") {
|
|
721
|
+
element.classList.remove("d-of-hidden");
|
|
722
|
+
this.tip.setProps({ offset: this.offset });
|
|
723
|
+
} else {
|
|
724
|
+
element.classList.remove("d-zi-popover");
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
removeReferences() {
|
|
728
|
+
this.anchorEl = null;
|
|
729
|
+
this.popoverContentEl = null;
|
|
730
|
+
this.tip = null;
|
|
731
|
+
},
|
|
732
|
+
async onShow() {
|
|
733
|
+
if (this.contentWidth === "anchor") {
|
|
734
|
+
await this.setPopoverContentAnchorWidth();
|
|
735
|
+
}
|
|
736
|
+
if (this.contentWidth === null) {
|
|
737
|
+
this.popoverContentEl.style.width = "auto";
|
|
738
|
+
}
|
|
739
|
+
this.addEventListeners();
|
|
740
|
+
},
|
|
741
|
+
async onLeaveTransitionComplete() {
|
|
742
|
+
var _a;
|
|
743
|
+
if (this.modal) {
|
|
744
|
+
await this.focusFirstElement(this.$refs.anchor);
|
|
745
|
+
await this.$nextTick();
|
|
746
|
+
this.enableScrolling();
|
|
747
|
+
}
|
|
748
|
+
(_a = this.tip) == null ? void 0 : _a.unmount();
|
|
749
|
+
this.$emit("opened", false);
|
|
750
|
+
if (this.open !== null) {
|
|
751
|
+
this.$emit("update:open", false);
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
async onEnterTransitionComplete() {
|
|
755
|
+
this.focusInitialElement();
|
|
756
|
+
await this.$nextTick();
|
|
757
|
+
this.preventScrolling();
|
|
758
|
+
this.$emit("opened", true, this.$refs.popover__content);
|
|
759
|
+
if (this.open !== null) {
|
|
760
|
+
this.$emit("update:open", true);
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
focusInitialElement() {
|
|
764
|
+
var _a, _b;
|
|
765
|
+
if (this.initialFocusElement === "dialog") {
|
|
766
|
+
(_b = (_a = this.$refs.content) == null ? void 0 : _a.$el) == null ? void 0 : _b.focus();
|
|
767
|
+
}
|
|
768
|
+
if (this.initialFocusElement.startsWith("#")) {
|
|
769
|
+
this.focusInitialElementById();
|
|
770
|
+
}
|
|
771
|
+
if (this.initialFocusElement === "first") {
|
|
772
|
+
this.focusFirstElementIfNeeded(this.$refs.popover__content);
|
|
773
|
+
}
|
|
774
|
+
if (this.initialFocusElement instanceof HTMLElement) {
|
|
775
|
+
this.initialFocusElement.focus();
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
focusInitialElementById() {
|
|
779
|
+
var _a, _b, _c;
|
|
780
|
+
const result = (_b = (_a = this.$refs.content) == null ? void 0 : _a.$el) == null ? void 0 : _b.querySelector(this.initialFocusElement);
|
|
781
|
+
if (result) {
|
|
782
|
+
result.focus();
|
|
783
|
+
} else {
|
|
784
|
+
console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.');
|
|
785
|
+
}
|
|
786
|
+
result ? result.focus() : (_c = this.$refs.content) == null ? void 0 : _c.$el.focus();
|
|
787
|
+
},
|
|
788
|
+
onResize() {
|
|
789
|
+
this.closePopover();
|
|
790
|
+
},
|
|
791
|
+
onClickOutside() {
|
|
792
|
+
if (!this.hideOnClick)
|
|
793
|
+
return;
|
|
794
|
+
const innerModals = this.popoverContentEl.querySelector(".d-popover__anchor--opened");
|
|
795
|
+
if (!innerModals) {
|
|
796
|
+
this.closePopover();
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
onKeydown(e) {
|
|
800
|
+
if (e.key === "Tab") {
|
|
801
|
+
if (this.modal) {
|
|
802
|
+
this.focusTrappedTabPress(e, this.popoverContentEl);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
if (e.key === "Escape") {
|
|
806
|
+
this.closePopover();
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
async setPopoverContentAnchorWidth() {
|
|
810
|
+
var _a;
|
|
811
|
+
await this.$nextTick();
|
|
812
|
+
this.popoverContentEl.style.width = `${(_a = this.anchorEl) == null ? void 0 : _a.clientWidth}px`;
|
|
813
|
+
},
|
|
814
|
+
focusFirstElementIfNeeded(domEl) {
|
|
815
|
+
var _a, _b;
|
|
816
|
+
const focusableElements = this._getFocusableElements(domEl, true);
|
|
817
|
+
if (focusableElements.length !== 0) {
|
|
818
|
+
this.focusFirstElement(domEl);
|
|
819
|
+
} else if (this.showCloseButton) {
|
|
820
|
+
(_a = this.$refs.popover__header) == null ? void 0 : _a.focusCloseButton();
|
|
821
|
+
} else {
|
|
822
|
+
(_b = this.$refs.content) == null ? void 0 : _b.$el.focus();
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
initTippyInstance() {
|
|
826
|
+
var _a, _b;
|
|
827
|
+
this.tip = popover_constants.createTippy(this.anchorEl, {
|
|
828
|
+
popperOptions: this.popperOptions(),
|
|
829
|
+
contentElement: this.popoverContentEl,
|
|
830
|
+
placement: this.placement,
|
|
831
|
+
offset: this.offset,
|
|
832
|
+
sticky: this.sticky,
|
|
833
|
+
appendTo: this.appendTo === "body" ? (_b = (_a = this.anchorEl) == null ? void 0 : _a.getRootNode()) == null ? void 0 : _b.querySelector("body") : this.appendTo,
|
|
834
|
+
interactive: true,
|
|
835
|
+
trigger: "manual",
|
|
836
|
+
// We have to manage hideOnClick functionality manually to handle
|
|
837
|
+
// popover within popover situations.
|
|
838
|
+
hideOnClick: false,
|
|
839
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
840
|
+
onClickOutside: this.onClickOutside,
|
|
841
|
+
onShow: this.onShow
|
|
842
|
+
});
|
|
843
|
+
},
|
|
844
|
+
// ============================================================================
|
|
845
|
+
// $ HOVERCARD
|
|
846
|
+
// ----------------------------------------------------------------------------
|
|
847
|
+
setInTimer() {
|
|
848
|
+
this.inTimer = setTimeout(() => {
|
|
849
|
+
this.isOpen = true;
|
|
850
|
+
}, popover_constants.TOOLTIP_DELAY_MS);
|
|
851
|
+
},
|
|
852
|
+
setOutTimer() {
|
|
853
|
+
this.outTimer = setTimeout(() => {
|
|
854
|
+
this.isOpen = false;
|
|
855
|
+
}, popover_constants.TOOLTIP_DELAY_MS);
|
|
856
|
+
},
|
|
857
|
+
onEnterAnchor() {
|
|
858
|
+
if (!this.hovercard)
|
|
859
|
+
return;
|
|
860
|
+
if (this.timer)
|
|
861
|
+
this.timer.enter(this.id);
|
|
862
|
+
else {
|
|
863
|
+
clearTimeout(this.outTimer);
|
|
864
|
+
this.setInTimer();
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
onLeaveAnchor() {
|
|
868
|
+
if (!this.hovercard)
|
|
869
|
+
return;
|
|
870
|
+
if (this.timer)
|
|
871
|
+
this.timer.leave();
|
|
872
|
+
else {
|
|
873
|
+
clearTimeout(this.inTimer);
|
|
874
|
+
this.setOutTimer();
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
onEnterContent() {
|
|
878
|
+
if (!this.hovercard)
|
|
879
|
+
return;
|
|
880
|
+
if (this.timer)
|
|
881
|
+
this.timer.enter(this.id);
|
|
882
|
+
else
|
|
883
|
+
clearTimeout(this.outTimer);
|
|
884
|
+
},
|
|
885
|
+
onLeaveContent() {
|
|
886
|
+
if (!this.hovercard)
|
|
887
|
+
return;
|
|
888
|
+
if (this.timer)
|
|
889
|
+
this.timer.leave();
|
|
890
|
+
else
|
|
891
|
+
this.setOutTimer();
|
|
892
|
+
}
|
|
893
|
+
// ============================================================================
|
|
894
|
+
// $ HOVERCARD
|
|
895
|
+
// ----------------------------------------------------------------------------
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
var _sfc_render = function render2() {
|
|
899
|
+
var _vm = this, _c = _vm._self._c;
|
|
900
|
+
return _c("div", [_vm.modal && _vm.isOpen ? _c("portal", [_c("div", { staticClass: "d-modal--transparent", attrs: { "aria-hidden": _vm.modal && _vm.isOpen ? "false" : "true" }, on: { "click": function($event) {
|
|
901
|
+
$event.preventDefault();
|
|
902
|
+
$event.stopPropagation();
|
|
903
|
+
} } })]) : _vm._e(), _c(_vm.elementType, _vm._g({ ref: "popover", tag: "component", class: ["d-popover", { "d-popover__anchor--opened": _vm.isOpen }], attrs: { "data-qa": "dt-popover-container" } }, _vm.$listeners), [_c("div", { ref: "anchor", attrs: { "id": !_vm.ariaLabelledby && _vm.labelledBy, "data-qa": _vm.$attrs["data-qa"] ? `${_vm.$attrs["data-qa"]}-anchor` : "dt-popover-anchor", "tabindex": _vm.openOnContext ? 0 : void 0 }, on: { "!click": function($event) {
|
|
904
|
+
return _vm.defaultToggleOpen.apply(null, arguments);
|
|
905
|
+
}, "contextmenu": _vm.onContext, "keydown": [function($event) {
|
|
906
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"]))
|
|
907
|
+
return null;
|
|
908
|
+
$event.preventDefault();
|
|
909
|
+
return _vm.onArrowKeyPress.apply(null, arguments);
|
|
910
|
+
}, function($event) {
|
|
911
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"]))
|
|
912
|
+
return null;
|
|
913
|
+
$event.preventDefault();
|
|
914
|
+
return _vm.onArrowKeyPress.apply(null, arguments);
|
|
915
|
+
}], "!keydown": function($event) {
|
|
916
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "escape", void 0, $event.key, void 0))
|
|
917
|
+
return null;
|
|
918
|
+
return _vm.closePopover.apply(null, arguments);
|
|
919
|
+
}, "mouseenter": _vm.onEnterAnchor, "mouseleave": _vm.onLeaveAnchor } }, [_vm._t("anchor", null, { "attrs": {
|
|
920
|
+
"aria-expanded": _vm.isOpen.toString(),
|
|
921
|
+
"aria-controls": _vm.id,
|
|
922
|
+
"aria-haspopup": _vm.role
|
|
923
|
+
} })], 2), _c("dt-lazy-show", _vm._g({ ref: "content", class: ["d-popover__dialog", { "d-popover__dialog--modal": _vm.modal }, _vm.dialogClass], style: {
|
|
924
|
+
"max-height": _vm.calculatedMaxHeight,
|
|
925
|
+
"max-width": _vm.maxWidth
|
|
926
|
+
}, attrs: { "id": _vm.id, "role": _vm.role, "data-qa": _vm.$attrs["data-qa"] ? `${_vm.$attrs["data-qa"]}__dialog` : "dt-popover", "aria-hidden": `${!_vm.isOpen}`, "aria-labelledby": _vm.labelledBy, "aria-label": _vm.ariaLabel, "aria-modal": `${!_vm.modal}`, "transition": _vm.transition, "show": _vm.isOpen, "tabindex": _vm.contentTabindex, "appear": "" }, on: { "mouseenter": _vm.onEnterContent, "mouseleave": _vm.onLeaveContent } }, _vm.popoverListeners), [_vm.$slots.headerContent || _vm.showCloseButton ? _c("popover-header-footer", { ref: "popover__header", class: _vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding], attrs: { "content-class": _vm.headerClass, "type": "header", "show-close-button": _vm.showCloseButton, "close-button-props": _vm.closeButtonProps }, on: { "close": _vm.closePopover }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
927
|
+
return [_vm._t("headerContent", null, { "close": _vm.closePopover })];
|
|
928
|
+
}, proxy: true }], null, true) }) : _vm._e(), _c("div", { ref: "popover__content", class: [
|
|
929
|
+
"d-popover__content",
|
|
930
|
+
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
931
|
+
_vm.contentClass
|
|
932
|
+
], attrs: { "data-qa": _vm.$attrs["data-qa"] ? `${_vm.$attrs["data-qa"]}-content` : "dt-popover-content" } }, [_vm._t("content", null, { "close": _vm.closePopover })], 2), _vm.$slots.footerContent ? _c("popover-header-footer", { ref: "popover__footer", class: _vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding], attrs: { "type": "footer", "content-class": _vm.footerClass }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
933
|
+
return [_vm._t("footerContent", null, { "close": _vm.closePopover })];
|
|
934
|
+
}, proxy: true }], null, true) }) : _vm._e(), _vm.showVisuallyHiddenClose ? _c("sr-only-close-button", { attrs: { "visually-hidden-close-label": _vm.visuallyHiddenCloseLabel }, on: { "close": _vm.closePopover } }) : _vm._e()], 1)], 1)], 1);
|
|
935
|
+
};
|
|
936
|
+
var _sfc_staticRenderFns = [];
|
|
937
|
+
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
938
|
+
_sfc_main,
|
|
939
|
+
_sfc_render,
|
|
940
|
+
_sfc_staticRenderFns,
|
|
941
|
+
false,
|
|
942
|
+
null,
|
|
943
|
+
null,
|
|
944
|
+
null,
|
|
945
|
+
null
|
|
946
|
+
);
|
|
947
|
+
const DtPopover = __component__.exports;
|
|
948
|
+
exports.POPOVER_APPEND_TO_VALUES = popover_constants.POPOVER_APPEND_TO_VALUES;
|
|
949
|
+
exports.POPOVER_CONTENT_WIDTHS = popover_constants.POPOVER_CONTENT_WIDTHS;
|
|
950
|
+
exports.POPOVER_DIRECTIONS = popover_constants.POPOVER_DIRECTIONS;
|
|
951
|
+
exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES = popover_constants.POPOVER_HEADER_FOOTER_PADDING_CLASSES;
|
|
952
|
+
exports.POPOVER_INITIAL_FOCUS_STRINGS = popover_constants.POPOVER_INITIAL_FOCUS_STRINGS;
|
|
953
|
+
exports.POPOVER_PADDING_CLASSES = popover_constants.POPOVER_PADDING_CLASSES;
|
|
954
|
+
exports.POPOVER_ROLES = popover_constants.POPOVER_ROLES;
|
|
955
|
+
exports.POPOVER_STICKY_VALUES = popover_constants.POPOVER_STICKY_VALUES;
|
|
956
|
+
exports.DtPopover = DtPopover;
|
|
957
|
+
//# sourceMappingURL=popover.cjs.map
|