@dialpad/dialtone-vue 3.97.0 → 3.99.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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +30 -0
- package/README.md +17 -19
- package/dist/dialtone-vue.cjs +5 -5
- package/dist/dialtone-vue.js +2327 -1988
- package/dist/directives.js +1 -1
- package/dist/emoji-QX8MEKZV.cjs +1 -0
- package/dist/{emoji-64scMQZS.js → emoji-ZUS2Xysh.js} +5928 -5905
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +4 -4
- package/dist/{emoji_picker-Mxqzrrbr.js → emoji_picker-3kUtetnz.js} +245 -237
- package/dist/emoji_picker-BwwTFuPb.cjs +1 -0
- package/dist/{emoji_text_wrapper-5mWcPQ4m.cjs → emoji_text_wrapper-2Ia2nUgQ.cjs} +1 -1
- package/dist/{emoji_text_wrapper-GCssca4o.js → emoji_text_wrapper-VoDb04sP.js} +1 -1
- package/dist/message_input.cjs +13 -13
- package/dist/message_input.js +2121 -2244
- package/dist/{stack-q9VLdD1J.js → stack--ux25GPn.js} +424 -725
- package/dist/stack-s3MR-6wx.cjs +2 -0
- package/dist/style.css +1 -1
- package/dist/{tooltip-H27s49LR.js → tooltip-Cr_G7ib3.js} +10 -10
- package/package.json +12 -36
- package/dist/component-documentation.json +0 -1
- package/dist/emoji-zMlz3b9J.cjs +0 -1
- package/dist/emoji_picker-o0hHRpcs.cjs +0 -1
- package/dist/stack-_FIkvuMY.cjs +0 -2
- package/dist/types/common/dates.d.ts +0 -49
- package/dist/types/common/dates.d.ts.map +0 -1
- package/dist/types/common/emoji.d.ts +0 -25
- package/dist/types/common/emoji.d.ts.map +0 -1
- package/dist/types/common/mixins/index.d.ts +0 -4
- package/dist/types/common/mixins/index.d.ts.map +0 -1
- package/dist/types/components/avatar/index.d.ts +0 -3
- package/dist/types/components/avatar/index.d.ts.map +0 -1
- package/dist/types/components/badge/index.d.ts +0 -3
- package/dist/types/components/badge/index.d.ts.map +0 -1
- package/dist/types/components/banner/index.d.ts +0 -2
- package/dist/types/components/banner/index.d.ts.map +0 -1
- package/dist/types/components/breadcrumbs/index.d.ts +0 -4
- package/dist/types/components/breadcrumbs/index.d.ts.map +0 -1
- package/dist/types/components/button_group/index.d.ts +0 -3
- package/dist/types/components/button_group/index.d.ts.map +0 -1
- package/dist/types/components/card/index.d.ts +0 -2
- package/dist/types/components/card/index.d.ts.map +0 -1
- package/dist/types/components/checkbox_group/index.d.ts +0 -2
- package/dist/types/components/checkbox_group/index.d.ts.map +0 -1
- package/dist/types/components/chip/index.d.ts +0 -3
- package/dist/types/components/chip/index.d.ts.map +0 -1
- package/dist/types/components/codeblock/index.d.ts +0 -2
- package/dist/types/components/codeblock/index.d.ts.map +0 -1
- package/dist/types/components/collapsible/index.d.ts +0 -2
- package/dist/types/components/collapsible/index.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox.vue.d.ts +0 -338
- package/dist/types/components/combobox/combobox.vue.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox_constants.d.ts +0 -12
- package/dist/types/components/combobox/combobox_constants.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts +0 -39
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts +0 -3
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts.map +0 -1
- package/dist/types/components/combobox/index.d.ts +0 -3
- package/dist/types/components/combobox/index.d.ts.map +0 -1
- package/dist/types/components/datepicker/composables/useCalendar.d.ts +0 -10
- package/dist/types/components/datepicker/composables/useCalendar.d.ts.map +0 -1
- package/dist/types/components/datepicker/composables/useMonthYearPicker.d.ts +0 -11
- package/dist/types/components/datepicker/composables/useMonthYearPicker.d.ts.map +0 -1
- package/dist/types/components/datepicker/datepicker.vue.d.ts +0 -8
- package/dist/types/components/datepicker/datepicker.vue.d.ts.map +0 -1
- package/dist/types/components/datepicker/datepicker_constants.d.ts +0 -8
- package/dist/types/components/datepicker/datepicker_constants.d.ts.map +0 -1
- package/dist/types/components/datepicker/formatUtils.d.ts +0 -14
- package/dist/types/components/datepicker/formatUtils.d.ts.map +0 -1
- package/dist/types/components/datepicker/index.d.ts +0 -3
- package/dist/types/components/datepicker/index.d.ts.map +0 -1
- package/dist/types/components/datepicker/modules/calendar.vue.d.ts +0 -14
- package/dist/types/components/datepicker/modules/calendar.vue.d.ts.map +0 -1
- package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +0 -20
- package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +0 -1
- package/dist/types/components/datepicker/utils.d.ts +0 -4
- package/dist/types/components/datepicker/utils.d.ts.map +0 -1
- package/dist/types/components/description_list/description_list.vue.d.ts +0 -98
- package/dist/types/components/description_list/description_list.vue.d.ts.map +0 -1
- package/dist/types/components/description_list/description_list_constants.d.ts +0 -2
- package/dist/types/components/description_list/description_list_constants.d.ts.map +0 -1
- package/dist/types/components/description_list/description_list_validators.d.ts +0 -2
- package/dist/types/components/description_list/description_list_validators.d.ts.map +0 -1
- package/dist/types/components/description_list/index.d.ts +0 -3
- package/dist/types/components/description_list/index.d.ts.map +0 -1
- package/dist/types/components/dropdown/dropdown.vue.d.ts +0 -474
- package/dist/types/components/dropdown/dropdown.vue.d.ts.map +0 -1
- package/dist/types/components/dropdown/dropdown_constants.d.ts +0 -10
- package/dist/types/components/dropdown/dropdown_constants.d.ts.map +0 -1
- package/dist/types/components/dropdown/dropdown_list.vue.d.ts +0 -36
- package/dist/types/components/dropdown/dropdown_list.vue.d.ts.map +0 -1
- package/dist/types/components/dropdown/dropdown_separator.vue.d.ts +0 -3
- package/dist/types/components/dropdown/dropdown_separator.vue.d.ts.map +0 -1
- package/dist/types/components/dropdown/dropdown_story_constants.d.ts +0 -5
- package/dist/types/components/dropdown/dropdown_story_constants.d.ts.map +0 -1
- package/dist/types/components/dropdown/index.d.ts +0 -4
- package/dist/types/components/dropdown/index.d.ts.map +0 -1
- package/dist/types/components/emoji/emoji.vue.d.ts +0 -115
- package/dist/types/components/emoji/emoji.vue.d.ts.map +0 -1
- package/dist/types/components/emoji/emoji_constants.d.ts +0 -3
- package/dist/types/components/emoji/emoji_constants.d.ts.map +0 -1
- package/dist/types/components/emoji/index.d.ts +0 -2
- package/dist/types/components/emoji/index.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/composables/useKeyboardNavigation.d.ts +0 -11
- package/dist/types/components/emoji_picker/composables/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts +0 -8
- package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -33
- package/dist/types/components/emoji_picker/emoji_picker_constants.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/emojis/index.d.ts +0 -50
- package/dist/types/components/emoji_picker/emojis/index.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/index.d.ts +0 -3
- package/dist/types/components/emoji_picker/index.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/modules/emoji_description.vue.d.ts +0 -8
- package/dist/types/components/emoji_picker/modules/emoji_description.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts +0 -13
- package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +0 -10
- package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts +0 -10
- package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +0 -10
- package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +0 -59
- package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +0 -1
- package/dist/types/components/emoji_text_wrapper/index.d.ts +0 -2
- package/dist/types/components/emoji_text_wrapper/index.d.ts.map +0 -1
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts +0 -126
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +0 -1
- package/dist/types/components/image_viewer/index.d.ts +0 -2
- package/dist/types/components/image_viewer/index.d.ts.map +0 -1
- package/dist/types/components/input/index.d.ts +0 -3
- package/dist/types/components/input/index.d.ts.map +0 -1
- package/dist/types/components/input/input.vue.d.ts +0 -373
- package/dist/types/components/input/input.vue.d.ts.map +0 -1
- package/dist/types/components/input/input_constants.d.ts +0 -23
- package/dist/types/components/input/input_constants.d.ts.map +0 -1
- package/dist/types/components/input_group/decorators/input.vue.d.ts +0 -104
- package/dist/types/components/input_group/decorators/input.vue.d.ts.map +0 -1
- package/dist/types/components/input_group/decorators/inputs.vue.d.ts +0 -3
- package/dist/types/components/input_group/decorators/inputs.vue.d.ts.map +0 -1
- package/dist/types/components/keyboard_shortcut/index.d.ts +0 -3
- package/dist/types/components/keyboard_shortcut/index.d.ts.map +0 -1
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +0 -77
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +0 -1
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut_constants.d.ts +0 -13
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut_constants.d.ts.map +0 -1
- package/dist/types/components/list_item_group/index.d.ts +0 -2
- package/dist/types/components/list_item_group/index.d.ts.map +0 -1
- package/dist/types/components/list_item_group/list_item_group.vue.d.ts +0 -66
- package/dist/types/components/list_item_group/list_item_group.vue.d.ts.map +0 -1
- package/dist/types/components/list_item_group/list_item_group_constants.d.ts +0 -6
- package/dist/types/components/list_item_group/list_item_group_constants.d.ts.map +0 -1
- package/dist/types/components/modal/index.d.ts +0 -3
- package/dist/types/components/modal/index.d.ts.map +0 -1
- package/dist/types/components/modal/modal.vue.d.ts +0 -392
- package/dist/types/components/modal/modal.vue.d.ts.map +0 -1
- package/dist/types/components/modal/modal_constants.d.ts +0 -18
- package/dist/types/components/modal/modal_constants.d.ts.map +0 -1
- package/dist/types/components/pagination/index.d.ts +0 -2
- package/dist/types/components/pagination/index.d.ts.map +0 -1
- package/dist/types/components/pagination/pagination.vue.d.ts +0 -121
- package/dist/types/components/pagination/pagination.vue.d.ts.map +0 -1
- package/dist/types/components/plugins/fixDefaultSlot.d.ts +0 -5
- package/dist/types/components/plugins/fixDefaultSlot.d.ts.map +0 -1
- package/dist/types/components/popover/index.d.ts +0 -3
- package/dist/types/components/popover/index.d.ts.map +0 -1
- package/dist/types/components/popover/popover.vue.d.ts +0 -780
- package/dist/types/components/popover/popover.vue.d.ts.map +0 -1
- package/dist/types/components/popover/popover_constants.d.ts +0 -34
- package/dist/types/components/popover/popover_constants.d.ts.map +0 -1
- package/dist/types/components/popover/popover_header_footer.vue.d.ts +0 -70
- package/dist/types/components/popover/popover_header_footer.vue.d.ts.map +0 -1
- package/dist/types/components/popover/tippy_utils.d.ts +0 -45
- package/dist/types/components/popover/tippy_utils.d.ts.map +0 -1
- package/dist/types/components/radio/index.d.ts +0 -3
- package/dist/types/components/radio/index.d.ts.map +0 -1
- package/dist/types/components/radio/radio.vue.d.ts +0 -180
- package/dist/types/components/radio/radio.vue.d.ts.map +0 -1
- package/dist/types/components/radio/radio_constants.d.ts +0 -10
- package/dist/types/components/radio/radio_constants.d.ts.map +0 -1
- package/dist/types/components/radio_group/index.d.ts +0 -2
- package/dist/types/components/radio_group/index.d.ts.map +0 -1
- package/dist/types/components/radio_group/radio_group.vue.d.ts +0 -228
- package/dist/types/components/radio_group/radio_group.vue.d.ts.map +0 -1
- package/dist/types/components/radio_group/radios_decorator.vue.d.ts +0 -3
- package/dist/types/components/radio_group/radios_decorator.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +0 -69
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +0 -13
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts +0 -5
- package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/index.d.ts +0 -3
- package/dist/types/components/rich_text_editor/extensions/emoji/index.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts +0 -21
- package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/autolink.d.ts +0 -6
- package/dist/types/components/rich_text_editor/extensions/link/autolink.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/index.d.ts +0 -4
- package/dist/types/components/rich_text_editor/extensions/link/index.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/link.d.ts +0 -3
- package/dist/types/components/rich_text_editor/extensions/link/link.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/utils.d.ts +0 -44
- package/dist/types/components/rich_text_editor/extensions/link/utils.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +0 -71
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +0 -16
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/mention.d.ts +0 -2
- package/dist/types/components/rich_text_editor/extensions/mentions/mention.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts +0 -10
- package/dist/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +0 -48
- package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/index.d.ts +0 -3
- package/dist/types/components/rich_text_editor/index.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/mention_suggestion.d.ts +0 -11
- package/dist/types/components/rich_text_editor/mention_suggestion.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +0 -215
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts +0 -8
- package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts.map +0 -1
- package/dist/types/components/root_layout/index.d.ts +0 -3
- package/dist/types/components/root_layout/index.d.ts.map +0 -1
- package/dist/types/components/root_layout/root_layout.vue.d.ts +0 -204
- package/dist/types/components/root_layout/root_layout.vue.d.ts.map +0 -1
- package/dist/types/components/root_layout/root_layout_constants.d.ts +0 -11
- package/dist/types/components/root_layout/root_layout_constants.d.ts.map +0 -1
- package/dist/types/components/scroller/DtScroller.vue.d.ts +0 -44
- package/dist/types/components/scroller/DtScroller.vue.d.ts.map +0 -1
- package/dist/types/components/scroller/index.d.ts +0 -2
- package/dist/types/components/scroller/index.d.ts.map +0 -1
- package/dist/types/components/scroller/modules/core_scroller.vue.d.ts +0 -44
- package/dist/types/components/scroller/modules/core_scroller.vue.d.ts.map +0 -1
- package/dist/types/components/scroller/modules/dynamic_scroller.vue.d.ts +0 -86
- package/dist/types/components/scroller/modules/dynamic_scroller.vue.d.ts.map +0 -1
- package/dist/types/components/scroller/modules/scroller_item.vue.d.ts +0 -79
- package/dist/types/components/scroller/modules/scroller_item.vue.d.ts.map +0 -1
- package/dist/types/components/select_menu/index.d.ts +0 -3
- package/dist/types/components/select_menu/index.d.ts.map +0 -1
- package/dist/types/components/select_menu/select_menu.vue.d.ts +0 -272
- package/dist/types/components/select_menu/select_menu.vue.d.ts.map +0 -1
- package/dist/types/components/select_menu/select_menu_constants.d.ts +0 -18
- package/dist/types/components/select_menu/select_menu_constants.d.ts.map +0 -1
- package/dist/types/components/select_menu/select_menu_validators.d.ts +0 -2
- package/dist/types/components/select_menu/select_menu_validators.d.ts.map +0 -1
- package/dist/types/components/skeleton/index.d.ts +0 -7
- package/dist/types/components/skeleton/index.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +0 -152
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton.vue.d.ts +0 -155
- package/dist/types/components/skeleton/skeleton.vue.d.ts.map +0 -1
- package/dist/types/components/stack/index.d.ts +0 -3
- package/dist/types/components/stack/index.d.ts.map +0 -1
- package/dist/types/components/stack/stack.vue.d.ts +0 -3
- package/dist/types/components/stack/stack.vue.d.ts.map +0 -1
- package/dist/types/components/stack/stack_constants.d.ts +0 -16
- package/dist/types/components/stack/stack_constants.d.ts.map +0 -1
- package/dist/types/components/stack/utils.d.ts +0 -5
- package/dist/types/components/stack/utils.d.ts.map +0 -1
- package/dist/types/components/stack/validators.d.ts +0 -3
- package/dist/types/components/stack/validators.d.ts.map +0 -1
- package/dist/types/components/tabs/index.d.ts +0 -5
- package/dist/types/components/tabs/index.d.ts.map +0 -1
- package/dist/types/components/tabs/tab.vue.d.ts +0 -114
- package/dist/types/components/tabs/tab.vue.d.ts.map +0 -1
- package/dist/types/components/tabs/tab_group.vue.d.ts +0 -179
- package/dist/types/components/tabs/tab_group.vue.d.ts.map +0 -1
- package/dist/types/components/tabs/tab_panel.vue.d.ts +0 -80
- package/dist/types/components/tabs/tab_panel.vue.d.ts.map +0 -1
- package/dist/types/components/tabs/tabs_constants.d.ts +0 -14
- package/dist/types/components/tabs/tabs_constants.d.ts.map +0 -1
- package/dist/types/components/toast/index.d.ts +0 -3
- package/dist/types/components/toast/index.d.ts.map +0 -1
- package/dist/types/components/toast/toast.vue.d.ts +0 -243
- package/dist/types/components/toast/toast.vue.d.ts.map +0 -1
- package/dist/types/components/toast/toast_constants.d.ts +0 -8
- package/dist/types/components/toast/toast_constants.d.ts.map +0 -1
- package/dist/types/components/toggle/index.d.ts +0 -3
- package/dist/types/components/toggle/index.d.ts.map +0 -1
- package/dist/types/components/toggle/toggle.vue.d.ts +0 -162
- package/dist/types/components/toggle/toggle.vue.d.ts.map +0 -1
- package/dist/types/components/toggle/toggle_constants.d.ts +0 -11
- package/dist/types/components/toggle/toggle_constants.d.ts.map +0 -1
- package/dist/types/components/tooltip/index.d.ts +0 -3
- package/dist/types/components/tooltip/index.d.ts.map +0 -1
- package/dist/types/components/tooltip/modifiers.d.ts +0 -8
- package/dist/types/components/tooltip/modifiers.d.ts.map +0 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +0 -445
- package/dist/types/components/tooltip/tooltip.vue.d.ts.map +0 -1
- package/dist/types/components/tooltip/tooltip_constants.d.ts +0 -19
- package/dist/types/components/tooltip/tooltip_constants.d.ts.map +0 -1
- package/dist/types/directives/tooltip/index.d.ts +0 -2
- package/dist/types/directives/tooltip/index.d.ts.map +0 -1
- package/dist/types/directives/tooltip/tooltip.d.ts +0 -6
- package/dist/types/directives/tooltip/tooltip.d.ts.map +0 -1
- package/dist/types/directives.d.ts +0 -2
- package/dist/types/directives.d.ts.map +0 -1
- package/dist/types/emoji.d.ts +0 -5
- package/dist/types/emoji.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -68
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/message_input.d.ts +0 -3
- package/dist/types/message_input.d.ts.map +0 -1
- package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +0 -186
- package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +0 -1
- package/dist/types/recipes/buttons/callbar_button/callbar_button_constants.d.ts +0 -6
- package/dist/types/recipes/buttons/callbar_button/callbar_button_constants.d.ts.map +0 -1
- package/dist/types/recipes/buttons/callbar_button/index.d.ts +0 -3
- package/dist/types/recipes/buttons/callbar_button/index.d.ts.map +0 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +0 -309
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +0 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/index.d.ts +0 -2
- package/dist/types/recipes/buttons/callbar_button_with_popover/index.d.ts.map +0 -1
- package/dist/types/recipes/cards/ivr_node/index.d.ts +0 -3
- package/dist/types/recipes/cards/ivr_node/index.d.ts.map +0 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +0 -91
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +0 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +0 -74
- package/dist/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +0 -1
- package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +0 -6
- package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +0 -1
- package/dist/types/recipes/chips/grouped_chip/index.d.ts +0 -2
- package/dist/types/recipes/chips/grouped_chip/index.d.ts.map +0 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +0 -369
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +0 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.d.ts +0 -25
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.d.ts.map +0 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.d.ts +0 -6
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.d.ts.map +0 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/index.d.ts +0 -3
- package/dist/types/recipes/comboboxes/combobox_multi_select/index.d.ts.map +0 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +0 -437
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +0 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/index.d.ts +0 -2
- package/dist/types/recipes/comboboxes/combobox_with_popover/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +0 -82
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts +0 -6
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/index.d.ts +0 -2
- package/dist/types/recipes/conversation_view/attachment_carousel/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +0 -49
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +0 -30
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +0 -29
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts +0 -6
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/emoji_row/index.d.ts +0 -3
- package/dist/types/recipes/conversation_view/emoji_row/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +0 -175
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts +0 -12
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/feed_item_row/index.d.ts +0 -3
- package/dist/types/recipes/conversation_view/feed_item_row/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +0 -132
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill_constants.d.ts +0 -11
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill_constants.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/feed_pill/index.d.ts +0 -3
- package/dist/types/recipes/conversation_view/feed_pill/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/message_input/index.d.ts +0 -2
- package/dist/types/recipes/conversation_view/message_input/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +0 -495
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/message_input/message_input_constants.d.ts +0 -6
- package/dist/types/recipes/conversation_view/message_input/message_input_constants.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/time_pill/index.d.ts +0 -2
- package/dist/types/recipes/conversation_view/time_pill/index.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts +0 -37
- package/dist/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
- package/dist/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
- package/dist/types/recipes/header/settings_menu_button/index.d.ts +0 -2
- package/dist/types/recipes/header/settings_menu_button/index.d.ts.map +0 -1
- package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +0 -39
- package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +0 -163
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/callbox/callbox_constants.d.ts +0 -15
- package/dist/types/recipes/leftbar/callbox/callbox_constants.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/callbox/index.d.ts +0 -3
- package/dist/types/recipes/leftbar/callbox/index.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -268
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
- package/dist/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/contact_row/index.d.ts +0 -2
- package/dist/types/recipes/leftbar/contact_row/index.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +0 -283
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/general_row/general_row_constants.d.ts +0 -43
- package/dist/types/recipes/leftbar/general_row/general_row_constants.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/general_row/index.d.ts +0 -3
- package/dist/types/recipes/leftbar/general_row/index.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +0 -40
- package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +0 -117
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
- package/dist/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/group_row/index.d.ts +0 -2
- package/dist/types/recipes/leftbar/group_row/index.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/unread_pill/index.d.ts +0 -3
- package/dist/types/recipes/leftbar/unread_pill/index.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +0 -47
- package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +0 -1
- package/dist/types/recipes/leftbar/unread_pill/unread_pill_constants.d.ts +0 -8
- package/dist/types/recipes/leftbar/unread_pill/unread_pill_constants.d.ts.map +0 -1
- package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts +0 -201
- package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts.map +0 -1
- package/dist/types/recipes/list_items/contact_info/index.d.ts +0 -2
- package/dist/types/recipes/list_items/contact_info/index.d.ts.map +0 -1
- package/dist/types/recipes/notices/top_banner_info/index.d.ts +0 -3
- package/dist/types/recipes/notices/top_banner_info/index.d.ts.map +0 -1
- package/dist/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts +0 -25
- package/dist/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +0 -1
- package/dist/types/recipes/notices/top_banner_info/top_banner_info_constants.d.ts +0 -6
- package/dist/types/recipes/notices/top_banner_info/top_banner_info_constants.d.ts.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { _ as y, g as
|
|
2
|
-
import { openBlock as
|
|
3
|
-
import { w, I as
|
|
4
|
-
const
|
|
1
|
+
import { _ as y, g as N, a as U, u as Y, b as $, B as Z, h as M, c as X, i as J, d as Q, e as ee, f as x } from "./tooltip-Cr_G7ib3.js";
|
|
2
|
+
import { openBlock as n, createElementBlock as l, toDisplayString as O, createCommentVNode as d, createElementVNode as _, normalizeClass as u, resolveComponent as m, createBlock as h, resolveDynamicComponent as E, withCtx as p, mergeProps as T, renderSlot as c, withKeys as b, withModifiers as I, createVNode as A, toHandlers as j, createSlots as te, renderList as se, Teleport as oe } from "vue";
|
|
3
|
+
import { w as P, I as ae, L as ne, A as ie, B as K } from "./emoji-ZUS2Xysh.js";
|
|
4
|
+
const S = {
|
|
5
5
|
BUSY: "busy",
|
|
6
6
|
AWAY: "away",
|
|
7
7
|
OFFLINE: "offline",
|
|
8
8
|
ACTIVE: "active"
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
9
|
+
}, re = [
|
|
10
|
+
S.BUSY,
|
|
11
|
+
S.AWAY,
|
|
12
|
+
S.OFFLINE,
|
|
13
|
+
S.ACTIVE
|
|
14
|
+
], le = {
|
|
15
15
|
name: "DtPresence",
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
@@ -21,8 +21,8 @@ const C = {
|
|
|
21
21
|
*/
|
|
22
22
|
presence: {
|
|
23
23
|
type: String,
|
|
24
|
-
default:
|
|
25
|
-
validator: (e) =>
|
|
24
|
+
default: S.ACTIVE,
|
|
25
|
+
validator: (e) => re.includes(e)
|
|
26
26
|
},
|
|
27
27
|
/**
|
|
28
28
|
* Since Presence is a visual element, we need SRs to read out any state changes
|
|
@@ -34,55 +34,55 @@ const C = {
|
|
|
34
34
|
default: null
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, de = ["aria-live"], ce = {
|
|
38
38
|
key: 0,
|
|
39
39
|
"data-qa": "dt-presence-sr-text",
|
|
40
40
|
class: "sr-only"
|
|
41
41
|
};
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function ue(e, t, s, i, a, o) {
|
|
43
|
+
return n(), l("div", {
|
|
44
44
|
class: "d-presence",
|
|
45
45
|
"data-qa": "dt-presence",
|
|
46
46
|
role: "status",
|
|
47
47
|
"aria-live": e.$attrs.ariaLive || "off"
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class:
|
|
52
|
-
"d-presence__inner--active":
|
|
53
|
-
"d-presence__inner--away":
|
|
54
|
-
"d-presence__inner--busy":
|
|
55
|
-
"d-presence__inner--offline":
|
|
49
|
+
s.srText ? (n(), l("span", ce, O(s.srText), 1)) : d("", !0),
|
|
50
|
+
_("div", {
|
|
51
|
+
class: u(["d-presence__inner", {
|
|
52
|
+
"d-presence__inner--active": s.presence === "active",
|
|
53
|
+
"d-presence__inner--away": s.presence === "away",
|
|
54
|
+
"d-presence__inner--busy": s.presence === "busy",
|
|
55
|
+
"d-presence__inner--offline": s.presence === "offline"
|
|
56
56
|
}])
|
|
57
57
|
}, null, 2)
|
|
58
|
-
], 8,
|
|
58
|
+
], 8, de);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const he = /* @__PURE__ */ y(le, [["render", ue]]), L = {
|
|
61
61
|
xs: "d-avatar--xs",
|
|
62
62
|
sm: "d-avatar--sm",
|
|
63
63
|
md: "d-avatar--md",
|
|
64
64
|
lg: "d-avatar--lg",
|
|
65
65
|
xl: "d-avatar--xl"
|
|
66
|
-
},
|
|
66
|
+
}, pe = {
|
|
67
67
|
default: "",
|
|
68
68
|
icon: "d-avatar__icon",
|
|
69
69
|
initials: "d-avatar__initials"
|
|
70
|
-
},
|
|
70
|
+
}, fe = {
|
|
71
71
|
md: "d-avatar__presence--md",
|
|
72
72
|
lg: "d-avatar__presence--lg"
|
|
73
|
-
},
|
|
73
|
+
}, F = {
|
|
74
74
|
NONE: "",
|
|
75
75
|
BUSY: "busy",
|
|
76
76
|
AWAY: "away",
|
|
77
77
|
OFFLINE: "offline",
|
|
78
78
|
ACTIVE: "active"
|
|
79
|
-
},
|
|
79
|
+
}, me = {
|
|
80
80
|
xs: "100",
|
|
81
81
|
sm: "200",
|
|
82
82
|
md: "300",
|
|
83
83
|
lg: "500",
|
|
84
84
|
xl: "600"
|
|
85
|
-
},
|
|
85
|
+
}, ye = [
|
|
86
86
|
"100",
|
|
87
87
|
"200",
|
|
88
88
|
"300",
|
|
@@ -101,10 +101,11 @@ const me = /* @__PURE__ */ y(ue, [["render", fe]]), N = {
|
|
|
101
101
|
"1600",
|
|
102
102
|
"1700",
|
|
103
103
|
"1800"
|
|
104
|
-
],
|
|
104
|
+
], z = (e) => e > 1, ge = [
|
|
105
105
|
"accessibility",
|
|
106
106
|
"activity",
|
|
107
107
|
"add-task",
|
|
108
|
+
"agent-assist",
|
|
108
109
|
"ai-notes",
|
|
109
110
|
"airplay",
|
|
110
111
|
"airtable",
|
|
@@ -635,17 +636,17 @@ const me = /* @__PURE__ */ y(ue, [["render", fe]]), N = {
|
|
|
635
636
|
"zoom-logo",
|
|
636
637
|
"zoom-out"
|
|
637
638
|
];
|
|
638
|
-
function
|
|
639
|
-
return [void 0, ...
|
|
639
|
+
function ve() {
|
|
640
|
+
return [void 0, ...ge];
|
|
640
641
|
}
|
|
641
|
-
const
|
|
642
|
+
const be = (e) => {
|
|
642
643
|
if (typeof e != "string" || !e.trim())
|
|
643
644
|
return "";
|
|
644
|
-
const
|
|
645
|
-
return
|
|
646
|
-
},
|
|
645
|
+
const t = e.trim().split(/\s+/g);
|
|
646
|
+
return t.length === 1 ? t.join("").substring(0, 2) : t.filter((s, i) => i === 0 || i === t.length - 1).map((s) => s.slice(0, 1).toUpperCase()).join("");
|
|
647
|
+
}, _e = ve(), Ee = {
|
|
647
648
|
name: "DtAvatar",
|
|
648
|
-
components: { DtPresence:
|
|
649
|
+
components: { DtPresence: he, DtIcon: P },
|
|
649
650
|
inheritAttrs: !1,
|
|
650
651
|
props: {
|
|
651
652
|
/**
|
|
@@ -654,7 +655,7 @@ const Se = (e) => {
|
|
|
654
655
|
id: {
|
|
655
656
|
type: String,
|
|
656
657
|
default() {
|
|
657
|
-
return
|
|
658
|
+
return N();
|
|
658
659
|
}
|
|
659
660
|
},
|
|
660
661
|
/**
|
|
@@ -680,7 +681,7 @@ const Se = (e) => {
|
|
|
680
681
|
size: {
|
|
681
682
|
type: String,
|
|
682
683
|
default: "md",
|
|
683
|
-
validator: (e) => Object.keys(
|
|
684
|
+
validator: (e) => Object.keys(L).includes(e)
|
|
684
685
|
},
|
|
685
686
|
/**
|
|
686
687
|
* Used to customize the avatar container
|
|
@@ -711,8 +712,8 @@ const Se = (e) => {
|
|
|
711
712
|
*/
|
|
712
713
|
presence: {
|
|
713
714
|
type: String,
|
|
714
|
-
default:
|
|
715
|
-
validator: (e) => Object.values(
|
|
715
|
+
default: F.NONE,
|
|
716
|
+
validator: (e) => Object.values(F).includes(e)
|
|
716
717
|
},
|
|
717
718
|
/**
|
|
718
719
|
* A set of props to be passed into the presence component.
|
|
@@ -729,7 +730,7 @@ const Se = (e) => {
|
|
|
729
730
|
group: {
|
|
730
731
|
type: Number,
|
|
731
732
|
default: void 0,
|
|
732
|
-
validator: (e) =>
|
|
733
|
+
validator: (e) => z(e)
|
|
733
734
|
},
|
|
734
735
|
/**
|
|
735
736
|
* The icon that overlays the avatar
|
|
@@ -773,7 +774,7 @@ const Se = (e) => {
|
|
|
773
774
|
iconName: {
|
|
774
775
|
type: String,
|
|
775
776
|
default: void 0,
|
|
776
|
-
validator: (e) =>
|
|
777
|
+
validator: (e) => _e.includes(e)
|
|
777
778
|
},
|
|
778
779
|
/**
|
|
779
780
|
* Icon size to be displayed on the avatar
|
|
@@ -782,7 +783,7 @@ const Se = (e) => {
|
|
|
782
783
|
iconSize: {
|
|
783
784
|
type: String,
|
|
784
785
|
default: "",
|
|
785
|
-
validator: (e) => !e || Object.keys(
|
|
786
|
+
validator: (e) => !e || Object.keys(ae).includes(e)
|
|
786
787
|
},
|
|
787
788
|
/**
|
|
788
789
|
* Full name used to extract initials and set alt attribute.
|
|
@@ -811,10 +812,10 @@ const Se = (e) => {
|
|
|
811
812
|
],
|
|
812
813
|
data() {
|
|
813
814
|
return {
|
|
814
|
-
AVATAR_SIZE_MODIFIERS:
|
|
815
|
-
AVATAR_KIND_MODIFIERS:
|
|
816
|
-
AVATAR_PRESENCE_SIZE_MODIFIERS:
|
|
817
|
-
AVATAR_ICON_SIZES:
|
|
815
|
+
AVATAR_SIZE_MODIFIERS: L,
|
|
816
|
+
AVATAR_KIND_MODIFIERS: pe,
|
|
817
|
+
AVATAR_PRESENCE_SIZE_MODIFIERS: fe,
|
|
818
|
+
AVATAR_ICON_SIZES: me,
|
|
818
819
|
imageLoadedSuccessfully: null,
|
|
819
820
|
formattedInitials: "",
|
|
820
821
|
initializing: !1
|
|
@@ -827,7 +828,7 @@ const Se = (e) => {
|
|
|
827
828
|
avatarClasses() {
|
|
828
829
|
return [
|
|
829
830
|
"d-avatar",
|
|
830
|
-
|
|
831
|
+
L[this.validatedSize],
|
|
831
832
|
this.avatarClass,
|
|
832
833
|
{
|
|
833
834
|
"d-avatar--group": this.showGroup,
|
|
@@ -843,7 +844,7 @@ const Se = (e) => {
|
|
|
843
844
|
];
|
|
844
845
|
},
|
|
845
846
|
showGroup() {
|
|
846
|
-
return
|
|
847
|
+
return z(this.group);
|
|
847
848
|
},
|
|
848
849
|
formattedGroup() {
|
|
849
850
|
return this.group > 99 ? "99+" : this.group;
|
|
@@ -880,11 +881,11 @@ const Se = (e) => {
|
|
|
880
881
|
e && (e.addEventListener("load", () => this._loadedImageEventHandler(e), { once: !0 }), e.addEventListener("error", () => this._erroredImageEventHandler(e), { once: !0 }));
|
|
881
882
|
},
|
|
882
883
|
formatInitials(e) {
|
|
883
|
-
const
|
|
884
|
-
this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials =
|
|
884
|
+
const t = be(e);
|
|
885
|
+
this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials = t[0] : this.formattedInitials = t;
|
|
885
886
|
},
|
|
886
887
|
getColor() {
|
|
887
|
-
return this.color ??
|
|
888
|
+
return this.color ?? U(ye, this.seed);
|
|
888
889
|
},
|
|
889
890
|
_loadedImageEventHandler(e) {
|
|
890
891
|
this.imageLoadedSuccessfully = !0, e.classList.remove("d-d-none");
|
|
@@ -900,181 +901,74 @@ const Se = (e) => {
|
|
|
900
901
|
this.clickable && this.$emit("click", e);
|
|
901
902
|
}
|
|
902
903
|
}
|
|
903
|
-
},
|
|
904
|
+
}, ke = ["src", "alt"], Se = {
|
|
904
905
|
key: 1,
|
|
905
906
|
class: "d-avatar__overlay-text"
|
|
906
|
-
},
|
|
907
|
+
}, we = {
|
|
907
908
|
key: 1,
|
|
908
909
|
class: "d-avatar__count",
|
|
909
910
|
"data-qa": "dt-avatar-count"
|
|
910
911
|
};
|
|
911
|
-
function
|
|
912
|
-
const
|
|
913
|
-
return
|
|
914
|
-
id:
|
|
915
|
-
class:
|
|
912
|
+
function Ce(e, t, s, i, a, o) {
|
|
913
|
+
const f = m("dt-icon"), g = m("dt-presence");
|
|
914
|
+
return n(), h(E(s.clickable ? "button" : "div"), {
|
|
915
|
+
id: s.id,
|
|
916
|
+
class: u(o.avatarClasses),
|
|
916
917
|
"data-qa": "dt-avatar",
|
|
917
918
|
"aria-label": o.buttonAriaLabel,
|
|
918
919
|
onClick: o.handleClick
|
|
919
920
|
}, {
|
|
920
|
-
default:
|
|
921
|
-
|
|
921
|
+
default: p(() => [
|
|
922
|
+
_("div", {
|
|
922
923
|
ref: "canvas",
|
|
923
|
-
class:
|
|
924
|
-
|
|
924
|
+
class: u([
|
|
925
|
+
s.canvasClass,
|
|
925
926
|
"d-avatar__canvas",
|
|
926
|
-
{ "d-avatar--image-loaded":
|
|
927
|
+
{ "d-avatar--image-loaded": a.imageLoadedSuccessfully }
|
|
927
928
|
])
|
|
928
929
|
}, [
|
|
929
|
-
o.showImage ? (
|
|
930
|
+
o.showImage ? (n(), l("img", {
|
|
930
931
|
key: 0,
|
|
931
932
|
ref: "avatarImage",
|
|
932
933
|
class: "d-avatar__image",
|
|
933
934
|
"data-qa": "dt-avatar-image",
|
|
934
|
-
src:
|
|
935
|
-
alt:
|
|
936
|
-
}, null, 8,
|
|
935
|
+
src: s.imageSrc,
|
|
936
|
+
alt: s.imageAlt || s.fullName
|
|
937
|
+
}, null, 8, ke)) : s.iconName ? (n(), h(f, {
|
|
937
938
|
key: 1,
|
|
938
|
-
name:
|
|
939
|
-
size:
|
|
940
|
-
class:
|
|
939
|
+
name: s.iconName,
|
|
940
|
+
size: s.iconSize || a.AVATAR_ICON_SIZES[s.size],
|
|
941
|
+
class: u([s.iconClass, a.AVATAR_KIND_MODIFIERS.icon]),
|
|
941
942
|
"data-qa": "dt-avatar-icon"
|
|
942
|
-
}, null, 8, ["name", "size", "class"])) : (
|
|
943
|
+
}, null, 8, ["name", "size", "class"])) : (n(), l("span", {
|
|
943
944
|
key: 2,
|
|
944
|
-
class:
|
|
945
|
-
},
|
|
945
|
+
class: u([a.AVATAR_KIND_MODIFIERS.initials])
|
|
946
|
+
}, O(a.formattedInitials), 3))
|
|
946
947
|
], 2),
|
|
947
|
-
|
|
948
|
+
s.overlayIcon || s.overlayText ? (n(), l("div", {
|
|
948
949
|
key: 0,
|
|
949
|
-
class:
|
|
950
|
+
class: u(o.overlayClasses)
|
|
950
951
|
}, [
|
|
951
|
-
|
|
952
|
+
s.overlayIcon ? (n(), h(f, {
|
|
952
953
|
key: 0,
|
|
953
954
|
class: "d-avatar__overlay-icon",
|
|
954
|
-
name:
|
|
955
|
-
}, null, 8, ["name"])) :
|
|
955
|
+
name: s.overlayIcon
|
|
956
|
+
}, null, 8, ["name"])) : s.overlayText ? (n(), l("p", Se, O(s.overlayText), 1)) : d("", !0)
|
|
956
957
|
], 2)) : d("", !0),
|
|
957
|
-
o.showGroup ? (
|
|
958
|
-
|
|
958
|
+
o.showGroup ? (n(), l("span", we, O(o.formattedGroup), 1)) : d("", !0),
|
|
959
|
+
s.presence && !o.showGroup ? (n(), h(g, T({
|
|
959
960
|
key: 2,
|
|
960
|
-
presence:
|
|
961
|
+
presence: s.presence,
|
|
961
962
|
class: [
|
|
962
963
|
"d-avatar__presence",
|
|
963
|
-
|
|
964
|
+
a.AVATAR_PRESENCE_SIZE_MODIFIERS[s.size]
|
|
964
965
|
]
|
|
965
|
-
},
|
|
966
|
+
}, s.presenceProps, { "data-qa": "dt-presence" }), null, 16, ["presence", "class"])) : d("", !0)
|
|
966
967
|
]),
|
|
967
968
|
_: 1
|
|
968
969
|
}, 8, ["id", "class", "aria-label", "onClick"]);
|
|
969
970
|
}
|
|
970
|
-
const
|
|
971
|
-
["info", "info"],
|
|
972
|
-
["success", "check-circle"],
|
|
973
|
-
["warning", "alert-triangle"],
|
|
974
|
-
["error", "alert-circle"],
|
|
975
|
-
["base", "bell"]
|
|
976
|
-
]), Le = {
|
|
977
|
-
name: "DtNoticeIcon",
|
|
978
|
-
components: {
|
|
979
|
-
DtIcon: w
|
|
980
|
-
},
|
|
981
|
-
props: {
|
|
982
|
-
/**
|
|
983
|
-
* Kind of icon
|
|
984
|
-
* @values base, error, info, success, warning
|
|
985
|
-
*/
|
|
986
|
-
kind: {
|
|
987
|
-
type: String,
|
|
988
|
-
default: "base",
|
|
989
|
-
validate(e) {
|
|
990
|
-
return M.includes(e);
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
},
|
|
994
|
-
data() {
|
|
995
|
-
return {
|
|
996
|
-
hasSlotContent: L
|
|
997
|
-
};
|
|
998
|
-
},
|
|
999
|
-
computed: {
|
|
1000
|
-
defaultIcon() {
|
|
1001
|
-
return Pe.get(this.kind);
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
}, Ne = {
|
|
1005
|
-
key: 0,
|
|
1006
|
-
"aria-hidden": "true",
|
|
1007
|
-
class: "d-notice__icon"
|
|
1008
|
-
};
|
|
1009
|
-
function De(e, s, t, i, n, o) {
|
|
1010
|
-
const c = p("dt-icon");
|
|
1011
|
-
return o.defaultIcon || n.hasSlotContent(e.$slots.default) ? (a(), r("div", Ne, [
|
|
1012
|
-
l(e.$slots, "default", {}, () => [
|
|
1013
|
-
_(c, {
|
|
1014
|
-
name: o.defaultIcon,
|
|
1015
|
-
size: "400"
|
|
1016
|
-
}, null, 8, ["name"])
|
|
1017
|
-
])
|
|
1018
|
-
])) : d("", !0);
|
|
1019
|
-
}
|
|
1020
|
-
const Re = /* @__PURE__ */ y(Le, [["render", De]]), Fe = {
|
|
1021
|
-
name: "DtNoticeContent",
|
|
1022
|
-
props: {
|
|
1023
|
-
/**
|
|
1024
|
-
* Title header of the notice. This can be left blank to remove the title from the notice entirely.
|
|
1025
|
-
*/
|
|
1026
|
-
title: {
|
|
1027
|
-
type: String,
|
|
1028
|
-
default: ""
|
|
1029
|
-
},
|
|
1030
|
-
/**
|
|
1031
|
-
* ID for the title element of the component. Useful for aria-describedby
|
|
1032
|
-
* or aria-labelledby or any other reason you may need an id to refer to the title.
|
|
1033
|
-
*/
|
|
1034
|
-
titleId: {
|
|
1035
|
-
type: String,
|
|
1036
|
-
default: void 0
|
|
1037
|
-
},
|
|
1038
|
-
/**
|
|
1039
|
-
* ID for the content element of the component. Useful for aria-describedby
|
|
1040
|
-
* or aria-labelledby or any other reason you may need an id to refer to the content.
|
|
1041
|
-
*/
|
|
1042
|
-
contentId: {
|
|
1043
|
-
type: String,
|
|
1044
|
-
default: void 0
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
data() {
|
|
1048
|
-
return {
|
|
1049
|
-
hasSlotContent: L
|
|
1050
|
-
};
|
|
1051
|
-
}
|
|
1052
|
-
}, Be = {
|
|
1053
|
-
class: "d-notice__content",
|
|
1054
|
-
"data-qa": "notice-content"
|
|
1055
|
-
}, xe = ["id"], ze = ["id"];
|
|
1056
|
-
function He(e, s, t, i, n, o) {
|
|
1057
|
-
return a(), r("div", Be, [
|
|
1058
|
-
t.title || n.hasSlotContent(e.$slots.titleOverride) ? (a(), r("p", {
|
|
1059
|
-
key: 0,
|
|
1060
|
-
id: t.titleId,
|
|
1061
|
-
class: "d-notice__title",
|
|
1062
|
-
"data-qa": "notice-content-title"
|
|
1063
|
-
}, [
|
|
1064
|
-
l(e.$slots, "titleOverride", {}, () => [
|
|
1065
|
-
oe(I(t.title), 1)
|
|
1066
|
-
])
|
|
1067
|
-
], 8, xe)) : d("", !0),
|
|
1068
|
-
b("p", {
|
|
1069
|
-
id: t.contentId,
|
|
1070
|
-
class: "d-notice__message",
|
|
1071
|
-
"data-qa": "notice-content-message"
|
|
1072
|
-
}, [
|
|
1073
|
-
l(e.$slots, "default")
|
|
1074
|
-
], 8, ze)
|
|
1075
|
-
]);
|
|
1076
|
-
}
|
|
1077
|
-
const Ve = /* @__PURE__ */ y(Fe, [["render", He]]), qe = {
|
|
971
|
+
const mt = /* @__PURE__ */ y(Ee, [["render", Ce]]), Oe = {
|
|
1078
972
|
name: "DtLink",
|
|
1079
973
|
props: {
|
|
1080
974
|
/**
|
|
@@ -1085,29 +979,29 @@ const Ve = /* @__PURE__ */ y(Fe, [["render", He]]), qe = {
|
|
|
1085
979
|
type: String,
|
|
1086
980
|
default: "",
|
|
1087
981
|
validator(e) {
|
|
1088
|
-
return
|
|
982
|
+
return ne.includes(e);
|
|
1089
983
|
}
|
|
1090
984
|
}
|
|
1091
985
|
},
|
|
1092
986
|
data() {
|
|
1093
987
|
return {
|
|
1094
|
-
LINK_KIND_MODIFIERS:
|
|
988
|
+
LINK_KIND_MODIFIERS: ie
|
|
1095
989
|
};
|
|
1096
990
|
}
|
|
1097
|
-
},
|
|
1098
|
-
function
|
|
1099
|
-
return
|
|
1100
|
-
class:
|
|
991
|
+
}, Ie = ["href"];
|
|
992
|
+
function Te(e, t, s, i, a, o) {
|
|
993
|
+
return n(), l("a", {
|
|
994
|
+
class: u([
|
|
1101
995
|
"d-link",
|
|
1102
|
-
|
|
996
|
+
a.LINK_KIND_MODIFIERS[s.kind]
|
|
1103
997
|
]),
|
|
1104
998
|
"data-qa": "dt-link",
|
|
1105
999
|
href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)"
|
|
1106
1000
|
}, [
|
|
1107
|
-
|
|
1108
|
-
], 10,
|
|
1001
|
+
c(e.$slots, "default")
|
|
1002
|
+
], 10, Ie);
|
|
1109
1003
|
}
|
|
1110
|
-
const
|
|
1004
|
+
const yt = /* @__PURE__ */ y(Oe, [["render", Te]]), Ae = {
|
|
1111
1005
|
props: {
|
|
1112
1006
|
/**
|
|
1113
1007
|
* If true, a hidden close button is included for screen readers
|
|
@@ -1146,11 +1040,11 @@ const Ft = /* @__PURE__ */ y(qe, [["render", je]]), B = {
|
|
|
1146
1040
|
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
|
|
1147
1041
|
}
|
|
1148
1042
|
}
|
|
1149
|
-
},
|
|
1043
|
+
}, Pe = {
|
|
1150
1044
|
name: "SrOnlyCloseButton",
|
|
1151
1045
|
components: {
|
|
1152
|
-
DtIcon:
|
|
1153
|
-
DtButton:
|
|
1046
|
+
DtIcon: P,
|
|
1047
|
+
DtButton: K
|
|
1154
1048
|
},
|
|
1155
1049
|
props: {
|
|
1156
1050
|
/**
|
|
@@ -1169,255 +1063,23 @@ const Ft = /* @__PURE__ */ y(qe, [["render", je]]), B = {
|
|
|
1169
1063
|
}
|
|
1170
1064
|
}
|
|
1171
1065
|
};
|
|
1172
|
-
function
|
|
1173
|
-
const
|
|
1174
|
-
return
|
|
1066
|
+
function Le(e, t, s, i, a, o) {
|
|
1067
|
+
const f = m("dt-icon"), g = m("dt-button");
|
|
1068
|
+
return n(), h(g, {
|
|
1175
1069
|
id: "sr-only-close-button",
|
|
1176
1070
|
"data-qa": "dt-sr-only-close-button",
|
|
1177
1071
|
class: "d-vi-visible-sr",
|
|
1178
|
-
"aria-label":
|
|
1072
|
+
"aria-label": s.visuallyHiddenCloseLabel,
|
|
1179
1073
|
onClick: o.close,
|
|
1180
|
-
onKeydown:
|
|
1074
|
+
onKeydown: b(I(o.close, ["prevent", "stop"]), ["space"])
|
|
1181
1075
|
}, {
|
|
1182
|
-
default:
|
|
1183
|
-
|
|
1076
|
+
default: p(() => [
|
|
1077
|
+
A(f, { name: "close" })
|
|
1184
1078
|
]),
|
|
1185
1079
|
_: 1
|
|
1186
1080
|
}, 8, ["aria-label", "onClick", "onKeydown"]);
|
|
1187
1081
|
}
|
|
1188
|
-
const
|
|
1189
|
-
name: "DtNoticeAction",
|
|
1190
|
-
components: {
|
|
1191
|
-
DtIcon: w,
|
|
1192
|
-
DtButton: F,
|
|
1193
|
-
SrOnlyCloseButton: G
|
|
1194
|
-
},
|
|
1195
|
-
mixins: [B],
|
|
1196
|
-
props: {
|
|
1197
|
-
/**
|
|
1198
|
-
* Props for the notice close button.
|
|
1199
|
-
*/
|
|
1200
|
-
closeButtonProps: {
|
|
1201
|
-
type: Object,
|
|
1202
|
-
default: () => ({})
|
|
1203
|
-
},
|
|
1204
|
-
/**
|
|
1205
|
-
* Hides the close button from the notice
|
|
1206
|
-
* @values true, false
|
|
1207
|
-
*/
|
|
1208
|
-
hideClose: {
|
|
1209
|
-
type: Boolean,
|
|
1210
|
-
default: !1
|
|
1211
|
-
}
|
|
1212
|
-
},
|
|
1213
|
-
emits: [
|
|
1214
|
-
/**
|
|
1215
|
-
* Close button click event
|
|
1216
|
-
*
|
|
1217
|
-
* @event close
|
|
1218
|
-
*/
|
|
1219
|
-
"close"
|
|
1220
|
-
],
|
|
1221
|
-
created() {
|
|
1222
|
-
!this.hideClose && !this.closeButtonProps.ariaLabel && console.error("Invalid props: you must pass in closeButtonProps.ariaLabel if the close button is displayed.");
|
|
1223
|
-
},
|
|
1224
|
-
mounted() {
|
|
1225
|
-
this.hideClose || (this.lastFocusedElement = document.activeElement);
|
|
1226
|
-
},
|
|
1227
|
-
beforeUnmount() {
|
|
1228
|
-
var e;
|
|
1229
|
-
(e = this.lastFocusedElement) == null || e.focus();
|
|
1230
|
-
},
|
|
1231
|
-
methods: {
|
|
1232
|
-
close() {
|
|
1233
|
-
this.$emit("close");
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
}, We = {
|
|
1237
|
-
class: "d-notice__actions",
|
|
1238
|
-
"data-qa": "notice-content-actions"
|
|
1239
|
-
};
|
|
1240
|
-
function Ue(e, s, t, i, n, o) {
|
|
1241
|
-
const c = p("dt-icon"), g = p("dt-button"), v = p("sr-only-close-button");
|
|
1242
|
-
return a(), r("div", We, [
|
|
1243
|
-
l(e.$slots, "default"),
|
|
1244
|
-
t.hideClose ? d("", !0) : (a(), u(g, A({
|
|
1245
|
-
key: 0,
|
|
1246
|
-
ref: "closeButton",
|
|
1247
|
-
"data-qa": "dt-notice-action-close-button",
|
|
1248
|
-
size: "sm",
|
|
1249
|
-
importance: "clear",
|
|
1250
|
-
circle: "",
|
|
1251
|
-
"aria-label": t.closeButtonProps.ariaLabel ? t.closeButtonProps.ariaLabel : "Close"
|
|
1252
|
-
}, t.closeButtonProps, { onClick: o.close }), {
|
|
1253
|
-
icon: h(() => [
|
|
1254
|
-
_(c, {
|
|
1255
|
-
name: "close",
|
|
1256
|
-
size: "200"
|
|
1257
|
-
})
|
|
1258
|
-
]),
|
|
1259
|
-
_: 1
|
|
1260
|
-
}, 16, ["aria-label", "onClick"])),
|
|
1261
|
-
e.showVisuallyHiddenClose ? (a(), u(v, {
|
|
1262
|
-
key: 1,
|
|
1263
|
-
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
1264
|
-
onClose: o.close
|
|
1265
|
-
}, null, 8, ["visually-hidden-close-label", "onClose"])) : d("", !0)
|
|
1266
|
-
]);
|
|
1267
|
-
}
|
|
1268
|
-
const Ye = /* @__PURE__ */ y(Ge, [["render", Ue]]), Ze = {
|
|
1269
|
-
name: "DtNotice",
|
|
1270
|
-
components: {
|
|
1271
|
-
DtNoticeIcon: Re,
|
|
1272
|
-
DtNoticeContent: Ve,
|
|
1273
|
-
DtNoticeAction: Ye
|
|
1274
|
-
},
|
|
1275
|
-
mixins: [B],
|
|
1276
|
-
props: {
|
|
1277
|
-
/**
|
|
1278
|
-
* Sets an ID on the title element of the component. Useful for aria-describedby
|
|
1279
|
-
* or aria-labelledby or any other reason you may need an id to refer to the title.
|
|
1280
|
-
*/
|
|
1281
|
-
titleId: {
|
|
1282
|
-
type: String,
|
|
1283
|
-
default: void 0
|
|
1284
|
-
},
|
|
1285
|
-
/**
|
|
1286
|
-
* Sets an ID on the content element of the component. Useful for aria-describedby
|
|
1287
|
-
* or aria-labelledby or any other reason you may need an id to refer to the content.
|
|
1288
|
-
*/
|
|
1289
|
-
contentId: {
|
|
1290
|
-
type: String,
|
|
1291
|
-
default: void 0
|
|
1292
|
-
},
|
|
1293
|
-
/**
|
|
1294
|
-
* Title header of the notice. This can be left blank to remove the title from the notice entirely.
|
|
1295
|
-
*/
|
|
1296
|
-
title: {
|
|
1297
|
-
type: String,
|
|
1298
|
-
default: ""
|
|
1299
|
-
},
|
|
1300
|
-
/**
|
|
1301
|
-
* Provides a role for the notice. 'status' is used to communicate a message. 'alert' is used to communicate an
|
|
1302
|
-
* important message that does not contain any interactive elements. 'alertdialog' is used to communicate an
|
|
1303
|
-
* important message that does contain interactive elements.
|
|
1304
|
-
* @values alert, alertdialog, status
|
|
1305
|
-
*/
|
|
1306
|
-
role: {
|
|
1307
|
-
type: String,
|
|
1308
|
-
default: "status",
|
|
1309
|
-
validate(e) {
|
|
1310
|
-
return Te.includes(e);
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
/**
|
|
1314
|
-
* Used in scenarios where the message needs to visually dominate the screen.
|
|
1315
|
-
* This will also change the aria role from status to alert.
|
|
1316
|
-
* @values true, false
|
|
1317
|
-
*/
|
|
1318
|
-
important: {
|
|
1319
|
-
type: Boolean,
|
|
1320
|
-
default: !1
|
|
1321
|
-
},
|
|
1322
|
-
/**
|
|
1323
|
-
* Severity level of the notice, sets the icon and background
|
|
1324
|
-
* @values base, error, info, success, warning
|
|
1325
|
-
*/
|
|
1326
|
-
kind: {
|
|
1327
|
-
type: String,
|
|
1328
|
-
default: "base",
|
|
1329
|
-
validate(e) {
|
|
1330
|
-
return M.includes(e);
|
|
1331
|
-
}
|
|
1332
|
-
},
|
|
1333
|
-
/**
|
|
1334
|
-
* Props for the notice close button.
|
|
1335
|
-
*/
|
|
1336
|
-
closeButtonProps: {
|
|
1337
|
-
type: Object,
|
|
1338
|
-
default: () => ({})
|
|
1339
|
-
},
|
|
1340
|
-
/**
|
|
1341
|
-
* Hides the close button from the notice
|
|
1342
|
-
* @values true, false
|
|
1343
|
-
*/
|
|
1344
|
-
hideClose: {
|
|
1345
|
-
type: Boolean,
|
|
1346
|
-
default: !1
|
|
1347
|
-
}
|
|
1348
|
-
},
|
|
1349
|
-
emits: [
|
|
1350
|
-
/**
|
|
1351
|
-
* Close button click event
|
|
1352
|
-
*
|
|
1353
|
-
* @event close
|
|
1354
|
-
*/
|
|
1355
|
-
"close",
|
|
1356
|
-
/**
|
|
1357
|
-
* Native button click event
|
|
1358
|
-
*
|
|
1359
|
-
* @event click
|
|
1360
|
-
* @type {PointerEvent | KeyboardEvent}
|
|
1361
|
-
*/
|
|
1362
|
-
"click"
|
|
1363
|
-
],
|
|
1364
|
-
computed: {
|
|
1365
|
-
noticeClass() {
|
|
1366
|
-
return [
|
|
1367
|
-
"d-notice",
|
|
1368
|
-
{
|
|
1369
|
-
error: "d-notice--error",
|
|
1370
|
-
info: "d-notice--info",
|
|
1371
|
-
success: "d-notice--success",
|
|
1372
|
-
warning: "d-notice--warning",
|
|
1373
|
-
base: "d-notice--base"
|
|
1374
|
-
}[this.kind],
|
|
1375
|
-
{ "d-notice--important": this.important }
|
|
1376
|
-
];
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
};
|
|
1380
|
-
function Xe(e, s, t, i, n, o) {
|
|
1381
|
-
const c = p("dt-notice-icon"), g = p("dt-notice-content"), v = p("dt-notice-action");
|
|
1382
|
-
return a(), r("aside", {
|
|
1383
|
-
class: f(o.noticeClass),
|
|
1384
|
-
"data-qa": "notice"
|
|
1385
|
-
}, [
|
|
1386
|
-
_(c, { kind: t.kind }, {
|
|
1387
|
-
default: h(() => [
|
|
1388
|
-
l(e.$slots, "icon")
|
|
1389
|
-
]),
|
|
1390
|
-
_: 3
|
|
1391
|
-
}, 8, ["kind"]),
|
|
1392
|
-
_(g, {
|
|
1393
|
-
"title-id": t.titleId,
|
|
1394
|
-
"content-id": t.contentId,
|
|
1395
|
-
title: t.title,
|
|
1396
|
-
role: t.role
|
|
1397
|
-
}, {
|
|
1398
|
-
titleOverride: h(() => [
|
|
1399
|
-
l(e.$slots, "titleOverride")
|
|
1400
|
-
]),
|
|
1401
|
-
default: h(() => [
|
|
1402
|
-
l(e.$slots, "default")
|
|
1403
|
-
]),
|
|
1404
|
-
_: 3
|
|
1405
|
-
}, 8, ["title-id", "content-id", "title", "role"]),
|
|
1406
|
-
_(v, {
|
|
1407
|
-
"hide-close": t.hideClose,
|
|
1408
|
-
"close-button-props": t.closeButtonProps,
|
|
1409
|
-
"visually-hidden-close": e.visuallyHiddenClose,
|
|
1410
|
-
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
1411
|
-
onClose: s[0] || (s[0] = (m) => e.$emit("close"))
|
|
1412
|
-
}, {
|
|
1413
|
-
default: h(() => [
|
|
1414
|
-
l(e.$slots, "action")
|
|
1415
|
-
]),
|
|
1416
|
-
_: 3
|
|
1417
|
-
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
|
|
1418
|
-
], 2);
|
|
1419
|
-
}
|
|
1420
|
-
const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', Je = `${W}:not([tabindex="-1"])`, Qe = "button,[href],input,select,textarea,details,[tabindex]", et = {
|
|
1082
|
+
const De = /* @__PURE__ */ y(Pe, [["render", Le]]), W = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', Ne = `${W}:not([tabindex="-1"])`, Re = "button,[href],input,select,textarea,details,[tabindex]", xe = {
|
|
1421
1083
|
methods: {
|
|
1422
1084
|
/**
|
|
1423
1085
|
* get the first focusable element in your component, includes tabindex="-1".
|
|
@@ -1426,8 +1088,8 @@ const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([ar
|
|
|
1426
1088
|
*/
|
|
1427
1089
|
async getFirstFocusableElement(e) {
|
|
1428
1090
|
await this.$nextTick();
|
|
1429
|
-
const
|
|
1430
|
-
return this._getFirstFocusElement(
|
|
1091
|
+
const t = this._getFocusableElements(e, !0);
|
|
1092
|
+
return this._getFirstFocusElement(t);
|
|
1431
1093
|
},
|
|
1432
1094
|
/**
|
|
1433
1095
|
* set focus to the first focusable element in your component, includes tabindex="-1".
|
|
@@ -1435,8 +1097,8 @@ const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([ar
|
|
|
1435
1097
|
* will default to the root node of the vue component
|
|
1436
1098
|
*/
|
|
1437
1099
|
async focusFirstElement(e) {
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1100
|
+
const t = await this.getFirstFocusableElement(e);
|
|
1101
|
+
t == null || t.focus({ preventScroll: !0 });
|
|
1440
1102
|
},
|
|
1441
1103
|
/**
|
|
1442
1104
|
* internal use only.
|
|
@@ -1448,8 +1110,8 @@ const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([ar
|
|
|
1448
1110
|
_getFirstFocusElement(e) {
|
|
1449
1111
|
if (!e.length)
|
|
1450
1112
|
return;
|
|
1451
|
-
let
|
|
1452
|
-
return
|
|
1113
|
+
let t = e[0];
|
|
1114
|
+
return t.matches('[type="radio"]:not(:checked)') && (t = e.find((s) => s.checked && s.name === t.name) || t), t;
|
|
1453
1115
|
},
|
|
1454
1116
|
/**
|
|
1455
1117
|
* internal use only.
|
|
@@ -1460,10 +1122,10 @@ const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([ar
|
|
|
1460
1122
|
* @param {object} el - the root dom element to find focusable elements in.
|
|
1461
1123
|
* @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
|
|
1462
1124
|
*/
|
|
1463
|
-
_getFocusableElements(e = this.$el,
|
|
1464
|
-
return e ? [...e.querySelectorAll(
|
|
1465
|
-
const
|
|
1466
|
-
return
|
|
1125
|
+
_getFocusableElements(e = this.$el, t = !1) {
|
|
1126
|
+
return e ? [...e.querySelectorAll(Re)].filter((i) => {
|
|
1127
|
+
const a = window.getComputedStyle(i);
|
|
1128
|
+
return a.getPropertyValue("display") !== "none" && a.getPropertyValue("visibility") !== "hidden" && i.matches(t ? W : Ne);
|
|
1467
1129
|
}) : [];
|
|
1468
1130
|
},
|
|
1469
1131
|
/**
|
|
@@ -1472,26 +1134,26 @@ const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([ar
|
|
|
1472
1134
|
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
1473
1135
|
* will default to the root node of the vue component
|
|
1474
1136
|
*/
|
|
1475
|
-
focusTrappedTabPress(e,
|
|
1137
|
+
focusTrappedTabPress(e, t) {
|
|
1476
1138
|
if (!(e.key === "Tab"))
|
|
1477
1139
|
return;
|
|
1478
|
-
const i = this._getFocusableElements(
|
|
1140
|
+
const i = this._getFocusableElements(t);
|
|
1479
1141
|
if (!i.length) {
|
|
1480
1142
|
e.preventDefault();
|
|
1481
1143
|
return;
|
|
1482
1144
|
}
|
|
1483
|
-
const
|
|
1484
|
-
e.shiftKey ? document.activeElement ===
|
|
1145
|
+
const a = this._getFirstFocusElement(i), o = i[i.length - 1];
|
|
1146
|
+
e.shiftKey ? document.activeElement === a && (o.focus(), e.preventDefault()) : document.activeElement === o && (a.focus(), e.preventDefault());
|
|
1485
1147
|
}
|
|
1486
1148
|
}
|
|
1487
1149
|
}, D = {
|
|
1488
1150
|
DEFAULT: "default",
|
|
1489
1151
|
CUSTOM: "custom"
|
|
1490
|
-
},
|
|
1152
|
+
}, C = {
|
|
1491
1153
|
ARROW_KEYS: "arrow-keys",
|
|
1492
1154
|
TAB: "tab",
|
|
1493
1155
|
NONE: "none"
|
|
1494
|
-
},
|
|
1156
|
+
}, Fe = {
|
|
1495
1157
|
name: "DtItemLayout",
|
|
1496
1158
|
props: {
|
|
1497
1159
|
/**
|
|
@@ -1502,66 +1164,66 @@ const Bt = /* @__PURE__ */ y(Ze, [["render", Xe]]), W = ':not(:disabled):not([ar
|
|
|
1502
1164
|
default: "div"
|
|
1503
1165
|
}
|
|
1504
1166
|
}
|
|
1505
|
-
},
|
|
1167
|
+
}, ze = {
|
|
1506
1168
|
key: 0,
|
|
1507
1169
|
"data-qa": "dt-item-layout-left-wrapper",
|
|
1508
1170
|
class: "dt-item-layout--left"
|
|
1509
|
-
},
|
|
1171
|
+
}, Ve = {
|
|
1510
1172
|
"data-qa": "dt-item-layout-content-wrapper",
|
|
1511
1173
|
class: "dt-item-layout--content"
|
|
1512
|
-
},
|
|
1174
|
+
}, He = {
|
|
1513
1175
|
key: 0,
|
|
1514
1176
|
"data-qa": "dt-item-layout-title-wrapper",
|
|
1515
1177
|
class: "dt-item-layout--title"
|
|
1516
|
-
},
|
|
1178
|
+
}, Be = {
|
|
1517
1179
|
key: 2,
|
|
1518
1180
|
"data-qa": "dt-item-layout-bottom-wrapper",
|
|
1519
1181
|
class: "dt-item-layout--bottom"
|
|
1520
|
-
},
|
|
1182
|
+
}, qe = {
|
|
1521
1183
|
key: 1,
|
|
1522
1184
|
"data-qa": "dt-item-layout-right-wrapper",
|
|
1523
1185
|
class: "dt-item-layout--right"
|
|
1524
|
-
},
|
|
1186
|
+
}, Me = {
|
|
1525
1187
|
key: 2,
|
|
1526
1188
|
"data-qa": "dt-item-layout-selected-wrapper",
|
|
1527
1189
|
class: "dt-item-layout--selected"
|
|
1528
1190
|
};
|
|
1529
|
-
function
|
|
1530
|
-
return
|
|
1531
|
-
default:
|
|
1532
|
-
e.$slots.left ? (
|
|
1533
|
-
|
|
1191
|
+
function je(e, t, s, i, a, o) {
|
|
1192
|
+
return n(), h(E(s.as), { class: "dt-item-layout" }, {
|
|
1193
|
+
default: p(() => [
|
|
1194
|
+
e.$slots.left ? (n(), l("section", ze, [
|
|
1195
|
+
c(e.$slots, "left", {}, void 0, !0)
|
|
1534
1196
|
])) : d("", !0),
|
|
1535
|
-
|
|
1536
|
-
e.$slots.default ? (
|
|
1537
|
-
|
|
1197
|
+
_("section", Ve, [
|
|
1198
|
+
e.$slots.default ? (n(), l("div", He, [
|
|
1199
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
1538
1200
|
])) : d("", !0),
|
|
1539
|
-
e.$slots.subtitle ? (
|
|
1201
|
+
e.$slots.subtitle ? (n(), l("div", {
|
|
1540
1202
|
key: 1,
|
|
1541
1203
|
"data-qa": "dt-item-layout-subtitle-wrapper",
|
|
1542
|
-
class:
|
|
1204
|
+
class: u(["dt-item-layout--subtitle", { "dt-item-layout--subtitle--with-title": e.$slots.default }])
|
|
1543
1205
|
}, [
|
|
1544
|
-
|
|
1206
|
+
c(e.$slots, "subtitle", {}, void 0, !0)
|
|
1545
1207
|
], 2)) : d("", !0),
|
|
1546
|
-
e.$slots.bottom ? (
|
|
1547
|
-
|
|
1208
|
+
e.$slots.bottom ? (n(), l("div", Be, [
|
|
1209
|
+
c(e.$slots, "bottom", {}, void 0, !0)
|
|
1548
1210
|
])) : d("", !0)
|
|
1549
1211
|
]),
|
|
1550
|
-
e.$slots.right ? (
|
|
1551
|
-
|
|
1212
|
+
e.$slots.right ? (n(), l("section", qe, [
|
|
1213
|
+
c(e.$slots, "right", {}, void 0, !0)
|
|
1552
1214
|
])) : d("", !0),
|
|
1553
|
-
e.$slots.selected ? (
|
|
1554
|
-
|
|
1215
|
+
e.$slots.selected ? (n(), l("section", Me, [
|
|
1216
|
+
c(e.$slots, "selected", {}, void 0, !0)
|
|
1555
1217
|
])) : d("", !0)
|
|
1556
1218
|
]),
|
|
1557
1219
|
_: 3
|
|
1558
1220
|
});
|
|
1559
1221
|
}
|
|
1560
|
-
const V = /* @__PURE__ */ y(
|
|
1222
|
+
const V = /* @__PURE__ */ y(Fe, [["render", je], ["__scopeId", "data-v-c04dbbaa"]]), Ke = {
|
|
1561
1223
|
name: "DtListItem",
|
|
1562
1224
|
components: {
|
|
1563
1225
|
DtItemLayout: V,
|
|
1564
|
-
DtIcon:
|
|
1226
|
+
DtIcon: P
|
|
1565
1227
|
},
|
|
1566
1228
|
/**
|
|
1567
1229
|
* Value provided from keyboard_list_navigation.js using id prop.
|
|
@@ -1576,7 +1238,7 @@ const V = /* @__PURE__ */ y(tt, [["render", rt], ["__scopeId", "data-v-c04dbbaa"
|
|
|
1576
1238
|
id: {
|
|
1577
1239
|
type: String,
|
|
1578
1240
|
default() {
|
|
1579
|
-
return
|
|
1241
|
+
return Y.getUniqueString();
|
|
1580
1242
|
}
|
|
1581
1243
|
},
|
|
1582
1244
|
/**
|
|
@@ -1611,8 +1273,8 @@ const V = /* @__PURE__ */ y(tt, [["render", rt], ["__scopeId", "data-v-c04dbbaa"
|
|
|
1611
1273
|
*/
|
|
1612
1274
|
navigationType: {
|
|
1613
1275
|
type: String,
|
|
1614
|
-
default:
|
|
1615
|
-
validator: (e) => Object.values(
|
|
1276
|
+
default: C.NONE,
|
|
1277
|
+
validator: (e) => Object.values(C).includes(e)
|
|
1616
1278
|
},
|
|
1617
1279
|
/**
|
|
1618
1280
|
* Applies selected styles to the list item
|
|
@@ -1687,13 +1349,13 @@ const V = /* @__PURE__ */ y(tt, [["render", rt], ["__scopeId", "data-v-c04dbbaa"
|
|
|
1687
1349
|
return this.isHoverable ? this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted : !1;
|
|
1688
1350
|
},
|
|
1689
1351
|
isFocusable() {
|
|
1690
|
-
return this.navigationType ===
|
|
1352
|
+
return this.navigationType === C.TAB;
|
|
1691
1353
|
},
|
|
1692
1354
|
/**
|
|
1693
1355
|
* Whether to apply hover styles.
|
|
1694
1356
|
*/
|
|
1695
1357
|
isHoverable() {
|
|
1696
|
-
return this.navigationType !==
|
|
1358
|
+
return this.navigationType !== C.NONE;
|
|
1697
1359
|
}
|
|
1698
1360
|
},
|
|
1699
1361
|
methods: {
|
|
@@ -1708,31 +1370,31 @@ const V = /* @__PURE__ */ y(tt, [["render", rt], ["__scopeId", "data-v-c04dbbaa"
|
|
|
1708
1370
|
}
|
|
1709
1371
|
}
|
|
1710
1372
|
};
|
|
1711
|
-
function
|
|
1712
|
-
const
|
|
1713
|
-
return
|
|
1714
|
-
id:
|
|
1373
|
+
function We(e, t, s, i, a, o) {
|
|
1374
|
+
const f = m("dt-icon");
|
|
1375
|
+
return n(), h(E(s.elementType), T({
|
|
1376
|
+
id: s.id,
|
|
1715
1377
|
class: ["dt-list-item", {
|
|
1716
1378
|
"dt-list-item--focusable": o.isFocusable,
|
|
1717
1379
|
"dt-list-item--highlighted": o.isHighlighted,
|
|
1718
1380
|
"dt-list-item--static": !o.isHoverable
|
|
1719
1381
|
}],
|
|
1720
1382
|
tabindex: o.isFocusable ? 0 : -1,
|
|
1721
|
-
role:
|
|
1383
|
+
role: s.role,
|
|
1722
1384
|
"aria-selected": o.isHighlighted
|
|
1723
|
-
},
|
|
1724
|
-
default:
|
|
1725
|
-
o.listItemType ? (
|
|
1726
|
-
|
|
1727
|
-
name:
|
|
1728
|
-
fn:
|
|
1729
|
-
|
|
1385
|
+
}, j(o.listItemListeners)), {
|
|
1386
|
+
default: p(() => [
|
|
1387
|
+
o.listItemType ? (n(), h(E(o.listItemType), { key: 0 }, te({ _: 2 }, [
|
|
1388
|
+
se(e.$slots, (g, k) => ({
|
|
1389
|
+
name: k,
|
|
1390
|
+
fn: p(() => [
|
|
1391
|
+
c(e.$slots, k)
|
|
1730
1392
|
])
|
|
1731
1393
|
})),
|
|
1732
|
-
|
|
1394
|
+
s.selected ? {
|
|
1733
1395
|
name: "selected",
|
|
1734
|
-
fn:
|
|
1735
|
-
|
|
1396
|
+
fn: p(() => [
|
|
1397
|
+
A(f, {
|
|
1736
1398
|
name: "check",
|
|
1737
1399
|
size: "400",
|
|
1738
1400
|
class: "dt-list-item--selected-icon"
|
|
@@ -1740,36 +1402,36 @@ function ct(e, s, t, i, n, o) {
|
|
|
1740
1402
|
]),
|
|
1741
1403
|
key: "0"
|
|
1742
1404
|
} : void 0
|
|
1743
|
-
]), 1024)) :
|
|
1405
|
+
]), 1024)) : c(e.$slots, "default", { key: 1 })
|
|
1744
1406
|
]),
|
|
1745
1407
|
_: 3
|
|
1746
1408
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
1747
1409
|
}
|
|
1748
|
-
const
|
|
1410
|
+
const gt = /* @__PURE__ */ y(Ke, [["render", We]]), v = {
|
|
1749
1411
|
default: "column",
|
|
1750
1412
|
column: "column",
|
|
1751
1413
|
row: "row",
|
|
1752
1414
|
"row-reverse": "row-reverse",
|
|
1753
1415
|
"column-reverse": "column-reverse"
|
|
1754
|
-
},
|
|
1416
|
+
}, G = ["sm", "md", "lg", "xl"], R = ["0", "100", "200", "300", "400", "500", "600"], H = {
|
|
1755
1417
|
none: void 0,
|
|
1756
1418
|
small: "d-p4",
|
|
1757
1419
|
medium: "d-p8",
|
|
1758
1420
|
large: "d-p16"
|
|
1759
|
-
},
|
|
1421
|
+
}, Ge = {
|
|
1760
1422
|
none: void 0,
|
|
1761
1423
|
small: "d-pl4",
|
|
1762
1424
|
medium: "d-pl8",
|
|
1763
1425
|
large: "d-pl16"
|
|
1764
|
-
},
|
|
1765
|
-
|
|
1766
|
-
],
|
|
1767
|
-
...
|
|
1768
|
-
],
|
|
1426
|
+
}, Ue = ["dialog", "menu", "listbox", "tree", "grid"], Ye = ["", "anchor"], $e = ["none", "dialog", "first"], Ze = ["parent", "body"], Xe = [
|
|
1427
|
+
...$
|
|
1428
|
+
], vt = [
|
|
1429
|
+
...Z
|
|
1430
|
+
], Je = {
|
|
1769
1431
|
name: "PopoverHeaderFooter",
|
|
1770
1432
|
components: {
|
|
1771
|
-
DtButton:
|
|
1772
|
-
DtIcon:
|
|
1433
|
+
DtButton: K,
|
|
1434
|
+
DtIcon: P
|
|
1773
1435
|
},
|
|
1774
1436
|
props: {
|
|
1775
1437
|
// eslint-disable-next-line vue/require-default-prop
|
|
@@ -1815,52 +1477,52 @@ const xt = /* @__PURE__ */ y(dt, [["render", ct]]), k = {
|
|
|
1815
1477
|
],
|
|
1816
1478
|
data() {
|
|
1817
1479
|
return {
|
|
1818
|
-
hasSlotContent:
|
|
1480
|
+
hasSlotContent: M
|
|
1819
1481
|
};
|
|
1820
1482
|
},
|
|
1821
1483
|
methods: {
|
|
1822
1484
|
focusCloseButton() {
|
|
1823
|
-
var
|
|
1824
|
-
const e = (
|
|
1485
|
+
var t;
|
|
1486
|
+
const e = (t = this.$refs["popover__close-button"]) == null ? void 0 : t.$el;
|
|
1825
1487
|
e == null || e.focus();
|
|
1826
1488
|
}
|
|
1827
1489
|
}
|
|
1828
1490
|
};
|
|
1829
|
-
function
|
|
1830
|
-
const
|
|
1831
|
-
return
|
|
1491
|
+
function Qe(e, t, s, i, a, o) {
|
|
1492
|
+
const f = m("dt-icon"), g = m("dt-button");
|
|
1493
|
+
return n(), l("div", {
|
|
1832
1494
|
"data-qa": "dt-popover-header-footer",
|
|
1833
|
-
class:
|
|
1834
|
-
"d-popover__header":
|
|
1835
|
-
"d-popover__footer":
|
|
1495
|
+
class: u({
|
|
1496
|
+
"d-popover__header": s.type === "header",
|
|
1497
|
+
"d-popover__footer": s.type === "footer"
|
|
1836
1498
|
})
|
|
1837
1499
|
}, [
|
|
1838
|
-
|
|
1500
|
+
a.hasSlotContent(e.$slots.content) ? (n(), l("div", {
|
|
1839
1501
|
key: 0,
|
|
1840
1502
|
"data-qa": "dt-popover-header-footer-content",
|
|
1841
|
-
class:
|
|
1842
|
-
"d-popover__header__content":
|
|
1843
|
-
"d-popover__footer__content":
|
|
1844
|
-
},
|
|
1503
|
+
class: u([{
|
|
1504
|
+
"d-popover__header__content": s.type === "header",
|
|
1505
|
+
"d-popover__footer__content": s.type === "footer"
|
|
1506
|
+
}, s.contentClass])
|
|
1845
1507
|
}, [
|
|
1846
|
-
|
|
1508
|
+
c(e.$slots, "content")
|
|
1847
1509
|
], 2)) : d("", !0),
|
|
1848
|
-
|
|
1510
|
+
s.showCloseButton ? (n(), h(g, T({
|
|
1849
1511
|
key: 1,
|
|
1850
1512
|
ref: "popover__close-button",
|
|
1851
1513
|
"data-qa": "dt-popover-close",
|
|
1852
1514
|
class: {
|
|
1853
|
-
"d-popover__header__close-button":
|
|
1854
|
-
"d-popover__footer__close-button":
|
|
1515
|
+
"d-popover__header__close-button": s.type === "header",
|
|
1516
|
+
"d-popover__footer__close-button": s.type === "footer"
|
|
1855
1517
|
},
|
|
1856
1518
|
importance: "outlined",
|
|
1857
1519
|
kind: "muted",
|
|
1858
1520
|
circle: ""
|
|
1859
|
-
},
|
|
1860
|
-
onClick:
|
|
1521
|
+
}, s.closeButtonProps, {
|
|
1522
|
+
onClick: t[0] || (t[0] = (k) => e.$emit("close"))
|
|
1861
1523
|
}), {
|
|
1862
|
-
icon:
|
|
1863
|
-
|
|
1524
|
+
icon: p(() => [
|
|
1525
|
+
A(f, {
|
|
1864
1526
|
name: "close",
|
|
1865
1527
|
size: "300"
|
|
1866
1528
|
})
|
|
@@ -1869,17 +1531,17 @@ function vt(e, s, t, i, n, o) {
|
|
|
1869
1531
|
}, 16, ["class"])) : d("", !0)
|
|
1870
1532
|
], 2);
|
|
1871
1533
|
}
|
|
1872
|
-
const
|
|
1534
|
+
const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
1873
1535
|
name: "DtPopover",
|
|
1874
1536
|
/********************
|
|
1875
1537
|
* CHILD COMPONENTS *
|
|
1876
1538
|
********************/
|
|
1877
1539
|
components: {
|
|
1878
|
-
SrOnlyCloseButton:
|
|
1879
|
-
DtLazyShow:
|
|
1880
|
-
PopoverHeaderFooter:
|
|
1540
|
+
SrOnlyCloseButton: De,
|
|
1541
|
+
DtLazyShow: X,
|
|
1542
|
+
PopoverHeaderFooter: et
|
|
1881
1543
|
},
|
|
1882
|
-
mixins: [
|
|
1544
|
+
mixins: [xe, Ae],
|
|
1883
1545
|
props: {
|
|
1884
1546
|
/**
|
|
1885
1547
|
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
@@ -1922,7 +1584,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
1922
1584
|
role: {
|
|
1923
1585
|
type: String,
|
|
1924
1586
|
default: "dialog",
|
|
1925
|
-
validator: (e) =>
|
|
1587
|
+
validator: (e) => Ue.includes(e)
|
|
1926
1588
|
},
|
|
1927
1589
|
/**
|
|
1928
1590
|
* ID of the element that serves as the label for the popover content.
|
|
@@ -1958,7 +1620,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
1958
1620
|
padding: {
|
|
1959
1621
|
type: String,
|
|
1960
1622
|
default: "large",
|
|
1961
|
-
validator: (e) => Object.keys(
|
|
1623
|
+
validator: (e) => Object.keys(H).some((t) => t === e)
|
|
1962
1624
|
},
|
|
1963
1625
|
/**
|
|
1964
1626
|
* Additional class name for the content wrapper element.
|
|
@@ -1975,7 +1637,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
1975
1637
|
contentWidth: {
|
|
1976
1638
|
type: String,
|
|
1977
1639
|
default: "",
|
|
1978
|
-
validator: (e) =>
|
|
1640
|
+
validator: (e) => Ye.includes(e)
|
|
1979
1641
|
},
|
|
1980
1642
|
/**
|
|
1981
1643
|
* Whether to apply transition on initial render in the content lazy show component.
|
|
@@ -2005,7 +1667,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2005
1667
|
id: {
|
|
2006
1668
|
type: String,
|
|
2007
1669
|
default() {
|
|
2008
|
-
return
|
|
1670
|
+
return N();
|
|
2009
1671
|
}
|
|
2010
1672
|
},
|
|
2011
1673
|
/**
|
|
@@ -2109,7 +1771,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2109
1771
|
sticky: {
|
|
2110
1772
|
type: [Boolean, String],
|
|
2111
1773
|
default: !1,
|
|
2112
|
-
validator: (e) =>
|
|
1774
|
+
validator: (e) => Xe.includes(e)
|
|
2113
1775
|
},
|
|
2114
1776
|
/**
|
|
2115
1777
|
* Determines maximum height for the popover before overflow.
|
|
@@ -2167,7 +1829,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2167
1829
|
initialFocusElement: {
|
|
2168
1830
|
type: [String, HTMLElement],
|
|
2169
1831
|
default: "first",
|
|
2170
|
-
validator: (e) =>
|
|
1832
|
+
validator: (e) => $e.includes(e) || e instanceof HTMLElement || e.startsWith("#")
|
|
2171
1833
|
},
|
|
2172
1834
|
/**
|
|
2173
1835
|
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
@@ -2186,7 +1848,15 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2186
1848
|
appendTo: {
|
|
2187
1849
|
type: [HTMLElement, String],
|
|
2188
1850
|
default: "body",
|
|
2189
|
-
validator: (e) =>
|
|
1851
|
+
validator: (e) => Ze.includes(e) || e instanceof HTMLElement
|
|
1852
|
+
},
|
|
1853
|
+
/**
|
|
1854
|
+
* Set this prop to true and popover component will support hovercard behaviour
|
|
1855
|
+
* It will open on mouseenter and close on mouseleave with timer delay of 300ms
|
|
1856
|
+
*/
|
|
1857
|
+
hovercard: {
|
|
1858
|
+
type: Boolean,
|
|
1859
|
+
default: !1
|
|
2190
1860
|
}
|
|
2191
1861
|
},
|
|
2192
1862
|
emits: [
|
|
@@ -2212,15 +1882,17 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2212
1882
|
],
|
|
2213
1883
|
data() {
|
|
2214
1884
|
return {
|
|
2215
|
-
POPOVER_PADDING_CLASSES:
|
|
2216
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES:
|
|
1885
|
+
POPOVER_PADDING_CLASSES: H,
|
|
1886
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: Ge,
|
|
2217
1887
|
intersectionObserver: null,
|
|
2218
1888
|
isOutsideViewport: !1,
|
|
2219
1889
|
isOpen: !1,
|
|
2220
1890
|
toAppear: !1,
|
|
2221
1891
|
anchorEl: null,
|
|
2222
1892
|
popoverContentEl: null,
|
|
2223
|
-
hasSlotContent:
|
|
1893
|
+
hasSlotContent: M,
|
|
1894
|
+
inTimer: null,
|
|
1895
|
+
outTimer: null
|
|
2224
1896
|
};
|
|
2225
1897
|
},
|
|
2226
1898
|
computed: {
|
|
@@ -2241,7 +1913,7 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2241
1913
|
return this.isOutsideViewport && this.modal ? "calc(100vh - var(--dt-space-300))" : this.maxHeight;
|
|
2242
1914
|
},
|
|
2243
1915
|
labelledBy() {
|
|
2244
|
-
return this.ariaLabelledby || !this.ariaLabel &&
|
|
1916
|
+
return this.ariaLabelledby || !this.ariaLabel && N("DtPopover__anchor");
|
|
2245
1917
|
}
|
|
2246
1918
|
},
|
|
2247
1919
|
watch: {
|
|
@@ -2253,20 +1925,20 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2253
1925
|
}
|
|
2254
1926
|
},
|
|
2255
1927
|
modal(e) {
|
|
2256
|
-
var
|
|
2257
|
-
(
|
|
1928
|
+
var t;
|
|
1929
|
+
(t = this.tip) == null || t.setProps({
|
|
2258
1930
|
zIndex: e ? 650 : this.calculateAnchorZindex()
|
|
2259
1931
|
});
|
|
2260
1932
|
},
|
|
2261
1933
|
offset(e) {
|
|
2262
|
-
var
|
|
2263
|
-
(
|
|
1934
|
+
var t;
|
|
1935
|
+
(t = this.tip) == null || t.setProps({
|
|
2264
1936
|
offset: e
|
|
2265
1937
|
});
|
|
2266
1938
|
},
|
|
2267
1939
|
sticky(e) {
|
|
2268
|
-
var
|
|
2269
|
-
(
|
|
1940
|
+
var t;
|
|
1941
|
+
(t = this.tip) == null || t.setProps({
|
|
2270
1942
|
sticky: e
|
|
2271
1943
|
});
|
|
2272
1944
|
},
|
|
@@ -2283,8 +1955,8 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2283
1955
|
});
|
|
2284
1956
|
},
|
|
2285
1957
|
placement(e) {
|
|
2286
|
-
var
|
|
2287
|
-
(
|
|
1958
|
+
var t;
|
|
1959
|
+
(t = this.tip) == null || t.setProps({
|
|
2288
1960
|
placement: e
|
|
2289
1961
|
});
|
|
2290
1962
|
},
|
|
@@ -2299,8 +1971,8 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2299
1971
|
e !== null && (this.toAppear = e);
|
|
2300
1972
|
}
|
|
2301
1973
|
},
|
|
2302
|
-
isOpen(e,
|
|
2303
|
-
e ? (this.initTippyInstance(), this.tip.show()) : !e &&
|
|
1974
|
+
isOpen(e, t) {
|
|
1975
|
+
e ? (this.initTippyInstance(), this.tip.show()) : !e && t !== e && (this.removeEventListeners(), this.tip.hide());
|
|
2304
1976
|
}
|
|
2305
1977
|
},
|
|
2306
1978
|
mounted() {
|
|
@@ -2317,14 +1989,14 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2317
1989
|
methods: {
|
|
2318
1990
|
hasIntersectedViewport(e) {
|
|
2319
1991
|
var i;
|
|
2320
|
-
const
|
|
2321
|
-
if (!
|
|
1992
|
+
const t = (i = e == null ? void 0 : e[0]) == null ? void 0 : i.target;
|
|
1993
|
+
if (!t)
|
|
2322
1994
|
return;
|
|
2323
|
-
const
|
|
2324
|
-
this.isOutsideViewport =
|
|
1995
|
+
const s = J(t);
|
|
1996
|
+
this.isOutsideViewport = s.bottom || s.top;
|
|
2325
1997
|
},
|
|
2326
1998
|
popperOptions() {
|
|
2327
|
-
return
|
|
1999
|
+
return Q({
|
|
2328
2000
|
fallbackPlacements: this.fallbackPlacements,
|
|
2329
2001
|
tether: this.tether,
|
|
2330
2002
|
hasHideModifierEnabled: !0
|
|
@@ -2340,9 +2012,9 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2340
2012
|
(e = this.anchorEl) != null && e.closest(".d-zi-drawer") ? 650 : 300;
|
|
2341
2013
|
},
|
|
2342
2014
|
defaultToggleOpen(e) {
|
|
2343
|
-
var
|
|
2344
|
-
if (!this.openOnContext && (this.open === null || this.open === void 0)) {
|
|
2345
|
-
if (!((
|
|
2015
|
+
var t, s, i;
|
|
2016
|
+
if (!this.hovercard && !this.openOnContext && (this.open === null || this.open === void 0)) {
|
|
2017
|
+
if (!((t = this.anchorEl) != null && t.contains(e.target)) && !((s = this.anchorEl) != null && s.isEqualNode(e.target)) || (i = this.anchorEl) != null && i.disabled)
|
|
2346
2018
|
return;
|
|
2347
2019
|
this.toggleOpen();
|
|
2348
2020
|
}
|
|
@@ -2364,8 +2036,8 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2364
2036
|
this.isOpen = !this.isOpen;
|
|
2365
2037
|
},
|
|
2366
2038
|
onArrowKeyPress(e) {
|
|
2367
|
-
var
|
|
2368
|
-
this.open === null && (this.openWithArrowKeys && ((
|
|
2039
|
+
var t;
|
|
2040
|
+
this.open === null && (this.openWithArrowKeys && ((t = this.anchorEl) != null && t.contains(e.target)) && (this.isOpen || (this.isOpen = !0)), this.$emit("keydown", e));
|
|
2369
2041
|
},
|
|
2370
2042
|
addEventListeners() {
|
|
2371
2043
|
window.addEventListener("dt-popover-close", this.closePopover), this.contentWidth === "anchor" && window.addEventListener("resize", this.onResize);
|
|
@@ -2385,17 +2057,17 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2385
2057
|
preventScrolling() {
|
|
2386
2058
|
var e;
|
|
2387
2059
|
if (this.modal) {
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2060
|
+
const t = (e = this.anchorEl) == null ? void 0 : e.closest("body, .tippy-box");
|
|
2061
|
+
t.tagName.toLowerCase() === "body" ? (t.classList.add("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : t.classList.add("d-zi-popover");
|
|
2390
2062
|
}
|
|
2391
2063
|
},
|
|
2392
2064
|
/*
|
|
2393
2065
|
* Resets the prevent scrolling properties set in preventScrolling() back to normal.
|
|
2394
2066
|
**/
|
|
2395
2067
|
enableScrolling() {
|
|
2396
|
-
var
|
|
2397
|
-
const e = (
|
|
2398
|
-
e && (((
|
|
2068
|
+
var t, s;
|
|
2069
|
+
const e = (t = this.anchorEl) == null ? void 0 : t.closest("body, .tippy-box");
|
|
2070
|
+
e && (((s = e.tagName) == null ? void 0 : s.toLowerCase()) === "body" ? (e.classList.remove("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : e.classList.remove("d-zi-popover"));
|
|
2399
2071
|
},
|
|
2400
2072
|
removeReferences() {
|
|
2401
2073
|
this.anchorEl = null, this.popoverContentEl = null, this.tip = null;
|
|
@@ -2414,8 +2086,8 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2414
2086
|
this.initialFocusElement === "dialog" && this.$refs.content.$el.focus(), this.initialFocusElement.startsWith("#") && this.focusInitialElementById(), this.initialFocusElement === "first" && this.focusFirstElementIfNeeded(this.$refs.popover__content), this.initialFocusElement instanceof HTMLElement && this.initialFocusElement.focus();
|
|
2415
2087
|
},
|
|
2416
2088
|
focusInitialElementById() {
|
|
2417
|
-
var
|
|
2418
|
-
const e = (
|
|
2089
|
+
var t, s, i;
|
|
2090
|
+
const e = (s = (t = this.$refs.content) == null ? void 0 : t.$el) == null ? void 0 : s.querySelector(this.initialFocusElement);
|
|
2419
2091
|
e ? e.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), e ? e.focus() : (i = this.$refs.content) == null || i.$el.focus();
|
|
2420
2092
|
},
|
|
2421
2093
|
onResize() {
|
|
@@ -2434,18 +2106,18 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2434
2106
|
await this.$nextTick(), this.popoverContentEl.style.width = `${(e = this.anchorEl) == null ? void 0 : e.clientWidth}px`;
|
|
2435
2107
|
},
|
|
2436
2108
|
focusFirstElementIfNeeded(e) {
|
|
2437
|
-
var
|
|
2438
|
-
this._getFocusableElements(e, !0).length !== 0 ? this.focusFirstElement(e) : this.showCloseButton ? (
|
|
2109
|
+
var s, i;
|
|
2110
|
+
this._getFocusableElements(e, !0).length !== 0 ? this.focusFirstElement(e) : this.showCloseButton ? (s = this.$refs.popover__header) == null || s.focusCloseButton() : (i = this.$refs.content) == null || i.$el.focus();
|
|
2439
2111
|
},
|
|
2440
2112
|
initTippyInstance() {
|
|
2441
|
-
var e,
|
|
2442
|
-
this.tip =
|
|
2113
|
+
var e, t;
|
|
2114
|
+
this.tip = ee(this.anchorEl, {
|
|
2443
2115
|
popperOptions: this.popperOptions(),
|
|
2444
2116
|
contentElement: this.popoverContentEl,
|
|
2445
2117
|
placement: this.placement,
|
|
2446
2118
|
offset: this.offset,
|
|
2447
2119
|
sticky: this.sticky,
|
|
2448
|
-
appendTo: this.appendTo === "body" ? (
|
|
2120
|
+
appendTo: this.appendTo === "body" ? (t = (e = this.anchorEl) == null ? void 0 : e.getRootNode()) == null ? void 0 : t.querySelector("body") : this.appendTo,
|
|
2449
2121
|
interactive: !0,
|
|
2450
2122
|
trigger: "manual",
|
|
2451
2123
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -2455,164 +2127,197 @@ const _t = /* @__PURE__ */ y(gt, [["render", vt]]), bt = {
|
|
|
2455
2127
|
onClickOutside: this.onClickOutside,
|
|
2456
2128
|
onShow: this.onShow
|
|
2457
2129
|
});
|
|
2130
|
+
},
|
|
2131
|
+
// ============================================================================
|
|
2132
|
+
// $ HOVERCARD
|
|
2133
|
+
// ----------------------------------------------------------------------------
|
|
2134
|
+
setInTimer() {
|
|
2135
|
+
this.inTimer = setTimeout(() => {
|
|
2136
|
+
this.isOpen = !0;
|
|
2137
|
+
}, x);
|
|
2138
|
+
},
|
|
2139
|
+
setOutTimer() {
|
|
2140
|
+
this.outTimer = setTimeout(() => {
|
|
2141
|
+
this.isOpen = !1;
|
|
2142
|
+
}, x);
|
|
2143
|
+
},
|
|
2144
|
+
onEnterAnchor(e) {
|
|
2145
|
+
this.hovercard && (clearTimeout(this.outTimer), this.setInTimer(e));
|
|
2146
|
+
},
|
|
2147
|
+
onLeaveAnchor(e) {
|
|
2148
|
+
this.hovercard && (clearTimeout(this.inTimer), this.setOutTimer(e));
|
|
2149
|
+
},
|
|
2150
|
+
onEnterContent() {
|
|
2151
|
+
this.hovercard && clearTimeout(this.outTimer);
|
|
2152
|
+
},
|
|
2153
|
+
onLeaveContent(e) {
|
|
2154
|
+
this.hovercard && this.setOutTimer(e);
|
|
2458
2155
|
}
|
|
2156
|
+
// ============================================================================
|
|
2157
|
+
// $ HOVERCARD
|
|
2158
|
+
// ----------------------------------------------------------------------------
|
|
2459
2159
|
}
|
|
2460
|
-
},
|
|
2461
|
-
function
|
|
2462
|
-
const
|
|
2463
|
-
return
|
|
2464
|
-
|
|
2160
|
+
}, st = ["aria-hidden"], ot = ["id", "tabindex"];
|
|
2161
|
+
function at(e, t, s, i, a, o) {
|
|
2162
|
+
const f = m("popover-header-footer"), g = m("sr-only-close-button"), k = m("dt-lazy-show");
|
|
2163
|
+
return n(), l("div", null, [
|
|
2164
|
+
s.modal && a.isOpen ? (n(), h(oe, {
|
|
2465
2165
|
key: 0,
|
|
2466
2166
|
to: "body"
|
|
2467
2167
|
}, [
|
|
2468
|
-
|
|
2168
|
+
_("div", {
|
|
2469
2169
|
class: "d-modal--transparent",
|
|
2470
|
-
"aria-hidden":
|
|
2471
|
-
onClick:
|
|
2170
|
+
"aria-hidden": s.modal && a.isOpen ? "false" : "true",
|
|
2171
|
+
onClick: t[0] || (t[0] = I(() => {
|
|
2472
2172
|
}, ["prevent", "stop"]))
|
|
2473
|
-
}, null, 8,
|
|
2173
|
+
}, null, 8, st)
|
|
2474
2174
|
])) : d("", !0),
|
|
2475
|
-
(
|
|
2175
|
+
(n(), h(E(s.elementType), {
|
|
2476
2176
|
ref: "popover",
|
|
2477
|
-
class:
|
|
2177
|
+
class: u(["d-popover", { "d-popover__anchor--opened": a.isOpen }]),
|
|
2478
2178
|
"data-qa": "dt-popover-container"
|
|
2479
2179
|
}, {
|
|
2480
|
-
default:
|
|
2481
|
-
|
|
2482
|
-
id: !
|
|
2180
|
+
default: p(() => [
|
|
2181
|
+
_("div", {
|
|
2182
|
+
id: !s.ariaLabelledby && o.labelledBy,
|
|
2483
2183
|
ref: "anchor",
|
|
2484
2184
|
"data-qa": "dt-popover-anchor",
|
|
2485
|
-
tabindex:
|
|
2486
|
-
onClickCapture:
|
|
2487
|
-
onContextmenu:
|
|
2185
|
+
tabindex: s.openOnContext ? 0 : void 0,
|
|
2186
|
+
onClickCapture: t[1] || (t[1] = (...r) => o.defaultToggleOpen && o.defaultToggleOpen(...r)),
|
|
2187
|
+
onContextmenu: t[2] || (t[2] = (...r) => o.onContext && o.onContext(...r)),
|
|
2488
2188
|
onKeydown: [
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2189
|
+
t[3] || (t[3] = b(I((...r) => o.onArrowKeyPress && o.onArrowKeyPress(...r), ["prevent"]), ["up"])),
|
|
2190
|
+
t[4] || (t[4] = b(I((...r) => o.onArrowKeyPress && o.onArrowKeyPress(...r), ["prevent"]), ["down"])),
|
|
2191
|
+
t[6] || (t[6] = b((r) => e.$emit("keydown", r), ["enter"])),
|
|
2192
|
+
t[7] || (t[7] = b((r) => e.$emit("keydown", r), ["space"]))
|
|
2493
2193
|
],
|
|
2494
|
-
onKeydownCapture:
|
|
2194
|
+
onKeydownCapture: t[5] || (t[5] = b((...r) => o.closePopover && o.closePopover(...r), ["escape"])),
|
|
2195
|
+
onMouseenter: t[8] || (t[8] = (...r) => o.onEnterAnchor && o.onEnterAnchor(...r)),
|
|
2196
|
+
onMouseleave: t[9] || (t[9] = (...r) => o.onLeaveAnchor && o.onLeaveAnchor(...r))
|
|
2495
2197
|
}, [
|
|
2496
|
-
|
|
2198
|
+
c(e.$slots, "anchor", {
|
|
2497
2199
|
attrs: {
|
|
2498
|
-
"aria-expanded":
|
|
2499
|
-
"aria-controls":
|
|
2500
|
-
"aria-haspopup":
|
|
2200
|
+
"aria-expanded": a.isOpen.toString(),
|
|
2201
|
+
"aria-controls": s.id,
|
|
2202
|
+
"aria-haspopup": s.role
|
|
2501
2203
|
}
|
|
2502
2204
|
})
|
|
2503
|
-
], 40,
|
|
2504
|
-
|
|
2505
|
-
id:
|
|
2205
|
+
], 40, ot),
|
|
2206
|
+
A(k, T({
|
|
2207
|
+
id: s.id,
|
|
2506
2208
|
ref: "content",
|
|
2507
|
-
role:
|
|
2209
|
+
role: s.role,
|
|
2508
2210
|
"data-qa": "dt-popover",
|
|
2509
|
-
"aria-hidden": `${!
|
|
2211
|
+
"aria-hidden": `${!a.isOpen}`,
|
|
2510
2212
|
"aria-labelledby": o.labelledBy,
|
|
2511
|
-
"aria-label":
|
|
2512
|
-
"aria-modal": `${!
|
|
2513
|
-
transition:
|
|
2514
|
-
show:
|
|
2515
|
-
appear:
|
|
2516
|
-
class: ["d-popover__dialog", { "d-popover__dialog--modal":
|
|
2213
|
+
"aria-label": s.ariaLabel,
|
|
2214
|
+
"aria-modal": `${!s.modal}`,
|
|
2215
|
+
transition: s.transition,
|
|
2216
|
+
show: a.isOpen,
|
|
2217
|
+
appear: a.toAppear,
|
|
2218
|
+
class: ["d-popover__dialog", { "d-popover__dialog--modal": s.modal }, s.dialogClass],
|
|
2517
2219
|
style: {
|
|
2518
2220
|
"max-height": o.calculatedMaxHeight,
|
|
2519
|
-
"max-width":
|
|
2221
|
+
"max-width": s.maxWidth
|
|
2520
2222
|
},
|
|
2521
2223
|
css: e.$attrs.css,
|
|
2522
|
-
tabindex:
|
|
2523
|
-
},
|
|
2524
|
-
|
|
2525
|
-
|
|
2224
|
+
tabindex: s.contentTabindex
|
|
2225
|
+
}, j(o.popoverListeners), {
|
|
2226
|
+
onMouseenter: o.onEnterContent,
|
|
2227
|
+
onMouseleave: o.onLeaveContent
|
|
2228
|
+
}), {
|
|
2229
|
+
default: p(() => [
|
|
2230
|
+
a.hasSlotContent(e.$slots.headerContent) || s.showCloseButton ? (n(), h(f, {
|
|
2526
2231
|
key: 0,
|
|
2527
2232
|
ref: "popover__header",
|
|
2528
|
-
class:
|
|
2529
|
-
"content-class":
|
|
2233
|
+
class: u(a.POPOVER_HEADER_FOOTER_PADDING_CLASSES[s.padding]),
|
|
2234
|
+
"content-class": s.headerClass,
|
|
2530
2235
|
type: "header",
|
|
2531
|
-
"show-close-button":
|
|
2532
|
-
"close-button-props":
|
|
2236
|
+
"show-close-button": s.showCloseButton,
|
|
2237
|
+
"close-button-props": s.closeButtonProps,
|
|
2533
2238
|
onClose: o.closePopover
|
|
2534
2239
|
}, {
|
|
2535
|
-
content:
|
|
2536
|
-
|
|
2240
|
+
content: p(() => [
|
|
2241
|
+
c(e.$slots, "headerContent", { close: o.closePopover })
|
|
2537
2242
|
]),
|
|
2538
2243
|
_: 3
|
|
2539
2244
|
}, 8, ["class", "content-class", "show-close-button", "close-button-props", "onClose"])) : d("", !0),
|
|
2540
|
-
|
|
2245
|
+
_("div", {
|
|
2541
2246
|
ref: "popover__content",
|
|
2542
2247
|
"data-qa": "dt-popover-content",
|
|
2543
|
-
class:
|
|
2248
|
+
class: u([
|
|
2544
2249
|
"d-popover__content",
|
|
2545
|
-
|
|
2546
|
-
|
|
2250
|
+
a.POPOVER_PADDING_CLASSES[s.padding],
|
|
2251
|
+
s.contentClass
|
|
2547
2252
|
])
|
|
2548
2253
|
}, [
|
|
2549
|
-
|
|
2254
|
+
c(e.$slots, "content", { close: o.closePopover })
|
|
2550
2255
|
], 2),
|
|
2551
|
-
|
|
2256
|
+
a.hasSlotContent(e.$slots.footerContent) ? (n(), h(f, {
|
|
2552
2257
|
key: 1,
|
|
2553
2258
|
ref: "popover__footer",
|
|
2554
2259
|
type: "footer",
|
|
2555
|
-
class:
|
|
2556
|
-
"content-class":
|
|
2260
|
+
class: u(a.POPOVER_HEADER_FOOTER_PADDING_CLASSES[s.padding]),
|
|
2261
|
+
"content-class": s.footerClass
|
|
2557
2262
|
}, {
|
|
2558
|
-
content:
|
|
2559
|
-
|
|
2263
|
+
content: p(() => [
|
|
2264
|
+
c(e.$slots, "footerContent", { close: o.closePopover })
|
|
2560
2265
|
]),
|
|
2561
2266
|
_: 3
|
|
2562
2267
|
}, 8, ["class", "content-class"])) : d("", !0),
|
|
2563
|
-
e.showVisuallyHiddenClose ? (
|
|
2268
|
+
e.showVisuallyHiddenClose ? (n(), h(g, {
|
|
2564
2269
|
key: 2,
|
|
2565
2270
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
2566
2271
|
onClose: o.closePopover
|
|
2567
2272
|
}, null, 8, ["visually-hidden-close-label", "onClose"])) : d("", !0)
|
|
2568
2273
|
]),
|
|
2569
2274
|
_: 3
|
|
2570
|
-
}, 16, ["id", "role", "aria-hidden", "aria-labelledby", "aria-label", "aria-modal", "transition", "show", "appear", "class", "style", "css", "tabindex"])
|
|
2275
|
+
}, 16, ["id", "role", "aria-hidden", "aria-labelledby", "aria-label", "aria-modal", "transition", "show", "appear", "class", "style", "css", "tabindex", "onMouseenter", "onMouseleave"])
|
|
2571
2276
|
]),
|
|
2572
2277
|
_: 3
|
|
2573
2278
|
}, 8, ["class"]))
|
|
2574
2279
|
]);
|
|
2575
2280
|
}
|
|
2576
|
-
const
|
|
2577
|
-
function
|
|
2578
|
-
return e ===
|
|
2281
|
+
const bt = /* @__PURE__ */ y(tt, [["render", at]]);
|
|
2282
|
+
function B(e) {
|
|
2283
|
+
return e === v.default;
|
|
2579
2284
|
}
|
|
2580
|
-
function
|
|
2581
|
-
if (
|
|
2582
|
-
return
|
|
2583
|
-
if (
|
|
2584
|
-
const { default:
|
|
2585
|
-
return
|
|
2285
|
+
function q(e) {
|
|
2286
|
+
if (w(e) === "string")
|
|
2287
|
+
return B(e) ? null : v[e];
|
|
2288
|
+
if (w(e) === "object") {
|
|
2289
|
+
const { default: t } = e;
|
|
2290
|
+
return B(t) ? null : v[t];
|
|
2586
2291
|
} else
|
|
2587
2292
|
return null;
|
|
2588
2293
|
}
|
|
2589
|
-
function
|
|
2294
|
+
function w(e) {
|
|
2590
2295
|
return typeof e;
|
|
2591
2296
|
}
|
|
2592
|
-
function
|
|
2593
|
-
return
|
|
2297
|
+
function nt(e) {
|
|
2298
|
+
return q(e) ? `d-stack--${v[q(e)]}` : null;
|
|
2594
2299
|
}
|
|
2595
|
-
function
|
|
2596
|
-
return
|
|
2597
|
-
...
|
|
2300
|
+
function it(e) {
|
|
2301
|
+
return w(e) === "object" ? [
|
|
2302
|
+
...G.map((t) => e[t] ? `d-stack--${t}--${e[t]}` : null)
|
|
2598
2303
|
] : null;
|
|
2599
2304
|
}
|
|
2600
|
-
function
|
|
2601
|
-
return
|
|
2305
|
+
function rt(e) {
|
|
2306
|
+
return R.includes(e) ? `d-stack--gap-${e}` : null;
|
|
2602
2307
|
}
|
|
2603
|
-
function
|
|
2604
|
-
if (
|
|
2605
|
-
return Object.keys(
|
|
2606
|
-
if (
|
|
2607
|
-
const { default:
|
|
2608
|
-
return Object.keys(
|
|
2308
|
+
function lt(e) {
|
|
2309
|
+
if (w(e) === "string")
|
|
2310
|
+
return Object.keys(v).includes(e);
|
|
2311
|
+
if (w(e) === "object") {
|
|
2312
|
+
const { default: t } = e;
|
|
2313
|
+
return Object.keys(v).includes(t);
|
|
2609
2314
|
} else
|
|
2610
2315
|
return null;
|
|
2611
2316
|
}
|
|
2612
|
-
function
|
|
2613
|
-
return
|
|
2317
|
+
function dt(e) {
|
|
2318
|
+
return R.includes(e);
|
|
2614
2319
|
}
|
|
2615
|
-
const
|
|
2320
|
+
const ct = {
|
|
2616
2321
|
name: "DtStack",
|
|
2617
2322
|
props: {
|
|
2618
2323
|
/**
|
|
@@ -2626,7 +2331,7 @@ const Tt = {
|
|
|
2626
2331
|
direction: {
|
|
2627
2332
|
type: [String, Object],
|
|
2628
2333
|
default: "column",
|
|
2629
|
-
validator: (e) =>
|
|
2334
|
+
validator: (e) => lt(e)
|
|
2630
2335
|
},
|
|
2631
2336
|
/**
|
|
2632
2337
|
* Set this prop to render stack as a specific HTML element.
|
|
@@ -2642,81 +2347,75 @@ const Tt = {
|
|
|
2642
2347
|
gap: {
|
|
2643
2348
|
type: String,
|
|
2644
2349
|
default: "0",
|
|
2645
|
-
validator: (e) =>
|
|
2350
|
+
validator: (e) => dt(e)
|
|
2646
2351
|
}
|
|
2647
2352
|
},
|
|
2648
2353
|
data() {
|
|
2649
2354
|
return {
|
|
2650
|
-
DT_STACK_DIRECTION:
|
|
2651
|
-
DT_STACK_GAP:
|
|
2652
|
-
DT_STACK_RESPONSIVE_BREAKPOINTS:
|
|
2355
|
+
DT_STACK_DIRECTION: v,
|
|
2356
|
+
DT_STACK_GAP: R,
|
|
2357
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: G
|
|
2653
2358
|
};
|
|
2654
2359
|
},
|
|
2655
2360
|
computed: {
|
|
2656
2361
|
stackGap() {
|
|
2657
|
-
return
|
|
2362
|
+
return rt(this.gap);
|
|
2658
2363
|
},
|
|
2659
2364
|
defaultDirection() {
|
|
2660
|
-
return
|
|
2365
|
+
return nt(this.direction);
|
|
2661
2366
|
},
|
|
2662
2367
|
stackResponsive() {
|
|
2663
|
-
return
|
|
2368
|
+
return it(this.direction);
|
|
2664
2369
|
}
|
|
2665
2370
|
}
|
|
2666
2371
|
};
|
|
2667
|
-
function
|
|
2668
|
-
return
|
|
2669
|
-
class:
|
|
2372
|
+
function ut(e, t, s, i, a, o) {
|
|
2373
|
+
return n(), h(E(s.as), {
|
|
2374
|
+
class: u([
|
|
2670
2375
|
"d-stack",
|
|
2671
2376
|
o.defaultDirection,
|
|
2672
2377
|
o.stackResponsive,
|
|
2673
2378
|
o.stackGap
|
|
2674
2379
|
])
|
|
2675
2380
|
}, {
|
|
2676
|
-
default:
|
|
2677
|
-
|
|
2381
|
+
default: p(() => [
|
|
2382
|
+
c(e.$slots, "default")
|
|
2678
2383
|
]),
|
|
2679
2384
|
_: 3
|
|
2680
2385
|
}, 8, ["class"]);
|
|
2681
2386
|
}
|
|
2682
|
-
const
|
|
2387
|
+
const _t = /* @__PURE__ */ y(ct, [["render", ut]]);
|
|
2683
2388
|
export {
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
C,
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
Ve as g,
|
|
2703
|
-
Ye as h,
|
|
2704
|
-
x as i,
|
|
2705
|
-
G as j,
|
|
2706
|
-
pt as k,
|
|
2707
|
-
V as l,
|
|
2389
|
+
L as A,
|
|
2390
|
+
gt as D,
|
|
2391
|
+
C as L,
|
|
2392
|
+
xe as M,
|
|
2393
|
+
Ze as P,
|
|
2394
|
+
De as S,
|
|
2395
|
+
_t as a,
|
|
2396
|
+
yt as b,
|
|
2397
|
+
mt as c,
|
|
2398
|
+
bt as d,
|
|
2399
|
+
Ae as e,
|
|
2400
|
+
R as f,
|
|
2401
|
+
Ye as g,
|
|
2402
|
+
V as h,
|
|
2403
|
+
pe as i,
|
|
2404
|
+
fe as j,
|
|
2405
|
+
F as k,
|
|
2406
|
+
me as l,
|
|
2708
2407
|
ye as m,
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2408
|
+
z as n,
|
|
2409
|
+
D as o,
|
|
2410
|
+
H as p,
|
|
2411
|
+
Ge as q,
|
|
2412
|
+
Ue as r,
|
|
2413
|
+
$e as s,
|
|
2414
|
+
Xe as t,
|
|
2415
|
+
vt as u,
|
|
2416
|
+
he as v,
|
|
2417
|
+
S as w,
|
|
2418
|
+
re as x,
|
|
2419
|
+
v as y,
|
|
2420
|
+
G as z
|
|
2722
2421
|
};
|