@orbe-agro/client-core 5.3.86 → 5.3.90
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 +3 -22
- 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 +15 -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 +9 -7
- package/package.json +1 -1
- package/tsconfig.json +6 -1
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../@ecme/components/ui/index.js";
|
|
3
|
-
import { Controller as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
control:
|
|
8
|
-
errors:
|
|
9
|
-
isView:
|
|
10
|
-
name:
|
|
11
|
-
label:
|
|
12
|
-
placeholder:
|
|
3
|
+
import { Controller as d } from "react-hook-form";
|
|
4
|
+
import l from "../../../../@ecme/components/ui/Form/FormItem.js";
|
|
5
|
+
import f from "../../../../@ecme/components/ui/Input/Input.js";
|
|
6
|
+
function x({
|
|
7
|
+
control: t,
|
|
8
|
+
errors: o,
|
|
9
|
+
isView: i,
|
|
10
|
+
name: r,
|
|
11
|
+
label: m,
|
|
12
|
+
placeholder: n
|
|
13
13
|
}) {
|
|
14
|
-
var m;
|
|
15
14
|
return /* @__PURE__ */ e(
|
|
16
|
-
|
|
15
|
+
l,
|
|
17
16
|
{
|
|
18
|
-
label:
|
|
19
|
-
invalid: !!
|
|
20
|
-
errorMessage:
|
|
17
|
+
label: m,
|
|
18
|
+
invalid: !!o?.[r],
|
|
19
|
+
errorMessage: o?.[r]?.message,
|
|
21
20
|
children: /* @__PURE__ */ e(
|
|
22
|
-
|
|
21
|
+
d,
|
|
23
22
|
{
|
|
24
|
-
name:
|
|
25
|
-
control:
|
|
26
|
-
render: ({ field:
|
|
27
|
-
|
|
23
|
+
name: r,
|
|
24
|
+
control: t,
|
|
25
|
+
render: ({ field: p }) => /* @__PURE__ */ e(
|
|
26
|
+
f,
|
|
28
27
|
{
|
|
29
28
|
required: !0,
|
|
30
|
-
disabled:
|
|
29
|
+
disabled: i,
|
|
31
30
|
type: "text",
|
|
32
|
-
placeholder:
|
|
33
|
-
...
|
|
31
|
+
placeholder: n,
|
|
32
|
+
...p
|
|
34
33
|
}
|
|
35
34
|
)
|
|
36
35
|
}
|
|
@@ -39,6 +38,6 @@ function S({
|
|
|
39
38
|
);
|
|
40
39
|
}
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
x as default
|
|
43
42
|
};
|
|
44
43
|
//# sourceMappingURL=GenericStringFormSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericStringFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericStringFormSection"],"names":["GenericStringFormSection","control","errors","isView","name","label","placeholder","jsx","FormItem","
|
|
1
|
+
{"version":3,"file":"GenericStringFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericStringFormSection"],"names":["GenericStringFormSection","control","errors","isView","name","label","placeholder","jsx","FormItem","Controller","field","Input"],"mappings":";;;;;AAWA,SAASA,EAAgD;AAAA,EACrD,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAH;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAcF,IAASE,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAG;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,MAAAL;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAS,EAAA,MACP,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAUR;AAAA,cACV,MAAK;AAAA,cACL,aAAAG;AAAA,cACC,GAAGI;AAAA,YAAA;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../@ecme/components/ui/index.js";
|
|
3
|
-
import { Controller as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
control:
|
|
8
|
-
errors:
|
|
9
|
-
name:
|
|
10
|
-
label:
|
|
3
|
+
import { Controller as f } from "react-hook-form";
|
|
4
|
+
import l from "../../../../@ecme/components/ui/Form/FormItem.js";
|
|
5
|
+
import c from "../../../../@ecme/components/ui/Upload/Upload.js";
|
|
6
|
+
function F({
|
|
7
|
+
control: n,
|
|
8
|
+
errors: e,
|
|
9
|
+
name: r,
|
|
10
|
+
label: p
|
|
11
11
|
}) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
d,
|
|
12
|
+
return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(
|
|
13
|
+
l,
|
|
15
14
|
{
|
|
16
|
-
label:
|
|
17
|
-
invalid: !!
|
|
18
|
-
errorMessage:
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
-
|
|
15
|
+
label: p,
|
|
16
|
+
invalid: !!e?.[r],
|
|
17
|
+
errorMessage: e?.[r]?.message,
|
|
18
|
+
children: /* @__PURE__ */ o(
|
|
19
|
+
f,
|
|
21
20
|
{
|
|
22
|
-
name:
|
|
23
|
-
control:
|
|
24
|
-
render: ({ field:
|
|
25
|
-
|
|
21
|
+
name: r,
|
|
22
|
+
control: n,
|
|
23
|
+
render: ({ field: t }) => /* @__PURE__ */ o(
|
|
24
|
+
c,
|
|
26
25
|
{
|
|
27
26
|
accept: "application/pdf",
|
|
28
|
-
fileList:
|
|
29
|
-
beforeUpload: (
|
|
30
|
-
if (
|
|
31
|
-
for (const
|
|
32
|
-
if (
|
|
27
|
+
fileList: t.value,
|
|
28
|
+
beforeUpload: (i) => {
|
|
29
|
+
if (i) {
|
|
30
|
+
for (const a of i)
|
|
31
|
+
if (a.type !== "application/pdf")
|
|
33
32
|
return "Somente arquivos PDF são permitidos.";
|
|
34
33
|
}
|
|
35
34
|
return !0;
|
|
36
35
|
},
|
|
37
|
-
onChange:
|
|
36
|
+
onChange: t.onChange
|
|
38
37
|
}
|
|
39
38
|
)
|
|
40
39
|
}
|
|
@@ -43,6 +42,6 @@ function C({
|
|
|
43
42
|
) });
|
|
44
43
|
}
|
|
45
44
|
export {
|
|
46
|
-
|
|
45
|
+
F as default
|
|
47
46
|
};
|
|
48
47
|
//# sourceMappingURL=GenericUploadFormSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericUploadFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericUploadFormSection.tsx"],"sourcesContent":["import { FormItem, Upload } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n }\n\nfunction GenericUploadFormSection<T extends FieldValues>({\n control,\n errors,\n name,\n label,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Upload\n accept={'application/pdf'}\n fileList={field.value}\n beforeUpload={(fileList) => {\n if (fileList) {\n for (const file of fileList) {\n if (file.type !== 'application/pdf') {\n return 'Somente arquivos PDF são permitidos.'\n }\n }\n }\n return true\n }}\n onChange={field.onChange}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericUploadFormSection\n"],"names":["GenericUploadFormSection","control","errors","name","label","jsx","Fragment","FormItem","
|
|
1
|
+
{"version":3,"file":"GenericUploadFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericUploadFormSection.tsx"],"sourcesContent":["import { FormItem, Upload } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n }\n\nfunction GenericUploadFormSection<T extends FieldValues>({\n control,\n errors,\n name,\n label,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Upload\n accept={'application/pdf'}\n fileList={field.value}\n beforeUpload={(fileList) => {\n if (fileList) {\n for (const file of fileList) {\n if (file.type !== 'application/pdf') {\n return 'Somente arquivos PDF são permitidos.'\n }\n }\n }\n return true\n }}\n onChange={field.onChange}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericUploadFormSection\n"],"names":["GenericUploadFormSection","control","errors","name","label","jsx","Fragment","FormItem","Controller","field","Upload","fileList","file"],"mappings":";;;;;AAUA,SAASA,EAAgD;AAAA,EACrD,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAH;AAAA,MACA,SAAS,EAAQF,IAASC,CAAI;AAAA,MAC9B,cAAcD,IAASC,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAAL;AAAA,UACA,SAAAF;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAQ,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,QAAQ;AAAA,cACR,UAAUD,EAAM;AAAA,cAChB,cAAc,CAACE,MAAa;AACxB,oBAAIA;AACA,6BAAWC,KAAQD;AACf,wBAAIC,EAAK,SAAS;AACd,6BAAO;AAAA;AAInB,uBAAO;AAAA,cACX;AAAA,cACA,UAAUH,EAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QACpB;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../@ecme/components/shared/index.js";
|
|
3
3
|
import "../../../../@ecme/components/ui/index.js";
|
|
4
|
-
import { Controller as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
control:
|
|
9
|
-
errors:
|
|
10
|
-
isView:
|
|
11
|
-
name:
|
|
12
|
-
label:
|
|
13
|
-
placeholder:
|
|
4
|
+
import { Controller as p } from "react-hook-form";
|
|
5
|
+
import d from "../../../../@ecme/components/ui/Form/FormItem.js";
|
|
6
|
+
import u from "../../../../@ecme/components/shared/NumericInput.js";
|
|
7
|
+
function h({
|
|
8
|
+
control: a,
|
|
9
|
+
errors: t,
|
|
10
|
+
isView: m,
|
|
11
|
+
name: r,
|
|
12
|
+
label: l,
|
|
13
|
+
placeholder: n
|
|
14
14
|
}) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
c,
|
|
15
|
+
return /* @__PURE__ */ o(
|
|
16
|
+
d,
|
|
18
17
|
{
|
|
19
|
-
label:
|
|
20
|
-
invalid: !!
|
|
21
|
-
errorMessage:
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
|
|
18
|
+
label: l,
|
|
19
|
+
invalid: !!t?.[r],
|
|
20
|
+
errorMessage: t?.[r]?.message ?? "",
|
|
21
|
+
children: /* @__PURE__ */ o(
|
|
22
|
+
p,
|
|
24
23
|
{
|
|
25
|
-
name:
|
|
26
|
-
control:
|
|
27
|
-
render: ({ field:
|
|
28
|
-
|
|
24
|
+
name: r,
|
|
25
|
+
control: a,
|
|
26
|
+
render: ({ field: i }) => /* @__PURE__ */ o(
|
|
27
|
+
u,
|
|
29
28
|
{
|
|
30
29
|
fixedDecimalScale: !0,
|
|
31
30
|
thousandSeparator: ".",
|
|
@@ -33,14 +32,14 @@ function C({
|
|
|
33
32
|
prefix: "% ",
|
|
34
33
|
type: "text",
|
|
35
34
|
autoComplete: "off",
|
|
36
|
-
placeholder:
|
|
35
|
+
placeholder: n,
|
|
37
36
|
displayType: "input",
|
|
38
|
-
value:
|
|
39
|
-
disabled:
|
|
37
|
+
value: i.value,
|
|
38
|
+
disabled: m,
|
|
40
39
|
decimalScale: 2,
|
|
41
|
-
isAllowed: ({ floatValue:
|
|
42
|
-
onValueChange: (
|
|
43
|
-
|
|
40
|
+
isAllowed: ({ floatValue: e }) => e !== void 0 && e > 0 && e <= 100,
|
|
41
|
+
onValueChange: (e) => {
|
|
42
|
+
i.onChange(e.floatValue ?? 0);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
)
|
|
@@ -50,6 +49,6 @@ function C({
|
|
|
50
49
|
);
|
|
51
50
|
}
|
|
52
51
|
export {
|
|
53
|
-
|
|
52
|
+
h as default
|
|
54
53
|
};
|
|
55
54
|
//# sourceMappingURL=GenericNumberFormSectionPercentage.js.map
|
package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericNumberFormSectionPercentage.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport type { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label?: string\n placeholder?: string\n }\n\nfunction GenericNumberFormSectionPercentage<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={(errors?.[name]?.message as string) ?? ''}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n fixedDecimalScale\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"% \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n isAllowed={({ floatValue }) =>\n floatValue !== undefined &&\n floatValue > 0.0 &&\n floatValue <= 100.0\n }\n onValueChange={(e) => {\n field.onChange(e.floatValue ?? 0)\n }}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericNumberFormSectionPercentage\n"],"names":["GenericNumberFormSectionPercentage","control","errors","isView","name","label","placeholder","jsx","FormItem","
|
|
1
|
+
{"version":3,"file":"GenericNumberFormSectionPercentage.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport type { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label?: string\n placeholder?: string\n }\n\nfunction GenericNumberFormSectionPercentage<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={(errors?.[name]?.message as string) ?? ''}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n fixedDecimalScale\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"% \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n isAllowed={({ floatValue }) =>\n floatValue !== undefined &&\n floatValue > 0.0 &&\n floatValue <= 100.0\n }\n onValueChange={(e) => {\n field.onChange(e.floatValue ?? 0)\n }}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericNumberFormSectionPercentage\n"],"names":["GenericNumberFormSectionPercentage","control","errors","isView","name","label","placeholder","jsx","FormItem","Controller","field","NumericInput","floatValue"],"mappings":";;;;;;AAYA,SAASA,EAA0D;AAAA,EAC/D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAH;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAeF,IAASE,CAAI,GAAG,WAAsB;AAAA,MAErD,UAAA,gBAAAG;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,MAAAL;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAS,EAAA,MACP,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACG,mBAAiB;AAAA,cACjB,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAL;AAAA,cACA,aAAY;AAAA,cACZ,OAAOI,EAAM;AAAA,cACb,UAAUP;AAAA,cACV,cAAc;AAAA,cACd,WAAW,CAAC,EAAE,YAAAS,EAAA,MACVA,MAAe,UACfA,IAAa,KACbA,KAAc;AAAA,cAElB,eAAe,CAAC,MAAM;AAClB,gBAAAF,EAAM,SAAS,EAAE,cAAc,CAAC;AAAA,cACpC;AAAA,YAAA;AAAA,UAAA;AAAA,QACJ;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../@ecme/components/shared/index.js";
|
|
3
3
|
import "../../../../@ecme/components/ui/index.js";
|
|
4
|
-
import { Controller as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
control:
|
|
9
|
-
errors:
|
|
10
|
-
isView:
|
|
11
|
-
name:
|
|
12
|
-
label:
|
|
13
|
-
placeholder:
|
|
4
|
+
import { Controller as u } from "react-hook-form";
|
|
5
|
+
import c from "../../../../@ecme/components/ui/Form/FormItem.js";
|
|
6
|
+
import d from "../../../../@ecme/components/shared/NumericInput.js";
|
|
7
|
+
function S({
|
|
8
|
+
control: a,
|
|
9
|
+
errors: o,
|
|
10
|
+
isView: i,
|
|
11
|
+
name: r,
|
|
12
|
+
label: m,
|
|
13
|
+
placeholder: l
|
|
14
14
|
}) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
f,
|
|
15
|
+
return /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
16
|
+
c,
|
|
18
17
|
{
|
|
19
|
-
label:
|
|
20
|
-
invalid: !!
|
|
21
|
-
errorMessage:
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
|
|
18
|
+
label: m,
|
|
19
|
+
invalid: !!o?.[r],
|
|
20
|
+
errorMessage: o?.[r]?.message,
|
|
21
|
+
children: /* @__PURE__ */ e(
|
|
22
|
+
u,
|
|
24
23
|
{
|
|
25
|
-
name:
|
|
26
|
-
control:
|
|
27
|
-
render: ({ field:
|
|
28
|
-
|
|
24
|
+
name: r,
|
|
25
|
+
control: a,
|
|
26
|
+
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
27
|
+
d,
|
|
29
28
|
{
|
|
30
29
|
thousandSeparator: ".",
|
|
31
30
|
decimalSeparator: ",",
|
|
32
31
|
prefix: "R$ ",
|
|
33
32
|
type: "text",
|
|
34
33
|
autoComplete: "off",
|
|
35
|
-
placeholder:
|
|
34
|
+
placeholder: l,
|
|
36
35
|
displayType: "input",
|
|
37
|
-
value:
|
|
38
|
-
disabled:
|
|
36
|
+
value: t.value,
|
|
37
|
+
disabled: i,
|
|
39
38
|
decimalScale: 2,
|
|
40
|
-
onValueChange: (
|
|
39
|
+
onValueChange: (n) => t.onChange(n.floatValue ?? 0)
|
|
41
40
|
}
|
|
42
41
|
)
|
|
43
42
|
}
|
|
@@ -46,6 +45,6 @@ function y({
|
|
|
46
45
|
) });
|
|
47
46
|
}
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
S as default
|
|
50
49
|
};
|
|
51
50
|
//# sourceMappingURL=GenericNumberFormSectionPrice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericNumberFormSectionPrice.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSectionPrice<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"R$ \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) =>\n field.onChange(e.floatValue ?? 0)\n }\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionPrice\n"],"names":["GenericNumberFormSectionPrice","control","errors","isView","name","label","placeholder","jsx","Fragment","FormItem","
|
|
1
|
+
{"version":3,"file":"GenericNumberFormSectionPrice.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSectionPrice<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"R$ \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) =>\n field.onChange(e.floatValue ?? 0)\n }\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionPrice\n"],"names":["GenericNumberFormSectionPrice","control","errors","isView","name","label","placeholder","jsx","Fragment","FormItem","Controller","field","NumericInput","e"],"mappings":";;;;;;AAYA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAJ;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAcF,IAASE,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAG;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAAN;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAU,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAN;AAAA,cACA,aAAY;AAAA,cACZ,OAAOK,EAAM;AAAA,cACb,UAAUR;AAAA,cACV,cAAc;AAAA,cACd,eAAe,CAACU,MACZF,EAAM,SAASE,EAAE,cAAc,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAExC;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../@ecme/components/shared/index.js";
|
|
3
3
|
import "../../../../@ecme/components/ui/index.js";
|
|
4
|
-
import { Controller as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
control:
|
|
9
|
-
errors:
|
|
10
|
-
isView:
|
|
11
|
-
name:
|
|
12
|
-
label:
|
|
13
|
-
placeholder:
|
|
4
|
+
import { Controller as u } from "react-hook-form";
|
|
5
|
+
import d from "../../../../@ecme/components/ui/Form/FormItem.js";
|
|
6
|
+
import c from "../../../../@ecme/components/shared/NumericInput.js";
|
|
7
|
+
function S({
|
|
8
|
+
control: a,
|
|
9
|
+
errors: o,
|
|
10
|
+
isView: i,
|
|
11
|
+
name: r,
|
|
12
|
+
label: m,
|
|
13
|
+
placeholder: l
|
|
14
14
|
}) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
f,
|
|
15
|
+
return /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
16
|
+
d,
|
|
18
17
|
{
|
|
19
|
-
label:
|
|
20
|
-
invalid: !!
|
|
21
|
-
errorMessage:
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
|
|
18
|
+
label: m,
|
|
19
|
+
invalid: !!o?.[r],
|
|
20
|
+
errorMessage: o?.[r]?.message,
|
|
21
|
+
children: /* @__PURE__ */ e(
|
|
22
|
+
u,
|
|
24
23
|
{
|
|
25
|
-
name:
|
|
26
|
-
control:
|
|
27
|
-
render: ({ field:
|
|
28
|
-
|
|
24
|
+
name: r,
|
|
25
|
+
control: a,
|
|
26
|
+
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
27
|
+
c,
|
|
29
28
|
{
|
|
30
29
|
thousandSeparator: ".",
|
|
31
30
|
decimalSeparator: ",",
|
|
32
31
|
prefix: "Kg ",
|
|
33
32
|
type: "text",
|
|
34
33
|
autoComplete: "off",
|
|
35
|
-
placeholder:
|
|
34
|
+
placeholder: l,
|
|
36
35
|
displayType: "input",
|
|
37
|
-
value:
|
|
38
|
-
disabled:
|
|
36
|
+
value: t.value,
|
|
37
|
+
disabled: i,
|
|
39
38
|
decimalScale: 2,
|
|
40
|
-
onValueChange: (
|
|
39
|
+
onValueChange: (n) => t.onChange(n.floatValue ?? 0)
|
|
41
40
|
}
|
|
42
41
|
)
|
|
43
42
|
}
|
|
@@ -46,6 +45,6 @@ function y({
|
|
|
46
45
|
) });
|
|
47
46
|
}
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
S as default
|
|
50
49
|
};
|
|
51
50
|
//# sourceMappingURL=GenericNumberFormSectionWeight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericNumberFormSectionWeight.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSectionWeight<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"Kg \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) =>\n field.onChange(e.floatValue ?? 0)\n }\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionWeight\n"],"names":["GenericNumberFormSectionWeight","control","errors","isView","name","label","placeholder","jsx","Fragment","FormItem","
|
|
1
|
+
{"version":3,"file":"GenericNumberFormSectionWeight.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSectionWeight<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"Kg \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) =>\n field.onChange(e.floatValue ?? 0)\n }\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionWeight\n"],"names":["GenericNumberFormSectionWeight","control","errors","isView","name","label","placeholder","jsx","Fragment","FormItem","Controller","field","NumericInput","e"],"mappings":";;;;;;AAYA,SAASA,EAAsD;AAAA,EAC3D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAJ;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAcF,IAASE,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAG;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAAN;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAU,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAN;AAAA,cACA,aAAY;AAAA,cACZ,OAAOK,EAAM;AAAA,cACb,UAAUR;AAAA,cACV,cAAc;AAAA,cACd,eAAe,CAACU,MACZF,EAAM,SAASE,EAAE,cAAc,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAExC;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import "../../../@ecme/components/index.js";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as s, useEffect as C } from "react";
|
|
4
4
|
import P from "../../hooks/flux/useTransferirProcesso.js";
|
|
5
5
|
import "../../services/index.js";
|
|
6
6
|
import { apiGetUsers as T } from "../../services/modules/AdmService.js";
|
|
@@ -11,10 +11,10 @@ import w from "../../../@ecme/components/ui/Select/Select.js";
|
|
|
11
11
|
import N from "../../../@ecme/components/ui/Input/Input.js";
|
|
12
12
|
const R = ({
|
|
13
13
|
isOpen: m,
|
|
14
|
-
onClose:
|
|
15
|
-
idProcesso:
|
|
14
|
+
onClose: t,
|
|
15
|
+
idProcesso: p
|
|
16
16
|
}) => {
|
|
17
|
-
const { mutate:
|
|
17
|
+
const { mutate: f } = P(), [u, d] = s(null), [e, h] = s(""), [v, g] = s([]);
|
|
18
18
|
C(() => {
|
|
19
19
|
async function r() {
|
|
20
20
|
try {
|
|
@@ -30,17 +30,17 @@ const R = ({
|
|
|
30
30
|
r();
|
|
31
31
|
}, []);
|
|
32
32
|
const x = (r) => {
|
|
33
|
-
|
|
33
|
+
f(r);
|
|
34
34
|
};
|
|
35
35
|
return /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(
|
|
36
36
|
k,
|
|
37
37
|
{
|
|
38
38
|
title: "Transferir Processo",
|
|
39
39
|
isOpen: m,
|
|
40
|
-
onClose:
|
|
41
|
-
onRequestClose:
|
|
40
|
+
onClose: t,
|
|
41
|
+
onRequestClose: t,
|
|
42
42
|
footer: /* @__PURE__ */ n("div", { className: "flex w-full items-start", children: [
|
|
43
|
-
/* @__PURE__ */ o(l, { block: !0, className: "mx-2", onClick: () =>
|
|
43
|
+
/* @__PURE__ */ o(l, { block: !0, className: "mx-2", onClick: () => t(), children: "Cancelar" }),
|
|
44
44
|
/* @__PURE__ */ o(U, { title: e ? /* @__PURE__ */ o(c, {}) : "Motivo obrigatório", placement: "top", children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
45
45
|
l,
|
|
46
46
|
{
|
|
@@ -49,7 +49,7 @@ const R = ({
|
|
|
49
49
|
variant: "solid",
|
|
50
50
|
disabled: !e,
|
|
51
51
|
onClick: () => x({
|
|
52
|
-
idProcesso:
|
|
52
|
+
idProcesso: p,
|
|
53
53
|
idUsuario: u,
|
|
54
54
|
mensagemInteracao: e
|
|
55
55
|
}),
|
|
@@ -63,7 +63,7 @@ const R = ({
|
|
|
63
63
|
{
|
|
64
64
|
placeholder: "Selecione um usuário",
|
|
65
65
|
options: v,
|
|
66
|
-
onChange: (r) => d(r
|
|
66
|
+
onChange: (r) => d(r?.value)
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ o(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferirProcessoDialog.js","sources":["../../../../lib/base/components/shared/TransferirProcessoDialog.tsx"],"sourcesContent":["import { Button, Drawer, Input, Select, Tooltip } from \"@/components\";\nimport { TActionProcesso } from \"@base/@types/models/flux/processo\";\nimport { useEffect, useState } from \"react\";\nimport useTransferirProcesso from \"@base/hooks/flux/useTransferirProcesso\";\nimport { apiGetUsers } from \"@base/services\";\n//import { apiGetUsers } from '@orbe-agro/client-core/base/services/modules/AdmService'\ninterface TransferirProcessoDialogProps {\n isOpen: boolean;\n onClose: () => void;\n idProcesso: number;\n}\n\nconst TransferirProcessoDialog = ({\n isOpen,\n onClose,\n idProcesso,\n}: TransferirProcessoDialogProps) => {\n const { mutate: transferirProcesso } = useTransferirProcesso();\n const [idUsuario, setIdUsuario] = useState<any>(null);\n const [motivo, setMotivo] = useState<string>(\"\");\n const [usersOptions, setUsersOptions] = useState<\n { value: number; label: string }[]\n >([]);\n\n useEffect(() => {\n async function fetchUsers() {\n try {\n const filtros = {};\n const response = await apiGetUsers(filtros);\n const options = response.content.map((item: any) => ({\n value: item.id,\n label: item.nome,\n }));\n setUsersOptions(options);\n } catch (error) {\n console.error(\"Erro ao carregar tipos de processo:\", error);\n }\n }\n fetchUsers();\n }, []);\n\n const handleTransferirProcesso = (dados: TActionProcesso) => {\n transferirProcesso(dados);\n };\n const Footer = (\n <div className=\"flex w-full items-start\">\n <Button block className=\"mx-2\" onClick={() => onClose()}>\n Cancelar\n </Button>\n <Tooltip title={!motivo ? \"Motivo obrigatório\" : <></>} placement=\"top\">\n <span>\n <Button\n block\n className=\"mx-2\"\n variant=\"solid\"\n disabled={!motivo}\n onClick={() =>\n handleTransferirProcesso({\n idProcesso,\n idUsuario,\n mensagemInteracao: motivo,\n })\n }\n >\n Confirmar\n </Button>\n </span>\n </Tooltip>\n </div>\n );\n\n return (\n <>\n <Drawer\n title=\"Transferir Processo\"\n isOpen={isOpen}\n onClose={onClose}\n onRequestClose={onClose}\n footer={Footer}\n >\n <div className=\"flex flex-col gap-4 p-4\">\n <Select\n placeholder=\"Selecione um usuário\"\n options={usersOptions}\n onChange={(opt: any) => setIdUsuario(opt?.value)}\n />\n <Input\n textArea\n rows={4}\n placeholder=\"Motivo da transferência\"\n value={motivo}\n onChange={(e: any) => setMotivo(e.target.value)}\n />\n </div>\n </Drawer>\n </>\n );\n};\n\nexport default TransferirProcessoDialog;\n"],"names":["TransferirProcessoDialog","isOpen","onClose","idProcesso","transferirProcesso","useTransferirProcesso","idUsuario","setIdUsuario","useState","motivo","setMotivo","usersOptions","setUsersOptions","useEffect","fetchUsers","options","apiGetUsers","item","error","handleTransferirProcesso","dados","jsx","Fragment","Drawer","jsxs","Button","Tooltip","Select","opt","Input","e"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAA2B,CAAC;AAAA,EAChC,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAQC,EAAA,IAAuBC,EAAA,GACjC,CAACC,GAAWC,CAAY,IAAIC,EAAc,IAAI,GAC9C,CAACC,GAAQC,CAAS,IAAIF,EAAiB,EAAE,GACzC,CAACG,GAAcC,CAAe,IAAIJ,EAEtC,CAAA,CAAE;AAEJ,EAAAK,EAAU,MAAM;AACd,mBAAeC,IAAa;AAC1B,UAAI;AAGF,cAAMC,KADW,MAAMC,EADP,CAAA,CAC0B,GACjB,QAAQ,IAAI,CAACC,OAAe;AAAA,UACnD,OAAOA,EAAK;AAAA,UACZ,OAAOA,EAAK;AAAA,QAAA,EACZ;AACF,QAAAL,EAAgBG,CAAO;AAAA,MACzB,SAASG,GAAO;AACd,gBAAQ,MAAM,uCAAuCA,CAAK;AAAA,MAC5D;AAAA,IACF;AACA,IAAAJ,EAAA;AAAA,EACF,GAAG,CAAA,CAAE;AAEL,QAAMK,IAA2B,CAACC,MAA2B;AAC3D,IAAAhB,EAAmBgB,CAAK;AAAA,EAC1B;AA4BA,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,QAAAtB;AAAA,MACA,SAAAC;AAAA,MACA,gBAAgBA;AAAA,MAChB,QAjCJ,gBAAAsB,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,QAAA,gBAAAH,EAACI,GAAA,EAAO,OAAK,IAAC,WAAU,QAAO,SAAS,MAAMvB,EAAA,GAAW,UAAA,WAAA,CAEzD;AAAA,QACA,gBAAAmB,EAACK,GAAA,EAAQ,OAAQjB,IAAgC,gBAAAY,EAAAC,GAAA,CAAA,CAAE,IAAzB,sBAA8B,WAAU,OAChE,UAAA,gBAAAD,EAAC,QAAA,EACC,UAAA,gBAAAA;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAK;AAAA,YACL,WAAU;AAAA,YACV,SAAQ;AAAA,YACR,UAAU,CAAChB;AAAA,YACX,SAAS,MACPU,EAAyB;AAAA,cACvB,YAAAhB;AAAA,cACA,WAAAG;AAAA,cACA,mBAAmBG;AAAA,YAAA,CACpB;AAAA,YAEJ,UAAA;AAAA,UAAA;AAAA,QAAA,GAGH,EAAA,CACF;AAAA,MAAA,GACF;AAAA,MAYI,UAAA,gBAAAe,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,QAAA,gBAAAH;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,aAAY;AAAA,YACZ,SAAShB;AAAA,YACT,UAAU,CAACiB,MAAarB,EAAaqB,
|
|
1
|
+
{"version":3,"file":"TransferirProcessoDialog.js","sources":["../../../../lib/base/components/shared/TransferirProcessoDialog.tsx"],"sourcesContent":["import { Button, Drawer, Input, Select, Tooltip } from \"@/components\";\nimport { TActionProcesso } from \"@base/@types/models/flux/processo\";\nimport { useEffect, useState } from \"react\";\nimport useTransferirProcesso from \"@base/hooks/flux/useTransferirProcesso\";\nimport { apiGetUsers } from \"@base/services\";\n//import { apiGetUsers } from '@orbe-agro/client-core/base/services/modules/AdmService'\ninterface TransferirProcessoDialogProps {\n isOpen: boolean;\n onClose: () => void;\n idProcesso: number;\n}\n\nconst TransferirProcessoDialog = ({\n isOpen,\n onClose,\n idProcesso,\n}: TransferirProcessoDialogProps) => {\n const { mutate: transferirProcesso } = useTransferirProcesso();\n const [idUsuario, setIdUsuario] = useState<any>(null);\n const [motivo, setMotivo] = useState<string>(\"\");\n const [usersOptions, setUsersOptions] = useState<\n { value: number; label: string }[]\n >([]);\n\n useEffect(() => {\n async function fetchUsers() {\n try {\n const filtros = {};\n const response = await apiGetUsers(filtros);\n const options = response.content.map((item: any) => ({\n value: item.id,\n label: item.nome,\n }));\n setUsersOptions(options);\n } catch (error) {\n console.error(\"Erro ao carregar tipos de processo:\", error);\n }\n }\n fetchUsers();\n }, []);\n\n const handleTransferirProcesso = (dados: TActionProcesso) => {\n transferirProcesso(dados);\n };\n const Footer = (\n <div className=\"flex w-full items-start\">\n <Button block className=\"mx-2\" onClick={() => onClose()}>\n Cancelar\n </Button>\n <Tooltip title={!motivo ? \"Motivo obrigatório\" : <></>} placement=\"top\">\n <span>\n <Button\n block\n className=\"mx-2\"\n variant=\"solid\"\n disabled={!motivo}\n onClick={() =>\n handleTransferirProcesso({\n idProcesso,\n idUsuario,\n mensagemInteracao: motivo,\n })\n }\n >\n Confirmar\n </Button>\n </span>\n </Tooltip>\n </div>\n );\n\n return (\n <>\n <Drawer\n title=\"Transferir Processo\"\n isOpen={isOpen}\n onClose={onClose}\n onRequestClose={onClose}\n footer={Footer}\n >\n <div className=\"flex flex-col gap-4 p-4\">\n <Select\n placeholder=\"Selecione um usuário\"\n options={usersOptions}\n onChange={(opt: any) => setIdUsuario(opt?.value)}\n />\n <Input\n textArea\n rows={4}\n placeholder=\"Motivo da transferência\"\n value={motivo}\n onChange={(e: any) => setMotivo(e.target.value)}\n />\n </div>\n </Drawer>\n </>\n );\n};\n\nexport default TransferirProcessoDialog;\n"],"names":["TransferirProcessoDialog","isOpen","onClose","idProcesso","transferirProcesso","useTransferirProcesso","idUsuario","setIdUsuario","useState","motivo","setMotivo","usersOptions","setUsersOptions","useEffect","fetchUsers","options","apiGetUsers","item","error","handleTransferirProcesso","dados","jsx","Fragment","Drawer","jsxs","Button","Tooltip","Select","opt","Input","e"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAA2B,CAAC;AAAA,EAChC,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAQC,EAAA,IAAuBC,EAAA,GACjC,CAACC,GAAWC,CAAY,IAAIC,EAAc,IAAI,GAC9C,CAACC,GAAQC,CAAS,IAAIF,EAAiB,EAAE,GACzC,CAACG,GAAcC,CAAe,IAAIJ,EAEtC,CAAA,CAAE;AAEJ,EAAAK,EAAU,MAAM;AACd,mBAAeC,IAAa;AAC1B,UAAI;AAGF,cAAMC,KADW,MAAMC,EADP,CAAA,CAC0B,GACjB,QAAQ,IAAI,CAACC,OAAe;AAAA,UACnD,OAAOA,EAAK;AAAA,UACZ,OAAOA,EAAK;AAAA,QAAA,EACZ;AACF,QAAAL,EAAgBG,CAAO;AAAA,MACzB,SAASG,GAAO;AACd,gBAAQ,MAAM,uCAAuCA,CAAK;AAAA,MAC5D;AAAA,IACF;AACA,IAAAJ,EAAA;AAAA,EACF,GAAG,CAAA,CAAE;AAEL,QAAMK,IAA2B,CAACC,MAA2B;AAC3D,IAAAhB,EAAmBgB,CAAK;AAAA,EAC1B;AA4BA,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,QAAAtB;AAAA,MACA,SAAAC;AAAA,MACA,gBAAgBA;AAAA,MAChB,QAjCJ,gBAAAsB,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,QAAA,gBAAAH,EAACI,GAAA,EAAO,OAAK,IAAC,WAAU,QAAO,SAAS,MAAMvB,EAAA,GAAW,UAAA,WAAA,CAEzD;AAAA,QACA,gBAAAmB,EAACK,GAAA,EAAQ,OAAQjB,IAAgC,gBAAAY,EAAAC,GAAA,CAAA,CAAE,IAAzB,sBAA8B,WAAU,OAChE,UAAA,gBAAAD,EAAC,QAAA,EACC,UAAA,gBAAAA;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAK;AAAA,YACL,WAAU;AAAA,YACV,SAAQ;AAAA,YACR,UAAU,CAAChB;AAAA,YACX,SAAS,MACPU,EAAyB;AAAA,cACvB,YAAAhB;AAAA,cACA,WAAAG;AAAA,cACA,mBAAmBG;AAAA,YAAA,CACpB;AAAA,YAEJ,UAAA;AAAA,UAAA;AAAA,QAAA,GAGH,EAAA,CACF;AAAA,MAAA,GACF;AAAA,MAYI,UAAA,gBAAAe,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,QAAA,gBAAAH;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,aAAY;AAAA,YACZ,SAAShB;AAAA,YACT,UAAU,CAACiB,MAAarB,EAAaqB,GAAK,KAAK;AAAA,UAAA;AAAA,QAAA;AAAA,QAEjD,gBAAAP;AAAA,UAACQ;AAAA,UAAA;AAAA,YACC,UAAQ;AAAA,YACR,MAAM;AAAA,YACN,aAAY;AAAA,YACZ,OAAOpB;AAAA,YACP,UAAU,CAACqB,MAAWpB,EAAUoB,EAAE,OAAO,KAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MAChD,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
|