@admin-layout/tailwind-design-pro 12.0.16-alpha.9 → 12.0.16-alpha.91

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.
Files changed (260) hide show
  1. package/lib/cdm-locales/en/menu.json +2 -1
  2. package/lib/cdm-locales/es/menu.json +2 -1
  3. package/lib/cdm-locales/index.d.ts +2 -0
  4. package/lib/cdm-locales/index.d.ts.map +1 -0
  5. package/lib/cdm-locales/index.ts +1 -0
  6. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  7. package/lib/components/LanguageMenu/LanguageMenu.js +16 -20
  8. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  9. package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
  10. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  11. package/lib/components/Layout/BasicLayout/index.js +220 -124
  12. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  13. package/lib/components/Layout/BasicLayout/utils.d.ts +2 -0
  14. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  15. package/lib/components/Layout/BasicLayout/utils.js +16 -13
  16. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  17. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  18. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +9 -14
  19. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  20. package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
  21. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  22. package/lib/components/Layout/GlobalHeader/Header.js +38 -10
  23. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  24. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
  25. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
  26. package/lib/components/Layout/GlobalHeader/MainHeader.js +54 -85
  27. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
  28. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +1 -1
  29. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
  31. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.js +73 -6
  33. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  34. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
  35. package/lib/components/Layout/GlobalHeader/RightMenu.js +2 -4
  36. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
  37. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
  38. package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
  39. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
  40. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
  41. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  42. package/lib/components/Layout/ProTailwindLayout.js +69 -7
  43. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  44. package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
  45. package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
  46. package/lib/components/Layout/Sidebar/BottomMenu.js +330 -0
  47. package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
  48. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
  50. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  51. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  52. package/lib/components/Layout/Sidebar/MainSidebar.js +246 -0
  53. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  54. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
  55. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  56. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +467 -0
  57. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  58. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
  59. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  60. package/lib/components/Layout/Sidebar/PerplexSidebar.js +279 -0
  61. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  62. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  63. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  64. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +332 -0
  65. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  66. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  67. package/lib/components/Layout/TailwindLayout.js +29 -10
  68. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  69. package/lib/components/Layout/getPageTitle.js.map +1 -1
  70. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
  71. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
  73. package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
  74. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
  75. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
  76. package/lib/components/Layout/slot-fill/Logo.d.ts +4 -0
  77. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  78. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  79. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  80. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
  81. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +4 -0
  82. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  83. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  84. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  85. package/lib/components/Layout/slot-fill/index.d.ts +2 -0
  86. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  87. package/lib/components/Layout/util.js +1 -1
  88. package/lib/components/Layout/util.js.map +1 -1
  89. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -3
  90. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  91. package/lib/components/SettingDrawer/SettingDrawer.js +166 -416
  92. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  93. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +7 -0
  94. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
  95. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +30 -0
  96. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
  97. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +3 -0
  98. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
  99. package/lib/components/SettingDrawer/{CheckBoxTheme.js → components/CheckBoxTheme.js} +14 -5
  100. package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
  101. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +7 -0
  102. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
  103. package/lib/components/SettingDrawer/components/DeviceTabs.js +82 -0
  104. package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
  105. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +3 -0
  106. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
  107. package/lib/components/SettingDrawer/{InvitationSettings.js → components/InvitationSettings.js} +11 -7
  108. package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
  109. package/lib/components/SettingDrawer/components/LayoutChange.d.ts +3 -0
  110. package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
  111. package/lib/components/SettingDrawer/{LayoutChange.js → components/LayoutChange.js} +24 -17
  112. package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
  113. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +20 -0
  114. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
  115. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +119 -0
  116. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
  117. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +3 -0
  118. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
  119. package/lib/components/SettingDrawer/{NavigationsModes.js → components/NavigationsModes.js} +91 -40
  120. package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
  121. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +3 -0
  122. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
  123. package/lib/components/SettingDrawer/{RegionalSettings.js → components/RegionalSettings.js} +55 -178
  124. package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
  125. package/lib/components/SettingDrawer/components/SettingsActions.d.ts +12 -0
  126. package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
  127. package/lib/components/SettingDrawer/components/SettingsActions.js +69 -0
  128. package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
  129. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +4 -0
  130. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
  131. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +25 -0
  132. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
  133. package/lib/components/SettingDrawer/{Switch/index.d.ts → components/Switch.d.ts} +2 -2
  134. package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
  135. package/lib/components/SettingDrawer/{Switch/index.js → components/Switch.js} +1 -1
  136. package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
  137. package/lib/components/SettingDrawer/components/ThemeColor.d.ts +3 -0
  138. package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
  139. package/lib/components/SettingDrawer/{ThemeColor.js → components/ThemeColor.js} +16 -4
  140. package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
  141. package/lib/components/SettingDrawer/{ThemeSelector.d.ts → components/ThemeSelector.d.ts} +1 -1
  142. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
  143. package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
  144. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +3 -0
  145. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
  146. package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
  147. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
  148. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
  149. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +119 -0
  150. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
  151. package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
  152. package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
  153. package/lib/components/SettingDrawer/utils/constants.js +77 -0
  154. package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
  155. package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
  156. package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
  157. package/lib/components/SettingDrawer/utils/helper.js +243 -0
  158. package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
  159. package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
  160. package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
  161. package/lib/components/SettingDrawer/utils/transformers.js +76 -0
  162. package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
  163. package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
  164. package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
  165. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +10 -5
  166. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  167. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  168. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  169. package/lib/components/index.js +1 -1
  170. package/lib/components/typings.d.ts +20 -1
  171. package/lib/components/typings.d.ts.map +1 -1
  172. package/lib/compute.d.ts.map +1 -1
  173. package/lib/compute.js +10 -2
  174. package/lib/compute.js.map +1 -1
  175. package/lib/config/constants.js.map +1 -1
  176. package/lib/config/env-config.d.ts +3 -0
  177. package/lib/config/env-config.d.ts.map +1 -1
  178. package/lib/config/env-config.js +10 -0
  179. package/lib/config/env-config.js.map +1 -1
  180. package/lib/helpers/DynamicIcon.js.map +1 -1
  181. package/lib/hooks/useMediaQuery.js.map +1 -1
  182. package/lib/hooks/useScrollThreshold.js.map +1 -1
  183. package/lib/hooks/useTailwindTheme.js +82 -0
  184. package/lib/hooks/useTailwindTheme.js.map +1 -0
  185. package/lib/icons.d.ts +2 -0
  186. package/lib/icons.d.ts.map +1 -1
  187. package/lib/icons.js +4 -2
  188. package/lib/icons.js.map +1 -1
  189. package/lib/index.d.ts +1 -0
  190. package/lib/index.d.ts.map +1 -1
  191. package/lib/index.js +1 -1
  192. package/lib/index.js.map +1 -1
  193. package/lib/machines/selectors.d.ts +118 -0
  194. package/lib/machines/selectors.d.ts.map +1 -0
  195. package/lib/machines/settingsMachine.d.ts +25 -2
  196. package/lib/machines/settingsMachine.d.ts.map +1 -1
  197. package/lib/machines/settingsMachine.js +139 -168
  198. package/lib/machines/settingsMachine.js.map +1 -1
  199. package/lib/machines/settingsMachine.test.d.ts +2 -0
  200. package/lib/machines/settingsMachine.test.d.ts.map +1 -0
  201. package/lib/machines/types.d.ts +107 -9
  202. package/lib/machines/types.d.ts.map +1 -1
  203. package/lib/machines/types.js.map +1 -1
  204. package/lib/module.js.map +1 -1
  205. package/lib/redux/searchReducer.js.map +1 -1
  206. package/lib/routes.json +9 -1
  207. package/lib/tailwindConfig.js.map +1 -1
  208. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  209. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  210. package/lib/utils/configOverrides.d.ts +213 -0
  211. package/lib/utils/configOverrides.d.ts.map +1 -0
  212. package/lib/utils/configOverrides.js +91 -0
  213. package/lib/utils/configOverrides.js.map +1 -0
  214. package/lib/utils/isBrowser/index.js.map +1 -1
  215. package/lib/utils/settingsUtils.d.ts +20 -0
  216. package/lib/utils/settingsUtils.d.ts.map +1 -0
  217. package/lib/utils/settingsUtils.js +74 -0
  218. package/lib/utils/settingsUtils.js.map +1 -0
  219. package/lib/utils/utils/index.js.map +1 -1
  220. package/package.json +6 -6
  221. package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
  222. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
  223. package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
  224. package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
  225. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
  226. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  227. package/lib/components/Layout/Sidebar/Sidebar.js +0 -180
  228. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  229. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
  230. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  231. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -176
  232. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
  233. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
  234. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
  235. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
  236. package/lib/components/SettingDrawer/InvitationSettings.d.ts +0 -3
  237. package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +0 -1
  238. package/lib/components/SettingDrawer/InvitationSettings.js.map +0 -1
  239. package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
  240. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
  241. package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
  242. package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
  243. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
  244. package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
  245. package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
  246. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
  247. package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
  248. package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
  249. package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
  250. package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
  251. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
  252. package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
  253. package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
  254. package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
  255. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
  256. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
  257. package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
  258. package/lib/components/SettingDrawer/types.d.ts.map +0 -1
  259. /package/lib/components/SettingDrawer/{ThemeSelector.js → components/ThemeSelector.js} +0 -0
  260. /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"],"sources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AAA,SAAU,CAAA,EAAC;qBACN,GAAA,GAAA,CAAA,iBAAW,EAAA,EAAA,CAAA;gBACxB,CAAC;YACL,EAAC,QAAA;QACL,KAAC,EAAA;AACL,UAAI,CAAA,CAAA,cAAsC,EAAA,YAAA,CAAA,QAAA,EAAA,UAAA,CAAA,CAAA,EAAA,SAAA,CAAA,CAAA,GAAA;AAE1C;OAEO,CAAA;;AAUiB,MAAA,KAAA,CAAA,IAAA,CAAA;AACA,QAAA,IAAA,EAAA,QAAA;AACA,QAAA,KAAA,EAAA;;AAsHgB;;AAqBA;;AAwB5C,EAAE,MAAA,kBAAA,GAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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,OAA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AAA;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,3 @@
