@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
package/dist/lib/popover.js
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { getUniqueString
|
|
4
|
-
import { Portal
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { DtButton
|
|
8
|
-
import { DtIcon
|
|
9
|
-
import {
|
|
10
|
-
import { DtLazyShow
|
|
1
|
+
import { POPOVER_ROLES, POPOVER_PADDING_CLASSES, POPOVER_CONTENT_WIDTHS, POPOVER_STICKY_VALUES, POPOVER_INITIAL_FOCUS_STRINGS, POPOVER_APPEND_TO_VALUES, POPOVER_HEADER_FOOTER_PADDING_CLASSES, getPopperOptions, createTippy, TOOLTIP_DELAY_MS } from "../chunks/popover_constants-Qkpb0yh2.js";
|
|
2
|
+
import { POPOVER_DIRECTIONS } from "../chunks/popover_constants-Qkpb0yh2.js";
|
|
3
|
+
import { getUniqueString, isOutOfViewPort } from "../common/utils.js";
|
|
4
|
+
import { Portal } from "@linusborg/vue-simple-portal";
|
|
5
|
+
import { Modal } from "../chunks/modal-XOr4kiNZ.js";
|
|
6
|
+
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
7
|
+
import { DtButton } from "./button.js";
|
|
8
|
+
import { DtIcon } from "./icon.js";
|
|
9
|
+
import { SrOnlyCloseButton, SrOnlyCloseButtonMixin } from "../chunks/sr_only_close_button-81bHIpPu.js";
|
|
10
|
+
import { DtLazyShow } from "./lazy-show.js";
|
|
11
11
|
import "tippy.js";
|
|
12
|
-
import "
|
|
12
|
+
import "../common/constants.js";
|
|
13
13
|
import "vue";
|
|
14
|
-
import "../chunks/link_constants-
|
|
14
|
+
import "../chunks/link_constants-nWVlXQBs.js";
|
|
15
15
|
import "@dialpad/dialtone-icons/vue2";
|
|
16
|
-
import "../chunks/icon_constants-
|
|
16
|
+
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
17
17
|
import "@dialpad/dialtone-icons/icons.json";
|
|
18
|
-
|
|
19
|
-
const C = {
|
|
18
|
+
const _sfc_main$1 = {
|
|
20
19
|
name: "PopoverHeaderFooter",
|
|
21
20
|
components: {
|
|
22
|
-
DtButton
|
|
23
|
-
DtIcon
|
|
21
|
+
DtButton,
|
|
22
|
+
DtIcon
|
|
24
23
|
},
|
|
25
24
|
props: {
|
|
26
25
|
// eslint-disable-next-line vue/require-default-prop
|
|
27
26
|
type: {
|
|
28
27
|
type: String,
|
|
29
|
-
validator: function(
|
|
30
|
-
return ["header", "footer"].includes(
|
|
28
|
+
validator: function(value) {
|
|
29
|
+
return ["header", "footer"].includes(value);
|
|
31
30
|
}
|
|
32
31
|
},
|
|
33
32
|
/**
|
|
@@ -43,7 +42,7 @@ const C = {
|
|
|
43
42
|
*/
|
|
44
43
|
showCloseButton: {
|
|
45
44
|
type: Boolean,
|
|
46
|
-
default:
|
|
45
|
+
default: false
|
|
47
46
|
},
|
|
48
47
|
/**
|
|
49
48
|
* A set of props to be passed into the popover's header close button.
|
|
@@ -66,50 +65,53 @@ const C = {
|
|
|
66
65
|
],
|
|
67
66
|
methods: {
|
|
68
67
|
focusCloseButton() {
|
|
69
|
-
var
|
|
70
|
-
const
|
|
71
|
-
|
|
68
|
+
var _a;
|
|
69
|
+
const closeButton = (_a = this.$refs["popover__close-button"]) == null ? void 0 : _a.$el;
|
|
70
|
+
closeButton == null ? void 0 : closeButton.focus();
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
};
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
return
|
|
78
|
-
"d-popover__header":
|
|
79
|
-
"d-popover__footer":
|
|
80
|
-
}, attrs: { "data-qa": "dt-popover-header-footer" } }, [
|
|
81
|
-
"d-popover__header__content":
|
|
82
|
-
"d-popover__footer__content":
|
|
83
|
-
},
|
|
84
|
-
"d-popover__header__close-button":
|
|
85
|
-
"d-popover__footer__close-button":
|
|
86
|
-
}, attrs: { "data-qa": "dt-popover-close", importance: "outlined", kind: "muted", circle: "" }, on: { click: function(
|
|
87
|
-
return
|
|
88
|
-
} }, scopedSlots:
|
|
89
|
-
return [
|
|
90
|
-
}, proxy:
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
74
|
+
var _sfc_render$1 = function render() {
|
|
75
|
+
var _vm = this, _c = _vm._self._c;
|
|
76
|
+
return _c("div", { class: {
|
|
77
|
+
"d-popover__header": _vm.type === "header",
|
|
78
|
+
"d-popover__footer": _vm.type === "footer"
|
|
79
|
+
}, attrs: { "data-qa": "dt-popover-header-footer" } }, [_vm.$slots.content ? _c("div", { class: [{
|
|
80
|
+
"d-popover__header__content": _vm.type === "header",
|
|
81
|
+
"d-popover__footer__content": _vm.type === "footer"
|
|
82
|
+
}, _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: {
|
|
83
|
+
"d-popover__header__close-button": _vm.type === "header",
|
|
84
|
+
"d-popover__footer__close-button": _vm.type === "footer"
|
|
85
|
+
}, attrs: { "data-qa": "dt-popover-close", "importance": "outlined", "kind": "muted", "circle": "" }, on: { "click": function($event) {
|
|
86
|
+
return _vm.$emit("close");
|
|
87
|
+
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
88
|
+
return [_c("dt-icon", { attrs: { "name": "close", "size": "300" } })];
|
|
89
|
+
}, proxy: true }], null, false, 2538694920) }, "dt-button", _vm.closeButtonProps, false)) : _vm._e()], 1);
|
|
90
|
+
};
|
|
91
|
+
var _sfc_staticRenderFns$1 = [];
|
|
92
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
93
|
+
_sfc_main$1,
|
|
94
|
+
_sfc_render$1,
|
|
95
|
+
_sfc_staticRenderFns$1,
|
|
96
|
+
false,
|
|
96
97
|
null,
|
|
97
98
|
null,
|
|
98
99
|
null,
|
|
99
100
|
null
|
|
100
101
|
);
|
|
101
|
-
const
|
|
102
|
+
const PopoverHeaderFooter = __component__$1.exports;
|
|
103
|
+
const _sfc_main = {
|
|
102
104
|
name: "DtPopover",
|
|
103
105
|
/********************
|
|
104
106
|
* CHILD COMPONENTS *
|
|
105
107
|
********************/
|
|
106
108
|
components: {
|
|
107
|
-
SrOnlyCloseButton
|
|
108
|
-
DtLazyShow
|
|
109
|
-
PopoverHeaderFooter
|
|
110
|
-
Portal
|
|
109
|
+
SrOnlyCloseButton,
|
|
110
|
+
DtLazyShow,
|
|
111
|
+
PopoverHeaderFooter,
|
|
112
|
+
Portal
|
|
111
113
|
},
|
|
112
|
-
mixins: [
|
|
114
|
+
mixins: [Modal, SrOnlyCloseButtonMixin],
|
|
113
115
|
props: {
|
|
114
116
|
/**
|
|
115
117
|
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
@@ -128,7 +130,7 @@ const x = T.exports, L = {
|
|
|
128
130
|
*/
|
|
129
131
|
openOnContext: {
|
|
130
132
|
type: Boolean,
|
|
131
|
-
default:
|
|
133
|
+
default: false
|
|
132
134
|
},
|
|
133
135
|
/**
|
|
134
136
|
* Element type (tag name) of the root element of the component.
|
|
@@ -152,7 +154,9 @@ const x = T.exports, L = {
|
|
|
152
154
|
role: {
|
|
153
155
|
type: String,
|
|
154
156
|
default: "dialog",
|
|
155
|
-
validator: (
|
|
157
|
+
validator: (role) => {
|
|
158
|
+
return POPOVER_ROLES.includes(role);
|
|
159
|
+
}
|
|
156
160
|
},
|
|
157
161
|
/**
|
|
158
162
|
* ID of the element that serves as the label for the popover content.
|
|
@@ -188,7 +192,9 @@ const x = T.exports, L = {
|
|
|
188
192
|
padding: {
|
|
189
193
|
type: String,
|
|
190
194
|
default: "large",
|
|
191
|
-
validator: (
|
|
195
|
+
validator: (padding) => {
|
|
196
|
+
return Object.keys(POPOVER_PADDING_CLASSES).some((item) => item === padding);
|
|
197
|
+
}
|
|
192
198
|
},
|
|
193
199
|
/**
|
|
194
200
|
* Additional class name for the content wrapper element.
|
|
@@ -205,7 +211,7 @@ const x = T.exports, L = {
|
|
|
205
211
|
contentWidth: {
|
|
206
212
|
type: String,
|
|
207
213
|
default: "",
|
|
208
|
-
validator: (
|
|
214
|
+
validator: (contentWidth) => POPOVER_CONTENT_WIDTHS.includes(contentWidth)
|
|
209
215
|
},
|
|
210
216
|
/**
|
|
211
217
|
* Tabindex value for the content. Passing null, no tabindex attribute will be set.
|
|
@@ -228,7 +234,7 @@ const x = T.exports, L = {
|
|
|
228
234
|
id: {
|
|
229
235
|
type: String,
|
|
230
236
|
default() {
|
|
231
|
-
return
|
|
237
|
+
return getUniqueString();
|
|
232
238
|
}
|
|
233
239
|
},
|
|
234
240
|
/**
|
|
@@ -253,7 +259,7 @@ const x = T.exports, L = {
|
|
|
253
259
|
*/
|
|
254
260
|
hideOnClick: {
|
|
255
261
|
type: Boolean,
|
|
256
|
-
default:
|
|
262
|
+
default: true
|
|
257
263
|
},
|
|
258
264
|
/**
|
|
259
265
|
* Determines modal state. If enabled popover has a modal overlay
|
|
@@ -262,7 +268,7 @@ const x = T.exports, L = {
|
|
|
262
268
|
*/
|
|
263
269
|
modal: {
|
|
264
270
|
type: Boolean,
|
|
265
|
-
default:
|
|
271
|
+
default: true
|
|
266
272
|
},
|
|
267
273
|
/**
|
|
268
274
|
* If the popover does not fit in the direction described by "placement",
|
|
@@ -277,7 +283,9 @@ const x = T.exports, L = {
|
|
|
277
283
|
* */
|
|
278
284
|
fallbackPlacements: {
|
|
279
285
|
type: Array,
|
|
280
|
-
default: () =>
|
|
286
|
+
default: () => {
|
|
287
|
+
return ["auto"];
|
|
288
|
+
}
|
|
281
289
|
},
|
|
282
290
|
/**
|
|
283
291
|
* The direction the popover displays relative to the anchor.
|
|
@@ -312,7 +320,7 @@ const x = T.exports, L = {
|
|
|
312
320
|
*/
|
|
313
321
|
tether: {
|
|
314
322
|
type: Boolean,
|
|
315
|
-
default:
|
|
323
|
+
default: true
|
|
316
324
|
},
|
|
317
325
|
/**
|
|
318
326
|
* If the popover sticks to the anchor. This is usually not needed, but can be needed
|
|
@@ -331,8 +339,10 @@ const x = T.exports, L = {
|
|
|
331
339
|
*/
|
|
332
340
|
sticky: {
|
|
333
341
|
type: [Boolean, String],
|
|
334
|
-
default:
|
|
335
|
-
validator: (
|
|
342
|
+
default: false,
|
|
343
|
+
validator: (sticky) => {
|
|
344
|
+
return POPOVER_STICKY_VALUES.includes(sticky);
|
|
345
|
+
}
|
|
336
346
|
},
|
|
337
347
|
/**
|
|
338
348
|
* Determines maximum height for the popover before overflow.
|
|
@@ -356,7 +366,7 @@ const x = T.exports, L = {
|
|
|
356
366
|
*/
|
|
357
367
|
showCloseButton: {
|
|
358
368
|
type: Boolean,
|
|
359
|
-
default:
|
|
369
|
+
default: false
|
|
360
370
|
},
|
|
361
371
|
/**
|
|
362
372
|
* Additional class name for the header content wrapper element.
|
|
@@ -390,7 +400,9 @@ const x = T.exports, L = {
|
|
|
390
400
|
initialFocusElement: {
|
|
391
401
|
type: [String, HTMLElement],
|
|
392
402
|
default: "first",
|
|
393
|
-
validator: (
|
|
403
|
+
validator: (initialFocusElement) => {
|
|
404
|
+
return POPOVER_INITIAL_FOCUS_STRINGS.includes(initialFocusElement) || initialFocusElement instanceof HTMLElement || initialFocusElement.startsWith("#");
|
|
405
|
+
}
|
|
394
406
|
},
|
|
395
407
|
/**
|
|
396
408
|
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
@@ -399,7 +411,7 @@ const x = T.exports, L = {
|
|
|
399
411
|
*/
|
|
400
412
|
openWithArrowKeys: {
|
|
401
413
|
type: Boolean,
|
|
402
|
-
default:
|
|
414
|
+
default: false
|
|
403
415
|
},
|
|
404
416
|
/**
|
|
405
417
|
* Sets the element to which the popover is going to append to.
|
|
@@ -409,7 +421,9 @@ const x = T.exports, L = {
|
|
|
409
421
|
appendTo: {
|
|
410
422
|
type: [HTMLElement, String],
|
|
411
423
|
default: "body",
|
|
412
|
-
validator: (
|
|
424
|
+
validator: (appendTo) => {
|
|
425
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
426
|
+
}
|
|
413
427
|
},
|
|
414
428
|
/**
|
|
415
429
|
* Set this prop to true and popover component will support hovercard behaviour
|
|
@@ -417,7 +431,7 @@ const x = T.exports, L = {
|
|
|
417
431
|
*/
|
|
418
432
|
hovercard: {
|
|
419
433
|
type: Boolean,
|
|
420
|
-
default:
|
|
434
|
+
default: false
|
|
421
435
|
},
|
|
422
436
|
/**
|
|
423
437
|
* The timer is used only when the hovercard prop is true.
|
|
@@ -428,7 +442,9 @@ const x = T.exports, L = {
|
|
|
428
442
|
timer: {
|
|
429
443
|
type: [Object, null],
|
|
430
444
|
default: null,
|
|
431
|
-
validator: (
|
|
445
|
+
validator: (timer) => {
|
|
446
|
+
return timer === null || timer.enter && timer.leave && Object.keys(timer).includes("current");
|
|
447
|
+
}
|
|
432
448
|
}
|
|
433
449
|
},
|
|
434
450
|
emits: [
|
|
@@ -449,11 +465,11 @@ const x = T.exports, L = {
|
|
|
449
465
|
],
|
|
450
466
|
data() {
|
|
451
467
|
return {
|
|
452
|
-
POPOVER_PADDING_CLASSES
|
|
453
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES
|
|
468
|
+
POPOVER_PADDING_CLASSES,
|
|
469
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
454
470
|
intersectionObserver: null,
|
|
455
|
-
isOutsideViewport:
|
|
456
|
-
isOpen:
|
|
471
|
+
isOutsideViewport: false,
|
|
472
|
+
isOpen: false,
|
|
457
473
|
anchorEl: null,
|
|
458
474
|
popoverContentEl: null,
|
|
459
475
|
inTimer: null,
|
|
@@ -464,154 +480,213 @@ const x = T.exports, L = {
|
|
|
464
480
|
popoverListeners() {
|
|
465
481
|
return {
|
|
466
482
|
...this.$listeners,
|
|
467
|
-
keydown: (
|
|
468
|
-
this.onKeydown(
|
|
483
|
+
keydown: (event) => {
|
|
484
|
+
this.onKeydown(event);
|
|
485
|
+
this.$emit("keydown", event);
|
|
469
486
|
},
|
|
470
|
-
"after-leave": (
|
|
487
|
+
"after-leave": (event) => {
|
|
471
488
|
this.onLeaveTransitionComplete();
|
|
472
489
|
},
|
|
473
|
-
"after-enter": (
|
|
490
|
+
"after-enter": (event) => {
|
|
474
491
|
this.onEnterTransitionComplete();
|
|
475
492
|
}
|
|
476
493
|
};
|
|
477
494
|
},
|
|
478
495
|
calculatedMaxHeight() {
|
|
479
|
-
|
|
496
|
+
if (this.isOutsideViewport && this.modal) {
|
|
497
|
+
return `calc(100vh - var(--dt-space-300))`;
|
|
498
|
+
}
|
|
499
|
+
return this.maxHeight;
|
|
480
500
|
},
|
|
481
501
|
labelledBy() {
|
|
482
|
-
return this.ariaLabelledby || !this.ariaLabel &&
|
|
502
|
+
return this.ariaLabelledby || !this.ariaLabel && getUniqueString("DtPopover__anchor");
|
|
483
503
|
},
|
|
484
504
|
currentHovercard() {
|
|
485
|
-
var
|
|
486
|
-
return (
|
|
505
|
+
var _a;
|
|
506
|
+
return (_a = this.timer) == null ? void 0 : _a.current.value;
|
|
487
507
|
}
|
|
488
508
|
},
|
|
489
509
|
watch: {
|
|
490
510
|
$props: {
|
|
491
|
-
immediate:
|
|
492
|
-
deep:
|
|
511
|
+
immediate: true,
|
|
512
|
+
deep: true,
|
|
493
513
|
handler() {
|
|
494
514
|
this.validateProps();
|
|
495
515
|
}
|
|
496
516
|
},
|
|
497
|
-
modal(
|
|
498
|
-
var
|
|
499
|
-
(
|
|
500
|
-
zIndex:
|
|
517
|
+
modal(modal) {
|
|
518
|
+
var _a;
|
|
519
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
520
|
+
zIndex: modal ? 650 : this.calculateAnchorZindex()
|
|
501
521
|
});
|
|
502
522
|
},
|
|
503
|
-
offset(
|
|
504
|
-
var
|
|
505
|
-
(
|
|
506
|
-
offset
|
|
523
|
+
offset(offset) {
|
|
524
|
+
var _a;
|
|
525
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
526
|
+
offset
|
|
507
527
|
});
|
|
508
528
|
},
|
|
509
|
-
sticky(
|
|
510
|
-
var
|
|
511
|
-
(
|
|
512
|
-
sticky
|
|
529
|
+
sticky(sticky) {
|
|
530
|
+
var _a;
|
|
531
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
532
|
+
sticky
|
|
513
533
|
});
|
|
514
534
|
},
|
|
515
535
|
fallbackPlacements() {
|
|
516
|
-
var
|
|
517
|
-
(
|
|
536
|
+
var _a;
|
|
537
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
518
538
|
popperOptions: this.popperOptions()
|
|
519
539
|
});
|
|
520
540
|
},
|
|
521
541
|
tether() {
|
|
522
|
-
var
|
|
523
|
-
(
|
|
542
|
+
var _a;
|
|
543
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
524
544
|
popperOptions: this.popperOptions()
|
|
525
545
|
});
|
|
526
546
|
},
|
|
527
|
-
placement(
|
|
528
|
-
var
|
|
529
|
-
(
|
|
530
|
-
placement
|
|
547
|
+
placement(placement) {
|
|
548
|
+
var _a;
|
|
549
|
+
(_a = this.tip) == null ? void 0 : _a.setProps({
|
|
550
|
+
placement
|
|
531
551
|
});
|
|
532
552
|
},
|
|
533
553
|
open: {
|
|
534
|
-
handler: function(
|
|
535
|
-
|
|
554
|
+
handler: function(open) {
|
|
555
|
+
if (open !== null) {
|
|
556
|
+
this.isOpen = open;
|
|
557
|
+
}
|
|
536
558
|
},
|
|
537
|
-
immediate:
|
|
538
|
-
},
|
|
539
|
-
isOpen(
|
|
540
|
-
|
|
559
|
+
immediate: true
|
|
560
|
+
},
|
|
561
|
+
isOpen(isOpen, isPrev) {
|
|
562
|
+
if (isOpen) {
|
|
563
|
+
this.initTippyInstance();
|
|
564
|
+
this.tip.show();
|
|
565
|
+
} else if (!isOpen && isPrev !== isOpen) {
|
|
566
|
+
this.removeEventListeners();
|
|
567
|
+
this.tip.hide();
|
|
568
|
+
}
|
|
541
569
|
},
|
|
542
570
|
currentHovercard() {
|
|
543
|
-
this.hovercard && this.timer
|
|
571
|
+
if (this.hovercard && this.timer) {
|
|
572
|
+
if (this.currentHovercard === this.id) {
|
|
573
|
+
this.isOpen = true;
|
|
574
|
+
} else {
|
|
575
|
+
this.isOpen = false;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
544
578
|
}
|
|
545
579
|
},
|
|
546
580
|
mounted() {
|
|
547
|
-
var
|
|
548
|
-
const
|
|
549
|
-
this.anchorEl =
|
|
581
|
+
var _a;
|
|
582
|
+
const externalAnchorEl = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
|
|
583
|
+
this.anchorEl = externalAnchorEl ?? this.$refs.anchor.children[0];
|
|
584
|
+
this.popoverContentEl = (_a = this.$refs.content) == null ? void 0 : _a.$el;
|
|
585
|
+
if (this.isOpen) {
|
|
586
|
+
this.initTippyInstance();
|
|
587
|
+
this.tip.show();
|
|
588
|
+
}
|
|
589
|
+
this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport);
|
|
590
|
+
this.intersectionObserver.observe(this.popoverContentEl);
|
|
550
591
|
},
|
|
551
592
|
beforeDestroy() {
|
|
552
|
-
var
|
|
553
|
-
(
|
|
593
|
+
var _a;
|
|
594
|
+
(_a = this.tip) == null ? void 0 : _a.destroy();
|
|
595
|
+
this.intersectionObserver.disconnect();
|
|
596
|
+
this.removeReferences();
|
|
597
|
+
this.removeEventListeners();
|
|
554
598
|
},
|
|
555
599
|
/******************
|
|
556
600
|
* METHODS *
|
|
557
601
|
******************/
|
|
558
602
|
methods: {
|
|
559
|
-
hasIntersectedViewport(
|
|
560
|
-
var
|
|
561
|
-
const
|
|
562
|
-
if (!
|
|
603
|
+
hasIntersectedViewport(entries) {
|
|
604
|
+
var _a;
|
|
605
|
+
const dialog = (_a = entries == null ? void 0 : entries[0]) == null ? void 0 : _a.target;
|
|
606
|
+
if (!dialog)
|
|
563
607
|
return;
|
|
564
|
-
const
|
|
565
|
-
this.isOutsideViewport =
|
|
608
|
+
const isOut = isOutOfViewPort(dialog);
|
|
609
|
+
this.isOutsideViewport = isOut.bottom || isOut.top;
|
|
566
610
|
},
|
|
567
611
|
popperOptions() {
|
|
568
|
-
return
|
|
612
|
+
return getPopperOptions({
|
|
569
613
|
fallbackPlacements: this.fallbackPlacements,
|
|
570
614
|
tether: this.tether,
|
|
571
|
-
hasHideModifierEnabled:
|
|
615
|
+
hasHideModifierEnabled: true
|
|
572
616
|
});
|
|
573
617
|
},
|
|
574
618
|
validateProps() {
|
|
575
|
-
this.modal && this.initialFocusElement === "none"
|
|
619
|
+
if (this.modal && this.initialFocusElement === "none") {
|
|
620
|
+
console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement');
|
|
621
|
+
}
|
|
576
622
|
},
|
|
577
623
|
calculateAnchorZindex() {
|
|
578
|
-
var
|
|
579
|
-
|
|
624
|
+
var _a;
|
|
625
|
+
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
|
|
580
626
|
// anchor of popover is within a drawer.
|
|
581
|
-
(
|
|
627
|
+
((_a = this.anchorEl) == null ? void 0 : _a.closest(".d-zi-drawer"))) {
|
|
628
|
+
return 650;
|
|
629
|
+
} else {
|
|
630
|
+
return 300;
|
|
631
|
+
}
|
|
582
632
|
},
|
|
583
|
-
defaultToggleOpen(
|
|
584
|
-
var
|
|
585
|
-
|
|
633
|
+
defaultToggleOpen(e) {
|
|
634
|
+
var _a, _b;
|
|
635
|
+
if (this.hovercard) {
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
if (this.openOnContext) {
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
641
|
+
this.open ?? (((_a = this.anchorEl) == null ? void 0 : _a.contains(e.target)) && !((_b = this.anchorEl) == null ? void 0 : _b.disabled) && this.toggleOpen());
|
|
586
642
|
},
|
|
587
|
-
async onContext(
|
|
588
|
-
|
|
643
|
+
async onContext(event) {
|
|
644
|
+
if (!this.openOnContext) {
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
event.preventDefault();
|
|
648
|
+
this.isOpen = true;
|
|
649
|
+
await this.$nextTick();
|
|
650
|
+
this.tip.setProps({
|
|
589
651
|
placement: "right-start",
|
|
590
652
|
getReferenceClientRect: () => ({
|
|
591
653
|
width: 0,
|
|
592
654
|
height: 0,
|
|
593
|
-
top:
|
|
594
|
-
bottom:
|
|
595
|
-
left:
|
|
596
|
-
right:
|
|
655
|
+
top: event.clientY,
|
|
656
|
+
bottom: event.clientY,
|
|
657
|
+
left: event.clientX,
|
|
658
|
+
right: event.clientX
|
|
597
659
|
})
|
|
598
|
-
})
|
|
660
|
+
});
|
|
599
661
|
},
|
|
600
662
|
toggleOpen() {
|
|
601
663
|
this.isOpen = !this.isOpen;
|
|
602
664
|
},
|
|
603
|
-
onArrowKeyPress(
|
|
604
|
-
var
|
|
605
|
-
|
|
665
|
+
onArrowKeyPress(e) {
|
|
666
|
+
var _a;
|
|
667
|
+
if (this.open !== null) {
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
if (this.openWithArrowKeys && ((_a = this.anchorEl) == null ? void 0 : _a.contains(e.target))) {
|
|
671
|
+
if (!this.isOpen) {
|
|
672
|
+
this.isOpen = true;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
606
675
|
},
|
|
607
676
|
addEventListeners() {
|
|
608
|
-
window.addEventListener("dt-popover-close", this.closePopover)
|
|
677
|
+
window.addEventListener("dt-popover-close", this.closePopover);
|
|
678
|
+
if (this.contentWidth === "anchor") {
|
|
679
|
+
window.addEventListener("resize", this.onResize);
|
|
680
|
+
}
|
|
609
681
|
},
|
|
610
682
|
removeEventListeners() {
|
|
611
|
-
window.removeEventListener("dt-popover-close", this.closePopover)
|
|
683
|
+
window.removeEventListener("dt-popover-close", this.closePopover);
|
|
684
|
+
if (this.contentWidth === "anchor") {
|
|
685
|
+
window.removeEventListener("resize", this.onResize);
|
|
686
|
+
}
|
|
612
687
|
},
|
|
613
688
|
closePopover() {
|
|
614
|
-
this.isOpen =
|
|
689
|
+
this.isOpen = false;
|
|
615
690
|
},
|
|
616
691
|
/*
|
|
617
692
|
* Prevents scrolling outside of the currently opened modal popover by:
|
|
@@ -620,43 +695,94 @@ const x = T.exports, L = {
|
|
|
620
695
|
* since it is no longer the active modal. This puts it underneath the overlay and prevents scrolling.
|
|
621
696
|
**/
|
|
622
697
|
preventScrolling() {
|
|
623
|
-
var
|
|
698
|
+
var _a, _b;
|
|
624
699
|
if (this.modal) {
|
|
625
|
-
const
|
|
626
|
-
if (!
|
|
700
|
+
const element = (_a = this.anchorEl) == null ? void 0 : _a.closest("body, .tippy-box");
|
|
701
|
+
if (!element)
|
|
627
702
|
return;
|
|
628
|
-
((
|
|
703
|
+
if (((_b = element.tagName) == null ? void 0 : _b.toLowerCase()) === "body") {
|
|
704
|
+
element.classList.add("d-of-hidden");
|
|
705
|
+
this.tip.setProps({ offset: this.offset });
|
|
706
|
+
} else {
|
|
707
|
+
element.classList.add("d-zi-popover");
|
|
708
|
+
}
|
|
629
709
|
}
|
|
630
710
|
},
|
|
631
711
|
/*
|
|
632
712
|
* Resets the prevent scrolling properties set in preventScrolling() back to normal.
|
|
633
713
|
**/
|
|
634
714
|
enableScrolling() {
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
|
|
715
|
+
var _a, _b;
|
|
716
|
+
const element = (_a = this.anchorEl) == null ? void 0 : _a.closest("body, .tippy-box");
|
|
717
|
+
if (!element)
|
|
718
|
+
return;
|
|
719
|
+
if (((_b = element.tagName) == null ? void 0 : _b.toLowerCase()) === "body") {
|
|
720
|
+
element.classList.remove("d-of-hidden");
|
|
721
|
+
this.tip.setProps({ offset: this.offset });
|
|
722
|
+
} else {
|
|
723
|
+
element.classList.remove("d-zi-popover");
|
|
724
|
+
}
|
|
638
725
|
},
|
|
639
726
|
removeReferences() {
|
|
640
|
-
this.anchorEl = null
|
|
727
|
+
this.anchorEl = null;
|
|
728
|
+
this.popoverContentEl = null;
|
|
729
|
+
this.tip = null;
|
|
641
730
|
},
|
|
642
731
|
async onShow() {
|
|
643
|
-
|
|
732
|
+
if (this.contentWidth === "anchor") {
|
|
733
|
+
await this.setPopoverContentAnchorWidth();
|
|
734
|
+
}
|
|
735
|
+
if (this.contentWidth === null) {
|
|
736
|
+
this.popoverContentEl.style.width = "auto";
|
|
737
|
+
}
|
|
738
|
+
this.addEventListeners();
|
|
644
739
|
},
|
|
645
740
|
async onLeaveTransitionComplete() {
|
|
646
|
-
var
|
|
647
|
-
|
|
741
|
+
var _a;
|
|
742
|
+
if (this.modal) {
|
|
743
|
+
await this.focusFirstElement(this.$refs.anchor);
|
|
744
|
+
await this.$nextTick();
|
|
745
|
+
this.enableScrolling();
|
|
746
|
+
}
|
|
747
|
+
(_a = this.tip) == null ? void 0 : _a.unmount();
|
|
748
|
+
this.$emit("opened", false);
|
|
749
|
+
if (this.open !== null) {
|
|
750
|
+
this.$emit("update:open", false);
|
|
751
|
+
}
|
|
648
752
|
},
|
|
649
753
|
async onEnterTransitionComplete() {
|
|
650
|
-
this.focusInitialElement()
|
|
754
|
+
this.focusInitialElement();
|
|
755
|
+
await this.$nextTick();
|
|
756
|
+
this.preventScrolling();
|
|
757
|
+
this.$emit("opened", true, this.$refs.popover__content);
|
|
758
|
+
if (this.open !== null) {
|
|
759
|
+
this.$emit("update:open", true);
|
|
760
|
+
}
|
|
651
761
|
},
|
|
652
762
|
focusInitialElement() {
|
|
653
|
-
var
|
|
654
|
-
|
|
763
|
+
var _a, _b;
|
|
764
|
+
if (this.initialFocusElement === "dialog") {
|
|
765
|
+
(_b = (_a = this.$refs.content) == null ? void 0 : _a.$el) == null ? void 0 : _b.focus();
|
|
766
|
+
}
|
|
767
|
+
if (this.initialFocusElement.startsWith("#")) {
|
|
768
|
+
this.focusInitialElementById();
|
|
769
|
+
}
|
|
770
|
+
if (this.initialFocusElement === "first") {
|
|
771
|
+
this.focusFirstElementIfNeeded(this.$refs.popover__content);
|
|
772
|
+
}
|
|
773
|
+
if (this.initialFocusElement instanceof HTMLElement) {
|
|
774
|
+
this.initialFocusElement.focus();
|
|
775
|
+
}
|
|
655
776
|
},
|
|
656
777
|
focusInitialElementById() {
|
|
657
|
-
var
|
|
658
|
-
const
|
|
659
|
-
|
|
778
|
+
var _a, _b, _c;
|
|
779
|
+
const result = (_b = (_a = this.$refs.content) == null ? void 0 : _a.$el) == null ? void 0 : _b.querySelector(this.initialFocusElement);
|
|
780
|
+
if (result) {
|
|
781
|
+
result.focus();
|
|
782
|
+
} else {
|
|
783
|
+
console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.');
|
|
784
|
+
}
|
|
785
|
+
result ? result.focus() : (_c = this.$refs.content) == null ? void 0 : _c.$el.focus();
|
|
660
786
|
},
|
|
661
787
|
onResize() {
|
|
662
788
|
this.closePopover();
|
|
@@ -664,33 +790,51 @@ const x = T.exports, L = {
|
|
|
664
790
|
onClickOutside() {
|
|
665
791
|
if (!this.hideOnClick)
|
|
666
792
|
return;
|
|
667
|
-
this.popoverContentEl.querySelector(".d-popover__anchor--opened")
|
|
793
|
+
const innerModals = this.popoverContentEl.querySelector(".d-popover__anchor--opened");
|
|
794
|
+
if (!innerModals) {
|
|
795
|
+
this.closePopover();
|
|
796
|
+
}
|
|
668
797
|
},
|
|
669
|
-
onKeydown(
|
|
670
|
-
|
|
798
|
+
onKeydown(e) {
|
|
799
|
+
if (e.key === "Tab") {
|
|
800
|
+
if (this.modal) {
|
|
801
|
+
this.focusTrappedTabPress(e, this.popoverContentEl);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
if (e.key === "Escape") {
|
|
805
|
+
this.closePopover();
|
|
806
|
+
}
|
|
671
807
|
},
|
|
672
808
|
async setPopoverContentAnchorWidth() {
|
|
673
|
-
var
|
|
674
|
-
await this.$nextTick()
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
809
|
+
var _a;
|
|
810
|
+
await this.$nextTick();
|
|
811
|
+
this.popoverContentEl.style.width = `${(_a = this.anchorEl) == null ? void 0 : _a.clientWidth}px`;
|
|
812
|
+
},
|
|
813
|
+
focusFirstElementIfNeeded(domEl) {
|
|
814
|
+
var _a, _b;
|
|
815
|
+
const focusableElements = this._getFocusableElements(domEl, true);
|
|
816
|
+
if (focusableElements.length !== 0) {
|
|
817
|
+
this.focusFirstElement(domEl);
|
|
818
|
+
} else if (this.showCloseButton) {
|
|
819
|
+
(_a = this.$refs.popover__header) == null ? void 0 : _a.focusCloseButton();
|
|
820
|
+
} else {
|
|
821
|
+
(_b = this.$refs.content) == null ? void 0 : _b.$el.focus();
|
|
822
|
+
}
|
|
679
823
|
},
|
|
680
824
|
initTippyInstance() {
|
|
681
|
-
var
|
|
682
|
-
this.tip =
|
|
825
|
+
var _a, _b;
|
|
826
|
+
this.tip = createTippy(this.anchorEl, {
|
|
683
827
|
popperOptions: this.popperOptions(),
|
|
684
828
|
contentElement: this.popoverContentEl,
|
|
685
829
|
placement: this.placement,
|
|
686
830
|
offset: this.offset,
|
|
687
831
|
sticky: this.sticky,
|
|
688
|
-
appendTo: this.appendTo === "body" ? (
|
|
689
|
-
interactive:
|
|
832
|
+
appendTo: this.appendTo === "body" ? (_b = (_a = this.anchorEl) == null ? void 0 : _a.getRootNode()) == null ? void 0 : _b.querySelector("body") : this.appendTo,
|
|
833
|
+
interactive: true,
|
|
690
834
|
trigger: "manual",
|
|
691
835
|
// We have to manage hideOnClick functionality manually to handle
|
|
692
836
|
// popover within popover situations.
|
|
693
|
-
hideOnClick:
|
|
837
|
+
hideOnClick: false,
|
|
694
838
|
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
695
839
|
onClickOutside: this.onClickOutside,
|
|
696
840
|
onShow: this.onShow
|
|
@@ -701,79 +845,114 @@ const x = T.exports, L = {
|
|
|
701
845
|
// ----------------------------------------------------------------------------
|
|
702
846
|
setInTimer() {
|
|
703
847
|
this.inTimer = setTimeout(() => {
|
|
704
|
-
this.isOpen =
|
|
705
|
-
},
|
|
848
|
+
this.isOpen = true;
|
|
849
|
+
}, TOOLTIP_DELAY_MS);
|
|
706
850
|
},
|
|
707
851
|
setOutTimer() {
|
|
708
852
|
this.outTimer = setTimeout(() => {
|
|
709
|
-
this.isOpen =
|
|
710
|
-
},
|
|
853
|
+
this.isOpen = false;
|
|
854
|
+
}, TOOLTIP_DELAY_MS);
|
|
711
855
|
},
|
|
712
856
|
onEnterAnchor() {
|
|
713
|
-
|
|
857
|
+
if (!this.hovercard)
|
|
858
|
+
return;
|
|
859
|
+
if (this.timer)
|
|
860
|
+
this.timer.enter(this.id);
|
|
861
|
+
else {
|
|
862
|
+
clearTimeout(this.outTimer);
|
|
863
|
+
this.setInTimer();
|
|
864
|
+
}
|
|
714
865
|
},
|
|
715
866
|
onLeaveAnchor() {
|
|
716
|
-
|
|
867
|
+
if (!this.hovercard)
|
|
868
|
+
return;
|
|
869
|
+
if (this.timer)
|
|
870
|
+
this.timer.leave();
|
|
871
|
+
else {
|
|
872
|
+
clearTimeout(this.inTimer);
|
|
873
|
+
this.setOutTimer();
|
|
874
|
+
}
|
|
717
875
|
},
|
|
718
876
|
onEnterContent() {
|
|
719
|
-
|
|
877
|
+
if (!this.hovercard)
|
|
878
|
+
return;
|
|
879
|
+
if (this.timer)
|
|
880
|
+
this.timer.enter(this.id);
|
|
881
|
+
else
|
|
882
|
+
clearTimeout(this.outTimer);
|
|
720
883
|
},
|
|
721
884
|
onLeaveContent() {
|
|
722
|
-
|
|
885
|
+
if (!this.hovercard)
|
|
886
|
+
return;
|
|
887
|
+
if (this.timer)
|
|
888
|
+
this.timer.leave();
|
|
889
|
+
else
|
|
890
|
+
this.setOutTimer();
|
|
723
891
|
}
|
|
724
892
|
// ============================================================================
|
|
725
893
|
// $ HOVERCARD
|
|
726
894
|
// ----------------------------------------------------------------------------
|
|
727
895
|
}
|
|
728
896
|
};
|
|
729
|
-
var
|
|
730
|
-
var
|
|
731
|
-
return
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
return
|
|
741
|
-
},
|
|
742
|
-
"
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
"
|
|
748
|
-
|
|
749
|
-
return
|
|
750
|
-
},
|
|
897
|
+
var _sfc_render = function render2() {
|
|
898
|
+
var _vm = this, _c = _vm._self._c;
|
|
899
|
+
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) {
|
|
900
|
+
$event.preventDefault();
|
|
901
|
+
$event.stopPropagation();
|
|
902
|
+
} } })]) : _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) {
|
|
903
|
+
return _vm.defaultToggleOpen.apply(null, arguments);
|
|
904
|
+
}, "contextmenu": _vm.onContext, "keydown": [function($event) {
|
|
905
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"]))
|
|
906
|
+
return null;
|
|
907
|
+
$event.preventDefault();
|
|
908
|
+
return _vm.onArrowKeyPress.apply(null, arguments);
|
|
909
|
+
}, function($event) {
|
|
910
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"]))
|
|
911
|
+
return null;
|
|
912
|
+
$event.preventDefault();
|
|
913
|
+
return _vm.onArrowKeyPress.apply(null, arguments);
|
|
914
|
+
}], "!keydown": function($event) {
|
|
915
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "escape", void 0, $event.key, void 0))
|
|
916
|
+
return null;
|
|
917
|
+
return _vm.closePopover.apply(null, arguments);
|
|
918
|
+
}, "mouseenter": _vm.onEnterAnchor, "mouseleave": _vm.onLeaveAnchor } }, [_vm._t("anchor", null, { "attrs": {
|
|
919
|
+
"aria-expanded": _vm.isOpen.toString(),
|
|
920
|
+
"aria-controls": _vm.id,
|
|
921
|
+
"aria-haspopup": _vm.role
|
|
922
|
+
} })], 2), _c("dt-lazy-show", _vm._g({ ref: "content", class: ["d-popover__dialog", { "d-popover__dialog--modal": _vm.modal }, _vm.dialogClass], style: {
|
|
923
|
+
"max-height": _vm.calculatedMaxHeight,
|
|
924
|
+
"max-width": _vm.maxWidth
|
|
925
|
+
}, 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() {
|
|
926
|
+
return [_vm._t("headerContent", null, { "close": _vm.closePopover })];
|
|
927
|
+
}, proxy: true }], null, true) }) : _vm._e(), _c("div", { ref: "popover__content", class: [
|
|
751
928
|
"d-popover__content",
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
], attrs: { "data-qa":
|
|
755
|
-
return [
|
|
756
|
-
}, proxy:
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
929
|
+
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
930
|
+
_vm.contentClass
|
|
931
|
+
], 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() {
|
|
932
|
+
return [_vm._t("footerContent", null, { "close": _vm.closePopover })];
|
|
933
|
+
}, 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);
|
|
934
|
+
};
|
|
935
|
+
var _sfc_staticRenderFns = [];
|
|
936
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
937
|
+
_sfc_main,
|
|
938
|
+
_sfc_render,
|
|
939
|
+
_sfc_staticRenderFns,
|
|
940
|
+
false,
|
|
762
941
|
null,
|
|
763
942
|
null,
|
|
764
943
|
null,
|
|
765
944
|
null
|
|
766
945
|
);
|
|
767
|
-
const
|
|
946
|
+
const DtPopover = __component__.exports;
|
|
768
947
|
export {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
948
|
+
DtPopover,
|
|
949
|
+
POPOVER_APPEND_TO_VALUES,
|
|
950
|
+
POPOVER_CONTENT_WIDTHS,
|
|
951
|
+
POPOVER_DIRECTIONS,
|
|
952
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
953
|
+
POPOVER_INITIAL_FOCUS_STRINGS,
|
|
954
|
+
POPOVER_PADDING_CLASSES,
|
|
955
|
+
POPOVER_ROLES,
|
|
956
|
+
POPOVER_STICKY_VALUES
|
|
778
957
|
};
|
|
779
958
|
//# sourceMappingURL=popover.js.map
|