@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 11.2.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/README.md +471 -1
  2. package/lib/cdm-locales/en/menu.json +2 -1
  3. package/lib/cdm-locales/en/settings.json +40 -1
  4. package/lib/cdm-locales/es/menu.json +2 -1
  5. package/lib/cdm-locales/es/settings.json +42 -3
  6. package/lib/cdm-locales/index.d.ts +2 -0
  7. package/lib/cdm-locales/index.d.ts.map +1 -0
  8. package/lib/cdm-locales/index.ts +1 -0
  9. package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
  10. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  11. package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
  12. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  13. package/lib/components/Layout/BasicLayout/index.d.ts +6 -12
  14. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  15. package/lib/components/Layout/BasicLayout/index.js +274 -108
  16. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  17. package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
  18. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  19. package/lib/components/Layout/BasicLayout/utils.js +80 -109
  20. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  21. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  22. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  23. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
  24. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  25. package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
  26. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  27. package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
  28. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -15
  30. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  31. package/lib/components/Layout/GlobalHeader/Header.js +107 -65
  32. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalHeader/MainHeader.js +187 -0
  36. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  38. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  39. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
  40. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  41. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +3 -16
  42. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  43. package/lib/components/Layout/GlobalHeader/RightContent.js +86 -0
  44. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
  45. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  46. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  47. package/lib/components/Layout/GlobalHeader/RightMenu.js +248 -0
  48. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  49. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  50. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  51. package/lib/components/Layout/GlobalHeader/SearchBar.js +109 -0
  52. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  53. package/lib/components/Layout/GlobalHeader/index.d.ts +3 -0
  54. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  55. package/lib/components/Layout/ProTailwindLayout.d.ts +3 -1
  56. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  57. package/lib/components/Layout/ProTailwindLayout.js +77 -12
  58. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  59. package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
  60. package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
  61. package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
  62. package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
  63. package/lib/components/Layout/Sidebar/Divider.d.ts +2 -31
  64. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  65. package/lib/components/Layout/Sidebar/Divider.js +26 -28
  66. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  67. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  68. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  69. package/lib/components/Layout/Sidebar/DynamicIcon.js +50 -0
  70. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  71. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  72. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  73. package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
  74. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  75. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
  76. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  77. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
  78. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  79. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
  80. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  81. package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
  82. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  83. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  84. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  85. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
  86. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  87. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  88. package/lib/components/Layout/TailwindLayout.js +46 -13
  89. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  90. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  91. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  92. package/lib/components/Layout/getPageTitle.js +1 -1
  93. package/lib/components/Layout/getPageTitle.js.map +1 -1
  94. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +5 -0
  95. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
  96. package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
  97. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
  98. package/lib/components/Layout/slot-fill/Footer.d.ts +4 -3
  99. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  100. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  101. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  102. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
  103. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  104. package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
  105. package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
  106. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +4 -0
  107. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  108. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  109. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  110. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +4 -0
  111. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  112. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  113. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  114. package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
  115. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  116. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  117. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  118. package/lib/components/Layout/slot-fill/RightContent.d.ts +4 -0
  119. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  120. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  121. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  122. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
  123. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  124. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  125. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  126. package/lib/components/Layout/slot-fill/index.d.ts +6 -0
  127. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  128. package/lib/components/Layout/util.d.ts.map +1 -1
  129. package/lib/components/Layout/util.js +12 -0
  130. package/lib/components/Layout/util.js.map +1 -0
  131. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
  132. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  133. package/lib/components/SettingDrawer/SettingDrawer.js +203 -382
  134. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  135. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
  136. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
  137. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
  138. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
  139. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
  140. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
  141. package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
  142. package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
  143. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
  144. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
  145. package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
  146. package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
  147. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
  148. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
  149. package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
  150. package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
  151. package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
  152. package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
  153. package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
  154. package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
  155. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
  156. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
  157. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
  158. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
  159. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
  160. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
  161. package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
  162. package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
  163. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
  164. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
  165. package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
  166. package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
  167. package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
  168. package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
  169. package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
  170. package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
  171. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
  172. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
  173. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
  174. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
  175. package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
  176. package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
  177. package/lib/components/SettingDrawer/components/Switch.js +20 -0
  178. package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
  179. package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
  180. package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
  181. package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
  182. package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
  183. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
  184. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
  185. package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
  186. package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
  187. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
  188. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
  189. package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
  190. package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
  191. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
  192. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
  193. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
  194. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
  195. package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
  196. package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
  197. package/lib/components/SettingDrawer/utils/constants.js +77 -0
  198. package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
  199. package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
  200. package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
  201. package/lib/components/SettingDrawer/utils/helper.js +154 -0
  202. package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
  203. package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
  204. package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
  205. package/lib/components/SettingDrawer/utils/transformers.js +73 -0
  206. package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
  207. package/lib/components/SettingDrawer/utils/types.d.ts +105 -0
  208. package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
  209. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +16 -1
  210. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  211. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  212. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  213. package/lib/components/index.d.ts +2 -0
  214. package/lib/components/index.d.ts.map +1 -0
  215. package/lib/components/index.js +1 -0
  216. package/lib/components/index.js.map +1 -0
  217. package/lib/components/typings.d.ts +154 -50
  218. package/lib/components/typings.d.ts.map +1 -1
  219. package/lib/compute.d.ts.map +1 -1
  220. package/lib/compute.js +16 -6
  221. package/lib/compute.js.map +1 -1
  222. package/lib/config/analytics-config.d.ts +59 -0
  223. package/lib/config/analytics-config.d.ts.map +1 -0
  224. package/lib/config/constants.d.ts +8 -0
  225. package/lib/config/constants.d.ts.map +1 -0
  226. package/lib/config/constants.js +32 -0
  227. package/lib/config/constants.js.map +1 -0
  228. package/lib/config/env-config.d.ts +21 -0
  229. package/lib/config/env-config.d.ts.map +1 -1
  230. package/lib/config/env-config.js +86 -1
  231. package/lib/config/env-config.js.map +1 -1
  232. package/lib/config/index.d.ts +3 -0
  233. package/lib/config/index.d.ts.map +1 -0
  234. package/lib/helpers/DynamicIcon.d.ts +8 -5
  235. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  236. package/lib/helpers/DynamicIcon.js +50 -0
  237. package/lib/helpers/DynamicIcon.js.map +1 -0
  238. package/lib/hooks/index.d.ts +3 -0
  239. package/lib/hooks/index.d.ts.map +1 -0
  240. package/lib/hooks/useMediaQuery.d.ts +14 -0
  241. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  242. package/lib/hooks/useMediaQuery.js +48 -0
  243. package/lib/hooks/useMediaQuery.js.map +1 -0
  244. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  245. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  246. package/lib/hooks/useScrollThreshold.js +60 -0
  247. package/lib/hooks/useScrollThreshold.js.map +1 -0
  248. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  249. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  250. package/lib/hooks/useTailwindTheme.js +82 -0
  251. package/lib/hooks/useTailwindTheme.js.map +1 -0
  252. package/lib/icons.d.ts +18 -0
  253. package/lib/icons.d.ts.map +1 -0
  254. package/lib/icons.js +14 -0
  255. package/lib/icons.js.map +1 -0
  256. package/lib/index.d.ts +3 -3
  257. package/lib/index.d.ts.map +1 -1
  258. package/lib/index.js +1 -1
  259. package/lib/index.js.map +1 -1
  260. package/lib/machines/selectors.d.ts +118 -0
  261. package/lib/machines/selectors.d.ts.map +1 -0
  262. package/lib/machines/settingsMachine.d.ts +29 -0
  263. package/lib/machines/settingsMachine.d.ts.map +1 -0
  264. package/lib/machines/settingsMachine.js +171 -0
  265. package/lib/machines/settingsMachine.js.map +1 -0
  266. package/lib/machines/types.d.ts +272 -0
  267. package/lib/machines/types.d.ts.map +1 -0
  268. package/lib/machines/types.js +5 -0
  269. package/lib/machines/types.js.map +1 -0
  270. package/lib/module.d.ts +0 -1
  271. package/lib/module.d.ts.map +1 -1
  272. package/lib/module.js +14 -15
  273. package/lib/module.js.map +1 -1
  274. package/lib/redux/index.d.ts +2 -0
  275. package/lib/redux/index.d.ts.map +1 -0
  276. package/lib/redux/searchReducer.d.ts +42 -0
  277. package/lib/redux/searchReducer.d.ts.map +1 -0
  278. package/lib/redux/searchReducer.js +64 -0
  279. package/lib/redux/searchReducer.js.map +1 -0
  280. package/lib/routes.json +10 -1
  281. package/lib/styles/index.css +667 -45
  282. package/lib/tailwindConfig.d.ts +100 -0
  283. package/lib/tailwindConfig.d.ts.map +1 -0
  284. package/lib/tailwindConfig.js +101 -0
  285. package/lib/tailwindConfig.js.map +1 -0
  286. package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
  287. package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
  288. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  289. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  290. package/lib/utils/__tests__/menu.test.d.ts +2 -0
  291. package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
  292. package/lib/utils/__tests__/selectors.test.d.ts +2 -0
  293. package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
  294. package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
  295. package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
  296. package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
  297. package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
  298. package/lib/utils/analytics-utils.d.ts +43 -0
  299. package/lib/utils/analytics-utils.d.ts.map +1 -0
  300. package/lib/utils/analytics.d.ts +48 -0
  301. package/lib/utils/analytics.d.ts.map +1 -0
  302. package/lib/utils/configOverrides.d.ts +213 -0
  303. package/lib/utils/configOverrides.d.ts.map +1 -0
  304. package/lib/utils/configOverrides.js +91 -0
  305. package/lib/utils/configOverrides.js.map +1 -0
  306. package/lib/utils/formateCarData.d.ts +2 -0
  307. package/lib/utils/formateCarData.d.ts.map +1 -0
  308. package/lib/utils/isBrowser/index.js.map +1 -1
  309. package/lib/utils/menu.d.ts.map +1 -1
  310. package/lib/utils/settingsUtils.d.ts +20 -0
  311. package/lib/utils/settingsUtils.d.ts.map +1 -0
  312. package/lib/utils/settingsUtils.js +74 -0
  313. package/lib/utils/settingsUtils.js.map +1 -0
  314. package/lib/utils/test-utils.d.ts.map +1 -1
  315. package/lib/utils/utils/index.d.ts.map +1 -1
  316. package/lib/utils/utils/index.js.map +1 -1
  317. package/package.json +7 -15
  318. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  319. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  320. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  321. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  322. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -15
  323. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  324. package/lib/components/Layout/Sidebar/Sidebar.js +0 -141
  325. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  326. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -6
  327. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  328. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -89
  329. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
  330. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -8
  331. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
  332. package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -48
  333. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
  334. package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -7
  335. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
  336. package/lib/components/SettingDrawer/LayoutChange.js +0 -69
  337. package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
  338. package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -8
  339. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
  340. package/lib/components/SettingDrawer/RegionalSettings.js +0 -95
  341. package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
  342. package/lib/components/SettingDrawer/Switch/index.d.ts +0 -9
  343. package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
  344. package/lib/components/SettingDrawer/Switch/index.js +0 -39
  345. package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
  346. package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -8
  347. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
  348. package/lib/components/SettingDrawer/ThemeColor.js +0 -32
  349. package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
  350. package/lib/components/defaultSettings.d.ts +0 -4
  351. package/lib/components/defaultSettings.d.ts.map +0 -1
  352. package/lib/components/defaultSettings.js +0 -14
  353. package/lib/components/defaultSettings.js.map +0 -1
  354. package/lib/utils/index.d.ts +0 -2
  355. package/lib/utils/index.d.ts.map +0 -1
  356. package/lib/utils/index.js +0 -13
  357. package/lib/utils/index.js.map +0 -1
