@onereach/ui-components 4.6.2 → 4.6.3-beta.2785.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/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +30 -47
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +19 -10
- package/dist/bundled/v2/components/OrBottomSheetV3/index.js +1 -0
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +1 -0
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +1 -0
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +28 -52
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -36
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -0
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +3 -2
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -1
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +1 -0
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +1 -0
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +1 -0
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +1 -0
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +1 -0
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +1 -0
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +1 -0
- package/dist/bundled/v2/components/OrInputV3/index.js +1 -0
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +21 -48
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +13 -16
- package/dist/bundled/v2/components/OrMenuV3/index.js +1 -0
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +220 -65
- package/dist/bundled/v2/components/OrModalV3/OrModal.vue.d.ts +13 -19
- package/dist/bundled/v2/components/OrModalV3/index.js +9 -8
- package/dist/bundled/v2/components/OrModalV3/styles.d.ts +0 -3
- package/dist/bundled/v2/components/OrModalV3/styles.js +1 -16
- package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +1 -0
- package/dist/bundled/v2/components/OrNotificationV3/index.js +1 -0
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -1
- package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -0
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +31 -102
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +19 -12
- package/dist/bundled/v2/components/OrPopoverV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -0
- package/dist/bundled/v2/components/OrSearchV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -0
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -0
- package/dist/bundled/v2/components/OrSidebarV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -0
- package/dist/bundled/v2/components/OrTabsV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTagV3/OrTag.js +1 -0
- package/dist/bundled/v2/components/OrTagV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +1 -0
- package/dist/bundled/v2/components/OrTagsV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -0
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -0
- package/dist/bundled/v2/components/OrToastContainerV3/index.js +1 -0
- package/dist/bundled/v2/components/OrToastV3/OrToast.js +1 -0
- package/dist/bundled/v2/components/OrToastV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +31 -40
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +20 -17
- package/dist/bundled/v2/components/OrTooltipV3/index.js +1 -0
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/hooks/index.d.ts +1 -0
- package/dist/bundled/v2/hooks/index.js +1 -0
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +1 -2
- package/dist/bundled/v2/hooks/useElevation.js +3 -1
- package/dist/bundled/v2/hooks/usePopoverState.d.ts +8 -0
- package/dist/bundled/v2/hooks/usePopoverState.js +40 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v2/index.js +3 -2
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js → OrBottomSheet.vue_vue_type_script_lang-18f9c167.js} +28 -45
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-34390dfe.js → OrCardCollection.vue_vue_type_script_lang-9cf3741e.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e1390930.js → OrConfirm.vue_vue_type_script_lang-710de7be.js} +28 -52
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-d071d109.js → OrDatePicker.vue_vue_type_script_lang-609cd431.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-8aa80833.js → OrDateTimePicker.vue_vue_type_script_lang-eecb2974.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-387c2096.js → OrDateTimePickerMonthSelect-747d8207.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5bba9f3f.js → OrIconButton.vue_vue_type_script_lang-851fe8b9.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3c6b0958.js → OrInlineInput.vue_vue_type_script_lang-80e21acb.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js → OrInlineTextarea.vue_vue_type_script_lang-7cbe9490.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-6242286b.js → OrInput.vue_vue_type_script_lang-b42a6626.js} +1 -1
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-97d5a16c.js +66 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-00b3317a.js +160 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-463e1a82.js → OrNotification.vue_vue_type_script_lang-5609733f.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdc8d9fb.js → OrPagination.vue_vue_type_script_lang-d778e42d.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-7b1b2488.js → OrPopover.vue_vue_type_script_lang-27a7448c.js} +27 -98
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0bcc597c.js → OrSearch.vue_vue_type_script_lang-499bbce0.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-4bf05f8b.js → OrSelect.vue_vue_type_script_lang-627292ce.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-780eaa84.js → OrSidebar.vue_vue_type_script_lang-7097ef23.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9d4221f1.js → OrTabs.vue_vue_type_script_lang-09e8c09e.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-09948d1f.js → OrTag.vue_vue_type_script_lang-7287f234.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-71fb4f1d.js → OrTags.vue_vue_type_script_lang-67848ef7.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-c52a2a0b.js → OrTimePicker.vue_vue_type_script_lang-3da85afb.js} +2 -2
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-0f90dccb.js +55 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +7 -6
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +16 -10
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +3 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +11 -10
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -9
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +11 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -35
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -7
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +11 -10
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +12 -11
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +7 -6
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +6 -5
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +8 -7
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +7 -6
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +8 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +7 -6
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +8 -7
- package/dist/bundled/v3/components/OrInputV3/index.js +7 -6
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +9 -8
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +13 -5
- package/dist/bundled/v3/components/OrMenuV3/index.js +5 -4
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +36 -33
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +14 -16
- package/dist/bundled/v3/components/OrModalV3/index.js +15 -14
- package/dist/bundled/v3/components/OrModalV3/styles.d.ts +0 -3
- package/dist/bundled/v3/components/OrModalV3/styles.js +1 -16
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +8 -7
- package/dist/bundled/v3/components/OrNotificationV3/index.js +7 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +8 -7
- package/dist/bundled/v3/components/OrPaginationV3/index.js +6 -5
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +8 -7
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +16 -11
- package/dist/bundled/v3/components/OrPopoverV3/index.js +4 -3
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +9 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +8 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -9
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -8
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +8 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +7 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +6 -5
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +8 -7
- package/dist/bundled/v3/components/OrTagV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +9 -8
- package/dist/bundled/v3/components/OrTagsV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +9 -8
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +7 -6
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +8 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +7 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +6 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +12 -9
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -6
- package/dist/bundled/v3/components/OrTooltipV3/index.js +5 -4
- package/dist/bundled/v3/components/index.js +26 -25
- package/dist/bundled/v3/hooks/index.d.ts +1 -0
- package/dist/bundled/v3/hooks/index.js +1 -0
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +1 -2
- package/dist/bundled/v3/hooks/useElevation.js +3 -1
- package/dist/bundled/v3/hooks/usePopoverState.d.ts +8 -0
- package/dist/bundled/v3/hooks/usePopoverState.js +40 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v3/index.js +27 -26
- package/dist/esm/v2/{OrBottomSheet-ffa029ca.js → OrBottomSheet-f858cabb.js} +31 -48
- package/dist/esm/v2/{OrCardCollection-e23d4238.js → OrCardCollection-7ba11168.js} +4 -4
- package/dist/esm/v2/{OrConfirm-8ec55f84.js → OrConfirm-1a1becc7.js} +30 -54
- package/dist/esm/v2/{OrDatePicker-b6ebf44a.js → OrDatePicker-219d2400.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-85c08b90.js → OrDateTimePicker-98a24b20.js} +5 -5
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-e35404a7.js → OrDateTimePickerMonthSelect-fe0170bc.js} +3 -3
- package/dist/esm/v2/{OrIconButton-ee747c71.js → OrIconButton-1f0ff5dc.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-a131caf4.js → OrInlineInput-d5168a53.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-7cc45396.js → OrInlineTextarea-6285d2fc.js} +1 -1
- package/dist/esm/v2/{OrInput-8c7b3cce.js → OrInput-ad560a10.js} +1 -1
- package/dist/esm/v2/{OrMenu-8b902c22.js → OrMenu-f01d0df1.js} +23 -49
- package/dist/esm/v2/OrModal-ce0e3a9f.js +312 -0
- package/dist/esm/v2/{OrNotification-16e6d4ff.js → OrNotification-1b795836.js} +1 -1
- package/dist/esm/v2/{OrOverlay-4c8c11e2.js → OrOverlay-f791976c.js} +1 -1
- package/dist/esm/v2/{OrPagination-36583054.js → OrPagination-cf75e50e.js} +3 -3
- package/dist/esm/v2/{OrPopover-80459663.js → OrPopover-8f2fbc1b.js} +33 -104
- package/dist/esm/v2/{OrSearch-5aa8154f.js → OrSearch-6cffa183.js} +1 -1
- package/dist/esm/v2/{OrSelect-dd8affc1.js → OrSelect-90a2bc19.js} +3 -3
- package/dist/esm/v2/{OrSidebar-638b1d60.js → OrSidebar-00ba8017.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-2c81d465.js → OrSidebarCollapseButton-fcef54c9.js} +1 -1
- package/dist/esm/v2/{OrTabs-653258a2.js → OrTabs-c25f1fe2.js} +2 -2
- package/dist/esm/v2/{OrTag-6256623c.js → OrTag-3612d8c1.js} +1 -1
- package/dist/esm/v2/{OrTags-db2608dc.js → OrTags-e29da4e0.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-696e29ed.js → OrTimePicker-c1898f16.js} +3 -3
- package/dist/esm/v2/{OrTooltip-5a6e0f64.js → OrTooltip-f341039a.js} +32 -41
- package/dist/esm/v2/components/index.js +28 -27
- package/dist/esm/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +19 -10
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +4 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -10
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -36
- package/dist/esm/v2/components/or-confirm-v3/index.js +9 -8
- package/dist/esm/v2/components/or-date-picker-v3/index.js +10 -9
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -9
- package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +8 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +8 -7
- package/dist/esm/v2/components/or-input-v3/index.js +8 -7
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +13 -16
- package/dist/esm/v2/components/or-menu-v3/index.js +7 -6
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +13 -19
- package/dist/esm/v2/components/or-modal-v3/index.js +12 -11
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +8 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +8 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +12 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/styles.d.ts +0 -3
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -6
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +19 -12
- package/dist/esm/v2/components/or-popover-v3/index.js +5 -4
- package/dist/esm/v2/components/or-search-v3/index.js +9 -8
- package/dist/esm/v2/components/or-select-v3/index.js +10 -9
- package/dist/esm/v2/components/or-sidebar-v3/index.js +9 -8
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +8 -7
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -7
- package/dist/esm/v2/components/or-tabs-v3/index.js +7 -6
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v2/components/or-tags-v3/index.js +9 -8
- package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +8 -7
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -7
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +20 -17
- package/dist/esm/v2/components/or-tooltip-v3/index.js +6 -5
- package/dist/esm/v2/hooks/index.d.ts +1 -0
- package/dist/esm/v2/hooks/index.js +2 -1
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +1 -2
- package/dist/esm/v2/hooks/usePopoverState.d.ts +8 -0
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/esm/v2/index.js +28 -27
- package/dist/esm/v2/{types-4a7d24f3.js → types-e365967d.js} +2 -2
- package/dist/esm/{v3/useElevation-b5a49746.js → v2/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v2/usePopoverState-30ac6da1.js +40 -0
- package/dist/esm/v3/{OrBottomSheet-5969a217.js → OrBottomSheet-348fe528.js} +31 -48
- package/dist/esm/v3/{OrCardCollection-d5390215.js → OrCardCollection-97807bb9.js} +4 -4
- package/dist/esm/v3/{OrConfirm-fe8617ac.js → OrConfirm-06350a61.js} +30 -54
- package/dist/esm/v3/{OrDatePicker-f144d074.js → OrDatePicker-db267041.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-2214cd85.js → OrDateTimePicker-f505ab31.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-5a7b7b5c.js → OrDateTimePickerMonthSelect-eac28443.js} +3 -3
- package/dist/esm/v3/{OrIconButton-b7217ea5.js → OrIconButton-3d1ffea6.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-dcb28ea2.js → OrInlineInput-3785a2fd.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-88eac437.js → OrInlineTextarea-7d5e758d.js} +1 -1
- package/dist/esm/v3/{OrInput-af5bb98a.js → OrInput-2e83e367.js} +1 -1
- package/dist/esm/v3/{OrMenu-8a53ccf9.js → OrMenu-458e495d.js} +24 -50
- package/dist/esm/v3/OrModal-d6bb9576.js +226 -0
- package/dist/esm/v3/{OrNotification-09216b8b.js → OrNotification-cdbd93bc.js} +1 -1
- package/dist/esm/v3/{OrOverlay-bf72f582.js → OrOverlay-28952099.js} +1 -1
- package/dist/esm/v3/{OrPagination-c6046af4.js → OrPagination-ad365d85.js} +3 -3
- package/dist/esm/v3/{OrPopover-15c2968f.js → OrPopover-9bc36ad6.js} +31 -102
- package/dist/esm/v3/{OrSearch-ecad7638.js → OrSearch-ad1a1b36.js} +1 -1
- package/dist/esm/v3/{OrSelect-cfb336db.js → OrSelect-5810e46c.js} +3 -3
- package/dist/esm/v3/{OrSidebar-1579ad80.js → OrSidebar-20aaf94a.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-2668946c.js → OrSidebarCollapseButton-8d1f1bd0.js} +1 -1
- package/dist/esm/v3/{OrTabs-a2d87627.js → OrTabs-867f01e7.js} +2 -2
- package/dist/esm/v3/{OrTag-8605e9e6.js → OrTag-fb9d3047.js} +1 -1
- package/dist/esm/v3/{OrTags-3724ff59.js → OrTags-a818974a.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-68de86d9.js → OrTimePicker-7a47802d.js} +3 -3
- package/dist/esm/v3/{OrTooltip-3d5fcaf9.js → OrTooltip-00037d45.js} +27 -42
- package/dist/esm/v3/components/index.js +28 -27
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +16 -10
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +4 -3
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -10
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -35
- package/dist/esm/v3/components/or-confirm-v3/index.js +9 -8
- package/dist/esm/v3/components/or-date-picker-v3/index.js +10 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +10 -9
- package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +8 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +8 -7
- package/dist/esm/v3/components/or-input-v3/index.js +8 -7
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +13 -5
- package/dist/esm/v3/components/or-menu-v3/index.js +7 -6
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +14 -16
- package/dist/esm/v3/components/or-modal-v3/index.js +11 -10
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +5 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +5 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +7 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/styles.d.ts +0 -3
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -6
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +16 -11
- package/dist/esm/v3/components/or-popover-v3/index.js +5 -4
- package/dist/esm/v3/components/or-search-v3/index.js +9 -8
- package/dist/esm/v3/components/or-select-v3/index.js +10 -9
- package/dist/esm/v3/components/or-sidebar-v3/index.js +9 -8
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +8 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -7
- package/dist/esm/v3/components/or-tabs-v3/index.js +7 -6
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v3/components/or-tags-v3/index.js +9 -8
- package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +8 -7
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -7
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +17 -6
- package/dist/esm/v3/components/or-tooltip-v3/index.js +6 -5
- package/dist/esm/v3/hooks/index.d.ts +1 -0
- package/dist/esm/v3/hooks/index.js +2 -1
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +1 -2
- package/dist/esm/v3/hooks/usePopoverState.d.ts +8 -0
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/esm/v3/index.js +28 -27
- package/dist/esm/v3/{types-9e1555eb.js → types-f97d54b8.js} +2 -2
- package/dist/esm/{v2/useElevation-b5a49746.js → v3/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v3/usePopoverState-30ac6da1.js +40 -0
- package/package.json +2 -3
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +29 -58
- package/src/components/or-confirm-v3/OrConfirm.vue +29 -50
- package/src/components/or-date-picker-v3/OrDatePicker.vue +1 -1
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +2 -2
- package/src/components/or-menu-v3/OrMenu.vue +18 -40
- package/src/components/or-modal-v3/OrModal.vue +32 -66
- package/src/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue +37 -0
- package/src/components/or-modal-v3/partials/or-modal-content/styles.ts +10 -0
- package/src/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue +37 -0
- package/src/components/or-modal-v3/partials/or-modal-footer/styles.ts +4 -0
- package/src/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue +54 -0
- package/src/components/or-modal-v3/partials/or-modal-header/styles.ts +10 -0
- package/src/components/or-modal-v3/styles.ts +0 -25
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-popover-v3/OrPopover.vue +28 -125
- package/src/components/or-time-picker-v3/OrTimePicker.vue +1 -1
- package/src/components/or-tooltip-v3/OrTooltip.vue +25 -40
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useControlAttributes.ts +1 -1
- package/src/hooks/useElevation.ts +3 -1
- package/src/hooks/usePopoverState.ts +55 -0
- package/src/hooks/useValidationAttributes.ts +1 -1
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-115f2c60.js +0 -93
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-202c4e2f.js +0 -71
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-bb3db5bf.js +0 -72
- package/dist/esm/v2/OrModal-1f80d87f.js +0 -174
- package/dist/esm/v3/OrModal-1366926a.js +0 -150
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-75089f80.js → OrDateTimePickerMonthSelect-bf92c66b.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-86c7b93a.js → OrOverlay.vue_vue_type_script_lang-29ff6fd8.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-485ef171.js → OrToastContainer.vue_vue_type_script_lang-fc32e90b.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { usePointerSwipe, onClickOutside, SwipeDirection } from '@vueuse/core';
|
|
2
|
-
import { defineComponent, ref, computed, watch, unref } from 'vue-demi';
|
|
3
|
-
import {
|
|
2
|
+
import { defineComponent, ref, computed, toRef, watch, unref } from 'vue-demi';
|
|
3
|
+
import { u as usePopoverState } from './usePopoverState-30ac6da1.js';
|
|
4
|
+
import { s as script$1 } from './OrOverlay-28952099.js';
|
|
4
5
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, createElementBlock, normalizeClass, createCommentVNode, renderSlot } from 'vue';
|
|
5
6
|
|
|
6
7
|
var BottomSheetVariant;
|
|
@@ -56,13 +57,17 @@ var script = defineComponent({
|
|
|
56
57
|
},
|
|
57
58
|
inheritAttrs: false,
|
|
58
59
|
props: {
|
|
60
|
+
isOpen: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: false
|
|
63
|
+
},
|
|
59
64
|
variant: {
|
|
60
65
|
type: String,
|
|
61
66
|
default: BottomSheetVariant.Advanced
|
|
62
67
|
}
|
|
63
68
|
},
|
|
64
|
-
emits: ['update:state', '
|
|
65
|
-
expose: ['root', 'state', '
|
|
69
|
+
emits: ['update:state', 'open', 'close'],
|
|
70
|
+
expose: ['root', 'state', 'open', 'close', 'toggle'],
|
|
66
71
|
setup(props, context) {
|
|
67
72
|
// Refs
|
|
68
73
|
const root = ref();
|
|
@@ -71,43 +76,18 @@ var script = defineComponent({
|
|
|
71
76
|
const handleStyles = computed(() => [...BottomSheetHandle]);
|
|
72
77
|
const headerStyles = computed(() => [...BottomSheetHeader]);
|
|
73
78
|
// State
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
const {
|
|
80
|
+
state,
|
|
81
|
+
open,
|
|
82
|
+
close,
|
|
83
|
+
toggle
|
|
84
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
85
|
+
const fullscreen = ref(false);
|
|
79
86
|
watch(state, value => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
case 'open':
|
|
83
|
-
context.emit('update:state:open');
|
|
84
|
-
break;
|
|
85
|
-
case 'fullscreen':
|
|
86
|
-
context.emit('update:state:fullscreen');
|
|
87
|
-
break;
|
|
88
|
-
case 'closed':
|
|
89
|
-
context.emit('update:state:closed');
|
|
90
|
-
break;
|
|
87
|
+
if (value === 'closed') {
|
|
88
|
+
fullscreen.value = false;
|
|
91
89
|
}
|
|
92
90
|
});
|
|
93
|
-
// Methods
|
|
94
|
-
function open() {
|
|
95
|
-
state.value = 'open';
|
|
96
|
-
}
|
|
97
|
-
function close() {
|
|
98
|
-
let auto = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
99
|
-
state.value = 'closed';
|
|
100
|
-
if (auto) {
|
|
101
|
-
context.emit('update:state:closed-automatically');
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
// Handlers
|
|
105
|
-
function onSwipeUp() {
|
|
106
|
-
state.value = 'fullscreen';
|
|
107
|
-
}
|
|
108
|
-
function onSwipeDown() {
|
|
109
|
-
state.value = state.value === 'fullscreen' ? 'open' : 'closed';
|
|
110
|
-
}
|
|
111
91
|
// Effects
|
|
112
92
|
// #region Swipe
|
|
113
93
|
const swipeOptions = {
|
|
@@ -132,7 +112,7 @@ var script = defineComponent({
|
|
|
132
112
|
minHeight: '100%',
|
|
133
113
|
maxHeight: '100%'
|
|
134
114
|
});
|
|
135
|
-
|
|
115
|
+
fullscreen.value = true;
|
|
136
116
|
break;
|
|
137
117
|
case SwipeDirection.DOWN:
|
|
138
118
|
Object.assign(rootElement.style, {
|
|
@@ -140,7 +120,11 @@ var script = defineComponent({
|
|
|
140
120
|
minHeight: '0',
|
|
141
121
|
maxHeight: '50%'
|
|
142
122
|
});
|
|
143
|
-
|
|
123
|
+
if (fullscreen.value) {
|
|
124
|
+
fullscreen.value = false;
|
|
125
|
+
} else {
|
|
126
|
+
close();
|
|
127
|
+
}
|
|
144
128
|
break;
|
|
145
129
|
}
|
|
146
130
|
}
|
|
@@ -157,7 +141,7 @@ var script = defineComponent({
|
|
|
157
141
|
} = _ref;
|
|
158
142
|
return (classList === null || classList === void 0 ? void 0 : classList.contains('or-popover-v3')) || (classList === null || classList === void 0 ? void 0 : classList.contains('or-bottom-sheet-v3'));
|
|
159
143
|
})) {
|
|
160
|
-
close(
|
|
144
|
+
close();
|
|
161
145
|
}
|
|
162
146
|
});
|
|
163
147
|
// #endregion
|
|
@@ -167,20 +151,19 @@ var script = defineComponent({
|
|
|
167
151
|
handleStyles,
|
|
168
152
|
headerStyles,
|
|
169
153
|
state,
|
|
170
|
-
|
|
171
|
-
isFullscreen,
|
|
172
|
-
isClosed,
|
|
154
|
+
fullscreen,
|
|
173
155
|
open,
|
|
174
|
-
close
|
|
156
|
+
close,
|
|
157
|
+
toggle
|
|
175
158
|
};
|
|
176
159
|
}
|
|
177
160
|
});
|
|
178
161
|
|
|
179
162
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
180
163
|
const _component_OrOverlay = resolveComponent("OrOverlay");
|
|
181
|
-
return _ctx.state
|
|
164
|
+
return _ctx.state === 'open' ? (openBlock(), createBlock(_component_OrOverlay, {
|
|
182
165
|
key: 0,
|
|
183
|
-
fullscreen: _ctx.
|
|
166
|
+
fullscreen: _ctx.fullscreen
|
|
184
167
|
}, {
|
|
185
168
|
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
186
169
|
ref: "root"
|
|
@@ -192,7 +175,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
175
|
}, null, 2 /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
193
176
|
class: normalizeClass(_ctx.headerStyles)
|
|
194
177
|
}, [renderSlot(_ctx.$slots, "header")], 2 /* CLASS */), createElementVNode("div", {
|
|
195
|
-
class: normalizeClass([_ctx.
|
|
178
|
+
class: normalizeClass([_ctx.fullscreen ? 'overflow-y-auto' : 'overflow-hidden'])
|
|
196
179
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 16 /* FULL_PROPS */)]),
|
|
197
180
|
|
|
198
181
|
_: 3 /* FORWARDED */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch } from 'vue-demi';
|
|
2
2
|
import { s as script$3 } from './OrButton-c2b6aa9e.js';
|
|
3
|
-
import { s as script$2 } from './OrIconButton-
|
|
3
|
+
import { s as script$2 } from './OrIconButton-3d1ffea6.js';
|
|
4
4
|
import { s as script$6 } from './OrIcon-62793572.js';
|
|
5
5
|
import { s as script$5 } from './OrMenuItem-dbee450f.js';
|
|
6
|
-
import { s as script$4 } from './OrMenu-
|
|
7
|
-
import './OrPopover-
|
|
8
|
-
import { s as script$7 } from './OrSearch-
|
|
6
|
+
import { s as script$4 } from './OrMenu-458e495d.js';
|
|
7
|
+
import './OrPopover-9bc36ad6.js';
|
|
8
|
+
import { s as script$7 } from './OrSearch-ad1a1b36.js';
|
|
9
9
|
import './OrInputBox-ba40bbdf.js';
|
|
10
10
|
import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
|
|
11
11
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
2
2
|
import { logicAnd } from '@vueuse/math';
|
|
3
|
-
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
3
|
+
import { defineComponent, ref, toRef, computed, watch } from 'vue-demi';
|
|
4
|
+
import { u as usePopoverState } from './usePopoverState-30ac6da1.js';
|
|
4
5
|
import { s as script$2, a as ButtonColor } from './OrButton-c2b6aa9e.js';
|
|
5
|
-
import { s as script$3 } from './OrInput-
|
|
6
|
-
import { s as script$1 } from './OrOverlay-
|
|
6
|
+
import { s as script$3 } from './OrInput-2e83e367.js';
|
|
7
|
+
import { s as script$1 } from './OrOverlay-28952099.js';
|
|
7
8
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from 'vue';
|
|
8
9
|
|
|
9
10
|
var ConfirmType;
|
|
@@ -65,6 +66,10 @@ var script = defineComponent({
|
|
|
65
66
|
},
|
|
66
67
|
inheritAttrs: false,
|
|
67
68
|
props: {
|
|
69
|
+
isOpen: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
68
73
|
titleText: {
|
|
69
74
|
type: String,
|
|
70
75
|
required: false,
|
|
@@ -72,22 +77,18 @@ var script = defineComponent({
|
|
|
72
77
|
},
|
|
73
78
|
confirmButtonText: {
|
|
74
79
|
type: String,
|
|
75
|
-
required: false,
|
|
76
80
|
default: 'Confirm'
|
|
77
81
|
},
|
|
78
82
|
cancelButtonText: {
|
|
79
83
|
type: String,
|
|
80
|
-
required: false,
|
|
81
84
|
default: 'Cancel'
|
|
82
85
|
},
|
|
83
86
|
confirmType: {
|
|
84
87
|
type: String,
|
|
85
|
-
required: false,
|
|
86
88
|
default: ConfirmType.C
|
|
87
89
|
},
|
|
88
90
|
loading: {
|
|
89
91
|
type: Boolean,
|
|
90
|
-
required: false,
|
|
91
92
|
default: false
|
|
92
93
|
},
|
|
93
94
|
disabled: {
|
|
@@ -97,43 +98,35 @@ var script = defineComponent({
|
|
|
97
98
|
},
|
|
98
99
|
confirmationText: {
|
|
99
100
|
type: String,
|
|
100
|
-
|
|
101
|
-
default: null
|
|
101
|
+
default: undefined
|
|
102
102
|
},
|
|
103
103
|
textConfirmationLabel: {
|
|
104
104
|
type: String,
|
|
105
|
-
|
|
106
|
-
default: null
|
|
105
|
+
default: undefined
|
|
107
106
|
},
|
|
108
107
|
textConfirmationPlaceholder: {
|
|
109
108
|
type: String,
|
|
110
|
-
|
|
111
|
-
default: null
|
|
109
|
+
default: undefined
|
|
112
110
|
},
|
|
113
111
|
textConfirmationError: {
|
|
114
112
|
type: String,
|
|
115
|
-
required: false,
|
|
116
|
-
default: null
|
|
117
|
-
},
|
|
118
|
-
isOpen: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
required: false,
|
|
121
113
|
default: undefined
|
|
122
114
|
}
|
|
123
115
|
},
|
|
124
|
-
emits: ['open', 'close', 'confirm'],
|
|
125
|
-
expose: ['root', '
|
|
126
|
-
setup(props,
|
|
127
|
-
let {
|
|
128
|
-
emit
|
|
129
|
-
} = _ref;
|
|
116
|
+
emits: ['update:state', 'open', 'close', 'confirm'],
|
|
117
|
+
expose: ['root', 'state', 'open', 'close'],
|
|
118
|
+
setup(props, context) {
|
|
130
119
|
// Refs
|
|
131
120
|
const root = ref();
|
|
132
121
|
const confirmationInput = ref();
|
|
133
122
|
const confirmationButton = ref();
|
|
134
123
|
// State
|
|
135
124
|
const touched = ref(false);
|
|
136
|
-
const
|
|
125
|
+
const {
|
|
126
|
+
state,
|
|
127
|
+
open,
|
|
128
|
+
close
|
|
129
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
137
130
|
const isInputActive = ref(false);
|
|
138
131
|
const confirmationValue = ref('');
|
|
139
132
|
const {
|
|
@@ -146,21 +139,10 @@ var script = defineComponent({
|
|
|
146
139
|
const isConfirmationButtonDisabled = computed(() => !!props.disabled || isInvalid.value);
|
|
147
140
|
const confirmButtonColor = computed(() => props.confirmType === ConfirmType.C ? ButtonColor.Primary : ButtonColor.Danger);
|
|
148
141
|
// Methods
|
|
149
|
-
function open() {
|
|
150
|
-
isActive.value = true;
|
|
151
|
-
emit('open');
|
|
152
|
-
}
|
|
153
|
-
function close() {
|
|
154
|
-
// In case if component opened by isOpen - only event can be emited, app will catch it and flip reference
|
|
155
|
-
if (props.isOpen === true) {
|
|
156
|
-
emit('close');
|
|
157
|
-
} else {
|
|
158
|
-
isActive.value = false;
|
|
159
|
-
emit('close');
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
142
|
function confirm() {
|
|
163
|
-
if (!props.disabled && !isInvalid.value)
|
|
143
|
+
if (!props.disabled && !isInvalid.value) {
|
|
144
|
+
context.emit('confirm');
|
|
145
|
+
}
|
|
164
146
|
}
|
|
165
147
|
function onInputFocus() {
|
|
166
148
|
isInputActive.value = true;
|
|
@@ -170,20 +152,14 @@ var script = defineComponent({
|
|
|
170
152
|
touched.value = true;
|
|
171
153
|
}
|
|
172
154
|
// Events
|
|
173
|
-
watch(() => props.isOpen, value => {
|
|
174
|
-
// In case if component opened by isOpen - no need to emmit events, we need just sync local state
|
|
175
|
-
if (value != undefined) {
|
|
176
|
-
isActive.value = value;
|
|
177
|
-
}
|
|
178
|
-
}, {
|
|
179
|
-
immediate: true
|
|
180
|
-
});
|
|
181
155
|
watch(escape, val => {
|
|
182
156
|
if (val) close();
|
|
183
157
|
});
|
|
184
|
-
watch(
|
|
185
|
-
|
|
186
|
-
|
|
158
|
+
watch(state, value => {
|
|
159
|
+
if (value === 'closed') {
|
|
160
|
+
confirmationValue.value = '';
|
|
161
|
+
touched.value = false;
|
|
162
|
+
}
|
|
187
163
|
});
|
|
188
164
|
// types here are used for fixing TS2349
|
|
189
165
|
watch(confirmationInput, val => {
|
|
@@ -216,7 +192,7 @@ var script = defineComponent({
|
|
|
216
192
|
isInvalid,
|
|
217
193
|
isConfirmationButtonDisabled,
|
|
218
194
|
touched,
|
|
219
|
-
|
|
195
|
+
state,
|
|
220
196
|
isInputActive,
|
|
221
197
|
escape,
|
|
222
198
|
rootStyles,
|
|
@@ -240,9 +216,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
240
216
|
const _component_OrInput = resolveComponent("OrInput");
|
|
241
217
|
const _component_OrButton = resolveComponent("OrButton");
|
|
242
218
|
const _component_OrOverlay = resolveComponent("OrOverlay");
|
|
243
|
-
return _ctx.
|
|
219
|
+
return _ctx.state === 'open' ? (openBlock(), createBlock(_component_OrOverlay, {
|
|
244
220
|
key: 0,
|
|
245
|
-
fullscreen:
|
|
221
|
+
fullscreen: true
|
|
246
222
|
}, {
|
|
247
223
|
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
248
224
|
ref: "root"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
3
|
import { s as script$3, a as script$5, b as script$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-042566f4.js';
|
|
4
|
-
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-
|
|
4
|
+
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-eac28443.js';
|
|
5
5
|
import { s as script$7 } from './OrError-c01d0c29.js';
|
|
6
6
|
import { s as script$8 } from './OrHint-06ab89d7.js';
|
|
7
|
-
import { s as script$a } from './OrIconButton-
|
|
7
|
+
import { s as script$a } from './OrIconButton-3d1ffea6.js';
|
|
8
8
|
import { s as script$9 } from './OrIcon-62793572.js';
|
|
9
9
|
import { s as script$b, I as InputBoxSize } from './OrInputBox-ba40bbdf.js';
|
|
10
10
|
import { s as script$c } from './OrLabel-4da56db0.js';
|
|
11
|
-
import { s as script$d } from './OrPopover-
|
|
11
|
+
import { s as script$d } from './OrPopover-9bc36ad6.js';
|
|
12
12
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createVNode, createElementVNode, withModifiers, Fragment } from 'vue';
|
|
13
13
|
|
|
14
14
|
const DatePicker = [
|
|
@@ -238,7 +238,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
238
238
|
},
|
|
239
239
|
trigger: _ctx.inputBoxRoot,
|
|
240
240
|
placement: 'bottom-start',
|
|
241
|
-
|
|
241
|
+
onClose: _cache[5] || (_cache[5] = $event => _ctx.reset())
|
|
242
242
|
}, {
|
|
243
243
|
default: withCtx(() => [createVNode(_component_OrDateTimePickerPopoverHeader, null, {
|
|
244
244
|
default: withCtx(() => [createVNode(_component_OrDateTimePickerMobileControl, {
|
|
@@ -2,13 +2,13 @@ import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
3
|
import { s as script$9 } from './OrError-c01d0c29.js';
|
|
4
4
|
import { s as script$a } from './OrHint-06ab89d7.js';
|
|
5
|
-
import { s as script$c } from './OrIconButton-
|
|
5
|
+
import { s as script$c } from './OrIconButton-3d1ffea6.js';
|
|
6
6
|
import { s as script$b } from './OrIcon-62793572.js';
|
|
7
7
|
import { s as script$d, I as InputBoxSize } from './OrInputBox-ba40bbdf.js';
|
|
8
8
|
import { s as script$e } from './OrLabel-4da56db0.js';
|
|
9
|
-
import { s as script$f } from './OrPopover-
|
|
9
|
+
import { s as script$f } from './OrPopover-9bc36ad6.js';
|
|
10
10
|
import { s as script$3, a as script$5, b as script$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-042566f4.js';
|
|
11
|
-
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-
|
|
11
|
+
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-eac28443.js';
|
|
12
12
|
import { s as script$7, a as script$8 } from './OrDateTimePickerTimeSelect-e404e826.js';
|
|
13
13
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createVNode, createElementVNode, withModifiers, Fragment } from 'vue';
|
|
14
14
|
|
|
@@ -299,7 +299,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
299
299
|
},
|
|
300
300
|
trigger: _ctx.inputBoxRoot,
|
|
301
301
|
placement: 'bottom-start',
|
|
302
|
-
|
|
302
|
+
onClose: _cache[6] || (_cache[6] = $event => _ctx.reset())
|
|
303
303
|
}, {
|
|
304
304
|
default: withCtx(() => [createVNode(_component_OrDateTimePickerPopoverHeader, null, {
|
|
305
305
|
default: withCtx(() => [createVNode(_component_OrDateTimePickerMobileControl, {
|
|
@@ -348,7 +348,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
348
348
|
},
|
|
349
349
|
trigger: _ctx.inputBoxRoot,
|
|
350
350
|
placement: 'bottom-start',
|
|
351
|
-
|
|
351
|
+
onClose: _cache[10] || (_cache[10] = $event => _ctx.reset())
|
|
352
352
|
}, {
|
|
353
353
|
default: withCtx(() => [createVNode(_component_OrDateTimePickerPopoverHeader, null, {
|
|
354
354
|
default: withCtx(() => [createVNode(_component_OrDateTimePickerMobileControl, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withModifiers, withCtx, createVNode } from 'vue';
|
|
3
3
|
import { s as script$3 } from './OrButton-c2b6aa9e.js';
|
|
4
|
-
import { s as script$5 } from './OrIconButton-
|
|
4
|
+
import { s as script$5 } from './OrIconButton-3d1ffea6.js';
|
|
5
5
|
import { s as script$4 } from './OrIcon-62793572.js';
|
|
6
6
|
import { s as script$7 } from './OrMenuItem-dbee450f.js';
|
|
7
|
-
import { s as script$6 } from './OrMenu-
|
|
8
|
-
import './OrPopover-
|
|
7
|
+
import { s as script$6 } from './OrMenu-458e495d.js';
|
|
8
|
+
import './OrPopover-9bc36ad6.js';
|
|
9
9
|
|
|
10
10
|
function useDatePlaceholder() {
|
|
11
11
|
const sample = new Date(Date.UTC(1111, 1, 3, 4, 5)).toLocaleString(navigator.language, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, isVue3 } from 'vue-demi';
|
|
2
2
|
import { s as script$1, I as IconSize } from './OrIcon-62793572.js';
|
|
3
|
-
import { s as script$2 } from './OrTooltip-
|
|
4
|
-
import './OrPopover-
|
|
3
|
+
import { s as script$2 } from './OrTooltip-00037d45.js';
|
|
4
|
+
import './OrPopover-9bc36ad6.js';
|
|
5
5
|
import { resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode, mergeProps, toHandlers, createVNode } from 'vue';
|
|
6
6
|
|
|
7
7
|
var IconButtonColor;
|
|
@@ -4,7 +4,7 @@ import '@vueuse/core';
|
|
|
4
4
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
5
5
|
import { s as script$1 } from './OrError-c01d0c29.js';
|
|
6
6
|
import { s as script$2 } from './OrHint-06ab89d7.js';
|
|
7
|
-
import { s as script$3 } from './OrIconButton-
|
|
7
|
+
import { s as script$3 } from './OrIconButton-3d1ffea6.js';
|
|
8
8
|
import { s as script$4, I as InlineInputBoxSize } from './OrInlineInputBox-01fb2cb2.js';
|
|
9
9
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, withDirectives, mergeProps, vModelDynamic, withModifiers, createCommentVNode, createBlock, createSlots, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -4,7 +4,7 @@ import '@vueuse/core';
|
|
|
4
4
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
5
5
|
import { s as script$1 } from './OrError-c01d0c29.js';
|
|
6
6
|
import { s as script$2 } from './OrHint-06ab89d7.js';
|
|
7
|
-
import { s as script$3 } from './OrIconButton-
|
|
7
|
+
import { s as script$3 } from './OrIconButton-3d1ffea6.js';
|
|
8
8
|
import { s as script$4 } from './OrInlineInputBox-01fb2cb2.js';
|
|
9
9
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, withDirectives, mergeProps, vModelText, withModifiers, createCommentVNode, createBlock, createSlots, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -5,7 +5,7 @@ import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
|
5
5
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
6
6
|
import { s as script$1 } from './OrError-c01d0c29.js';
|
|
7
7
|
import { s as script$2 } from './OrHint-06ab89d7.js';
|
|
8
|
-
import { s as script$4 } from './OrIconButton-
|
|
8
|
+
import { s as script$4 } from './OrIconButton-3d1ffea6.js';
|
|
9
9
|
import { s as script$3 } from './OrIcon-62793572.js';
|
|
10
10
|
import { s as script$5, I as InputBoxSize } from './OrInputBox-ba40bbdf.js';
|
|
11
11
|
import { s as script$6 } from './OrLabel-4da56db0.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
+
import '@vueuse/core';
|
|
3
|
+
import { u as usePopoverState } from './usePopoverState-30ac6da1.js';
|
|
4
|
+
import { s as script$1, P as PopoverPlacement } from './OrPopover-9bc36ad6.js';
|
|
3
5
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, withModifiers, renderSlot } from 'vue';
|
|
4
6
|
|
|
5
7
|
const MenuRoot = [
|
|
@@ -15,6 +17,10 @@ var script = defineComponent({
|
|
|
15
17
|
},
|
|
16
18
|
inheritAttrs: false,
|
|
17
19
|
props: {
|
|
20
|
+
isOpen: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
18
24
|
trigger: {
|
|
19
25
|
type: HTMLElement,
|
|
20
26
|
default: undefined
|
|
@@ -24,68 +30,36 @@ var script = defineComponent({
|
|
|
24
30
|
default: PopoverPlacement.Bottom
|
|
25
31
|
}
|
|
26
32
|
},
|
|
27
|
-
emits: ['update:state'],
|
|
28
|
-
expose: ['root', 'state', '
|
|
29
|
-
setup() {
|
|
33
|
+
emits: ['update:state', 'open', 'close'],
|
|
34
|
+
expose: ['root', 'state', 'open', 'close', 'toggle'],
|
|
35
|
+
setup(props, context) {
|
|
30
36
|
// Refs
|
|
31
37
|
const root = ref();
|
|
32
|
-
const popover = ref();
|
|
33
|
-
const popoverRoot = computed(() => {
|
|
34
|
-
var _a;
|
|
35
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
36
|
-
});
|
|
37
|
-
const popoverState = computed(() => {
|
|
38
|
-
var _a;
|
|
39
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
40
|
-
});
|
|
41
38
|
// Styles
|
|
42
39
|
const rootStyles = computed(() => ['or-menu-v3', ...MenuRoot]);
|
|
43
40
|
// State
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const popoverInstance = popover.value;
|
|
51
|
-
if (popoverInstance) {
|
|
52
|
-
popoverInstance.open();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function close() {
|
|
56
|
-
const popoverInstance = popover.value;
|
|
57
|
-
if (popoverInstance) {
|
|
58
|
-
popoverInstance.close();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function toggle() {
|
|
62
|
-
isOpen.value ? close() : open();
|
|
63
|
-
}
|
|
41
|
+
const {
|
|
42
|
+
state,
|
|
43
|
+
open,
|
|
44
|
+
close,
|
|
45
|
+
toggle
|
|
46
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
64
47
|
// Handlers
|
|
65
48
|
function onClick(event) {
|
|
66
49
|
const path = event.composedPath();
|
|
67
|
-
|
|
50
|
+
if (path.some(_ref => {
|
|
68
51
|
let {
|
|
69
52
|
classList
|
|
70
53
|
} = _ref;
|
|
71
|
-
return
|
|
72
|
-
})
|
|
73
|
-
let {
|
|
74
|
-
classList
|
|
75
|
-
} = _ref2;
|
|
76
|
-
return classList;
|
|
77
|
-
});
|
|
78
|
-
if (classLists.some(classList => classList.contains('or-menu-item-v3'))) {
|
|
54
|
+
return classList === null || classList === void 0 ? void 0 : classList.contains('or-menu-item-v3');
|
|
55
|
+
})) {
|
|
79
56
|
close();
|
|
80
57
|
}
|
|
81
58
|
}
|
|
82
59
|
return {
|
|
83
60
|
root,
|
|
84
|
-
popover,
|
|
85
|
-
popoverRoot,
|
|
86
|
-
state: popoverState,
|
|
87
61
|
rootStyles,
|
|
88
|
-
|
|
62
|
+
state,
|
|
89
63
|
open,
|
|
90
64
|
close,
|
|
91
65
|
toggle,
|
|
@@ -97,13 +71,13 @@ var script = defineComponent({
|
|
|
97
71
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98
72
|
const _component_OrPopover = resolveComponent("OrPopover");
|
|
99
73
|
return openBlock(), createBlock(_component_OrPopover, {
|
|
100
|
-
|
|
74
|
+
"is-open": _ctx.state === 'open',
|
|
101
75
|
variant: 'auto',
|
|
102
76
|
trigger: _ctx.trigger,
|
|
103
77
|
placement: _ctx.placement,
|
|
104
78
|
"full-width": false,
|
|
105
79
|
"disable-default-styles": false,
|
|
106
|
-
"onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx
|
|
80
|
+
"onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.state = $event)
|
|
107
81
|
}, {
|
|
108
82
|
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
109
83
|
ref: "root"
|
|
@@ -115,7 +89,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
115
89
|
}), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */)]),
|
|
116
90
|
|
|
117
91
|
_: 3 /* FORWARDED */
|
|
118
|
-
}, 8 /* PROPS */, ["trigger", "placement"]);
|
|
92
|
+
}, 8 /* PROPS */, ["is-open", "trigger", "placement"]);
|
|
119
93
|
}
|
|
120
94
|
|
|
121
95
|
script.render = render;
|