@admin-layout/tailwind-design-pro 10.0.9-alpha.9 → 10.1.1-alpha.0
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/README.md +345 -1
- package/lib/cdm-locales/en/settings.json +35 -1
- package/lib/cdm-locales/es/settings.json +37 -3
- package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +146 -42
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +70 -38
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
- package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js +230 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +1 -2
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +108 -92
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +29 -19
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.d.ts +1 -16
- package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.js +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +6 -6
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js +6 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +3 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.d.ts.map +1 -1
- package/lib/components/Layout/util.js +12 -0
- package/lib/components/Layout/util.js.map +1 -0
- package/lib/components/SettingDrawer/CheckBoxTheme.js +1 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +75 -17
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +685 -33
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +164 -39
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/types.d.ts +23 -2
- package/lib/components/SettingDrawer/types.d.ts.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +26 -28
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
- package/lib/components/ThemeProvider/index.d.ts +2 -5
- package/lib/components/ThemeProvider/index.d.ts.map +1 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
- package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
- package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/default.js +183 -0
- package/lib/components/ThemeProvider/themes/default.js.map +1 -0
- package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/github.js +190 -0
- package/lib/components/ThemeProvider/themes/github.js.map +1 -0
- package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
- package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/index.js +7 -0
- package/lib/components/ThemeProvider/themes/index.js.map +1 -0
- package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/slack.js +188 -0
- package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
- package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/spotify.js +189 -0
- package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
- package/lib/components/ThemeProvider/types.d.ts +106 -106
- package/lib/components/ThemeProvider/types.d.ts.map +1 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
- package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
- package/lib/components/UI/CategoriesTypeList.js +140 -0
- package/lib/components/UI/CategoriesTypeList.js.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
- package/lib/components/UI/Pagination.d.ts +6 -0
- package/lib/components/UI/Pagination.d.ts.map +1 -0
- package/lib/components/UI/Pagination.js +59 -0
- package/lib/components/UI/Pagination.js.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts +90 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.js +80 -0
- package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
- package/lib/components/UI/PropertyCard.d.ts +24 -0
- package/lib/components/UI/PropertyCard.d.ts.map +1 -0
- package/lib/components/UI/PropertyCard.js +375 -0
- package/lib/components/UI/PropertyCard.js.map +1 -0
- package/lib/components/UI/PropertyCardList.d.ts +93 -0
- package/lib/components/UI/PropertyCardList.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardList.js +41 -0
- package/lib/components/UI/PropertyCardList.js.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.js +108 -0
- package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
- package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
- package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.js +18 -0
- package/lib/components/UI/icons/LocationIcon.js.map +1 -0
- package/lib/components/UI/icons/index.d.ts +2 -0
- package/lib/components/UI/icons/index.d.ts.map +1 -0
- package/lib/components/UI/index.d.ts +8 -0
- package/lib/components/UI/index.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/typings.d.ts +128 -51
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/config/constants.d.ts +8 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +32 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/env-config.d.ts +3 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +19 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.d.ts +7 -4
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +51 -0
- package/lib/helpers/DynamicIcon.js.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
- package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.js +29 -0
- package/lib/hooks/use-get-current-lat-long.js.map +1 -0
- package/lib/hooks/useMediaQuery.d.ts +14 -0
- package/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.js +48 -0
- package/lib/hooks/useMediaQuery.js.map +1 -0
- package/lib/hooks/useScrollThreshold.d.ts +12 -0
- package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
- package/lib/hooks/useScrollThreshold.js +60 -0
- package/lib/hooks/useScrollThreshold.js.map +1 -0
- package/lib/hooks/useTailwindTheme.d.ts +34 -0
- package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/hooks/useWindowSize.d.ts +6 -0
- package/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize.js +20 -0
- package/lib/hooks/useWindowSize.js.map +1 -0
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +3 -4
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/settingsMachine.d.ts +4 -1
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +170 -120
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +124 -17
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js +5 -0
- package/lib/machines/types.js.map +1 -0
- package/lib/module.d.ts +0 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +14 -15
- package/lib/module.js.map +1 -1
- package/lib/redux/index.d.ts +2 -0
- package/lib/redux/index.d.ts.map +1 -0
- package/lib/redux/searchReducer.d.ts +42 -0
- package/lib/redux/searchReducer.d.ts.map +1 -0
- package/lib/redux/searchReducer.js +64 -0
- package/lib/redux/searchReducer.js.map +1 -0
- package/lib/tailwindConfig.d.ts +42 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +23 -0
- package/lib/tailwindConfig.js.map +1 -0
- package/lib/utils/menu.d.ts.map +1 -1
- package/lib/utils/test-utils.d.ts.map +1 -1
- package/lib/utils/utils/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
- package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
- package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
- package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
- package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
- package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themeRegistry.js +0 -388
- package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
- package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
- package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themeUtils.js +0 -135
- package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
- package/lib/components/defaultSettings.d.ts +0 -4
- package/lib/components/defaultSettings.d.ts.map +0 -1
- package/lib/components/defaultSettings.js +0 -14
- package/lib/components/defaultSettings.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffect}from'react';import {
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffect}from'react';import {useTranslation}from'react-i18next';import BottomMenuDropDown from'../GlobalFooter/BottomMenuDropdown.js';import {getMenuSeparation}from'@admin-layout/client';import {Divider}from'./Divider.js';import {SidebarMenu}from'./SidebarMenu.js';import {RightContent}from'../GlobalHeader/RightContent.js';import {icons}from'../../../icons.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';const Sidebar = props => {
|
|
2
2
|
const {
|
|
3
3
|
isSideMenuOpen,
|
|
4
4
|
closeSideMenu,
|
|
@@ -6,19 +6,33 @@ import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffe
|
|
|
6
6
|
collapsed,
|
|
7
7
|
routeParams,
|
|
8
8
|
settings,
|
|
9
|
-
setCollapsed
|
|
9
|
+
setCollapsed,
|
|
10
|
+
location
|
|
10
11
|
} = props;
|
|
11
|
-
useState(false);
|
|
12
|
+
const [isPagesMenuOpen, setIsPagesMenuOpen] = useState(false);
|
|
12
13
|
const [iconModule, setIconModule] = React__default.useState(null);
|
|
13
14
|
const {
|
|
14
15
|
t,
|
|
15
16
|
i18n
|
|
16
17
|
} = useTranslation('menu');
|
|
17
18
|
const {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
isMobile
|
|
20
|
+
} = useMediaQuery();
|
|
21
|
+
const {
|
|
22
|
+
ChevronLeftIcon,
|
|
23
|
+
ChevronRightIcon
|
|
21
24
|
} = icons;
|
|
25
|
+
const currentRoute = location?.pathname || '/';
|
|
26
|
+
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
27
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
28
|
+
const deviceLayout = routeSettings?.layout?.[deviceType] || {};
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (!iconModule) {
|
|
31
|
+
import('./DynamicIcon.js').then(module => {
|
|
32
|
+
setIconModule(module);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}, []);
|
|
22
36
|
const toggleCollapsed = () => {
|
|
23
37
|
setCollapsed(!collapsed);
|
|
24
38
|
};
|
|
@@ -47,8 +61,14 @@ import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffe
|
|
|
47
61
|
document.removeEventListener('keydown', handleEscape);
|
|
48
62
|
};
|
|
49
63
|
}, [isSideMenuOpen, closeSideMenu]);
|
|
50
|
-
const
|
|
51
|
-
|
|
64
|
+
const {
|
|
65
|
+
upperMenus,
|
|
66
|
+
middleMenus,
|
|
67
|
+
lowerMenus,
|
|
68
|
+
bottomMenus
|
|
69
|
+
} = getMenuSeparation(menuData || []);
|
|
70
|
+
const updateMenuIcons = (menuItems = []) => {
|
|
71
|
+
if (!menuItems || !Array.isArray(menuItems)) return [];
|
|
52
72
|
return menuItems.map(item => {
|
|
53
73
|
const updatedItem = {
|
|
54
74
|
...item,
|
|
@@ -61,108 +81,104 @@ import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffe
|
|
|
61
81
|
return updatedItem;
|
|
62
82
|
});
|
|
63
83
|
};
|
|
64
|
-
const
|
|
65
|
-
menuData: updateMenuIcons(
|
|
84
|
+
const bottomMenusData = {
|
|
85
|
+
menuData: updateMenuIcons(bottomMenus)
|
|
66
86
|
};
|
|
67
|
-
const middleMenu = getMenuSeparation(menuData).middleMenus;
|
|
68
|
-
const lowerMenus = getMenuSeparation(menuData).lowerMenus;
|
|
69
87
|
const SidebarStyles = React__default.useMemo(() => ({
|
|
70
88
|
backgroundColor: settings?.navTheme === 'realDark' ? '#222' : '',
|
|
71
89
|
color: settings?.navTheme === 'realDark' ? '#fff' : ''
|
|
72
90
|
}), [settings]);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
91
|
+
// Helper function to render a separator with a name
|
|
92
|
+
const renderSeparator = name => {
|
|
93
|
+
if (!deviceLayout?.splitMenus) return null;
|
|
94
|
+
return collapsed ? jsx("hr", {
|
|
95
|
+
className: "border-t border-gray-200"
|
|
96
|
+
}) : jsx(Divider, {
|
|
97
|
+
style: {
|
|
98
|
+
color: '#6b6767',
|
|
99
|
+
borderColor: '#6b6767',
|
|
100
|
+
margin: '8px 0',
|
|
101
|
+
padding: 0
|
|
102
|
+
},
|
|
103
|
+
plain: true,
|
|
104
|
+
children: name
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const renderSidebarContent = () => {
|
|
108
|
+
return jsxs("div", {
|
|
109
|
+
className: "text-gray-500 dark:text-gray-400 relative",
|
|
79
110
|
style: SidebarStyles,
|
|
80
|
-
children: [jsx("
|
|
81
|
-
|
|
82
|
-
className: "w-[
|
|
83
|
-
|
|
84
|
-
children:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
className: "min-h-[93vh]",
|
|
93
|
-
children: [jsxs("div", {
|
|
94
|
-
style: {
|
|
95
|
-
flex: 1,
|
|
96
|
-
overflowY: 'auto',
|
|
97
|
-
overflowX: 'hidden',
|
|
98
|
-
display: 'flex',
|
|
99
|
-
flexDirection: 'column'
|
|
100
|
-
},
|
|
101
|
-
className: "removeBoxShadow",
|
|
102
|
-
children: [jsx(SidebarMenu, {
|
|
103
|
-
menuData: updateMenuIcons(middleMenu),
|
|
104
|
-
routeParams: routeParams,
|
|
105
|
-
settings: settings,
|
|
106
|
-
collapsed: collapsed
|
|
107
|
-
}), collapsed && true ? jsx(OutlineDashIcon, {
|
|
108
|
-
className: "ant-divider",
|
|
111
|
+
children: [jsx("button", {
|
|
112
|
+
onClick: toggleCollapsed,
|
|
113
|
+
className: "w-6 h-6 text-center bg-white text-gray-300 flex items-center justify-center rounded-full shadow-[0_2px_8px_-2px_rgba(0,0,0,0.05),0_1px_4px_-1px_rgba(25,15,15,0.07),0_0_1px_0_rgba(0,0,0,0.08)] hover:text-gray-600 hover:shadow-[0_4px_16px_-4px_rgba(0,0,0,0.05),0_2px_8px_-2px_rgba(25,15,15,0.07),0_1px_2px_0_rgba(0,0,0,0.08)] transition-colors text-[22px] absolute right-[-13px] top-[20px]",
|
|
114
|
+
"aria-label": collapsed ? 'Expand sidebar' : 'Collapse sidebar',
|
|
115
|
+
children: collapsed ? jsx(ChevronRightIcon, {
|
|
116
|
+
fontSize: '11px'
|
|
117
|
+
}) : jsx(ChevronLeftIcon, {
|
|
118
|
+
fontSize: '11px'
|
|
119
|
+
})
|
|
120
|
+
}), jsxs("div", {
|
|
121
|
+
className: "min-h-[93vh]",
|
|
122
|
+
children: [middleMenus?.length > 0 && jsxs("div", {
|
|
109
123
|
style: {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
124
|
+
flex: 1,
|
|
125
|
+
overflowY: 'auto',
|
|
126
|
+
overflowX: 'hidden',
|
|
127
|
+
display: 'flex',
|
|
128
|
+
flexDirection: 'column'
|
|
129
|
+
},
|
|
130
|
+
className: "removeBoxShadow",
|
|
131
|
+
children: [renderSeparator(deviceLayout?.middleMenuDividerName), jsx(SidebarMenu, {
|
|
132
|
+
menuData: updateMenuIcons(middleMenus),
|
|
133
|
+
routeParams: routeParams,
|
|
134
|
+
settings: settings,
|
|
135
|
+
collapsed: collapsed
|
|
136
|
+
})]
|
|
137
|
+
}), lowerMenus?.length > 0 && jsxs("div", {
|
|
116
138
|
style: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
139
|
+
flex: 1,
|
|
140
|
+
overflowY: 'auto',
|
|
141
|
+
overflowX: 'hidden',
|
|
142
|
+
display: 'flex',
|
|
143
|
+
flexDirection: 'column'
|
|
121
144
|
},
|
|
122
|
-
|
|
123
|
-
children:
|
|
145
|
+
className: "removeBoxShadow",
|
|
146
|
+
children: [renderSeparator(deviceLayout?.lowerMenuDividerName), jsx(SidebarMenu, {
|
|
147
|
+
menuData: updateMenuIcons(lowerMenus),
|
|
148
|
+
routeParams: routeParams,
|
|
149
|
+
settings: settings,
|
|
150
|
+
collapsed: collapsed
|
|
151
|
+
})]
|
|
152
|
+
}), jsx("div", {
|
|
153
|
+
className: "p-4",
|
|
154
|
+
children: deviceLayout?.navigationMode === 'sidebar' && jsx(RightContent, {
|
|
155
|
+
upperMenus: upperMenus,
|
|
156
|
+
collapsed: collapsed,
|
|
157
|
+
routeParams: routeParams,
|
|
158
|
+
settings: settings
|
|
159
|
+
})
|
|
124
160
|
})]
|
|
125
161
|
}), jsx("div", {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
flexDirection: 'column'
|
|
132
|
-
},
|
|
133
|
-
className: "removeBoxShadow",
|
|
134
|
-
children: jsx(SidebarMenu, {
|
|
135
|
-
menuData: updateMenuIcons(lowerMenus),
|
|
136
|
-
routeParams: routeParams,
|
|
137
|
-
settings: settings,
|
|
138
|
-
collapsed: collapsed
|
|
162
|
+
className: "absolute bottom-0 left-0 p-4 dark:border-gray-700",
|
|
163
|
+
children: jsx(BottomMenuDropDown, {
|
|
164
|
+
menus: bottomMenusData,
|
|
165
|
+
collapsed: collapsed,
|
|
166
|
+
routeParams: routeParams
|
|
139
167
|
})
|
|
140
168
|
})]
|
|
141
|
-
})
|
|
142
|
-
|
|
143
|
-
collapsed: collapsed,
|
|
144
|
-
routeParams: routeParams,
|
|
145
|
-
settings: settings
|
|
146
|
-
}), jsx("div", {
|
|
147
|
-
className: "absolute bottom-0 left-0 p-4 dark:border-gray-700",
|
|
148
|
-
children: jsx(BottomMenuDropDown, {
|
|
149
|
-
menus: bottomMenus,
|
|
150
|
-
collapsed: collapsed,
|
|
151
|
-
routeParams: routeParams
|
|
152
|
-
})
|
|
153
|
-
})]
|
|
154
|
-
});
|
|
169
|
+
});
|
|
170
|
+
};
|
|
155
171
|
return jsxs("div", {
|
|
156
|
-
children: [jsx("aside", {
|
|
157
|
-
className:
|
|
172
|
+
children: [!isMobile && jsx("aside", {
|
|
173
|
+
className: `${deviceLayout?.fixedSidebar ? 'fixed' : 'relative'} border-r border-gray-200 z-20 h-screen bg-white dark:bg-gray-800 md:block flex-shrink-0 transition-all duration-300 ease-in-out ${collapsed ? 'w-16' : 'w-64'}`,
|
|
158
174
|
style: SidebarStyles,
|
|
159
175
|
children: renderSidebarContent()
|
|
160
|
-
}), isSideMenuOpen && jsx("div", {
|
|
161
|
-
className: "fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center",
|
|
176
|
+
}), isSideMenuOpen && isMobile && jsx("div", {
|
|
177
|
+
className: "fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center transition-opacity duration-300",
|
|
162
178
|
onClick: closeSideMenu
|
|
163
|
-
}), isSideMenuOpen && jsx("aside", {
|
|
179
|
+
}), isSideMenuOpen && isMobile && jsx("aside", {
|
|
164
180
|
id: "mobile-sidebar",
|
|
165
|
-
className:
|
|
181
|
+
className: `fixed inset-y-0 z-20 flex-shrink-0 mt-16 bg-white dark:bg-gray-800 md:hidden transition-transform duration-300 ease-in-out transform ${collapsed ? 'w-16' : 'w-64'}`,
|
|
166
182
|
style: SidebarStyles,
|
|
167
183
|
children: renderSidebarContent()
|
|
168
184
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.js","sources":["../../../../src/components/Layout/Sidebar/Sidebar.tsx"],"sourcesContent":[null],"names":["React","
|
|
1
|
+
{"version":3,"file":"Sidebar.js","sources":["../../../../src/components/Layout/Sidebar/Sid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ACA,KAAA,CAAA;AACA,GAAA;AACA,EAAA,MAAA,eAAA,GAAA;AACA,IAAA,QAAA,EAAA,eAAA,CAAA,WAAA;;AAkBA,EAAA,MAAA,aAAA,GAAAA,cAAA,CAAA,QAAM,OAAC;AACP,IAAA,eAAA,EAAA,QAAA,EAAA,QAAA,KAAiB,UAAA,GAAA,MAAA,GAAA,EAAA;AACjB,IAAA,KAAA,EAAA,QAAA,EAAA,QAAA,KAAA,UAAmB,GAAA,MAAA,GAAA;AACnB,GAAA,CAAA,EAAA,CAAA,QAAA,CAAA,CAAA;AACA;8BAEJ,IAAA;AA6BxB,IAAA,IAAE,CAAA,YAAA,EAAA,UAAA,EAAA,OAAA,IAAA;IAEF,OAAO;AAsCX,MAAE,SAAA,EAAA;AAEF,KAAA,CAAA,GAAAC,GAAA,CAAA,SAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SidebarMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2MlD,CAAC"}
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';import {useState}from'react';import {Link}from'@remix-run/react';import {generateMenuPath}from'@admin-layout/client';import {generateLightShade}from'../BasicLayout/utils.js';import {icons}from'../../../icons.js';const SidebarMenu = ({
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {useState}from'react';import {useLocation,Link}from'@remix-run/react';import {generateMenuPath}from'@admin-layout/client';import {generateLightShade}from'../BasicLayout/utils.js';import {icons}from'../../../icons.js';const SidebarMenu = ({
|
|
2
2
|
menuData,
|
|
3
3
|
routeParams,
|
|
4
4
|
settings,
|
|
5
5
|
collapsed
|
|
6
6
|
}) => {
|
|
7
7
|
const [openMenusByLevel, setOpenMenusByLevel] = useState({});
|
|
8
|
-
const [activePath, setActivePath] = useState('/dashboard');
|
|
9
8
|
const [hoveredMenu, setHoveredMenu] = useState(null);
|
|
9
|
+
const [popupPosition, setPopupPosition] = useState({
|
|
10
|
+
top: 0,
|
|
11
|
+
height: 0
|
|
12
|
+
});
|
|
10
13
|
const {
|
|
11
14
|
ChevronDownIcon,
|
|
12
|
-
|
|
15
|
+
ChevronUpIcon
|
|
13
16
|
} = icons;
|
|
17
|
+
const location = useLocation();
|
|
18
|
+
const isMenuItemActive = itemPath => {
|
|
19
|
+
const currentPath = location.pathname;
|
|
20
|
+
const menuPath = generateMenuPath(itemPath, routeParams);
|
|
21
|
+
// Exact match
|
|
22
|
+
if (currentPath === menuPath) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
// Check if current path is a child of the menu item path
|
|
26
|
+
if (menuPath && currentPath.startsWith(menuPath + '/')) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
};
|
|
14
31
|
const toggleMenu = (path, depth, e) => {
|
|
15
32
|
e.preventDefault();
|
|
16
33
|
if (collapsed) return;
|
|
@@ -22,47 +39,118 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState}from'react';import {Li
|
|
|
22
39
|
const handleMenuClick = (path, hasChildren, depth, e) => {
|
|
23
40
|
if (hasChildren && !collapsed) {
|
|
24
41
|
toggleMenu(path, depth, e);
|
|
25
|
-
} else {
|
|
26
|
-
setActivePath(path);
|
|
27
42
|
}
|
|
28
43
|
};
|
|
29
44
|
const getFirstLetter = name => {
|
|
30
45
|
return name.charAt(0).toUpperCase();
|
|
31
46
|
};
|
|
47
|
+
const handleMenuHover = (e, item, isHoverMenu) => {
|
|
48
|
+
// Only set hover state if the menu has children
|
|
49
|
+
if (collapsed && !isHoverMenu && item.children && item.children.length > 0) {
|
|
50
|
+
const element = e.currentTarget;
|
|
51
|
+
const rect = element.getBoundingClientRect();
|
|
52
|
+
let top = rect.top;
|
|
53
|
+
// Store the height to use for positioning
|
|
54
|
+
setPopupPosition({
|
|
55
|
+
top: top,
|
|
56
|
+
height: rect.height
|
|
57
|
+
});
|
|
58
|
+
setHoveredMenu(item.path);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const handleMenuLeave = (item, isHoverMenu) => {
|
|
62
|
+
if (collapsed && !isHoverMenu) {
|
|
63
|
+
setHoveredMenu(null);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const renderPopupMenu = (item, depth = 0) => {
|
|
67
|
+
if (!item.children || item.children.length === 0) return null;
|
|
68
|
+
const bgColor = generateLightShade(settings?.primaryColor, 0.98);
|
|
69
|
+
const sidebarWidth = collapsed ? 64 : 256; // 80px for collapsed (w-20), 256px for expanded (w-64)
|
|
70
|
+
return jsxs("div", {
|
|
71
|
+
className: "fixed shadow-xl rounded-md border border-gray-100 z-[999] overflow-hidden",
|
|
72
|
+
style: {
|
|
73
|
+
backgroundColor: bgColor,
|
|
74
|
+
left: `${sidebarWidth}px`,
|
|
75
|
+
// Position right after sidebar
|
|
76
|
+
top: `${popupPosition.top}px`,
|
|
77
|
+
boxShadow: '0 5px 15px rgba(0, 0, 0, 0.2)',
|
|
78
|
+
animation: 'fadeIn 0.2s ease-out forwards',
|
|
79
|
+
maxWidth: 'calc(100vw - 100px)',
|
|
80
|
+
// Prevent overflow on small screens
|
|
81
|
+
width: 'max-content',
|
|
82
|
+
minWidth: '220px'
|
|
83
|
+
},
|
|
84
|
+
children: [jsx("style", {
|
|
85
|
+
dangerouslySetInnerHTML: {
|
|
86
|
+
__html: `
|
|
87
|
+
@keyframes fadeIn {
|
|
88
|
+
from { opacity: 0; transform: translateX(-10px); }
|
|
89
|
+
to { opacity: 1; transform: translateX(0); }
|
|
90
|
+
}
|
|
91
|
+
`
|
|
92
|
+
}
|
|
93
|
+
}), jsx("div", {
|
|
94
|
+
className: "font-medium text-sm px-4 py-3 border-b border-gray-100 whitespace-nowrap",
|
|
95
|
+
style: {
|
|
96
|
+
backgroundColor: generateLightShade(settings?.primaryColor, 0.95)
|
|
97
|
+
},
|
|
98
|
+
children: jsx("span", {
|
|
99
|
+
style: {
|
|
100
|
+
color: settings?.primaryColor
|
|
101
|
+
},
|
|
102
|
+
children: item.name
|
|
103
|
+
})
|
|
104
|
+
}), jsx("div", {
|
|
105
|
+
className: "max-h-[400px] overflow-y-auto overflow-x-hidden py-1",
|
|
106
|
+
children: item.children.map(child => jsx("div", {
|
|
107
|
+
className: "w-full min-w-max",
|
|
108
|
+
children: renderMenuItem(child, depth + 1, true)
|
|
109
|
+
}, child.path))
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
112
|
+
};
|
|
32
113
|
const renderMenuItem = (item, depth = 0, isHoverMenu = false) => {
|
|
33
114
|
const hasChildren = item.children && item.children.length > 0;
|
|
34
115
|
const isOpen = openMenusByLevel[depth] === item.path;
|
|
35
|
-
const isActive =
|
|
116
|
+
const isActive = isMenuItemActive(item.path);
|
|
36
117
|
const isHovered = hoveredMenu === item.path;
|
|
37
118
|
const paddingLeft = `${depth * 1}rem`;
|
|
38
119
|
const bgColor = generateLightShade(settings?.primaryColor, 0.89);
|
|
120
|
+
// Determine styling based on whether it's a parent or child item
|
|
121
|
+
const isParentWithChildren = hasChildren && depth === 0;
|
|
122
|
+
const shouldApplyBackground = isActive && !isParentWithChildren || isHovered;
|
|
39
123
|
return jsxs("div", {
|
|
40
|
-
className:
|
|
41
|
-
|
|
42
|
-
|
|
124
|
+
className: `w-full relative group ${isHovered && collapsed && !isHoverMenu ? `rounded-md` : ''}`,
|
|
125
|
+
style: {
|
|
126
|
+
backgroundColor: isHovered && !isHoverMenu ? bgColor : ''
|
|
127
|
+
},
|
|
128
|
+
onMouseEnter: e => handleMenuHover(e, item, isHoverMenu),
|
|
129
|
+
onMouseLeave: () => handleMenuLeave(item, isHoverMenu),
|
|
43
130
|
children: [jsxs(Link, {
|
|
44
|
-
to: generateMenuPath(item?.path, routeParams),
|
|
45
|
-
className: `flex items-center justify-between w-full px-
|
|
131
|
+
to: hasChildren && collapsed && !isHoverMenu ? '#' : generateMenuPath(item?.path, routeParams),
|
|
132
|
+
className: `flex items-center justify-between w-full px-1 py-2 hover:bg-gray-100 text-sm cursor-pointer transition-colors rounded-md mx-1 my-0.5 whitespace-nowrap overflow-hidden text-ellipsis`,
|
|
46
133
|
style: {
|
|
47
134
|
paddingLeft: `calc(1rem + ${paddingLeft})`,
|
|
48
|
-
backgroundColor:
|
|
135
|
+
backgroundColor: shouldApplyBackground ? bgColor : ''
|
|
49
136
|
},
|
|
50
137
|
onClick: e => handleMenuClick(item.path, hasChildren, depth, e),
|
|
51
138
|
children: [jsxs("div", {
|
|
52
139
|
className: `flex items-center ${collapsed && !isHoverMenu ? 'justify-center w-full' : 'gap-3'}`,
|
|
53
140
|
children: [item.icon ? jsx("span", {
|
|
141
|
+
className: `flex-shrink-0`,
|
|
54
142
|
style: {
|
|
55
143
|
color: isActive ? settings?.primaryColor : ''
|
|
56
144
|
},
|
|
57
145
|
children: item.icon
|
|
58
146
|
}) : collapsed && !isHoverMenu ? jsx("span", {
|
|
59
|
-
className: "
|
|
147
|
+
className: "flex items-center justify-center flex-shrink-0",
|
|
60
148
|
style: {
|
|
61
149
|
color: isActive ? settings?.primaryColor : ''
|
|
62
150
|
},
|
|
63
151
|
children: getFirstLetter(item.name)
|
|
64
152
|
}) : null, (!collapsed || isHoverMenu) && jsx("span", {
|
|
65
|
-
className: "font-medium whitespace-nowrap",
|
|
153
|
+
className: "font-medium whitespace-nowrap overflow-hidden text-ellipsis",
|
|
66
154
|
style: {
|
|
67
155
|
color: isActive ? settings?.primaryColor : ''
|
|
68
156
|
},
|
|
@@ -72,21 +160,23 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState}from'react';import {Li
|
|
|
72
160
|
style: {
|
|
73
161
|
color: isActive ? settings?.primaryColor : ''
|
|
74
162
|
},
|
|
75
|
-
|
|
163
|
+
className: "flex-shrink-0 ml-1",
|
|
164
|
+
children: isOpen ? jsx(ChevronUpIcon, {
|
|
76
165
|
className: "h-4 w-4"
|
|
77
|
-
}) : jsx(
|
|
166
|
+
}) : jsx(ChevronDownIcon, {
|
|
78
167
|
className: "h-4 w-4"
|
|
79
168
|
})
|
|
80
169
|
})]
|
|
81
|
-
}), hasChildren &&
|
|
82
|
-
className:
|
|
83
|
-
children: item.children.map(child => renderMenuItem(child, depth + 1
|
|
170
|
+
}), collapsed && hasChildren && isHovered && !isHoverMenu && item.children.length > 0 && renderPopupMenu(item, depth), hasChildren && isOpen && !collapsed && jsx("div", {
|
|
171
|
+
className: "transition-all duration-200 ease-in-out",
|
|
172
|
+
children: item.children.map(child => renderMenuItem(child, depth + 1))
|
|
84
173
|
})]
|
|
85
174
|
}, item.path);
|
|
86
175
|
};
|
|
87
176
|
return jsx("div", {
|
|
177
|
+
className: "overflow-hidden",
|
|
88
178
|
children: jsx("nav", {
|
|
89
|
-
className: `mt-2 ${collapsed ? 'px-1' : 'px-2'}`,
|
|
179
|
+
className: `mt-2 ${collapsed ? 'px-1' : 'px-2'} overflow-x-hidden`,
|
|
90
180
|
children: menuData.map(item => renderMenuItem(item))
|
|
91
181
|
})
|
|
92
182
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.js","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarMenu.js","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"sourcesContent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QAAoB,EAAA,qBAA6B;AAC7C;QACA,KAAM,EAAA,aAAS;QACf,QAAM,EAAA;AACN,OAAA;AACA,MAAA,QAAM,cAAc,EAAG;QACvB,uBAAgB,EAAA;UAEiD,MAAA,EAAA;AACjE;;;;;;mBAsDY,EAAW;6FACF;AACT,QAAA,KAAA,EAAA;AACA,UAAA,eAAK,EAAA,kBAAmB,CAAA,QAAA,EAAA,YAAA,EAAA,IAAA;;AAWxC,QAAE,QAAA,EAAAA,GAAA,CAAA,MAAA,EAAA;AAEF,UAAA,KACS,EAAA;AAMb,YAAE,KAAA,EAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TailwindLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/TailwindLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"TailwindLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/TailwindLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,sBAAsB,CAAC;AAG3E,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAsEvF,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEvD,QAAA,MAAM,SAAS;;;0EAAoB,CAAC;AAEpC,KAAK,+BAA+B,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAEzE,QAAA,MAAM,mBAAmB,EAAE,kBAAkB,CACzC,KAAK,CAAC,mBAAmB,CAAC,CAAC,KAAK,EAAE,+BAA+B,KAAK,GAAG,CAAC,OAAO,CAAC,EAClF,GAAG,CAC8C,CAAC;AAEtD,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {useLayoutSettings}from'@admin-layout/client';import {userSelector}from'@adminide-stack/user-auth0-client';import
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {useLayoutSettings}from'@admin-layout/client';import {userSelector}from'@adminide-stack/user-auth0-client';import {useMachine}from'@xstate/react';import React__default,{useMemo,useCallback}from'react';import {connect,useSelector}from'react-redux';import {settingsMachine}from'../../machines/settingsMachine.js';import {ThemeProviderTailwind}from'../ThemeProvider/ThemeProvider.js';import {BasicLayout}from'./BasicLayout/index.js';function BasicLayoutWithAuthorities(props) {
|
|
2
2
|
const userData = useSelector(userSelector);
|
|
3
3
|
const {
|
|
4
4
|
settings,
|
|
5
5
|
setSettings
|
|
6
6
|
} = useLayoutSettings();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const [state, send, settingsActor] = useMachine(settingsMachine.provide({
|
|
8
|
+
actions: {
|
|
9
|
+
updateReduxSettings: ({
|
|
10
|
+
context
|
|
11
|
+
}) => {
|
|
12
|
+
setSettings(context);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}), {
|
|
16
|
+
input: {
|
|
17
|
+
settings
|
|
18
|
+
}
|
|
19
|
+
});
|
|
12
20
|
const settingXstate = state?.context;
|
|
13
21
|
const {
|
|
14
22
|
permissions
|
|
@@ -16,25 +24,27 @@ import {jsx}from'react/jsx-runtime';import {useLayoutSettings}from'@admin-layout
|
|
|
16
24
|
const mainHeaderProps = useMemo(() => ({
|
|
17
25
|
picture: userData ? userData?.profile?.picture : null
|
|
18
26
|
}), [userData]);
|
|
19
|
-
const onSettingChange = config => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
27
|
+
const onSettingChange = useCallback(config => {
|
|
28
|
+
// Update Redux first
|
|
29
|
+
setSettings(config);
|
|
30
|
+
}, [setSettings]);
|
|
24
31
|
//@ts-ignore
|
|
25
32
|
const {
|
|
26
33
|
routeParams: {
|
|
27
34
|
orgName
|
|
28
35
|
} = {}
|
|
29
36
|
} = props;
|
|
30
|
-
return jsx(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
return jsx(ThemeProviderTailwind, {
|
|
38
|
+
settings: settingXstate,
|
|
39
|
+
children: jsx(BasicLayout, {
|
|
40
|
+
routeParams: orgName,
|
|
41
|
+
authorities: permissions?.resolveConfiguration ?? permissions,
|
|
42
|
+
onSettingChange: onSettingChange,
|
|
43
|
+
mainHeaderProps: mainHeaderProps,
|
|
44
|
+
actor: settingsActor,
|
|
45
|
+
...props,
|
|
46
|
+
settings: settingXstate
|
|
47
|
+
})
|
|
38
48
|
});
|
|
39
49
|
}
|
|
40
50
|
const mapState = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TailwindLayout.js","sources":["../../../src/components/Layout/TailwindLayout.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TailwindLayout.js","sources":["../../../src/components/Layout/TailwindLayout.tsx"],"sourcesContent":[null],"names":[],"mappings":"ydAWA,SAAS,0BAA0B,CAAC,KAAgF,EAAA;AAChH,EAAA,MAAA,WAAiB,WAAA,CAAA,YAAY,CAAA;QACvB;AAEN,IAAA,QAAO;AAEC,IAAA;AACI,GAAA,GAAA,iBAAA,EAAA;gBACI,IAAW,EAAA,aAAQ,CAAC,GAAC,UAAA,CAAA,eAAA,CAAA,OAAA,CAAA;aACxB;AACJ,MAAA,mBAAA,EAAA,CAAA;AACJ,QACD;AACI,OAAA,KAAA;mBACY,CAAA,OAAA,CAAA;AACX;AACJ;AAGL,GAAA,CAAA,EAAA;AAEA,IAAA,KAAA,EAAQ;AAER,MAAA;AAEQ;AACH,GAAA,CAAA;AAIL,EAAA,MAAA,qBAAwB,EAAA,OAAA;QAEhB;;AAEJ,GAAA,GACA,KAAY;QAGJ,eAAA,GAAA,OAAA,CAAA,OAAA;IACZ,OAAM,EAAa,QAAA,GAAA,QAAI,EAAO,OAAO,EAAE,OAAG,GAAM;AAEhD,GAAA,CAAA,EAAA,CAAA,QACK,CAAA,CAAA;AAYT,EAAC,MAAA,eAAA,GAAA,WAAA,CAAA,MAAA,IAAA;AAED;IACI,WAAQ,CAAA,MAAA,CAAA;KACA,CAAA,WAAQ,CAAA,CAAA;AACnB;AAMD,EAAA;AAIA,IAAM,WAAA,EAAA;AAKN,MAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import { MenuDataItem } from '
|
|
2
|
-
import { ProSettings } from '../defaultSettings';
|
|
3
|
-
export interface GetPageTitleProps {
|
|
4
|
-
pathname?: string;
|
|
5
|
-
breadcrumb?: {
|
|
6
|
-
[path: string]: MenuDataItem;
|
|
7
|
-
};
|
|
8
|
-
breadcrumbMap?: Map<string, MenuDataItem>;
|
|
9
|
-
menu?: ProSettings['menu'];
|
|
10
|
-
title?: ProSettings['title'];
|
|
11
|
-
pageName?: string;
|
|
12
|
-
formatMessage?: (data: {
|
|
13
|
-
id: any;
|
|
14
|
-
defaultMessage?: string;
|
|
15
|
-
}) => string;
|
|
16
|
-
}
|
|
1
|
+
import { GetPageTitleProps, MenuDataItem } from '@admin-layout/client';
|
|
17
2
|
export declare const matchParamsPath: (pathname: string, breadcrumb?: {
|
|
18
3
|
[path: string]: MenuDataItem;
|
|
19
4
|
}, breadcrumbMap?: Map<string, MenuDataItem>) => MenuDataItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/getPageTitle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getPageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/getPageTitle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvE,eAAO,MAAM,eAAe,GACxB,UAAU,MAAM,EAChB,aAAa;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,EAC7C,gBAAgB,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,KAC1C,YAQF,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAClB,OAAO,iBAAiB,EACxB,aAAa,OAAO,KACrB;IAEC,KAAK,EAAE,MAAM,CAAC;IAEd,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;CAiDpB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -18,7 +18,7 @@ const getPageTitleInfo = (props, ignoreTile) => {
|
|
|
18
18
|
locale: false
|
|
19
19
|
}
|
|
20
20
|
} = props;
|
|
21
|
-
const pageTitle = title || '';
|
|
21
|
+
const pageTitle = ignoreTile ? '' : title || '';
|
|
22
22
|
const currRouterData = matchParamsPath(pathname, breadcrumb, breadcrumbMap);
|
|
23
23
|
if (!currRouterData) {
|
|
24
24
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAGa,MAAA,eAAe,GAAG,CAC3B,QAAgB,EAChB,UAA6C,EAC7C,aAAyC,KAC3B;;MAEV,aAAA,EAAa;UACP,OAAA,GAAA,CAAO,GAAG,aAAI,CAAA,IAAc,EAAA,CAAA,CAAI,IAAI,CAAA,GAAI,IAAK,YAAiB,CAAA,GAAA,CAAA,CAAA,IAAI,CAAC,QAAM,CAAA,CAAA;QAC/E,OAAI,EAAA;AACA,MAAA,OAAA,yBAAyB,CAAA;;;AAGrC;AAEA,MAAM,gBAAgB,GAAG,CACrB,KAAwB,EACxB,UAAoB,KAQpB;AACA,EAAA,MAAA;AAOQ,IAAA,QAAA,MAAa;;AAGrB,IAAA,aAAe;IACf,aAAM;IACN,KAAK,GAAc,gBAAG;QAClB,GAAO;AACH,MAAA,MAAA,EAAA;AACA;AACA,GAAA,GAAA,KAAA;iBACF,GAAA,UAAA,GAAA,EAAA,GAAA,KAAA,IAAA,EAAA;QACL,cAAA,GAAA,eAAA,CAAA,QAAA,EAAA,UAAA,EAAA,aAAA,CAAA;AACD,EAAA,IAAA,CAAA,cAA6B,EAAA;AAE7B,IAAA,OAAQ;WACI,EAAA;AACJ,MAAA,EAAA,EAAA,EAAA;cACc,EAAA;AACjB,KAAA;;MAGD,QAAS,GAAA,cAAG,CAAA,IAAA;UACL,CAAA,MAAA,KAAA,KAAA,IAAA,cAAA,CAAA,MAAA,IAAA,aAAA,EAAA;AACH,IAAA,QAAA,GAAA,aAAgB,CAAA;AAChB,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;AACzB,MAAA,cAAQ,EAAE,cAAS,CAAA;;;AAG3B,EAAA,IAAA,CAAA,QAAc,EAAA;WACH;AACH,MAAA,KAAA,EAAA,SAAe;AACf,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;cACjB,EAAA;;;MAGT,CAAA,KAAA,EAAA;AACH,IAAA,OAAA;AACA,MAAA,KAAI,EAAA,QAAA;QACJ,EAAQ,cAAA,CAAA,MAAA,IAAA,EAAA;MACV;AACN,KAAE;AAEF;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/AdditionalSettings.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kCAAkC,kCAAkC,CAAC;AAElF,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"AdditionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/AdditionalSettings.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kCAAkC,kCAAkC,CAAC;AAElF,eAAO,MAAM,sBAAsB,GAAI,UAAK,4CAE3C,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,UAAK,4CAE/C,CAAC"}
|