@@ -0,0 +1,248 @@
1
+ import React__default,{useState,useRef,useEffect}from'react';import {Link}from'@remix-run/react';import {generateMenuPath}from'../util.js';import {renderDynamicIcon}from'../../../helpers/DynamicIcon.js';import switchDialogs from'@app/dialog/WrappedDialogsSwitch';const DialogComponent = ({
2
+ path,
3
+ onClose
4
+ }) => {
5
+ const [dialog, setDialog] = useState(null);
6
+ useEffect(() => {
7
+ if (!dialog) {
8
+ switchDialogs(path).then(component => {
9
+ setDialog(component);
10
+ });
11
+ }
12
+ }, []);
13
+ return dialog ? React__default.createElement(dialog.default, {
14
+ onClose: onClose
15
+ }) : React__default.createElement("div", null, "Loading...");
16
+ };
17
+ const RightMenu = ({
18
+ menuData,
19
+ routeParams,
20
+ getMenuSeparation,
21
+ scrolled,
22
+ settings,
23
+ authorities,
24
+ picture
25
+ }) => {
26
+ const [MenusList, setMenusList] = useState();
27
+ const [isOpen, setIsOpen] = useState(false);
28
+ const [openedModalKey, setOpenedModalKey] = React__default.useState(null);
29
+ const menuRef = useRef(null);
30
+ const {
31
+ t
32
+ } = {
33
+ t: key => key
34
+ }; // Mock translation function
35
+ // const cancelRef = React.useRef();
36
+ const onOpen = () => setIsOpen(true);
37
+ const onClose = () => setIsOpen(false);
38
+ const toggleMenu = () => setIsOpen(!isOpen);
39
+ // Handle outside clicks to close the menu
40
+ useEffect(() => {
41
+ const handleClickOutside = event => {
42
+ if (menuRef.current && !menuRef.current.contains(event.target)) {
43
+ setIsOpen(false);
44
+ }
45
+ };
46
+ // Handle escape key to close the menu
47
+ const handleEscKey = event => {
48
+ if (event.key === 'Escape') {
49
+ setIsOpen(false);
50
+ }
51
+ };
52
+ if (isOpen) {
53
+ document.addEventListener('mousedown', handleClickOutside);
54
+ document.addEventListener('keydown', handleEscKey);
55
+ }
56
+ return () => {
57
+ document.removeEventListener('mousedown', handleClickOutside);
58
+ document.removeEventListener('keydown', handleEscKey);
59
+ };
60
+ }, [isOpen]);
61
+ const newMenuData = menuData?.filter(m => !m.hideInMenu)?.map(m => {
62
+ if (!m.hideInMenu) {
63
+ const path = generateMenuPath(m.path, routeParams);
64
+ return {
65
+ ...m,
66
+ path
67
+ };
68
+ }
69
+ });
70
+ useEffect(() => {
71
+ setMenusList(getMenuSeparation(newMenuData));
72
+ }, [authorities]);
73
+ const conversionPath = path => {
74
+ if (path && path.indexOf('http') === 0) {
75
+ return path;
76
+ }
77
+ if (path && path.indexOf('/http') === 0) {
78
+ return path.replace(/^\//g, '');
79
+ }
80
+ return `/${path || ''}`.replace(/\/+/g, '/');
81
+ };
82
+ const getMenuItemModal = item => {
83
+ // const icon = this.getIcon(item.icon);
84
+ const {
85
+ key,
86
+ name,
87
+ icon
88
+ } = item;
89
+ return React__default.createElement("button", {
90
+ onClick: () => {
91
+ setOpenedModalKey(key);
92
+ setIsOpen(false); // Close the dropdown when opening a modal
93
+ },
94
+ className: "flex items-center w-full px-3 py-2 text-left text-foreground hover:bg-muted",
95
+ role: "menuitem"
96
+ }, React__default.createElement("div", {
97
+ className: "mr-3"
98
+ }, renderDynamicIcon(icon)), t(name));
99
+ };
100
+ /**
101
+ * Judge whether it is http link.return or a Link
102
+ * @memberOf SiderMenu
103
+ */
104
+ const getMenuItemPath = item => {
105
+ // const { styles = {} } = props;
106
+ const itemPath = conversionPath(item.path);
107
+ // const icon = this.getIcon(item.icon);
108
+ const {
109
+ target,
110
+ name,
111
+ icon
112
+ } = item;
113
+ // Is it a http link
114
+ if (/^https?:\/\//.test(itemPath)) {
115
+ return React__default.createElement("a", {
116
+ href: itemPath,
117
+ target: target,
118
+ onClick: onClose,
119
+ className: "flex items-center w-full p-3 text-foreground hover:bg-muted",
120
+ role: "menuitem"
121
+ }, React__default.createElement("div", {
122
+ className: "mr-3"
123
+ }, renderDynamicIcon(icon), " "), React__default.createElement("span", {
124
+ className: "ml-1"
125
+ }, name));
126
+ }
127
+ return React__default.createElement(Link, {
128
+ to: itemPath,
129
+ onClick: onClose,
130
+ className: "flex items-center w-full px-3 py-2 text-left text-foreground hover:bg-muted",
131
+ role: "menuitem"
132
+ }, React__default.createElement("div", {
133
+ className: "mr-3"
134
+ }, renderDynamicIcon(icon)), name);
135
+ };
136
+ const getMenuModals = () => {
137
+ let dialogMenus = [];
138
+ const upperMenus = MenusList?.upperMenus?.filter(x => x.modal === true);
139
+ const middleMenus = MenusList?.middleMenus?.filter(x => x.modal === true);
140
+ const lowerMenus = MenusList?.lowerMenus?.filter(x => x.modal === true);
141
+ const bottomMenus = MenusList?.bottomMenus?.filter(x => x.modal === true);
142
+ if (upperMenus?.length > 0) dialogMenus = dialogMenus.concat(...upperMenus);
143
+ if (middleMenus?.length > 0) dialogMenus = dialogMenus.concat(...middleMenus);
144
+ if (lowerMenus?.length > 0) dialogMenus = dialogMenus.concat(...lowerMenus);
145
+ if (bottomMenus?.length > 0) dialogMenus = dialogMenus.concat(...bottomMenus);
146
+ return dialogMenus.map((item, k) => {
147
+ const {
148
+ dialogPath,
149
+ key,
150
+ name
151
+ } = item;
152
+ return key === openedModalKey && React__default.createElement("div", {
153
+ key: k,
154
+ className: "fixed inset-0 z-50 overflow-y-auto"
155
+ }, React__default.createElement("div", {
156
+ className: "flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"
157
+ }, React__default.createElement("div", {
158
+ className: "fixed inset-0 transition-opacity",
159
+ "aria-hidden": "true"
160
+ }, React__default.createElement("div", {
161
+ className: "absolute inset-0 bg-black bg-opacity-50",
162
+ onClick: () => {
163
+ onClose();
164
+ setOpenedModalKey(null);
165
+ }
166
+ })), React__default.createElement("span", {
167
+ className: "hidden sm:inline-block sm:align-middle sm:h-screen",
168
+ "aria-hidden": "true"
169
+ }, "\u200B"), React__default.createElement("div", {
170
+ className: "inline-block align-bottom rounded-themed-lg text-left overflow-hidden shadow-themed-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full themed-modal",
171
+ role: "dialog",
172
+ "aria-modal": "true",
173
+ "aria-labelledby": "modal-headline"
174
+ }, React__default.createElement("div", {
175
+ className: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4"
176
+ }, React__default.createElement("div", {
177
+ className: "flex justify-end"
178
+ }, React__default.createElement("button", {
179
+ type: "button",
180
+ className: "rounded-themed text-muted-foreground hover:text-foreground focus-themed",
181
+ onClick: () => {
182
+ onClose();
183
+ setOpenedModalKey(null);
184
+ }
185
+ }, React__default.createElement("span", {
186
+ className: "sr-only"
187
+ }, "Close"), React__default.createElement("svg", {
188
+ className: "h-6 w-6",
189
+ xmlns: "http://www.w3.org/2000/svg",
190
+ fill: "none",
191
+ viewBox: "0 0 24 24",
192
+ stroke: "currentColor",
193
+ "aria-hidden": "true"
194
+ }, React__default.createElement("path", {
195
+ strokeLinecap: "round",
196
+ strokeLinejoin: "round",
197
+ strokeWidth: "2",
198
+ d: "M6 18L18 6M6 6l12 12"
199
+ })))), React__default.createElement("div", {
200
+ className: "mt-2"
201
+ }, React__default.createElement(DialogComponent, {
202
+ path: dialogPath,
203
+ onClose: () => {
204
+ onClose();
205
+ setOpenedModalKey(null);
206
+ }
207
+ }))))));
208
+ });
209
+ };
210
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
211
+ className: "relative",
212
+ ref: menuRef,
213
+ onMouseEnter: onOpen
214
+ }, React__default.createElement("button", {
215
+ className: `
216
+ inline-flex items-center justify-center bg-muted hover:bg-muted-foreground text-foreground rounded-full h-12 w-12 min-w-[48px] outline-none transform transition-colors duration-200
217
+ `,
218
+ "aria-expanded": "false",
219
+ onClick: toggleMenu
220
+ }, picture ? React__default.createElement("img", {
221
+ src: picture,
222
+ className: "rounded-full",
223
+ alt: "User"
224
+ }) : null), isOpen && React__default.createElement("div", {
225
+ className: "bg-background absolute right-0 mt-2 w-72 rounded-themed shadow-themed-lg py-1 themed-dropdown ring-1 ring-border focus:outline-none z-40",
226
+ role: "menu",
227
+ "aria-orientation": "vertical",
228
+ "aria-labelledby": "user-menu"
229
+ }, MenusList?.upperMenus?.map((item, k) => React__default.createElement("div", {
230
+ key: k,
231
+ className: "px-1 py-1"
232
+ }, item.modal ? getMenuItemModal(item) : getMenuItemPath(item))), MenusList?.upperMenus?.length > 0 && MenusList?.middleMenus?.length > 0 && React__default.createElement("hr", {
233
+ className: "border-border my-1"
234
+ }), MenusList?.middleMenus?.map((item, k) => React__default.createElement("div", {
235
+ key: k,
236
+ className: "px-1 py-1"
237
+ }, item.modal ? getMenuItemModal(item) : getMenuItemPath(item))), MenusList?.middleMenus?.length > 0 && MenusList?.lowerMenus?.length > 0 && React__default.createElement("hr", {
238
+ className: "border-border my-1"
239
+ }), MenusList?.lowerMenus?.map((item, k) => React__default.createElement("div", {
240
+ key: k,
241
+ className: "px-1 py-1"
242
+ }, item.modal ? getMenuItemModal(item) : getMenuItemPath(item))), MenusList?.lowerMenus?.length > 0 && MenusList?.bottomMenus?.length > 0 && React__default.createElement("hr", {
243
+ className: "border-border my-1"
244
+ }), MenusList?.bottomMenus?.map((item, k) => React__default.createElement("div", {
245
+ key: k,
246
+ className: "px-1 py-1"
247
+ }, item.modal ? getMenuItemModal(item) : getMenuItemPath(item))))), getMenuModals());
248
+ };export{RightMenu};//# sourceMappingURL=RightMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RightMenu.js","sources":["../../../../src/components/Layout/GlobalHeader/RightMenu.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"uQASA,MAAM,eAAe,GAAkB,CAAC;MACpC;;;eAIQ,EAAA,SAAc,IAAI,QAAQ,CAAA,IAAA,CAAA;kBACtB;AACJ,IAAA,IAAA,CAAA,MAAG,EAAA;mBACN,CAAA,IAAA,CAAA,CAAA,IAAA,CAAA,SAAA,IAAA;QACF,SAAI,CAAA,SAAA,CAAA;AAEP,MAAA,CAAA,CAAA;AACJ,IAAE;AAEF,EAAA,CAAA,EAAA,EAAO;SASH,uBAAkB,CAAA,aAAa,CAAG,MAAA,CAAA,OAA+B,EAAA;IACjE,OAAO,EAAA;AACP,GAAA,CAAA,GAAAA,cAAO,CAAA,aAAc,CAAE,KAAA,EAAA,IAAA,EAAA,YAAqB,CAAK;AACjD,CAAA;AACQ,MAAC,SAAQ,GAAG,CAAA;UACpB;aAEM;;UAEA;UAEN;aACS;AACL,EAAA;AACI,CAAA,KAAA;kBACI,EAAA,YAAgB,CAAC,GAAA,QAAA,EAAA;eACpB,EAAA,SAAA,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;AACL,EAAA,MAAA,CAAC,cAAC,EAAA,iBAAA,CAAA,GAAAA,cAAA,CAAA,QAAA,CAAA,IAAA,CAAA;QAEF,OAAA,GAAA,MAAA,CAAA,IAAA,CAAA;AACA,EAAA,MAAA;AACI,IAAA;;cAEC;AACL,GAAA,CAAA;;AAGI,EAAA,MAAA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A;AAQI,MAAA,EAAA,EAAA,QAAA;;8FAYJ;AACI,MAAA,IAAA,EAAA;;;AAWxC,KAAA,EAAA,iBAAG,CAAA,IAAA,CAAA,CAAA,EAAA,IAAA,CAAA;AACP,EAAA,CAAA;AAEA,EAAA,MAAA,aACI,GAAA,MAAA;QACI,WAAA,GAAA,EAAA;AACI,IAAA,MAAA,UAAA,GAAA,SAAA,EAAA,UACI,SAAS,CAAA,IAAE,CAAA,CAAA,KAAA,KAAA,IAAA,CAAA;;uBAEV,SAAA,EAAA,UACa,EAAA,MACd,CAAA,CAAA,IAAS,CAAA,CAAA,KAAA,KAAU,IAElB,CAAA;AAGJ,IAAA,MAAA,WAAM,GACH,SAAA,EAAA,WAAA,EAAA,MACI,CAAA,CAAA,IAAA,CAAS,CAAA,KAAC,KAAA,IAAA,CAAA;AAMT,IAAA,IAAA,UAAA,EAAA,SAAW,CAAA,EAAA,WAAgB,cACxB,CAAA,MAAA,CAAA,GAAA,UAAA,CAAA;mBAOH,EAAA,MAAW,iBAAY,qBAAyB,CAAA,GAAA,WAAa,CAAA;AAG7D,IAAA,IAAA,UAAA,EAAA,SAAW,CAAA,EAAA,WAAgB,cAAc,CACtC,MAAA,CAAA,GAAA,UAAA,CAAA;mBAOH,EAAA,MAAW,iBAAa,qBAAyB,CAAA,GAAA,WAAY,CAAA;AAG7D,IAAA,OAAA,WAAA,CAAA,IAAW,CAAA,IAAA,EAAA,CAAA;;kBAWX;QAQZ,GAAA;AAGb,QAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface SearchBarProps {
3
+ className?: string;
4
+ placeholder?: string;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare const SearchBar: React.FC<SearchBarProps>;
8
+ export default SearchBar;
9
+ //# sourceMappingURL=SearchBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalHeader/SearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,UAAU,cAAc;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwH9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,109 @@
1
+ import React__default,{useRef,useState,useEffect}from'react';import {useDispatch,useSelector}from'react-redux';import {useNavigate}from'@remix-run/react';import {icons}from'../../../icons.js';import {setSearchQuery,setSearchResult}from'../../../redux/searchReducer.js';const {
2
+ SearchIcon
3
+ } = icons;
4
+ const SearchBar = ({
5
+ className = '',
6
+ placeholder = 'Search',
7
+ style
8
+ }) => {
9
+ const dispatch = useDispatch();
10
+ const navigate = useNavigate();
11
+ const searchRef = useRef(null);
12
+ const [isOpen, setIsOpen] = useState(false);
13
+ const [selectedIndex, setSelectedIndex] = useState(-1);
14
+ const {
15
+ searchQuery,
16
+ searchResults,
17
+ isSearching
18
+ } = useSelector(state => state.search);
19
+ // Handle search input change
20
+ const handleSearchChange = async event => {
21
+ const query = event.target.value;
22
+ dispatch(setSearchQuery(query));
23
+ if (!query.trim()) {
24
+ dispatch(setSearchResult([]));
25
+ }
26
+ };
27
+ // Handle keyboard navigation
28
+ const handleKeyDown = event => {
29
+ switch (event.key) {
30
+ case 'ArrowDown':
31
+ event.preventDefault();
32
+ setSelectedIndex(prev => prev < searchResults.length - 1 ? prev + 1 : prev);
33
+ break;
34
+ case 'ArrowUp':
35
+ event.preventDefault();
36
+ setSelectedIndex(prev => prev > -1 ? prev - 1 : prev);
37
+ break;
38
+ case 'Enter':
39
+ event.preventDefault();
40
+ if (selectedIndex >= 0 && searchResults[selectedIndex]) {
41
+ const result = searchResults[selectedIndex];
42
+ if (result) {
43
+ console.log('Search result selected:', result.title);
44
+ }
45
+ setIsOpen(false);
46
+ }
47
+ break;
48
+ case 'Escape':
49
+ event.preventDefault();
50
+ setIsOpen(false);
51
+ break;
52
+ }
53
+ };
54
+ // Handle click outside to close dropdown
55
+ useEffect(() => {
56
+ const handleClickOutside = event => {
57
+ if (searchRef.current && !searchRef.current.contains(event.target)) {
58
+ setIsOpen(false);
59
+ }
60
+ };
61
+ document.addEventListener('mousedown', handleClickOutside);
62
+ return () => {
63
+ document.removeEventListener('mousedown', handleClickOutside);
64
+ };
65
+ }, []);
66
+ // Handle result click
67
+ const handleResultClick = result => {
68
+ if (result.url) {
69
+ navigate(result.url);
70
+ }
71
+ setIsOpen(false);
72
+ };
73
+ return React__default.createElement("div", {
74
+ ref: searchRef,
75
+ className: `relative ${className}`
76
+ }, React__default.createElement("div", {
77
+ className: "relative w-full focus-within:text-primary"
78
+ }, React__default.createElement("div", {
79
+ className: "absolute inset-y-0 flex items-center pl-2"
80
+ }, React__default.createElement(SearchIcon, {
81
+ className: `w-4 h-4 ${isSearching ? 'animate-spin' : ''}`
82
+ })), React__default.createElement("input", {
83
+ className: "w-full pl-8 pr-2 text-sm themed-input focus-themed",
84
+ type: "text",
85
+ placeholder: placeholder,
86
+ "aria-label": "Search",
87
+ value: searchQuery,
88
+ onChange: handleSearchChange,
89
+ onKeyDown: handleKeyDown,
90
+ onFocus: () => setIsOpen(true),
91
+ style: style
92
+ })), isOpen && searchResults.length > 0 && React__default.createElement("div", {
93
+ className: "absolute z-50 w-full mt-1 themed-dropdown"
94
+ }, React__default.createElement("ul", {
95
+ className: "py-1 overflow-auto text-base leading-6 rounded-themed shadow-themed-sm max-h-60 focus:outline-none sm:text-sm sm:leading-5"
96
+ }, searchResults.map((result, index) => React__default.createElement("li", {
97
+ key: result.id,
98
+ className: `relative py-2 pl-3 pr-9 cursor-pointer select-none ${index === selectedIndex ? 'text-primary-foreground bg-primary' : 'text-foreground hover:bg-muted'}`,
99
+ onClick: () => handleResultClick(result)
100
+ }, React__default.createElement("div", {
101
+ className: "flex items-center"
102
+ }, React__default.createElement("span", {
103
+ className: "block truncate font-medium"
104
+ }, result.title), result.type && React__default.createElement("span", {
105
+ className: "ml-2 px-2 py-0.5 text-xs rounded-themed bg-muted text-muted-foreground"
106
+ }, result.type)), result.description && React__default.createElement("span", {
107
+ className: "block text-sm text-muted-foreground truncate"
108
+ }, result.description))))));
109
+ };export{SearchBar,SearchBar as default};//# sourceMappingURL=SearchBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.js","sources":["../../../../src/components/Layout/GlobalHeader/SearchBar.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"6QAMA,MAAM;AAQN,EAAA;AACI,CAAA,GAAA,KAAA;AACM,MAAA,SAAW,GAAA,CAAA;AACjB,EAAA;aACO,GAAA,QAAQ;;AAEf,CAAA,KAAA;QAEA,QAAA,GAAA,WAAA,EAAA;AACA,EAAA,MAAA,sBAAwB,EAAG;AACvB,EAAA,MAAA,YAAW,MAAG,CAAK,IAAC,CAAA;AACpB,EAAA,MAAA,CAAA,MAAA,EAAS,SAAA,CAAA,GAAA,QAAqB,CAAC,KAAC,CAAA;AAChC,EAAA,MAAA,CAAA,aAAW,EAAI,gBAAK,CAAA,GAAA,QAAA,CAAA,EAAA,CAAA;AAChB,EAAA,MAAA;eACH;AACL,IAAA,aAAE;IAEF;AACA,GAAA,GAAA,WAAM,CAAA,KAAa,IAAI,KAA0B,OAAI,CAAA;AACjD;AACI,EAAA,MAAA,kBAAK,GAAW,MAAA,KAAA,IAAA;kBACZ,KAAM,CAAA,MAAA,CAAA,KAAc;2BACpB,CAAA,KAAiB,CAAC,CAAA;mBAClB,EAAA,EAAM;AACV,MAAA,QAAA,CAAA,eAAc,CAAA,EAAA,CAAA,CAAA;;;;AAId,EAAA,MAAA,aAAK,GAAO,KAAA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,CAAA,KAAA,EAAA;AACC,IAAA,GAAA,EAAA,SAAA;gBAMJ,oBAAkB,CAAA;AAYnD,GAAE,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAEF,IAAA,SAAA,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from './MainHeader';
2
+ export * from './RightMenu';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -1,5 +1,6 @@
1
- import * as React from 'react';
2
1
  import { BasicLayoutProps } from '@admin-layout/client';
