@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,30 +1,30 @@
|
|
|
1
|
-
import { jsxs as a, jsx as t, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useIssueStore as
|
|
4
|
-
import { DatePicker as
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { Dropdown as
|
|
1
|
+
import { jsxs as a, jsx as t, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useState as F } from "react";
|
|
3
|
+
import { useIssueStore as A } from "../store/issueStore.js";
|
|
4
|
+
import { DatePicker as B } from "../../../../../components/ui/DatePicker/index.js";
|
|
5
|
+
import { Avatar as K } from "../../../../../components/ui/Avatar/index.js";
|
|
6
|
+
import { Dropdown as o } from "../../../../../components/ui/Dropdown/index.js";
|
|
7
7
|
import "../../../../../components/ui/Tag/index.js";
|
|
8
8
|
import "../../../../../components/ui/Badge/index.js";
|
|
9
9
|
import "../../../../../components/shared/RichTextEditor/index.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { TbCheck as
|
|
17
|
-
import { useEditor as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
const
|
|
10
|
+
import j from "../../../../../components/shared/UsersAvatarGroup.js";
|
|
11
|
+
import E from "./IssueField.js";
|
|
12
|
+
import c from "./IssueFieldDropdown.js";
|
|
13
|
+
import d from "../../../../../utils/classNames.js";
|
|
14
|
+
import m from "dayjs";
|
|
15
|
+
import H from "html-react-parser";
|
|
16
|
+
import { TbCheck as h, TbTag as $, TbCircle as z, TbFlag2Filled as R, TbFlag as U, TbUser as G, TbClock as O } from "react-icons/tb";
|
|
17
|
+
import { useEditor as q } from "@tiptap/react";
|
|
18
|
+
import J from "@tiptap/starter-kit";
|
|
19
|
+
import b from "../../../../../components/ui/Tag/Tag.js";
|
|
20
|
+
import Q from "../../../../../components/ui/Badge/Badge.js";
|
|
21
|
+
import V from "../../../../../components/shared/RichTextEditor/RichTextEditor.js";
|
|
22
|
+
const x = [
|
|
23
23
|
{ id: "1", title: "Bug" },
|
|
24
24
|
{ id: "2", title: "Live issue" },
|
|
25
25
|
{ id: "3", title: "Task" },
|
|
26
26
|
{ id: "4", title: "Optimization" }
|
|
27
|
-
],
|
|
27
|
+
], k = {
|
|
28
28
|
"Live issue": "bg-rose-200 dark:bg-rose-200 dark:text-gray-900",
|
|
29
29
|
Task: "bg-blue-200 dark:bg-blue-200 dark:text-gray-900",
|
|
30
30
|
Bug: "bg-amber-200 dark:bg-amber-200 dark:text-gray-900",
|
|
@@ -32,7 +32,7 @@ const v = [
|
|
|
32
32
|
"In progress": "bg-sky-200 dark:bg-sky-200 dark:text-gray-900",
|
|
33
33
|
Completed: "bg-emerald-200 dark:bg-emerald-200 dark:text-gray-900",
|
|
34
34
|
Pending: "bg-amber-200 dark:bg-amber-200 dark:text-gray-900"
|
|
35
|
-
},
|
|
35
|
+
}, W = ["Pending", "In progress", "Completed"], X = ["Low", "Medium", "High"], v = {
|
|
36
36
|
Low: {
|
|
37
37
|
text: "text-success",
|
|
38
38
|
bg: "bg-success"
|
|
@@ -45,45 +45,44 @@ const v = [
|
|
|
45
45
|
text: "text-error",
|
|
46
46
|
bg: "bg-error"
|
|
47
47
|
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
const D = A(null), { issueData: s, updateIssueData: l, memberList: u } = K(), [w, f] = B(!1), n = () => ({ ...s }), C = (e) => {
|
|
48
|
+
}, xe = () => {
|
|
49
|
+
const N = S(null), { issueData: s, updateIssueData: l, memberList: g } = A(), [y, u] = F(!1), n = () => ({ ...s }), D = (e) => {
|
|
51
50
|
const r = n();
|
|
52
51
|
if (r.labels.some((i) => i.id === e))
|
|
53
52
|
r.labels = r.labels.filter(
|
|
54
53
|
(i) => i.id !== e
|
|
55
54
|
);
|
|
56
55
|
else {
|
|
57
|
-
const i =
|
|
56
|
+
const i = x.find((p) => p.id === e);
|
|
58
57
|
i && r.labels.push(i);
|
|
59
58
|
}
|
|
60
59
|
l(r);
|
|
61
|
-
},
|
|
60
|
+
}, w = (e) => {
|
|
62
61
|
const r = n();
|
|
63
62
|
r.status = e, l(r);
|
|
64
|
-
},
|
|
63
|
+
}, C = (e) => {
|
|
65
64
|
const r = n();
|
|
66
65
|
r.priority = e, l(r);
|
|
67
|
-
},
|
|
66
|
+
}, T = (e) => {
|
|
68
67
|
const r = n();
|
|
69
68
|
if (r.assignees.some((i) => i.id === e))
|
|
70
69
|
r.assignees = r.assignees.filter(
|
|
71
70
|
(i) => i.id !== e
|
|
72
71
|
);
|
|
73
72
|
else {
|
|
74
|
-
const i =
|
|
73
|
+
const i = g.find((p) => p.id === e);
|
|
75
74
|
i && r.assignees.push(i);
|
|
76
75
|
}
|
|
77
76
|
l(r);
|
|
78
|
-
},
|
|
77
|
+
}, L = (e) => {
|
|
79
78
|
const r = n();
|
|
80
|
-
r.dueDate =
|
|
81
|
-
},
|
|
79
|
+
r.dueDate = m(e).unix(), l(r);
|
|
80
|
+
}, I = (e) => {
|
|
82
81
|
const r = n();
|
|
83
82
|
r.description = e, l(r);
|
|
84
|
-
},
|
|
83
|
+
}, f = q({
|
|
85
84
|
extensions: [
|
|
86
|
-
|
|
85
|
+
J.configure({
|
|
87
86
|
bulletList: {
|
|
88
87
|
keepMarks: !0
|
|
89
88
|
},
|
|
@@ -99,40 +98,40 @@ const v = [
|
|
|
99
98
|
},
|
|
100
99
|
content: s.description,
|
|
101
100
|
onUpdate({ editor: e }) {
|
|
102
|
-
|
|
101
|
+
I(e.getHTML());
|
|
103
102
|
}
|
|
104
|
-
}),
|
|
105
|
-
|
|
103
|
+
}), M = () => {
|
|
104
|
+
u(!0), f?.chain().focus();
|
|
106
105
|
};
|
|
107
106
|
return /* @__PURE__ */ a("div", { children: [
|
|
108
107
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 xl:grid-cols-2 gap-x-4", children: [
|
|
109
108
|
/* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
110
109
|
/* @__PURE__ */ t(
|
|
111
|
-
|
|
110
|
+
c,
|
|
112
111
|
{
|
|
113
112
|
title: "Label",
|
|
114
|
-
icon: /* @__PURE__ */ t(
|
|
115
|
-
dropdownTrigger: /* @__PURE__ */ t(
|
|
116
|
-
|
|
113
|
+
icon: /* @__PURE__ */ t($, {}),
|
|
114
|
+
dropdownTrigger: /* @__PURE__ */ t(P, { children: s.labels?.map((e, r) => /* @__PURE__ */ t(
|
|
115
|
+
b,
|
|
117
116
|
{
|
|
118
|
-
className: `${
|
|
117
|
+
className: `${k[e.title]}`,
|
|
119
118
|
children: e.title
|
|
120
119
|
},
|
|
121
120
|
e.title + r
|
|
122
121
|
)) }),
|
|
123
|
-
children:
|
|
124
|
-
|
|
122
|
+
children: x.map((e) => /* @__PURE__ */ t(
|
|
123
|
+
o.Item,
|
|
125
124
|
{
|
|
126
125
|
eventKey: e.id,
|
|
127
|
-
onSelect:
|
|
126
|
+
onSelect: D,
|
|
128
127
|
children: /* @__PURE__ */ a("div", { className: "flex items-center relative", children: [
|
|
129
128
|
s.labels.some(
|
|
130
129
|
(r) => r.id === e.id
|
|
131
|
-
) && /* @__PURE__ */ t(
|
|
130
|
+
) && /* @__PURE__ */ t(h, { className: "absolute text-primary ltr:left-[-5px] text-lg" }),
|
|
132
131
|
/* @__PURE__ */ t(
|
|
133
132
|
"span",
|
|
134
133
|
{
|
|
135
|
-
className:
|
|
134
|
+
className: d(
|
|
136
135
|
s.labels.length > 0 && "mx-5"
|
|
137
136
|
),
|
|
138
137
|
children: e.title
|
|
@@ -145,23 +144,23 @@ const v = [
|
|
|
145
144
|
}
|
|
146
145
|
),
|
|
147
146
|
/* @__PURE__ */ t(
|
|
148
|
-
|
|
147
|
+
c,
|
|
149
148
|
{
|
|
150
149
|
title: "Status",
|
|
151
|
-
icon: /* @__PURE__ */ t(
|
|
150
|
+
icon: /* @__PURE__ */ t(z, {}),
|
|
152
151
|
dropdownTrigger: /* @__PURE__ */ t(
|
|
153
|
-
|
|
152
|
+
b,
|
|
154
153
|
{
|
|
155
|
-
className: `${
|
|
154
|
+
className: `${k[s.status || ""]}`,
|
|
156
155
|
children: s.status
|
|
157
156
|
}
|
|
158
157
|
),
|
|
159
|
-
children:
|
|
160
|
-
|
|
158
|
+
children: W.map((e) => /* @__PURE__ */ t(
|
|
159
|
+
o.Item,
|
|
161
160
|
{
|
|
162
161
|
eventKey: e,
|
|
163
162
|
active: e === s.status,
|
|
164
|
-
onSelect:
|
|
163
|
+
onSelect: w,
|
|
165
164
|
children: /* @__PURE__ */ t("div", { className: "flex items-center relative", children: /* @__PURE__ */ t("span", { children: e }) })
|
|
166
165
|
},
|
|
167
166
|
e
|
|
@@ -169,54 +168,51 @@ const v = [
|
|
|
169
168
|
}
|
|
170
169
|
),
|
|
171
170
|
/* @__PURE__ */ t(
|
|
172
|
-
|
|
171
|
+
c,
|
|
173
172
|
{
|
|
174
173
|
title: "Priority",
|
|
175
|
-
icon: /* @__PURE__ */ t(
|
|
174
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
176
175
|
dropdownTrigger: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
177
176
|
/* @__PURE__ */ t(
|
|
178
|
-
|
|
177
|
+
R,
|
|
179
178
|
{
|
|
180
|
-
className:
|
|
179
|
+
className: d(
|
|
181
180
|
"text-lg",
|
|
182
|
-
`${
|
|
181
|
+
`${v[s.priority || ""]?.text}`
|
|
183
182
|
)
|
|
184
183
|
}
|
|
185
184
|
),
|
|
186
185
|
/* @__PURE__ */ t("span", { className: "font-semibold", children: s.priority })
|
|
187
186
|
] }),
|
|
188
|
-
children:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
e
|
|
207
|
-
);
|
|
208
|
-
})
|
|
187
|
+
children: X.map((e) => /* @__PURE__ */ t(
|
|
188
|
+
o.Item,
|
|
189
|
+
{
|
|
190
|
+
eventKey: e,
|
|
191
|
+
active: e === s.priority,
|
|
192
|
+
onSelect: C,
|
|
193
|
+
children: /* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
194
|
+
/* @__PURE__ */ t(
|
|
195
|
+
Q,
|
|
196
|
+
{
|
|
197
|
+
innerClass: `${v[e]?.bg}`
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ t("span", { className: "ml-2 rtl:mr-2", children: e })
|
|
201
|
+
] })
|
|
202
|
+
},
|
|
203
|
+
e
|
|
204
|
+
))
|
|
209
205
|
}
|
|
210
206
|
)
|
|
211
207
|
] }),
|
|
212
208
|
/* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
213
209
|
/* @__PURE__ */ t(
|
|
214
|
-
|
|
210
|
+
c,
|
|
215
211
|
{
|
|
216
212
|
title: "Assigned to",
|
|
217
|
-
icon: /* @__PURE__ */ t(
|
|
213
|
+
icon: /* @__PURE__ */ t(G, {}),
|
|
218
214
|
dropdownTrigger: /* @__PURE__ */ t(
|
|
219
|
-
|
|
215
|
+
j,
|
|
220
216
|
{
|
|
221
217
|
className: "gap-1",
|
|
222
218
|
avatarProps: {
|
|
@@ -227,31 +223,31 @@ const v = [
|
|
|
227
223
|
users: s.assignees
|
|
228
224
|
}
|
|
229
225
|
),
|
|
230
|
-
children:
|
|
231
|
-
|
|
226
|
+
children: g.map((e) => /* @__PURE__ */ t(
|
|
227
|
+
o.Item,
|
|
232
228
|
{
|
|
233
229
|
eventKey: e.id,
|
|
234
|
-
onSelect:
|
|
230
|
+
onSelect: T,
|
|
235
231
|
children: /* @__PURE__ */ a(
|
|
236
232
|
"div",
|
|
237
233
|
{
|
|
238
|
-
className:
|
|
234
|
+
className: d(
|
|
239
235
|
"flex items-center justify-between relative"
|
|
240
236
|
),
|
|
241
237
|
children: [
|
|
242
238
|
s.assignees.some(
|
|
243
239
|
(r) => r.id === e.id
|
|
244
|
-
) && /* @__PURE__ */ t(
|
|
240
|
+
) && /* @__PURE__ */ t(h, { className: "absolute text-primary ltr:left-[-5px] text-lg" }),
|
|
245
241
|
/* @__PURE__ */ a(
|
|
246
242
|
"div",
|
|
247
243
|
{
|
|
248
|
-
className:
|
|
244
|
+
className: d(
|
|
249
245
|
"flex items-center gap-2",
|
|
250
246
|
s.labels.length > 0 && "mx-5"
|
|
251
247
|
),
|
|
252
248
|
children: [
|
|
253
249
|
/* @__PURE__ */ t(
|
|
254
|
-
|
|
250
|
+
K,
|
|
255
251
|
{
|
|
256
252
|
shape: "circle",
|
|
257
253
|
size: 22,
|
|
@@ -270,18 +266,18 @@ const v = [
|
|
|
270
266
|
))
|
|
271
267
|
}
|
|
272
268
|
),
|
|
273
|
-
/* @__PURE__ */ t(
|
|
274
|
-
/* @__PURE__ */ t("span", { className: "font-semibold", children:
|
|
269
|
+
/* @__PURE__ */ t(E, { title: "Due date", icon: /* @__PURE__ */ t(O, {}), children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative", children: [
|
|
270
|
+
/* @__PURE__ */ t("span", { className: "font-semibold", children: m.unix(s.dueDate || 0).format("MMMM DD") }),
|
|
275
271
|
/* @__PURE__ */ t(
|
|
276
|
-
|
|
272
|
+
B,
|
|
277
273
|
{
|
|
278
274
|
className: "opacity-0 cursor-pointer absolute",
|
|
279
|
-
value:
|
|
275
|
+
value: m.unix(s.dueDate || m().unix()).toDate(),
|
|
280
276
|
inputtable: !1,
|
|
281
277
|
inputPrefix: null,
|
|
282
278
|
inputSuffix: null,
|
|
283
279
|
clearable: !1,
|
|
284
|
-
onChange: (e) =>
|
|
280
|
+
onChange: (e) => L(e)
|
|
285
281
|
}
|
|
286
282
|
)
|
|
287
283
|
] }) })
|
|
@@ -289,29 +285,29 @@ const v = [
|
|
|
289
285
|
] }),
|
|
290
286
|
/* @__PURE__ */ a("div", { className: "mt-8", children: [
|
|
291
287
|
/* @__PURE__ */ t("h5", { className: "mb-4", children: "Description" }),
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
y ? /* @__PURE__ */ t(
|
|
289
|
+
V,
|
|
294
290
|
{
|
|
295
|
-
ref:
|
|
291
|
+
ref: N,
|
|
296
292
|
content: s.description,
|
|
297
|
-
customEditor:
|
|
298
|
-
onBlur: () =>
|
|
293
|
+
customEditor: f,
|
|
294
|
+
onBlur: () => u(!1)
|
|
299
295
|
}
|
|
300
296
|
) : /* @__PURE__ */ t(
|
|
301
297
|
"div",
|
|
302
298
|
{
|
|
303
299
|
className: "mt-2 prose max-w-full cursor-pointer",
|
|
304
300
|
role: "button",
|
|
305
|
-
onClick:
|
|
306
|
-
children: /* @__PURE__ */ t("div", { className: "prose-p:text-sm prose-p:dark:text-gray-400", children:
|
|
301
|
+
onClick: M,
|
|
302
|
+
children: /* @__PURE__ */ t("div", { className: "prose-p:text-sm prose-p:dark:text-gray-400", children: H(s.description || "") })
|
|
307
303
|
}
|
|
308
304
|
)
|
|
309
305
|
] })
|
|
310
306
|
] });
|
|
311
307
|
};
|
|
312
308
|
export {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
309
|
+
xe as default,
|
|
310
|
+
x as labelList,
|
|
311
|
+
k as taskLabelColors
|
|
316
312
|
};
|
|
317
313
|
//# sourceMappingURL=IssueBody.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssueBody.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/Issue/components/IssueBody.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\nimport { useState, useRef } from 'react'\nimport { useIssueStore } from '../store/issueStore'\nimport DatePicker from '@/components/ui/DatePicker'\nimport Avatar from '@/components/ui/Avatar'\nimport Dropdown from '@/components/ui/Dropdown'\nimport Tag from '@/components/ui/Tag'\nimport Badge from '@/components/ui/Badge'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport UsersAvatarGroup from '@/components/shared/UsersAvatarGroup'\nimport IssueField from './IssueField'\nimport IssueFieldDropdown from './IssueFieldDropdown'\nimport classNames from '@/utils/classNames'\nimport dayjs from 'dayjs'\nimport ReactHtmlParser from 'html-react-parser'\nimport {\n TbTag,\n TbCircle,\n TbFlag,\n TbFlag2Filled,\n TbUser,\n TbClock,\n TbCheck,\n} from 'react-icons/tb'\nimport { useEditor } from '@tiptap/react'\nimport StarterKit from '@tiptap/starter-kit'\nimport type { RichTextEditorRef } from '@/components/shared/RichTextEditor'\n\nexport const labelList = [\n { id: '1', title: 'Bug' },\n { id: '2', title: 'Live issue' },\n { id: '3', title: 'Task' },\n { id: '4', title: 'Optimization' },\n]\n\nexport const taskLabelColors: Record<string, string> = {\n 'Live issue': 'bg-rose-200 dark:bg-rose-200 dark:text-gray-900',\n Task: 'bg-blue-200 dark:bg-blue-200 dark:text-gray-900',\n Bug: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n Optimization: 'bg-purple-200 dark:bg-purple-200 dark:text-gray-900',\n 'In progress': 'bg-sky-200 dark:bg-sky-200 dark:text-gray-900',\n Completed: 'bg-emerald-200 dark:bg-emerald-200 dark:text-gray-900',\n Pending: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n}\n\nconst statusList: string[] = ['Pending', 'In progress', 'Completed']\n\nconst priorityList: string[] = ['Low', 'Medium', 'High']\n\nconst flagColors: Record<string, { text: string; bg: string }> = {\n Low: {\n text: 'text-success',\n bg: 'bg-success',\n },\n Medium: {\n text: 'text-warning',\n bg: 'bg-warning',\n },\n High: {\n text: 'text-error',\n bg: 'bg-error',\n },\n}\n\nconst IssueBody = () => {\n const descriptionInput = useRef<RichTextEditorRef>(null)\n\n const { issueData, updateIssueData, memberList } = useIssueStore()\n\n const [editDescription, setEditDescription] = useState(false)\n\n const createNewData = () => {\n return { ...issueData }\n }\n\n const handleAddLabelClick = (value: string) => {\n const newData = createNewData()\n if (newData.labels.some((label) => label.id === value)) {\n newData.labels = newData.labels.filter(\n (label) => label.id !== value,\n )\n } else {\n const label = labelList.find((label) => label.id === value)\n if (label) {\n newData.labels.push(label)\n }\n }\n updateIssueData(newData)\n }\n\n const handleChangeStatusClick = (value: string) => {\n const newData = createNewData()\n newData.status = value\n updateIssueData(newData)\n }\n\n const handlePriorityChange = (value: string) => {\n const newData = createNewData()\n newData.priority = value\n updateIssueData(newData)\n }\n\n const handleAddMember = (value: string) => {\n const newData = createNewData()\n if (newData.assignees.some((member) => member.id === value)) {\n newData.assignees = newData.assignees.filter(\n (member) => member.id !== value,\n )\n } else {\n const member = memberList.find((member) => member.id === value)\n if (member) {\n newData.assignees.push(member)\n }\n }\n updateIssueData(newData)\n }\n\n const handleDueDateChange = (date: Date) => {\n const newData = createNewData()\n newData.dueDate = dayjs(date).unix()\n updateIssueData(newData)\n }\n\n const handleDescriptionChange = (value: string) => {\n const newData = createNewData()\n newData.description = value\n updateIssueData(newData)\n }\n\n const editor = useEditor({\n extensions: [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n },\n orderedList: {\n keepMarks: true,\n },\n }),\n ],\n editorProps: {\n attributes: {\n class: 'm-2 focus:outline-none',\n },\n },\n content: issueData.description,\n onUpdate({ editor }) {\n handleDescriptionChange(editor.getHTML())\n },\n })\n\n const handleDescriptionClick = () => {\n setEditDescription(true)\n editor?.chain().focus()\n }\n\n return (\n <div>\n <div className=\"grid grid-cols-1 xl:grid-cols-2 gap-x-4\">\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Label\"\n icon={<TbTag />}\n dropdownTrigger={\n <>\n {issueData.labels?.map((label, index) => (\n <Tag\n key={label.title + index}\n className={`${\n taskLabelColors[label.title]\n }`}\n >\n {label.title}\n </Tag>\n ))}\n </>\n }\n >\n {labelList.map((label) => (\n <Dropdown.Item\n key={label.title}\n eventKey={label.id}\n onSelect={handleAddLabelClick}\n >\n <div className=\"flex items-center relative\">\n {issueData.labels.some(\n (labelitem) =>\n labelitem.id === label.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <span\n className={classNames(\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n {label.title}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Status\"\n icon={<TbCircle />}\n dropdownTrigger={\n <Tag\n className={`${\n taskLabelColors[issueData.status || '']\n }`}\n >\n {issueData.status}\n </Tag>\n }\n >\n {statusList.map((status) => (\n <Dropdown.Item\n key={status}\n eventKey={status}\n active={status === issueData.status}\n onSelect={handleChangeStatusClick}\n >\n <div className=\"flex items-center relative\">\n <span>{status}</span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Priority\"\n icon={<TbFlag />}\n dropdownTrigger={\n <div className=\"flex items-center gap-2\">\n <TbFlag2Filled\n className={classNames(\n 'text-lg',\n `${\n flagColors[issueData.priority || '']\n ?.text\n }`,\n )}\n />\n <span className=\"font-semibold\">\n {issueData.priority}\n </span>\n </div>\n }\n >\n {priorityList.map((priority) => (\n <Dropdown.Item\n key={priority}\n eventKey={priority}\n active={priority === issueData.priority}\n onSelect={handlePriorityChange}\n >\n <div className=\"flex items-center\">\n <Badge\n innerClass={`${flagColors[priority]?.bg}`}\n />\n <span className=\"ml-2 rtl:mr-2\">\n {priority}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n </div>\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Assigned to\"\n icon={<TbUser />}\n dropdownTrigger={\n <UsersAvatarGroup\n className=\"gap-1\"\n avatarProps={{\n className: 'cursor-pointer',\n }}\n avatarGroupProps={{ maxCount: 4 }}\n chained={false}\n users={issueData.assignees}\n />\n }\n >\n {memberList.map((member) => (\n <Dropdown.Item\n key={member.name}\n eventKey={member.id}\n onSelect={handleAddMember}\n >\n <div\n className={classNames(\n 'flex items-center justify-between relative',\n )}\n >\n {issueData.assignees.some(\n (assignee) => assignee.id === member.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <div\n className={classNames(\n 'flex items-center gap-2',\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n <Avatar\n shape=\"circle\"\n size={22}\n src={member.img}\n />\n <span>{member.name}</span>\n </div>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueField title=\"Due date\" icon={<TbClock />}>\n <div className=\"flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative\">\n <span className=\"font-semibold\">\n {dayjs\n .unix(issueData.dueDate || 0)\n .format('MMMM DD')}\n </span>\n <DatePicker\n className=\"opacity-0 cursor-pointer absolute\"\n value={dayjs\n .unix(issueData.dueDate || dayjs().unix())\n .toDate()}\n inputtable={false}\n inputPrefix={null}\n inputSuffix={null}\n clearable={false}\n onChange={(date) =>\n handleDueDateChange(date as Date)\n }\n />\n </div>\n </IssueField>\n </div>\n </div>\n <div className=\"mt-8\">\n <h5 className=\"mb-4\">Description</h5>\n {editDescription ? (\n <RichTextEditor\n ref={descriptionInput}\n content={issueData.description}\n customEditor={editor}\n onBlur={() => setEditDescription(false)}\n />\n ) : (\n <div\n className=\"mt-2 prose max-w-full cursor-pointer\"\n role=\"button\"\n onClick={handleDescriptionClick}\n >\n <div className=\"prose-p:text-sm prose-p:dark:text-gray-400\">\n {ReactHtmlParser(issueData.description || '')}\n </div>\n </div>\n )}\n </div>\n </div>\n )\n}\n\nexport default IssueBody\n"],"names":["labelList","taskLabelColors","statusList","priorityList","flagColors","IssueBody","descriptionInput","useRef","issueData","updateIssueData","memberList","useIssueStore","editDescription","setEditDescription","useState","createNewData","handleAddLabelClick","value","newData","label","handleChangeStatusClick","handlePriorityChange","handleAddMember","member","handleDueDateChange","date","dayjs","handleDescriptionChange","editor","useEditor","StarterKit","handleDescriptionClick","jsxs","jsx","IssueFieldDropdown","TbTag","Fragment","_a","index","Tag","Dropdown","labelitem","TbCheck","classNames","TbCircle","status","TbFlag","TbFlag2Filled","_b","priority","Badge","TbUser","UsersAvatarGroup","assignee","Avatar","IssueField","TbClock","DatePicker","RichTextEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BO,MAAMA,IAAY;AAAA,EACrB,EAAE,IAAI,KAAK,OAAO,MAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,aAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,OAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,eAAA;AACtB,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AA,UACV,MAAK;AAAA,UACL,SAASF;AAAA,UAET,UAAA,gBAAAE,EAAC,SAAI,WAAU,8CACV,YAAgBzB,EAAU,eAAe,EAAE,EAAA,CAChD;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ,EAAA,CAER;AAAA,EAAA,GACJ;AAER;"}
|
|
1
|
+
{"version":3,"file":"IssueBody.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/Issue/components/IssueBody.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\nimport { useState, useRef } from 'react'\nimport { useIssueStore } from '../store/issueStore'\nimport DatePicker from '@/components/ui/DatePicker'\nimport Avatar from '@/components/ui/Avatar'\nimport Dropdown from '@/components/ui/Dropdown'\nimport Tag from '@/components/ui/Tag'\nimport Badge from '@/components/ui/Badge'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport UsersAvatarGroup from '@/components/shared/UsersAvatarGroup'\nimport IssueField from './IssueField'\nimport IssueFieldDropdown from './IssueFieldDropdown'\nimport classNames from '@/utils/classNames'\nimport dayjs from 'dayjs'\nimport ReactHtmlParser from 'html-react-parser'\nimport {\n TbTag,\n TbCircle,\n TbFlag,\n TbFlag2Filled,\n TbUser,\n TbClock,\n TbCheck,\n} from 'react-icons/tb'\nimport { useEditor } from '@tiptap/react'\nimport StarterKit from '@tiptap/starter-kit'\nimport type { RichTextEditorRef } from '@/components/shared/RichTextEditor'\n\nexport const labelList = [\n { id: '1', title: 'Bug' },\n { id: '2', title: 'Live issue' },\n { id: '3', title: 'Task' },\n { id: '4', title: 'Optimization' },\n]\n\nexport const taskLabelColors: Record<string, string> = {\n 'Live issue': 'bg-rose-200 dark:bg-rose-200 dark:text-gray-900',\n Task: 'bg-blue-200 dark:bg-blue-200 dark:text-gray-900',\n Bug: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n Optimization: 'bg-purple-200 dark:bg-purple-200 dark:text-gray-900',\n 'In progress': 'bg-sky-200 dark:bg-sky-200 dark:text-gray-900',\n Completed: 'bg-emerald-200 dark:bg-emerald-200 dark:text-gray-900',\n Pending: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n}\n\nconst statusList: string[] = ['Pending', 'In progress', 'Completed']\n\nconst priorityList: string[] = ['Low', 'Medium', 'High']\n\nconst flagColors: Record<string, { text: string; bg: string }> = {\n Low: {\n text: 'text-success',\n bg: 'bg-success',\n },\n Medium: {\n text: 'text-warning',\n bg: 'bg-warning',\n },\n High: {\n text: 'text-error',\n bg: 'bg-error',\n },\n}\n\nconst IssueBody = () => {\n const descriptionInput = useRef<RichTextEditorRef>(null)\n\n const { issueData, updateIssueData, memberList } = useIssueStore()\n\n const [editDescription, setEditDescription] = useState(false)\n\n const createNewData = () => {\n return { ...issueData }\n }\n\n const handleAddLabelClick = (value: string) => {\n const newData = createNewData()\n if (newData.labels.some((label) => label.id === value)) {\n newData.labels = newData.labels.filter(\n (label) => label.id !== value,\n )\n } else {\n const label = labelList.find((label) => label.id === value)\n if (label) {\n newData.labels.push(label)\n }\n }\n updateIssueData(newData)\n }\n\n const handleChangeStatusClick = (value: string) => {\n const newData = createNewData()\n newData.status = value\n updateIssueData(newData)\n }\n\n const handlePriorityChange = (value: string) => {\n const newData = createNewData()\n newData.priority = value\n updateIssueData(newData)\n }\n\n const handleAddMember = (value: string) => {\n const newData = createNewData()\n if (newData.assignees.some((member) => member.id === value)) {\n newData.assignees = newData.assignees.filter(\n (member) => member.id !== value,\n )\n } else {\n const member = memberList.find((member) => member.id === value)\n if (member) {\n newData.assignees.push(member)\n }\n }\n updateIssueData(newData)\n }\n\n const handleDueDateChange = (date: Date) => {\n const newData = createNewData()\n newData.dueDate = dayjs(date).unix()\n updateIssueData(newData)\n }\n\n const handleDescriptionChange = (value: string) => {\n const newData = createNewData()\n newData.description = value\n updateIssueData(newData)\n }\n\n const editor = useEditor({\n extensions: [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n },\n orderedList: {\n keepMarks: true,\n },\n }),\n ],\n editorProps: {\n attributes: {\n class: 'm-2 focus:outline-none',\n },\n },\n content: issueData.description,\n onUpdate({ editor }) {\n handleDescriptionChange(editor.getHTML())\n },\n })\n\n const handleDescriptionClick = () => {\n setEditDescription(true)\n editor?.chain().focus()\n }\n\n return (\n <div>\n <div className=\"grid grid-cols-1 xl:grid-cols-2 gap-x-4\">\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Label\"\n icon={<TbTag />}\n dropdownTrigger={\n <>\n {issueData.labels?.map((label, index) => (\n <Tag\n key={label.title + index}\n className={`${\n taskLabelColors[label.title]\n }`}\n >\n {label.title}\n </Tag>\n ))}\n </>\n }\n >\n {labelList.map((label) => (\n <Dropdown.Item\n key={label.title}\n eventKey={label.id}\n onSelect={handleAddLabelClick}\n >\n <div className=\"flex items-center relative\">\n {issueData.labels.some(\n (labelitem) =>\n labelitem.id === label.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <span\n className={classNames(\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n {label.title}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Status\"\n icon={<TbCircle />}\n dropdownTrigger={\n <Tag\n className={`${\n taskLabelColors[issueData.status || '']\n }`}\n >\n {issueData.status}\n </Tag>\n }\n >\n {statusList.map((status) => (\n <Dropdown.Item\n key={status}\n eventKey={status}\n active={status === issueData.status}\n onSelect={handleChangeStatusClick}\n >\n <div className=\"flex items-center relative\">\n <span>{status}</span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Priority\"\n icon={<TbFlag />}\n dropdownTrigger={\n <div className=\"flex items-center gap-2\">\n <TbFlag2Filled\n className={classNames(\n 'text-lg',\n `${\n flagColors[issueData.priority || '']\n ?.text\n }`,\n )}\n />\n <span className=\"font-semibold\">\n {issueData.priority}\n </span>\n </div>\n }\n >\n {priorityList.map((priority) => (\n <Dropdown.Item\n key={priority}\n eventKey={priority}\n active={priority === issueData.priority}\n onSelect={handlePriorityChange}\n >\n <div className=\"flex items-center\">\n <Badge\n innerClass={`${flagColors[priority]?.bg}`}\n />\n <span className=\"ml-2 rtl:mr-2\">\n {priority}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n </div>\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Assigned to\"\n icon={<TbUser />}\n dropdownTrigger={\n <UsersAvatarGroup\n className=\"gap-1\"\n avatarProps={{\n className: 'cursor-pointer',\n }}\n avatarGroupProps={{ maxCount: 4 }}\n chained={false}\n users={issueData.assignees}\n />\n }\n >\n {memberList.map((member) => (\n <Dropdown.Item\n key={member.name}\n eventKey={member.id}\n onSelect={handleAddMember}\n >\n <div\n className={classNames(\n 'flex items-center justify-between relative',\n )}\n >\n {issueData.assignees.some(\n (assignee) => assignee.id === member.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <div\n className={classNames(\n 'flex items-center gap-2',\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n <Avatar\n shape=\"circle\"\n size={22}\n src={member.img}\n />\n <span>{member.name}</span>\n </div>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueField title=\"Due date\" icon={<TbClock />}>\n <div className=\"flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative\">\n <span className=\"font-semibold\">\n {dayjs\n .unix(issueData.dueDate || 0)\n .format('MMMM DD')}\n </span>\n <DatePicker\n className=\"opacity-0 cursor-pointer absolute\"\n value={dayjs\n .unix(issueData.dueDate || dayjs().unix())\n .toDate()}\n inputtable={false}\n inputPrefix={null}\n inputSuffix={null}\n clearable={false}\n onChange={(date) =>\n handleDueDateChange(date as Date)\n }\n />\n </div>\n </IssueField>\n </div>\n </div>\n <div className=\"mt-8\">\n <h5 className=\"mb-4\">Description</h5>\n {editDescription ? (\n <RichTextEditor\n ref={descriptionInput}\n content={issueData.description}\n customEditor={editor}\n onBlur={() => setEditDescription(false)}\n />\n ) : (\n <div\n className=\"mt-2 prose max-w-full cursor-pointer\"\n role=\"button\"\n onClick={handleDescriptionClick}\n >\n <div className=\"prose-p:text-sm prose-p:dark:text-gray-400\">\n {ReactHtmlParser(issueData.description || '')}\n </div>\n </div>\n )}\n </div>\n </div>\n )\n}\n\nexport default IssueBody\n"],"names":["labelList","taskLabelColors","statusList","priorityList","flagColors","IssueBody","descriptionInput","useRef","issueData","updateIssueData","memberList","useIssueStore","editDescription","setEditDescription","useState","createNewData","handleAddLabelClick","value","newData","label","handleChangeStatusClick","handlePriorityChange","handleAddMember","member","handleDueDateChange","date","dayjs","handleDescriptionChange","editor","useEditor","StarterKit","handleDescriptionClick","jsxs","jsx","IssueFieldDropdown","TbTag","Fragment","index","Tag","Dropdown","labelitem","TbCheck","classNames","TbCircle","status","TbFlag","TbFlag2Filled","priority","Badge","TbUser","UsersAvatarGroup","assignee","Avatar","IssueField","TbClock","DatePicker","RichTextEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BO,MAAMA,IAAY;AAAA,EACrB,EAAE,IAAI,KAAK,OAAO,MAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,aAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,OAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,eAAA;AACtB,GAEaC,IAA0C;AAAA,EACnD,cAAc;AAAA,EACd,MAAM;AAAA,EACN,KAAK;AAAA,EACL,cAAc;AAAA,EACd,eAAe;AAAA,EACf,WAAW;AAAA,EACX,SAAS;AACb,GAEMC,IAAuB,CAAC,WAAW,eAAe,WAAW,GAE7DC,IAAyB,CAAC,OAAO,UAAU,MAAM,GAEjDC,IAA2D;AAAA,EAC7D,KAAK;AAAA,IACD,MAAM;AAAA,IACN,IAAI;AAAA,EAA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