@orbe-agro/client-core 5.3.86 → 5.3.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ecme/assets/styles/app.css +1 -1
- package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
- package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
- package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
- package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
- package/dist/@ecme/assets/styles/components/_upload.css +1 -1
- package/dist/@ecme/assets/styles/components/index.css +1 -1
- package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
- package/dist/@ecme/auth/AuthProvider.js +58 -62
- package/dist/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/shared/Affix.js +9 -10
- package/dist/@ecme/components/shared/Affix.js.map +1 -1
- package/dist/@ecme/components/shared/AutoComplete.js +27 -28
- package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
- package/dist/@ecme/components/shared/CalendarView.js +19 -20
- package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
- package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
- package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
- package/dist/@ecme/components/shared/DataTable.js +151 -151
- package/dist/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/@ecme/components/shared/DebounceInput.js +11 -12
- package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
- package/dist/@ecme/components/shared/ImageGallery.js +18 -18
- package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
- package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
- package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
- package/dist/@ecme/components/shared/OtpInput.js +54 -56
- package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
- package/dist/@ecme/components/shared/PasswordInput.js +6 -6
- package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
- package/dist/@ecme/components/shared/RegionMap.js +9 -9
- package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
- package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
- package/dist/@ecme/components/template/LanguageSelector.js +10 -13
- package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
- package/dist/@ecme/components/template/Search.js +85 -92
- package/dist/@ecme/components/template/Search.js.map +1 -1
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
- package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
- package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Button/Button.js +66 -67
- package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
- package/dist/@ecme/components/ui/Card/Card.js +39 -40
- package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
- package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
- package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
- package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
- package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
- package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
- package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
- package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
- package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
- package/dist/@ecme/components/ui/Input/Input.js +50 -52
- package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
- package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
- package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
- package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
- package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Group.js +28 -28
- package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
- package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
- package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
- package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
- package/dist/@ecme/components/ui/Select/Select.js +40 -41
- package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
- package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
- package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
- package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
- package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
- package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
- package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
- package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
- package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
- package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
- package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
- package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
- package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
- package/dist/@ecme/components/ui/toast/toast.js +16 -19
- package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
- package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
- package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
- package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
- package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
- package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
- package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
- package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts +0 -19
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/base/assets/styles/init.css +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
- package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
- package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
- package/dist/base/components/tools/NavFilter.js +68 -75
- package/dist/base/components/tools/NavFilter.js.map +1 -1
- package/dist/base/configs/api.config.js +11 -14
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
- package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
- package/dist/base/hooks/adm/users/useUsersList.js +10 -10
- package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
- package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
- package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
- package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
- package/dist/base/hooks/useList.js +10 -10
- package/dist/base/hooks/useList.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
- package/dist/base/utils/functions/stringUtils.js +14 -15
- package/dist/base/utils/functions/stringUtils.js.map +1 -1
- package/lib/base/configs/api.config.ts +6 -7
- package/package.json +1 -1
- package/tsconfig.json +6 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Table as
|
|
2
|
+
import { useState as w } from "react";
|
|
3
|
+
import { Table as C } from "../../../../../components/ui/Table/index.js";
|
|
4
4
|
import "../../../../../components/view/TaskItem/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { labelClass as
|
|
7
|
-
import
|
|
8
|
-
import { reorderDragable as
|
|
9
|
-
import { useTasksStore as
|
|
10
|
-
import { DragDropContext as
|
|
11
|
-
import { MdDragIndicator as
|
|
12
|
-
import
|
|
13
|
-
const { TBody:
|
|
14
|
-
const [
|
|
5
|
+
import M from "./AddTask.js";
|
|
6
|
+
import { labelClass as O } from "../utils.js";
|
|
7
|
+
import k from "../../../../../utils/reoderArray.js";
|
|
8
|
+
import { reorderDragable as R } from "../../../../../utils/reorderDragable.js";
|
|
9
|
+
import { useTasksStore as L } from "../store/tasksStore.js";
|
|
10
|
+
import { DragDropContext as P, Droppable as h, Draggable as u } from "@hello-pangea/dnd";
|
|
11
|
+
import { MdDragIndicator as b } from "react-icons/md";
|
|
12
|
+
import A from "../../../../../components/view/TaskItem/TaskItem.js";
|
|
13
|
+
const { TBody: B } = C, J = () => {
|
|
14
|
+
const [x, f] = w(""), { updateOrdered: g, updateGroups: l, ordered: m, groups: t } = L(), T = (e) => {
|
|
15
15
|
if (e.combine) {
|
|
16
16
|
if (e.type === "COLUMN") {
|
|
17
17
|
const c = [...m];
|
|
18
|
-
c.splice(e.source.index, 1),
|
|
18
|
+
c.splice(e.source.index, 1), g(c);
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
21
|
+
const o = [...t[e.source.droppableId]];
|
|
22
|
+
o.splice(e.source.index, 1);
|
|
23
|
+
const i = {
|
|
24
24
|
...t,
|
|
25
|
-
[e.source.droppableId]:
|
|
25
|
+
[e.source.droppableId]: o
|
|
26
26
|
};
|
|
27
|
-
l(
|
|
27
|
+
l(i);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
if (!e.destination)
|
|
@@ -33,30 +33,30 @@ const { TBody: E } = x, K = () => {
|
|
|
33
33
|
if (r.droppableId === n.droppableId && r.index === n.index)
|
|
34
34
|
return;
|
|
35
35
|
if (e.type === "COLUMN") {
|
|
36
|
-
const s =
|
|
36
|
+
const s = k(
|
|
37
37
|
m,
|
|
38
38
|
r.index,
|
|
39
39
|
n.index
|
|
40
40
|
);
|
|
41
|
-
|
|
41
|
+
g(s);
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
const d =
|
|
44
|
+
const d = R({
|
|
45
45
|
quoteMap: t,
|
|
46
46
|
source: r,
|
|
47
47
|
destination: n
|
|
48
48
|
});
|
|
49
49
|
l(d.quoteMap);
|
|
50
|
-
},
|
|
50
|
+
}, D = (e, r) => {
|
|
51
51
|
const n = { ...t };
|
|
52
52
|
n[r] = n[r].filter((d) => (d.id === e && (d.checked = !d.checked), d)), l(n);
|
|
53
|
-
},
|
|
53
|
+
}, I = (e, r) => {
|
|
54
54
|
const n = { ...t };
|
|
55
|
-
n[e].push(r), l(n),
|
|
55
|
+
n[e].push(r), l(n), f("");
|
|
56
56
|
};
|
|
57
|
-
return /* @__PURE__ */ a(
|
|
57
|
+
return /* @__PURE__ */ a(P, { onDragEnd: (e) => T(e), children: /* @__PURE__ */ a(h, { droppableId: "board", type: "COLUMN", direction: "vertical", children: (e) => /* @__PURE__ */ a("div", { ref: e.innerRef, ...e.droppableProps, children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-10", children: [
|
|
58
58
|
m.map((r, n) => /* @__PURE__ */ a(
|
|
59
|
-
|
|
59
|
+
u,
|
|
60
60
|
{
|
|
61
61
|
draggableId: r,
|
|
62
62
|
index: n,
|
|
@@ -72,74 +72,71 @@ const { TBody: E } = x, K = () => {
|
|
|
72
72
|
{
|
|
73
73
|
className: "text-lg",
|
|
74
74
|
...d.dragHandleProps,
|
|
75
|
-
children: /* @__PURE__ */ a(
|
|
75
|
+
children: /* @__PURE__ */ a(b, {})
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
78
|
/* @__PURE__ */ a("h4", { children: r })
|
|
79
79
|
] }),
|
|
80
|
-
/* @__PURE__ */ a(
|
|
81
|
-
|
|
80
|
+
/* @__PURE__ */ a(C, { className: "lg:overflow-hidden", children: /* @__PURE__ */ a(
|
|
81
|
+
h,
|
|
82
82
|
{
|
|
83
83
|
droppableId: r,
|
|
84
84
|
type: "CONTENT",
|
|
85
|
-
children: (s) =>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
}
|
|
85
|
+
children: (s) => /* @__PURE__ */ p(
|
|
86
|
+
B,
|
|
87
|
+
{
|
|
88
|
+
ref: s.innerRef,
|
|
89
|
+
...s.droppableProps,
|
|
90
|
+
children: [
|
|
91
|
+
t[r]?.map(
|
|
92
|
+
(o, i) => /* @__PURE__ */ a(
|
|
93
|
+
u,
|
|
94
|
+
{
|
|
95
|
+
draggableId: o.id + i,
|
|
96
|
+
index: i,
|
|
97
|
+
children: (c) => /* @__PURE__ */ a(
|
|
98
|
+
A,
|
|
99
|
+
{
|
|
100
|
+
ref: c.innerRef,
|
|
101
|
+
taskId: o.id,
|
|
102
|
+
progress: o.progress,
|
|
103
|
+
checked: o.checked,
|
|
104
|
+
name: o.name,
|
|
105
|
+
dueDate: o.dueDate,
|
|
106
|
+
assignee: o.assignee,
|
|
107
|
+
priority: o.priority,
|
|
108
|
+
dragger: /* @__PURE__ */ a(
|
|
109
|
+
"span",
|
|
110
|
+
{
|
|
111
|
+
...c.dragHandleProps,
|
|
112
|
+
children: /* @__PURE__ */ a(b, {})
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
labelClass: O,
|
|
116
|
+
onChange: (N) => D(
|
|
117
|
+
N,
|
|
118
|
+
r
|
|
119
|
+
),
|
|
120
|
+
...c.draggableProps
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
},
|
|
124
|
+
o.id + i
|
|
125
|
+
)
|
|
126
|
+
),
|
|
127
|
+
s.placeholder
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
)
|
|
134
131
|
}
|
|
135
132
|
) }),
|
|
136
133
|
/* @__PURE__ */ a("div", { className: "mt-4", children: /* @__PURE__ */ a(
|
|
137
|
-
|
|
134
|
+
M,
|
|
138
135
|
{
|
|
139
|
-
isCreatingTask: r ===
|
|
136
|
+
isCreatingTask: r === x,
|
|
140
137
|
groupKey: r,
|
|
141
|
-
onAddTaskClick:
|
|
142
|
-
onCreateTask: (s) =>
|
|
138
|
+
onAddTaskClick: f,
|
|
139
|
+
onCreateTask: (s) => I(
|
|
143
140
|
r,
|
|
144
141
|
s
|
|
145
142
|
)
|
|
@@ -155,6 +152,6 @@ const { TBody: E } = x, K = () => {
|
|
|
155
152
|
] }) }) }) });
|
|
156
153
|
};
|
|
157
154
|
export {
|
|
158
|
-
|
|
155
|
+
J as default
|
|
159
156
|
};
|
|
160
157
|
//# sourceMappingURL=TaskList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskList.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/Tasks/components/TaskList.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Table from '@/components/ui/Table'\nimport TaskItem from '@/components/view/TaskItem'\nimport AddTask from './AddTask'\nimport { labelClass } from '../utils'\nimport reoderArray from '@/utils/reoderArray'\nimport reorderDragable from '@/utils/reorderDragable'\nimport { useTasksStore } from '../store/tasksStore'\nimport { Droppable, DragDropContext, Draggable } from '@hello-pangea/dnd'\nimport { MdDragIndicator } from 'react-icons/md'\nimport type { DropResult } from '@hello-pangea/dnd'\nimport type { Task } from '../types'\n\nconst { TBody } = Table\n\nconst TaskList = () => {\n const [selectedCreateTaskButton, setSelectedCreateTaskButton] = useState('')\n\n const { updateOrdered, updateGroups, ordered, groups } = useTasksStore()\n\n const onDragEnd = (result: DropResult) => {\n if (result.combine) {\n if (result.type === 'COLUMN') {\n const shallow = [...ordered]\n shallow.splice(result.source.index, 1)\n updateOrdered(shallow)\n return\n }\n\n const column = groups[result.source.droppableId]\n const withQuoteRemoved = [...column]\n withQuoteRemoved.splice(result.source.index, 1)\n const newColumns = {\n ...groups,\n [result.source.droppableId]: withQuoteRemoved,\n }\n updateGroups(newColumns)\n return\n }\n\n if (!result.destination) {\n return\n }\n\n const source = result.source\n const destination = result.destination\n\n if (\n source.droppableId === destination.droppableId &&\n source.index === destination.index\n ) {\n return\n }\n\n if (result.type === 'COLUMN') {\n const newOrdered = reoderArray(\n ordered,\n source.index,\n destination.index,\n )\n updateOrdered(newOrdered)\n return\n }\n\n const data = reorderDragable<Record<string, Task[]>>({\n quoteMap: groups,\n source,\n destination,\n })\n\n updateGroups(data.quoteMap)\n }\n\n const handleChange = (taskId: string, groupKey: string) => {\n const newData = { ...groups }\n\n newData[groupKey] = newData[groupKey].filter((task) => {\n if (task.id === taskId) {\n task.checked = !task.checked\n }\n return task\n })\n\n updateGroups(newData)\n }\n\n const handleCreatetask = (key: string, task: Task) => {\n const newData = { ...groups }\n newData[key].push(task)\n updateGroups(newData)\n setSelectedCreateTaskButton('')\n }\n\n return (\n <DragDropContext onDragEnd={(result) => onDragEnd(result)}>\n <Droppable droppableId=\"board\" type=\"COLUMN\" direction=\"vertical\">\n {(provided) => (\n <div ref={provided.innerRef} {...provided.droppableProps}>\n <div className=\"flex flex-col gap-10\">\n {ordered.map((key, index) => (\n <Draggable\n key={key}\n draggableId={key}\n index={index}\n >\n {(provided) => (\n <div\n ref={provided.innerRef}\n {...provided.draggableProps}\n >\n <div className=\"flex items-center gap-2 mb-4\">\n <span\n className=\"text-lg\"\n {...provided.dragHandleProps}\n >\n <MdDragIndicator />\n </span>\n <h4>{key}</h4>\n </div>\n <Table className=\"lg:overflow-hidden\">\n <Droppable\n droppableId={key}\n type=\"CONTENT\"\n >\n {(dropProvided) => (\n <TBody\n ref={\n dropProvided.innerRef\n }\n {...dropProvided.droppableProps}\n >\n {groups[key]?.map(\n (\n item,\n index,\n ) => (\n <Draggable\n key={\n item.id +\n index\n }\n draggableId={\n item.id +\n index\n }\n index={\n index\n }\n >\n {(\n provided,\n ) => (\n <TaskItem\n ref={\n provided.innerRef\n }\n taskId={\n item.id\n }\n progress={\n item.progress\n }\n checked={\n item.checked\n }\n name={\n item.name\n }\n dueDate={\n item.dueDate as number\n }\n assignee={\n item.assignee\n }\n priority={\n item.priority\n }\n dragger={\n <span\n {...provided.dragHandleProps}\n >\n <MdDragIndicator />\n </span>\n }\n labelClass={\n labelClass\n }\n onChange={(\n taskId,\n ) =>\n handleChange(\n taskId,\n key,\n )\n }\n {...provided.draggableProps}\n />\n )}\n </Draggable>\n ),\n )}\n {\n dropProvided.placeholder\n }\n </TBody>\n )}\n </Droppable>\n </Table>\n <div className=\"mt-4\">\n <AddTask\n isCreatingTask={\n key ===\n selectedCreateTaskButton\n }\n groupKey={key}\n onAddTaskClick={\n setSelectedCreateTaskButton\n }\n onCreateTask={(task) =>\n handleCreatetask(\n key,\n task,\n )\n }\n />\n </div>\n </div>\n )}\n </Draggable>\n ))}\n {provided.placeholder}\n </div>\n </div>\n )}\n </Droppable>\n </DragDropContext>\n )\n}\n\nexport default TaskList\n"],"names":["TBody","Table","TaskList","selectedCreateTaskButton","setSelectedCreateTaskButton","useState","updateOrdered","updateGroups","ordered","groups","useTasksStore","onDragEnd","result","shallow","withQuoteRemoved","newColumns","source","destination","newOrdered","reoderArray","data","reorderDragable","handleChange","taskId","groupKey","newData","task","handleCreatetask","key","jsx","DragDropContext","Droppable","provided","jsxs","index","Draggable","MdDragIndicator","dropProvided","_a","item","TaskItem","labelClass","AddTask"],"mappings":";;;;;;;;;;;;AAaA,MAAM,EAAE,OAAAA,MAAUC,GAEZC,IAAW,MAAM;AACnB,QAAM,CAACC,GAA0BC,CAA2B,IAAIC,EAAS,EAAE,GAErE,EAAE,eAAAC,GAAe,cAAAC,GAAc,SA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;AAAA,EAAA,GACd,EAAA,CACJ,GAER,GACJ;AAER;"}
|
|
1
|
+
{"version":3,"file":"TaskList.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/Tasks/components/TaskList.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Table from '@/components/ui/Table'\nimport TaskItem from '@/components/view/TaskItem'\nimport AddTask from './AddTask'\nimport { labelClass } from '../utils'\nimport reoderArray from '@/utils/reoderArray'\nimport reorderDragable from '@/utils/reorderDragable'\nimport { useTasksStore } from '../store/tasksStore'\nimport { Droppable, DragDropContext, Draggable } from '@hello-pangea/dnd'\nimport { MdDragIndicator } from 'react-icons/md'\nimport type { DropResult } from '@hello-pangea/dnd'\nimport type { Task } from '../types'\n\nconst { TBody } = Table\n\nconst TaskList = () => {\n const [selectedCreateTaskButton, setSelectedCreateTaskButton] = useState('')\n\n const { updateOrdered, updateGroups, ordered, groups } = useTasksStore()\n\n const onDragEnd = (result: DropResult) => {\n if (result.combine) {\n if (result.type === 'COLUMN') {\n const shallow = [...ordered]\n shallow.splice(result.source.index, 1)\n updateOrdered(shallow)\n return\n }\n\n const column = groups[result.source.droppableId]\n const withQuoteRemoved = [...column]\n withQuoteRemoved.splice(result.source.index, 1)\n const newColumns = {\n ...groups,\n [result.source.droppableId]: withQuoteRemoved,\n }\n updateGroups(newColumns)\n return\n }\n\n if (!result.destination) {\n return\n }\n\n const source = result.source\n const destination = result.destination\n\n if (\n source.droppableId === destination.droppableId &&\n source.index === destination.index\n ) {\n return\n }\n\n if (result.type === 'COLUMN') {\n const newOrdered = reoderArray(\n ordered,\n source.index,\n destination.index,\n )\n updateOrdered(newOrdered)\n return\n }\n\n const data = reorderDragable<Record<string, Task[]>>({\n quoteMap: groups,\n source,\n destination,\n })\n\n updateGroups(data.quoteMap)\n }\n\n const handleChange = (taskId: string, groupKey: string) => {\n const newData = { ...groups }\n\n newData[groupKey] = newData[groupKey].filter((task) => {\n if (task.id === taskId) {\n task.checked = !task.checked\n }\n return task\n })\n\n updateGroups(newData)\n }\n\n const handleCreatetask = (key: string, task: Task) => {\n const newData = { ...groups }\n newData[key].push(task)\n updateGroups(newData)\n setSelectedCreateTaskButton('')\n }\n\n return (\n <DragDropContext onDragEnd={(result) => onDragEnd(result)}>\n <Droppable droppableId=\"board\" type=\"COLUMN\" direction=\"vertical\">\n {(provided) => (\n <div ref={provided.innerRef} {...provided.droppableProps}>\n <div className=\"flex flex-col gap-10\">\n {ordered.map((key, index) => (\n <Draggable\n key={key}\n draggableId={key}\n index={index}\n >\n {(provided) => (\n <div\n ref={provided.innerRef}\n {...provided.draggableProps}\n >\n <div className=\"flex items-center gap-2 mb-4\">\n <span\n className=\"text-lg\"\n {...provided.dragHandleProps}\n >\n <MdDragIndicator />\n </span>\n <h4>{key}</h4>\n </div>\n <Table className=\"lg:overflow-hidden\">\n <Droppable\n droppableId={key}\n type=\"CONTENT\"\n >\n {(dropProvided) => (\n <TBody\n ref={\n dropProvided.innerRef\n }\n {...dropProvided.droppableProps}\n >\n {groups[key]?.map(\n (\n item,\n index,\n ) => (\n <Draggable\n key={\n item.id +\n index\n }\n draggableId={\n item.id +\n index\n }\n index={\n index\n }\n >\n {(\n provided,\n ) => (\n <TaskItem\n ref={\n provided.innerRef\n }\n taskId={\n item.id\n }\n progress={\n item.progress\n }\n checked={\n item.checked\n }\n name={\n item.name\n }\n dueDate={\n item.dueDate as number\n }\n assignee={\n item.assignee\n }\n priority={\n item.priority\n }\n dragger={\n <span\n {...provided.dragHandleProps}\n >\n <MdDragIndicator />\n </span>\n }\n labelClass={\n labelClass\n }\n onChange={(\n taskId,\n ) =>\n handleChange(\n taskId,\n key,\n )\n }\n {...provided.draggableProps}\n />\n )}\n </Draggable>\n ),\n )}\n {\n dropProvided.placeholder\n }\n </TBody>\n )}\n </Droppable>\n </Table>\n <div className=\"mt-4\">\n <AddTask\n isCreatingTask={\n key ===\n selectedCreateTaskButton\n }\n groupKey={key}\n onAddTaskClick={\n setSelectedCreateTaskButton\n }\n onCreateTask={(task) =>\n handleCreatetask(\n key,\n task,\n )\n }\n />\n </div>\n </div>\n )}\n </Draggable>\n ))}\n {provided.placeholder}\n </div>\n </div>\n )}\n </Droppable>\n </DragDropContext>\n )\n}\n\nexport default TaskList\n"],"names":["TBody","Table","TaskList","selectedCreateTaskButton","setSelectedCreateTaskButton","useState","updateOrdered","updateGroups","ordered","groups","useTasksStore","onDragEnd","result","shallow","withQuoteRemoved","newColumns","source","destination","newOrdered","reoderArray","data","reorderDragable","handleChange","taskId","groupKey","newData","task","handleCreatetask","key","jsx","DragDropContext","Droppable","provided","jsxs","index","Draggable","MdDragIndicator","dropProvided","item","TaskItem","labelClass","AddTask"],"mappings":";;;;;;;;;;;;AAaA,MAAM,EAAE,OAAAA,MAAUC,GAEZC,IAAW,MAAM;AACnB,QAAM,CAACC,GAA0BC,CAA2B,IAAIC,EAAS,EAAE,GAErE,EAAE,eAAAC,GAAe,cAAAC,GAAc,SAAAC,GAAS,QAAAC,EAAA,IAAWC,EAAA,GAEnDC,IAAY,CAACC,MAAuB;AACtC,QAAIA,EAAO,SAAS;AAChB,UAAIA,EAAO,SAAS,UAAU;AAC1B,cAAMC,IAAU,CAAC,GAAGL,CAAO;AAC3B,QAAAK,EAAQ,OAAOD,EAAO,OAAO,OAAO,CAAC,GACrCN,EAAcO,CAAO;AACrB;AAAA,MACJ;AAGA,YAAMC,IAAmB,CAAC,GADXL,EAAOG,EAAO,OAAO,WAAW,CACZ;AACnC,MAAAE,EAAiB,OAAOF,EAAO,OAAO,OAAO,CAAC;AAC9C,YAAMG,IAAa;AAAA,QACf,GAAGN;AAAA,QACH,CAACG,EAAO,OAAO,WAAW,GAAGE;AAAA,MAAA;AAEjC,MAAAP,EAAaQ,CAAU;AACvB;AAAA,IACJ;AAEA,QAAI,CAACH,EAAO;AACR;AAGJ,UAAMI,IAASJ,EAAO,QAChBK,IAAcL,EAAO;AAE3B,QACII,EAAO,gBAAgBC,EAAY,eACnCD,EAAO,UAAUC,EAAY;AAE7B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,EAAS;AAAA,gCAAA;AAAA,8BAAA;AAAA,4BACjB;AAAA,4BA1DAM,EAAK,KACLJ;AAAAA,0BAAA;AAAA,wBA2DR;AAAA,wBAIJG,EAAa;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAErB;AAAA,cAAA,GAGZ;AAAA,cACA,gBAAAR,EAAC,OAAA,EAAI,WAAU,QACX,UAAA,gBAAAA;AAAA,gBAACY;AAAA,gBAAA;AAAA,kBACG,gBACIb,MACAzB;AAAA,kBAEJ,UAAUyB;AAAA,kBACV,gBACIxB;AAAA,kBAEJ,cAAc,CAACsB,MACXC;AAAA,oBACIC;AAAA,oBACAF;AAAA,kBAAA;AAAA,gBACJ;AAAA,cAAA,EAER,CACJ;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,MA7HCE;AAAA,IAAA,CAgIZ;AAAA,IACAI,EAAS;AAAA,EAAA,GACd,EAAA,CACJ,GAER,GACJ;AAER;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../components/ui/Select/index.js";
|
|
3
|
-
import
|
|
3
|
+
import i from "../../../../components/ui/Select/Select.js";
|
|
4
4
|
const r = [
|
|
5
5
|
{ value: "thisMonth", label: "Monthly" },
|
|
6
6
|
{ value: "thisWeek", label: "Weekly" },
|
|
7
7
|
{ value: "thisYear", label: "Annualy" }
|
|
8
|
-
],
|
|
8
|
+
], o = ({
|
|
9
9
|
selectedPeriod: s,
|
|
10
|
-
onSelectedPeriodChange:
|
|
10
|
+
onSelectedPeriodChange: t
|
|
11
11
|
}) => /* @__PURE__ */ a("div", { className: "flex flex-col md:flex-row md:items-center justify-between mb-2 gap-4", children: [
|
|
12
12
|
/* @__PURE__ */ a("div", { children: [
|
|
13
13
|
/* @__PURE__ */ l("h4", { className: "mb-1", children: "Analytic overview" }),
|
|
@@ -16,7 +16,7 @@ const r = [
|
|
|
16
16
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
17
17
|
/* @__PURE__ */ l("span", { children: "Show by:" }),
|
|
18
18
|
/* @__PURE__ */ l(
|
|
19
|
-
|
|
19
|
+
i,
|
|
20
20
|
{
|
|
21
21
|
className: "w-[150px]",
|
|
22
22
|
size: "sm",
|
|
@@ -27,14 +27,14 @@ const r = [
|
|
|
27
27
|
options: r,
|
|
28
28
|
isSearchable: !1,
|
|
29
29
|
onChange: (e) => {
|
|
30
|
-
e
|
|
30
|
+
e?.value && t(e?.value);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] })
|
|
35
35
|
] });
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
o as default,
|
|
38
38
|
r as options
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=AnalyticHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticHeader.js","sources":["../../../../../../lib/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\nimport Select from '@/components/ui/Select'\nimport type { Period } from '../types'\n\ntype AnalyticHeaderProps = {\n selectedPeriod: Period\n onSelectedPeriodChange: (value: Period) => void\n}\n\nexport const options: { value: Period; label: string }[] = [\n { value: 'thisMonth', label: 'Monthly' },\n { value: 'thisWeek', label: 'Weekly' },\n { value: 'thisYear', label: 'Annualy' },\n]\n\nconst AnalyticHeader = ({\n selectedPeriod,\n onSelectedPeriodChange,\n}: AnalyticHeaderProps) => {\n return (\n <div className=\"flex flex-col md:flex-row md:items-center justify-between mb-2 gap-4\">\n <div>\n <h4 className=\"mb-1\">Analytic overview</h4>\n <p>Explore the metrics to understand trends and drive.</p>\n </div>\n <div className=\"flex items-center gap-2\">\n <span>Show by:</span>\n <Select\n className=\"w-[150px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n onSelectedPeriodChange(option?.value)\n }\n }}\n />\n </div>\n </div>\n )\n}\n\nexport default AnalyticHeader\n"],"names":["options","AnalyticHeader","selectedPeriod","onSelectedPeriodChange","jsxs","jsx","Select","option"],"mappings":";;;AASO,MAAMA,IAA8C;AAAA,EACvD,EAAE,OAAO,aAAa,OAAO,UAAA;AAAA,EAC7B,EAAE,OAAO,YAAY,OAAO,SAAA;AAAA,EAC5B,EAAE,OAAO,YAAY,OAAO,UAAA;AAChC,GAEMC,IAAiB,CAAC;AAAA,EACpB,gBAAAC;AAAA,EACA,wBAAAC;AACJ,MAEQ,gBAAAC,EAAC,OAAA,EAAI,WAAU,wEACX,UAAA;AAAA,EAAA,gBAAAA,EAAC,OAAA,EACG,UAAA;AAAA,IAAA,gBAAAC,EAAC,MAAA,EAAG,WAAU,QAAO,UAAA,qBAAiB;AAAA,IACtC,gBAAAA,EAAC,OAAE,UAAA,sDAAA,CAAmD;AAAA,EAAA,GAC1D;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAK,UAAA,WAAA,CAAQ;AAAA,IACd,gBAAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,WAAU;AAAA,QACV,MAAK;AAAA,QACL,aAAY;AAAA,QACZ,OAAON,EAAQ;AAAA,UACX,CAACO,MAAWA,EAAO,UAAUL;AAAA,QAAA;AAAA,QAEjC,SAAAF;AAAA,QACA,cAAc;AAAA,QACd,UAAU,CAACO,MAAW;AAClB,UAAIA,
|
|
1
|
+
{"version":3,"file":"AnalyticHeader.js","sources":["../../../../../../lib/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\nimport Select from '@/components/ui/Select'\nimport type { Period } from '../types'\n\ntype AnalyticHeaderProps = {\n selectedPeriod: Period\n onSelectedPeriodChange: (value: Period) => void\n}\n\nexport const options: { value: Period; label: string }[] = [\n { value: 'thisMonth', label: 'Monthly' },\n { value: 'thisWeek', label: 'Weekly' },\n { value: 'thisYear', label: 'Annualy' },\n]\n\nconst AnalyticHeader = ({\n selectedPeriod,\n onSelectedPeriodChange,\n}: AnalyticHeaderProps) => {\n return (\n <div className=\"flex flex-col md:flex-row md:items-center justify-between mb-2 gap-4\">\n <div>\n <h4 className=\"mb-1\">Analytic overview</h4>\n <p>Explore the metrics to understand trends and drive.</p>\n </div>\n <div className=\"flex items-center gap-2\">\n <span>Show by:</span>\n <Select\n className=\"w-[150px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n onSelectedPeriodChange(option?.value)\n }\n }}\n />\n </div>\n </div>\n )\n}\n\nexport default AnalyticHeader\n"],"names":["options","AnalyticHeader","selectedPeriod","onSelectedPeriodChange","jsxs","jsx","Select","option"],"mappings":";;;AASO,MAAMA,IAA8C;AAAA,EACvD,EAAE,OAAO,aAAa,OAAO,UAAA;AAAA,EAC7B,EAAE,OAAO,YAAY,OAAO,SAAA;AAAA,EAC5B,EAAE,OAAO,YAAY,OAAO,UAAA;AAChC,GAEMC,IAAiB,CAAC;AAAA,EACpB,gBAAAC;AAAA,EACA,wBAAAC;AACJ,MAEQ,gBAAAC,EAAC,OAAA,EAAI,WAAU,wEACX,UAAA;AAAA,EAAA,gBAAAA,EAAC,OAAA,EACG,UAAA;AAAA,IAAA,gBAAAC,EAAC,MAAA,EAAG,WAAU,QAAO,UAAA,qBAAiB;AAAA,IACtC,gBAAAA,EAAC,OAAE,UAAA,sDAAA,CAAmD;AAAA,EAAA,GAC1D;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAK,UAAA,WAAA,CAAQ;AAAA,IACd,gBAAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,WAAU;AAAA,QACV,MAAK;AAAA,QACL,aAAY;AAAA,QACZ,OAAON,EAAQ;AAAA,UACX,CAACO,MAAWA,EAAO,UAAUL;AAAA,QAAA;AAAA,QAEjC,SAAAF;AAAA,QACA,cAAc;AAAA,QACd,UAAU,CAACO,MAAW;AAClB,UAAIA,GAAQ,SACRJ,EAAuBI,GAAQ,KAAK;AAAA,QAE5C;AAAA,MAAA;AAAA,IAAA;AAAA,EACJ,EAAA,CACJ;AAAA,GACJ;"}
|
|
@@ -6,9 +6,9 @@ import b from "../../../../components/shared/GrowShrinkValue.js";
|
|
|
6
6
|
import w from "../../../../components/shared/AbbreviateNumber.js";
|
|
7
7
|
import C from "../../../../components/shared/Chart.js";
|
|
8
8
|
import { useThemeStore as S } from "../../../../store/themeStore.js";
|
|
9
|
-
import
|
|
9
|
+
import p from "../../../../utils/classNames.js";
|
|
10
10
|
import { COLOR_4 as k, COLOR_2 as y, COLOR_1 as N } from "../../../../constants/chart.constant.js";
|
|
11
|
-
import { options as
|
|
11
|
+
import { options as f } from "../constants.js";
|
|
12
12
|
import { NumericFormat as u } from "react-number-format";
|
|
13
13
|
import { TbCoin as O, TbShoppingBagCheck as P, TbEye as I } from "react-icons/tb";
|
|
14
14
|
import T from "../../../../components/ui/Card/Card.js";
|
|
@@ -19,27 +19,27 @@ const j = {
|
|
|
19
19
|
totalImpression: k
|
|
20
20
|
}, m = (t) => {
|
|
21
21
|
const {
|
|
22
|
-
title:
|
|
22
|
+
title: o,
|
|
23
23
|
value: a,
|
|
24
24
|
label: r,
|
|
25
25
|
icon: c,
|
|
26
26
|
growShrink: n,
|
|
27
27
|
iconClass: s,
|
|
28
|
-
active:
|
|
28
|
+
active: i,
|
|
29
29
|
compareFrom: h,
|
|
30
30
|
onClick: v
|
|
31
31
|
} = t;
|
|
32
32
|
return /* @__PURE__ */ e(
|
|
33
33
|
"button",
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
35
|
+
className: p(
|
|
36
36
|
"p-4 rounded-2xl cursor-pointer ltr:text-left rtl:text-right transition duration-150 outline-none",
|
|
37
|
-
|
|
37
|
+
i && "bg-white dark:bg-gray-900 shadow-md"
|
|
38
38
|
),
|
|
39
39
|
onClick: () => v(r),
|
|
40
40
|
children: /* @__PURE__ */ l("div", { className: "flex md:flex-col-reverse gap-2 2xl:flex-row justify-between relative", children: [
|
|
41
41
|
/* @__PURE__ */ l("div", { children: [
|
|
42
|
-
/* @__PURE__ */ e("div", { className: "mb-4 text-sm font-semibold", children:
|
|
42
|
+
/* @__PURE__ */ e("div", { className: "mb-4 text-sm font-semibold", children: o }),
|
|
43
43
|
/* @__PURE__ */ e("h3", { className: "mb-1", children: a }),
|
|
44
44
|
/* @__PURE__ */ l("div", { className: "inline-flex items-center flex-wrap gap-1", children: [
|
|
45
45
|
/* @__PURE__ */ e(
|
|
@@ -58,7 +58,7 @@ const j = {
|
|
|
58
58
|
/* @__PURE__ */ e(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
|
-
className:
|
|
61
|
+
className: p(
|
|
62
62
|
"flex items-center justify-center min-h-12 min-w-12 max-h-12 max-w-12 text-gray-900 rounded-full text-2xl",
|
|
63
63
|
s
|
|
64
64
|
),
|
|
@@ -69,8 +69,8 @@ const j = {
|
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
}, K = ({ data: t }) => {
|
|
72
|
-
const [
|
|
73
|
-
(
|
|
72
|
+
const [o, a] = d("totalProfit"), [r, c] = d("thisMonth"), n = S(
|
|
73
|
+
(i) => i.layout.sideNavCollapse
|
|
74
74
|
), s = g(!0);
|
|
75
75
|
return x(() => {
|
|
76
76
|
if (!n && s.current) {
|
|
@@ -87,13 +87,13 @@ const j = {
|
|
|
87
87
|
className: "w-[120px]",
|
|
88
88
|
size: "sm",
|
|
89
89
|
placeholder: "Select period",
|
|
90
|
-
value:
|
|
91
|
-
(
|
|
90
|
+
value: f.filter(
|
|
91
|
+
(i) => i.value === r
|
|
92
92
|
),
|
|
93
|
-
options:
|
|
93
|
+
options: f,
|
|
94
94
|
isSearchable: !1,
|
|
95
|
-
onChange: (
|
|
96
|
-
|
|
95
|
+
onChange: (i) => {
|
|
96
|
+
i?.value && c(i?.value);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -116,7 +116,7 @@ const j = {
|
|
|
116
116
|
iconClass: "bg-sky-200",
|
|
117
117
|
icon: /* @__PURE__ */ e(O, {}),
|
|
118
118
|
label: "totalProfit",
|
|
119
|
-
active:
|
|
119
|
+
active: o === "totalProfit",
|
|
120
120
|
compareFrom: t.totalProfit[r].comparePeriod,
|
|
121
121
|
onClick: a
|
|
122
122
|
}
|
|
@@ -137,7 +137,7 @@ const j = {
|
|
|
137
137
|
iconClass: "bg-emerald-200",
|
|
138
138
|
icon: /* @__PURE__ */ e(P, {}),
|
|
139
139
|
label: "totalOrder",
|
|
140
|
-
active:
|
|
140
|
+
active: o === "totalOrder",
|
|
141
141
|
compareFrom: t.totalProfit[r].comparePeriod,
|
|
142
142
|
onClick: a
|
|
143
143
|
}
|
|
@@ -156,7 +156,7 @@ const j = {
|
|
|
156
156
|
iconClass: "bg-purple-200",
|
|
157
157
|
icon: /* @__PURE__ */ e(I, {}),
|
|
158
158
|
label: "totalImpression",
|
|
159
|
-
active:
|
|
159
|
+
active: o === "totalImpression",
|
|
160
160
|
compareFrom: t.totalProfit[r].comparePeriod,
|
|
161
161
|
onClick: a
|
|
162
162
|
}
|
|
@@ -166,12 +166,12 @@ const j = {
|
|
|
166
166
|
C,
|
|
167
167
|
{
|
|
168
168
|
type: "line",
|
|
169
|
-
series: t[
|
|
170
|
-
xAxis: t[
|
|
169
|
+
series: t[o][r].chartData.series,
|
|
170
|
+
xAxis: t[o][r].chartData.date,
|
|
171
171
|
height: "410px",
|
|
172
172
|
customOptions: {
|
|
173
173
|
legend: { show: !1 },
|
|
174
|
-
colors: [j[
|
|
174
|
+
colors: [j[o]]
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overview.js","sources":["../../../../../../lib/@ecme/views/dashboards/EcommerceDashboard/components/Overview.tsx"],"sourcesContent":["import { useState, useEffect, useRef } from 'react'\nimport Card from '@/components/ui/Card'\nimport Select from '@/components/ui/Select'\nimport GrowShrinkValue from '@/components/shared/GrowShrinkValue'\nimport AbbreviateNumber from '@/components/shared/AbbreviateNumber'\nimport Chart from '@/components/shared/Chart'\nimport { useThemeStore } from '@/store/themeStore'\nimport classNames from '@/utils/classNames'\nimport { COLOR_1, COLOR_2, COLOR_4 } from '@/constants/chart.constant'\nimport { options } from '../constants'\nimport { NumericFormat } from 'react-number-format'\nimport { TbCoin, TbShoppingBagCheck, TbEye } from 'react-icons/tb'\nimport type { ReactNode } from 'react'\nimport type { StatisticData, Period, StatisticCategory } from '../types'\n\ntype StatisticCardProps = {\n title: string\n value: number | ReactNode\n icon: ReactNode\n growShrink: number\n iconClass: string\n label: StatisticCategory\n compareFrom: string\n active: boolean\n onClick: (label: StatisticCategory) => void\n}\n\ntype StatisticGroupsProps = {\n data: StatisticData\n}\n\nconst chartColors: Record<StatisticCategory, string> = {\n totalProfit: COLOR_1,\n totalOrder: COLOR_2,\n totalImpression: COLOR_4,\n}\n\nconst StatisticCard = (props: StatisticCardProps) => {\n const {\n title,\n value,\n label,\n icon,\n growShrink,\n iconClass,\n active,\n compareFrom,\n onClick,\n } = props\n\n return (\n <button\n className={classNames(\n 'p-4 rounded-2xl cursor-pointer ltr:text-left rtl:text-right transition duration-150 outline-none',\n active && 'bg-white dark:bg-gray-900 shadow-md',\n )}\n onClick={() => onClick(label)}\n >\n <div className=\"flex md:flex-col-reverse gap-2 2xl:flex-row justify-between relative\">\n <div>\n <div className=\"mb-4 text-sm font-semibold\">{title}</div>\n <h3 className=\"mb-1\">{value}</h3>\n <div className=\"inline-flex items-center flex-wrap gap-1\">\n <GrowShrinkValue\n className=\"font-bold\"\n value={growShrink}\n suffix=\"%\"\n positiveIcon=\"+\"\n negativeIcon=\"\"\n />\n <span>{compareFrom}</span>\n </div>\n </div>\n <div\n className={classNames(\n 'flex items-center justify-center min-h-12 min-w-12 max-h-12 max-w-12 text-gray-900 rounded-full text-2xl',\n iconClass,\n )}\n >\n {icon}\n </div>\n </div>\n </button>\n )\n}\n\nconst Overview = ({ data }: StatisticGroupsProps) => {\n const [selectedCategory, setSelectedCategory] =\n useState<StatisticCategory>('totalProfit')\n\n const [selectedPeriod, setSelectedPeriod] = useState<Period>('thisMonth')\n\n const sideNavCollapse = useThemeStore(\n (state) => state.layout.sideNavCollapse,\n )\n\n const isFirstRender = useRef(true)\n\n useEffect(() => {\n if (!sideNavCollapse && isFirstRender.current) {\n isFirstRender.current = false\n return\n }\n\n if (!isFirstRender.current) {\n window.dispatchEvent(new Event('resize'))\n }\n }, [sideNavCollapse])\n\n return (\n <Card>\n <div className=\"flex items-center justify-between\">\n <h4>Overview</h4>\n <Select\n className=\"w-[120px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n setSelectedPeriod(option?.value)\n }\n }}\n />\n </div>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4 rounded-2xl p-3 bg-gray-100 dark:bg-gray-700 mt-4\">\n <StatisticCard\n title=\"Total profit\"\n value={\n <NumericFormat\n displayType=\"text\"\n value={data.totalProfit[selectedPeriod].value}\n prefix={'$'}\n thousandSeparator={true}\n />\n }\n growShrink={data.totalProfit[selectedPeriod].growShrink}\n iconClass=\"bg-sky-200\"\n icon={<TbCoin />}\n label=\"totalProfit\"\n active={selectedCategory === 'totalProfit'}\n compareFrom={data.totalProfit[selectedPeriod].comparePeriod}\n onClick={setSelectedCategory}\n />\n <StatisticCard\n title=\"Total order\"\n value={\n <NumericFormat\n displayType=\"text\"\n value={data.totalOrder[selectedPeriod].value}\n thousandSeparator={true}\n />\n }\n growShrink={data.totalOrder[selectedPeriod].growShrink}\n iconClass=\"bg-emerald-200\"\n icon={<TbShoppingBagCheck />}\n label=\"totalOrder\"\n active={selectedCategory === 'totalOrder'}\n compareFrom={data.totalProfit[selectedPeriod].comparePeriod}\n onClick={setSelectedCategory}\n />\n <StatisticCard\n title=\"Impression\"\n value={\n <AbbreviateNumber\n value={data.totalImpression[selectedPeriod].value}\n />\n }\n growShrink={data.totalImpression[selectedPeriod].growShrink}\n iconClass=\"bg-purple-200\"\n icon={<TbEye />}\n label=\"totalImpression\"\n active={selectedCategory === 'totalImpression'}\n compareFrom={data.totalProfit[selectedPeriod].comparePeriod}\n onClick={setSelectedCategory}\n />\n </div>\n <Chart\n type=\"line\"\n series={data[selectedCategory][selectedPeriod].chartData.series}\n xAxis={data[selectedCategory][selectedPeriod].chartData.date}\n height=\"410px\"\n customOptions={{\n legend: { show: false },\n colors: [chartColors[selectedCategory]],\n }}\n />\n </Card>\n )\n}\n\nexport default Overview\n"],"names":["chartColors","COLOR_1","COLOR_2","COLOR_4","StatisticCard","props","title","value","label","icon","growShrink","iconClass","active","compareFrom","onClick","jsx","classNames","jsxs","GrowShrinkValue","Overview","data","selectedCategory","setSelectedCategory","useState","selectedPeriod","setSelectedPeriod","sideNavCollapse","useThemeStore","state","isFirstRender","useRef","useEffect","Card","Select","options","option","NumericFormat","TbCoin","TbShoppingBagCheck","AbbreviateNumber","TbEye","Chart"],"mappings":";;;;;;;;;;;;;;;AA+BA,MAAMA,IAAiD;AAAA,EACnD,aAAaC;AAAA,EACb,YAAYC;AAAA,EACZ,iBAAiBC;AACrB,GAEMC,IAAgB,CAACC,MAA8B;AACjD,QAAM;AAAA,IACF,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,EAAA,IACAT;AAEJ,SAC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cACG,aAAY;AAAA,cACZ,OAAOhB,EAAK,WAAWI,CAAc,EAAE;AAAA,cACvC,mBAAmB;AAAA,YAAA;AAAA,UAAA;AAAA,UAG3B,YAAYJ,EAAK,WAAWI,CAAc,EAAE;AAAA,UAC5C,WAAU;AAAA,UACV,wBAAOc,GAAA,EAAmB;AAAA,UAC1B,OAAM;AAAA,UACN,QAAQjB,MAAqB;AAAA,UAC7B,aAAaD,EAAK,YAAYI,CAAc,EAAE;AAAA,UAC9C,SAASF;AAAA,QAAA;AAAA,MAAA;AAAA,MAEb,gBAAAP;AAAA,QAACX;AAAA,QAAA;AAAA,UACG,OAAM;AAAA,UACN,OACI,gBAAAW;AAAA,YAACwB;AAAA,YAAA;AAAA,cACG,OAAOnB,EAAK,gBAAgBI,CAAc,EAAE;AAAA,YAAA;AAAA,UAAA;AAAA,UAGpD,YAAYJ,EAAK,gBAAgBI,CAAc,EAAE;AAAA,UACjD,WAAU;AAAA,UACV,wBAAOgB,GAAA,EAAM;AAAA,UACb,OAAM;AAAA,UACN,QAAQnB,MAAqB;AAAA,UAC7B,aAAaD,EAAK,YAAYI,CAAc,EAAE;AAAA,UAC9C,SAASF;AAAA,QAAA;AAAA,MAAA;AAAA,IACb,GACJ;AAAA,IACA,gBAAAP;AAAA,MAAC0B;AAAA,MAAA;AAAA,QACG,MAAK;AAAA,QACL,QAAQrB,EAAKC,CAAgB,EAAEG,CAAc,EAAE,UAAU;AAAA,QACzD,OAAOJ,EAAKC,CAAgB,EAAEG,CAAc,EAAE,UAAU;AAAA,QACxD,QAAO;AAAA,QACP,eAAe;AAAA,UACX,QAAQ,EAAE,MAAM,GAAA;AAAA,UAChB,QAAQ,CAACxB,EAAYqB,CAAgB,CAAC;AAAA,QAAA;AAAA,MAC1C;AAAA,IAAA;AAAA,EACJ,GACJ;AAER;"}
|
|
1
|
+
{"version":3,"file":"Overview.js","sources":["../../../../../../lib/@ecme/views/dashboards/EcommerceDashboard/components/Overview.tsx"],"sourcesContent":["import { useState, useEffect, useRef } from 'react'\nimport Card from '@/components/ui/Card'\nimport Select from '@/components/ui/Select'\nimport GrowShrinkValue from '@/components/shared/GrowShrinkValue'\nimport AbbreviateNumber from '@/components/shared/AbbreviateNumber'\nimport Chart from '@/components/shared/Chart'\nimport { useThemeStore } from '@/store/themeStore'\nimport classNames from '@/utils/classNames'\nimport { COLOR_1, COLOR_2, COLOR_4 } from '@/constants/chart.constant'\nimport { options } from '../constants'\nimport { NumericFormat } from 'react-number-format'\nimport { TbCoin, TbShoppingBagCheck, TbEye } from 'react-icons/tb'\nimport type { ReactNode } from 'react'\nimport type { StatisticData, Period, StatisticCategory } from '../types'\n\ntype StatisticCardProps = {\n title: string\n value: number | ReactNode\n icon: ReactNode\n growShrink: number\n iconClass: string\n label: StatisticCategory\n compareFrom: string\n active: boolean\n onClick: (label: StatisticCategory) => void\n}\n\ntype StatisticGroupsProps = {\n data: StatisticData\n}\n\nconst chartColors: Record<StatisticCategory, string> = {\n totalProfit: COLOR_1,\n totalOrder: COLOR_2,\n totalImpression: COLOR_4,\n}\n\nconst StatisticCard = (props: StatisticCardProps) => {\n const {\n title,\n value,\n label,\n icon,\n growShrink,\n iconClass,\n active,\n compareFrom,\n onClick,\n } = props\n\n return (\n <button\n className={classNames(\n 'p-4 rounded-2xl cursor-pointer ltr:text-left rtl:text-right transition duration-150 outline-none',\n active && 'bg-white dark:bg-gray-900 shadow-md',\n )}\n onClick={() => onClick(label)}\n >\n <div className=\"flex md:flex-col-reverse gap-2 2xl:flex-row justify-between relative\">\n <div>\n <div className=\"mb-4 text-sm font-semibold\">{title}</div>\n <h3 className=\"mb-1\">{value}</h3>\n <div className=\"inline-flex items-center flex-wrap gap-1\">\n <GrowShrinkValue\n className=\"font-bold\"\n value={growShrink}\n suffix=\"%\"\n positiveIcon=\"+\"\n negativeIcon=\"\"\n />\n <span>{compareFrom}</span>\n </div>\n </div>\n <div\n className={classNames(\n 'flex items-center justify-center min-h-12 min-w-12 max-h-12 max-w-12 text-gray-900 rounded-full text-2xl',\n iconClass,\n )}\n >\n {icon}\n </div>\n </div>\n </button>\n )\n}\n\nconst Overview = ({ data }: StatisticGroupsProps) => {\n const [selectedCategory, setSelectedCategory] =\n useState<StatisticCategory>('totalProfit')\n\n const [selectedPeriod, setSelectedPeriod] = useState<Period>('thisMonth')\n\n const sideNavCollapse = useThemeStore(\n (state) => state.layout.sideNavCollapse,\n )\n\n const isFirstRender = useRef(true)\n\n useEffect(() => {\n if (!sideNavCollapse && isFirstRender.current) {\n isFirstRender.current = false\n return\n }\n\n if (!isFirstRender.current) {\n window.dispatchEvent(new Event('resize'))\n }\n }, [sideNavCollapse])\n\n return (\n <Card>\n <div className=\"flex items-center justify-between\">\n <h4>Overview</h4>\n <Select\n className=\"w-[120px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n setSelectedPeriod(option?.value)\n }\n }}\n />\n </div>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4 rounded-2xl p-3 bg-gray-100 dark:bg-gray-700 mt-4\">\n <StatisticCard\n title=\"Total profit\"\n value={\n <NumericFormat\n displayType=\"text\"\n value={data.totalProfit[selectedPeriod].value}\n prefix={'$'}\n thousandSeparator={true}\n />\n }\n growShrink={data.totalProfit[selectedPeriod].growShrink}\n iconClass=\"bg-sky-200\"\n icon={<TbCoin />}\n label=\"totalProfit\"\n active={selectedCategory === 'totalProfit'}\n compareFrom={data.totalProfit[selectedPeriod].comparePeriod}\n onClick={setSelectedCategory}\n />\n <StatisticCard\n title=\"Total order\"\n value={\n <NumericFormat\n displayType=\"text\"\n value={data.totalOrder[selectedPeriod].value}\n thousandSeparator={true}\n />\n }\n growShrink={data.totalOrder[selectedPeriod].growShrink}\n iconClass=\"bg-emerald-200\"\n icon={<TbShoppingBagCheck />}\n label=\"totalOrder\"\n active={selectedCategory === 'totalOrder'}\n compareFrom={data.totalProfit[selectedPeriod].comparePeriod}\n onClick={setSelectedCategory}\n />\n <StatisticCard\n title=\"Impression\"\n value={\n <AbbreviateNumber\n value={data.totalImpression[selectedPeriod].value}\n />\n }\n growShrink={data.totalImpression[selectedPeriod].growShrink}\n iconClass=\"bg-purple-200\"\n icon={<TbEye />}\n label=\"totalImpression\"\n active={selectedCategory === 'totalImpression'}\n compareFrom={data.totalProfit[selectedPeriod].comparePeriod}\n onClick={setSelectedCategory}\n />\n </div>\n <Chart\n type=\"line\"\n series={data[selectedCategory][selectedPeriod].chartData.series}\n xAxis={data[selectedCategory][selectedPeriod].chartData.date}\n height=\"410px\"\n customOptions={{\n legend: { show: false },\n colors: [chartColors[selectedCategory]],\n }}\n />\n </Card>\n )\n}\n\nexport default Overview\n"],"names":["chartColors","COLOR_1","COLOR_2","COLOR_4","StatisticCard","props","title","value","label","icon","growShrink","iconClass","active","compareFrom","onClick","jsx","classNames","jsxs","GrowShrinkValue","Overview","data","selectedCategory","setSelectedCategory","useState","selectedPeriod","setSelectedPeriod","sideNavCollapse","useThemeStore","state","isFirstRender","useRef","useEffect","Card","Select","options","option","NumericFormat","TbCoin","TbShoppingBagCheck","AbbreviateNumber","TbEye","Chart"],"mappings":";;;;;;;;;;;;;;;AA+BA,MAAMA,IAAiD;AAAA,EACnD,aAAaC;AAAA,EACb,YAAYC;AAAA,EACZ,iBAAiBC;AACrB,GAEMC,IAAgB,CAACC,MAA8B;AACjD,QAAM;AAAA,IACF,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,EAAA,IACAT;AAEJ,SACI,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWC;AAAA,QACP;AAAA,QACAJ,KAAU;AAAA,MAAA;AAAA,MAEd,SAAS,MAAME,EAAQN,CAAK;AAAA,MAE5B,U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