@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,100 @@
1
+ export declare const themeConfig: {
2
+ colors: {
3
+ border: string;
4
+ input: string;
5
+ ring: string;
6
+ background: string;
7
+ foreground: string;
8
+ primary: {
9
+ DEFAULT: string;
10
+ foreground: string;
11
+ };
12
+ secondary: {
13
+ DEFAULT: string;
14
+ foreground: string;
15
+ };
16
+ destructive: {
17
+ DEFAULT: string;
18
+ foreground: string;
19
+ };
20
+ muted: {
21
+ DEFAULT: string;
22
+ foreground: string;
23
+ };
24
+ accent: {
25
+ DEFAULT: string;
26
+ foreground: string;
27
+ };
28
+ popover: {
29
+ DEFAULT: string;
30
+ foreground: string;
31
+ };
32
+ card: {
33
+ DEFAULT: string;
34
+ foreground: string;
35
+ };
36
+ sidebar: {
37
+ DEFAULT: string;
38
+ foreground: string;
39
+ primary: string;
40
+ 'primary-foreground': string;
41
+ accent: string;
42
+ 'accent-foreground': string;
43
+ border: string;
44
+ ring: string;
45
+ };
46
+ brand: {
47
+ primary: string;
48
+ secondary: string;
49
+ accent: string;
50
+ };
51
+ success: string;
52
+ warning: string;
53
+ error: string;
54
+ info: string;
55
+ };
56
+ backgroundImage: {
57
+ 'gradient-primary': string;
58
+ 'gradient-secondary': string;
59
+ 'gradient-brand': string;
60
+ };
61
+ boxShadow: {
62
+ sm: string;
63
+ md: string;
64
+ lg: string;
65
+ xl: string;
66
+ };
67
+ transitionProperty: {
68
+ colors: string;
69
+ transform: string;
70
+ all: string;
71
+ };
72
+ borderRadius: {
73
+ lg: string;
74
+ md: string;
75
+ sm: string;
76
+ };
77
+ keyframes: {
78
+ 'accordion-down': {
79
+ from: {
80
+ height: string;
81
+ };
82
+ to: {
83
+ height: string;
84
+ };
85
+ };
86
+ 'accordion-up': {
87
+ from: {
88
+ height: string;
89
+ };
90
+ to: {
91
+ height: string;
92
+ };
93
+ };
94
+ };
95
+ animation: {
96
+ 'accordion-down': string;
97
+ 'accordion-up': string;
98
+ };
99
+ };
100
+ //# sourceMappingURL=tailwindConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindConfig.d.ts","sourceRoot":"","sources":["../src/tailwindConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGvB,CAAC"}
@@ -0,0 +1,101 @@
1
+ const themeConfig = {
2
+ colors: {
3
+ border: 'hsl(var(--border))',
4
+ input: 'hsl(var(--input))',
5
+ ring: 'hsl(var(--ring))',
6
+ background: 'hsl(var(--background))',
7
+ foreground: 'hsl(var(--foreground))',
8
+ primary: {
9
+ DEFAULT: 'hsl(var(--primary))',
10
+ foreground: 'hsl(var(--primary-foreground))'
11
+ },
12
+ secondary: {
13
+ DEFAULT: 'hsl(var(--secondary))',
14
+ foreground: 'hsl(var(--secondary-foreground))'
15
+ },
16
+ destructive: {
17
+ DEFAULT: 'hsl(var(--destructive))',
18
+ foreground: 'hsl(var(--destructive-foreground))'
19
+ },
20
+ muted: {
21
+ DEFAULT: 'hsl(var(--muted))',
22
+ foreground: 'hsl(var(--muted-foreground))'
23
+ },
24
+ accent: {
25
+ DEFAULT: 'hsl(var(--accent))',
26
+ foreground: 'hsl(var(--accent-foreground))'
27
+ },
28
+ popover: {
29
+ DEFAULT: 'hsl(var(--popover))',
30
+ foreground: 'hsl(var(--popover-foreground))'
31
+ },
32
+ card: {
33
+ DEFAULT: 'hsl(var(--card))',
34
+ foreground: 'hsl(var(--card-foreground))'
35
+ },
36
+ sidebar: {
37
+ DEFAULT: 'hsl(var(--sidebar-background))',
38
+ foreground: 'hsl(var(--sidebar-foreground))',
39
+ primary: 'hsl(var(--sidebar-primary))',
40
+ 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
41
+ accent: 'hsl(var(--sidebar-accent))',
42
+ 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
43
+ border: 'hsl(var(--sidebar-border))',
44
+ ring: 'hsl(var(--sidebar-ring))'
45
+ },
46
+ // Brand colors
47
+ brand: {
48
+ primary: 'hsl(var(--brand-primary))',
49
+ secondary: 'hsl(var(--brand-secondary))',
50
+ accent: 'hsl(var(--brand-accent))'
51
+ },
52
+ // Semantic colors
53
+ success: 'hsl(var(--success))',
54
+ warning: 'hsl(var(--warning))',
55
+ error: 'hsl(var(--error))',
56
+ info: 'hsl(var(--info))'
57
+ },
58
+ backgroundImage: {
59
+ 'gradient-primary': 'var(--gradient-primary)',
60
+ 'gradient-secondary': 'var(--gradient-secondary)',
61
+ 'gradient-brand': 'var(--gradient-brand)'
62
+ },
63
+ boxShadow: {
64
+ sm: 'var(--shadow-sm)',
65
+ md: 'var(--shadow-md)',
66
+ lg: 'var(--shadow-lg)',
67
+ xl: 'var(--shadow-xl)'
68
+ },
69
+ transitionProperty: {
70
+ colors: 'var(--transition-colors)',
71
+ transform: 'var(--transition-transform)',
72
+ all: 'var(--transition-all)'
73
+ },
74
+ borderRadius: {
75
+ lg: 'var(--radius)',
76
+ md: 'calc(var(--radius) - 2px)',
77
+ sm: 'calc(var(--radius) - 4px)'
78
+ },
79
+ keyframes: {
80
+ 'accordion-down': {
81
+ from: {
82
+ height: '0'
83
+ },
84
+ to: {
85
+ height: 'var(--radix-accordion-content-height)'
86
+ }
87
+ },
88
+ 'accordion-up': {
89
+ from: {
90
+ height: 'var(--radix-accordion-content-height)'
91
+ },
92
+ to: {
93
+ height: '0'
94
+ }
95
+ }
96
+ },
97
+ animation: {
98
+ 'accordion-down': 'accordion-down 0.2s ease-out',
99
+ 'accordion-up': 'accordion-up 0.2s ease-out'
100
+ }
101
+ };export{themeConfig};//# sourceMappingURL=tailwindConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindConfig.js","sources":["../src/tailwindConfig.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;AACvB,EAAA,MAAA,EAAM;AACF,IAAA,MAAA,EAAA,oBAAQ;AACR,IAAA,KAAA,EAAA,mBAAO;AACP,IAAA,IAAA,EAAA,kBAAM;AACN,IAAA,UAAA,EAAA,wBAAY;AACZ,IAAA,UAAA,EAAA,wBAAY;AACZ,IAAA,OAAA,EAAA;AACI,MAAA,OAAA,EAAA,qBAAS;AACT,MAAA,UAAA,EAAA;AACH,KAAA;AACD,IAAA,SAAA,EAAA;AACI,MAAA,OAAA,EAAA,uBAAS;AACT,MAAA,UAAA,EAAA;AACH,KAAA;AACD,IAAA,WAAA,EAAA;AACI,MAAA,OAAA,EAAA,yBAAS;AACT,MAAA,UAAA,EAAA;AACH,KAAA;AACD,IAAA,KAAA,EAAA;AACI,MAAA,OAAA,EAAA,mBAAS;AACT,M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IAAA,EAAA,EAAA,eAAI;AACJ,IAAA,EAAA,EAAA,2BAAI;AACJ,IAAA,EAAA,EAAA;AACH,GAAA;AACD,EAAA,SAAA,EAAS;AACL,IAAA,gBAAA,EAAA;AACI,MAAA,IAAA,EAAA;AACI,QAAA,MAAA,EAAA;AACH,OAAA;AACD,MAAA,EAAA,EAAA;AACI,QAAA,MAAA,EAAA;AACH;AACJ,KAAA;AACD,IAAA,cAAA,EAAA;AACI,MAAA,IAAA,EAAA;AACI,QAAA,MAAA,EAAA;AACH,OAAA;AACD,MAAA,EAAA,EAAA;AACI,QAAA,MAAA,EAAA;AACH;AACJ;AACJ,GAAA;AACD,EAAA,SAAA,EAAS;AACL,IAAA,gBAAA,EAAA,8BAAkB;AAClB,IAAA,cAAA,EAAA;AACH;"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=analytics-utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-utils.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/analytics-utils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=configOverrides.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configOverrides.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/configOverrides.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=menu.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/menu.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=selectors.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/selectors.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import 'reflect-metadata';
2
+ //# sourceMappingURL=settingsMachine.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsMachine.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/settingsMachine.test.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=settingsUtils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsUtils.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/settingsUtils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ export interface GA4EventParams {
2
+ page_location?: string;
3
+ page_referrer?: string;
4
+ page_title?: string;
5
+ user_id?: string;
6
+ search_term?: string;
7
+ currency?: string;
8
+ value?: number;
9
+ items?: Array<{
10
+ item_id: string;
11
+ item_name: string;
12
+ item_category?: string;
13
+ price?: number;
14
+ quantity?: number;
15
+ [key: string]: any;
16
+ }>;
17
+ [key: string]: any;
18
+ }
19
+ /**
20
+ * Helper function to format property data for GA4 item tracking
21
+ */
22
+ export declare const formatPropertyForGA4: (property: any) => GA4EventParams["items"][0];
23
+ /**
24
+ * Helper function to create standard GA4 page view event params
25
+ */
26
+ export declare const createPageViewParams: (pageTitle: string, additionalParams?: GA4EventParams) => GA4EventParams;
27
+ /**
28
+ * Helper function to create standard GA4 search event params
29
+ */
30
+ export declare const createSearchParams: (searchTerm: string, additionalParams?: GA4EventParams) => GA4EventParams;
31
+ /**
32
+ * Helper function to track user engagement events
33
+ */
34
+ export declare const trackUserEngagement: (analytics: any, eventName: string, params?: GA4EventParams) => void;
35
+ /**
36
+ * Helper function to track property views
37
+ */
38
+ export declare const trackPropertyView: (analytics: any, property: any) => void;
39
+ /**
40
+ * Helper function to track property searches
41
+ */
42
+ export declare const trackPropertySearch: (analytics: any, searchTerm: string, filters?: Record<string, any>) => void;
43
+ //# sourceMappingURL=analytics-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-utils.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,EAAE,UAAU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SAIpG,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { GA4EventParams } from './analytics-utils';
2
+ /**
3
+ * Initialize Google Analytics
4
+ * @param {string} measurementId - Google Analytics measurement ID (GA4)
5
+ */
6
+ export declare const initGA: (measurementId: string) => void;
7
+ /**
8
+ * Track a GA4 standard event
9
+ * @param {string} eventName - GA4 event name
10
+ * @param {GA4EventParams} eventParams - Event parameters
11
+ */
12
+ export declare const trackGA4Event: (eventName: string, eventParams?: GA4EventParams) => void;
13
+ /**
14
+ * Check if Google Analytics is initialized
15
+ * @returns {boolean} Whether GA is initialized
16
+ */
17
+ export declare const isGAInitialized: () => boolean;
18
+ /**
19
+ * Track page views
20
+ * @param {string} path - URL path to track
21
+ * @param {string} title - Page title
22
+ */
23
+ export declare const trackPageView: (path: string, title?: string) => void;
24
+ /**
25
+ * Track events
26
+ * @param {string} category - Event category
27
+ * @param {string} action - Event action
28
+ * @param {string} label - Event label (optional)
29
+ * @param {number} value - Event value (optional)
30
+ */
31
+ export declare const trackEvent: (category: string, action: string, label?: string, value?: number) => void;
32
+ /**
33
+ * Track exception events
34
+ * @param {string} description - Error description
35
+ * @param {boolean} fatal - Whether the error was fatal
36
+ */
37
+ export declare const trackException: (description: string, fatal?: boolean) => void;
38
+ /**
39
+ * Track user properties
40
+ * @param {Record<string, string | number | boolean>} properties - User properties to track
41
+ */
42
+ export declare const setUserProperties: (properties: Record<string, string | number | boolean>) => void;
43
+ /**
44
+ * Set user ID for cross-device tracking
45
+ * @param {string} userId - User ID
46
+ */
47
+ export declare const setUserId: (userId: string) => void;
48
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/utils/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,eAAe,MAAM,KAAG,IAmF9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,EAAE,cAAc,cAAc,KAAG,IAiB/E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,OAElC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,QAAQ,MAAM,KAAG,IAsB5D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,IA0B7F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,aAAa,MAAM,EAAE,QAAO,OAAe,KAAG,IAmB5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,KAAG,IAiBzF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,KAAG,IAsB1C,CAAC"}
@@ -0,0 +1,213 @@
1
+ /**
2
+ * Configuration Override System
3
+ *
4
+ * This module implements a VS Code-style configuration override pattern.
5
+ * Instead of deeply nested route and device-specific settings, we use a nested
6
+ * structure with context keys for overrides.
7
+ *
8
+ * ## Pattern
9
+ *
10
+ * Base configuration:
11
+ * ```
12
+ * uilayout.regions.header.showLogo = true
13
+ * ```
14
+ *
15
+ * Override for specific route and device:
16
+ * ```
17
+ * [route=/dashboard][device=mobile]: {
18
+ * uilayout: {
19
+ * regions: {
20
+ * header: {
21
+ * showLogo: false
22
+ * }
23
+ * }
24
+ * }
25
+ * }
26
+ * ```
27
+ *
28
+ * ## Benefits
29
+ *
30
+ * 1. **Flat Schema**: Configuration schema is defined once, not duplicated per route/device
31
+ * 2. **Clear Inheritance**: Easy to see what's overridden and what uses defaults
32
+ * 3. **Flexibility**: Can add new context dimensions (e.g., [user=admin], [theme=dark])
33
+ * 4. **Database Friendly**: Nested structure is natural for MongoDB
34
+ * 5. **Type Safe**: TypeScript can enforce config keys
35
+ *
36
+ * ## Usage in MongoDB
37
+ *
38
+ * ```json
39
+ * {
40
+ * "uiSettings": {
41
+ * "uilayout": {
42
+ * "regions": {
43
+ * "header": {
44
+ * "showLogo": true
45
+ * }
46
+ * }
47
+ * },
48
+ * "[route=/dashboard][device=mobile]": {
49
+ * "uilayout": {
50
+ * "regions": {
51
+ * "header": {
52
+ * "showLogo": false
53
+ * }
54
+ * }
55
+ * }
56
+ * }
57
+ * }
58
+ * }
59
+ * ```
60
+ */
61
+ export interface OverrideContext {
62
+ route?: string;
63
+ device?: 'desktop' | 'mobile';
64
+ theme?: string;
65
+ user?: string;
66
+ [key: string]: string | undefined;
67
+ }
68
+ /**
69
+ * Parse multiple bracket pattern into array of identifiers
70
+ * Supports both single bracket [/route.mobile] and multiple bracket [/route][mobile] patterns
71
+ *
72
+ * @example
73
+ * parseMultipleBracketIdentifiers("[/dashboard][mobile]")
74
+ * // Returns: ['/dashboard', 'mobile']
75
+ *
76
+ * parseMultipleBracketIdentifiers("[mobile]")
77
+ * // Returns: ['mobile']
78
+ *
79
+ * parseMultipleBracketIdentifiers("[/dashboard.mobile]") // Backward compatibility
80
+ * // Returns: ['/dashboard', 'mobile']
81
+ */
82
+ export declare function parseMultipleBracketIdentifiers(overrideKey: string): string[];
83
+ /**
84
+ * Build multiple bracket pattern from identifiers array
85
+ *
86
+ * @example
87
+ * buildMultipleBracketKey(['/dashboard', 'mobile'])
88
+ * // Returns: "[/dashboard][mobile]"
89
+ *
90
+ * buildMultipleBracketKey(['mobile'])
91
+ * // Returns: "[mobile]"
92
+ */
93
+ export declare function buildMultipleBracketKey(identifiers: string[]): string;
94
+ /**
95
+ * Build multiple bracket pattern from context object
96
+ * Uses the new multiple bracket format: [/route][device]
97
+ *
98
+ * @example
99
+ * buildMultipleBracketKeyFromContext({ route: '/dashboard', device: 'mobile' })
100
+ * // Returns: "[/dashboard][mobile]"
101
+ *
102
+ * buildMultipleBracketKeyFromContext({ device: 'mobile' })
103
+ * // Returns: "[mobile]"
104
+ */
105
+ export declare function buildMultipleBracketKeyFromContext(context: OverrideContext): string;
106
+ /**
107
+ * Convert multiple bracket pattern to context object
108
+ *
109
+ * @example
110
+ * multipleBracketToContext("[/dashboard][mobile]")
111
+ * // Returns: { route: '/dashboard', device: 'mobile' }
112
+ */
113
+ export declare function multipleBracketToContext(overrideKey: string): OverrideContext;
114
+ /**
115
+ * Convert a dot-notation path to a nested object
116
+ * @example
117
+ * setNestedValue({}, 'uilayout.regions.header.showLogo', false)
118
+ * // Returns: { uilayout: { regions: { header: { showLogo: false } } } }
119
+ */
120
+ export declare function setNestedValue(obj: any, path: string, value: any): any;
121
+ /**
122
+ * Get a value from a nested object using dot notation
123
+ * @example
124
+ * getNestedValue({ uilayout: { regions: { header: { showLogo: false } } } }, 'uilayout.regions.header.showLogo')
125
+ * // Returns: false
126
+ */
127
+ export declare function getNestedValue(obj: any, path: string, defaultValue?: any): any;
128
+ /**
129
+ * Deep merge two objects
130
+ */
131
+ export declare function deepMerge(target: any, source: any): any;
132
+ /**
133
+ * Build an override context key from context
134
+ *
135
+ * Format: [route][device] or [route] or [device]
136
+ *
137
+ * @example
138
+ * buildOverrideKey({ route: '/dashboard', device: 'mobile' })
139
+ * // Returns: "[/dashboard][mobile]"
140
+ *
141
+ * buildOverrideKey({ route: '/dashboard' })
142
+ * // Returns: "[/dashboard]"
143
+ *
144
+ * buildOverrideKey({ device: 'mobile' })
145
+ * // Returns: "[mobile]"
146
+ */
147
+ export declare function buildOverrideKey(context: OverrideContext): string;
148
+ /**
149
+ * Parse an override key into its components
150
+ * Supports both new multiple bracket format and legacy dot notation
151
+ *
152
+ * @example
153
+ * parseOverrideKey("[/dashboard][mobile]") // New format
154
+ * // Returns: { route: '/dashboard', device: 'mobile' }
155
+ *
156
+ * parseOverrideKey("[/dashboard.mobile]") // Legacy format
157
+ * // Returns: { route: '/dashboard', device: 'mobile' }
158
+ *
159
+ * parseOverrideKey("[/dashboard]")
160
+ * // Returns: { route: '/dashboard' }
161
+ *
162
+ * parseOverrideKey("[mobile]")
163
+ * // Returns: { device: 'mobile' }
164
+ *
165
+ * parseOverrideKey("[.mobile]") // Legacy device-only format
166
+ * // Returns: { device: 'mobile' }
167
+ */
168
+ export declare function parseOverrideKey(overrideKey: string): OverrideContext;
169
+ /**
170
+ * Get a configuration value with override support
171
+ *
172
+ * Priority:
173
+ * 1. Most specific override (all context matches)
174
+ * 2. Partial overrides (some context matches)
175
+ * 3. Base configuration value
176
+ * 4. Default value
177
+ *
178
+ * Works with nested storage where overrides are stored as:
179
+ * { "[route=/dashboard][device=mobile]": { uilayout: { regions: { header: { showLogo: false } } } } }
180
+ */
181
+ export declare function getConfigValue<T = any>(settings: any, configKey: string, context: OverrideContext, defaultValue?: T): T;
182
+ /**
183
+ * Set a configuration value as an override
184
+ *
185
+ * Returns the context key and nested value structure.
186
+ * The service layer will merge this into the settings object.
187
+ *
188
+ * @example
189
+ * const result = setConfigOverride('regions.header.showLogo', false, { route: '/dashboard', device: 'mobile' });
190
+ * // Returns: {
191
+ * // contextKey: '[device=mobile][route=/dashboard]',
192
+ * // path: 'uilayout.regions.header.showLogo',
193
+ * // value: false,
194
+ * // nestedValue: { uilayout: { regions: { header: { showLogo: false } } } }
195
+ * // }
196
+ */
197
+ export declare function setConfigOverride(configKey: string, value: any, context: OverrideContext): {
198
+ contextKey: string;
199
+ path: string;
200
+ value: any;
201
+ nestedValue: any;
202
+ };
203
+ /**
204
+ * Get all overrides for a specific context
205
+ * Works with nested storage format
206
+ */
207
+ export declare function getContextOverrides(settings: any, context: OverrideContext): Record<string, any>;
208
+ /**
209
+ * Remove all overrides for a specific context
210
+ * Returns the context key to remove from settings
211
+ */
212
+ export declare function clearContextOverrides(settings: any, context: OverrideContext): string | null;
213
+ //# sourceMappingURL=config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AAG,MAAM,CAyBjE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAiDrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,CAAC,GAAG,GAAG,EAClC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,eAAe,EACxB,YAAY,CAAC,EAAE,CAAC,GACjB,CAAC,CAoEH;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,eAAe,GACzB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,WAAW,EAAE,GAAG,CAAC;CACpB,CAWA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAShG;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAQ5F"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Configuration Override System
3
+ *
4
+ * This module implements a VS Code-style configuration override pattern.
5
+ * Instead of deeply nested route and device-specific settings, we use a nested
6
+ * structure with context keys for overrides.
7
+ *
8
+ * ## Pattern
9
+ *
10
+ * Base configuration:
11
+ * ```
12
+ * uilayout.regions.header.showLogo = true
13
+ * ```
14
+ *
15
+ * Override for specific route and device:
16
+ * ```
17
+ * [route=/dashboard][device=mobile]: {
18
+ * uilayout: {
19
+ * regions: {
20
+ * header: {
21
+ * showLogo: false
22
+ * }
23
+ * }
24
+ * }
25
+ * }
26
+ * ```
27
+ *
28
+ * ## Benefits
29
+ *
30
+ * 1. **Flat Schema**: Configuration schema is defined once, not duplicated per route/device
31
+ * 2. **Clear Inheritance**: Easy to see what's overridden and what uses defaults
32
+ * 3. **Flexibility**: Can add new context dimensions (e.g., [user=admin], [theme=dark])
33
+ * 4. **Database Friendly**: Nested structure is natural for MongoDB
34
+ * 5. **Type Safe**: TypeScript can enforce config keys
35
+ *
36
+ * ## Usage in MongoDB
37
+ *
38
+ * ```json
39
+ * {
40
+ * "uiSettings": {
41
+ * "uilayout": {
42
+ * "regions": {
43
+ * "header": {
44
+ * "showLogo": true
45
+ * }
46
+ * }
47
+ * },
48
+ * "[route=/dashboard][device=mobile]": {
49
+ * "uilayout": {
50
+ * "regions": {
51
+ * "header": {
52
+ * "showLogo": false
53
+ * }
54
+ * }
55
+ * }
56
+ * }
57
+ * }
58
+ * }
59
+ * ```
60
+ */
61
+ /**
62
+ * Parse multiple bracket pattern into array of identifiers
63
+ * Supports both single bracket [/route.mobile] and multiple bracket [/route][mobile] patterns
64
+ *
65
+ * @example
66
+ * parseMultipleBracketIdentifiers("[/dashboard][mobile]")
67
+ * // Returns: ['/dashboard', 'mobile']
68
+ *
69
+ * parseMultipleBracketIdentifiers("[mobile]")
70
+ * // Returns: ['mobile']
71
+ *
72
+ * parseMultipleBracketIdentifiers("[/dashboard.mobile]") // Backward compatibility
73
+ * // Returns: ['/dashboard', 'mobile']
74
+ */
75
+ /**
76
+ * Get a value from a nested object using dot notation
77
+ * @example
78
+ * getNestedValue({ uilayout: { regions: { header: { showLogo: false } } } }, 'uilayout.regions.header.showLogo')
79
+ * // Returns: false
80
+ */
81
+ function getNestedValue(obj, path, defaultValue) {
82
+ const keys = path.split('.');
83
+ let current = obj;
84
+ for (const key of keys) {
85
+ if (current === null || current === undefined || typeof current !== 'object') {
86
+ return defaultValue;
87
+ }
88
+ current = current[key];
89
+ }
90
+ return current !== undefined ? current : defaultValue;
91
+ }export{getNestedValue};//# sourceMappingURL=configOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configOverrides.js","sources":["../../src/utils/configOverrides.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DG;AAUH;;;;;;;;;;;;;AAaG;;AA6JA;AACH;;;AAII;AACI,SAAI,cAAgB,CAAA,GAAI,EAAA,IAAO,EAAA,YAAc,EAAA;AACzC,EAAA,MAAA,IAAA,GAAA,IAAO;aACV,GAAA,GAAA;AACD,EAAA,KAAA,MAAA,GAAO,IAAG,IAAA,EAAQ;IACtB,IAAC,OAAA,KAAA,IAAA,IAAA,OAAA,KAAA,SAAA,IAAA,OAAA,OAAA,KAAA,QAAA,EAAA;MAED,OAAO,YAAY;AACvB,IAAC;AAED,IAAA,OAAA,GAAA,OAAA,CAAA,GAAA,CAAA;;AAEG,EAAA,OAAA,OAAA,KAAA,SAAA,GAAA,OAAA,GAAA,YAAA;AACH"}
@@ -0,0 +1,2 @@
1
+ export declare const formatCarRentalResponse: (data: any) => any;
2
+ //# sourceMappingURL=formateCarData.d.ts.map