@dialpad/dialtone-vue 4.9.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combobox-WsLvegw6.js → Combobox-BKj61IcR.js} +5 -5
- package/dist/{Combobox-WsLvegw6.js.map → Combobox-BKj61IcR.js.map} +1 -1
- package/dist/Combobox-BOGcBq-6.cjs +3 -0
- package/dist/{Combobox-96zAPv6d.cjs.map → Combobox-BOGcBq-6.cjs.map} +1 -1
- package/dist/{Datepicker-D-Lgvthq.js → Datepicker-DOSIyo8a.js} +39 -39
- package/dist/{Datepicker-D-Lgvthq.js.map → Datepicker-DOSIyo8a.js.map} +1 -1
- package/dist/Datepicker-DfdVsVb9.cjs +2 -0
- package/dist/{Datepicker-DmKOuf5y.cjs.map → Datepicker-DfdVsVb9.cjs.map} +1 -1
- package/dist/{EmojiPicker-D46lLRMp.js → EmojiPicker-B_ZVTdOY.js} +2 -2
- package/dist/{EmojiPicker-D46lLRMp.js.map → EmojiPicker-B_ZVTdOY.js.map} +1 -1
- package/dist/EmojiPicker-DS8XmAHV.cjs +2 -0
- package/dist/{EmojiPicker-CXFd-iVj.cjs.map → EmojiPicker-DS8XmAHV.cjs.map} +1 -1
- package/dist/FilterPill-BmYe_SsY.cjs +2 -0
- package/dist/{FilterPill-DY9T19XB.cjs.map → FilterPill-BmYe_SsY.cjs.map} +1 -1
- package/dist/{FilterPill-IBlswKiK.js → FilterPill-C4TXD8Tl.js} +5 -5
- package/dist/{FilterPill-IBlswKiK.js.map → FilterPill-C4TXD8Tl.js.map} +1 -1
- package/dist/{ForceLinkify-DhmBEXhe.cjs → ForceLinkify-BMmlUc8Q.cjs} +1 -1
- package/dist/{ForceLinkify-DhmBEXhe.cjs.map → ForceLinkify-BMmlUc8Q.cjs.map} +1 -1
- package/dist/{ForceLinkify-53Zegx7z.js → ForceLinkify-Cw3Q1Nn7.js} +1 -1
- package/dist/{ForceLinkify-53Zegx7z.js.map → ForceLinkify-Cw3Q1Nn7.js.map} +1 -1
- package/dist/{MarkdownRenderer-Cnbn7gje.js → MarkdownRenderer-BR-fbldH.js} +1 -1
- package/dist/{MarkdownRenderer-Cnbn7gje.js.map → MarkdownRenderer-BR-fbldH.js.map} +1 -1
- package/dist/{MarkdownRenderer-a12waV7r.cjs → MarkdownRenderer-CH4L8Evn.cjs} +1 -1
- package/dist/{MarkdownRenderer-a12waV7r.cjs.map → MarkdownRenderer-CH4L8Evn.cjs.map} +1 -1
- package/dist/{Presence-CGgyodnC.js → Presence-BkPCvddH.js} +2 -2
- package/dist/{Presence-CGgyodnC.js.map → Presence-BkPCvddH.js.map} +1 -1
- package/dist/{Presence-DLM3JR-n.cjs → Presence-DG9Kvu5J.cjs} +2 -2
- package/dist/{Presence-DLM3JR-n.cjs.map → Presence-DG9Kvu5J.cjs.map} +1 -1
- package/dist/ProgressBar-BMycZBZE.cjs +2 -0
- package/dist/ProgressBar-BMycZBZE.cjs.map +1 -0
- package/dist/ProgressBar-Cj8xqPc0.js +77 -0
- package/dist/ProgressBar-Cj8xqPc0.js.map +1 -0
- package/dist/{Resizable-Ddsm-H14.js → Resizable-BkijqucD.js} +3 -3
- package/dist/{Resizable-Ddsm-H14.js.map → Resizable-BkijqucD.js.map} +1 -1
- package/dist/{Resizable-DdP6uPio.cjs → Resizable-DQoUk81S.cjs} +2 -2
- package/dist/{Resizable-DdP6uPio.cjs.map → Resizable-DQoUk81S.cjs.map} +1 -1
- package/dist/{ResizableHandle-_ldmhyEw.cjs → ResizableHandle-D2gZ6dg5.cjs} +2 -2
- package/dist/{ResizableHandle-_ldmhyEw.cjs.map → ResizableHandle-D2gZ6dg5.cjs.map} +1 -1
- package/dist/{ResizableHandle-DQduVxrG.js → ResizableHandle-MDdaNR_t.js} +3 -3
- package/dist/{ResizableHandle-DQduVxrG.js.map → ResizableHandle-MDdaNR_t.js.map} +1 -1
- package/dist/{ResizableUtils-BptSHmLg.cjs → ResizableUtils-CXU7o9pL.cjs} +1 -1
- package/dist/{ResizableUtils-BptSHmLg.cjs.map → ResizableUtils-CXU7o9pL.cjs.map} +1 -1
- package/dist/{ResizableUtils-BIRNCdKB.js → ResizableUtils-ChIk3Blc.js} +1 -1
- package/dist/{ResizableUtils-BIRNCdKB.js.map → ResizableUtils-ChIk3Blc.js.map} +1 -1
- package/dist/{RichTextEditor-DhNhx5AH.js → RichTextEditor-BIcaFJQp.js} +15 -15
- package/dist/{RichTextEditor-DhNhx5AH.js.map → RichTextEditor-BIcaFJQp.js.map} +1 -1
- package/dist/RichTextEditor-D6kCBnLJ.cjs +11 -0
- package/dist/{RichTextEditor-CjyvDYID.cjs.map → RichTextEditor-D6kCBnLJ.cjs.map} +1 -1
- package/dist/{Scroller-D7MjyXun.js → Scroller-D6LZtmkL.js} +3 -3
- package/dist/{Scroller-D7MjyXun.js.map → Scroller-D6LZtmkL.js.map} +1 -1
- package/dist/Scroller-eXc7l23J.cjs +2 -0
- package/dist/{Scroller-Bt8TUghI.cjs.map → Scroller-eXc7l23J.cjs.map} +1 -1
- package/dist/Slider-B7O2M5_S.cjs +2 -0
- package/dist/{Slider-CfvbLBv5.cjs.map → Slider-B7O2M5_S.cjs.map} +1 -1
- package/dist/{Slider-Xd5Aj9nS.js → Slider-oJROUIMS.js} +7 -7
- package/dist/{Slider-Xd5Aj9nS.js.map → Slider-oJROUIMS.js.map} +1 -1
- package/dist/Text-BDgOWPw7.cjs +2 -0
- package/dist/Text-BDgOWPw7.cjs.map +1 -0
- package/dist/Text-CfiPqjL0.js +404 -0
- package/dist/Text-CfiPqjL0.js.map +1 -0
- package/dist/{TextList-DUL3NwQp.cjs → TextList-D3HHK2DW.cjs} +1 -1
- package/dist/{TextList-DUL3NwQp.cjs.map → TextList-D3HHK2DW.cjs.map} +1 -1
- package/dist/{TextList-CkY7OAl2.js → TextList-DXEov7Ls.js} +1 -1
- package/dist/{TextList-CkY7OAl2.js.map → TextList-DXEov7Ls.js.map} +1 -1
- package/dist/TextListItem-C2Vc8Gnu.cjs +2 -0
- package/dist/{TextListItem-BI9M_J8Y.cjs.map → TextListItem-C2Vc8Gnu.cjs.map} +1 -1
- package/dist/{TextListItem-D96feMQf.js → TextListItem-CaFTtZ3G.js} +2 -2
- package/dist/{TextListItem-D96feMQf.js.map → TextListItem-CaFTtZ3G.js.map} +1 -1
- package/dist/{Toast-DmzQrYtG.js → Toast-AGiQccuG.js} +3 -3
- package/dist/{Toast-DmzQrYtG.js.map → Toast-AGiQccuG.js.map} +1 -1
- package/dist/Toast-DImJ0PkZ.cjs +2 -0
- package/dist/{Toast-BXvUrvd_.cjs.map → Toast-DImJ0PkZ.cjs.map} +1 -1
- package/dist/{UseResizableCalculations-BNcxJfef.cjs → UseResizableCalculations-D4xVxWje.cjs} +2 -2
- package/dist/{UseResizableCalculations-BNcxJfef.cjs.map → UseResizableCalculations-D4xVxWje.cjs.map} +1 -1
- package/dist/{UseResizableCalculations-k6TSRlpa.js → UseResizableCalculations-DTxD7NKO.js} +2 -2
- package/dist/{UseResizableCalculations-k6TSRlpa.js.map → UseResizableCalculations-DTxD7NKO.js.map} +1 -1
- package/dist/common/composables/use-accessible-name-warning.cjs +2 -0
- package/dist/common/composables/use-accessible-name-warning.cjs.map +1 -0
- package/dist/common/composables/use-accessible-name-warning.js +11 -0
- package/dist/common/composables/use-accessible-name-warning.js.map +1 -0
- package/dist/common/composables/use-indicator-animation.cjs +1 -1
- package/dist/common/composables/use-indicator-animation.cjs.map +1 -1
- package/dist/common/composables/use-indicator-animation.js +14 -14
- package/dist/common/composables/use-indicator-animation.js.map +1 -1
- package/dist/common/composables/useAccessibleNameWarning.d.ts +2 -0
- package/dist/common/composables/useAccessibleNameWarning.d.ts.map +1 -0
- package/dist/common/composables/useIndicatorAnimation.d.ts +2 -1
- package/dist/common/composables/useIndicatorAnimation.d.ts.map +1 -1
- package/dist/common/dates/index.cjs +1 -1
- package/dist/common/dates/index.cjs.map +1 -1
- package/dist/common/dates/index.js +1 -1
- package/dist/common/mixins/input-group.cjs +1 -1
- package/dist/common/mixins/input-group.cjs.map +1 -1
- package/dist/common/mixins/input-group.js +5 -5
- package/dist/common/mixins/input.cjs +1 -1
- package/dist/common/mixins/input.cjs.map +1 -1
- package/dist/common/mixins/input.js +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
- package/dist/common/mixins/keyboard-list-navigation.js +1 -1
- package/dist/common/mixins/modal.cjs +1 -1
- package/dist/common/mixins/modal.cjs.map +1 -1
- package/dist/common/mixins/modal.js +1 -1
- package/dist/common/mixins/mode.cjs +1 -1
- package/dist/common/mixins/mode.js +1 -1
- package/dist/common/owned_classes.d.ts +4 -0
- package/dist/common/owned_classes.d.ts.map +1 -0
- package/dist/common/utils/index.cjs +1 -2
- package/dist/common/utils/index.d.ts +2 -2
- package/dist/common/utils/index.d.ts.map +1 -1
- package/dist/common/utils/index.js +2 -150
- package/dist/component-documentation.json +1 -1
- package/dist/components/Banner/Banner.vue.d.ts +53 -1
- package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +53 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +53 -1
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +1 -0
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -3
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +53 -1
- package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +53 -1
- package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPill.vue.d.ts +161 -6
- package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
- package/dist/components/Hovercard/Hovercard.vue.d.ts +4 -0
- package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +53 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts +53 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
- package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +53 -1
- package/dist/components/Modal/Modal.vue.d.ts +53 -1
- package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
- package/dist/components/Notice/Notice.vue.d.ts +53 -1
- package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
- package/dist/components/Notice/NoticeContent.vue.d.ts +53 -1
- package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -0
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +66 -0
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBarConstants.d.ts +18 -0
- package/dist/components/ProgressBar/ProgressBarConstants.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +3 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.vue.d.ts +41 -9
- package/dist/components/Radio/Radio.vue.d.ts +53 -1
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts +53 -1
- package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +53 -1
- package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +53 -1
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +54 -1
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts +10 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts.map +1 -1
- package/dist/components/SelectMenu/SelectMenu.vue.d.ts +53 -1
- package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +1 -3
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Tab/Tab.vue.d.ts +18 -0
- package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
- package/dist/components/Tab/TabGroup.vue.d.ts +3 -1
- package/dist/components/Tab/TabGroup.vue.d.ts.map +1 -1
- package/dist/components/Text/Text.vue.d.ts +53 -1
- package/dist/components/Text/Text.vue.d.ts.map +1 -1
- package/dist/components/Text/TextConstants.d.ts +2 -0
- package/dist/components/Text/TextConstants.d.ts.map +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/modules/SlideViewport.vue.d.ts +38 -0
- package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -0
- package/dist/components/Text/modules/slide.d.ts +19 -0
- package/dist/components/Text/modules/slide.d.ts.map +1 -0
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +53 -1
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +53 -1
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +212 -4
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +62 -61
- package/dist/{floating-ui.dom-BUeA6pp4.js → floating-ui.dom-CuL5LTgX.js} +1 -1
- package/dist/{floating-ui.dom-BUeA6pp4.js.map → floating-ui.dom-CuL5LTgX.js.map} +1 -1
- package/dist/{floating-ui.dom-DF2uE3n8.cjs → floating-ui.dom-S7QIcAlj.cjs} +1 -1
- package/dist/{floating-ui.dom-DF2uE3n8.cjs.map → floating-ui.dom-S7QIcAlj.cjs.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/avatar/avatar.cjs +1 -1
- package/dist/lib/avatar/avatar.cjs.map +1 -1
- package/dist/lib/avatar/avatar.js +7 -7
- package/dist/lib/badge/badge.cjs +1 -1
- package/dist/lib/badge/badge.cjs.map +1 -1
- package/dist/lib/badge/badge.js +2 -2
- package/dist/lib/banner/banner.cjs +1 -1
- package/dist/lib/banner/banner.cjs.map +1 -1
- package/dist/lib/banner/banner.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/lib/button/button.cjs +1 -1
- package/dist/lib/button/button.cjs.map +1 -1
- package/dist/lib/button/button.js +6 -6
- package/dist/lib/button/button.js.map +1 -1
- package/dist/lib/button-group/button-group.cjs +1 -1
- package/dist/lib/button-group/button-group.js +1 -1
- package/dist/lib/button-group/buttons-decorator.cjs +1 -1
- package/dist/lib/button-group/buttons-decorator.js +1 -1
- package/dist/lib/card/card.cjs +1 -1
- package/dist/lib/card/card.cjs.map +1 -1
- package/dist/lib/card/card.js +2 -2
- package/dist/lib/checkbox/checkbox.cjs +1 -1
- package/dist/lib/checkbox/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox.js +5 -5
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
- package/dist/lib/chip/chip.cjs +1 -1
- package/dist/lib/chip/chip.cjs.map +1 -1
- package/dist/lib/chip/chip.js +4 -4
- package/dist/lib/codeblock/codeblock.cjs +1 -1
- package/dist/lib/codeblock/codeblock.js +1 -1
- package/dist/lib/collapsible/collapsible-lazy-show.cjs +1 -1
- package/dist/lib/collapsible/collapsible-lazy-show.js +1 -1
- package/dist/lib/collapsible/collapsible.cjs +1 -1
- package/dist/lib/collapsible/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible/collapsible.js +4 -4
- package/dist/lib/combobox/combobox-empty-list.cjs +1 -1
- package/dist/lib/combobox/combobox-empty-list.js +1 -1
- package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
- package/dist/lib/combobox/combobox-loading-list.js +1 -1
- package/dist/lib/combobox/combobox.cjs +1 -1
- package/dist/lib/combobox/combobox.js +1 -1
- package/dist/lib/combobox/index.cjs +1 -1
- package/dist/lib/combobox/index.js +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +8 -8
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +7 -7
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.js +1 -1
- package/dist/lib/datepicker/index.cjs +1 -1
- package/dist/lib/datepicker/index.js +1 -1
- package/dist/lib/description-list/description-list.cjs +1 -1
- package/dist/lib/description-list/description-list.js +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown-list.js +2 -2
- package/dist/lib/dropdown/dropdown-separator.cjs +1 -1
- package/dist/lib/dropdown/dropdown-separator.js +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +8 -18
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/emoji/emoji.cjs +1 -1
- package/dist/lib/emoji/emoji.js +1 -1
- package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +1 -1
- package/dist/lib/emoji-picker/index.cjs +1 -1
- package/dist/lib/emoji-picker/index.js +1 -1
- package/dist/lib/empty-state/empty-state.cjs +1 -1
- package/dist/lib/empty-state/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state.js +2 -2
- package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill.js +1 -1
- package/dist/lib/filter-pill/index.cjs +1 -1
- package/dist/lib/filter-pill/index.js +1 -1
- package/dist/lib/hovercard/hovercard.cjs +1 -1
- package/dist/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard/hovercard.js +2 -2
- package/dist/lib/icon/icon.cjs +1 -1
- package/dist/lib/icon/icon.js +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer/image-viewer.js +2 -2
- package/dist/lib/input/input.cjs +1 -1
- package/dist/lib/input/input.cjs.map +1 -1
- package/dist/lib/input/input.js +8 -8
- package/dist/lib/input-group/input-group.cjs +1 -1
- package/dist/lib/input-group/input-group.cjs.map +1 -1
- package/dist/lib/input-group/input-group.js +5 -5
- package/dist/lib/item-layout/item-layout.cjs +2 -2
- package/dist/lib/item-layout/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout/item-layout.js +2 -2
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +2 -2
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs.map +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.js +2 -2
- package/dist/lib/lazy-show/lazy-show.cjs +1 -1
- package/dist/lib/lazy-show/lazy-show.js +1 -1
- package/dist/lib/link/link.cjs +1 -1
- package/dist/lib/link/link.js +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +2 -2
- package/dist/lib/list-item-group/list-item-group.cjs +1 -1
- package/dist/lib/list-item-group/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group/list-item-group.js +2 -2
- package/dist/lib/loader/loader.cjs +1 -1
- package/dist/lib/loader/loader.js +1 -1
- package/dist/lib/modal/modal.cjs +1 -1
- package/dist/lib/modal/modal.cjs.map +1 -1
- package/dist/lib/modal/modal.js +9 -9
- package/dist/lib/modal/modal.js.map +1 -1
- package/dist/lib/mode-directive/mode.cjs +1 -1
- package/dist/lib/mode-directive/mode.js +1 -1
- package/dist/lib/mode-island/mode-island.cjs +1 -1
- package/dist/lib/mode-island/mode-island.js +1 -1
- package/dist/lib/motion-text/motion-text.cjs +1 -1
- package/dist/lib/motion-text/motion-text.js +1 -1
- package/dist/lib/notice/notice-action.cjs +1 -1
- package/dist/lib/notice/notice-action.js +1 -1
- package/dist/lib/notice/notice-content.cjs +1 -1
- package/dist/lib/notice/notice-content.cjs.map +1 -1
- package/dist/lib/notice/notice-content.js +3 -3
- package/dist/lib/notice/notice-icon.cjs +1 -1
- package/dist/lib/notice/notice-icon.cjs.map +1 -1
- package/dist/lib/notice/notice-icon.js +2 -2
- package/dist/lib/notice/notice.cjs +1 -1
- package/dist/lib/notice/notice.js +1 -1
- package/dist/lib/pagination/pagination.cjs +1 -1
- package/dist/lib/pagination/pagination.js +1 -1
- package/dist/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/lib/popover/popover-header-footer.js +4 -4
- package/dist/lib/popover/popover.cjs +1 -1
- package/dist/lib/popover/popover.cjs.map +1 -1
- package/dist/lib/popover/popover.js +101 -83
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/presence/index.cjs +1 -1
- package/dist/lib/presence/index.js +1 -1
- package/dist/lib/presence/presence.cjs +1 -1
- package/dist/lib/presence/presence.js +1 -1
- package/dist/lib/progress-bar/index.cjs +1 -0
- package/dist/lib/progress-bar/index.js +2 -0
- package/dist/lib/progress-bar/progress-bar.cjs +1 -0
- package/dist/lib/progress-bar/progress-bar.js +2 -0
- package/dist/lib/progress-circle/progress-circle.cjs +1 -1
- package/dist/lib/progress-circle/progress-circle.cjs.map +1 -1
- package/dist/lib/progress-circle/progress-circle.js +81 -42
- package/dist/lib/progress-circle/progress-circle.js.map +1 -1
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +7 -7
- package/dist/lib/radio-group/radios-decorator.cjs +1 -1
- package/dist/lib/radio-group/radios-decorator.js +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.js +3 -3
- package/dist/lib/resizable/resizable-handle.cjs +1 -1
- package/dist/lib/resizable/resizable-handle.js +1 -1
- package/dist/lib/resizable/resizable-panel.cjs +1 -1
- package/dist/lib/resizable/resizable-panel.js +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
- package/dist/lib/rich-text-editor/force-linkify.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/lib/root-layout/root-layout.cjs +1 -1
- package/dist/lib/root-layout/root-layout.js +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.js +1 -1
- package/dist/lib/scroller/scroller.cjs +1 -1
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/segmented-control/segmented-control-item.cjs +1 -1
- package/dist/lib/segmented-control/segmented-control-item.cjs.map +1 -1
- package/dist/lib/segmented-control/segmented-control-item.js +34 -4
- package/dist/lib/segmented-control/segmented-control-item.js.map +1 -1
- package/dist/lib/segmented-control/segmented-control.cjs +1 -1
- package/dist/lib/segmented-control/segmented-control.cjs.map +1 -1
- package/dist/lib/segmented-control/segmented-control.js +1 -1
- package/dist/lib/select-menu/select-menu.cjs +1 -1
- package/dist/lib/select-menu/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu.js +8 -8
- package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
- package/dist/lib/skeleton/skeleton-list-item.js +1 -1
- package/dist/lib/skeleton/skeleton-paragraph.cjs +1 -1
- package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
- package/dist/lib/skeleton/skeleton-shape.js +1 -1
- package/dist/lib/skeleton/skeleton-text.cjs +1 -1
- package/dist/lib/skeleton/skeleton-text.js +1 -1
- package/dist/lib/skeleton/skeleton.cjs +1 -1
- package/dist/lib/skeleton/skeleton.js +1 -1
- package/dist/lib/slider/index.cjs +1 -1
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/slider/slider.cjs +1 -1
- package/dist/lib/slider/slider.js +1 -1
- package/dist/lib/split-button/split-button-end.cjs +1 -1
- package/dist/lib/split-button/split-button-end.cjs.map +1 -1
- package/dist/lib/split-button/split-button-end.js +2 -2
- package/dist/lib/split-button/split-button-start.cjs +1 -1
- package/dist/lib/split-button/split-button-start.js +1 -1
- package/dist/lib/split-button/split-button.cjs +1 -1
- package/dist/lib/split-button/split-button.cjs.map +1 -1
- package/dist/lib/split-button/split-button.js +5 -5
- package/dist/lib/stack/stack.cjs +1 -1
- package/dist/lib/stack/stack.js +1 -1
- package/dist/lib/tab/tab-group.cjs +1 -1
- package/dist/lib/tab/tab-group.cjs.map +1 -1
- package/dist/lib/tab/tab-group.js +12 -4
- package/dist/lib/tab/tab-group.js.map +1 -1
- package/dist/lib/tab/tab-panel.cjs +1 -1
- package/dist/lib/tab/tab-panel.cjs.map +1 -1
- package/dist/lib/tab/tab-panel.js +2 -2
- package/dist/lib/tab/tab.cjs +1 -1
- package/dist/lib/tab/tab.cjs.map +1 -1
- package/dist/lib/tab/tab.js +36 -6
- package/dist/lib/tab/tab.js.map +1 -1
- package/dist/lib/text/index.cjs +1 -1
- package/dist/lib/text/index.js +3 -3
- package/dist/lib/text/text-constants.cjs +1 -1
- package/dist/lib/text/text-constants.cjs.map +1 -1
- package/dist/lib/text/text-constants.js +5 -4
- package/dist/lib/text/text-constants.js.map +1 -1
- package/dist/lib/text/text.cjs +1 -2
- package/dist/lib/text/text.js +2 -184
- package/dist/lib/text-list/index.cjs +1 -1
- package/dist/lib/text-list/index.js +2 -2
- package/dist/lib/text-list/text-list-item.cjs +1 -1
- package/dist/lib/text-list/text-list-item.js +1 -1
- package/dist/lib/text-list/text-list.cjs +1 -1
- package/dist/lib/text-list/text-list.js +1 -1
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.js +1 -1
- package/dist/lib/toggle/toggle.cjs +1 -1
- package/dist/lib/toggle/toggle.cjs.map +1 -1
- package/dist/lib/toggle/toggle.js +4 -4
- package/dist/lib/tooltip/tooltip.cjs +1 -1
- package/dist/lib/tooltip/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip/tooltip.js +6 -6
- package/dist/lib/tooltip/tooltip.js.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +2 -2
- package/dist/lib/validation-messages/validation-messages.cjs +1 -1
- package/dist/lib/validation-messages/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages/validation-messages.js +4 -4
- package/dist/{mode_constants-tb7TL85q.js → mode_constants-B8_1b5T8.js} +1 -1
- package/dist/{mode_constants-tb7TL85q.js.map → mode_constants-B8_1b5T8.js.map} +1 -1
- package/dist/{mode_constants-CzYJW9ua.cjs → mode_constants-DM0SVbFM.cjs} +1 -1
- package/dist/{mode_constants-CzYJW9ua.cjs.map → mode_constants-DM0SVbFM.cjs.map} +1 -1
- package/dist/shared/sr_only_close_button.cjs +1 -1
- package/dist/shared/sr_only_close_button.js +1 -1
- package/dist/utils-BL_SrwnF.js +172 -0
- package/dist/utils-BL_SrwnF.js.map +1 -0
- package/dist/utils-GofHWJKi.cjs +2 -0
- package/dist/{common/utils/index.js.map → utils-GofHWJKi.cjs.map} +1 -1
- package/package.json +11 -6
- package/dist/Combobox-96zAPv6d.cjs +0 -3
- package/dist/Datepicker-DmKOuf5y.cjs +0 -2
- package/dist/EmojiPicker-CXFd-iVj.cjs +0 -2
- package/dist/FilterPill-DY9T19XB.cjs +0 -2
- package/dist/RichTextEditor-CjyvDYID.cjs +0 -11
- package/dist/Scroller-Bt8TUghI.cjs +0 -2
- package/dist/Slider-CfvbLBv5.cjs +0 -2
- package/dist/TextListItem-BI9M_J8Y.cjs +0 -2
- package/dist/Toast-BXvUrvd_.cjs +0 -2
- package/dist/common/utils/index.cjs.map +0 -1
- package/dist/lib/text/text.cjs.map +0 -1
- package/dist/lib/text/text.js.map +0 -1
- /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-BecorN_g.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-D8jCH6HB.cjs → _plugin-vue_export-helper-CX7YVcP6.cjs} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { HTML_ELEMENT_TYPE as e } from "../../common/constants/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { createTippyPopover as
|
|
8
|
-
import { POPOVER_APPEND_TO_VALUES as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Teleport as
|
|
2
|
+
import { M as t, N as n, O as r, P as i, _ as a, b as o, i as s, m as c, r as l } from "../../utils-BL_SrwnF.js";
|
|
3
|
+
import { t as u } from "../../_plugin-vue_export-helper-BecorN_g.js";
|
|
4
|
+
import d from "../../common/mixins/modal.js";
|
|
5
|
+
import f from "../../common/mixins/mode.js";
|
|
6
|
+
import p from "../../shared/sr_only_close_button.js";
|
|
7
|
+
import { createTippyPopover as m, getPopperOptions as h } from "./tippy-utils.js";
|
|
8
|
+
import { POPOVER_APPEND_TO_VALUES as g, POPOVER_BOUNDARY_VALUES as _, POPOVER_CONTENT_WIDTHS as v, POPOVER_HEADER_FOOTER_PADDING_CLASSES as y, POPOVER_INITIAL_FOCUS_STRINGS as b, POPOVER_PADDING_CLASSES as x, POPOVER_ROLES as S, POPOVER_STICKY_VALUES as C } from "./popover-constants.js";
|
|
9
|
+
import w from "../lazy-show/lazy-show.js";
|
|
10
|
+
import T from "./popover-header-footer.js";
|
|
11
|
+
import { Teleport as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, mergeProps as j, normalizeClass as M, openBlock as N, renderSlot as P, resolveComponent as F, resolveDirective as I, resolveDynamicComponent as L, toHandlers as R, withCtx as z, withDirectives as B, withKeys as V, withModifiers as H } from "vue";
|
|
12
12
|
//#region components/Popover/Popover.vue
|
|
13
|
-
var
|
|
13
|
+
var U = {
|
|
14
14
|
name: "DtPopover",
|
|
15
15
|
components: {
|
|
16
|
-
SrOnlyCloseButton:
|
|
17
|
-
DtLazyShow:
|
|
18
|
-
PopoverHeaderFooter:
|
|
16
|
+
SrOnlyCloseButton: p,
|
|
17
|
+
DtLazyShow: w,
|
|
18
|
+
PopoverHeaderFooter: T
|
|
19
19
|
},
|
|
20
|
-
mixins: [
|
|
20
|
+
mixins: [d, f],
|
|
21
21
|
props: {
|
|
22
22
|
open: {
|
|
23
23
|
type: [Boolean, null],
|
|
@@ -46,7 +46,7 @@ var V = {
|
|
|
46
46
|
role: {
|
|
47
47
|
type: String,
|
|
48
48
|
default: "dialog",
|
|
49
|
-
validator: (e) =>
|
|
49
|
+
validator: (e) => S.includes(e)
|
|
50
50
|
},
|
|
51
51
|
ariaLabelledby: {
|
|
52
52
|
type: String,
|
|
@@ -59,7 +59,7 @@ var V = {
|
|
|
59
59
|
padding: {
|
|
60
60
|
type: String,
|
|
61
61
|
default: "large",
|
|
62
|
-
validator: (e) => Object.keys(
|
|
62
|
+
validator: (e) => Object.keys(x).some((t) => t === e)
|
|
63
63
|
},
|
|
64
64
|
contentClass: {
|
|
65
65
|
type: [
|
|
@@ -72,7 +72,7 @@ var V = {
|
|
|
72
72
|
contentWidth: {
|
|
73
73
|
type: String,
|
|
74
74
|
default: "",
|
|
75
|
-
validator: (e) =>
|
|
75
|
+
validator: (e) => v.includes(e)
|
|
76
76
|
},
|
|
77
77
|
contentAppear: {
|
|
78
78
|
type: Boolean,
|
|
@@ -93,7 +93,7 @@ var V = {
|
|
|
93
93
|
id: {
|
|
94
94
|
type: String,
|
|
95
95
|
default() {
|
|
96
|
-
return
|
|
96
|
+
return c();
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
offset: {
|
|
@@ -119,7 +119,7 @@ var V = {
|
|
|
119
119
|
boundary: {
|
|
120
120
|
type: [String, e],
|
|
121
121
|
default: "clippingParents",
|
|
122
|
-
validator: (e) =>
|
|
122
|
+
validator: (e) => _.includes(e) || e instanceof HTMLElement
|
|
123
123
|
},
|
|
124
124
|
placement: {
|
|
125
125
|
type: String,
|
|
@@ -132,7 +132,7 @@ var V = {
|
|
|
132
132
|
sticky: {
|
|
133
133
|
type: [Boolean, String],
|
|
134
134
|
default: !1,
|
|
135
|
-
validator: (e) =>
|
|
135
|
+
validator: (e) => C.includes(e)
|
|
136
136
|
},
|
|
137
137
|
maxHeight: {
|
|
138
138
|
type: String,
|
|
@@ -197,7 +197,7 @@ var V = {
|
|
|
197
197
|
initialFocusElement: {
|
|
198
198
|
type: [String, e],
|
|
199
199
|
default: "first",
|
|
200
|
-
validator: (e) =>
|
|
200
|
+
validator: (e) => b.includes(e) || e instanceof HTMLElement || e.startsWith("#")
|
|
201
201
|
},
|
|
202
202
|
openWithArrowKeys: {
|
|
203
203
|
type: Boolean,
|
|
@@ -206,7 +206,7 @@ var V = {
|
|
|
206
206
|
appendTo: {
|
|
207
207
|
type: [e, String],
|
|
208
208
|
default: "body",
|
|
209
|
-
validator: (e) =>
|
|
209
|
+
validator: (e) => g.includes(e) || e instanceof HTMLElement
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
emits: [
|
|
@@ -220,8 +220,8 @@ var V = {
|
|
|
220
220
|
],
|
|
221
221
|
data() {
|
|
222
222
|
return {
|
|
223
|
-
POPOVER_PADDING_CLASSES:
|
|
224
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES:
|
|
223
|
+
POPOVER_PADDING_CLASSES: x,
|
|
224
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: y,
|
|
225
225
|
intersectionObserver: null,
|
|
226
226
|
mutationObserver: null,
|
|
227
227
|
isOutsideViewport: !1,
|
|
@@ -231,7 +231,7 @@ var V = {
|
|
|
231
231
|
toAppear: !1,
|
|
232
232
|
anchorEl: null,
|
|
233
233
|
popoverContentEl: null,
|
|
234
|
-
hasSlotContent:
|
|
234
|
+
hasSlotContent: a,
|
|
235
235
|
scrimTarget: "body"
|
|
236
236
|
};
|
|
237
237
|
},
|
|
@@ -253,7 +253,7 @@ var V = {
|
|
|
253
253
|
return this.isOutsideViewport && this.modal ? "calc(100vh - var(--dt-spacing-50))" : this.maxHeight;
|
|
254
254
|
},
|
|
255
255
|
labelledBy() {
|
|
256
|
-
return this.ariaLabelledby || !this.ariaLabel &&
|
|
256
|
+
return this.ariaLabelledby || !this.ariaLabel && c("DtPopover__anchor") || void 0;
|
|
257
257
|
},
|
|
258
258
|
modalValidationState() {
|
|
259
259
|
return [this.modal, this.initialFocusElement];
|
|
@@ -267,7 +267,7 @@ var V = {
|
|
|
267
267
|
modal: {
|
|
268
268
|
immediate: !0,
|
|
269
269
|
handler(e) {
|
|
270
|
-
this.tip?.setProps({ zIndex: e ? 650 : this.calculateAnchorZindex() });
|
|
270
|
+
this.tip?.setProps({ zIndex: e ? 650 : this.calculateAnchorZindex() }), e ? this.isOpen && this.preventScrolling() : this.enableScrolling();
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
offset: {
|
|
@@ -319,14 +319,14 @@ var V = {
|
|
|
319
319
|
} }
|
|
320
320
|
},
|
|
321
321
|
mounted() {
|
|
322
|
-
|
|
322
|
+
t(r(this.$el), this.$options.name), this.popoverContentEl = r(this.$refs.content?.$el), this.updateAnchorEl(), this.mutationObserver = new MutationObserver(this.updateAnchorEl), this.mutationObserver.observe(this.$refs.anchor, { childList: !0 }), this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport), this.intersectionObserver.observe(this.popoverContentEl);
|
|
323
323
|
},
|
|
324
324
|
beforeUnmount() {
|
|
325
|
-
this._isUnmounting = !0, this.popoverContentEl && (this.popoverContentEl.style.transition = "none"), this.tip?.destroy(), this.intersectionObserver?.disconnect(), this.mutationObserver?.disconnect(), this.removeReferences(), this.removeEventListeners();
|
|
325
|
+
this._isUnmounting = !0, this.enableScrolling(), this.popoverContentEl && (this.popoverContentEl.style.transition = "none"), this.tip?.destroy(), this.intersectionObserver?.disconnect(), this.mutationObserver?.disconnect(), this.removeReferences(), this.removeEventListeners();
|
|
326
326
|
},
|
|
327
327
|
methods: {
|
|
328
328
|
getCloseButtonElement() {
|
|
329
|
-
return
|
|
329
|
+
return r((this.showCloseButton ? this.$refs.popover__header?.$refs["popover__close-button"] : this.$refs["popover__close-button"])?.$el);
|
|
330
330
|
},
|
|
331
331
|
getModeReferenceEl() {
|
|
332
332
|
return this.$refs.anchor;
|
|
@@ -334,7 +334,7 @@ var V = {
|
|
|
334
334
|
hasIntersectedViewport(e) {
|
|
335
335
|
let t = e?.[0]?.target;
|
|
336
336
|
if (!t) return;
|
|
337
|
-
let n =
|
|
337
|
+
let n = o(t);
|
|
338
338
|
this.isOutsideViewport = n.bottom || n.top;
|
|
339
339
|
},
|
|
340
340
|
updateAnchorEl() {
|
|
@@ -344,11 +344,11 @@ var V = {
|
|
|
344
344
|
console.warn("No anchor found for popover");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
|
-
this.isOpen && (this.initTippyInstance(), this.tip?.show());
|
|
347
|
+
this.isOpen && (this.initTippyInstance(), this.tip?.show()), this._scrollLock && (this.enableScrolling(), this.isOpen && this.preventScrolling());
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
350
|
popperOptions() {
|
|
351
|
-
return
|
|
351
|
+
return h({
|
|
352
352
|
fallbackPlacements: this.fallbackPlacements,
|
|
353
353
|
tether: this.tether,
|
|
354
354
|
hasHideModifierEnabled: !0,
|
|
@@ -359,7 +359,7 @@ var V = {
|
|
|
359
359
|
this.modal && this.initialFocusElement === "none" && console.error("If the popover is modal you must set the initialFocusElement prop. Possible values: \"dialog\", \"first\", HTMLElement");
|
|
360
360
|
},
|
|
361
361
|
calculateAnchorZindex() {
|
|
362
|
-
return
|
|
362
|
+
return r(this.$el).getRootNode().querySelector(".d-modal[aria-hidden=\"false\"], .d-modal--transparent[aria-hidden=\"false\"], .d-modal[open], .d-modal--transparent[open]") || this.anchorEl?.closest(".d-zi-drawer") ? 650 : 300;
|
|
363
363
|
},
|
|
364
364
|
defaultToggleOpen(e) {
|
|
365
365
|
if (!this.openOnContext && (this.open === null || this.open === void 0)) {
|
|
@@ -401,15 +401,28 @@ var V = {
|
|
|
401
401
|
this.isOpen = !1;
|
|
402
402
|
},
|
|
403
403
|
preventScrolling() {
|
|
404
|
-
if (this.modal)
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
e
|
|
408
|
-
|
|
404
|
+
if (!this.modal || this._scrollLock) return;
|
|
405
|
+
let e = this.anchorEl?.closest("body, .tippy-box");
|
|
406
|
+
if (e) if (e.tagName?.toLowerCase() === "body") {
|
|
407
|
+
let e = this.anchorEl.getRootNode().host, t = this.anchorEl.closest("dialog"), n = t?.contains(this.tip?.popper) ? t : null;
|
|
408
|
+
n?.addEventListener("close", this.onContainingDialogClose), l(e, this), this._scrollLock = {
|
|
409
|
+
rootElement: e,
|
|
410
|
+
dialog: n
|
|
411
|
+
}, this.tip?.setProps({ offset: this.offset });
|
|
412
|
+
} else n(e, "d-zi-popover", this), this._scrollLock = { parentPopoverBox: e };
|
|
409
413
|
},
|
|
410
414
|
enableScrolling() {
|
|
411
|
-
let e = this.
|
|
412
|
-
|
|
415
|
+
let e = this._scrollLock;
|
|
416
|
+
if (e) {
|
|
417
|
+
if (this._scrollLock = null, e.parentPopoverBox) {
|
|
418
|
+
i(e.parentPopoverBox, this);
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
e.dialog?.removeEventListener("close", this.onContainingDialogClose), s(e.rootElement, this), this._isUnmounting || this.tip?.setProps({ offset: this.offset });
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
onContainingDialogClose() {
|
|
425
|
+
this._scrollLock?.dialog?.open || this.enableScrolling();
|
|
413
426
|
},
|
|
414
427
|
removeReferences() {
|
|
415
428
|
this.anchorEl = null, this.popoverContentEl = null, this.tip = null;
|
|
@@ -436,11 +449,11 @@ var V = {
|
|
|
436
449
|
this.isCurrentVisibility(e, !0) && (await this.focusInitialElement(e), await this.$nextTick(), this.isCurrentVisibility(e, !0) && (this.preventScrolling(), this.$emit("opened", !0, this.$refs.popover__content), this.isCurrentVisibility(e, !0) && this.open !== null && this.$emit("update:open", !0)));
|
|
437
450
|
},
|
|
438
451
|
async focusInitialElement(e) {
|
|
439
|
-
this.initialFocusElement === "dialog" &&
|
|
452
|
+
this.initialFocusElement === "dialog" && r(this.$refs.content?.$el)?.focus(), typeof this.initialFocusElement == "string" && this.initialFocusElement.startsWith("#") && this.focusInitialElementById(), this.initialFocusElement === "first" && await this.focusFirstElementIfNeeded(this.$refs.popover__content, e), this.isCurrentVisibility(e, !0) && this.initialFocusElement instanceof HTMLElement && this.initialFocusElement.focus();
|
|
440
453
|
},
|
|
441
454
|
focusInitialElementById() {
|
|
442
|
-
let e =
|
|
443
|
-
e ? e.focus() : (console.warn("Could not find the element specified in dt-popover prop \"initialFocusElement\". Defaulting to focusing the dialog."),
|
|
455
|
+
let e = r(this.$refs.content?.$el)?.querySelector(this.initialFocusElement);
|
|
456
|
+
e ? e.focus() : (console.warn("Could not find the element specified in dt-popover prop \"initialFocusElement\". Defaulting to focusing the dialog."), r(this.$refs.content?.$el)?.focus());
|
|
444
457
|
},
|
|
445
458
|
onResize() {
|
|
446
459
|
this.closePopover();
|
|
@@ -459,7 +472,7 @@ var V = {
|
|
|
459
472
|
let n = await this.getFirstFocusableElement(e);
|
|
460
473
|
if (!this.isCurrentVisibility(t, !0)) return;
|
|
461
474
|
n?.focus({ preventScroll: !0 });
|
|
462
|
-
} else this.showCloseButton ? this.$refs.popover__header?.focusCloseButton() :
|
|
475
|
+
} else this.showCloseButton ? this.$refs.popover__header?.focusCloseButton() : r(this.$refs.content?.$el)?.focus();
|
|
463
476
|
},
|
|
464
477
|
resolveParentScrimTarget() {
|
|
465
478
|
return this.anchorEl?.parentElement ?? document.body;
|
|
@@ -511,7 +524,7 @@ var V = {
|
|
|
511
524
|
let e = null, t = !1;
|
|
512
525
|
switch (this.appendTo) {
|
|
513
526
|
case "body":
|
|
514
|
-
e = this.anchorEl?.closest("dialog") ?? this.anchorEl?.getRootNode()?.querySelector("body");
|
|
527
|
+
e = this.anchorEl?.closest("dialog") ?? this.anchorEl?.getRootNode()?.querySelector?.("body") ?? document.body;
|
|
515
528
|
break;
|
|
516
529
|
case "root":
|
|
517
530
|
try {
|
|
@@ -524,7 +537,7 @@ var V = {
|
|
|
524
537
|
e = this.appendTo;
|
|
525
538
|
break;
|
|
526
539
|
}
|
|
527
|
-
this.tip?.destroy(), this.tip =
|
|
540
|
+
this.tip?.destroy(), this.tip = m(this.anchorEl, {
|
|
528
541
|
popperOptions: this.popperOptions(),
|
|
529
542
|
contentElement: this.popoverContentEl,
|
|
530
543
|
placement: this.placement,
|
|
@@ -553,48 +566,48 @@ var V = {
|
|
|
553
566
|
this.$emit("mouseleave-popover-anchor");
|
|
554
567
|
}
|
|
555
568
|
}
|
|
556
|
-
},
|
|
569
|
+
}, W = [
|
|
557
570
|
"id",
|
|
558
571
|
"data-qa",
|
|
559
572
|
"tabindex"
|
|
560
|
-
],
|
|
561
|
-
function
|
|
562
|
-
let o =
|
|
563
|
-
return
|
|
573
|
+
], G = ["data-qa"];
|
|
574
|
+
function K(e, t, n, r, i, a) {
|
|
575
|
+
let o = F("popover-header-footer"), s = F("sr-only-close-button"), c = F("dt-lazy-show"), l = I("dt-focustrap");
|
|
576
|
+
return N(), k("div", null, [n.modal && i.isOpen ? (N(), D(E, {
|
|
564
577
|
key: 0,
|
|
565
578
|
to: i.scrimTarget
|
|
566
|
-
}, [
|
|
579
|
+
}, [A("div", {
|
|
567
580
|
class: "d-modal--transparent",
|
|
568
581
|
"data-qa": "dt-popover-scrim",
|
|
569
582
|
"aria-hidden": "false",
|
|
570
|
-
onClick: t[0] || (t[0] =
|
|
571
|
-
})], 8, ["to"])) :
|
|
583
|
+
onClick: t[0] || (t[0] = H(() => {}, ["prevent", "stop"]))
|
|
584
|
+
})], 8, ["to"])) : O("", !0), (N(), D(L(n.elementType), {
|
|
572
585
|
ref: "popover",
|
|
573
|
-
class:
|
|
586
|
+
class: M(["d-popover", { "d-popover__anchor--opened": i.isOpen }]),
|
|
574
587
|
"data-qa": "dt-popover-container"
|
|
575
588
|
}, {
|
|
576
|
-
default:
|
|
589
|
+
default: z(() => [A("div", {
|
|
577
590
|
id: !n.ariaLabelledby && a.labelledBy,
|
|
578
591
|
ref: "anchor",
|
|
579
|
-
class:
|
|
592
|
+
class: M(n.anchorClass),
|
|
580
593
|
"data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-anchor` : "dt-popover-anchor",
|
|
581
594
|
tabindex: n.openOnContext ? 0 : void 0,
|
|
582
595
|
onClickCapture: t[1] || (t[1] = (...e) => a.defaultToggleOpen && a.defaultToggleOpen(...e)),
|
|
583
596
|
onContextmenu: t[2] || (t[2] = (...e) => a.onContext && a.onContext(...e)),
|
|
584
597
|
onKeydown: [
|
|
585
|
-
t[3] || (t[3] =
|
|
586
|
-
t[4] || (t[4] =
|
|
587
|
-
t[6] || (t[6] =
|
|
588
|
-
t[7] || (t[7] =
|
|
598
|
+
t[3] || (t[3] = V((...e) => a.onArrowKeyPress && a.onArrowKeyPress(...e), ["up"])),
|
|
599
|
+
t[4] || (t[4] = V((...e) => a.onArrowKeyPress && a.onArrowKeyPress(...e), ["down"])),
|
|
600
|
+
t[6] || (t[6] = V((t) => e.$emit("keydown", t), ["enter"])),
|
|
601
|
+
t[7] || (t[7] = V((t) => e.$emit("keydown", t), ["space"]))
|
|
589
602
|
],
|
|
590
|
-
onKeydownCapture: t[5] || (t[5] =
|
|
603
|
+
onKeydownCapture: t[5] || (t[5] = V((...e) => a.closePopover && a.closePopover(...e), ["escape"])),
|
|
591
604
|
onMouseenter: t[8] || (t[8] = (...e) => a.onMouseEnter && a.onMouseEnter(...e)),
|
|
592
605
|
onMouseleave: t[9] || (t[9] = (...e) => a.onMouseLeave && a.onMouseLeave(...e))
|
|
593
|
-
}, [
|
|
606
|
+
}, [P(e.$slots, "anchor", { attrs: {
|
|
594
607
|
"aria-expanded": i.isOpen.toString(),
|
|
595
608
|
"aria-controls": n.id,
|
|
596
609
|
"aria-haspopup": n.role
|
|
597
|
-
} })], 42,
|
|
610
|
+
} })], 42, W), B((N(), D(c, j({
|
|
598
611
|
id: n.id,
|
|
599
612
|
ref: "content",
|
|
600
613
|
role: n.role,
|
|
@@ -617,22 +630,22 @@ function W(e, t, n, r, i, a) {
|
|
|
617
630
|
},
|
|
618
631
|
css: e.$attrs.css,
|
|
619
632
|
tabindex: n.contentTabindex
|
|
620
|
-
}, e.modeAttrs,
|
|
633
|
+
}, e.modeAttrs, R(a.popoverListeners), {
|
|
621
634
|
onMouseenter: a.onMouseEnterAnchor,
|
|
622
635
|
onMouseleave: a.onMouseLeaveAnchor
|
|
623
636
|
}), {
|
|
624
|
-
default:
|
|
625
|
-
i.hasSlotContent(e.$slots.headerContent) || n.showCloseButton ? (
|
|
637
|
+
default: z(() => [
|
|
638
|
+
i.hasSlotContent(e.$slots.headerContent) || n.showCloseButton ? (N(), D(o, {
|
|
626
639
|
key: 0,
|
|
627
640
|
ref: "popover__header",
|
|
628
|
-
class:
|
|
641
|
+
class: M([i.POPOVER_HEADER_FOOTER_PADDING_CLASSES[n.padding], n.headerWrapperClass]),
|
|
629
642
|
"content-class": n.headerClass,
|
|
630
643
|
type: "header",
|
|
631
644
|
"show-close-button": n.showCloseButton,
|
|
632
645
|
"close-role": n.role === "menu" ? "menuitem" : void 0,
|
|
633
646
|
onClose: a.closePopover
|
|
634
647
|
}, {
|
|
635
|
-
content:
|
|
648
|
+
content: z(() => [P(e.$slots, "headerContent", { close: a.closePopover })]),
|
|
636
649
|
_: 3
|
|
637
650
|
}, 8, [
|
|
638
651
|
"class",
|
|
@@ -640,32 +653,37 @@ function W(e, t, n, r, i, a) {
|
|
|
640
653
|
"show-close-button",
|
|
641
654
|
"close-role",
|
|
642
655
|
"onClose"
|
|
643
|
-
])) :
|
|
644
|
-
|
|
656
|
+
])) : O("", !0),
|
|
657
|
+
A("div", {
|
|
645
658
|
ref: "popover__content",
|
|
646
659
|
"data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-content` : "dt-popover-content",
|
|
647
|
-
class:
|
|
660
|
+
class: M([
|
|
648
661
|
"d-popover__content",
|
|
649
662
|
i.POPOVER_PADDING_CLASSES[n.padding],
|
|
650
663
|
n.contentClass
|
|
651
664
|
])
|
|
652
|
-
}, [
|
|
653
|
-
i.hasSlotContent(e.$slots.footerContent) ? (
|
|
665
|
+
}, [P(e.$slots, "content", { close: a.closePopover })], 10, G),
|
|
666
|
+
i.hasSlotContent(e.$slots.footerContent) ? (N(), D(o, {
|
|
654
667
|
key: 1,
|
|
655
668
|
ref: "popover__footer",
|
|
656
669
|
type: "footer",
|
|
657
|
-
class:
|
|
670
|
+
class: M([i.POPOVER_HEADER_FOOTER_PADDING_CLASSES[n.padding], n.footerWrapperClass]),
|
|
658
671
|
"content-class": n.footerClass
|
|
659
672
|
}, {
|
|
660
|
-
content:
|
|
673
|
+
content: z(() => [P(e.$slots, "footerContent", { close: a.closePopover })]),
|
|
661
674
|
_: 3
|
|
662
|
-
}, 8, ["class", "content-class"])) :
|
|
663
|
-
n.showCloseButton ?
|
|
675
|
+
}, 8, ["class", "content-class"])) : O("", !0),
|
|
676
|
+
n.showCloseButton ? O("", !0) : (N(), D(s, {
|
|
664
677
|
key: 2,
|
|
665
678
|
ref: "popover__close-button",
|
|
666
679
|
role: n.role === "menu" ? "menuitem" : void 0,
|
|
680
|
+
tabindex: n.role === "menu" ? -1 : void 0,
|
|
667
681
|
onClose: a.closePopover
|
|
668
|
-
}, null, 8, [
|
|
682
|
+
}, null, 8, [
|
|
683
|
+
"role",
|
|
684
|
+
"tabindex",
|
|
685
|
+
"onClose"
|
|
686
|
+
]))
|
|
669
687
|
]),
|
|
670
688
|
_: 3
|
|
671
689
|
}, 16, [
|
|
@@ -693,8 +711,8 @@ function W(e, t, n, r, i, a) {
|
|
|
693
711
|
_: 3
|
|
694
712
|
}, 8, ["class"]))]);
|
|
695
713
|
}
|
|
696
|
-
var
|
|
714
|
+
var q = /* @__PURE__ */ u(U, [["render", K]]);
|
|
697
715
|
//#endregion
|
|
698
|
-
export {
|
|
716
|
+
export { q as default };
|
|
699
717
|
|
|
700
718
|
//# sourceMappingURL=popover.js.map
|