@onereach/ui-components 4.0.4-beta.2523.0 → 4.0.4
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/OrButtonV3/styles.js +1 -3
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +1 -6
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +0 -2
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +3 -6
- package/dist/bundled/v2/components/index.js +9 -25
- package/dist/bundled/v2/directives/dropdown-close.js +0 -1
- package/dist/bundled/v2/directives/dropdown-open.js +1 -6
- package/dist/bundled/v2/hooks/useElevation.js +3 -3
- package/dist/bundled/v2/index.js +7 -23
- package/dist/bundled/v2/utils/isVisible.js +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a8d8c139.js → OrBottomSheet.vue_vue_type_script_lang-01d7c429.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-cff6cd75.js → OrCardCollection.vue_vue_type_script_lang-66122aa0.js} +4 -4
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-a04553af.js → OrConfirm.vue_vue_type_script_lang-f5c5f34e.js} +3 -3
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-028c99e4.js → OrIconButton.vue_vue_type_script_lang-41f12b45.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-8792f83c.js → OrInlineInput.vue_vue_type_script_lang-2b485aef.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-b56dc426.js → OrInlineTextarea.vue_vue_type_script_lang-aa848373.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-b77645cc.js → OrInput.vue_vue_type_script_lang-fe526531.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-8f523b6a.js → OrMenu.vue_vue_type_script_lang-4772731e.js} +2 -7
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-254cf6de.js → OrModal.vue_vue_type_script_lang-265f39e0.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-1741c54a.js → OrNotification.vue_vue_type_script_lang-1b2d17a2.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-be66e16d.js → OrPagination.vue_vue_type_script_lang-c542b26a.js} +2 -2
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-d2a55ad2.js → OrPopover.vue_vue_type_script_lang-9d3a7c2d.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-75a4cb88.js → OrSearch.vue_vue_type_script_lang-36ad17a9.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-1073a2cf.js → OrSelect.vue_vue_type_script_lang-410f4efc.js} +5 -5
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-dcb78b46.js → OrSidebar.vue_vue_type_script_lang-ed7c92fb.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-46612ca9.js → OrTabs.vue_vue_type_script_lang-4f5e0d90.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-eb76ce17.js → OrTag.vue_vue_type_script_lang-fbc19deb.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-aad6940e.js → OrTooltip.vue_vue_type_script_lang-b35199da.js} +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +3 -3
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButtonV3/styles.js +1 -3
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +11 -11
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +9 -9
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -8
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +6 -6
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +7 -7
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +7 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +7 -7
- package/dist/bundled/v3/components/OrInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +5 -5
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +0 -2
- package/dist/bundled/v3/components/OrMenuV3/index.js +4 -4
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +7 -7
- package/dist/bundled/v3/components/OrModalV3/index.js +6 -6
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +7 -7
- package/dist/bundled/v3/components/OrNotificationV3/index.js +6 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +7 -7
- package/dist/bundled/v3/components/OrPaginationV3/index.js +6 -6
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +4 -4
- package/dist/bundled/v3/components/OrPopoverV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +8 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +7 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -10
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -9
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +7 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +6 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +7 -7
- package/dist/bundled/v3/components/OrTagV3/index.js +6 -6
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +7 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +6 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +5 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +5 -5
- package/dist/bundled/v3/components/OrTooltipV3/index.js +4 -4
- package/dist/bundled/v3/components/index.d.ts +3 -6
- package/dist/bundled/v3/components/index.js +29 -45
- package/dist/bundled/v3/directives/dropdown-close.js +0 -1
- package/dist/bundled/v3/directives/dropdown-open.js +1 -6
- package/dist/bundled/v3/hooks/useElevation.js +3 -3
- package/dist/bundled/v3/index.js +34 -53
- package/dist/bundled/v3/utils/isVisible.js +1 -1
- package/dist/esm/v2/{OrBottomSheet-268dfd22.js → OrBottomSheet-2d3d8fbc.js} +1 -1
- package/dist/esm/v2/{OrButton-6b60a776.js → OrButton-236d9c2e.js} +1 -3
- package/dist/esm/v2/{OrCardCollection-c2565dbc.js → OrCardCollection-656195a2.js} +6 -6
- package/dist/esm/v2/{OrConfirm-a4f2c6db.js → OrConfirm-cc05531b.js} +3 -3
- package/dist/esm/v2/{OrIconButton-4a4e7a7e.js → OrIconButton-fbe52eb8.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-7dac839f.js → OrInlineInput-50bf7e7c.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-1313cfb3.js → OrInlineTextarea-78b8aa48.js} +1 -1
- package/dist/esm/v2/{OrInput-2ac7d76f.js → OrInput-6370bd94.js} +3 -3
- package/dist/esm/v2/{OrInputBox-0f4e8500.js → OrInputBox-6b1aec08.js} +1 -1
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js → OrInputBox.vue_rollup-plugin-vue_script-23426690.js} +1 -1
- package/dist/esm/v2/{OrMenu-4209c84c.js → OrMenu-fce31ed4.js} +2 -7
- package/dist/esm/v2/{OrModal-587e59af.js → OrModal-77d6cf30.js} +2 -2
- package/dist/esm/v2/{OrNotification-5ef37d9c.js → OrNotification-2b2d81d5.js} +1 -1
- package/dist/esm/v2/{OrOverlay-2ce3cfd7.js → OrOverlay-b1609eef.js} +1 -1
- package/dist/esm/v2/{OrPagination-c872085a.js → OrPagination-1ff3c81d.js} +3 -3
- package/dist/esm/v2/{OrPopover-a70deaa6.js → OrPopover-9df5572b.js} +2 -2
- package/dist/esm/v2/{OrSearch-773d18ec.js → OrSearch-a3038272.js} +2 -2
- package/dist/esm/v2/{OrSelect-4b423923.js → OrSelect-209a7a2c.js} +6 -6
- package/dist/esm/v2/{OrSidebar-a46855ba.js → OrSidebar-26785a1e.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-8d256fa5.js → OrSidebarCollapseButton-9c424133.js} +1 -1
- package/dist/esm/v2/{OrTabs-c303cc81.js → OrTabs-58881ef9.js} +2 -2
- package/dist/esm/v2/{OrTag-aba33ba6.js → OrTag-e9761c21.js} +1 -1
- package/dist/esm/v2/{OrTextarea-839a422d.js → OrTextarea-2d5d0be6.js} +2 -2
- package/dist/esm/v2/{OrTooltip-d957f373.js → OrTooltip-82c59279.js} +1 -1
- package/dist/esm/v2/components/index.d.ts +3 -6
- package/dist/esm/v2/components/index.js +29 -35
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +13 -13
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +11 -11
- package/dist/esm/v2/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +9 -9
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v2/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v2/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -7
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v2/components/or-search-v3/index.js +10 -10
- package/dist/esm/v2/components/or-select-v3/index.js +12 -12
- package/dist/esm/v2/components/or-sidebar-v3/index.js +8 -8
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +7 -7
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -7
- package/dist/esm/v2/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v2/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-toast-v3/index.js +7 -7
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +7 -7
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/v2/directives/index.js +1 -1
- package/dist/esm/v2/{dropdown-open-e1f90e0a.js → dropdown-open-0d314aa4.js} +1 -7
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +28 -34
- package/dist/esm/v2/{types-5582119b.js → types-707995c5.js} +1 -1
- package/dist/esm/{v3/useElevation-92fce12c.js → v2/useElevation-df91fa50.js} +4 -4
- package/dist/esm/v3/{OrBottomSheet-e8499538.js → OrBottomSheet-95bc694e.js} +1 -1
- package/dist/esm/v3/{OrButton-8558588c.js → OrButton-b9bab32c.js} +1 -3
- package/dist/esm/v3/{OrCardCollection-ef034e07.js → OrCardCollection-cf434100.js} +6 -6
- package/dist/esm/v3/{OrConfirm-ad5f8c2c.js → OrConfirm-934932f4.js} +3 -3
- package/dist/esm/v3/{OrIconButton-1f288e53.js → OrIconButton-786b9346.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-019c7141.js → OrInlineInput-ca82ccc3.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-ca474a6d.js → OrInlineTextarea-864f1099.js} +1 -1
- package/dist/esm/v3/{OrInput-97dc032f.js → OrInput-a43b53d2.js} +2 -2
- package/dist/esm/v3/{OrInputBox-901887a1.js → OrInputBox-11389afd.js} +1 -1
- package/dist/esm/v3/{OrMenu-bf6046a9.js → OrMenu-f8132f3e.js} +2 -7
- package/dist/esm/v3/{OrModal-87f17393.js → OrModal-cb236842.js} +2 -2
- package/dist/esm/v3/{OrNotification-ed1611b2.js → OrNotification-45b47899.js} +1 -1
- package/dist/esm/v3/{OrOverlay-7cf03aea.js → OrOverlay-d63d39c3.js} +1 -1
- package/dist/esm/v3/{OrPagination-f7e1a6b9.js → OrPagination-02dd98b0.js} +3 -3
- package/dist/esm/v3/{OrPopover-64e3977f.js → OrPopover-d6d82a06.js} +2 -2
- package/dist/esm/v3/{OrSearch-6febf8e0.js → OrSearch-d5d46937.js} +2 -2
- package/dist/esm/v3/{OrSelect-bb6f10b2.js → OrSelect-f2911b60.js} +5 -5
- package/dist/esm/v3/{OrSidebar-609a647f.js → OrSidebar-0d715029.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-54260291.js → OrSidebarCollapseButton-4d7497ec.js} +1 -1
- package/dist/esm/v3/{OrTabs-87a46fc0.js → OrTabs-f667cf9f.js} +2 -2
- package/dist/esm/v3/{OrTag-15afbdfd.js → OrTag-dc1b8628.js} +1 -1
- package/dist/esm/v3/{OrTextarea-2002e190.js → OrTextarea-08b22d36.js} +1 -1
- package/dist/esm/v3/{OrTooltip-a011f5e8.js → OrTooltip-56ed42c7.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +3 -6
- package/dist/esm/v3/components/index.js +28 -34
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +12 -12
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +10 -10
- package/dist/esm/v3/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +8 -8
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v3/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v3/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -7
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v3/components/or-search-v3/index.js +9 -9
- package/dist/esm/v3/components/or-select-v3/index.js +11 -11
- package/dist/esm/v3/components/or-sidebar-v3/index.js +8 -8
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +7 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -7
- package/dist/esm/v3/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +7 -7
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +7 -7
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/v3/directives/index.js +1 -1
- package/dist/esm/v3/{dropdown-open-e1f90e0a.js → dropdown-open-0d314aa4.js} +1 -7
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +27 -33
- package/dist/esm/v3/{types-2fe8b718.js → types-71d7c1df.js} +1 -1
- package/dist/esm/{v2/useElevation-92fce12c.js → v3/useElevation-df91fa50.js} +4 -4
- package/package.json +4 -3
- package/src/components/index.ts +3 -6
- package/src/components/or-button-v3/styles.ts +2 -6
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +1 -1
- package/src/components/{or-date-picker-v3/OrDatePicker.docs.mdx → or-error-v3/OrError.docs.mdx} +1 -1
- package/src/components/or-error-v3/OrError.stories3.ts +77 -0
- package/src/components/{or-time-picker-v3/OrTimePicker.docs.mdx → or-hint-v3/OrHint.docs.mdx} +1 -1
- package/src/components/or-hint-v3/OrHint.stories3.ts +77 -0
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.docs.mdx +3 -0
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.stories3.ts +67 -0
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +1 -1
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +1 -1
- package/src/components/or-input-box-v3/OrInputBox.docs.mdx +3 -0
- package/src/components/or-input-box-v3/OrInputBox.stories3.ts +80 -0
- package/src/components/or-input-v3/OrInput.stories3.ts +2 -2
- package/src/components/or-label-v3/OrLabel.docs.mdx +11 -0
- package/src/components/or-label-v3/OrLabel.stories3.ts +91 -0
- package/src/components/or-menu-v3/OrMenu.vue +0 -3
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +1 -1
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +1 -1
- package/src/directives/dropdown-close.ts +0 -1
- package/src/directives/dropdown-open.ts +1 -7
- package/src/hooks/useElevation.ts +3 -2
- package/src/utils/isVisible.ts +1 -1
- package/dist/bundled/v2/OrDateTimePickerMonthSelect-59c639c8.js +0 -433
- package/dist/bundled/v2/OrDateTimePickerPopoverHeader-ffdf51e9.js +0 -218
- package/dist/bundled/v2/OrDateTimePickerTimeSelect-cb1394ee.js +0 -182
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +0 -363
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.vue.d.ts +0 -183
- package/dist/bundled/v2/components/OrDatePickerV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +0 -59
- package/dist/bundled/v2/components/OrDatePickerV3/props.d.ts +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/props.js +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/OrDatePickerV3/styles.js +0 -10
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +0 -472
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +0 -205
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDateFormat.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDateFormat.js +0 -9
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultDate.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultHours.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMinutes.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMonth.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultYear.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useTimeFormat.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useTimeFormat.js +0 -9
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +0 -61
- package/dist/bundled/v2/components/OrDateTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/styles.js +0 -12
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +0 -347
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +0 -183
- package/dist/bundled/v2/components/OrTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +0 -55
- package/dist/bundled/v2/components/OrTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v2/components/OrTimePickerV3/props.js +0 -1
- package/dist/bundled/v2/components/OrTimePickerV3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/OrTimePickerV3/styles.js +0 -10
- package/dist/bundled/v3/OrDatePicker.vue_vue_type_script_lang-53f5b925.js +0 -173
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-d78de3fd.js +0 -221
- package/dist/bundled/v3/OrDateTimePickerMonthSelect-dea4a5ae.js +0 -368
- package/dist/bundled/v3/OrDateTimePickerPopoverHeader-8fbb4dfc.js +0 -143
- package/dist/bundled/v3/OrDateTimePickerTimeSelect-6cb9e69d.js +0 -153
- package/dist/bundled/v3/OrTimePicker.vue_vue_type_script_lang-46b737c8.js +0 -172
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +0 -189
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +0 -183
- package/dist/bundled/v3/components/OrDatePickerV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +0 -73
- package/dist/bundled/v3/components/OrDatePickerV3/props.d.ts +0 -1
- package/dist/bundled/v3/components/OrDatePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrDatePickerV3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/OrDatePickerV3/styles.js +0 -10
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +0 -244
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +0 -205
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDateFormat.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDateFormat.js +0 -9
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultDate.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultHours.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMinutes.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMonth.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultYear.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useTimeFormat.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useTimeFormat.js +0 -9
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +0 -75
- package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +0 -12
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +0 -178
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +0 -183
- package/dist/bundled/v3/components/OrTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +0 -67
- package/dist/bundled/v3/components/OrTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v3/components/OrTimePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrTimePickerV3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/OrTimePickerV3/styles.js +0 -10
- package/dist/esm/v2/OrDatePicker-f24e50af.js +0 -329
- package/dist/esm/v2/OrDateTimePicker-a65f6007.js +0 -439
- package/dist/esm/v2/OrDateTimePickerMonthSelect-d49207f4.js +0 -436
- package/dist/esm/v2/OrDateTimePickerPopoverHeader-93f19c1d.js +0 -235
- package/dist/esm/v2/OrDateTimePickerTimeSelect-46dac0e1.js +0 -185
- package/dist/esm/v2/OrTimePicker-a1d99540.js +0 -317
- package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +0 -183
- package/dist/esm/v2/components/or-date-picker-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-date-picker-v3/index.js +0 -29
- package/dist/esm/v2/components/or-date-picker-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-date-picker-v3/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +0 -205
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDateFormat.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useTimeFormat.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +0 -30
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +0 -54
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +0 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +0 -24
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -102
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +0 -12
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +0 -8
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -54
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +0 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +0 -183
- package/dist/esm/v2/components/or-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +0 -27
- package/dist/esm/v2/components/or-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-time-picker-v3/styles.d.ts +0 -2
- package/dist/esm/v3/OrDatePicker-9bf74aab.js +0 -288
- package/dist/esm/v3/OrDateTimePicker-1d5941b7.js +0 -390
- package/dist/esm/v3/OrDateTimePickerMonthSelect-315f7a54.js +0 -368
- package/dist/esm/v3/OrDateTimePickerPopoverHeader-92a85080.js +0 -161
- package/dist/esm/v3/OrDateTimePickerTimeSelect-00697b44.js +0 -156
- package/dist/esm/v3/OrTimePicker-2c35e812.js +0 -282
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +0 -183
- package/dist/esm/v3/components/or-date-picker-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-date-picker-v3/index.js +0 -27
- package/dist/esm/v3/components/or-date-picker-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-date-picker-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +0 -205
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDateFormat.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useTimeFormat.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +0 -28
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +0 -54
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +0 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +0 -24
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -102
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +0 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +0 -8
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -54
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +0 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +0 -183
- package/dist/esm/v3/components/or-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +0 -25
- package/dist/esm/v3/components/or-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-time-picker-v3/styles.d.ts +0 -2
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +0 -160
- package/src/components/or-date-picker-v3/OrDatePicker.vue +0 -310
- package/src/components/or-date-picker-v3/index.ts +0 -2
- package/src/components/or-date-picker-v3/props.ts +0 -1
- package/src/components/or-date-picker-v3/styles.ts +0 -12
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.docs.mdx +0 -7
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +0 -160
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +0 -405
- package/src/components/or-date-time-picker-v3/hooks/useDateFormat.ts +0 -11
- package/src/components/or-date-time-picker-v3/hooks/useDefaultDate.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultHours.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultMinutes.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultMonth.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultYear.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useTimeFormat.ts +0 -11
- package/src/components/or-date-time-picker-v3/index.ts +0 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue +0 -188
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.ts +0 -47
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue +0 -58
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.ts +0 -16
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +0 -239
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.ts +0 -10
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +0 -59
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.ts +0 -13
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue +0 -37
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.ts +0 -10
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +0 -169
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.ts +0 -34
- package/src/components/or-date-time-picker-v3/props.ts +0 -1
- package/src/components/or-date-time-picker-v3/styles.ts +0 -19
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +0 -160
- package/src/components/or-time-picker-v3/OrTimePicker.vue +0 -303
- package/src/components/or-time-picker-v3/index.ts +0 -2
- package/src/components/or-time-picker-v3/props.ts +0 -1
- package/src/components/or-time-picker-v3/styles.ts +0 -12
- /package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5650b394.js → OrButton.vue_vue_type_script_lang-fe412ca5.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-30f62546.js → OrOverlay.vue_vue_type_script_lang-47004a50.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-2658137e.js → OrToastContainer.vue_vue_type_script_lang-96bc2f19.js} +0 -0
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$2 } from './OrButton-8558588c.js';
|
|
3
|
-
import { u as useDefaultYear, c as useDefaultMonth, d as useDefaultDate, e as useDefaultHours, f as useDefaultMinutes } from './OrDateTimePickerPopoverHeader-92a85080.js';
|
|
4
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString, createBlock, withModifiers, withCtx, createTextVNode, createVNode } from 'vue';
|
|
5
|
-
import { s as script$4 } from './OrIconButton-1f288e53.js';
|
|
6
|
-
import { s as script$3 } from './OrIcon-62793572.js';
|
|
7
|
-
import { s as script$6 } from './OrMenuItem-dbee450f.js';
|
|
8
|
-
import { s as script$5 } from './OrMenu-bf6046a9.js';
|
|
9
|
-
import './OrPopover-64e3977f.js';
|
|
10
|
-
|
|
11
|
-
function useDateFormat() {
|
|
12
|
-
const sample = new Date(Date.UTC(1111, 1, 3, 4, 5)).toLocaleString('default', {
|
|
13
|
-
dateStyle: 'short',
|
|
14
|
-
timeZone: 'UTC'
|
|
15
|
-
});
|
|
16
|
-
return sample.replace(/1/g, 'Y').replace(/02/, 'MM').replace(/2/, 'M').replace(/03/g, 'DD').replace(/3/, 'D');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const DateTimePickerDaySelect = [
|
|
20
|
-
// Layout
|
|
21
|
-
'layout-column',
|
|
22
|
-
// Spacing
|
|
23
|
-
'px-md', 'py-md', 'gap-sm'];
|
|
24
|
-
const DateTimePickerDaySelectButtonGroup = [
|
|
25
|
-
// Layout
|
|
26
|
-
'grid', 'grid-cols-7',
|
|
27
|
-
// Spacing
|
|
28
|
-
'gap-xs'];
|
|
29
|
-
const DateTimePickerDaySelectButtonGroupWeekdayItem = [
|
|
30
|
-
// Box
|
|
31
|
-
'min-w-fit',
|
|
32
|
-
// Spacing
|
|
33
|
-
'px-sm', 'py-sm',
|
|
34
|
-
// Typography
|
|
35
|
-
'typography-caption-regular',
|
|
36
|
-
// Theme
|
|
37
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
38
|
-
const DateTimePickerDaySelectButtonGroupDayItem = [
|
|
39
|
-
// Box
|
|
40
|
-
'min-w-fit',
|
|
41
|
-
// Spacing
|
|
42
|
-
'!px-sm', '!py-sm',
|
|
43
|
-
// Typography
|
|
44
|
-
'typography-caption-regular'];
|
|
45
|
-
|
|
46
|
-
var script$1 = defineComponent({
|
|
47
|
-
name: 'OrDateTimePickerDaySelect',
|
|
48
|
-
components: {
|
|
49
|
-
OrButton: script$2
|
|
50
|
-
},
|
|
51
|
-
model: {
|
|
52
|
-
prop: 'modelValue',
|
|
53
|
-
event: 'update:modelValue'
|
|
54
|
-
},
|
|
55
|
-
props: {
|
|
56
|
-
modelValue: {
|
|
57
|
-
type: Date,
|
|
58
|
-
default: undefined
|
|
59
|
-
},
|
|
60
|
-
filter: {
|
|
61
|
-
type: Function,
|
|
62
|
-
default: undefined
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
emits: ['update:modelValue'],
|
|
66
|
-
expose: ['root'],
|
|
67
|
-
setup(props, context) {
|
|
68
|
-
// Refs
|
|
69
|
-
const root = ref();
|
|
70
|
-
// Styles
|
|
71
|
-
const rootStyles = computed(() => ['or-date-time-picker-day-select', ...DateTimePickerDaySelect]);
|
|
72
|
-
const buttonGroupStyles = computed(() => [...DateTimePickerDaySelectButtonGroup]);
|
|
73
|
-
const buttonGroupWeekdayItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupWeekdayItem]);
|
|
74
|
-
const buttonGroupDayItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupDayItem]);
|
|
75
|
-
// State
|
|
76
|
-
const proxyModelValue = computed({
|
|
77
|
-
get: () => {
|
|
78
|
-
var _a;
|
|
79
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
80
|
-
},
|
|
81
|
-
set: value => {
|
|
82
|
-
context.emit('update:modelValue', value);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
const dayOptions = computed(() => {
|
|
86
|
-
const monthStartDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), 1, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
87
|
-
const monthEndDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, 0, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
88
|
-
const calendarStartDate = new Date(Date.UTC(monthStartDate.getUTCFullYear(), monthStartDate.getUTCMonth(), 1 - (monthStartDate.getUTCDay() + 6) % 7, monthStartDate.getUTCHours(), monthStartDate.getUTCMinutes()));
|
|
89
|
-
const calendarEndDate = new Date(Date.UTC(monthEndDate.getUTCFullYear(), monthEndDate.getUTCMonth() + 1, (7 - monthEndDate.getUTCDay()) % 7, monthEndDate.getUTCHours(), monthEndDate.getUTCMinutes()));
|
|
90
|
-
return (() => {
|
|
91
|
-
let options = [],
|
|
92
|
-
value = calendarStartDate;
|
|
93
|
-
while (Number(value) !== Number(calendarEndDate)) {
|
|
94
|
-
options = [...options, value];
|
|
95
|
-
value = new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate() + 1, value.getUTCHours(), value.getUTCMinutes()));
|
|
96
|
-
}
|
|
97
|
-
return options;
|
|
98
|
-
})();
|
|
99
|
-
});
|
|
100
|
-
// Methods
|
|
101
|
-
function formatWeekday(value) {
|
|
102
|
-
return value.toLocaleString('default', {
|
|
103
|
-
weekday: 'short',
|
|
104
|
-
timeZone: 'UTC'
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function formatDay(value) {
|
|
108
|
-
return value.toLocaleString('default', {
|
|
109
|
-
day: 'numeric',
|
|
110
|
-
timeZone: 'UTC'
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
root,
|
|
115
|
-
rootStyles,
|
|
116
|
-
buttonGroupStyles,
|
|
117
|
-
buttonGroupWeekdayItemStyles,
|
|
118
|
-
buttonGroupDayItemStyles,
|
|
119
|
-
proxyModelValue,
|
|
120
|
-
dayOptions,
|
|
121
|
-
formatWeekday,
|
|
122
|
-
formatDay
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
128
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
129
|
-
return openBlock(), createElementBlock("div", {
|
|
130
|
-
ref: "root",
|
|
131
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
132
|
-
}, [createElementVNode("div", {
|
|
133
|
-
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
134
|
-
}, [(openBlock(), createElementBlock(Fragment, null, renderList(7, i => {
|
|
135
|
-
return createElementVNode("div", {
|
|
136
|
-
class: normalizeClass(_ctx.buttonGroupWeekdayItemStyles)
|
|
137
|
-
}, toDisplayString(_ctx.formatWeekday(_ctx.dayOptions[i - 1])), 3 /* TEXT, CLASS */);
|
|
138
|
-
}), 64 /* STABLE_FRAGMENT */)), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dayOptions, value => {
|
|
139
|
-
return openBlock(), createBlock(_component_OrButton, {
|
|
140
|
-
key: Number(value),
|
|
141
|
-
class: normalizeClass(_ctx.buttonGroupDayItemStyles),
|
|
142
|
-
variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
|
|
143
|
-
color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
|
|
144
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
145
|
-
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
146
|
-
}, {
|
|
147
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatDay(value)), 1 /* TEXT */)]),
|
|
148
|
-
|
|
149
|
-
_: 2 /* DYNAMIC */
|
|
150
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
151
|
-
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
script$1.render = render$1;
|
|
155
|
-
script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue";
|
|
156
|
-
|
|
157
|
-
const DateTimePickerMonthSelect = [
|
|
158
|
-
// Layout
|
|
159
|
-
'layout-row justify-between',
|
|
160
|
-
// Spacing
|
|
161
|
-
'px-md', 'py-md', 'gap-md'];
|
|
162
|
-
|
|
163
|
-
var script = defineComponent({
|
|
164
|
-
name: 'OrDateTimePickerMonthSelect',
|
|
165
|
-
components: {
|
|
166
|
-
OrButton: script$2,
|
|
167
|
-
OrIcon: script$3,
|
|
168
|
-
OrIconButton: script$4,
|
|
169
|
-
OrMenu: script$5,
|
|
170
|
-
OrMenuItem: script$6
|
|
171
|
-
},
|
|
172
|
-
model: {
|
|
173
|
-
prop: 'modelValue',
|
|
174
|
-
event: 'update:modelValue'
|
|
175
|
-
},
|
|
176
|
-
props: {
|
|
177
|
-
modelValue: {
|
|
178
|
-
type: Date,
|
|
179
|
-
default: undefined
|
|
180
|
-
},
|
|
181
|
-
filter: {
|
|
182
|
-
type: Function,
|
|
183
|
-
default: undefined
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
emits: ['update:modelValue'],
|
|
187
|
-
expose: ['root'],
|
|
188
|
-
setup(props, context) {
|
|
189
|
-
// Refs
|
|
190
|
-
const root = ref();
|
|
191
|
-
const yearButton = ref();
|
|
192
|
-
const monthButton = ref();
|
|
193
|
-
const yearButtonRoot = computed(() => {
|
|
194
|
-
var _a;
|
|
195
|
-
return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
196
|
-
});
|
|
197
|
-
const monthButtonRoot = computed(() => {
|
|
198
|
-
var _a;
|
|
199
|
-
return (_a = monthButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
200
|
-
});
|
|
201
|
-
const yearMenu = ref();
|
|
202
|
-
const monthMenu = ref();
|
|
203
|
-
const yearMenuState = computed(() => {
|
|
204
|
-
var _a;
|
|
205
|
-
return (_a = yearMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
206
|
-
});
|
|
207
|
-
const monthMenuState = computed(() => {
|
|
208
|
-
var _a;
|
|
209
|
-
return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
210
|
-
});
|
|
211
|
-
// Styles
|
|
212
|
-
const rootStyles = computed(() => ['or-date-time-picker-month-select', ...DateTimePickerMonthSelect]);
|
|
213
|
-
// State
|
|
214
|
-
const proxyModelValue = computed({
|
|
215
|
-
get: () => {
|
|
216
|
-
var _a;
|
|
217
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
218
|
-
},
|
|
219
|
-
set: value => {
|
|
220
|
-
context.emit('update:modelValue', value);
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
const yearOptions = computed(() => {
|
|
224
|
-
return Array.from({
|
|
225
|
-
length: 11
|
|
226
|
-
}).map((_value, index, {
|
|
227
|
-
length
|
|
228
|
-
}) => {
|
|
229
|
-
const value = proxyModelValue.value.getUTCFullYear() - Math.floor(length / 2) + index;
|
|
230
|
-
return new Date(Date.UTC(value, proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
const monthOptions = computed(() => {
|
|
234
|
-
return Array.from({
|
|
235
|
-
length: 12
|
|
236
|
-
}, (_value, index) => {
|
|
237
|
-
const value = index;
|
|
238
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), value, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
// Methods
|
|
242
|
-
function goToNextMonth() {
|
|
243
|
-
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
244
|
-
}
|
|
245
|
-
function goToPreviousMonth() {
|
|
246
|
-
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() - 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
247
|
-
}
|
|
248
|
-
function formatYear(value) {
|
|
249
|
-
return value.toLocaleString('default', {
|
|
250
|
-
year: 'numeric',
|
|
251
|
-
timeZone: 'UTC'
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function formatMonth(value) {
|
|
255
|
-
return value.toLocaleString('default', {
|
|
256
|
-
month: 'long',
|
|
257
|
-
timeZone: 'UTC'
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
return {
|
|
261
|
-
root,
|
|
262
|
-
yearButton,
|
|
263
|
-
monthButton,
|
|
264
|
-
yearButtonRoot,
|
|
265
|
-
monthButtonRoot,
|
|
266
|
-
yearMenu,
|
|
267
|
-
monthMenu,
|
|
268
|
-
yearMenuState,
|
|
269
|
-
monthMenuState,
|
|
270
|
-
rootStyles,
|
|
271
|
-
proxyModelValue,
|
|
272
|
-
yearOptions,
|
|
273
|
-
monthOptions,
|
|
274
|
-
goToNextMonth,
|
|
275
|
-
goToPreviousMonth,
|
|
276
|
-
formatYear,
|
|
277
|
-
formatMonth
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
const _hoisted_1 = {
|
|
283
|
-
class: /*#__PURE__*/normalizeClass(['layout-row-reverse', 'gap-md'])
|
|
284
|
-
};
|
|
285
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
286
|
-
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
287
|
-
const _component_OrIcon = resolveComponent("OrIcon");
|
|
288
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
289
|
-
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
290
|
-
const _component_OrMenu = resolveComponent("OrMenu");
|
|
291
|
-
return openBlock(), createElementBlock("div", {
|
|
292
|
-
ref: "root",
|
|
293
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
294
|
-
}, [createVNode(_component_OrIconButton, {
|
|
295
|
-
icon: 'chevron_left',
|
|
296
|
-
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.goToPreviousMonth(), ["stop"]))
|
|
297
|
-
}), createElementVNode("div", _hoisted_1, [createVNode(_component_OrButton, {
|
|
298
|
-
ref: "yearButton",
|
|
299
|
-
variant: 'link',
|
|
300
|
-
color: 'inherit',
|
|
301
|
-
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.yearMenu.open(), ["stop"]))
|
|
302
|
-
}, {
|
|
303
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
304
|
-
icon: _ctx.yearMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
305
|
-
}, null, 8 /* PROPS */, ["icon"])]),
|
|
306
|
-
_: 1 /* STABLE */
|
|
307
|
-
}, 512 /* NEED_PATCH */), createVNode(_component_OrButton, {
|
|
308
|
-
ref: "monthButton",
|
|
309
|
-
variant: 'link',
|
|
310
|
-
color: 'inherit',
|
|
311
|
-
onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.monthMenu.open(), ["stop"]))
|
|
312
|
-
}, {
|
|
313
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
314
|
-
icon: _ctx.monthMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
315
|
-
}, null, 8 /* PROPS */, ["icon"])]),
|
|
316
|
-
_: 1 /* STABLE */
|
|
317
|
-
}, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
|
|
318
|
-
ref: "yearMenu",
|
|
319
|
-
trigger: _ctx.yearButtonRoot
|
|
320
|
-
}, {
|
|
321
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.yearOptions, value => {
|
|
322
|
-
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
323
|
-
key: Number(value),
|
|
324
|
-
selected: Number(value) === Number(_ctx.proxyModelValue),
|
|
325
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
326
|
-
onClick: withModifiers($event => {
|
|
327
|
-
_ctx.proxyModelValue = value;
|
|
328
|
-
_ctx.yearMenu.close();
|
|
329
|
-
}, ["stop"])
|
|
330
|
-
}, {
|
|
331
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(value)), 1 /* TEXT */)]),
|
|
332
|
-
|
|
333
|
-
_: 2 /* DYNAMIC */
|
|
334
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "disabled", "onClick"]);
|
|
335
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
336
|
-
|
|
337
|
-
_: 1 /* STABLE */
|
|
338
|
-
}, 8 /* PROPS */, ["trigger"]), createVNode(_component_OrMenu, {
|
|
339
|
-
ref: "monthMenu",
|
|
340
|
-
trigger: _ctx.monthButtonRoot
|
|
341
|
-
}, {
|
|
342
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthOptions, value => {
|
|
343
|
-
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
344
|
-
key: Number(value),
|
|
345
|
-
selected: Number(value) === Number(_ctx.proxyModelValue),
|
|
346
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
347
|
-
onClick: withModifiers($event => {
|
|
348
|
-
_ctx.proxyModelValue = value;
|
|
349
|
-
_ctx.monthMenu.close();
|
|
350
|
-
}, ["stop"])
|
|
351
|
-
}, {
|
|
352
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(value)), 1 /* TEXT */)]),
|
|
353
|
-
|
|
354
|
-
_: 2 /* DYNAMIC */
|
|
355
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "disabled", "onClick"]);
|
|
356
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
357
|
-
|
|
358
|
-
_: 1 /* STABLE */
|
|
359
|
-
}, 8 /* PROPS */, ["trigger"])]), createVNode(_component_OrIconButton, {
|
|
360
|
-
icon: 'chevron_right',
|
|
361
|
-
onClick: _cache[3] || (_cache[3] = withModifiers($event => _ctx.goToNextMonth(), ["stop"]))
|
|
362
|
-
})], 2 /* CLASS */);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
script.render = render;
|
|
366
|
-
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue";
|
|
367
|
-
|
|
368
|
-
export { script as a, script$1 as s, useDateFormat as u };
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$3 } from './OrLabel-4da56db0.js';
|
|
3
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, renderSlot, withModifiers } from 'vue';
|
|
4
|
-
import { s as script$4 } from './OrButton-8558588c.js';
|
|
5
|
-
|
|
6
|
-
function useDefaultDate() {
|
|
7
|
-
return new Date().getUTCDate();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function useDefaultHours() {
|
|
11
|
-
return 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function useDefaultMinutes() {
|
|
15
|
-
return 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function useDefaultMonth() {
|
|
19
|
-
return new Date().getUTCMonth();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function useDefaultYear() {
|
|
23
|
-
return new Date().getUTCFullYear();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const DateTimePickerMobileControl = [
|
|
27
|
-
// Layout
|
|
28
|
-
'layout-column',
|
|
29
|
-
// Spacing
|
|
30
|
-
'gap-xs'];
|
|
31
|
-
const DateTimePickerMobileControlContent = [
|
|
32
|
-
// Typography
|
|
33
|
-
'typography-headline-1',
|
|
34
|
-
// Theme
|
|
35
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
36
|
-
|
|
37
|
-
var script$2 = defineComponent({
|
|
38
|
-
name: 'OrDateTimePickerMobileControl',
|
|
39
|
-
components: {
|
|
40
|
-
OrLabel: script$3
|
|
41
|
-
},
|
|
42
|
-
props: {
|
|
43
|
-
label: {
|
|
44
|
-
type: String,
|
|
45
|
-
required: true
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
expose: ['root'],
|
|
49
|
-
setup() {
|
|
50
|
-
// Refs
|
|
51
|
-
const root = ref();
|
|
52
|
-
// Styles
|
|
53
|
-
const rootStyles = computed(() => ['or-date-time-picker-mobile-control', ...DateTimePickerMobileControl]);
|
|
54
|
-
const contentStyles = computed(() => [...DateTimePickerMobileControlContent]);
|
|
55
|
-
return {
|
|
56
|
-
root,
|
|
57
|
-
rootStyles,
|
|
58
|
-
contentStyles
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
|
-
const _component_OrLabel = resolveComponent("OrLabel");
|
|
65
|
-
return openBlock(), createElementBlock("div", {
|
|
66
|
-
ref: "root",
|
|
67
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
68
|
-
}, [createVNode(_component_OrLabel, null, {
|
|
69
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
|
|
70
|
-
|
|
71
|
-
_: 1 /* STABLE */
|
|
72
|
-
}), createElementVNode("div", {
|
|
73
|
-
class: normalizeClass(_ctx.contentStyles)
|
|
74
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 2 /* CLASS */);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
script$2.render = render$2;
|
|
78
|
-
script$2.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue";
|
|
79
|
-
|
|
80
|
-
const DateTimePickerPopoverFooter = [
|
|
81
|
-
// Layout
|
|
82
|
-
'layout-row-reverse',
|
|
83
|
-
// Layout (children)
|
|
84
|
-
'children:grow',
|
|
85
|
-
// Spacing
|
|
86
|
-
'px-md md:px-sm', 'py-md md:py-sm', 'gap-md md:gap-sm'];
|
|
87
|
-
|
|
88
|
-
var script$1 = defineComponent({
|
|
89
|
-
name: 'OrDateTimePickerPopoverFooter',
|
|
90
|
-
components: {
|
|
91
|
-
OrButton: script$4
|
|
92
|
-
},
|
|
93
|
-
emits: ['resolve', 'reject'],
|
|
94
|
-
expose: ['root'],
|
|
95
|
-
setup() {
|
|
96
|
-
// Refs
|
|
97
|
-
const root = ref();
|
|
98
|
-
// Styles
|
|
99
|
-
const rootStyles = computed(() => ['or-date-time-picker-popover-footer', ...DateTimePickerPopoverFooter]);
|
|
100
|
-
return {
|
|
101
|
-
root,
|
|
102
|
-
rootStyles
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
108
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
109
|
-
return openBlock(), createElementBlock("footer", {
|
|
110
|
-
ref: "root",
|
|
111
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
112
|
-
}, [createVNode(_component_OrButton, {
|
|
113
|
-
variant: 'outlined',
|
|
114
|
-
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('resolve'), ["stop"]))
|
|
115
|
-
}, {
|
|
116
|
-
default: withCtx(() => [createTextVNode(" Done ")]),
|
|
117
|
-
_: 1 /* STABLE */
|
|
118
|
-
}), createVNode(_component_OrButton, {
|
|
119
|
-
variant: 'text',
|
|
120
|
-
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.$emit('reject'), ["stop"]))
|
|
121
|
-
}, {
|
|
122
|
-
default: withCtx(() => [createTextVNode(" Cancel ")]),
|
|
123
|
-
_: 1 /* STABLE */
|
|
124
|
-
})], 2 /* CLASS */);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
script$1.render = render$1;
|
|
128
|
-
script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue";
|
|
129
|
-
|
|
130
|
-
const DateTimePickerPopoverHeader = [
|
|
131
|
-
// Layout
|
|
132
|
-
'layout-row md:hidden',
|
|
133
|
-
// Spacing
|
|
134
|
-
'px-md', 'py-md', 'gap-xl'];
|
|
135
|
-
|
|
136
|
-
var script = defineComponent({
|
|
137
|
-
name: 'OrDateTimePickerPopoverHeader',
|
|
138
|
-
expose: ['root'],
|
|
139
|
-
setup() {
|
|
140
|
-
// Refs
|
|
141
|
-
const root = ref();
|
|
142
|
-
// Styles
|
|
143
|
-
const rootStyles = computed(() => ['or-date-time-picker-popover-header', ...DateTimePickerPopoverHeader]);
|
|
144
|
-
return {
|
|
145
|
-
root,
|
|
146
|
-
rootStyles
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
152
|
-
return openBlock(), createElementBlock("header", {
|
|
153
|
-
ref: "root",
|
|
154
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
155
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
script.render = render;
|
|
159
|
-
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue";
|
|
160
|
-
|
|
161
|
-
export { script$1 as a, script as b, useDefaultMonth as c, useDefaultDate as d, useDefaultHours as e, useDefaultMinutes as f, script$2 as s, useDefaultYear as u };
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$1 } from './OrButton-8558588c.js';
|
|
3
|
-
import { u as useDefaultYear, c as useDefaultMonth, d as useDefaultDate, e as useDefaultHours, f as useDefaultMinutes } from './OrDateTimePickerPopoverHeader-92a85080.js';
|
|
4
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
5
|
-
|
|
6
|
-
function useTimeFormat() {
|
|
7
|
-
const sample = new Date(Date.UTC(1, 1, 3, 4, 5)).toLocaleString('default', {
|
|
8
|
-
timeStyle: 'short',
|
|
9
|
-
timeZone: 'UTC'
|
|
10
|
-
});
|
|
11
|
-
return sample.replace(/04/, 'HH').replace(/4/, 'H').replace(/05/, 'MM').replace(/5/, 'M').replace(/AM|PM/, 'A');
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const DateTimePickerTimeSelect = [
|
|
15
|
-
// Layout
|
|
16
|
-
'layout-row justify-center',
|
|
17
|
-
// Spacing
|
|
18
|
-
'px-md', 'py-md', 'gap-sm',
|
|
19
|
-
// Typography
|
|
20
|
-
'typography-body-2-regular',
|
|
21
|
-
// Theme
|
|
22
|
-
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
23
|
-
const DateTimePickerTimeSelectButtonGroup = [
|
|
24
|
-
// Layout
|
|
25
|
-
'layout-column',
|
|
26
|
-
// Box
|
|
27
|
-
'max-h-[224px]',
|
|
28
|
-
// Overflow
|
|
29
|
-
'overflow-x-hidden', 'overflow-y-auto'];
|
|
30
|
-
const DateTimePickerTimeSelectButtonGroupItem = [
|
|
31
|
-
// Typography
|
|
32
|
-
'typography-caption-regular'];
|
|
33
|
-
|
|
34
|
-
var script = defineComponent({
|
|
35
|
-
name: 'OrDateTimePickerTimeSelect',
|
|
36
|
-
components: {
|
|
37
|
-
OrButton: script$1
|
|
38
|
-
},
|
|
39
|
-
model: {
|
|
40
|
-
prop: 'modelValue',
|
|
41
|
-
event: 'update:modelValue'
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
modelValue: {
|
|
45
|
-
type: Date,
|
|
46
|
-
default: undefined
|
|
47
|
-
},
|
|
48
|
-
filter: {
|
|
49
|
-
type: Function,
|
|
50
|
-
default: undefined
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ['update:modelValue'],
|
|
54
|
-
expose: ['root'],
|
|
55
|
-
setup(props, context) {
|
|
56
|
-
// Refs
|
|
57
|
-
const root = ref();
|
|
58
|
-
// Styles
|
|
59
|
-
const rootStyles = computed(() => ['or-date-time-picker-time-select', ...DateTimePickerTimeSelect]);
|
|
60
|
-
const buttonGroupStyles = computed(() => [...DateTimePickerTimeSelectButtonGroup]);
|
|
61
|
-
const buttonGroupItemStyles = computed(() => [...DateTimePickerTimeSelectButtonGroupItem]);
|
|
62
|
-
// State
|
|
63
|
-
const proxyModelValue = computed({
|
|
64
|
-
get: () => {
|
|
65
|
-
var _a;
|
|
66
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
67
|
-
},
|
|
68
|
-
set: value => {
|
|
69
|
-
context.emit('update:modelValue', value);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
const hoursOptions = computed(() => {
|
|
73
|
-
return Array.from({
|
|
74
|
-
length: 24
|
|
75
|
-
}, (_value, index) => {
|
|
76
|
-
const value = index;
|
|
77
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), value, proxyModelValue.value.getUTCMinutes()));
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
const minutesOptions = computed(() => {
|
|
81
|
-
return Array.from({
|
|
82
|
-
length: 60
|
|
83
|
-
}, (_value, index) => {
|
|
84
|
-
const value = index;
|
|
85
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), value));
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
// Methods
|
|
89
|
-
function formatHours(value) {
|
|
90
|
-
return value.toLocaleString('default', {
|
|
91
|
-
hour: 'numeric',
|
|
92
|
-
timeZone: 'UTC'
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function formatMinutes(value) {
|
|
96
|
-
return value.toLocaleString('default', {
|
|
97
|
-
minute: 'numeric',
|
|
98
|
-
timeZone: 'UTC'
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
return {
|
|
102
|
-
root,
|
|
103
|
-
rootStyles,
|
|
104
|
-
buttonGroupStyles,
|
|
105
|
-
buttonGroupItemStyles,
|
|
106
|
-
proxyModelValue,
|
|
107
|
-
hoursOptions,
|
|
108
|
-
minutesOptions,
|
|
109
|
-
formatHours,
|
|
110
|
-
formatMinutes
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
116
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
117
|
-
return openBlock(), createElementBlock("div", {
|
|
118
|
-
ref: "root",
|
|
119
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
120
|
-
}, [createElementVNode("div", {
|
|
121
|
-
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
122
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.hoursOptions, value => {
|
|
123
|
-
return openBlock(), createBlock(_component_OrButton, {
|
|
124
|
-
key: Number(value),
|
|
125
|
-
class: normalizeClass(_ctx.buttonGroupItemStyles),
|
|
126
|
-
variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
|
|
127
|
-
color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
|
|
128
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
129
|
-
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
130
|
-
}, {
|
|
131
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatHours(value)), 1 /* TEXT */)]),
|
|
132
|
-
|
|
133
|
-
_: 2 /* DYNAMIC */
|
|
134
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
135
|
-
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createTextVNode(" : "), createElementVNode("div", {
|
|
136
|
-
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
137
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.minutesOptions, value => {
|
|
138
|
-
return openBlock(), createBlock(_component_OrButton, {
|
|
139
|
-
key: Number(value),
|
|
140
|
-
class: normalizeClass(_ctx.buttonGroupItemStyles),
|
|
141
|
-
variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
|
|
142
|
-
color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
|
|
143
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
144
|
-
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
145
|
-
}, {
|
|
146
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMinutes(value)), 1 /* TEXT */)]),
|
|
147
|
-
|
|
148
|
-
_: 2 /* DYNAMIC */
|
|
149
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
150
|
-
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
script.render = render;
|
|
154
|
-
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue";
|
|
155
|
-
|
|
156
|
-
export { script as s, useTimeFormat as u };
|