@orbe-agro/client-core 5.3.86 → 5.3.89
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/@ecme/assets/styles/app.css +1 -1
- package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
- package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
- package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
- package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
- package/dist/@ecme/assets/styles/components/_upload.css +1 -1
- package/dist/@ecme/assets/styles/components/index.css +1 -1
- package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
- package/dist/@ecme/auth/AuthProvider.js +58 -62
- package/dist/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/shared/Affix.js +9 -10
- package/dist/@ecme/components/shared/Affix.js.map +1 -1
- package/dist/@ecme/components/shared/AutoComplete.js +27 -28
- package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
- package/dist/@ecme/components/shared/CalendarView.js +19 -20
- package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
- package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
- package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
- package/dist/@ecme/components/shared/DataTable.js +151 -151
- package/dist/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/@ecme/components/shared/DebounceInput.js +11 -12
- package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
- package/dist/@ecme/components/shared/ImageGallery.js +18 -18
- package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
- package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
- package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
- package/dist/@ecme/components/shared/OtpInput.js +54 -56
- package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
- package/dist/@ecme/components/shared/PasswordInput.js +6 -6
- package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
- package/dist/@ecme/components/shared/RegionMap.js +9 -9
- package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
- package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
- package/dist/@ecme/components/template/LanguageSelector.js +10 -13
- package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
- package/dist/@ecme/components/template/Search.js +85 -92
- package/dist/@ecme/components/template/Search.js.map +1 -1
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
- package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
- package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Button/Button.js +66 -67
- package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
- package/dist/@ecme/components/ui/Card/Card.js +39 -40
- package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
- package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
- package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
- package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
- package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
- package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
- package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
- package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
- package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
- package/dist/@ecme/components/ui/Input/Input.js +50 -52
- package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
- package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
- package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
- package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
- package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Group.js +28 -28
- package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
- package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
- package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
- package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
- package/dist/@ecme/components/ui/Select/Select.js +40 -41
- package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
- package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
- package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
- package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
- package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
- package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
- package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
- package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
- package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
- package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
- package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
- package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
- package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
- package/dist/@ecme/components/ui/toast/toast.js +16 -19
- package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
- package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
- package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
- package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
- package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
- package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
- package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
- package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts +0 -19
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/base/assets/styles/init.css +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
- package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
- package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
- package/dist/base/components/tools/NavFilter.js +68 -75
- package/dist/base/components/tools/NavFilter.js.map +1 -1
- package/dist/base/configs/api.config.js +11 -14
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
- package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
- package/dist/base/hooks/adm/users/useUsersList.js +10 -10
- package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
- package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
- package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
- package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
- package/dist/base/hooks/useList.js +10 -10
- package/dist/base/hooks/useList.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
- package/dist/base/utils/functions/stringUtils.js +14 -15
- package/dist/base/utils/functions/stringUtils.js.map +1 -1
- package/lib/base/configs/api.config.ts +6 -7
- package/package.json +1 -1
- package/tsconfig.json +6 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as ce, jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as ce, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useRef as ie } from "react";
|
|
3
3
|
import fe from "classnames";
|
|
4
4
|
import ue from "../hooks/useControllableState.js";
|
|
5
5
|
import "../ConfigProvider/index.js";
|
|
6
6
|
import we from "./tables/DateTable.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useConfig as
|
|
7
|
+
import he from "./tables/MonthTable.js";
|
|
8
|
+
import me from "./tables/YearTable.js";
|
|
9
|
+
import { useConfig as De } from "../ConfigProvider/ConfigProvider.js";
|
|
10
10
|
const Re = (k) => {
|
|
11
11
|
const {
|
|
12
|
-
className:
|
|
13
|
-
dateViewCount:
|
|
12
|
+
className: u,
|
|
13
|
+
dateViewCount: l = 1,
|
|
14
14
|
dayClassName: v,
|
|
15
15
|
dayStyle: x,
|
|
16
|
-
defaultMonth:
|
|
16
|
+
defaultMonth: M,
|
|
17
17
|
defaultView: S = "date",
|
|
18
18
|
disableDate: p,
|
|
19
19
|
disableOutOfMonth: N,
|
|
@@ -29,38 +29,37 @@ const Re = (k) => {
|
|
|
29
29
|
year: "YYYY"
|
|
30
30
|
},
|
|
31
31
|
locale: W,
|
|
32
|
-
maxDate:
|
|
33
|
-
minDate:
|
|
32
|
+
maxDate: c,
|
|
33
|
+
minDate: i,
|
|
34
34
|
month: E,
|
|
35
35
|
monthLabelFormat: H = "MMM",
|
|
36
36
|
onChange: U,
|
|
37
37
|
onDayMouseEnter: V,
|
|
38
|
-
onMonthChange:
|
|
39
|
-
paginateBy:
|
|
40
|
-
preventFocus:
|
|
41
|
-
range:
|
|
42
|
-
ref:
|
|
43
|
-
renderDay:
|
|
44
|
-
style:
|
|
45
|
-
value:
|
|
46
|
-
weekdayLabelFormat:
|
|
47
|
-
weekendDays:
|
|
48
|
-
yearLabelFormat:
|
|
49
|
-
|
|
50
|
-
} = k, { locale: ee } =
|
|
51
|
-
Array(
|
|
52
|
-
), [
|
|
38
|
+
onMonthChange: _,
|
|
39
|
+
paginateBy: q = l,
|
|
40
|
+
preventFocus: w,
|
|
41
|
+
range: z,
|
|
42
|
+
ref: G,
|
|
43
|
+
renderDay: J,
|
|
44
|
+
style: Y,
|
|
45
|
+
value: Q,
|
|
46
|
+
weekdayLabelFormat: X = "dd",
|
|
47
|
+
weekendDays: Z,
|
|
48
|
+
yearLabelFormat: C = "YYYY",
|
|
49
|
+
...$
|
|
50
|
+
} = k, { locale: ee } = De(), [h, f] = b(S), y = W || ee, r = ie(
|
|
51
|
+
Array(l).fill(0).map(() => [])
|
|
52
|
+
), [n, m] = ue({
|
|
53
53
|
prop: E,
|
|
54
|
-
defaultProp:
|
|
55
|
-
onChange:
|
|
56
|
-
}), [
|
|
57
|
-
const
|
|
58
|
-
|
|
54
|
+
defaultProp: M !== void 0 ? M : /* @__PURE__ */ new Date(),
|
|
55
|
+
onChange: _
|
|
56
|
+
}), [D, F] = b(n?.getFullYear()), [te, ae] = b(n?.getMonth()), oe = i instanceof Date ? i.getFullYear() : 100, re = c instanceof Date ? c.getFullYear() : 1e4, L = 6, s = (e, t, a, o = 1) => {
|
|
57
|
+
const R = ["down", "up"].includes(e), se = R ? a.rowIndex + (e === "down" ? o : -o) : a.rowIndex, le = R ? a.cellIndex : a.cellIndex + (e === "right" ? o : -o), g = r.current[t][se][le];
|
|
58
|
+
g && (g.disabled ? s(e, t, a, o + 1) : g.focus());
|
|
59
59
|
}, ne = (e, t, a) => {
|
|
60
|
-
var r;
|
|
61
60
|
switch (a.key) {
|
|
62
61
|
case "ArrowDown": {
|
|
63
|
-
a.preventDefault(), t.rowIndex + 1 <
|
|
62
|
+
a.preventDefault(), t.rowIndex + 1 < r.current[e].length && s("down", e, t);
|
|
64
63
|
break;
|
|
65
64
|
}
|
|
66
65
|
case "ArrowUp": {
|
|
@@ -68,11 +67,11 @@ const Re = (k) => {
|
|
|
68
67
|
break;
|
|
69
68
|
}
|
|
70
69
|
case "ArrowRight": {
|
|
71
|
-
a.preventDefault(), t.cellIndex !==
|
|
70
|
+
a.preventDefault(), t.cellIndex !== L ? s("right", e, t) : e + 1 < l && r.current[e + 1][t.rowIndex] && r.current[e + 1][t.rowIndex][0]?.focus();
|
|
72
71
|
break;
|
|
73
72
|
}
|
|
74
73
|
case "ArrowLeft": {
|
|
75
|
-
a.preventDefault(), t.cellIndex !== 0 ? s("left", e, t) : e > 0 &&
|
|
74
|
+
a.preventDefault(), t.cellIndex !== 0 ? s("left", e, t) : e > 0 && r.current[e - 1][t.rowIndex] && r.current[e - 1][t.rowIndex][L].focus();
|
|
76
75
|
break;
|
|
77
76
|
}
|
|
78
77
|
default:
|
|
@@ -82,80 +81,80 @@ const Re = (k) => {
|
|
|
82
81
|
return /* @__PURE__ */ ce(
|
|
83
82
|
"div",
|
|
84
83
|
{
|
|
85
|
-
ref:
|
|
86
|
-
className: fe("picker-view",
|
|
87
|
-
|
|
84
|
+
ref: G,
|
|
85
|
+
className: fe("picker-view", u),
|
|
86
|
+
...$,
|
|
88
87
|
children: [
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
h === "year" && /* @__PURE__ */ d(
|
|
89
|
+
me,
|
|
91
90
|
{
|
|
92
|
-
value:
|
|
91
|
+
value: D,
|
|
93
92
|
minYear: oe,
|
|
94
93
|
maxYear: re,
|
|
95
|
-
className:
|
|
96
|
-
preventFocus:
|
|
97
|
-
yearLabelFormat:
|
|
94
|
+
className: u,
|
|
95
|
+
preventFocus: w,
|
|
96
|
+
yearLabelFormat: C,
|
|
98
97
|
onChange: (e) => {
|
|
99
|
-
|
|
98
|
+
m(new Date(e, te, 1)), F(e), f("date");
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
),
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
h === "month" && /* @__PURE__ */ d(
|
|
103
|
+
he,
|
|
105
104
|
{
|
|
106
105
|
value: {
|
|
107
|
-
month:
|
|
108
|
-
year:
|
|
106
|
+
month: n.getMonth(),
|
|
107
|
+
year: n.getFullYear()
|
|
109
108
|
},
|
|
110
|
-
year:
|
|
111
|
-
locale:
|
|
112
|
-
minDate:
|
|
113
|
-
maxDate:
|
|
114
|
-
className:
|
|
115
|
-
style:
|
|
116
|
-
preventFocus:
|
|
117
|
-
yearLabelFormat:
|
|
109
|
+
year: D,
|
|
110
|
+
locale: y,
|
|
111
|
+
minDate: i,
|
|
112
|
+
maxDate: c,
|
|
113
|
+
className: u,
|
|
114
|
+
style: Y,
|
|
115
|
+
preventFocus: w,
|
|
116
|
+
yearLabelFormat: C,
|
|
118
117
|
monthLabelFormat: H,
|
|
119
|
-
onYearChange:
|
|
120
|
-
onNextLevel: () =>
|
|
118
|
+
onYearChange: F,
|
|
119
|
+
onNextLevel: () => f("year"),
|
|
121
120
|
onChange: (e) => {
|
|
122
|
-
|
|
123
|
-
new Date(
|
|
124
|
-
), ae(e),
|
|
121
|
+
m(
|
|
122
|
+
new Date(D, e, 1)
|
|
123
|
+
), ae(e), f("date");
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
),
|
|
128
|
-
|
|
127
|
+
h === "date" && /* @__PURE__ */ d(
|
|
129
128
|
we,
|
|
130
129
|
{
|
|
131
|
-
dateViewCount:
|
|
132
|
-
paginateBy:
|
|
133
|
-
month:
|
|
134
|
-
locale:
|
|
135
|
-
minDate:
|
|
136
|
-
maxDate:
|
|
130
|
+
dateViewCount: l,
|
|
131
|
+
paginateBy: q,
|
|
132
|
+
month: n,
|
|
133
|
+
locale: y,
|
|
134
|
+
minDate: i,
|
|
135
|
+
maxDate: c,
|
|
137
136
|
enableHeaderLabel: A,
|
|
138
|
-
daysRefs:
|
|
139
|
-
style:
|
|
137
|
+
daysRefs: r,
|
|
138
|
+
style: Y,
|
|
140
139
|
dayClassName: v,
|
|
141
140
|
dayStyle: x,
|
|
142
141
|
disableOutOfMonth: N,
|
|
143
142
|
disableDate: p,
|
|
144
143
|
hideWeekdays: B,
|
|
145
|
-
preventFocus:
|
|
144
|
+
preventFocus: w,
|
|
146
145
|
firstDayOfWeek: I,
|
|
147
|
-
value:
|
|
148
|
-
range:
|
|
146
|
+
value: Q,
|
|
147
|
+
range: z,
|
|
149
148
|
labelFormat: P,
|
|
150
|
-
weekdayLabelFormat:
|
|
151
|
-
renderDay:
|
|
149
|
+
weekdayLabelFormat: X,
|
|
150
|
+
renderDay: J,
|
|
152
151
|
hideOutOfMonthDates: O,
|
|
153
152
|
isDateInRange: j,
|
|
154
153
|
isDateFirstInRange: T,
|
|
155
154
|
isDateLastInRange: K,
|
|
156
|
-
weekendDays:
|
|
157
|
-
onMonthChange:
|
|
158
|
-
onNextLevel: (e) =>
|
|
155
|
+
weekendDays: Z,
|
|
156
|
+
onMonthChange: m,
|
|
157
|
+
onNextLevel: (e) => f(e),
|
|
159
158
|
onDayKeyDown: ne,
|
|
160
159
|
onChange: U,
|
|
161
160
|
onDayMouseEnter: V
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarBase.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/CalendarBase.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport classNames from 'classnames'\nimport useControllableState from '../hooks/useControllableState'\nimport { useConfig } from '../ConfigProvider'\nimport DateTable from './tables/DateTable'\nimport MonthTable from './tables/MonthTable'\nimport YearTable from './tables/YearTable'\nimport type { CommonProps } from '../@types/common'\nimport type { MonthBaseProps } from './tables/components/Month'\nimport type { DayKeydownPayload } from './tables/components/types'\nimport type { ReactNode, KeyboardEvent, MouseEvent, Ref } from 'react'\n\nexport interface CalendarSharedProps extends Omit<MonthBaseProps, 'value'> {\n dateViewCount?: number\n defaultView?: 'date' | 'month' | 'year'\n defaultMonth?: Date\n enableHeaderLabel?: boolean\n locale?: string\n labelFormat?: { month: string; year: string }\n monthLabelFormat?: string\n onDayMouseEnter?: (date: Date, event: MouseEvent) => void\n onMonthChange?: (month: Date) => void\n paginateBy?: number\n range?: [Date, Date]\n renderDay?: (date: Date) => ReactNode\n weekdayLabelFormat?: string\n yearLabelFormat?: string\n}\n\ninterface CalendarBaseProps extends CommonProps, CalendarSharedProps {\n ref?: Ref<HTMLDivElement>\n onChange?: (value: Date | Date[]) => void\n value?: Date | Date[] | null\n}\n\nconst CalendarBase = (props: CalendarBaseProps) => {\n const {\n className,\n dateViewCount = 1,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultView = 'date',\n disableDate,\n disableOutOfMonth,\n enableHeaderLabel = true,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n isDateFirstInRange,\n isDateInRange,\n isDateLastInRange,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n month,\n monthLabelFormat = 'MMM',\n onChange,\n onDayMouseEnter,\n onMonthChange,\n paginateBy = dateViewCount,\n preventFocus,\n range,\n ref,\n renderDay,\n style,\n value,\n weekdayLabelFormat = 'dd',\n weekendDays,\n yearLabelFormat = 'YYYY',\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n\n const [selectionState, setSelectionState] = useState(defaultView)\n\n const finalLocale = locale || themeLocale\n\n const daysRefs = useRef<HTMLButtonElement[][][]>(\n Array(dateViewCount)\n .fill(0)\n .map(() => []),\n )\n\n const [_month, setMonth] = useControllableState({\n prop: month,\n defaultProp: defaultMonth !== undefined ? defaultMonth : new Date(),\n onChange: onMonthChange,\n })\n\n const [yearSelection, setYearSelection] = useState(_month?.getFullYear())\n const [monthSelection, setMonthSelection] = useState(_month?.getMonth())\n\n const minYear = minDate instanceof Date ? minDate.getFullYear() : 100\n const maxYear = maxDate instanceof Date ? maxDate.getFullYear() : 10000\n\n const daysPerRow = 6\n\n const focusOnNextFocusableDay = (\n direction: 'down' | 'up' | 'left' | 'right',\n monthIndex: number,\n payload: DayKeydownPayload,\n n = 1,\n ) => {\n const changeRow = ['down', 'up'].includes(direction)\n\n const rowIndex = changeRow\n ? payload.rowIndex + (direction === 'down' ? n : -n)\n : payload.rowIndex\n\n const cellIndex = changeRow\n ? payload.cellIndex\n : payload.cellIndex + (direction === 'right' ? n : -n)\n\n const dayToFocus = daysRefs.current[monthIndex][rowIndex][cellIndex]\n\n if (!dayToFocus) {\n return\n }\n\n if (dayToFocus.disabled) {\n focusOnNextFocusableDay(direction, monthIndex, payload, n + 1)\n } else {\n dayToFocus.focus()\n }\n }\n\n const handleDayKeyDown = (\n monthIndex: number,\n payload: DayKeydownPayload,\n event: KeyboardEvent<HTMLButtonElement>,\n ) => {\n switch (event.key) {\n case 'ArrowDown': {\n event.preventDefault()\n\n const hasRowBelow =\n payload.rowIndex + 1 < daysRefs.current[monthIndex].length\n if (hasRowBelow) {\n focusOnNextFocusableDay('down', monthIndex, payload)\n }\n break\n }\n case 'ArrowUp': {\n event.preventDefault()\n\n const hasRowAbove = payload.rowIndex > 0\n if (hasRowAbove) {\n focusOnNextFocusableDay('up', monthIndex, payload)\n }\n break\n }\n case 'ArrowRight': {\n event.preventDefault()\n\n const isNotLastCell = payload.cellIndex !== daysPerRow\n if (isNotLastCell) {\n focusOnNextFocusableDay('right', monthIndex, payload)\n } else if (monthIndex + 1 < dateViewCount) {\n if (daysRefs.current[monthIndex + 1][payload.rowIndex]) {\n daysRefs.current[monthIndex + 1][\n payload.rowIndex\n ][0]?.focus()\n }\n }\n break\n }\n case 'ArrowLeft': {\n event.preventDefault()\n\n if (payload.cellIndex !== 0) {\n focusOnNextFocusableDay('left', monthIndex, payload)\n } else if (monthIndex > 0) {\n if (daysRefs.current[monthIndex - 1][payload.rowIndex]) {\n daysRefs.current[monthIndex - 1][payload.rowIndex][\n daysPerRow\n ].focus()\n }\n }\n break\n }\n default:\n break\n }\n }\n\n return (\n <div\n ref={ref}\n className={classNames('picker-view', className)}\n {...rest}\n >\n {selectionState === 'year' && (\n <YearTable\n value={yearSelection as number}\n minYear={minYear}\n maxYear={maxYear}\n className={className}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n onChange={(year) => {\n setMonth(new Date(year, monthSelection as number, 1))\n setYearSelection(year)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'month' && (\n <MonthTable\n value={{\n month: (_month as Date).getMonth(),\n year: (_month as Date).getFullYear(),\n }}\n year={yearSelection as number}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n className={className}\n style={style}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n monthLabelFormat={monthLabelFormat}\n onYearChange={setYearSelection}\n onNextLevel={() => setSelectionState('year')}\n onChange={(monthValue) => {\n setMonth(\n new Date(yearSelection as number, monthValue, 1),\n )\n setMonthSelection(monthValue)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'date' && (\n <DateTable\n dateViewCount={dateViewCount}\n paginateBy={paginateBy}\n month={_month as Date}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n enableHeaderLabel={enableHeaderLabel}\n daysRefs={daysRefs}\n style={style}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n disableDate={disableDate}\n hideWeekdays={hideWeekdays}\n preventFocus={preventFocus}\n firstDayOfWeek={firstDayOfWeek}\n value={value as Date | Date[]}\n range={range}\n labelFormat={labelFormat}\n weekdayLabelFormat={weekdayLabelFormat}\n renderDay={renderDay}\n hideOutOfMonthDates={hideOutOfMonthDates}\n isDateInRange={isDateInRange}\n isDateFirstInRange={isDateFirstInRange}\n isDateLastInRange={isDateLastInRange}\n weekendDays={weekendDays}\n onMonthChange={setMonth}\n onNextLevel={(view) => setSelectionState(view)}\n onDayKeyDown={handleDayKeyDown}\n onChange={onChange}\n onDayMouseEnter={onDayMouseEnter}\n />\n )}\n </div>\n )\n}\n\nexport default CalendarBase\n"],"names":["CalendarBase","props","className","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultView","disableDate","disableOutOfMonth","enableHeaderLabel","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","isDateFirstInRange","isDateInRange","isDateLastInRange","labelFormat","locale","maxDate","minDate","month","monthLabelFormat","onChange","onDayMouseEnter","onMonthChange","paginateBy","preventFocus","range","ref","renderDay","style","value","weekdayLabelFormat","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","selectionState","setSelectionState","useState","finalLocale","daysRefs","useRef","_month","setMonth","useControllableState","yearSelection","setYearSelection","monthSelection","setMonthSelection","minYear","maxYear","daysPerRow","focusOnNextFocusableDay","direction","monthIndex","payload","n","changeRow","rowIndex","cellIndex","dayToFocus","handleDayKeyDown","event","_a","jsxs","classNames","jsx","YearTable","year","MonthTable","monthValue","DateTable","view"],"mappings":";;;;;;;;;AAmCA,MAAMA,KAAe,CAACC,MAA6B;AAC/C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,cAAAC;AAAA,I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AAU,GAC5BjC,EAAkB,MAAM;AAAA,YAC5B;AAAA,UAAA;AAAA,QAAA;AAAA,QAGPD,MAAmB,UAChB,gBAAA8B;AAAA,UAACK;AAAA,UAAA;AAAA,YACG,eAAAvE;AAAA,YACA,YAAAuB;AAAA,YACA,OAAOmB;AAAA,YACP,QAAQH;AAAA,YACR,SAAAtB;AAAA,YACA,SAAAD;AAAA,YACA,mBAAAT;AAAA,YACA,UAAAiC;AAAA,YACA,OAAAZ;AAAA,YACA,cAAA3B;AAAA,YACA,UAAAC;AAAA,YACA,mBAAAI;AAAA,YACA,aAAAD;AAAA,YACA,cAAAK;AAAA,YACA,cAAAc;AAAA,YACA,gBAAAhB;AAAA,YACA,OAAAqB;AAAA,YACA,OAAAJ;AAAA,YACA,aAAAX;AAAA,YACA,oBAAAgB;AAAA,YACA,WAAAH;AAAA,YACA,qBAAAlB;AAAA,YACA,eAAAG;AAAA,YACA,oBAAAD;AAAA,YACA,mBAAAE;AAAA,YACA,aAAAkB;AAAA,YACA,eAAeY;AAAA,YACf,aAAa,CAAC6B,MAASnC,EAAkBmC,CAAI;AAAA,YAC7C,cAAcX;AAAA,YACd,UAAAzC;AAAA,YACA,iBAAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAIhB;"}
|
|
1
|
+
{"version":3,"file":"CalendarBase.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/CalendarBase.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport classNames from 'classnames'\nimport useControllableState from '../hooks/useControllableState'\nimport { useConfig } from '../ConfigProvider'\nimport DateTable from './tables/DateTable'\nimport MonthTable from './tables/MonthTable'\nimport YearTable from './tables/YearTable'\nimport type { CommonProps } from '../@types/common'\nimport type { MonthBaseProps } from './tables/components/Month'\nimport type { DayKeydownPayload } from './tables/components/types'\nimport type { ReactNode, KeyboardEvent, MouseEvent, Ref } from 'react'\n\nexport interface CalendarSharedProps extends Omit<MonthBaseProps, 'value'> {\n dateViewCount?: number\n defaultView?: 'date' | 'month' | 'year'\n defaultMonth?: Date\n enableHeaderLabel?: boolean\n locale?: string\n labelFormat?: { month: string; year: string }\n monthLabelFormat?: string\n onDayMouseEnter?: (date: Date, event: MouseEvent) => void\n onMonthChange?: (month: Date) => void\n paginateBy?: number\n range?: [Date, Date]\n renderDay?: (date: Date) => ReactNode\n weekdayLabelFormat?: string\n yearLabelFormat?: string\n}\n\ninterface CalendarBaseProps extends CommonProps, CalendarSharedProps {\n ref?: Ref<HTMLDivElement>\n onChange?: (value: Date | Date[]) => void\n value?: Date | Date[] | null\n}\n\nconst CalendarBase = (props: CalendarBaseProps) => {\n const {\n className,\n dateViewCount = 1,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultView = 'date',\n disableDate,\n disableOutOfMonth,\n enableHeaderLabel = true,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n isDateFirstInRange,\n isDateInRange,\n isDateLastInRange,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n month,\n monthLabelFormat = 'MMM',\n onChange,\n onDayMouseEnter,\n onMonthChange,\n paginateBy = dateViewCount,\n preventFocus,\n range,\n ref,\n renderDay,\n style,\n value,\n weekdayLabelFormat = 'dd',\n weekendDays,\n yearLabelFormat = 'YYYY',\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n\n const [selectionState, setSelectionState] = useState(defaultView)\n\n const finalLocale = locale || themeLocale\n\n const daysRefs = useRef<HTMLButtonElement[][][]>(\n Array(dateViewCount)\n .fill(0)\n .map(() => []),\n )\n\n const [_month, setMonth] = useControllableState({\n prop: month,\n defaultProp: defaultMonth !== undefined ? defaultMonth : new Date(),\n onChange: onMonthChange,\n })\n\n const [yearSelection, setYearSelection] = useState(_month?.getFullYear())\n const [monthSelection, setMonthSelection] = useState(_month?.getMonth())\n\n const minYear = minDate instanceof Date ? minDate.getFullYear() : 100\n const maxYear = maxDate instanceof Date ? maxDate.getFullYear() : 10000\n\n const daysPerRow = 6\n\n const focusOnNextFocusableDay = (\n direction: 'down' | 'up' | 'left' | 'right',\n monthIndex: number,\n payload: DayKeydownPayload,\n n = 1,\n ) => {\n const changeRow = ['down', 'up'].includes(direction)\n\n const rowIndex = changeRow\n ? payload.rowIndex + (direction === 'down' ? n : -n)\n : payload.rowIndex\n\n const cellIndex = changeRow\n ? payload.cellIndex\n : payload.cellIndex + (direction === 'right' ? n : -n)\n\n const dayToFocus = daysRefs.current[monthIndex][rowIndex][cellIndex]\n\n if (!dayToFocus) {\n return\n }\n\n if (dayToFocus.disabled) {\n focusOnNextFocusableDay(direction, monthIndex, payload, n + 1)\n } else {\n dayToFocus.focus()\n }\n }\n\n const handleDayKeyDown = (\n monthIndex: number,\n payload: DayKeydownPayload,\n event: KeyboardEvent<HTMLButtonElement>,\n ) => {\n switch (event.key) {\n case 'ArrowDown': {\n event.preventDefault()\n\n const hasRowBelow =\n payload.rowIndex + 1 < daysRefs.current[monthIndex].length\n if (hasRowBelow) {\n focusOnNextFocusableDay('down', monthIndex, payload)\n }\n break\n }\n case 'ArrowUp': {\n event.preventDefault()\n\n const hasRowAbove = payload.rowIndex > 0\n if (hasRowAbove) {\n focusOnNextFocusableDay('up', monthIndex, payload)\n }\n break\n }\n case 'ArrowRight': {\n event.preventDefault()\n\n const isNotLastCell = payload.cellIndex !== daysPerRow\n if (isNotLastCell) {\n focusOnNextFocusableDay('right', monthIndex, payload)\n } else if (monthIndex + 1 < dateViewCount) {\n if (daysRefs.current[monthIndex + 1][payload.rowIndex]) {\n daysRefs.current[monthIndex + 1][\n payload.rowIndex\n ][0]?.focus()\n }\n }\n break\n }\n case 'ArrowLeft': {\n event.preventDefault()\n\n if (payload.cellIndex !== 0) {\n focusOnNextFocusableDay('left', monthIndex, payload)\n } else if (monthIndex > 0) {\n if (daysRefs.current[monthIndex - 1][payload.rowIndex]) {\n daysRefs.current[monthIndex - 1][payload.rowIndex][\n daysPerRow\n ].focus()\n }\n }\n break\n }\n default:\n break\n }\n }\n\n return (\n <div\n ref={ref}\n className={classNames('picker-view', className)}\n {...rest}\n >\n {selectionState === 'year' && (\n <YearTable\n value={yearSelection as number}\n minYear={minYear}\n maxYear={maxYear}\n className={className}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n onChange={(year) => {\n setMonth(new Date(year, monthSelection as number, 1))\n setYearSelection(year)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'month' && (\n <MonthTable\n value={{\n month: (_month as Date).getMonth(),\n year: (_month as Date).getFullYear(),\n }}\n year={yearSelection as number}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n className={className}\n style={style}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n monthLabelFormat={monthLabelFormat}\n onYearChange={setYearSelection}\n onNextLevel={() => setSelectionState('year')}\n onChange={(monthValue) => {\n setMonth(\n new Date(yearSelection as number, monthValue, 1),\n )\n setMonthSelection(monthValue)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'date' && (\n <DateTable\n dateViewCount={dateViewCount}\n paginateBy={paginateBy}\n month={_month as Date}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n enableHeaderLabel={enableHeaderLabel}\n daysRefs={daysRefs}\n style={style}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n disableDate={disableDate}\n hideWeekdays={hideWeekdays}\n preventFocus={preventFocus}\n firstDayOfWeek={firstDayOfWeek}\n value={value as Date | Date[]}\n range={range}\n labelFormat={labelFormat}\n weekdayLabelFormat={weekdayLabelFormat}\n renderDay={renderDay}\n hideOutOfMonthDates={hideOutOfMonthDates}\n isDateInRange={isDateInRange}\n isDateFirstInRange={isDateFirstInRange}\n isDateLastInRange={isDateLastInRange}\n weekendDays={weekendDays}\n onMonthChange={setMonth}\n onNextLevel={(view) => setSelectionState(view)}\n onDayKeyDown={handleDayKeyDown}\n onChange={onChange}\n onDayMouseEnter={onDayMouseEnter}\n />\n )}\n </div>\n )\n}\n\nexport default CalendarBase\n"],"names":["CalendarBase","props","className","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultView","disableDate","disableOutOfMonth","enableHeaderLabel","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","isDateFirstInRange","isDateInRange","isDateLastInRange","labelFormat","locale","maxDate","minDate","month","monthLabelFormat","onChange","onDayMouseEnter","onMonthChange","paginateBy","preventFocus","range","ref","renderDay","style","value","weekdayLabelFormat","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","selectionState","setSelectionState","useState","finalLocale","daysRefs","useRef","_month","setMonth","useControllableState","yearSelection","setYearSelection","monthSelection","setMonthSelection","minYear","maxYear","daysPerRow","focusOnNextFocusableDay","direction","monthIndex","payload","n","changeRow","rowIndex","cellIndex","dayToFocus","handleDayKeyDown","event","jsxs","classNames","jsx","YearTable","year","MonthTable","monthValue","DateTable","view"],"mappings":";;;;;;;;;AAmCA,MAAMA,KAAe,CAACC,MAA6B;AAC/C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC,IAAoB;AAAA,IACpB,gBAAAC,IAAiB;AAAA,IACjB,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,IAAA;AAAA,IAEV,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,kBAAAC,IAAmB;AAAA,IACnB,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC,IAAavB;AAAA,IACb,cAAAwB;AAAA,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A,YACA,oBAAAD;AAAA,YACA,mBAAAE;AAAA,YACA,aAAAkB;AAAA,YACA,eAAeY;AAAA,YACf,aAAa,CAAC4B,MAASlC,EAAkBkC,CAAI;AAAA,YAC7C,cAAcV;AAAA,YACd,UAAAzC;AAAA,YACA,iBAAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAIhB;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as A } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as d, useRef as Fe, useEffect as O } from "react";
|
|
3
3
|
import a from "dayjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import Oe from "../hooks/useControllableState.js";
|
|
5
|
+
import Ve from "../hooks/useMergeRef.js";
|
|
6
6
|
import ke from "./Calendar.js";
|
|
7
7
|
import Ye from "./BasePicker.js";
|
|
8
8
|
import "../ConfigProvider/index.js";
|
|
@@ -17,11 +17,11 @@ const R = "YYYY-MM-DD", Ne = (T) => {
|
|
|
17
17
|
dateViewCount: z,
|
|
18
18
|
dayClassName: K,
|
|
19
19
|
dayStyle: U,
|
|
20
|
-
defaultMonth:
|
|
20
|
+
defaultMonth: V,
|
|
21
21
|
defaultOpen: W = !1,
|
|
22
|
-
defaultValue:
|
|
22
|
+
defaultValue: h,
|
|
23
23
|
defaultView: H,
|
|
24
|
-
disabled:
|
|
24
|
+
disabled: k = !1,
|
|
25
25
|
disableDate: q,
|
|
26
26
|
enableHeaderLabel: G,
|
|
27
27
|
disableOutOfMonth: J,
|
|
@@ -31,7 +31,7 @@ const R = "YYYY-MM-DD", Ne = (T) => {
|
|
|
31
31
|
inputFormat: $,
|
|
32
32
|
inputPrefix: ee,
|
|
33
33
|
inputSuffix: te,
|
|
34
|
-
inputtable:
|
|
34
|
+
inputtable: f,
|
|
35
35
|
labelFormat: ae = {
|
|
36
36
|
month: "MMM",
|
|
37
37
|
year: "YYYY"
|
|
@@ -40,105 +40,101 @@ const R = "YYYY-MM-DD", Ne = (T) => {
|
|
|
40
40
|
maxDate: o,
|
|
41
41
|
minDate: n,
|
|
42
42
|
name: ne = "date",
|
|
43
|
-
onBlur:
|
|
43
|
+
onBlur: Y,
|
|
44
44
|
onChange: le,
|
|
45
|
-
onFocus:
|
|
46
|
-
onDropdownClose:
|
|
47
|
-
onDropdownOpen:
|
|
45
|
+
onFocus: B,
|
|
46
|
+
onDropdownClose: L,
|
|
47
|
+
onDropdownOpen: P,
|
|
48
48
|
openPickerOnClear: se = !1,
|
|
49
49
|
renderDay: re,
|
|
50
50
|
ref: fe = null,
|
|
51
51
|
size: ie,
|
|
52
52
|
style: ue,
|
|
53
|
-
type:
|
|
54
|
-
value:
|
|
53
|
+
type: y,
|
|
54
|
+
value: i,
|
|
55
55
|
weekendDays: ce,
|
|
56
56
|
yearLabelFormat: de,
|
|
57
|
-
...
|
|
58
|
-
} = T, { locale:
|
|
59
|
-
prop:
|
|
60
|
-
defaultProp:
|
|
57
|
+
...pe
|
|
58
|
+
} = T, { locale: C } = Be(), s = oe || C, r = y === "date" ? R : $ || R, [me, w] = d(W), M = Fe(null), [De, g] = d(h ?? null), [t, u] = Oe({
|
|
59
|
+
prop: i,
|
|
60
|
+
defaultProp: h,
|
|
61
61
|
onChange: le
|
|
62
|
-
}), [
|
|
63
|
-
t ||
|
|
64
|
-
), [
|
|
65
|
-
t instanceof Date ? p(a(t).locale(s).format(
|
|
66
|
-
),
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
62
|
+
}), [b, c] = d(
|
|
63
|
+
t || V || /* @__PURE__ */ new Date()
|
|
64
|
+
), [m, v] = d(!1), [S, l] = d(
|
|
65
|
+
t instanceof Date ? p(a(t).locale(s).format(r)) : ""
|
|
66
|
+
), he = () => {
|
|
67
|
+
w(!1), L?.();
|
|
68
|
+
}, F = () => {
|
|
69
|
+
w(!0), P?.();
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
t || (o && a(
|
|
73
|
-
}, [n, o]),
|
|
74
|
-
|
|
75
|
-
p(a(
|
|
71
|
+
O(() => {
|
|
72
|
+
t || (o && a(b).isAfter(o) && c(o), n && a(b).isBefore(n) && c(n));
|
|
73
|
+
}, [n, o]), O(() => {
|
|
74
|
+
i === null && !m && l(""), i instanceof Date && !m && l(
|
|
75
|
+
p(a(i).locale(s).format(r))
|
|
76
76
|
);
|
|
77
|
-
}, [
|
|
78
|
-
|
|
77
|
+
}, [i, m, C]), O(() => {
|
|
78
|
+
h instanceof Date && S && !m && l(
|
|
79
79
|
p(
|
|
80
|
-
a(t).locale(s).format(
|
|
80
|
+
a(t).locale(s).format(r)
|
|
81
81
|
)
|
|
82
82
|
);
|
|
83
|
-
}, [
|
|
83
|
+
}, [C]);
|
|
84
84
|
const ye = (e) => {
|
|
85
|
-
|
|
86
|
-
p(a(e).locale(s).format(
|
|
87
|
-
), j &&
|
|
88
|
-
var r;
|
|
89
|
-
return (r = F.current) == null ? void 0 : r.focus();
|
|
90
|
-
}, 0);
|
|
85
|
+
u(e), l(
|
|
86
|
+
p(a(e).locale(s).format(r))
|
|
87
|
+
), j && F(), window.setTimeout(() => M.current?.focus(), 0);
|
|
91
88
|
}, Ce = () => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}, x = (e) => a(e, f, s).toDate(), I = () => {
|
|
89
|
+
u(null), g(null), l(""), se && F(), M.current?.focus();
|
|
90
|
+
}, x = (e) => a(e, r, s).toDate(), I = () => {
|
|
95
91
|
let e = typeof t == "string" ? x(t) : t;
|
|
96
|
-
o && a(e).isAfter(o) && (e = o), n && a(e).isBefore(n) && (e = n), a(e).isValid() ? (
|
|
97
|
-
p(a(e).locale(s).format(
|
|
98
|
-
),
|
|
92
|
+
o && a(e).isAfter(o) && (e = o), n && a(e).isBefore(n) && (e = n), a(e).isValid() ? (u(e), g(e), l(
|
|
93
|
+
p(a(e).locale(s).format(r))
|
|
94
|
+
), c(e)) : u(De);
|
|
95
|
+
}, we = (e) => {
|
|
96
|
+
typeof Y == "function" && Y(e), v(!1), f && I();
|
|
99
97
|
}, Me = (e) => {
|
|
100
|
-
|
|
98
|
+
e.key === "Enter" && f && (he(), I());
|
|
101
99
|
}, ge = (e) => {
|
|
102
|
-
|
|
100
|
+
typeof B == "function" && B(e), v(!0);
|
|
103
101
|
}, be = (e) => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
const r = x(e.target.value);
|
|
108
|
-
a(r).isValid() ? (c(r), w(r), l(e.target.value), d(r)) : l(e.target.value);
|
|
102
|
+
F();
|
|
103
|
+
const D = x(e.target.value);
|
|
104
|
+
a(D).isValid() ? (u(D), g(D), l(e.target.value), c(D)) : l(e.target.value);
|
|
109
105
|
};
|
|
110
106
|
return /* @__PURE__ */ A(
|
|
111
107
|
Ye,
|
|
112
108
|
{
|
|
113
|
-
ref:
|
|
114
|
-
inputtable:
|
|
115
|
-
dropdownOpened:
|
|
116
|
-
setDropdownOpened:
|
|
109
|
+
ref: Ve(fe, M),
|
|
110
|
+
inputtable: f,
|
|
111
|
+
dropdownOpened: me,
|
|
112
|
+
setDropdownOpened: w,
|
|
117
113
|
size: ie,
|
|
118
114
|
style: ue,
|
|
119
115
|
className: E,
|
|
120
116
|
name: ne,
|
|
121
117
|
inputLabel: S,
|
|
122
|
-
clearable:
|
|
118
|
+
clearable: y === "date" ? !1 : N && !!t && !k,
|
|
123
119
|
clearButton: _,
|
|
124
|
-
disabled:
|
|
125
|
-
type:
|
|
120
|
+
disabled: k,
|
|
121
|
+
type: y,
|
|
126
122
|
inputPrefix: ee,
|
|
127
123
|
inputSuffix: te,
|
|
128
|
-
onChange:
|
|
129
|
-
onBlur:
|
|
130
|
-
onFocus:
|
|
131
|
-
onKeyDown:
|
|
124
|
+
onChange: be,
|
|
125
|
+
onBlur: we,
|
|
126
|
+
onFocus: ge,
|
|
127
|
+
onKeyDown: Me,
|
|
132
128
|
onClear: Ce,
|
|
133
|
-
onDropdownClose:
|
|
134
|
-
onDropdownOpen:
|
|
135
|
-
...
|
|
129
|
+
onDropdownClose: L,
|
|
130
|
+
onDropdownOpen: P,
|
|
131
|
+
...pe,
|
|
136
132
|
children: /* @__PURE__ */ A(
|
|
137
133
|
ke,
|
|
138
134
|
{
|
|
139
135
|
locale: s,
|
|
140
|
-
month:
|
|
141
|
-
defaultMonth:
|
|
136
|
+
month: f ? b : void 0,
|
|
137
|
+
defaultMonth: V || (t instanceof Date ? t : /* @__PURE__ */ new Date()),
|
|
142
138
|
value: t instanceof Date ? t : t && a(t).toDate(),
|
|
143
139
|
labelFormat: ae,
|
|
144
140
|
dayClassName: K,
|
|
@@ -148,7 +144,7 @@ const R = "YYYY-MM-DD", Ne = (T) => {
|
|
|
148
144
|
maxDate: o,
|
|
149
145
|
disableDate: q,
|
|
150
146
|
firstDayOfWeek: Q,
|
|
151
|
-
preventFocus:
|
|
147
|
+
preventFocus: f,
|
|
152
148
|
dateViewCount: z,
|
|
153
149
|
enableHeaderLabel: G,
|
|
154
150
|
defaultView: H,
|
|
@@ -157,7 +153,7 @@ const R = "YYYY-MM-DD", Ne = (T) => {
|
|
|
157
153
|
renderDay: re,
|
|
158
154
|
weekendDays: ce,
|
|
159
155
|
yearLabelFormat: de,
|
|
160
|
-
onMonthChange:
|
|
156
|
+
onMonthChange: c,
|
|
161
157
|
onChange: ye
|
|
162
158
|
}
|
|
163
159
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/DatePicker.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport dayjs from 'dayjs'\nimport useControllableState from '../hooks/useControllableState'\nimport useMergedRef from '../hooks/useMergeRef'\nimport Calendar from './Calendar'\nimport BasePicker from './BasePicker'\nimport { useConfig } from '../ConfigProvider'\nimport capitalize from '../utils/capitalize'\nimport type { CommonProps } from '../@types/common'\nimport type { CalendarSharedProps } from './CalendarBase'\nimport type { BasePickerSharedProps } from './BasePicker'\nimport type { FocusEvent, KeyboardEvent, ChangeEvent, Ref } from 'react'\n\nconst DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'\n\nexport interface DatePickerProps\n extends CommonProps,\n Omit<\n CalendarSharedProps,\n | 'onMonthChange'\n | 'onChange'\n | 'isDateInRange'\n | 'isDateFirstInRange'\n | 'isDateLastInRange'\n | 'month'\n >,\n BasePickerSharedProps {\n closePickerOnChange?: boolean\n defaultOpen?: boolean\n defaultValue?: Date | null\n value?: Date | null\n inputFormat?: string\n inputtableBlurClose?: boolean\n openPickerOnClear?: boolean\n onChange?: (value: Date | null) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst DatePicker = (props: DatePickerProps) => {\n const {\n className,\n clearable = true,\n clearButton,\n closePickerOnChange = true,\n dateViewCount,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultOpen = false,\n defaultValue,\n defaultView,\n disabled = false,\n disableDate,\n enableHeaderLabel,\n disableOutOfMonth,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n inputFormat,\n inputPrefix,\n inputSuffix,\n inputtable,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n name = 'date',\n onBlur,\n onChange,\n onFocus,\n onDropdownClose,\n onDropdownOpen,\n openPickerOnClear = false,\n renderDay,\n ref = null,\n size,\n style,\n type,\n value,\n weekendDays,\n yearLabelFormat,\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n const finalLocale = locale || themeLocale\n\n const dateFormat =\n type === 'date'\n ? DEFAULT_INPUT_FORMAT\n : inputFormat || DEFAULT_INPUT_FORMAT\n\n const [dropdownOpened, setDropdownOpened] = useState(defaultOpen)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const [lastValidValue, setLastValidValue] = useState(defaultValue ?? null)\n\n const [_value, setValue] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange,\n })\n\n const [calendarMonth, setCalendarMonth] = useState(\n _value || defaultMonth || new Date(),\n )\n\n const [focused, setFocused] = useState(false)\n\n const [inputState, setInputState] = useState(\n _value instanceof Date\n ? capitalize(dayjs(_value).locale(finalLocale).format(dateFormat))\n : '',\n )\n\n const closeDropdown = () => {\n setDropdownOpened(false)\n onDropdownClose?.()\n }\n\n const openDropdown = () => {\n setDropdownOpened(true)\n onDropdownOpen?.()\n }\n\n useEffect(() => {\n if (!_value) {\n if (maxDate && dayjs(calendarMonth).isAfter(maxDate)) {\n setCalendarMonth(maxDate)\n }\n\n if (minDate && dayjs(calendarMonth).isBefore(minDate)) {\n setCalendarMonth(minDate)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minDate, maxDate])\n\n useEffect(() => {\n if (value === null && !focused) {\n setInputState('')\n }\n\n if (value instanceof Date && !focused) {\n setInputState(\n capitalize(dayjs(value).locale(finalLocale).format(dateFormat)),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, focused, themeLocale])\n\n useEffect(() => {\n if (defaultValue instanceof Date && inputState && !focused) {\n setInputState(\n capitalize(\n dayjs(_value).locale(finalLocale).format(dateFormat),\n ),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [themeLocale])\n\n const handleValueChange = (date: Date | null) => {\n setValue(date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n if (closePickerOnChange) {\n openDropdown()\n }\n window.setTimeout(() => inputRef.current?.focus(), 0)\n }\n\n const handleClear = () => {\n setValue(null)\n setLastValidValue(null)\n setInputState('')\n if (openPickerOnClear) {\n openDropdown()\n }\n inputRef.current?.focus()\n }\n\n const parseDate = (date: string) =>\n dayjs(date, dateFormat, finalLocale).toDate()\n\n const setDateFromInput = () => {\n let date = typeof _value === 'string' ? parseDate(_value) : _value\n\n if (maxDate && dayjs(date).isAfter(maxDate)) {\n date = maxDate\n }\n\n if (minDate && dayjs(date).isBefore(minDate)) {\n date = minDate\n }\n\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date as Date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n setCalendarMonth(date as Date)\n } else {\n setValue(lastValidValue)\n }\n }\n\n const handleInputBlur = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onBlur === 'function') {\n onBlur(event)\n }\n setFocused(false)\n\n if (inputtable) {\n setDateFromInput()\n }\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter' && inputtable) {\n closeDropdown()\n setDateFromInput()\n }\n }\n\n const handleInputFocus = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onFocus === 'function') {\n onFocus(event)\n }\n setFocused(true)\n }\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n openDropdown()\n\n const date = parseDate(event.target.value)\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date)\n setInputState(event.target.value)\n setCalendarMonth(date)\n } else {\n setInputState(event.target.value)\n }\n }\n\n return (\n <BasePicker\n ref={useMergedRef(ref, inputRef)}\n inputtable={inputtable}\n dropdownOpened={dropdownOpened as boolean}\n setDropdownOpened={setDropdownOpened}\n size={size}\n style={style}\n className={className}\n name={name}\n inputLabel={inputState}\n clearable={\n type === 'date' ? false : clearable && !!_value && !disabled\n }\n clearButton={clearButton}\n disabled={disabled}\n type={type}\n inputPrefix={inputPrefix}\n inputSuffix={inputSuffix}\n onChange={handleChange}\n onBlur={handleInputBlur}\n onFocus={handleInputFocus}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n onDropdownClose={onDropdownClose}\n onDropdownOpen={onDropdownOpen}\n {...rest}\n >\n <Calendar\n locale={finalLocale}\n month={inputtable ? calendarMonth : undefined}\n defaultMonth={\n defaultMonth ||\n (_value instanceof Date ? _value : new Date())\n }\n value={\n _value instanceof Date\n ? _value\n : _value && dayjs(_value).toDate()\n }\n labelFormat={labelFormat}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n minDate={minDate}\n maxDate={maxDate}\n disableDate={disableDate}\n firstDayOfWeek={firstDayOfWeek}\n preventFocus={inputtable}\n dateViewCount={dateViewCount}\n enableHeaderLabel={enableHeaderLabel}\n defaultView={defaultView}\n hideOutOfMonthDates={hideOutOfMonthDates}\n hideWeekdays={hideWeekdays}\n renderDay={renderDay}\n weekendDays={weekendDays}\n yearLabelFormat={yearLabelFormat}\n onMonthChange={setCalendarMonth}\n onChange={handleValueChange}\n />\n </BasePicker>\n )\n}\n\nexport default DatePicker\n"],"names":["DEFAULT_INPUT_FORMAT","DatePicker","props","className","clearable","clearButton","closePickerOnChange","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultOpen","defaultValue","defaultView","disabled","disableDate","enableHeaderLabel","disableOutOfMonth","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","inputFormat","inputPrefix","inputSuffix","inputtable","labelFormat","locale","maxDate","minDate","name","onBlur","onChange","onFocus","onDropdownClose","onDropdownOpen","openPickerOnClear","renderDay","ref","size","style","type","value","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","finalLocale","dateFormat","dropdownOpened","setDropdownOpened","useState","inputRef","useRef","lastValidValue","setLastValidValue","_value","setValue","useControllableState","calendarMonth","setCalendarMonth","focused","setFocused","inputState","setInputState","capitalize","dayjs","closeDropdown","openDropdown","useEffect","handleValueChange","date","_a","handleClear","parseDate","setDateFromInput","handleInputBlur","event","handleKeyDown","handleInputFocus","handleChange","jsx","BasePicker","useMergedRef","Calendar"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAuB,cAyBvBC,KAAa,CAACC,MAA2B;AAC3C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,aAAAC;AAAA,IACA,qBAAAC,IAAsB;AAAA,IACtB,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,cAAAC;AA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MAAA;AAAA,IACd;AAAA,EAAA;AAGZ;"}
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/DatePicker.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport dayjs from 'dayjs'\nimport useControllableState from '../hooks/useControllableState'\nimport useMergedRef from '../hooks/useMergeRef'\nimport Calendar from './Calendar'\nimport BasePicker from './BasePicker'\nimport { useConfig } from '../ConfigProvider'\nimport capitalize from '../utils/capitalize'\nimport type { CommonProps } from '../@types/common'\nimport type { CalendarSharedProps } from './CalendarBase'\nimport type { BasePickerSharedProps } from './BasePicker'\nimport type { FocusEvent, KeyboardEvent, ChangeEvent, Ref } from 'react'\n\nconst DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'\n\nexport interface DatePickerProps\n extends CommonProps,\n Omit<\n CalendarSharedProps,\n | 'onMonthChange'\n | 'onChange'\n | 'isDateInRange'\n | 'isDateFirstInRange'\n | 'isDateLastInRange'\n | 'month'\n >,\n BasePickerSharedProps {\n closePickerOnChange?: boolean\n defaultOpen?: boolean\n defaultValue?: Date | null\n value?: Date | null\n inputFormat?: string\n inputtableBlurClose?: boolean\n openPickerOnClear?: boolean\n onChange?: (value: Date | null) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst DatePicker = (props: DatePickerProps) => {\n const {\n className,\n clearable = true,\n clearButton,\n closePickerOnChange = true,\n dateViewCount,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultOpen = false,\n defaultValue,\n defaultView,\n disabled = false,\n disableDate,\n enableHeaderLabel,\n disableOutOfMonth,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n inputFormat,\n inputPrefix,\n inputSuffix,\n inputtable,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n name = 'date',\n onBlur,\n onChange,\n onFocus,\n onDropdownClose,\n onDropdownOpen,\n openPickerOnClear = false,\n renderDay,\n ref = null,\n size,\n style,\n type,\n value,\n weekendDays,\n yearLabelFormat,\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n const finalLocale = locale || themeLocale\n\n const dateFormat =\n type === 'date'\n ? DEFAULT_INPUT_FORMAT\n : inputFormat || DEFAULT_INPUT_FORMAT\n\n const [dropdownOpened, setDropdownOpened] = useState(defaultOpen)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const [lastValidValue, setLastValidValue] = useState(defaultValue ?? null)\n\n const [_value, setValue] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange,\n })\n\n const [calendarMonth, setCalendarMonth] = useState(\n _value || defaultMonth || new Date(),\n )\n\n const [focused, setFocused] = useState(false)\n\n const [inputState, setInputState] = useState(\n _value instanceof Date\n ? capitalize(dayjs(_value).locale(finalLocale).format(dateFormat))\n : '',\n )\n\n const closeDropdown = () => {\n setDropdownOpened(false)\n onDropdownClose?.()\n }\n\n const openDropdown = () => {\n setDropdownOpened(true)\n onDropdownOpen?.()\n }\n\n useEffect(() => {\n if (!_value) {\n if (maxDate && dayjs(calendarMonth).isAfter(maxDate)) {\n setCalendarMonth(maxDate)\n }\n\n if (minDate && dayjs(calendarMonth).isBefore(minDate)) {\n setCalendarMonth(minDate)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minDate, maxDate])\n\n useEffect(() => {\n if (value === null && !focused) {\n setInputState('')\n }\n\n if (value instanceof Date && !focused) {\n setInputState(\n capitalize(dayjs(value).locale(finalLocale).format(dateFormat)),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, focused, themeLocale])\n\n useEffect(() => {\n if (defaultValue instanceof Date && inputState && !focused) {\n setInputState(\n capitalize(\n dayjs(_value).locale(finalLocale).format(dateFormat),\n ),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [themeLocale])\n\n const handleValueChange = (date: Date | null) => {\n setValue(date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n if (closePickerOnChange) {\n openDropdown()\n }\n window.setTimeout(() => inputRef.current?.focus(), 0)\n }\n\n const handleClear = () => {\n setValue(null)\n setLastValidValue(null)\n setInputState('')\n if (openPickerOnClear) {\n openDropdown()\n }\n inputRef.current?.focus()\n }\n\n const parseDate = (date: string) =>\n dayjs(date, dateFormat, finalLocale).toDate()\n\n const setDateFromInput = () => {\n let date = typeof _value === 'string' ? parseDate(_value) : _value\n\n if (maxDate && dayjs(date).isAfter(maxDate)) {\n date = maxDate\n }\n\n if (minDate && dayjs(date).isBefore(minDate)) {\n date = minDate\n }\n\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date as Date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n setCalendarMonth(date as Date)\n } else {\n setValue(lastValidValue)\n }\n }\n\n const handleInputBlur = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onBlur === 'function') {\n onBlur(event)\n }\n setFocused(false)\n\n if (inputtable) {\n setDateFromInput()\n }\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter' && inputtable) {\n closeDropdown()\n setDateFromInput()\n }\n }\n\n const handleInputFocus = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onFocus === 'function') {\n onFocus(event)\n }\n setFocused(true)\n }\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n openDropdown()\n\n const date = parseDate(event.target.value)\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date)\n setInputState(event.target.value)\n setCalendarMonth(date)\n } else {\n setInputState(event.target.value)\n }\n }\n\n return (\n <BasePicker\n ref={useMergedRef(ref, inputRef)}\n inputtable={inputtable}\n dropdownOpened={dropdownOpened as boolean}\n setDropdownOpened={setDropdownOpened}\n size={size}\n style={style}\n className={className}\n name={name}\n inputLabel={inputState}\n clearable={\n type === 'date' ? false : clearable && !!_value && !disabled\n }\n clearButton={clearButton}\n disabled={disabled}\n type={type}\n inputPrefix={inputPrefix}\n inputSuffix={inputSuffix}\n onChange={handleChange}\n onBlur={handleInputBlur}\n onFocus={handleInputFocus}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n onDropdownClose={onDropdownClose}\n onDropdownOpen={onDropdownOpen}\n {...rest}\n >\n <Calendar\n locale={finalLocale}\n month={inputtable ? calendarMonth : undefined}\n defaultMonth={\n defaultMonth ||\n (_value instanceof Date ? _value : new Date())\n }\n value={\n _value instanceof Date\n ? _value\n : _value && dayjs(_value).toDate()\n }\n labelFormat={labelFormat}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n minDate={minDate}\n maxDate={maxDate}\n disableDate={disableDate}\n firstDayOfWeek={firstDayOfWeek}\n preventFocus={inputtable}\n dateViewCount={dateViewCount}\n enableHeaderLabel={enableHeaderLabel}\n defaultView={defaultView}\n hideOutOfMonthDates={hideOutOfMonthDates}\n hideWeekdays={hideWeekdays}\n renderDay={renderDay}\n weekendDays={weekendDays}\n yearLabelFormat={yearLabelFormat}\n onMonthChange={setCalendarMonth}\n onChange={handleValueChange}\n />\n </BasePicker>\n )\n}\n\nexport default DatePicker\n"],"names":["DEFAULT_INPUT_FORMAT","DatePicker","props","className","clearable","clearButton","closePickerOnChange","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultOpen","defaultValue","defaultView","disabled","disableDate","enableHeaderLabel","disableOutOfMonth","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","inputFormat","inputPrefix","inputSuffix","inputtable","labelFormat","locale","maxDate","minDate","name","onBlur","onChange","onFocus","onDropdownClose","onDropdownOpen","openPickerOnClear","renderDay","ref","size","style","type","value","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","finalLocale","dateFormat","dropdownOpened","setDropdownOpened","useState","inputRef","useRef","lastValidValue","setLastValidValue","_value","setValue","useControllableState","calendarMonth","setCalendarMonth","focused","setFocused","inputState","setInputState","capitalize","dayjs","closeDropdown","openDropdown","useEffect","handleValueChange","date","handleClear","parseDate","setDateFromInput","handleInputBlur","event","handleKeyDown","handleInputFocus","handleChange","jsx","BasePicker","useMergedRef","Calendar"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAuB,cAyBvBC,KAAa,CAACC,MAA2B;AAC3C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,aAAAC;AAAA,IACA,qBAAAC,IAAsB;AAAA,IACtB,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,IACjB,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,aAAAC,KAAc;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,IAAA;AAAA,IAEV,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC,KAAO;AAAA,IACP,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,mBAAAC,KAAoB;AAAA,IACpB,WAAAC;AAAA,IACA,KAAAC,KAAM;AAAA,IACN,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACH1C,GAEE,EAAE,QAAQ2C,EAAA,IAAgBC,GAAA,GAC1BC,IAAcrB,MAAUmB,GAExBG,IACFR,MAAS,SACHxC,IACAqB,KAAerB,GAEnB,CAACiD,IAAgBC,CAAiB,IAAIC,EAAS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