@onereach/ui-components 4.6.2-beta.2777.0 → 4.7.0-beta.2778.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 +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 +51 -27
- 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 +2 -3
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -2
- 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/OrInputV3/OrInput.js +1 -2
- package/dist/bundled/v2/components/OrInputV3/index.js +1 -2
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +49 -25
- 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 +64 -219
- 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 +0 -1
- package/dist/bundled/v2/components/OrPaginationV3/index.js +0 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +95 -29
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +12 -17
- 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/OrTeleportV3/OrTeleport.js +1 -2
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +1 -2
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +0 -1
- 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 +41 -35
- 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 +1 -2
- package/dist/bundled/v2/hooks/index.d.ts +0 -1
- package/dist/bundled/v2/hooks/index.js +0 -1
- package/dist/bundled/v2/index.js +2 -3
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-c3a0e7b5.js → OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js} +44 -27
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ee7e1cd6.js → OrCardCollection.vue_vue_type_script_lang-34390dfe.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-a379bae2.js → OrConfirm.vue_vue_type_script_lang-e1390930.js} +50 -26
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-9c4433e5.js → OrDatePicker.vue_vue_type_script_lang-d071d109.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-69777a12.js → OrDateTimePicker.vue_vue_type_script_lang-8aa80833.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-b91d3238.js → OrDateTimePickerMonthSelect-387c2096.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-17f98298.js → OrIconButton.vue_vue_type_script_lang-5bba9f3f.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-9317d5a9.js → OrInlineInput.vue_vue_type_script_lang-3c6b0958.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-e89beaab.js → OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-655989d4.js → OrInput.vue_vue_type_script_lang-6242286b.js} +1 -1
- 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-664a7d4d.js → OrNotification.vue_vue_type_script_lang-463e1a82.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c58c940d.js → OrPagination.vue_vue_type_script_lang-bdc8d9fb.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-3592b581.js → OrPopover.vue_vue_type_script_lang-7b1b2488.js} +90 -21
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-b402fffd.js → OrSearch.vue_vue_type_script_lang-0bcc597c.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-3ef33dde.js → OrSelect.vue_vue_type_script_lang-819822b5.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-e6e6fc59.js → OrSidebar.vue_vue_type_script_lang-780eaa84.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9cdb914d.js → OrTabs.vue_vue_type_script_lang-9d4221f1.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-3a636796.js → OrTag.vue_vue_type_script_lang-09948d1f.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-325c7158.js → OrTags.vue_vue_type_script_lang-71fb4f1d.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-c0c5aa8f.js → OrTimePicker.vue_vue_type_script_lang-c52a2a0b.js} +2 -2
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-bb3db5bf.js +72 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +5 -6
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +11 -16
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +10 -11
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +9 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +9 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +34 -16
- package/dist/bundled/v3/components/OrConfirmV3/index.js +6 -7
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +9 -10
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +7 -8
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +10 -11
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +7 -8
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +6 -7
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +5 -6
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +7 -8
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +6 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +7 -8
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +6 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +7 -8
- package/dist/bundled/v3/components/OrInputV3/index.js +6 -7
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +7 -9
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +6 -13
- package/dist/bundled/v3/components/OrMenuV3/index.js +3 -4
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +33 -36
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +15 -12
- 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 +7 -8
- package/dist/bundled/v3/components/OrNotificationV3/index.js +6 -7
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +5 -6
- package/dist/bundled/v3/components/OrPaginationV3/index.js +4 -5
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +6 -8
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +12 -15
- package/dist/bundled/v3/components/OrPopoverV3/index.js +2 -3
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +7 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +6 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +8 -9
- package/dist/bundled/v3/components/OrSelectV3/index.js +7 -8
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +6 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +5 -6
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +5 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +4 -5
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +7 -8
- package/dist/bundled/v3/components/OrTagV3/index.js +6 -7
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +7 -8
- package/dist/bundled/v3/components/OrTagsV3/index.js +6 -7
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +7 -8
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +5 -6
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +6 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +5 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +5 -6
- package/dist/bundled/v3/components/OrToastV3/index.js +6 -7
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +9 -13
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +7 -17
- package/dist/bundled/v3/components/OrTooltipV3/index.js +4 -5
- package/dist/bundled/v3/components/index.js +24 -25
- package/dist/bundled/v3/hooks/index.d.ts +0 -1
- package/dist/bundled/v3/hooks/index.js +0 -1
- package/dist/bundled/v3/index.js +25 -26
- package/dist/esm/v2/{OrBottomSheet-d766008a.js → OrBottomSheet-7897cce1.js} +48 -31
- package/dist/esm/v2/{OrCardCollection-5b123301.js → OrCardCollection-7bc81d89.js} +4 -4
- package/dist/esm/v2/{OrConfirm-be3a54ef.js → OrConfirm-2f62dafc.js} +53 -29
- package/dist/esm/v2/{OrDatePicker-24c5f395.js → OrDatePicker-6b1c5ba6.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-e054f914.js → OrDateTimePicker-6aa541cc.js} +5 -5
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-90a873ba.js → OrDateTimePickerMonthSelect-c996cfde.js} +3 -3
- package/dist/esm/v2/{OrIconButton-4fdb749c.js → OrIconButton-31792fc0.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-d5c5d651.js → OrInlineInput-21c221d0.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-bbbb2b82.js → OrInlineTextarea-d2a9994c.js} +1 -1
- package/dist/esm/v2/{OrInput-166bf64a.js → OrInput-6efac544.js} +1 -1
- package/dist/esm/v2/{OrMenu-cf3c3d51.js → OrMenu-005ea480.js} +50 -27
- package/dist/esm/v2/OrModal-a06bcdb2.js +174 -0
- package/dist/esm/v2/{OrNotification-1cc97f8e.js → OrNotification-a423dcfe.js} +1 -1
- package/dist/esm/v2/{OrOverlay-4c8c11e2.js → OrOverlay-2b61ec26.js} +1 -1
- package/dist/esm/v2/{OrPagination-82d22a5c.js → OrPagination-b8a3aa00.js} +2 -2
- package/dist/esm/v2/{OrPopover-238620ae.js → OrPopover-d3bb88cb.js} +97 -31
- package/dist/esm/v2/{OrSearch-4a2cfe75.js → OrSearch-53a0d538.js} +1 -1
- package/dist/esm/v2/{OrSelect-301d2a6b.js → OrSelect-d0512405.js} +3 -3
- package/dist/esm/v2/{OrSidebar-673bef16.js → OrSidebar-481c9eda.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-b92c3848.js → OrSidebarCollapseButton-b4800263.js} +1 -1
- package/dist/esm/v2/{OrTabs-68e1416d.js → OrTabs-306c7450.js} +2 -2
- package/dist/esm/v2/{OrTag-a9ca8c34.js → OrTag-e0989afd.js} +1 -1
- package/dist/esm/v2/{OrTags-d2548f30.js → OrTags-e54f6bea.js} +2 -2
- package/dist/esm/v2/{OrTeleport.vue2-424c7f33.js → OrTeleport.vue2-fb92f29f.js} +1 -2
- package/dist/esm/v2/{OrTimePicker-e2929d18.js → OrTimePicker-e114f605.js} +3 -3
- package/dist/esm/v2/{OrTooltip-e9e967e3.js → OrTooltip-ca8a27f9.js} +42 -36
- package/dist/esm/v2/components/index.js +27 -28
- 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 +10 -11
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +36 -18
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -9
- package/dist/esm/v2/components/or-date-picker-v3/index.js +9 -10
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +9 -10
- 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-v3/index.js +7 -8
- 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 -17
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -5
- package/dist/esm/v2/components/or-search-v3/index.js +8 -9
- package/dist/esm/v2/components/or-select-v3/index.js +9 -10
- 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-teleport-v3/index.js +1 -1
- package/dist/esm/v2/components/or-time-picker-v3/index.js +7 -8
- 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 +0 -1
- package/dist/esm/v2/index.js +27 -28
- package/dist/esm/v2/{types-3d410a76.js → types-8af0c135.js} +2 -2
- package/dist/esm/v3/{OrBottomSheet-946c14d3.js → OrBottomSheet-5969a217.js} +47 -30
- package/dist/esm/v3/{OrCardCollection-052a234f.js → OrCardCollection-d5390215.js} +4 -4
- package/dist/esm/v3/{OrConfirm-bbc33f51.js → OrConfirm-fe8617ac.js} +52 -28
- package/dist/esm/v3/{OrDatePicker-67821b38.js → OrDatePicker-f144d074.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-1492b2f5.js → OrDateTimePicker-2214cd85.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-5bc6cb7c.js → OrDateTimePickerMonthSelect-5a7b7b5c.js} +3 -3
- package/dist/esm/v3/{OrIconButton-ce1b5542.js → OrIconButton-b7217ea5.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-f6d3ce66.js → OrInlineInput-dcb28ea2.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-c3158522.js → OrInlineTextarea-88eac437.js} +1 -1
- package/dist/esm/v3/{OrInput-02821bda.js → OrInput-af5bb98a.js} +1 -1
- package/dist/esm/v3/{OrMenu-744b63ce.js → OrMenu-8a53ccf9.js} +50 -25
- package/dist/esm/v3/OrModal-1366926a.js +150 -0
- package/dist/esm/v3/{OrNotification-a699caa8.js → OrNotification-09216b8b.js} +1 -1
- package/dist/esm/v3/{OrPagination-8b62bd4c.js → OrPagination-c6046af4.js} +2 -2
- package/dist/esm/v3/{OrPopover-bec73a66.js → OrPopover-15c2968f.js} +93 -25
- package/dist/esm/v3/{OrSearch-1333d290.js → OrSearch-ecad7638.js} +1 -1
- package/dist/esm/v3/{OrSelect-53acc3c2.js → OrSelect-5abcb941.js} +3 -3
- package/dist/esm/v3/{OrSidebar-8fb3da8d.js → OrSidebar-1579ad80.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-170c2be1.js → OrSidebarCollapseButton-2668946c.js} +1 -1
- package/dist/esm/v3/{OrTabs-7039110c.js → OrTabs-a2d87627.js} +2 -2
- package/dist/esm/v3/{OrTag-8521661a.js → OrTag-8605e9e6.js} +1 -1
- package/dist/esm/v3/{OrTags-b677a73b.js → OrTags-3724ff59.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-49867a2d.js → OrTimePicker-68de86d9.js} +3 -3
- package/dist/esm/v3/{OrTooltip-54c18e36.js → OrTooltip-3d5fcaf9.js} +42 -28
- package/dist/esm/v3/components/index.js +25 -26
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +11 -16
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +1 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -9
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +34 -16
- package/dist/esm/v3/components/or-confirm-v3/index.js +6 -7
- package/dist/esm/v3/components/or-date-picker-v3/index.js +7 -8
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +7 -8
- package/dist/esm/v3/components/or-icon-button-v3/index.js +4 -5
- package/dist/esm/v3/components/or-inline-input-v3/index.js +5 -6
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +5 -6
- package/dist/esm/v3/components/or-input-v3/index.js +5 -6
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +6 -13
- package/dist/esm/v3/components/or-menu-v3/index.js +4 -5
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +15 -12
- 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 +5 -6
- package/dist/esm/v3/components/or-pagination-v3/index.js +4 -5
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +12 -15
- package/dist/esm/v3/components/or-popover-v3/index.js +2 -3
- package/dist/esm/v3/components/or-search-v3/index.js +6 -7
- package/dist/esm/v3/components/or-select-v3/index.js +7 -8
- package/dist/esm/v3/components/or-sidebar-v3/index.js +6 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +5 -6
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +5 -6
- package/dist/esm/v3/components/or-tabs-v3/index.js +4 -5
- package/dist/esm/v3/components/or-tag-v3/index.js +5 -6
- package/dist/esm/v3/components/or-tags-v3/index.js +6 -7
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -6
- package/dist/esm/v3/components/or-toast-v3/index.js +5 -6
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +5 -6
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +7 -17
- package/dist/esm/v3/components/or-tooltip-v3/index.js +4 -5
- package/dist/esm/v3/hooks/index.d.ts +0 -1
- package/dist/esm/v3/hooks/index.js +0 -1
- package/dist/esm/v3/index.js +25 -26
- package/dist/esm/v3/{types-c61726e4.js → types-9e1555eb.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +60 -27
- package/src/components/or-confirm-v3/OrConfirm.vue +50 -25
- 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 +42 -17
- package/src/components/or-modal-v3/OrModal.vue +65 -27
- package/src/components/or-modal-v3/styles.ts +25 -0
- package/src/components/or-popover-v3/OrPopover.vue +123 -22
- package/src/components/or-teleport-v3/OrTeleport.vue2.vue +0 -1
- package/src/components/or-time-picker-v3/OrTimePicker.vue +1 -1
- package/src/components/or-tooltip-v3/OrTooltip.vue +41 -23
- package/src/hooks/index.ts +0 -1
- package/dist/bundled/v2/hooks/usePopoverState.d.ts +0 -8
- package/dist/bundled/v2/hooks/usePopoverState.js +0 -37
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-a8e1eb6d.js +0 -66
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-6b9587d0.js +0 -160
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-de8c7ff1.js +0 -55
- package/dist/bundled/v3/hooks/usePopoverState.d.ts +0 -8
- package/dist/bundled/v3/hooks/usePopoverState.js +0 -37
- package/dist/esm/v2/OrModal-9cc9f073.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 -8
- package/dist/esm/v2/usePopoverState-4cb59ae5.js +0 -37
- package/dist/esm/v3/OrModal-e30178be.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 -8
- package/dist/esm/v3/usePopoverState-4cb59ae5.js +0 -37
- 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 -51
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-270e1029.js → OrDateTimePickerMonthSelect-1cf93f01.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-7caa56c5.js → OrToastContainer.vue_vue_type_script_lang-485ef171.js} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { usePointerSwipe, onClickOutside, SwipeDirection } from '@vueuse/core';
|
|
2
|
-
import { defineComponent, ref, computed,
|
|
2
|
+
import { defineComponent, ref, computed, watch, unref } from 'vue-demi';
|
|
3
3
|
import { BottomSheetVariant } from './props.js';
|
|
4
4
|
import { BottomSheet, BottomSheetVariants, BottomSheetHandle, BottomSheetHeader } from './styles.js';
|
|
5
5
|
import __vue_component__$1 from '../OrOverlayV3/OrOverlay.js';
|
|
6
|
-
import { usePopoverState } from '../../hooks/usePopoverState.js';
|
|
7
6
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
8
7
|
import '../OrOverlayV3/styles.js';
|
|
9
8
|
import '../OrTeleportV3/OrTeleport.js';
|
|
@@ -18,17 +17,13 @@ var script = defineComponent({
|
|
|
18
17
|
},
|
|
19
18
|
inheritAttrs: false,
|
|
20
19
|
props: {
|
|
21
|
-
isOpen: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
},
|
|
25
20
|
variant: {
|
|
26
21
|
type: String,
|
|
27
22
|
default: BottomSheetVariant.Advanced
|
|
28
23
|
}
|
|
29
24
|
},
|
|
30
|
-
emits: ['open', '
|
|
31
|
-
expose: ['root', '
|
|
25
|
+
emits: ['update:state', 'update:state:open', 'update:state:fullscreen', 'update:state:closed', 'update:state:closed-automatically'],
|
|
26
|
+
expose: ['root', 'state', 'isOpen', 'isFullscreen', 'isClosed', 'open', 'close'],
|
|
32
27
|
setup(props, context) {
|
|
33
28
|
// Refs
|
|
34
29
|
const root = ref();
|
|
@@ -37,18 +32,43 @@ var script = defineComponent({
|
|
|
37
32
|
const handleStyles = computed(() => [...BottomSheetHandle]);
|
|
38
33
|
const headerStyles = computed(() => [...BottomSheetHeader]);
|
|
39
34
|
// State
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
46
|
-
const fullscreen = ref(false);
|
|
35
|
+
const state = ref('closed');
|
|
36
|
+
const isOpen = computed(() => state.value === 'open');
|
|
37
|
+
const isFullscreen = computed(() => state.value === 'fullscreen');
|
|
38
|
+
const isClosed = computed(() => state.value === 'closed');
|
|
39
|
+
// Events
|
|
47
40
|
watch(state, value => {
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
context.emit('update:state', value);
|
|
42
|
+
switch (value) {
|
|
43
|
+
case 'open':
|
|
44
|
+
context.emit('update:state:open');
|
|
45
|
+
break;
|
|
46
|
+
case 'fullscreen':
|
|
47
|
+
context.emit('update:state:fullscreen');
|
|
48
|
+
break;
|
|
49
|
+
case 'closed':
|
|
50
|
+
context.emit('update:state:closed');
|
|
51
|
+
break;
|
|
50
52
|
}
|
|
51
53
|
});
|
|
54
|
+
// Methods
|
|
55
|
+
function open() {
|
|
56
|
+
state.value = 'open';
|
|
57
|
+
}
|
|
58
|
+
function close() {
|
|
59
|
+
let auto = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
60
|
+
state.value = 'closed';
|
|
61
|
+
if (auto) {
|
|
62
|
+
context.emit('update:state:closed-automatically');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// Handlers
|
|
66
|
+
function onSwipeUp() {
|
|
67
|
+
state.value = 'fullscreen';
|
|
68
|
+
}
|
|
69
|
+
function onSwipeDown() {
|
|
70
|
+
state.value = state.value === 'fullscreen' ? 'open' : 'closed';
|
|
71
|
+
}
|
|
52
72
|
// Effects
|
|
53
73
|
// #region Swipe
|
|
54
74
|
const swipeOptions = {
|
|
@@ -73,7 +93,7 @@ var script = defineComponent({
|
|
|
73
93
|
minHeight: '100%',
|
|
74
94
|
maxHeight: '100%'
|
|
75
95
|
});
|
|
76
|
-
|
|
96
|
+
onSwipeUp();
|
|
77
97
|
break;
|
|
78
98
|
case SwipeDirection.DOWN:
|
|
79
99
|
Object.assign(rootElement.style, {
|
|
@@ -81,11 +101,7 @@ var script = defineComponent({
|
|
|
81
101
|
minHeight: '0',
|
|
82
102
|
maxHeight: '50%'
|
|
83
103
|
});
|
|
84
|
-
|
|
85
|
-
fullscreen.value = false;
|
|
86
|
-
} else {
|
|
87
|
-
close();
|
|
88
|
-
}
|
|
104
|
+
onSwipeDown();
|
|
89
105
|
break;
|
|
90
106
|
}
|
|
91
107
|
}
|
|
@@ -102,7 +118,7 @@ var script = defineComponent({
|
|
|
102
118
|
} = _ref;
|
|
103
119
|
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'));
|
|
104
120
|
})) {
|
|
105
|
-
close();
|
|
121
|
+
close(true);
|
|
106
122
|
}
|
|
107
123
|
});
|
|
108
124
|
// #endregion
|
|
@@ -112,10 +128,11 @@ var script = defineComponent({
|
|
|
112
128
|
handleStyles,
|
|
113
129
|
headerStyles,
|
|
114
130
|
state,
|
|
115
|
-
|
|
131
|
+
isOpen,
|
|
132
|
+
isFullscreen,
|
|
133
|
+
isClosed,
|
|
116
134
|
open,
|
|
117
|
-
close
|
|
118
|
-
toggle
|
|
135
|
+
close
|
|
119
136
|
};
|
|
120
137
|
}
|
|
121
138
|
});
|
|
@@ -128,9 +145,9 @@ var __vue_render__ = function () {
|
|
|
128
145
|
var _vm = this;
|
|
129
146
|
var _h = _vm.$createElement;
|
|
130
147
|
var _c = _vm._self._c || _h;
|
|
131
|
-
return _vm.state
|
|
148
|
+
return _vm.state !== 'closed' ? _c('OrOverlay', {
|
|
132
149
|
attrs: {
|
|
133
|
-
"fullscreen": _vm.fullscreen
|
|
150
|
+
"fullscreen": _vm.state === 'fullscreen'
|
|
134
151
|
}
|
|
135
152
|
}, [_c('div', _vm._b({
|
|
136
153
|
ref: "root",
|
|
@@ -140,7 +157,7 @@ var __vue_render__ = function () {
|
|
|
140
157
|
})] : _vm._e(), _vm._v(" "), _c('div', {
|
|
141
158
|
class: _vm.headerStyles
|
|
142
159
|
}, [_vm._t("header")], 2), _vm._v(" "), _c('div', {
|
|
143
|
-
class: [_vm.fullscreen ? 'overflow-y-auto' : 'overflow-hidden']
|
|
160
|
+
class: [_vm.state === 'fullscreen' ? 'overflow-y-auto' : 'overflow-hidden']
|
|
144
161
|
}, [_vm._t("default")], 2)], 2)]) : _vm._e();
|
|
145
162
|
};
|
|
146
163
|
var __vue_staticRenderFns__ = [];
|
|
@@ -5,31 +5,23 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
6
|
handleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
7
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
-
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
9
|
-
|
|
8
|
+
state: import("@vue/composition-api").Ref<"open" | "fullscreen" | "closed">;
|
|
9
|
+
isOpen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
10
|
+
isFullscreen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
11
|
+
isClosed: import("@vue/composition-api").ComputedRef<boolean>;
|
|
10
12
|
open: () => void;
|
|
11
|
-
close: () => void;
|
|
12
|
-
toggle: () => void;
|
|
13
|
+
close: (auto?: boolean) => void;
|
|
13
14
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
14
|
-
isOpen: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
15
|
variant: {
|
|
19
16
|
type: PropType<"basic" | "advanced">;
|
|
20
17
|
default: BottomSheetVariant;
|
|
21
18
|
};
|
|
22
19
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
23
|
-
isOpen: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
20
|
variant: {
|
|
28
21
|
type: PropType<"basic" | "advanced">;
|
|
29
22
|
default: BottomSheetVariant;
|
|
30
23
|
};
|
|
31
24
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
32
|
-
isOpen: boolean;
|
|
33
25
|
variant: "basic" | "advanced";
|
|
34
26
|
} & {} & {
|
|
35
27
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
@@ -38,18 +30,17 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
38
30
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
39
31
|
handleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
40
32
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
41
|
-
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
42
|
-
|
|
33
|
+
state: import("@vue/composition-api").Ref<"open" | "fullscreen" | "closed">;
|
|
34
|
+
isOpen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
35
|
+
isFullscreen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
36
|
+
isClosed: import("@vue/composition-api").ComputedRef<boolean>;
|
|
43
37
|
open: () => void;
|
|
44
|
-
close: () => void;
|
|
45
|
-
toggle: () => void;
|
|
38
|
+
close: (auto?: boolean) => void;
|
|
46
39
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
47
|
-
isOpen: boolean;
|
|
48
40
|
variant: "basic" | "advanced";
|
|
49
41
|
} & {} & {
|
|
50
42
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
51
43
|
}, {
|
|
52
|
-
isOpen: boolean;
|
|
53
44
|
variant: "basic" | "advanced";
|
|
54
45
|
}, true>);
|
|
55
46
|
export default _default;
|
|
@@ -12,8 +12,8 @@ import '../OrIconButtonV3/props.js';
|
|
|
12
12
|
import '../OrIconV3/props.js';
|
|
13
13
|
import '../OrIconButtonV3/styles.js';
|
|
14
14
|
import '../OrTooltipV3/OrTooltip.js';
|
|
15
|
-
import '../OrTooltipV3/styles.js';
|
|
16
15
|
import '@vueuse/core';
|
|
16
|
+
import '../OrTooltipV3/styles.js';
|
|
17
17
|
import '../OrPopoverV3/OrPopover.js';
|
|
18
18
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
19
19
|
import '../OrPopoverV3/props.js';
|
|
@@ -27,7 +27,6 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
27
27
|
import 'portal-vue';
|
|
28
28
|
import '../../hooks/useElevation.js';
|
|
29
29
|
import '../../utils/isVisible.js';
|
|
30
|
-
import '../../hooks/usePopoverState.js';
|
|
31
30
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
32
31
|
import '../OrButtonV3/props.js';
|
|
33
32
|
import '../OrButtonV3/styles.js';
|
|
@@ -10,8 +10,8 @@ import '../OrIconButtonV3/styles.js';
|
|
|
10
10
|
import '../OrIconV3/OrIcon.js';
|
|
11
11
|
import '../OrIconV3/styles.js';
|
|
12
12
|
import '../OrTooltipV3/OrTooltip.js';
|
|
13
|
-
import '../OrTooltipV3/styles.js';
|
|
14
13
|
import '@vueuse/core';
|
|
14
|
+
import '../OrTooltipV3/styles.js';
|
|
15
15
|
import '../OrPopoverV3/OrPopover.js';
|
|
16
16
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
17
17
|
import '../OrPopoverV3/props.js';
|
|
@@ -25,7 +25,6 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
25
25
|
import 'portal-vue';
|
|
26
26
|
import '../../hooks/useElevation.js';
|
|
27
27
|
import '../../utils/isVisible.js';
|
|
28
|
-
import '../../hooks/usePopoverState.js';
|
|
29
28
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
30
29
|
import '../OrButtonV3/OrButton.js';
|
|
31
30
|
import '../OrButtonV3/props.js';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
2
2
|
import { l as logicAnd } from '../../index-968c331a.js';
|
|
3
|
-
import { defineComponent, ref,
|
|
3
|
+
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
4
4
|
import { ConfirmType } from './props.js';
|
|
5
5
|
import { ConfirmRoot, ConfirmHeader, ConfirmInput, ConfirmFooter, ConfirmFooterTypes, ConfirmFooterButtons } from './styles.js';
|
|
6
6
|
import __vue_component__$1 from '../OrOverlayV3/OrOverlay.js';
|
|
7
7
|
import __vue_component__$2 from '../OrButtonV3/OrButton.js';
|
|
8
8
|
import __vue_component__$3 from '../OrInputV3/OrInput.js';
|
|
9
|
-
import { usePopoverState } from '../../hooks/usePopoverState.js';
|
|
10
9
|
import { ButtonColor } from '../OrButtonV3/props.js';
|
|
11
10
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
12
11
|
import '../OrOverlayV3/styles.js';
|
|
@@ -60,10 +59,6 @@ var script = defineComponent({
|
|
|
60
59
|
},
|
|
61
60
|
inheritAttrs: false,
|
|
62
61
|
props: {
|
|
63
|
-
isOpen: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: false
|
|
66
|
-
},
|
|
67
62
|
titleText: {
|
|
68
63
|
type: String,
|
|
69
64
|
required: false,
|
|
@@ -71,18 +66,22 @@ var script = defineComponent({
|
|
|
71
66
|
},
|
|
72
67
|
confirmButtonText: {
|
|
73
68
|
type: String,
|
|
69
|
+
required: false,
|
|
74
70
|
default: 'Confirm'
|
|
75
71
|
},
|
|
76
72
|
cancelButtonText: {
|
|
77
73
|
type: String,
|
|
74
|
+
required: false,
|
|
78
75
|
default: 'Cancel'
|
|
79
76
|
},
|
|
80
77
|
confirmType: {
|
|
81
78
|
type: String,
|
|
79
|
+
required: false,
|
|
82
80
|
default: ConfirmType.C
|
|
83
81
|
},
|
|
84
82
|
loading: {
|
|
85
83
|
type: Boolean,
|
|
84
|
+
required: false,
|
|
86
85
|
default: false
|
|
87
86
|
},
|
|
88
87
|
disabled: {
|
|
@@ -92,35 +91,43 @@ var script = defineComponent({
|
|
|
92
91
|
},
|
|
93
92
|
confirmationText: {
|
|
94
93
|
type: String,
|
|
95
|
-
|
|
94
|
+
required: false,
|
|
95
|
+
default: null
|
|
96
96
|
},
|
|
97
97
|
textConfirmationLabel: {
|
|
98
98
|
type: String,
|
|
99
|
-
|
|
99
|
+
required: false,
|
|
100
|
+
default: null
|
|
100
101
|
},
|
|
101
102
|
textConfirmationPlaceholder: {
|
|
102
103
|
type: String,
|
|
103
|
-
|
|
104
|
+
required: false,
|
|
105
|
+
default: null
|
|
104
106
|
},
|
|
105
107
|
textConfirmationError: {
|
|
106
108
|
type: String,
|
|
109
|
+
required: false,
|
|
110
|
+
default: null
|
|
111
|
+
},
|
|
112
|
+
isOpen: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
required: false,
|
|
107
115
|
default: undefined
|
|
108
116
|
}
|
|
109
117
|
},
|
|
110
118
|
emits: ['open', 'close', 'confirm'],
|
|
111
|
-
expose: ['root', 'open', 'close'],
|
|
112
|
-
setup(props,
|
|
119
|
+
expose: ['root', 'isActive', 'open', 'close'],
|
|
120
|
+
setup(props, _ref) {
|
|
121
|
+
let {
|
|
122
|
+
emit
|
|
123
|
+
} = _ref;
|
|
113
124
|
// Refs
|
|
114
125
|
const root = ref();
|
|
115
126
|
const confirmationInput = ref();
|
|
116
127
|
const confirmationButton = ref();
|
|
117
128
|
// State
|
|
118
129
|
const touched = ref(false);
|
|
119
|
-
const
|
|
120
|
-
state,
|
|
121
|
-
open,
|
|
122
|
-
close
|
|
123
|
-
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
130
|
+
const isActive = ref(props.isOpen || false);
|
|
124
131
|
const isInputActive = ref(false);
|
|
125
132
|
const confirmationValue = ref('');
|
|
126
133
|
const {
|
|
@@ -133,11 +140,22 @@ var script = defineComponent({
|
|
|
133
140
|
const isConfirmationButtonDisabled = computed(() => !!props.disabled || isInvalid.value);
|
|
134
141
|
const confirmButtonColor = computed(() => props.confirmType === ConfirmType.C ? ButtonColor.Primary : ButtonColor.Danger);
|
|
135
142
|
// Methods
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
function open() {
|
|
144
|
+
isActive.value = true;
|
|
145
|
+
emit('open');
|
|
146
|
+
}
|
|
147
|
+
function close() {
|
|
148
|
+
// In case if component opened by isOpen - only event can be emited, app will catch it and flip reference
|
|
149
|
+
if (props.isOpen === true) {
|
|
150
|
+
emit('close');
|
|
151
|
+
} else {
|
|
152
|
+
isActive.value = false;
|
|
153
|
+
emit('close');
|
|
139
154
|
}
|
|
140
155
|
}
|
|
156
|
+
function confirm() {
|
|
157
|
+
if (!props.disabled && !isInvalid.value) emit('confirm');
|
|
158
|
+
}
|
|
141
159
|
function onInputFocus() {
|
|
142
160
|
isInputActive.value = true;
|
|
143
161
|
}
|
|
@@ -146,14 +164,20 @@ var script = defineComponent({
|
|
|
146
164
|
touched.value = true;
|
|
147
165
|
}
|
|
148
166
|
// Events
|
|
167
|
+
watch(() => props.isOpen, value => {
|
|
168
|
+
// In case if component opened by isOpen - no need to emmit events, we need just sync local state
|
|
169
|
+
if (value != undefined) {
|
|
170
|
+
isActive.value = value;
|
|
171
|
+
}
|
|
172
|
+
}, {
|
|
173
|
+
immediate: true
|
|
174
|
+
});
|
|
149
175
|
watch(escape, val => {
|
|
150
176
|
if (val) close();
|
|
151
177
|
});
|
|
152
|
-
watch(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
touched.value = false;
|
|
156
|
-
}
|
|
178
|
+
watch(isActive, () => {
|
|
179
|
+
confirmationValue.value = '';
|
|
180
|
+
touched.value = false;
|
|
157
181
|
});
|
|
158
182
|
// types here are used for fixing TS2349
|
|
159
183
|
watch(confirmationInput, val => {
|
|
@@ -186,7 +210,7 @@ var script = defineComponent({
|
|
|
186
210
|
isInvalid,
|
|
187
211
|
isConfirmationButtonDisabled,
|
|
188
212
|
touched,
|
|
189
|
-
|
|
213
|
+
isActive,
|
|
190
214
|
isInputActive,
|
|
191
215
|
escape,
|
|
192
216
|
rootStyles,
|
|
@@ -211,9 +235,9 @@ var __vue_render__ = function () {
|
|
|
211
235
|
var _vm = this;
|
|
212
236
|
var _h = _vm.$createElement;
|
|
213
237
|
var _c = _vm._self._c || _h;
|
|
214
|
-
return _vm.
|
|
238
|
+
return _vm.isActive ? _c('OrOverlay', {
|
|
215
239
|
attrs: {
|
|
216
|
-
"fullscreen":
|
|
240
|
+
"fullscreen": ""
|
|
217
241
|
}
|
|
218
242
|
}, [_c('div', _vm._b({
|
|
219
243
|
ref: "root",
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
18
18
|
isInvalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
19
19
|
isConfirmationButtonDisabled: import("@vue/composition-api").ComputedRef<boolean>;
|
|
20
20
|
touched: import("@vue/composition-api").Ref<boolean>;
|
|
21
|
-
|
|
21
|
+
isActive: import("@vue/composition-api").Ref<boolean>;
|
|
22
22
|
isInputActive: import("@vue/composition-api").Ref<boolean>;
|
|
23
23
|
escape: import("@vue/composition-api").ComputedRef<boolean>;
|
|
24
24
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -32,10 +32,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
32
32
|
onInputFocus: () => void;
|
|
33
33
|
onInputBlur: () => void;
|
|
34
34
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
35
|
-
isOpen: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
35
|
titleText: {
|
|
40
36
|
type: StringConstructor;
|
|
41
37
|
required: false;
|
|
@@ -43,18 +39,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
43
39
|
};
|
|
44
40
|
confirmButtonText: {
|
|
45
41
|
type: StringConstructor;
|
|
42
|
+
required: false;
|
|
46
43
|
default: string;
|
|
47
44
|
};
|
|
48
45
|
cancelButtonText: {
|
|
49
46
|
type: StringConstructor;
|
|
47
|
+
required: false;
|
|
50
48
|
default: string;
|
|
51
49
|
};
|
|
52
50
|
confirmType: {
|
|
53
51
|
type: PropType<ConfirmType>;
|
|
52
|
+
required: false;
|
|
54
53
|
default: ConfirmType;
|
|
55
54
|
};
|
|
56
55
|
loading: {
|
|
57
56
|
type: BooleanConstructor;
|
|
57
|
+
required: false;
|
|
58
58
|
default: boolean;
|
|
59
59
|
};
|
|
60
60
|
disabled: {
|
|
@@ -64,25 +64,30 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
64
64
|
};
|
|
65
65
|
confirmationText: {
|
|
66
66
|
type: StringConstructor;
|
|
67
|
-
|
|
67
|
+
required: false;
|
|
68
|
+
default: null;
|
|
68
69
|
};
|
|
69
70
|
textConfirmationLabel: {
|
|
70
71
|
type: StringConstructor;
|
|
71
|
-
|
|
72
|
+
required: false;
|
|
73
|
+
default: null;
|
|
72
74
|
};
|
|
73
75
|
textConfirmationPlaceholder: {
|
|
74
76
|
type: StringConstructor;
|
|
75
|
-
|
|
77
|
+
required: false;
|
|
78
|
+
default: null;
|
|
76
79
|
};
|
|
77
80
|
textConfirmationError: {
|
|
78
81
|
type: StringConstructor;
|
|
79
|
-
|
|
82
|
+
required: false;
|
|
83
|
+
default: null;
|
|
80
84
|
};
|
|
81
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
82
85
|
isOpen: {
|
|
83
86
|
type: BooleanConstructor;
|
|
84
|
-
|
|
87
|
+
required: false;
|
|
88
|
+
default: undefined;
|
|
85
89
|
};
|
|
90
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
86
91
|
titleText: {
|
|
87
92
|
type: StringConstructor;
|
|
88
93
|
required: false;
|
|
@@ -90,18 +95,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
90
95
|
};
|
|
91
96
|
confirmButtonText: {
|
|
92
97
|
type: StringConstructor;
|
|
98
|
+
required: false;
|
|
93
99
|
default: string;
|
|
94
100
|
};
|
|
95
101
|
cancelButtonText: {
|
|
96
102
|
type: StringConstructor;
|
|
103
|
+
required: false;
|
|
97
104
|
default: string;
|
|
98
105
|
};
|
|
99
106
|
confirmType: {
|
|
100
107
|
type: PropType<ConfirmType>;
|
|
108
|
+
required: false;
|
|
101
109
|
default: ConfirmType;
|
|
102
110
|
};
|
|
103
111
|
loading: {
|
|
104
112
|
type: BooleanConstructor;
|
|
113
|
+
required: false;
|
|
105
114
|
default: boolean;
|
|
106
115
|
};
|
|
107
116
|
disabled: {
|
|
@@ -111,22 +120,30 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
111
120
|
};
|
|
112
121
|
confirmationText: {
|
|
113
122
|
type: StringConstructor;
|
|
114
|
-
|
|
123
|
+
required: false;
|
|
124
|
+
default: null;
|
|
115
125
|
};
|
|
116
126
|
textConfirmationLabel: {
|
|
117
127
|
type: StringConstructor;
|
|
118
|
-
|
|
128
|
+
required: false;
|
|
129
|
+
default: null;
|
|
119
130
|
};
|
|
120
131
|
textConfirmationPlaceholder: {
|
|
121
132
|
type: StringConstructor;
|
|
122
|
-
|
|
133
|
+
required: false;
|
|
134
|
+
default: null;
|
|
123
135
|
};
|
|
124
136
|
textConfirmationError: {
|
|
125
137
|
type: StringConstructor;
|
|
138
|
+
required: false;
|
|
139
|
+
default: null;
|
|
140
|
+
};
|
|
141
|
+
isOpen: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
required: false;
|
|
126
144
|
default: undefined;
|
|
127
145
|
};
|
|
128
146
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
129
|
-
isOpen: boolean;
|
|
130
147
|
titleText: string;
|
|
131
148
|
confirmButtonText: string;
|
|
132
149
|
cancelButtonText: string;
|
|
@@ -137,6 +154,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
137
154
|
textConfirmationLabel: string;
|
|
138
155
|
textConfirmationPlaceholder: string;
|
|
139
156
|
textConfirmationError: string;
|
|
157
|
+
isOpen: boolean;
|
|
140
158
|
} & {} & {
|
|
141
159
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
142
160
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -156,7 +174,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
156
174
|
isInvalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
157
175
|
isConfirmationButtonDisabled: import("@vue/composition-api").ComputedRef<boolean>;
|
|
158
176
|
touched: import("@vue/composition-api").Ref<boolean>;
|
|
159
|
-
|
|
177
|
+
isActive: import("@vue/composition-api").Ref<boolean>;
|
|
160
178
|
isInputActive: import("@vue/composition-api").Ref<boolean>;
|
|
161
179
|
escape: import("@vue/composition-api").ComputedRef<boolean>;
|
|
162
180
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -170,7 +188,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
170
188
|
onInputFocus: () => void;
|
|
171
189
|
onInputBlur: () => void;
|
|
172
190
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
173
|
-
isOpen: boolean;
|
|
174
191
|
titleText: string;
|
|
175
192
|
confirmButtonText: string;
|
|
176
193
|
cancelButtonText: string;
|
|
@@ -181,10 +198,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
181
198
|
textConfirmationLabel: string;
|
|
182
199
|
textConfirmationPlaceholder: string;
|
|
183
200
|
textConfirmationError: string;
|
|
201
|
+
isOpen: boolean;
|
|
184
202
|
} & {} & {
|
|
185
203
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
186
204
|
}, {
|
|
187
|
-
isOpen: boolean;
|
|
188
205
|
titleText: string;
|
|
189
206
|
confirmButtonText: string;
|
|
190
207
|
cancelButtonText: string;
|
|
@@ -195,5 +212,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
195
212
|
textConfirmationLabel: string;
|
|
196
213
|
textConfirmationPlaceholder: string;
|
|
197
214
|
textConfirmationError: string;
|
|
215
|
+
isOpen: boolean;
|
|
198
216
|
}, true>);
|
|
199
217
|
export default _default;
|
|
@@ -40,7 +40,6 @@ import '../OrPopoverV3/styles.js';
|
|
|
40
40
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
41
41
|
import '../OrBottomSheetV3/props.js';
|
|
42
42
|
import '../OrBottomSheetV3/styles.js';
|
|
43
|
-
import '../../hooks/usePopoverState.js';
|
|
44
43
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
45
44
|
import '../OrInputBoxV3/OrInputBox.js';
|
|
46
45
|
import '../OrInputBoxV3/styles.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-1cf93f01.js';
|
|
4
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-7c87f38a.js';
|
|
5
5
|
import { DatePicker, DatePickerPopover } from './styles.js';
|
|
6
6
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
@@ -24,7 +24,6 @@ import '../OrLoaderV3/props.js';
|
|
|
24
24
|
import '../OrLoaderV3/styles.js';
|
|
25
25
|
import '../OrMenuV3/OrMenu.js';
|
|
26
26
|
import '../OrMenuV3/styles.js';
|
|
27
|
-
import '../../hooks/usePopoverState.js';
|
|
28
27
|
import '../OrPopoverV3/props.js';
|
|
29
28
|
import '../OrMenuItemV3/OrMenuItem.js';
|
|
30
29
|
import '../OrMenuItemV3/styles.js';
|
|
@@ -292,7 +291,7 @@ var __vue_render__ = function () {
|
|
|
292
291
|
"placement": 'bottom-start'
|
|
293
292
|
},
|
|
294
293
|
on: {
|
|
295
|
-
"
|
|
294
|
+
"update:state:closed-automatically": function ($event) {
|
|
296
295
|
return _vm.reset();
|
|
297
296
|
}
|
|
298
297
|
}
|
|
@@ -2,7 +2,7 @@ export { default as OrDatePickerV3 } from './OrDatePicker.js';
|
|
|
2
2
|
export { InputBoxSize as DatePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
5
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
5
|
+
import '../../OrDateTimePickerMonthSelect-1cf93f01.js';
|
|
6
6
|
import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
7
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
8
|
import '../OrButtonV3/OrButton.js';
|
|
@@ -33,7 +33,6 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
33
33
|
import 'portal-vue';
|
|
34
34
|
import '../../hooks/useElevation.js';
|
|
35
35
|
import '../../utils/isVisible.js';
|
|
36
|
-
import '../../hooks/usePopoverState.js';
|
|
37
36
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
38
37
|
import '../OrMenuV3/OrMenu.js';
|
|
39
38
|
import '../OrMenuV3/styles.js';
|