2
+ import type { LinksFunction } from '@remix-run/node';
3
+ import * as React from 'react';
3
4
  declare const ProTailwindLayout: React.FC<BasicLayoutProps & {
4
5
  loaderData?: any;
5
6
  }>;
@@ -7,6 +8,7 @@ export default ProTailwindLayout;
7
8
  export declare const handle: {
8
9
  i18n: string;
9
10
  };
11
+ export declare const links: LinksFunction;
10
12
  export declare const loader: (params: any) => Promise<{
11
13
  newMenuData: import("@common-stack/client-react").IMenuData[];
12
14
  apolloState: any;
@@ -1 +1 @@
1
- {"version":3,"file":"ProTailwindLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/ProTailwindLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAOH,gBAAgB,EACnB,MAAM,sBAAsB,CAAC;AAY9B,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG;IAAE,UAAU,CAAC,EAAE,GAAG,CAAA;CAAE,CASxE,CAAC;AACF,eAAe,iBAAiB,CAAC;AAEjC,eAAO,MAAM,MAAM;;CAElB,CAAC;AAEF,eAAO,MAAM,MAAM;;;EA2BlB,CAAC;AAEF,wBAAsB,YAAY,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE;;;;CAAA,gBAkBnE;AAED,eAAO,MAAM,gBAAgB;;;aAE5B,CAAC"}
1
+ {"version":3,"file":"ProTailwindLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/ProTailwindLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,gBAAgB,EAMnB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2E/B,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG;IAAE,UAAU,CAAC,EAAE,GAAG,CAAA;CAAE,CAyBxE,CAAC;AACF,eAAe,iBAAiB,CAAC;AAEjC,eAAO,MAAM,MAAM;;CAElB,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,aAA+D,CAAC;AAEpF,eAAO,MAAM,MAAM,GAAU,WAAM;;;EA0BlC,CAAC;AAEF,wBAAsB,YAAY,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE;;;;CAAA,gBAkBnE;AAED,eAAO,MAAM,gBAAgB,GAAI;;;CAA6B,YAE7D,CAAC"}
@@ -1,16 +1,72 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { useSelector } from 'react-redux';
3
1
  import { filterRoutesWithLocale, transformData, addProLayoutParentKeys, removeUnnecessaryProperties, menuDataRender } from '@admin-layout/client';
4
2
  import { matchParentRoute } from '@admin-layout/client/lib/utils/parentRoute.js';
5
- import { ClientContainerService } from 'common';
6
3
  import { ClientTypes } from '@common-stack/client-core';
4
+ import { getAvailableCategories, getMenusByAdvancedFilter } from '@common-stack/client-react/lib/utils/filteredRoutes.js';
5
+ import { ClientContainerService } from 'common';
6
+ import * as React from 'react';
7
+ import { useSelector } from 'react-redux';
7
8
  import { createSelector } from 'reselect';
8
- import BasicLayoutEnhanced from './TailwindLayout.js';
9
9
  import { config } from '../../config/env-config.js';
10
+ import BasicLayoutEnhanced from './TailwindLayout.js';
11
+ import stylesheet from '../../styles/index.css?url';
10
12
  const selectOrgName = state => state.platform.orgName;
11
- const selector = createSelector([selectOrgName], orgName => ({
12
- orgName
13
+ const selectSettings = state => state.settings;
14
+ const selector = createSelector([selectOrgName, selectSettings], (orgName, settings) => ({
15
+ orgName,
16
+ settings
13
17
  }));
18
+ /**
19
+ * Filter menu items based on user visibility settings using filteredRoutes utilities
20
+ */
21
+ function filterMenuItemsByVisibility(menuData, settings) {
22
+ if (!menuData || !Array.isArray(menuData)) return [];
23
+ const hiddenMenuCategories = settings?.hiddenMenuCategories || [];
24
+ // Deduplicate hiddenMenuKeys using Set for consistent behavior
25
+ const hiddenMenuKeys = settings?.hiddenMenuKeys ? Array.from(new Set(settings.hiddenMenuKeys)) : [];
26
+ // Convert menu data to format expected by filteredRoutes utilities
27
+ const menuItemsWithCategories = menuData.map(item => ({
28
+ ...item,
29
+ // Use position as category for filtering
30
+ category: item.position || 'default',
31
+ // Ensure key exists for filtering
32
+ key: item.key || item.path || ''
33
+ }));
34
+ // Step 1: Filter by categories using advanced filter
35
+ const availableCategories = getAvailableCategories(menuItemsWithCategories);
36
+ const visibleCategories = availableCategories.filter(category => !hiddenMenuCategories.includes(category.toLowerCase()));
37
+ let filteredByCategory = menuItemsWithCategories;
38
+ if (visibleCategories.length !== availableCategories.length) {
39
+ // Use advanced filter to get menus by visible categories
40
+ const filters = {
41
+ categories: visibleCategories.length > 0 ? visibleCategories : ['__no_matches__'] // Empty array would show all
42
+ };
43
+ const filteredMenuMaps = getMenusByAdvancedFilter(menuItemsWithCategories, filters);
44
+ // Convert back to array format
45
+ filteredByCategory = filteredMenuMaps.map(menuMap => {
46
+ const path = Object.keys(menuMap)[0];
47
+ return {
48
+ ...menuMap[path],
49
+ path
50
+ };
51
+ });
52
+ }
53
+ // Step 2: Filter out individually hidden items recursively
54
+ const filterItemsRecursively = items => {
55
+ return items.filter(item => {
56
+ if (!item?.key) return false;
57
+ // Skip if this specific item is hidden
58
+ if (hiddenMenuKeys.includes(item.key)) {
59
+ return false;
60
+ }
61
+ // Process children recursively
62
+ if (item.children && Array.isArray(item.children) && item.children.length > 0) {
63
+ item.children = filterItemsRecursively(item.children);
64
+ }
65
+ return true;
66
+ });
67
+ };
68
+ return filterItemsRecursively(filteredByCategory);
69
+ }
14
70
  const ProTailwindLayout = props => {
15
71
  const {
16
72
  loaderData: {
@@ -19,20 +75,30 @@ const ProTailwindLayout = props => {
19
75
  }
20
76
  } = props;
21
77
  const {
22
- orgName
78
+ orgName,
79
+ settings
23
80
  } = useSelector(state => selector(state));
81
+ // Apply menu visibility filters
82
+ const filteredMenuData = React.useMemo(() => {
83
+ return filterMenuItemsByVisibility(newMenuData, settings);
84
+ }, [newMenuData, settings?.hiddenMenuCategories, settings?.hiddenMenuKeys]);
24
85
  const params = {
25
86
  orgName: orgName
26
87
  };
27
- return jsx(BasicLayoutEnhanced, {
88
+ return React.createElement(BasicLayoutEnhanced, {
28
89
  routeParams: params,
29
90
  permissions: permissions,
30
- menuData: newMenuData
91
+ menuData: filteredMenuData,
92
+ fullMenuData: newMenuData
31
93
  });
32
94
  };
33
95
  const handle = {
34
96
  i18n: 'menu'
35
97
  };
98
+ const links = () => [{
99
+ rel: 'stylesheet',
100
+ href: stylesheet
101
+ }];
36
102
  const loader = async params => {
37
103
  const {
38
104
  routeConfig
@@ -55,8 +121,7 @@ const loader = async params => {
55
121
  if (!apolloState) {
56
122
  throw new Error('ApolloState not found');
57
123
  }
58
- // TODO: Remove reolveConfiguration from permissions
59
- const newMenuData = menuDataRender(menuDataWithParentKeys, permissions?.resolveConfiguration ?? permissions);
124
+ const newMenuData = menuDataRender(routeWithLocale, permissions);
60
125
  // returnInfo: {"returnType":"json","keys":["newMenuData","apolloState"],"hasOptions":false}
61
126
  return {
62
127
  data: [newMenuData, apolloState]
@@ -92,4 +157,4 @@ const shouldRevalidate = ({
92
157
  }) => {
93
158
  return currentParams.orgName !== nextParams.orgName;
94
159
  };
95
- export { clientLoader, ProTailwindLayout as default, handle, loader, shouldRevalidate }; //# sourceMappingURL=ProTailwindLayout.js.map
160
+ export { clientLoader, ProTailwindLayout as default, handle, links, loader, shouldRevalidate }; //# sourceMappingURL=ProTailwindLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProTailwindLayout.js","sources":["../../../src/components/Layout/ProTailwindLayout.tsx"],"sourcesContent":[null],"names":["_jsx","TailwindLayout"],"mappings":"4gBAkBA,MAAM,aAAa,GAAG,KAAC,IAAO,KAAG,CAAA,QAAM,CAAA,OAAS;AAEhD,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,aAAa,CAAC,EAAE,YAAY;AAE7D,EAAA;;AAII,MAAA,iBAAoB,GAAA,KAAA,IAAW;AAG/B,EAAA,MAAA;AACA,IAAA,UAAQ,EAAA;AACZ,MAAE,WAAA;AACF,MAAA;AAEA;AACI,GAAA,GAAA,KAAY;EACd,MAAA;AAEF,IAAM;AACF,GAAA,GAAA,WAAmB,CAAA,KAAA,YAAY,OAAO,CAAC;QACnC,MAAA,GAAA;AACJ,IAAA,OAAK,EAAA;;SAEJA,GAAA,CAAAC,mBAAA,EAAA;IAAC,WAAgB,EAAA,MAAA;AACd,IAAA,WAAO,EAAC,WAAO;IACnB,QAAC,EAAA;IAED;AACA;AAEA,MAAA,MAAA,GAAA;AACA,EAAA,IAAA,EAAI;AACJ;AACgB,MAAA,MAAA,GAAE,MAAC,MAAA,IAAA;AACf,EAAA,MAAA;IACJ;MACI,MAAY,CAAA,OAAA;AACZ,EAAA,IAAA,WAAU,GAAA,EAAA;MACb;IACD,WAAoD,GAAA,gBAAA,CAAA,WAAA,EAAA,MAAA,CAAA,WAAA,CAAA;AACpD,GAAA,CAAA,OAAiB,CAAA,EAAA;IACjB,OAAO,CAAA,GAAA,CAAA,CAAA,CAAA;;QAEH,eAAW,GAAA,sBAAA,CAAA,WAAA,CAAA,QAAA,CAAA,CAAA;QACb,iBAAA,GAAA,aAAA,CAAA,eAAA,CAAA;AACN,EAAE,MAAA,sBAAA,GAAA,sBAAA,CAAA,iBAAA,CAAA;AAEF,EAAM,sBAA4B,CAAA,OAAA,CAAA,IAAG,IAAA,2BAA+B,CAAA,IAAA,CAAA,CAAA;MACY,WAAA,GAAA,MAAA,EAAA,YAAA,EAAA,WAAA;AAC5E,EAAA,IAAA,WAAgB,GAAA,MAAS,EAAA,YAAA,aAAe;AACxC,EAAA,IAAA,CAAA,WAAQ,EAAA;AAER,IAAA,MAAK,IAAA,KAAA,CAAA,uBAAA,CAAA;AACD;kBAEM,EAAA;AACN,IAAA,MAAA,IAAA,KAAW,CAAC,uBAAqB,CAAA;;AAGjC;QACH,WAAA,GAAA,cAAA,CAAA,sBAAA,EAAA,WAAA,EAAA,oBAAA,IAAA,WAAA,CAAA;SAAQ;AACL,IAAA,WAAO;AACP,IAAA;;AAEJ;AACH,eAAA,YAAA,CAAA;AAED,EAAM,OAAO;AACT,EAAA,MAAA;AACJ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ProTailwindLayout.js","sources":["../../../src/components/Layout/ProTailwindLayout.tsx"],"sourcesContent":[null],"names":["TailwindLayout"],"mappings":"4qBAyBA,MAAM,aAAa,GAAG,KAAC,IAAO,KAAG,CAAA,QAAM,CAAA,OAAS;AAChD,MAAM,cAAc,GAAG,KAAC,SAAU,CAAA,QAAM;AAExC,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,MAAM;AAEzF,EAAA,OAAA;;AAEG,CAAA,CAAA,CAAA;AACH;;AAC+C;AAE3C,SAAA,2BAA6B,CAAA,QAAU,EAAA,QAAA,EAAA;MACvC,CAAA,QAAA,IAAA,CAAA,KAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA,EAAA;QACA,oBA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AA,OAAM,CAAE,GAAA,CAAA,CAAA,CAAA;AAER,EAAA;AACI,EAAA,MAAA,eAAQ,GAAS,kCAAwC,CAAA,QAAA,CAAA,CAAA;QAEzD,iBAAiB,GAAG,aAAa,CAAC,eAAY,CAAA;AAC9C,EAAA,MAAA,sBAAoB,GAAA,sBAAa,CAAA,iBAAA,CAAA;wBAE3B,CAAA,OAAA,CAAmB,IAAG,IAAA,2BAAc,CAAA,IAAuB,CAAA,CAAA;AACjE,EAAA,IAAA,WAAA,GAAA,MAAA,EAAoB,YAAQ,EAAA,WAAa;MAC5C,WAAA,GAAA,MAAA,EAAA,YAAA,EAAA,WAAA;MAAC,CAAA,WAAW,EAAA;AACT,IAAA,MAAA,IAAA,KAAQ,CAAA,uBAAM,CAAA;AACd,EAAA;MACH,CAAA,WAAA,EAAA;AACD,IAAA,MAAA,iCAAkB,CAAA;AACtB,EAAC;AAED,EAAA,MAAO,WAAM,GAAA,cAAsB,CAAA,eAAe,EAAA,WAAc,CAAE;AAC9D,EAAA,OAAA;AACJ,IAAE,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IRightMenuProps } from '../../typings';
3
+ export declare const BottomMenu: React.FC<IRightMenuProps>;
4
+ //# sourceMappingURL=BottomMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/BottomMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAOrE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAgBhD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuUhD,CAAC"}