@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,37 +1,36 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as h } from "react";
|
|
3
3
|
import "../../../../../components/ui/Button/index.js";
|
|
4
4
|
import "../../../../../components/ui/Dialog/index.js";
|
|
5
5
|
import "../../../../../components/ui/Tooltip/index.js";
|
|
6
6
|
import "../../../../../components/ui/Tag/index.js";
|
|
7
|
-
import
|
|
8
|
-
import { useImageGeneratorStore as
|
|
9
|
-
import { TbDownload as
|
|
10
|
-
import
|
|
7
|
+
import g from "../../../../../utils/sleep.js";
|
|
8
|
+
import { useImageGeneratorStore as x } from "../store/imageGeneratorStore.js";
|
|
9
|
+
import { TbDownload as N, TbHeartFilled as u, TbHeart as k, TbAlertTriangle as w } from "react-icons/tb";
|
|
10
|
+
import b from "../../../../../components/ui/Dialog/Dialog.js";
|
|
11
11
|
import t from "../../../../../components/ui/Tag/Tag.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
const { imageDialog: i, setImageDialog:
|
|
16
|
-
|
|
12
|
+
import r from "../../../../../components/ui/Tooltip/Tooltip.js";
|
|
13
|
+
import a from "../../../../../components/ui/Button/Button.js";
|
|
14
|
+
const H = () => {
|
|
15
|
+
const { imageDialog: i, setImageDialog: p } = x(), [s, n] = h(!1), m = async () => {
|
|
16
|
+
p({
|
|
17
17
|
open: !1,
|
|
18
18
|
props: i.props
|
|
19
|
-
}), await
|
|
19
|
+
}), await g(200), p({
|
|
20
20
|
open: !1,
|
|
21
21
|
props: {}
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
l.href = i.props.image || "", l.setAttribute("download", g), document.body.appendChild(l), l.click(), (f = l.parentNode) == null || f.removeChild(l);
|
|
22
|
+
}), n(!1);
|
|
23
|
+
}, d = () => {
|
|
24
|
+
const c = i.props.image?.split("/"), f = c[c?.length - 1], l = document.createElement("a");
|
|
25
|
+
l.href = i.props.image || "", l.setAttribute("download", f), document.body.appendChild(l), l.click(), l.parentNode?.removeChild(l);
|
|
27
26
|
};
|
|
28
27
|
return /* @__PURE__ */ e(
|
|
29
|
-
|
|
28
|
+
b,
|
|
30
29
|
{
|
|
31
30
|
isOpen: i.open,
|
|
32
31
|
width: 900,
|
|
33
|
-
onClose:
|
|
34
|
-
onRequestClose:
|
|
32
|
+
onClose: m,
|
|
33
|
+
onRequestClose: m,
|
|
35
34
|
children: /* @__PURE__ */ o("div", { className: "flex flex-col md:flex-row gap-4", children: [
|
|
36
35
|
/* @__PURE__ */ e("div", { className: "md:max-w-[400px]", children: /* @__PURE__ */ e(
|
|
37
36
|
"img",
|
|
@@ -61,34 +60,34 @@ const B = () => {
|
|
|
61
60
|
] })
|
|
62
61
|
] }),
|
|
63
62
|
/* @__PURE__ */ o("div", { className: "flex justify-end gap-2", children: [
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
|
|
63
|
+
/* @__PURE__ */ e(r, { title: "Download", children: /* @__PURE__ */ e(
|
|
64
|
+
a,
|
|
66
65
|
{
|
|
67
|
-
icon: /* @__PURE__ */ e(
|
|
66
|
+
icon: /* @__PURE__ */ e(N, {}),
|
|
68
67
|
shape: "circle",
|
|
69
68
|
size: "sm",
|
|
70
|
-
onClick:
|
|
69
|
+
onClick: d
|
|
71
70
|
}
|
|
72
71
|
) }),
|
|
73
72
|
i.props.type === "existing" && /* @__PURE__ */ e(
|
|
74
|
-
|
|
73
|
+
r,
|
|
75
74
|
{
|
|
76
|
-
title: /* @__PURE__ */ e("div", { className: "w-12 text-center", children:
|
|
75
|
+
title: /* @__PURE__ */ e("div", { className: "w-12 text-center", children: s ? "Dislike" : "Like" }),
|
|
77
76
|
children: /* @__PURE__ */ e(
|
|
78
|
-
|
|
77
|
+
a,
|
|
79
78
|
{
|
|
80
|
-
icon:
|
|
79
|
+
icon: s ? /* @__PURE__ */ e(u, { className: "text-pink-500" }) : /* @__PURE__ */ e(k, {}),
|
|
81
80
|
shape: "circle",
|
|
82
81
|
size: "sm",
|
|
83
|
-
onClick: () =>
|
|
82
|
+
onClick: () => n(!s)
|
|
84
83
|
}
|
|
85
84
|
)
|
|
86
85
|
}
|
|
87
86
|
),
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
|
|
87
|
+
/* @__PURE__ */ e(r, { title: "Report", children: /* @__PURE__ */ e(
|
|
88
|
+
a,
|
|
90
89
|
{
|
|
91
|
-
icon: /* @__PURE__ */ e(
|
|
90
|
+
icon: /* @__PURE__ */ e(w, {}),
|
|
92
91
|
shape: "circle",
|
|
93
92
|
size: "sm"
|
|
94
93
|
}
|
|
@@ -100,6 +99,6 @@ const B = () => {
|
|
|
100
99
|
);
|
|
101
100
|
};
|
|
102
101
|
export {
|
|
103
|
-
|
|
102
|
+
H as default
|
|
104
103
|
};
|
|
105
104
|
//# sourceMappingURL=ImageDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageDialog.js","sources":["../../../../../../../lib/@ecme/views/concepts/ai/Image/components/ImageDialog.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport Tooltip from '@/components/ui/Tooltip'\nimport Tag from '@/components/ui/Tag'\nimport sleep from '@/utils/sleep'\nimport { useImageGeneratorStore } from '../store/imageGeneratorStore'\nimport {\n TbDownload,\n TbHeart,\n TbHeartFilled,\n TbAlertTriangle,\n} from 'react-icons/tb'\n\nconst ImageDialog = () => {\n const { imageDialog, setImageDialog } = useImageGeneratorStore()\n\n const [liked, setLiked] = useState(false)\n\n const handleDialogClose = async () => {\n setImageDialog({\n open: false,\n props: imageDialog.props,\n })\n await sleep(200)\n setImageDialog({\n open: false,\n props: {},\n })\n setLiked(false)\n }\n\n const downloadFile = () => {\n const fileSegment = imageDialog.props.image?.split('/') as string[]\n const fileName = fileSegment[fileSegment?.length - 1]\n const link = document.createElement('a')\n link.href = imageDialog.props.image || ''\n link.setAttribute('download', fileName)\n document.body.appendChild(link)\n link.click()\n link.parentNode?.removeChild(link)\n }\n\n return (\n <Dialog\n isOpen={imageDialog.open}\n width={900}\n onClose={handleDialogClose}\n onRequestClose={handleDialogClose}\n >\n <div className=\"flex flex-col md:flex-row gap-4\">\n <div className=\"md:max-w-[400px]\">\n <img\n className=\"rounded-xl\"\n src={imageDialog.props.image}\n alt={imageDialog.props.prompt}\n />\n </div>\n <div className=\"flex flex-col justify-between flex-1 gap-4\">\n <div className=\"mt-2\">\n <h5 className=\"font-bold\">Prompt</h5>\n <p className=\"mt-4\">{imageDialog.props.prompt}</p>\n <div className=\"inline-flex gap-2 mt-6\">\n <Tag>Size: {imageDialog.props.size}</Tag>\n <Tag>Ratio: {imageDialog.props.ratio}</Tag>\n {imageDialog.props.type === 'existing' && (\n <Tag>{imageDialog.props.like || 0} Likes</Tag>\n )}\n </div>\n </div>\n <div className=\"flex justify-end gap-2\">\n <Tooltip title=\"Download\">\n <Button\n icon={<TbDownload />}\n shape=\"circle\"\n size=\"sm\"\n onClick={downloadFile}\n />\n </Tooltip>\n {imageDialog.props.type === 'existing' && (\n <Tooltip\n title={\n <div className=\"w-12 text-center\">\n {liked ? 'Dislike' : 'Like'}\n </div>\n }\n >\n <Button\n icon={\n liked ? (\n <TbHeartFilled className=\"text-pink-500\" />\n ) : (\n <TbHeart />\n )\n }\n shape=\"circle\"\n size=\"sm\"\n onClick={() => setLiked(!liked)}\n />\n </Tooltip>\n )}\n <Tooltip title=\"Report\">\n <Button\n icon={<TbAlertTriangle />}\n shape=\"circle\"\n size=\"sm\"\n />\n </Tooltip>\n </div>\n </div>\n </div>\n </Dialog>\n )\n}\n\nexport default ImageDialog\n"],"names":["ImageDialog","imageDialog","setImageDialog","useImageGeneratorStore","liked","setLiked","useState","handleDialogClose","sleep","downloadFile","fileSegment","
|
|
1
|
+
{"version":3,"file":"ImageDialog.js","sources":["../../../../../../../lib/@ecme/views/concepts/ai/Image/components/ImageDialog.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport Tooltip from '@/components/ui/Tooltip'\nimport Tag from '@/components/ui/Tag'\nimport sleep from '@/utils/sleep'\nimport { useImageGeneratorStore } from '../store/imageGeneratorStore'\nimport {\n TbDownload,\n TbHeart,\n TbHeartFilled,\n TbAlertTriangle,\n} from 'react-icons/tb'\n\nconst ImageDialog = () => {\n const { imageDialog, setImageDialog } = useImageGeneratorStore()\n\n const [liked, setLiked] = useState(false)\n\n const handleDialogClose = async () => {\n setImageDialog({\n open: false,\n props: imageDialog.props,\n })\n await sleep(200)\n setImageDialog({\n open: false,\n props: {},\n })\n setLiked(false)\n }\n\n const downloadFile = () => {\n const fileSegment = imageDialog.props.image?.split('/') as string[]\n const fileName = fileSegment[fileSegment?.length - 1]\n const link = document.createElement('a')\n link.href = imageDialog.props.image || ''\n link.setAttribute('download', fileName)\n document.body.appendChild(link)\n link.click()\n link.parentNode?.removeChild(link)\n }\n\n return (\n <Dialog\n isOpen={imageDialog.open}\n width={900}\n onClose={handleDialogClose}\n onRequestClose={handleDialogClose}\n >\n <div className=\"flex flex-col md:flex-row gap-4\">\n <div className=\"md:max-w-[400px]\">\n <img\n className=\"rounded-xl\"\n src={imageDialog.props.image}\n alt={imageDialog.props.prompt}\n />\n </div>\n <div className=\"flex flex-col justify-between flex-1 gap-4\">\n <div className=\"mt-2\">\n <h5 className=\"font-bold\">Prompt</h5>\n <p className=\"mt-4\">{imageDialog.props.prompt}</p>\n <div className=\"inline-flex gap-2 mt-6\">\n <Tag>Size: {imageDialog.props.size}</Tag>\n <Tag>Ratio: {imageDialog.props.ratio}</Tag>\n {imageDialog.props.type === 'existing' && (\n <Tag>{imageDialog.props.like || 0} Likes</Tag>\n )}\n </div>\n </div>\n <div className=\"flex justify-end gap-2\">\n <Tooltip title=\"Download\">\n <Button\n icon={<TbDownload />}\n shape=\"circle\"\n size=\"sm\"\n onClick={downloadFile}\n />\n </Tooltip>\n {imageDialog.props.type === 'existing' && (\n <Tooltip\n title={\n <div className=\"w-12 text-center\">\n {liked ? 'Dislike' : 'Like'}\n </div>\n }\n >\n <Button\n icon={\n liked ? (\n <TbHeartFilled className=\"text-pink-500\" />\n ) : (\n <TbHeart />\n )\n }\n shape=\"circle\"\n size=\"sm\"\n onClick={() => setLiked(!liked)}\n />\n </Tooltip>\n )}\n <Tooltip title=\"Report\">\n <Button\n icon={<TbAlertTriangle />}\n shape=\"circle\"\n size=\"sm\"\n />\n </Tooltip>\n </div>\n </div>\n </div>\n </Dialog>\n )\n}\n\nexport default ImageDialog\n"],"names":["ImageDialog","imageDialog","setImageDialog","useImageGeneratorStore","liked","setLiked","useState","handleDialogClose","sleep","downloadFile","fileSegment","fileName","link","jsx","Dialog","jsxs","Tag","Tooltip","Button","TbDownload","TbHeartFilled","TbHeart","TbAlertTriangle"],"mappings":";;;;;;;;;;;;;AAcA,MAAMA,IAAc,MAAM;AACtB,QAAM,EAAE,aAAAC,GAAa,gBAAAC,EAAA,IAAmBC,EAAA,GAElC,CAACC,GAAOC,CAAQ,IAAIC,EAAS,EAAK,GAElCC,IAAoB,YAAY;AAClC,IAAAL,EAAe;AAAA,MACX,MAAM;AAAA,MACN,OAAOD,EAAY;AAAA,IAAA,CACtB,GACD,MAAMO,EAAM,GAAG,GACfN,EAAe;AAAA,MACX,MAAM;AAAA,MACN,OAAO,CAAA;AAAA,IAAC,CACX,GACDG,EAAS,EAAK;AAAA,EAClB,GAEMI,IAAe,MAAM;AACvB,UAAMC,IAAcT,EAAY,MAAM,OAAO,MAAM,GAAG,GAChDU,IAAWD,EAAYA,GAAa,SAAS,CAAC,GAC9CE,IAAO,SAAS,cAAc,GAAG;AACvC,IAAAA,EAAK,OAAOX,EAAY,MAAM,SAAS,IACvCW,EAAK,aAAa,YAAYD,CAAQ,GACtC,SAAS,KAAK,YAAYC,CAAI,GAC9BA,EAAK,MAAA,GACLA,EAAK,YAAY,YAAYA,CAAI;AAAA,EACrC;AAEA,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,QAAQb,EAAY;AAAA,MACpB,OAAO;AAAA,MACP,SAASM;AAAA,MACT,gBAAgBA;AAAA,MAEhB,UAAA,gBAAAQ,EAAC,OAAA,EAAI,WAAU,mCACX,UAAA;AAAA,QAAA,gBAAAF,EAAC,OAAA,EAAI,WAAU,oBACX,UAAA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,WAAU;AAAA,YACV,KAAKZ,EAAY,MAAM;AAAA,YACvB,KAAKA,EAAY,MAAM;AAAA,UAAA;AAAA,QAAA,GAE/B;AAAA,QACA,gBAAAc,EAAC,OAAA,EAAI,WAAU,8CACX,UAAA;AAAA,UAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,QACX,UAAA;AAAA,YAAA,gBAAAF,EAAC,MAAA,EAAG,WAAU,aAAY,UAAA,UAAM;AAAA,8BAC/B,KAAA,EAAE,WAAU,QAAQ,UAAAZ,EAAY,MAAM,QAAO;AAAA,YAC9C,gBAAAc,EAAC,OAAA,EAAI,WAAU,0BACX,UAAA;AAAA,cAAA,gBAAAA,EAACC,GAAA,EAAI,UAAA;AAAA,gBAAA;AAAA,gBAAOf,EAAY,MAAM;AAAA,cAAA,GAAK;AAAA,gCAClCe,GAAA,EAAI,UAAA;AAAA,gBAAA;AAAA,gBAAQf,EAAY,MAAM;AAAA,cAAA,GAAM;AAAA,cACpCA,EAAY,MAAM,SAAS,gCACvBe,GAAA,EAAK,UAAA;AAAA,gBAAAf,EAAY,MAAM,QAAQ;AAAA,gBAAE;AAAA,cAAA,EAAA,CAAM;AAAA,YAAA,EAAA,CAEhD;AAAA,UAAA,GACJ;AAAA,UACA,gBAAAc,EAAC,OAAA,EAAI,WAAU,0BACX,UAAA;AAAA,YAAA,gBAAAF,EAACI,GAAA,EAAQ,OAAM,YACX,UAAA,gBAAAJ;AAAA,cAACK;AAAA,cAAA;AAAA,gBACG,wBAAOC,GAAA,EAAW;AAAA,gBAClB,OAAM;AAAA,gBACN,MAAK;AAAA,gBACL,SAASV;AAAA,cAAA;AAAA,YAAA,GAEjB;AAAA,YACCR,EAAY,MAAM,SAAS,cACxB,gBAAAY;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,OACI,gBAAAJ,EAAC,OAAA,EAAI,WAAU,oBACV,UAAAT,IAAQ,YAAY,QACzB;AAAA,gBAGJ,UAAA,gBAAAS;AAAA,kBAACK;AAAA,kBAAA;AAAA,oBACG,MACId,IACI,gBAAAS,EAACO,GAAA,EAAc,WAAU,gBAAA,CAAgB,sBAExCC,GAAA,EAAQ;AAAA,oBAGjB,OAAM;AAAA,oBACN,MAAK;AAAA,oBACL,SAAS,MAAMhB,EAAS,CAACD,CAAK;AAAA,kBAAA;AAAA,gBAAA;AAAA,cAClC;AAAA,YAAA;AAAA,YAGR,gBAAAS,EAACI,GAAA,EAAQ,OAAM,UACX,UAAA,gBAAAJ;AAAA,cAACK;AAAA,cAAA;AAAA,gBACG,wBAAOI,GAAA,EAAgB;AAAA,gBACvB,OAAM;AAAA,gBACN,MAAK;AAAA,cAAA;AAAA,YAAA,EACT,CACJ;AAAA,UAAA,EAAA,CACJ;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA,EAAA,CACJ;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,77 +1,76 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as S, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { apiGetCalendar as
|
|
3
|
+
import E from "../../../../components/shared/CalendarView.js";
|
|
4
|
+
import g from "../../../../components/shared/Container.js";
|
|
5
|
+
import D from "./components/EventDialog.js";
|
|
6
|
+
import { apiGetCalendar as O } from "../../../../services/CalendarService.js";
|
|
7
7
|
import p from "lodash/cloneDeep";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
const [
|
|
8
|
+
import l from "dayjs";
|
|
9
|
+
import b from "swr";
|
|
10
|
+
const V = () => {
|
|
11
|
+
const [v, a] = f(!1), [u, d] = f({
|
|
12
12
|
type: ""
|
|
13
|
-
}), { data: r, mutate: c } =
|
|
13
|
+
}), { data: r, mutate: c } = b(
|
|
14
14
|
"/api/calendar",
|
|
15
|
-
() =>
|
|
15
|
+
() => O(),
|
|
16
16
|
{
|
|
17
17
|
revalidateOnFocus: !1,
|
|
18
18
|
revalidateIfStale: !1,
|
|
19
19
|
revalidateOnReconnect: !1
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
return /* @__PURE__ */ g
|
|
22
|
+
return /* @__PURE__ */ S(g, { className: "h-full", children: [
|
|
23
23
|
/* @__PURE__ */ m(
|
|
24
|
-
|
|
24
|
+
E,
|
|
25
25
|
{
|
|
26
26
|
editable: !0,
|
|
27
27
|
selectable: !0,
|
|
28
28
|
events: r,
|
|
29
29
|
eventClick: (t) => {
|
|
30
|
-
const { start:
|
|
30
|
+
const { start: n, end: e, id: o, title: s, extendedProps: i } = t.event;
|
|
31
31
|
d({
|
|
32
32
|
type: "EDIT",
|
|
33
|
-
eventColor:
|
|
34
|
-
title:
|
|
35
|
-
start:
|
|
36
|
-
end: e ?
|
|
37
|
-
id:
|
|
33
|
+
eventColor: i.eventColor,
|
|
34
|
+
title: s,
|
|
35
|
+
start: n ? l(n).toISOString() : void 0,
|
|
36
|
+
end: e ? l(e).toISOString() : void 0,
|
|
37
|
+
id: o
|
|
38
38
|
}), a(!0);
|
|
39
39
|
},
|
|
40
40
|
select: (t) => {
|
|
41
|
-
const { start:
|
|
41
|
+
const { start: n, end: e } = t;
|
|
42
42
|
d({
|
|
43
43
|
type: "NEW",
|
|
44
|
-
start: n
|
|
45
|
-
end:
|
|
44
|
+
start: l(n).format(),
|
|
45
|
+
end: l(e).format()
|
|
46
46
|
}), a(!0);
|
|
47
47
|
},
|
|
48
48
|
eventDrop: (t) => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
title: S,
|
|
49
|
+
const n = p(r)?.map((e) => {
|
|
50
|
+
if (t.event.id === e.id) {
|
|
51
|
+
const { id: o, extendedProps: s, start: i, end: C, title: h } = t.event;
|
|
52
|
+
e = {
|
|
53
|
+
id: o,
|
|
54
|
+
start: l(i).format(),
|
|
55
|
+
end: l(C).format(),
|
|
56
|
+
title: h,
|
|
58
57
|
eventColor: s.eventColor
|
|
59
58
|
};
|
|
60
59
|
}
|
|
61
|
-
return
|
|
60
|
+
return e;
|
|
62
61
|
});
|
|
63
|
-
c(
|
|
62
|
+
c(n, !1);
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
),
|
|
67
66
|
/* @__PURE__ */ m(
|
|
68
|
-
|
|
67
|
+
D,
|
|
69
68
|
{
|
|
70
|
-
open:
|
|
71
|
-
selected:
|
|
72
|
-
submit: (t,
|
|
69
|
+
open: v,
|
|
70
|
+
selected: u,
|
|
71
|
+
submit: (t, n) => {
|
|
73
72
|
let e = p(r);
|
|
74
|
-
|
|
73
|
+
n === "NEW" && e?.push(t), n === "EDIT" && (e = e?.map((o) => (t.id === o.id && (o = t), o))), c(e, !1);
|
|
75
74
|
},
|
|
76
75
|
onDialogOpen: a
|
|
77
76
|
}
|
|
@@ -79,6 +78,6 @@ const z = () => {
|
|
|
79
78
|
] });
|
|
80
79
|
};
|
|
81
80
|
export {
|
|
82
|
-
|
|
81
|
+
V as default
|
|
83
82
|
};
|
|
84
83
|
//# sourceMappingURL=Calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","sources":["../../../../../../lib/@ecme/views/concepts/calendar/Calendar/Calendar.tsx"],"sourcesContent":["import { useState } from 'react'\nimport CalendarView from '@/components/shared/CalendarView'\nimport Container from '@/components/shared/Container'\nimport EventDialog from './components/EventDialog'\nimport { apiGetCalendar } from '@/services/CalendarService'\nimport cloneDeep from 'lodash/cloneDeep'\nimport dayjs from 'dayjs'\nimport useSWR from 'swr'\nimport type {\n GetCalendarResponse,\n SelectedCell,\n CalendarEventParam,\n} from './types'\nimport type {\n EventDropArg,\n EventClickArg,\n DateSelectArg,\n} from '@fullcalendar/core'\n\nconst Calendar = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n\n const [selectedCell, setSelectedCell] = useState<SelectedCell>({\n type: '',\n })\n\n const { data: events, mutate } = useSWR(\n '/api/calendar',\n () => apiGetCalendar<GetCalendarResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n },\n )\n\n const handleCellSelect = (event: DateSelectArg) => {\n const { start, end } = event\n setSelectedCell({\n type: 'NEW',\n start: dayjs(start).format(),\n end: dayjs(end).format(),\n })\n setDialogOpen(true)\n }\n\n const handleEventClick = (arg: EventClickArg) => {\n const { start, end, id, title, extendedProps } = arg.event\n\n setSelectedCell({\n type: 'EDIT',\n eventColor: extendedProps.eventColor,\n title,\n start: start ? dayjs(start).toISOString() : undefined,\n end: end ? dayjs(end).toISOString() : undefined,\n id,\n })\n setDialogOpen(true)\n }\n\n const handleEventChange = (arg: EventDropArg) => {\n const newEvents = cloneDeep(events)?.map((event) => {\n if (arg.event.id === event.id) {\n const { id, extendedProps, start, end, title } = arg.event\n event = {\n id,\n start: dayjs(start).format(),\n end: dayjs(end).format(),\n title,\n eventColor: extendedProps.eventColor,\n }\n }\n return event\n })\n mutate(newEvents, false)\n }\n\n const handleSubmit = (data: CalendarEventParam, type: string) => {\n let newEvents = cloneDeep(events)\n if (type === 'NEW') {\n newEvents?.push(data)\n }\n\n if (type === 'EDIT') {\n newEvents = newEvents?.map((event) => {\n if (data.id === event.id) {\n event = data\n }\n return event\n })\n }\n mutate(newEvents, false)\n }\n\n return (\n <Container className=\"h-full\">\n <CalendarView\n editable\n selectable\n events={events}\n eventClick={handleEventClick}\n select={handleCellSelect}\n eventDrop={handleEventChange}\n />\n <EventDialog\n open={dialogOpen}\n selected={selectedCell}\n submit={handleSubmit}\n onDialogOpen={setDialogOpen}\n />\n </Container>\n )\n}\n\nexport default Calendar\n"],"names":["Calendar","dialogOpen","setDialogOpen","useState","selectedCell","setSelectedCell","events","mutate","useSWR","apiGetCalendar","jsxs","Container","jsx","CalendarView","arg","start","end","id","title","extendedProps","dayjs","event","newEvents","
|
|
1
|
+
{"version":3,"file":"Calendar.js","sources":["../../../../../../lib/@ecme/views/concepts/calendar/Calendar/Calendar.tsx"],"sourcesContent":["import { useState } from 'react'\nimport CalendarView from '@/components/shared/CalendarView'\nimport Container from '@/components/shared/Container'\nimport EventDialog from './components/EventDialog'\nimport { apiGetCalendar } from '@/services/CalendarService'\nimport cloneDeep from 'lodash/cloneDeep'\nimport dayjs from 'dayjs'\nimport useSWR from 'swr'\nimport type {\n GetCalendarResponse,\n SelectedCell,\n CalendarEventParam,\n} from './types'\nimport type {\n EventDropArg,\n EventClickArg,\n DateSelectArg,\n} from '@fullcalendar/core'\n\nconst Calendar = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n\n const [selectedCell, setSelectedCell] = useState<SelectedCell>({\n type: '',\n })\n\n const { data: events, mutate } = useSWR(\n '/api/calendar',\n () => apiGetCalendar<GetCalendarResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n },\n )\n\n const handleCellSelect = (event: DateSelectArg) => {\n const { start, end } = event\n setSelectedCell({\n type: 'NEW',\n start: dayjs(start).format(),\n end: dayjs(end).format(),\n })\n setDialogOpen(true)\n }\n\n const handleEventClick = (arg: EventClickArg) => {\n const { start, end, id, title, extendedProps } = arg.event\n\n setSelectedCell({\n type: 'EDIT',\n eventColor: extendedProps.eventColor,\n title,\n start: start ? dayjs(start).toISOString() : undefined,\n end: end ? dayjs(end).toISOString() : undefined,\n id,\n })\n setDialogOpen(true)\n }\n\n const handleEventChange = (arg: EventDropArg) => {\n const newEvents = cloneDeep(events)?.map((event) => {\n if (arg.event.id === event.id) {\n const { id, extendedProps, start, end, title } = arg.event\n event = {\n id,\n start: dayjs(start).format(),\n end: dayjs(end).format(),\n title,\n eventColor: extendedProps.eventColor,\n }\n }\n return event\n })\n mutate(newEvents, false)\n }\n\n const handleSubmit = (data: CalendarEventParam, type: string) => {\n let newEvents = cloneDeep(events)\n if (type === 'NEW') {\n newEvents?.push(data)\n }\n\n if (type === 'EDIT') {\n newEvents = newEvents?.map((event) => {\n if (data.id === event.id) {\n event = data\n }\n return event\n })\n }\n mutate(newEvents, false)\n }\n\n return (\n <Container className=\"h-full\">\n <CalendarView\n editable\n selectable\n events={events}\n eventClick={handleEventClick}\n select={handleCellSelect}\n eventDrop={handleEventChange}\n />\n <EventDialog\n open={dialogOpen}\n selected={selectedCell}\n submit={handleSubmit}\n onDialogOpen={setDialogOpen}\n />\n </Container>\n )\n}\n\nexport default Calendar\n"],"names":["Calendar","dialogOpen","setDialogOpen","useState","selectedCell","setSelectedCell","events","mutate","useSWR","apiGetCalendar","jsxs","Container","jsx","CalendarView","arg","start","end","id","title","extendedProps","dayjs","event","newEvents","cloneDeep","EventDialog","data","type"],"mappings":";;;;;;;;;AAmBA,MAAMA,IAAW,MAAM;AACnB,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAE5C,CAACC,GAAcC,CAAe,IAAIF,EAAuB;AAAA,IAC3D,MAAM;AAAA,EAAA,CACT,GAEK,EAAE,MAAMG,GAAQ,QAAAC,EAAA,IAAWC;AAAA,IAC7B;AAAA,IACA,MAAMC,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,IAAA;AAAA,EAC3B;AA6DJ,SACI,gBAAAC,EAACC,GAAA,EAAU,WAAU,UACjB,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,UAAQ;AAAA,QACR,YAAU;AAAA,QACV,QAAAP;AAAA,QACA,YAtDa,CAACQ,MAAuB;AAC7C,gBAAM,EAAE,OAAAC,GAAO,KAAAC,GAAK,IAAAC,GAAI,OAAAC,GAAO,eAAAC,EAAA,IAAkBL,EAAI;AAErD,UAAAT,EAAgB;AAAA,YACZ,MAAM;AAAA,YACN,YAAYc,EAAc;AAAA,YAC1B,OAAAD;AAAA,YACA,OAAOH,IAAQK,EAAML,CAAK,EAAE,gBAAgB;AAAA,YAC5C,KAAKC,IAAMI,EAAMJ,CAAG,EAAE,gBAAgB;AAAA,YACtC,IAAAC;AAAA,UAAA,CACH,GACDf,EAAc,EAAI;AAAA,QACtB;AAAA,QA2CY,QAjEa,CAACmB,MAAyB;AAC/C,gBAAM,EAAE,OAAAN,GAAO,KAAAC,EAAA,IAAQK;AACvB,UAAAhB,EAAgB;AAAA,YACZ,MAAM;AAAA,YACN,OAAOe,EAAML,CAAK,EAAE,OAAA;AAAA,YACpB,KAAKK,EAAMJ,CAAG,EAAE,OAAA;AAAA,UAAO,CAC1B,GACDd,EAAc,EAAI;AAAA,QACtB;AAAA,QA0DY,WA1Cc,CAACY,MAAsB;AAC7C,gBAAMQ,IAAYC,EAAUjB,CAAM,GAAG,IAAI,CAACe,MAAU;AAChD,gBAAIP,EAAI,MAAM,OAAOO,EAAM,IAAI;AAC3B,oBAAM,EAAE,IAAAJ,GAAI,eAAAE,GAAe,OAAAJ,GAAO,KAAAC,GAAK,OAAAE,EAAA,IAAUJ,EAAI;AACrD,cAAAO,IAAQ;AAAA,gBACJ,IAAAJ;AAAA,gBACA,OAAOG,EAAML,CAAK,EAAE,OAAA;AAAA,gBACpB,KAAKK,EAAMJ,CAAG,EAAE,OAAA;AAAA,gBAChB,OAAAE;AAAA,gBACA,YAAYC,EAAc;AAAA,cAAA;AAAA,YAElC;AACA,mBAAOE;AAAA,UACX,CAAC;AACD,UAAAd,EAAOe,GAAW,EAAK;AAAA,QAC3B;AAAA,MA2BuB;AAAA,IAAA;AAAA,IAEf,gBAAAV;AAAA,MAACY;AAAA,MAAA;AAAA,QACG,MAAMvB;AAAA,QACN,UAAUG;AAAA,QACV,QA9BS,CAACqB,GAA0BC,MAAiB;AAC7D,cAAIJ,IAAYC,EAAUjB,CAAM;AAChC,UAAIoB,MAAS,SACTJ,GAAW,KAAKG,CAAI,GAGpBC,MAAS,WACTJ,IAAYA,GAAW,IAAI,CAACD,OACpBI,EAAK,OAAOJ,EAAM,OAClBA,IAAQI,IAELJ,EACV,IAELd,EAAOe,GAAW,EAAK;AAAA,QAC3B;AAAA,QAgBY,cAAcpB;AAAA,MAAA;AAAA,IAAA;AAAA,EAClB,GACJ;AAER;"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as
|
|
2
|
+
import { useEffect as N } from "react";
|
|
3
3
|
import "../../../../../components/ui/Input/index.js";
|
|
4
4
|
import "../../../../../components/ui/Button/index.js";
|
|
5
5
|
import "../../../../../components/ui/Select/index.js";
|
|
6
|
-
import { DatePicker as
|
|
6
|
+
import { DatePicker as b } from "../../../../../components/ui/DatePicker/index.js";
|
|
7
7
|
import "../../../../../components/ui/Dialog/index.js";
|
|
8
8
|
import "../../../../../components/ui/Form/index.js";
|
|
9
9
|
import "../../../../../components/ui/Badge/index.js";
|
|
10
|
-
import
|
|
11
|
-
import { useForm as
|
|
12
|
-
import { zodResolver as
|
|
13
|
-
import { z as
|
|
14
|
-
import { TbChecks as
|
|
15
|
-
import { components as
|
|
10
|
+
import E from "../../../../../components/ui/hooks/index.js";
|
|
11
|
+
import { useForm as k, Controller as p } from "react-hook-form";
|
|
12
|
+
import { zodResolver as S } from "@hookform/resolvers/zod";
|
|
13
|
+
import { z as i } from "zod";
|
|
14
|
+
import { TbChecks as q } from "react-icons/tb";
|
|
15
|
+
import { components as w } from "react-select";
|
|
16
16
|
import g from "dayjs";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { Form as
|
|
17
|
+
import f from "../../../../../components/ui/Badge/Badge.js";
|
|
18
|
+
import B from "../../../../../components/ui/Dialog/Dialog.js";
|
|
19
|
+
import { Form as _ } from "../../../../../components/ui/Form/Form.js";
|
|
20
20
|
import m from "../../../../../components/ui/Form/FormItem.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
const { Control:
|
|
21
|
+
import j from "../../../../../components/ui/Input/Input.js";
|
|
22
|
+
import O from "../../../../../components/ui/Select/Select.js";
|
|
23
|
+
import z from "../../../../../components/ui/Button/Button.js";
|
|
24
|
+
const { Control: I } = w, { useUniqueId: M } = E, v = [
|
|
25
25
|
{
|
|
26
26
|
value: "red",
|
|
27
27
|
label: "red",
|
|
@@ -52,70 +52,69 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
52
52
|
label: "purple",
|
|
53
53
|
color: "bg-purple-400"
|
|
54
54
|
}
|
|
55
|
-
],
|
|
56
|
-
innerProps:
|
|
57
|
-
label:
|
|
55
|
+
], F = ({
|
|
56
|
+
innerProps: s,
|
|
57
|
+
label: l,
|
|
58
58
|
data: n,
|
|
59
59
|
isSelected: r
|
|
60
60
|
}) => /* @__PURE__ */ c(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: `flex items-center justify-between rounded-lg p-2 ${r ? "bg-gray-100 dark:bg-gray-500" : "hover:bg-gray-50 dark:hover:bg-gray-600"}`,
|
|
64
|
-
...
|
|
64
|
+
...s,
|
|
65
65
|
children: [
|
|
66
66
|
/* @__PURE__ */ c("div", { className: "flex items-center", children: [
|
|
67
|
-
/* @__PURE__ */ e(
|
|
68
|
-
/* @__PURE__ */ e("span", { className: "ml-2 rtl:mr-2 capitalize", children:
|
|
67
|
+
/* @__PURE__ */ e(f, { className: n.color }),
|
|
68
|
+
/* @__PURE__ */ e("span", { className: "ml-2 rtl:mr-2 capitalize", children: l })
|
|
69
69
|
] }),
|
|
70
|
-
r && /* @__PURE__ */ e(
|
|
70
|
+
r && /* @__PURE__ */ e(q, { className: "text-emerald-500 text-xl" })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
|
-
),
|
|
74
|
-
const n =
|
|
75
|
-
return /* @__PURE__ */ c(
|
|
76
|
-
n && /* @__PURE__ */ e(
|
|
77
|
-
|
|
73
|
+
), P = ({ children: s, ...l }) => {
|
|
74
|
+
const n = l.getValue()[0];
|
|
75
|
+
return /* @__PURE__ */ c(I, { className: "capitalize", ...l, children: [
|
|
76
|
+
n && /* @__PURE__ */ e(f, { className: `${n.color} ltr:ml-4 rtl:mr-4` }),
|
|
77
|
+
s
|
|
78
78
|
] });
|
|
79
|
-
},
|
|
80
|
-
title:
|
|
81
|
-
startDate:
|
|
79
|
+
}, T = i.object({
|
|
80
|
+
title: i.string().min(1, { message: "Event title required" }),
|
|
81
|
+
startDate: i.date({
|
|
82
82
|
required_error: "Please select a date",
|
|
83
83
|
invalid_type_error: "That's not a date!"
|
|
84
84
|
}),
|
|
85
|
-
endDate:
|
|
85
|
+
endDate: i.date({
|
|
86
86
|
required_error: "Please select a date",
|
|
87
87
|
invalid_type_error: "That's not a date!"
|
|
88
88
|
}),
|
|
89
|
-
color:
|
|
90
|
-
}),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
id: r.id || N,
|
|
89
|
+
color: i.string().min(1, { message: "Color required" })
|
|
90
|
+
}), ie = (s) => {
|
|
91
|
+
const { submit: l, open: n, selected: r, onDialogOpen: h } = s, D = M("event-"), u = () => {
|
|
92
|
+
h(!1);
|
|
93
|
+
}, C = (t) => {
|
|
94
|
+
const a = {
|
|
95
|
+
id: r.id || D,
|
|
97
96
|
title: t.title,
|
|
98
97
|
start: g(t.startDate).format(),
|
|
99
98
|
eventColor: t.color
|
|
100
99
|
};
|
|
101
|
-
t.endDate && (
|
|
100
|
+
t.endDate && (a.end = g(t.endDate).format()), console.log("eventData", a), l?.(a, r.type), u();
|
|
102
101
|
}, {
|
|
103
|
-
handleSubmit:
|
|
104
|
-
reset:
|
|
105
|
-
formState: { errors:
|
|
102
|
+
handleSubmit: y,
|
|
103
|
+
reset: x,
|
|
104
|
+
formState: { errors: o },
|
|
106
105
|
control: d
|
|
107
|
-
} =
|
|
108
|
-
resolver:
|
|
106
|
+
} = k({
|
|
107
|
+
resolver: S(T)
|
|
109
108
|
});
|
|
110
|
-
return
|
|
111
|
-
r &&
|
|
109
|
+
return N(() => {
|
|
110
|
+
r && x({
|
|
112
111
|
title: r.title || "",
|
|
113
112
|
startDate: r.start && g(r.start).toDate(),
|
|
114
113
|
endDate: r.end && g(r.end).toDate(),
|
|
115
114
|
color: r.eventColor || v[0].value
|
|
116
115
|
});
|
|
117
116
|
}, [r]), /* @__PURE__ */ c(
|
|
118
|
-
|
|
117
|
+
B,
|
|
119
118
|
{
|
|
120
119
|
isOpen: n,
|
|
121
120
|
onClose: u,
|
|
@@ -123,24 +122,24 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
123
122
|
children: [
|
|
124
123
|
/* @__PURE__ */ e("h5", { className: "mb-4", children: r.type === "NEW" ? "Add New Event" : "Edit Event" }),
|
|
125
124
|
/* @__PURE__ */ c(
|
|
126
|
-
|
|
125
|
+
_,
|
|
127
126
|
{
|
|
128
127
|
className: "flex-1 flex flex-col",
|
|
129
|
-
onSubmit:
|
|
128
|
+
onSubmit: y(C),
|
|
130
129
|
children: [
|
|
131
130
|
/* @__PURE__ */ e(
|
|
132
131
|
m,
|
|
133
132
|
{
|
|
134
133
|
label: "Event title",
|
|
135
|
-
invalid: !!
|
|
136
|
-
errorMessage:
|
|
134
|
+
invalid: !!o.title,
|
|
135
|
+
errorMessage: o.title?.message,
|
|
137
136
|
children: /* @__PURE__ */ e(
|
|
138
137
|
p,
|
|
139
138
|
{
|
|
140
139
|
name: "title",
|
|
141
140
|
control: d,
|
|
142
141
|
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
143
|
-
|
|
142
|
+
j,
|
|
144
143
|
{
|
|
145
144
|
type: "text",
|
|
146
145
|
autoComplete: "off",
|
|
@@ -156,15 +155,15 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
156
155
|
m,
|
|
157
156
|
{
|
|
158
157
|
label: "Start date",
|
|
159
|
-
invalid: !!
|
|
160
|
-
errorMessage:
|
|
158
|
+
invalid: !!o.startDate,
|
|
159
|
+
errorMessage: o.startDate?.message,
|
|
161
160
|
children: /* @__PURE__ */ e(
|
|
162
161
|
p,
|
|
163
162
|
{
|
|
164
163
|
name: "startDate",
|
|
165
164
|
control: d,
|
|
166
165
|
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
167
|
-
|
|
166
|
+
b,
|
|
168
167
|
{
|
|
169
168
|
value: t.value,
|
|
170
169
|
onChange: t.onChange
|
|
@@ -178,15 +177,15 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
178
177
|
m,
|
|
179
178
|
{
|
|
180
179
|
label: "End date",
|
|
181
|
-
invalid: !!
|
|
182
|
-
errorMessage:
|
|
180
|
+
invalid: !!o.endDate,
|
|
181
|
+
errorMessage: o.endDate?.message,
|
|
183
182
|
children: /* @__PURE__ */ e(
|
|
184
183
|
p,
|
|
185
184
|
{
|
|
186
185
|
name: "endDate",
|
|
187
186
|
control: d,
|
|
188
187
|
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
189
|
-
|
|
188
|
+
b,
|
|
190
189
|
{
|
|
191
190
|
value: t.value,
|
|
192
191
|
onChange: t.onChange
|
|
@@ -201,26 +200,26 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
201
200
|
{
|
|
202
201
|
label: "Event color",
|
|
203
202
|
asterisk: !0,
|
|
204
|
-
invalid: !!
|
|
205
|
-
errorMessage:
|
|
203
|
+
invalid: !!o.color,
|
|
204
|
+
errorMessage: o.color?.message,
|
|
206
205
|
children: /* @__PURE__ */ e(
|
|
207
206
|
p,
|
|
208
207
|
{
|
|
209
208
|
name: "color",
|
|
210
209
|
control: d,
|
|
211
210
|
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
212
|
-
|
|
211
|
+
O,
|
|
213
212
|
{
|
|
214
213
|
options: v,
|
|
215
214
|
value: v.filter(
|
|
216
|
-
(
|
|
215
|
+
(a) => a.value === t.value
|
|
217
216
|
),
|
|
218
217
|
components: {
|
|
219
|
-
Option:
|
|
220
|
-
Control:
|
|
218
|
+
Option: F,
|
|
219
|
+
Control: P
|
|
221
220
|
},
|
|
222
|
-
onChange: (
|
|
223
|
-
t.onChange(
|
|
221
|
+
onChange: (a) => {
|
|
222
|
+
t.onChange(a?.value);
|
|
224
223
|
}
|
|
225
224
|
}
|
|
226
225
|
)
|
|
@@ -228,7 +227,7 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
228
227
|
)
|
|
229
228
|
}
|
|
230
229
|
),
|
|
231
|
-
/* @__PURE__ */ e(m, { className: "mb-0 text-right rtl:text-left", children: /* @__PURE__ */ e(
|
|
230
|
+
/* @__PURE__ */ e(m, { className: "mb-0 text-right rtl:text-left", children: /* @__PURE__ */ e(z, { block: !0, variant: "solid", type: "submit", children: r.type === "NEW" ? "Create" : "Update" }) })
|
|
232
231
|
]
|
|
233
232
|
}
|
|
234
233
|
)
|
|
@@ -237,6 +236,6 @@ const { Control: T } = O, { useUniqueId: R } = w, v = [
|
|
|
237
236
|
);
|
|
238
237
|
};
|
|
239
238
|
export {
|
|
240
|
-
|
|
239
|
+
ie as default
|
|
241
240
|
};
|
|
242
241
|
//# sourceMappingURL=EventDialog.js.map
|