@orbe-agro/client-core 5.3.85 → 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,42 +1,41 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e, Fragment as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g } from "react";
|
|
3
3
|
import { Dropdown as o } from "../../../../../components/ui/Dropdown/index.js";
|
|
4
4
|
import "../../../../../components/ui/Tooltip/index.js";
|
|
5
5
|
import "../../../../../components/ui/Badge/index.js";
|
|
6
|
-
import
|
|
7
|
-
import { useMailStore as
|
|
8
|
-
import
|
|
9
|
-
import { labelList as
|
|
10
|
-
import
|
|
11
|
-
import { TbArrowBackUp as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
const a =
|
|
16
|
-
|
|
17
|
-
m(t, l), (n = a.current) == null || n.handleDropdownClose();
|
|
6
|
+
import n from "./ActionButton.js";
|
|
7
|
+
import { useMailStore as f } from "../store/mailStore.js";
|
|
8
|
+
import h from "../hooks/useMailAction.js";
|
|
9
|
+
import { labelList as u } from "../constants.js";
|
|
10
|
+
import T from "../../../../../utils/classNames.js";
|
|
11
|
+
import { TbArrowBackUp as b, TbStarFilled as k, TbStar as x, TbFlag as C, TbFolderSymlink as M, TbDotsVertical as v } from "react-icons/tb";
|
|
12
|
+
import N from "../../../../../components/ui/Tooltip/Tooltip.js";
|
|
13
|
+
import y from "../../../../../components/ui/Badge/Badge.js";
|
|
14
|
+
const z = () => {
|
|
15
|
+
const a = g(null), { mail: t, toggleMessageDialog: i } = f(), { onFlagToggle: c, onMoveMailClick: s, onStarToggle: m } = h(), d = (l) => {
|
|
16
|
+
s(t, l), a.current?.handleDropdownClose();
|
|
18
17
|
};
|
|
19
18
|
return /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
|
|
19
|
+
/* @__PURE__ */ e(N, { title: "Reply", children: /* @__PURE__ */ e(n, { onClick: () => {
|
|
20
|
+
i({
|
|
22
21
|
mode: "reply",
|
|
23
22
|
open: !0
|
|
24
23
|
});
|
|
25
|
-
}, children: /* @__PURE__ */ e(
|
|
24
|
+
}, children: /* @__PURE__ */ e(b, {}) }) }),
|
|
26
25
|
/* @__PURE__ */ r(
|
|
27
26
|
o,
|
|
28
27
|
{
|
|
29
28
|
ref: a,
|
|
30
29
|
placement: "bottom-end",
|
|
31
|
-
renderTitle: /* @__PURE__ */ e(
|
|
30
|
+
renderTitle: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(v, {}) }),
|
|
32
31
|
children: [
|
|
33
32
|
/* @__PURE__ */ r(
|
|
34
33
|
o.Item,
|
|
35
34
|
{
|
|
36
35
|
eventKey: "star",
|
|
37
|
-
onClick: () =>
|
|
36
|
+
onClick: () => m(t),
|
|
38
37
|
children: [
|
|
39
|
-
/* @__PURE__ */ e("span", { className: "text-lg", children: t.starred ? /* @__PURE__ */ e(
|
|
38
|
+
/* @__PURE__ */ e("span", { className: "text-lg", children: t.starred ? /* @__PURE__ */ e(k, { className: "text-amber-500" }) : /* @__PURE__ */ e(x, {}) }),
|
|
40
39
|
/* @__PURE__ */ e("span", { children: "Star" })
|
|
41
40
|
]
|
|
42
41
|
}
|
|
@@ -45,12 +44,12 @@ const E = () => {
|
|
|
45
44
|
o.Item,
|
|
46
45
|
{
|
|
47
46
|
eventKey: "flag",
|
|
48
|
-
onClick: () =>
|
|
47
|
+
onClick: () => c(t),
|
|
49
48
|
children: [
|
|
50
49
|
/* @__PURE__ */ e(
|
|
51
|
-
|
|
50
|
+
C,
|
|
52
51
|
{
|
|
53
|
-
className:
|
|
52
|
+
className: T(
|
|
54
53
|
"text-lg",
|
|
55
54
|
t.flagged && "text-red-500"
|
|
56
55
|
)
|
|
@@ -63,17 +62,17 @@ const E = () => {
|
|
|
63
62
|
/* @__PURE__ */ e(
|
|
64
63
|
o.Menu,
|
|
65
64
|
{
|
|
66
|
-
renderTitle: /* @__PURE__ */ e(
|
|
67
|
-
/* @__PURE__ */ e(
|
|
65
|
+
renderTitle: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ r("span", { className: "flex items-center gap-2", children: [
|
|
66
|
+
/* @__PURE__ */ e(M, { className: "text-lg" }),
|
|
68
67
|
/* @__PURE__ */ e("span", { children: "Move to" })
|
|
69
68
|
] }) }),
|
|
70
69
|
placement: "left-start",
|
|
71
|
-
children:
|
|
70
|
+
children: u.map((l) => /* @__PURE__ */ r(
|
|
72
71
|
o.Item,
|
|
73
72
|
{
|
|
74
|
-
onClick: () =>
|
|
73
|
+
onClick: () => d(l.value),
|
|
75
74
|
children: [
|
|
76
|
-
/* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e(y, { className: l.dotClass }),
|
|
77
76
|
/* @__PURE__ */ e("span", { children: l.label })
|
|
78
77
|
]
|
|
79
78
|
},
|
|
@@ -87,6 +86,6 @@ const E = () => {
|
|
|
87
86
|
] });
|
|
88
87
|
};
|
|
89
88
|
export {
|
|
90
|
-
|
|
89
|
+
z as default
|
|
91
90
|
};
|
|
92
91
|
//# sourceMappingURL=MailDetailAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MailDetailAction.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailDetailAction.tsx"],"sourcesContent":["import { useRef } from 'react'\nimport Dropdown from '@/components/ui/Dropdown'\nimport Tooltip from '@/components/ui/Tooltip'\nimport Badge from '@/components/ui/Badge'\nimport ActionButton from './ActionButton'\nimport { useMailStore } from '../store/mailStore'\nimport useMailAction from '../hooks/useMailAction'\nimport { labelList } from '../constants'\nimport classNames from '@/utils/classNames'\nimport {\n TbDotsVertical,\n TbArrowBackUp,\n TbStarFilled,\n TbFlag,\n TbFolderSymlink,\n TbStar,\n} from 'react-icons/tb'\nimport type { Mail } from '../types'\nimport type { DropdownRef } from '@/components/ui/Dropdown'\n\ntype MailDetailAction = {\n onMailReplyClick: () => void\n}\n\nconst MailDetailAction = () => {\n const dropdownRef = useRef<DropdownRef>(null)\n\n const { mail, toggleMessageDialog } = useMailStore()\n\n const { onFlagToggle, onMoveMailClick, onStarToggle } = useMailAction()\n\n const handleMoveMailClick = (destination: string) => {\n onMoveMailClick(mail as Mail, destination)\n dropdownRef.current?.handleDropdownClose()\n }\n\n const handleReplyClick = () => {\n toggleMessageDialog({\n mode: 'reply',\n open: true,\n })\n }\n\n return (\n <div className=\"flex items-center gap-2\">\n <Tooltip title=\"Reply\">\n <ActionButton onClick={handleReplyClick}>\n <TbArrowBackUp />\n </ActionButton>\n </Tooltip>\n <Dropdown\n ref={dropdownRef}\n placement=\"bottom-end\"\n renderTitle={\n <ActionButton>\n <TbDotsVertical />\n </ActionButton>\n }\n >\n <Dropdown.Item\n eventKey=\"star\"\n onClick={() => onStarToggle(mail as Mail)}\n >\n <span className=\"text-lg\">\n {mail.starred ? (\n <TbStarFilled className=\"text-amber-500\" />\n ) : (\n <TbStar />\n )}\n </span>\n <span>Star</span>\n </Dropdown.Item>\n <Dropdown.Item\n eventKey=\"flag\"\n onClick={() => onFlagToggle(mail as Mail)}\n >\n <TbFlag\n className={classNames(\n 'text-lg',\n mail.flagged && 'text-red-500',\n )}\n />\n <span>Flag</span>\n </Dropdown.Item>\n <Dropdown.Menu\n renderTitle={\n <>\n <span className=\"flex items-center gap-2\">\n <TbFolderSymlink className=\"text-lg\" />\n <span>Move to</span>\n </span>\n </>\n }\n placement=\"left-start\"\n >\n {labelList.map((item) => (\n <Dropdown.Item\n key={item.value}\n onClick={() => handleMoveMailClick(item.value)}\n >\n <Badge className={item.dotClass} />\n <span>{item.label}</span>\n </Dropdown.Item>\n ))}\n </Dropdown.Menu>\n </Dropdown>\n </div>\n )\n}\n\nexport default MailDetailAction\n"],"names":["MailDetailAction","dropdownRef","useRef","mail","toggleMessageDialog","useMailStore","onFlagToggle","onMoveMailClick","onStarToggle","useMailAction","handleMoveMailClick","destination","
|
|
1
|
+
{"version":3,"file":"MailDetailAction.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailDetailAction.tsx"],"sourcesContent":["import { useRef } from 'react'\nimport Dropdown from '@/components/ui/Dropdown'\nimport Tooltip from '@/components/ui/Tooltip'\nimport Badge from '@/components/ui/Badge'\nimport ActionButton from './ActionButton'\nimport { useMailStore } from '../store/mailStore'\nimport useMailAction from '../hooks/useMailAction'\nimport { labelList } from '../constants'\nimport classNames from '@/utils/classNames'\nimport {\n TbDotsVertical,\n TbArrowBackUp,\n TbStarFilled,\n TbFlag,\n TbFolderSymlink,\n TbStar,\n} from 'react-icons/tb'\nimport type { Mail } from '../types'\nimport type { DropdownRef } from '@/components/ui/Dropdown'\n\ntype MailDetailAction = {\n onMailReplyClick: () => void\n}\n\nconst MailDetailAction = () => {\n const dropdownRef = useRef<DropdownRef>(null)\n\n const { mail, toggleMessageDialog } = useMailStore()\n\n const { onFlagToggle, onMoveMailClick, onStarToggle } = useMailAction()\n\n const handleMoveMailClick = (destination: string) => {\n onMoveMailClick(mail as Mail, destination)\n dropdownRef.current?.handleDropdownClose()\n }\n\n const handleReplyClick = () => {\n toggleMessageDialog({\n mode: 'reply',\n open: true,\n })\n }\n\n return (\n <div className=\"flex items-center gap-2\">\n <Tooltip title=\"Reply\">\n <ActionButton onClick={handleReplyClick}>\n <TbArrowBackUp />\n </ActionButton>\n </Tooltip>\n <Dropdown\n ref={dropdownRef}\n placement=\"bottom-end\"\n renderTitle={\n <ActionButton>\n <TbDotsVertical />\n </ActionButton>\n }\n >\n <Dropdown.Item\n eventKey=\"star\"\n onClick={() => onStarToggle(mail as Mail)}\n >\n <span className=\"text-lg\">\n {mail.starred ? (\n <TbStarFilled className=\"text-amber-500\" />\n ) : (\n <TbStar />\n )}\n </span>\n <span>Star</span>\n </Dropdown.Item>\n <Dropdown.Item\n eventKey=\"flag\"\n onClick={() => onFlagToggle(mail as Mail)}\n >\n <TbFlag\n className={classNames(\n 'text-lg',\n mail.flagged && 'text-red-500',\n )}\n />\n <span>Flag</span>\n </Dropdown.Item>\n <Dropdown.Menu\n renderTitle={\n <>\n <span className=\"flex items-center gap-2\">\n <TbFolderSymlink className=\"text-lg\" />\n <span>Move to</span>\n </span>\n </>\n }\n placement=\"left-start\"\n >\n {labelList.map((item) => (\n <Dropdown.Item\n key={item.value}\n onClick={() => handleMoveMailClick(item.value)}\n >\n <Badge className={item.dotClass} />\n <span>{item.label}</span>\n </Dropdown.Item>\n ))}\n </Dropdown.Menu>\n </Dropdown>\n </div>\n )\n}\n\nexport default MailDetailAction\n"],"names":["MailDetailAction","dropdownRef","useRef","mail","toggleMessageDialog","useMailStore","onFlagToggle","onMoveMailClick","onStarToggle","useMailAction","handleMoveMailClick","destination","jsxs","jsx","Tooltip","ActionButton","TbArrowBackUp","Dropdown","TbDotsVertical","TbStarFilled","TbStar","TbFlag","classNames","Fragment","TbFolderSymlink","labelList","item","Badge"],"mappings":";;;;;;;;;;;;;AAwBA,MAAMA,IAAmB,MAAM;AAC3B,QAAMC,IAAcC,EAAoB,IAAI,GAEtC,EAAE,MAAAC,GAAM,qBAAAC,EAAA,IAAwBC,EAAA,GAEhC,EAAE,cAAAC,GAAc,iBAAAC,GAAiB,cAAAC,EAAA,IAAiBC,EAAA,GAElDC,IAAsB,CAACC,MAAwB;AACjD,IAAAJ,EAAgBJ,GAAcQ,CAAW,GACzCV,EAAY,SAAS,oBAAA;AAAA,EACzB;AASA,SACI,gBAAAW,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAQ,OAAM,SACX,UAAA,gBAAAD,EAACE,GAAA,EAAa,SAVD,MAAM;AAC3B,MAAAX,EAAoB;AAAA,QAChB,MAAM;AAAA,QACN,MAAM;AAAA,MAAA,CACT;AAAA,IACL,GAMgB,UAAA,gBAAAS,EAACG,GAAA,CAAA,CAAc,EAAA,CACnB,GACJ;AAAA,IACA,gBAAAJ;AAAA,MAACK;AAAA,MAAA;AAAA,QACG,KAAKhB;AAAA,QACL,WAAU;AAAA,QACV,aACI,gBAAAY,EAACE,GAAA,EACG,UAAA,gBAAAF,EAACK,KAAe,GACpB;AAAA,QAGJ,UAAA;AAAA,UAAA,gBAAAN;AAAA,YAACK,EAAS;AAAA,YAAT;AAAA,cACG,UAAS;AAAA,cACT,SAAS,MAAMT,EAAaL,CAAY;AAAA,cAExC,UAAA;AAAA,gBAAA,gBAAAU,EAAC,QAAA,EAAK,WAAU,WACX,UAAAV,EAAK,UACF,gBAAAU,EAACM,GAAA,EAAa,WAAU,iBAAA,CAAiB,IAEzC,gBAAAN,EAACO,GAAA,CAAA,CAAO,GAEhB;AAAA,gBACA,gBAAAP,EAAC,UAAK,UAAA,OAAA,CAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,UAEd,gBAAAD;AAAA,YAACK,EAAS;AAAA,YAAT;AAAA,cACG,UAAS;AAAA,cACT,SAAS,MAAMX,EAAaH,CAAY;AAAA,cAExC,UAAA;AAAA,gBAAA,gBAAAU;AAAA,kBAACQ;AAAA,kBAAA;AAAA,oBACG,WAAWC;AAAA,sBACP;AAAA,sBACAnB,EAAK,WAAW;AAAA,oBAAA;AAAA,kBACpB;AAAA,gBAAA;AAAA,gBAEJ,gBAAAU,EAAC,UAAK,UAAA,OAAA,CAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,UAEd,gBAAAA;AAAA,YAACI,EAAS;AAAA,YAAT;AAAA,cACG,aACI,gBAAAJ,EAAAU,GAAA,EACI,UAAA,gBAAAX,EAAC,QAAA,EAAK,WAAU,2BACZ,UAAA;AAAA,gBAAA,gBAAAC,EAACW,GAAA,EAAgB,WAAU,UAAA,CAAU;AAAA,gBACrC,gBAAAX,EAAC,UAAK,UAAA,UAAA,CAAO;AAAA,cAAA,EAAA,CACjB,EAAA,CACJ;AAAA,cAEJ,WAAU;AAAA,cAET,UAAAY,EAAU,IAAI,CAACC,MACZ,gBAAAd;AAAA,gBAACK,EAAS;AAAA,gBAAT;AAAA,kBAEG,SAAS,MAAMP,EAAoBgB,EAAK,KAAK;AAAA,kBAE7C,UAAA;AAAA,oBAAA,gBAAAb,EAACc,GAAA,EAAM,WAAWD,EAAK,SAAA,CAAU;AAAA,oBACjC,gBAAAb,EAAC,QAAA,EAAM,UAAAa,EAAK,MAAA,CAAM;AAAA,kBAAA;AAAA,gBAAA;AAAA,gBAJbA,EAAK;AAAA,cAAA,CAMjB;AAAA,YAAA;AAAA,UAAA;AAAA,QACL;AAAA,MAAA;AAAA,IAAA;AAAA,EACJ,GACJ;AAER;"}
|
|
@@ -1,85 +1,81 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Avatar as
|
|
2
|
+
import o from "../../../../../components/shared/IconText.js";
|
|
3
|
+
import { Avatar as s } from "../../../../../components/ui/Avatar/index.js";
|
|
4
4
|
import "../../../../../components/ui/ScrollBar/index.js";
|
|
5
5
|
import "../../../../../components/view/FileIcon/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { HiOutlineClock as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const { mail: i = {}, ref: o } = c;
|
|
6
|
+
import m from "../../../../../utils/classNames.js";
|
|
7
|
+
import p from "../../../../../utils/isLastChild.js";
|
|
8
|
+
import h from "html-react-parser";
|
|
9
|
+
import { HiOutlineClock as f } from "react-icons/hi";
|
|
10
|
+
import v from "../../../../../components/ui/ScrollBar/ScrollBar.js";
|
|
11
|
+
import x from "../../../../../components/view/FileIcon/FileIcon.js";
|
|
12
|
+
const T = (t) => {
|
|
13
|
+
const { mail: i = {}, ref: d } = t;
|
|
15
14
|
return /* @__PURE__ */ e("div", { className: "absolute top-0 left-0 h-full w-full ", children: /* @__PURE__ */ e(
|
|
16
|
-
|
|
15
|
+
v,
|
|
17
16
|
{
|
|
18
|
-
ref:
|
|
17
|
+
ref: d,
|
|
19
18
|
autoHide: !0,
|
|
20
19
|
className: "overflow-y-auto h-[calc(100%-100px)]",
|
|
21
|
-
children: /* @__PURE__ */ e("div", { className: "h-full px-6", children:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-2", children: [
|
|
35
|
-
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
h,
|
|
38
|
-
{
|
|
39
|
-
shape: "circle",
|
|
40
|
-
src: r.avatar
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ l("div", { children: [
|
|
44
|
-
/* @__PURE__ */ e("div", { className: "font-bold truncate heading-text", children: r.name }),
|
|
45
|
-
/* @__PURE__ */ l("div", { children: [
|
|
46
|
-
"To:",
|
|
47
|
-
" ",
|
|
48
|
-
(d = i.mail) == null ? void 0 : d.map((a, m) => /* @__PURE__ */ e("span", { children: a }, a + m))
|
|
49
|
-
] })
|
|
50
|
-
] })
|
|
51
|
-
] }),
|
|
20
|
+
children: /* @__PURE__ */ e("div", { className: "h-full px-6", children: i.message?.map((r, n) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ l(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: m(
|
|
24
|
+
"py-8 ltr:pr-4 rtl:pl-4",
|
|
25
|
+
!p(
|
|
26
|
+
i.message,
|
|
27
|
+
n
|
|
28
|
+
) && "border-b border-gray-200 dark:border-gray-700"
|
|
29
|
+
),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-2", children: [
|
|
32
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
52
33
|
/* @__PURE__ */ e(
|
|
53
|
-
|
|
34
|
+
s,
|
|
54
35
|
{
|
|
55
|
-
|
|
56
|
-
|
|
36
|
+
shape: "circle",
|
|
37
|
+
src: r.avatar
|
|
57
38
|
}
|
|
58
|
-
)
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ l("div", { children: [
|
|
41
|
+
/* @__PURE__ */ e("div", { className: "font-bold truncate heading-text", children: r.name }),
|
|
42
|
+
/* @__PURE__ */ l("div", { children: [
|
|
43
|
+
"To:",
|
|
44
|
+
" ",
|
|
45
|
+
i.mail?.map((a, c) => /* @__PURE__ */ e("span", { children: a }, a + c))
|
|
46
|
+
] })
|
|
47
|
+
] })
|
|
59
48
|
] }),
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
|
|
62
|
-
"div",
|
|
49
|
+
/* @__PURE__ */ e(
|
|
50
|
+
o,
|
|
63
51
|
{
|
|
64
|
-
|
|
65
|
-
children:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
52
|
+
icon: /* @__PURE__ */ e(f, { className: "text-lg" }),
|
|
53
|
+
children: /* @__PURE__ */ e("span", { className: "font-semibold", children: r.date })
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ e("div", { className: "mt-8", children: h(r.content) }),
|
|
58
|
+
r.attachment?.length > 0 && /* @__PURE__ */ e("div", { className: "mt-6 inline-flex flex-wrap gap-4", children: r.attachment.map((a) => /* @__PURE__ */ l(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: "min-w-full md:min-w-[230px] rounded-2xl dark:bg-gray-800 border border-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-700 py-4 px-3.5 inline-flex items-center gap-2 transition-all cursor-pointer",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ e(x, { type: a.type }),
|
|
64
|
+
/* @__PURE__ */ l("div", { children: [
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100", children: a.file }),
|
|
66
|
+
/* @__PURE__ */ e("span", { className: "", children: a.size })
|
|
67
|
+
] })
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
a.file
|
|
71
|
+
)) })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
) }, r.id)) })
|
|
79
75
|
}
|
|
80
76
|
) });
|
|
81
77
|
};
|
|
82
78
|
export {
|
|
83
|
-
|
|
79
|
+
T as default
|
|
84
80
|
};
|
|
85
81
|
//# sourceMappingURL=MailDetailContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MailDetailContent.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailDetailContent.tsx"],"sourcesContent":["import IconText from '@/components/shared/IconText'\nimport Avatar from '@/components/ui/Avatar'\nimport ScrollBar from '@/components/ui/ScrollBar'\nimport FileIcon from '@/components/view/FileIcon'\nimport classNames from '@/utils/classNames'\nimport isLastChild from '@/utils/isLastChild'\nimport ReactHtmlParser from 'html-react-parser'\nimport { HiOutlineClock } from 'react-icons/hi'\nimport type { Mail, Message } from '../types'\nimport type { ScrollBarRef } from '@/components/ui/ScrollBar'\nimport type { PropsWithChildren, Ref } from 'react'\n\ntype MailDetailContentProps = PropsWithChildren<{\n mail?: Partial<Mail>\n ref?: Ref<ScrollBarRef>\n}>\n\nconst MailDetailContent = (props: MailDetailContentProps) => {\n const { mail = {}, ref } = props\n\n return (\n <div className=\"absolute top-0 left-0 h-full w-full \">\n <ScrollBar\n ref={ref}\n autoHide\n className=\"overflow-y-auto h-[calc(100%-100px)]\"\n >\n <div className=\"h-full px-6\">\n {mail.message?.map((msg, index) => (\n <div key={msg.id}>\n <div\n className={classNames(\n 'py-8 ltr:pr-4 rtl:pl-4',\n !isLastChild(\n mail.message as Message[],\n index,\n ) &&\n 'border-b border-gray-200 dark:border-gray-700',\n )}\n >\n <div className=\"flex items-center justify-between gap-2\">\n <div className=\"flex items-center gap-2\">\n <Avatar\n shape=\"circle\"\n src={msg.avatar}\n />\n <div>\n <div className=\"font-bold truncate heading-text\">\n {msg.name}\n </div>\n <div>\n To:{' '}\n {mail.mail?.map((to, index) => (\n <span key={to + index}>\n {to}\n </span>\n ))}\n </div>\n </div>\n </div>\n <IconText\n icon={\n <HiOutlineClock className=\"text-lg\" />\n }\n >\n <span className=\"font-semibold\">\n {msg.date}\n </span>\n </IconText>\n </div>\n <div className=\"mt-8\">\n {ReactHtmlParser(msg.content)}\n </div>\n {msg.attachment?.length > 0 && (\n <div className=\"mt-6 inline-flex flex-wrap gap-4\">\n {msg.attachment.map((item) => (\n <div\n key={item.file}\n className=\"min-w-full md:min-w-[230px] rounded-2xl dark:bg-gray-800 border border-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-700 py-4 px-3.5 inline-flex items-center gap-2 transition-all cursor-pointer\"\n >\n <FileIcon type={item.type} />\n <div>\n <div className=\"font-semibold text-gray-900 dark:text-gray-100\">\n {item.file}\n </div>\n <span className=\"\">\n {item.size}\n </span>\n </div>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n </ScrollBar>\n </div>\n )\n}\n\nexport default MailDetailContent\n"],"names":["MailDetailContent","props","mail","ref","jsx","ScrollBar","
|
|
1
|
+
{"version":3,"file":"MailDetailContent.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailDetailContent.tsx"],"sourcesContent":["import IconText from '@/components/shared/IconText'\nimport Avatar from '@/components/ui/Avatar'\nimport ScrollBar from '@/components/ui/ScrollBar'\nimport FileIcon from '@/components/view/FileIcon'\nimport classNames from '@/utils/classNames'\nimport isLastChild from '@/utils/isLastChild'\nimport ReactHtmlParser from 'html-react-parser'\nimport { HiOutlineClock } from 'react-icons/hi'\nimport type { Mail, Message } from '../types'\nimport type { ScrollBarRef } from '@/components/ui/ScrollBar'\nimport type { PropsWithChildren, Ref } from 'react'\n\ntype MailDetailContentProps = PropsWithChildren<{\n mail?: Partial<Mail>\n ref?: Ref<ScrollBarRef>\n}>\n\nconst MailDetailContent = (props: MailDetailContentProps) => {\n const { mail = {}, ref } = props\n\n return (\n <div className=\"absolute top-0 left-0 h-full w-full \">\n <ScrollBar\n ref={ref}\n autoHide\n className=\"overflow-y-auto h-[calc(100%-100px)]\"\n >\n <div className=\"h-full px-6\">\n {mail.message?.map((msg, index) => (\n <div key={msg.id}>\n <div\n className={classNames(\n 'py-8 ltr:pr-4 rtl:pl-4',\n !isLastChild(\n mail.message as Message[],\n index,\n ) &&\n 'border-b border-gray-200 dark:border-gray-700',\n )}\n >\n <div className=\"flex items-center justify-between gap-2\">\n <div className=\"flex items-center gap-2\">\n <Avatar\n shape=\"circle\"\n src={msg.avatar}\n />\n <div>\n <div className=\"font-bold truncate heading-text\">\n {msg.name}\n </div>\n <div>\n To:{' '}\n {mail.mail?.map((to, index) => (\n <span key={to + index}>\n {to}\n </span>\n ))}\n </div>\n </div>\n </div>\n <IconText\n icon={\n <HiOutlineClock className=\"text-lg\" />\n }\n >\n <span className=\"font-semibold\">\n {msg.date}\n </span>\n </IconText>\n </div>\n <div className=\"mt-8\">\n {ReactHtmlParser(msg.content)}\n </div>\n {msg.attachment?.length > 0 && (\n <div className=\"mt-6 inline-flex flex-wrap gap-4\">\n {msg.attachment.map((item) => (\n <div\n key={item.file}\n className=\"min-w-full md:min-w-[230px] rounded-2xl dark:bg-gray-800 border border-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-700 py-4 px-3.5 inline-flex items-center gap-2 transition-all cursor-pointer\"\n >\n <FileIcon type={item.type} />\n <div>\n <div className=\"font-semibold text-gray-900 dark:text-gray-100\">\n {item.file}\n </div>\n <span className=\"\">\n {item.size}\n </span>\n </div>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n </ScrollBar>\n </div>\n )\n}\n\nexport default MailDetailContent\n"],"names":["MailDetailContent","props","mail","ref","jsx","ScrollBar","msg","index","jsxs","classNames","isLastChild","Avatar","to","IconText","HiOutlineClock","ReactHtmlParser","item","FileIcon"],"mappings":";;;;;;;;;;;AAiBA,MAAMA,IAAoB,CAACC,MAAkC;AACzD,QAAM,EAAE,MAAAC,IAAO,IAAI,KAAAC,MAAQF;AAE3B,SACI,gBAAAG,EAAC,OAAA,EAAI,WAAU,wCACX,UAAA,gBAAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,KAAAF;AAAA,MACA,UAAQ;AAAA,MACR,WAAU;AAAA,MAEV,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,eACV,UAAAF,EAAK,SAAS,IAAI,CAACI,GAAKC,MACrB,gBAAAH,EAAC,OAAA,EACG,UAAA,gBAAAI;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAWC;AAAA,YACP;AAAA,YACA,CAACC;AAAA,cACGR,EAAK;AAAA,cACLK;AAAA,YAAA,KAEA;AAAA,UAAA;AAAA,UAGR,UAAA;AAAA,YAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,2CACX,UAAA;AAAA,cAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,gBAAA,gBAAAJ;AAAA,kBAACO;AAAA,kBAAA;AAAA,oBACG,OAAM;AAAA,oBACN,KAAKL,EAAI;AAAA,kBAAA;AAAA,gBAAA;AAAA,kCAEZ,OAAA,EACG,UAAA;AAAA,kBAAA,gBAAAF,EAAC,OAAA,EAAI,WAAU,mCACV,UAAAE,EAAI,MACT;AAAA,oCACC,OAAA,EAAI,UAAA;AAAA,oBAAA;AAAA,oBACG;AAAA,oBACHJ,EAAK,MAAM,IAAI,CAACU,GAAIL,MACjB,gBAAAH,EAAC,QAAA,EACI,UAAAQ,KADMA,IAAKL,CAEhB,CACH;AAAA,kBAAA,EAAA,CACL;AAAA,gBAAA,EAAA,CACJ;AAAA,cAAA,GACJ;AAAA,cACA,gBAAAH;AAAA,gBAACS;AAAA,gBAAA;AAAA,kBACG,MACI,gBAAAT,EAACU,GAAA,EAAe,WAAU,UAAA,CAAU;AAAA,kBAGxC,UAAA,gBAAAV,EAAC,QAAA,EAAK,WAAU,iBACX,YAAI,KAAA,CACT;AAAA,gBAAA;AAAA,cAAA;AAAA,YACJ,GACJ;AAAA,8BACC,OAAA,EAAI,WAAU,QACV,UAAAW,EAAgBT,EAAI,OAAO,GAChC;AAAA,YACCA,EAAI,YAAY,SAAS,KACtB,gBAAAF,EAAC,OAAA,EAAI,WAAU,oCACV,UAAAE,EAAI,WAAW,IAAI,CAACU,MACjB,gBAAAR;AAAA,cAAC;AAAA,cAAA;AAAA,gBAEG,WAAU;AAAA,gBAEV,UAAA;AAAA,kBAAA,gBAAAJ,EAACa,GAAA,EAAS,MAAMD,EAAK,KAAA,CAAM;AAAA,oCAC1B,OAAA,EACG,UAAA;AAAA,oBAAA,gBAAAZ,EAAC,OAAA,EAAI,WAAU,kDACV,UAAAY,EAAK,MACV;AAAA,oBACA,gBAAAZ,EAAC,QAAA,EAAK,WAAU,IACX,YAAK,KAAA,CACV;AAAA,kBAAA,EAAA,CACJ;AAAA,gBAAA;AAAA,cAAA;AAAA,cAXKY,EAAK;AAAA,YAAA,CAajB,EAAA,CACL;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA,KA9DFV,EAAI,EAiEd,CACH,EAAA,CACL;AAAA,IAAA;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useMailStore as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import l from "./ActionButton.js";
|
|
3
|
+
import { useMailStore as s } from "../store/mailStore.js";
|
|
4
4
|
import { TbArrowLeft as c } from "react-icons/tb";
|
|
5
5
|
import { useSearchParams as m } from "react-router-dom";
|
|
6
6
|
const k = () => {
|
|
7
|
-
const { mail:
|
|
7
|
+
const { mail: a, setMail: r } = s(), [t, i] = m();
|
|
8
8
|
return /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
}, children: /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
9
|
+
/* @__PURE__ */ e(l, { onClick: () => {
|
|
10
|
+
t.has("mail") && (t.delete("mail"), i(t)), r({});
|
|
11
|
+
}, children: /* @__PURE__ */ e(c, {}) }),
|
|
12
|
+
/* @__PURE__ */ e("h4", { children: a?.title })
|
|
13
13
|
] });
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MailDetailTitle.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.tsx"],"sourcesContent":["import ActionButton from './ActionButton'\nimport { useMailStore } from '../store/mailStore'\nimport { TbArrowLeft } from 'react-icons/tb'\nimport { useSearchParams } from 'react-router-dom'\n\nconst MailDetailTitle = () => {\n const { mail, setMail } = useMailStore()\n\n const [searchParams, setSearchParams] = useSearchParams()\n\n const handleBackButtonClick = () => {\n if (searchParams.has('mail')) {\n searchParams.delete('mail')\n setSearchParams(searchParams)\n }\n setMail({})\n }\n\n return (\n <div className=\"flex items-center gap-2\">\n <ActionButton onClick={handleBackButtonClick}>\n <TbArrowLeft />\n </ActionButton>\n <h4>{mail?.title}</h4>\n </div>\n )\n}\n\nexport default MailDetailTitle\n"],"names":["MailDetailTitle","mail","setMail","useMailStore","searchParams","setSearchParams","useSearchParams","jsxs","jsx","ActionButton","TbArrowLeft"],"mappings":";;;;;AAKA,MAAMA,IAAkB,MAAM;AAC1B,QAAM,EAAE,MAAAC,GAAM,SAAAC,EAAA,IAAYC,EAAA,GAEpB,CAACC,GAAcC,CAAe,IAAIC,EAAA;AAUxC,SACI,gBAAAC,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAa,SAVQ,MAAM;AAChC,MAAIL,EAAa,IAAI,MAAM,MACvBA,EAAa,OAAO,MAAM,GAC1BC,EAAgBD,CAAY,IAEhCF,EAAQ,CAAA,CAAE;AAAA,IACd,GAKY,UAAA,gBAAAM,EAACE,KAAY,GACjB;AAAA,IACA,gBAAAF,EAAC,MAAA,EAAI,UAAAP,
|
|
1
|
+
{"version":3,"file":"MailDetailTitle.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.tsx"],"sourcesContent":["import ActionButton from './ActionButton'\nimport { useMailStore } from '../store/mailStore'\nimport { TbArrowLeft } from 'react-icons/tb'\nimport { useSearchParams } from 'react-router-dom'\n\nconst MailDetailTitle = () => {\n const { mail, setMail } = useMailStore()\n\n const [searchParams, setSearchParams] = useSearchParams()\n\n const handleBackButtonClick = () => {\n if (searchParams.has('mail')) {\n searchParams.delete('mail')\n setSearchParams(searchParams)\n }\n setMail({})\n }\n\n return (\n <div className=\"flex items-center gap-2\">\n <ActionButton onClick={handleBackButtonClick}>\n <TbArrowLeft />\n </ActionButton>\n <h4>{mail?.title}</h4>\n </div>\n )\n}\n\nexport default MailDetailTitle\n"],"names":["MailDetailTitle","mail","setMail","useMailStore","searchParams","setSearchParams","useSearchParams","jsxs","jsx","ActionButton","TbArrowLeft"],"mappings":";;;;;AAKA,MAAMA,IAAkB,MAAM;AAC1B,QAAM,EAAE,MAAAC,GAAM,SAAAC,EAAA,IAAYC,EAAA,GAEpB,CAACC,GAAcC,CAAe,IAAIC,EAAA;AAUxC,SACI,gBAAAC,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAa,SAVQ,MAAM;AAChC,MAAIL,EAAa,IAAI,MAAM,MACvBA,EAAa,OAAO,MAAM,GAC1BC,EAAgBD,CAAY,IAEhCF,EAAQ,CAAA,CAAE;AAAA,IACd,GAKY,UAAA,gBAAAM,EAACE,KAAY,GACjB;AAAA,IACA,gBAAAF,EAAC,MAAA,EAAI,UAAAP,GAAM,MAAA,CAAM;AAAA,EAAA,GACrB;AAER;"}
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as C, useEffect as M } from "react";
|
|
3
3
|
import "../../../../../components/ui/Button/index.js";
|
|
4
4
|
import "../../../../../components/ui/Dialog/index.js";
|
|
5
5
|
import "../../../../../components/ui/Input/index.js";
|
|
6
6
|
import "../../../../../components/ui/Notification/index.js";
|
|
7
7
|
import "../../../../../components/ui/toast/index.js";
|
|
8
8
|
import "../../../../../components/shared/RichTextEditor/index.js";
|
|
9
|
-
import { useMailStore as
|
|
9
|
+
import { useMailStore as y } from "../store/mailStore.js";
|
|
10
10
|
import "../../../../../components/ui/Form/index.js";
|
|
11
|
-
import
|
|
12
|
-
import { useForm as
|
|
13
|
-
import { zodResolver as
|
|
11
|
+
import x from "../../../../../utils/sleep.js";
|
|
12
|
+
import { useForm as B, Controller as s } from "react-hook-form";
|
|
13
|
+
import { zodResolver as D } from "@hookform/resolvers/zod";
|
|
14
14
|
import { z as l } from "zod";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { Form as
|
|
15
|
+
import N from "../../../../../components/ui/toast/toast.js";
|
|
16
|
+
import R from "../../../../../components/ui/Notification/Notification.js";
|
|
17
|
+
import j from "../../../../../components/ui/Dialog/Dialog.js";
|
|
18
|
+
import { Form as F } from "../../../../../components/ui/Form/Form.js";
|
|
19
19
|
import a from "../../../../../components/ui/Form/FormItem.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
const
|
|
20
|
+
import f from "../../../../../components/ui/Input/Input.js";
|
|
21
|
+
import w from "../../../../../components/shared/RichTextEditor/RichTextEditor.js";
|
|
22
|
+
import g from "../../../../../components/ui/Button/Button.js";
|
|
23
|
+
const E = l.object({
|
|
24
24
|
to: l.string().min(1, { message: "Please enter recipient" }),
|
|
25
25
|
title: l.string(),
|
|
26
26
|
content: l.string().min(1, { message: "Please enter message" })
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
handleSubmit: C,
|
|
27
|
+
}), ee = () => {
|
|
28
|
+
const { mail: c, messageDialog: r, toggleMessageDialog: u } = y(), [h, p] = C(!1), {
|
|
29
|
+
handleSubmit: b,
|
|
31
30
|
reset: d,
|
|
32
31
|
formState: { errors: t },
|
|
33
32
|
control: m
|
|
34
|
-
} =
|
|
35
|
-
resolver:
|
|
33
|
+
} = B({
|
|
34
|
+
resolver: D(E)
|
|
36
35
|
});
|
|
37
|
-
|
|
36
|
+
M(() => {
|
|
38
37
|
r.mode === "reply" && d({
|
|
39
38
|
to: c.from,
|
|
40
39
|
title: `Re:${c.title}`
|
|
41
40
|
});
|
|
42
41
|
}, [r.mode]);
|
|
43
42
|
const i = () => {
|
|
44
|
-
|
|
43
|
+
u({
|
|
45
44
|
mode: "",
|
|
46
45
|
open: !1
|
|
47
46
|
}), d({
|
|
@@ -49,13 +48,13 @@ const I = l.object({
|
|
|
49
48
|
title: "",
|
|
50
49
|
content: ""
|
|
51
50
|
});
|
|
52
|
-
},
|
|
53
|
-
console.log("values", o), p(!0), await
|
|
51
|
+
}, v = async (o) => {
|
|
52
|
+
console.log("values", o), p(!0), await x(500), N.push(/* @__PURE__ */ e(R, { type: "success", children: "Mail send!" }), {
|
|
54
53
|
placement: "top-center"
|
|
55
54
|
}), p(!1), i();
|
|
56
55
|
};
|
|
57
56
|
return /* @__PURE__ */ n(
|
|
58
|
-
|
|
57
|
+
j,
|
|
59
58
|
{
|
|
60
59
|
isOpen: r.open,
|
|
61
60
|
onClose: i,
|
|
@@ -65,20 +64,20 @@ const I = l.object({
|
|
|
65
64
|
r.mode === "new" && "New Message",
|
|
66
65
|
r.mode === "reply" && "Reply"
|
|
67
66
|
] }),
|
|
68
|
-
/* @__PURE__ */ n(
|
|
67
|
+
/* @__PURE__ */ n(F, { onSubmit: b(v), children: [
|
|
69
68
|
/* @__PURE__ */ e(
|
|
70
69
|
a,
|
|
71
70
|
{
|
|
72
71
|
label: "Title:",
|
|
73
72
|
invalid: !!t.title,
|
|
74
|
-
errorMessage:
|
|
73
|
+
errorMessage: t.title?.message,
|
|
75
74
|
children: /* @__PURE__ */ e(
|
|
76
75
|
s,
|
|
77
76
|
{
|
|
78
77
|
name: "title",
|
|
79
78
|
control: m,
|
|
80
79
|
render: ({ field: o }) => /* @__PURE__ */ e(
|
|
81
|
-
|
|
80
|
+
f,
|
|
82
81
|
{
|
|
83
82
|
autoComplete: "off",
|
|
84
83
|
placeholder: "Add a subject",
|
|
@@ -94,13 +93,13 @@ const I = l.object({
|
|
|
94
93
|
{
|
|
95
94
|
label: "To:",
|
|
96
95
|
invalid: !!t.to,
|
|
97
|
-
errorMessage:
|
|
96
|
+
errorMessage: t.to?.message,
|
|
98
97
|
children: /* @__PURE__ */ e(
|
|
99
98
|
s,
|
|
100
99
|
{
|
|
101
100
|
name: "to",
|
|
102
101
|
control: m,
|
|
103
|
-
render: ({ field: o }) => /* @__PURE__ */ e(
|
|
102
|
+
render: ({ field: o }) => /* @__PURE__ */ e(f, { autoComplete: "off", ...o })
|
|
104
103
|
}
|
|
105
104
|
)
|
|
106
105
|
}
|
|
@@ -110,19 +109,19 @@ const I = l.object({
|
|
|
110
109
|
{
|
|
111
110
|
label: "Message",
|
|
112
111
|
invalid: !!t.content,
|
|
113
|
-
errorMessage:
|
|
112
|
+
errorMessage: t.content?.message,
|
|
114
113
|
children: /* @__PURE__ */ e(
|
|
115
114
|
s,
|
|
116
115
|
{
|
|
117
116
|
name: "content",
|
|
118
117
|
control: m,
|
|
119
118
|
render: ({ field: o }) => /* @__PURE__ */ e(
|
|
120
|
-
|
|
119
|
+
w,
|
|
121
120
|
{
|
|
122
121
|
content: o.value,
|
|
123
122
|
invalid: !!t.content,
|
|
124
|
-
onChange: ({ html:
|
|
125
|
-
o.onChange(
|
|
123
|
+
onChange: ({ html: S }) => {
|
|
124
|
+
o.onChange(S);
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
127
|
)
|
|
@@ -132,7 +131,7 @@ const I = l.object({
|
|
|
132
131
|
),
|
|
133
132
|
/* @__PURE__ */ n("div", { className: "text-right mt-4", children: [
|
|
134
133
|
/* @__PURE__ */ e(
|
|
135
|
-
|
|
134
|
+
g,
|
|
136
135
|
{
|
|
137
136
|
className: "ltr:mr-2 rtl:ml-2",
|
|
138
137
|
variant: "plain",
|
|
@@ -142,10 +141,10 @@ const I = l.object({
|
|
|
142
141
|
}
|
|
143
142
|
),
|
|
144
143
|
/* @__PURE__ */ e(
|
|
145
|
-
|
|
144
|
+
g,
|
|
146
145
|
{
|
|
147
146
|
variant: "solid",
|
|
148
|
-
loading:
|
|
147
|
+
loading: h,
|
|
149
148
|
type: "submit",
|
|
150
149
|
children: "Send"
|
|
151
150
|
}
|
|
@@ -157,6 +156,6 @@ const I = l.object({
|
|
|
157
156
|
);
|
|
158
157
|
};
|
|
159
158
|
export {
|
|
160
|
-
|
|
159
|
+
ee as default
|
|
161
160
|
};
|
|
162
161
|
//# sourceMappingURL=MailEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MailEditor.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailEditor.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport Input from '@/components/ui/Input'\nimport Notification from '@/components/ui/Notification'\nimport toast from '@/components/ui/toast'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport { useMailStore } from '../store/mailStore'\nimport { FormItem, Form } from '@/components/ui/Form'\nimport sleep from '@/utils/sleep'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport type { ZodType } from 'zod'\n\ntype FormSchema = {\n to: string\n content?: string\n title?: string\n}\n\nconst validationSchema: ZodType<FormSchema> = z.object({\n to: z.string().min(1, { message: 'Please enter recipient' }),\n title: z.string(),\n content: z.string().min(1, { message: 'Please enter message' }),\n})\n\nconst MailEditor = () => {\n const { mail, messageDialog, toggleMessageDialog } = useMailStore()\n\n const [formSubmiting, setFormSubmiting] = useState(false)\n\n const {\n handleSubmit,\n reset,\n formState: { errors },\n control,\n } = useForm<FormSchema>({\n resolver: zodResolver(validationSchema),\n })\n\n useEffect(() => {\n if (messageDialog.mode === 'reply') {\n reset({\n to: mail.from,\n title: `Re:${mail.title}`,\n })\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [messageDialog.mode])\n\n const handleDialogClose = () => {\n toggleMessageDialog({\n mode: '',\n open: false,\n })\n reset({\n to: '',\n title: '',\n content: '',\n })\n }\n\n const onSubmit = async (value: FormSchema) => {\n console.log('values', value)\n setFormSubmiting(true)\n await sleep(500)\n toast.push(<Notification type=\"success\">Mail send!</Notification>, {\n placement: 'top-center',\n })\n setFormSubmiting(false)\n handleDialogClose()\n }\n\n return (\n <Dialog\n isOpen={messageDialog.open}\n onClose={handleDialogClose}\n onRequestClose={handleDialogClose}\n >\n <h4 className=\"mb-4\">\n {messageDialog.mode === 'new' && 'New Message'}\n {messageDialog.mode === 'reply' && 'Reply'}\n </h4>\n <Form onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Title:\"\n invalid={Boolean(errors.title)}\n errorMessage={errors.title?.message}\n >\n <Controller\n name=\"title\"\n control={control}\n render={({ field }) => (\n <Input\n autoComplete=\"off\"\n placeholder=\"Add a subject\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"To:\"\n invalid={Boolean(errors.to)}\n errorMessage={errors.to?.message}\n >\n <Controller\n name=\"to\"\n control={control}\n render={({ field }) => (\n <Input autoComplete=\"off\" {...field} />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Message\"\n invalid={Boolean(errors.content)}\n errorMessage={errors.content?.message}\n >\n <Controller\n name=\"content\"\n control={control}\n render={({ field }) => (\n <RichTextEditor\n content={field.value}\n invalid={Boolean(errors.content)}\n onChange={({ html }) => {\n field.onChange(html)\n }}\n />\n )}\n />\n </FormItem>\n <div className=\"text-right mt-4\">\n <Button\n className=\"ltr:mr-2 rtl:ml-2\"\n variant=\"plain\"\n type=\"button\"\n onClick={handleDialogClose}\n >\n Discard\n </Button>\n <Button\n variant=\"solid\"\n loading={formSubmiting}\n type=\"submit\"\n >\n Send\n </Button>\n </div>\n </Form>\n </Dialog>\n )\n}\n\nexport default MailEditor\n"],"names":["validationSchema","z","MailEditor","mail","messageDialog","toggleMessageDialog","useMailStore","formSubmiting","setFormSubmiting","useState","handleSubmit","reset","errors","control","useForm","zodResolver","useEffect","handleDialogClose","onSubmit","value","sleep","toast","jsx","Notification","jsxs","Dialog","Form","FormItem","
|
|
1
|
+
{"version":3,"file":"MailEditor.js","sources":["../../../../../../../lib/@ecme/views/concepts/mail/Mail/components/MailEditor.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport Input from '@/components/ui/Input'\nimport Notification from '@/components/ui/Notification'\nimport toast from '@/components/ui/toast'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport { useMailStore } from '../store/mailStore'\nimport { FormItem, Form } from '@/components/ui/Form'\nimport sleep from '@/utils/sleep'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport type { ZodType } from 'zod'\n\ntype FormSchema = {\n to: string\n content?: string\n title?: string\n}\n\nconst validationSchema: ZodType<FormSchema> = z.object({\n to: z.string().min(1, { message: 'Please enter recipient' }),\n title: z.string(),\n content: z.string().min(1, { message: 'Please enter message' }),\n})\n\nconst MailEditor = () => {\n const { mail, messageDialog, toggleMessageDialog } = useMailStore()\n\n const [formSubmiting, setFormSubmiting] = useState(false)\n\n const {\n handleSubmit,\n reset,\n formState: { errors },\n control,\n } = useForm<FormSchema>({\n resolver: zodResolver(validationSchema),\n })\n\n useEffect(() => {\n if (messageDialog.mode === 'reply') {\n reset({\n to: mail.from,\n title: `Re:${mail.title}`,\n })\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [messageDialog.mode])\n\n const handleDialogClose = () => {\n toggleMessageDialog({\n mode: '',\n open: false,\n })\n reset({\n to: '',\n title: '',\n content: '',\n })\n }\n\n const onSubmit = async (value: FormSchema) => {\n console.log('values', value)\n setFormSubmiting(true)\n await sleep(500)\n toast.push(<Notification type=\"success\">Mail send!</Notification>, {\n placement: 'top-center',\n })\n setFormSubmiting(false)\n handleDialogClose()\n }\n\n return (\n <Dialog\n isOpen={messageDialog.open}\n onClose={handleDialogClose}\n onRequestClose={handleDialogClose}\n >\n <h4 className=\"mb-4\">\n {messageDialog.mode === 'new' && 'New Message'}\n {messageDialog.mode === 'reply' && 'Reply'}\n </h4>\n <Form onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Title:\"\n invalid={Boolean(errors.title)}\n errorMessage={errors.title?.message}\n >\n <Controller\n name=\"title\"\n control={control}\n render={({ field }) => (\n <Input\n autoComplete=\"off\"\n placeholder=\"Add a subject\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"To:\"\n invalid={Boolean(errors.to)}\n errorMessage={errors.to?.message}\n >\n <Controller\n name=\"to\"\n control={control}\n render={({ field }) => (\n <Input autoComplete=\"off\" {...field} />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Message\"\n invalid={Boolean(errors.content)}\n errorMessage={errors.content?.message}\n >\n <Controller\n name=\"content\"\n control={control}\n render={({ field }) => (\n <RichTextEditor\n content={field.value}\n invalid={Boolean(errors.content)}\n onChange={({ html }) => {\n field.onChange(html)\n }}\n />\n )}\n />\n </FormItem>\n <div className=\"text-right mt-4\">\n <Button\n className=\"ltr:mr-2 rtl:ml-2\"\n variant=\"plain\"\n type=\"button\"\n onClick={handleDialogClose}\n >\n Discard\n </Button>\n <Button\n variant=\"solid\"\n loading={formSubmiting}\n type=\"submit\"\n >\n Send\n </Button>\n </div>\n </Form>\n </Dialog>\n )\n}\n\nexport default MailEditor\n"],"names":["validationSchema","z","MailEditor","mail","messageDialog","toggleMessageDialog","useMailStore","formSubmiting","setFormSubmiting","useState","handleSubmit","reset","errors","control","useForm","zodResolver","useEffect","handleDialogClose","onSubmit","value","sleep","toast","jsx","Notification","jsxs","Dialog","Form","FormItem","Controller","field","Input","RichTextEditor","html","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,IAAwCC,EAAE,OAAO;AAAA,EACnD,IAAIA,EAAE,SAAS,IAAI,GAAG,EAAE,SAAS,0BAA0B;AAAA,EAC3D,OAAOA,EAAE,OAAA;AAAA,EACT,SAASA,EAAE,OAAA,EAAS,IAAI,GAAG,EAAE,SAAS,uBAAA,CAAwB;AAClE,CAAC,GAEKC,KAAa,MAAM;AACrB,QAAM,EAAE,MAAAC,GAAM,eAAAC,GAAe,qBAAAC,EAAA,IAAwBC,EAAA,GAE/C,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK,GAElD;AAAA,IACF,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACAC,EAAoB;AAAA,IACpB,UAAUC,EAAYf,CAAgB;AAAA,EAAA,CACzC;AAED,EAAAgB,EAAU,MAAM;AACZ,IAAIZ,EAAc,SAAS,WACvBO,EAAM;AAAA,MACF,IAAIR,EAAK;AAAA,MACT,OAAO,MAAMA,EAAK,KAAK;AAAA,IAAA,CAC1B;AAAA,EAGT,GAAG,CAACC,EAAc,IAAI,CAAC;AAEvB,QAAMa,IAAoB,MAAM;AAC5B,IAAAZ,EAAoB;AAAA,MAChB,MAAM;AAAA,MACN,MAAM;AAAA,IAAA,CACT,GACDM,EAAM;AAAA,MACF,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,SAAS;AAAA,IAAA,CACZ;AAAA,EACL,GAEMO,IAAW,OAAOC,MAAsB;AAC1C,YAAQ,IAAI,UAAUA,CAAK,GAC3BX,EAAiB,EAAI,GACrB,MAAMY,EAAM,GAAG,GACfC,EAAM,KAAK,gBAAAC,EAACC,GAAA,EAAa,MAAK,WAAU,wBAAU,GAAiB;AAAA,MAC/D,WAAW;AAAA,IAAA,CACd,GACDf,EAAiB,EAAK,GACtBS,EAAA;AAAA,EACJ;AAEA,SACI,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,QAAQrB,EAAc;AAAA,MACtB,SAASa;AAAA,MACT,gBAAgBA;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAO,EAAC,MAAA,EAAG,WAAU,QACT,UAAA;AAAA,UAAApB,EAAc,SAAS,SAAS;AAAA,UAChCA,EAAc,SAAS,WAAW;AAAA,QAAA,GACvC;AAAA,QACA,gBAAAoB,EAACE,GAAA,EAAK,UAAUhB,EAAaQ,CAAQ,GACjC,UAAA;AAAA,UAAA,gBAAAI;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,OAAM;AAAA,cACN,SAAS,EAAQf,EAAO;AAAA,cACxB,cAAcA,EAAO,OAAO;AAAA,cAE5B,UAAA,gBAAAU;AAAA,gBAACM;AAAA,gBAAA;AAAA,kBACG,MAAK;AAAA,kBACL,SAAAf;AAAA,kBACA,QAAQ,CAAC,EAAE,OAAAgB,EAAA,MACP,gBAAAP;AAAA,oBAACQ;AAAA,oBAAA;AAAA,sBACG,cAAa;AAAA,sBACb,aAAY;AAAA,sBACX,GAAGD;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACR;AAAA,cAAA;AAAA,YAER;AAAA,UAAA;AAAA,UAEJ,gBAAAP;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,OAAM;AAAA,cACN,SAAS,EAAQf,EAAO;AAAA,cACxB,cAAcA,EAAO,IAAI;AAAA,cAEzB,UAAA,gBAAAU;AAAA,gBAACM;AAAA,gBAAA;AAAA,kBACG,MAAK;AAAA,kBACL,SAAAf;AAAA,kBACA,QAAQ,CAAC,EAAE,OAAAgB,EAAA,wBACNC,GAAA,EAAM,cAAa,OAAO,GAAGD,EAAA,CAAO;AAAA,gBAAA;AAAA,cAAA;AAAA,YAE7C;AAAA,UAAA;AAAA,UAEJ,gBAAAP;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,OAAM;AAAA,cACN,SAAS,EAAQf,EAAO;AAAA,cACxB,cAAcA,EAAO,SAAS;AAAA,cAE9B,UAAA,gBAAAU;AAAA,gBAACM;AAAA,gBAAA;AAAA,kBACG,MAAK;AAAA,kBACL,SAAAf;AAAA,kBACA,QAAQ,CAAC,EAAE,OAAAgB,EAAA,MACP,gBAAAP;AAAA,oBAACS;AAAA,oBAAA;AAAA,sBACG,SAASF,EAAM;AAAA,sBACf,SAAS,EAAQjB,EAAO;AAAA,sBACxB,UAAU,CAAC,EAAE,MAAAoB,QAAW;AACpB,wBAAAH,EAAM,SAASG,CAAI;AAAA,sBACvB;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACJ;AAAA,cAAA;AAAA,YAER;AAAA,UAAA;AAAA,UAEJ,gBAAAR,EAAC,OAAA,EAAI,WAAU,mBACX,UAAA;AAAA,YAAA,gBAAAF;AAAA,cAACW;AAAA,cAAA;AAAA,gBACG,WAAU;AAAA,gBACV,SAAQ;AAAA,gBACR,MAAK;AAAA,gBACL,SAAShB;AAAA,gBACZ,UAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAGD,gBAAAK;AAAA,cAACW;AAAA,cAAA;AAAA,gBACG,SAAQ;AAAA,gBACR,SAAS1B;AAAA,gBACT,MAAK;AAAA,gBACR,UAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UAED,EAAA,CACJ;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|