@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +376 -250
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +6 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +255 -175
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +80 -109
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +82 -66
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +70 -9
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +37 -20
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.js +20 -0
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.js +77 -0
- package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.js +154 -0
- package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.js +73 -0
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
- package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +20 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.js.map +1 -1
- package/lib/config/env-config.d.ts +6 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +21 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/helpers/DynamicIcon.d.ts +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +133 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +107 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.d.ts +1 -1
- package/lib/redux/searchReducer.d.ts.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/styles/index.css +602 -372
- package/lib/tailwindConfig.d.ts +85 -27
- package/lib/tailwindConfig.d.ts.map +1 -1
- package/lib/tailwindConfig.js +96 -18
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
- package/lib/utils/analytics-utils.d.ts +43 -0
- package/lib/utils/analytics-utils.d.ts.map +1 -0
- package/lib/utils/analytics.d.ts +48 -0
- package/lib/utils/analytics.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -123
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
- package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -22
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -35
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
- package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
- package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
- package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
- package/lib/components/ThemeProvider/index.d.ts +0 -4
- package/lib/components/ThemeProvider/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
- package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
- package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/default.js +0 -183
- package/lib/components/ThemeProvider/themes/default.js.map +0 -1
- package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/github.js +0 -190
- package/lib/components/ThemeProvider/themes/github.js.map +0 -1
- package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
- package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/index.js +0 -7
- package/lib/components/ThemeProvider/themes/index.js.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.js +0 -188
- package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.js +0 -189
- package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
- package/lib/components/ThemeProvider/types.d.ts +0 -112
- package/lib/components/ThemeProvider/types.d.ts.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -140
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -59
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -375
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -1,85 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
showSearchSlot: true,
|
|
24
|
-
showRightContent: true,
|
|
25
|
-
showMenuToggle: true,
|
|
26
|
-
showBackButton: true,
|
|
27
|
-
showPageTitle: true,
|
|
28
|
-
showActionButtons: true,
|
|
29
|
-
position: 'fixed',
|
|
30
|
-
height: '64px',
|
|
31
|
-
elevation: 2,
|
|
32
|
-
showHeader: true,
|
|
33
|
-
showMenu: true,
|
|
34
|
-
menuHeaderRender: true,
|
|
35
|
-
searchBarRender: true,
|
|
36
|
-
searchBarBehavior: SearchBarBehavior.PERMANENT,
|
|
37
|
-
searchBarOverlay: true,
|
|
38
|
-
scrollThreshold: 50
|
|
39
|
-
};
|
|
40
|
-
// Shared view configuration similar to client's defaultSettings
|
|
41
|
-
const SHARED_VIEW_CONFIG = {
|
|
42
|
-
layout: DEFAULT_LAYOUT,
|
|
43
|
-
regions: {
|
|
44
|
-
header: DEFAULT_HEADER,
|
|
45
|
-
footer: {
|
|
46
|
-
showFooter: true
|
|
47
|
-
},
|
|
48
|
-
background: DEFAULT_BACKGROUND
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const defaultRouteSettings = {
|
|
52
|
-
layout: {
|
|
53
|
-
desktop: SHARED_VIEW_CONFIG.layout,
|
|
54
|
-
mobile: SHARED_VIEW_CONFIG.layout
|
|
55
|
-
},
|
|
56
|
-
regions: {
|
|
57
|
-
desktop: {
|
|
58
|
-
header: SHARED_VIEW_CONFIG.regions.header,
|
|
59
|
-
footer: SHARED_VIEW_CONFIG.regions.footer,
|
|
60
|
-
background: SHARED_VIEW_CONFIG.regions.background
|
|
61
|
-
},
|
|
62
|
-
mobile: {
|
|
63
|
-
header: SHARED_VIEW_CONFIG.regions.header,
|
|
64
|
-
footer: SHARED_VIEW_CONFIG.regions.footer,
|
|
65
|
-
background: SHARED_VIEW_CONFIG.regions.background
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
// Helper function to deep merge objects
|
|
70
|
-
const deepMerge = (target, source) => {
|
|
71
|
-
const result = {
|
|
72
|
-
...target
|
|
73
|
-
};
|
|
74
|
-
for (const key in source) {
|
|
75
|
-
if (source[key] instanceof Object && key in target) {
|
|
76
|
-
result[key] = deepMerge(target[key], source[key]);
|
|
77
|
-
} else {
|
|
78
|
-
result[key] = source[key];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return result;
|
|
82
|
-
};
|
|
1
|
+
import {cloneDeep,merge}from'lodash-es';import {createMachine,assign}from'xstate';import {extractConfigurationWithModel}from'@adminide-stack/core';/**
|
|
2
|
+
* SETTINGS MACHINE - COMPLETELY REFACTORED
|
|
3
|
+
*
|
|
4
|
+
* DESIGN PHILOSOPHY:
|
|
5
|
+
* This machine has been completely rewritten to eliminate any possibility of infinite loops
|
|
6
|
+
* by enforcing a strict separation between:
|
|
7
|
+
* 1. PUBLIC STATE: User-facing settings (stable, exposed to consumers)
|
|
8
|
+
* 2. INTERNAL STATE: Machine logic state (may have reference changes, never exposed)
|
|
9
|
+
*
|
|
10
|
+
* ARCHITECTURE:
|
|
11
|
+
* - Context is split into `public` and `internal` namespaces
|
|
12
|
+
* - Components ONLY access `context.public` via selectors
|
|
13
|
+
* - NO filtering is needed - separation is built into the structure
|
|
14
|
+
* - ConfigurationModel reference changes are isolated to `context.internal`
|
|
15
|
+
* - Redux receives ONLY `context.public` - no manual filtering required
|
|
16
|
+
*
|
|
17
|
+
* WHY THIS WORKS:
|
|
18
|
+
* - Reference changes in `context.internal.configModel` don't affect `context.public`
|
|
19
|
+
* - Components using selectors get stable references to `context.public`
|
|
20
|
+
* - No manual filtering means no chance of accidentally exposing internal state
|
|
21
|
+
* - Type system enforces the separation at compile time
|
|
22
|
+
*/
|
|
83
23
|
const settingsMachine = createMachine({
|
|
84
24
|
id: 'settings',
|
|
85
25
|
types: {},
|
|
@@ -87,119 +27,144 @@ const settingsMachine = createMachine({
|
|
|
87
27
|
context: ({
|
|
88
28
|
input
|
|
89
29
|
}) => {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
verifyFormVisibleFields: defaultSettings.verifyFormVisibleFields,
|
|
117
|
-
verifyFormShowSkipButton: defaultSettings.verifyFormShowSkipButton,
|
|
118
|
-
components: [],
|
|
119
|
-
activeComponent: null,
|
|
120
|
-
currentRoute: input?.settings?.currentRoute || '/',
|
|
121
|
-
routeSettings: {
|
|
122
|
-
'/': defaultRouteSettings
|
|
123
|
-
}
|
|
124
|
-
}, input?.settings);
|
|
30
|
+
const rawSettings = input?.settings || {};
|
|
31
|
+
// ConfigurationModel handles ALL bracket patterns automatically
|
|
32
|
+
const {
|
|
33
|
+
model: configModel
|
|
34
|
+
} = extractConfigurationWithModel(rawSettings);
|
|
35
|
+
const deviceType = 'desktop';
|
|
36
|
+
const routePattern = input?.routePattern || input?.currentRoute || '/';
|
|
37
|
+
// Apply overrides by chaining: base -> device -> route+device
|
|
38
|
+
const deviceOverride = configModel.override([routePattern, deviceType], {
|
|
39
|
+
strict: true
|
|
40
|
+
});
|
|
41
|
+
const effectiveSettings = deviceOverride.getValue('');
|
|
42
|
+
// Build INTERNAL state (machine only, never exposed)
|
|
43
|
+
const internalState = {
|
|
44
|
+
configModel,
|
|
45
|
+
deviceType,
|
|
46
|
+
currentRoute: input?.currentRoute || '/',
|
|
47
|
+
routePattern: input?.routePattern,
|
|
48
|
+
changedSettings: {},
|
|
49
|
+
currentChangedSetting: {}
|
|
50
|
+
};
|
|
51
|
+
const context = {
|
|
52
|
+
public: effectiveSettings,
|
|
53
|
+
internal: internalState
|
|
54
|
+
};
|
|
55
|
+
return context;
|
|
125
56
|
},
|
|
126
57
|
states: {
|
|
127
58
|
idle: {
|
|
59
|
+
entry: ['updateReduxSettings'],
|
|
128
60
|
on: {
|
|
129
|
-
|
|
61
|
+
UISETTING_UPDATE: {
|
|
130
62
|
actions: [assign(({
|
|
131
63
|
context,
|
|
132
64
|
event
|
|
133
65
|
}) => {
|
|
134
66
|
if (!event.value) return context;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
set(newContext, key, event.value[key]);
|
|
67
|
+
// Clone context to avoid mutations
|
|
68
|
+
const newContext = cloneDeep(context);
|
|
69
|
+
// 1. Extract the configuration model from the new value
|
|
70
|
+
const {
|
|
71
|
+
model: updateModel
|
|
72
|
+
} = extractConfigurationWithModel(event.value);
|
|
73
|
+
// 2. Merge the new settings into existing config
|
|
74
|
+
newContext.internal.configModel = newContext.internal.configModel.merge(updateModel);
|
|
75
|
+
// 3. Track what changed (for saving to cookie later & save button)
|
|
76
|
+
newContext.internal.currentChangedSetting = event.value;
|
|
77
|
+
newContext.internal.changedSettings = merge({}, newContext.internal.changedSettings, event.value);
|
|
78
|
+
// 4. Reapply settings for current route
|
|
79
|
+
const routePattern = newContext.internal.routePattern || newContext.internal.currentRoute;
|
|
80
|
+
const deviceOverride = newContext.internal.configModel.override([routePattern, newContext.internal.deviceType], {
|
|
81
|
+
strict: true
|
|
151
82
|
});
|
|
83
|
+
// 5. Update the public settings that components see
|
|
84
|
+
newContext.public = deviceOverride.getValue('');
|
|
152
85
|
return newContext;
|
|
153
86
|
}), 'updateReduxSettings']
|
|
154
87
|
},
|
|
155
|
-
|
|
88
|
+
UISETTING_ROUTE_CHANGE: {
|
|
156
89
|
actions: [assign(({
|
|
157
90
|
context,
|
|
158
91
|
event
|
|
159
92
|
}) => {
|
|
160
|
-
const newContext = cloneDeep({
|
|
161
|
-
...context
|
|
162
|
-
});
|
|
163
93
|
const routePath = event.pathname || '/';
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (
|
|
170
|
-
newContext.
|
|
171
|
-
...defaultRouteSettings
|
|
172
|
-
});
|
|
173
|
-
return newContext;
|
|
94
|
+
const routePattern = event.routePattern;
|
|
95
|
+
// Clone context to avoid mutations
|
|
96
|
+
const newContext = cloneDeep(context);
|
|
97
|
+
// Update internal route and route pattern
|
|
98
|
+
newContext.internal.currentRoute = routePath;
|
|
99
|
+
if (routePattern) {
|
|
100
|
+
newContext.internal.routePattern = routePattern;
|
|
174
101
|
}
|
|
175
|
-
|
|
102
|
+
// Build override keys using route pattern if available
|
|
103
|
+
const routeForBracket = routePattern || routePath;
|
|
104
|
+
const routeDeviceKey = [routeForBracket, context.internal.deviceType];
|
|
105
|
+
// Apply overrides by chaining: base -> device -> route+device
|
|
106
|
+
const deviceOverride = context.internal.configModel.override(routeDeviceKey, {
|
|
107
|
+
strict: true
|
|
108
|
+
});
|
|
109
|
+
// Extract final merged settings
|
|
110
|
+
const effectiveSettings = deviceOverride.getValue('');
|
|
111
|
+
// Rebuild PUBLIC settings from scratch (no leakage from old route)
|
|
112
|
+
newContext.public = effectiveSettings;
|
|
176
113
|
return newContext;
|
|
177
|
-
})
|
|
114
|
+
})
|
|
115
|
+
// 'updateReduxSettings',
|
|
116
|
+
]
|
|
178
117
|
},
|
|
179
|
-
|
|
118
|
+
UISETTING_UPDATE_ROUTE_SETTINGS: {
|
|
180
119
|
actions: [assign(({
|
|
181
|
-
context
|
|
182
|
-
event
|
|
120
|
+
context
|
|
183
121
|
}) => ({
|
|
184
|
-
...context
|
|
185
|
-
|
|
122
|
+
...context
|
|
123
|
+
// Route settings are now handled via uiSettings overrides
|
|
186
124
|
})), 'updateReduxSettings']
|
|
187
125
|
},
|
|
188
|
-
|
|
189
|
-
actions: [assign((
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
126
|
+
UISETTING_RESET: {
|
|
127
|
+
actions: [assign(({
|
|
128
|
+
context
|
|
129
|
+
}) => {
|
|
130
|
+
const newContext = cloneDeep(context);
|
|
131
|
+
// Reset public state
|
|
132
|
+
newContext.public.components = [];
|
|
133
|
+
newContext.public.activeComponent = undefined;
|
|
134
|
+
// Reset internal tracking
|
|
135
|
+
newContext.internal.changedSettings = {};
|
|
136
|
+
return newContext;
|
|
137
|
+
}), 'updateReduxSettings']
|
|
138
|
+
},
|
|
139
|
+
UISETTING_RESET_CHANGED_SETTINGS: {
|
|
140
|
+
actions: [assign(({
|
|
141
|
+
context
|
|
142
|
+
}) => {
|
|
143
|
+
const newContext = cloneDeep(context);
|
|
144
|
+
newContext.internal.changedSettings = {};
|
|
145
|
+
return newContext;
|
|
146
|
+
})]
|
|
147
|
+
},
|
|
148
|
+
UISETTING_UPDATE_DEVICE_TYPE: {
|
|
149
|
+
actions: [assign(({
|
|
150
|
+
context,
|
|
151
|
+
event
|
|
152
|
+
}) => {
|
|
153
|
+
const deviceType = event.deviceType || 'desktop';
|
|
154
|
+
if (context.internal.deviceType === deviceType) {
|
|
155
|
+
return context;
|
|
197
156
|
}
|
|
198
|
-
|
|
157
|
+
const newContext = cloneDeep(context);
|
|
158
|
+
newContext.internal.deviceType = deviceType;
|
|
159
|
+
// Recalculate settings for new device
|
|
160
|
+
const routeForBracket = context.internal.routePattern || context.internal.currentRoute;
|
|
161
|
+
const routeOverride = context.internal.configModel.override([routeForBracket, deviceType], {
|
|
162
|
+
strict: true
|
|
163
|
+
});
|
|
164
|
+
newContext.public = routeOverride.getValue('');
|
|
165
|
+
return newContext;
|
|
166
|
+
}), 'updateReduxSettings']
|
|
199
167
|
}
|
|
200
|
-
// SAVE: {
|
|
201
|
-
// actions: ['updateReduxSettings'],
|
|
202
|
-
// },
|
|
203
168
|
}
|
|
204
169
|
}
|
|
205
170
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settingsMachine.js","sources":["../../src/machines/settingsMachine.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settingsMachine.js","sources":["../../src/machines/settingsMachine.ts"],"sourcesContent":[null],"names":[],"mappings":"mJAKA;;;;;;;;;;;;;;;;;;;;;AAqBG;AAEI,MAAM,eAAe,GAAG,aAAa,CAAC;AACzC,EAAA,EAAA,EAAE,UAAE;AACJ,EAAA,KAAA,EAAK,EAAE;AASP,EAAA,OAAA,EAAO,MAAE;AACT,EAAA,OAAA,EAAO;AACH,IAAA;QAEA;UACA,WAAa,GAAE,KAAA,EAAA,QAAgB,IAAA,EAAA;;UAG/B;WAEA,EAAA;AACA,KAAA,GAAA,6BAAuB,CAAA,WAAY,CAAA;UACnC,UAAM,GAAA;UAEN,YAAA,GAAA,KAAA,EAAA,YAAA,IAAA,KAAA,EAAA,YAAqD,IAAA,GAAA;AACrD;wBACe,GAAA,WAAA,CAAA,QAAA,CAAA,CAAA,YAAA,EAAA,UAAA,CAAA,EAAA;YACX,EAAA;AACA,KAAA,CAAA;2BACc,GAAA,cAAO,CAAY,QAAA,CAAA,EAAA,CAAA;AACjC;AACA,IAAA,MAAA,aAAA,GAAA;iBACF;AAEF,MAAA;AACI,MAAA,YAAM,EAAE,KAAA,EAAA,YAAiB,IAAA,GAAA;AACzB,MAAA,YAAA,EAAQ,KAAE,EAAA,YAAa;qBACzB,EAAA,EAAA;AAEF,MAAA,qBAAe,EAAA;KAClB;AACD,IAAA,MAAM,OAAE,GAAA;AACJ,MAAA,MAAI,EAAE,iBAAA;cACF,EAAA;AACA,KAAA;AACI,IAAA,OAAA,OAAA;AACI,EAAA,CAAA;;;AAE0B,MAAA,KAAA,EAAA,CAAA,qBAAA,CAAA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B,YAAA,IAAA,OAAA,CAAA,QAAA,CAAA,eAAkB,UAAA,EAAA;AACtB,cAAA,OAAA,OAAE;;AAEL,YAAA,MAAA,UAAA,GAAA,SAAA,CAAA,OAAA,CAAA;AACJ,YAAA,UAAA,CAAA,QAAA,CAAA,UAAA,GAAA,UAAA;AACJ;AACJ,YAAA,MAAA,eAAA,GAAA,OAAA,CAAA,QAAA,CAAA,YAAA,IAAA,OAAA,CAAA,QAAA,CAAA,YAAA;AACJ,YAAA,MAAA,aAAA,GAAA,OAAA,CAAA,QAAA,CAAA,WAAA,CAAA,QAAA,CAAA,CAAA,eAAA,EAAA,UAAA,CAAA,EAAA;AACJ,cAAE,MAAA,EAAA;;;;;;;;;"}
|
package/lib/machines/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type ThemeColor = 'blue' | 'indigo' | 'red' | 'orange' | 'yellow' | 'teal' | 'green' | 'blue' | 'purple';
|
|
2
2
|
export type NavigationMode = 'sidebar' | 'topbar' | 'mixed';
|
|
3
|
-
export type SideMenuType = 'expanded' | 'collapsed';
|
|
3
|
+
export type SideMenuType = 'expanded' | 'collapsed' | 'perplexLayout';
|
|
4
4
|
export type ContentWidth = 'fixed' | 'fluid';
|
|
5
5
|
export declare enum SearchBarBehavior {
|
|
6
6
|
PERMANENT = "permanent",
|
|
@@ -43,6 +43,58 @@ export type RouteSettings = {
|
|
|
43
43
|
lowerMenuDividerName?: string;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
+
header?: {
|
|
47
|
+
desktop?: {
|
|
48
|
+
showLogo?: boolean;
|
|
49
|
+
showSearchSlot?: boolean;
|
|
50
|
+
showRightContent?: boolean;
|
|
51
|
+
showMenuToggle?: boolean;
|
|
52
|
+
showBackButton?: boolean;
|
|
53
|
+
showPageTitle?: boolean;
|
|
54
|
+
showActionButtons?: boolean;
|
|
55
|
+
position?: 'fixed' | 'static';
|
|
56
|
+
height?: string;
|
|
57
|
+
elevation?: number;
|
|
58
|
+
showHeader?: boolean;
|
|
59
|
+
showMenu?: boolean;
|
|
60
|
+
menuHeaderRender?: boolean;
|
|
61
|
+
searchBarRender?: boolean;
|
|
62
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
63
|
+
searchBarOverlay?: boolean;
|
|
64
|
+
scrollThreshold?: number;
|
|
65
|
+
};
|
|
66
|
+
mobile?: {
|
|
67
|
+
showLogo?: boolean;
|
|
68
|
+
showSearchSlot?: boolean;
|
|
69
|
+
showRightContent?: boolean;
|
|
70
|
+
showMenuToggle?: boolean;
|
|
71
|
+
showBackButton?: boolean;
|
|
72
|
+
showPageTitle?: boolean;
|
|
73
|
+
showActionButtons?: boolean;
|
|
74
|
+
position?: 'fixed' | 'static';
|
|
75
|
+
height?: string;
|
|
76
|
+
elevation?: number;
|
|
77
|
+
showHeader?: boolean;
|
|
78
|
+
showMenu?: boolean;
|
|
79
|
+
menuHeaderRender?: boolean;
|
|
80
|
+
searchBarRender?: boolean;
|
|
81
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
82
|
+
searchBarOverlay?: boolean;
|
|
83
|
+
scrollThreshold?: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
footer?: {
|
|
87
|
+
desktop?: {
|
|
88
|
+
showFooter?: boolean;
|
|
89
|
+
};
|
|
90
|
+
mobile?: {
|
|
91
|
+
showFooter?: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
background?: {
|
|
95
|
+
desktop?: BackgroundSettings;
|
|
96
|
+
mobile?: BackgroundSettings;
|
|
97
|
+
};
|
|
46
98
|
regions?: {
|
|
47
99
|
desktop?: {
|
|
48
100
|
background?: BackgroundSettings;
|
|
@@ -96,7 +148,11 @@ export type RouteSettings = {
|
|
|
96
148
|
};
|
|
97
149
|
};
|
|
98
150
|
};
|
|
99
|
-
|
|
151
|
+
/**
|
|
152
|
+
* UI Settings - User-facing settings that control the visual appearance and layout.
|
|
153
|
+
* This includes all visual/layout settings but excludes internal machine state.
|
|
154
|
+
*/
|
|
155
|
+
export interface UISettings {
|
|
100
156
|
navTheme: 'light' | 'dark' | 'realDark';
|
|
101
157
|
primaryColor: string;
|
|
102
158
|
secondaryColor: string;
|
|
@@ -111,6 +167,7 @@ export interface SettingsContext {
|
|
|
111
167
|
titleFontSize: string;
|
|
112
168
|
letterSpacings: string;
|
|
113
169
|
siderBgColor: string;
|
|
170
|
+
sideMenuType: SideMenuType;
|
|
114
171
|
headerBgColor: string;
|
|
115
172
|
textColor: string;
|
|
116
173
|
themeType: string;
|
|
@@ -125,11 +182,46 @@ export interface SettingsContext {
|
|
|
125
182
|
verifyFormShowSkipButton: boolean;
|
|
126
183
|
components: ComponentSettings[];
|
|
127
184
|
activeComponent?: string;
|
|
128
|
-
|
|
129
|
-
|
|
185
|
+
hiddenMenuKeys?: string[];
|
|
186
|
+
hiddenMenuCategories?: string[];
|
|
187
|
+
uiSettings?: {
|
|
188
|
+
uilayout?: {
|
|
189
|
+
layout?: any;
|
|
190
|
+
regions?: any;
|
|
191
|
+
};
|
|
192
|
+
overrides?: Record<string, any>;
|
|
193
|
+
};
|
|
194
|
+
overrides?: Record<string, any>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Machine-internal state used for XState machine logic only.
|
|
198
|
+
* These values are NEVER exposed to consumers or synced to Redux.
|
|
199
|
+
*
|
|
200
|
+
* IMPORTANT: This interface contains ONLY machine-internal state.
|
|
201
|
+
* NO user-facing settings should be added here.
|
|
202
|
+
*/
|
|
203
|
+
export interface MachineInternalState {
|
|
204
|
+
configModel: any;
|
|
205
|
+
deviceType: 'desktop' | 'mobile';
|
|
206
|
+
currentRoute: string;
|
|
207
|
+
changedSettings: Record<string, any>;
|
|
208
|
+
currentChangedSetting?: Record<string, any>;
|
|
209
|
+
routePattern?: string;
|
|
130
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Settings Context - Complete state with separated UI and internal concerns.
|
|
213
|
+
*/
|
|
214
|
+
export interface SettingsContext {
|
|
215
|
+
public: UISettings;
|
|
216
|
+
internal: MachineInternalState;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Legacy type for backward compatibility
|
|
220
|
+
* @deprecated Use UISettings instead
|
|
221
|
+
*/
|
|
222
|
+
export type SettingsContextLegacy = UISettings;
|
|
131
223
|
export type UpdateEvent = {
|
|
132
|
-
type: '
|
|
224
|
+
type: 'UISETTING_UPDATE';
|
|
133
225
|
value?: Partial<SettingsContext>;
|
|
134
226
|
};
|
|
135
227
|
export type ComponentEvent = {
|
|
@@ -146,7 +238,7 @@ export type ComponentEvent = {
|
|
|
146
238
|
type: 'CLEAR_COMPONENT_SELECTION';
|
|
147
239
|
};
|
|
148
240
|
export type MachineEvent = {
|
|
149
|
-
type: '
|
|
241
|
+
type: 'UISETTING_UPDATE';
|
|
150
242
|
value: Partial<SettingsContext>;
|
|
151
243
|
} | {
|
|
152
244
|
type: 'REGISTER_COMPONENT';
|
|
@@ -161,14 +253,20 @@ export type MachineEvent = {
|
|
|
161
253
|
} | {
|
|
162
254
|
type: 'CLEAR_COMPONENT_SELECTION';
|
|
163
255
|
} | {
|
|
164
|
-
type: '
|
|
256
|
+
type: 'UISETTING_RESET';
|
|
165
257
|
} | {
|
|
166
258
|
type: 'SAVE';
|
|
167
259
|
} | {
|
|
168
|
-
type: '
|
|
260
|
+
type: 'UISETTING_RESET_CHANGED_SETTINGS';
|
|
261
|
+
} | {
|
|
262
|
+
type: 'UISETTING_ROUTE_CHANGE';
|
|
169
263
|
pathname: string;
|
|
264
|
+
routePattern?: string;
|
|
170
265
|
} | {
|
|
171
|
-
type: '
|
|
266
|
+
type: 'UISETTING_UPDATE_ROUTE_SETTINGS';
|
|
172
267
|
settings: Record<string, Partial<SettingsContext>>;
|
|
268
|
+
} | {
|
|
269
|
+
type: 'UISETTING_UPDATE_DEVICE_TYPE';
|
|
270
|
+
deviceType: 'desktop' | 'mobile';
|
|
173
271
|
};
|
|
174
272
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/machines/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAChH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/machines/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAChH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,eAAe,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,oBAAY,iBAAiB;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC;AAED,MAAM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
-
{"version":3,"file":"types.js","sources":["../../src/machines/types.ts"],"sourcesContent":[null],"names":[],"mappings":"IAKY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB,EAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACA,EAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACJ,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../src/machines/types.ts"],"sourcesContent":[null],"names":[],"mappings":"IAKY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB,EAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACA,EAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACJ,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,GAAA,EAAA,CAAA,CAAA"}
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/module.tsx"],"sourcesContent":[null],"names":[],"mappings":"oOAWA;AACA;AACA;AACA,eAAe,IAAI,OAAO,CAAC;AACvB,EAAA,oBAAA,EAAoB;;;;;AAKnB,GAAA;AACD,EAAA,WAAA,EAAW,
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/module.tsx"],"sourcesContent":[null],"names":[],"mappings":"oOAWA;AACA;AACA;AACA,eAAe,IAAI,OAAO,CAAC;AACvB,EAAA,oBAAA,EAAoB;;;;;AAKnB,GAAA;AACD,EAAA,WAAA,EAAW,cAAE;AACb,EAAA,iBAAA,EAAiB;gBACb,EAAA,CAAA,cAAe;AAClB,GAAA;AACD,EAAA,OAAA,EAAO;qBACH;AACA,IAAA,QAAA,EAAA,eAAU;AACV,IAAA,MAAA,EAAA;AACH,GAAA;cACD,EAAY,CAAA,wDAAG;AAClB,CAAA,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const SEARCH_ACTIONS: {
|
|
|
8
8
|
readonly SELECT_NEXT: "search/SELECT_NEXT";
|
|
9
9
|
readonly SELECT_PREVIOUS: "search/SELECT_PREVIOUS";
|
|
10
10
|
};
|
|
11
|
-
export type SearchActionType = typeof SEARCH_ACTIONS[keyof typeof SEARCH_ACTIONS];
|
|
11
|
+
export type SearchActionType = (typeof SEARCH_ACTIONS)[keyof typeof SEARCH_ACTIONS];
|
|
12
12
|
export declare const setSearchQuery: (query: string) => {
|
|
13
13
|
readonly type: "search/SET_SEARCH_QUERY";
|
|
14
14
|
readonly payload: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchReducer.d.ts","sourceRoot":"","sources":["../../src/redux/searchReducer.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC;AAGX,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"searchReducer.d.ts","sourceRoot":"","sources":["../../src/redux/searchReducer.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC;AAGX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAGpF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM;;;CAI7B,CAAC;AAEhB,eAAO,MAAM,eAAe,GAAI,SAAS,YAAY,EAAE;;;CAIxC,CAAC;AAEhB,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM;;;CAI7B,CAAC;AAEhB,eAAO,MAAM,WAAW;;CAGT,CAAC;AAGhB,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAGD,MAAM,MAAM,YAAY,GAClB,UAAU,CAAC,OAAO,cAAc,CAAC,GACjC,UAAU,CAAC,OAAO,eAAe,CAAC,GAClC,UAAU,CAAC,OAAO,cAAc,CAAC,GACjC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAWrC,wBAAgB,aAAa,CAAC,KAAK,aAAe,EAAE,MAAM,EAAE,YAAY,GAAG,WAAW,CA4BrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchReducer.js","sources":["../../src/redux/searchReducer.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"file":"searchReducer.js","sources":["../../src/redux/searchReducer.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACO,MAAM,cAAc,GAAG;AAC1B,EAAA,gBAAA,EAAgB,yBAAE;AAClB,EAAA,iBAAA,EAAiB,0BAAE;AACnB,EAAA,gBAAA,EAAgB,yBAAE;AAClB,EAAA,YAAA,EAAY,qBAAE;AACd,EAAA,QAAA,EAAQ,iBAAE;AACV,EAAA,kBAAA,EAAkB,2BAAE;AACpB,EAAA,WAAA,EAAW,oBAAE;AACb,EAAA,eAAA,EAAe;;AAMnB;MACa,cAAc,GAAG,KAAC,KAAiB;MAExC,EAAI,cAAE,CAAA,gBAAe;AACrB,EAAA,OAAA,EAAO;AACA,CAAA;MAEF,eAAe,GAAG,OAAC,KAA2B;MAEnD,EAAI,cAAE,CAAA,iBAAe;AACrB,EAAA,OAAA,EAAO;AACA,CAAA;MAEF,cAAc,GAAG,KAAC,KAAiB;MAExC,EAAI,cAAE,CAAA,gBAAe;AACrB,EAAA,OAAA,EAAO;AACA,CAAA;AAER,MAAM,WAAW,GAAG,OACtB;MACG,EAAI,cAAE,CAAA;AACC,CAAA;AAyBf;AACA,MAAM,YAAY,GAAgB;AAC9B,EAAA,WAAA,EAAW,EAAE;AACb,EAAA,aAAA,EAAa,EAAE;AACf,EAAA,WAAA,EAAW,KAAE;AACb,EAAA,WAAA,EAAW;CACd;AAED;SACgB,aAAa,CAAC,KAAK,GAAG,YAAY,EAAE,MAAoB,EAAA;AACpE,EAAA,QAAA,MAAQ,CAAA,IAAO;SACX,cAAK,CAAA,gBAAe;aAChB;AACI,QAAA,GAAA,KAAA;mBACA,EAAA,MAAW,CAAA,OAAQ;AACnB,QAAA,WAAA,EAAA,MAAW,QAAQ,CAAC,SAAQ;;SAEpC,cAAK,CAAA,iBAAe;aAChB;AACI,QAAA,GAAA,KAAA;qBACA,EAAA,MAAa,CAAA,OAAQ;AACrB,QAAA,WAAA,EAAA,KAAA;AACA,QAAA,WAAA,EAAA;;SAER,cAAK,CAAA,gBAAe;aAChB;AACI,QAAA,GAAA,KAAA;mBACA,EAAA,MAAW,CAAA,OAAQ;AACnB,QAAA,WAAA,EAAA;;SAER,cAAK,CAAA,YAAe;aAChB;AACI,QAAA,GAAA;;AAER,IAAA;AACI,MAAA,OAAA,KAAA;;AAEZ"}
|
package/lib/routes.json
CHANGED
|
@@ -36,7 +36,15 @@
|
|
|
36
36
|
"path": "/resources/settings",
|
|
37
37
|
"componentPath": "@admin-layout/tailwind-design-pro/lib/components/UpdateSettingsResource/UpdateSettingsResource.js",
|
|
38
38
|
"hasLoader": true,
|
|
39
|
-
"hasAction": true
|
|
39
|
+
"hasAction": true,
|
|
40
|
+
"loaderReturnInfo": {
|
|
41
|
+
"returnType": "json",
|
|
42
|
+
"hasOptions": true,
|
|
43
|
+
"keys": [
|
|
44
|
+
"settings",
|
|
45
|
+
"error"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
]
|