@dialpad/dialtone-vue 4.10.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combobox-DP8tbe6x.js → Combobox-BKj61IcR.js} +5 -5
- package/dist/{Combobox-DP8tbe6x.js.map → Combobox-BKj61IcR.js.map} +1 -1
- package/dist/Combobox-BOGcBq-6.cjs +3 -0
- package/dist/{Combobox-DdBIRmeH.cjs.map → Combobox-BOGcBq-6.cjs.map} +1 -1
- package/dist/{Datepicker-CNFVUyyK.js → Datepicker-DOSIyo8a.js} +39 -39
- package/dist/{Datepicker-CNFVUyyK.js.map → Datepicker-DOSIyo8a.js.map} +1 -1
- package/dist/Datepicker-DfdVsVb9.cjs +2 -0
- package/dist/{Datepicker-Df6uR0r_.cjs.map → Datepicker-DfdVsVb9.cjs.map} +1 -1
- package/dist/{EmojiPicker-B7AKJlAM.js → EmojiPicker-B_ZVTdOY.js} +2 -2
- package/dist/{EmojiPicker-B7AKJlAM.js.map → EmojiPicker-B_ZVTdOY.js.map} +1 -1
- package/dist/EmojiPicker-DS8XmAHV.cjs +2 -0
- package/dist/{EmojiPicker-KbIfc-GH.cjs.map → EmojiPicker-DS8XmAHV.cjs.map} +1 -1
- package/dist/FilterPill-BmYe_SsY.cjs +2 -0
- package/dist/{FilterPill-DwapR9JK.cjs.map → FilterPill-BmYe_SsY.cjs.map} +1 -1
- package/dist/{FilterPill-BR7FAmMG.js → FilterPill-C4TXD8Tl.js} +5 -5
- package/dist/{FilterPill-BR7FAmMG.js.map → FilterPill-C4TXD8Tl.js.map} +1 -1
- package/dist/{ForceLinkify-D4FBhBxD.cjs → ForceLinkify-BMmlUc8Q.cjs} +1 -1
- package/dist/{ForceLinkify-D4FBhBxD.cjs.map → ForceLinkify-BMmlUc8Q.cjs.map} +1 -1
- package/dist/{ForceLinkify-wTXS_wJS.js → ForceLinkify-Cw3Q1Nn7.js} +1 -1
- package/dist/{ForceLinkify-wTXS_wJS.js.map → ForceLinkify-Cw3Q1Nn7.js.map} +1 -1
- package/dist/{MarkdownRenderer-3CVbodrq.js → MarkdownRenderer-BR-fbldH.js} +1 -1
- package/dist/{MarkdownRenderer-3CVbodrq.js.map → MarkdownRenderer-BR-fbldH.js.map} +1 -1
- package/dist/{MarkdownRenderer-CaBjENW6.cjs → MarkdownRenderer-CH4L8Evn.cjs} +1 -1
- package/dist/{MarkdownRenderer-CaBjENW6.cjs.map → MarkdownRenderer-CH4L8Evn.cjs.map} +1 -1
- package/dist/{Presence-CGgyodnC.js → Presence-BkPCvddH.js} +2 -2
- package/dist/{Presence-CGgyodnC.js.map → Presence-BkPCvddH.js.map} +1 -1
- package/dist/{Presence-DLM3JR-n.cjs → Presence-DG9Kvu5J.cjs} +2 -2
- package/dist/{Presence-DLM3JR-n.cjs.map → Presence-DG9Kvu5J.cjs.map} +1 -1
- package/dist/ProgressBar-BMycZBZE.cjs +2 -0
- package/dist/ProgressBar-BMycZBZE.cjs.map +1 -0
- package/dist/ProgressBar-Cj8xqPc0.js +77 -0
- package/dist/ProgressBar-Cj8xqPc0.js.map +1 -0
- package/dist/{Resizable-F6PU5oKB.js → Resizable-BkijqucD.js} +3 -3
- package/dist/{Resizable-F6PU5oKB.js.map → Resizable-BkijqucD.js.map} +1 -1
- package/dist/{Resizable-BQsHIvDC.cjs → Resizable-DQoUk81S.cjs} +2 -2
- package/dist/{Resizable-BQsHIvDC.cjs.map → Resizable-DQoUk81S.cjs.map} +1 -1
- package/dist/{ResizableHandle-VBoudEYy.cjs → ResizableHandle-D2gZ6dg5.cjs} +2 -2
- package/dist/{ResizableHandle-VBoudEYy.cjs.map → ResizableHandle-D2gZ6dg5.cjs.map} +1 -1
- package/dist/{ResizableHandle-CqIIQvza.js → ResizableHandle-MDdaNR_t.js} +3 -3
- package/dist/{ResizableHandle-CqIIQvza.js.map → ResizableHandle-MDdaNR_t.js.map} +1 -1
- package/dist/{ResizableUtils-CZdVSd6q.cjs → ResizableUtils-CXU7o9pL.cjs} +1 -1
- package/dist/{ResizableUtils-CZdVSd6q.cjs.map → ResizableUtils-CXU7o9pL.cjs.map} +1 -1
- package/dist/{ResizableUtils-CrBOa8js.js → ResizableUtils-ChIk3Blc.js} +1 -1
- package/dist/{ResizableUtils-CrBOa8js.js.map → ResizableUtils-ChIk3Blc.js.map} +1 -1
- package/dist/{RichTextEditor-DLiJCPI6.js → RichTextEditor-BIcaFJQp.js} +15 -15
- package/dist/{RichTextEditor-DLiJCPI6.js.map → RichTextEditor-BIcaFJQp.js.map} +1 -1
- package/dist/RichTextEditor-D6kCBnLJ.cjs +11 -0
- package/dist/{RichTextEditor-ECmStZDK.cjs.map → RichTextEditor-D6kCBnLJ.cjs.map} +1 -1
- package/dist/{Scroller-D6f0HvIT.js → Scroller-D6LZtmkL.js} +3 -3
- package/dist/{Scroller-D6f0HvIT.js.map → Scroller-D6LZtmkL.js.map} +1 -1
- package/dist/Scroller-eXc7l23J.cjs +2 -0
- package/dist/{Scroller-EIHN3a26.cjs.map → Scroller-eXc7l23J.cjs.map} +1 -1
- package/dist/Slider-B7O2M5_S.cjs +2 -0
- package/dist/{Slider-BDgY7gNR.cjs.map → Slider-B7O2M5_S.cjs.map} +1 -1
- package/dist/{Slider-Bg9KspmL.js → Slider-oJROUIMS.js} +7 -7
- package/dist/{Slider-Bg9KspmL.js.map → Slider-oJROUIMS.js.map} +1 -1
- package/dist/Text-BDgOWPw7.cjs +2 -0
- package/dist/Text-BDgOWPw7.cjs.map +1 -0
- package/dist/{Text-5MobHF6z.js → Text-CfiPqjL0.js} +4 -4
- package/dist/Text-CfiPqjL0.js.map +1 -0
- package/dist/{TextList-1_ZM5zE3.cjs → TextList-D3HHK2DW.cjs} +1 -1
- package/dist/{TextList-1_ZM5zE3.cjs.map → TextList-D3HHK2DW.cjs.map} +1 -1
- package/dist/{TextList-DIj84CPZ.js → TextList-DXEov7Ls.js} +1 -1
- package/dist/{TextList-DIj84CPZ.js.map → TextList-DXEov7Ls.js.map} +1 -1
- package/dist/TextListItem-C2Vc8Gnu.cjs +2 -0
- package/dist/{TextListItem-CVjrHr2_.cjs.map → TextListItem-C2Vc8Gnu.cjs.map} +1 -1
- package/dist/{TextListItem-BhmijfFO.js → TextListItem-CaFTtZ3G.js} +2 -2
- package/dist/{TextListItem-BhmijfFO.js.map → TextListItem-CaFTtZ3G.js.map} +1 -1
- package/dist/{Toast-4nsu1oxP.js → Toast-AGiQccuG.js} +3 -3
- package/dist/{Toast-4nsu1oxP.js.map → Toast-AGiQccuG.js.map} +1 -1
- package/dist/Toast-DImJ0PkZ.cjs +2 -0
- package/dist/{Toast--W8p7jzA.cjs.map → Toast-DImJ0PkZ.cjs.map} +1 -1
- package/dist/{UseResizableCalculations-CahDXDOn.cjs → UseResizableCalculations-D4xVxWje.cjs} +2 -2
- package/dist/{UseResizableCalculations-CahDXDOn.cjs.map → UseResizableCalculations-D4xVxWje.cjs.map} +1 -1
- package/dist/{UseResizableCalculations-B-yTU9ZI.js → UseResizableCalculations-DTxD7NKO.js} +2 -2
- package/dist/{UseResizableCalculations-B-yTU9ZI.js.map → UseResizableCalculations-DTxD7NKO.js.map} +1 -1
- package/dist/common/composables/use-accessible-name-warning.cjs +2 -0
- package/dist/common/composables/use-accessible-name-warning.cjs.map +1 -0
- package/dist/common/composables/use-accessible-name-warning.js +11 -0
- package/dist/common/composables/use-accessible-name-warning.js.map +1 -0
- package/dist/common/composables/use-indicator-animation.cjs +1 -1
- package/dist/common/composables/use-indicator-animation.cjs.map +1 -1
- package/dist/common/composables/use-indicator-animation.js +14 -14
- package/dist/common/composables/use-indicator-animation.js.map +1 -1
- package/dist/common/composables/useAccessibleNameWarning.d.ts +2 -0
- package/dist/common/composables/useAccessibleNameWarning.d.ts.map +1 -0
- package/dist/common/composables/useIndicatorAnimation.d.ts +2 -1
- package/dist/common/composables/useIndicatorAnimation.d.ts.map +1 -1
- package/dist/common/dates/index.cjs +1 -1
- package/dist/common/dates/index.cjs.map +1 -1
- package/dist/common/dates/index.js +1 -1
- package/dist/common/mixins/input-group.cjs +1 -1
- package/dist/common/mixins/input-group.cjs.map +1 -1
- package/dist/common/mixins/input-group.js +5 -5
- package/dist/common/mixins/input.cjs +1 -1
- package/dist/common/mixins/input.cjs.map +1 -1
- package/dist/common/mixins/input.js +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
- package/dist/common/mixins/keyboard-list-navigation.js +1 -1
- package/dist/common/mixins/modal.cjs +1 -1
- package/dist/common/mixins/modal.cjs.map +1 -1
- package/dist/common/mixins/modal.js +1 -1
- package/dist/common/mixins/mode.cjs +1 -1
- package/dist/common/mixins/mode.js +1 -1
- package/dist/common/owned_classes.d.ts +4 -0
- package/dist/common/owned_classes.d.ts.map +1 -0
- package/dist/common/utils/index.cjs +1 -2
- package/dist/common/utils/index.d.ts +2 -2
- package/dist/common/utils/index.d.ts.map +1 -1
- package/dist/common/utils/index.js +2 -150
- package/dist/component-documentation.json +1 -1
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +1 -0
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPill.vue.d.ts +2 -0
- package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
- package/dist/components/Hovercard/Hovercard.vue.d.ts +4 -0
- package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
- package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -0
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +66 -0
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBarConstants.d.ts +18 -0
- package/dist/components/ProgressBar/ProgressBarConstants.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +3 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.vue.d.ts +41 -9
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +1 -0
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts +10 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +1 -0
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Tab/Tab.vue.d.ts +18 -0
- package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
- package/dist/components/Tab/TabGroup.vue.d.ts +3 -1
- package/dist/components/Tab/TabGroup.vue.d.ts.map +1 -1
- package/dist/components/Text/modules/slide.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +51 -49
- package/dist/{floating-ui.dom-Cqf6X2Wc.js → floating-ui.dom-CuL5LTgX.js} +1 -1
- package/dist/{floating-ui.dom-Cqf6X2Wc.js.map → floating-ui.dom-CuL5LTgX.js.map} +1 -1
- package/dist/{floating-ui.dom-n1CheoWj.cjs → floating-ui.dom-S7QIcAlj.cjs} +1 -1
- package/dist/{floating-ui.dom-n1CheoWj.cjs.map → floating-ui.dom-S7QIcAlj.cjs.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/lib/avatar/avatar.cjs +1 -1
- package/dist/lib/avatar/avatar.cjs.map +1 -1
- package/dist/lib/avatar/avatar.js +7 -7
- package/dist/lib/badge/badge.cjs +1 -1
- package/dist/lib/badge/badge.cjs.map +1 -1
- package/dist/lib/badge/badge.js +2 -2
- package/dist/lib/banner/banner.cjs +1 -1
- package/dist/lib/banner/banner.cjs.map +1 -1
- package/dist/lib/banner/banner.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/lib/button/button.cjs +1 -1
- package/dist/lib/button/button.cjs.map +1 -1
- package/dist/lib/button/button.js +6 -6
- package/dist/lib/button/button.js.map +1 -1
- package/dist/lib/button-group/button-group.cjs +1 -1
- package/dist/lib/button-group/button-group.js +1 -1
- package/dist/lib/button-group/buttons-decorator.cjs +1 -1
- package/dist/lib/button-group/buttons-decorator.js +1 -1
- package/dist/lib/card/card.cjs +1 -1
- package/dist/lib/card/card.cjs.map +1 -1
- package/dist/lib/card/card.js +2 -2
- package/dist/lib/checkbox/checkbox.cjs +1 -1
- package/dist/lib/checkbox/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox.js +5 -5
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
- package/dist/lib/chip/chip.cjs +1 -1
- package/dist/lib/chip/chip.cjs.map +1 -1
- package/dist/lib/chip/chip.js +4 -4
- package/dist/lib/codeblock/codeblock.cjs +1 -1
- package/dist/lib/codeblock/codeblock.js +1 -1
- package/dist/lib/collapsible/collapsible-lazy-show.cjs +1 -1
- package/dist/lib/collapsible/collapsible-lazy-show.js +1 -1
- package/dist/lib/collapsible/collapsible.cjs +1 -1
- package/dist/lib/collapsible/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible/collapsible.js +4 -4
- package/dist/lib/combobox/combobox-empty-list.cjs +1 -1
- package/dist/lib/combobox/combobox-empty-list.js +1 -1
- package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
- package/dist/lib/combobox/combobox-loading-list.js +1 -1
- package/dist/lib/combobox/combobox.cjs +1 -1
- package/dist/lib/combobox/combobox.js +1 -1
- package/dist/lib/combobox/index.cjs +1 -1
- package/dist/lib/combobox/index.js +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +8 -8
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +7 -7
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.js +1 -1
- package/dist/lib/datepicker/index.cjs +1 -1
- package/dist/lib/datepicker/index.js +1 -1
- package/dist/lib/description-list/description-list.cjs +1 -1
- package/dist/lib/description-list/description-list.js +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/lib/dropdown/dropdown-list.js +2 -2
- package/dist/lib/dropdown/dropdown-separator.cjs +1 -1
- package/dist/lib/dropdown/dropdown-separator.js +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +3 -3
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/emoji/emoji.cjs +1 -1
- package/dist/lib/emoji/emoji.js +1 -1
- package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +1 -1
- package/dist/lib/emoji-picker/index.cjs +1 -1
- package/dist/lib/emoji-picker/index.js +1 -1
- package/dist/lib/empty-state/empty-state.cjs +1 -1
- package/dist/lib/empty-state/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state.js +2 -2
- package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill.js +1 -1
- package/dist/lib/filter-pill/index.cjs +1 -1
- package/dist/lib/filter-pill/index.js +1 -1
- package/dist/lib/hovercard/hovercard.cjs +1 -1
- package/dist/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard/hovercard.js +2 -2
- package/dist/lib/icon/icon.cjs +1 -1
- package/dist/lib/icon/icon.js +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer/image-viewer.js +2 -2
- package/dist/lib/input/input.cjs +1 -1
- package/dist/lib/input/input.cjs.map +1 -1
- package/dist/lib/input/input.js +8 -8
- package/dist/lib/input-group/input-group.cjs +1 -1
- package/dist/lib/input-group/input-group.cjs.map +1 -1
- package/dist/lib/input-group/input-group.js +5 -5
- package/dist/lib/item-layout/item-layout.cjs +2 -2
- package/dist/lib/item-layout/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout/item-layout.js +2 -2
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +2 -2
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.js +2 -2
- package/dist/lib/lazy-show/lazy-show.cjs +1 -1
- package/dist/lib/lazy-show/lazy-show.js +1 -1
- package/dist/lib/link/link.cjs +1 -1
- package/dist/lib/link/link.js +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +2 -2
- package/dist/lib/list-item-group/list-item-group.cjs +1 -1
- package/dist/lib/list-item-group/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group/list-item-group.js +2 -2
- package/dist/lib/loader/loader.cjs +1 -1
- package/dist/lib/loader/loader.js +1 -1
- package/dist/lib/modal/modal.cjs +1 -1
- package/dist/lib/modal/modal.cjs.map +1 -1
- package/dist/lib/modal/modal.js +9 -9
- package/dist/lib/modal/modal.js.map +1 -1
- package/dist/lib/mode-directive/mode.cjs +1 -1
- package/dist/lib/mode-directive/mode.js +1 -1
- package/dist/lib/mode-island/mode-island.cjs +1 -1
- package/dist/lib/mode-island/mode-island.js +1 -1
- package/dist/lib/motion-text/motion-text.cjs +1 -1
- package/dist/lib/motion-text/motion-text.js +1 -1
- package/dist/lib/notice/notice-action.cjs +1 -1
- package/dist/lib/notice/notice-action.js +1 -1
- package/dist/lib/notice/notice-content.cjs +1 -1
- package/dist/lib/notice/notice-content.cjs.map +1 -1
- package/dist/lib/notice/notice-content.js +3 -3
- package/dist/lib/notice/notice-icon.cjs +1 -1
- package/dist/lib/notice/notice-icon.cjs.map +1 -1
- package/dist/lib/notice/notice-icon.js +2 -2
- package/dist/lib/notice/notice.cjs +1 -1
- package/dist/lib/notice/notice.js +1 -1
- package/dist/lib/pagination/pagination.cjs +1 -1
- package/dist/lib/pagination/pagination.js +1 -1
- package/dist/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/lib/popover/popover-header-footer.js +4 -4
- package/dist/lib/popover/popover.cjs +1 -1
- package/dist/lib/popover/popover.cjs.map +1 -1
- package/dist/lib/popover/popover.js +95 -82
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/presence/index.cjs +1 -1
- package/dist/lib/presence/index.js +1 -1
- package/dist/lib/presence/presence.cjs +1 -1
- package/dist/lib/presence/presence.js +1 -1
- package/dist/lib/progress-bar/index.cjs +1 -0
- package/dist/lib/progress-bar/index.js +2 -0
- package/dist/lib/progress-bar/progress-bar.cjs +1 -0
- package/dist/lib/progress-bar/progress-bar.js +2 -0
- package/dist/lib/progress-circle/progress-circle.cjs +1 -1
- package/dist/lib/progress-circle/progress-circle.cjs.map +1 -1
- package/dist/lib/progress-circle/progress-circle.js +81 -42
- package/dist/lib/progress-circle/progress-circle.js.map +1 -1
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +7 -7
- package/dist/lib/radio-group/radios-decorator.cjs +1 -1
- package/dist/lib/radio-group/radios-decorator.js +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.js +3 -3
- package/dist/lib/resizable/resizable-handle.cjs +1 -1
- package/dist/lib/resizable/resizable-handle.js +1 -1
- package/dist/lib/resizable/resizable-panel.cjs +1 -1
- package/dist/lib/resizable/resizable-panel.js +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
- package/dist/lib/rich-text-editor/force-linkify.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/lib/root-layout/root-layout.cjs +1 -1
- package/dist/lib/root-layout/root-layout.js +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.js +1 -1
- package/dist/lib/scroller/scroller.cjs +1 -1
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/segmented-control/segmented-control-item.cjs +1 -1
- package/dist/lib/segmented-control/segmented-control-item.cjs.map +1 -1
- package/dist/lib/segmented-control/segmented-control-item.js +34 -4
- package/dist/lib/segmented-control/segmented-control-item.js.map +1 -1
- package/dist/lib/segmented-control/segmented-control.cjs +1 -1
- package/dist/lib/segmented-control/segmented-control.cjs.map +1 -1
- package/dist/lib/segmented-control/segmented-control.js +1 -1
- package/dist/lib/select-menu/select-menu.cjs +1 -1
- package/dist/lib/select-menu/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu.js +8 -8
- package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
- package/dist/lib/skeleton/skeleton-list-item.js +1 -1
- package/dist/lib/skeleton/skeleton-paragraph.cjs +1 -1
- package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
- package/dist/lib/skeleton/skeleton-shape.js +1 -1
- package/dist/lib/skeleton/skeleton-text.cjs +1 -1
- package/dist/lib/skeleton/skeleton-text.js +1 -1
- package/dist/lib/skeleton/skeleton.cjs +1 -1
- package/dist/lib/skeleton/skeleton.js +1 -1
- package/dist/lib/slider/index.cjs +1 -1
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/slider/slider.cjs +1 -1
- package/dist/lib/slider/slider.js +1 -1
- package/dist/lib/split-button/split-button-end.cjs +1 -1
- package/dist/lib/split-button/split-button-end.cjs.map +1 -1
- package/dist/lib/split-button/split-button-end.js +2 -2
- package/dist/lib/split-button/split-button-start.cjs +1 -1
- package/dist/lib/split-button/split-button-start.js +1 -1
- package/dist/lib/split-button/split-button.cjs +1 -1
- package/dist/lib/split-button/split-button.cjs.map +1 -1
- package/dist/lib/split-button/split-button.js +5 -5
- package/dist/lib/stack/stack.cjs +1 -1
- package/dist/lib/stack/stack.js +1 -1
- package/dist/lib/tab/tab-group.cjs +1 -1
- package/dist/lib/tab/tab-group.cjs.map +1 -1
- package/dist/lib/tab/tab-group.js +12 -4
- package/dist/lib/tab/tab-group.js.map +1 -1
- package/dist/lib/tab/tab-panel.cjs +1 -1
- package/dist/lib/tab/tab-panel.cjs.map +1 -1
- package/dist/lib/tab/tab-panel.js +2 -2
- package/dist/lib/tab/tab.cjs +1 -1
- package/dist/lib/tab/tab.cjs.map +1 -1
- package/dist/lib/tab/tab.js +36 -6
- package/dist/lib/tab/tab.js.map +1 -1
- package/dist/lib/text/index.cjs +1 -1
- package/dist/lib/text/index.js +1 -1
- package/dist/lib/text/text.cjs +1 -1
- package/dist/lib/text/text.js +1 -1
- package/dist/lib/text-list/index.cjs +1 -1
- package/dist/lib/text-list/index.js +2 -2
- package/dist/lib/text-list/text-list-item.cjs +1 -1
- package/dist/lib/text-list/text-list-item.js +1 -1
- package/dist/lib/text-list/text-list.cjs +1 -1
- package/dist/lib/text-list/text-list.js +1 -1
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.js +1 -1
- package/dist/lib/toggle/toggle.cjs +1 -1
- package/dist/lib/toggle/toggle.cjs.map +1 -1
- package/dist/lib/toggle/toggle.js +4 -4
- package/dist/lib/tooltip/tooltip.cjs +1 -1
- package/dist/lib/tooltip/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip/tooltip.js +6 -6
- package/dist/lib/tooltip/tooltip.js.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +2 -2
- package/dist/lib/validation-messages/validation-messages.cjs +1 -1
- package/dist/lib/validation-messages/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages/validation-messages.js +4 -4
- package/dist/{mode_constants-tb7TL85q.js → mode_constants-B8_1b5T8.js} +1 -1
- package/dist/{mode_constants-tb7TL85q.js.map → mode_constants-B8_1b5T8.js.map} +1 -1
- package/dist/{mode_constants-CzYJW9ua.cjs → mode_constants-DM0SVbFM.cjs} +1 -1
- package/dist/{mode_constants-CzYJW9ua.cjs.map → mode_constants-DM0SVbFM.cjs.map} +1 -1
- package/dist/shared/sr_only_close_button.cjs +1 -1
- package/dist/shared/sr_only_close_button.js +1 -1
- package/dist/utils-BL_SrwnF.js +172 -0
- package/dist/utils-BL_SrwnF.js.map +1 -0
- package/dist/utils-GofHWJKi.cjs +2 -0
- package/dist/{common/utils/index.js.map → utils-GofHWJKi.cjs.map} +1 -1
- package/package.json +6 -6
- package/dist/Combobox-DdBIRmeH.cjs +0 -3
- package/dist/Datepicker-Df6uR0r_.cjs +0 -2
- package/dist/EmojiPicker-KbIfc-GH.cjs +0 -2
- package/dist/FilterPill-DwapR9JK.cjs +0 -2
- package/dist/RichTextEditor-ECmStZDK.cjs +0 -11
- package/dist/Scroller-EIHN3a26.cjs +0 -2
- package/dist/Slider-BDgY7gNR.cjs +0 -2
- package/dist/Text-5MobHF6z.js.map +0 -1
- package/dist/Text-DNVNZree.cjs +0 -2
- package/dist/Text-DNVNZree.cjs.map +0 -1
- package/dist/TextListItem-CVjrHr2_.cjs +0 -2
- package/dist/Toast--W8p7jzA.cjs +0 -2
- package/dist/common/utils/index.cjs.map +0 -1
- /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-BecorN_g.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-D8jCH6HB.cjs → _plugin-vue_export-helper-CX7YVcP6.cjs} +0 -0
|
@@ -30,31 +30,31 @@ function r(r, i, a) {
|
|
|
30
30
|
el: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function d({ oldRect: e, newEl: t, orientation: n,
|
|
33
|
+
function d({ oldRect: e, newEl: t, orientation: n, checkRowOverlap: r, hideProps: i, indicatorExtra: a = {}, pseudoElement: u }) {
|
|
34
34
|
if (!l) return;
|
|
35
35
|
f();
|
|
36
|
-
let
|
|
37
|
-
if (Math.
|
|
38
|
-
let
|
|
39
|
-
if (
|
|
40
|
-
let
|
|
36
|
+
let d = t.getBoundingClientRect(), p = n === "vertical", m = p ? d.width : d.height, h = Math.abs(p ? e.left - d.left : e.top - d.top);
|
|
37
|
+
if (r ? Math.max(e.top, d.top) >= Math.min(e.bottom, d.bottom) : h > m / 2) return;
|
|
38
|
+
let g = p ? e.top + e.height / 2 - (d.top + d.height / 2) : e.left + e.width / 2 - (d.left + d.width / 2);
|
|
39
|
+
if (g === 0) return;
|
|
40
|
+
let _ = p ? `0 ${g}px` : `${g}px 0`, v = p ? `1 ${e.height / d.height}` : `${e.width / d.width} 1`, y = {
|
|
41
41
|
duration: s,
|
|
42
42
|
easing: c
|
|
43
43
|
};
|
|
44
|
-
o.hideNative = t.animate([
|
|
45
|
-
...
|
|
44
|
+
o.hideNative = t.animate([i, i], {
|
|
45
|
+
...y,
|
|
46
46
|
fill: "forwards"
|
|
47
47
|
}), o.indicator = t.animate([{
|
|
48
|
-
translate:
|
|
49
|
-
scale:
|
|
50
|
-
...
|
|
48
|
+
translate: _,
|
|
49
|
+
scale: v,
|
|
50
|
+
...a
|
|
51
51
|
}, {
|
|
52
52
|
translate: "0 0",
|
|
53
53
|
scale: "1 1",
|
|
54
|
-
...
|
|
54
|
+
...a
|
|
55
55
|
}], {
|
|
56
|
-
...
|
|
57
|
-
pseudoElement:
|
|
56
|
+
...y,
|
|
57
|
+
pseudoElement: u
|
|
58
58
|
}), o.indicator.onfinish = () => {
|
|
59
59
|
o.hideNative?.cancel();
|
|
60
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-indicator-animation.js","names":[],"sources":["../../../common/composables/useIndicatorAnimation.js"],"sourcesContent":["import { onMounted, onBeforeUnmount, unref } from 'vue';\n\n/**\n * Composable for \"traveling indicator\" animations.\n * Uses FLIP technique + Web Animations API to slide a selection indicator\n * (pseudo-element) from the old selected element to the new one.\n *\n * @param {import('vue').Ref|Function} containerRef - template ref or getter for the container element\n * @param {string} durationVar - CSS variable name for duration (e.g. '--tab-indicator-duration')\n * @param {string} easingVar - CSS variable name for easing (e.g. '--tab-indicator-easing')\n */\nexport function useIndicatorAnimation (containerRef, durationVar, easingVar) {\n const state = { indicator: null, hideNative: null };\n let duration = 200;\n let easing = 'ease';\n let supported = false;\n\n onMounted(() => {\n const el = typeof containerRef === 'function' ? containerRef() : unref(containerRef);\n const resolvedEl = el?.$el || el;\n if (!resolvedEl) return;\n\n // Cache config from CSS custom properties\n const style = getComputedStyle(resolvedEl);\n duration = parseInt(style.getPropertyValue(durationVar), 10) || 200;\n easing = style.getPropertyValue(easingVar).trim() || 'ease';\n\n // Feature detection: WAAPI + prefers-reduced-motion\n const prefersReducedMotion = typeof window.matchMedia === 'function' &&\n window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n supported = typeof resolvedEl.animate === 'function' && !prefersReducedMotion;\n });\n\n onBeforeUnmount(() => { cancel(); });\n\n /**\n * Capture a snapshot of an element's position and computed style.\n * @param {string} selector - CSS selector to find the element within the container\n * @returns {{ rect: DOMRect, style: CSSStyleDeclaration, el: HTMLElement }|null}\n */\n function snapshot (selector) {\n if (!supported) return null;\n const container = typeof containerRef === 'function' ? containerRef() : unref(containerRef);\n const containerEl = container?.$el || container;\n const el = containerEl?.querySelector(selector);\n if (!el) return null;\n const cs = getComputedStyle(el);\n return {\n rect: el.getBoundingClientRect(),\n style: { borderColor: cs.borderColor, borderWidth: cs.borderWidth, backgroundColor: cs.backgroundColor },\n el,\n };\n }\n\n /**\n * Animate an indicator from oldRect to newEl's current position.\n * @param {object} options\n * @param {DOMRect} options.oldRect - bounding rect of the previously selected element\n * @param {HTMLElement} options.newEl - the newly selected element\n * @param {string} options.orientation - 'horizontal' or 'vertical'\n * @param {object} options.hideProps - properties to suppress on newEl during animation\n * @param {object} [options.indicatorExtra] - additional CSS properties for the indicator pseudo\n * @param {string} options.pseudoElement - '::before' or '::after'\n */\n function animate ({ oldRect, newEl, orientation, hideProps, indicatorExtra = {}, pseudoElement }) {\n if (!supported) return;\n cancel();\n\n const newRect = newEl.getBoundingClientRect();\n const isVertical = orientation === 'vertical';\n\n // Skip if elements are on different rows/columns (e.g. wrapped tabs).\n // Use half the element's cross-axis size as threshold — items on the same\n // row/column may differ slightly due to sub-pixel rounding or varying widths.\n const crossAxisSize = isVertical ? newRect.width : newRect.height;\n const crossAxisDelta = isVertical\n ? Math.abs(oldRect.left - newRect.left)\n : Math.abs(oldRect.top - newRect.top);\n
|
|
1
|
+
{"version":3,"file":"use-indicator-animation.js","names":[],"sources":["../../../common/composables/useIndicatorAnimation.js"],"sourcesContent":["import { onMounted, onBeforeUnmount, unref } from 'vue';\n\n/**\n * Composable for \"traveling indicator\" animations.\n * Uses FLIP technique + Web Animations API to slide a selection indicator\n * (pseudo-element) from the old selected element to the new one.\n *\n * @param {import('vue').Ref|Function} containerRef - template ref or getter for the container element\n * @param {string} durationVar - CSS variable name for duration (e.g. '--tab-indicator-duration')\n * @param {string} easingVar - CSS variable name for easing (e.g. '--tab-indicator-easing')\n */\nexport function useIndicatorAnimation (containerRef, durationVar, easingVar) {\n const state = { indicator: null, hideNative: null };\n let duration = 200;\n let easing = 'ease';\n let supported = false;\n\n onMounted(() => {\n const el = typeof containerRef === 'function' ? containerRef() : unref(containerRef);\n const resolvedEl = el?.$el || el;\n if (!resolvedEl) return;\n\n // Cache config from CSS custom properties\n const style = getComputedStyle(resolvedEl);\n duration = parseInt(style.getPropertyValue(durationVar), 10) || 200;\n easing = style.getPropertyValue(easingVar).trim() || 'ease';\n\n // Feature detection: WAAPI + prefers-reduced-motion\n const prefersReducedMotion = typeof window.matchMedia === 'function' &&\n window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n supported = typeof resolvedEl.animate === 'function' && !prefersReducedMotion;\n });\n\n onBeforeUnmount(() => { cancel(); });\n\n /**\n * Capture a snapshot of an element's position and computed style.\n * @param {string} selector - CSS selector to find the element within the container\n * @returns {{ rect: DOMRect, style: CSSStyleDeclaration, el: HTMLElement }|null}\n */\n function snapshot (selector) {\n if (!supported) return null;\n const container = typeof containerRef === 'function' ? containerRef() : unref(containerRef);\n const containerEl = container?.$el || container;\n const el = containerEl?.querySelector(selector);\n if (!el) return null;\n const cs = getComputedStyle(el);\n return {\n rect: el.getBoundingClientRect(),\n style: { borderColor: cs.borderColor, borderWidth: cs.borderWidth, backgroundColor: cs.backgroundColor },\n el,\n };\n }\n\n /**\n * Animate an indicator from oldRect to newEl's current position.\n * @param {object} options\n * @param {DOMRect} options.oldRect - bounding rect of the previously selected element\n * @param {HTMLElement} options.newEl - the newly selected element\n * @param {string} options.orientation - 'horizontal' or 'vertical'\n * @param {boolean} [options.checkRowOverlap] - require vertical overlap for horizontal tab rows\n * @param {object} options.hideProps - properties to suppress on newEl during animation\n * @param {object} [options.indicatorExtra] - additional CSS properties for the indicator pseudo\n * @param {string} options.pseudoElement - '::before' or '::after'\n */\n function animate ({ oldRect, newEl, orientation, checkRowOverlap, hideProps, indicatorExtra = {}, pseudoElement }) {\n if (!supported) return;\n cancel();\n\n const newRect = newEl.getBoundingClientRect();\n const isVertical = orientation === 'vertical';\n\n // Skip if elements are on different rows/columns (e.g. wrapped tabs).\n // Use half the element's cross-axis size as threshold — items on the same\n // row/column may differ slightly due to sub-pixel rounding or varying widths.\n const crossAxisSize = isVertical ? newRect.width : newRect.height;\n const crossAxisDelta = isVertical\n ? Math.abs(oldRect.left - newRect.left)\n : Math.abs(oldRect.top - newRect.top);\n const spansRows = checkRowOverlap\n ? Math.max(oldRect.top, newRect.top) >= Math.min(oldRect.bottom, newRect.bottom)\n : crossAxisDelta > crossAxisSize / 2;\n if (spansRows) return;\n\n // Center-to-center delta so scale from center aligns both edges\n const delta = isVertical\n ? (oldRect.top + oldRect.height / 2) - (newRect.top + newRect.height / 2)\n : (oldRect.left + oldRect.width / 2) - (newRect.left + newRect.width / 2);\n if (delta === 0) return;\n\n const from = isVertical ? `0 ${delta}px` : `${delta}px 0`;\n const scale = isVertical\n ? `1 ${oldRect.height / newRect.height}`\n : `${oldRect.width / newRect.width} 1`;\n\n const opts = { duration, easing };\n state.hideNative = newEl.animate(\n [hideProps, hideProps], { ...opts, fill: 'forwards' },\n );\n state.indicator = newEl.animate(\n [{ translate: from, scale, ...indicatorExtra },\n { translate: '0 0', scale: '1 1', ...indicatorExtra }],\n { ...opts, pseudoElement },\n );\n state.indicator.onfinish = () => { state.hideNative?.cancel(); };\n }\n\n function cancel () {\n if (state.indicator) {\n state.indicator.onfinish = null;\n state.indicator.cancel();\n }\n if (state.hideNative) {\n state.hideNative.onfinish = null;\n state.hideNative.cancel();\n }\n }\n\n function canAnimate () {\n return supported;\n }\n\n return { animate, cancel, canAnimate, snapshot };\n}\n"],"mappings":";;AAWA,SAAgB,EAAuB,GAAc,GAAa,GAAW;CAC3E,IAAM,IAAQ;EAAE,WAAW;EAAM,YAAY;EAAM,EAC/C,IAAW,KACX,IAAS,QACT,IAAY;AAkBhB,CAhBA,QAAgB;EACd,IAAM,IAAK,OAAO,KAAiB,aAAa,GAAc,GAAG,EAAM,EAAa,EAC9E,IAAa,GAAI,OAAO;AAC9B,MAAI,CAAC,EAAY;EAGjB,IAAM,IAAQ,iBAAiB,EAAW;AAE1C,EADA,IAAW,SAAS,EAAM,iBAAiB,EAAY,EAAE,GAAG,IAAI,KAChE,IAAS,EAAM,iBAAiB,EAAU,CAAC,MAAM,IAAI;EAGrD,IAAM,IAAuB,OAAO,OAAO,cAAe,cACxD,OAAO,WAAW,mCAAmC,CAAC;AACxD,MAAY,OAAO,EAAW,WAAY,cAAc,CAAC;GACzD,EAEF,QAAsB;AAAE,KAAQ;GAAI;CAOpC,SAAS,EAAU,GAAU;AAC3B,MAAI,CAAC,EAAW,QAAO;EACvB,IAAM,IAAY,OAAO,KAAiB,aAAa,GAAc,GAAG,EAAM,EAAa,EAErF,KADc,GAAW,OAAO,IACd,cAAc,EAAS;AAC/C,MAAI,CAAC,EAAI,QAAO;EAChB,IAAM,IAAK,iBAAiB,EAAG;AAC/B,SAAO;GACL,MAAM,EAAG,uBAAuB;GAChC,OAAO;IAAE,aAAa,EAAG;IAAa,aAAa,EAAG;IAAa,iBAAiB,EAAG;IAAiB;GACxG;GACD;;CAcH,SAAS,EAAS,EAAE,YAAS,UAAO,gBAAa,oBAAiB,cAAW,oBAAiB,EAAE,EAAE,oBAAiB;AACjH,MAAI,CAAC,EAAW;AAChB,KAAQ;EAER,IAAM,IAAU,EAAM,uBAAuB,EACvC,IAAa,MAAgB,YAK7B,IAAgB,IAAa,EAAQ,QAAQ,EAAQ,QACrD,IACF,KAAK,IADc,IACV,EAAQ,OAAO,EAAQ,OACvB,EAAQ,MAAM,EAAQ,IAAI;AAIvC,MAHkB,IACd,KAAK,IAAI,EAAQ,KAAK,EAAQ,IAAI,IAAI,KAAK,IAAI,EAAQ,QAAQ,EAAQ,OAAO,GAC9E,IAAiB,IAAgB,EACtB;EAGf,IAAM,IAAQ,IACT,EAAQ,MAAM,EAAQ,SAAS,KAAM,EAAQ,MAAM,EAAQ,SAAS,KACpE,EAAQ,OAAO,EAAQ,QAAQ,KAAM,EAAQ,OAAO,EAAQ,QAAQ;AACzE,MAAI,MAAU,EAAG;EAEjB,IAAM,IAAO,IAAa,KAAK,EAAM,MAAM,GAAG,EAAM,OAC9C,IAAQ,IACV,KAAK,EAAQ,SAAS,EAAQ,WAC9B,GAAG,EAAQ,QAAQ,EAAQ,MAAM,KAE/B,IAAO;GAAE;GAAU;GAAQ;AASjC,EARA,EAAM,aAAa,EAAM,QACvB,CAAC,GAAW,EAAU,EAAE;GAAE,GAAG;GAAM,MAAM;GAAY,CACtD,EACD,EAAM,YAAY,EAAM,QACtB,CAAC;GAAE,WAAW;GAAM;GAAO,GAAG;GAAgB,EAC5C;GAAE,WAAW;GAAO,OAAO;GAAO,GAAG;GAAgB,CAAC,EACxD;GAAE,GAAG;GAAM;GAAe,CAC3B,EACD,EAAM,UAAU,iBAAiB;AAAE,KAAM,YAAY,QAAQ;;;CAG/D,SAAS,IAAU;AAKjB,EAJI,EAAM,cACR,EAAM,UAAU,WAAW,MAC3B,EAAM,UAAU,QAAQ,GAEtB,EAAM,eACR,EAAM,WAAW,WAAW,MAC5B,EAAM,WAAW,QAAQ;;CAI7B,SAAS,IAAc;AACrB,SAAO;;AAGT,QAAO;EAAE;EAAS;EAAQ;EAAY;EAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccessibleNameWarning.d.ts","sourceRoot":"","sources":["../../../common/composables/useAccessibleNameWarning.js"],"names":[],"mappings":"AAWA,wDAJW,MAAM,gBACN,MAAM,MAAM,GAAG,SAAS,SACxB,MAAM,QAehB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export function useIndicatorAnimation(containerRef: import('vue').Ref | Function, durationVar: string, easingVar: string): {
|
|
2
|
-
animate: ({ oldRect, newEl, orientation, hideProps, indicatorExtra, pseudoElement }: {
|
|
2
|
+
animate: ({ oldRect, newEl, orientation, checkRowOverlap, hideProps, indicatorExtra, pseudoElement }: {
|
|
3
3
|
oldRect: DOMRect;
|
|
4
4
|
newEl: HTMLElement;
|
|
5
5
|
orientation: string;
|
|
6
|
+
checkRowOverlap?: boolean | undefined;
|
|
6
7
|
hideProps: object;
|
|
7
8
|
indicatorExtra?: object | undefined;
|
|
8
9
|
pseudoElement: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIndicatorAnimation.d.ts","sourceRoot":"","sources":["../../../common/composables/useIndicatorAnimation.js"],"names":[],"mappings":"AAWA,oDAJW,OAAO,KAAK,EAAE,GAAG,WAAS,eAC1B,MAAM,aACN,MAAM;
|
|
1
|
+
{"version":3,"file":"useIndicatorAnimation.d.ts","sourceRoot":"","sources":["../../../common/composables/useIndicatorAnimation.js"],"names":[],"mappings":"AAWA,oDAJW,OAAO,KAAK,EAAE,GAAG,WAAS,eAC1B,MAAM,aACN,MAAM;0GAgDZ;QAAyB,OAAO,EAAxB,OAAO;QACc,KAAK,EAA1B,WAAW;QACK,WAAW,EAA3B,MAAM;QACY,eAAe;QACjB,SAAS,EAAzB,MAAM;QACW,cAAc;QACf,aAAa,EAA7B,MAAM;KAChB;;;yBA3BU,MAAM,KACJ;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,mBAAmB,CAAC;QAAC,EAAE,EAAE,WAAW,CAAA;KAAE,GAAC,IAAI;EAqFjF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../utils-GofHWJKi.cjs`);let t=require(`date-fns`);var n;function r(e,r){return s(),(0,t.format)(e,r,{locale:n})}function i(e,r){return s(),(0,t.formatDuration)(e,{locale:n,format:r})}function a(e,r){return s(),(0,t.formatDistance)(e,r,{locale:n})}function o(){return n!==void 0}function s(){if(!o())throw Error(`Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function`)}function c(e){n=e}function l(e){return r(e,`MMMM d, y`)}function u(e){return e<60?a(0,29*1e3):i((0,t.intervalToDuration)({start:0,end:e*1e3}),[`hours`,`minutes`])}function d(t){return e.t(new Intl.RelativeTimeFormat(n.code,{numeric:`auto`}).formatToParts(t,`day`)[0].value,n.code)}function f(e){return(0,t.isToday)(e)?d(0):(0,t.isYesterday)(e)?d(-1):(0,t.isThisWeek)(e)?r(e,`EEEE`):(0,t.isThisYear)(e)?r(e,`EEEE, MMMM d`):r(e,`MMMM d, y`)}exports.durationInHHMM=u,exports.getDateMedium=l,exports.relativeDate=f,exports.setDateLocale=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["capitalizeFirstLetter"],"sources":["../../../common/dates/index.js"],"sourcesContent":["import {\n format,\n formatDuration,\n intervalToDuration,\n formatDistance,\n isToday,\n isYesterday,\n isThisWeek,\n isThisYear,\n} from 'date-fns';\nimport { capitalizeFirstLetter } from '../utils';\n\nlet dialtoneLocale;\n\n// Base functions just wrap core date-fns functions, but this allows us to do checks and set default options.\n\nfunction _baseFormat (date, formatString) {\n _checkLocaleSet();\n return format(date, formatString, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _baseFormatDuration (duration, formatString) {\n _checkLocaleSet();\n return formatDuration(duration, {\n locale: dialtoneLocale,\n format: formatString,\n });\n}\n\nfunction _baseFormatDistance (date, baseDate) {\n _checkLocaleSet();\n return formatDistance(date, baseDate, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _isLocaleSet () {\n return dialtoneLocale !== undefined;\n}\n\nfunction _checkLocaleSet () {\n if (!_isLocaleSet()) {\n throw new Error('Locale not set, please call setDateLocale(locale) and pass ' +\n 'in a datefns locale object as the locale param before calling this function');\n }\n}\n\n/**\n * Sets the locale for date-fns. This should be called before any date-fns functions are called.\n * @param {Locale} locale A date-fns locale object\n */\nexport function setDateLocale (locale) {\n dialtoneLocale = locale;\n}\n\n/**\n * This formats a date to the Dialtone standard medium date format as shown here:\n * https://dialtone.dialpad.com/guides/writing-guidelines/#formats-by-length\n * @param {Date} date A javascript date object\n * @returns {string} A string in the format of 'September 2, 2022'\n */\nexport function getDateMedium (date) {\n return _baseFormat(date, 'MMMM d, y');\n}\n\n/**\n * Converts a call duration in total number of seconds to a human readable string\n * such as 'less than a minute' or '4 hours 34 minutes'.\n * @param {number} durationInSeconds The duration of the call in seconds\n * @returns {string} A human readable string representing the duration of the call\n */\nexport function durationInHHMM (durationInSeconds) {\n if (durationInSeconds < 60) {\n // returns 'less than a minute', we're doing it like this instead of returning a string\n // so datefns handles i18n.\n return _baseFormatDistance(0, 29 * 1000);\n }\n const duration = intervalToDuration({\n start: 0,\n end: durationInSeconds * 1000,\n });\n return _baseFormatDuration(duration, ['hours', 'minutes']);\n}\n\n/**\n * gets the human readable name of the day relative to the current time. For example, if you pass in -1 it will\n * say \"Yesterday\" if you pass in 0 it will say \"Today\", if you pass in 1 it will say \"Tomorrow\".\n * @param {number} days The number of days relative to the current time\n * @returns {string} A human readable string representing the distance between the date and now\n */\nfunction _getRelativeDaysText (days) {\n const rtl = new Intl.RelativeTimeFormat(dialtoneLocale.code, { numeric: 'auto' });\n return capitalizeFirstLetter(rtl.formatToParts(days, 'day')[0].value, dialtoneLocale.code);\n}\n\n/**\n * Returns the distance between the passed in date and now in a human readable format, typically used\n * when showing a history of items in a log such as a feed list.\n *\n * datefns does not support 'today' and 'yesterday' without showing time so we use Intl for these cases.\n *\n * examples below to explain\n * the different potential formats:\n *\n * If current day:\n * Today\n *\n * If previous day:\n * Yesterday\n *\n * Older than yesterday, but in the same calendar week:\n * Monday\n *\n * Older than the most recent calendar week, but in the same year:\n * Monday, October 14\n *\n * older than a calendar year:\n * October 14, 2022\n *\n *\n * @param {Date} date The timestamp of the item's date\n * @returns {string} A human readable string representing the distance between the date and now\n */\nexport function relativeDate (date) {\n if (isToday(date)) {\n return _getRelativeDaysText(0);\n } else if (isYesterday(date)) {\n return _getRelativeDaysText(-1);\n } else if (isThisWeek(date)) {\n return _baseFormat(date, 'EEEE');\n } else if (isThisYear(date)) {\n return _baseFormat(date, 'EEEE, MMMM d');\n } else {\n return _baseFormat(date, 'MMMM d, y');\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["capitalizeFirstLetter"],"sources":["../../../common/dates/index.js"],"sourcesContent":["import {\n format,\n formatDuration,\n intervalToDuration,\n formatDistance,\n isToday,\n isYesterday,\n isThisWeek,\n isThisYear,\n} from 'date-fns';\nimport { capitalizeFirstLetter } from '../utils';\n\nlet dialtoneLocale;\n\n// Base functions just wrap core date-fns functions, but this allows us to do checks and set default options.\n\nfunction _baseFormat (date, formatString) {\n _checkLocaleSet();\n return format(date, formatString, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _baseFormatDuration (duration, formatString) {\n _checkLocaleSet();\n return formatDuration(duration, {\n locale: dialtoneLocale,\n format: formatString,\n });\n}\n\nfunction _baseFormatDistance (date, baseDate) {\n _checkLocaleSet();\n return formatDistance(date, baseDate, {\n locale: dialtoneLocale,\n });\n}\n\nfunction _isLocaleSet () {\n return dialtoneLocale !== undefined;\n}\n\nfunction _checkLocaleSet () {\n if (!_isLocaleSet()) {\n throw new Error('Locale not set, please call setDateLocale(locale) and pass ' +\n 'in a datefns locale object as the locale param before calling this function');\n }\n}\n\n/**\n * Sets the locale for date-fns. This should be called before any date-fns functions are called.\n * @param {Locale} locale A date-fns locale object\n */\nexport function setDateLocale (locale) {\n dialtoneLocale = locale;\n}\n\n/**\n * This formats a date to the Dialtone standard medium date format as shown here:\n * https://dialtone.dialpad.com/guides/writing-guidelines/#formats-by-length\n * @param {Date} date A javascript date object\n * @returns {string} A string in the format of 'September 2, 2022'\n */\nexport function getDateMedium (date) {\n return _baseFormat(date, 'MMMM d, y');\n}\n\n/**\n * Converts a call duration in total number of seconds to a human readable string\n * such as 'less than a minute' or '4 hours 34 minutes'.\n * @param {number} durationInSeconds The duration of the call in seconds\n * @returns {string} A human readable string representing the duration of the call\n */\nexport function durationInHHMM (durationInSeconds) {\n if (durationInSeconds < 60) {\n // returns 'less than a minute', we're doing it like this instead of returning a string\n // so datefns handles i18n.\n return _baseFormatDistance(0, 29 * 1000);\n }\n const duration = intervalToDuration({\n start: 0,\n end: durationInSeconds * 1000,\n });\n return _baseFormatDuration(duration, ['hours', 'minutes']);\n}\n\n/**\n * gets the human readable name of the day relative to the current time. For example, if you pass in -1 it will\n * say \"Yesterday\" if you pass in 0 it will say \"Today\", if you pass in 1 it will say \"Tomorrow\".\n * @param {number} days The number of days relative to the current time\n * @returns {string} A human readable string representing the distance between the date and now\n */\nfunction _getRelativeDaysText (days) {\n const rtl = new Intl.RelativeTimeFormat(dialtoneLocale.code, { numeric: 'auto' });\n return capitalizeFirstLetter(rtl.formatToParts(days, 'day')[0].value, dialtoneLocale.code);\n}\n\n/**\n * Returns the distance between the passed in date and now in a human readable format, typically used\n * when showing a history of items in a log such as a feed list.\n *\n * datefns does not support 'today' and 'yesterday' without showing time so we use Intl for these cases.\n *\n * examples below to explain\n * the different potential formats:\n *\n * If current day:\n * Today\n *\n * If previous day:\n * Yesterday\n *\n * Older than yesterday, but in the same calendar week:\n * Monday\n *\n * Older than the most recent calendar week, but in the same year:\n * Monday, October 14\n *\n * older than a calendar year:\n * October 14, 2022\n *\n *\n * @param {Date} date The timestamp of the item's date\n * @returns {string} A human readable string representing the distance between the date and now\n */\nexport function relativeDate (date) {\n if (isToday(date)) {\n return _getRelativeDaysText(0);\n } else if (isYesterday(date)) {\n return _getRelativeDaysText(-1);\n } else if (isThisWeek(date)) {\n return _baseFormat(date, 'EEEE');\n } else if (isThisYear(date)) {\n return _baseFormat(date, 'EEEE, MMMM d');\n } else {\n return _baseFormat(date, 'MMMM d, y');\n }\n}\n"],"mappings":"6KAYA,IAAI,EAIJ,SAAS,EAAa,EAAM,EAAc,CAExC,OADA,GAAiB,EACjB,EAAA,EAAA,QAAc,EAAM,EAAc,CAChC,OAAQ,EACT,CAAC,CAGJ,SAAS,EAAqB,EAAU,EAAc,CAEpD,OADA,GAAiB,EACjB,EAAA,EAAA,gBAAsB,EAAU,CAC9B,OAAQ,EACR,OAAQ,EACT,CAAC,CAGJ,SAAS,EAAqB,EAAM,EAAU,CAE5C,OADA,GAAiB,EACjB,EAAA,EAAA,gBAAsB,EAAM,EAAU,CACpC,OAAQ,EACT,CAAC,CAGJ,SAAS,GAAgB,CACvB,OAAO,IAAmB,IAAA,GAG5B,SAAS,GAAmB,CAC1B,GAAI,CAAC,GAAc,CACjB,MAAU,MAAM,yIAC8D,CAQlF,SAAgB,EAAe,EAAQ,CACrC,EAAiB,EASnB,SAAgB,EAAe,EAAM,CACnC,OAAO,EAAY,EAAM,YAAY,CASvC,SAAgB,EAAgB,EAAmB,CAUjD,OATI,EAAoB,GAGf,EAAoB,EAAG,GAAK,IAAK,CAMnC,GAAA,EAAA,EAAA,oBAJ6B,CAClC,MAAO,EACP,IAAK,EAAoB,IAC1B,CAAC,CACmC,CAAC,QAAS,UAAU,CAAC,CAS5D,SAAS,EAAsB,EAAM,CAEnC,OAAOA,EAAAA,EADK,IAAI,KAAK,mBAAmB,EAAe,KAAM,CAAE,QAAS,OAAQ,CAAC,CAChD,cAAc,EAAM,MAAM,CAAC,GAAG,MAAO,EAAe,KAAK,CA+B5F,SAAgB,EAAc,EAAM,CAUhC,OATF,EAAA,EAAA,SAAY,EAAK,CACR,EAAqB,EAAE,mBACT,EAAK,CACnB,EAAqB,GAAG,kBACX,EAAK,CAClB,EAAY,EAAM,OAAO,kBACZ,EAAK,CAClB,EAAY,EAAM,eAAe,CAEjC,EAAY,EAAM,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../../utils-BL_SrwnF.js";
|
|
2
2
|
import { format as t, formatDistance as n, formatDuration as r, intervalToDuration as i, isThisWeek as a, isThisYear as o, isToday as s, isYesterday as c } from "date-fns";
|
|
3
3
|
//#region common/dates/index.js
|
|
4
4
|
var l;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../validators/index.cjs`),t=require(
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../validators/index.cjs`),t=require(`../../utils-GofHWJKi.cjs`),n=require(`../../lib/validation-messages/validation-messages.cjs`);let r=require(`vue`);var i={components:{DtValidationMessages:n.default},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return t.m()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:``},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>e.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:``},messagesClass:{type:[String,Array,Object],default:``},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},emits:[`update:modelValue`],data(){let e=t.u(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:t.h(e)}}},computed:{formattedMessages(){return t.u(this.messages)},validationState(){return t.h(this.formattedMessages)}},watch:{disabled(e){this.provideObj.disabled=e},validationState(e){this.provideObj.validationState=e}},methods:{setGroupValue(e){this.internalValue=e,this.$emit(`update:modelValue`,e)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs[`aria-label`]&&(0,r.warn)(`It is expected that an aria-label is provided when there is no legend.`,this)}},a={InputGroupMixin:i};exports.InputGroupMixin=i,exports.default=a;
|
|
2
2
|
//# sourceMappingURL=input-group.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.cjs","names":["getUniqueString","validationMessageValidator","formatMessages","getValidationState"],"sources":["../../../common/mixins/input_group.js"],"sourcesContent":["import { warn } from 'vue';\nimport { DtValidationMessages } from '@/components/ValidationMessages';\nimport { validationMessageValidator } from '@/common/validators';\nimport {\n getUniqueString,\n formatMessages,\n getValidationState,\n} from '@/common/utils';\n\n/**\n * This mixin provides a base provide obj and set of components, props, computed, watchers and data attributes that are\n * commonly used in our input group components.\n * @displayName Input Group Mixin\n */\nexport const InputGroupMixin = {\n components: { DtValidationMessages },\n\n // provide data to slotted components\n provide () {\n return {\n groupContext: this.provideObj,\n setGroupValue: this.setGroupValue,\n };\n },\n\n props: {\n /**\n * The id of the input group\n */\n id: {\n type: String,\n default () {\n return getUniqueString();\n },\n },\n\n /**\n * The value of the input group\n */\n value: {\n type: [String, Number, Boolean, Object],\n default: null,\n },\n\n /**\n * The name of the input group\n */\n name: {\n type: String,\n required: true,\n },\n\n /**\n * The legend of the input group\n */\n legend: {\n type: String,\n default: '',\n },\n\n /**\n * Disables the input group\n * @values true, false\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Validation messages\n */\n messages: {\n type: Array,\n default: () => [],\n validator: messages => validationMessageValidator(messages),\n },\n\n /**\n * Show validation messages\n * @values true, false\n */\n showMessages: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Used to customize the legend element\n */\n legendClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the messages container\n */\n messagesClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A set of props that are passed into the legend element\n */\n legendChildProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * A set of props that are passed into the messages container\n */\n messagesChildProps: {\n type: Object,\n default: () => ({}),\n },\n },\n\n emits: [\n /**\n * Event fired to sync the modelValue prop with the parent component\n *\n * @event update:modelValue\n * @type {String | Number | Boolean | Object}\n */\n 'update:modelValue',\n ],\n\n data () {\n const formattedMessages = formatMessages(this.messages);\n\n return {\n // wrap values in object to make reactive\n provideObj: {\n name: this.name,\n disabled: this.disabled,\n validationState: getValidationState(formattedMessages),\n },\n };\n },\n\n computed: {\n formattedMessages () {\n return formatMessages(this.messages);\n },\n\n validationState () {\n return getValidationState(this.formattedMessages);\n },\n },\n\n watch: {\n disabled (newDisabled) {\n this.provideObj.disabled = newDisabled;\n },\n\n validationState (newValidationState) {\n this.provideObj.validationState = newValidationState;\n },\n },\n\n methods: {\n /*\n * provided value to support 2 way binding for slotted input components.\n * slotted input components will change this value and need to emit new value up.\n */\n setGroupValue (newValue) {\n this.internalValue = newValue;\n this.$emit('update:modelValue', newValue);\n },\n },\n\n mounted () {\n if (!this.legend && !this.$slots.legend && !this.$attrs['aria-label']) {\n warn('It is expected that an aria-label is provided when there is no legend.', this);\n }\n },\n};\n\nexport default {\n InputGroupMixin,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-group.cjs","names":["getUniqueString","validationMessageValidator","formatMessages","getValidationState"],"sources":["../../../common/mixins/input_group.js"],"sourcesContent":["import { warn } from 'vue';\nimport { DtValidationMessages } from '@/components/ValidationMessages';\nimport { validationMessageValidator } from '@/common/validators';\nimport {\n getUniqueString,\n formatMessages,\n getValidationState,\n} from '@/common/utils';\n\n/**\n * This mixin provides a base provide obj and set of components, props, computed, watchers and data attributes that are\n * commonly used in our input group components.\n * @displayName Input Group Mixin\n */\nexport const InputGroupMixin = {\n components: { DtValidationMessages },\n\n // provide data to slotted components\n provide () {\n return {\n groupContext: this.provideObj,\n setGroupValue: this.setGroupValue,\n };\n },\n\n props: {\n /**\n * The id of the input group\n */\n id: {\n type: String,\n default () {\n return getUniqueString();\n },\n },\n\n /**\n * The value of the input group\n */\n value: {\n type: [String, Number, Boolean, Object],\n default: null,\n },\n\n /**\n * The name of the input group\n */\n name: {\n type: String,\n required: true,\n },\n\n /**\n * The legend of the input group\n */\n legend: {\n type: String,\n default: '',\n },\n\n /**\n * Disables the input group\n * @values true, false\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Validation messages\n */\n messages: {\n type: Array,\n default: () => [],\n validator: messages => validationMessageValidator(messages),\n },\n\n /**\n * Show validation messages\n * @values true, false\n */\n showMessages: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Used to customize the legend element\n */\n legendClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the messages container\n */\n messagesClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A set of props that are passed into the legend element\n */\n legendChildProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * A set of props that are passed into the messages container\n */\n messagesChildProps: {\n type: Object,\n default: () => ({}),\n },\n },\n\n emits: [\n /**\n * Event fired to sync the modelValue prop with the parent component\n *\n * @event update:modelValue\n * @type {String | Number | Boolean | Object}\n */\n 'update:modelValue',\n ],\n\n data () {\n const formattedMessages = formatMessages(this.messages);\n\n return {\n // wrap values in object to make reactive\n provideObj: {\n name: this.name,\n disabled: this.disabled,\n validationState: getValidationState(formattedMessages),\n },\n };\n },\n\n computed: {\n formattedMessages () {\n return formatMessages(this.messages);\n },\n\n validationState () {\n return getValidationState(this.formattedMessages);\n },\n },\n\n watch: {\n disabled (newDisabled) {\n this.provideObj.disabled = newDisabled;\n },\n\n validationState (newValidationState) {\n this.provideObj.validationState = newValidationState;\n },\n },\n\n methods: {\n /*\n * provided value to support 2 way binding for slotted input components.\n * slotted input components will change this value and need to emit new value up.\n */\n setGroupValue (newValue) {\n this.internalValue = newValue;\n this.$emit('update:modelValue', newValue);\n },\n },\n\n mounted () {\n if (!this.legend && !this.$slots.legend && !this.$attrs['aria-label']) {\n warn('It is expected that an aria-label is provided when there is no legend.', this);\n }\n },\n};\n\nexport default {\n InputGroupMixin,\n};\n"],"mappings":"4SAcA,IAAa,EAAkB,CAC7B,WAAY,CAAE,qBAAA,EAAA,QAAsB,CAGpC,SAAW,CACT,MAAO,CACL,aAAc,KAAK,WACnB,cAAe,KAAK,cACrB,EAGH,MAAO,CAIL,GAAI,CACF,KAAM,OACN,SAAW,CACT,OAAOA,EAAAA,GAAiB,EAE3B,CAKD,MAAO,CACL,KAAM,CAAC,OAAQ,OAAQ,QAAS,OAAO,CACvC,QAAS,KACV,CAKD,KAAM,CACJ,KAAM,OACN,SAAU,GACX,CAKD,OAAQ,CACN,KAAM,OACN,QAAS,GACV,CAMD,SAAU,CACR,KAAM,QACN,QAAS,GACV,CAKD,SAAU,CACR,KAAM,MACN,YAAe,EAAE,CACjB,UAAW,GAAYC,EAAAA,2BAA2B,EAAS,CAC5D,CAMD,aAAc,CACZ,KAAM,QACN,QAAS,GACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,cAAe,CACb,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,iBAAkB,CAChB,KAAM,OACN,aAAgB,EAAE,EACnB,CAKD,mBAAoB,CAClB,KAAM,OACN,aAAgB,EAAE,EACnB,CACF,CAED,MAAO,CAOL,oBACD,CAED,MAAQ,CACN,IAAM,EAAoBC,EAAAA,EAAe,KAAK,SAAS,CAEvD,MAAO,CAEL,WAAY,CACV,KAAM,KAAK,KACX,SAAU,KAAK,SACf,gBAAiBC,EAAAA,EAAmB,EAAkB,CACvD,CACF,EAGH,SAAU,CACR,mBAAqB,CACnB,OAAOD,EAAAA,EAAe,KAAK,SAAS,EAGtC,iBAAmB,CACjB,OAAOC,EAAAA,EAAmB,KAAK,kBAAkB,EAEpD,CAED,MAAO,CACL,SAAU,EAAa,CACrB,KAAK,WAAW,SAAW,GAG7B,gBAAiB,EAAoB,CACnC,KAAK,WAAW,gBAAkB,GAErC,CAED,QAAS,CAKP,cAAe,EAAU,CACvB,KAAK,cAAgB,EACrB,KAAK,MAAM,oBAAqB,EAAS,EAE5C,CAED,SAAW,CACL,CAAC,KAAK,QAAU,CAAC,KAAK,OAAO,QAAU,CAAC,KAAK,OAAO,gBACtD,EAAA,EAAA,MAAK,yEAA0E,KAAK,EAGzF,CAED,EAAe,CACb,kBACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { validationMessageValidator as e } from "../validators/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { h as t, m as n, u as r } from "../../utils-BL_SrwnF.js";
|
|
3
3
|
import i from "../../lib/validation-messages/validation-messages.js";
|
|
4
4
|
import { warn as a } from "vue";
|
|
5
5
|
//#region common/mixins/input_group.js
|
|
@@ -75,19 +75,19 @@ var o = {
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["update:modelValue"],
|
|
77
77
|
data() {
|
|
78
|
-
let e =
|
|
78
|
+
let e = r(this.messages);
|
|
79
79
|
return { provideObj: {
|
|
80
80
|
name: this.name,
|
|
81
81
|
disabled: this.disabled,
|
|
82
|
-
validationState:
|
|
82
|
+
validationState: t(e)
|
|
83
83
|
} };
|
|
84
84
|
},
|
|
85
85
|
computed: {
|
|
86
86
|
formattedMessages() {
|
|
87
|
-
return
|
|
87
|
+
return r(this.messages);
|
|
88
88
|
},
|
|
89
89
|
validationState() {
|
|
90
|
-
return
|
|
90
|
+
return t(this.formattedMessages);
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
watch: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../constants/index.cjs`),t=require(`../validators/index.cjs`),n=require(
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../constants/index.cjs`),t=require(`../validators/index.cjs`),n=require(`../../utils-GofHWJKi.cjs`);let r=require(`vue`);var i={inheritAttrs:!1,props:{label:{type:String,default:``},name:{type:String,default:``},value:{type:[String,Number,Boolean,Object],default:null},description:{type:String,default:``},disabled:{type:Boolean,default:!1},validationState:{type:String,default:``,validator:t=>t?Object.values(e.VALIDATION_MESSAGE_TYPES).includes(t):!0},inputClass:{type:[String,Array,Object],default:``},labelClass:{type:[String,Array,Object],default:``},descriptionClass:{type:[String,Array,Object],default:``},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})}},data(){return{internalDisabled:this.disabled,internalValidationState:this.validationState}},watch:{disabled(e){this.internalDisabled=e},validationState(e){this.internalValidationState=e}},methods:{validateInputLabels(e,t){!e&&!t&&(0,r.warn)(`You must provide an aria-label when there is no label passed`,this)}}},a={props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:null}},data(){return{internalChecked:this.modelValue,internalIndeterminate:this.indeterminate}},watch:{modelValue(e){this.internalChecked=e},indeterminate(e){this.internalIndeterminate=e}}},o={inject:{groupContext:{default:{}},setGroupValue:{default:()=>()=>{}}},data(){return{internalValue:this.value}},computed:{hasGroup(){return Object.prototype.hasOwnProperty.call(this.groupContext,`name`)},groupName(){return this.groupContext?.name??``},groupValue(){return this.groupContext?.value},groupDisabled(){return this.groupContext?.disabled??!1},groupValidationState(){return this.groupContext?.validationState??null},internalName(){return this.name||this.groupName}},watch:{value(e){this.internalValue=e},groupValue:{immediate:!0,handler(e){this.hasGroup&&(this.internalValue=e)}},groupDisabled:{immediate:!0,handler(e){this.hasGroup&&(this.internalDisabled=this.disabled||e)}},groupValidationState:{immediate:!0,handler(e){this.hasGroup&&(this.internalValidationState=e||this.validationState)}}},created(){let e=Object.prototype.hasOwnProperty.call(this.groupContext,`name`),t=this.groupContext?.name;this.name&&e&&t!==this.name&&(0,r.warn)(`Component is being used inside a Group. Did you mean to override the name prop value (${t}) with (${this.name})? It is recommended to only set name at the Group level.`,this)}},s={props:{messagesClass:{type:[String,Array,Object],default:``},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:e=>t.validationMessageValidator(e)}},computed:{formattedMessages(){return n.u(this.messages)}}},c={InputMixin:i,CheckableMixin:a,GroupableMixin:o,MessagesMixin:s};exports.CheckableMixin=a,exports.GroupableMixin=o,exports.InputMixin=i,exports.MessagesMixin=s,exports.default=c;
|
|
2
2
|
//# sourceMappingURL=input.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.cjs","names":["VALIDATION_MESSAGE_TYPES","validationMessageValidator","formatMessages"],"sources":["../../../common/mixins/input.js"],"sourcesContent":["import { warn } from 'vue';\nimport { VALIDATION_MESSAGE_TYPES } from '@/common/constants';\nimport { validationMessageValidator } from '@/common/validators';\nimport { formatMessages } from '@/common/utils';\n\n/**\n * This mixin provides a base set of props, watchers and data attributes that are commonly used in our input components.\n * @displayName Input Mixin\n */\nexport const InputMixin = {\n inheritAttrs: false,\n\n props: {\n /**\n * A provided label for the input\n */\n label: {\n type: String,\n default: '',\n },\n\n /**\n * The name of the input\n */\n name: {\n type: String,\n default: '',\n },\n\n /**\n * The value of the input\n */\n value: {\n type: [String, Number, Boolean, Object],\n default: null,\n },\n\n /**\n * Describes the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Disables the input\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The validation state of the input\n */\n validationState: {\n type: String,\n default: '',\n validator: validationState => {\n if (!validationState) {\n return true;\n }\n\n return Object.values(VALIDATION_MESSAGE_TYPES).includes(validationState);\n },\n },\n\n /**\n * Used to customize the input element\n */\n inputClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the label container\n */\n labelClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the description container\n */\n descriptionClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A set of props that are passed into the label container\n */\n labelChildProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * A set of props that are passed into the description container\n */\n descriptionChildProps: {\n type: Object,\n default: () => ({}),\n },\n },\n\n data () {\n return {\n internalDisabled: this.disabled,\n internalValidationState: this.validationState,\n };\n },\n\n watch: {\n disabled (newDisabled) {\n // update internal disabled when the prop changes\n this.internalDisabled = newDisabled;\n },\n\n validationState (newValidationState) {\n // update internal validation state when the prop changes\n this.internalValidationState = newValidationState;\n },\n },\n\n methods: {\n /**\n * @param {Boolean | String} hasLabelOrLabel either a boolean indicating the label exists or the label itself\n * @param {String} ariaLabel the aria-label passed (null/undefined if it's not passed)\n */\n validateInputLabels (hasLabelOrLabel, ariaLabel) {\n if (!hasLabelOrLabel && !ariaLabel) {\n warn(\n 'You must provide an aria-label when there is no label passed',\n this,\n );\n }\n },\n },\n};\n\n/**\n * This mixin provides common logic shared amongst our checkable inputs.\n *\n * This includes the group context, checked model & prop, internal data attributes as well as a set common computed\n * properties and watchers. It also includes the group name warning logic.\n * @displayName Checkable Mixin\n */\nexport const CheckableMixin = {\n props: {\n /**\n * Used to set the checked state of the checkable input\n * @model modelValue\n */\n modelValue: {\n type: Boolean,\n default: false,\n },\n /**\n * Indeterminate State, toggling indeterminate checkbox will uncheck\n */\n indeterminate: {\n type: Boolean,\n default: false,\n },\n /**\n * The value of the input\n */\n value: {\n type: [String, Number, Boolean],\n default: null,\n },\n },\n\n data () {\n return {\n internalChecked: this.modelValue,\n internalIndeterminate: this.indeterminate,\n };\n },\n\n watch: {\n modelValue (newChecked) {\n // update internal checked when the prop changes\n this.internalChecked = newChecked;\n },\n\n indeterminate (newValue) {\n this.internalIndeterminate = newValue;\n },\n },\n};\n\n/**\n * This mixin provides common logic shared amongst our groupable inputs.\n *\n * This includes the group context and internal data attributes as well as a set common computed\n * properties and watchers. It also includes the group name warning logic.\n * @displayName Groupable Mixin\n */\nexport const GroupableMixin = {\n inject: {\n // Object used to pass data from the group\n groupContext: {\n default: {},\n },\n\n // Method used to update the group value\n setGroupValue: {\n default: () => { return () => {}; },\n },\n },\n\n data () {\n return {\n internalValue: this.value,\n };\n },\n\n computed: {\n hasGroup () {\n return Object.prototype.hasOwnProperty.call(this.groupContext, 'name');\n },\n\n groupName () {\n return this.groupContext?.name ?? '';\n },\n\n groupValue () {\n return this.groupContext?.value;\n },\n\n groupDisabled () {\n return this.groupContext?.disabled ?? false;\n },\n\n groupValidationState () {\n return this.groupContext?.validationState ?? null;\n },\n\n internalName () {\n return this.name || this.groupName;\n },\n },\n\n watch: {\n value (newValue) {\n // update internal value when the prop changes\n this.internalValue = newValue;\n },\n\n groupValue: {\n immediate: true,\n handler (newGroupValue) {\n if (this.hasGroup) {\n // update internal value when the group disabled changes\n this.internalValue = newGroupValue;\n }\n },\n },\n\n groupDisabled: {\n immediate: true,\n handler (newGroupDisabled) {\n if (this.hasGroup) {\n // update internal disabled when the group disabled changes\n this.internalDisabled = this.disabled || newGroupDisabled;\n }\n },\n },\n\n groupValidationState: {\n immediate: true,\n handler (newGroupValidationState) {\n if (this.hasGroup) {\n // update internal validation state when the group validation state changes\n this.internalValidationState = newGroupValidationState || this.validationState;\n }\n },\n },\n },\n\n created () {\n const hasGroupName = Object.prototype.hasOwnProperty.call(this.groupContext, 'name');\n const reactiveGroupName = this.groupContext?.name;\n\n if (!!this.name && hasGroupName && reactiveGroupName !== this.name) {\n warn(\n 'Component is being used inside a Group. Did you mean to override the name prop value ' +\n `(${reactiveGroupName}) with (${this.name})? It is recommended to only set name at the Group level.`,\n this,\n );\n }\n },\n};\n\n/**\n * This mixin provides common logic shared amongst our validation messages inputs.\n * @displayName Messages Mixin\n */\nexport const MessagesMixin = {\n props: {\n /**\n * Used to customize the validation messages component\n */\n messagesClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A set of props that are passed into the validation messages component\n */\n messagesChildProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * Used to hide / show the validation messages\n * @values true, false\n */\n showMessages: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Validation messages\n */\n messages: {\n type: Array,\n default: () => [],\n validator: messages => {\n return validationMessageValidator(messages);\n },\n },\n },\n\n computed: {\n formattedMessages () {\n return formatMessages(this.messages);\n },\n },\n};\n\nexport default {\n InputMixin,\n CheckableMixin,\n GroupableMixin,\n MessagesMixin,\n};\n"],"mappings":"uQASA,IAAa,EAAa,CACxB,aAAc,GAEd,MAAO,CAIL,MAAO,CACL,KAAM,OACN,QAAS,GACV,CAKD,KAAM,CACJ,KAAM,OACN,QAAS,GACV,CAKD,MAAO,CACL,KAAM,CAAC,OAAQ,OAAQ,QAAS,OAAO,CACvC,QAAS,KACV,CAKD,YAAa,CACX,KAAM,OACN,QAAS,GACV,CAKD,SAAU,CACR,KAAM,QACN,QAAS,GACV,CAKD,gBAAiB,CACf,KAAM,OACN,QAAS,GACT,UAAW,GACJ,EAIE,OAAO,OAAOA,EAAAA,yBAAyB,CAAC,SAAS,EAAgB,CAH/D,GAKZ,CAKD,WAAY,CACV,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,WAAY,CACV,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,iBAAkB,CAChB,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,gBAAiB,CACf,KAAM,OACN,aAAgB,EAAE,EACnB,CAKD,sBAAuB,CACrB,KAAM,OACN,aAAgB,EAAE,EACnB,CACF,CAED,MAAQ,CACN,MAAO,CACL,iBAAkB,KAAK,SACvB,wBAAyB,KAAK,gBAC/B,EAGH,MAAO,CACL,SAAU,EAAa,CAErB,KAAK,iBAAmB,GAG1B,gBAAiB,EAAoB,CAEnC,KAAK,wBAA0B,GAElC,CAED,QAAS,CAKP,oBAAqB,EAAiB,EAAW,CAC3C,CAAC,GAAmB,CAAC,IACvB,EAAA,EAAA,MACE,+DACA,KACD,EAGN,CACF,CASY,EAAiB,CAC5B,MAAO,CAKL,WAAY,CACV,KAAM,QACN,QAAS,GACV,CAID,cAAe,CACb,KAAM,QACN,QAAS,GACV,CAID,MAAO,CACL,KAAM,CAAC,OAAQ,OAAQ,QAAQ,CAC/B,QAAS,KACV,CACF,CAED,MAAQ,CACN,MAAO,CACL,gBAAiB,KAAK,WACtB,sBAAuB,KAAK,cAC7B,EAGH,MAAO,CACL,WAAY,EAAY,CAEtB,KAAK,gBAAkB,GAGzB,cAAe,EAAU,CACvB,KAAK,sBAAwB,GAEhC,CACF,CASY,EAAiB,CAC5B,OAAQ,CAEN,aAAc,CACZ,QAAS,EAAE,CACZ,CAGD,cAAe,CACb,gBAA8B,GAC/B,CACF,CAED,MAAQ,CACN,MAAO,CACL,cAAe,KAAK,MACrB,EAGH,SAAU,CACR,UAAY,CACV,OAAO,OAAO,UAAU,eAAe,KAAK,KAAK,aAAc,OAAO,EAGxE,WAAa,CACX,OAAO,KAAK,cAAc,MAAQ,IAGpC,YAAc,CACZ,OAAO,KAAK,cAAc,OAG5B,eAAiB,CACf,OAAO,KAAK,cAAc,UAAY,IAGxC,sBAAwB,CACtB,OAAO,KAAK,cAAc,iBAAmB,MAG/C,cAAgB,CACd,OAAO,KAAK,MAAQ,KAAK,WAE5B,CAED,MAAO,CACL,MAAO,EAAU,CAEf,KAAK,cAAgB,GAGvB,WAAY,CACV,UAAW,GACX,QAAS,EAAe,CAClB,KAAK,WAEP,KAAK,cAAgB,IAG1B,CAED,cAAe,CACb,UAAW,GACX,QAAS,EAAkB,CACrB,KAAK,WAEP,KAAK,iBAAmB,KAAK,UAAY,IAG9C,CAED,qBAAsB,CACpB,UAAW,GACX,QAAS,EAAyB,CAC5B,KAAK,WAEP,KAAK,wBAA0B,GAA2B,KAAK,kBAGpE,CACF,CAED,SAAW,CACT,IAAM,EAAe,OAAO,UAAU,eAAe,KAAK,KAAK,aAAc,OAAO,CAC9E,EAAoB,KAAK,cAAc,KAEvC,KAAK,MAAQ,GAAgB,IAAsB,KAAK,OAC5D,EAAA,EAAA,MACE,yFACI,EAAkB,UAAU,KAAK,KAAK,2DAC1C,KACD,EAGN,CAMY,EAAgB,CAC3B,MAAO,CAIL,cAAe,CACb,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,mBAAoB,CAClB,KAAM,OACN,aAAgB,EAAE,EACnB,CAMD,aAAc,CACZ,KAAM,QACN,QAAS,GACV,CAKD,SAAU,CACR,KAAM,MACN,YAAe,EAAE,CACjB,UAAW,GACFC,EAAAA,2BAA2B,EAAS,CAE9C,CACF,CAED,SAAU,CACR,mBAAqB,CACnB,OAAOC,EAAAA,eAAe,KAAK,SAAS,EAEvC,CACF,CAED,EAAe,CACb,aACA,iBACA,iBACA,gBACD"}
|
|
1
|
+
{"version":3,"file":"input.cjs","names":["VALIDATION_MESSAGE_TYPES","validationMessageValidator","formatMessages"],"sources":["../../../common/mixins/input.js"],"sourcesContent":["import { warn } from 'vue';\nimport { VALIDATION_MESSAGE_TYPES } from '@/common/constants';\nimport { validationMessageValidator } from '@/common/validators';\nimport { formatMessages } from '@/common/utils';\n\n/**\n * This mixin provides a base set of props, watchers and data attributes that are commonly used in our input components.\n * @displayName Input Mixin\n */\nexport const InputMixin = {\n inheritAttrs: false,\n\n props: {\n /**\n * A provided label for the input\n */\n label: {\n type: String,\n default: '',\n },\n\n /**\n * The name of the input\n */\n name: {\n type: String,\n default: '',\n },\n\n /**\n * The value of the input\n */\n value: {\n type: [String, Number, Boolean, Object],\n default: null,\n },\n\n /**\n * Describes the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Disables the input\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The validation state of the input\n */\n validationState: {\n type: String,\n default: '',\n validator: validationState => {\n if (!validationState) {\n return true;\n }\n\n return Object.values(VALIDATION_MESSAGE_TYPES).includes(validationState);\n },\n },\n\n /**\n * Used to customize the input element\n */\n inputClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the label container\n */\n labelClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Used to customize the description container\n */\n descriptionClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A set of props that are passed into the label container\n */\n labelChildProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * A set of props that are passed into the description container\n */\n descriptionChildProps: {\n type: Object,\n default: () => ({}),\n },\n },\n\n data () {\n return {\n internalDisabled: this.disabled,\n internalValidationState: this.validationState,\n };\n },\n\n watch: {\n disabled (newDisabled) {\n // update internal disabled when the prop changes\n this.internalDisabled = newDisabled;\n },\n\n validationState (newValidationState) {\n // update internal validation state when the prop changes\n this.internalValidationState = newValidationState;\n },\n },\n\n methods: {\n /**\n * @param {Boolean | String} hasLabelOrLabel either a boolean indicating the label exists or the label itself\n * @param {String} ariaLabel the aria-label passed (null/undefined if it's not passed)\n */\n validateInputLabels (hasLabelOrLabel, ariaLabel) {\n if (!hasLabelOrLabel && !ariaLabel) {\n warn(\n 'You must provide an aria-label when there is no label passed',\n this,\n );\n }\n },\n },\n};\n\n/**\n * This mixin provides common logic shared amongst our checkable inputs.\n *\n * This includes the group context, checked model & prop, internal data attributes as well as a set common computed\n * properties and watchers. It also includes the group name warning logic.\n * @displayName Checkable Mixin\n */\nexport const CheckableMixin = {\n props: {\n /**\n * Used to set the checked state of the checkable input\n * @model modelValue\n */\n modelValue: {\n type: Boolean,\n default: false,\n },\n /**\n * Indeterminate State, toggling indeterminate checkbox will uncheck\n */\n indeterminate: {\n type: Boolean,\n default: false,\n },\n /**\n * The value of the input\n */\n value: {\n type: [String, Number, Boolean],\n default: null,\n },\n },\n\n data () {\n return {\n internalChecked: this.modelValue,\n internalIndeterminate: this.indeterminate,\n };\n },\n\n watch: {\n modelValue (newChecked) {\n // update internal checked when the prop changes\n this.internalChecked = newChecked;\n },\n\n indeterminate (newValue) {\n this.internalIndeterminate = newValue;\n },\n },\n};\n\n/**\n * This mixin provides common logic shared amongst our groupable inputs.\n *\n * This includes the group context and internal data attributes as well as a set common computed\n * properties and watchers. It also includes the group name warning logic.\n * @displayName Groupable Mixin\n */\nexport const GroupableMixin = {\n inject: {\n // Object used to pass data from the group\n groupContext: {\n default: {},\n },\n\n // Method used to update the group value\n setGroupValue: {\n default: () => { return () => {}; },\n },\n },\n\n data () {\n return {\n internalValue: this.value,\n };\n },\n\n computed: {\n hasGroup () {\n return Object.prototype.hasOwnProperty.call(this.groupContext, 'name');\n },\n\n groupName () {\n return this.groupContext?.name ?? '';\n },\n\n groupValue () {\n return this.groupContext?.value;\n },\n\n groupDisabled () {\n return this.groupContext?.disabled ?? false;\n },\n\n groupValidationState () {\n return this.groupContext?.validationState ?? null;\n },\n\n internalName () {\n return this.name || this.groupName;\n },\n },\n\n watch: {\n value (newValue) {\n // update internal value when the prop changes\n this.internalValue = newValue;\n },\n\n groupValue: {\n immediate: true,\n handler (newGroupValue) {\n if (this.hasGroup) {\n // update internal value when the group disabled changes\n this.internalValue = newGroupValue;\n }\n },\n },\n\n groupDisabled: {\n immediate: true,\n handler (newGroupDisabled) {\n if (this.hasGroup) {\n // update internal disabled when the group disabled changes\n this.internalDisabled = this.disabled || newGroupDisabled;\n }\n },\n },\n\n groupValidationState: {\n immediate: true,\n handler (newGroupValidationState) {\n if (this.hasGroup) {\n // update internal validation state when the group validation state changes\n this.internalValidationState = newGroupValidationState || this.validationState;\n }\n },\n },\n },\n\n created () {\n const hasGroupName = Object.prototype.hasOwnProperty.call(this.groupContext, 'name');\n const reactiveGroupName = this.groupContext?.name;\n\n if (!!this.name && hasGroupName && reactiveGroupName !== this.name) {\n warn(\n 'Component is being used inside a Group. Did you mean to override the name prop value ' +\n `(${reactiveGroupName}) with (${this.name})? It is recommended to only set name at the Group level.`,\n this,\n );\n }\n },\n};\n\n/**\n * This mixin provides common logic shared amongst our validation messages inputs.\n * @displayName Messages Mixin\n */\nexport const MessagesMixin = {\n props: {\n /**\n * Used to customize the validation messages component\n */\n messagesClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * A set of props that are passed into the validation messages component\n */\n messagesChildProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * Used to hide / show the validation messages\n * @values true, false\n */\n showMessages: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Validation messages\n */\n messages: {\n type: Array,\n default: () => [],\n validator: messages => {\n return validationMessageValidator(messages);\n },\n },\n },\n\n computed: {\n formattedMessages () {\n return formatMessages(this.messages);\n },\n },\n};\n\nexport default {\n InputMixin,\n CheckableMixin,\n GroupableMixin,\n MessagesMixin,\n};\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VALIDATION_MESSAGE_TYPES as e } from "../constants/index.js";
|
|
2
2
|
import { validationMessageValidator as t } from "../validators/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { u as n } from "../../utils-BL_SrwnF.js";
|
|
4
4
|
import { warn as r } from "vue";
|
|
5
5
|
//#region common/mixins/input.js
|
|
6
6
|
var i = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./dom.cjs`),t=require(
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./dom.cjs`),t=require(`../../utils-GofHWJKi.cjs`);var n=`listElementKey is required or the referenced element doesn't exist. Received listElement: `,r=({listItemRole:r=`option`,indexKey:i=`highlightIndex`,idKey:a=`highlightId`,listElementKey:o=`listRef`,activeItemKey:s=``,openMethod:c=null,afterHighlightMethod:l=null,beginningOfListMethod:u=null,endOfListMethod:d=null,scrollToOnHighlight:f=!0,focusOnKeyboardNavigation:p=!1}={})=>({mixins:[e.default],data(){return{[i]:-1,[a]:``,scrollToOnHighlight:f,focusOnKeyboardNavigation:p}},provide(){return{highlightId:()=>this[a]}},methods:{_getListElement(){return t.O(this[o]()?.$el)||this[o]()},_itemsLength(){let e=this._getListItemNodes();return e===null?0:e.length},_getListItemNodes(){let e=this._getListElement();if(!e)return console.error(n,e),null;let t=(Array.isArray(r)?r:[r]).map(e=>`[role="${e}"]`).join(`, `);return Array.from(e.querySelectorAll(`${t}, #sr-only-close-button`)).filter(e=>e.getAttribute(`role`)!==`menuitemradio`||e.id)},onUpKey(){c&&this[c](!0),this[i]>0?this.setHighlightIndex(this[i]-1):u&&this[u](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){c&&this[c](!0),this[i]<this._itemsLength()-1?this.setHighlightIndex(this[i]+1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(e){let t=this._getListItemNodes(),n=(t||[]).filter(t=>t.textContent.trim().toLowerCase().startsWith(e.toLowerCase()));if(n.length<=0)return;let r=n.findIndex(e=>this[i]===t.indexOf(e)),a=t.indexOf(r<n.length-1?n[r+1]:n[0]);this.setHighlightIndex(a),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(e){return e.length>1?!1:e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(e){this[i]=e,this[a]=this._getItemId(e),this._itemsLength()&&l&&this[l](e)},setHighlightId(e){if(!e)return;let t=this._getItemIndex(e);this[a]=e,this[i]=t,this._itemsLength()&&l&&this[l](t)},_getItemIndex(e){if(!e)return-1;if(this._getListElement())return this._getListItemNodes()?.findIndex(t=>t.id===e)??-1},_getItemId(e){return this._getListItemNodes()?.[e]?.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;let e=this[s];if(e){let t=this._getListElement();this.scrollElementIntoViewIfNeeded(e,null,null,t)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;let e=this[s];e&&e.focus()}}});exports.default=r;
|
|
2
2
|
//# sourceMappingURL=keyboard-list-navigation.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-list-navigation.cjs","names":["Dom","returnFirstEl"],"sources":["../../../common/mixins/keyboard_list_navigation.js"],"sourcesContent":["import Dom from './dom';\nimport { returnFirstEl } from '@/common/utils';\n\nconst ERROR_INVALID_LIST_ELEMENT = (\n 'listElementKey is required or the referenced ' +\n 'element doesn\\'t exist. Received listElement: '\n);\n\n/**\n * Usage: `mixins: [keyboardNavigationMixin(options)]`\n *\n * This mixin provides some common data and methods to navigate a list of items\n * (such as a dropdown or select menu) by keyboard.\n *\n * To be effective, you must bind the onUpKey and onDownKey events, usually to\n * the root element of the component.\n *\n * @param listItemRole\n * @param indexKey\n * @param idKey\n * @param listElementKey\n * @param activeItemKey\n * @param openMethod\n * @param afterHighlightMethod\n * @param beginningOfListMethod\n * @param endOfListMethod\n * @param scrollToOnHighlight\n * @param focusOnKeyboardNavigation\n * @displayName Keyboard Navigation Mixin\n */\nexport default ({\n // Role or array of roles of the list items. This is used to identify the list items\n // so you must update this if the role of your list items is anything other than 'option'\n listItemRole = 'option',\n // Key of the data prop that will be added to the component.\n indexKey = 'highlightIndex',\n idKey = 'highlightId',\n // Key of the method that references the list element.\n listElementKey = 'listRef',\n // Optional, Key of the computed prop that references the currently active item element.\n activeItemKey = '',\n // Optional, name of the method that toggles the list visibility. Used for\n // opening the list when up or down is pressed.\n openMethod = null,\n // Optional, method to call when the highlightIndex is changed.\n afterHighlightMethod = null,\n // Optional, method to call when the highlightIndex goes past the beginning of the list.\n beginningOfListMethod = null,\n // Optional, method to call when the highlightIndex goes past the end of the list.\n endOfListMethod = null,\n // Scroll the active element into view when highlighted by a keyboard event.\n scrollToOnHighlight = true,\n // Focus the active element on keyboard navigation.\n focusOnKeyboardNavigation = false,\n} = {}) => ({\n mixins: [Dom],\n\n data () {\n return {\n [indexKey]: -1,\n [idKey]: '',\n scrollToOnHighlight,\n focusOnKeyboardNavigation,\n };\n },\n\n provide () {\n return {\n highlightId: () => this[idKey],\n };\n },\n\n methods: {\n // Returns the list element\n // this[listElement]() can return a Vue component, in which case we need to target\n // the $el property, or it can simply be an html element.\n _getListElement () {\n return returnFirstEl(this[listElementKey]()?.$el) || this[listElementKey]();\n },\n\n // Gets the length of all the items in the list, uses the listItemRole param to determine\n // whether an element is a list item.\n _itemsLength () {\n const listItems = this._getListItemNodes();\n\n if (listItems === null) {\n return 0;\n }\n\n return listItems.length;\n },\n\n // Gets all the list item nodes within the list element\n _getListItemNodes () {\n const listElement = this._getListElement();\n\n if (!listElement) {\n console.error(ERROR_INVALID_LIST_ELEMENT, listElement);\n return null;\n }\n\n // Require IDs for the new radio navigation path; preserve ID-less rows for legacy roles.\n const roles = Array.isArray(listItemRole) ? listItemRole : [listItemRole];\n const selector = roles.map(role => `[role=\"${role}\"]`).join(', ');\n return Array.from(listElement.querySelectorAll(`${selector}, #sr-only-close-button`))\n .filter(item => item.getAttribute('role') !== 'menuitemradio' || item.id);\n },\n\n onUpKey () {\n if (openMethod) {\n this[openMethod](true);\n }\n if (this[indexKey] > 0) {\n this.setHighlightIndex(this[indexKey] - 1);\n } else if (beginningOfListMethod) {\n this[beginningOfListMethod]();\n }\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onDownKey () {\n if (openMethod) {\n this[openMethod](true);\n }\n if (this[indexKey] < this._itemsLength() - 1) {\n this.setHighlightIndex(this[indexKey] + 1);\n } else if (endOfListMethod) {\n this[endOfListMethod]();\n }\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onHomeKey () {\n this.jumpToBeginning();\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onEndKey () {\n this.jumpToEnd();\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onNavigationKey (key) {\n const listItems = this._getListItemNodes();\n\n const matchingItems = (listItems || []).filter(item => {\n const content = item.textContent.trim().toLowerCase();\n return content.startsWith(key.toLowerCase());\n });\n\n if (matchingItems.length <= 0) {\n return;\n }\n\n const highlightedMatchingItemIndex = matchingItems.findIndex(item => {\n return this[indexKey] === listItems.indexOf(item);\n });\n\n const nextHighlightedItemIndex = listItems.indexOf(\n highlightedMatchingItemIndex < matchingItems.length - 1\n ? matchingItems[highlightedMatchingItemIndex + 1]\n : matchingItems[0],\n );\n\n this.setHighlightIndex(nextHighlightedItemIndex);\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n isValidLetter (key) {\n if (key.length > 1) {\n return false;\n }\n\n return (key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z');\n },\n\n jumpToBeginning () {\n this.setHighlightIndex(0);\n },\n\n jumpToEnd () {\n this.setHighlightIndex(this._itemsLength() - 1);\n },\n\n setHighlightIndex (num) {\n this[indexKey] = num;\n this[idKey] = this._getItemId(num);\n\n if (this._itemsLength() && afterHighlightMethod) {\n this[afterHighlightMethod](num);\n }\n },\n\n setHighlightId (id) {\n if (!id) return;\n const index = this._getItemIndex(id);\n this[idKey] = id;\n this[indexKey] = index;\n\n if (this._itemsLength() && afterHighlightMethod) this[afterHighlightMethod](index);\n },\n\n _getItemIndex (id) {\n if (!id) return -1;\n if (!this._getListElement()) return;\n return this._getListItemNodes()?.findIndex(item => item.id === id) ?? -1;\n },\n\n _getItemId (index) {\n return this._getListItemNodes()?.[index]?.id;\n },\n\n scrollActiveItemIntoViewIfNeeded () {\n if (!this.scrollToOnHighlight) {\n return;\n }\n const activeItemEl = this[activeItemKey];\n if (activeItemEl) {\n // When listElementKey is not passed,\n // scrollElementIntoViewIfNeeded will default to the immediate wrapper of the item.\n const listElement = this._getListElement();\n this.scrollElementIntoViewIfNeeded(activeItemEl, null, null, listElement);\n }\n },\n\n focusActiveItemIfNeeded () {\n if (!this.focusOnKeyboardNavigation) {\n return;\n }\n const activeItemEl = this[activeItemKey];\n if (activeItemEl) {\n activeItemEl.focus();\n }\n },\n },\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboard-list-navigation.cjs","names":["Dom","returnFirstEl"],"sources":["../../../common/mixins/keyboard_list_navigation.js"],"sourcesContent":["import Dom from './dom';\nimport { returnFirstEl } from '@/common/utils';\n\nconst ERROR_INVALID_LIST_ELEMENT = (\n 'listElementKey is required or the referenced ' +\n 'element doesn\\'t exist. Received listElement: '\n);\n\n/**\n * Usage: `mixins: [keyboardNavigationMixin(options)]`\n *\n * This mixin provides some common data and methods to navigate a list of items\n * (such as a dropdown or select menu) by keyboard.\n *\n * To be effective, you must bind the onUpKey and onDownKey events, usually to\n * the root element of the component.\n *\n * @param listItemRole\n * @param indexKey\n * @param idKey\n * @param listElementKey\n * @param activeItemKey\n * @param openMethod\n * @param afterHighlightMethod\n * @param beginningOfListMethod\n * @param endOfListMethod\n * @param scrollToOnHighlight\n * @param focusOnKeyboardNavigation\n * @displayName Keyboard Navigation Mixin\n */\nexport default ({\n // Role or array of roles of the list items. This is used to identify the list items\n // so you must update this if the role of your list items is anything other than 'option'\n listItemRole = 'option',\n // Key of the data prop that will be added to the component.\n indexKey = 'highlightIndex',\n idKey = 'highlightId',\n // Key of the method that references the list element.\n listElementKey = 'listRef',\n // Optional, Key of the computed prop that references the currently active item element.\n activeItemKey = '',\n // Optional, name of the method that toggles the list visibility. Used for\n // opening the list when up or down is pressed.\n openMethod = null,\n // Optional, method to call when the highlightIndex is changed.\n afterHighlightMethod = null,\n // Optional, method to call when the highlightIndex goes past the beginning of the list.\n beginningOfListMethod = null,\n // Optional, method to call when the highlightIndex goes past the end of the list.\n endOfListMethod = null,\n // Scroll the active element into view when highlighted by a keyboard event.\n scrollToOnHighlight = true,\n // Focus the active element on keyboard navigation.\n focusOnKeyboardNavigation = false,\n} = {}) => ({\n mixins: [Dom],\n\n data () {\n return {\n [indexKey]: -1,\n [idKey]: '',\n scrollToOnHighlight,\n focusOnKeyboardNavigation,\n };\n },\n\n provide () {\n return {\n highlightId: () => this[idKey],\n };\n },\n\n methods: {\n // Returns the list element\n // this[listElement]() can return a Vue component, in which case we need to target\n // the $el property, or it can simply be an html element.\n _getListElement () {\n return returnFirstEl(this[listElementKey]()?.$el) || this[listElementKey]();\n },\n\n // Gets the length of all the items in the list, uses the listItemRole param to determine\n // whether an element is a list item.\n _itemsLength () {\n const listItems = this._getListItemNodes();\n\n if (listItems === null) {\n return 0;\n }\n\n return listItems.length;\n },\n\n // Gets all the list item nodes within the list element\n _getListItemNodes () {\n const listElement = this._getListElement();\n\n if (!listElement) {\n console.error(ERROR_INVALID_LIST_ELEMENT, listElement);\n return null;\n }\n\n // Require IDs for the new radio navigation path; preserve ID-less rows for legacy roles.\n const roles = Array.isArray(listItemRole) ? listItemRole : [listItemRole];\n const selector = roles.map(role => `[role=\"${role}\"]`).join(', ');\n return Array.from(listElement.querySelectorAll(`${selector}, #sr-only-close-button`))\n .filter(item => item.getAttribute('role') !== 'menuitemradio' || item.id);\n },\n\n onUpKey () {\n if (openMethod) {\n this[openMethod](true);\n }\n if (this[indexKey] > 0) {\n this.setHighlightIndex(this[indexKey] - 1);\n } else if (beginningOfListMethod) {\n this[beginningOfListMethod]();\n }\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onDownKey () {\n if (openMethod) {\n this[openMethod](true);\n }\n if (this[indexKey] < this._itemsLength() - 1) {\n this.setHighlightIndex(this[indexKey] + 1);\n } else if (endOfListMethod) {\n this[endOfListMethod]();\n }\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onHomeKey () {\n this.jumpToBeginning();\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onEndKey () {\n this.jumpToEnd();\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n onNavigationKey (key) {\n const listItems = this._getListItemNodes();\n\n const matchingItems = (listItems || []).filter(item => {\n const content = item.textContent.trim().toLowerCase();\n return content.startsWith(key.toLowerCase());\n });\n\n if (matchingItems.length <= 0) {\n return;\n }\n\n const highlightedMatchingItemIndex = matchingItems.findIndex(item => {\n return this[indexKey] === listItems.indexOf(item);\n });\n\n const nextHighlightedItemIndex = listItems.indexOf(\n highlightedMatchingItemIndex < matchingItems.length - 1\n ? matchingItems[highlightedMatchingItemIndex + 1]\n : matchingItems[0],\n );\n\n this.setHighlightIndex(nextHighlightedItemIndex);\n this.scrollActiveItemIntoViewIfNeeded();\n this.focusActiveItemIfNeeded();\n },\n\n isValidLetter (key) {\n if (key.length > 1) {\n return false;\n }\n\n return (key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z');\n },\n\n jumpToBeginning () {\n this.setHighlightIndex(0);\n },\n\n jumpToEnd () {\n this.setHighlightIndex(this._itemsLength() - 1);\n },\n\n setHighlightIndex (num) {\n this[indexKey] = num;\n this[idKey] = this._getItemId(num);\n\n if (this._itemsLength() && afterHighlightMethod) {\n this[afterHighlightMethod](num);\n }\n },\n\n setHighlightId (id) {\n if (!id) return;\n const index = this._getItemIndex(id);\n this[idKey] = id;\n this[indexKey] = index;\n\n if (this._itemsLength() && afterHighlightMethod) this[afterHighlightMethod](index);\n },\n\n _getItemIndex (id) {\n if (!id) return -1;\n if (!this._getListElement()) return;\n return this._getListItemNodes()?.findIndex(item => item.id === id) ?? -1;\n },\n\n _getItemId (index) {\n return this._getListItemNodes()?.[index]?.id;\n },\n\n scrollActiveItemIntoViewIfNeeded () {\n if (!this.scrollToOnHighlight) {\n return;\n }\n const activeItemEl = this[activeItemKey];\n if (activeItemEl) {\n // When listElementKey is not passed,\n // scrollElementIntoViewIfNeeded will default to the immediate wrapper of the item.\n const listElement = this._getListElement();\n this.scrollElementIntoViewIfNeeded(activeItemEl, null, null, listElement);\n }\n },\n\n focusActiveItemIfNeeded () {\n if (!this.focusOnKeyboardNavigation) {\n return;\n }\n const activeItemEl = this[activeItemKey];\n if (activeItemEl) {\n activeItemEl.focus();\n }\n },\n },\n});\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "./dom.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as t } from "../../utils-BL_SrwnF.js";
|
|
3
3
|
//#region common/mixins/keyboard_list_navigation.js
|
|
4
4
|
var n = "listElementKey is required or the referenced element doesn't exist. Received listElement: ", r = ({ listItemRole: r = "option", indexKey: i = "highlightIndex", idKey: a = "highlightId", listElementKey: o = "listRef", activeItemKey: s = "", openMethod: c = null, afterHighlightMethod: l = null, beginningOfListMethod: u = null, endOfListMethod: d = null, scrollToOnHighlight: f = !0, focusOnKeyboardNavigation: p = !1 } = {}) => ({
|
|
5
5
|
mixins: [e],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../utils-GofHWJKi.cjs`);var t=`:not(:disabled):not([aria-disabled="true"]):not([role="presentation"])`,n=`${t}:not([tabindex="-1"])`,r=`button,[href],input,select,textarea,details,[tabindex]`,i={methods:{async getFirstFocusableElement(e){await this.$nextTick();let t=this._getFocusableElements(e,!0);return this._getFirstFocusElement(t)},async focusFirstElement(t=this.$el){(await this.getFirstFocusableElement(e.O(t)))?.focus({preventScroll:!0})},async focusElementById(t){await this.$nextTick();let n=e.O(this.$el)?.querySelector(t);if(n){n.focus();return}console.warn(`Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.`),await this.focusFirstElement()},_getFirstFocusElement(e){if(!e.length)return;let t=e[0];return t.matches(`[type="radio"]:not(:checked)`)&&(t=e.find(e=>e.checked&&e.name===t.name)||t),t},_getFocusableElements(i=this.$el,a=!1){return i=e.O(i),i?[...i.querySelectorAll(r)].filter(e=>{let r=window.getComputedStyle(e);return r.getPropertyValue(`display`)!==`none`&&r.getPropertyValue(`visibility`)!==`hidden`&&e.matches(a?t:n)}):[]},focusTrappedTabPress(e,t){if(e.key!==`Tab`)return;let n=this._getFocusableElements(t);if(!n.length){e.preventDefault();return}let r=this._getFirstFocusElement(n),i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}}};exports.default=i;
|
|
2
2
|
//# sourceMappingURL=modal.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.cjs","names":["returnFirstEl"],"sources":["../../../common/mixins/modal.js"],"sourcesContent":["import { returnFirstEl } from '@/common/utils';\n\nconst focusableAttrs = ':not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])';\nconst tabbableAttrs = `${focusableAttrs}:not([tabindex=\"-1\"])`;\nconst focusableElementsList = `button,[href],input,select,textarea,details,[tabindex]`;\n\n/**\n * This mixin provides the methods to automatically trap tab focus within\n * the component this mixin is on, meaning it is not possible to tab out\n * of the component without dismissing it.\n *\n * Useful for accessibility reasons on things like important actionable alerts.\n *\n * Use focusFirstElement to focus on the first tabbable element within your component, and call\n * focusTrappedTabPress every time tab is pressed to trap tab within this\n * component.\n *\n * Note that focusFirstElement WILL focus elements with tabindex=\"-1\",\n * however focusTrappedTabPress will not.\n * @displayName Modal Mixin\n */\nexport default {\n methods: {\n /**\n * get the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async getFirstFocusableElement (el) {\n await this.$nextTick();\n const focusableElements = this._getFocusableElements(el, true);\n return this._getFirstFocusElement(focusableElements);\n },\n\n /**\n * set focus to the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async focusFirstElement (el = this.$el) {\n const elToFocus = await this.getFirstFocusableElement(returnFirstEl(el));\n elToFocus?.focus({ preventScroll: true });\n },\n\n async focusElementById (elementId) {\n await this.$nextTick();\n const result = returnFirstEl(this.$el)?.querySelector(elementId);\n if (result) {\n result.focus();\n return;\n }\n\n // eslint-disable-next-line no-console\n console.warn('Could not find the element specified in dt-modal prop \"initialFocusElement\". ' +\n 'Defaulting to focusing the first element.');\n await this.focusFirstElement();\n },\n\n /**\n * internal use only.\n *\n * @param focusableElements - list of focusable elements\n * @returns {*} - first DOM element that is focusable.\n * @private\n */\n _getFirstFocusElement (focusableElements) {\n if (!focusableElements.length) {\n return;\n }\n let firstFocusEl = focusableElements[0];\n // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.\n if (firstFocusEl.matches('[type=\"radio\"]:not(:checked)')) {\n firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;\n }\n return firstFocusEl;\n },\n\n /**\n * internal use only.\n *\n * gets all the focusable elements within the component\n * and sets the first and last of those elements.\n *\n * @param {object} el - the root dom element to find focusable elements in.\n * @param {bool} includeNegativeTabIndex - will include tabindex=\"-1\" in the list of focusable elements.\n */\n _getFocusableElements (el = this.$el, includeNegativeTabIndex = false) {\n el = returnFirstEl(el);\n if (!el) return [];\n const focusableContent = [...el.querySelectorAll(focusableElementsList)];\n return focusableContent.filter((fc) => {\n const style = window.getComputedStyle(fc);\n return style.getPropertyValue('display') !== 'none' &&\n style.getPropertyValue('visibility') !== 'hidden' &&\n fc.matches(includeNegativeTabIndex ? focusableAttrs : tabbableAttrs);\n });\n },\n\n /**\n * tabs to the next element contained within your component, does not include tabindex=\"-1\".\n * @param {object} e - keypress event\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n focusTrappedTabPress (e, el) {\n const isTabPressed = e.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n const focusableElements = this._getFocusableElements(el);\n if (!focusableElements.length) {\n e.preventDefault();\n return;\n }\n\n const firstFocusableElement = this._getFirstFocusElement(focusableElements);\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n },\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal.cjs","names":["returnFirstEl"],"sources":["../../../common/mixins/modal.js"],"sourcesContent":["import { returnFirstEl } from '@/common/utils';\n\nconst focusableAttrs = ':not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])';\nconst tabbableAttrs = `${focusableAttrs}:not([tabindex=\"-1\"])`;\nconst focusableElementsList = `button,[href],input,select,textarea,details,[tabindex]`;\n\n/**\n * This mixin provides the methods to automatically trap tab focus within\n * the component this mixin is on, meaning it is not possible to tab out\n * of the component without dismissing it.\n *\n * Useful for accessibility reasons on things like important actionable alerts.\n *\n * Use focusFirstElement to focus on the first tabbable element within your component, and call\n * focusTrappedTabPress every time tab is pressed to trap tab within this\n * component.\n *\n * Note that focusFirstElement WILL focus elements with tabindex=\"-1\",\n * however focusTrappedTabPress will not.\n * @displayName Modal Mixin\n */\nexport default {\n methods: {\n /**\n * get the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async getFirstFocusableElement (el) {\n await this.$nextTick();\n const focusableElements = this._getFocusableElements(el, true);\n return this._getFirstFocusElement(focusableElements);\n },\n\n /**\n * set focus to the first focusable element in your component, includes tabindex=\"-1\".\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n async focusFirstElement (el = this.$el) {\n const elToFocus = await this.getFirstFocusableElement(returnFirstEl(el));\n elToFocus?.focus({ preventScroll: true });\n },\n\n async focusElementById (elementId) {\n await this.$nextTick();\n const result = returnFirstEl(this.$el)?.querySelector(elementId);\n if (result) {\n result.focus();\n return;\n }\n\n // eslint-disable-next-line no-console\n console.warn('Could not find the element specified in dt-modal prop \"initialFocusElement\". ' +\n 'Defaulting to focusing the first element.');\n await this.focusFirstElement();\n },\n\n /**\n * internal use only.\n *\n * @param focusableElements - list of focusable elements\n * @returns {*} - first DOM element that is focusable.\n * @private\n */\n _getFirstFocusElement (focusableElements) {\n if (!focusableElements.length) {\n return;\n }\n let firstFocusEl = focusableElements[0];\n // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.\n if (firstFocusEl.matches('[type=\"radio\"]:not(:checked)')) {\n firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;\n }\n return firstFocusEl;\n },\n\n /**\n * internal use only.\n *\n * gets all the focusable elements within the component\n * and sets the first and last of those elements.\n *\n * @param {object} el - the root dom element to find focusable elements in.\n * @param {bool} includeNegativeTabIndex - will include tabindex=\"-1\" in the list of focusable elements.\n */\n _getFocusableElements (el = this.$el, includeNegativeTabIndex = false) {\n el = returnFirstEl(el);\n if (!el) return [];\n const focusableContent = [...el.querySelectorAll(focusableElementsList)];\n return focusableContent.filter((fc) => {\n const style = window.getComputedStyle(fc);\n return style.getPropertyValue('display') !== 'none' &&\n style.getPropertyValue('visibility') !== 'hidden' &&\n fc.matches(includeNegativeTabIndex ? focusableAttrs : tabbableAttrs);\n });\n },\n\n /**\n * tabs to the next element contained within your component, does not include tabindex=\"-1\".\n * @param {object} e - keypress event\n * @param {object} el - optional - ref of dom element to trap focus on.\n * will default to the root node of the vue component\n */\n focusTrappedTabPress (e, el) {\n const isTabPressed = e.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n const focusableElements = this._getFocusableElements(el);\n if (!focusableElements.length) {\n e.preventDefault();\n return;\n }\n\n const firstFocusableElement = this._getFirstFocusElement(focusableElements);\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n },\n },\n};\n"],"mappings":"2IAEA,IAAM,EAAiB,yEACjB,EAAgB,GAAG,EAAe,uBAClC,EAAwB,yDAiB9B,EAAe,CACb,QAAS,CAMP,MAAM,yBAA0B,EAAI,CAClC,MAAM,KAAK,WAAW,CACtB,IAAM,EAAoB,KAAK,sBAAsB,EAAI,GAAK,CAC9D,OAAO,KAAK,sBAAsB,EAAkB,EAQtD,MAAM,kBAAmB,EAAK,KAAK,IAAK,EACpB,MAAM,KAAK,yBAAyBA,EAAAA,EAAc,EAAG,CAAC,GAC7D,MAAM,CAAE,cAAe,GAAM,CAAC,EAG3C,MAAM,iBAAkB,EAAW,CACjC,MAAM,KAAK,WAAW,CACtB,IAAM,EAASA,EAAAA,EAAc,KAAK,IAAI,EAAE,cAAc,EAAU,CAChE,GAAI,EAAQ,CACV,EAAO,OAAO,CACd,OAIF,QAAQ,KAAK,yHACiC,CAC9C,MAAM,KAAK,mBAAmB,EAUhC,sBAAuB,EAAmB,CACxC,GAAI,CAAC,EAAkB,OACrB,OAEF,IAAI,EAAe,EAAkB,GAKrC,OAHI,EAAa,QAAQ,+BAA+B,GACtD,EAAe,EAAkB,KAAK,GAAM,EAAG,SAAW,EAAG,OAAS,EAAa,KAAK,EAAI,GAEvF,GAYT,sBAAuB,EAAK,KAAK,IAAK,EAA0B,GAAO,CAIrE,MAHA,GAAKA,EAAAA,EAAc,EAAG,CACjB,EACoB,CAAC,GAAG,EAAG,iBAAiB,EAAsB,CAAC,CAChD,OAAQ,GAAO,CACrC,IAAM,EAAQ,OAAO,iBAAiB,EAAG,CACzC,OAAO,EAAM,iBAAiB,UAAU,GAAK,QAC3C,EAAM,iBAAiB,aAAa,GAAK,UACzC,EAAG,QAAQ,EAA0B,EAAiB,EAAc,EACtE,CAPc,EAAE,EAgBpB,qBAAsB,EAAG,EAAI,CAG3B,GAFqB,EAAE,MAAQ,MAG7B,OAGF,IAAM,EAAoB,KAAK,sBAAsB,EAAG,CACxD,GAAI,CAAC,EAAkB,OAAQ,CAC7B,EAAE,gBAAgB,CAClB,OAGF,IAAM,EAAwB,KAAK,sBAAsB,EAAkB,CACrE,EAAuB,EAAkB,EAAkB,OAAS,GAEtE,EAAE,SACA,SAAS,gBAAkB,IAC7B,EAAqB,OAAO,CAC5B,EAAE,gBAAgB,EAGhB,SAAS,gBAAkB,IAC7B,EAAsB,OAAO,CAC7B,EAAE,gBAAgB,GAIzB,CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as e } from "../../utils-BL_SrwnF.js";
|
|
2
2
|
//#region common/mixins/modal.js
|
|
3
3
|
var t = ":not(:disabled):not([aria-disabled=\"true\"]):not([role=\"presentation\"])", n = `${t}:not([tabindex="-1"])`, r = "button,[href],input,select,textarea,details,[tabindex]", i = { methods: {
|
|
4
4
|
async getFirstFocusableElement(e) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../mode_constants-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../mode_constants-DM0SVbFM.cjs`),t=require(`../../lib/mode-island/utils.cjs`);var n={props:{contentMode:e.t},data(){return{modeContrast:`default`,modeResolved:null}},computed:{modeAttrs(){if(!this.contentMode)return{};let e=this.contentMode===`invert`?this.modeResolved:this.contentMode;return e?{"data-dt-mode":e,"data-dt-contrast":this.modeContrast}:{}}},watch:{contentMode(){this.cleanupModeObservers(),this.setupModeObservers()}},mounted(){this.setupModeObservers()},beforeUnmount(){this.cleanupModeObservers()},methods:{getModeReferenceEl(){return this.$el},setupModeObservers(){if(this.contentMode&&!(typeof document>`u`)&&(this.modeContrast=t.getRootContrast(),this.modeContrastObserver=new MutationObserver(()=>{this.modeContrast=t.getRootContrast()}),this.modeContrastObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dt-contrast`]}),this.contentMode===`invert`)){let e=this.getModeReferenceEl();this.modeResolved=t.getOppositeMode(t.findParentMode(e));let n={attributes:!0,attributeFilter:[`data-dt-mode`],subtree:!1};this.modeModeObserver=new MutationObserver(()=>{this.modeResolved=t.getOppositeMode(t.findParentMode(this.getModeReferenceEl()))}),this.modeModeObserver.observe(document.documentElement,n);let r=e?.parentElement;for(;r&&r!==document.documentElement;)this.modeModeObserver.observe(r,n),r=r.parentElement}},cleanupModeObservers(){this.modeContrastObserver&&(this.modeContrastObserver.disconnect(),this.modeContrastObserver=null),this.modeModeObserver&&(this.modeModeObserver.disconnect(),this.modeModeObserver=null),this.modeResolved=null}}};exports.default=n;
|
|
2
2
|
//# sourceMappingURL=mode.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../mode_constants-
|
|
1
|
+
import { t as e } from "../../mode_constants-B8_1b5T8.js";
|
|
2
2
|
import { findParentMode as t, getOppositeMode as n, getRootContrast as r } from "../../lib/mode-island/utils.js";
|
|
3
3
|
//#region common/mixins/mode.js
|
|
4
4
|
var i = {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function addOwnedClass(element: HTMLElement, className: string, owner: any): void;
|
|
2
|
+
export function removeOwnedClass(element: HTMLElement, owner: any): void;
|
|
3
|
+
export function hasClassOwners(element: HTMLElement): boolean;
|
|
4
|
+
//# sourceMappingURL=owned_classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owned_classes.d.ts","sourceRoot":"","sources":["../../common/owned_classes.js"],"names":[],"mappings":"AASA,uCAJmB,WAAW,aACT,MAAM,SACV,GAAC,QAWjB;AAOD,0CAHmB,WAAW,SACb,GAAC,QAYjB;AAMD,wCAHmB,WAAW,GACjB,OAAO,CAInB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}})
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../utils-GofHWJKi.cjs`);exports.capitalizeFirstLetter=e.t,exports.debounce=e.n,exports.default=e.j,exports.disableRootScrolling=e.r,exports.enableRootScrolling=e.i,exports.extractNonListeners=e.a,exports.extractVueListeners=e.o,exports.filterFormattedMessages=e.s,exports.findFirstFocusableNode=e.c,exports.flushPromises=e.l,exports.formatMessages=e.u,exports.getPhoneNumberRegex=e.d,exports.getRandomElement=e.f,exports.getRandomInt=e.p,exports.getUniqueString=e.m,exports.getValidationState=e.h,exports.hasFormattedMessageOfType=e.g,exports.hasSlotContent=e._,exports.htmlFragment=e.v,exports.isEmailAddress=e.y,exports.isOutOfViewPort=e.b,exports.isPhoneNumber=e.x,exports.isURL=e.S,exports.javaHashCode=e.C,exports.kebabCaseToPascalCase=e.w,exports.linkRegex=e.T,exports.pascalCaseToKebabCase=e.E,exports.removeClassStyleAttrs=e.D,exports.returnFirstEl=e.O,exports.safeConcatStrings=e.k,exports.toFluentKeyString=e.A,exports.warnIfUnmounted=e.M;
|
|
@@ -20,8 +20,8 @@ export function isEmailAddress(input: string): boolean;
|
|
|
20
20
|
export function safeConcatStrings(elements: any[]): string;
|
|
21
21
|
export function capitalizeFirstLetter(str: string, locale?: string): string;
|
|
22
22
|
export function warnIfUnmounted(componentRef: HTMLElement, componentName: string): void;
|
|
23
|
-
export function disableRootScrolling(rootElement?: HTMLElement): void;
|
|
24
|
-
export function enableRootScrolling(rootElement?: HTMLElement): void;
|
|
23
|
+
export function disableRootScrolling(rootElement?: HTMLElement, owner?: any): void;
|
|
24
|
+
export function enableRootScrolling(rootElement?: HTMLElement, owner?: any): void;
|
|
25
25
|
export function toFluentKeyString(text: any): string;
|
|
26
26
|
export function htmlFragment(props: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
27
27
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/utils/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/utils/index.js"],"names":[],"mappings":"AA0BA,yDAEC;AASD,mDAJW,MAAM,GAEJ,GAAC,CASb;AAiBD,kCAHW,MAAM,GACL,MAAM,CASjB;AAOD,kCAHW,MAAM,GACJ,MAAM,CAIlB;AAED,mDAeC;AAED,qEAQC;AAOD,0EAmBC;AAED,yFAMC;AAED,0DAEC;AAqBD,+DAcC;AAsED;;EAIC;AAQD,4DAGC;AASD,yCAJY,WAAW,GACX,MAAM,CAejB;AA0ED,gDAJW,MAAM,cACN,MAAM,GACJ,MAAM,CAuBlB;AAoBD,qCAHW,MAAM,GAAC,MAAM,GACX,OAAO,CAMnB;AAOD,6BAHW,MAAM,GACJ,OAAO,CAMnB;AAOD,sCAHW,MAAM,GACJ,OAAO,CAKnB;AAQD,2DAEC;AAQD,2CAJW,MAAM,WACN,MAAM,UAKhB;AAQD,8CAJW,WAAW,iBACX,MAAM,QAUhB;AA2BD,mDAHuB,WAAW,UACjB,GAAC,QAIjB;AAQD,kDAHuB,WAAW,UACjB,GAAC,QASjB;AAQD,8CAFa,MAAM,CAOlB;AA/WM;;GAEN;AAEM,8CAIN;AA4BM,oDAFM,MAAM,CAOlB;AAOM,oDAFM,MAAM,CAMlB;AAOM,2CAHI,MAAM,GACJ,MAAM,CAMlB;AAOM,2CAHI,MAAM,GACJ,MAAM,CAMlB;AASM,wCAFM,WAAW,CAUvB;AAgJD,+BAQE"}
|