@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,24 +1,24 @@
|
|
|
1
|
-
import { jsxs as c, Fragment as m, jsx as
|
|
1
|
+
import { jsxs as c, Fragment as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { ViewMode as p, Gantt as f } from "gantt-task-react";
|
|
3
3
|
import g from "./TaskListTable.js";
|
|
4
4
|
import k from "./TaskListHeader.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import C from "./TooltipContent.js";
|
|
6
|
+
import h from "./tasksPreProcess.js";
|
|
7
7
|
import { PatternLines as u } from "@visx/pattern";
|
|
8
|
-
const
|
|
8
|
+
const B = (t) => {
|
|
9
9
|
const {
|
|
10
10
|
tasks: s,
|
|
11
11
|
viewMode: l = p.Day,
|
|
12
|
-
extraColumns:
|
|
12
|
+
extraColumns: a,
|
|
13
13
|
colorsMap: i = {},
|
|
14
|
-
showArrow:
|
|
15
|
-
...
|
|
14
|
+
showArrow: n,
|
|
15
|
+
...d
|
|
16
16
|
} = t;
|
|
17
17
|
return /* @__PURE__ */ c(m, { children: [
|
|
18
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ r(
|
|
19
19
|
f,
|
|
20
20
|
{
|
|
21
|
-
tasks:
|
|
21
|
+
tasks: h(s, i),
|
|
22
22
|
viewMode: l,
|
|
23
23
|
listCellWidth: "200px",
|
|
24
24
|
columnWidth: 65,
|
|
@@ -34,27 +34,27 @@ const S = (t) => {
|
|
|
34
34
|
milestoneBackgroundSelectedColor: "#3380fa",
|
|
35
35
|
todayColor: "url(#horzLines)",
|
|
36
36
|
rowHeight: 50,
|
|
37
|
-
TaskListHeader: (
|
|
37
|
+
TaskListHeader: (o) => /* @__PURE__ */ r(
|
|
38
38
|
k,
|
|
39
39
|
{
|
|
40
|
-
...
|
|
41
|
-
extraHeaders:
|
|
40
|
+
...o,
|
|
41
|
+
extraHeaders: a?.map((e) => e.header)
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
|
-
TaskListTable: (
|
|
44
|
+
TaskListTable: (o) => /* @__PURE__ */ r(
|
|
45
45
|
g,
|
|
46
46
|
{
|
|
47
|
-
...
|
|
48
|
-
extraCells:
|
|
47
|
+
...o,
|
|
48
|
+
extraCells: a?.map((e) => e.cell)
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
TooltipContent:
|
|
51
|
+
TooltipContent: C,
|
|
52
52
|
barCornerRadius: 6,
|
|
53
|
-
...
|
|
54
|
-
...
|
|
53
|
+
...n ? {} : { arrowColor: "transparent" },
|
|
54
|
+
...d
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ r("svg", { className: "h-0 w-0", children: /* @__PURE__ */ r(
|
|
58
58
|
u,
|
|
59
59
|
{
|
|
60
60
|
id: "horzLines",
|
|
@@ -69,6 +69,6 @@ const S = (t) => {
|
|
|
69
69
|
] });
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
B as default
|
|
73
73
|
};
|
|
74
74
|
//# sourceMappingURL=GanttChart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GanttChart.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/GanttChart.tsx"],"sourcesContent":["import { ViewMode, Gantt } from 'gantt-task-react'\nimport TaskListTable from './TaskListTable'\nimport TaskListHeader from './TaskListHeader'\nimport TooltipContent from './TooltipContent'\nimport tasksPreProcess from './tasksPreProcess'\nimport { PatternLines } from '@visx/pattern'\nimport type { ExtraCell } from './TaskListTable'\nimport type { ExtraHeader } from './TaskListHeader'\nimport type { Task, GanttProps } from 'gantt-task-react'\n\ntype ExtendedTask<T extends Record<string, unknown> = NonNullable<unknown>> =\n Task & {\n barVariant?: string\n } & T\n\ntype GanttChartProps<T extends Record<string, unknown>> = GanttProps & {\n extraColumns?: Array<{\n header: ExtraHeader\n cell: ExtraCell\n }>\n tasks: ExtendedTask<T>[]\n colorsMap?: Record<string, string>\n showArrow?: boolean\n}\n\nconst GanttChart = <T extends Record<string, unknown>>(\n props: GanttChartProps<T>,\n) => {\n const {\n tasks,\n viewMode = ViewMode.Day,\n extraColumns,\n colorsMap = {},\n showArrow,\n ...rest\n } = props\n\n return (\n <>\n <Gantt\n tasks={tasksPreProcess(tasks, colorsMap)}\n viewMode={viewMode}\n listCellWidth={'200px'}\n columnWidth={65}\n barProgressColor={'#3380fa'}\n barProgressSelectedColor={'#3380fa'}\n barBackgroundColor={'#e2e8f0'}\n barBackgroundSelectedColor={'#e2e8f0'}\n projectProgressColor={'#6299f1'}\n projectProgressSelectedColor={'#6299f1'}\n projectBackgroundColor=\"#3380fa\"\n projectBackgroundSelectedColor=\"#3380fa\"\n milestoneBackgroundColor=\"#3380fa\"\n milestoneBackgroundSelectedColor=\"#3380fa\"\n todayColor=\"url(#horzLines)\"\n rowHeight={50}\n TaskListHeader={(props) => (\n <TaskListHeader\n {...props}\n extraHeaders={extraColumns?.map((col) => col.header)}\n />\n )}\n TaskListTable={(props) => (\n <TaskListTable\n {...props}\n extraCells={extraColumns?.map((col) => col.cell)}\n />\n )}\n TooltipContent={TooltipContent}\n barCornerRadius={6}\n {...(!showArrow ? { arrowColor: 'transparent' } : {})}\n {...rest}\n />\n <svg className=\"h-0 w-0\">\n <PatternLines\n id=\"horzLines\"\n height={10}\n width={10}\n className=\"stroke-gray-200 dark:stroke-gray-700\"\n strokeWidth={1.5}\n background=\"transparent\"\n orientation={['diagonal']}\n />\n </svg>\n </>\n )\n}\n\nexport type { Task, ExtendedTask }\n\nexport default GanttChart\n"],"names":["GanttChart","props","tasks","viewMode","ViewMode","extraColumns","colorsMap","showArrow","rest","jsxs","Fragment","jsx","Gantt","tasksPreProcess","TaskListHeader","col","TaskListTable","TooltipContent","PatternLines"],"mappings":";;;;;;;AAyBA,MAAMA,IAAa,CACfC,MACC;AACD,QAAM;AAAA,IACF,OAAAC;AAAA,IACA,UAAAC,IAAWC,EAAS;AAAA,IACpB,cAAAC;AAAA,IACA,WAAAC,IAAY,CAAA;AAAA,IACZ,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHP;AAEJ,SACI,gBAAAQ,EAAAC,GAAA,EACI,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAOC,EAAgBX,GAAOI,CAAS;AAAA,QACvC,UAAAH;AAAA,QACA,eAAe;AAAA,QACf,aAAa;AAAA,QACb,kBAAkB;AAAA,QAClB,0BAA0B;AAAA,QAC1B,oBAAoB;AAAA,QACpB,4BAA4B;AAAA,QAC5B,sBAAsB;AAAA,QACtB,8BAA8B;AAAA,QAC9B,wBAAuB;AAAA,QACvB,gCAA+B;AAAA,QAC/B,0BAAyB;AAAA,QACzB,kCAAiC;AAAA,QACjC,YAAW;AAAA,QACX,WAAW;AAAA,QACX,gBAAgB,CAACF,MACb,gBAAAU;AAAA,UAACG;AAAA,UAAA;AAAA,YACI,GAAGb;AAAAA,YACJ,cAAcI,
|
|
1
|
+
{"version":3,"file":"GanttChart.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/GanttChart.tsx"],"sourcesContent":["import { ViewMode, Gantt } from 'gantt-task-react'\nimport TaskListTable from './TaskListTable'\nimport TaskListHeader from './TaskListHeader'\nimport TooltipContent from './TooltipContent'\nimport tasksPreProcess from './tasksPreProcess'\nimport { PatternLines } from '@visx/pattern'\nimport type { ExtraCell } from './TaskListTable'\nimport type { ExtraHeader } from './TaskListHeader'\nimport type { Task, GanttProps } from 'gantt-task-react'\n\ntype ExtendedTask<T extends Record<string, unknown> = NonNullable<unknown>> =\n Task & {\n barVariant?: string\n } & T\n\ntype GanttChartProps<T extends Record<string, unknown>> = GanttProps & {\n extraColumns?: Array<{\n header: ExtraHeader\n cell: ExtraCell\n }>\n tasks: ExtendedTask<T>[]\n colorsMap?: Record<string, string>\n showArrow?: boolean\n}\n\nconst GanttChart = <T extends Record<string, unknown>>(\n props: GanttChartProps<T>,\n) => {\n const {\n tasks,\n viewMode = ViewMode.Day,\n extraColumns,\n colorsMap = {},\n showArrow,\n ...rest\n } = props\n\n return (\n <>\n <Gantt\n tasks={tasksPreProcess(tasks, colorsMap)}\n viewMode={viewMode}\n listCellWidth={'200px'}\n columnWidth={65}\n barProgressColor={'#3380fa'}\n barProgressSelectedColor={'#3380fa'}\n barBackgroundColor={'#e2e8f0'}\n barBackgroundSelectedColor={'#e2e8f0'}\n projectProgressColor={'#6299f1'}\n projectProgressSelectedColor={'#6299f1'}\n projectBackgroundColor=\"#3380fa\"\n projectBackgroundSelectedColor=\"#3380fa\"\n milestoneBackgroundColor=\"#3380fa\"\n milestoneBackgroundSelectedColor=\"#3380fa\"\n todayColor=\"url(#horzLines)\"\n rowHeight={50}\n TaskListHeader={(props) => (\n <TaskListHeader\n {...props}\n extraHeaders={extraColumns?.map((col) => col.header)}\n />\n )}\n TaskListTable={(props) => (\n <TaskListTable\n {...props}\n extraCells={extraColumns?.map((col) => col.cell)}\n />\n )}\n TooltipContent={TooltipContent}\n barCornerRadius={6}\n {...(!showArrow ? { arrowColor: 'transparent' } : {})}\n {...rest}\n />\n <svg className=\"h-0 w-0\">\n <PatternLines\n id=\"horzLines\"\n height={10}\n width={10}\n className=\"stroke-gray-200 dark:stroke-gray-700\"\n strokeWidth={1.5}\n background=\"transparent\"\n orientation={['diagonal']}\n />\n </svg>\n </>\n )\n}\n\nexport type { Task, ExtendedTask }\n\nexport default GanttChart\n"],"names":["GanttChart","props","tasks","viewMode","ViewMode","extraColumns","colorsMap","showArrow","rest","jsxs","Fragment","jsx","Gantt","tasksPreProcess","TaskListHeader","col","TaskListTable","TooltipContent","PatternLines"],"mappings":";;;;;;;AAyBA,MAAMA,IAAa,CACfC,MACC;AACD,QAAM;AAAA,IACF,OAAAC;AAAA,IACA,UAAAC,IAAWC,EAAS;AAAA,IACpB,cAAAC;AAAA,IACA,WAAAC,IAAY,CAAA;AAAA,IACZ,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHP;AAEJ,SACI,gBAAAQ,EAAAC,GAAA,EACI,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAOC,EAAgBX,GAAOI,CAAS;AAAA,QACvC,UAAAH;AAAA,QACA,eAAe;AAAA,QACf,aAAa;AAAA,QACb,kBAAkB;AAAA,QAClB,0BAA0B;AAAA,QAC1B,oBAAoB;AAAA,QACpB,4BAA4B;AAAA,QAC5B,sBAAsB;AAAA,QACtB,8BAA8B;AAAA,QAC9B,wBAAuB;AAAA,QACvB,gCAA+B;AAAA,QAC/B,0BAAyB;AAAA,QACzB,kCAAiC;AAAA,QACjC,YAAW;AAAA,QACX,WAAW;AAAA,QACX,gBAAgB,CAACF,MACb,gBAAAU;AAAA,UAACG;AAAA,UAAA;AAAA,YACI,GAAGb;AAAAA,YACJ,cAAcI,GAAc,IAAI,CAACU,MAAQA,EAAI,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3D,eAAe,CAACd,MACZ,gBAAAU;AAAA,UAACK;AAAA,UAAA;AAAA,YACI,GAAGf;AAAAA,YACJ,YAAYI,GAAc,IAAI,CAACU,MAAQA,EAAI,IAAI;AAAA,UAAA;AAAA,QAAA;AAAA,QAGvD,gBAAAE;AAAA,QACA,iBAAiB;AAAA,QAChB,GAAKV,IAA4C,CAAA,IAAhC,EAAE,YAAY,cAAA;AAAA,QAC/B,GAAGC;AAAA,MAAA;AAAA,IAAA;AAAA,IAER,gBAAAG,EAAC,OAAA,EAAI,WAAU,WACX,UAAA,gBAAAA;AAAA,MAACO;AAAA,MAAA;AAAA,QACG,IAAG;AAAA,QACH,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,WAAU;AAAA,QACV,aAAa;AAAA,QACb,YAAW;AAAA,QACX,aAAa,CAAC,UAAU;AAAA,MAAA;AAAA,IAAA,EAC5B,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import c from "../../../utils/classNames.js";
|
|
3
3
|
import { TbChevronDown as h, TbChevronRight as p } from "react-icons/tb";
|
|
4
|
-
const
|
|
5
|
-
rowHeight:
|
|
6
|
-
rowWidth:
|
|
7
|
-
tasks:
|
|
4
|
+
const v = ({
|
|
5
|
+
rowHeight: a,
|
|
6
|
+
rowWidth: l,
|
|
7
|
+
tasks: d,
|
|
8
8
|
onExpanderClick: s,
|
|
9
|
-
extraCells:
|
|
10
|
-
}) => /* @__PURE__ */
|
|
9
|
+
extraCells: n
|
|
10
|
+
}) => /* @__PURE__ */ r("div", { className: "table", children: d.map((e, t) => /* @__PURE__ */ i(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
13
|
className: "_34SS0",
|
|
14
|
-
style: { height:
|
|
14
|
+
style: { height: a },
|
|
15
15
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ r(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
className: "table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2",
|
|
20
20
|
style: {
|
|
21
|
-
minWidth:
|
|
22
|
-
maxWidth:
|
|
21
|
+
minWidth: l,
|
|
22
|
+
maxWidth: l
|
|
23
23
|
},
|
|
24
24
|
title: e.name,
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
26
|
+
/* @__PURE__ */ i(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
className: "text-lg cursor-pointer min-w-4",
|
|
30
30
|
role: "button",
|
|
31
31
|
onClick: () => s(e),
|
|
32
32
|
children: [
|
|
33
|
-
e.hideChildren === !1 && /* @__PURE__ */
|
|
34
|
-
e.hideChildren === !0 && /* @__PURE__ */
|
|
33
|
+
e.hideChildren === !1 && /* @__PURE__ */ r(h, {}),
|
|
34
|
+
e.hideChildren === !0 && /* @__PURE__ */ r(p, {})
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ r(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
41
|
className: c(
|
|
@@ -48,26 +48,26 @@ const f = ({
|
|
|
48
48
|
] })
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
|
|
51
|
+
n?.map((o, m) => /* @__PURE__ */ i(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: "table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2",
|
|
55
55
|
style: {
|
|
56
|
-
minWidth:
|
|
57
|
-
maxWidth:
|
|
56
|
+
minWidth: l,
|
|
57
|
+
maxWidth: l
|
|
58
58
|
},
|
|
59
59
|
children: [
|
|
60
60
|
" ",
|
|
61
|
-
|
|
61
|
+
o(e)
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
`${e.id}-cell-${
|
|
64
|
+
`${e.id}-cell-${t}-${m}`
|
|
65
65
|
))
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
`${e.id}row`
|
|
69
69
|
)) });
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
v as default
|
|
72
72
|
};
|
|
73
73
|
//# sourceMappingURL=TaskListTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskListTable.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/TaskListTable.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport { TbChevronRight, TbChevronDown } from 'react-icons/tb'\nimport type { Task } from 'gantt-task-react'\nimport type { ReactNode } from 'react'\n\ntype ExtendedTask = Task & { barVariant?: string }\n\nexport type ExtraCell = (task: ExtendedTask) => ReactNode | string\n\ntype TaskListTableProps = {\n rowHeight: number\n rowWidth: string\n fontFamily: string\n fontSize: string\n locale: string\n tasks: ExtendedTask[]\n selectedTaskId: string\n setSelectedTask: (taskId: string) => void\n onExpanderClick: (task: Task) => void\n extraCells?: ExtraCell[]\n}\n\nconst TaskListTable = ({\n rowHeight,\n rowWidth,\n tasks,\n onExpanderClick,\n extraCells,\n}: TaskListTableProps) => {\n return (\n <div className=\"table\">\n {tasks.map((t, rowIndex) => {\n return (\n <div\n key={`${t.id}row`}\n className=\"_34SS0\"\n style={{ height: rowHeight }}\n >\n <div\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n title={t.name}\n >\n <div className=\"flex items-center gap-1\">\n <div\n className=\"text-lg cursor-pointer min-w-4\"\n role=\"button\"\n onClick={() => onExpanderClick(t)}\n >\n {t.hideChildren === false && (\n <TbChevronDown />\n )}\n {t.hideChildren === true && (\n <TbChevronRight />\n )}\n </div>\n <div\n className={classNames(\n 'truncate',\n typeof t.hideChildren === 'boolean' &&\n 'heading-text font-bold',\n )}\n >\n {t.name}\n </div>\n </div>\n </div>\n {extraCells?.map((cell, cellIndex) => (\n <div\n key={`${t.id}-cell-${rowIndex}-${cellIndex}`}\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n >\n {cell(t)}\n </div>\n ))}\n </div>\n )\n })}\n </div>\n )\n}\n\nexport default TaskListTable\n"],"names":["TaskListTable","rowHeight","rowWidth","tasks","onExpanderClick","extraCells","jsx","t","rowIndex","jsxs","TbChevronDown","TbChevronRight","classNames","cell","cellIndex"],"mappings":";;;AAsBA,MAAMA,IAAgB,CAAC;AAAA,EACnB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AACJ,MAEQ,gBAAAC,EAAC,SAAI,WAAU,SACV,YAAM,IAAI,CAACC,GAAGC,MAEP,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IAEG,WAAU;AAAA,IACV,OAAO,EAAE,QAAQR,EAAA;AAAA,IAEjB,UAAA;AAAA,MAAA,gBAAAK;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUJ;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEd,OAAOK,EAAE;AAAA,UAET,UAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,YAAA,gBAAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAU;AAAA,gBACV,MAAK;AAAA,gBACL,SAAS,MAAML,EAAgBG,CAAC;AAAA,gBAE/B,UAAA;AAAA,kBAAAA,EAAE,iBAAiB,MAChB,gBAAAD,EAACI,GAAA,CAAA,CAAc;AAAA,kBAElBH,EAAE,iBAAiB,MAChB,gBAAAD,EAACK,GAAA,CAAA,CAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAGxB,gBAAAL;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAWM;AAAA,kBACP;AAAA,kBACA,OAAOL,EAAE,gBAAiB,aACtB;AAAA,gBAAA;AAAA,gBAGP,UAAAA,EAAE;AAAA,cAAA;AAAA,YAAA;AAAA,UACP,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA;AAAA,MAEHF,
|
|
1
|
+
{"version":3,"file":"TaskListTable.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/TaskListTable.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport { TbChevronRight, TbChevronDown } from 'react-icons/tb'\nimport type { Task } from 'gantt-task-react'\nimport type { ReactNode } from 'react'\n\ntype ExtendedTask = Task & { barVariant?: string }\n\nexport type ExtraCell = (task: ExtendedTask) => ReactNode | string\n\ntype TaskListTableProps = {\n rowHeight: number\n rowWidth: string\n fontFamily: string\n fontSize: string\n locale: string\n tasks: ExtendedTask[]\n selectedTaskId: string\n setSelectedTask: (taskId: string) => void\n onExpanderClick: (task: Task) => void\n extraCells?: ExtraCell[]\n}\n\nconst TaskListTable = ({\n rowHeight,\n rowWidth,\n tasks,\n onExpanderClick,\n extraCells,\n}: TaskListTableProps) => {\n return (\n <div className=\"table\">\n {tasks.map((t, rowIndex) => {\n return (\n <div\n key={`${t.id}row`}\n className=\"_34SS0\"\n style={{ height: rowHeight }}\n >\n <div\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n title={t.name}\n >\n <div className=\"flex items-center gap-1\">\n <div\n className=\"text-lg cursor-pointer min-w-4\"\n role=\"button\"\n onClick={() => onExpanderClick(t)}\n >\n {t.hideChildren === false && (\n <TbChevronDown />\n )}\n {t.hideChildren === true && (\n <TbChevronRight />\n )}\n </div>\n <div\n className={classNames(\n 'truncate',\n typeof t.hideChildren === 'boolean' &&\n 'heading-text font-bold',\n )}\n >\n {t.name}\n </div>\n </div>\n </div>\n {extraCells?.map((cell, cellIndex) => (\n <div\n key={`${t.id}-cell-${rowIndex}-${cellIndex}`}\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n >\n {cell(t)}\n </div>\n ))}\n </div>\n )\n })}\n </div>\n )\n}\n\nexport default TaskListTable\n"],"names":["TaskListTable","rowHeight","rowWidth","tasks","onExpanderClick","extraCells","jsx","t","rowIndex","jsxs","TbChevronDown","TbChevronRight","classNames","cell","cellIndex"],"mappings":";;;AAsBA,MAAMA,IAAgB,CAAC;AAAA,EACnB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AACJ,MAEQ,gBAAAC,EAAC,SAAI,WAAU,SACV,YAAM,IAAI,CAACC,GAAGC,MAEP,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IAEG,WAAU;AAAA,IACV,OAAO,EAAE,QAAQR,EAAA;AAAA,IAEjB,UAAA;AAAA,MAAA,gBAAAK;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUJ;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEd,OAAOK,EAAE;AAAA,UAET,UAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,YAAA,gBAAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAU;AAAA,gBACV,MAAK;AAAA,gBACL,SAAS,MAAML,EAAgBG,CAAC;AAAA,gBAE/B,UAAA;AAAA,kBAAAA,EAAE,iBAAiB,MAChB,gBAAAD,EAACI,GAAA,CAAA,CAAc;AAAA,kBAElBH,EAAE,iBAAiB,MAChB,gBAAAD,EAACK,GAAA,CAAA,CAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAGxB,gBAAAL;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAWM;AAAA,kBACP;AAAA,kBACA,OAAOL,EAAE,gBAAiB,aACtB;AAAA,gBAAA;AAAA,gBAGP,UAAAA,EAAE;AAAA,cAAA;AAAA,YAAA;AAAA,UACP,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA;AAAA,MAEHF,GAAY,IAAI,CAACQ,GAAMC,MACpB,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UAEG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUP;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEjB,UAAA;AAAA,YAAA;AAAA,YACUW,EAAKN,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,QAPR,GAAGA,EAAE,EAAE,SAASC,CAAQ,IAAIM,CAAS;AAAA,MAAA,CASjD;AAAA,IAAA;AAAA,EAAA;AAAA,EA/CI,GAAGP,EAAE,EAAE;AAAA,CAkDvB,EAAA,CACL;"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as s, Fragment as a, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import p from "yet-another-react-lightbox";
|
|
3
3
|
import "yet-another-react-lightbox/styles.css";
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
index:
|
|
7
|
-
slides:
|
|
8
|
-
onClose:
|
|
9
|
-
...
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
4
|
+
const f = ({
|
|
5
|
+
children: o,
|
|
6
|
+
index: r = -1,
|
|
7
|
+
slides: t,
|
|
8
|
+
onClose: e,
|
|
9
|
+
...m
|
|
10
|
+
}) => /* @__PURE__ */ s(a, { children: [
|
|
11
|
+
o,
|
|
12
|
+
/* @__PURE__ */ l(
|
|
13
|
+
p,
|
|
14
14
|
{
|
|
15
|
-
index:
|
|
16
|
-
slides:
|
|
17
|
-
...
|
|
18
|
-
open:
|
|
19
|
-
close: () =>
|
|
15
|
+
index: r,
|
|
16
|
+
slides: t,
|
|
17
|
+
...m,
|
|
18
|
+
open: r >= 0,
|
|
19
|
+
close: () => e?.()
|
|
20
20
|
}
|
|
21
21
|
)
|
|
22
22
|
] });
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
f as default
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=ImageGallery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGallery.js","sources":["../../../../lib/@ecme/components/shared/ImageGallery.tsx"],"sourcesContent":["import Lightbox, { LightboxProps } from 'yet-another-react-lightbox'\nimport 'yet-another-react-lightbox/styles.css'\nimport type { ReactNode } from 'react'\n\nexport type ImageGalleryProps = Partial<LightboxProps> & {\n children?: ReactNode\n index?: number\n onClose?: () => void\n}\n\nconst ImageGallery = ({\n children,\n index = -1,\n slides,\n onClose,\n ...rest\n}: ImageGalleryProps) => {\n return (\n <>\n {children}\n <Lightbox\n index={index}\n slides={slides}\n {...rest}\n open={index >= 0}\n close={() => onClose?.()}\n />\n </>\n )\n}\n\nexport default ImageGallery\n"],"names":["ImageGallery","children","index","slides","onClose","rest","jsxs","Fragment","jsx","Lightbox"],"mappings":";;;AAUA,MAAMA,IAAe,CAAC;AAAA,EAClB,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACP,MAEQ,gBAAAC,EAAAC,GAAA,EACK,UAAA;AAAA,EAAAN;AAAA,EACD,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAP;AAAA,MACA,QAAAC;AAAA,MACC,GAAGE;AAAA,MACJ,MAAMH,KAAS;AAAA,MACf,OAAO,MAAME,
|
|
1
|
+
{"version":3,"file":"ImageGallery.js","sources":["../../../../lib/@ecme/components/shared/ImageGallery.tsx"],"sourcesContent":["import Lightbox, { LightboxProps } from 'yet-another-react-lightbox'\nimport 'yet-another-react-lightbox/styles.css'\nimport type { ReactNode } from 'react'\n\nexport type ImageGalleryProps = Partial<LightboxProps> & {\n children?: ReactNode\n index?: number\n onClose?: () => void\n}\n\nconst ImageGallery = ({\n children,\n index = -1,\n slides,\n onClose,\n ...rest\n}: ImageGalleryProps) => {\n return (\n <>\n {children}\n <Lightbox\n index={index}\n slides={slides}\n {...rest}\n open={index >= 0}\n close={() => onClose?.()}\n />\n </>\n )\n}\n\nexport default ImageGallery\n"],"names":["ImageGallery","children","index","slides","onClose","rest","jsxs","Fragment","jsx","Lightbox"],"mappings":";;;AAUA,MAAMA,IAAe,CAAC;AAAA,EAClB,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACP,MAEQ,gBAAAC,EAAAC,GAAA,EACK,UAAA;AAAA,EAAAN;AAAA,EACD,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAP;AAAA,MACA,QAAAC;AAAA,MACC,GAAGE;AAAA,MACJ,MAAMH,KAAS;AAAA,MACf,OAAO,MAAME,IAAA;AAAA,IAAU;AAAA,EAAA;AAC3B,GACJ;"}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useId as d } from "react";
|
|
3
3
|
import p from "./useMasonry.js";
|
|
4
4
|
import { MasonryItemContext as _ } from "./context.js";
|
|
5
|
-
const M = (
|
|
5
|
+
const M = (e) => {
|
|
6
6
|
const {
|
|
7
|
-
gap:
|
|
8
|
-
asElement:
|
|
9
|
-
columnProps:
|
|
7
|
+
gap: s,
|
|
8
|
+
asElement: t = "div",
|
|
9
|
+
columnProps: l,
|
|
10
10
|
columns: i,
|
|
11
|
-
ref:
|
|
12
|
-
...
|
|
13
|
-
} =
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
11
|
+
ref: c,
|
|
12
|
+
...m
|
|
13
|
+
} = e, o = d(), u = p(e.children, i);
|
|
14
|
+
return /* @__PURE__ */ n(
|
|
15
|
+
t,
|
|
16
16
|
{
|
|
17
|
-
"data-masonry-id": `Masonry-${
|
|
18
|
-
...
|
|
19
|
-
ref:
|
|
20
|
-
style: { display: "flex", gap:
|
|
21
|
-
children:
|
|
22
|
-
|
|
17
|
+
"data-masonry-id": `Masonry-${o}`,
|
|
18
|
+
...m,
|
|
19
|
+
ref: c,
|
|
20
|
+
style: { display: "flex", gap: s, ...m.style },
|
|
21
|
+
children: u.map((y, r) => /* @__PURE__ */ n(
|
|
22
|
+
t,
|
|
23
23
|
{
|
|
24
|
-
"data-masonry-column":
|
|
25
|
-
...
|
|
24
|
+
"data-masonry-column": r + 1,
|
|
25
|
+
...l,
|
|
26
26
|
style: {
|
|
27
27
|
display: "flex",
|
|
28
28
|
flex: 1,
|
|
29
29
|
flexDirection: "column",
|
|
30
|
-
gap:
|
|
31
|
-
...
|
|
30
|
+
gap: s,
|
|
31
|
+
...l?.style
|
|
32
32
|
},
|
|
33
|
-
children:
|
|
33
|
+
children: y.map((f, a) => /* @__PURE__ */ n(
|
|
34
34
|
_.Provider,
|
|
35
35
|
{
|
|
36
36
|
value: {
|
|
37
|
-
column:
|
|
38
|
-
position:
|
|
37
|
+
column: r,
|
|
38
|
+
position: a
|
|
39
39
|
},
|
|
40
40
|
children: f
|
|
41
41
|
},
|
|
42
|
-
`Masonry__Column_Child_${
|
|
42
|
+
`Masonry__Column_Child_${o}_${a}`
|
|
43
43
|
))
|
|
44
44
|
},
|
|
45
|
-
`Masonry__Column_${
|
|
45
|
+
`Masonry__Column_${o}_${r}`
|
|
46
46
|
))
|
|
47
47
|
}
|
|
48
48
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Masonry.js","sources":["../../../../../lib/@ecme/components/shared/Masonry/Masonry.tsx"],"sourcesContent":["import { ElementType, useId } from 'react'\nimport { MasonryProps } from './types'\nimport useMasonry from './useMasonry'\nimport { MasonryItemContext } from './context'\nimport type { Ref } from 'react'\n\nconst MasonryBase = <T extends ElementType = 'div'>(\n props: MasonryProps<T> & {\n ref?: Ref<T>\n },\n) => {\n const {\n gap,\n asElement: Component = 'div',\n columnProps,\n columns,\n ref: forwaredRef,\n ...rest\n } = props\n\n const uniq = useId()\n const columnsChildren = useMasonry(props.children, columns)\n\n return (\n <Component\n data-masonry-id={`Masonry-${uniq}`}\n {...rest}\n ref={forwaredRef}\n style={{ display: 'flex', gap, ...rest.style }}\n >\n {columnsChildren.map((column, index) => {\n return (\n <Component\n key={`Masonry__Column_${uniq}_${index}`}\n data-masonry-column={index + 1}\n {...columnProps}\n style={{\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n gap,\n ...columnProps?.style,\n }}\n >\n {column.map((child, childIndex) => {\n return (\n <MasonryItemContext.Provider\n key={`Masonry__Column_Child_${uniq}_${childIndex}`}\n value={{\n column: index,\n position: childIndex,\n }}\n >\n {child}\n </MasonryItemContext.Provider>\n )\n })}\n </Component>\n )\n })}\n </Component>\n )\n}\n\nexport const Masonry = MasonryBase\n"],"names":["MasonryBase","props","gap","Component","columnProps","columns","forwaredRef","rest","uniq","useId","columnsChildren","useMasonry","jsx","column","index","child","childIndex","MasonryItemContext","Masonry"],"mappings":";;;;AAMA,MAAMA,IAAc,CAChBC,MAGC;AACD,QAAM;AAAA,IACF,KAAAC;AAAA,IACA,WAAWC,IAAY;AAAA,IACvB,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,KAAKC;AAAA,IACL,GAAGC;AAAA,EAAA,IACHN,GAEEO,IAAOC,EAAA,GACPC,IAAkBC,EAAWV,EAAM,UAAUI,CAAO;AAE1D,SACI,gBAAAO;AAAA,IAACT;AAAA,IAAA;AAAA,MACG,mBAAiB,WAAWK,CAAI;AAAA,MAC/B,GAAGD;AAAA,MACJ,KAAKD;AAAA,MACL,OAAO,EAAE,SAAS,QAAQ,KAAAJ,GAAK,GAAGK,EAAK,MAAA;AAAA,MAEtC,UAAAG,EAAgB,IAAI,CAACG,GAAQC,MAEtB,gBAAAF;AAAA,QAACT;AAAA,QAAA;AAAA,UAEG,uBAAqBW,IAAQ;AAAA,UAC5B,GAAGV;AAAA,UACJ,OAAO;AAAA,YACH,SAAS;AAAA,YACT,MAAM;AAAA,YACN,eAAe;AAAA,YACf,KAAAF;AAAA,YACA,GAAGE,
|
|
1
|
+
{"version":3,"file":"Masonry.js","sources":["../../../../../lib/@ecme/components/shared/Masonry/Masonry.tsx"],"sourcesContent":["import { ElementType, useId } from 'react'\nimport { MasonryProps } from './types'\nimport useMasonry from './useMasonry'\nimport { MasonryItemContext } from './context'\nimport type { Ref } from 'react'\n\nconst MasonryBase = <T extends ElementType = 'div'>(\n props: MasonryProps<T> & {\n ref?: Ref<T>\n },\n) => {\n const {\n gap,\n asElement: Component = 'div',\n columnProps,\n columns,\n ref: forwaredRef,\n ...rest\n } = props\n\n const uniq = useId()\n const columnsChildren = useMasonry(props.children, columns)\n\n return (\n <Component\n data-masonry-id={`Masonry-${uniq}`}\n {...rest}\n ref={forwaredRef}\n style={{ display: 'flex', gap, ...rest.style }}\n >\n {columnsChildren.map((column, index) => {\n return (\n <Component\n key={`Masonry__Column_${uniq}_${index}`}\n data-masonry-column={index + 1}\n {...columnProps}\n style={{\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n gap,\n ...columnProps?.style,\n }}\n >\n {column.map((child, childIndex) => {\n return (\n <MasonryItemContext.Provider\n key={`Masonry__Column_Child_${uniq}_${childIndex}`}\n value={{\n column: index,\n position: childIndex,\n }}\n >\n {child}\n </MasonryItemContext.Provider>\n )\n })}\n </Component>\n )\n })}\n </Component>\n )\n}\n\nexport const Masonry = MasonryBase\n"],"names":["MasonryBase","props","gap","Component","columnProps","columns","forwaredRef","rest","uniq","useId","columnsChildren","useMasonry","jsx","column","index","child","childIndex","MasonryItemContext","Masonry"],"mappings":";;;;AAMA,MAAMA,IAAc,CAChBC,MAGC;AACD,QAAM;AAAA,IACF,KAAAC;AAAA,IACA,WAAWC,IAAY;AAAA,IACvB,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,KAAKC;AAAA,IACL,GAAGC;AAAA,EAAA,IACHN,GAEEO,IAAOC,EAAA,GACPC,IAAkBC,EAAWV,EAAM,UAAUI,CAAO;AAE1D,SACI,gBAAAO;AAAA,IAACT;AAAA,IAAA;AAAA,MACG,mBAAiB,WAAWK,CAAI;AAAA,MAC/B,GAAGD;AAAA,MACJ,KAAKD;AAAA,MACL,OAAO,EAAE,SAAS,QAAQ,KAAAJ,GAAK,GAAGK,EAAK,MAAA;AAAA,MAEtC,UAAAG,EAAgB,IAAI,CAACG,GAAQC,MAEtB,gBAAAF;AAAA,QAACT;AAAA,QAAA;AAAA,UAEG,uBAAqBW,IAAQ;AAAA,UAC5B,GAAGV;AAAA,UACJ,OAAO;AAAA,YACH,SAAS;AAAA,YACT,MAAM;AAAA,YACN,eAAe;AAAA,YACf,KAAAF;AAAA,YACA,GAAGE,GAAa;AAAA,UAAA;AAAA,UAGnB,UAAAS,EAAO,IAAI,CAACE,GAAOC,MAEZ,gBAAAJ;AAAA,YAACK,EAAmB;AAAA,YAAnB;AAAA,cAEG,OAAO;AAAA,gBACH,QAAQH;AAAA,gBACR,UAAUE;AAAA,cAAA;AAAA,cAGb,UAAAD;AAAA,YAAA;AAAA,YANI,yBAAyBP,CAAI,IAAIQ,CAAU;AAAA,UAAA,CAS3D;AAAA,QAAA;AAAA,QAvBI,mBAAmBR,CAAI,IAAIM,CAAK;AAAA,MAAA,CA0BhD;AAAA,IAAA;AAAA,EAAA;AAGb,GAEaI,IAAUlB;"}
|
|
@@ -1,77 +1,75 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as R, useRef as $, useEffect as v } from "react";
|
|
3
3
|
import "../ui/Input/index.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
length:
|
|
8
|
-
value:
|
|
9
|
-
onChange:
|
|
10
|
-
disabled:
|
|
11
|
-
className:
|
|
12
|
-
inputClass:
|
|
13
|
-
autoFocus:
|
|
14
|
-
placeholder:
|
|
15
|
-
invalid:
|
|
4
|
+
import I from "../../utils/classNames.js";
|
|
5
|
+
import N from "../ui/Input/Input.js";
|
|
6
|
+
const E = ({
|
|
7
|
+
length: s = 6,
|
|
8
|
+
value: c = "",
|
|
9
|
+
onChange: f,
|
|
10
|
+
disabled: u = !1,
|
|
11
|
+
className: p = "",
|
|
12
|
+
inputClass: n,
|
|
13
|
+
autoFocus: m = !1,
|
|
14
|
+
placeholder: i,
|
|
15
|
+
invalid: D = !1
|
|
16
16
|
}) => {
|
|
17
|
-
const [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, [
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, $ = (r) => (t) => {
|
|
40
|
-
f.current[r] = t;
|
|
17
|
+
const [O, o] = R(0), a = $([]);
|
|
18
|
+
v(() => {
|
|
19
|
+
a.current = Array(s).fill(null).map((e, t) => a.current[t] || null);
|
|
20
|
+
}, [s]);
|
|
21
|
+
const w = (e, t) => {
|
|
22
|
+
const r = e.target.value;
|
|
23
|
+
if (r.length > 1) return;
|
|
24
|
+
const k = c.slice(0, t) + r + c.slice(t + 1);
|
|
25
|
+
f?.(k), r && t < s - 1 && (o(t + 1), a.current[t + 1]?.focus());
|
|
26
|
+
}, y = (e, t) => {
|
|
27
|
+
if (e.key === "Backspace")
|
|
28
|
+
if (e.preventDefault(), c[t]) {
|
|
29
|
+
const r = c.slice(0, t) + "" + c.slice(t + 1);
|
|
30
|
+
f?.(r);
|
|
31
|
+
} else t > 0 && (o(t - 1), a.current[t - 1]?.focus());
|
|
32
|
+
else e.key === "ArrowLeft" && t > 0 ? (e.preventDefault(), o(t - 1), a.current[t - 1]?.focus()) : e.key === "ArrowRight" && t < s - 1 && (e.preventDefault(), o(t + 1), a.current[t + 1]?.focus());
|
|
33
|
+
}, A = (e) => {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
const t = e.clipboardData.getData("text/plain").slice(0, s);
|
|
36
|
+
t.match(/^[0-9]+$/) && f?.(t.padEnd(s, ""));
|
|
37
|
+
}, P = (e) => (t) => {
|
|
38
|
+
a.current[e] = t;
|
|
41
39
|
};
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
40
|
+
return /* @__PURE__ */ l("div", { className: `flex gap-2 ${p}`, children: Array(s).fill(null).map((e, t) => /* @__PURE__ */ l(
|
|
41
|
+
N,
|
|
44
42
|
{
|
|
45
|
-
ref:
|
|
46
|
-
className:
|
|
43
|
+
ref: P(t),
|
|
44
|
+
className: I(
|
|
47
45
|
"text-center text-lg h-[58px] w-[58px]",
|
|
48
|
-
|
|
46
|
+
n
|
|
49
47
|
),
|
|
50
48
|
type: "text",
|
|
51
49
|
inputMode: "numeric",
|
|
52
50
|
pattern: "[0-9]*",
|
|
53
51
|
maxLength: 1,
|
|
54
|
-
value:
|
|
55
|
-
disabled:
|
|
56
|
-
autoFocus:
|
|
57
|
-
placeholder:
|
|
58
|
-
"aria-label": `Digit ${t + 1} of ${
|
|
59
|
-
invalid:
|
|
60
|
-
onChange: (
|
|
61
|
-
|
|
52
|
+
value: c[t] || "",
|
|
53
|
+
disabled: u,
|
|
54
|
+
autoFocus: m && t === 0,
|
|
55
|
+
placeholder: i,
|
|
56
|
+
"aria-label": `Digit ${t + 1} of ${s}`,
|
|
57
|
+
invalid: D,
|
|
58
|
+
onChange: (r) => w(
|
|
59
|
+
r,
|
|
62
60
|
t
|
|
63
61
|
),
|
|
64
|
-
onKeyDown: (
|
|
65
|
-
|
|
62
|
+
onKeyDown: (r) => y(
|
|
63
|
+
r,
|
|
66
64
|
t
|
|
67
65
|
),
|
|
68
|
-
onPaste:
|
|
69
|
-
onFocus: () =>
|
|
66
|
+
onPaste: A,
|
|
67
|
+
onFocus: () => o(t)
|
|
70
68
|
},
|
|
71
69
|
t
|
|
72
70
|
)) });
|
|
73
71
|
};
|
|
74
72
|
export {
|
|
75
|
-
|
|
73
|
+
E as default
|
|
76
74
|
};
|
|
77
75
|
//# sourceMappingURL=OtpInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpInput.js","sources":["../../../../lib/@ecme/components/shared/OtpInput.tsx"],"sourcesContent":["import { useEffect, useState, useRef } from 'react'\nimport Input from '@/components/ui/Input'\nimport classNames from '@/utils/classNames'\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react'\n\ninterface OTPInputProps {\n length?: number\n value?: string\n onChange?: (value: string) => void\n disabled?: boolean\n className?: string\n inputClass?: string\n autoFocus?: boolean\n placeholder?: string\n invalid?: boolean\n}\n\nconst OTPInput = ({\n length = 6,\n value = '',\n onChange,\n disabled = false,\n className = '',\n inputClass,\n autoFocus = false,\n placeholder,\n invalid = false,\n}: OTPInputProps) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [_, setActiveInput] = useState<number>(0)\n const inputRefs = useRef<(HTMLInputElement | null)[]>([])\n\n useEffect(() => {\n inputRefs.current = Array(length)\n .fill(null)\n .map((_, i) => inputRefs.current[i] || null)\n }, [length])\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>, index: number) => {\n const newValue = e.target.value\n if (newValue.length > 1) return\n\n const newOTPValue =\n value.slice(0, index) + newValue + value.slice(index + 1)\n\n onChange?.(newOTPValue)\n\n if (newValue && index < length - 1) {\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handleKeyDown = (\n e: KeyboardEvent<HTMLInputElement>,\n index: number,\n ) => {\n if (e.key === 'Backspace') {\n e.preventDefault()\n if (value[index]) {\n const newOTPValue =\n value.slice(0, index) + '' + value.slice(index + 1)\n onChange?.(newOTPValue)\n } else if (index > 0) {\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n }\n } else if (e.key === 'ArrowLeft' && index > 0) {\n e.preventDefault()\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n } else if (e.key === 'ArrowRight' && index < length - 1) {\n e.preventDefault()\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n e.preventDefault()\n const pastedData = e.clipboardData\n .getData('text/plain')\n .slice(0, length)\n if (pastedData.match(/^[0-9]+$/)) {\n onChange?.(pastedData.padEnd(length, ''))\n }\n }\n\n const setRef = (index: number) => (ref: HTMLInputElement | null) => {\n inputRefs.current[index] = ref\n }\n\n return (\n <div className={`flex gap-2 ${className}`}>\n {Array(length)\n .fill(null)\n .map((_, index) => (\n <Input\n key={index}\n ref={setRef(index)}\n className={classNames(\n 'text-center text-lg h-[58px] w-[58px]',\n inputClass,\n )}\n type=\"text\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n maxLength={1}\n value={value[index] || ''}\n disabled={disabled}\n autoFocus={autoFocus && index === 0}\n placeholder={placeholder}\n aria-label={`Digit ${index + 1} of ${length}`}\n invalid={invalid}\n onChange={(e) =>\n handleChange(\n e as ChangeEvent<HTMLInputElement>,\n index,\n )\n }\n onKeyDown={(e) =>\n handleKeyDown(\n e as KeyboardEvent<HTMLInputElement>,\n index,\n )\n }\n onPaste={handlePaste}\n onFocus={() => setActiveInput(index)}\n />\n ))}\n </div>\n )\n}\n\nexport default OTPInput\n"],"names":["OTPInput","length","value","onChange","disabled","className","inputClass","autoFocus","placeholder","invalid","setActiveInput","useState","inputRefs","useRef","useEffect","
|
|
1
|
+
{"version":3,"file":"OtpInput.js","sources":["../../../../lib/@ecme/components/shared/OtpInput.tsx"],"sourcesContent":["import { useEffect, useState, useRef } from 'react'\nimport Input from '@/components/ui/Input'\nimport classNames from '@/utils/classNames'\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react'\n\ninterface OTPInputProps {\n length?: number\n value?: string\n onChange?: (value: string) => void\n disabled?: boolean\n className?: string\n inputClass?: string\n autoFocus?: boolean\n placeholder?: string\n invalid?: boolean\n}\n\nconst OTPInput = ({\n length = 6,\n value = '',\n onChange,\n disabled = false,\n className = '',\n inputClass,\n autoFocus = false,\n placeholder,\n invalid = false,\n}: OTPInputProps) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [_, setActiveInput] = useState<number>(0)\n const inputRefs = useRef<(HTMLInputElement | null)[]>([])\n\n useEffect(() => {\n inputRefs.current = Array(length)\n .fill(null)\n .map((_, i) => inputRefs.current[i] || null)\n }, [length])\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>, index: number) => {\n const newValue = e.target.value\n if (newValue.length > 1) return\n\n const newOTPValue =\n value.slice(0, index) + newValue + value.slice(index + 1)\n\n onChange?.(newOTPValue)\n\n if (newValue && index < length - 1) {\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handleKeyDown = (\n e: KeyboardEvent<HTMLInputElement>,\n index: number,\n ) => {\n if (e.key === 'Backspace') {\n e.preventDefault()\n if (value[index]) {\n const newOTPValue =\n value.slice(0, index) + '' + value.slice(index + 1)\n onChange?.(newOTPValue)\n } else if (index > 0) {\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n }\n } else if (e.key === 'ArrowLeft' && index > 0) {\n e.preventDefault()\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n } else if (e.key === 'ArrowRight' && index < length - 1) {\n e.preventDefault()\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n e.preventDefault()\n const pastedData = e.clipboardData\n .getData('text/plain')\n .slice(0, length)\n if (pastedData.match(/^[0-9]+$/)) {\n onChange?.(pastedData.padEnd(length, ''))\n }\n }\n\n const setRef = (index: number) => (ref: HTMLInputElement | null) => {\n inputRefs.current[index] = ref\n }\n\n return (\n <div className={`flex gap-2 ${className}`}>\n {Array(length)\n .fill(null)\n .map((_, index) => (\n <Input\n key={index}\n ref={setRef(index)}\n className={classNames(\n 'text-center text-lg h-[58px] w-[58px]',\n inputClass,\n )}\n type=\"text\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n maxLength={1}\n value={value[index] || ''}\n disabled={disabled}\n autoFocus={autoFocus && index === 0}\n placeholder={placeholder}\n aria-label={`Digit ${index + 1} of ${length}`}\n invalid={invalid}\n onChange={(e) =>\n handleChange(\n e as ChangeEvent<HTMLInputElement>,\n index,\n )\n }\n onKeyDown={(e) =>\n handleKeyDown(\n e as KeyboardEvent<HTMLInputElement>,\n index,\n )\n }\n onPaste={handlePaste}\n onFocus={() => setActiveInput(index)}\n />\n ))}\n </div>\n )\n}\n\nexport default OTPInput\n"],"names":["OTPInput","length","value","onChange","disabled","className","inputClass","autoFocus","placeholder","invalid","_","setActiveInput","useState","inputRefs","useRef","useEffect","i","handleChange","index","newValue","newOTPValue","handleKeyDown","handlePaste","pastedData","setRef","ref","jsx","Input","classNames","e"],"mappings":";;;;;AAiBA,MAAMA,IAAW,CAAC;AAAA,EACd,QAAAC,IAAS;AAAA,EACT,OAAAC,IAAQ;AAAA,EACR,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,WAAAC,IAAY;AAAA,EACZ,YAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,aAAAC;AAAA,EACA,SAAAC,IAAU;AACd,MAAqB;AAEjB,QAAM,CAACC,GAAGC,CAAc,IAAIC,EAAiB,CAAC,GACxCC,IAAYC,EAAoC,EAAE;AAExD,EAAAC,EAAU,MAAM;AACZ,IAAAF,EAAU,UAAU,MAAMZ,CAAM,EAC3B,KAAK,IAAI,EACT,IAAI,CAACS,GAAGM,MAAMH,EAAU,QAAQG,CAAC,KAAK,IAAI;AAAA,EACnD,GAAG,CAACf,CAAM,CAAC;AAEX,QAAMgB,IAAe,CAAC,GAAkCC,MAAkB;AACtE,UAAMC,IAAW,EAAE,OAAO;AAC1B,QAAIA,EAAS,SAAS,EAAG;AAEzB,UAAMC,IACFlB,EAAM,MAAM,GAAGgB,CAAK,IAAIC,IAAWjB,EAAM,MAAMgB,IAAQ,CAAC;AAE5D,IAAAf,IAAWiB,CAAW,GAElBD,KAAYD,IAAQjB,IAAS,MAC7BU,EAAeO,IAAQ,CAAC,GACxBL,EAAU,QAAQK,IAAQ,CAAC,GAAG,MAAA;AAAA,EAEtC,GAEMG,IAAgB,CAClB,GACAH,MACC;AACD,QAAI,EAAE,QAAQ;AAEV,UADA,EAAE,eAAA,GACEhB,EAAMgB,CAAK,GAAG;AACd,cAAME,IACFlB,EAAM,MAAM,GAAGgB,CAAK,IAAI,KAAKhB,EAAM,MAAMgB,IAAQ,CAAC;AACtD,QAAAf,IAAWiB,CAAW;AAAA,MAC1B,MAAA,CAAWF,IAAQ,MACfP,EAAeO,IAAQ,CAAC,GACxBL,EAAU,QAAQK,IAAQ,CAAC,GAAG,MAAA;AAAA,QAEtC,CAAW,EAAE,QAAQ,eAAeA,IAAQ,KACxC,EAAE,eAAA,GACFP,EAAeO,IAAQ,CAAC,GACxBL,EAAU,QAAQK,IAAQ,CAAC,GAAG,MAAA,KACvB,EAAE,QAAQ,gBAAgBA,IAAQjB,IAAS,MAClD,EAAE,eAAA,GACFU,EAAeO,IAAQ,CAAC,GACxBL,EAAU,QAAQK,IAAQ,CAAC,GAAG,MAAA;AAAA,EAEtC,GAEMI,IAAc,CAAC,MAAwC;AACzD,MAAE,eAAA;AACF,UAAMC,IAAa,EAAE,cAChB,QAAQ,YAAY,EACpB,MAAM,GAAGtB,CAAM;AACpB,IAAIsB,EAAW,MAAM,UAAU,KAC3BpB,IAAWoB,EAAW,OAAOtB,GAAQ,EAAE,CAAC;AAAA,EAEhD,GAEMuB,IAAS,CAACN,MAAkB,CAACO,MAAiC;AAChE,IAAAZ,EAAU,QAAQK,CAAK,IAAIO;AAAA,EAC/B;AAEA,SACI,gBAAAC,EAAC,OAAA,EAAI,WAAW,cAAcrB,CAAS,IAClC,UAAA,MAAMJ,CAAM,EACR,KAAK,IAAI,EACT,IAAI,CAACS,GAAGQ,MACL,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MAEG,KAAKH,EAAON,CAAK;AAAA,MACjB,WAAWU;AAAA,QACP;AAAA,QACAtB;AAAA,MAAA;AAAA,MAEJ,MAAK;AAAA,MACL,WAAU;AAAA,MACV,SAAQ;AAAA,MACR,WAAW;AAAA,MACX,OAAOJ,EAAMgB,CAAK,KAAK;AAAA,MACvB,UAAAd;AAAA,MACA,WAAWG,KAAaW,MAAU;AAAA,MAClC,aAAAV;AAAA,MACA,cAAY,SAASU,IAAQ,CAAC,OAAOjB,CAAM;AAAA,MAC3C,SAAAQ;AAAA,MACA,UAAU,CAACoB,MACPZ;AAAA,QACIY;AAAA,QACAX;AAAA,MAAA;AAAA,MAGR,WAAW,CAACW,MACRR;AAAA,QACIQ;AAAA,QACAX;AAAA,MAAA;AAAA,MAGR,SAASI;AAAA,MACT,SAAS,MAAMX,EAAeO,CAAK;AAAA,IAAA;AAAA,IA7B9BA;AAAA,EAAA,CA+BZ,GACT;AAER;"}
|
|
@@ -3,12 +3,12 @@ import { useState as l } from "react";
|
|
|
3
3
|
import "../ui/Input/index.js";
|
|
4
4
|
import { HiOutlineEyeOff as u, HiOutlineEye as c } from "react-icons/hi";
|
|
5
5
|
import f from "../ui/Input/Input.js";
|
|
6
|
-
const
|
|
7
|
-
const { onVisibleChange:
|
|
6
|
+
const C = (o) => {
|
|
7
|
+
const { onVisibleChange: r, ref: n, ...i } = o, [e, p] = l("password");
|
|
8
8
|
return /* @__PURE__ */ t(
|
|
9
9
|
f,
|
|
10
10
|
{
|
|
11
|
-
...
|
|
11
|
+
...i,
|
|
12
12
|
ref: n,
|
|
13
13
|
type: e,
|
|
14
14
|
suffix: /* @__PURE__ */ t(
|
|
@@ -18,8 +18,8 @@ const P = (r) => {
|
|
|
18
18
|
role: "button",
|
|
19
19
|
onClick: (a) => {
|
|
20
20
|
a.preventDefault();
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const s = e === "password" ? "text" : "password";
|
|
22
|
+
p(s), r?.(s === "text");
|
|
23
23
|
},
|
|
24
24
|
children: e === "password" ? /* @__PURE__ */ t(u, {}) : /* @__PURE__ */ t(c, {})
|
|
25
25
|
}
|
|
@@ -28,6 +28,6 @@ const P = (r) => {
|
|
|
28
28
|
);
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
C as default
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=PasswordInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.js","sources":["../../../../lib/@ecme/components/shared/PasswordInput.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { Input, InputProps } from '@/components/ui/Input'\nimport { HiOutlineEyeOff, HiOutlineEye } from 'react-icons/hi'\nimport type { MouseEvent, Ref } from 'react'\n\ninterface PasswordInputProps extends InputProps {\n onVisibleChange?: (visible: boolean) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst PasswordInput = (props: PasswordInputProps) => {\n const { onVisibleChange, ref, ...rest } = props\n\n const [pwInputType, setPwInputType] = useState('password')\n\n const onPasswordVisibleClick = (e: MouseEvent<HTMLSpanElement>) => {\n e.preventDefault()\n const nextValue = pwInputType === 'password' ? 'text' : 'password'\n setPwInputType(nextValue)\n onVisibleChange?.(nextValue === 'text')\n }\n\n return (\n <Input\n {...rest}\n ref={ref}\n type={pwInputType}\n suffix={\n <span\n className=\"cursor-pointer select-none text-xl\"\n role=\"button\"\n onClick={onPasswordVisibleClick}\n >\n {pwInputType === 'password' ? (\n <HiOutlineEyeOff />\n ) : (\n <HiOutlineEye />\n )}\n </span>\n }\n />\n )\n}\n\nexport default PasswordInput\n"],"names":["PasswordInput","props","onVisibleChange","ref","rest","pwInputType","setPwInputType","useState","jsx","Input","e","nextValue","HiOutlineEyeOff","HiOutlineEye"],"mappings":";;;;;AAUA,MAAMA,IAAgB,CAACC,MAA8B;AACjD,QAAM,EAAE,iBAAAC,GAAiB,KAAAC,GAAK,GAAGC,MAASH,GAEpC,CAACI,GAAaC,CAAc,IAAIC,EAAS,UAAU;AASzD,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACI,GAAGL;AAAA,MACJ,KAAAD;AAAA,MACA,MAAME;AAAA,MACN,QACI,gBAAAG;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,SAhBe,CAACE,MAAmC;AAC/D,YAAAA,EAAE,eAAA;AACF,kBAAMC,IAAYN,MAAgB,aAAa,SAAS;AACxD,YAAAC,EAAeK,CAAS,GACxBT,
|
|
1
|
+
{"version":3,"file":"PasswordInput.js","sources":["../../../../lib/@ecme/components/shared/PasswordInput.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { Input, InputProps } from '@/components/ui/Input'\nimport { HiOutlineEyeOff, HiOutlineEye } from 'react-icons/hi'\nimport type { MouseEvent, Ref } from 'react'\n\ninterface PasswordInputProps extends InputProps {\n onVisibleChange?: (visible: boolean) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst PasswordInput = (props: PasswordInputProps) => {\n const { onVisibleChange, ref, ...rest } = props\n\n const [pwInputType, setPwInputType] = useState('password')\n\n const onPasswordVisibleClick = (e: MouseEvent<HTMLSpanElement>) => {\n e.preventDefault()\n const nextValue = pwInputType === 'password' ? 'text' : 'password'\n setPwInputType(nextValue)\n onVisibleChange?.(nextValue === 'text')\n }\n\n return (\n <Input\n {...rest}\n ref={ref}\n type={pwInputType}\n suffix={\n <span\n className=\"cursor-pointer select-none text-xl\"\n role=\"button\"\n onClick={onPasswordVisibleClick}\n >\n {pwInputType === 'password' ? (\n <HiOutlineEyeOff />\n ) : (\n <HiOutlineEye />\n )}\n </span>\n }\n />\n )\n}\n\nexport default PasswordInput\n"],"names":["PasswordInput","props","onVisibleChange","ref","rest","pwInputType","setPwInputType","useState","jsx","Input","e","nextValue","HiOutlineEyeOff","HiOutlineEye"],"mappings":";;;;;AAUA,MAAMA,IAAgB,CAACC,MAA8B;AACjD,QAAM,EAAE,iBAAAC,GAAiB,KAAAC,GAAK,GAAGC,MAASH,GAEpC,CAACI,GAAaC,CAAc,IAAIC,EAAS,UAAU;AASzD,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACI,GAAGL;AAAA,MACJ,KAAAD;AAAA,MACA,MAAME;AAAA,MACN,QACI,gBAAAG;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,SAhBe,CAACE,MAAmC;AAC/D,YAAAA,EAAE,eAAA;AACF,kBAAMC,IAAYN,MAAgB,aAAa,SAAS;AACxD,YAAAC,EAAeK,CAAS,GACxBT,IAAkBS,MAAc,MAAM;AAAA,UAC1C;AAAA,UAaiB,gBAAgB,aACb,gBAAAH,EAACI,GAAA,EAAgB,sBAEhBC,GAAA,CAAA,CAAa;AAAA,QAAA;AAAA,MAAA;AAAA,IAEtB;AAAA,EAAA;AAIhB;"}
|