1
+ import { ICheckboxThemeProps } from '../utils/types';
2
+ export declare function CheckBoxTheme(props: ICheckboxThemeProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CheckBoxTheme.d.ts.map
@@ -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, settings?.navTheme === themeItems.key && jsx("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 as default};//# sourceMappingURL=CheckBoxTheme.js.map
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,3 @@
1
+ import { ILayoutSettingsProps } from '../utils/types';
2
+ export declare function InvitationSettings(props: ILayoutSettingsProps | any): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=InvitationSettings.d.ts.map
@@ -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"}
@@ -1,8 +1,10 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function InvitationSettings(props) {
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
- settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
15
- // Fallback to global if not found in route
16
- const invitations = settings?.organization?.members?.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 as default};//# sourceMappingURL=InvitationSettings.js.map
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,3 @@
1
+ import { ILayoutSettingsProps } from '../utils/types';
2
+ export declare function LayoutChange(props: ILayoutSettingsProps | any): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=LayoutChange.d.ts.map
@@ -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/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function LayoutChange(props) {
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
- const deviceLayout = routeSettings?.layout?.[deviceType] || {};
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
- changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
23
- ...deviceLayout,
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: deviceLayout.fixedHeader,
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: deviceLayout.fixedSidebar,
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: deviceLayout.splitMenus,
71
+ value: layoutValues.splitMenus,
65
72
  onChange: checked => handleLayoutChange('splitMenus', checked)
66
73
  })]
