@admin-layout/tailwind-design-pro 12.0.16-alpha.9 → 12.0.16-alpha.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/es/menu.json +2 -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.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +16 -20
- 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 +220 -124
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +2 -0
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +16 -13
- 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 +9 -14
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.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 +38 -10
- 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 +54 -85
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +1 -1
- 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 +73 -6
- 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 +2 -4
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- 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 +69 -7
- 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 +330 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- 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 +246 -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 +467 -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 +279 -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 +332 -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 +29 -10
- 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.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js.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.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +4 -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.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +4 -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 -3
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +166 -416
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +7 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +30 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +3 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{CheckBoxTheme.js → components/CheckBoxTheme.js} +14 -5
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +7 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +82 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +3 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{InvitationSettings.js → components/InvitationSettings.js} +11 -7
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +3 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{LayoutChange.js → components/LayoutChange.js} +24 -17
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +20 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +119 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +3 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{NavigationsModes.js → components/NavigationsModes.js} +91 -40
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +3 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{RegionalSettings.js → components/RegionalSettings.js} +55 -178
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +12 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +69 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +4 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +25 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/{Switch/index.d.ts → components/Switch.d.ts} +2 -2
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{Switch/index.js → components/Switch.js} +1 -1
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +3 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/{ThemeColor.js → components/ThemeColor.js} +16 -4
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/{ThemeSelector.d.ts → components/ThemeSelector.d.ts} +1 -1
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -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 +119 -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 +243 -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 +76 -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 +10 -5
- 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.js +1 -1
- package/lib/components/typings.d.ts +20 -1
- 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/constants.js.map +1 -1
- 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 +10 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- 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 -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/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 +139 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/settingsMachine.test.d.ts +2 -0
- package/lib/machines/settingsMachine.test.d.ts.map +1 -0
- 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.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.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 +6 -6
- 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 -180
- 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 -176
- 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.map +0 -1
- package/lib/components/SettingDrawer/InvitationSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/InvitationSettings.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.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.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.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- 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.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- 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.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- /package/lib/components/SettingDrawer/{ThemeSelector.js → components/ThemeSelector.js} +0 -0
- /package/lib/components/SettingDrawer/{WebFontsSelector.js → components/WebFontsSelector.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingDrawer.js","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingDrawer.js","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"sourcesContent":[null],"names":[],"mappings":"uuDA4BM,SAAU,aAAa,CAAC,KAAyB,EAAA;AACnD,EAAA,MAAA;AAgBA,IAAA,eAAQ;IAER,WAAO;AACP,IAAA;AACA,IAAA,UAAM;AACN,IAAA,aAAM;IAEN,cAAQ;AACR,IAAA,KAAA;IACA,SAAS;IAET,QAAQ;IACR,QAAO;AACP,IAAA,QAAO;IACP,YAAO;IAEP;MACA,KAAM;QACN;IAEA,SAAA;AACA,IAAA;WAQI;;QAEA,iBAAe,GAAA,MAAA,CAAA,KAAA,CAAA;AAClB,EAAA,MAAE,MAAA,GAAA,MAAA,EAAA;QAEH,eAAkB,GAAA,MAAA,EAAA;;QAElB;AACA,IAAA;MACA,aAAe,EAAA;QAEf;AACA,IAAA;oBACW,CAAA,UAAA,CAAA;;QAEX,CAAA,IAAM,EAAA,OAAA,C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;cACV,CAAA,CAAA;AAED,EAAA,SAAA,CAAA;QACA,KAAA,EAAM;AAEN,MAAA,KAAA,CAAA;YACI,EAAC,8BAA0B;kBAC7B,EAAA;AAEF,OAAA,CAAA;;AAGI,EAAA,CAAA,EAAA,CAAA,eAAM,EAAA,KAAA,CAAA,CAAA;AACN;AACH,EAAA,SAAE,mBAAA,CAAA,GAAA,EAAA,KAAA,EAAA;IACP,MAAC,eAAA,GAAA,GAAA,KAAA,gBAAA,IAAA,GAAA,KAAA,sBAAA,IAAA,GAAA,KAAA,kBAAA,IAAA,GAAA,KAAA,aAAA,IAAA,GAAA,KAAA,cAAA,IAAA,GAAA,KAAA,YAAA,IAAA,GAAA,KAAA,sBAAA,IAAA,GAAA,KAAA,uBAAA,IAAA,GAAA,KAAA,sBAAA;AACD,IAAA,IAAA,eAAmB,EAAA;AAEnB,MAAA,iDACoB,EAAA;QAEpB,GAAO;;AAUiB,OAAA,CAAA;AACA,MAAA,KAAA,CAAA,IAAA,CAAA;AACA,QAAA,IAAA,EAAA,kBAAA;AACH,QAAA,KAAA,EAAA;AAqJzB,UAAC,CAAA,GAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ApplyToAllRoutesToggleProps {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
onChange: (checked: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function ApplyToAllRoutesToggle({ checked, onChange }: ApplyToAllRoutesToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ApplyToAllRoutesToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplyToAllRoutesToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/ApplyToAllRoutesToggle.tsx"],"names":[],"mappings":"AAGA,UAAU,2BAA2B;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,wBAAgB,sBAAsB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,2BAA2B,2CAsBxF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';function ApplyToAllRoutesToggle({
|
|
2
|
+
checked,
|
|
3
|
+
onChange
|
|
4
|
+
}) {
|
|
5
|
+
const {
|
|
6
|
+
t
|
|
7
|
+
} = useTranslation('settings');
|
|
8
|
+
return jsxs("div", {
|
|
9
|
+
className: "flex items-center justify-between",
|
|
10
|
+
children: [jsxs("div", {
|
|
11
|
+
children: [jsx("p", {
|
|
12
|
+
className: "text-sm text-black dark:text-white font-medium",
|
|
13
|
+
children: "Apply to All Routes"
|
|
14
|
+
}), jsx("p", {
|
|
15
|
+
className: "text-xs text-gray-600 dark:text-gray-400",
|
|
16
|
+
children: "When enabled, route-specific settings will apply to all routes instead of just the current route"
|
|
17
|
+
})]
|
|
18
|
+
}), jsxs("label", {
|
|
19
|
+
className: "relative inline-flex items-center cursor-pointer",
|
|
20
|
+
children: [jsx("input", {
|
|
21
|
+
type: "checkbox",
|
|
22
|
+
className: "sr-only peer",
|
|
23
|
+
checked: checked,
|
|
24
|
+
onChange: e => onChange(e.target.checked)
|
|
25
|
+
}), jsx("div", {
|
|
26
|
+
className: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"
|
|
27
|
+
})]
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
}export{ApplyToAllRoutesToggle};//# sourceMappingURL=ApplyToAllRoutesToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplyToAllRoutesToggle.js","sources":["../../../../src/components/SettingDrawer/components/ApplyToAllRoutesToggle.tsx"],"sourcesContent":[null],"names":[],"mappings":"6FAQgB,sBAAsB,CAAC;SACnC;AAEA,EAAA;AAmBJ,CAAC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/CheckBoxTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAwDrD,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CAsCvD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';const themelist = [{
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {getSettingValue}from'../../../utils/settingsUtils.js';const themelist = [{
|
|
2
2
|
key: 'light',
|
|
3
3
|
title: 'Light',
|
|
4
4
|
svg: jsxs("svg", {
|
|
@@ -93,8 +93,18 @@ function CheckBoxTheme(props) {
|
|
|
93
93
|
const {
|
|
94
94
|
list,
|
|
95
95
|
changeSetting,
|
|
96
|
-
settings
|
|
96
|
+
settings,
|
|
97
|
+
location,
|
|
98
|
+
routePattern,
|
|
99
|
+
applyToAllRoutes = false
|
|
97
100
|
} = props;
|
|
101
|
+
const {
|
|
102
|
+
isMobile
|
|
103
|
+
} = useMediaQuery();
|
|
104
|
+
const currentRoute = routePattern || location?.pathname || '/';
|
|
105
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
106
|
+
// Use getSettingValue to get the correct navTheme based on applyToAllRoutes
|
|
107
|
+
const navThemeValue = getSettingValue(settings, 'navTheme', applyToAllRoutes, currentRoute, deviceType, 'light');
|
|
98
108
|
return jsx("div", {
|
|
99
109
|
className: "flex flex-row gap-4",
|
|
100
110
|
children: themelist.map((themeItems, index) => {
|
|
@@ -105,10 +115,9 @@ function CheckBoxTheme(props) {
|
|
|
105
115
|
},
|
|
106
116
|
onClick: () => {
|
|
107
117
|
changeSetting('navTheme', themeItems.key);
|
|
108
|
-
changeSetting('primaryColor', settings?.primaryColor);
|
|
109
118
|
},
|
|
110
119
|
children: jsxs("div", {
|
|
111
|
-
children: [themeItems.svg,
|
|
120
|
+
children: [themeItems.svg, navThemeValue === themeItems.key && jsx("svg", {
|
|
112
121
|
className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500",
|
|
113
122
|
viewBox: "0 0 24 24",
|
|
114
123
|
fill: "currentColor",
|
|
@@ -120,4 +129,4 @@ function CheckBoxTheme(props) {
|
|
|
120
129
|
}, `themeItem_${index}`);
|
|
121
130
|
})
|
|
122
131
|
});
|
|
123
|
-
}export{CheckBoxTheme
|
|
132
|
+
}export{CheckBoxTheme};//# sourceMappingURL=CheckBoxTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckBoxTheme.js","sources":["../../../../src/components/SettingDrawer/components/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"wQAKA,MAAM,SAAS,GAAG,CAAA;AACd,EAAA,GAAA,EAAA,OAAA;AACI,EAAA,KAAA,EAAA,OAAK;AACL,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAE,EAAA;SACP,EAAG,IACC;AASP,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAY;AACf,IAAA,QAAA,GAAOC,GAAA,CAAA,MAAU,EAAA;cAEb,EAAAA,GAAA,CAAA,QAAK,EAAA;AAcZ,QAAA,EAAA,EAAA,YAAA;AACD,QAAA,CAAA,EAAA,MAAA;AACI,QAAA,CAAA,EAAG,MAAE;AACL,QAAA,KAAK,EAAE,MAAM;QACb,MACI,EAAA,MAAA;AAWP,QAAA,QAAA,EAAAA,GAAA,CAAA,cAAA,EAAA;UACH,EAAA,EAAA,GAAA;AAEF,UAAM,EAAA,EAAA,GAAU;AACZ,UAAM,YAAQ,EAAA,GAAA;AACd,UAAM,UAAU,EAAE,SAAG;UACf,YAAY;SAClB;OAEA;AACA,KAAA,CAAA,EAAAA;AACA,MAAA,CAAA,EAAA,GACI;AAEQ,MAAA,CAAA,EAAA,GAAA;AAMY,MAAA,KAAA,EAAA,IAAA;AACJ,MAAA,MAAA,EAAA;QAiBZ,EAAE,GACA;AAEd,MAAC,IAAA,EAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface DeviceTabsProps {
|
|
2
|
+
activeTab: 'desktop' | 'mobile';
|
|
3
|
+
onTabChange: (tab: 'desktop' | 'mobile') => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function DeviceTabs({ activeTab, onTabChange }: DeviceTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=DeviceTabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/DeviceTabs.tsx"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACrB,SAAS,EAAE,SAAS,GAAG,QAAQ,CAAC;IAChC,WAAW,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,QAAQ,KAAK,IAAI,CAAC;CACpD;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,eAAe,2CAgErE"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {useTranslation}from'react-i18next';function DeviceTabs({
|
|
2
|
+
activeTab,
|
|
3
|
+
onTabChange
|
|
4
|
+
}) {
|
|
5
|
+
const {
|
|
6
|
+
t
|
|
7
|
+
} = useTranslation('settings');
|
|
8
|
+
return jsx("div", {
|
|
9
|
+
className: "mt-4",
|
|
10
|
+
children: jsxs("div", {
|
|
11
|
+
className: "flex mb-4",
|
|
12
|
+
children: [jsx("button", {
|
|
13
|
+
className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-l-lg border border-r-0 border-gray-300 ${activeTab === 'desktop' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700'}`,
|
|
14
|
+
onClick: () => onTabChange('desktop'),
|
|
15
|
+
children: jsxs("span", {
|
|
16
|
+
className: "flex items-center justify-center",
|
|
17
|
+
children: [jsxs("svg", {
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
width: "16",
|
|
20
|
+
height: "16",
|
|
21
|
+
viewBox: "0 0 24 24",
|
|
22
|
+
fill: "none",
|
|
23
|
+
stroke: "currentColor",
|
|
24
|
+
strokeWidth: "2",
|
|
25
|
+
strokeLinecap: "round",
|
|
26
|
+
strokeLinejoin: "round",
|
|
27
|
+
className: "mr-1",
|
|
28
|
+
children: [jsx("rect", {
|
|
29
|
+
x: "2",
|
|
30
|
+
y: "3",
|
|
31
|
+
width: "20",
|
|
32
|
+
height: "14",
|
|
33
|
+
rx: "2",
|
|
34
|
+
ry: "2"
|
|
35
|
+
}), jsx("line", {
|
|
36
|
+
x1: "8",
|
|
37
|
+
y1: "21",
|
|
38
|
+
x2: "16",
|
|
39
|
+
y2: "21"
|
|
40
|
+
}), jsx("line", {
|
|
41
|
+
x1: "12",
|
|
42
|
+
y1: "17",
|
|
43
|
+
x2: "12",
|
|
44
|
+
y2: "21"
|
|
45
|
+
})]
|
|
46
|
+
}), t('desktop_tab')]
|
|
47
|
+
})
|
|
48
|
+
}), jsx("button", {
|
|
49
|
+
className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-r-lg border border-gray-300 ${activeTab === 'mobile' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700'}`,
|
|
50
|
+
onClick: () => onTabChange('mobile'),
|
|
51
|
+
children: jsxs("span", {
|
|
52
|
+
className: "flex items-center justify-center",
|
|
53
|
+
children: [jsxs("svg", {
|
|
54
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
55
|
+
width: "16",
|
|
56
|
+
height: "16",
|
|
57
|
+
viewBox: "0 0 24 24",
|
|
58
|
+
fill: "none",
|
|
59
|
+
stroke: "currentColor",
|
|
60
|
+
strokeWidth: "2",
|
|
61
|
+
strokeLinecap: "round",
|
|
62
|
+
strokeLinejoin: "round",
|
|
63
|
+
className: "mr-1",
|
|
64
|
+
children: [jsx("rect", {
|
|
65
|
+
x: "5",
|
|
66
|
+
y: "2",
|
|
67
|
+
width: "14",
|
|
68
|
+
height: "20",
|
|
69
|
+
rx: "2",
|
|
70
|
+
ry: "2"
|
|
71
|
+
}), jsx("line", {
|
|
72
|
+
x1: "12",
|
|
73
|
+
y1: "18",
|
|
74
|
+
x2: "12",
|
|
75
|
+
y2: "18"
|
|
76
|
+
})]
|
|
77
|
+
}), t('mobile_tab')]
|
|
78
|
+
})
|
|
79
|
+
})]
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}export{DeviceTabs};//# sourceMappingURL=DeviceTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceTabs.js","sources":["../../../../src/components/SettingDrawer/components/DeviceTabs.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"6FAQgB,UAAU,CAAC;WACjB;AAEN,EAAA;AAMwB,CAAA,EAAA;AACA,EAAA,MAAA;AA2BA,IAAA;+BACE,CAAA;AA0B9B,EAAC,OAAAA,GAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/InvitationSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAItD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CAsEnE"}
|
package/lib/components/SettingDrawer/{InvitationSettings.js → components/InvitationSettings.js}
RENAMED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {getSettingValue}from'../../../utils/settingsUtils.js';function InvitationSettings(props) {
|
|
2
2
|
const {
|
|
3
3
|
settings,
|
|
4
4
|
changeSetting,
|
|
5
|
-
location
|
|
5
|
+
location,
|
|
6
|
+
routePattern,
|
|
7
|
+
applyToAllRoutes = false
|
|
6
8
|
} = props;
|
|
7
9
|
const {
|
|
8
10
|
t
|
|
@@ -10,10 +12,12 @@ import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18ne
|
|
|
10
12
|
const {
|
|
11
13
|
isMobile
|
|
12
14
|
} = useMediaQuery();
|
|
13
|
-
const currentRoute = location?.pathname || '/';
|
|
14
|
-
|
|
15
|
-
//
|
|
16
|
-
const invitations =
|
|
15
|
+
const currentRoute = routePattern || location?.pathname || '/';
|
|
16
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
17
|
+
// Get organization invitations using the utility function
|
|
18
|
+
const invitations = React.useMemo(() => {
|
|
19
|
+
return getSettingValue(settings, 'organization.members.invitations', applyToAllRoutes, currentRoute, deviceType, {});
|
|
20
|
+
}, [settings, applyToAllRoutes, currentRoute, deviceType]);
|
|
17
21
|
const handleInvitationChange = (key, value) => {
|
|
18
22
|
if (!changeSetting) return;
|
|
19
23
|
const newInvitations = {
|
|
@@ -76,4 +80,4 @@ import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18ne
|
|
|
76
80
|
})]
|
|
77
81
|
})]
|
|
78
82
|
});
|
|
79
|
-
}export{InvitationSettings
|
|
83
|
+
}export{InvitationSettings};//# sourceMappingURL=InvitationSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationSettings.js","sources":["../../../../src/components/SettingDrawer/components/InvitationSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"kWAOM,SAAU,kBAAkB,CAAC,KAAiC,EAAA;AAChE,EAAA,MAAA;IACA,QAAQ;AACR,IAAA,aAAQ;IACR,QAAM;IACN,YAAM;IAEN,gBAAA,GAAA;AACA,GAAA,GAAA;AACI,EAAA,MAAA;IAQJ;AAEA,GAAA,GAAA,0BAA4B;AACxB,EAAA,MAAA;;AACA,GAAA,GAAA;AACI,EAAA,MAAA,YAAG,GAAA,YAAW,IAAA,QAAA,EAAA,QAAA,IAAA,GAAA;kBACT,GAAE,QAAK,GAAA,QAAA,GAAA,SAAA;;AAGhB,EAAA,MAAA,WAAA,GAAc,KAAA,CAAA,OAAA,CAAA,MAAA;AAClB,IAAA,OAAE,eAAA,CAAA,QAAA,EAAA,kCAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,EAAA,CAAA;AAEF,EAAA,CAAA,EAAA,CAAA,0BAA2B,EAAA,YAAU,EAAA,YAAmB;QAExD,sBACI,GAAA,CAAA,GAAA,EACI,KAAA,KAAA;AAqCZ,IAAC,IAAA,CAAA,aAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/LayoutChange.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAItD,wBAAgB,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CAwI7D"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useMemo}from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {getSettingValue}from'../../../utils/settingsUtils.js';function LayoutChange(props) {
|
|
2
2
|
const {
|
|
3
3
|
settings,
|
|
4
4
|
changeSetting,
|
|
5
|
-
location
|
|
5
|
+
location,
|
|
6
|
+
routePattern,
|
|
7
|
+
applyToAllRoutes = false
|
|
6
8
|
} = props;
|
|
7
9
|
const {
|
|
8
10
|
t
|
|
@@ -10,19 +12,24 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
10
12
|
const {
|
|
11
13
|
isMobile
|
|
12
14
|
} = useMediaQuery();
|
|
13
|
-
const currentRoute = location?.pathname || '/';
|
|
15
|
+
const currentRoute = routePattern || location?.pathname || '/';
|
|
14
16
|
const {
|
|
15
17
|
navTheme
|
|
16
18
|
} = settings || {};
|
|
17
|
-
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
18
19
|
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
19
|
-
|
|
20
|
+
// Get layout values using the utility function
|
|
21
|
+
const layoutValues = useMemo(() => ({
|
|
22
|
+
fixedHeader: getSettingValue(settings, 'fixedHeader', applyToAllRoutes, currentRoute, deviceType, true),
|
|
23
|
+
fixedSidebar: getSettingValue(settings, 'fixedSidebar', applyToAllRoutes, currentRoute, deviceType, true),
|
|
24
|
+
splitMenus: getSettingValue(settings, 'splitMenus', applyToAllRoutes, currentRoute, deviceType, false),
|
|
25
|
+
upperMenuDividerName: getSettingValue(settings, 'upperMenuDividerName', applyToAllRoutes, currentRoute, deviceType, 'Navigation'),
|
|
26
|
+
middleMenuDividerName: getSettingValue(settings, 'middleMenuDividerName', applyToAllRoutes, currentRoute, deviceType, 'Dashboard'),
|
|
27
|
+
lowerMenuDividerName: getSettingValue(settings, 'lowerMenuDividerName', applyToAllRoutes, currentRoute, deviceType, 'Admin')
|
|
28
|
+
}), [settings, applyToAllRoutes, currentRoute, deviceType]);
|
|
20
29
|
const handleLayoutChange = (key, value) => {
|
|
21
30
|
if (!changeSetting) return;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[key]: value
|
|
25
|
-
});
|
|
31
|
+
// Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
|
|
32
|
+
changeSetting(key, value);
|
|
26
33
|
};
|
|
27
34
|
const textColor = {
|
|
28
35
|
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
@@ -37,7 +44,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
37
44
|
}), jsx("div", {
|
|
38
45
|
className: "flex-grow"
|
|
39
46
|
}), jsx(Switch, {
|
|
40
|
-
value:
|
|
47
|
+
value: layoutValues.fixedHeader,
|
|
41
48
|
onChange: checked => handleLayoutChange('fixedHeader', checked)
|
|
42
49
|
})]
|
|
43
50
|
}), jsxs("div", {
|
|
@@ -49,7 +56,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
49
56
|
}), jsx("div", {
|
|
50
57
|
className: "flex-grow"
|
|
51
58
|
}), jsx(Switch, {
|
|
52
|
-
value:
|
|
59
|
+
value: layoutValues.fixedSidebar,
|
|
53
60
|
onChange: checked => handleLayoutChange('fixedSidebar', checked)
|
|
54
61
|
})]
|
|
55
62
|
}), jsxs("div", {
|
|
@@ -61,10 +68,10 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
61
68
|
}), jsx("div", {
|
|
62
69
|
className: "flex-grow"
|
|
63
70
|
}), jsx(Switch, {
|
|
64
|
-
value:
|
|
71
|
+
value: layoutValues.splitMenus,
|
|
65
72
|
onChange: checked => handleLayoutChange('splitMenus', checked)
|
|
66
73
|
})]
|
|
67
|
-
}),
|
|
74
|
+
}), layoutValues.splitMenus && jsxs(Fragment, {
|
|
68
75
|
children: [jsx("div", {
|
|
69
76
|
className: "mt-6 mb-2",
|
|
70
77
|
children: jsx("p", {
|
|
@@ -83,7 +90,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
83
90
|
}), jsx("input", {
|
|
84
91
|
type: "text",
|
|
85
92
|
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
86
|
-
value:
|
|
93
|
+
value: layoutValues.upperMenuDividerName,
|
|
87
94
|
onChange: e => {
|
|
88
95
|
handleLayoutChange('upperMenuDividerName', e.target.value);
|
|
89
96
|
}
|
|
@@ -97,7 +104,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
97
104
|
}), jsx("input", {
|
|
98
105
|
type: "text",
|
|
99
106
|
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
100
|
-
value:
|
|
107
|
+
value: layoutValues.middleMenuDividerName,
|
|
101
108
|
onChange: e => {
|
|
102
109
|
handleLayoutChange('middleMenuDividerName', e.target.value);
|
|
103
110
|
}
|
|
@@ -111,7 +118,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
111
118
|
}), jsx("input", {
|
|
112
119
|
type: "text",
|
|
113
120
|
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
114
|
-
value:
|
|
121
|
+
value: layoutValues.lowerMenuDividerName,
|
|
115
122
|
onChange: e => {
|
|
116
123
|
handleLayoutChange('lowerMenuDividerName', e.target.value);
|
|
117
124
|
}
|
|
@@ -120,4 +127,4 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from're
|
|
|
120
127
|
})]
|
|
121
128
|
})]
|
|
122
129
|
});
|
|
123
|
-
}export{LayoutChange
|
|
130
|
+
}export{LayoutChange};//# sourceMappingURL=LayoutChange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutChange.js","sources":["../../../../src/components/SettingDrawer/components/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"2WAQM,SAAU,YAAY,CAAC,KAAiC,EAAA;AAC1D,EAAA,MAAA;IACA,QAAQ;AACR,IAAA,aAAQ;IACR,QAAM;AACN,IAAA,YAAQ;AACR,IAAA,gBAAgB,GAAG;MAEnB,KAAA;AACA,EAAA,MAAA;AAEQ,IAAA;AACA,GAAA,G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}
|
|
10
|
+
interface MenuVisibilitySettingsProps {
|
|
11
|
+
fullMenuData: MenuItem[];
|
|
12
|
+
settings: {
|
|
13
|
+
hiddenMenuKeys?: string[];
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
changeSetting: (key: string, value: any) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function MenuVisibilitySettings({ fullMenuData, settings, changeSetting }: MenuVisibilitySettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=MenuVisibilitySettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuVisibilitySettings.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/MenuVisibilitySettings.tsx"],"names":[],"mappings":"AAOA,UAAU,QAAQ;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,UAAU,2BAA2B;IACjC,YAAY,EAAE,QAAQ,EAAE,CAAC;IACzB,QAAQ,EAAE;QACN,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACpD;AA0DD,wBAAgB,sBAAsB,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,2BAA2B,2CAqF5G"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useState,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';// all keys included now ['usermenu', 'topmenu']
|
|
2
|
+
const EXCLUDED_MENU_KEYS = [];
|
|
3
|
+
const MENU_POSITIONS = ['UPPER', 'MIDDLE', 'LOWER', 'BOTTOM'];
|
|
4
|
+
// Helper functions
|
|
5
|
+
function getDisplayName(item, t) {
|
|
6
|
+
if (item.tab) return item.tab;
|
|
7
|
+
if (item.name?.startsWith('menu.')) {
|
|
8
|
+
const parts = item.name.split('.');
|
|
9
|
+
return parts.length > 1 ? parts[parts.length - 1].charAt(0).toUpperCase() + parts[parts.length - 1].slice(1) : item.name;
|
|
10
|
+
}
|
|
11
|
+
return t(item.name) || item.name;
|
|
12
|
+
}
|
|
13
|
+
function toggleMenuItem(itemKey, hiddenMenuKeys, changeSetting) {
|
|
14
|
+
const uniqueKeys = new Set(hiddenMenuKeys);
|
|
15
|
+
uniqueKeys.has(itemKey) ? uniqueKeys.delete(itemKey) : uniqueKeys.add(itemKey);
|
|
16
|
+
changeSetting('hiddenMenuKeys', Array.from(uniqueKeys));
|
|
17
|
+
}
|
|
18
|
+
function renderMenuItems(items, indent, hiddenMenuKeys, getDisplayNameFn, toggleMenuItemFn) {
|
|
19
|
+
return items.map(item => {
|
|
20
|
+
const isVisible = !hiddenMenuKeys.includes(item.key);
|
|
21
|
+
const displayName = getDisplayNameFn(item);
|
|
22
|
+
return jsxs("div", {
|
|
23
|
+
children: [jsxs("div", {
|
|
24
|
+
className: "flex items-center py-0.5",
|
|
25
|
+
children: [jsx("input", {
|
|
26
|
+
type: "checkbox",
|
|
27
|
+
id: `menu-item-${item.key}`,
|
|
28
|
+
className: "mr-2 h-3 w-3 rounded border-gray-300 dark:border-gray-600 focus:ring-primary dark:focus:ring-primary bg-white dark:bg-gray-700 accent-primary",
|
|
29
|
+
checked: isVisible,
|
|
30
|
+
onChange: () => toggleMenuItemFn(item.key)
|
|
31
|
+
}), jsx("label", {
|
|
32
|
+
htmlFor: `menu-item-${item.key}`,
|
|
33
|
+
className: "text-xs text-black dark:text-white cursor-pointer flex-1",
|
|
34
|
+
style: {
|
|
35
|
+
paddingLeft: `${indent * 12}px`
|
|
36
|
+
},
|
|
37
|
+
children: displayName
|
|
38
|
+
})]
|
|
39
|
+
}), isVisible && item.children && item.children.length > 0 && jsx("div", {
|
|
40
|
+
className: "ml-6",
|
|
41
|
+
children: renderMenuItems(item.children, indent + 1, hiddenMenuKeys, getDisplayNameFn, toggleMenuItemFn)
|
|
42
|
+
})]
|
|
43
|
+
}, item.key);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function MenuVisibilitySettings({
|
|
47
|
+
fullMenuData,
|
|
48
|
+
settings,
|
|
49
|
+
changeSetting
|
|
50
|
+
}) {
|
|
51
|
+
const {
|
|
52
|
+
t
|
|
53
|
+
} = useTranslation('settings');
|
|
54
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
55
|
+
// Get deduplicated hidden menu keys
|
|
56
|
+
const hiddenMenuKeys = useMemo(() => {
|
|
57
|
+
return settings.hiddenMenuKeys ? Array.from(new Set(settings.hiddenMenuKeys)) : [];
|
|
58
|
+
}, [settings.hiddenMenuKeys]);
|
|
59
|
+
// Organize menu items by position
|
|
60
|
+
const allMenuItems = useMemo(() => {
|
|
61
|
+
const categories = [];
|
|
62
|
+
if (fullMenuData?.length) {
|
|
63
|
+
MENU_POSITIONS.forEach(position => {
|
|
64
|
+
const positionItems = fullMenuData.filter(item => item.position === position && item.key && !EXCLUDED_MENU_KEYS.includes(item.key));
|
|
65
|
+
categories.push(...positionItems);
|
|
66
|
+
});
|
|
67
|
+
const itemsWithoutPosition = fullMenuData.filter(item => !item.position && item.key && !EXCLUDED_MENU_KEYS.includes(item.key));
|
|
68
|
+
categories.push(...itemsWithoutPosition);
|
|
69
|
+
}
|
|
70
|
+
return categories;
|
|
71
|
+
}, [fullMenuData]);
|
|
72
|
+
// Create bound functions with current dependencies
|
|
73
|
+
const boundGetDisplayName = useCallback(item => getDisplayName(item, t), [t]);
|
|
74
|
+
const boundToggleMenuItem = useCallback(itemKey => toggleMenuItem(itemKey, hiddenMenuKeys, changeSetting), [hiddenMenuKeys, changeSetting]);
|
|
75
|
+
// Memoize rendered menu items to prevent unnecessary JSX creation
|
|
76
|
+
const renderedMenuItems = useMemo(() => {
|
|
77
|
+
return renderMenuItems(allMenuItems, 0, hiddenMenuKeys, boundGetDisplayName, boundToggleMenuItem);
|
|
78
|
+
}, [allMenuItems, hiddenMenuKeys, boundGetDisplayName, boundToggleMenuItem]);
|
|
79
|
+
return jsxs("div", {
|
|
80
|
+
className: "space-y-4",
|
|
81
|
+
children: [jsx("div", {
|
|
82
|
+
className: "flex items-center mb-2",
|
|
83
|
+
children: jsxs("button", {
|
|
84
|
+
onClick: () => setIsExpanded(!isExpanded),
|
|
85
|
+
className: "flex items-center gap-2 hover:opacity-80 transition-all duration-200",
|
|
86
|
+
children: [jsx("svg", {
|
|
87
|
+
className: `w-4 h-4 transition-transform duration-300 ease-in-out ${isExpanded ? 'rotate-180' : ''}`,
|
|
88
|
+
fill: "none",
|
|
89
|
+
stroke: "currentColor",
|
|
90
|
+
viewBox: "0 0 24 24",
|
|
91
|
+
children: jsx("path", {
|
|
92
|
+
strokeLinecap: "round",
|
|
93
|
+
strokeLinejoin: "round",
|
|
94
|
+
strokeWidth: 2,
|
|
95
|
+
d: "M19 9l-7 7-7-7"
|
|
96
|
+
})
|
|
97
|
+
}), jsx("p", {
|
|
98
|
+
className: "text-md font-medium text-black dark:text-white",
|
|
99
|
+
children: t('menu_visibility.title') || 'Menu Visibility'
|
|
100
|
+
})]
|
|
101
|
+
})
|
|
102
|
+
}), jsx("div", {
|
|
103
|
+
className: `grid transition-all duration-300 ease-in-out ${isExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`,
|
|
104
|
+
children: jsx("div", {
|
|
105
|
+
className: "overflow-hidden",
|
|
106
|
+
children: jsx("div", {
|
|
107
|
+
className: "ml-4 mb-4 border-l-2 border-gray-200 dark:border-gray-600 pl-4",
|
|
108
|
+
children: jsx("div", {
|
|
109
|
+
className: "space-y-2",
|
|
110
|
+
children: allMenuItems.length === 0 ? jsx("div", {
|
|
111
|
+
className: "text-center text-gray-500 dark:text-gray-400 py-4",
|
|
112
|
+
children: t('menu_visibility.no_items') || 'No menu items found'
|
|
113
|
+
}) : renderedMenuItems
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
118
|
+
});
|
|
119
|
+
}export{MenuVisibilitySettings};//# sourceMappingURL=MenuVisibilitySettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuVisibilitySettings.js","sources":["../../../../src/components/SettingDrawer/components/MenuVisibilitySettings.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"qIAGA;AACA,MAAM,kBAAkB,GAAG,EAAE;AAC7B,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;AAqBtE;AACA,SAAS,cAAc,CAAC,IAAc,EAAE,CAA0B,EAAA;MAC9D,IAAI,CAAA,GAAK,EAAG,OAAA,IAAA,CAAA,GAAA;UAAE,CAAA,IAAO,EAAA,UAAS,CAAA,OAAA,CAAA,EAAA;IAC9B,MAAI,KAAK,GAAI,eAAa,CAAA,GAAO,CAAC;WAC9B,KAAM,CAAA,MAAQ,GAAI,CAAC,GAAA,KAAK,CAAA,KAAS,CAAC,MAAC,GAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,WAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA,IAAA;AACnC,EAAA;AACI,EAAA,OAAA,CAAA,CAAA,IAAE,CAAA,IAAM,CAAA,IAAK,IAAC,CAAA,IAAM;AACpB;SACP,cAAA,CAAA,OAAA,EAAA,cAAA,EAAA,aAAA,EAAA;QAC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A,CAAA,KAAA,EAAA;AAChC,QAAA,SAAA,EAAA,MAAM;AAGN,QAAA,QAAA,EAAA,eAAgB,CAAA,IAAG,CAAA,QAAA,EAAc,MAAC,GAAA,CAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,gBAAA;AACtC,OAAA,CAAA;AAEA,KAAA,EAAA,IAAA,CAAA,GAAA,CAAA;AAGA,EAAA,CAAA,CAAA;;AAEJ,+BAAkB,CAAA;AACtB,EAAA,YAAI;UAEJ;;;QAOA;AACA,IAAA;AACI,GAAA,GAAA,cAAO,CAAA,UAAgB,CAAA;QACvB,CAAA,UAAA,EAAY,aAAE,CAAA,GAAgB,QAAA,CAAA,KAAA,CAAA;AAElC;AA4CJ,EAAC,MAAA,cAAA,GAAA,OAAA,CAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NavMenuSelectorProps } from '../utils/types';
|
|
2
|
+
export declare function NavigationModes({ changeSetting, settings, location, routePattern, applyToAllRoutes, }: NavMenuSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=NavigationsModes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationsModes.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/NavigationsModes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAkFtD,wBAAgB,eAAe,CAAC,EAC5B,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAwB,GAC3B,EAAE,oBAAoB,2CA+FtB"}
|