@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.1
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 +376 -250
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +6 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +255 -175
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +80 -109
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +82 -66
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +70 -9
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +37 -20
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.js +20 -0
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.js +77 -0
- package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.js +154 -0
- package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.js +73 -0
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
- package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +20 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.js.map +1 -1
- package/lib/config/env-config.d.ts +6 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +21 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/helpers/DynamicIcon.d.ts +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +133 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +107 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.d.ts +1 -1
- package/lib/redux/searchReducer.d.ts.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/styles/index.css +602 -372
- package/lib/tailwindConfig.d.ts +85 -27
- package/lib/tailwindConfig.d.ts.map +1 -1
- package/lib/tailwindConfig.js +96 -18
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
- package/lib/utils/analytics-utils.d.ts +43 -0
- package/lib/utils/analytics-utils.d.ts.map +1 -0
- package/lib/utils/analytics.d.ts +48 -0
- package/lib/utils/analytics.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -123
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
- package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -22
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -35
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
- package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
- package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
- package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
- package/lib/components/ThemeProvider/index.d.ts +0 -4
- package/lib/components/ThemeProvider/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
- package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
- package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/default.js +0 -183
- package/lib/components/ThemeProvider/themes/default.js.map +0 -1
- package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/github.js +0 -190
- package/lib/components/ThemeProvider/themes/github.js.map +0 -1
- package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
- package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/index.js +0 -7
- package/lib/components/ThemeProvider/themes/index.js.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.js +0 -188
- package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.js +0 -189
- package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
- package/lib/components/ThemeProvider/types.d.ts +0 -112
- package/lib/components/ThemeProvider/types.d.ts.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -140
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -59
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -375
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {getThemeColors,getMenuSeparation,useComponentSize}from'@admin-layout/client';import {Outlet}from'@remix-run/react';import {omit}from'lodash-es';import React__default,{useRef,useState,useMemo,useEffect,useCallback}from'react';import warning from'warning';import {config}from'../../../config/env-config.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {useScrollThreshold}from'../../../hooks/useScrollThreshold.js';import {SettingDrawer}from'../../SettingDrawer/SettingDrawer.js';import {getPageTitleInfo}from'../getPageTitle.js';import {MainHeader}from'../GlobalHeader/MainHeader.js';import'@remix-run/router';import'../../../helpers/DynamicIcon.js';import'@app/dialog/WrappedDialogsSwitch';import {GlobalHeader}from'../GlobalHeader/Header.js';import {MainSidebar}from'../Sidebar/MainSidebar.js';import {PerplexSidebar}from'../Sidebar/PerplexSidebar.js';import'@common-stack/components-pro';import {FooterSlot}from'../slot-fill/Footer.js';import'reflect-metadata';import'@admin-layout/client/lib/constants/layout.js';//helper func
|
|
2
|
+
function useHorizontalScroll({
|
|
2
3
|
setScrolled,
|
|
3
4
|
setSearchOptionsShown,
|
|
4
5
|
onScrollReachEnd
|
|
5
|
-
})
|
|
6
|
+
}) {
|
|
6
7
|
const elRef = useRef();
|
|
7
8
|
useEffect(() => {
|
|
8
9
|
const el = elRef.current || null;
|
|
@@ -10,9 +11,6 @@ import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffe
|
|
|
10
11
|
const onWheel = e => {
|
|
11
12
|
if (e.deltaY == 0) return;
|
|
12
13
|
e.preventDefault();
|
|
13
|
-
// if (!isMobileView) {
|
|
14
|
-
// setSearchOptionsShown(false);
|
|
15
|
-
// }
|
|
16
14
|
if (window.scrollY > 50) {
|
|
17
15
|
setScrolled(true);
|
|
18
16
|
}
|
|
@@ -30,8 +28,8 @@ import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffe
|
|
|
30
28
|
}
|
|
31
29
|
}, []);
|
|
32
30
|
return elRef;
|
|
33
|
-
}
|
|
34
|
-
|
|
31
|
+
}
|
|
32
|
+
function defaultPageTitleRender(pageProps, props) {
|
|
35
33
|
const {
|
|
36
34
|
pageTitleRender
|
|
37
35
|
} = props;
|
|
@@ -54,117 +52,165 @@ const defaultPageTitleRender = (pageProps, props) => {
|
|
|
54
52
|
warning(typeof title === 'string', 'pro-layout: renderPageTitle return value should be a string');
|
|
55
53
|
}
|
|
56
54
|
return pageTitleInfo;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
}
|
|
56
|
+
function getUILayoutValueFromSettings(settingsObj, routeForBracket, device, path) {
|
|
57
|
+
const routeDeviceKey = `[${routeForBracket}][${device}]`;
|
|
58
|
+
const uiOverride = settingsObj?.uiSettings?.[routeDeviceKey];
|
|
59
|
+
if (uiOverride) {
|
|
60
|
+
const value = path.split('.').reduce((obj, key) => obj?.[key], uiOverride);
|
|
61
|
+
if (value !== undefined) return value;
|
|
62
|
+
}
|
|
63
|
+
return path.split('.').reduce((obj, key) => obj?.[key], settingsObj);
|
|
64
|
+
}
|
|
65
|
+
function BasicLayout(props) {
|
|
66
|
+
// Destructure props
|
|
65
67
|
const {
|
|
68
|
+
children,
|
|
69
|
+
onCollapse: propsOnCollapse,
|
|
70
|
+
defaultCollapsed,
|
|
66
71
|
menuData,
|
|
72
|
+
fullMenuData,
|
|
73
|
+
siderWidth = 208,
|
|
74
|
+
menu,
|
|
75
|
+
menuDataRender,
|
|
76
|
+
loading,
|
|
67
77
|
location,
|
|
68
78
|
routeParams,
|
|
69
79
|
settings,
|
|
70
80
|
authorities,
|
|
71
81
|
primaryColor,
|
|
72
|
-
onSettingChange,
|
|
73
82
|
mainHeaderProps,
|
|
74
|
-
actor
|
|
75
|
-
|
|
83
|
+
actor,
|
|
84
|
+
routePattern
|
|
85
|
+
} = props;
|
|
86
|
+
// Refs
|
|
87
|
+
useRef(settings);
|
|
88
|
+
// Hooks
|
|
89
|
+
const {
|
|
90
|
+
isMobile
|
|
91
|
+
} = useMediaQuery();
|
|
92
|
+
// State
|
|
93
|
+
const [scrolled, setScrolled] = useState(false);
|
|
94
|
+
const [collapsed, setCollapsed] = useState(false);
|
|
95
|
+
const [siderPinned, setSiderPinned] = useState(false);
|
|
76
96
|
const [isSideMenuOpen, setIsSideMenuOpen] = useState(false);
|
|
77
97
|
const [scrollEnd, setScrollEnd] = useState(false);
|
|
78
98
|
const [searchOptionsShown, setSearchOptionsShown] = useState(false);
|
|
99
|
+
const [footerFixed, setFooterFixed] = useState(false);
|
|
100
|
+
// Computed values
|
|
101
|
+
const currentRoute = location?.pathname || '/';
|
|
102
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
103
|
+
const routeForBracket = routePattern || currentRoute;
|
|
79
104
|
const {
|
|
80
105
|
picture
|
|
81
106
|
} = mainHeaderProps;
|
|
82
107
|
const {
|
|
83
108
|
LAYOUT_ROOT
|
|
84
109
|
} = config;
|
|
85
|
-
const {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
110
|
+
const deviceSettings = useMemo(() => ({
|
|
111
|
+
header: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'header'),
|
|
112
|
+
background: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'background'),
|
|
113
|
+
footer: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'footer')
|
|
114
|
+
}), [settings, routeForBracket, deviceType]);
|
|
115
|
+
const layoutSettings = useMemo(() => ({
|
|
116
|
+
contentWidth: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'contentWidth'),
|
|
117
|
+
navigationMode: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'navigationMode'),
|
|
118
|
+
sideMenuType: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'sideMenuType'),
|
|
119
|
+
fixedHeader: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'fixedHeader'),
|
|
120
|
+
fixedSidebar: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'fixedSidebar'),
|
|
121
|
+
splitMenus: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'splitMenus'),
|
|
122
|
+
upperMenuDividerName: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'upperMenuDividerName'),
|
|
123
|
+
middleMenuDividerName: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'middleMenuDividerName'),
|
|
124
|
+
lowerMenuDividerName: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'lowerMenuDividerName'),
|
|
125
|
+
menuHeaderRender: getUILayoutValueFromSettings(settings, routeForBracket, deviceType, 'menuHeaderRender')
|
|
126
|
+
}), [settings, routeForBracket, deviceType]);
|
|
127
|
+
const backgroundSettings = useMemo(() => {
|
|
128
|
+
return deviceSettings?.background || {
|
|
129
|
+
type: 'color',
|
|
130
|
+
color: 'inherit',
|
|
131
|
+
image: '',
|
|
132
|
+
video: ''
|
|
133
|
+
};
|
|
134
|
+
}, [deviceSettings]);
|
|
135
|
+
const themeColors = useMemo(() => getThemeColors(settings?.theme), [settings?.theme]);
|
|
136
|
+
const backgroundClasses = useMemo(() => {
|
|
137
|
+
let classes = 'flex flex-col h-screen bg-background font-sans relative';
|
|
138
|
+
if (backgroundSettings.type === 'image' && backgroundSettings.image) {
|
|
139
|
+
classes += ' bg-cover bg-center bg-fixed';
|
|
140
|
+
}
|
|
141
|
+
return classes;
|
|
142
|
+
}, [backgroundSettings]);
|
|
143
|
+
const backgroundStyle = useMemo(() => {
|
|
144
|
+
if (backgroundSettings.type === 'image' && backgroundSettings.image) {
|
|
145
|
+
return {
|
|
146
|
+
backgroundImage: `url(${backgroundSettings.image})`
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
if (backgroundSettings.type === 'color' && backgroundSettings.color !== 'inherit') {
|
|
150
|
+
return {
|
|
151
|
+
backgroundColor: backgroundSettings.color
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
return {};
|
|
155
|
+
}, [backgroundSettings]);
|
|
156
|
+
const headerUpperMenus = useMemo(() => getMenuSeparation(menuData).upperMenus, [menuData]);
|
|
157
|
+
const footerActive = useMemo(() => getOverrideValue('footer.showFooter'), [deviceSettings]);
|
|
158
|
+
const memoizedMenuData = useMemo(() => menuData, [menuData]);
|
|
159
|
+
const memoizedRouteParams = useMemo(() => routeParams, [routeParams]);
|
|
160
|
+
// Derived layout flags
|
|
161
|
+
const isSidebarLayout = layoutSettings?.navigationMode !== 'topbar';
|
|
162
|
+
layoutSettings?.navigationMode === 'topbar';
|
|
163
|
+
const isSideMenuLayout = layoutSettings?.navigationMode === 'sidebar';
|
|
164
|
+
layoutSettings?.navigationMode === 'mixed';
|
|
165
|
+
const showMenu = deviceSettings?.header?.showMenu;
|
|
166
|
+
const showHeader = deviceSettings?.header?.showHeader;
|
|
167
|
+
const menuHeaderRender = deviceSettings?.header?.menuHeaderRender;
|
|
168
|
+
const hasFixedSidebar = layoutSettings?.fixedSidebar;
|
|
169
|
+
const isPerplexLayout = settings?.sideMenuType === 'perplexLayout';
|
|
170
|
+
const isAppShell = LAYOUT_ROOT != '/';
|
|
171
|
+
const shouldApplySidebarMargin = isSidebarLayout && showMenu && hasFixedSidebar && !isMobile;
|
|
172
|
+
const shouldShowSidebar = isSidebarLayout && showMenu;
|
|
173
|
+
const sideBarMarginTop = !isAppShell && showHeader ? '5rem' : undefined;
|
|
174
|
+
const computedMarginLeft = useMemo(() => {
|
|
175
|
+
return shouldApplySidebarMargin ? !isPerplexLayout ? collapsed ? '64px' : '256px' : !siderPinned ? '92px' : '316px' : '0px';
|
|
176
|
+
}, [shouldApplySidebarMargin, isPerplexLayout, collapsed, siderPinned]);
|
|
177
|
+
const defaultProps = omit({
|
|
178
|
+
...props
|
|
179
|
+
}, ['layout']);
|
|
180
|
+
const pageTitleInfo = defaultPageTitleRender({
|
|
181
|
+
pathname: location?.pathname,
|
|
182
|
+
...defaultProps
|
|
183
|
+
}, props);
|
|
184
|
+
const scrollThreshold = deviceSettings?.header?.scrollThreshold || 50;
|
|
185
|
+
// Effects
|
|
93
186
|
useEffect(() => {
|
|
94
187
|
if (searchOptionsShown && isMobile) {
|
|
95
|
-
// Save the current scroll position
|
|
96
188
|
const scrollY = window.scrollY;
|
|
97
|
-
// Add the no-scroll class to the body
|
|
98
189
|
document.body.style.position = 'fixed';
|
|
99
190
|
document.body.style.top = `-${scrollY}px`;
|
|
100
191
|
document.body.style.width = '100%';
|
|
101
192
|
document.body.style.overflow = 'hidden';
|
|
102
193
|
return () => {
|
|
103
|
-
// Remove the no-scroll class when component unmounts or modal closes
|
|
104
194
|
document.body.style.position = '';
|
|
105
195
|
document.body.style.top = '';
|
|
106
196
|
document.body.style.width = '';
|
|
107
197
|
document.body.style.overflow = '';
|
|
108
|
-
// Restore scroll position
|
|
109
198
|
window.scrollTo(0, scrollY);
|
|
110
199
|
};
|
|
111
200
|
}
|
|
112
201
|
}, [searchOptionsShown, isMobile]);
|
|
113
|
-
|
|
114
|
-
const currentRoute = location?.pathname || '/';
|
|
115
|
-
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
116
|
-
// Get device-specific settings
|
|
117
|
-
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
118
|
-
const deviceSettings = routeSettings?.regions?.[deviceType] || {};
|
|
119
|
-
const layoutSettings = routeSettings?.layout?.[deviceType] || {};
|
|
120
|
-
const backgroundSettings = deviceSettings?.background || {
|
|
121
|
-
type: 'color',
|
|
122
|
-
color: 'inherit',
|
|
123
|
-
image: '',
|
|
124
|
-
video: ''
|
|
125
|
-
};
|
|
126
|
-
const onScrollReachEnd = () => {
|
|
127
|
-
setScrollEnd(prevScrollEnd => !prevScrollEnd);
|
|
128
|
-
};
|
|
129
|
-
const horizontalScrollRef = useHorizontalScroll({
|
|
130
|
-
setScrolled,
|
|
131
|
-
setSearchOptionsShown,
|
|
132
|
-
onScrollReachEnd
|
|
133
|
-
});
|
|
134
|
-
const defaultProps = omit({
|
|
135
|
-
...propsWithSettings
|
|
136
|
-
}, ['layout']);
|
|
137
|
-
const pageTitleInfo = defaultPageTitleRender({
|
|
138
|
-
pathname: location?.pathname,
|
|
139
|
-
...defaultProps
|
|
140
|
-
}, propsWithSettings);
|
|
141
|
-
const settingRef = useRef(settings);
|
|
142
|
-
const scrollThreshold = deviceSettings?.header?.scrollThreshold || 50;
|
|
143
|
-
const {
|
|
144
|
-
componentVisibility
|
|
145
|
-
} = useScrollThreshold([{
|
|
146
|
-
threshold: scrollThreshold,
|
|
147
|
-
id: 'search-bar',
|
|
148
|
-
useWindowScroll: true
|
|
149
|
-
}]);
|
|
150
|
-
useEffect(() => {
|
|
151
|
-
if (settingRef.current?.primaryColor === '#3FA541C' && primaryColor !== '#3FA541C') {
|
|
152
|
-
const newState = {
|
|
153
|
-
...settingRef.current,
|
|
154
|
-
primaryColor
|
|
155
|
-
};
|
|
156
|
-
onSettingChange(newState);
|
|
157
|
-
}
|
|
158
|
-
}, [primaryColor, isBrowser, settingRef]);
|
|
159
|
-
// Update settings when route changes
|
|
160
|
-
useEffect(() => {
|
|
202
|
+
const sendRouteChange = useCallback(() => {
|
|
161
203
|
if (actor && location?.pathname) {
|
|
162
204
|
actor.send({
|
|
163
|
-
type: '
|
|
164
|
-
pathname: location?.pathname
|
|
205
|
+
type: 'UISETTING_ROUTE_CHANGE',
|
|
206
|
+
pathname: location?.pathname,
|
|
207
|
+
routePattern: props.routePattern
|
|
165
208
|
});
|
|
166
209
|
}
|
|
167
|
-
}, [location?.pathname,
|
|
210
|
+
}, [actor, location?.pathname, props.routePattern]);
|
|
211
|
+
useEffect(() => {
|
|
212
|
+
sendRouteChange();
|
|
213
|
+
}, [sendRouteChange]);
|
|
168
214
|
const {
|
|
169
215
|
ref: refHeader,
|
|
170
216
|
height: heightHeader
|
|
@@ -177,105 +223,139 @@ const BasicLayout = props => {
|
|
|
177
223
|
ref: refFooter,
|
|
178
224
|
height: heightFooter
|
|
179
225
|
} = useComponentSize();
|
|
180
|
-
const [footerFixed, setFooterFixed] = useState(false);
|
|
181
226
|
useEffect(() => {
|
|
182
227
|
if (heightHeader && heightBody && heightFooter) {
|
|
183
228
|
if (heightBody < window.innerHeight - heightHeader - heightFooter) setFooterFixed(true);else setFooterFixed(false);
|
|
184
229
|
}
|
|
185
230
|
}, [heightHeader, heightBody, heightFooter]);
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
231
|
+
const {
|
|
232
|
+
componentVisibility
|
|
233
|
+
} = useScrollThreshold([{
|
|
234
|
+
threshold: scrollThreshold,
|
|
235
|
+
id: 'search-bar',
|
|
236
|
+
useWindowScroll: true
|
|
237
|
+
}]);
|
|
238
|
+
const onScrollReachEnd = useCallback(() => {
|
|
239
|
+
setScrollEnd(prevScrollEnd => !prevScrollEnd);
|
|
240
|
+
}, []);
|
|
241
|
+
const horizontalScrollRef = useHorizontalScroll({
|
|
242
|
+
setScrolled,
|
|
243
|
+
setSearchOptionsShown,
|
|
244
|
+
onScrollReachEnd
|
|
245
|
+
});
|
|
246
|
+
// Helper functions
|
|
247
|
+
function getOverrideValue(path, deviceSettingsRef = deviceSettings) {
|
|
248
|
+
return path.split('.').reduce((obj, key) => obj?.[key], deviceSettingsRef);
|
|
249
|
+
}
|
|
250
|
+
const toggleSideMenu = useCallback(() => {
|
|
251
|
+
setIsSideMenuOpen(prev => !prev);
|
|
252
|
+
}, []);
|
|
253
|
+
const closeSideMenu = useCallback(() => {
|
|
190
254
|
setIsSideMenuOpen(false);
|
|
191
|
-
};
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
// Add background styles based on the background settings
|
|
199
|
-
if (backgroundSettings.type === 'color' && backgroundSettings.color !== 'inherit') {
|
|
200
|
-
baseStyles.backgroundColor = backgroundSettings.color;
|
|
201
|
-
} else if (backgroundSettings.type === 'image' && backgroundSettings.image) {
|
|
202
|
-
baseStyles.backgroundImage = `url(${backgroundSettings.image})`;
|
|
203
|
-
baseStyles.backgroundSize = 'cover';
|
|
204
|
-
baseStyles.backgroundPosition = 'center';
|
|
205
|
-
baseStyles.backgroundAttachment = 'fixed';
|
|
255
|
+
}, []);
|
|
256
|
+
const handleSettingChange = useCallback(newSettings => {
|
|
257
|
+
if (actor) {
|
|
258
|
+
actor.send({
|
|
259
|
+
type: 'UISETTING_UPDATE',
|
|
260
|
+
value: newSettings
|
|
261
|
+
});
|
|
206
262
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
className: "flex flex-col h-screen bg-background font-sans relative",
|
|
263
|
+
}, [actor]);
|
|
264
|
+
return React__default.createElement("div", {
|
|
265
|
+
className: backgroundClasses,
|
|
211
266
|
ref: horizontalScrollRef,
|
|
212
|
-
style:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
267
|
+
style: backgroundStyle
|
|
268
|
+
}, deviceSettings?.header?.showHeader && !isSideMenuLayout && LAYOUT_ROOT != '/' && React__default.createElement(GlobalHeader, {
|
|
269
|
+
toggleSideMenu: toggleSideMenu,
|
|
270
|
+
settings: settings,
|
|
271
|
+
upperMenus: headerUpperMenus,
|
|
272
|
+
routeParams: memoizedRouteParams,
|
|
273
|
+
collapsed: collapsed,
|
|
274
|
+
location: location
|
|
275
|
+
}), LAYOUT_ROOT === '/' && deviceSettings?.header?.showHeader && React__default.createElement(MainHeader, {
|
|
276
|
+
scrolled: scrolled,
|
|
277
|
+
location: location,
|
|
278
|
+
menuData: memoizedMenuData,
|
|
279
|
+
settings: settings,
|
|
280
|
+
pageTitleInfo: pageTitleInfo,
|
|
281
|
+
searchOptionsShown: searchOptionsShown,
|
|
282
|
+
setSearchOptionsShown: setSearchOptionsShown,
|
|
283
|
+
authorities: authorities,
|
|
284
|
+
picture: picture,
|
|
285
|
+
componentVisibility: componentVisibility,
|
|
286
|
+
showMenu: showMenu,
|
|
287
|
+
toggleSideMenu: toggleSideMenu
|
|
288
|
+
}), React__default.createElement("div", {
|
|
289
|
+
className: "bg-background"
|
|
290
|
+
}, shouldShowSidebar && !isPerplexLayout && React__default.createElement("div", {
|
|
291
|
+
style: sideBarMarginTop ? {
|
|
292
|
+
marginTop: sideBarMarginTop
|
|
293
|
+
} : undefined
|
|
294
|
+
}, React__default.createElement(MainSidebar, {
|
|
295
|
+
isSideMenuOpen: isSideMenuOpen,
|
|
296
|
+
closeSideMenu: closeSideMenu,
|
|
297
|
+
menuData: memoizedMenuData,
|
|
298
|
+
collapsed: collapsed,
|
|
299
|
+
setCollapsed: setCollapsed,
|
|
300
|
+
routeParams: memoizedRouteParams,
|
|
301
|
+
settings: settings,
|
|
302
|
+
siderPinned: siderPinned,
|
|
303
|
+
setSiderPinned: setSiderPinned,
|
|
304
|
+
showHeader: showHeader,
|
|
305
|
+
menuHeaderRender: menuHeaderRender,
|
|
306
|
+
deviceSettings: deviceSettings,
|
|
307
|
+
isSideMenuLayout: isSideMenuLayout
|
|
308
|
+
})), shouldShowSidebar && isPerplexLayout && React__default.createElement("div", {
|
|
309
|
+
style: sideBarMarginTop ? {
|
|
310
|
+
marginTop: sideBarMarginTop
|
|
311
|
+
} : undefined
|
|
312
|
+
}, React__default.createElement(PerplexSidebar, {
|
|
313
|
+
isSideMenuOpen: isSideMenuOpen,
|
|
314
|
+
closeSideMenu: closeSideMenu,
|
|
315
|
+
menuData: memoizedMenuData,
|
|
316
|
+
collapsed: collapsed,
|
|
317
|
+
setCollapsed: setCollapsed,
|
|
318
|
+
routeParams: memoizedRouteParams,
|
|
319
|
+
settings: settings,
|
|
320
|
+
layoutSettings: layoutSettings,
|
|
321
|
+
menuHeaderRender: menuHeaderRender,
|
|
322
|
+
deviceSettings: deviceSettings,
|
|
323
|
+
siderPinned: siderPinned,
|
|
324
|
+
setSiderPinned: setSiderPinned,
|
|
325
|
+
actor: actor,
|
|
326
|
+
sideBarMarginTop: sideBarMarginTop,
|
|
327
|
+
showHeader: showHeader,
|
|
328
|
+
isSideMenuLayout: isSideMenuLayout,
|
|
329
|
+
authorities: authorities,
|
|
330
|
+
picture: picture
|
|
331
|
+
})), React__default.createElement("div", {
|
|
332
|
+
className: "flex flex-col flex-1 bg-background",
|
|
333
|
+
style: {
|
|
334
|
+
marginLeft: computedMarginLeft,
|
|
335
|
+
padding: LAYOUT_ROOT != '/' ? '24px' : '0px'
|
|
336
|
+
}
|
|
337
|
+
}, config.ENABLE_SETTING_DRAWER && React__default.createElement(SettingDrawer, {
|
|
338
|
+
primaryColor: primaryColor,
|
|
339
|
+
settings: settings,
|
|
340
|
+
onSettingChange: handleSettingChange,
|
|
341
|
+
actor: actor,
|
|
342
|
+
colorList: themeColors,
|
|
343
|
+
fullMenuData: fullMenuData,
|
|
344
|
+
location: location,
|
|
345
|
+
routePattern: props.routePattern
|
|
346
|
+
}), React__default.createElement("main", {
|
|
347
|
+
className: "relative"
|
|
348
|
+
}, searchOptionsShown && deviceSettings?.header?.searchBarOverlay && React__default.createElement("div", {
|
|
349
|
+
className: "fixed inset-0 bg-black bg-opacity-50 z-30 cursor-pointer",
|
|
350
|
+
onClick: e => {
|
|
351
|
+
e.stopPropagation();
|
|
352
|
+
setSearchOptionsShown(false);
|
|
353
|
+
}
|
|
354
|
+
}), React__default.createElement(Outlet, null)), getOverrideValue('footer.showFooter') && React__default.createElement("div", {
|
|
355
|
+
ref: refFooter,
|
|
356
|
+
className: footerFixed ? 'fixed bottom-0 w-full' : ''
|
|
357
|
+
}, React__default.createElement(FooterSlot, {
|
|
358
|
+
settings: settings,
|
|
359
|
+
active: footerActive
|
|
360
|
+
})))));
|
|
361
|
+
}export{BasicLayout,useHorizontalScroll};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"6mCAuBA;AACM,SAAU,mBAAmB,CAAC;AAChC,EAAA,WAAM;uBAES;AACX,EAAA;;AAEI,EAAA,MAAA,KAAA,GAAA,MAAM,EAAA;AACF,EAAA,SAAA,CAAA,MAAA;oBAAmB,CAAA,OAAO,IAAA,IAAA;;mBAG1B,GAAA,CAAA,IAAA;oBACA,IAAM,CAAA,EAAA;AAEN,QAAA,CAAA,CAAA,gBAAU;AAGV,QAAA,IAAA,MAAA,CAAA,OAAU,GAAC,EAAA,EAAA;qBACP,CAAA,IAAA,CAAA;;AAEJ,QAAA,IAAA,MAAA,CAAA,OAAU,GAAC,EAAA,EAAA;AACP,UAAA,WAAA,CAAA,KAAA,CAAA;;AAER,QAAA,IAAA,MAAE,CAAA,WAAA,GAAA,MAAA,CAAA,OAAA,IAAA,QAAA,CAAA,IAAA,CAAA,YAAA,EAAA;AAEF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A,CAAA,KAAA,CAAA;AACP,IAAA;AACA,EAAA,CAAA,EAAA,CAAA,YAAA,EAAA,UAAO,EAAA,YAAW,CAAA,CAAA;AACrB,EAAA,MAAA;;AAET,GAAA,GAAC,kBAEH,CAAA,CAAA;AAEF,IAAA,SACI,EAAA,eAAA;AAEK,IAAA,EAAA,EAAA,YAAA;AAUA,IAAA,eAAW,EAAA;;wBAoBP,GAAA,WAAsB,CAAA,MAAA;gBAEf,CAAA,aAAA,IAAA,CAAA,aAAY,CAAA;AAiBnB,EAAA,CAAA,EAAA,EAAA,CAAA;AAEO,EAAA,MAAA,mBAAA,GAAA,mBAAC,CAAc;AAwBvB,IAAA,WAAA;AAGQ,IAAA,qBAAA;;AAEH,GAAA,CAAA;AAEA;2BAYD,CAAA,IAAA,EAAA,iBAAM,GAAA,cAAoB,EAAA;AACrB,IAAA,OAAA,IAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,MAAA,CAAA,CAAA,GAAkB,KAAI,KAAA,GAAA,GAAA,GAAc,CAAE,mBAAQ,CAAA;;oCAKnC,CAAA,MAAA;AACJ,IAAA,iBAAA,CAAA,QAEP,CAAA,IAAA,CAAA;;qBAGJ,GAAA;AAEO,IAAA,iBAAA,CAAA,KAAA,CAAA;AAO5B,EAAC,CAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const defaultFooterDom:
|
|
2
|
+
export declare const defaultFooterDom: React.JSX.Element;
|
|
3
3
|
export declare const UserView: React.NamedExoticComponent<{
|
|
4
4
|
collapsed: boolean;
|
|
5
|
+
layoutSettings: any;
|
|
5
6
|
}>;
|
|
6
7
|
export declare const FooterSubMenuItemRender: React.NamedExoticComponent<{
|
|
7
8
|
item: any;
|
|
8
9
|
collapsed: boolean;
|
|
10
|
+
layoutSettings: any;
|
|
9
11
|
}>;
|
|
10
12
|
export declare const handleMenuPopup: () => void;
|
|
11
|
-
export declare const itemRender: (route: any, params: any, routes: any, paths: any) =>
|
|
13
|
+
export declare const itemRender: (route: any, params: any, routes: any, paths: any) => React.JSX.Element;
|
|
12
14
|
export declare const breadCrumbs: (routers?: any[]) => any[];
|
|
13
15
|
export declare const generateLightShade: (color: string, percent: number) => string;
|
|
14
16
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,gBAAgB,mBAwB5B,CAAC;AAEF,eAAO,MAAM,QAAQ;eAA2B,OAAO;oBAAkB,GAAG;EAyDlE,CAAC;AAEX,eAAO,MAAM,uBAAuB;UAAsB,GAAG;eAAa,OAAO;oBAAkB,GAAG;EAOrG,CAAC;AAEF,eAAO,MAAM,eAAe,YAU3B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,UAAK,EAAE,WAAM,EAAE,WAAM,EAAE,UAAK,sBAStD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,eAAY,UAUvC,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,EAAE,SAAS,MAAM,WAchE,CAAC"}
|