@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpcomingSchedule.js","sources":["../../../../../../lib/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.tsx"],"sourcesContent":["import { useState, useMemo } from 'react'\nimport Avatar from '@/components/ui/Avatar'\nimport Card from '@/components/ui/Card'\nimport Calendar from '@/components/ui/Calendar'\nimport ScrollBar from '@/components/ui/ScrollBar'\nimport CreateEventDialog, { eventTypes } from './CreateEventDialog'\nimport { eventGenerator, isToday } from '../utils'\nimport classNames from '@/utils/classNames'\n\nimport dayjs from 'dayjs'\nimport type { FormSchema as CreateEventPayload } from './CreateEventDialog'\nimport type { Event } from '../types'\n\ntype ScheduledEvent = {\n id: string\n type: Event\n label: string\n time?: Date\n}\n\ntype ScheduledEventProps = ScheduledEvent\n\nconst ScheduledEvent = (props: ScheduledEventProps) => {\n const { type, label, time } = props\n\n const event = eventTypes[type]\n\n return (\n <div className=\"flex items-center justify-between gap-4 py-1\">\n <div className=\"flex items-center gap-3\">\n <div>\n <Avatar\n className={classNames('text-gray-900', event?.color)}\n icon={event?.icon}\n shape=\"round\"\n />\n </div>\n <div>\n <div className=\"font-bold heading-text\">{label}</div>\n <div className=\"font-normal\">{event?.label}</div>\n </div>\n </div>\n <div>\n <span className=\"font-semibold heading-text\">\n {time && dayjs(time).format('hh:mm')}{' '}\n </span>\n <small>{time && dayjs(time).format('A')}</small>\n </div>\n </div>\n )\n}\n\nconst UpcomingSchedule = () => {\n const [selectedDate, setSelectedDate] = useState<Date | null>(\n dayjs().toDate(),\n )\n const [createdEventCache, setCreatedEventCache] = useState<\n Record<string, ScheduledEvent[]>\n >({})\n\n const eventList = useMemo(() => {\n const date = selectedDate\n const previousCreatedEvent =\n createdEventCache[dayjs(date).toISOString()] || []\n const eventList = [\n ...eventGenerator(date as Date),\n ...previousCreatedEvent,\n ]\n\n return eventList.sort((a, b) => {\n if (!a.time && !b.time) {\n return 0\n }\n if (!a.time) {\n return 1\n }\n if (!b.time) {\n return -1\n }\n return a.time.getTime() - b.time.getTime()\n })\n }, [selectedDate, createdEventCache])\n\n const handleCreateEvent = (value: CreateEventPayload & { id: string }) => {\n const payload = {\n id: value.id,\n label: value.label,\n type: value.type,\n time: dayjs(selectedDate)\n .set('hour', value.time)\n .set('minute', 0)\n .toDate(),\n }\n setCreatedEventCache((prevRecord) => {\n if (prevRecord[dayjs(selectedDate).toISOString()]) {\n prevRecord[dayjs(selectedDate).toISOString()].push(payload)\n } else {\n prevRecord[dayjs(selectedDate).toISOString()] = [payload]\n }\n\n return structuredClone(prevRecord)\n })\n }\n\n return (\n <Card>\n <div className=\"flex flex-col md:flex-row xl:flex-col md:gap-10 xl:gap-0\">\n <div className=\"flex items-center mx-auto w-[280px]\">\n <Calendar\n value={selectedDate}\n onChange={(val) => {\n setSelectedDate(val)\n }}\n />\n </div>\n <div className=\"w-full\">\n <div className=\"my-6\">\n <h5>\n Scehdule{' '}\n {isToday(selectedDate as Date)\n ? 'today'\n : dayjs(selectedDate).format('DD MMM')}\n </h5>\n </div>\n <div className=\"w-full\">\n <ScrollBar className=\"overflow-y-auto h-[280px] xl:max-w-[280px]\">\n <div className=\"flex flex-col gap-4\">\n {eventList.map((event) => (\n <ScheduledEvent key={event.id} {...event} />\n ))}\n </div>\n </ScrollBar>\n </div>\n </div>\n </div>\n <div className=\"mt-4\">\n <CreateEventDialog onCreateEvent={handleCreateEvent} />\n </div>\n </Card>\n )\n}\n\nexport default UpcomingSchedule\n"],"names":["ScheduledEvent","props","type","label","time","event","eventTypes","jsxs","jsx","Avatar","classNames","dayjs","UpcomingSchedule","selectedDate","setSelectedDate","useState","createdEventCache","setCreatedEventCache","eventList","useMemo","date","previousCreatedEvent","eventGenerator","a","b","handleCreateEvent","value","payload","prevRecord","Card","Calendar","val","isToday","ScrollBar","CreateEventDialog"],"mappings":";;;;;;;;;;;;;AAsBA,MAAMA,IAAiB,CAACC,MAA+B;AACnD,QAAM,EAAE,MAAAC,GAAM,OAAAC,GAAO,MAAAC,EAAA,IAASH,GAExBI,IAAQC,EAAWJ,CAAI;AAE7B,SACI,gBAAAK,EAAC,OAAA,EAAI,WAAU,gDACX,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAA,EACG,UAAA,gBAAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,WAAWC,EAAW,iBAAiBL,
|
|
1
|
+
{"version":3,"file":"UpcomingSchedule.js","sources":["../../../../../../lib/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.tsx"],"sourcesContent":["import { useState, useMemo } from 'react'\nimport Avatar from '@/components/ui/Avatar'\nimport Card from '@/components/ui/Card'\nimport Calendar from '@/components/ui/Calendar'\nimport ScrollBar from '@/components/ui/ScrollBar'\nimport CreateEventDialog, { eventTypes } from './CreateEventDialog'\nimport { eventGenerator, isToday } from '../utils'\nimport classNames from '@/utils/classNames'\n\nimport dayjs from 'dayjs'\nimport type { FormSchema as CreateEventPayload } from './CreateEventDialog'\nimport type { Event } from '../types'\n\ntype ScheduledEvent = {\n id: string\n type: Event\n label: string\n time?: Date\n}\n\ntype ScheduledEventProps = ScheduledEvent\n\nconst ScheduledEvent = (props: ScheduledEventProps) => {\n const { type, label, time } = props\n\n const event = eventTypes[type]\n\n return (\n <div className=\"flex items-center justify-between gap-4 py-1\">\n <div className=\"flex items-center gap-3\">\n <div>\n <Avatar\n className={classNames('text-gray-900', event?.color)}\n icon={event?.icon}\n shape=\"round\"\n />\n </div>\n <div>\n <div className=\"font-bold heading-text\">{label}</div>\n <div className=\"font-normal\">{event?.label}</div>\n </div>\n </div>\n <div>\n <span className=\"font-semibold heading-text\">\n {time && dayjs(time).format('hh:mm')}{' '}\n </span>\n <small>{time && dayjs(time).format('A')}</small>\n </div>\n </div>\n )\n}\n\nconst UpcomingSchedule = () => {\n const [selectedDate, setSelectedDate] = useState<Date | null>(\n dayjs().toDate(),\n )\n const [createdEventCache, setCreatedEventCache] = useState<\n Record<string, ScheduledEvent[]>\n >({})\n\n const eventList = useMemo(() => {\n const date = selectedDate\n const previousCreatedEvent =\n createdEventCache[dayjs(date).toISOString()] || []\n const eventList = [\n ...eventGenerator(date as Date),\n ...previousCreatedEvent,\n ]\n\n return eventList.sort((a, b) => {\n if (!a.time && !b.time) {\n return 0\n }\n if (!a.time) {\n return 1\n }\n if (!b.time) {\n return -1\n }\n return a.time.getTime() - b.time.getTime()\n })\n }, [selectedDate, createdEventCache])\n\n const handleCreateEvent = (value: CreateEventPayload & { id: string }) => {\n const payload = {\n id: value.id,\n label: value.label,\n type: value.type,\n time: dayjs(selectedDate)\n .set('hour', value.time)\n .set('minute', 0)\n .toDate(),\n }\n setCreatedEventCache((prevRecord) => {\n if (prevRecord[dayjs(selectedDate).toISOString()]) {\n prevRecord[dayjs(selectedDate).toISOString()].push(payload)\n } else {\n prevRecord[dayjs(selectedDate).toISOString()] = [payload]\n }\n\n return structuredClone(prevRecord)\n })\n }\n\n return (\n <Card>\n <div className=\"flex flex-col md:flex-row xl:flex-col md:gap-10 xl:gap-0\">\n <div className=\"flex items-center mx-auto w-[280px]\">\n <Calendar\n value={selectedDate}\n onChange={(val) => {\n setSelectedDate(val)\n }}\n />\n </div>\n <div className=\"w-full\">\n <div className=\"my-6\">\n <h5>\n Scehdule{' '}\n {isToday(selectedDate as Date)\n ? 'today'\n : dayjs(selectedDate).format('DD MMM')}\n </h5>\n </div>\n <div className=\"w-full\">\n <ScrollBar className=\"overflow-y-auto h-[280px] xl:max-w-[280px]\">\n <div className=\"flex flex-col gap-4\">\n {eventList.map((event) => (\n <ScheduledEvent key={event.id} {...event} />\n ))}\n </div>\n </ScrollBar>\n </div>\n </div>\n </div>\n <div className=\"mt-4\">\n <CreateEventDialog onCreateEvent={handleCreateEvent} />\n </div>\n </Card>\n )\n}\n\nexport default UpcomingSchedule\n"],"names":["ScheduledEvent","props","type","label","time","event","eventTypes","jsxs","jsx","Avatar","classNames","dayjs","UpcomingSchedule","selectedDate","setSelectedDate","useState","createdEventCache","setCreatedEventCache","eventList","useMemo","date","previousCreatedEvent","eventGenerator","a","b","handleCreateEvent","value","payload","prevRecord","Card","Calendar","val","isToday","ScrollBar","CreateEventDialog"],"mappings":";;;;;;;;;;;;;AAsBA,MAAMA,IAAiB,CAACC,MAA+B;AACnD,QAAM,EAAE,MAAAC,GAAM,OAAAC,GAAO,MAAAC,EAAA,IAASH,GAExBI,IAAQC,EAAWJ,CAAI;AAE7B,SACI,gBAAAK,EAAC,OAAA,EAAI,WAAU,gDACX,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAA,EACG,UAAA,gBAAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,WAAWC,EAAW,iBAAiBL,GAAO,KAAK;AAAA,UACnD,MAAMA,GAAO;AAAA,UACb,OAAM;AAAA,QAAA;AAAA,MAAA,GAEd;AAAA,wBACC,OAAA,EACG,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAU,0BAA0B,UAAAL,GAAM;AAAA,QAC/C,gBAAAK,EAAC,OAAA,EAAI,WAAU,eAAe,aAAO,MAAA,CAAM;AAAA,MAAA,EAAA,CAC/C;AAAA,IAAA,GACJ;AAAA,sBACC,OAAA,EACG,UAAA;AAAA,MAAA,gBAAAD,EAAC,QAAA,EAAK,WAAU,8BACX,UAAA;AAAA,QAAAH,KAAQO,EAAMP,CAAI,EAAE,OAAO,OAAO;AAAA,QAAG;AAAA,MAAA,GAC1C;AAAA,MACA,gBAAAI,EAAC,WAAO,UAAAJ,KAAQO,EAAMP,CAAI,EAAE,OAAO,GAAG,EAAA,CAAE;AAAA,IAAA,EAAA,CAC5C;AAAA,EAAA,GACJ;AAER,GAEMQ,IAAmB,MAAM;AAC3B,QAAM,CAACC,GAAcC,CAAe,IAAIC;AAAA,IACpCJ,EAAA,EAAQ,OAAA;AAAA,EAAO,GAEb,CAACK,GAAmBC,CAAoB,IAAIF,EAEhD,CAAA,CAAE,GAEEG,IAAYC,EAAQ,MAAM;AAC5B,UAAMC,IAAOP,GACPQ,IACFL,EAAkBL,EAAMS,CAAI,EAAE,YAAA,CAAa,KAAK,CAAA;AAMpD,WALkB;AAAA,MACd,GAAGE,EAAeF,CAAY;AAAA,MAC9B,GAAGC;AAAA,IAAA,EAGU,KAAK,CAACE,GAAGC,MAClB,CAACD,EAAE,QAAQ,CAACC,EAAE,OACP,IAEND,EAAE,OAGFC,EAAE,OAGAD,EAAE,KAAK,QAAA,IAAYC,EAAE,KAAK,QAAA,IAFtB,KAHA,CAMd;AAAA,EACL,GAAG,CAACX,GAAcG,CAAiB,CAAC,GAE9BS,IAAoB,CAACC,MAA+C;AACtE,UAAMC,IAAU;AAAA,MACZ,IAAID,EAAM;AAAA,MACV,OAAOA,EAAM;AAAA,MACb,MAAMA,EAAM;AAAA,MACZ,MAAMf,EAAME,CAAY,EACnB,IAAI,QAAQa,EAAM,IAAI,EACtB,IAAI,UAAU,CAAC,EACf,OAAA;AAAA,IAAO;AAEhB,IAAAT,EAAqB,CAACW,OACdA,EAAWjB,EAAME,CAAY,EAAE,YAAA,CAAa,IAC5Ce,EAAWjB,EAAME,CAAY,EAAE,aAAa,EAAE,KAAKc,CAAO,IAE1DC,EAAWjB,EAAME,CAAY,EAAE,aAAa,IAAI,CAACc,CAAO,GAGrD,gBAAgBC,CAAU,EACpC;AAAA,EACL;AAEA,2BACKC,GAAA,EACG,UAAA;AAAA,IAAA,gBAAAtB,EAAC,OAAA,EAAI,WAAU,4DACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,uCACX,UAAA,gBAAAA;AAAA,QAACsB;AAAA,QAAA;AAAA,UACG,OAAOjB;AAAA,UACP,UAAU,CAACkB,MAAQ;AACf,YAAAjB,EAAgBiB,CAAG;AAAA,UACvB;AAAA,QAAA;AAAA,MAAA,GAER;AAAA,MACA,gBAAAxB,EAAC,OAAA,EAAI,WAAU,UACX,UAAA;AAAA,QAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,QACX,UAAA,gBAAAD,EAAC,MAAA,EAAG,UAAA;AAAA,UAAA;AAAA,UACS;AAAA,UACRyB,EAAQnB,CAAoB,IACvB,UACAF,EAAME,CAAY,EAAE,OAAO,QAAQ;AAAA,QAAA,EAAA,CAC7C,EAAA,CACJ;AAAA,QACA,gBAAAL,EAAC,OAAA,EAAI,WAAU,UACX,UAAA,gBAAAA,EAACyB,KAAU,WAAU,8CACjB,UAAA,gBAAAzB,EAAC,OAAA,EAAI,WAAU,uBACV,YAAU,IAAI,CAACH,MACZ,gBAAAG,EAACR,GAAA,EAA+B,GAAGK,EAAA,GAAdA,EAAM,EAAe,CAC7C,EAAA,CACL,EAAA,CACJ,EAAA,CACJ;AAAA,MAAA,EAAA,CACJ;AAAA,IAAA,GACJ;AAAA,IACA,gBAAAG,EAAC,SAAI,WAAU,QACX,4BAAC0B,GAAA,EAAkB,eAAeT,GAAmB,EAAA,CACzD;AAAA,EAAA,GACJ;AAER;"}
|
package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js
CHANGED
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../components/ui/Button/index.js";
|
|
3
3
|
import "../../../../../components/ui/Form/index.js";
|
|
4
|
-
import
|
|
5
|
-
import { useForm as
|
|
6
|
-
import { Form as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
function
|
|
4
|
+
import u from "../../../../../components/shared/CustomFormatInput.js";
|
|
5
|
+
import { useForm as a, Controller as c } from "react-hook-form";
|
|
6
|
+
import { Form as l } from "../../../../../components/ui/Form/Form.js";
|
|
7
|
+
import p from "../../../../../components/ui/Form/FormItem.js";
|
|
8
|
+
import d from "../../../../../components/ui/Button/Button.js";
|
|
9
|
+
function i(r, o) {
|
|
10
10
|
return r.length === 1 && r[0] > o[0] && (r = "0" + r), r.length === 2 && (Number(r) === 0 ? r = "01" : r > o && (r = o)), r;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const o =
|
|
12
|
+
function f(r) {
|
|
13
|
+
const o = i(r.substring(0, 2), "12"), t = i(r.substring(2, 4), "31");
|
|
14
14
|
return o + (t.length ? "/" + t : "");
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
var i;
|
|
16
|
+
const j = () => {
|
|
18
17
|
const {
|
|
19
18
|
handleSubmit: r,
|
|
20
19
|
formState: { errors: o },
|
|
21
20
|
control: t
|
|
22
|
-
} =
|
|
23
|
-
return /* @__PURE__ */
|
|
21
|
+
} = a();
|
|
22
|
+
return /* @__PURE__ */ s(l, { className: "mt-6", onSubmit: r((e) => {
|
|
24
23
|
console.log(e);
|
|
25
24
|
}), children: [
|
|
26
25
|
/* @__PURE__ */ n(
|
|
27
|
-
|
|
26
|
+
p,
|
|
28
27
|
{
|
|
29
28
|
label: "Expiration date",
|
|
30
29
|
invalid: !!o.cardExpiry,
|
|
31
|
-
errorMessage:
|
|
30
|
+
errorMessage: o.cardExpiry?.message,
|
|
32
31
|
children: /* @__PURE__ */ n(
|
|
33
|
-
|
|
32
|
+
c,
|
|
34
33
|
{
|
|
35
34
|
name: "cardExpiry",
|
|
36
35
|
control: t,
|
|
37
36
|
render: ({ field: e }) => /* @__PURE__ */ n(
|
|
38
|
-
|
|
37
|
+
u,
|
|
39
38
|
{
|
|
40
39
|
placeholder: "••/••",
|
|
41
|
-
format:
|
|
40
|
+
format: f,
|
|
42
41
|
value: e.value,
|
|
43
|
-
onValueChange: (
|
|
44
|
-
e.onChange(
|
|
42
|
+
onValueChange: (m) => {
|
|
43
|
+
e.onChange(m.value);
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
)
|
|
@@ -49,10 +48,10 @@ const B = () => {
|
|
|
49
48
|
)
|
|
50
49
|
}
|
|
51
50
|
),
|
|
52
|
-
/* @__PURE__ */ n(
|
|
51
|
+
/* @__PURE__ */ n(d, { block: !0, variant: "solid", type: "submit", children: "Submit" })
|
|
53
52
|
] });
|
|
54
53
|
};
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
j as default
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=WithForm.js.map
|
package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport FormCustomFormatInput from '@/components/shared/CustomFormatInput'\nimport { useForm, Controller } from 'react-hook-form'\n\nfunction limit(val: string, max: string) {\n if (val.length === 1 && val[0] > max[0]) {\n val = '0' + val\n }\n\n if (val.length === 2) {\n if (Number(val) === 0) {\n val = '01'\n } else if (val > max) {\n val = max\n }\n }\n\n return val\n}\n\nfunction cardExpiryFormat(val: string) {\n const month = limit(val.substring(0, 2), '12')\n const date = limit(val.substring(2, 4), '31')\n\n return month + (date.length ? '/' + date : '')\n}\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ cardExpiry?: string }>()\n\n const onSubmit = (value: { cardExpiry?: string }) => {\n console.log(value)\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Expiration date\"\n invalid={Boolean(errors.cardExpiry)}\n errorMessage={errors.cardExpiry?.message}\n >\n <Controller\n name=\"cardExpiry\"\n control={control}\n render={({ field }) => (\n <FormCustomFormatInput\n placeholder=\"••/••\"\n format={cardExpiryFormat}\n value={field.value}\n onValueChange={(e) => {\n field.onChange(e.value)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["limit","val","max","cardExpiryFormat","month","date","WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","
|
|
1
|
+
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport FormCustomFormatInput from '@/components/shared/CustomFormatInput'\nimport { useForm, Controller } from 'react-hook-form'\n\nfunction limit(val: string, max: string) {\n if (val.length === 1 && val[0] > max[0]) {\n val = '0' + val\n }\n\n if (val.length === 2) {\n if (Number(val) === 0) {\n val = '01'\n } else if (val > max) {\n val = max\n }\n }\n\n return val\n}\n\nfunction cardExpiryFormat(val: string) {\n const month = limit(val.substring(0, 2), '12')\n const date = limit(val.substring(2, 4), '31')\n\n return month + (date.length ? '/' + date : '')\n}\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ cardExpiry?: string }>()\n\n const onSubmit = (value: { cardExpiry?: string }) => {\n console.log(value)\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Expiration date\"\n invalid={Boolean(errors.cardExpiry)}\n errorMessage={errors.cardExpiry?.message}\n >\n <Controller\n name=\"cardExpiry\"\n control={control}\n render={({ field }) => (\n <FormCustomFormatInput\n placeholder=\"••/••\"\n format={cardExpiryFormat}\n value={field.value}\n onValueChange={(e) => {\n field.onChange(e.value)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["limit","val","max","cardExpiryFormat","month","date","WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","Controller","field","FormCustomFormatInput","e","Button"],"mappings":";;;;;;;;AAKA,SAASA,EAAMC,GAAaC,GAAa;AACrC,SAAID,EAAI,WAAW,KAAKA,EAAI,CAAC,IAAIC,EAAI,CAAC,MAClCD,IAAM,MAAMA,IAGZA,EAAI,WAAW,MACX,OAAOA,CAAG,MAAM,IAChBA,IAAM,OACCA,IAAMC,MACbD,IAAMC,KAIPD;AACX;AAEA,SAASE,EAAiBF,GAAa;AACnC,QAAMG,IAAQJ,EAAMC,EAAI,UAAU,GAAG,CAAC,GAAG,IAAI,GACvCI,IAAOL,EAAMC,EAAI,UAAU,GAAG,CAAC,GAAG,IAAI;AAE5C,SAAOG,KAASC,EAAK,SAAS,MAAMA,IAAO;AAC/C;AAEA,MAAMC,IAAW,MAAM;AACnB,QAAM;AAAA,IACF,cAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACAC,EAAA;AAMJ,2BACKC,GAAA,EAAK,WAAU,QAAO,UAAUJ,EALpB,CAACK,MAAmC;AACjD,YAAQ,IAAIA,CAAK;AAAA,EACrB,CAG0D,GAClD,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,SAAS,EAAQN,EAAO;AAAA,QACxB,cAAcA,EAAO,YAAY;AAAA,QAEjC,UAAA,gBAAAK;AAAA,UAACE;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,SAAAN;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAO,EAAA,MACP,gBAAAH;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,aAAY;AAAA,gBACZ,QAAQd;AAAA,gBACR,OAAOa,EAAM;AAAA,gBACb,eAAe,CAACE,MAAM;AAClB,kBAAAF,EAAM,SAASE,EAAE,KAAK;AAAA,gBAC1B;AAAA,cAAA;AAAA,YAAA;AAAA,UACJ;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAACM,KAAO,OAAK,IAAC,SAAQ,SAAQ,MAAK,UAAS,UAAA,SAAA,CAE5C;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "../../../../../components/shared/ImageGallery.js";
|
|
3
|
+
import { useState as c } from "react";
|
|
4
|
+
const t = [
|
|
5
5
|
{ src: "/img/others/gallery/img-25.webp", title: "Image 1" },
|
|
6
6
|
{ src: "/img/others/gallery/img-26.webp", title: "Image 2" },
|
|
7
7
|
{ src: "/img/others/gallery/img-27.webp", title: "Image 3" }
|
|
8
|
-
],
|
|
9
|
-
const [
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
8
|
+
], d = () => {
|
|
9
|
+
const [l, s] = c(-1);
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
a,
|
|
12
12
|
{
|
|
13
|
-
index:
|
|
14
|
-
slides:
|
|
13
|
+
index: l,
|
|
14
|
+
slides: t?.map((e) => ({
|
|
15
15
|
src: e.src
|
|
16
|
-
}))
|
|
16
|
+
})) || [],
|
|
17
17
|
onClose: () => s(-1),
|
|
18
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ r("div", { className: "grid grid-cols-3 gap-2", children: t?.map((e, i) => /* @__PURE__ */ r(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
21
|
"data-src": e.src,
|
|
22
22
|
className: "cursor-pointer",
|
|
23
23
|
role: "button",
|
|
24
|
-
onClick: () => s(
|
|
25
|
-
children: /* @__PURE__ */
|
|
24
|
+
onClick: () => s(i),
|
|
25
|
+
children: /* @__PURE__ */ r("img", { className: "rounded-xl", src: e.src })
|
|
26
26
|
},
|
|
27
27
|
e.title
|
|
28
28
|
)) })
|
|
@@ -30,6 +30,6 @@ const r = [
|
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
d as default
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=Example.js.map
|
package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Example.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.tsx"],"sourcesContent":["import ImageGallery from '@/components/shared/ImageGallery'\nimport { useState } from 'react'\n\nconst slides = [\n { src: '/img/others/gallery/img-25.webp', title: 'Image 1' },\n { src: '/img/others/gallery/img-26.webp', title: 'Image 2' },\n { src: '/img/others/gallery/img-27.webp', title: 'Image 3' },\n]\n\nconst Example = () => {\n const [currentIndex, setCurrentIndex] = useState(-1)\n\n return (\n <ImageGallery\n index={currentIndex}\n slides={\n slides?.map((img) => {\n return {\n src: img.src,\n }\n }) || []\n }\n onClose={() => setCurrentIndex(-1)}\n >\n <div className=\"grid grid-cols-3 gap-2\">\n {slides?.map((img, index) => (\n <div\n key={img.title}\n data-src={img.src}\n className=\"cursor-pointer\"\n role=\"button\"\n onClick={() => setCurrentIndex(index)}\n >\n <img className=\"rounded-xl\" src={img.src} />\n </div>\n ))}\n </div>\n </ImageGallery>\n )\n}\n\nexport default Example\n"],"names":["slides","Example","currentIndex","setCurrentIndex","useState","jsx","ImageGallery","img","index"],"mappings":";;;AAGA,MAAMA,IAAS;AAAA,EACX,EAAE,KAAK,mCAAmC,OAAO,UAAA;AAAA,EACjD,EAAE,KAAK,mCAAmC,OAAO,UAAA;AAAA,EACjD,EAAE,KAAK,mCAAmC,OAAO,UAAA;AACrD,GAEMC,IAAU,MAAM;AAClB,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,EAAE;AAEnD,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAOJ;AAAA,MACP,
|
|
1
|
+
{"version":3,"file":"Example.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.tsx"],"sourcesContent":["import ImageGallery from '@/components/shared/ImageGallery'\nimport { useState } from 'react'\n\nconst slides = [\n { src: '/img/others/gallery/img-25.webp', title: 'Image 1' },\n { src: '/img/others/gallery/img-26.webp', title: 'Image 2' },\n { src: '/img/others/gallery/img-27.webp', title: 'Image 3' },\n]\n\nconst Example = () => {\n const [currentIndex, setCurrentIndex] = useState(-1)\n\n return (\n <ImageGallery\n index={currentIndex}\n slides={\n slides?.map((img) => {\n return {\n src: img.src,\n }\n }) || []\n }\n onClose={() => setCurrentIndex(-1)}\n >\n <div className=\"grid grid-cols-3 gap-2\">\n {slides?.map((img, index) => (\n <div\n key={img.title}\n data-src={img.src}\n className=\"cursor-pointer\"\n role=\"button\"\n onClick={() => setCurrentIndex(index)}\n >\n <img className=\"rounded-xl\" src={img.src} />\n </div>\n ))}\n </div>\n </ImageGallery>\n )\n}\n\nexport default Example\n"],"names":["slides","Example","currentIndex","setCurrentIndex","useState","jsx","ImageGallery","img","index"],"mappings":";;;AAGA,MAAMA,IAAS;AAAA,EACX,EAAE,KAAK,mCAAmC,OAAO,UAAA;AAAA,EACjD,EAAE,KAAK,mCAAmC,OAAO,UAAA;AAAA,EACjD,EAAE,KAAK,mCAAmC,OAAO,UAAA;AACrD,GAEMC,IAAU,MAAM;AAClB,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,EAAE;AAEnD,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAOJ;AAAA,MACP,QACIF,GAAQ,IAAI,CAACO,OACF;AAAA,QACH,KAAKA,EAAI;AAAA,MAAA,EAEhB,KAAK,CAAA;AAAA,MAEV,SAAS,MAAMJ,EAAgB,EAAE;AAAA,MAEjC,UAAA,gBAAAE,EAAC,SAAI,WAAU,0BACV,aAAQ,IAAI,CAACE,GAAKC,MACf,gBAAAH;AAAA,QAAC;AAAA,QAAA;AAAA,UAEG,YAAUE,EAAI;AAAA,UACd,WAAU;AAAA,UACV,MAAK;AAAA,UACL,SAAS,MAAMJ,EAAgBK,CAAK;AAAA,UAEpC,4BAAC,OAAA,EAAI,WAAU,cAAa,KAAKD,EAAI,IAAA,CAAK;AAAA,QAAA;AAAA,QANrCA,EAAI;AAAA,MAAA,CAQhB,EAAA,CACL;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../components/ui/Button/index.js";
|
|
3
3
|
import "../../../../../components/ui/Form/index.js";
|
|
4
|
-
import
|
|
5
|
-
import { useForm as
|
|
6
|
-
import { Form as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
var e;
|
|
4
|
+
import u from "../../../../../components/shared/NumericInput.js";
|
|
5
|
+
import { useForm as l, Controller as i } from "react-hook-form";
|
|
6
|
+
import { Form as s } from "../../../../../components/ui/Form/Form.js";
|
|
7
|
+
import p from "../../../../../components/ui/Form/FormItem.js";
|
|
8
|
+
import c from "../../../../../components/ui/Button/Button.js";
|
|
9
|
+
const C = () => {
|
|
11
10
|
const {
|
|
12
|
-
handleSubmit:
|
|
11
|
+
handleSubmit: e,
|
|
13
12
|
formState: { errors: t },
|
|
14
|
-
control:
|
|
15
|
-
} =
|
|
16
|
-
return /* @__PURE__ */
|
|
13
|
+
control: m
|
|
14
|
+
} = l();
|
|
15
|
+
return /* @__PURE__ */ a(s, { className: "mt-6", onSubmit: e((o) => {
|
|
17
16
|
console.log(o);
|
|
18
17
|
}), children: [
|
|
19
18
|
/* @__PURE__ */ r(
|
|
20
|
-
|
|
19
|
+
p,
|
|
21
20
|
{
|
|
22
21
|
label: "Amount",
|
|
23
22
|
invalid: !!t.amount,
|
|
24
|
-
errorMessage:
|
|
23
|
+
errorMessage: t.amount?.message,
|
|
25
24
|
children: /* @__PURE__ */ r(
|
|
26
|
-
|
|
25
|
+
i,
|
|
27
26
|
{
|
|
28
27
|
name: "amount",
|
|
29
|
-
control:
|
|
28
|
+
control: m,
|
|
30
29
|
render: ({ field: o }) => /* @__PURE__ */ r(
|
|
31
|
-
|
|
30
|
+
u,
|
|
32
31
|
{
|
|
33
32
|
thousandSeparator: !0,
|
|
34
33
|
placeholder: "Amount",
|
|
35
34
|
value: o.value,
|
|
36
|
-
onValueChange: (
|
|
37
|
-
o.onChange(
|
|
35
|
+
onValueChange: (n) => {
|
|
36
|
+
o.onChange(n.floatValue);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
)
|
|
@@ -42,10 +41,10 @@ const j = () => {
|
|
|
42
41
|
)
|
|
43
42
|
}
|
|
44
43
|
),
|
|
45
|
-
/* @__PURE__ */ r(
|
|
44
|
+
/* @__PURE__ */ r(c, { block: !0, variant: "solid", type: "submit", children: "Submit" })
|
|
46
45
|
] });
|
|
47
46
|
};
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
C as default
|
|
50
49
|
};
|
|
51
50
|
//# sourceMappingURL=WithForm.js.map
|
package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport NumericInput from '@/components/shared/NumericInput'\nimport { useForm, Controller } from 'react-hook-form'\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ amount?: string }>()\n\n const onSubmit = (value: { amount?: string }) => {\n console.log(value)\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Amount\"\n invalid={Boolean(errors.amount)}\n errorMessage={errors.amount?.message}\n >\n <Controller\n name=\"amount\"\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator\n placeholder=\"Amount\"\n value={field.value}\n onValueChange={(e) => {\n field.onChange(e.floatValue)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","
|
|
1
|
+
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport NumericInput from '@/components/shared/NumericInput'\nimport { useForm, Controller } from 'react-hook-form'\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ amount?: string }>()\n\n const onSubmit = (value: { amount?: string }) => {\n console.log(value)\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Amount\"\n invalid={Boolean(errors.amount)}\n errorMessage={errors.amount?.message}\n >\n <Controller\n name=\"amount\"\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator\n placeholder=\"Amount\"\n value={field.value}\n onValueChange={(e) => {\n field.onChange(e.floatValue)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","Controller","field","NumericInput","e","Button"],"mappings":";;;;;;;;AAKA,MAAMA,IAAW,MAAM;AACnB,QAAM;AAAA,IACF,cAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACAC,EAAA;AAMJ,2BACKC,GAAA,EAAK,WAAU,QAAO,UAAUJ,EALpB,CAACK,MAA+B;AAC7C,YAAQ,IAAIA,CAAK;AAAA,EACrB,CAG0D,GAClD,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,SAAS,EAAQN,EAAO;AAAA,QACxB,cAAcA,EAAO,QAAQ;AAAA,QAE7B,UAAA,gBAAAK;AAAA,UAACE;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,SAAAN;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAO,EAAA,MACP,gBAAAH;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,mBAAiB;AAAA,gBACjB,aAAY;AAAA,gBACZ,OAAOD,EAAM;AAAA,gBACb,eAAe,CAACE,MAAM;AAClB,kBAAAF,EAAM,SAASE,EAAE,UAAU;AAAA,gBAC/B;AAAA,cAAA;AAAA,YAAA;AAAA,UACJ;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAACM,KAAO,OAAK,IAAC,SAAQ,SAAQ,MAAK,UAAS,UAAA,SAAA,CAE5C;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../components/ui/Button/index.js";
|
|
3
3
|
import "../../../../../components/ui/Form/index.js";
|
|
4
|
-
import { PatternInput as
|
|
5
|
-
import { useForm as
|
|
6
|
-
import { Form as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
var m;
|
|
4
|
+
import { PatternInput as l } from "../../../../../components/shared/PatternInput.js";
|
|
5
|
+
import { useForm as i, Controller as u } from "react-hook-form";
|
|
6
|
+
import { Form as s } from "../../../../../components/ui/Form/Form.js";
|
|
7
|
+
import p from "../../../../../components/ui/Form/FormItem.js";
|
|
8
|
+
import c from "../../../../../components/ui/Button/Button.js";
|
|
9
|
+
const x = () => {
|
|
11
10
|
const {
|
|
12
|
-
handleSubmit:
|
|
11
|
+
handleSubmit: m,
|
|
13
12
|
formState: { errors: t },
|
|
14
|
-
control:
|
|
15
|
-
} =
|
|
16
|
-
return /* @__PURE__ */
|
|
13
|
+
control: e
|
|
14
|
+
} = i();
|
|
15
|
+
return /* @__PURE__ */ a(s, { className: "mt-6", onSubmit: m((o) => {
|
|
17
16
|
console.log(o);
|
|
18
17
|
}), children: [
|
|
19
18
|
/* @__PURE__ */ r(
|
|
20
|
-
|
|
19
|
+
p,
|
|
21
20
|
{
|
|
22
21
|
label: "Amount",
|
|
23
22
|
invalid: !!t.amount,
|
|
24
|
-
errorMessage:
|
|
23
|
+
errorMessage: t.amount?.message,
|
|
25
24
|
children: /* @__PURE__ */ r(
|
|
26
|
-
|
|
25
|
+
u,
|
|
27
26
|
{
|
|
28
27
|
name: "amount",
|
|
29
|
-
control:
|
|
28
|
+
control: e,
|
|
30
29
|
render: ({ field: o }) => /* @__PURE__ */ r(
|
|
31
|
-
|
|
30
|
+
l,
|
|
32
31
|
{
|
|
33
32
|
format: "#### #### #### ####",
|
|
34
33
|
mask: "_",
|
|
35
34
|
placeholder: "Card Number",
|
|
36
35
|
value: o.value,
|
|
37
|
-
onValueChange: (
|
|
38
|
-
o.onChange(
|
|
36
|
+
onValueChange: (n) => {
|
|
37
|
+
o.onChange(n.floatValue);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
)
|
|
@@ -43,10 +42,10 @@ const j = () => {
|
|
|
43
42
|
)
|
|
44
43
|
}
|
|
45
44
|
),
|
|
46
|
-
/* @__PURE__ */ r(
|
|
45
|
+
/* @__PURE__ */ r(c, { block: !0, variant: "solid", type: "submit", children: "Submit" })
|
|
47
46
|
] });
|
|
48
47
|
};
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
x as default
|
|
51
50
|
};
|
|
52
51
|
//# sourceMappingURL=WithForm.js.map
|
package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport PatternInput from '@/components/shared/PatternInput'\nimport { useForm, Controller } from 'react-hook-form'\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ amount?: string }>()\n\n const onSubmit = (value: { amount?: string }) => {\n console.log(value)\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Amount\"\n invalid={Boolean(errors.amount)}\n errorMessage={errors.amount?.message}\n >\n <Controller\n name=\"amount\"\n control={control}\n render={({ field }) => (\n <PatternInput\n format=\"#### #### #### ####\"\n mask=\"_\"\n placeholder=\"Card Number\"\n value={field.value}\n onValueChange={(e) => {\n field.onChange(e.floatValue)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","
|
|
1
|
+
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport PatternInput from '@/components/shared/PatternInput'\nimport { useForm, Controller } from 'react-hook-form'\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ amount?: string }>()\n\n const onSubmit = (value: { amount?: string }) => {\n console.log(value)\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Amount\"\n invalid={Boolean(errors.amount)}\n errorMessage={errors.amount?.message}\n >\n <Controller\n name=\"amount\"\n control={control}\n render={({ field }) => (\n <PatternInput\n format=\"#### #### #### ####\"\n mask=\"_\"\n placeholder=\"Card Number\"\n value={field.value}\n onValueChange={(e) => {\n field.onChange(e.floatValue)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","Controller","field","PatternInput","e","Button"],"mappings":";;;;;;;;AAKA,MAAMA,IAAW,MAAM;AACnB,QAAM;AAAA,IACF,cAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACAC,EAAA;AAMJ,2BACKC,GAAA,EAAK,WAAU,QAAO,UAAUJ,EALpB,CAACK,MAA+B;AAC7C,YAAQ,IAAIA,CAAK;AAAA,EACrB,CAG0D,GAClD,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,SAAS,EAAQN,EAAO;AAAA,QACxB,cAAcA,EAAO,QAAQ;AAAA,QAE7B,UAAA,gBAAAK;AAAA,UAACE;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,SAAAN;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAO,EAAA,MACP,gBAAAH;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,QAAO;AAAA,gBACP,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,OAAOD,EAAM;AAAA,gBACb,eAAe,CAACE,MAAM;AAClB,kBAAAF,EAAM,SAASE,EAAE,UAAU;AAAA,gBAC/B;AAAA,cAAA;AAAA,YAAA;AAAA,UACJ;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAACM,KAAO,OAAK,IAAC,SAAQ,SAAQ,MAAK,UAAS,UAAA,SAAA,CAE5C;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../components/ui/Button/index.js";
|
|
3
3
|
import "../../../../../components/ui/Form/index.js";
|
|
4
4
|
import "../../../../../components/shared/RichTextEditor/index.js";
|
|
5
|
-
import { useForm as
|
|
6
|
-
import { Form as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
var e;
|
|
5
|
+
import { useForm as a, Controller as l } from "react-hook-form";
|
|
6
|
+
import { Form as s } from "../../../../../components/ui/Form/Form.js";
|
|
7
|
+
import p from "../../../../../components/ui/Form/FormItem.js";
|
|
8
|
+
import u from "../../../../../components/shared/RichTextEditor/RichTextEditor.js";
|
|
9
|
+
import c from "../../../../../components/ui/Button/Button.js";
|
|
10
|
+
const B = () => {
|
|
12
11
|
const {
|
|
13
|
-
handleSubmit:
|
|
12
|
+
handleSubmit: e,
|
|
14
13
|
formState: { errors: r },
|
|
15
|
-
control:
|
|
16
|
-
} =
|
|
17
|
-
return /* @__PURE__ */
|
|
14
|
+
control: n
|
|
15
|
+
} = a();
|
|
16
|
+
return /* @__PURE__ */ m(s, { className: "mt-6", onSubmit: e((t) => {
|
|
18
17
|
window.alert(JSON.stringify(t));
|
|
19
18
|
}), children: [
|
|
20
19
|
/* @__PURE__ */ o(
|
|
21
|
-
|
|
20
|
+
p,
|
|
22
21
|
{
|
|
23
22
|
label: "Expiration date",
|
|
24
23
|
invalid: !!r.textContent,
|
|
25
|
-
errorMessage:
|
|
24
|
+
errorMessage: r.textContent?.message,
|
|
26
25
|
children: /* @__PURE__ */ o(
|
|
27
|
-
|
|
26
|
+
l,
|
|
28
27
|
{
|
|
29
28
|
name: "textContent",
|
|
30
|
-
control:
|
|
29
|
+
control: n,
|
|
31
30
|
render: ({ field: t }) => /* @__PURE__ */ o(
|
|
32
|
-
|
|
31
|
+
u,
|
|
33
32
|
{
|
|
34
33
|
content: t.value,
|
|
35
34
|
invalid: !!r.textContent,
|
|
36
|
-
onChange: ({ html:
|
|
37
|
-
t.onChange(
|
|
35
|
+
onChange: ({ html: i }) => {
|
|
36
|
+
t.onChange(i);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
)
|
|
@@ -42,10 +41,10 @@ const j = () => {
|
|
|
42
41
|
)
|
|
43
42
|
}
|
|
44
43
|
),
|
|
45
|
-
/* @__PURE__ */ o(
|
|
44
|
+
/* @__PURE__ */ o(c, { block: !0, variant: "solid", type: "submit", children: "Submit" })
|
|
46
45
|
] });
|
|
47
46
|
};
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
B as default
|
|
50
49
|
};
|
|
51
50
|
//# sourceMappingURL=WithForm.js.map
|
package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport { useForm, Controller } from 'react-hook-form'\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ textContent?: string }>()\n\n const onSubmit = (value: { textContent?: string }) => {\n window.alert(JSON.stringify(value))\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Expiration date\"\n invalid={Boolean(errors.textContent)}\n errorMessage={errors.textContent?.message}\n >\n <Controller\n name=\"textContent\"\n control={control}\n render={({ field }) => (\n <RichTextEditor\n content={field.value}\n invalid={Boolean(errors.textContent)}\n onChange={({ html }) => {\n field.onChange(html)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","
|
|
1
|
+
{"version":3,"file":"WithForm.js","sources":["../../../../../../../lib/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { Form, FormItem } from '@/components/ui/Form'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport { useForm, Controller } from 'react-hook-form'\n\nconst WithForm = () => {\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<{ textContent?: string }>()\n\n const onSubmit = (value: { textContent?: string }) => {\n window.alert(JSON.stringify(value))\n }\n\n return (\n <Form className=\"mt-6\" onSubmit={handleSubmit(onSubmit)}>\n <FormItem\n label=\"Expiration date\"\n invalid={Boolean(errors.textContent)}\n errorMessage={errors.textContent?.message}\n >\n <Controller\n name=\"textContent\"\n control={control}\n render={({ field }) => (\n <RichTextEditor\n content={field.value}\n invalid={Boolean(errors.textContent)}\n onChange={({ html }) => {\n field.onChange(html)\n }}\n />\n )}\n />\n </FormItem>\n <Button block variant=\"solid\" type=\"submit\">\n Submit\n </Button>\n </Form>\n )\n}\n\nexport default WithForm\n"],"names":["WithForm","handleSubmit","errors","control","useForm","Form","value","jsx","FormItem","Controller","field","RichTextEditor","html","Button"],"mappings":";;;;;;;;;AAKA,MAAMA,IAAW,MAAM;AACnB,QAAM;AAAA,IACF,cAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACAC,EAAA;AAMJ,2BACKC,GAAA,EAAK,WAAU,QAAO,UAAUJ,EALpB,CAACK,MAAoC;AAClD,WAAO,MAAM,KAAK,UAAUA,CAAK,CAAC;AAAA,EACtC,CAG0D,GAClD,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,SAAS,EAAQN,EAAO;AAAA,QACxB,cAAcA,EAAO,aAAa;AAAA,QAElC,UAAA,gBAAAK;AAAA,UAACE;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,SAAAN;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAO,EAAA,MACP,gBAAAH;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,SAASD,EAAM;AAAA,gBACf,SAAS,EAAQR,EAAO;AAAA,gBACxB,UAAU,CAAC,EAAE,MAAAU,QAAW;AACpB,kBAAAF,EAAM,SAASE,CAAI;AAAA,gBACvB;AAAA,cAAA;AAAA,YAAA;AAAA,UACJ;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAACM,KAAO,OAAK,IAAC,SAAQ,SAAQ,MAAK,UAAS,UAAA,SAAA,CAE5C;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -7,13 +7,12 @@ import { data10 as D } from "./data/index.js";
|
|
|
7
7
|
import N from "../../../../components/ui/Input/Input.js";
|
|
8
8
|
const { Tr: m, Th: E, Td: F, THead: P, TBody: v } = g, K = ({
|
|
9
9
|
getValue: r,
|
|
10
|
-
row: { index:
|
|
11
|
-
column: { id:
|
|
12
|
-
table:
|
|
10
|
+
row: { index: n },
|
|
11
|
+
column: { id: s },
|
|
12
|
+
table: i
|
|
13
13
|
}) => {
|
|
14
|
-
const a = r(), [
|
|
15
|
-
|
|
16
|
-
(n = c.options.meta) == null || n.updateData(s, l, i);
|
|
14
|
+
const a = r(), [l, t] = p(a), e = () => {
|
|
15
|
+
i.options.meta?.updateData(n, s, l);
|
|
17
16
|
};
|
|
18
17
|
return f(() => {
|
|
19
18
|
t(a);
|
|
@@ -22,8 +21,8 @@ const { Tr: m, Th: E, Td: F, THead: P, TBody: v } = g, K = ({
|
|
|
22
21
|
{
|
|
23
22
|
className: "border-transparent bg-transparent hover:border-gray-300 focus:bg-white",
|
|
24
23
|
size: "sm",
|
|
25
|
-
value:
|
|
26
|
-
onChange: (
|
|
24
|
+
value: l,
|
|
25
|
+
onChange: (c) => t(c.target.value),
|
|
27
26
|
onBlur: e
|
|
28
27
|
}
|
|
29
28
|
);
|
|
@@ -31,12 +30,12 @@ const { Tr: m, Th: E, Td: F, THead: P, TBody: v } = g, K = ({
|
|
|
31
30
|
cell: K
|
|
32
31
|
};
|
|
33
32
|
function j() {
|
|
34
|
-
const r = w(!0),
|
|
33
|
+
const r = w(!0), n = r.current, s = M(() => {
|
|
35
34
|
r.current = !1;
|
|
36
35
|
}, []);
|
|
37
36
|
return f(() => {
|
|
38
37
|
r.current = !0;
|
|
39
|
-
}), [
|
|
38
|
+
}), [n, s];
|
|
40
39
|
}
|
|
41
40
|
function G() {
|
|
42
41
|
const r = x(
|
|
@@ -46,28 +45,28 @@ function G() {
|
|
|
46
45
|
{ header: "Email", accessorKey: "email" }
|
|
47
46
|
],
|
|
48
47
|
[]
|
|
49
|
-
), [
|
|
50
|
-
data:
|
|
48
|
+
), [n, s] = p(() => D), [i, a] = j(), l = T({
|
|
49
|
+
data: n,
|
|
51
50
|
columns: r,
|
|
52
51
|
defaultColumn: V,
|
|
53
52
|
getCoreRowModel: S(),
|
|
54
53
|
getFilteredRowModel: y(),
|
|
55
54
|
getPaginationRowModel: k(),
|
|
56
|
-
autoResetPageIndex:
|
|
55
|
+
autoResetPageIndex: i,
|
|
57
56
|
// Provide our updateData function to our table meta
|
|
58
57
|
meta: {
|
|
59
|
-
updateData: (t, e,
|
|
60
|
-
typeof a == "function" && a(),
|
|
58
|
+
updateData: (t, e, c) => {
|
|
59
|
+
typeof a == "function" && a(), s(
|
|
61
60
|
(u) => u.map((h, R) => R === t ? {
|
|
62
61
|
...u[t],
|
|
63
|
-
[e]:
|
|
62
|
+
[e]: c
|
|
64
63
|
} : h)
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
68
|
return /* @__PURE__ */ o(b, { children: /* @__PURE__ */ C(g, { children: [
|
|
70
|
-
/* @__PURE__ */ o(P, { children:
|
|
69
|
+
/* @__PURE__ */ o(P, { children: l.getHeaderGroups().map((t) => /* @__PURE__ */ o(m, { children: t.headers.map((e) => /* @__PURE__ */ o(
|
|
71
70
|
E,
|
|
72
71
|
{
|
|
73
72
|
colSpan: e.colSpan,
|
|
@@ -78,7 +77,7 @@ function G() {
|
|
|
78
77
|
},
|
|
79
78
|
e.id
|
|
80
79
|
)) }, t.id)) }),
|
|
81
|
-
/* @__PURE__ */ o(v, { children:
|
|
80
|
+
/* @__PURE__ */ o(v, { children: l.getRowModel().rows.map((t) => /* @__PURE__ */ o(m, { children: t.getVisibleCells().map((e) => /* @__PURE__ */ o(F, { children: d(
|
|
82
81
|
e.column.columnDef.cell,
|
|
83
82
|
e.getContext()
|
|
84
83
|
) }, e.id)) }, t.id)) })
|