@orbe-agro/client-core 5.3.86 → 5.3.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ecme/assets/styles/app.css +1 -1
- package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
- package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
- package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
- package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
- package/dist/@ecme/assets/styles/components/_upload.css +1 -1
- package/dist/@ecme/assets/styles/components/index.css +1 -1
- package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
- package/dist/@ecme/auth/AuthProvider.js +58 -62
- package/dist/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/shared/Affix.js +9 -10
- package/dist/@ecme/components/shared/Affix.js.map +1 -1
- package/dist/@ecme/components/shared/AutoComplete.js +27 -28
- package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
- package/dist/@ecme/components/shared/CalendarView.js +19 -20
- package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
- package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
- package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
- package/dist/@ecme/components/shared/DataTable.js +151 -151
- package/dist/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/@ecme/components/shared/DebounceInput.js +11 -12
- package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
- package/dist/@ecme/components/shared/ImageGallery.js +18 -18
- package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
- package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
- package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
- package/dist/@ecme/components/shared/OtpInput.js +54 -56
- package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
- package/dist/@ecme/components/shared/PasswordInput.js +6 -6
- package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
- package/dist/@ecme/components/shared/RegionMap.js +9 -9
- package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
- package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
- package/dist/@ecme/components/template/LanguageSelector.js +10 -13
- package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
- package/dist/@ecme/components/template/Search.js +85 -92
- package/dist/@ecme/components/template/Search.js.map +1 -1
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
- package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
- package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Button/Button.js +66 -67
- package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
- package/dist/@ecme/components/ui/Card/Card.js +39 -40
- package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
- package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
- package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
- package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
- package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
- package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
- package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
- package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
- package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
- package/dist/@ecme/components/ui/Input/Input.js +50 -52
- package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
- package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
- package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
- package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
- package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Group.js +28 -28
- package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
- package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
- package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
- package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
- package/dist/@ecme/components/ui/Select/Select.js +40 -41
- package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
- package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
- package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
- package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
- package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
- package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
- package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
- package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
- package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
- package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
- package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
- package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
- package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
- package/dist/@ecme/components/ui/toast/toast.js +16 -19
- package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
- package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
- package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
- package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
- package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
- package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
- package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
- package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts +0 -19
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/base/assets/styles/init.css +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
- package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
- package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
- package/dist/base/components/tools/NavFilter.js +68 -75
- package/dist/base/components/tools/NavFilter.js.map +1 -1
- package/dist/base/configs/api.config.js +11 -14
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
- package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
- package/dist/base/hooks/adm/users/useUsersList.js +10 -10
- package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
- package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
- package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
- package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
- package/dist/base/hooks/useList.js +10 -10
- package/dist/base/hooks/useList.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
- package/dist/base/utils/functions/stringUtils.js +14 -15
- package/dist/base/utils/functions/stringUtils.js.map +1 -1
- package/lib/base/configs/api.config.ts +6 -7
- package/package.json +1 -1
- package/tsconfig.json +6 -1
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as l, useEffect as u } from "react";
|
|
3
3
|
import "../../ui/Card/index.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useLocation as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
const { demoComponent:
|
|
10
|
-
return
|
|
4
|
+
import h from "./CardFooter.js";
|
|
5
|
+
import f from "html-react-parser";
|
|
6
|
+
import { useLocation as p } from "react-router-dom";
|
|
7
|
+
import b from "../../ui/Card/Card.js";
|
|
8
|
+
const I = (s) => {
|
|
9
|
+
const { demoComponent: m, id: d, title: a, desc: o = "", hideFooter: i, ...n } = s, t = p(), e = l("");
|
|
10
|
+
return u(() => {
|
|
11
11
|
t.hash && (e.current = t.hash.slice(1)), e.current && document.getElementById(e.current) && setTimeout(() => {
|
|
12
|
-
|
|
13
|
-
(c = document.getElementById(e.current)) == null || c.scrollIntoView({ behavior: "smooth", block: "start" }), e.current = "";
|
|
12
|
+
document.getElementById(e.current)?.scrollIntoView({ behavior: "smooth", block: "start" }), e.current = "";
|
|
14
13
|
}, 100);
|
|
15
|
-
}, [t]), /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ r("h4", { children:
|
|
18
|
-
o && /* @__PURE__ */ r("div", { className: "mt-1 demo-card-description", children:
|
|
14
|
+
}, [t]), /* @__PURE__ */ c("div", { className: "demo-card py-5", id: d, children: [
|
|
15
|
+
/* @__PURE__ */ c("div", { className: "mb-6", children: [
|
|
16
|
+
/* @__PURE__ */ r("h4", { children: a }),
|
|
17
|
+
o && /* @__PURE__ */ r("div", { className: "mt-1 demo-card-description", children: f(o) })
|
|
19
18
|
] }),
|
|
20
19
|
/* @__PURE__ */ r(
|
|
21
|
-
|
|
20
|
+
b,
|
|
22
21
|
{
|
|
23
22
|
bordered: !0,
|
|
24
23
|
footer: {
|
|
25
|
-
content: !
|
|
24
|
+
content: !i && /* @__PURE__ */ r(h, { ...n }),
|
|
26
25
|
className: "bg-gray-50 dark:bg-gray-700 pb-2 pt-2 rounded-b-2xl"
|
|
27
26
|
},
|
|
28
|
-
children:
|
|
27
|
+
children: m
|
|
29
28
|
}
|
|
30
29
|
)
|
|
31
30
|
] });
|
|
32
31
|
};
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
I as default
|
|
35
34
|
};
|
|
36
35
|
//# sourceMappingURL=DemoCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DemoCard.js","sources":["../../../../../lib/@ecme/components/docs/DemoCard/DemoCard.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react'\nimport Card from '@/components/ui/Card'\nimport CardFooter from './CardFooter'\nimport ReactHtmlParser from 'html-react-parser'\nimport { useLocation } from 'react-router-dom'\nimport type { ReactNode } from 'react'\nimport type { CardFooterProps } from './CardFooter'\n\nexport interface DemoCardProps extends CardFooterProps {\n demoComponent?: ReactNode\n id?: string\n title?: string\n desc?: string\n hideFooter?: boolean\n cardClass?: string\n}\n\nconst DemoCard = (props: DemoCardProps) => {\n const { demoComponent, id, title, desc = '', hideFooter, ...rest } = props\n\n const location = useLocation()\n const lastHash = useRef('')\n\n useEffect(() => {\n if (location.hash) {\n lastHash.current = location.hash.slice(1)\n }\n\n if (lastHash.current && document.getElementById(lastHash.current)) {\n setTimeout(() => {\n document\n .getElementById(lastHash.current)\n ?.scrollIntoView({ behavior: 'smooth', block: 'start' })\n lastHash.current = ''\n }, 100)\n }\n }, [location])\n\n return (\n <div className=\"demo-card py-5\" id={id}>\n <div className=\"mb-6\">\n <h4>{title}</h4>\n {desc && (\n <div className=\"mt-1 demo-card-description\">\n {ReactHtmlParser(desc)}\n </div>\n )}\n </div>\n <Card\n bordered\n footer={{\n content: !hideFooter && <CardFooter {...rest} />,\n className:\n 'bg-gray-50 dark:bg-gray-700 pb-2 pt-2 rounded-b-2xl',\n }}\n >\n {demoComponent}\n </Card>\n </div>\n )\n}\n\nexport default DemoCard\n"],"names":["DemoCard","props","demoComponent","id","title","desc","hideFooter","rest","location","useLocation","lastHash","useRef","useEffect","
|
|
1
|
+
{"version":3,"file":"DemoCard.js","sources":["../../../../../lib/@ecme/components/docs/DemoCard/DemoCard.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react'\nimport Card from '@/components/ui/Card'\nimport CardFooter from './CardFooter'\nimport ReactHtmlParser from 'html-react-parser'\nimport { useLocation } from 'react-router-dom'\nimport type { ReactNode } from 'react'\nimport type { CardFooterProps } from './CardFooter'\n\nexport interface DemoCardProps extends CardFooterProps {\n demoComponent?: ReactNode\n id?: string\n title?: string\n desc?: string\n hideFooter?: boolean\n cardClass?: string\n}\n\nconst DemoCard = (props: DemoCardProps) => {\n const { demoComponent, id, title, desc = '', hideFooter, ...rest } = props\n\n const location = useLocation()\n const lastHash = useRef('')\n\n useEffect(() => {\n if (location.hash) {\n lastHash.current = location.hash.slice(1)\n }\n\n if (lastHash.current && document.getElementById(lastHash.current)) {\n setTimeout(() => {\n document\n .getElementById(lastHash.current)\n ?.scrollIntoView({ behavior: 'smooth', block: 'start' })\n lastHash.current = ''\n }, 100)\n }\n }, [location])\n\n return (\n <div className=\"demo-card py-5\" id={id}>\n <div className=\"mb-6\">\n <h4>{title}</h4>\n {desc && (\n <div className=\"mt-1 demo-card-description\">\n {ReactHtmlParser(desc)}\n </div>\n )}\n </div>\n <Card\n bordered\n footer={{\n content: !hideFooter && <CardFooter {...rest} />,\n className:\n 'bg-gray-50 dark:bg-gray-700 pb-2 pt-2 rounded-b-2xl',\n }}\n >\n {demoComponent}\n </Card>\n </div>\n )\n}\n\nexport default DemoCard\n"],"names":["DemoCard","props","demoComponent","id","title","desc","hideFooter","rest","location","useLocation","lastHash","useRef","useEffect","jsxs","jsx","ReactHtmlParser","Card","CardFooter"],"mappings":";;;;;;;AAiBA,MAAMA,IAAW,CAACC,MAAyB;AACvC,QAAM,EAAE,eAAAC,GAAe,IAAAC,GAAI,OAAAC,GAAO,MAAAC,IAAO,IAAI,YAAAC,GAAY,GAAGC,EAAA,IAASN,GAE/DO,IAAWC,EAAA,GACXC,IAAWC,EAAO,EAAE;AAE1B,SAAAC,EAAU,MAAM;AACZ,IAAIJ,EAAS,SACTE,EAAS,UAAUF,EAAS,KAAK,MAAM,CAAC,IAGxCE,EAAS,WAAW,SAAS,eAAeA,EAAS,OAAO,KAC5D,WAAW,MAAM;AACb,eACK,eAAeA,EAAS,OAAO,GAC9B,eAAe,EAAE,UAAU,UAAU,OAAO,SAAS,GAC3DA,EAAS,UAAU;AAAA,IACvB,GAAG,GAAG;AAAA,EAEd,GAAG,CAACF,CAAQ,CAAC,GAGT,gBAAAK,EAAC,OAAA,EAAI,WAAU,kBAAiB,IAAAV,GAC5B,UAAA;AAAA,IAAA,gBAAAU,EAAC,OAAA,EAAI,WAAU,QACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,QAAI,UAAAV,EAAA,CAAM;AAAA,MACVC,KACG,gBAAAS,EAAC,OAAA,EAAI,WAAU,8BACV,UAAAC,EAAgBV,CAAI,EAAA,CACzB;AAAA,IAAA,GAER;AAAA,IACA,gBAAAS;AAAA,MAACE;AAAA,MAAA;AAAA,QACG,UAAQ;AAAA,QACR,QAAQ;AAAA,UACJ,SAAS,CAACV,KAAc,gBAAAQ,EAACG,GAAA,EAAY,GAAGV,GAAM;AAAA,UAC9C,WACI;AAAA,QAAA;AAAA,QAGP,UAAAL;AAAA,MAAA;AAAA,IAAA;AAAA,EACL,GACJ;AAER;"}
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { lazy as o, useMemo as
|
|
3
|
-
import { LAYOUT_BLANK as
|
|
4
|
-
import
|
|
5
|
-
import { useLocation as
|
|
1
|
+
import { jsxs as p, Fragment as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as o, useMemo as L, Suspense as f } from "react";
|
|
3
|
+
import { LAYOUT_BLANK as A, LAYOUT_CONTENT_OVERLAY as _, LAYOUT_FRAMELESS_SIDE as O, LAYOUT_TOP_BAR_CLASSIC as d, LAYOUT_STACKED_SIDE as S, LAYOUT_COLLAPSIBLE_SIDE as h } from "../../../constants/theme.constant.js";
|
|
4
|
+
import E from "../../shared/Loading.js";
|
|
5
|
+
import { useLocation as R } from "react-router-dom";
|
|
6
6
|
import "../../../configs/index.js";
|
|
7
|
-
import
|
|
8
|
-
import { protectedRoutes as
|
|
9
|
-
const
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
},
|
|
17
|
-
for (const e of
|
|
7
|
+
import T from "../../shared/loaders/GlobalLoading.js";
|
|
8
|
+
import { protectedRoutes as Y, publicRoutes as x } from "../../../configs/routes.config/routes.config.js";
|
|
9
|
+
const a = {
|
|
10
|
+
[h]: o(() => import("./components/CollapsibleSide.js")),
|
|
11
|
+
[S]: o(() => import("./components/StackedSide.js")),
|
|
12
|
+
[d]: o(() => import("./components/TopBarClassic.js")),
|
|
13
|
+
[O]: o(() => import("./components/FrameLessSide.js")),
|
|
14
|
+
[_]: o(() => import("./components/ContentOverlay.js")),
|
|
15
|
+
[A]: o(() => import("./components/Blank.js"))
|
|
16
|
+
}, y = (r, n) => {
|
|
17
|
+
for (const e of n)
|
|
18
18
|
if (e.path === r)
|
|
19
19
|
return e;
|
|
20
|
-
},
|
|
20
|
+
}, j = ({
|
|
21
21
|
layoutType: r,
|
|
22
|
-
children:
|
|
22
|
+
children: n,
|
|
23
23
|
linkRenderer: e,
|
|
24
|
-
pageTitle:
|
|
24
|
+
pageTitle: m
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */ t(y, {}),
|
|
26
|
+
const i = R(), s = L(() => {
|
|
27
|
+
const u = [...Y, ...x], c = y(i.pathname, u)?.meta?.layout ?? r;
|
|
28
|
+
return a[c] ?? a[Object.keys(a)[0]];
|
|
29
|
+
}, [i.pathname, r]);
|
|
30
|
+
return /* @__PURE__ */ p(l, { children: [
|
|
31
|
+
/* @__PURE__ */ t(T, {}),
|
|
33
32
|
/* @__PURE__ */ t(
|
|
34
|
-
|
|
33
|
+
f,
|
|
35
34
|
{
|
|
36
|
-
fallback: /* @__PURE__ */ t("div", { className: "flex flex-auto flex-col h-[100vh]", children: /* @__PURE__ */ t(
|
|
37
|
-
children: /* @__PURE__ */ t(
|
|
35
|
+
fallback: /* @__PURE__ */ t("div", { className: "flex flex-auto flex-col h-[100vh]", children: /* @__PURE__ */ t(E, { loading: !0 }) }),
|
|
36
|
+
children: /* @__PURE__ */ t(s, { linkRenderer: e, pageTitle: m, children: n })
|
|
38
37
|
}
|
|
39
38
|
)
|
|
40
39
|
] });
|
|
41
40
|
};
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
j as default
|
|
44
43
|
};
|
|
45
44
|
//# sourceMappingURL=PostLoginLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostLoginLayout.js","sources":["../../../../../lib/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.tsx"],"sourcesContent":["import { lazy, Suspense, useMemo } from \"react\";\nimport {\n LAYOUT_COLLAPSIBLE_SIDE,\n LAYOUT_STACKED_SIDE,\n LAYOUT_TOP_BAR_CLASSIC,\n LAYOUT_FRAMELESS_SIDE,\n LAYOUT_CONTENT_OVERLAY,\n LAYOUT_BLANK,\n} from \"@/constants/theme.constant\";\nimport Loading from \"@/components/shared/Loading\";\nimport type { CommonProps } from \"@/@types/common\";\nimport type { LazyExoticComponent, JSX } from \"react\";\nimport type { LayoutType } from \"@/@types/theme\";\nimport { LinkRenderer } from \"../Layouts\";\nimport { useLocation } from \"react-router-dom\";\nimport { Routes } from \"@/@types\";\nimport { protectedRoutes, publicRoutes } from \"@/configs\";\nimport { useThemeStore } from \"@/store\";\nimport GlobalLoading from \"@/components/shared/loaders/GlobalLoading\";\n\ntype Layouts = Record<\n string,\n LazyExoticComponent<<T extends CommonProps>(props: T) => JSX.Element>\n>;\n\ninterface PostLoginLayoutProps extends CommonProps {\n layoutType: LayoutType;\n linkRenderer?: LinkRenderer;\n pageTitle?: string;\n}\n\nconst layouts: Layouts = {\n [LAYOUT_COLLAPSIBLE_SIDE]: lazy(() => import(\"./components/CollapsibleSide\")),\n [LAYOUT_STACKED_SIDE]: lazy(() => import(\"./components/StackedSide\")),\n [LAYOUT_TOP_BAR_CLASSIC]: lazy(() => import(\"./components/TopBarClassic\")),\n [LAYOUT_FRAMELESS_SIDE]: lazy(() => import(\"./components/FrameLessSide\")),\n [LAYOUT_CONTENT_OVERLAY]: lazy(() => import(\"./components/ContentOverlay\")),\n [LAYOUT_BLANK]: lazy(() => import(\"./components/Blank\")),\n};\n\nconst findRouteByPath = (\n path: string,\n routes: Routes\n): Routes[0] | undefined => {\n for (const route of routes) {\n if (route.path === path) {\n return route;\n }\n }\n};\n\nconst PostLoginLayout = ({\n layoutType,\n children,\n linkRenderer,\n pageTitle,\n}: PostLoginLayoutProps) => {\n const location = useLocation();\n const AppLayout = useMemo(() => {\n const allRoutes = [...protectedRoutes, ...publicRoutes];\n const currentRoute = findRouteByPath(location.pathname, allRoutes);\n const layout = currentRoute?.meta?.layout ?? layoutType;\n return layouts[layout] ?? layouts[Object.keys(layouts)[0]];\n }, [location.pathname, layoutType]);\n\n return (\n <>\n <GlobalLoading />\n <Suspense\n fallback={\n <div className=\"flex flex-auto flex-col h-[100vh]\">\n <Loading loading={true}/>\n </div>\n }\n >\n {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}\n {/* @ts-ignore */}\n <AppLayout linkRenderer={linkRenderer} pageTitle={pageTitle}>\n {children}\n </AppLayout>\n </Suspense>\n </>\n );\n};\n\nexport default PostLoginLayout;\n"],"names":["layouts","LAYOUT_COLLAPSIBLE_SIDE","lazy","LAYOUT_STACKED_SIDE","LAYOUT_TOP_BAR_CLASSIC","LAYOUT_FRAMELESS_SIDE","LAYOUT_CONTENT_OVERLAY","LAYOUT_BLANK","findRouteByPath","path","routes","route","PostLoginLayout","layoutType","children","linkRenderer","pageTitle","location","useLocation","AppLayout","useMemo","allRoutes","protectedRoutes","publicRoutes","
|
|
1
|
+
{"version":3,"file":"PostLoginLayout.js","sources":["../../../../../lib/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.tsx"],"sourcesContent":["import { lazy, Suspense, useMemo } from \"react\";\nimport {\n LAYOUT_COLLAPSIBLE_SIDE,\n LAYOUT_STACKED_SIDE,\n LAYOUT_TOP_BAR_CLASSIC,\n LAYOUT_FRAMELESS_SIDE,\n LAYOUT_CONTENT_OVERLAY,\n LAYOUT_BLANK,\n} from \"@/constants/theme.constant\";\nimport Loading from \"@/components/shared/Loading\";\nimport type { CommonProps } from \"@/@types/common\";\nimport type { LazyExoticComponent, JSX } from \"react\";\nimport type { LayoutType } from \"@/@types/theme\";\nimport { LinkRenderer } from \"../Layouts\";\nimport { useLocation } from \"react-router-dom\";\nimport { Routes } from \"@/@types\";\nimport { protectedRoutes, publicRoutes } from \"@/configs\";\nimport { useThemeStore } from \"@/store\";\nimport GlobalLoading from \"@/components/shared/loaders/GlobalLoading\";\n\ntype Layouts = Record<\n string,\n LazyExoticComponent<<T extends CommonProps>(props: T) => JSX.Element>\n>;\n\ninterface PostLoginLayoutProps extends CommonProps {\n layoutType: LayoutType;\n linkRenderer?: LinkRenderer;\n pageTitle?: string;\n}\n\nconst layouts: Layouts = {\n [LAYOUT_COLLAPSIBLE_SIDE]: lazy(() => import(\"./components/CollapsibleSide\")),\n [LAYOUT_STACKED_SIDE]: lazy(() => import(\"./components/StackedSide\")),\n [LAYOUT_TOP_BAR_CLASSIC]: lazy(() => import(\"./components/TopBarClassic\")),\n [LAYOUT_FRAMELESS_SIDE]: lazy(() => import(\"./components/FrameLessSide\")),\n [LAYOUT_CONTENT_OVERLAY]: lazy(() => import(\"./components/ContentOverlay\")),\n [LAYOUT_BLANK]: lazy(() => import(\"./components/Blank\")),\n};\n\nconst findRouteByPath = (\n path: string,\n routes: Routes\n): Routes[0] | undefined => {\n for (const route of routes) {\n if (route.path === path) {\n return route;\n }\n }\n};\n\nconst PostLoginLayout = ({\n layoutType,\n children,\n linkRenderer,\n pageTitle,\n}: PostLoginLayoutProps) => {\n const location = useLocation();\n const AppLayout = useMemo(() => {\n const allRoutes = [...protectedRoutes, ...publicRoutes];\n const currentRoute = findRouteByPath(location.pathname, allRoutes);\n const layout = currentRoute?.meta?.layout ?? layoutType;\n return layouts[layout] ?? layouts[Object.keys(layouts)[0]];\n }, [location.pathname, layoutType]);\n\n return (\n <>\n <GlobalLoading />\n <Suspense\n fallback={\n <div className=\"flex flex-auto flex-col h-[100vh]\">\n <Loading loading={true}/>\n </div>\n }\n >\n {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}\n {/* @ts-ignore */}\n <AppLayout linkRenderer={linkRenderer} pageTitle={pageTitle}>\n {children}\n </AppLayout>\n </Suspense>\n </>\n );\n};\n\nexport default PostLoginLayout;\n"],"names":["layouts","LAYOUT_COLLAPSIBLE_SIDE","lazy","LAYOUT_STACKED_SIDE","LAYOUT_TOP_BAR_CLASSIC","LAYOUT_FRAMELESS_SIDE","LAYOUT_CONTENT_OVERLAY","LAYOUT_BLANK","findRouteByPath","path","routes","route","PostLoginLayout","layoutType","children","linkRenderer","pageTitle","location","useLocation","AppLayout","useMemo","allRoutes","protectedRoutes","publicRoutes","layout","jsxs","Fragment","jsx","GlobalLoading","Suspense","Loading"],"mappings":";;;;;;;;AA+BA,MAAMA,IAAmB;AAAA,EACvB,CAACC,CAAuB,GAAGC,EAAK,MAAM,OAAO,iCAA8B,CAAC;AAAA,EAC5E,CAACC,CAAmB,GAAGD,EAAK,MAAM,OAAO,6BAA0B,CAAC;AAAA,EACpE,CAACE,CAAsB,GAAGF,EAAK,MAAM,OAAO,+BAA4B,CAAC;AAAA,EACzE,CAACG,CAAqB,GAAGH,EAAK,MAAM,OAAO,+BAA4B,CAAC;AAAA,EACxE,CAACI,CAAsB,GAAGJ,EAAK,MAAM,OAAO,gCAA6B,CAAC;AAAA,EAC1E,CAACK,CAAY,GAAGL,EAAK,MAAM,OAAO,uBAAoB,CAAC;AACzD,GAEMM,IAAkB,CACtBC,GACAC,MAC0B;AAC1B,aAAWC,KAASD;AAClB,QAAIC,EAAM,SAASF;AACjB,aAAOE;AAGb,GAEMC,IAAkB,CAAC;AAAA,EACvB,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AACF,MAA4B;AAC1B,QAAMC,IAAWC,EAAA,GACXC,IAAYC,EAAQ,MAAM;AAC9B,UAAMC,IAAY,CAAC,GAAGC,GAAiB,GAAGC,CAAY,GAEhDC,IADehB,EAAgBS,EAAS,UAAUI,CAAS,GACpC,MAAM,UAAUR;AAC7C,WAAOb,EAAQwB,CAAM,KAAKxB,EAAQ,OAAO,KAAKA,CAAO,EAAE,CAAC,CAAC;AAAA,EAC3D,GAAG,CAACiB,EAAS,UAAUJ,CAAU,CAAC;AAElC,SACE,gBAAAY,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAc;AAAA,IACf,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,4BACG,OAAA,EAAI,WAAU,qCACb,UAAA,gBAAAF,EAACG,GAAA,EAAQ,SAAS,GAAA,CAAK,EAAA,CACzB;AAAA,QAKF,UAAA,gBAAAH,EAACR,GAAA,EAAU,cAAAJ,GAA4B,WAAAC,GACpC,UAAAF,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
|
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import u from "../../../template/Header.js";
|
|
3
3
|
import "../../../template/SidePanel/index.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import _ from "../../../template/UserProfileDropdown.js";
|
|
5
|
+
import v from "../../../template/LanguageSelector.js";
|
|
6
6
|
import "../../../template/Notification/index.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import b from "../../../template/HeaderLogo.js";
|
|
8
|
+
import y from "../../../template/Search.js";
|
|
9
9
|
import w from "../../../template/MobileNav.js";
|
|
10
10
|
import k from "../../../template/HorizontalNav.js";
|
|
11
11
|
import S from "../../../template/LayoutBase.js";
|
|
12
|
-
import
|
|
12
|
+
import t from "../../../../utils/classNames.js";
|
|
13
13
|
import C from "../../../../utils/hooks/useScrollTop.js";
|
|
14
14
|
import L from "../../../../utils/hooks/useResponsive.js";
|
|
15
15
|
import { LAYOUT_CONTENT_OVERLAY as T } from "../../../../constants/theme.constant.js";
|
|
16
16
|
import H from "../../../template/Notification/Notification.js";
|
|
17
17
|
import O from "../../../template/SidePanel/SidePanel.js";
|
|
18
18
|
const K = ({ children: m }) => {
|
|
19
|
-
const { isSticky:
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
const { isSticky: l } = C(), { larger: s, smaller: n } = L();
|
|
20
|
+
return /* @__PURE__ */ e(
|
|
21
21
|
S,
|
|
22
22
|
{
|
|
23
23
|
type: T,
|
|
24
24
|
className: "app-layout-content-overlay flex flex-auto flex-col min-h-screen",
|
|
25
25
|
pageContainerReassemble: ({
|
|
26
|
-
children:
|
|
26
|
+
children: o,
|
|
27
27
|
defaultClass: c,
|
|
28
|
-
header:
|
|
29
|
-
pageBackgroundType:
|
|
30
|
-
pageContainerType:
|
|
31
|
-
pageContainerGutterClass:
|
|
32
|
-
footer:
|
|
33
|
-
PageContainerHeader:
|
|
34
|
-
PageContainerBody:
|
|
35
|
-
PageContainerFooter:
|
|
36
|
-
}) => /* @__PURE__ */ i
|
|
28
|
+
header: r,
|
|
29
|
+
pageBackgroundType: d,
|
|
30
|
+
pageContainerType: p,
|
|
31
|
+
pageContainerGutterClass: f,
|
|
32
|
+
footer: h,
|
|
33
|
+
PageContainerHeader: x,
|
|
34
|
+
PageContainerBody: N,
|
|
35
|
+
PageContainerFooter: g
|
|
36
|
+
}) => /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
|
-
className:
|
|
39
|
+
className: t(
|
|
40
40
|
c,
|
|
41
41
|
"sm:px-0 px-4",
|
|
42
|
-
|
|
42
|
+
r?.title ? "-mt-60" : "-mt-60 sm:-mt-40"
|
|
43
43
|
),
|
|
44
|
-
children: /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
44
|
+
children: /* @__PURE__ */ a("main", { className: "h-full", children: [
|
|
45
|
+
/* @__PURE__ */ e("div", { className: "dark container mx-auto relative", children: /* @__PURE__ */ e(
|
|
46
|
+
x,
|
|
47
47
|
{
|
|
48
|
-
...
|
|
48
|
+
...r,
|
|
49
49
|
className: "mb-20",
|
|
50
|
-
customeHeader: () => /* @__PURE__ */
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
customeHeader: () => /* @__PURE__ */ a(i, { children: [
|
|
51
|
+
r?.title && typeof r?.title == "string" && /* @__PURE__ */ e("h2", { className: "mb-2", children: r.title }),
|
|
52
|
+
r?.description && /* @__PURE__ */ e("p", { className: "text-base text-white opacity-60", children: r.description })
|
|
53
53
|
] })
|
|
54
54
|
}
|
|
55
55
|
) }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
56
|
+
/* @__PURE__ */ a(N, { pageContainerType: "contained", children: [
|
|
57
|
+
d === "plain" ? /* @__PURE__ */ e(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
className:
|
|
60
|
+
className: t(
|
|
61
61
|
"bg-white dark:bg-gray-900 rounded-2xl",
|
|
62
|
-
|
|
62
|
+
f
|
|
63
63
|
),
|
|
64
|
-
children:
|
|
64
|
+
children: o
|
|
65
65
|
}
|
|
66
|
-
) :
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
66
|
+
) : o,
|
|
67
|
+
/* @__PURE__ */ e(
|
|
68
|
+
g,
|
|
69
69
|
{
|
|
70
70
|
className: "-mb-40 mt-4 md:px-0",
|
|
71
|
-
footer:
|
|
72
|
-
pageContainerType:
|
|
71
|
+
footer: h,
|
|
72
|
+
pageContainerType: p
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
75
|
] })
|
|
76
76
|
] })
|
|
77
77
|
}
|
|
78
78
|
) }),
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
79
|
+
children: /* @__PURE__ */ e("div", { className: "flex flex-auto min-w-0", children: /* @__PURE__ */ a("div", { className: "flex flex-col flex-auto min-h-screen min-w-0 relative w-full", children: [
|
|
80
|
+
/* @__PURE__ */ e(
|
|
81
|
+
u,
|
|
82
82
|
{
|
|
83
83
|
container: !0,
|
|
84
|
-
className:
|
|
84
|
+
className: t(
|
|
85
85
|
"fixed",
|
|
86
|
-
|
|
86
|
+
l ? "shadow dark:shadow-2xl" : "bg-transparent dark"
|
|
87
87
|
),
|
|
88
88
|
wrapperClass: "px-0",
|
|
89
|
-
headerStart: /* @__PURE__ */
|
|
90
|
-
n.lg && /* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
89
|
+
headerStart: /* @__PURE__ */ a(i, { children: [
|
|
90
|
+
n.lg && /* @__PURE__ */ e(w, {}),
|
|
91
|
+
/* @__PURE__ */ e(
|
|
92
|
+
b,
|
|
93
93
|
{
|
|
94
|
-
...
|
|
94
|
+
...l ? {} : { mode: "dark" }
|
|
95
95
|
}
|
|
96
96
|
)
|
|
97
97
|
] }),
|
|
98
|
-
headerMiddle: /* @__PURE__ */ i
|
|
99
|
-
headerEnd: /* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
98
|
+
headerMiddle: /* @__PURE__ */ e(i, { children: s.lg && /* @__PURE__ */ e(k, {}) }),
|
|
99
|
+
headerEnd: /* @__PURE__ */ a(i, { children: [
|
|
100
|
+
/* @__PURE__ */ e(y, {}),
|
|
101
|
+
/* @__PURE__ */ e(v, {}),
|
|
102
|
+
/* @__PURE__ */ e(H, {}),
|
|
103
|
+
/* @__PURE__ */ e(O, {}),
|
|
104
|
+
/* @__PURE__ */ e(_, { hoverable: !1 })
|
|
105
105
|
] })
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ e("div", { className: "h-[400px] bg-[linear-gradient(220deg,_rgb(9,_12,_17)_10%,_#15122f_35%,_#2b1e38_55%,_#0c2239_70%,_rgb(9,_12,_17)_90%)]", children: /* @__PURE__ */ e("div", { className: "container mx-auto h-full" }) }),
|
|
109
109
|
m
|
|
110
110
|
] }) })
|
|
111
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentOverlay.js","sources":["../../../../../../lib/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.tsx"],"sourcesContent":["import Header from '@/components/template/Header'\nimport SidePanel from '@/components/template/SidePanel'\nimport UserProfileDropdown from '@/components//template/UserProfileDropdown'\nimport LanguageSelector from '@/components/template/LanguageSelector'\nimport Notification from '@/components/template/Notification'\nimport HeaderLogo from '@/components/template/HeaderLogo'\nimport Search from '@/components/template/Search'\nimport MobileNav from '@/components/template/MobileNav'\nimport HorizontalNav from '@/components/template/HorizontalNav'\nimport LayoutBase from '@/components//template/LayoutBase'\nimport classNames from '@/utils/classNames'\nimport useScrollTop from '@/utils/hooks/useScrollTop'\nimport useResponsive from '@/utils/hooks/useResponsive'\nimport { LAYOUT_CONTENT_OVERLAY } from '@/constants/theme.constant'\nimport type { CommonProps } from '@/@types/common'\nimport type { FooterPageContainerType } from '@/components/template/Footer'\n\nconst ContentOverlay = ({ children }: CommonProps) => {\n const { isSticky } = useScrollTop()\n\n const { larger, smaller } = useResponsive()\n\n return (\n <LayoutBase\n type={LAYOUT_CONTENT_OVERLAY}\n className=\"app-layout-content-overlay flex flex-auto flex-col min-h-screen\"\n pageContainerReassemble={({\n children,\n defaultClass,\n header,\n pageBackgroundType,\n pageContainerType,\n pageContainerGutterClass,\n footer,\n PageContainerHeader,\n PageContainerBody,\n PageContainerFooter,\n }) => (\n <>\n <div\n className={classNames(\n defaultClass,\n 'sm:px-0 px-4',\n header?.title ? '-mt-60' : '-mt-60 sm:-mt-40',\n )}\n >\n <main className=\"h-full\">\n <div className=\"dark container mx-auto relative\">\n <PageContainerHeader\n {...header}\n className=\"mb-20\"\n customeHeader={() => (\n <>\n {header?.title &&\n typeof header?.title ===\n 'string' && (\n <h2 className=\"mb-2\">\n {header.title}\n </h2>\n )}\n {header?.description && (\n <p className=\"text-base text-white opacity-60\">\n {header.description}\n </p>\n )}\n </>\n )}\n />\n </div>\n <PageContainerBody pageContainerType={'contained'}>\n {pageBackgroundType === 'plain' ? (\n <div\n className={classNames(\n 'bg-white dark:bg-gray-900 rounded-2xl',\n pageContainerGutterClass,\n )}\n >\n {children}\n </div>\n ) : (\n children\n )}\n <PageContainerFooter\n className=\"-mb-40 mt-4 md:px-0\"\n footer={footer}\n pageContainerType={\n pageContainerType as FooterPageContainerType\n }\n />\n </PageContainerBody>\n </main>\n </div>\n </>\n )}\n >\n <div className=\"flex flex-auto min-w-0\">\n <div className=\"flex flex-col flex-auto min-h-screen min-w-0 relative w-full\">\n <Header\n container\n className={classNames(\n 'fixed',\n isSticky\n ? 'shadow dark:shadow-2xl'\n : 'bg-transparent dark',\n )}\n wrapperClass=\"px-0\"\n headerStart={\n <>\n {smaller.lg && <MobileNav />}\n <HeaderLogo\n {...(!isSticky ? { mode: 'dark' } : {})}\n />\n </>\n }\n headerMiddle={<>{larger.lg && <HorizontalNav />}</>}\n headerEnd={\n <>\n <Search />\n <LanguageSelector />\n <Notification />\n <SidePanel />\n <UserProfileDropdown hoverable={false} />\n </>\n }\n />\n <div className=\"h-[400px] bg-[linear-gradient(220deg,_rgb(9,_12,_17)_10%,_#15122f_35%,_#2b1e38_55%,_#0c2239_70%,_rgb(9,_12,_17)_90%)]\">\n <div className=\"container mx-auto h-full\"></div>\n </div>\n {children}\n </div>\n </div>\n </LayoutBase>\n )\n}\n\nexport default ContentOverlay\n"],"names":["ContentOverlay","children","isSticky","useScrollTop","larger","smaller","useResponsive","jsx","LayoutBase","LAYOUT_CONTENT_OVERLAY","defaultClass","header","pageBackgroundType","pageContainerType","pageContainerGutterClass","footer","PageContainerHeader","PageContainerBody","PageContainerFooter","Fragment","classNames","jsxs","Header","MobileNav","HeaderLogo","HorizontalNav","Search","LanguageSelector","Notification","SidePanel","UserProfileDropdown"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAMA,IAAiB,CAAC,EAAE,UAAAC,QAA4B;AAClD,QAAM,EAAE,UAAAC,EAAA,IAAaC,EAAA,GAEf,EAAE,QAAAC,GAAQ,SAAAC,EAAA,IAAYC,EAAA;AAE5B,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,MAAMC;AAAA,MACN,WAAU;AAAA,MACV,yBAAyB,CAAC;AAAA,QACtB,UAAAR;AAAAA,QACA,cAAAS;AAAA,QACA,QAAAC;AAAA,QACA,oBAAAC;AAAA,QACA,mBAAAC;AAAA,QACA,0BAAAC;AAAA,QACA,QAAAC;AAAA,QACA,qBAAAC;AAAA,QACA,mBAAAC;AAAA,QACA,qBAAAC;AAAA,MAAA,MAEA,gBAAAX,EAAAY,GAAA,EACI,UAAA,gBAAAZ;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAWa;AAAA,YACPV;AAAA,YACA;AAAA,YACAC,
|
|
1
|
+
{"version":3,"file":"ContentOverlay.js","sources":["../../../../../../lib/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.tsx"],"sourcesContent":["import Header from '@/components/template/Header'\nimport SidePanel from '@/components/template/SidePanel'\nimport UserProfileDropdown from '@/components//template/UserProfileDropdown'\nimport LanguageSelector from '@/components/template/LanguageSelector'\nimport Notification from '@/components/template/Notification'\nimport HeaderLogo from '@/components/template/HeaderLogo'\nimport Search from '@/components/template/Search'\nimport MobileNav from '@/components/template/MobileNav'\nimport HorizontalNav from '@/components/template/HorizontalNav'\nimport LayoutBase from '@/components//template/LayoutBase'\nimport classNames from '@/utils/classNames'\nimport useScrollTop from '@/utils/hooks/useScrollTop'\nimport useResponsive from '@/utils/hooks/useResponsive'\nimport { LAYOUT_CONTENT_OVERLAY } from '@/constants/theme.constant'\nimport type { CommonProps } from '@/@types/common'\nimport type { FooterPageContainerType } from '@/components/template/Footer'\n\nconst ContentOverlay = ({ children }: CommonProps) => {\n const { isSticky } = useScrollTop()\n\n const { larger, smaller } = useResponsive()\n\n return (\n <LayoutBase\n type={LAYOUT_CONTENT_OVERLAY}\n className=\"app-layout-content-overlay flex flex-auto flex-col min-h-screen\"\n pageContainerReassemble={({\n children,\n defaultClass,\n header,\n pageBackgroundType,\n pageContainerType,\n pageContainerGutterClass,\n footer,\n PageContainerHeader,\n PageContainerBody,\n PageContainerFooter,\n }) => (\n <>\n <div\n className={classNames(\n defaultClass,\n 'sm:px-0 px-4',\n header?.title ? '-mt-60' : '-mt-60 sm:-mt-40',\n )}\n >\n <main className=\"h-full\">\n <div className=\"dark container mx-auto relative\">\n <PageContainerHeader\n {...header}\n className=\"mb-20\"\n customeHeader={() => (\n <>\n {header?.title &&\n typeof header?.title ===\n 'string' && (\n <h2 className=\"mb-2\">\n {header.title}\n </h2>\n )}\n {header?.description && (\n <p className=\"text-base text-white opacity-60\">\n {header.description}\n </p>\n )}\n </>\n )}\n />\n </div>\n <PageContainerBody pageContainerType={'contained'}>\n {pageBackgroundType === 'plain' ? (\n <div\n className={classNames(\n 'bg-white dark:bg-gray-900 rounded-2xl',\n pageContainerGutterClass,\n )}\n >\n {children}\n </div>\n ) : (\n children\n )}\n <PageContainerFooter\n className=\"-mb-40 mt-4 md:px-0\"\n footer={footer}\n pageContainerType={\n pageContainerType as FooterPageContainerType\n }\n />\n </PageContainerBody>\n </main>\n </div>\n </>\n )}\n >\n <div className=\"flex flex-auto min-w-0\">\n <div className=\"flex flex-col flex-auto min-h-screen min-w-0 relative w-full\">\n <Header\n container\n className={classNames(\n 'fixed',\n isSticky\n ? 'shadow dark:shadow-2xl'\n : 'bg-transparent dark',\n )}\n wrapperClass=\"px-0\"\n headerStart={\n <>\n {smaller.lg && <MobileNav />}\n <HeaderLogo\n {...(!isSticky ? { mode: 'dark' } : {})}\n />\n </>\n }\n headerMiddle={<>{larger.lg && <HorizontalNav />}</>}\n headerEnd={\n <>\n <Search />\n <LanguageSelector />\n <Notification />\n <SidePanel />\n <UserProfileDropdown hoverable={false} />\n </>\n }\n />\n <div className=\"h-[400px] bg-[linear-gradient(220deg,_rgb(9,_12,_17)_10%,_#15122f_35%,_#2b1e38_55%,_#0c2239_70%,_rgb(9,_12,_17)_90%)]\">\n <div className=\"container mx-auto h-full\"></div>\n </div>\n {children}\n </div>\n </div>\n </LayoutBase>\n )\n}\n\nexport default ContentOverlay\n"],"names":["ContentOverlay","children","isSticky","useScrollTop","larger","smaller","useResponsive","jsx","LayoutBase","LAYOUT_CONTENT_OVERLAY","defaultClass","header","pageBackgroundType","pageContainerType","pageContainerGutterClass","footer","PageContainerHeader","PageContainerBody","PageContainerFooter","Fragment","classNames","jsxs","Header","MobileNav","HeaderLogo","HorizontalNav","Search","LanguageSelector","Notification","SidePanel","UserProfileDropdown"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAMA,IAAiB,CAAC,EAAE,UAAAC,QAA4B;AAClD,QAAM,EAAE,UAAAC,EAAA,IAAaC,EAAA,GAEf,EAAE,QAAAC,GAAQ,SAAAC,EAAA,IAAYC,EAAA;AAE5B,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,MAAMC;AAAA,MACN,WAAU;AAAA,MACV,yBAAyB,CAAC;AAAA,QACtB,UAAAR;AAAAA,QACA,cAAAS;AAAA,QACA,QAAAC;AAAA,QACA,oBAAAC;AAAA,QACA,mBAAAC;AAAA,QACA,0BAAAC;AAAA,QACA,QAAAC;AAAA,QACA,qBAAAC;AAAA,QACA,mBAAAC;AAAA,QACA,qBAAAC;AAAA,MAAA,MAEA,gBAAAX,EAAAY,GAAA,EACI,UAAA,gBAAAZ;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAWa;AAAA,YACPV;AAAA,YACA;AAAA,YACAC,GAAQ,QAAQ,WAAW;AAAA,UAAA;AAAA,UAG/B,UAAA,gBAAAU,EAAC,QAAA,EAAK,WAAU,UACZ,UAAA;AAAA,YAAA,gBAAAd,EAAC,OAAA,EAAI,WAAU,mCACX,UAAA,gBAAAA;AAAA,cAACS;AAAA,cAAA;AAAA,gBACI,GAAGL;AAAA,gBACJ,WAAU;AAAA,gBACV,eAAe,MACX,gBAAAU,EAAAF,GAAA,EACK,UAAA;AAAA,kBAAAR,GAAQ,SACL,OAAOA,GAAQ,SACX,8BACC,MAAA,EAAG,WAAU,QACT,UAAAA,EAAO,MAAA,CACZ;AAAA,kBAEPA,GAAQ,eACL,gBAAAJ,EAAC,OAAE,WAAU,mCACR,YAAO,YAAA,CACZ;AAAA,gBAAA,EAAA,CAER;AAAA,cAAA;AAAA,YAAA,GAGZ;AAAA,YACA,gBAAAc,EAACJ,GAAA,EAAkB,mBAAmB,aACjC,UAAA;AAAA,cAAAL,MAAuB,UACpB,gBAAAL;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACG,WAAWa;AAAA,oBACP;AAAA,oBACAN;AAAA,kBAAA;AAAA,kBAGH,UAAAb;AAAAA,gBAAA;AAAA,cAAA,IAGLA;AAAAA,cAEJ,gBAAAM;AAAA,gBAACW;AAAA,gBAAA;AAAA,kBACG,WAAU;AAAA,kBACV,QAAAH;AAAA,kBACA,mBAAAF;AAAA,gBAAA;AAAA,cAAA;AAAA,YAGJ,EAAA,CACJ;AAAA,UAAA,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA,GAER;AAAA,MAGJ,4BAAC,OAAA,EAAI,WAAU,0BACX,UAAA,gBAAAQ,EAAC,OAAA,EAAI,WAAU,gEACX,UAAA;AAAA,QAAA,gBAAAd;AAAA,UAACe;AAAA,UAAA;AAAA,YACG,WAAS;AAAA,YACT,WAAWF;AAAA,cACP;AAAA,cACAlB,IACM,2BACA;AAAA,YAAA;AAAA,YAEV,cAAa;AAAA,YACb,aACI,gBAAAmB,EAAAF,GAAA,EACK,UAAA;AAAA,cAAAd,EAAQ,wBAAOkB,GAAA,CAAA,CAAU;AAAA,cAC1B,gBAAAhB;AAAA,gBAACiB;AAAA,gBAAA;AAAA,kBACI,GAAKtB,IAA8B,CAAA,IAAnB,EAAE,MAAM,OAAA;AAAA,gBAAY;AAAA,cAAA;AAAA,YACzC,GACJ;AAAA,YAEJ,cAAc,gBAAAK,EAAAY,GAAA,EAAG,UAAAf,EAAO,MAAM,gBAAAG,EAACkB,KAAc,GAAG;AAAA,YAChD,WACI,gBAAAJ,EAAAF,GAAA,EACI,UAAA;AAAA,cAAA,gBAAAZ,EAACmB,GAAA,EAAO;AAAA,gCACPC,GAAA,EAAiB;AAAA,gCACjBC,GAAA,EAAa;AAAA,gCACbC,GAAA,EAAU;AAAA,cACX,gBAAAtB,EAACuB,GAAA,EAAoB,WAAW,GAAA,CAAO;AAAA,YAAA,EAAA,CAC3C;AAAA,UAAA;AAAA,QAAA;AAAA,QAGR,gBAAAvB,EAAC,SAAI,WAAU,yHACX,4BAAC,OAAA,EAAI,WAAU,4BAA2B,EAAA,CAC9C;AAAA,QACCN;AAAA,MAAA,EAAA,CACL,EAAA,CACJ;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { createRef as p, useEffect as a } from "react";
|
|
3
3
|
import m from "classnames";
|
|
4
|
-
function h(
|
|
5
|
-
const { offset:
|
|
4
|
+
function h(s) {
|
|
5
|
+
const { offset: i = 0, className: c, children: l } = s, e = p(), r = {
|
|
6
6
|
position: "",
|
|
7
7
|
top: "",
|
|
8
8
|
width: ""
|
|
9
|
-
},
|
|
10
|
-
const
|
|
9
|
+
}, f = (o, n) => {
|
|
10
|
+
const d = window.scrollY;
|
|
11
11
|
if (e.current)
|
|
12
|
-
if (
|
|
12
|
+
if (o - d < i) {
|
|
13
13
|
if (e.current.style.position !== "fixed") {
|
|
14
14
|
for (const t in r)
|
|
15
15
|
r[t] = e.current.style[t];
|
|
16
|
-
e.current.style.position = "fixed", e.current.style.width = n + "px", e.current.style.top =
|
|
16
|
+
e.current.style.position = "fixed", e.current.style.width = n + "px", e.current.style.top = i + "px";
|
|
17
17
|
}
|
|
18
18
|
} else
|
|
19
19
|
for (const t in r)
|
|
@@ -21,17 +21,16 @@ function h(c) {
|
|
|
21
21
|
};
|
|
22
22
|
return a(() => {
|
|
23
23
|
if (!(typeof window.scrollY > "u") && e.current) {
|
|
24
|
-
const
|
|
24
|
+
const o = window.scrollY + e.current.getBoundingClientRect().top, n = () => {
|
|
25
25
|
e.current && requestAnimationFrame(() => {
|
|
26
|
-
|
|
27
|
-
d(i, (o = e.current) == null ? void 0 : o.clientWidth);
|
|
26
|
+
f(o, e.current?.clientWidth);
|
|
28
27
|
});
|
|
29
28
|
};
|
|
30
29
|
return window.addEventListener("scroll", n), () => {
|
|
31
30
|
window.removeEventListener("scroll", n);
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
}), /* @__PURE__ */ u("div", { ref: e, className: m("z-10",
|
|
33
|
+
}), /* @__PURE__ */ u("div", { ref: e, className: m("z-10", c), children: l });
|
|
35
34
|
}
|
|
36
35
|
export {
|
|
37
36
|
h as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Affix.js","sources":["../../../../lib/@ecme/components/shared/Affix.tsx"],"sourcesContent":["import { useEffect, createRef } from 'react'\nimport classNames from 'classnames'\nimport type { CommonProps } from '@/@types/common'\n\ntype AffixStyles = {\n position: string\n top: string\n width: string\n}\n\ninterface AffixProps extends CommonProps {\n offset?: number\n}\n\nfunction Affix(props: AffixProps) {\n const { offset = 0, className, children } = props\n\n const ref = createRef<HTMLDivElement>()\n const prevStyle: AffixStyles = {\n position: '',\n top: '',\n width: '',\n }\n\n const checkPosition = (distanceToBody: number, width?: number) => {\n const scrollTop = window.scrollY\n\n if (ref.current) {\n if (distanceToBody - scrollTop < offset) {\n if (ref.current.style.position !== 'fixed') {\n for (const key in prevStyle) {\n prevStyle[key as keyof AffixStyles] =\n ref.current.style[key as keyof AffixStyles]\n }\n ref.current.style.position = 'fixed'\n ref.current.style.width = width + 'px'\n ref.current.style.top = offset + 'px'\n }\n } else {\n for (const key in prevStyle) {\n ref.current.style[key as keyof AffixStyles] =\n prevStyle[key as keyof AffixStyles]\n }\n }\n }\n }\n\n useEffect(() => {\n if (typeof window.scrollY === 'undefined') {\n return\n }\n\n if (ref.current) {\n const distanceToBody =\n window.scrollY + ref.current.getBoundingClientRect().top\n const handleScroll = () => {\n if (!ref.current) {\n return\n }\n\n requestAnimationFrame(() => {\n checkPosition(distanceToBody, ref.current?.clientWidth)\n })\n }\n\n window.addEventListener('scroll', handleScroll)\n return () => {\n window.removeEventListener('scroll', handleScroll)\n }\n }\n })\n\n return (\n <div ref={ref} className={classNames('z-10', className)}>\n {children}\n </div>\n )\n}\n\nexport default Affix\n"],"names":["Affix","props","offset","className","children","ref","createRef","prevStyle","checkPosition","distanceToBody","width","scrollTop","key","useEffect","handleScroll","
|
|
1
|
+
{"version":3,"file":"Affix.js","sources":["../../../../lib/@ecme/components/shared/Affix.tsx"],"sourcesContent":["import { useEffect, createRef } from 'react'\nimport classNames from 'classnames'\nimport type { CommonProps } from '@/@types/common'\n\ntype AffixStyles = {\n position: string\n top: string\n width: string\n}\n\ninterface AffixProps extends CommonProps {\n offset?: number\n}\n\nfunction Affix(props: AffixProps) {\n const { offset = 0, className, children } = props\n\n const ref = createRef<HTMLDivElement>()\n const prevStyle: AffixStyles = {\n position: '',\n top: '',\n width: '',\n }\n\n const checkPosition = (distanceToBody: number, width?: number) => {\n const scrollTop = window.scrollY\n\n if (ref.current) {\n if (distanceToBody - scrollTop < offset) {\n if (ref.current.style.position !== 'fixed') {\n for (const key in prevStyle) {\n prevStyle[key as keyof AffixStyles] =\n ref.current.style[key as keyof AffixStyles]\n }\n ref.current.style.position = 'fixed'\n ref.current.style.width = width + 'px'\n ref.current.style.top = offset + 'px'\n }\n } else {\n for (const key in prevStyle) {\n ref.current.style[key as keyof AffixStyles] =\n prevStyle[key as keyof AffixStyles]\n }\n }\n }\n }\n\n useEffect(() => {\n if (typeof window.scrollY === 'undefined') {\n return\n }\n\n if (ref.current) {\n const distanceToBody =\n window.scrollY + ref.current.getBoundingClientRect().top\n const handleScroll = () => {\n if (!ref.current) {\n return\n }\n\n requestAnimationFrame(() => {\n checkPosition(distanceToBody, ref.current?.clientWidth)\n })\n }\n\n window.addEventListener('scroll', handleScroll)\n return () => {\n window.removeEventListener('scroll', handleScroll)\n }\n }\n })\n\n return (\n <div ref={ref} className={classNames('z-10', className)}>\n {children}\n </div>\n )\n}\n\nexport default Affix\n"],"names":["Affix","props","offset","className","children","ref","createRef","prevStyle","checkPosition","distanceToBody","width","scrollTop","key","useEffect","handleScroll","jsx","classNames"],"mappings":";;;AAcA,SAASA,EAAMC,GAAmB;AAC9B,QAAM,EAAE,QAAAC,IAAS,GAAG,WAAAC,GAAW,UAAAC,MAAaH,GAEtCI,IAAMC,EAAA,GACNC,IAAyB;AAAA,IAC3B,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EAAA,GAGLC,IAAgB,CAACC,GAAwBC,MAAmB;AAC9D,UAAMC,IAAY,OAAO;AAEzB,QAAIN,EAAI;AACJ,UAAII,IAAiBE,IAAYT;AAC7B,YAAIG,EAAI,QAAQ,MAAM,aAAa,SAAS;AACxC,qBAAWO,KAAOL;AACd,YAAAA,EAAUK,CAAwB,IAC9BP,EAAI,QAAQ,MAAMO,CAAwB;AAElD,UAAAP,EAAI,QAAQ,MAAM,WAAW,SAC7BA,EAAI,QAAQ,MAAM,QAAQK,IAAQ,MAClCL,EAAI,QAAQ,MAAM,MAAMH,IAAS;AAAA,QACrC;AAAA;AAEA,mBAAWU,KAAOL;AACd,UAAAF,EAAI,QAAQ,MAAMO,CAAwB,IACtCL,EAAUK,CAAwB;AAAA,EAItD;AAEA,SAAAC,EAAU,MAAM;AACZ,QAAI,SAAO,OAAO,UAAY,QAI1BR,EAAI,SAAS;AACb,YAAMI,IACF,OAAO,UAAUJ,EAAI,QAAQ,wBAAwB,KACnDS,IAAe,MAAM;AACvB,QAAKT,EAAI,WAIT,sBAAsB,MAAM;AACxB,UAAAG,EAAcC,GAAgBJ,EAAI,SAAS,WAAW;AAAA,QAC1D,CAAC;AAAA,MACL;AAEA,oBAAO,iBAAiB,UAAUS,CAAY,GACvC,MAAM;AACT,eAAO,oBAAoB,UAAUA,CAAY;AAAA,MACrD;AAAA,IACJ;AAAA,EACJ,CAAC,GAGG,gBAAAC,EAAC,SAAI,KAAAV,GAAU,WAAWW,EAAW,QAAQb,CAAS,GACjD,UAAAC,GACL;AAER;"}
|
|
@@ -6,18 +6,18 @@ import T from "../ui/Input/Input.js";
|
|
|
6
6
|
const V = ({
|
|
7
7
|
children: p,
|
|
8
8
|
active: c,
|
|
9
|
-
ref:
|
|
10
|
-
...
|
|
9
|
+
ref: o,
|
|
10
|
+
...n
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const s = b();
|
|
13
13
|
return /* @__PURE__ */ l(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
|
-
ref:
|
|
16
|
+
ref: o,
|
|
17
17
|
role: "option",
|
|
18
|
-
id:
|
|
18
|
+
id: s,
|
|
19
19
|
"aria-selected": c,
|
|
20
|
-
...
|
|
20
|
+
...n,
|
|
21
21
|
className: "select-option hover:text-gray-800 hover:dark:text-gray-100",
|
|
22
22
|
children: p
|
|
23
23
|
}
|
|
@@ -26,28 +26,28 @@ const V = ({
|
|
|
26
26
|
function ee(p) {
|
|
27
27
|
const {
|
|
28
28
|
data: c = [],
|
|
29
|
-
optionKey:
|
|
30
|
-
value:
|
|
31
|
-
onInputChange:
|
|
29
|
+
optionKey: o,
|
|
30
|
+
value: n,
|
|
31
|
+
onInputChange: s,
|
|
32
32
|
onOptionSelected: y,
|
|
33
33
|
renderOption: C,
|
|
34
34
|
...x
|
|
35
|
-
} = p, [h,
|
|
35
|
+
} = p, [h, i] = g(!1), [a, f] = g(null), [d, w] = g([]), v = D([]);
|
|
36
36
|
S(() => {
|
|
37
37
|
const e = c.filter(
|
|
38
|
-
(t) =>
|
|
38
|
+
(t) => o(t).toLowerCase().includes(n.toLowerCase())
|
|
39
39
|
);
|
|
40
40
|
w(e);
|
|
41
|
-
}, [
|
|
41
|
+
}, [n]);
|
|
42
42
|
const { refs: m, floatingStyles: F, context: u } = H({
|
|
43
43
|
whileElementsMounted: z,
|
|
44
44
|
open: h,
|
|
45
|
-
onOpenChange:
|
|
45
|
+
onOpenChange: i,
|
|
46
46
|
middleware: [
|
|
47
47
|
K({ padding: 10 }),
|
|
48
48
|
M({
|
|
49
|
-
apply({ rects: e, availableHeight: t, elements:
|
|
50
|
-
Object.assign(
|
|
49
|
+
apply({ rects: e, availableHeight: t, elements: r }) {
|
|
50
|
+
Object.assign(r.floating.style, {
|
|
51
51
|
width: `${e.reference.width}px`,
|
|
52
52
|
maxHeight: `${t}px`
|
|
53
53
|
});
|
|
@@ -57,18 +57,18 @@ function ee(p) {
|
|
|
57
57
|
]
|
|
58
58
|
}), I = U(u, { role: "listbox" }), O = q(u), R = B(u, {
|
|
59
59
|
listRef: v,
|
|
60
|
-
activeIndex:
|
|
60
|
+
activeIndex: a,
|
|
61
61
|
onNavigate: f,
|
|
62
62
|
virtual: !0,
|
|
63
63
|
loop: !0
|
|
64
64
|
}), { getReferenceProps: k, getFloatingProps: L, getItemProps: N } = G([I, O, R]);
|
|
65
65
|
function E(e) {
|
|
66
66
|
const t = e.target.value;
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
(P) =>
|
|
67
|
+
s(t);
|
|
68
|
+
const r = c.filter(
|
|
69
|
+
(P) => o(P).toLowerCase().includes(t.toLowerCase())
|
|
70
70
|
);
|
|
71
|
-
t &&
|
|
71
|
+
t && r.length > 0 ? (i(!0), f(0)) : i(!1);
|
|
72
72
|
}
|
|
73
73
|
return /* @__PURE__ */ j(A, { children: [
|
|
74
74
|
/* @__PURE__ */ l(
|
|
@@ -78,10 +78,10 @@ function ee(p) {
|
|
|
78
78
|
...k({
|
|
79
79
|
ref: m.setReference,
|
|
80
80
|
onChange: E,
|
|
81
|
-
value:
|
|
81
|
+
value: n,
|
|
82
82
|
"aria-autocomplete": "list",
|
|
83
83
|
onKeyDown(e) {
|
|
84
|
-
e.key === "Enter" &&
|
|
84
|
+
e.key === "Enter" && a != null && d[a] && (s(o(d[a])), f(null), i(!1));
|
|
85
85
|
}
|
|
86
86
|
})
|
|
87
87
|
}
|
|
@@ -106,17 +106,16 @@ function ee(p) {
|
|
|
106
106
|
V,
|
|
107
107
|
{
|
|
108
108
|
...N({
|
|
109
|
-
key:
|
|
110
|
-
ref(
|
|
111
|
-
v.current[t] =
|
|
109
|
+
key: o(e),
|
|
110
|
+
ref(r) {
|
|
111
|
+
v.current[t] = r;
|
|
112
112
|
},
|
|
113
113
|
onClick() {
|
|
114
|
-
|
|
115
|
-
i(n(e)), y(e), a(!1), (o = m.domReference.current) == null || o.focus();
|
|
114
|
+
s(o(e)), y(e), i(!1), m.domReference.current?.focus();
|
|
116
115
|
}
|
|
117
116
|
}),
|
|
118
117
|
key: `auto-complete-item-${t}`,
|
|
119
|
-
active:
|
|
118
|
+
active: a === t
|
|
120
119
|
},
|
|
121
120
|
C(e)
|
|
122
121
|
))
|