@admin-layout/client 11.0.2-alpha.0 → 12.0.16-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{antd-themes/colors.d.ts → colors/colorsList.d.ts} +1 -1
- package/lib/colors/colorsList.d.ts.map +1 -0
- package/lib/{antd-themes/colors.js → colors/colorsList.js} +1 -1
- package/lib/colors/colorsList.js.map +1 -0
- package/lib/colors/index.d.ts +1 -0
- package/lib/colors/index.d.ts.map +1 -1
- package/lib/colors/presets/black.js +0 -3
- package/lib/colors/presets/black.js.map +1 -1
- package/lib/colors/presets/brinkPink.js +11 -0
- package/lib/colors/presets/brinkPink.js.map +1 -0
- package/lib/colors/presets/cyan.js +11 -0
- package/lib/colors/presets/cyan.js.map +1 -0
- package/lib/colors/presets/lime.js +11 -0
- package/lib/colors/presets/lime.js.map +1 -0
- package/lib/colors/presets/pink.js +11 -0
- package/lib/colors/presets/pink.js.map +1 -0
- package/lib/colors/presets/purple.js +11 -0
- package/lib/colors/presets/purple.js.map +1 -0
- package/lib/colors/presets/skyBlue.js +11 -0
- package/lib/colors/presets/skyBlue.js.map +1 -0
- package/lib/colors/presets/turquoise.js +11 -0
- package/lib/colors/presets/turquoise.js.map +1 -0
- package/lib/colors/presets/white.js +0 -3
- package/lib/colors/presets/white.js.map +1 -1
- package/lib/components/ApplicationErrorFillWrapper.d.ts +1 -2
- package/lib/components/ApplicationErrorFillWrapper.d.ts.map +1 -1
- package/lib/components/ApplicationErrorFillWrapper.js +2 -2
- package/lib/components/ApplicationErrorHandlerCommon.d.ts.map +1 -1
- package/lib/components/ApplicationErrorHandlerCommon.js +6 -8
- package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -1
- package/lib/components/ErrorBoundaryCommon.d.ts +1 -1
- package/lib/components/ErrorBoundaryCommon.js +2 -2
- package/lib/components/ErrorBoundaryCommon.js.map +1 -1
- package/lib/components/LayoutCookieProvider.d.ts +7 -0
- package/lib/components/LayoutCookieProvider.d.ts.map +1 -0
- package/lib/components/LayoutCookieProvider.js +25 -0
- package/lib/components/LayoutCookieProvider.js.map +1 -0
- package/lib/components/UpdateSettings/SettingsConfigurationModel.test.d.ts +2 -0
- package/lib/components/UpdateSettings/SettingsConfigurationModel.test.d.ts.map +1 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts +21 -4
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.js +112 -24
- package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/config/defaultSettings.d.ts +108 -1
- package/lib/config/defaultSettings.d.ts.map +1 -1
- package/lib/config/defaultSettings.js +160 -15
- package/lib/config/defaultSettings.js.map +1 -1
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +11 -4
- package/lib/config/env-config.js.map +1 -1
- package/lib/graphql/link/error-link.d.ts.map +1 -1
- package/lib/graphql/link/error-link.js +1 -1
- package/lib/graphql/link/error-link.js.map +1 -1
- package/lib/hooks/Client-only.d.ts +28 -0
- package/lib/hooks/Client-only.d.ts.map +1 -0
- package/lib/hooks/Client-only.js +18 -0
- package/lib/hooks/Client-only.js.map +1 -0
- package/lib/hooks/hooks.d.ts +4 -0
- package/lib/hooks/hooks.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +2 -1
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/use-hydrated.d.ts +19 -0
- package/lib/hooks/use-hydrated.d.ts.map +1 -0
- package/lib/hooks/use-hydrated.js +24 -0
- package/lib/hooks/use-hydrated.js.map +1 -0
- package/lib/hooks/useLayoutSettings.d.ts +6 -0
- package/lib/hooks/useLayoutSettings.d.ts.map +1 -0
- package/lib/hooks/{useSettings.js → useLayoutSettings.js} +23 -28
- package/lib/hooks/useLayoutSettings.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.native.js +1 -1
- package/lib/interfaces/default-settings.d.ts +1 -0
- package/lib/interfaces/default-settings.d.ts.map +1 -1
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/interfaces/index.d.ts.map +1 -1
- package/lib/interfaces/pure-settings.d.ts +9 -1
- package/lib/interfaces/pure-settings.d.ts.map +1 -1
- package/lib/interfaces/searchbar-settings.d.ts +61 -0
- package/lib/interfaces/searchbar-settings.d.ts.map +1 -0
- package/lib/interfaces/settings.d.ts +166 -0
- package/lib/interfaces/settings.d.ts.map +1 -0
- package/lib/interfaces/settings.js +5 -0
- package/lib/interfaces/settings.js.map +1 -0
- package/lib/redux/actions/error-actions.d.ts.map +1 -1
- package/lib/redux/reducers/settings.d.ts +2 -36
- package/lib/redux/reducers/settings.d.ts.map +1 -1
- package/lib/redux/reducers/settings.js +4 -8
- package/lib/redux/reducers/settings.js.map +1 -1
- package/lib/redux/store.js +1 -1
- package/lib/themes/templates/darkLayoutTheme.d.ts +1 -1
- package/lib/themes/templates/darkLayoutTheme.d.ts.map +1 -1
- package/lib/utils/assignDefaults.d.ts +11 -0
- package/lib/utils/assignDefaults.d.ts.map +1 -0
- package/lib/utils/assignDefaults.js +166 -0
- package/lib/utils/assignDefaults.js.map +1 -0
- package/lib/utils/assignDefaults.test.d.ts +2 -0
- package/lib/utils/assignDefaults.test.d.ts.map +1 -0
- package/lib/utils/generateMenuLink.d.ts.map +1 -1
- package/lib/utils/generateMenuLink.js +13 -1
- package/lib/utils/generateMenuLink.js.map +1 -1
- package/lib/utils/generateMenuLink.test.d.ts +2 -0
- package/lib/utils/generateMenuLink.test.d.ts.map +1 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/matchMenuKeys.d.ts.map +1 -1
- package/lib/utils/matchMenuKeys.js.map +1 -1
- package/lib/utils/menuUtils.d.ts +2 -2
- package/lib/utils/menuUtils.d.ts.map +1 -1
- package/lib/utils/menuUtils.js +1 -1
- package/lib/utils/menuUtils.js.map +1 -1
- package/lib/utils/parentRoute.d.ts.map +1 -1
- package/lib/utils/settingsDiff.test.d.ts +2 -0
- package/lib/utils/settingsDiff.test.d.ts.map +1 -0
- package/lib/utils/settingsDifference.d.ts +5 -0
- package/lib/utils/settingsDifference.d.ts.map +1 -0
- package/lib/utils/settingsDifference.js +207 -0
- package/lib/utils/settingsDifference.js.map +1 -0
- package/lib/utils/settingsDifference.test.d.ts +2 -0
- package/lib/utils/settingsDifference.test.d.ts.map +1 -0
- package/package.json +5 -4
- package/lib/antd-themes/ThemeProvider.d.ts +0 -434
- package/lib/antd-themes/ThemeProvider.d.ts.map +0 -1
- package/lib/antd-themes/ThemeProvider.js +0 -34
- package/lib/antd-themes/ThemeProvider.js.map +0 -1
- package/lib/antd-themes/airbnb-dark-theme.d.ts +0 -230
- package/lib/antd-themes/airbnb-dark-theme.d.ts.map +0 -1
- package/lib/antd-themes/airbnb-dark-theme.js +0 -168
- package/lib/antd-themes/airbnb-dark-theme.js.map +0 -1
- package/lib/antd-themes/airbnb-light-theme.d.ts +0 -230
- package/lib/antd-themes/airbnb-light-theme.d.ts.map +0 -1
- package/lib/antd-themes/airbnb-light-theme.js +0 -168
- package/lib/antd-themes/airbnb-light-theme.js.map +0 -1
- package/lib/antd-themes/colors.d.ts.map +0 -1
- package/lib/antd-themes/colors.js.map +0 -1
- package/lib/antd-themes/default-dark-theme.d.ts +0 -199
- package/lib/antd-themes/default-dark-theme.d.ts.map +0 -1
- package/lib/antd-themes/default-dark-theme.js +0 -136
- package/lib/antd-themes/default-dark-theme.js.map +0 -1
- package/lib/antd-themes/default-light-theme.d.ts +0 -199
- package/lib/antd-themes/default-light-theme.d.ts.map +0 -1
- package/lib/antd-themes/default-light-theme.js +0 -136
- package/lib/antd-themes/default-light-theme.js.map +0 -1
- package/lib/antd-themes/github-dark-theme.d.ts +0 -230
- package/lib/antd-themes/github-dark-theme.d.ts.map +0 -1
- package/lib/antd-themes/github-dark-theme.js +0 -168
- package/lib/antd-themes/github-dark-theme.js.map +0 -1
- package/lib/antd-themes/github-light-theme.d.ts +0 -230
- package/lib/antd-themes/github-light-theme.d.ts.map +0 -1
- package/lib/antd-themes/github-light-theme.js +0 -168
- package/lib/antd-themes/github-light-theme.js.map +0 -1
- package/lib/antd-themes/index.d.ts +0 -14
- package/lib/antd-themes/index.d.ts.map +0 -1
- package/lib/antd-themes/slack-dark-theme.d.ts +0 -229
- package/lib/antd-themes/slack-dark-theme.d.ts.map +0 -1
- package/lib/antd-themes/slack-dark-theme.js +0 -167
- package/lib/antd-themes/slack-dark-theme.js.map +0 -1
- package/lib/antd-themes/slack-light-theme.d.ts +0 -229
- package/lib/antd-themes/slack-light-theme.d.ts.map +0 -1
- package/lib/antd-themes/slack-light-theme.js +0 -167
- package/lib/antd-themes/slack-light-theme.js.map +0 -1
- package/lib/antd-themes/spotify-dark-theme.d.ts +0 -230
- package/lib/antd-themes/spotify-dark-theme.d.ts.map +0 -1
- package/lib/antd-themes/spotify-dark-theme.js +0 -168
- package/lib/antd-themes/spotify-dark-theme.js.map +0 -1
- package/lib/antd-themes/spotify-light-theme.d.ts +0 -230
- package/lib/antd-themes/spotify-light-theme.d.ts.map +0 -1
- package/lib/antd-themes/spotify-light-theme.js +0 -168
- package/lib/antd-themes/spotify-light-theme.js.map +0 -1
- package/lib/antd-themes/themeRegistry.d.ts +0 -2229
- package/lib/antd-themes/themeRegistry.d.ts.map +0 -1
- package/lib/antd-themes/themeRegistry.js +0 -12
- package/lib/antd-themes/themeRegistry.js.map +0 -1
- package/lib/hooks/useSettings.d.ts +0 -5
- package/lib/hooks/useSettings.d.ts.map +0 -1
- package/lib/hooks/useSettings.js.map +0 -1
- package/lib/utils/getAntdLocale.d.ts +0 -3
- package/lib/utils/getAntdLocale.d.ts.map +0 -1
- package/lib/utils/getAntdLocale.js +0 -18
- package/lib/utils/getAntdLocale.js.map +0 -1
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{
|
|
1
|
+
export{SearchBarBehavior}from'./interfaces/settings.js';export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{compareAndSaveSettingsDifferences}from'./utils/settingsDifference.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.js';export{LayoutCookieProvider}from'./components/LayoutCookieProvider.js';export{ErrorLink,errorReduxLink}from'./graphql/link/error-link.js';export{systemFont}from'./themes/systemFont/index.js';export{borderRadius,colors,lightLayoutTheme,lightNavigationBarTheme,lightTabBarTheme,shadows,sizes,spacings,textVariants}from'./themes/templates/lightLayoutTheme.js';export{createLayoutTheme}from'./themes/templates/createLayoutTheme.js';export{darkColors,darkLayoutTheme,darkNavigationBarTheme,darkTabBarTheme}from'./themes/templates/darkLayoutTheme.js';export{config}from'./config/env-config.js';export{defaultSettings}from'./config/defaultSettings.js';export{useLayoutSettings}from'./hooks/useLayoutSettings.js';export{usePermissionAutoFetch,useSetting,useSettingsLoader}from'@adminide-stack/platform-client';export{ClientOnly}from'./hooks/Client-only.js';export{blue}from'./colors/presets/blue.js';export{brinkPink}from'./colors/presets/brinkPink.js';export{cyan}from'./colors/presets/cyan.js';export{green}from'./colors/presets/green.js';export{lime}from'./colors/presets/lime.js';export{orange}from'./colors/presets/orange.js';export{pink}from'./colors/presets/pink.js';export{purple}from'./colors/presets/purple.js';export{red}from'./colors/presets/red.js';export{skyBlue}from'./colors/presets/skyBlue.js';export{turquoise}from'./colors/presets/turquoise.js';export{yellow}from'./colors/presets/yellow.js';export{white}from'./colors/presets/white.js';export{black}from'./colors/presets/black.js';export{colorList,getThemeColors}from'./colors/colorsList.js';//# sourceMappingURL=index.js.map
|
package/lib/index.native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{
|
|
1
|
+
export{SearchBarBehavior}from'./interfaces/settings.js';export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{compareAndSaveSettingsDifferences}from'./utils/settingsDifference.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.js';export{LayoutCookieProvider}from'./components/LayoutCookieProvider.js';export{ErrorLink,errorReduxLink}from'./graphql/link/error-link.js';export{systemFont}from'./themes/systemFont/index.js';export{borderRadius,colors,lightLayoutTheme,lightNavigationBarTheme,lightTabBarTheme,shadows,sizes,spacings,textVariants}from'./themes/templates/lightLayoutTheme.js';export{createLayoutTheme}from'./themes/templates/createLayoutTheme.js';export{darkColors,darkLayoutTheme,darkNavigationBarTheme,darkTabBarTheme}from'./themes/templates/darkLayoutTheme.js';export{config}from'./config/env-config.js';export{defaultSettings}from'./config/defaultSettings.js';//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/default-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"default-settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/default-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type ContentWidth = 'Fluid' | 'Fixed';
|
|
2
3
|
export type MenuTheme = 'light' | 'dark';
|
|
3
4
|
export interface RenderSetting {
|
|
@@ -9,6 +10,7 @@ export interface RenderSetting {
|
|
|
9
10
|
showMenu?: boolean | any;
|
|
10
11
|
menuRender?: false | any;
|
|
11
12
|
menuHeaderRender?: false | any;
|
|
13
|
+
scrollThreshold?: number;
|
|
12
14
|
}
|
|
13
15
|
export interface PureSettings {
|
|
14
16
|
/**
|
|
@@ -52,6 +54,10 @@ export interface PureSettings {
|
|
|
52
54
|
* @description Set to false, only pageName is displayed in the layout, not pageName-title
|
|
53
55
|
*/
|
|
54
56
|
title: string | false;
|
|
57
|
+
/**
|
|
58
|
+
* @name Logo URL for the header
|
|
59
|
+
*/
|
|
60
|
+
logo?: string | React.ReactNode;
|
|
55
61
|
/**
|
|
56
62
|
* Your custom iconfont Symbol script Url
|
|
57
63
|
* eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
|
|
@@ -74,6 +80,8 @@ export interface PureSettings {
|
|
|
74
80
|
*/
|
|
75
81
|
splitMenus?: boolean;
|
|
76
82
|
siderMenuType?: string;
|
|
83
|
+
currentRoute?: string;
|
|
84
|
+
routeSettings?: any;
|
|
77
85
|
}
|
|
78
|
-
export type ProSettings = PureSettings
|
|
86
|
+
export type ProSettings = PureSettings;
|
|
79
87
|
//# sourceMappingURL=pure-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pure-settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/pure-settings.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IACzB,UAAU,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;IACzB,gBAAgB,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"pure-settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/pure-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC7B,UA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AAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,aAAa,CAAC,EAAE,GAAG,CAAC;CACvB;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface AmenityItem {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
export interface AdvanceFilterConfig {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
fields: {
|
|
7
|
+
distance: boolean;
|
|
8
|
+
price: boolean;
|
|
9
|
+
petsAllowed: boolean;
|
|
10
|
+
instantBooking: boolean;
|
|
11
|
+
amenities: boolean;
|
|
12
|
+
datasources: boolean;
|
|
13
|
+
};
|
|
14
|
+
amenitiesList: AmenityItem[];
|
|
15
|
+
}
|
|
16
|
+
export interface DatePickerConfig {
|
|
17
|
+
enableSingleDayMode: boolean;
|
|
18
|
+
enableTimeSelection: boolean;
|
|
19
|
+
defaultToSingleDay: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface HotelsFieldsConfig {
|
|
22
|
+
location: boolean;
|
|
23
|
+
dates: boolean;
|
|
24
|
+
guests: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface FlightsFieldsConfig {
|
|
27
|
+
fromLocation: boolean;
|
|
28
|
+
toLocation: boolean;
|
|
29
|
+
dates: boolean;
|
|
30
|
+
returnFlight: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface CarsFieldsConfig {
|
|
33
|
+
pickupLocation: boolean;
|
|
34
|
+
dropoffLocation: boolean;
|
|
35
|
+
dates: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface FieldsConfig {
|
|
38
|
+
HOTELS: HotelsFieldsConfig;
|
|
39
|
+
FLIGHTS: FlightsFieldsConfig;
|
|
40
|
+
CARS: CarsFieldsConfig;
|
|
41
|
+
}
|
|
42
|
+
export interface EnabledSearchBars {
|
|
43
|
+
HOTELS: boolean;
|
|
44
|
+
FLIGHTS: boolean;
|
|
45
|
+
CARS: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface SearchbarSettings {
|
|
48
|
+
enabledSearchBars: EnabledSearchBars;
|
|
49
|
+
fieldsConfig: FieldsConfig;
|
|
50
|
+
datePickerConfig: {
|
|
51
|
+
HOTELS: DatePickerConfig;
|
|
52
|
+
FLIGHTS: DatePickerConfig;
|
|
53
|
+
CARS: DatePickerConfig;
|
|
54
|
+
};
|
|
55
|
+
advanceFilterConfig: AdvanceFilterConfig;
|
|
56
|
+
showTypeSelector: boolean;
|
|
57
|
+
isSettingsPanelOpen: boolean;
|
|
58
|
+
showTravelPlanner: boolean;
|
|
59
|
+
showAIAgent: boolean;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=searchbar-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchbar-settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/searchbar-settings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACJ,QAAQ,EAAE,OAAO,CAAC;QAClB,KAAK,EAAE,OAAO,CAAC;QACf,WAAW,EAAE,OAAO,CAAC;QACrB,cAAc,EAAE,OAAO,CAAC;QACxB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;KACxB,CAAC;IACF,aAAa,EAAE,WAAW,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,IAAI,EAAE,gBAAgB,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE;QACd,MAAM,EAAE,gBAAgB,CAAC;QACzB,OAAO,EAAE,gBAAgB,CAAC;QAC1B,IAAI,EAAE,gBAAgB,CAAC;KAC1B,CAAC;IACF,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { ContentWidth } from './pure-settings';
|
|
2
|
+
export type ThemeColor = 'blue' | 'indigo' | 'red' | 'orange' | 'yellow' | 'teal' | 'green' | 'blue' | 'purple';
|
|
3
|
+
export type NavigationMode = 'sidebar' | 'topbar' | 'mixed';
|
|
4
|
+
export type SideMenuType = 'expanded' | 'collapsed';
|
|
5
|
+
export declare enum SearchBarBehavior {
|
|
6
|
+
PERMANENT = "permanent",
|
|
7
|
+
ON_SCROLL = "on-scroll"
|
|
8
|
+
}
|
|
9
|
+
export interface ComponentSettings {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
settings: Record<string, any>;
|
|
13
|
+
}
|
|
14
|
+
export interface SettingsContext {
|
|
15
|
+
navTheme: 'light' | 'dark' | 'realDark';
|
|
16
|
+
primaryColor: string;
|
|
17
|
+
secondaryColor: string;
|
|
18
|
+
theme?: string;
|
|
19
|
+
logo: string;
|
|
20
|
+
showSettingPanel: boolean;
|
|
21
|
+
titleColor: string;
|
|
22
|
+
language: string;
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
titleFontWeight: string;
|
|
25
|
+
titleHeight: string;
|
|
26
|
+
titleFontSize: string;
|
|
27
|
+
letterSpacings: string;
|
|
28
|
+
siderBgColor: string;
|
|
29
|
+
headerBgColor: string;
|
|
30
|
+
textColor: string;
|
|
31
|
+
themeType: string;
|
|
32
|
+
loginThemeColor: string;
|
|
33
|
+
loginFormPosition: string;
|
|
34
|
+
loginSocials: string;
|
|
35
|
+
loginBackgroundImage: string;
|
|
36
|
+
verifyFormLayout: string;
|
|
37
|
+
verifyFormImageUrl: string;
|
|
38
|
+
verifyFormBackgroundStyle: string;
|
|
39
|
+
verifyFormVisibleFields: string;
|
|
40
|
+
verifyFormShowSkipButton: boolean;
|
|
41
|
+
components: ComponentSettings[];
|
|
42
|
+
activeComponent?: string;
|
|
43
|
+
currentRoute?: string;
|
|
44
|
+
routeSettings: Record<string, {
|
|
45
|
+
layout?: {
|
|
46
|
+
desktop: {
|
|
47
|
+
navigationMode: NavigationMode;
|
|
48
|
+
sideMenuType: SideMenuType;
|
|
49
|
+
contentWidth: ContentWidth;
|
|
50
|
+
fixedHeader: boolean;
|
|
51
|
+
fixedSidebar: boolean;
|
|
52
|
+
splitMenus: boolean;
|
|
53
|
+
upperMenuDividerName?: string;
|
|
54
|
+
middleMenuDividerName?: string;
|
|
55
|
+
lowerMenuDividerName?: string;
|
|
56
|
+
};
|
|
57
|
+
mobile: {
|
|
58
|
+
navigationMode: NavigationMode;
|
|
59
|
+
sideMenuType: SideMenuType;
|
|
60
|
+
contentWidth: ContentWidth;
|
|
61
|
+
fixedHeader: boolean;
|
|
62
|
+
fixedSidebar: boolean;
|
|
63
|
+
splitMenus: boolean;
|
|
64
|
+
upperMenuDividerName?: string;
|
|
65
|
+
middleMenuDividerName?: string;
|
|
66
|
+
lowerMenuDividerName?: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
regions?: {
|
|
70
|
+
desktop?: {
|
|
71
|
+
header?: {
|
|
72
|
+
showLogo?: boolean;
|
|
73
|
+
showSearchSlot?: boolean;
|
|
74
|
+
showRightContent?: boolean;
|
|
75
|
+
showMenuToggle?: boolean;
|
|
76
|
+
showBackButton?: boolean;
|
|
77
|
+
showPageTitle?: boolean;
|
|
78
|
+
showActionButtons?: boolean;
|
|
79
|
+
position?: 'fixed' | 'static';
|
|
80
|
+
height?: string;
|
|
81
|
+
backgroundColor?: string;
|
|
82
|
+
elevation?: number;
|
|
83
|
+
showHeader?: boolean;
|
|
84
|
+
showMenu?: boolean;
|
|
85
|
+
menuHeaderRender?: boolean;
|
|
86
|
+
searchBarRender?: boolean;
|
|
87
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
88
|
+
searchBarOverlay?: boolean;
|
|
89
|
+
scrollThreshold?: number;
|
|
90
|
+
};
|
|
91
|
+
footer?: {
|
|
92
|
+
showFooter?: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
mobile?: {
|
|
96
|
+
header?: {
|
|
97
|
+
showLogo?: boolean;
|
|
98
|
+
showSearchSlot?: boolean;
|
|
99
|
+
showRightContent?: boolean;
|
|
100
|
+
showMenuToggle?: boolean;
|
|
101
|
+
showBackButton?: boolean;
|
|
102
|
+
showPageTitle?: boolean;
|
|
103
|
+
showActionButtons?: boolean;
|
|
104
|
+
position?: 'fixed' | 'static';
|
|
105
|
+
height?: string;
|
|
106
|
+
backgroundColor?: string;
|
|
107
|
+
elevation?: number;
|
|
108
|
+
showHeader?: boolean;
|
|
109
|
+
showMenu?: boolean;
|
|
110
|
+
menuHeaderRender?: boolean;
|
|
111
|
+
searchBarRender?: boolean;
|
|
112
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
113
|
+
searchBarOverlay?: boolean;
|
|
114
|
+
scrollThreshold?: number;
|
|
115
|
+
};
|
|
116
|
+
footer?: {
|
|
117
|
+
showFooter?: boolean;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}>;
|
|
122
|
+
}
|
|
123
|
+
export type UpdateEvent = {
|
|
124
|
+
type: 'UPDATE';
|
|
125
|
+
value?: Partial<SettingsContext>;
|
|
126
|
+
};
|
|
127
|
+
export type ComponentEvent = {
|
|
128
|
+
type: 'REGISTER_COMPONENT';
|
|
129
|
+
component: ComponentSettings;
|
|
130
|
+
} | {
|
|
131
|
+
type: 'UPDATE_COMPONENT_SETTINGS';
|
|
132
|
+
componentId: string;
|
|
133
|
+
settings: Record<string, any>;
|
|
134
|
+
} | {
|
|
135
|
+
type: 'SELECT_COMPONENT';
|
|
136
|
+
componentId: string;
|
|
137
|
+
} | {
|
|
138
|
+
type: 'CLEAR_COMPONENT_SELECTION';
|
|
139
|
+
};
|
|
140
|
+
export type MachineEvent = {
|
|
141
|
+
type: 'UPDATE';
|
|
142
|
+
value: Partial<SettingsContext>;
|
|
143
|
+
} | {
|
|
144
|
+
type: 'REGISTER_COMPONENT';
|
|
145
|
+
component: any;
|
|
146
|
+
} | {
|
|
147
|
+
type: 'UPDATE_COMPONENT_SETTINGS';
|
|
148
|
+
componentId: string;
|
|
149
|
+
settings: any;
|
|
150
|
+
} | {
|
|
151
|
+
type: 'SELECT_COMPONENT';
|
|
152
|
+
componentId: string;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'CLEAR_COMPONENT_SELECTION';
|
|
155
|
+
} | {
|
|
156
|
+
type: 'RESET';
|
|
157
|
+
} | {
|
|
158
|
+
type: 'SAVE';
|
|
159
|
+
} | {
|
|
160
|
+
type: 'ROUTE_CHANGE';
|
|
161
|
+
pathname: string;
|
|
162
|
+
} | {
|
|
163
|
+
type: 'UPDATE_ROUTE_SETTINGS';
|
|
164
|
+
settings: Record<string, Partial<SettingsContext>>;
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,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;AAEpD,oBAAY,iBAAiB;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;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,WAAW,eAAe;IAC5B,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CA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AQ,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,SAAS,EAAE,GAAG,CAAA;CAAE,GAC9C;IAAE,IAAI,EAAE,2BAA2B,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,2BAA2B,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../src/interfaces/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAS,IAAA;AAET,CAAM,UAAA,iBAAmB,EAAA;AACzB,IAAM,6BAAuB,CAAA,GAAA,WAAoB;AACjD,IAAA,iBAAwB,CAAA,WAAa,CAAA,GAAA;AAErC,CAAA,EAAA,iBAAY,KAAiB,iBAAA,GAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-actions.d.ts","sourceRoot":"","sources":["../../../src/redux/actions/error-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAGzB,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"error-actions.d.ts","sourceRoot":"","sources":["../../../src/redux/actions/error-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAGzB,eAAO,MAAM,mBAAmB,GAAI,SAAS,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC;;;CAK/E,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM;;;;;EAO5D;AAED,eAAO,MAAM,uBAAuB,GAAI,SAAS,qBAAqB,EAAE;;;CAKvE,CAAC;AAEF,MAAM,MAAM,YAAY,GACtB;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;CAAE,GAC3E;IAAE,IAAI,EAAE,yBAAyB,CAAC;IAAC,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,wBAAwB,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,OAAO,EAAE,qBAAqB,EAAE,CAAA;CAAE,CAAA"}
|
|
@@ -1,41 +1,7 @@
|
|
|
1
1
|
import { DefaultSettings } from '../../interfaces';
|
|
2
|
-
declare const settingsReducer: (state:
|
|
2
|
+
declare const settingsReducer: (state: any, { type, payload }: {
|
|
3
3
|
type: string;
|
|
4
4
|
payload: DefaultSettings;
|
|
5
|
-
}) =>
|
|
6
|
-
language: DefaultSettings;
|
|
7
|
-
navTheme?: import("../../interfaces").MenuTheme | "realDark" | undefined;
|
|
8
|
-
headerTheme?: import("../../interfaces").MenuTheme;
|
|
9
|
-
headerHeight?: number;
|
|
10
|
-
layout?: "side" | "top" | "mix";
|
|
11
|
-
contentWidth?: import("../../interfaces").ContentWidth;
|
|
12
|
-
fixedHeader?: boolean;
|
|
13
|
-
fixSiderbar?: boolean;
|
|
14
|
-
menu?: {
|
|
15
|
-
locale?: boolean;
|
|
16
|
-
defaultOpenAll?: boolean;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
};
|
|
19
|
-
title?: string | false;
|
|
20
|
-
iconfontUrl?: string;
|
|
21
|
-
colorPrimary?: string;
|
|
22
|
-
primaryColor?: string;
|
|
23
|
-
colorWeak?: boolean;
|
|
24
|
-
splitMenus?: boolean;
|
|
25
|
-
siderMenuType?: string;
|
|
26
|
-
showHeader?: boolean | any;
|
|
27
|
-
headerRender?: boolean | any;
|
|
28
|
-
showFooter?: boolean | any;
|
|
29
|
-
footerRender?: boolean | any;
|
|
30
|
-
searchBarRender?: boolean | any;
|
|
31
|
-
showMenu?: boolean | any;
|
|
32
|
-
menuRender?: false | any;
|
|
33
|
-
menuHeaderRender?: false | any;
|
|
34
|
-
siderBgColor?: string;
|
|
35
|
-
headerBgColor?: string;
|
|
36
|
-
textColor?: string;
|
|
37
|
-
theme?: string;
|
|
38
|
-
themeType?: string;
|
|
39
|
-
};
|
|
5
|
+
}) => any;
|
|
40
6
|
export { settingsReducer };
|
|
41
7
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/redux/reducers/settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/redux/reducers/settings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAanD,QAAA,MAAM,eAAe,GACjB,OAAO,GAAgC,EACvC,mBAAwB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,eAAe,CAAA;CAAE,QAyBrE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'../../constants/constants.js';import {
|
|
1
|
+
import {CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'../../constants/constants.js';import {defaultSettings}from'../../config/defaultSettings.js';import {merge,cloneDeep}from'lodash-es';/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
2
2
|
/* eslint-disable no-case-declarations */
|
|
3
3
|
// Note: We customize reducer part as AntPro uses inbuild way.
|
|
4
4
|
const updateColorWeak = (colorWeak) => {
|
|
@@ -10,16 +10,12 @@ const updateColorWeak = (colorWeak) => {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
// colorWeak: any;
|
|
15
|
-
// contentWidth: any;
|
|
16
|
-
// }
|
|
17
|
-
const settingsReducer = (state = config.LAYOUT_SETTINGS, { type, payload = {} }) => {
|
|
13
|
+
const settingsReducer = (state = merge({}, defaultSettings), { type, payload = {} }) => {
|
|
18
14
|
switch (type) {
|
|
19
15
|
case CHANGE_SETTINGS_ACTION:
|
|
20
16
|
const { colorWeak, contentWidth } = payload;
|
|
21
17
|
// @sri to avoid breaking during SSR, split into to checks
|
|
22
|
-
if (state
|
|
18
|
+
if (state?.contentWidth !== contentWidth) {
|
|
23
19
|
if (typeof window !== 'undefined') {
|
|
24
20
|
window.dispatchEvent(new Event('resize'));
|
|
25
21
|
}
|
|
@@ -27,7 +23,7 @@ const settingsReducer = (state = config.LAYOUT_SETTINGS, { type, payload = {} })
|
|
|
27
23
|
updateColorWeak(!!colorWeak);
|
|
28
24
|
return {
|
|
29
25
|
...state,
|
|
30
|
-
...
|
|
26
|
+
...cloneDeep(payload),
|
|
31
27
|
};
|
|
32
28
|
case CHANGE_LANGUAGE:
|
|
33
29
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../../src/redux/reducers/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../../src/redux/reducers/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"wLAKA;AAaA;AA6BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/redux/store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';import'../config/
|
|
1
|
+
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';import'../config/defaultSettings.js';import'lodash-es';// Combine the reducers into an object
|
|
2
2
|
const rootReducer = combineReducers({
|
|
3
3
|
applicationErrors: applicationErrors, // Adding applicationErrors reducer
|
|
4
4
|
});
|
|
@@ -19,5 +19,5 @@ export declare const darkColors: {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const darkNavigationBarTheme: LayoutThemeNavigationBar;
|
|
21
21
|
export declare const darkTabBarTheme: LayoutThemeTabBar;
|
|
22
|
-
export declare const darkLayoutTheme: import("
|
|
22
|
+
export declare const darkLayoutTheme: import("..").LayoutTheme;
|
|
23
23
|
//# sourceMappingURL=darkLayoutTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"darkLayoutTheme.d.ts","sourceRoot":"","sources":["../../../src/themes/templates/darkLayoutTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI7E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAkBtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAG7B,CAAC;AAEF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"darkLayoutTheme.d.ts","sourceRoot":"","sources":["../../../src/themes/templates/darkLayoutTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI7E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAkBtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAG7B,CAAC;AAEF,eAAO,MAAM,eAAe,0BAM1B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface DefaultsObject {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Recursively assigns default values only for non-existent keys in target object,
|
|
6
|
+
* based on source object structure. Does not modify any existing values in target.
|
|
7
|
+
* @param target - The target object to assign defaults to
|
|
8
|
+
* @param source - The source object containing the structure and default values
|
|
9
|
+
*/
|
|
10
|
+
export declare function assignDefaults(target: DefaultsObject, source: DefaultsObject): void;
|
|
11
|
+
//# sourceMappingURL=assignDefaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignDefaults.d.ts","sourceRoot":"","sources":["../../src/utils/assignDefaults.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,GAAG,IAAI,CA6JnF"}
|