@dialpad/dialtone 9.123.2 → 9.125.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/README.md +12 -5
- package/dist/css/dialtone-default-theme.css +414 -77
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone-docs.json +1 -1
- package/dist/css/dialtone.css +188 -68
- package/dist/css/dialtone.min.css +1 -1
- package/dist/css/svg/spot/playlist.svg +1 -0
- package/dist/css/vue/spot/SpotPlaylist.vue +3 -0
- package/dist/tokens/doc.json +24348 -24348
- package/dist/vue2/common/mixins/index.cjs +1 -1
- package/dist/vue2/common/mixins/index.js +10 -10
- package/dist/vue2/common/mixins/localization.cjs +2 -0
- package/dist/vue2/common/mixins/localization.cjs.map +1 -0
- package/dist/vue2/common/mixins/localization.js +10 -0
- package/dist/vue2/common/mixins/localization.js.map +1 -0
- package/dist/vue2/common/utils/index.cjs +1 -1
- package/dist/vue2/common/utils/index.cjs.map +1 -1
- package/dist/vue2/common/utils/index.js +43 -39
- package/dist/vue2/common/utils/index.js.map +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +341 -340
- package/dist/vue2/dialtone-vue.js.map +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +61 -86
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
- package/dist/vue2/lib/banner/banner.cjs +2 -2
- package/dist/vue2/lib/banner/banner.cjs.map +1 -1
- package/dist/vue2/lib/banner/banner.js +25 -33
- package/dist/vue2/lib/banner/banner.js.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +14 -12
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/vue2/lib/button/button.cjs +1 -1
- package/dist/vue2/lib/button/button.cjs.map +1 -1
- package/dist/vue2/lib/button/button.js +11 -9
- package/dist/vue2/lib/button/button.js.map +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +19 -25
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +18 -21
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/vue2/lib/chip/chip.cjs +1 -1
- package/dist/vue2/lib/chip/chip.cjs.map +1 -1
- package/dist/vue2/lib/chip/chip.js +24 -29
- package/dist/vue2/lib/chip/chip.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.cjs +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.js +2 -2
- package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox.cjs +2 -2
- package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox.js +12 -12
- package/dist/vue2/lib/combobox/combobox.js.map +1 -1
- package/dist/vue2/lib/combobox/index.cjs +1 -1
- package/dist/vue2/lib/combobox/index.js +3 -3
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +19 -20
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +22 -24
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +40 -36
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.js +11 -25
- package/dist/vue2/lib/contact-row/contact-row.js.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.cjs +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.js +2 -3
- package/dist/vue2/lib/datepicker/datepicker-constants.js.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
- package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker.js +143 -229
- package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
- package/dist/vue2/lib/datepicker/utils.cjs +1 -1
- package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/utils.js +12 -11
- package/dist/vue2/lib/datepicker/utils.js.map +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
- package/dist/vue2/lib/description-list/description-list.js +8 -8
- package/dist/vue2/lib/description-list/description-list.js.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.js +48 -50
- package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
- package/dist/vue2/lib/editor/editor.cjs +1 -1
- package/dist/vue2/lib/editor/editor.cjs.map +1 -1
- package/dist/vue2/lib/editor/editor.js +78 -87
- package/dist/vue2/lib/editor/editor.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js +6 -19
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.js +106 -145
- package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/index.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/index.js +6 -7
- package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row-constants.js +5 -7
- package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.js +31 -22
- package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +20 -22
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
- package/dist/vue2/lib/general-row/general-row.js +63 -52
- package/dist/vue2/lib/general-row/general-row.js.map +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
- package/dist/vue2/lib/group-row/group-row.js +43 -32
- package/dist/vue2/lib/group-row/group-row.js.map +1 -1
- package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
- package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
- package/dist/vue2/lib/icon/icon.cjs +1 -1
- package/dist/vue2/lib/icon/icon.cjs.map +1 -1
- package/dist/vue2/lib/icon/icon.js +12 -8
- package/dist/vue2/lib/icon/icon.js.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.js +30 -31
- package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.js +24 -24
- package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.js +38 -36
- package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input-link.js +48 -23
- package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.js +50 -22
- package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input.js +112 -143
- package/dist/vue2/lib/message-input/message-input.js.map +1 -1
- package/dist/vue2/lib/modal/modal.cjs +1 -2
- package/dist/vue2/lib/modal/modal.cjs.map +1 -1
- package/dist/vue2/lib/modal/modal.js +25 -42
- package/dist/vue2/lib/modal/modal.js.map +1 -1
- package/dist/vue2/lib/notice/notice-action.cjs +1 -1
- package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
- package/dist/vue2/lib/notice/notice-action.js +19 -26
- package/dist/vue2/lib/notice/notice-action.js.map +1 -1
- package/dist/vue2/lib/notice/notice.cjs +1 -1
- package/dist/vue2/lib/notice/notice.cjs.map +1 -1
- package/dist/vue2/lib/notice/notice.js +18 -27
- package/dist/vue2/lib/notice/notice.js.map +1 -1
- package/dist/vue2/lib/pagination/pagination.cjs +1 -1
- package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
- package/dist/vue2/lib/pagination/pagination.js +49 -58
- package/dist/vue2/lib/pagination/pagination.js.map +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.js +24 -26
- package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
- package/dist/vue2/lib/popover/popover.cjs +1 -1
- package/dist/vue2/lib/popover/popover.cjs.map +1 -1
- package/dist/vue2/lib/popover/popover.js +26 -35
- package/dist/vue2/lib/popover/popover.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +5 -5
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +330 -320
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.cjs.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.js.map +1 -1
- package/dist/vue2/lib/toast/toast.cjs +1 -1
- package/dist/vue2/lib/toast/toast.cjs.map +1 -1
- package/dist/vue2/lib/toast/toast.js +64 -97
- package/dist/vue2/lib/toast/toast.js.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.js +27 -18
- package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/vue2/localization/en-US.cjs +185 -0
- package/dist/vue2/localization/en-US.cjs.map +1 -0
- package/dist/vue2/localization/en-US.js +188 -0
- package/dist/vue2/localization/en-US.js.map +1 -0
- package/dist/vue2/localization/es-LA.cjs +169 -0
- package/dist/vue2/localization/es-LA.cjs.map +1 -0
- package/dist/vue2/localization/es-LA.js +172 -0
- package/dist/vue2/localization/es-LA.js.map +1 -0
- package/dist/vue2/localization/index.cjs +1176 -0
- package/dist/vue2/localization/index.cjs.map +1 -0
- package/dist/vue2/localization/index.js +1239 -0
- package/dist/vue2/localization/index.js.map +1 -0
- package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
- package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
- package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
- package/dist/vue2/shared/sr_only_close_button.js +19 -22
- package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
- package/dist/vue2/types/common/mixins/index.d.ts +1 -1
- package/dist/vue2/types/common/mixins/localization.d.ts +8 -0
- package/dist/vue2/types/common/mixins/localization.d.ts.map +1 -0
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +7 -13
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/vue2/types/common/utils/index.d.ts +1 -0
- package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
- package/dist/vue2/types/components/banner/banner.vue.d.ts +0 -33
- package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +5 -1
- package/dist/vue2/types/components/button/button.vue.d.ts +6 -2
- package/dist/vue2/types/components/chip/chip.vue.d.ts +8 -18
- package/dist/vue2/types/components/combobox/combobox_constants.d.ts +2 -2
- package/dist/vue2/types/components/combobox/index.d.ts +1 -1
- package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts +0 -1
- package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +5 -17
- package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +8 -48
- package/dist/vue2/types/components/datepicker/utils.d.ts +1 -0
- package/dist/vue2/types/components/datepicker/utils.d.ts.map +1 -1
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +0 -24
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +5 -1
- package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
- package/dist/vue2/types/components/icon/icon.vue.d.ts +1 -0
- package/dist/vue2/types/components/icon/icon_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +5 -8
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/modal/modal.vue.d.ts +3 -33
- package/dist/vue2/types/components/notice/notice.vue.d.ts +1 -34
- package/dist/vue2/types/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts +3 -31
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts +9 -26
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover.vue.d.ts +0 -33
- package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +8 -11
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -2
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -43
- package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
- package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/toast.vue.d.ts +3 -111
- package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +1 -0
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -13
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +7 -12
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +8 -10
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -25
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +5 -41
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +8 -26
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +20 -61
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +9 -12
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +8 -2
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -90
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +14 -2
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +14 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +10 -11
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +21 -37
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +9 -18
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +7 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +3 -2
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/package.json +4 -3
- package/dist/vue2/common/mixins/sr-only-close-button.cjs +0 -3
- package/dist/vue2/common/mixins/sr-only-close-button.cjs.map +0 -1
- package/dist/vue2/common/mixins/sr-only-close-button.js +0 -44
- package/dist/vue2/common/mixins/sr-only-close-button.js.map +0 -1
- package/dist/vue2/lib/contact-row/contact-row-constants.cjs +0 -2
- package/dist/vue2/lib/contact-row/contact-row-constants.cjs.map +0 -1
- package/dist/vue2/lib/contact-row/contact-row-constants.js +0 -5
- package/dist/vue2/lib/contact-row/contact-row-constants.js.map +0 -1
- package/dist/vue2/lib/emoji/emoji-constants.cjs +0 -2
- package/dist/vue2/lib/emoji/emoji-constants.cjs.map +0 -1
- package/dist/vue2/lib/emoji/emoji-constants.js +0 -5
- package/dist/vue2/lib/emoji/emoji-constants.js.map +0 -1
- package/dist/vue2/lib/group-row/group-row-constants.cjs +0 -2
- package/dist/vue2/lib/group-row/group-row-constants.cjs.map +0 -1
- package/dist/vue2/lib/group-row/group-row-constants.js +0 -8
- package/dist/vue2/lib/group-row/group-row-constants.js.map +0 -1
- package/dist/vue2/lib/time-pill/time-pill-constants.cjs +0 -2
- package/dist/vue2/lib/time-pill/time-pill-constants.cjs.map +0 -1
- package/dist/vue2/lib/time-pill/time-pill-constants.js +0 -8
- package/dist/vue2/lib/time-pill/time-pill-constants.js.map +0 -1
- package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts +0 -30
- package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
- package/dist/vue2/types/components/emoji/emoji_constants.d.ts +0 -3
- package/dist/vue2/types/components/emoji/emoji_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
- package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
- package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
|
@@ -1,48 +1,26 @@
|
|
|
1
|
-
import { DtIconChevronLeft as
|
|
2
|
-
import { getMonth as
|
|
3
|
-
import { getCalendarDays as
|
|
4
|
-
import { INTL_MONTH_FORMAT as
|
|
5
|
-
import u from "../stack/stack.js";
|
|
6
|
-
import T from "../tooltip/tooltip.js";
|
|
7
|
-
import d from "../button/button.js";
|
|
1
|
+
import { DtIconChevronLeft as D, DtIconChevronsLeft as _, DtIconChevronRight as y, DtIconChevronsRight as m } from "@dialpad/dialtone-icons/vue2";
|
|
2
|
+
import { getMonth as o, getYear as l, getDate as k, set as $, addMonths as v, subMonths as R } from "date-fns";
|
|
3
|
+
import { getCalendarDays as E, formatMonth as b, getWeekDayNames as T, formatDate as g, calculateNextFocusDate as A, calculatePrevFocusDate as M } from "./utils.js";
|
|
4
|
+
import { INTL_MONTH_FORMAT as d, WEEK_START as C } from "./datepicker-constants.js";
|
|
8
5
|
import { n as h } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
|
|
9
|
-
import
|
|
10
|
-
|
|
6
|
+
import u from "../button/button.js";
|
|
7
|
+
import P from "../tooltip/tooltip.js";
|
|
8
|
+
import f from "../stack/stack.js";
|
|
9
|
+
import p from "../../common/mixins/localization.js";
|
|
10
|
+
import { warnIfUnmounted as x } from "../../common/utils/index.js";
|
|
11
|
+
const I = {
|
|
11
12
|
name: "DtDatepickerMonthYearPicker",
|
|
12
13
|
components: {
|
|
13
|
-
DtButton:
|
|
14
|
-
DtTooltip:
|
|
15
|
-
DtStack:
|
|
16
|
-
DtIconChevronLeft:
|
|
17
|
-
DtIconChevronsLeft:
|
|
14
|
+
DtButton: u,
|
|
15
|
+
DtTooltip: P,
|
|
16
|
+
DtStack: f,
|
|
17
|
+
DtIconChevronLeft: D,
|
|
18
|
+
DtIconChevronsLeft: _,
|
|
18
19
|
DtIconChevronRight: y,
|
|
19
20
|
DtIconChevronsRight: m
|
|
20
21
|
},
|
|
22
|
+
mixins: [p],
|
|
21
23
|
props: {
|
|
22
|
-
locale: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: !0
|
|
25
|
-
},
|
|
26
|
-
prevMonthLabel: {
|
|
27
|
-
type: String,
|
|
28
|
-
required: !0
|
|
29
|
-
},
|
|
30
|
-
nextMonthLabel: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: !0
|
|
33
|
-
},
|
|
34
|
-
prevYearLabel: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: !0
|
|
37
|
-
},
|
|
38
|
-
nextYearLabel: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: !0
|
|
41
|
-
},
|
|
42
|
-
changeToLabel: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: !0
|
|
45
|
-
},
|
|
46
24
|
selectedDate: {
|
|
47
25
|
type: Date,
|
|
48
26
|
required: !0
|
|
@@ -77,7 +55,7 @@ const P = {
|
|
|
77
55
|
],
|
|
78
56
|
data() {
|
|
79
57
|
return {
|
|
80
|
-
selectMonth:
|
|
58
|
+
selectMonth: o(this.selectedDate),
|
|
81
59
|
selectYear: l(this.selectedDate),
|
|
82
60
|
highlightedDay: null,
|
|
83
61
|
focusPicker: 0,
|
|
@@ -88,10 +66,22 @@ const P = {
|
|
|
88
66
|
computed: {
|
|
89
67
|
// Get days for the currently selected month and year and highlight the selected day
|
|
90
68
|
calendarDays() {
|
|
91
|
-
return
|
|
69
|
+
return E(this.selectMonth, this.selectYear, this.highlightedDay);
|
|
92
70
|
},
|
|
93
71
|
formattedMonth() {
|
|
94
|
-
return (
|
|
72
|
+
return (s) => b(s, d, this.i18n.currentLocale);
|
|
73
|
+
},
|
|
74
|
+
previousYearAriaLabel() {
|
|
75
|
+
return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_YEAR")} ${this.selectYear - 1}`;
|
|
76
|
+
},
|
|
77
|
+
previousMonthAriaLabel() {
|
|
78
|
+
return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_MONTH")} ${this.formattedMonth(this.selectMonth - 1)}`;
|
|
79
|
+
},
|
|
80
|
+
nextYearAriaLabel() {
|
|
81
|
+
return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_NEXT_YEAR")} ${this.selectYear + 1}`;
|
|
82
|
+
},
|
|
83
|
+
nextMonthAriaLabel() {
|
|
84
|
+
return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_NEXT_MONTH")} ${this.formattedMonth(this.selectMonth + 1)}`;
|
|
95
85
|
}
|
|
96
86
|
},
|
|
97
87
|
watch: {
|
|
@@ -113,24 +103,24 @@ const P = {
|
|
|
113
103
|
},
|
|
114
104
|
methods: {
|
|
115
105
|
setButtonsRef() {
|
|
116
|
-
this.focusRefs = this.refNames.map((
|
|
106
|
+
this.focusRefs = this.refNames.map((s) => this.$refs[s]);
|
|
117
107
|
},
|
|
118
108
|
focusMonthYearPicker() {
|
|
119
109
|
this.focusPicker = 0, this.focusRefs[0].$el.focus();
|
|
120
110
|
},
|
|
121
|
-
handleKeyDown(
|
|
122
|
-
switch (
|
|
111
|
+
handleKeyDown(s) {
|
|
112
|
+
switch (s.key) {
|
|
123
113
|
case "ArrowLeft":
|
|
124
|
-
|
|
114
|
+
s.preventDefault(), this.focusPicker === 0 ? (this.focusPicker = 3, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker--, this.focusRefs[this.focusPicker].$el.focus());
|
|
125
115
|
break;
|
|
126
116
|
case "ArrowRight":
|
|
127
|
-
|
|
117
|
+
s.preventDefault(), this.focusPicker === 3 ? (this.focusPicker = 0, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker++, this.focusRefs[this.focusPicker].$el.focus());
|
|
128
118
|
break;
|
|
129
119
|
case "ArrowDown":
|
|
130
|
-
|
|
120
|
+
s.preventDefault(), this.$emit("focus-first-day");
|
|
131
121
|
break;
|
|
132
122
|
case "Tab":
|
|
133
|
-
|
|
123
|
+
s.preventDefault(), this.$emit("focus-first-day");
|
|
134
124
|
break;
|
|
135
125
|
case "Escape":
|
|
136
126
|
this.$emit("close-datepicker");
|
|
@@ -138,16 +128,16 @@ const P = {
|
|
|
138
128
|
}
|
|
139
129
|
},
|
|
140
130
|
highlightDay() {
|
|
141
|
-
const
|
|
142
|
-
|
|
131
|
+
const s = l(this.selectedDate), t = o(this.selectedDate);
|
|
132
|
+
s !== this.selectYear || t !== this.selectMonth ? this.highlightedDay = null : this.highlightedDay = k(this.selectedDate);
|
|
143
133
|
},
|
|
144
|
-
changeMonth(
|
|
145
|
-
(this.selectMonth === 0 &&
|
|
146
|
-
const
|
|
147
|
-
this.selectMonth =
|
|
134
|
+
changeMonth(s) {
|
|
135
|
+
(this.selectMonth === 0 && s === -1 || this.selectMonth === 11 && s === 1) && (this.selectYear += s);
|
|
136
|
+
const t = $(this.selectedDate, { month: this.selectMonth, year: this.selectYear }), e = s === 1 ? v(t, 1) : R(t, 1);
|
|
137
|
+
this.selectMonth = o(e);
|
|
148
138
|
},
|
|
149
|
-
changeYear(
|
|
150
|
-
this.selectYear = this.selectYear +
|
|
139
|
+
changeYear(s) {
|
|
140
|
+
this.selectYear = this.selectYear + s;
|
|
151
141
|
},
|
|
152
142
|
goToNextMonth() {
|
|
153
143
|
this.changeMonth(1);
|
|
@@ -157,53 +147,46 @@ const P = {
|
|
|
157
147
|
}
|
|
158
148
|
}
|
|
159
149
|
};
|
|
160
|
-
var
|
|
161
|
-
var
|
|
162
|
-
return
|
|
163
|
-
return [
|
|
164
|
-
return
|
|
165
|
-
}, keydown: function(
|
|
166
|
-
return
|
|
167
|
-
} } }, [
|
|
168
|
-
}, proxy: !0 }]) }),
|
|
169
|
-
return [
|
|
170
|
-
return
|
|
171
|
-
}, keydown: function(
|
|
172
|
-
return
|
|
173
|
-
} } }, [
|
|
174
|
-
}, proxy: !0 }]) })], 1),
|
|
175
|
-
return [
|
|
176
|
-
return
|
|
177
|
-
}, keydown: function(
|
|
178
|
-
return
|
|
179
|
-
} } }, [
|
|
180
|
-
}, proxy: !0 }]) }),
|
|
181
|
-
return [
|
|
182
|
-
return
|
|
183
|
-
}, keydown: function(
|
|
184
|
-
return
|
|
185
|
-
} } }, [
|
|
150
|
+
var N = function() {
|
|
151
|
+
var t = this, e = t._self._c;
|
|
152
|
+
return e("dt-stack", { staticClass: "d-datepicker__month-year", attrs: { direction: "row", gap: "300" } }, [e("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [e("dt-tooltip", { attrs: { "fallback-placements": ["top-start", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_YEAR"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
|
|
153
|
+
return [e("dt-button", { ref: t.refNames[0], staticClass: "d-datepicker__nav-btn", attrs: { id: "prevYearButton", "aria-label": t.previousYearAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
|
|
154
|
+
return t.changeYear(-1);
|
|
155
|
+
}, keydown: function(a) {
|
|
156
|
+
return t.handleKeyDown(a);
|
|
157
|
+
} } }, [e("dt-icon-chevrons-left", { attrs: { size: "200" } })], 1)];
|
|
158
|
+
}, proxy: !0 }]) }), e("dt-tooltip", { attrs: { "fallback-placements": ["top-start", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_MONTH"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
|
|
159
|
+
return [e("dt-button", { ref: t.refNames[1], staticClass: "d-datepicker__nav-btn", attrs: { id: "prevMonthButton", "aria-label": t.previousMonthAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
|
|
160
|
+
return t.changeMonth(-1);
|
|
161
|
+
}, keydown: function(a) {
|
|
162
|
+
return t.handleKeyDown(a);
|
|
163
|
+
} } }, [e("dt-icon-chevron-left", { attrs: { size: "200" } })], 1)];
|
|
164
|
+
}, proxy: !0 }]) })], 1), e("div", { staticClass: "d-datepicker__month-year-title", attrs: { id: "calendar-heading" } }, [t._v(" " + t._s(t.formattedMonth(t.selectMonth)) + " " + t._s(t.selectYear) + " ")]), e("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [e("dt-tooltip", { attrs: { "fallback-placements": ["top-end", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_NEXT_MONTH"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
|
|
165
|
+
return [e("dt-button", { ref: t.refNames[2], staticClass: "d-datepicker__nav-btn", attrs: { id: "nextMonthButton", "aria-label": t.nextMonthAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
|
|
166
|
+
return t.changeMonth(1);
|
|
167
|
+
}, keydown: function(a) {
|
|
168
|
+
return t.handleKeyDown(a);
|
|
169
|
+
} } }, [e("dt-icon-chevron-right", { attrs: { size: "200" } })], 1)];
|
|
170
|
+
}, proxy: !0 }]) }), e("dt-tooltip", { attrs: { "fallback-placements": ["top-end", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_NEXT_YEAR"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
|
|
171
|
+
return [e("dt-button", { ref: t.refNames[3], staticClass: "d-datepicker__nav-btn", attrs: { id: "nextYearButton", "aria-label": t.nextYearAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
|
|
172
|
+
return t.changeYear(1);
|
|
173
|
+
}, keydown: function(a) {
|
|
174
|
+
return t.handleKeyDown(a);
|
|
175
|
+
} } }, [e("dt-icon-chevrons-right", { attrs: { size: "200" } })], 1)];
|
|
186
176
|
}, proxy: !0 }]) })], 1)], 1);
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
177
|
+
}, Y = [], L = /* @__PURE__ */ h(
|
|
178
|
+
I,
|
|
179
|
+
N,
|
|
180
|
+
Y
|
|
191
181
|
);
|
|
192
|
-
const
|
|
182
|
+
const w = L.exports, O = {
|
|
193
183
|
name: "DtDatepickerCalendar",
|
|
194
|
-
components: { DtButton:
|
|
184
|
+
components: { DtButton: u },
|
|
185
|
+
mixins: [p],
|
|
195
186
|
props: {
|
|
196
187
|
calendarDays: {
|
|
197
188
|
type: Array,
|
|
198
189
|
required: !0
|
|
199
|
-
},
|
|
200
|
-
locale: {
|
|
201
|
-
type: String,
|
|
202
|
-
required: !0
|
|
203
|
-
},
|
|
204
|
-
selectDayLabel: {
|
|
205
|
-
type: String,
|
|
206
|
-
required: !0
|
|
207
190
|
}
|
|
208
191
|
},
|
|
209
192
|
emits: [
|
|
@@ -237,7 +220,7 @@ const F = A.exports, N = {
|
|
|
237
220
|
},
|
|
238
221
|
computed: {
|
|
239
222
|
weekDays() {
|
|
240
|
-
return
|
|
223
|
+
return T(this.i18n.currentLocale, C);
|
|
241
224
|
}
|
|
242
225
|
},
|
|
243
226
|
watch: {
|
|
@@ -248,53 +231,53 @@ const F = A.exports, N = {
|
|
|
248
231
|
}
|
|
249
232
|
},
|
|
250
233
|
methods: {
|
|
251
|
-
dayAriaLabel(
|
|
252
|
-
return
|
|
234
|
+
dayAriaLabel(s) {
|
|
235
|
+
return this.i18n.$t("DIALTONE_DATEPICKER_SELECT_DAY") + ` ${g(s.value, d, this.i18n.currentLocale)}`;
|
|
253
236
|
},
|
|
254
|
-
setDayRef(
|
|
255
|
-
this.calendarDays.forEach((
|
|
256
|
-
|
|
257
|
-
const
|
|
237
|
+
setDayRef(s, t) {
|
|
238
|
+
this.calendarDays.forEach((e, a) => {
|
|
239
|
+
e.days.forEach((n, r) => {
|
|
240
|
+
const i = `buttonRef_${a}_${r}`, c = this.$refs[i];
|
|
258
241
|
c && n.currentMonth && this.daysRef.push({ el: c[0], day: n });
|
|
259
242
|
});
|
|
260
243
|
});
|
|
261
244
|
},
|
|
262
|
-
handleKeyDown(
|
|
263
|
-
switch (
|
|
245
|
+
handleKeyDown(s) {
|
|
246
|
+
switch (s.key) {
|
|
264
247
|
case "ArrowUp":
|
|
265
|
-
|
|
248
|
+
s.preventDefault(), this.focusDay -= 7;
|
|
266
249
|
try {
|
|
267
250
|
this.daysRef[this.focusDay].el.$el.focus();
|
|
268
251
|
} catch {
|
|
269
|
-
const
|
|
252
|
+
const e = M(this.daysRef[this.focusDay + 7].day.value);
|
|
270
253
|
this.$emit("go-to-prev-month"), this.$nextTick(() => {
|
|
271
|
-
this.setDayRef(), this.daysRef[
|
|
254
|
+
this.setDayRef(), this.daysRef[e - 1].el.$el.focus(), this.focusDay += e - 1;
|
|
272
255
|
});
|
|
273
256
|
}
|
|
274
257
|
break;
|
|
275
258
|
case "ArrowDown":
|
|
276
|
-
|
|
259
|
+
s.preventDefault(), this.focusDay += 7;
|
|
277
260
|
try {
|
|
278
261
|
this.daysRef[this.focusDay].el.$el.focus();
|
|
279
262
|
} catch {
|
|
280
|
-
const
|
|
263
|
+
const e = A(this.daysRef[this.focusDay - 7].day.value);
|
|
281
264
|
this.$emit("go-to-next-month"), this.$nextTick(() => {
|
|
282
|
-
this.setDayRef(), this.daysRef[
|
|
265
|
+
this.setDayRef(), this.daysRef[e - 1].el.$el.focus(), this.focusDay += e - 1;
|
|
283
266
|
});
|
|
284
267
|
}
|
|
285
268
|
break;
|
|
286
269
|
case "ArrowLeft":
|
|
287
|
-
|
|
270
|
+
s.preventDefault(), this.focusDay > 0 ? (this.focusDay -= 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-prev-month"), this.$nextTick(() => {
|
|
288
271
|
this.focusLastDay();
|
|
289
272
|
}));
|
|
290
273
|
break;
|
|
291
274
|
case "ArrowRight":
|
|
292
|
-
|
|
275
|
+
s.preventDefault(), this.focusDay < this.daysRef.length - 1 ? (this.focusDay += 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-next-month"), this.$nextTick(() => {
|
|
293
276
|
this.focusFirstDay();
|
|
294
277
|
}));
|
|
295
278
|
break;
|
|
296
279
|
case "Tab":
|
|
297
|
-
|
|
280
|
+
s.preventDefault(), this.$emit("focus-month-year-picker");
|
|
298
281
|
break;
|
|
299
282
|
case "Escape":
|
|
300
283
|
this.$emit("close-datepicker");
|
|
@@ -311,105 +294,36 @@ const F = A.exports, N = {
|
|
|
311
294
|
this.focusDay = this.daysRef.length - 1, this.daysRef[this.focusDay].el.$el.focus();
|
|
312
295
|
});
|
|
313
296
|
},
|
|
314
|
-
selectDay(
|
|
315
|
-
|
|
297
|
+
selectDay(s) {
|
|
298
|
+
s.currentMonth && (this.selectedDay = s.text, this.$emit("select-date", s.value));
|
|
316
299
|
}
|
|
317
300
|
}
|
|
318
301
|
};
|
|
319
|
-
var
|
|
320
|
-
var
|
|
321
|
-
return
|
|
322
|
-
return
|
|
323
|
-
}), 0)]),
|
|
324
|
-
return
|
|
325
|
-
return
|
|
302
|
+
var K = function() {
|
|
303
|
+
var t = this, e = t._self._c;
|
|
304
|
+
return e("table", { staticClass: "d-datepicker__calendar", attrs: { "aria-labelledby": "calendar-heading" } }, [e("thead", [e("tr", t._l(t.weekDays, function(a) {
|
|
305
|
+
return e("th", { key: a, staticClass: "d-datepicker__cell d-datepicker__cell--header", attrs: { scope: "col" } }, [e("span", { staticClass: "d-datepicker__weekday", attrs: { title: a, "aria-label": a } }, [t._v(" " + t._s(a))])]);
|
|
306
|
+
}), 0)]), e("tbody", t._l(t.calendarDays, function(a, n) {
|
|
307
|
+
return e("tr", { key: n }, t._l(a.days, function(r, i) {
|
|
308
|
+
return e("td", { key: n + i, staticClass: "d-datepicker__cell", attrs: { role: "listbox" } }, [e("dt-button", { ref: `buttonRef_${n}_${i}`, refInFor: !0, staticClass: "d-datepicker__day", class: {
|
|
326
309
|
"d-datepicker__day--disabled": !r.currentMonth,
|
|
327
|
-
"d-datepicker__day--selected":
|
|
328
|
-
}, attrs: { circle: !0, size: "sm", importance: "clear", disabled: !r.currentMonth, type: "button", "aria-selected":
|
|
329
|
-
return
|
|
310
|
+
"d-datepicker__day--selected": t.selectedDay ? r.text === t.selectedDay && r.currentMonth : r.selected
|
|
311
|
+
}, attrs: { circle: !0, size: "sm", importance: "clear", disabled: !r.currentMonth, type: "button", "aria-selected": t.selectedDay ? r.text === t.selectedDay && r.currentMonth : r.selected, "aria-label": t.dayAriaLabel(r), role: "option" }, on: { click: function(c) {
|
|
312
|
+
return t.selectDay(r);
|
|
330
313
|
}, keydown: function(c) {
|
|
331
|
-
return
|
|
332
|
-
} } }, [
|
|
314
|
+
return t.handleKeyDown(c);
|
|
315
|
+
} } }, [t._v(" " + t._s(r.text) + " ")])], 1);
|
|
333
316
|
}), 0);
|
|
334
317
|
}), 0)]);
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
318
|
+
}, B = [], F = /* @__PURE__ */ h(
|
|
319
|
+
O,
|
|
320
|
+
K,
|
|
321
|
+
B
|
|
339
322
|
);
|
|
340
|
-
const
|
|
323
|
+
const z = F.exports, S = {
|
|
341
324
|
name: "DtDatepicker",
|
|
342
|
-
components: { DtStack:
|
|
325
|
+
components: { DtStack: f, MonthYearPicker: w, Calendar: z },
|
|
343
326
|
props: {
|
|
344
|
-
/**
|
|
345
|
-
* Label for the previous month button
|
|
346
|
-
*
|
|
347
|
-
* @type {String}
|
|
348
|
-
* @example 'Previous month'
|
|
349
|
-
*/
|
|
350
|
-
prevMonthLabel: {
|
|
351
|
-
type: String,
|
|
352
|
-
required: !0
|
|
353
|
-
},
|
|
354
|
-
/**
|
|
355
|
-
* Label for the next month button
|
|
356
|
-
*
|
|
357
|
-
* @type {String}
|
|
358
|
-
* @example 'Next month'
|
|
359
|
-
*/
|
|
360
|
-
nextMonthLabel: {
|
|
361
|
-
type: String,
|
|
362
|
-
required: !0
|
|
363
|
-
},
|
|
364
|
-
/**
|
|
365
|
-
* Label for the previous year button
|
|
366
|
-
*
|
|
367
|
-
* @type {String}
|
|
368
|
-
* @example 'Previous year'
|
|
369
|
-
*/
|
|
370
|
-
prevYearLabel: {
|
|
371
|
-
type: String,
|
|
372
|
-
required: !0
|
|
373
|
-
},
|
|
374
|
-
/**
|
|
375
|
-
* Label for the next year button
|
|
376
|
-
*
|
|
377
|
-
* @type {String}
|
|
378
|
-
* @example 'Next year'
|
|
379
|
-
*/
|
|
380
|
-
nextYearLabel: {
|
|
381
|
-
type: String,
|
|
382
|
-
required: !0
|
|
383
|
-
},
|
|
384
|
-
/**
|
|
385
|
-
* Label for the select day button
|
|
386
|
-
*
|
|
387
|
-
* @type {String}
|
|
388
|
-
* @example 'Select day'
|
|
389
|
-
*/
|
|
390
|
-
selectDayLabel: {
|
|
391
|
-
type: String,
|
|
392
|
-
required: !0
|
|
393
|
-
},
|
|
394
|
-
/**
|
|
395
|
-
* Label for the change to button
|
|
396
|
-
*
|
|
397
|
-
* @type {String}
|
|
398
|
-
* @example 'Change to'
|
|
399
|
-
*/
|
|
400
|
-
changeToLabel: {
|
|
401
|
-
type: String,
|
|
402
|
-
required: !0
|
|
403
|
-
},
|
|
404
|
-
/**
|
|
405
|
-
* Locale for the calendar
|
|
406
|
-
*
|
|
407
|
-
* @type {String}
|
|
408
|
-
*/
|
|
409
|
-
locale: {
|
|
410
|
-
type: String,
|
|
411
|
-
default: "en-US"
|
|
412
|
-
},
|
|
413
327
|
/**
|
|
414
328
|
* Selected date
|
|
415
329
|
*
|
|
@@ -441,40 +355,40 @@ const I = K.exports, E = {
|
|
|
441
355
|
};
|
|
442
356
|
},
|
|
443
357
|
mounted() {
|
|
444
|
-
|
|
358
|
+
x(this.$el, this.$options.name);
|
|
445
359
|
},
|
|
446
360
|
methods: {
|
|
447
|
-
updateCalendarDays(
|
|
448
|
-
this.calendarDays =
|
|
361
|
+
updateCalendarDays(s) {
|
|
362
|
+
this.calendarDays = s;
|
|
449
363
|
}
|
|
450
364
|
}
|
|
451
365
|
};
|
|
452
|
-
var
|
|
453
|
-
var
|
|
454
|
-
return
|
|
455
|
-
return
|
|
456
|
-
}, "focus-last-day": function(
|
|
457
|
-
return
|
|
458
|
-
}, "close-datepicker": function(
|
|
459
|
-
return
|
|
460
|
-
} } })], 1),
|
|
461
|
-
return
|
|
462
|
-
}, "focus-month-year-picker": function(
|
|
463
|
-
return
|
|
464
|
-
}, "close-datepicker": function(
|
|
465
|
-
return
|
|
466
|
-
}, "go-to-next-month": function(
|
|
467
|
-
return
|
|
468
|
-
}, "go-to-prev-month": function(
|
|
469
|
-
return
|
|
366
|
+
var H = function() {
|
|
367
|
+
var t = this, e = t._self._c;
|
|
368
|
+
return e("dt-stack", { staticClass: "d-datepicker", attrs: { gap: "400" } }, [e("div", { staticClass: "d-datepicker__hd" }, [e("month-year-picker", { ref: "monthYearPicker", attrs: { "selected-date": t.selectedDate }, on: { "calendar-days": t.updateCalendarDays, "focus-first-day": function(a) {
|
|
369
|
+
return t.$refs.calendar.focusFirstDay();
|
|
370
|
+
}, "focus-last-day": function(a) {
|
|
371
|
+
return t.$refs.calendar.focusLastDay();
|
|
372
|
+
}, "close-datepicker": function(a) {
|
|
373
|
+
return t.$emit("close-datepicker");
|
|
374
|
+
} } })], 1), e("div", { staticClass: "d-datepicker__bd" }, [e("calendar", { ref: "calendar", attrs: { "calendar-days": t.calendarDays }, on: { "select-date": function(a) {
|
|
375
|
+
return t.$emit("selected-date", a);
|
|
376
|
+
}, "focus-month-year-picker": function(a) {
|
|
377
|
+
return t.$refs.monthYearPicker.focusMonthYearPicker();
|
|
378
|
+
}, "close-datepicker": function(a) {
|
|
379
|
+
return t.$emit("close-datepicker");
|
|
380
|
+
}, "go-to-next-month": function(a) {
|
|
381
|
+
return t.$refs.monthYearPicker.goToNextMonth();
|
|
382
|
+
}, "go-to-prev-month": function(a) {
|
|
383
|
+
return t.$refs.monthYearPicker.goToPrevMonth();
|
|
470
384
|
} } })], 1)]);
|
|
471
|
-
}, U = [],
|
|
472
|
-
|
|
473
|
-
|
|
385
|
+
}, U = [], G = /* @__PURE__ */ h(
|
|
386
|
+
S,
|
|
387
|
+
H,
|
|
474
388
|
U
|
|
475
389
|
);
|
|
476
|
-
const
|
|
390
|
+
const st = G.exports;
|
|
477
391
|
export {
|
|
478
|
-
|
|
392
|
+
st as default
|
|
479
393
|
};
|
|
480
394
|
//# sourceMappingURL=datepicker.js.map
|