67
- }), deviceLayout.splitMenus && jsxs(Fragment, {
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: deviceLayout?.upperMenuDividerName,
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: deviceLayout?.middleMenuDividerName,
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: deviceLayout?.lowerMenuDividerName,
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 as default};//# sourceMappingURL=LayoutChange.js.map
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,GAAA,cAAY,CAAA,UAAE,CAAA;AACd,EAAA,MAAA;AACA,IAAA;AAQA,GAAA,GAAA,aAAA,EAAA;AAQA,EAAA,MAAA,YAAA,GAAA,YAAsB,IAAA,QAClB,EAAA,QACA,IAAA,GAAA;QAOR;AAGJ,IAAA;AACI,GAAA,GAAA,QAAK,IAAA,EAAA;kBAAe,GAAO,QAAA,GAAA,QAAA,GAAA,SAAA;;AAE3B,EAAA,MAAA,YAAA,GAAc,OAAK,CAAA,OAAO;AAC9B,IAAA,WAAE,EAAA,eAAA,CAAA,QAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,IAAA,CAAA;AAEF,IAAA,sCAAmC,EAAK,cAAS,EAAO,gBAAa,EAAA,YAAA,EAAA,UAAA,EAAA,IAAA,CAAA;IAErE,UACI,EAAA,eAAA,CAAA,QACI,EAAA,YAAK,EAAA,gCAAkC,UAAA,EAAA,KACnC,CAAA;kDAgDoB,EAAA,wCAA6C,EAAA,YAAc,EAAA,UAAA,EAAA,YAAA,CAAA;AAC/D,IAAA,qBAAA,EAAA,iDAGO,kBAAe,EAAA,YAC1B,EAAA,UAAO,aAAU,CAAA;kDAQT,EAAA,wCAA8C,EAAA,YAAc,EAAA,UAAA,EAAA,OAAA;AAChE,GAAA,CAAA,EAAA,CAAA,QAAA,EAAA,gBAAA,EAAA,YACF,EACA;6CAUM;AACJ,IAAA,IAAA,CAAA,aAAA,EAAA;AAQhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
1
+ interface MenuItem {
2
+ key: string;
3
+ name: string;
4
+ path: string;
5
+ position?: string;
6
+ children?: MenuItem[];
7
+ tab?: string;
8
+ [key: string]: any;
9
+ }
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,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A;AACI,OAAA,CAAA,EAAA,SAAA,IAAA,IAAe,CAAA,QAAS,IAAA,IAAQ,SAAI,CAAA,MAAA,GAAA,CAAA,IAAAA,GAAA,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"}