@onereach/ui-components 7.0.1 → 7.0.2-beta.3543.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/{OrDateTimePickerMonthSelect-0dfe417f.js → OrDateTimePickerMonthSelect-0e7f761d.js} +31 -25
- package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-20b13137.js → OrDateTimePickerPopoverHeader-ce85f482.js} +16 -8
- package/dist/bundled/v2/{OrDateTimePickerTimeSelect-02a369fb.js → OrDateTimePickerTimeSelect-3e985657.js} +6 -10
- package/dist/bundled/v2/components/OrCombinedInputV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +23 -24
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.vue.d.ts +4 -4
- package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +508 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +185 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/index.js +2 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/props.d.ts +1 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/props.js +1 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/styles.js +10 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +20 -18
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +4 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getNextMonthDate.d.ts +1 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getNextMonthDate.js +6 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/index.js +1 -0
- package/dist/bundled/v2/components/OrInputBoxV3/styles.js +4 -4
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +20 -20
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +4 -4
- package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.js +450 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +188 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/index.js +3 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/props.d.ts +2 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/props.js +2 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/styles.js +8 -0
- package/dist/bundled/v2/components/index.d.ts +2 -0
- package/dist/bundled/v2/components/index.js +8 -5
- package/dist/bundled/v2/hooks/useTheme.js +1 -0
- package/dist/bundled/v2/index.js +9 -6
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-832a6115.js → OrCardCollection.vue_vue_type_script_lang-c196d039.js} +3 -3
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-e7e395eb.js → OrCode.vue_vue_type_script_lang-da0fa78f.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-1c3c49c8.js → OrConfirm.vue_vue_type_script_lang-16732e9d.js} +1 -1
- package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-6caa81c0.js → OrContextMenu.vue_vue_type_script_lang-9965a7ee.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-b2bdcc61.js → OrDatePicker.vue_vue_type_script_lang-601e5de8.js} +17 -17
- package/dist/bundled/v3/OrDateRangePicker.vue_vue_type_script_lang-9c29e365.js +241 -0
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-fcacd5d0.js → OrDateTimePicker.vue_vue_type_script_lang-14f108e3.js} +16 -11
- package/dist/bundled/v3/OrDateTimePickerMonthSelect.vue_vue_type_script_lang-cc47320f.js +330 -0
- package/dist/bundled/v3/OrDateTimePickerPopoverHeader-5aafc3a2.js +205 -0
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-c9eb540e.js → OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-1f596d82.js} +12 -7
- package/dist/bundled/v3/OrDateTimePickerTimeSelect-b76a45eb.js +84 -0
- package/dist/bundled/v3/OrDateTimePickerTimeSelect.vue_vue_type_script_lang-7fc4faea.js +205 -0
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-6a53a819.js → OrIconButton.vue_vue_type_script_lang-8a4dcc47.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-c5b3b8f5.js → OrInlineInput.vue_vue_type_script_lang-873efacb.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-b36f6ddd.js → OrInlineTextarea.vue_vue_type_script_lang-3bb287c6.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f558bdbb.js → OrInput.vue_vue_type_script_lang-10d8887d.js} +2 -2
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-2ef9ec71.js → OrMenu.vue_vue_type_script_lang-af4f2a40.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-c4d31fae.js → OrModal.vue_vue_type_script_lang-7ed03f88.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-eaf4f467.js → OrNotification.vue_vue_type_script_lang-169db1c4.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-8a01d103.js → OrPagination.vue_vue_type_script_lang-8eb1510b.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-d7c493af.js → OrPopover.vue_vue_type_script_lang-62552b5d.js} +1 -1
- package/dist/bundled/v3/{OrResizeablePanel.vue_vue_type_script_lang-b521771e.js → OrResizeablePanel.vue_vue_type_script_lang-923e0936.js} +1 -1
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-88d8212b.js → OrRichTextEditor.vue_vue_type_script_lang-971ca9ba.js} +5 -5
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-e756d8a8.js → OrSearch.vue_vue_type_script_lang-55ed983e.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-e11d6b35.js → OrSelect.vue_vue_type_script_lang-341d92c2.js} +6 -6
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-314721d5.js → OrSidebar.vue_vue_type_script_lang-0076d0c7.js} +1 -1
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-257e1c8b.js → OrSorting.vue_vue_type_script_lang-9f514be8.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ddac6c54.js → OrTabs.vue_vue_type_script_lang-4675145f.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-6c0094be.js → OrTag.vue_vue_type_script_lang-d351634b.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-049cd088.js → OrTagInput.vue_vue_type_script_lang-3e60bdec.js} +3 -3
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-bce52bb6.js → OrTags.vue_vue_type_script_lang-167b77f1.js} +2 -2
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-c750523e.js → OrTextarea.vue_vue_type_script_lang-7b82ccba.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-5c3cd13d.js → OrTimePicker.vue_vue_type_script_lang-8469cb93.js} +17 -17
- package/dist/bundled/v3/OrTimeRangePicker.vue_vue_type_script_lang-6db1142d.js +217 -0
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-dd0c252d.js → OrTooltip.vue_vue_type_script_lang-8af0ce75.js} +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +2 -2
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +10 -10
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +64 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +168 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +557 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +2 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/props.d.ts +1 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/props.js +1 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/styles.js +10 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +11 -12
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +63 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +5 -4
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.d.ts +1 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.js +6 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.js +1 -0
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +2 -2
- package/dist/bundled/v3/components/OrInputBoxV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/styles.js +4 -4
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.js +2 -2
- package/dist/bundled/v3/components/OrResizeablePanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +1 -1
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +2 -2
- package/dist/bundled/v3/components/OrTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +7 -6
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +64 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +155 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +376 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +3 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/props.d.ts +2 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/props.js +2 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.js +8 -0
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +2 -0
- package/dist/bundled/v3/components/index.js +40 -37
- package/dist/bundled/v3/hooks/useTheme.js +1 -0
- package/dist/bundled/v3/index.js +43 -38
- package/dist/esm/v2/{OrCardCollection-d271349b.js → OrCardCollection-05bb0cd0.js} +2 -2
- package/dist/esm/v2/{OrCode-c8275974.js → OrCode-829287c3.js} +2 -2
- package/dist/esm/v2/{OrCombinedInput-517d8204.js → OrCombinedInput-2b0f745b.js} +2 -2
- package/dist/esm/v2/{OrConfirm-6925599b.js → OrConfirm-56b56388.js} +1 -1
- package/dist/esm/v2/{OrDateFormat-6140789c.js → OrDateFormat-74939837.js} +3 -3
- package/dist/esm/v2/{OrDatePicker-99817e45.js → OrDatePicker-45ec0d4f.js} +26 -27
- package/dist/esm/v2/OrDateRangePicker-adf6650b.js +519 -0
- package/dist/esm/v2/{OrDateTimeFormat-2581badd.js → OrDateTimeFormat-adde8ec2.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-35a7ed97.js → OrDateTimePicker-9708a840.js} +10 -11
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-a4a287ed.js → OrDateTimePicker.vue_rollup-plugin-vue_script-0658f779.js} +12 -9
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-9c1c1ff0.js → OrDateTimePickerTimeSelect-ab870b6a.js} +54 -44
- package/dist/esm/v2/{OrInput-e9e91885.js → OrInput-47e37630.js} +2 -2
- package/dist/esm/v2/{OrInputBox-7dc5b9e9.js → OrInputBox-2ba5d5de.js} +1 -1
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js → OrInputBox.vue_rollup-plugin-vue_script-bebba826.js} +4 -4
- package/dist/esm/v2/{OrRichTextEditor-100c02ba.js → OrRichTextEditor-0746e943.js} +2 -2
- package/dist/esm/v2/{OrSearch-c5850ddd.js → OrSearch-9860bd73.js} +2 -2
- package/dist/esm/v2/{OrSelect-07de6a73.js → OrSelect-bd77c553.js} +4 -4
- package/dist/esm/v2/{OrTagInput-4c4d0714.js → OrTagInput-46da8417.js} +2 -2
- package/dist/esm/v2/{OrTextarea-2645d63f.js → OrTextarea-88db4c34.js} +2 -2
- package/dist/esm/v2/{OrTimeFormat-72f90cea.js → OrTimeFormat-73a2e956.js} +3 -3
- package/dist/esm/v2/{OrTimePicker-4d375cf3.js → OrTimePicker-4462cd1f.js} +23 -23
- package/dist/esm/v2/OrTimeRangePicker-77607776.js +458 -0
- package/dist/esm/v2/components/index.d.ts +2 -0
- package/dist/esm/v2/components/index.js +24 -21
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -5
- package/dist/esm/v2/components/or-code-v3/index.js +3 -3
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-format-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-date-picker-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +185 -0
- package/dist/esm/v2/components/or-date-range-picker-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-date-range-picker-v3/index.js +38 -0
- package/dist/esm/v2/components/or-date-range-picker-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-date-range-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-date-time-format-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +7 -6
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +24 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +13 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/getNextMonthDate.d.ts +1 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/index.d.ts +1 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/index.js +3 -2
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +3 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +4 -4
- package/dist/esm/v2/components/or-search-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +1 -1
- package/dist/esm/v2/components/or-select-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tag-input-v3/index.js +3 -3
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-format-v3/index.js +6 -6
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-time-picker-v3/index.js +6 -6
- package/dist/esm/v2/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +188 -0
- package/dist/esm/v2/components/or-time-range-picker-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-time-range-picker-v3/index.js +37 -0
- package/dist/esm/v2/components/or-time-range-picker-v3/props.d.ts +2 -0
- package/dist/esm/v2/components/or-time-range-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v2/getNextMonthDate-00c47169.js +6 -0
- package/dist/esm/v2/{getTimePlaceholder-06d57fcf.js → getTimePlaceholder-8f786f44.js} +1 -1
- package/dist/esm/v2/index.js +24 -21
- package/dist/esm/v3/{OrCardCollection-9f4a9619.js → OrCardCollection-1a0a5c94.js} +2 -2
- package/dist/esm/v3/{OrCode-2c5af800.js → OrCode-5e27359d.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-aaff08d4.js → OrCombinedInput-a8db90da.js} +2 -2
- package/dist/esm/v3/{OrConfirm-984d0c5a.js → OrConfirm-2a0fbf0d.js} +1 -1
- package/dist/esm/v3/{OrDateFormat-86dd3a6a.js → OrDateFormat-38e74ea4.js} +3 -3
- package/dist/esm/v3/{OrDatePicker-aa0a6a0e.js → OrDatePicker-b5c8c947.js} +23 -24
- package/dist/esm/v3/OrDateRangePicker-afa19ccd.js +410 -0
- package/dist/esm/v3/{OrDateTimeFormat-40ef2674.js → OrDateTimeFormat-1d36bcb1.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-ce7389e8.js → OrDateTimePicker-d29875b4.js} +20 -18
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-4c910498.js → OrDateTimePickerTimeSelect-7d18eee6.js} +56 -47
- package/dist/esm/v3/{OrInput-0db1e05f.js → OrInput-74ed60b3.js} +1 -1
- package/dist/esm/v3/{OrInputBox-912a6254.js → OrInputBox-5f246763.js} +4 -4
- package/dist/esm/v3/{OrRichTextEditor-c205f210.js → OrRichTextEditor-facfb733.js} +2 -2
- package/dist/esm/v3/{OrSearch-602356a0.js → OrSearch-10f4835b.js} +2 -2
- package/dist/esm/v3/{OrSelect-31442785.js → OrSelect-7428e5f8.js} +3 -3
- package/dist/esm/v3/{OrTagInput-d018033c.js → OrTagInput-9ad92675.js} +1 -1
- package/dist/esm/v3/{OrTextarea-5824a209.js → OrTextarea-68d6803e.js} +1 -1
- package/dist/esm/v3/{OrTimeFormat-5ece86b5.js → OrTimeFormat-cf35388e.js} +3 -3
- package/dist/esm/v3/{OrTimePicker-b16db925.js → OrTimePicker-2e321cf1.js} +20 -20
- package/dist/esm/v3/OrTimeRangePicker-463c2d37.js +370 -0
- package/dist/esm/v3/components/index.d.ts +2 -0
- package/dist/esm/v3/components/index.js +22 -19
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-code-v3/index.js +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +64 -2
- package/dist/esm/v3/components/or-date-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +557 -0
- package/dist/esm/v3/components/or-date-range-picker-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-date-range-picker-v3/index.js +36 -0
- package/dist/esm/v3/components/or-date-range-picker-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-date-range-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-date-time-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +63 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +5 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +20 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +11 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/getNextMonthDate.d.ts +1 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/index.d.ts +1 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/index.js +3 -2
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +64 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +376 -0
- package/dist/esm/v3/components/or-time-range-picker-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-time-range-picker-v3/index.js +35 -0
- package/dist/esm/v3/components/or-time-range-picker-v3/props.d.ts +2 -0
- package/dist/esm/v3/components/or-time-range-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v3/getNextMonthDate-00c47169.js +6 -0
- package/dist/esm/v3/{getTimePlaceholder-09859f55.js → getTimePlaceholder-f190a43f.js} +1 -1
- package/dist/esm/v3/index.js +22 -19
- package/package.json +3 -4
- package/src/components/index.ts +2 -0
- package/src/components/or-combined-input-v3/styles.ts +3 -3
- package/src/components/or-date-picker-v3/OrDatePicker.vue +18 -18
- package/src/components/or-date-range-picker-v3/OrDateRangePicker.vue +451 -0
- package/src/components/or-date-range-picker-v3/index.ts +2 -0
- package/src/components/or-date-range-picker-v3/props.ts +1 -0
- package/src/components/or-date-range-picker-v3/styles.ts +12 -0
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +14 -13
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue +0 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue +32 -21
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.ts +21 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue +6 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.ts +11 -4
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +1 -10
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +0 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue +0 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +0 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +20 -24
- package/src/components/or-date-time-picker-v3/utils/getNextMonthDate.ts +9 -0
- package/src/components/or-date-time-picker-v3/utils/index.ts +1 -0
- package/src/components/or-input-box-v3/styles.ts +8 -8
- package/src/components/or-rich-text-editor-v3/styles.ts +1 -1
- package/src/components/or-select-v3/OrSelect.vue +3 -3
- package/src/components/or-time-picker-v3/OrTimePicker.vue +17 -16
- package/src/components/or-time-range-picker-v3/OrTimeRangePicker.vue +410 -0
- package/src/components/or-time-range-picker-v3/index.ts +2 -0
- package/src/components/or-time-range-picker-v3/props.ts +2 -0
- package/src/components/or-time-range-picker-v3/styles.ts +9 -0
- package/dist/bundled/v3/OrDateTimePickerPopoverHeader-0ebbb959.js +0 -526
- package/dist/bundled/v3/OrDateTimePickerTimeSelect-934093b2.js +0 -292
- /package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-5c209d34.js → OrBottomSheet.vue_vue_type_script_lang-87d88222.js} +0 -0
- /package/dist/bundled/v3/{OrCombinedInput.vue_vue_type_script_lang-d529dae3.js → OrCombinedInput.vue_vue_type_script_lang-cdb2d8ca.js} +0 -0
- /package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-137cb650.js → OrInputBox.vue_vue_type_script_lang-989d5ee6.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-2905654d.js → OrToastContainer.vue_vue_type_script_lang-10dc9508.js} +0 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
+
import { getDatePlaceholder } from './components/OrDateTimePickerV3/utils/getDatePlaceholder.js';
|
|
3
|
+
import { formatDate } from './components/OrDateTimePickerV3/utils/formatDate.js';
|
|
4
|
+
import { useProxyModelValue } from './hooks/useProxyModelValue.js';
|
|
5
|
+
import './components/OrButtonV3/OrButton.js';
|
|
6
|
+
import { s as script$3 } from './OrButton.vue_vue_type_script_lang-0f7bda53.js';
|
|
7
|
+
import './components/OrIconV3/OrIcon.js';
|
|
8
|
+
import './components/OrIconButtonV3/OrIconButton.js';
|
|
9
|
+
import './components/OrMenuV3/OrMenu.js';
|
|
10
|
+
import './components/OrMenuItemV3/OrMenuItem.js';
|
|
11
|
+
import { s as script$4 } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
|
|
12
|
+
import { s as script$5 } from './OrIconButton.vue_vue_type_script_lang-8a4dcc47.js';
|
|
13
|
+
import { s as script$6 } from './OrMenu.vue_vue_type_script_lang-af4f2a40.js';
|
|
14
|
+
import { s as script$7 } from './OrMenuItem.vue_vue_type_script_lang-1e9ee207.js';
|
|
15
|
+
|
|
16
|
+
const DateTimePickerDateControl = [
|
|
17
|
+
// Layout
|
|
18
|
+
'layout-inline-row',
|
|
19
|
+
// Interactivity
|
|
20
|
+
'interactivity-click',
|
|
21
|
+
// Theme (focus)
|
|
22
|
+
'focus-visible:theme-border-2-inherit', 'dark:focus-visible:theme-border-2-inherit-dark', 'focus-visible:theme-border-underline'];
|
|
23
|
+
const DateTimePickerDateControlPlaceholder = [
|
|
24
|
+
// Theme
|
|
25
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
26
|
+
|
|
27
|
+
var script$2 = defineComponent({
|
|
28
|
+
model: {
|
|
29
|
+
prop: 'modelValue',
|
|
30
|
+
event: 'update:modelValue'
|
|
31
|
+
},
|
|
32
|
+
props: {
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: Date,
|
|
35
|
+
default: undefined
|
|
36
|
+
},
|
|
37
|
+
required: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
readonly: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
expose: ['root'],
|
|
51
|
+
setup(props, context) {
|
|
52
|
+
// Refs
|
|
53
|
+
const root = ref();
|
|
54
|
+
// Styles
|
|
55
|
+
const rootStyles = computed(() => ['or-date-time-picker-date-control-v3', ...DateTimePickerDateControl]);
|
|
56
|
+
const placeholderStyles = computed(() => [...DateTimePickerDateControlPlaceholder]);
|
|
57
|
+
// State
|
|
58
|
+
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
59
|
+
const placeholder = getDatePlaceholder();
|
|
60
|
+
return {
|
|
61
|
+
root,
|
|
62
|
+
rootStyles,
|
|
63
|
+
placeholderStyles,
|
|
64
|
+
proxyModelValue,
|
|
65
|
+
placeholder,
|
|
66
|
+
formatDate
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const DateTimePickerDateSelect = [
|
|
72
|
+
// Layout
|
|
73
|
+
'layout-column',
|
|
74
|
+
// Spacing
|
|
75
|
+
'px-md', 'py-md', 'gap-sm'];
|
|
76
|
+
const DateTimePickerDateSelectButtonGroup = [
|
|
77
|
+
// Layout
|
|
78
|
+
'grid content-start', 'grid-cols-7',
|
|
79
|
+
// Box
|
|
80
|
+
'h-[262px]',
|
|
81
|
+
// Spacing
|
|
82
|
+
'mx-[-2px]', 'my-[-2px]'];
|
|
83
|
+
const DateTimePickerDateSelectButtonGroupWeekdayItem = [
|
|
84
|
+
// Layout
|
|
85
|
+
'layout-row justify-center',
|
|
86
|
+
// Interactivity
|
|
87
|
+
'interactivity-default',
|
|
88
|
+
// Spacing
|
|
89
|
+
'mx-[2px]', 'my-[2px]', 'px-sm', 'py-sm',
|
|
90
|
+
// Typography
|
|
91
|
+
'typography-caption-regular',
|
|
92
|
+
// Theme
|
|
93
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
94
|
+
const DateTimePickerDateSelectButtonGroupDateItem = [
|
|
95
|
+
// Box
|
|
96
|
+
'!min-w-fit',
|
|
97
|
+
// Spacing
|
|
98
|
+
'mx-[2px]', 'my-[2px]', '!px-sm', '!py-sm',
|
|
99
|
+
// Typography
|
|
100
|
+
'typography-caption-regular'];
|
|
101
|
+
const DateTimePickerDateSelectButtonGroupCurrentDateItem = [
|
|
102
|
+
// Theme
|
|
103
|
+
'theme-foreground-primary', 'dark:theme-foreground-primary-dark', 'theme-outline-1-primary', 'dark:theme-outline-1-primary-dark'];
|
|
104
|
+
const DateTimePickerDateSelectButtonGroupInRangeDateItem = [
|
|
105
|
+
// Spacing
|
|
106
|
+
'!mx-none', '!px-[10px]',
|
|
107
|
+
// Shape
|
|
108
|
+
'!rounded-none',
|
|
109
|
+
// Theme
|
|
110
|
+
'theme-background-primary-translucent-2', 'dark:theme-background-primary-translucent-2-dark'];
|
|
111
|
+
|
|
112
|
+
var script$1 = defineComponent({
|
|
113
|
+
components: {
|
|
114
|
+
OrButton: script$3
|
|
115
|
+
},
|
|
116
|
+
model: {
|
|
117
|
+
prop: 'modelValue',
|
|
118
|
+
event: 'update:modelValue'
|
|
119
|
+
},
|
|
120
|
+
props: {
|
|
121
|
+
modelValue: {
|
|
122
|
+
type: Date,
|
|
123
|
+
default: undefined
|
|
124
|
+
},
|
|
125
|
+
initialValue: {
|
|
126
|
+
type: Date,
|
|
127
|
+
required: true
|
|
128
|
+
},
|
|
129
|
+
dateFilter: {
|
|
130
|
+
type: Function,
|
|
131
|
+
default: undefined
|
|
132
|
+
},
|
|
133
|
+
rangeStart: {
|
|
134
|
+
type: Date,
|
|
135
|
+
default: undefined
|
|
136
|
+
},
|
|
137
|
+
rangeEnd: {
|
|
138
|
+
type: Date,
|
|
139
|
+
default: undefined
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
emits: ['update:modelValue'],
|
|
143
|
+
expose: ['root'],
|
|
144
|
+
setup(props, context) {
|
|
145
|
+
// Refs
|
|
146
|
+
const root = ref();
|
|
147
|
+
// Styles
|
|
148
|
+
const rootStyles = computed(() => ['or-date-time-picker-date-select-v3', ...DateTimePickerDateSelect]);
|
|
149
|
+
const buttonGroupStyles = computed(() => [...DateTimePickerDateSelectButtonGroup]);
|
|
150
|
+
const buttonGroupWeekdayItemStyles = computed(() => [...DateTimePickerDateSelectButtonGroupWeekdayItem]);
|
|
151
|
+
const buttonGroupDateItemStyles = computed(() => [...DateTimePickerDateSelectButtonGroupDateItem]);
|
|
152
|
+
const buttonGroupCurrentDateItemStyles = computed(() => [...DateTimePickerDateSelectButtonGroupCurrentDateItem]);
|
|
153
|
+
const buttonGroupInRangeDateItemStyles = computed(() => [...DateTimePickerDateSelectButtonGroupInRangeDateItem]);
|
|
154
|
+
// State
|
|
155
|
+
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
156
|
+
const dayOptions = computed(() => {
|
|
157
|
+
const monthStartDate = new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth(), 1, props.initialValue.getUTCHours(), props.initialValue.getUTCMinutes()));
|
|
158
|
+
const monthEndDate = new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth() + 1, 0, props.initialValue.getUTCHours(), props.initialValue.getUTCMinutes()));
|
|
159
|
+
const calendarStartDate = new Date(Date.UTC(monthStartDate.getUTCFullYear(), monthStartDate.getUTCMonth(), 1 - monthStartDate.getUTCDay(), monthStartDate.getUTCHours(), monthStartDate.getUTCMinutes()));
|
|
160
|
+
const calendarEndDate = new Date(Date.UTC(monthEndDate.getUTCFullYear(), monthEndDate.getUTCMonth() + 1, 7 - monthEndDate.getUTCDay(), monthEndDate.getUTCHours(), monthEndDate.getUTCMinutes()));
|
|
161
|
+
return (() => {
|
|
162
|
+
let options = [],
|
|
163
|
+
value = calendarStartDate;
|
|
164
|
+
while (Number(value) !== Number(calendarEndDate)) {
|
|
165
|
+
options = [...options, value];
|
|
166
|
+
value = new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate() + 1, value.getUTCHours(), value.getUTCMinutes()));
|
|
167
|
+
}
|
|
168
|
+
return options;
|
|
169
|
+
})();
|
|
170
|
+
});
|
|
171
|
+
const currentDate = computed(() => {
|
|
172
|
+
const value = new Date();
|
|
173
|
+
value.setUTCHours(props.initialValue.getUTCHours());
|
|
174
|
+
value.setUTCMinutes(props.initialValue.getUTCMinutes());
|
|
175
|
+
value.setUTCSeconds(props.initialValue.getUTCSeconds());
|
|
176
|
+
value.setUTCMilliseconds(props.initialValue.getUTCMilliseconds());
|
|
177
|
+
return value;
|
|
178
|
+
});
|
|
179
|
+
// Methods
|
|
180
|
+
function formatWeekday(value) {
|
|
181
|
+
return value.toLocaleString(navigator.language, {
|
|
182
|
+
weekday: 'short',
|
|
183
|
+
timeZone: 'UTC'
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
function formatDay(value) {
|
|
187
|
+
return value.toLocaleString(navigator.language, {
|
|
188
|
+
day: 'numeric',
|
|
189
|
+
timeZone: 'UTC'
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
root,
|
|
194
|
+
rootStyles,
|
|
195
|
+
buttonGroupStyles,
|
|
196
|
+
buttonGroupWeekdayItemStyles,
|
|
197
|
+
buttonGroupDateItemStyles,
|
|
198
|
+
buttonGroupCurrentDateItemStyles,
|
|
199
|
+
buttonGroupInRangeDateItemStyles,
|
|
200
|
+
proxyModelValue,
|
|
201
|
+
dayOptions,
|
|
202
|
+
currentDate,
|
|
203
|
+
formatWeekday,
|
|
204
|
+
formatDay
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
const DateTimePickerMonthSelect = [
|
|
210
|
+
// Layout
|
|
211
|
+
'layout-row justify-between',
|
|
212
|
+
// Spacing
|
|
213
|
+
'px-md', 'py-md', 'gap-md'];
|
|
214
|
+
|
|
215
|
+
var script = defineComponent({
|
|
216
|
+
components: {
|
|
217
|
+
OrButton: script$3,
|
|
218
|
+
OrIcon: script$4,
|
|
219
|
+
OrIconButton: script$5,
|
|
220
|
+
OrMenu: script$6,
|
|
221
|
+
OrMenuItem: script$7
|
|
222
|
+
},
|
|
223
|
+
model: {
|
|
224
|
+
prop: 'modelValue',
|
|
225
|
+
event: 'update:modelValue'
|
|
226
|
+
},
|
|
227
|
+
props: {
|
|
228
|
+
modelValue: {
|
|
229
|
+
type: Date,
|
|
230
|
+
required: true
|
|
231
|
+
},
|
|
232
|
+
yearFilter: {
|
|
233
|
+
type: Function,
|
|
234
|
+
default: undefined
|
|
235
|
+
},
|
|
236
|
+
monthFilter: {
|
|
237
|
+
type: Function,
|
|
238
|
+
default: undefined
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
emits: ['update:modelValue'],
|
|
242
|
+
expose: ['root'],
|
|
243
|
+
setup(props, context) {
|
|
244
|
+
// Refs
|
|
245
|
+
const root = ref();
|
|
246
|
+
const yearButton = ref();
|
|
247
|
+
const monthButton = ref();
|
|
248
|
+
const yearButtonRoot = computed(() => {
|
|
249
|
+
var _a;
|
|
250
|
+
return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
251
|
+
});
|
|
252
|
+
const monthButtonRoot = computed(() => {
|
|
253
|
+
var _a;
|
|
254
|
+
return (_a = monthButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
255
|
+
});
|
|
256
|
+
const yearMenu = ref();
|
|
257
|
+
const monthMenu = ref();
|
|
258
|
+
const yearMenuState = computed(() => {
|
|
259
|
+
var _a;
|
|
260
|
+
return (_a = yearMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
261
|
+
});
|
|
262
|
+
const monthMenuState = computed(() => {
|
|
263
|
+
var _a;
|
|
264
|
+
return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
265
|
+
});
|
|
266
|
+
// Styles
|
|
267
|
+
const rootStyles = computed(() => ['or-date-time-picker-month-select-v3', ...DateTimePickerMonthSelect]);
|
|
268
|
+
// State
|
|
269
|
+
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
270
|
+
const yearOptions = computed(() => {
|
|
271
|
+
return Array.from({
|
|
272
|
+
length: 11
|
|
273
|
+
}).map((_value, index, _ref) => {
|
|
274
|
+
let {
|
|
275
|
+
length
|
|
276
|
+
} = _ref;
|
|
277
|
+
const value = proxyModelValue.value.getUTCFullYear() - Math.floor(length / 2) + index;
|
|
278
|
+
return new Date(Date.UTC(value, proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
const monthOptions = computed(() => {
|
|
282
|
+
return Array.from({
|
|
283
|
+
length: 12
|
|
284
|
+
}, (_value, index) => {
|
|
285
|
+
const value = index;
|
|
286
|
+
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), value, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
// Methods
|
|
290
|
+
function goToNextMonth() {
|
|
291
|
+
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
292
|
+
}
|
|
293
|
+
function goToPreviousMonth() {
|
|
294
|
+
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() - 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
295
|
+
}
|
|
296
|
+
function formatYear(value) {
|
|
297
|
+
return value.toLocaleString(navigator.language, {
|
|
298
|
+
year: 'numeric',
|
|
299
|
+
timeZone: 'UTC'
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function formatMonth(value) {
|
|
303
|
+
return value.toLocaleString(navigator.language, {
|
|
304
|
+
month: 'long',
|
|
305
|
+
timeZone: 'UTC'
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
root,
|
|
310
|
+
yearButton,
|
|
311
|
+
monthButton,
|
|
312
|
+
yearButtonRoot,
|
|
313
|
+
monthButtonRoot,
|
|
314
|
+
yearMenu,
|
|
315
|
+
monthMenu,
|
|
316
|
+
yearMenuState,
|
|
317
|
+
monthMenuState,
|
|
318
|
+
rootStyles,
|
|
319
|
+
proxyModelValue,
|
|
320
|
+
yearOptions,
|
|
321
|
+
monthOptions,
|
|
322
|
+
goToNextMonth,
|
|
323
|
+
goToPreviousMonth,
|
|
324
|
+
formatYear,
|
|
325
|
+
formatMonth
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
export { script$1 as a, script as b, script$2 as s };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { s as script, a as script$1, b as script$3 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-cc47320f.js';
|
|
2
|
+
import { openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withModifiers, withCtx, createVNode, renderSlot } from 'vue';
|
|
3
|
+
import { s as script$2, a as script$4, b as script$5 } from './OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-1f596d82.js';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1$2 = ["contenteditable", "required", "readonly", "disabled"];
|
|
6
|
+
const _hoisted_2 = ["disabled"];
|
|
7
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8
|
+
return openBlock(), createElementBlock("div", {
|
|
9
|
+
ref: "root",
|
|
10
|
+
class: normalizeClass(_ctx.rootStyles),
|
|
11
|
+
contenteditable: !_ctx.disabled ? '' : null,
|
|
12
|
+
required: _ctx.required ? '' : null,
|
|
13
|
+
readonly: _ctx.readonly ? '' : null,
|
|
14
|
+
disabled: _ctx.disabled ? '' : null
|
|
15
|
+
}, [_ctx.proxyModelValue ? (openBlock(), createElementBlock(Fragment, {
|
|
16
|
+
key: 0
|
|
17
|
+
}, [createTextVNode(toDisplayString(_ctx.formatDate(_ctx.proxyModelValue)), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: normalizeClass(_ctx.placeholderStyles),
|
|
20
|
+
disabled: _ctx.disabled ? '' : null
|
|
21
|
+
}, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_2))], 10 /* CLASS, PROPS */, _hoisted_1$2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
script.render = render$5;
|
|
25
|
+
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue";
|
|
26
|
+
|
|
27
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
ref: "root",
|
|
31
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
32
|
+
}, [createElementVNode("div", {
|
|
33
|
+
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
34
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(7, weekday => {
|
|
35
|
+
return createElementVNode("div", {
|
|
36
|
+
key: weekday,
|
|
37
|
+
class: normalizeClass(_ctx.buttonGroupWeekdayItemStyles)
|
|
38
|
+
}, toDisplayString(_ctx.formatWeekday(_ctx.dayOptions[weekday - 1])), 3 /* TEXT, CLASS */);
|
|
39
|
+
}), 64 /* STABLE_FRAGMENT */)), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dayOptions, value => {
|
|
40
|
+
return openBlock(), createBlock(_component_OrButton, {
|
|
41
|
+
key: Number(value),
|
|
42
|
+
class: normalizeClass({
|
|
43
|
+
[_ctx.buttonGroupDateItemStyles.join(' ')]: true,
|
|
44
|
+
[_ctx.buttonGroupCurrentDateItemStyles.join(' ')]: Number(value) === Number(_ctx.currentDate) && Number(value) !== Number(_ctx.proxyModelValue),
|
|
45
|
+
[_ctx.buttonGroupInRangeDateItemStyles.join(' ')]: _ctx.rangeStart && Number(value) > Number(_ctx.rangeStart) && _ctx.rangeEnd && Number(value) < Number(_ctx.rangeEnd)
|
|
46
|
+
}),
|
|
47
|
+
variant: Number(value) === Number(_ctx.proxyModelValue) || _ctx.rangeStart && Number(value) === Number(_ctx.rangeStart) || _ctx.rangeEnd && Number(value) === Number(_ctx.rangeEnd) ? 'contained' : 'text',
|
|
48
|
+
color: Number(value) === Number(_ctx.proxyModelValue) || _ctx.rangeStart && Number(value) === Number(_ctx.rangeStart) || _ctx.rangeEnd && Number(value) === Number(_ctx.rangeEnd) ? 'primary' : 'inherit',
|
|
49
|
+
disabled: _ctx.dateFilter && !_ctx.dateFilter(value),
|
|
50
|
+
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatDay(value)), 1 /* TEXT */)]),
|
|
53
|
+
|
|
54
|
+
_: 2 /* DYNAMIC */
|
|
55
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
56
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
script$1.render = render$4;
|
|
60
|
+
script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue";
|
|
61
|
+
|
|
62
|
+
const _hoisted_1$1 = ["selected"];
|
|
63
|
+
function render$3(_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
|
+
selected: _ctx.selected ? '' : null
|
|
69
|
+
}, [createVNode(_component_OrLabel, null, {
|
|
70
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
|
|
71
|
+
|
|
72
|
+
_: 1 /* STABLE */
|
|
73
|
+
}), createElementVNode("div", {
|
|
74
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
75
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1$1);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
script$2.render = render$3;
|
|
79
|
+
script$2.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue";
|
|
80
|
+
|
|
81
|
+
const _hoisted_1 = {
|
|
82
|
+
class: /*#__PURE__*/normalizeClass(['layout-row-reverse', 'gap-md'])
|
|
83
|
+
};
|
|
84
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
+
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
86
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
87
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
88
|
+
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
89
|
+
const _component_OrMenu = resolveComponent("OrMenu");
|
|
90
|
+
return openBlock(), createElementBlock("div", {
|
|
91
|
+
ref: "root",
|
|
92
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
93
|
+
}, [createVNode(_component_OrIconButton, {
|
|
94
|
+
icon: 'chevron_left',
|
|
95
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.goToPreviousMonth(), ["stop"]))
|
|
96
|
+
}), createElementVNode("div", _hoisted_1, [createVNode(_component_OrButton, {
|
|
97
|
+
ref: "yearButton",
|
|
98
|
+
variant: 'link',
|
|
99
|
+
color: 'inherit',
|
|
100
|
+
onClick: _cache[1] || (_cache[1] = withModifiers($event => {
|
|
101
|
+
_ctx.monthMenu.close();
|
|
102
|
+
_ctx.yearMenu.open();
|
|
103
|
+
}, ["stop"]))
|
|
104
|
+
}, {
|
|
105
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
106
|
+
icon: _ctx.yearMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
107
|
+
}, null, 8 /* PROPS */, ["icon"])]),
|
|
108
|
+
_: 1 /* STABLE */
|
|
109
|
+
}, 512 /* NEED_PATCH */), createVNode(_component_OrButton, {
|
|
110
|
+
ref: "monthButton",
|
|
111
|
+
variant: 'link',
|
|
112
|
+
color: 'inherit',
|
|
113
|
+
onClick: _cache[2] || (_cache[2] = withModifiers($event => {
|
|
114
|
+
_ctx.yearMenu.close();
|
|
115
|
+
_ctx.monthMenu.open();
|
|
116
|
+
}, ["stop"]))
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
119
|
+
icon: _ctx.monthMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
120
|
+
}, null, 8 /* PROPS */, ["icon"])]),
|
|
121
|
+
_: 1 /* STABLE */
|
|
122
|
+
}, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
|
|
123
|
+
ref: "yearMenu",
|
|
124
|
+
trigger: _ctx.yearButtonRoot
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.yearOptions, value => {
|
|
127
|
+
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
128
|
+
key: Number(value),
|
|
129
|
+
selected: Number(value) === Number(_ctx.proxyModelValue),
|
|
130
|
+
disabled: _ctx.yearFilter && !_ctx.yearFilter(value),
|
|
131
|
+
onClick: withModifiers($event => {
|
|
132
|
+
_ctx.proxyModelValue = value;
|
|
133
|
+
_ctx.yearMenu.close();
|
|
134
|
+
}, ["stop"])
|
|
135
|
+
}, {
|
|
136
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(value)), 1 /* TEXT */)]),
|
|
137
|
+
|
|
138
|
+
_: 2 /* DYNAMIC */
|
|
139
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "disabled", "onClick"]);
|
|
140
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
141
|
+
|
|
142
|
+
_: 1 /* STABLE */
|
|
143
|
+
}, 8 /* PROPS */, ["trigger"]), createVNode(_component_OrMenu, {
|
|
144
|
+
ref: "monthMenu",
|
|
145
|
+
trigger: _ctx.monthButtonRoot
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthOptions, value => {
|
|
148
|
+
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
149
|
+
key: Number(value),
|
|
150
|
+
selected: Number(value) === Number(_ctx.proxyModelValue),
|
|
151
|
+
disabled: _ctx.monthFilter && !_ctx.monthFilter(value),
|
|
152
|
+
onClick: withModifiers($event => {
|
|
153
|
+
_ctx.proxyModelValue = value;
|
|
154
|
+
_ctx.monthMenu.close();
|
|
155
|
+
}, ["stop"])
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(value)), 1 /* TEXT */)]),
|
|
158
|
+
|
|
159
|
+
_: 2 /* DYNAMIC */
|
|
160
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "disabled", "onClick"]);
|
|
161
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
162
|
+
|
|
163
|
+
_: 1 /* STABLE */
|
|
164
|
+
}, 8 /* PROPS */, ["trigger"])]), createVNode(_component_OrIconButton, {
|
|
165
|
+
icon: 'chevron_right',
|
|
166
|
+
onClick: _cache[3] || (_cache[3] = withModifiers($event => _ctx.goToNextMonth(), ["stop"]))
|
|
167
|
+
})], 2 /* CLASS */);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
script$3.render = render$2;
|
|
171
|
+
script$3.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue";
|
|
172
|
+
|
|
173
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
174
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
175
|
+
return openBlock(), createElementBlock("footer", {
|
|
176
|
+
ref: "root",
|
|
177
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
178
|
+
}, [createVNode(_component_OrButton, {
|
|
179
|
+
variant: 'outlined',
|
|
180
|
+
disabled: _ctx.disabled,
|
|
181
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('apply'), ["stop"]))
|
|
182
|
+
}, {
|
|
183
|
+
default: withCtx(() => [createTextVNode(" Done ")]),
|
|
184
|
+
_: 1 /* STABLE */
|
|
185
|
+
}, 8 /* PROPS */, ["disabled"]), createVNode(_component_OrButton, {
|
|
186
|
+
variant: 'text',
|
|
187
|
+
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.$emit('reset'), ["stop"]))
|
|
188
|
+
}, {
|
|
189
|
+
default: withCtx(() => [createTextVNode(" Cancel ")]),
|
|
190
|
+
_: 1 /* STABLE */
|
|
191
|
+
})], 2 /* CLASS */);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
script$4.render = render$1;
|
|
195
|
+
script$4.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue";
|
|
196
|
+
|
|
197
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
198
|
+
return openBlock(), createElementBlock("header", {
|
|
199
|
+
ref: "root",
|
|
200
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
201
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
script$5.render = render;
|
|
205
|
+
script$5.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue";
|
|
@@ -7,16 +7,19 @@ import { s as script$4 } from './OrButton.vue_vue_type_script_lang-0f7bda53.js';
|
|
|
7
7
|
const DateTimePickerMobileControl = [
|
|
8
8
|
// Layout
|
|
9
9
|
'layout-column',
|
|
10
|
+
// Interactivity
|
|
11
|
+
'interactivity-auto',
|
|
10
12
|
// Spacing
|
|
11
|
-
'gap-xs'
|
|
13
|
+
'gap-xs',
|
|
14
|
+
// Theme
|
|
15
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
|
|
16
|
+
// Theme (selected)
|
|
17
|
+
'selected:theme-foreground-default', 'dark:selected:theme-foreground-default-dark'];
|
|
12
18
|
const DateTimePickerMobileControlContent = [
|
|
13
19
|
// Typography
|
|
14
|
-
'typography-headline-1'
|
|
15
|
-
// Theme
|
|
16
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
20
|
+
'typography-headline-1'];
|
|
17
21
|
|
|
18
22
|
var script$2 = defineComponent({
|
|
19
|
-
name: 'OrDateTimePickerMobileControl',
|
|
20
23
|
components: {
|
|
21
24
|
OrLabel: script$3
|
|
22
25
|
},
|
|
@@ -24,6 +27,10 @@ var script$2 = defineComponent({
|
|
|
24
27
|
label: {
|
|
25
28
|
type: String,
|
|
26
29
|
required: true
|
|
30
|
+
},
|
|
31
|
+
selected: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
27
34
|
}
|
|
28
35
|
},
|
|
29
36
|
expose: ['root'],
|
|
@@ -52,7 +59,6 @@ const DateTimePickerPopoverFooter = [
|
|
|
52
59
|
'theme-border-1-outline-variant', 'dark:theme-border-1-outline-variant-dark', 'theme-border-overline'];
|
|
53
60
|
|
|
54
61
|
var script$1 = defineComponent({
|
|
55
|
-
name: 'OrDateTimePickerPopoverFooter',
|
|
56
62
|
components: {
|
|
57
63
|
OrButton: script$4
|
|
58
64
|
},
|
|
@@ -83,7 +89,6 @@ const DateTimePickerPopoverHeader = [
|
|
|
83
89
|
'px-md', 'py-md', 'gap-xl'];
|
|
84
90
|
|
|
85
91
|
var script = defineComponent({
|
|
86
|
-
name: 'OrDateTimePickerPopoverHeader',
|
|
87
92
|
expose: ['root'],
|
|
88
93
|
setup() {
|
|
89
94
|
// Refs
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { s as script, a as script$1 } from './OrDateTimePickerTimeSelect.vue_vue_type_script_lang-7fc4faea.js';
|
|
2
|
+
import { openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withModifiers, withCtx, createVNode, createCommentVNode } from 'vue';
|
|
3
|
+
|
|
4
|
+
const _hoisted_1 = ["contenteditable", "required", "readonly", "disabled"];
|
|
5
|
+
const _hoisted_2 = ["disabled"];
|
|
6
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7
|
+
return openBlock(), createElementBlock("div", {
|
|
8
|
+
ref: "root",
|
|
9
|
+
class: normalizeClass(_ctx.rootStyles),
|
|
10
|
+
contenteditable: !_ctx.disabled ? '' : null,
|
|
11
|
+
required: _ctx.required ? '' : null,
|
|
12
|
+
readonly: _ctx.readonly ? '' : null,
|
|
13
|
+
disabled: _ctx.disabled ? '' : null
|
|
14
|
+
}, [_ctx.proxyModelValue ? (openBlock(), createElementBlock(Fragment, {
|
|
15
|
+
key: 0
|
|
16
|
+
}, [createTextVNode(toDisplayString(_ctx.formatTime(_ctx.proxyModelValue, _ctx.format)), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: normalizeClass(_ctx.placeholderStyles),
|
|
19
|
+
disabled: _ctx.disabled ? '' : null
|
|
20
|
+
}, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_2))], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
script.render = render$1;
|
|
24
|
+
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue";
|
|
25
|
+
|
|
26
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
28
|
+
return openBlock(), createElementBlock("div", {
|
|
29
|
+
ref: "root",
|
|
30
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
31
|
+
}, [createElementVNode("div", {
|
|
32
|
+
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
33
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.hoursOptions, value => {
|
|
34
|
+
return openBlock(), createBlock(_component_OrButton, {
|
|
35
|
+
key: Number(value),
|
|
36
|
+
class: normalizeClass(_ctx.buttonGroupItemStyles),
|
|
37
|
+
variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
|
|
38
|
+
color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
|
|
39
|
+
disabled: _ctx.hoursFilter && !_ctx.hoursFilter(value),
|
|
40
|
+
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatHours(value)), 1 /* TEXT */)]),
|
|
43
|
+
|
|
44
|
+
_: 2 /* DYNAMIC */
|
|
45
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
46
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createTextVNode(" : "), createElementVNode("div", {
|
|
47
|
+
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
48
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.minutesOptions, value => {
|
|
49
|
+
return openBlock(), createBlock(_component_OrButton, {
|
|
50
|
+
key: Number(value),
|
|
51
|
+
class: normalizeClass(_ctx.buttonGroupItemStyles),
|
|
52
|
+
variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
|
|
53
|
+
color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
|
|
54
|
+
disabled: _ctx.minutesFilter && !_ctx.minutesFilter(value),
|
|
55
|
+
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMinutes(value)), 1 /* TEXT */)]),
|
|
58
|
+
|
|
59
|
+
_: 2 /* DYNAMIC */
|
|
60
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
61
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), _ctx.proxyTimeFormat === 'h12' ? (openBlock(), createElementBlock("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
64
|
+
}, [createVNode(_component_OrButton, {
|
|
65
|
+
class: normalizeClass(_ctx.buttonGroupItemStyles),
|
|
66
|
+
variant: _ctx.hoursRange === 'am' ? 'contained' : 'text',
|
|
67
|
+
color: _ctx.hoursRange === 'am' ? 'primary' : 'inherit',
|
|
68
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.hoursRange = 'am', ["stop"]))
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => [createTextVNode(" AM ")]),
|
|
71
|
+
_: 1 /* STABLE */
|
|
72
|
+
}, 8 /* PROPS */, ["class", "variant", "color"]), createVNode(_component_OrButton, {
|
|
73
|
+
class: normalizeClass(_ctx.buttonGroupItemStyles),
|
|
74
|
+
variant: _ctx.hoursRange === 'pm' ? 'contained' : 'text',
|
|
75
|
+
color: _ctx.hoursRange === 'pm' ? 'primary' : 'inherit',
|
|
76
|
+
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.hoursRange = 'pm', ["stop"]))
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [createTextVNode(" PM ")]),
|
|
79
|
+
_: 1 /* STABLE */
|
|
80
|
+
}, 8 /* PROPS */, ["class", "variant", "color"])], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
script$1.render = render;
|
|
84
|
+
script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue";
|