@orbe-agro/client-core 5.3.85 → 5.3.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ecme/assets/styles/app.css +1 -1
- package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
- package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
- package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
- package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
- package/dist/@ecme/assets/styles/components/_upload.css +1 -1
- package/dist/@ecme/assets/styles/components/index.css +1 -1
- package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
- package/dist/@ecme/auth/AuthProvider.js +58 -62
- package/dist/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/shared/Affix.js +9 -10
- package/dist/@ecme/components/shared/Affix.js.map +1 -1
- package/dist/@ecme/components/shared/AutoComplete.js +27 -28
- package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
- package/dist/@ecme/components/shared/CalendarView.js +19 -20
- package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
- package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
- package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
- package/dist/@ecme/components/shared/DataTable.js +151 -151
- package/dist/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/@ecme/components/shared/DebounceInput.js +11 -12
- package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
- package/dist/@ecme/components/shared/ImageGallery.js +18 -18
- package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
- package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
- package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
- package/dist/@ecme/components/shared/OtpInput.js +54 -56
- package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
- package/dist/@ecme/components/shared/PasswordInput.js +6 -6
- package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
- package/dist/@ecme/components/shared/RegionMap.js +9 -9
- package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
- package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
- package/dist/@ecme/components/template/LanguageSelector.js +10 -13
- package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
- package/dist/@ecme/components/template/Search.js +85 -92
- package/dist/@ecme/components/template/Search.js.map +1 -1
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
- package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
- package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Button/Button.js +66 -67
- package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
- package/dist/@ecme/components/ui/Card/Card.js +39 -40
- package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
- package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
- package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
- package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
- package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
- package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
- package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
- package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
- package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
- package/dist/@ecme/components/ui/Input/Input.js +50 -52
- package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
- package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
- package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
- package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
- package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Group.js +28 -28
- package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
- package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
- package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
- package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
- package/dist/@ecme/components/ui/Select/Select.js +40 -41
- package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
- package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
- package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
- package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
- package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
- package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
- package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
- package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
- package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
- package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
- package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
- package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
- package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
- package/dist/@ecme/components/ui/toast/toast.js +16 -19
- package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
- package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
- package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
- package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
- package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
- package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
- package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
- package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts +0 -19
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/base/assets/styles/init.css +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
- package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
- package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
- package/dist/base/components/tools/NavFilter.js +68 -75
- package/dist/base/components/tools/NavFilter.js.map +1 -1
- package/dist/base/configs/api.config.js +11 -14
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
- package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
- package/dist/base/hooks/adm/users/useUsersList.js +10 -10
- package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
- package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
- package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
- package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
- package/dist/base/hooks/useList.js +10 -10
- package/dist/base/hooks/useList.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
- package/dist/base/utils/functions/stringUtils.js +14 -15
- package/dist/base/utils/functions/stringUtils.js.map +1 -1
- package/lib/base/configs/api.config.ts +6 -7
- package/package.json +1 -1
- package/tsconfig.json +6 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as o, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
3
|
import "../../../../../components/ui/Button/index.js";
|
|
4
4
|
import "../../../../../components/ui/Dialog/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { useProjectListStore as
|
|
7
|
-
import { apiGetProjectMembers as
|
|
8
|
-
import
|
|
5
|
+
import c from "./NewProjectForm.js";
|
|
6
|
+
import { useProjectListStore as d } from "../store/projectListStore.js";
|
|
7
|
+
import { apiGetProjectMembers as p } from "../../../../../services/ProjectService.js";
|
|
8
|
+
import f from "swr";
|
|
9
9
|
import j from "../../../../../components/ui/Button/Button.js";
|
|
10
10
|
import u from "../../../../../components/ui/Dialog/Dialog.js";
|
|
11
11
|
const F = () => {
|
|
12
|
-
const [
|
|
13
|
-
return
|
|
12
|
+
const [s, r] = n(!1), { setMembers: i } = d();
|
|
13
|
+
return f(
|
|
14
14
|
["/api/projects/members"],
|
|
15
|
-
() =>
|
|
15
|
+
() => p(),
|
|
16
16
|
{
|
|
17
17
|
revalidateOnFocus: !1,
|
|
18
18
|
revalidateIfStale: !1,
|
|
19
19
|
revalidateOnReconnect: !1,
|
|
20
|
-
onSuccess: (
|
|
21
|
-
const
|
|
20
|
+
onSuccess: (a) => {
|
|
21
|
+
const l = a?.allMembers.map((t) => ({
|
|
22
22
|
value: t.id,
|
|
23
23
|
label: t.name,
|
|
24
24
|
img: t.img
|
|
25
25
|
}));
|
|
26
|
-
l
|
|
26
|
+
i(l);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
), /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
), /* @__PURE__ */ o(m, { children: [
|
|
30
|
+
/* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-4", children: [
|
|
31
31
|
/* @__PURE__ */ e("h3", { children: "Projects" }),
|
|
32
32
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(j, { variant: "solid", onClick: () => r(!0), children: "Create project" }) })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ o(u, { isOpen: s, onClose: () => r(!1), children: [
|
|
35
35
|
/* @__PURE__ */ e("h4", { children: "Add new project" }),
|
|
36
|
-
/* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ e(
|
|
36
|
+
/* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ e(c, { onClose: () => r(!1) }) })
|
|
37
37
|
] })
|
|
38
38
|
] });
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectListHeader.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport NewProjectForm from './NewProjectForm'\nimport { useProjectListStore } from '../store/projectListStore'\nimport { apiGetProjectMembers } from '@/services/ProjectService'\nimport useSWR from 'swr'\nimport type { GetProjectMembersResponse } from '../types'\n\nconst ProjectListHeader = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n\n const { setMembers } = useProjectListStore()\n\n useSWR(\n ['/api/projects/members'],\n () => apiGetProjectMembers<GetProjectMembersResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n const members = data?.allMembers.map((item) => ({\n value: item.id,\n label: item.name,\n img: item.img,\n }))\n setMembers(members)\n },\n },\n )\n\n return (\n <>\n <div className=\"flex items-center justify-between gap-4\">\n <h3>Projects</h3>\n <div>\n <Button variant=\"solid\" onClick={() => setDialogOpen(true)}>\n Create project\n </Button>\n </div>\n </div>\n <Dialog isOpen={dialogOpen} onClose={() => setDialogOpen(false)}>\n <h4>Add new project</h4>\n <div className=\"mt-4\">\n <NewProjectForm onClose={() => setDialogOpen(false)} />\n </div>\n </Dialog>\n </>\n )\n}\n\nexport default ProjectListHeader\n"],"names":["ProjectListHeader","dialogOpen","setDialogOpen","useState","setMembers","useProjectListStore","useSWR","apiGetProjectMembers","data","members","item","jsxs","Fragment","jsx","Button","Dialog","NewProjectForm"],"mappings":";;;;;;;;;;AASA,MAAMA,IAAoB,MAAM;AAC5B,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAE5C,EAAE,YAAAC,EAAA,IAAeC,EAAA;AAEvB,SAAAC;AAAA,IACI,CAAC,uBAAuB;AAAA,IACxB,MAAMC,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,WAAW,CAACC,MAAS;AACjB,cAAMC,IAAUD,
|
|
1
|
+
{"version":3,"file":"ProjectListHeader.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport NewProjectForm from './NewProjectForm'\nimport { useProjectListStore } from '../store/projectListStore'\nimport { apiGetProjectMembers } from '@/services/ProjectService'\nimport useSWR from 'swr'\nimport type { GetProjectMembersResponse } from '../types'\n\nconst ProjectListHeader = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n\n const { setMembers } = useProjectListStore()\n\n useSWR(\n ['/api/projects/members'],\n () => apiGetProjectMembers<GetProjectMembersResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n const members = data?.allMembers.map((item) => ({\n value: item.id,\n label: item.name,\n img: item.img,\n }))\n setMembers(members)\n },\n },\n )\n\n return (\n <>\n <div className=\"flex items-center justify-between gap-4\">\n <h3>Projects</h3>\n <div>\n <Button variant=\"solid\" onClick={() => setDialogOpen(true)}>\n Create project\n </Button>\n </div>\n </div>\n <Dialog isOpen={dialogOpen} onClose={() => setDialogOpen(false)}>\n <h4>Add new project</h4>\n <div className=\"mt-4\">\n <NewProjectForm onClose={() => setDialogOpen(false)} />\n </div>\n </Dialog>\n </>\n )\n}\n\nexport default ProjectListHeader\n"],"names":["ProjectListHeader","dialogOpen","setDialogOpen","useState","setMembers","useProjectListStore","useSWR","apiGetProjectMembers","data","members","item","jsxs","Fragment","jsx","Button","Dialog","NewProjectForm"],"mappings":";;;;;;;;;;AASA,MAAMA,IAAoB,MAAM;AAC5B,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAE5C,EAAE,YAAAC,EAAA,IAAeC,EAAA;AAEvB,SAAAC;AAAA,IACI,CAAC,uBAAuB;AAAA,IACxB,MAAMC,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,WAAW,CAACC,MAAS;AACjB,cAAMC,IAAUD,GAAM,WAAW,IAAI,CAACE,OAAU;AAAA,UAC5C,OAAOA,EAAK;AAAA,UACZ,OAAOA,EAAK;AAAA,UACZ,KAAKA,EAAK;AAAA,QAAA,EACZ;AACF,QAAAN,EAAWK,CAAO;AAAA,MACtB;AAAA,IAAA;AAAA,EACJ,GAIA,gBAAAE,EAAAC,GAAA,EACI,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAU,2CACX,UAAA;AAAA,MAAA,gBAAAE,EAAC,QAAG,UAAA,WAAA,CAAQ;AAAA,MACZ,gBAAAA,EAAC,OAAA,EACG,UAAA,gBAAAA,EAACC,GAAA,EAAO,SAAQ,SAAQ,SAAS,MAAMZ,EAAc,EAAI,GAAG,UAAA,iBAAA,CAE5D,EAAA,CACJ;AAAA,IAAA,GACJ;AAAA,IACA,gBAAAS,EAACI,KAAO,QAAQd,GAAY,SAAS,MAAMC,EAAc,EAAK,GAC1D,UAAA;AAAA,MAAA,gBAAAW,EAAC,QAAG,UAAA,kBAAA,CAAe;AAAA,MACnB,gBAAAA,EAAC,OAAA,EAAI,WAAU,QACX,UAAA,gBAAAA,EAACG,GAAA,EAAe,SAAS,MAAMd,EAAc,EAAK,EAAA,CAAG,EAAA,CACzD;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from "swr";
|
|
2
2
|
import { apiGetProjects as i, apiGetProjectMembers as l } from "../../../../../services/ProjectService.js";
|
|
3
3
|
import { useProjectListStore as n } from "../store/projectListStore.js";
|
|
4
|
-
const
|
|
5
|
-
const { setProjectList:
|
|
4
|
+
const d = () => {
|
|
5
|
+
const { setProjectList: a, setMembers: r } = n(), { isLoading: o } = t(
|
|
6
6
|
["/api/projects/scrum-board"],
|
|
7
7
|
() => i(),
|
|
8
8
|
{
|
|
@@ -10,11 +10,11 @@ const p = () => {
|
|
|
10
10
|
revalidateIfStale: !1,
|
|
11
11
|
revalidateOnReconnect: !1,
|
|
12
12
|
onSuccess: (e) => {
|
|
13
|
-
|
|
13
|
+
a(e);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
|
-
return
|
|
17
|
+
return t(
|
|
18
18
|
["/api/projects/scrum-board/members"],
|
|
19
19
|
() => l(),
|
|
20
20
|
{
|
|
@@ -22,19 +22,19 @@ const p = () => {
|
|
|
22
22
|
revalidateIfStale: !1,
|
|
23
23
|
revalidateOnReconnect: !1,
|
|
24
24
|
onSuccess: (e) => {
|
|
25
|
-
const c = e
|
|
25
|
+
const c = e?.allMembers.map((s) => ({
|
|
26
26
|
value: s.id,
|
|
27
27
|
label: s.name,
|
|
28
28
|
img: s.img
|
|
29
29
|
}));
|
|
30
|
-
|
|
30
|
+
r(c);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
), {
|
|
34
|
-
fetchingProjectList:
|
|
34
|
+
fetchingProjectList: o
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
d as default
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=useProjectList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProjectList.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.ts"],"sourcesContent":["import useSWR from 'swr'\nimport { apiGetProjects, apiGetProjectMembers } from '@/services/ProjectService'\nimport { useProjectListStore } from '../store/projectListStore'\nimport type {\n GetProjectListResponse,\n GetProjectMembersResponse,\n} from '../types'\n\nconst useProjectList = () => {\n const { setProjectList, setMembers } = useProjectListStore()\n\n const { isLoading: fetchingProjectList } = useSWR(\n ['/api/projects/scrum-board'],\n () => apiGetProjects<GetProjectListResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n setProjectList(data)\n },\n },\n )\n\n useSWR(\n ['/api/projects/scrum-board/members'],\n () => apiGetProjectMembers<GetProjectMembersResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n const members = data?.allMembers.map((item) => ({\n value: item.id,\n label: item.name,\n img: item.img,\n }))\n setMembers(members)\n },\n },\n )\n\n return {\n fetchingProjectList,\n }\n}\n\nexport default useProjectList\n"],"names":["useProjectList","setProjectList","setMembers","useProjectListStore","fetchingProjectList","useSWR","apiGetProjects","data","apiGetProjectMembers","members","item"],"mappings":";;;AAQA,MAAMA,IAAiB,MAAM;AACzB,QAAM,EAAE,gBAAAC,GAAgB,YAAAC,EAAA,IAAeC,EAAA,GAEjC,EAAE,WAAWC,EAAA,IAAwBC;AAAA,IACvC,CAAC,2BAA2B;AAAA,IAC5B,MAAMC,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,WAAW,CAACC,MAAS;AACjB,QAAAN,EAAeM,CAAI;AAAA,MACvB;AAAA,IAAA;AAAA,EACJ;AAGJ,SAAAF;AAAA,IACI,CAAC,mCAAmC;AAAA,IACpC,MAAMG,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,WAAW,CAACD,MAAS;AACjB,cAAME,IAAUF,
|
|
1
|
+
{"version":3,"file":"useProjectList.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.ts"],"sourcesContent":["import useSWR from 'swr'\nimport { apiGetProjects, apiGetProjectMembers } from '@/services/ProjectService'\nimport { useProjectListStore } from '../store/projectListStore'\nimport type {\n GetProjectListResponse,\n GetProjectMembersResponse,\n} from '../types'\n\nconst useProjectList = () => {\n const { setProjectList, setMembers } = useProjectListStore()\n\n const { isLoading: fetchingProjectList } = useSWR(\n ['/api/projects/scrum-board'],\n () => apiGetProjects<GetProjectListResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n setProjectList(data)\n },\n },\n )\n\n useSWR(\n ['/api/projects/scrum-board/members'],\n () => apiGetProjectMembers<GetProjectMembersResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n const members = data?.allMembers.map((item) => ({\n value: item.id,\n label: item.name,\n img: item.img,\n }))\n setMembers(members)\n },\n },\n )\n\n return {\n fetchingProjectList,\n }\n}\n\nexport default useProjectList\n"],"names":["useProjectList","setProjectList","setMembers","useProjectListStore","fetchingProjectList","useSWR","apiGetProjects","data","apiGetProjectMembers","members","item"],"mappings":";;;AAQA,MAAMA,IAAiB,MAAM;AACzB,QAAM,EAAE,gBAAAC,GAAgB,YAAAC,EAAA,IAAeC,EAAA,GAEjC,EAAE,WAAWC,EAAA,IAAwBC;AAAA,IACvC,CAAC,2BAA2B;AAAA,IAC5B,MAAMC,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,WAAW,CAACC,MAAS;AACjB,QAAAN,EAAeM,CAAI;AAAA,MACvB;AAAA,IAAA;AAAA,EACJ;AAGJ,SAAAF;AAAA,IACI,CAAC,mCAAmC;AAAA,IACpC,MAAMG,EAAA;AAAA,IACN;AAAA,MACI,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,WAAW,CAACD,MAAS;AACjB,cAAME,IAAUF,GAAM,WAAW,IAAI,CAACG,OAAU;AAAA,UAC5C,OAAOA,EAAK;AAAA,UACZ,OAAOA,EAAK;AAAA,UACZ,KAAKA,EAAK;AAAA,QAAA,EACZ;AACF,QAAAR,EAAWO,CAAO;AAAA,MACtB;AAAA,IAAA;AAAA,EACJ,GAGG;AAAA,IACH,qBAAAL;AAAA,EAAA;AAER;"}
|
|
@@ -1,62 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../components/ui/Form/index.js";
|
|
3
3
|
import "../../../../../components/ui/Input/index.js";
|
|
4
4
|
import "../../../../../components/ui/Button/index.js";
|
|
5
|
-
import { useScrumBoardStore as
|
|
6
|
-
import
|
|
7
|
-
import { useForm as
|
|
8
|
-
import { zodResolver as
|
|
9
|
-
import { z as
|
|
10
|
-
import
|
|
11
|
-
import { Form as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
16
|
-
title:
|
|
17
|
-
}),
|
|
18
|
-
var t;
|
|
5
|
+
import { useScrumBoardStore as b } from "../store/scrumBoardStore.js";
|
|
6
|
+
import v from "../../../../../utils/sleep.js";
|
|
7
|
+
import { useForm as w, Controller as B } from "react-hook-form";
|
|
8
|
+
import { zodResolver as F } from "@hookform/resolvers/zod";
|
|
9
|
+
import { z as d } from "zod";
|
|
10
|
+
import g from "lodash/cloneDeep";
|
|
11
|
+
import { Form as x } from "../../../../../components/ui/Form/Form.js";
|
|
12
|
+
import s from "../../../../../components/ui/Form/FormItem.js";
|
|
13
|
+
import y from "../../../../../components/ui/Input/Input.js";
|
|
14
|
+
import j from "../../../../../components/ui/Button/Button.js";
|
|
15
|
+
const A = d.object({
|
|
16
|
+
title: d.string().min(1, "Column title is required!")
|
|
17
|
+
}), K = () => {
|
|
19
18
|
const {
|
|
20
|
-
columns:
|
|
21
|
-
ordered:
|
|
22
|
-
closeDialog:
|
|
23
|
-
updateColumns:
|
|
24
|
-
resetView:
|
|
25
|
-
updateOrdered:
|
|
26
|
-
} =
|
|
27
|
-
control:
|
|
19
|
+
columns: a,
|
|
20
|
+
ordered: u,
|
|
21
|
+
closeDialog: c,
|
|
22
|
+
updateColumns: p,
|
|
23
|
+
resetView: f,
|
|
24
|
+
updateOrdered: h
|
|
25
|
+
} = b(), {
|
|
26
|
+
control: C,
|
|
28
27
|
formState: { errors: r },
|
|
29
|
-
handleSubmit:
|
|
30
|
-
} =
|
|
28
|
+
handleSubmit: S
|
|
29
|
+
} = w({
|
|
31
30
|
defaultValues: {
|
|
32
31
|
title: ""
|
|
33
32
|
},
|
|
34
|
-
resolver:
|
|
33
|
+
resolver: F(A)
|
|
35
34
|
});
|
|
36
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ l("div", { children: [
|
|
37
36
|
/* @__PURE__ */ o("h5", { children: "Add New Column" }),
|
|
38
|
-
/* @__PURE__ */ o("div", { className: "mt-8", children: /* @__PURE__ */
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
n
|
|
44
|
-
}),
|
|
37
|
+
/* @__PURE__ */ o("div", { className: "mt-8", children: /* @__PURE__ */ l(x, { layout: "inline", onSubmit: S(async ({ title: e }) => {
|
|
38
|
+
const t = g(a);
|
|
39
|
+
t[e || "Untitled Board"] = [];
|
|
40
|
+
const m = [...u, e || "Untitled Board"], i = {};
|
|
41
|
+
m.forEach((n) => {
|
|
42
|
+
i[n] = t[n];
|
|
43
|
+
}), p(i), h(m), c(), await v(500), f();
|
|
45
44
|
}), children: [
|
|
46
45
|
/* @__PURE__ */ o(
|
|
47
|
-
|
|
46
|
+
s,
|
|
48
47
|
{
|
|
49
48
|
label: "Column title",
|
|
50
49
|
invalid: !!r.title,
|
|
51
|
-
errorMessage:
|
|
50
|
+
errorMessage: r.title?.message,
|
|
52
51
|
children: /* @__PURE__ */ o(
|
|
53
|
-
|
|
52
|
+
B,
|
|
54
53
|
{
|
|
55
54
|
name: "title",
|
|
56
|
-
control:
|
|
55
|
+
control: C,
|
|
57
56
|
rules: { required: !0 },
|
|
58
57
|
render: ({ field: e }) => /* @__PURE__ */ o(
|
|
59
|
-
|
|
58
|
+
y,
|
|
60
59
|
{
|
|
61
60
|
type: "text",
|
|
62
61
|
autoComplete: "off",
|
|
@@ -67,11 +66,11 @@ const N = s.object({
|
|
|
67
66
|
)
|
|
68
67
|
}
|
|
69
68
|
),
|
|
70
|
-
/* @__PURE__ */ o(
|
|
69
|
+
/* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(j, { variant: "solid", type: "submit", children: "Add" }) })
|
|
71
70
|
] }) })
|
|
72
71
|
] });
|
|
73
72
|
};
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
K as default
|
|
76
75
|
};
|
|
77
76
|
//# sourceMappingURL=AddNewColumnContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddNewColumnContent.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.tsx"],"sourcesContent":["import { Form, FormItem } from '@/components/ui/Form'\nimport Input from '@/components/ui/Input'\nimport Button from '@/components/ui/Button'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport sleep from '@/utils/sleep'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport cloneDeep from 'lodash/cloneDeep'\nimport type { ZodType } from 'zod'\nimport type { Columns } from '../types'\n\ntype FormSchema = {\n title: string\n}\n\nconst validationSchema: ZodType<FormSchema> = z.object({\n title: z.string().min(1, 'Column title is required!'),\n})\n\nconst AddNewColumnContent = () => {\n const {\n columns,\n ordered,\n closeDialog,\n updateColumns,\n resetView,\n updateOrdered,\n } = useScrumBoardStore()\n\n const {\n control,\n formState: { errors },\n handleSubmit,\n } = useForm<FormSchema>({\n defaultValues: {\n title: '',\n },\n resolver: zodResolver(validationSchema),\n })\n\n const onFormSubmit = async ({ title }: FormSchema) => {\n const data = cloneDeep(columns)\n data[title ? title : 'Untitled Board'] = []\n const newOrdered = [...ordered, ...[title ? title : 'Untitled Board']]\n const newColumns: Columns = {}\n\n newOrdered.forEach((elm) => {\n newColumns[elm] = data[elm]\n })\n\n updateColumns(newColumns)\n updateOrdered(newOrdered)\n closeDialog()\n await sleep(500)\n resetView()\n }\n\n return (\n <div>\n <h5>Add New Column</h5>\n <div className=\"mt-8\">\n <Form layout=\"inline\" onSubmit={handleSubmit(onFormSubmit)}>\n <FormItem\n label=\"Column title\"\n invalid={Boolean(errors.title)}\n errorMessage={errors.title?.message}\n >\n <Controller\n name=\"title\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <Input\n type=\"text\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem>\n <Button variant=\"solid\" type=\"submit\">\n Add\n </Button>\n </FormItem>\n </Form>\n </div>\n </div>\n )\n}\n\nexport default AddNewColumnContent\n"],"names":["validationSchema","z","AddNewColumnContent","columns","ordered","closeDialog","updateColumns","resetView","updateOrdered","useScrumBoardStore","control","errors","handleSubmit","useForm","zodResolver","jsx","jsxs","Form","title","data","cloneDeep","newOrdered","newColumns","elm","sleep","FormItem","
|
|
1
|
+
{"version":3,"file":"AddNewColumnContent.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.tsx"],"sourcesContent":["import { Form, FormItem } from '@/components/ui/Form'\nimport Input from '@/components/ui/Input'\nimport Button from '@/components/ui/Button'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport sleep from '@/utils/sleep'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport cloneDeep from 'lodash/cloneDeep'\nimport type { ZodType } from 'zod'\nimport type { Columns } from '../types'\n\ntype FormSchema = {\n title: string\n}\n\nconst validationSchema: ZodType<FormSchema> = z.object({\n title: z.string().min(1, 'Column title is required!'),\n})\n\nconst AddNewColumnContent = () => {\n const {\n columns,\n ordered,\n closeDialog,\n updateColumns,\n resetView,\n updateOrdered,\n } = useScrumBoardStore()\n\n const {\n control,\n formState: { errors },\n handleSubmit,\n } = useForm<FormSchema>({\n defaultValues: {\n title: '',\n },\n resolver: zodResolver(validationSchema),\n })\n\n const onFormSubmit = async ({ title }: FormSchema) => {\n const data = cloneDeep(columns)\n data[title ? title : 'Untitled Board'] = []\n const newOrdered = [...ordered, ...[title ? title : 'Untitled Board']]\n const newColumns: Columns = {}\n\n newOrdered.forEach((elm) => {\n newColumns[elm] = data[elm]\n })\n\n updateColumns(newColumns)\n updateOrdered(newOrdered)\n closeDialog()\n await sleep(500)\n resetView()\n }\n\n return (\n <div>\n <h5>Add New Column</h5>\n <div className=\"mt-8\">\n <Form layout=\"inline\" onSubmit={handleSubmit(onFormSubmit)}>\n <FormItem\n label=\"Column title\"\n invalid={Boolean(errors.title)}\n errorMessage={errors.title?.message}\n >\n <Controller\n name=\"title\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <Input\n type=\"text\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem>\n <Button variant=\"solid\" type=\"submit\">\n Add\n </Button>\n </FormItem>\n </Form>\n </div>\n </div>\n )\n}\n\nexport default AddNewColumnContent\n"],"names":["validationSchema","z","AddNewColumnContent","columns","ordered","closeDialog","updateColumns","resetView","updateOrdered","useScrumBoardStore","control","errors","handleSubmit","useForm","zodResolver","jsx","jsxs","Form","title","data","cloneDeep","newOrdered","newColumns","elm","sleep","FormItem","Controller","field","Input","Button"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,IAAwCC,EAAE,OAAO;AAAA,EACnD,OAAOA,EAAE,OAAA,EAAS,IAAI,GAAG,2BAA2B;AACxD,CAAC,GAEKC,IAAsB,MAAM;AAC9B,QAAM;AAAA,IACF,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,EAAA,IACAC,EAAA,GAEE;AAAA,IACF,SAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,cAAAC;AAAA,EAAA,IACAC,EAAoB;AAAA,IACpB,eAAe;AAAA,MACX,OAAO;AAAA,IAAA;AAAA,IAEX,UAAUC,EAAYd,CAAgB;AAAA,EAAA,CACzC;AAmBD,2BACK,OAAA,EACG,UAAA;AAAA,IAAA,gBAAAe,EAAC,QAAG,UAAA,iBAAA,CAAc;AAAA,IAClB,gBAAAA,EAAC,OAAA,EAAI,WAAU,QACX,UAAA,gBAAAC,EAACC,GAAA,EAAK,QAAO,UAAS,UAAUL,EArBvB,OAAO,EAAE,OAAAM,QAAwB;AAClD,YAAMC,IAAOC,EAAUjB,CAAO;AAC9B,MAAAgB,EAAKD,KAAgB,gBAAgB,IAAI,CAAA;AACzC,YAAMG,IAAa,CAAC,GAAGjB,GAAac,KAAgB,gBAAiB,GAC/DI,IAAsB,CAAA;AAE5B,MAAAD,EAAW,QAAQ,CAACE,MAAQ;AACxB,QAAAD,EAAWC,CAAG,IAAIJ,EAAKI,CAAG;AAAA,MAC9B,CAAC,GAEDjB,EAAcgB,CAAU,GACxBd,EAAca,CAAU,GACxBhB,EAAA,GACA,MAAMmB,EAAM,GAAG,GACfjB,EAAA;AAAA,IACJ,CAMqE,GACrD,UAAA;AAAA,MAAA,gBAAAQ;AAAA,QAACU;AAAA,QAAA;AAAA,UACG,OAAM;AAAA,UACN,SAAS,EAAQd,EAAO;AAAA,UACxB,cAAcA,EAAO,OAAO;AAAA,UAE5B,UAAA,gBAAAI;AAAA,YAACW;AAAA,YAAA;AAAA,cACG,MAAK;AAAA,cACL,SAAAhB;AAAA,cACA,OAAO,EAAE,UAAU,GAAA;AAAA,cACnB,QAAQ,CAAC,EAAE,OAAAiB,EAAA,MACP,gBAAAZ;AAAA,gBAACa;AAAA,gBAAA;AAAA,kBACG,MAAK;AAAA,kBACL,cAAa;AAAA,kBACZ,GAAGD;AAAA,gBAAA;AAAA,cAAA;AAAA,YACR;AAAA,UAAA;AAAA,QAER;AAAA,MAAA;AAAA,MAEJ,gBAAAZ,EAACU,KACG,UAAA,gBAAAV,EAACc,GAAA,EAAO,SAAQ,SAAQ,MAAK,UAAS,UAAA,MAAA,CAEtC,EAAA,CACJ;AAAA,IAAA,EAAA,CACJ,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,54 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../components/ui/Form/index.js";
|
|
3
3
|
import "../../../../../components/ui/Input/index.js";
|
|
4
4
|
import "../../../../../components/ui/Button/index.js";
|
|
5
|
-
import { useScrumBoardStore as
|
|
6
|
-
import
|
|
7
|
-
import { useForm as
|
|
8
|
-
import { zodResolver as
|
|
9
|
-
import { z as
|
|
10
|
-
import
|
|
11
|
-
import { createCardObject as
|
|
12
|
-
import { Form as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
title:
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
control: f,
|
|
5
|
+
import { useScrumBoardStore as b } from "../store/scrumBoardStore.js";
|
|
6
|
+
import S from "../../../../../utils/sleep.js";
|
|
7
|
+
import { useForm as C, Controller as v } from "react-hook-form";
|
|
8
|
+
import { zodResolver as w } from "@hookform/resolvers/zod";
|
|
9
|
+
import { z as n } from "zod";
|
|
10
|
+
import F from "lodash/cloneDeep";
|
|
11
|
+
import { createCardObject as g } from "../utils.js";
|
|
12
|
+
import { Form as j } from "../../../../../components/ui/Form/Form.js";
|
|
13
|
+
import l from "../../../../../components/ui/Form/FormItem.js";
|
|
14
|
+
import x from "../../../../../components/ui/Input/Input.js";
|
|
15
|
+
import y from "../../../../../components/ui/Button/Button.js";
|
|
16
|
+
const B = n.object({
|
|
17
|
+
title: n.string().min(1, "Ticket title is required!")
|
|
18
|
+
}), J = () => {
|
|
19
|
+
const { columns: a, board: s, closeDialog: d, updateColumns: c, setSelectedBoard: u } = b(), {
|
|
20
|
+
control: p,
|
|
22
21
|
formState: { errors: o },
|
|
23
|
-
handleSubmit:
|
|
24
|
-
} =
|
|
22
|
+
handleSubmit: f
|
|
23
|
+
} = C({
|
|
25
24
|
defaultValues: {
|
|
26
25
|
title: ""
|
|
27
26
|
},
|
|
28
|
-
resolver:
|
|
27
|
+
resolver: w(B)
|
|
29
28
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ m("div", { children: [
|
|
31
30
|
/* @__PURE__ */ t("h5", { children: "Add New Ticket" }),
|
|
32
|
-
/* @__PURE__ */ t("div", { className: "mt-8", children: /* @__PURE__ */
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
/* @__PURE__ */ t("div", { className: "mt-8", children: /* @__PURE__ */ m(j, { layout: "inline", onSubmit: f(async ({ title: e }) => {
|
|
32
|
+
const h = a, r = g();
|
|
33
|
+
r.name = e || "Untitled Card";
|
|
34
|
+
const i = F(h);
|
|
35
|
+
i[s].push(r), c(i), d(), await S(1e3), u("");
|
|
37
36
|
}), children: [
|
|
38
37
|
/* @__PURE__ */ t(
|
|
39
|
-
|
|
38
|
+
l,
|
|
40
39
|
{
|
|
41
40
|
label: "Column title",
|
|
42
41
|
invalid: !!o.title,
|
|
43
|
-
errorMessage:
|
|
42
|
+
errorMessage: o.title?.message,
|
|
44
43
|
children: /* @__PURE__ */ t(
|
|
45
|
-
|
|
44
|
+
v,
|
|
46
45
|
{
|
|
47
46
|
name: "title",
|
|
48
|
-
control:
|
|
47
|
+
control: p,
|
|
49
48
|
rules: { required: !0 },
|
|
50
49
|
render: ({ field: e }) => /* @__PURE__ */ t(
|
|
51
|
-
|
|
50
|
+
x,
|
|
52
51
|
{
|
|
53
52
|
type: "text",
|
|
54
53
|
autoComplete: "off",
|
|
@@ -59,11 +58,11 @@ const k = l.object({
|
|
|
59
58
|
)
|
|
60
59
|
}
|
|
61
60
|
),
|
|
62
|
-
/* @__PURE__ */ t(
|
|
61
|
+
/* @__PURE__ */ t(l, { children: /* @__PURE__ */ t(y, { variant: "solid", type: "submit", children: "Add" }) })
|
|
63
62
|
] }) })
|
|
64
63
|
] });
|
|
65
64
|
};
|
|
66
65
|
export {
|
|
67
|
-
|
|
66
|
+
J as default
|
|
68
67
|
};
|
|
69
68
|
//# sourceMappingURL=AddNewTicketContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddNewTicketContent.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.tsx"],"sourcesContent":["import { Form, FormItem } from '@/components/ui/Form'\nimport Input from '@/components/ui/Input'\nimport Button from '@/components/ui/Button'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport sleep from '@/utils/sleep'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport cloneDeep from 'lodash/cloneDeep'\nimport { createCardObject } from '../utils'\nimport type { ZodType } from 'zod'\n\ntype FormSchema = {\n title: string\n}\n\nconst validationSchema: ZodType<FormSchema> = z.object({\n title: z.string().min(1, 'Ticket title is required!'),\n})\n\nconst AddNewTicketContent = () => {\n const { columns, board, closeDialog, updateColumns, setSelectedBoard } =\n useScrumBoardStore()\n\n const {\n control,\n formState: { errors },\n handleSubmit,\n } = useForm<FormSchema>({\n defaultValues: {\n title: '',\n },\n resolver: zodResolver(validationSchema),\n })\n\n const onFormSubmit = async ({ title }: FormSchema) => {\n const data = columns\n const newCard = createCardObject()\n newCard.name = title ? title : 'Untitled Card'\n\n const newData = cloneDeep(data)\n newData[board].push(newCard)\n updateColumns(newData)\n closeDialog()\n await sleep(1000)\n setSelectedBoard('')\n }\n\n return (\n <div>\n <h5>Add New Ticket</h5>\n <div className=\"mt-8\">\n <Form layout=\"inline\" onSubmit={handleSubmit(onFormSubmit)}>\n <FormItem\n label=\"Column title\"\n invalid={Boolean(errors.title)}\n errorMessage={errors.title?.message}\n >\n <Controller\n name=\"title\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <Input\n type=\"text\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem>\n <Button variant=\"solid\" type=\"submit\">\n Add\n </Button>\n </FormItem>\n </Form>\n </div>\n </div>\n )\n}\n\nexport default AddNewTicketContent\n"],"names":["validationSchema","z","AddNewTicketContent","columns","board","closeDialog","updateColumns","setSelectedBoard","useScrumBoardStore","control","errors","handleSubmit","useForm","zodResolver","jsx","jsxs","Form","title","data","newCard","createCardObject","newData","cloneDeep","sleep","FormItem","
|
|
1
|
+
{"version":3,"file":"AddNewTicketContent.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.tsx"],"sourcesContent":["import { Form, FormItem } from '@/components/ui/Form'\nimport Input from '@/components/ui/Input'\nimport Button from '@/components/ui/Button'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport sleep from '@/utils/sleep'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport cloneDeep from 'lodash/cloneDeep'\nimport { createCardObject } from '../utils'\nimport type { ZodType } from 'zod'\n\ntype FormSchema = {\n title: string\n}\n\nconst validationSchema: ZodType<FormSchema> = z.object({\n title: z.string().min(1, 'Ticket title is required!'),\n})\n\nconst AddNewTicketContent = () => {\n const { columns, board, closeDialog, updateColumns, setSelectedBoard } =\n useScrumBoardStore()\n\n const {\n control,\n formState: { errors },\n handleSubmit,\n } = useForm<FormSchema>({\n defaultValues: {\n title: '',\n },\n resolver: zodResolver(validationSchema),\n })\n\n const onFormSubmit = async ({ title }: FormSchema) => {\n const data = columns\n const newCard = createCardObject()\n newCard.name = title ? title : 'Untitled Card'\n\n const newData = cloneDeep(data)\n newData[board].push(newCard)\n updateColumns(newData)\n closeDialog()\n await sleep(1000)\n setSelectedBoard('')\n }\n\n return (\n <div>\n <h5>Add New Ticket</h5>\n <div className=\"mt-8\">\n <Form layout=\"inline\" onSubmit={handleSubmit(onFormSubmit)}>\n <FormItem\n label=\"Column title\"\n invalid={Boolean(errors.title)}\n errorMessage={errors.title?.message}\n >\n <Controller\n name=\"title\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <Input\n type=\"text\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem>\n <Button variant=\"solid\" type=\"submit\">\n Add\n </Button>\n </FormItem>\n </Form>\n </div>\n </div>\n )\n}\n\nexport default AddNewTicketContent\n"],"names":["validationSchema","z","AddNewTicketContent","columns","board","closeDialog","updateColumns","setSelectedBoard","useScrumBoardStore","control","errors","handleSubmit","useForm","zodResolver","jsx","jsxs","Form","title","data","newCard","createCardObject","newData","cloneDeep","sleep","FormItem","Controller","field","Input","Button"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAMA,IAAwCC,EAAE,OAAO;AAAA,EACnD,OAAOA,EAAE,OAAA,EAAS,IAAI,GAAG,2BAA2B;AACxD,CAAC,GAEKC,IAAsB,MAAM;AAC9B,QAAM,EAAE,SAAAC,GAAS,OAAAC,GAAO,aAAAC,GAAa,eAAAC,GAAe,kBAAAC,EAAA,IAChDC,EAAA,GAEE;AAAA,IACF,SAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,cAAAC;AAAA,EAAA,IACAC,EAAoB;AAAA,IACpB,eAAe;AAAA,MACX,OAAO;AAAA,IAAA;AAAA,IAEX,UAAUC,EAAYb,CAAgB;AAAA,EAAA,CACzC;AAeD,2BACK,OAAA,EACG,UAAA;AAAA,IAAA,gBAAAc,EAAC,QAAG,UAAA,iBAAA,CAAc;AAAA,IAClB,gBAAAA,EAAC,OAAA,EAAI,WAAU,QACX,UAAA,gBAAAC,EAACC,GAAA,EAAK,QAAO,UAAS,UAAUL,EAjBvB,OAAO,EAAE,OAAAM,QAAwB;AAClD,YAAMC,IAAOf,GACPgB,IAAUC,EAAA;AAChB,MAAAD,EAAQ,OAAOF,KAAgB;AAE/B,YAAMI,IAAUC,EAAUJ,CAAI;AAC9B,MAAAG,EAAQjB,CAAK,EAAE,KAAKe,CAAO,GAC3Bb,EAAce,CAAO,GACrBhB,EAAA,GACA,MAAMkB,EAAM,GAAI,GAChBhB,EAAiB,EAAE;AAAA,IACvB,CAMqE,GACrD,UAAA;AAAA,MAAA,gBAAAO;AAAA,QAACU;AAAA,QAAA;AAAA,UACG,OAAM;AAAA,UACN,SAAS,EAAQd,EAAO;AAAA,UACxB,cAAcA,EAAO,OAAO;AAAA,UAE5B,UAAA,gBAAAI;AAAA,YAACW;AAAA,YAAA;AAAA,cACG,MAAK;AAAA,cACL,SAAAhB;AAAA,cACA,OAAO,EAAE,UAAU,GAAA;AAAA,cACnB,QAAQ,CAAC,EAAE,OAAAiB,EAAA,MACP,gBAAAZ;AAAA,gBAACa;AAAA,gBAAA;AAAA,kBACG,MAAK;AAAA,kBACL,cAAa;AAAA,kBACZ,GAAGD;AAAA,gBAAA;AAAA,cAAA;AAAA,YACR;AAAA,UAAA;AAAA,QAER;AAAA,MAAA;AAAA,MAEJ,gBAAAZ,EAACU,KACG,UAAA,gBAAAV,EAACc,GAAA,EAAO,SAAQ,SAAQ,MAAK,UAAS,UAAA,MAAA,CAEtC,EAAA,CACJ;AAAA,IAAA,EAAA,CACJ,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import { jsx as e, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import h from "./BoardCard.js";
|
|
3
3
|
import { Draggable as m, Droppable as D } from "@hello-pangea/dnd";
|
|
4
|
-
function
|
|
5
|
-
const { dropProvided:
|
|
6
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
4
|
+
function p(a) {
|
|
5
|
+
const { dropProvided: s, contents: o, isDisabledMoveCard: t, ...i } = a;
|
|
6
|
+
return /* @__PURE__ */ e("div", { ref: s.innerRef, className: "board-dropzone h-full", children: /* @__PURE__ */ e("div", { className: "px-5 h-full", children: o?.map((r, d) => /* @__PURE__ */ e(
|
|
7
7
|
m,
|
|
8
8
|
{
|
|
9
|
-
draggableId:
|
|
9
|
+
draggableId: r.id,
|
|
10
10
|
index: d,
|
|
11
11
|
isDragDisabled: t,
|
|
12
|
-
children: (
|
|
12
|
+
children: (l) => /* @__PURE__ */ e(
|
|
13
13
|
h,
|
|
14
14
|
{
|
|
15
|
-
ref:
|
|
16
|
-
data:
|
|
17
|
-
...
|
|
18
|
-
...
|
|
19
|
-
...
|
|
15
|
+
ref: l.innerRef,
|
|
16
|
+
data: r,
|
|
17
|
+
...i,
|
|
18
|
+
...l.draggableProps,
|
|
19
|
+
...l.dragHandleProps
|
|
20
20
|
}
|
|
21
21
|
)
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
r.id
|
|
24
24
|
)) }) });
|
|
25
25
|
}
|
|
26
|
-
const I = (
|
|
26
|
+
const I = (a) => {
|
|
27
27
|
const {
|
|
28
|
-
ignoreContainerClipping:
|
|
29
|
-
internalScroll:
|
|
28
|
+
ignoreContainerClipping: s,
|
|
29
|
+
internalScroll: o,
|
|
30
30
|
scrollContainerStyle: t,
|
|
31
|
-
isDropDisabled:
|
|
32
|
-
isCombineEnabled:
|
|
31
|
+
isDropDisabled: i,
|
|
32
|
+
isCombineEnabled: r,
|
|
33
33
|
listId: d = "LIST",
|
|
34
|
-
style:
|
|
34
|
+
style: l,
|
|
35
35
|
listType: b,
|
|
36
|
-
contents:
|
|
36
|
+
contents: c,
|
|
37
37
|
useClone: f
|
|
38
|
-
} =
|
|
38
|
+
} = a;
|
|
39
39
|
return /* @__PURE__ */ e(
|
|
40
40
|
D,
|
|
41
41
|
{
|
|
42
42
|
droppableId: d,
|
|
43
43
|
type: b,
|
|
44
|
-
ignoreContainerClipping:
|
|
45
|
-
isDropDisabled:
|
|
46
|
-
isCombineEnabled:
|
|
44
|
+
ignoreContainerClipping: s,
|
|
45
|
+
isDropDisabled: i,
|
|
46
|
+
isCombineEnabled: r,
|
|
47
47
|
renderClone: f,
|
|
48
|
-
children: (
|
|
48
|
+
children: (n) => /* @__PURE__ */ C(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: "board-wrapper overflow-hidden flex-auto",
|
|
52
|
-
...
|
|
52
|
+
...n.droppableProps,
|
|
53
53
|
children: [
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
o ? /* @__PURE__ */ e("div", { className: "board-scrollContainer", children: /* @__PURE__ */ e(
|
|
55
|
+
p,
|
|
56
56
|
{
|
|
57
|
-
contents:
|
|
58
|
-
dropProvided:
|
|
57
|
+
contents: c,
|
|
58
|
+
dropProvided: n
|
|
59
59
|
}
|
|
60
60
|
) }) : /* @__PURE__ */ e(
|
|
61
|
-
|
|
61
|
+
p,
|
|
62
62
|
{
|
|
63
|
-
contents:
|
|
64
|
-
dropProvided:
|
|
65
|
-
isDisabledMoveCard:
|
|
63
|
+
contents: c,
|
|
64
|
+
dropProvided: n,
|
|
65
|
+
isDisabledMoveCard: a.isDisabledMoveCard
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
|
|
68
|
+
n.placeholder
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardCardList.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.tsx"],"sourcesContent":["import BoardCard from \"./BoardCard\";\nimport {\n Draggable,\n Droppable,\n DraggableChildrenFn,\n DroppableProvided,\n} from \"@hello-pangea/dnd\";\nimport type { Ticket } from \"../types\";\nimport type { CSSProperties } from \"react\";\n\nexport interface BaseBoardProps {\n contents?: Ticket[]\n useClone?: DraggableChildrenFn\n isCombineEnabled?: boolean\n isDisabledMoveCard?: boolean\n}\n\ninterface BoardCardListProps extends BaseBoardProps {\n ignoreContainerClipping?: boolean\n internalScroll?: boolean\n scrollContainerStyle?: CSSProperties\n isDropDisabled?: boolean\n listId?: string\n style?: CSSProperties\n listType?: string\n className?: string\n}\n\ntype InnerListProps = {\n dropProvided: DroppableProvided\n contents?: Ticket[]\n isDisabledMoveCard?: boolean\n}\n\nfunction InnerList(props: InnerListProps) {\n const { dropProvided, contents, isDisabledMoveCard, ...rest } = props\n\n return (\n <div ref={dropProvided.innerRef} className=\"board-dropzone h-full\">\n <div className=\"px-5 h-full\">\n {contents?.map((item, index) => (\n <Draggable\n key={item.id}\n draggableId={item.id}\n index={index}\n isDragDisabled={isDisabledMoveCard}\n >\n {(dragProvided) => (\n <BoardCard\n ref={dragProvided.innerRef}\n data={item}\n {...rest}\n {...dragProvided.draggableProps}\n {...dragProvided.dragHandleProps}\n />\n )}\n </Draggable>\n ))}\n </div>\n </div>\n )\n}\n\nconst BoardCardList = (props: BoardCardListProps) => {\n const {\n ignoreContainerClipping,\n internalScroll,\n scrollContainerStyle,\n isDropDisabled,\n isCombineEnabled,\n listId = 'LIST',\n style,\n listType,\n contents,\n useClone,\n } = props\n\n return (\n <Droppable\n droppableId={listId}\n type={listType}\n ignoreContainerClipping={ignoreContainerClipping}\n isDropDisabled={isDropDisabled}\n isCombineEnabled={isCombineEnabled}\n renderClone={useClone}\n >\n {(dropProvided) => (\n <div\n className=\"board-wrapper overflow-hidden flex-auto\"\n {...dropProvided.droppableProps}\n >\n {internalScroll ? (\n <div className=\"board-scrollContainer\">\n <InnerList\n contents={contents}\n dropProvided={dropProvided}\n />\n </div>\n ) : (\n <InnerList\n contents={contents}\n dropProvided={dropProvided}\n isDisabledMoveCard={props.isDisabledMoveCard}\n />\n )}\n {dropProvided.placeholder}\n </div>\n )}\n </Droppable>\n )\n}\n\nexport default BoardCardList\n"],"names":["InnerList","props","dropProvided","contents","isDisabledMoveCard","rest","jsx","item","index","Draggable","dragProvided","BoardCard","BoardCardList","ignoreContainerClipping","internalScroll","scrollContainerStyle","isDropDisabled","isCombineEnabled","listId","style","listType","useClone","Droppable","jsxs"],"mappings":";;;AAkCA,SAASA,EAAUC,GAAuB;AACtC,QAAM,EAAE,cAAAC,GAAc,UAAAC,GAAU,oBAAAC,GAAoB,GAAGC,MAASJ;AAEhE,SACI,gBAAAK,EAAC,OAAA,EAAI,KAAKJ,EAAa,UAAU,WAAU,yBACvC,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAU,eACV,UAAAH,
|
|
1
|
+
{"version":3,"file":"BoardCardList.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.tsx"],"sourcesContent":["import BoardCard from \"./BoardCard\";\nimport {\n Draggable,\n Droppable,\n DraggableChildrenFn,\n DroppableProvided,\n} from \"@hello-pangea/dnd\";\nimport type { Ticket } from \"../types\";\nimport type { CSSProperties } from \"react\";\n\nexport interface BaseBoardProps {\n contents?: Ticket[]\n useClone?: DraggableChildrenFn\n isCombineEnabled?: boolean\n isDisabledMoveCard?: boolean\n}\n\ninterface BoardCardListProps extends BaseBoardProps {\n ignoreContainerClipping?: boolean\n internalScroll?: boolean\n scrollContainerStyle?: CSSProperties\n isDropDisabled?: boolean\n listId?: string\n style?: CSSProperties\n listType?: string\n className?: string\n}\n\ntype InnerListProps = {\n dropProvided: DroppableProvided\n contents?: Ticket[]\n isDisabledMoveCard?: boolean\n}\n\nfunction InnerList(props: InnerListProps) {\n const { dropProvided, contents, isDisabledMoveCard, ...rest } = props\n\n return (\n <div ref={dropProvided.innerRef} className=\"board-dropzone h-full\">\n <div className=\"px-5 h-full\">\n {contents?.map((item, index) => (\n <Draggable\n key={item.id}\n draggableId={item.id}\n index={index}\n isDragDisabled={isDisabledMoveCard}\n >\n {(dragProvided) => (\n <BoardCard\n ref={dragProvided.innerRef}\n data={item}\n {...rest}\n {...dragProvided.draggableProps}\n {...dragProvided.dragHandleProps}\n />\n )}\n </Draggable>\n ))}\n </div>\n </div>\n )\n}\n\nconst BoardCardList = (props: BoardCardListProps) => {\n const {\n ignoreContainerClipping,\n internalScroll,\n scrollContainerStyle,\n isDropDisabled,\n isCombineEnabled,\n listId = 'LIST',\n style,\n listType,\n contents,\n useClone,\n } = props\n\n return (\n <Droppable\n droppableId={listId}\n type={listType}\n ignoreContainerClipping={ignoreContainerClipping}\n isDropDisabled={isDropDisabled}\n isCombineEnabled={isCombineEnabled}\n renderClone={useClone}\n >\n {(dropProvided) => (\n <div\n className=\"board-wrapper overflow-hidden flex-auto\"\n {...dropProvided.droppableProps}\n >\n {internalScroll ? (\n <div className=\"board-scrollContainer\">\n <InnerList\n contents={contents}\n dropProvided={dropProvided}\n />\n </div>\n ) : (\n <InnerList\n contents={contents}\n dropProvided={dropProvided}\n isDisabledMoveCard={props.isDisabledMoveCard}\n />\n )}\n {dropProvided.placeholder}\n </div>\n )}\n </Droppable>\n )\n}\n\nexport default BoardCardList\n"],"names":["InnerList","props","dropProvided","contents","isDisabledMoveCard","rest","jsx","item","index","Draggable","dragProvided","BoardCard","BoardCardList","ignoreContainerClipping","internalScroll","scrollContainerStyle","isDropDisabled","isCombineEnabled","listId","style","listType","useClone","Droppable","jsxs"],"mappings":";;;AAkCA,SAASA,EAAUC,GAAuB;AACtC,QAAM,EAAE,cAAAC,GAAc,UAAAC,GAAU,oBAAAC,GAAoB,GAAGC,MAASJ;AAEhE,SACI,gBAAAK,EAAC,OAAA,EAAI,KAAKJ,EAAa,UAAU,WAAU,yBACvC,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAU,eACV,UAAAH,GAAU,IAAI,CAACI,GAAMC,MAClB,gBAAAF;AAAA,IAACG;AAAA,IAAA;AAAA,MAEG,aAAaF,EAAK;AAAA,MAClB,OAAAC;AAAA,MACA,gBAAgBJ;AAAA,MAEf,WAACM,MACE,gBAAAJ;AAAA,QAACK;AAAA,QAAA;AAAA,UACG,KAAKD,EAAa;AAAA,UAClB,MAAMH;AAAA,UACL,GAAGF;AAAA,UACH,GAAGK,EAAa;AAAA,UAChB,GAAGA,EAAa;AAAA,QAAA;AAAA,MAAA;AAAA,IACrB;AAAA,IAZCH,EAAK;AAAA,EAAA,CAejB,GACL,EAAA,CACJ;AAER;AAEA,MAAMK,IAAgB,CAACX,MAA8B;AACjD,QAAM;AAAA,IACF,yBAAAY;AAAA,IACA,gBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAjB;AAAA,IACA,UAAAkB;AAAA,EAAA,IACApB;AAEJ,SACI,gBAAAK;AAAA,IAACgB;AAAA,IAAA;AAAA,MACG,aAAaJ;AAAA,MACb,MAAME;AAAA,MACN,yBAAAP;AAAA,MACA,gBAAAG;AAAA,MACA,kBAAAC;AAAA,MACA,aAAaI;AAAA,MAEZ,WAACnB,MACE,gBAAAqB;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACT,GAAGrB,EAAa;AAAA,UAEhB,UAAA;AAAA,YAAAY,IACG,gBAAAR,EAAC,OAAA,EAAI,WAAU,yBACX,UAAA,gBAAAA;AAAA,cAACN;AAAA,cAAA;AAAA,gBACG,UAAAG;AAAA,gBACA,cAAAD;AAAA,cAAA;AAAA,YAAA,GAER,IAEA,gBAAAI;AAAA,cAACN;AAAA,cAAA;AAAA,gBACG,UAAAG;AAAA,gBACA,cAAAD;AAAA,gBACA,oBAAoBD,EAAM;AAAA,cAAA;AAAA,YAAA;AAAA,YAGjCC,EAAa;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAClB;AAAA,EAAA;AAIhB;"}
|