@onereach/ui-components 4.6.3-beta.2791.0 → 4.6.3
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/{OrDateTimePickerMonthSelect-0bae9283.js → OrDateTimePickerMonthSelect-30f79990.js} +3 -3
- package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-7c87f38a.js → OrDateTimePickerPopoverHeader-61faaa61.js} +3 -3
- package/dist/bundled/v2/{OrDateTimePickerTimeSelect-3d0ef650.js → OrDateTimePickerTimeSelect-2a5772a9.js} +2 -2
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +47 -30
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +10 -19
- package/dist/bundled/v2/components/OrBottomSheetV3/index.js +0 -1
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +1 -2
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +1 -2
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +52 -28
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.vue.d.ts +36 -18
- package/dist/bundled/v2/components/OrConfirmV3/index.js +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +30 -26
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +32 -28
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +3 -4
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +1 -2
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +1 -2
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +1 -2
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +1 -2
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +1 -2
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +1 -2
- package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.js +86 -2
- package/dist/bundled/v2/components/OrInputBoxV3/index.js +1 -1
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +50 -46
- package/dist/bundled/v2/components/OrInputV3/index.js +1 -2
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +48 -21
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +16 -13
- package/dist/bundled/v2/components/OrMenuV3/index.js +0 -1
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +65 -220
- package/dist/bundled/v2/components/OrModalV3/OrModal.vue.d.ts +19 -13
- package/dist/bundled/v2/components/OrModalV3/index.js +8 -9
- package/dist/bundled/v2/components/OrModalV3/styles.d.ts +3 -0
- package/dist/bundled/v2/components/OrModalV3/styles.js +16 -1
- package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +1 -2
- package/dist/bundled/v2/components/OrNotificationV3/index.js +1 -2
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +1 -2
- package/dist/bundled/v2/components/OrPaginationV3/index.js +0 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +102 -31
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +12 -19
- package/dist/bundled/v2/components/OrPopoverV3/index.js +0 -1
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +0 -1
- package/dist/bundled/v2/components/OrSearchV3/index.js +0 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +0 -1
- package/dist/bundled/v2/components/OrSelectV3/index.js +0 -1
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +0 -1
- package/dist/bundled/v2/components/OrSidebarV3/index.js +0 -1
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +0 -1
- package/dist/bundled/v2/components/OrTabsV3/index.js +0 -1
- package/dist/bundled/v2/components/OrTagV3/OrTag.js +1 -2
- package/dist/bundled/v2/components/OrTagV3/index.js +1 -2
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +0 -1
- package/dist/bundled/v2/components/OrTagsV3/index.js +0 -1
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +30 -26
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +2 -3
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +0 -1
- package/dist/bundled/v2/components/OrToastContainerV3/index.js +0 -1
- package/dist/bundled/v2/components/OrToastV3/OrToast.js +1 -2
- package/dist/bundled/v2/components/OrToastV3/index.js +1 -2
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +39 -32
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -20
- package/dist/bundled/v2/components/OrTooltipV3/index.js +1 -2
- package/dist/bundled/v2/components/index.js +3 -4
- package/dist/bundled/v2/hooks/index.d.ts +0 -1
- package/dist/bundled/v2/hooks/index.js +0 -1
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +2 -1
- package/dist/bundled/v2/hooks/useElevation.js +1 -3
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +2 -1
- package/dist/bundled/v2/index.js +4 -5
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-abb955a4.js → OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js} +45 -28
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-0aea0b97.js → OrCardCollection.vue_vue_type_script_lang-f2d222a5.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-87ac7c67.js → OrConfirm.vue_vue_type_script_lang-b1b13331.js} +52 -28
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-e5724b48.js → OrDatePicker.vue_vue_type_script_lang-31f5d798.js} +6 -6
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-10e6becd.js → OrDateTimePicker.vue_vue_type_script_lang-a0354296.js} +7 -7
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-e8b9b8c9.js → OrDateTimePickerMonthSelect-98b935cb.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-f81b902f.js → OrDateTimePickerPopoverHeader-eff55bd9.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-8bdb97b7.js → OrDateTimePickerTimeSelect-2f1a2767.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-80a5c7dd.js → OrIconButton.vue_vue_type_script_lang-5bba9f3f.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-858acf13.js → OrInlineInput.vue_vue_type_script_lang-3c6b0958.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-83e49316.js → OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-7e6ee1dd.js → OrInput.vue_vue_type_script_lang-d08b3796.js} +2 -2
- package/dist/bundled/v3/OrInputBox.vue_vue_type_script_lang-ede24b04.js +95 -0
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-115f2c60.js +93 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-202c4e2f.js +71 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-786d104f.js → OrNotification.vue_vue_type_script_lang-463e1a82.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-e0cfbd77.js → OrPagination.vue_vue_type_script_lang-bdc8d9fb.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-05151000.js → OrPopover.vue_vue_type_script_lang-7b1b2488.js} +98 -27
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0650aac4.js → OrSearch.vue_vue_type_script_lang-940d8e1f.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-dbd1a917.js → OrSelect.vue_vue_type_script_lang-1c77663e.js} +4 -4
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-a8644bf3.js → OrSidebar.vue_vue_type_script_lang-780eaa84.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-c6de8eb1.js → OrTabs.vue_vue_type_script_lang-9d4221f1.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-d4ada34f.js → OrTag.vue_vue_type_script_lang-09948d1f.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-a687ffc9.js → OrTags.vue_vue_type_script_lang-71fb4f1d.js} +2 -2
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-7b74a80e.js → OrTextarea.vue_vue_type_script_lang-af284089.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-f2d29cdb.js → OrTimePicker.vue_vue_type_script_lang-21be27c6.js} +6 -6
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-bb3db5bf.js +72 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +6 -7
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +10 -16
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +2 -3
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +12 -13
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +11 -12
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +11 -12
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +35 -18
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -9
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +26 -28
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +10 -11
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +28 -30
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +11 -12
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +7 -8
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +6 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +8 -9
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +7 -8
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +8 -9
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +7 -8
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +13 -4
- package/dist/bundled/v3/components/OrInputBoxV3/index.js +2 -1
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +31 -34
- package/dist/bundled/v3/components/OrInputV3/index.js +8 -9
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +8 -9
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +5 -13
- package/dist/bundled/v3/components/OrMenuV3/index.js +4 -5
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +33 -36
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +16 -14
- package/dist/bundled/v3/components/OrModalV3/index.js +14 -15
- package/dist/bundled/v3/components/OrModalV3/styles.d.ts +3 -0
- package/dist/bundled/v3/components/OrModalV3/styles.js +16 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +8 -9
- package/dist/bundled/v3/components/OrNotificationV3/index.js +7 -8
- 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 +7 -8
- package/dist/bundled/v3/components/OrPaginationV3/index.js +5 -6
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +7 -8
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +11 -16
- package/dist/bundled/v3/components/OrPopoverV3/index.js +3 -4
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +9 -10
- package/dist/bundled/v3/components/OrSearchV3/index.js +8 -9
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -11
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -10
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +7 -8
- package/dist/bundled/v3/components/OrSidebarV3/index.js +6 -7
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +6 -7
- package/dist/bundled/v3/components/OrTabsV3/index.js +5 -6
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +8 -9
- package/dist/bundled/v3/components/OrTagV3/index.js +7 -8
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +8 -9
- package/dist/bundled/v3/components/OrTagsV3/index.js +7 -8
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
- package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +25 -27
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +9 -10
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +7 -8
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +6 -7
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +6 -7
- package/dist/bundled/v3/components/OrToastV3/index.js +7 -8
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +10 -13
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +6 -17
- package/dist/bundled/v3/components/OrTooltipV3/index.js +5 -6
- package/dist/bundled/v3/components/index.js +29 -30
- package/dist/bundled/v3/hooks/index.d.ts +0 -1
- package/dist/bundled/v3/hooks/index.js +0 -1
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +2 -1
- package/dist/bundled/v3/hooks/useElevation.js +1 -3
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +2 -1
- package/dist/bundled/v3/index.js +30 -31
- package/dist/esm/v2/{OrBottomSheet-ad5fac1e.js → OrBottomSheet-ffa029ca.js} +48 -31
- package/dist/esm/v2/{OrCardCollection-8b74080d.js → OrCardCollection-02970752.js} +5 -5
- package/dist/esm/v2/{OrCombinedInput-5994d9fc.js → OrCombinedInput-9c2b15fe.js} +1 -1
- package/dist/esm/v2/{OrConfirm-c80bdf6c.js → OrConfirm-308e93bc.js} +54 -30
- package/dist/esm/v2/{OrDatePicker-3137243d.js → OrDatePicker-a79b777e.js} +34 -29
- package/dist/esm/v2/{OrDateTimePicker-b7132620.js → OrDateTimePicker-6fe4969d.js} +36 -31
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-26fa7f2d.js → OrDateTimePickerMonthSelect-355ea67d.js} +6 -6
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-9e49aba0.js → OrDateTimePickerPopoverHeader-a84af34e.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-aed7d33d.js → OrDateTimePickerTimeSelect-eecdd8ab.js} +2 -2
- package/dist/esm/v2/{OrIconButton-15b7cd45.js → OrIconButton-ee747c71.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-64fc4f99.js → OrInlineInput-a131caf4.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-88654ed6.js → OrInlineTextarea-7cc45396.js} +1 -1
- package/dist/esm/v2/{OrInput-54ebf19d.js → OrInput-3eeca714.js} +52 -47
- package/dist/esm/v2/{OrInputBox-d36b1323.js → OrInputBox-7f3c0ee9.js} +8 -2
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js → OrInputBox.vue_rollup-plugin-vue_script-906b3ef8.js} +78 -0
- package/dist/esm/v2/{OrMenu-da06817a.js → OrMenu-8b902c22.js} +49 -23
- package/dist/esm/v2/OrModal-1f80d87f.js +174 -0
- package/dist/esm/v2/{OrNotification-ac7d3d99.js → OrNotification-16e6d4ff.js} +1 -1
- package/dist/esm/v2/{OrOverlay-f791976c.js → OrOverlay-4c8c11e2.js} +1 -1
- package/dist/esm/v2/{OrPagination-b8b3593c.js → OrPagination-36583054.js} +3 -3
- package/dist/esm/v2/{OrPopover-be18292f.js → OrPopover-80459663.js} +104 -33
- package/dist/esm/v2/{OrSearch-f3684c88.js → OrSearch-fa824e87.js} +2 -2
- package/dist/esm/v2/{OrSelect-478df897.js → OrSelect-d5fecc34.js} +5 -5
- package/dist/esm/v2/{OrSidebar-7082fa73.js → OrSidebar-638b1d60.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-f2ee700a.js → OrSidebarCollapseButton-2c81d465.js} +1 -1
- package/dist/esm/v2/{OrTabs-052d9297.js → OrTabs-653258a2.js} +2 -2
- package/dist/esm/v2/{OrTag-328ee017.js → OrTag-6256623c.js} +1 -1
- package/dist/esm/v2/{OrTags-557894a1.js → OrTags-db2608dc.js} +2 -2
- package/dist/esm/v2/{OrTextarea-eaadb85f.js → OrTextarea-e5c66426.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-7b5ba948.js → OrTimePicker-5470d7a0.js} +34 -29
- package/dist/esm/v2/{OrTooltip-3c2b7c80.js → OrTooltip-5a6e0f64.js} +40 -33
- package/dist/esm/v2/components/index.js +33 -34
- package/dist/esm/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +10 -19
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -4
- package/dist/esm/v2/components/or-card-collection-v3/index.js +12 -13
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +36 -18
- package/dist/esm/v2/components/or-confirm-v3/index.js +10 -11
- package/dist/esm/v2/components/or-date-picker-v3/index.js +12 -13
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +13 -14
- package/dist/esm/v2/components/or-icon-button-v3/index.js +6 -7
- package/dist/esm/v2/components/or-inline-input-v3/index.js +7 -8
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +7 -8
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +46 -0
- package/dist/esm/v2/components/or-input-box-v3/partials/or-input-box-addon/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-input-v3/index.js +9 -10
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +16 -13
- package/dist/esm/v2/components/or-menu-v3/index.js +6 -7
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +19 -13
- package/dist/esm/v2/components/or-modal-v3/index.js +11 -12
- package/dist/esm/v2/components/or-modal-v3/styles.d.ts +3 -0
- package/dist/esm/v2/components/or-notification-v3/index.js +7 -8
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +6 -7
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +12 -19
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -5
- package/dist/esm/v2/components/or-search-v3/index.js +10 -11
- package/dist/esm/v2/components/or-select-v3/index.js +11 -12
- package/dist/esm/v2/components/or-sidebar-v3/index.js +8 -9
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +7 -8
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -8
- package/dist/esm/v2/components/or-tabs-v3/index.js +6 -7
- package/dist/esm/v2/components/or-tag-v3/index.js +7 -8
- package/dist/esm/v2/components/or-tags-v3/index.js +8 -9
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-picker-v3/index.js +11 -12
- package/dist/esm/v2/components/or-toast-v3/index.js +7 -8
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +7 -8
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +17 -20
- package/dist/esm/v2/components/or-tooltip-v3/index.js +6 -7
- package/dist/esm/v2/hooks/index.d.ts +0 -1
- package/dist/esm/v2/hooks/index.js +1 -2
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +2 -1
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +2 -1
- package/dist/esm/v2/index.js +33 -34
- package/dist/esm/v2/{types-34cd762e.js → types-4a7d24f3.js} +2 -2
- package/dist/esm/v2/{useElevation-a50ec347.js → useElevation-b5a49746.js} +1 -3
- package/dist/esm/v3/{OrBottomSheet-4b3c418c.js → OrBottomSheet-5969a217.js} +48 -31
- package/dist/esm/v3/{OrCardCollection-349f9235.js → OrCardCollection-4401de57.js} +5 -5
- package/dist/esm/v3/{OrCombinedInput-14c23a04.js → OrCombinedInput-b5ba46a1.js} +1 -1
- package/dist/esm/v3/{OrConfirm-e443883c.js → OrConfirm-671148e8.js} +54 -30
- package/dist/esm/v3/{OrDatePicker-a457449b.js → OrDatePicker-7cb1da75.js} +21 -22
- package/dist/esm/v3/{OrDateTimePicker-1c466063.js → OrDateTimePicker-3cf882f6.js} +23 -24
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-4da5c922.js → OrDateTimePickerMonthSelect-bd26a294.js} +6 -6
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-042566f4.js → OrDateTimePickerPopoverHeader-3ae517f8.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-e404e826.js → OrDateTimePickerTimeSelect-14503fde.js} +2 -2
- package/dist/esm/v3/{OrIconButton-c6a26d5c.js → OrIconButton-b7217ea5.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-d9a52af5.js → OrInlineInput-dcb28ea2.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-155d9950.js → OrInlineTextarea-88eac437.js} +1 -1
- package/dist/esm/v3/{OrInput-47629e5e.js → OrInput-238fd1c0.js} +24 -26
- package/dist/esm/v3/{OrInputBox-ba40bbdf.js → OrInputBox-32814878.js} +63 -2
- package/dist/esm/v3/{OrMenu-920e1c0d.js → OrMenu-8a53ccf9.js} +50 -24
- package/dist/esm/v3/OrModal-1366926a.js +150 -0
- package/dist/esm/v3/{OrNotification-32d0fd42.js → OrNotification-09216b8b.js} +1 -1
- package/dist/esm/v3/{OrOverlay-28952099.js → OrOverlay-bf72f582.js} +1 -1
- package/dist/esm/v3/{OrPagination-9ce23f29.js → OrPagination-c6046af4.js} +3 -3
- package/dist/esm/v3/{OrPopover-34b32622.js → OrPopover-15c2968f.js} +102 -31
- package/dist/esm/v3/{OrSearch-eebb278f.js → OrSearch-cd0f6a88.js} +2 -2
- package/dist/esm/v3/{OrSelect-31a28d8c.js → OrSelect-ce7f58cf.js} +4 -4
- package/dist/esm/v3/{OrSidebar-70a4758c.js → OrSidebar-1579ad80.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-a560aa67.js → OrSidebarCollapseButton-2668946c.js} +1 -1
- package/dist/esm/v3/{OrTabs-e2ac1e02.js → OrTabs-a2d87627.js} +2 -2
- package/dist/esm/v3/{OrTag-e12add90.js → OrTag-8605e9e6.js} +1 -1
- package/dist/esm/v3/{OrTags-bb4c1dad.js → OrTags-3724ff59.js} +2 -2
- package/dist/esm/v3/{OrTextarea-d9d355ce.js → OrTextarea-93cf7da7.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-df78f967.js → OrTimePicker-a5921c6f.js} +21 -22
- package/dist/esm/v3/{OrTooltip-7028a65b.js → OrTooltip-3d5fcaf9.js} +41 -28
- package/dist/esm/v3/components/index.js +32 -33
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +10 -16
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -4
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -12
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +35 -18
- package/dist/esm/v3/components/or-confirm-v3/index.js +9 -10
- package/dist/esm/v3/components/or-date-picker-v3/index.js +11 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +12 -13
- package/dist/esm/v3/components/or-icon-button-v3/index.js +6 -7
- package/dist/esm/v3/components/or-inline-input-v3/index.js +7 -8
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +7 -8
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-input-v3/index.js +8 -9
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +5 -13
- package/dist/esm/v3/components/or-menu-v3/index.js +6 -7
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +16 -14
- package/dist/esm/v3/components/or-modal-v3/index.js +10 -11
- package/dist/esm/v3/components/or-modal-v3/styles.d.ts +3 -0
- package/dist/esm/v3/components/or-notification-v3/index.js +7 -8
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +6 -7
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +11 -16
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -5
- package/dist/esm/v3/components/or-search-v3/index.js +9 -10
- package/dist/esm/v3/components/or-select-v3/index.js +10 -11
- package/dist/esm/v3/components/or-sidebar-v3/index.js +8 -9
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +7 -8
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -8
- package/dist/esm/v3/components/or-tabs-v3/index.js +6 -7
- package/dist/esm/v3/components/or-tag-v3/index.js +7 -8
- package/dist/esm/v3/components/or-tags-v3/index.js +8 -9
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +10 -11
- package/dist/esm/v3/components/or-toast-v3/index.js +7 -8
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +7 -8
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +6 -17
- package/dist/esm/v3/components/or-tooltip-v3/index.js +6 -7
- package/dist/esm/v3/hooks/index.d.ts +0 -1
- package/dist/esm/v3/hooks/index.js +1 -2
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +2 -1
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +2 -1
- package/dist/esm/v3/index.js +32 -33
- package/dist/esm/v3/{types-75f4332f.js → types-9e1555eb.js} +2 -2
- package/dist/esm/v3/{useElevation-a50ec347.js → useElevation-b5a49746.js} +1 -3
- package/package.json +3 -2
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +58 -29
- package/src/components/or-confirm-v3/OrConfirm.vue +50 -29
- package/src/components/or-date-picker-v3/OrDatePicker.vue +4 -4
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +5 -5
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +1 -1
- package/src/components/or-input-box-v3/OrInputBox.vue +15 -0
- package/src/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue +57 -0
- package/src/components/or-input-box-v3/partials/or-input-box-addon/styles.ts +8 -0
- package/src/components/or-input-v3/OrInput.vue +2 -2
- package/src/components/or-menu-v3/OrMenu.vue +40 -18
- package/src/components/or-modal-v3/OrModal.vue +66 -32
- package/src/components/or-modal-v3/styles.ts +25 -0
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-popover-v3/OrPopover.vue +125 -28
- package/src/components/or-time-picker-v3/OrTimePicker.vue +4 -4
- package/src/components/or-tooltip-v3/OrTooltip.vue +40 -24
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useControlAttributes.ts +1 -1
- package/src/hooks/useElevation.ts +1 -3
- package/src/hooks/useValidationAttributes.ts +1 -1
- package/dist/bundled/v2/hooks/usePopoverState.d.ts +0 -11
- package/dist/bundled/v2/hooks/usePopoverState.js +0 -42
- package/dist/bundled/v3/OrInputBox.vue_vue_type_script_lang-a21db166.js +0 -42
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-25820c69.js +0 -66
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-40863f67.js +0 -160
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-666ac1dd.js +0 -56
- package/dist/bundled/v3/hooks/usePopoverState.d.ts +0 -11
- package/dist/bundled/v3/hooks/usePopoverState.js +0 -42
- package/dist/esm/v2/OrModal-c6d89925.js +0 -312
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +0 -8
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +0 -8
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +0 -12
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/styles.d.ts +0 -1
- package/dist/esm/v2/hooks/usePopoverState.d.ts +0 -11
- package/dist/esm/v2/usePopoverState-cc8c0361.js +0 -42
- package/dist/esm/v3/OrModal-8d28e9f3.js +0 -226
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +0 -5
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +0 -5
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +0 -7
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/styles.d.ts +0 -1
- package/dist/esm/v3/hooks/usePopoverState.d.ts +0 -11
- package/dist/esm/v3/usePopoverState-cc8c0361.js +0 -42
- package/src/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue +0 -37
- package/src/components/or-modal-v3/partials/or-modal-content/styles.ts +0 -10
- package/src/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue +0 -37
- package/src/components/or-modal-v3/partials/or-modal-footer/styles.ts +0 -4
- package/src/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue +0 -54
- package/src/components/or-modal-v3/partials/or-modal-header/styles.ts +0 -10
- package/src/hooks/usePopoverState.ts +0 -66
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-29ff6fd8.js → OrOverlay.vue_vue_type_script_lang-86c7b93a.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-7b7179a1.js → OrToastContainer.vue_vue_type_script_lang-485ef171.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<OrOverlay
|
|
3
|
-
v-if="
|
|
3
|
+
v-if="isActive"
|
|
4
4
|
:fullscreen="true"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
@@ -8,67 +8,64 @@
|
|
|
8
8
|
v-bind="$attrs"
|
|
9
9
|
:class="rootStyles"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
<div :class="headerStyles">
|
|
12
|
+
<div :class="['grow']">
|
|
13
|
+
<slot name="header" />
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<OrIconButton
|
|
17
|
+
:icon="'close'"
|
|
18
|
+
:size="'l'"
|
|
19
|
+
@click.stop="close"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div :class="contentStyles">
|
|
16
24
|
<slot />
|
|
17
|
-
</
|
|
18
|
-
|
|
19
|
-
<OrModalFooter v-if="$slots.footer">
|
|
25
|
+
</div>
|
|
26
|
+
<div :class="footerStyles">
|
|
20
27
|
<slot name="footer" />
|
|
21
|
-
</
|
|
28
|
+
</div>
|
|
22
29
|
</div>
|
|
23
30
|
</OrOverlay>
|
|
24
31
|
</template>
|
|
25
32
|
|
|
26
33
|
<script lang="ts">
|
|
27
|
-
import { computed, defineComponent, PropType, ref,
|
|
28
|
-
import {
|
|
34
|
+
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
35
|
+
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
29
36
|
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3';
|
|
30
|
-
import OrModalContent from './partials/or-modal-content/OrModalContent.vue';
|
|
31
|
-
import OrModalFooter from './partials/or-modal-footer/OrModalFooter.vue';
|
|
32
|
-
import OrModalHeader from './partials/or-modal-header/OrModalHeader.vue';
|
|
33
37
|
import { ModalSize } from './props';
|
|
34
|
-
import { ModalRoot, ModalRootSizes } from './styles';
|
|
38
|
+
import { ModalHeader, ModalRoot, ModalRootSizes, ModalContent, ModalFooter } from './styles';
|
|
35
39
|
|
|
36
40
|
export default defineComponent({
|
|
37
41
|
name: 'OrModal',
|
|
38
42
|
|
|
39
43
|
components: {
|
|
40
|
-
OrModalContent,
|
|
41
|
-
OrModalFooter,
|
|
42
|
-
OrModalHeader,
|
|
43
44
|
OrOverlay,
|
|
45
|
+
OrIconButton,
|
|
44
46
|
},
|
|
45
47
|
|
|
46
48
|
inheritAttrs: false,
|
|
47
49
|
|
|
48
50
|
props: {
|
|
49
|
-
isOpen: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false,
|
|
52
|
-
},
|
|
53
|
-
|
|
54
51
|
size: {
|
|
55
|
-
type: String as PropType
|
|
52
|
+
type: String as PropType<ModalSize>,
|
|
56
53
|
default: ModalSize.M,
|
|
57
54
|
},
|
|
55
|
+
isOpen: {
|
|
56
|
+
type: Boolean as PropType<boolean>,
|
|
57
|
+
default: false,
|
|
58
|
+
},
|
|
58
59
|
},
|
|
59
60
|
|
|
60
61
|
emits: [
|
|
61
|
-
'update:state',
|
|
62
|
-
|
|
63
62
|
'open',
|
|
64
63
|
'close',
|
|
65
64
|
],
|
|
66
65
|
|
|
67
66
|
expose: [
|
|
68
67
|
'root',
|
|
69
|
-
|
|
70
|
-
'state',
|
|
71
|
-
|
|
68
|
+
'isActive',
|
|
72
69
|
'open',
|
|
73
70
|
'close',
|
|
74
71
|
],
|
|
@@ -84,13 +81,50 @@ export default defineComponent({
|
|
|
84
81
|
...ModalRootSizes[props.size],
|
|
85
82
|
]);
|
|
86
83
|
|
|
84
|
+
const headerStyles = computed(() => [
|
|
85
|
+
...ModalHeader,
|
|
86
|
+
]);
|
|
87
|
+
|
|
88
|
+
const contentStyles = computed(() => [
|
|
89
|
+
...ModalContent,
|
|
90
|
+
]);
|
|
91
|
+
|
|
92
|
+
const footerStyles = computed(() => [
|
|
93
|
+
...ModalFooter,
|
|
94
|
+
]);
|
|
95
|
+
|
|
87
96
|
// State
|
|
88
|
-
const
|
|
97
|
+
const isActive = ref(false);
|
|
98
|
+
|
|
99
|
+
// Events
|
|
100
|
+
watch(isActive, (value) => {
|
|
101
|
+
context.emit(value ? 'open' : 'close');
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
watch(() => props.isOpen, (newIsOpen) => {
|
|
105
|
+
if (newIsOpen) {
|
|
106
|
+
open();
|
|
107
|
+
} else {
|
|
108
|
+
close();
|
|
109
|
+
}
|
|
110
|
+
}, { immediate: true });
|
|
111
|
+
|
|
112
|
+
// Methods
|
|
113
|
+
function open(): void {
|
|
114
|
+
isActive.value = true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function close(): void {
|
|
118
|
+
isActive.value = false;
|
|
119
|
+
}
|
|
89
120
|
|
|
90
121
|
return {
|
|
91
122
|
root,
|
|
92
123
|
rootStyles,
|
|
93
|
-
|
|
124
|
+
headerStyles,
|
|
125
|
+
contentStyles,
|
|
126
|
+
footerStyles,
|
|
127
|
+
isActive,
|
|
94
128
|
open,
|
|
95
129
|
close,
|
|
96
130
|
};
|
|
@@ -46,3 +46,28 @@ export const ModalRootSizes: Record<ModalSize, string[]> = {
|
|
|
46
46
|
'md:w-[480px]',
|
|
47
47
|
],
|
|
48
48
|
};
|
|
49
|
+
|
|
50
|
+
export const ModalHeader: string[] = [
|
|
51
|
+
// Layout
|
|
52
|
+
'layout-row',
|
|
53
|
+
|
|
54
|
+
// Spacing
|
|
55
|
+
'px-md md:px-lg',
|
|
56
|
+
|
|
57
|
+
// Typography
|
|
58
|
+
'typography-headline-2',
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
export const ModalContent: string[] = [
|
|
62
|
+
// Box
|
|
63
|
+
'grow',
|
|
64
|
+
'overflow-auto',
|
|
65
|
+
|
|
66
|
+
// Spacing
|
|
67
|
+
'px-md md:px-lg',
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
export const ModalFooter: string[] = [
|
|
71
|
+
// Spacing
|
|
72
|
+
'px-md md:px-lg',
|
|
73
|
+
];
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
:activated="true"
|
|
53
53
|
@click.stop="limitMenu.open()"
|
|
54
54
|
>
|
|
55
|
-
{{ currentLimit }} <OrIcon :icon="limitMenu && limitMenu.
|
|
55
|
+
{{ currentLimit }} <OrIcon :icon="limitMenu && limitMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'" />
|
|
56
56
|
</OrButton>
|
|
57
57
|
|
|
58
58
|
<OrMenu
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<OrTeleport>
|
|
3
3
|
<div
|
|
4
|
-
v-show="
|
|
4
|
+
v-show="isOpen"
|
|
5
5
|
:class="['contents']"
|
|
6
6
|
>
|
|
7
7
|
<template v-if="isDesktop && variant === 'auto' || variant === 'popover'">
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
<OrBottomSheet
|
|
27
27
|
ref="bottomSheet"
|
|
28
28
|
v-bind="bottomSheetProps"
|
|
29
|
-
:is-open="state === 'open'"
|
|
30
29
|
@update:state="state = $event"
|
|
30
|
+
@update:state:closed-automatically="$emit('update:state:closed-automatically')"
|
|
31
31
|
>
|
|
32
32
|
<slot />
|
|
33
33
|
</OrBottomSheet>
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
<script lang="ts">
|
|
40
40
|
import { autoUpdate, computePosition, flip, hide, shift } from '@floating-ui/dom';
|
|
41
41
|
import { onClickOutside } from '@vueuse/core';
|
|
42
|
-
import { PropType, computed, defineComponent, ref, toRef, unref, watchPostEffect } from 'vue-demi';
|
|
43
|
-
import { useElevation,
|
|
42
|
+
import { PropType, computed, defineComponent, nextTick, ref, toRef, unref, watch, watchPostEffect } from 'vue-demi';
|
|
43
|
+
import { useElevation, useResponsive } from '../../hooks';
|
|
44
44
|
import { OrBottomSheetV3 as OrBottomSheet } from '../or-bottom-sheet-v3';
|
|
45
45
|
import { OrTeleportV3 as OrTeleport } from '../or-teleport-v3';
|
|
46
46
|
import { PopoverPlacement, PopoverVariant } from './props';
|
|
@@ -57,11 +57,6 @@ export default defineComponent({
|
|
|
57
57
|
inheritAttrs: false,
|
|
58
58
|
|
|
59
59
|
props: {
|
|
60
|
-
isOpen: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: false,
|
|
63
|
-
},
|
|
64
|
-
|
|
65
60
|
variant: {
|
|
66
61
|
type: String as PropType<`${PopoverVariant}`>,
|
|
67
62
|
default: PopoverVariant.Auto,
|
|
@@ -100,22 +95,21 @@ export default defineComponent({
|
|
|
100
95
|
|
|
101
96
|
emits: [
|
|
102
97
|
'update:state',
|
|
103
|
-
|
|
104
|
-
'
|
|
105
|
-
'
|
|
98
|
+
'update:state:open',
|
|
99
|
+
'update:state:fullscreen',
|
|
100
|
+
'update:state:closed',
|
|
101
|
+
'update:state:closed-automatically',
|
|
106
102
|
],
|
|
107
103
|
|
|
108
104
|
expose: [
|
|
109
105
|
'root',
|
|
110
|
-
|
|
111
106
|
'state',
|
|
112
|
-
|
|
107
|
+
'isOpen',
|
|
108
|
+
'isFullscreen',
|
|
109
|
+
'isClosed',
|
|
113
110
|
'isFlipped',
|
|
114
|
-
'isHidden',
|
|
115
|
-
|
|
116
111
|
'open',
|
|
117
112
|
'close',
|
|
118
|
-
'toggle',
|
|
119
113
|
],
|
|
120
114
|
|
|
121
115
|
setup(props, context) {
|
|
@@ -140,10 +134,112 @@ export default defineComponent({
|
|
|
140
134
|
]);
|
|
141
135
|
|
|
142
136
|
// State
|
|
143
|
-
const
|
|
137
|
+
const state = ref<'open' | 'fullscreen' | 'closed'>('closed');
|
|
138
|
+
|
|
139
|
+
const isOpen = computed(() => state.value === 'open');
|
|
140
|
+
const isFullscreen = computed(() => state.value === 'fullscreen');
|
|
141
|
+
const isClosed = computed(() => state.value === 'closed');
|
|
144
142
|
|
|
145
143
|
const isFlipped = ref<boolean>(false);
|
|
146
|
-
|
|
144
|
+
|
|
145
|
+
// Events
|
|
146
|
+
watch(state, (value) => {
|
|
147
|
+
context.emit('update:state', value);
|
|
148
|
+
|
|
149
|
+
switch (value) {
|
|
150
|
+
case 'open':
|
|
151
|
+
context.emit('update:state:open');
|
|
152
|
+
break;
|
|
153
|
+
|
|
154
|
+
case 'fullscreen':
|
|
155
|
+
context.emit('update:state:fullscreen');
|
|
156
|
+
break;
|
|
157
|
+
|
|
158
|
+
case 'closed':
|
|
159
|
+
context.emit('update:state:closed');
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
// Methods
|
|
165
|
+
function open(): void {
|
|
166
|
+
state.value = 'open';
|
|
167
|
+
|
|
168
|
+
switch (props.variant) {
|
|
169
|
+
case PopoverVariant.Auto:
|
|
170
|
+
if (isMobile.value) {
|
|
171
|
+
nextTick(() => {
|
|
172
|
+
const bottomSheetInstance = bottomSheet.value;
|
|
173
|
+
|
|
174
|
+
if (bottomSheetInstance) {
|
|
175
|
+
(bottomSheetInstance.open as () => void)();
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
break;
|
|
181
|
+
|
|
182
|
+
case PopoverVariant.Popover:
|
|
183
|
+
break;
|
|
184
|
+
|
|
185
|
+
case PopoverVariant.BottomSheet:
|
|
186
|
+
nextTick(() => {
|
|
187
|
+
const bottomSheetInstance = bottomSheet.value;
|
|
188
|
+
|
|
189
|
+
if (bottomSheetInstance) {
|
|
190
|
+
(bottomSheetInstance.open as () => void)();
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function close(auto: boolean = false): void {
|
|
199
|
+
state.value = 'closed';
|
|
200
|
+
|
|
201
|
+
switch (props.variant) {
|
|
202
|
+
case PopoverVariant.Auto:
|
|
203
|
+
if (isMobile.value) {
|
|
204
|
+
nextTick(() => {
|
|
205
|
+
const bottomSheetInstance = bottomSheet.value;
|
|
206
|
+
|
|
207
|
+
if (bottomSheetInstance) {
|
|
208
|
+
(bottomSheetInstance.close as () => void)();
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
break;
|
|
214
|
+
|
|
215
|
+
case PopoverVariant.Popover:
|
|
216
|
+
break;
|
|
217
|
+
|
|
218
|
+
case PopoverVariant.BottomSheet:
|
|
219
|
+
nextTick(() => {
|
|
220
|
+
const bottomSheetInstance = bottomSheet.value;
|
|
221
|
+
|
|
222
|
+
if (bottomSheetInstance) {
|
|
223
|
+
(bottomSheetInstance.close as () => void)();
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (auto) {
|
|
231
|
+
context.emit('update:state:closed-automatically');
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Handlers
|
|
236
|
+
function handleBottomSheetState(bottomSheetState: string): void {
|
|
237
|
+
if (bottomSheetState === 'closed') {
|
|
238
|
+
state.value = 'closed';
|
|
239
|
+
} else {
|
|
240
|
+
state.value = 'open';
|
|
241
|
+
}
|
|
242
|
+
}
|
|
147
243
|
|
|
148
244
|
// Effects
|
|
149
245
|
watchPostEffect(() => {
|
|
@@ -158,8 +254,8 @@ export default defineComponent({
|
|
|
158
254
|
placement,
|
|
159
255
|
|
|
160
256
|
middleware: [
|
|
161
|
-
shift(),
|
|
162
257
|
flip(),
|
|
258
|
+
shift(),
|
|
163
259
|
hide(),
|
|
164
260
|
],
|
|
165
261
|
});
|
|
@@ -172,16 +268,11 @@ export default defineComponent({
|
|
|
172
268
|
});
|
|
173
269
|
|
|
174
270
|
isFlipped.value = Boolean(middlewareData.flip?.index);
|
|
175
|
-
isHidden.value = Boolean(middlewareData.hide?.referenceHidden);
|
|
176
271
|
});
|
|
177
272
|
}
|
|
178
273
|
}
|
|
179
274
|
});
|
|
180
275
|
|
|
181
|
-
// #region Elevation
|
|
182
|
-
useElevation(root, state);
|
|
183
|
-
// #endregion
|
|
184
|
-
|
|
185
276
|
// #region Click Outside
|
|
186
277
|
const trigger = toRef(props, 'trigger');
|
|
187
278
|
|
|
@@ -189,27 +280,33 @@ export default defineComponent({
|
|
|
189
280
|
const path = event.composedPath() as Element[];
|
|
190
281
|
|
|
191
282
|
if (!path.some(({ classList }) => classList?.contains('or-popover-v3') || classList?.contains('or-bottom-sheet-v3'))) {
|
|
192
|
-
close();
|
|
283
|
+
close(true);
|
|
193
284
|
}
|
|
194
285
|
}, {
|
|
195
286
|
ignore: [trigger],
|
|
196
287
|
});
|
|
197
288
|
// #endregion
|
|
198
289
|
|
|
290
|
+
// #region Elevation
|
|
291
|
+
useElevation(root, state);
|
|
292
|
+
// #endregion
|
|
293
|
+
|
|
199
294
|
return {
|
|
200
295
|
isDesktop,
|
|
201
296
|
isMobile,
|
|
202
297
|
root,
|
|
203
298
|
bottomSheet,
|
|
204
299
|
bottomSheetRoot,
|
|
300
|
+
handleBottomSheetState,
|
|
205
301
|
rootStyles,
|
|
206
302
|
bodyStyles,
|
|
207
303
|
state,
|
|
304
|
+
isOpen,
|
|
305
|
+
isFullscreen,
|
|
306
|
+
isClosed,
|
|
208
307
|
isFlipped,
|
|
209
|
-
isHidden,
|
|
210
308
|
open,
|
|
211
309
|
close,
|
|
212
|
-
toggle,
|
|
213
310
|
};
|
|
214
311
|
},
|
|
215
312
|
});
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
:bottom-sheet-props="{ variant: 'basic' }"
|
|
44
44
|
:trigger="inputBoxRoot"
|
|
45
45
|
:placement="'bottom-start'"
|
|
46
|
-
@
|
|
46
|
+
@update:state:closed-automatically="reset()"
|
|
47
47
|
>
|
|
48
48
|
<OrDateTimePickerPopoverHeader>
|
|
49
49
|
<OrDateTimePickerMobileControl label="Time">
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
<div :class="['grow']" />
|
|
68
68
|
|
|
69
|
-
<
|
|
69
|
+
<template v-slot:addon>
|
|
70
70
|
<template v-if="modelValue">
|
|
71
71
|
<OrIconButton
|
|
72
72
|
:icon="'close'"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
:variant="'outlined'"
|
|
83
83
|
/>
|
|
84
84
|
</template>
|
|
85
|
-
</
|
|
85
|
+
</template>
|
|
86
86
|
</OrInputBox>
|
|
87
87
|
|
|
88
88
|
<template v-if="!error">
|
|
@@ -234,7 +234,7 @@ export default defineComponent({
|
|
|
234
234
|
|
|
235
235
|
// Styles
|
|
236
236
|
const rootStyles = computed(() => [
|
|
237
|
-
'or-time-picker',
|
|
237
|
+
'or-time-picker-v3',
|
|
238
238
|
...TimePicker,
|
|
239
239
|
]);
|
|
240
240
|
|
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
4
|
:class="rootStyles"
|
|
5
|
-
@mouseenter="open()"
|
|
6
|
-
@mouseleave="close()"
|
|
7
5
|
>
|
|
8
6
|
<slot />
|
|
9
7
|
|
|
10
8
|
<template v-if="text">
|
|
11
9
|
<OrPopover
|
|
12
|
-
|
|
10
|
+
ref="popover"
|
|
13
11
|
:variant="'popover'"
|
|
14
12
|
:trigger="root"
|
|
15
13
|
:placement="placement"
|
|
16
14
|
:full-width="false"
|
|
17
15
|
:disable-default-styles="true"
|
|
18
|
-
@update:state="state
|
|
16
|
+
@update:state="$emit('update:state', $event)"
|
|
19
17
|
>
|
|
20
18
|
<div :class="bodyStyles">
|
|
21
19
|
{{ text }}
|
|
@@ -26,8 +24,8 @@
|
|
|
26
24
|
</template>
|
|
27
25
|
|
|
28
26
|
<script lang="ts">
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
27
|
+
import { useDebounceFn, useElementHover } from '@vueuse/core';
|
|
28
|
+
import { PropType, computed, defineComponent, ref, watch } from 'vue-demi';
|
|
31
29
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
32
30
|
import { TooltipPlacement } from './props';
|
|
33
31
|
import { TooltipBody, TooltipBodyPlacements, TooltipRoot } from './styles';
|
|
@@ -40,43 +38,34 @@ export default defineComponent({
|
|
|
40
38
|
},
|
|
41
39
|
|
|
42
40
|
props: {
|
|
43
|
-
isOpen: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: false,
|
|
46
|
-
},
|
|
47
|
-
|
|
48
41
|
text: {
|
|
49
42
|
type: String,
|
|
50
43
|
default: undefined,
|
|
51
44
|
},
|
|
52
45
|
|
|
53
46
|
placement: {
|
|
54
|
-
type: String as PropType
|
|
47
|
+
type: String as PropType<`${TooltipPlacement}`>,
|
|
55
48
|
default: TooltipPlacement.Bottom,
|
|
56
49
|
},
|
|
57
50
|
},
|
|
58
51
|
|
|
59
52
|
emits: [
|
|
60
53
|
'update:state',
|
|
61
|
-
|
|
62
|
-
'open',
|
|
63
|
-
'close',
|
|
64
54
|
],
|
|
65
55
|
|
|
66
56
|
expose: [
|
|
67
57
|
'root',
|
|
68
|
-
|
|
69
|
-
'state',
|
|
70
|
-
|
|
71
58
|
'open',
|
|
72
59
|
'close',
|
|
73
|
-
'toggle',
|
|
74
60
|
],
|
|
75
61
|
|
|
76
|
-
setup(props
|
|
62
|
+
setup(props) {
|
|
77
63
|
// Refs
|
|
78
64
|
const root = ref<HTMLElement>();
|
|
79
65
|
|
|
66
|
+
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
67
|
+
const popoverRoot = computed(() => popover.value?.root);
|
|
68
|
+
|
|
80
69
|
// Styles
|
|
81
70
|
const rootStyles = computed(() => [
|
|
82
71
|
'or-tooltip-v3',
|
|
@@ -88,17 +77,44 @@ export default defineComponent({
|
|
|
88
77
|
...TooltipBodyPlacements[props.placement],
|
|
89
78
|
]);
|
|
90
79
|
|
|
91
|
-
//
|
|
92
|
-
const
|
|
80
|
+
// Methods
|
|
81
|
+
const open = useDebounceFn(() => {
|
|
82
|
+
if (hover.value) {
|
|
83
|
+
const popoverInstance = popover.value;
|
|
84
|
+
|
|
85
|
+
if (popoverInstance) {
|
|
86
|
+
(popoverInstance.open as () => void)();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}, 250);
|
|
90
|
+
|
|
91
|
+
const close = useDebounceFn(() => {
|
|
92
|
+
if (!hover.value) {
|
|
93
|
+
const popoverInstance = popover.value;
|
|
94
|
+
|
|
95
|
+
if (popoverInstance) {
|
|
96
|
+
(popoverInstance.close as () => void)();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, 250);
|
|
100
|
+
|
|
101
|
+
// Effects
|
|
102
|
+
// #region Hover
|
|
103
|
+
const hover = useElementHover(root);
|
|
104
|
+
|
|
105
|
+
watch(hover, (value) => {
|
|
106
|
+
value ? open() : close();
|
|
107
|
+
});
|
|
108
|
+
// #endregion
|
|
93
109
|
|
|
94
110
|
return {
|
|
95
111
|
root,
|
|
112
|
+
popover,
|
|
113
|
+
popoverRoot,
|
|
96
114
|
rootStyles,
|
|
97
115
|
bodyStyles,
|
|
98
|
-
state,
|
|
99
116
|
open,
|
|
100
117
|
close,
|
|
101
|
-
toggle,
|
|
102
118
|
};
|
|
103
119
|
},
|
|
104
120
|
});
|
package/src/hooks/index.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { useControlAttributes } from './useControlAttributes';
|
|
|
2
2
|
export { useElevation } from './useElevation';
|
|
3
3
|
export { useIdAttribute } from './useIdAttribute';
|
|
4
4
|
export { useOverflow } from './useOverflow';
|
|
5
|
-
export { usePopoverState } from './usePopoverState';
|
|
6
5
|
export { useResponsive } from './useResponsive';
|
|
7
6
|
export { default as useToggle } from './useToggle';
|
|
8
7
|
export { useValidationAttributes } from './useValidationAttributes';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, ComputedRef, useAttrs } from 'vue-demi';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
interface ValidationAttributes {
|
|
4
4
|
required: ComputedRef<boolean | undefined>;
|
|
5
5
|
minlength: ComputedRef<number | undefined>;
|
|
6
6
|
maxlength: ComputedRef<number | undefined>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref, SetupContext } from 'vue-demi';
|
|
2
|
-
export interface PopoverState {
|
|
3
|
-
state: Ref<'open' | 'closed'>;
|
|
4
|
-
open: () => void;
|
|
5
|
-
close: () => void;
|
|
6
|
-
toggle: () => void;
|
|
7
|
-
}
|
|
8
|
-
export interface PopoverStateOptions {
|
|
9
|
-
debounce?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function usePopoverState(isOpen: Ref<boolean>, context: SetupContext<('update:state' | 'open' | 'close' | any)[]>, options?: PopoverStateOptions): PopoverState;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { debouncedRef } from '@vueuse/core';
|
|
2
|
-
import { ref, watch } from 'vue-demi';
|
|
3
|
-
|
|
4
|
-
// TODO: Remove type `any` (https://github.com/microsoft/TypeScript/issues/27808)
|
|
5
|
-
// TODO: Use `defineEmits` after migration to Vue 3
|
|
6
|
-
function usePopoverState(isOpen, context, options) {
|
|
7
|
-
// State
|
|
8
|
-
const state = ref(isOpen.value ? 'open' : 'closed');
|
|
9
|
-
watch(isOpen, value => {
|
|
10
|
-
state.value = value ? 'open' : 'closed';
|
|
11
|
-
});
|
|
12
|
-
const debouncedState = debouncedRef(state, options === null || options === void 0 ? void 0 : options.debounce);
|
|
13
|
-
watch(debouncedState, value => {
|
|
14
|
-
context.emit('update:state', value);
|
|
15
|
-
switch (value) {
|
|
16
|
-
case 'open':
|
|
17
|
-
context.emit('open');
|
|
18
|
-
break;
|
|
19
|
-
case 'closed':
|
|
20
|
-
context.emit('close');
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
// Methods
|
|
25
|
-
function open() {
|
|
26
|
-
state.value = 'open';
|
|
27
|
-
}
|
|
28
|
-
function close() {
|
|
29
|
-
state.value = 'closed';
|
|
30
|
-
}
|
|
31
|
-
function toggle() {
|
|
32
|
-
state.value = state.value === 'open' ? 'closed' : 'open';
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
state: debouncedState,
|
|
36
|
-
open,
|
|
37
|
-
close,
|
|
38
|
-
toggle
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { usePopoverState };
|