@admin-layout/tailwind-design-pro 10.0.9-alpha.9 → 10.1.1-alpha.2
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 +345 -1
- package/lib/cdm-locales/en/settings.json +35 -1
- package/lib/cdm-locales/es/settings.json +37 -3
- package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +146 -42
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +70 -38
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
- package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js +230 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +1 -2
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +108 -92
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +29 -19
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.d.ts +1 -16
- package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.js +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +6 -6
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js +6 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +3 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.d.ts.map +1 -1
- package/lib/components/Layout/util.js +12 -0
- package/lib/components/Layout/util.js.map +1 -0
- package/lib/components/SettingDrawer/CheckBoxTheme.js +1 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +75 -17
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +685 -33
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +164 -39
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/types.d.ts +23 -2
- package/lib/components/SettingDrawer/types.d.ts.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +26 -28
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
- package/lib/components/ThemeProvider/index.d.ts +2 -5
- package/lib/components/ThemeProvider/index.d.ts.map +1 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
- package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
- package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/default.js +183 -0
- package/lib/components/ThemeProvider/themes/default.js.map +1 -0
- package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/github.js +190 -0
- package/lib/components/ThemeProvider/themes/github.js.map +1 -0
- package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
- package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/index.js +7 -0
- package/lib/components/ThemeProvider/themes/index.js.map +1 -0
- package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/slack.js +188 -0
- package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
- package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/spotify.js +189 -0
- package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
- package/lib/components/ThemeProvider/types.d.ts +106 -106
- package/lib/components/ThemeProvider/types.d.ts.map +1 -1
- package/lib/components/UI/CardList.d.ts +61 -0
- package/lib/components/UI/CardList.d.ts.map +1 -0
- package/lib/components/UI/CardList.js +43 -0
- package/lib/components/UI/CardList.js.map +1 -0
- package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
- package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
- package/lib/components/UI/CategoriesTypeList.js +140 -0
- package/lib/components/UI/CategoriesTypeList.js.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
- package/lib/components/UI/Pagination.d.ts +6 -0
- package/lib/components/UI/Pagination.d.ts.map +1 -0
- package/lib/components/UI/Pagination.js +59 -0
- package/lib/components/UI/Pagination.js.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts +101 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.js +120 -0
- package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
- package/lib/components/UI/PropertyCard.d.ts +24 -0
- package/lib/components/UI/PropertyCard.d.ts.map +1 -0
- package/lib/components/UI/PropertyCard.js +375 -0
- package/lib/components/UI/PropertyCard.js.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.js +108 -0
- package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
- package/lib/components/UI/VehicleCard.d.ts +15 -0
- package/lib/components/UI/VehicleCard.d.ts.map +1 -0
- package/lib/components/UI/VehicleCardList.d.ts +14 -0
- package/lib/components/UI/VehicleCardList.d.ts.map +1 -0
- package/lib/components/UI/VehicleComponents/CarCardFooter.d.ts +7 -0
- package/lib/components/UI/VehicleComponents/CarCardFooter.d.ts.map +1 -0
- package/lib/components/UI/VehicleComponents/CarCardFooter.js +61 -0
- package/lib/components/UI/VehicleComponents/CarCardFooter.js.map +1 -0
- package/lib/components/UI/VehicleComponents/CarCardImage.d.ts +9 -0
- package/lib/components/UI/VehicleComponents/CarCardImage.d.ts.map +1 -0
- package/lib/components/UI/VehicleComponents/CarCardImage.js +32 -0
- package/lib/components/UI/VehicleComponents/CarCardImage.js.map +1 -0
- package/lib/components/UI/VehicleComponents/CarCardInfo.d.ts +13 -0
- package/lib/components/UI/VehicleComponents/CarCardInfo.d.ts.map +1 -0
- package/lib/components/UI/VehicleComponents/CarCardInfo.js +49 -0
- package/lib/components/UI/VehicleComponents/CarCardInfo.js.map +1 -0
- package/lib/components/UI/VehicleComponents/index.d.ts +4 -0
- package/lib/components/UI/VehicleComponents/index.d.ts.map +1 -0
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +90 -0
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
- package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.js +18 -0
- package/lib/components/UI/icons/LocationIcon.js.map +1 -0
- package/lib/components/UI/icons/index.d.ts +2 -0
- package/lib/components/UI/icons/index.d.ts.map +1 -0
- package/lib/components/UI/index.d.ts +9 -0
- package/lib/components/UI/index.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/typings.d.ts +133 -51
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/components/typings.js +6 -0
- package/lib/components/typings.js.map +1 -0
- package/lib/config/constants.d.ts +8 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +32 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/env-config.d.ts +15 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +66 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.d.ts +7 -4
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +51 -0
- package/lib/helpers/DynamicIcon.js.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
- package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.js +29 -0
- package/lib/hooks/use-get-current-lat-long.js.map +1 -0
- package/lib/hooks/useMediaQuery.d.ts +14 -0
- package/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.js +48 -0
- package/lib/hooks/useMediaQuery.js.map +1 -0
- package/lib/hooks/useScrollThreshold.d.ts +12 -0
- package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
- package/lib/hooks/useScrollThreshold.js +60 -0
- package/lib/hooks/useScrollThreshold.js.map +1 -0
- package/lib/hooks/useTailwindTheme.d.ts +34 -0
- package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/hooks/useWindowSize.d.ts +6 -0
- package/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize.js +20 -0
- package/lib/hooks/useWindowSize.js.map +1 -0
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +3 -4
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/settingsMachine.d.ts +4 -1
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +170 -120
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +124 -17
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js +5 -0
- package/lib/machines/types.js.map +1 -0
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +6 -0
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +1 -0
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +6 -0
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +1 -0
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +7 -0
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +1 -0
- package/lib/middlewares/datasourcesMiddleware.d.ts +6 -0
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +1 -0
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +7 -0
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +1 -0
- package/lib/module.d.ts +0 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +14 -15
- package/lib/module.js.map +1 -1
- package/lib/redux/index.d.ts +2 -0
- package/lib/redux/index.d.ts.map +1 -0
- package/lib/redux/searchReducer.d.ts +42 -0
- package/lib/redux/searchReducer.d.ts.map +1 -0
- package/lib/redux/searchReducer.js +64 -0
- package/lib/redux/searchReducer.js.map +1 -0
- package/lib/tailwindConfig.d.ts +42 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +23 -0
- package/lib/tailwindConfig.js.map +1 -0
- package/lib/utils/formateCarData.d.ts +2 -0
- package/lib/utils/formateCarData.d.ts.map +1 -0
- package/lib/utils/menu.d.ts.map +1 -1
- package/lib/utils/test-utils.d.ts.map +1 -1
- package/lib/utils/utils/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
- package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
- package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
- package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
- package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
- package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themeRegistry.js +0 -388
- package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
- package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
- package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themeUtils.js +0 -135
- package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
- package/lib/components/defaultSettings.d.ts +0 -4
- package/lib/components/defaultSettings.d.ts.map +0 -1
- package/lib/components/defaultSettings.js +0 -14
- package/lib/components/defaultSettings.js.map +0 -1
|
@@ -1,74 +1,130 @@
|
|
|
1
|
-
import {defaultSettings}from'@admin-layout/client';import {createMachine,assign}from'xstate';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import {defaultSettings}from'@admin-layout/client';import {createMachine,assign}from'xstate';import {SearchBarBehavior}from'./types.js';import {set,merge}from'lodash-es';// Default route settings template
|
|
2
|
+
const DEFAULT_LAYOUT = {
|
|
3
|
+
navigationMode: 'mixed',
|
|
4
|
+
sideMenuType: 'expanded',
|
|
5
|
+
contentWidth: 'fluid',
|
|
6
|
+
fixedHeader: true,
|
|
7
|
+
fixedSidebar: true,
|
|
8
|
+
splitMenus: false,
|
|
9
|
+
upperMenuDividerName: 'Navigation',
|
|
10
|
+
middleMenuDividerName: 'Dashboard',
|
|
11
|
+
lowerMenuDividerName: 'Admin'
|
|
12
|
+
};
|
|
13
|
+
// Default background settings
|
|
14
|
+
const DEFAULT_BACKGROUND = {
|
|
15
|
+
type: 'color',
|
|
16
|
+
color: 'inherit',
|
|
17
|
+
image: '',
|
|
18
|
+
video: '',
|
|
19
|
+
videoThumbnail: ''
|
|
20
|
+
};
|
|
21
|
+
const DEFAULT_HEADER = {
|
|
22
|
+
showLogo: true,
|
|
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
|
|
7
49
|
}
|
|
8
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
|
+
};
|
|
9
83
|
const settingsMachine = createMachine({
|
|
10
84
|
/** @xstate-layout N4IgpgJg5mDOIC5SzAF1QSwHZVgOmw0wEMAbDAL2ygGIBtABgF1FQAHAe1iIw61ZAAPRACYGDPAE4ArAGYAjCPkAWABwB2eZIbKAbABoQAT0SrdsvCNnLZIzQ3krVqgL4vDKdNXwYIpMDQAqgAKACIAggAqAKKMLEggnNyYfALCCLKqypZyko7S0up2suqGJgjqyvJ4DOqqtc558roMsm4eaJg4Pn4BAErRAOIAkgDKMX0A+gDCAPIAssGzAHLRy5FxAkk8qQnpttmSIoWqR6rW8tK6pcaIuvLqeNfyqiIiknUiLdLtIJ5duAIvSCYSi0RmCyWq3Wk1G0UikWGy0Go02CW2KX4e1EeRqsm0ui+zl0ujUZUQykk2S+BWuDF0chapN+-28QP8NDhABlotNIhDFis1htmFsuDssaB9rILA4HgoGPUFEVyRkPnhVIo9NJxBpTpIWZ02b4OdMeeEpnNBdD+dzeYiVmj2OLMWkcdVMiJXiTrnoVKrZA48LJpJJZISZG8tM1DV5uuz+tE4SL4s7krxJUJEJlJE9JEclAw5CHpPJZKqHo8ZAr1K0w1oQ7GAT0OaNwgA1WKi9EujNujKnPMF+RFmUFMuqzV4HXiHSSV6VMxudwgLAcCBwASs7pi9O7KWIAC0BluCEP0ik+av1+vbRX28BhBI5CoOF3Ev7yhEk8yeHU1msd5nHEZQfnvI14xNMB31dbEEGUIMREpfNNTEIpA3LU8zFzNQbGseoEJaERlxcIA */
|
|
11
85
|
id: 'settings',
|
|
12
86
|
types: {},
|
|
13
|
-
initial: '
|
|
14
|
-
context: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
87
|
+
initial: 'idle',
|
|
88
|
+
context: ({
|
|
89
|
+
input
|
|
90
|
+
}) => {
|
|
91
|
+
return merge({}, {
|
|
92
|
+
navTheme: defaultSettings.navTheme || 'light',
|
|
93
|
+
primaryColor: defaultSettings.primaryColor || '#1890ff',
|
|
94
|
+
secondaryColor: defaultSettings.secondaryColor || '#1890ff',
|
|
95
|
+
theme: defaultSettings.theme || 'default',
|
|
96
|
+
logo: defaultSettings.logo,
|
|
97
|
+
title: defaultSettings.title,
|
|
98
|
+
showSettingPanel: defaultSettings.showSettingPanel,
|
|
99
|
+
titleColor: defaultSettings.titleColor,
|
|
100
|
+
language: defaultSettings.language,
|
|
101
|
+
fontFamily: defaultSettings.fontFamily,
|
|
102
|
+
titleFontWeight: defaultSettings.titleFontWeight,
|
|
103
|
+
titleHeight: defaultSettings.titleHeight,
|
|
104
|
+
titleFontSize: defaultSettings.titleFontSize,
|
|
105
|
+
letterSpacings: defaultSettings.letterSpacings,
|
|
106
|
+
siderBgColor: defaultSettings.siderBgColor,
|
|
107
|
+
headerBgColor: defaultSettings.headerBgColor,
|
|
108
|
+
textColor: defaultSettings.textColor,
|
|
109
|
+
themeType: defaultSettings.themeType,
|
|
110
|
+
loginThemeColor: defaultSettings.loginThemeColor,
|
|
111
|
+
loginFormPosition: defaultSettings.loginFormPosition,
|
|
112
|
+
loginSocials: defaultSettings.loginSocials,
|
|
113
|
+
loginBackgroundImage: defaultSettings.loginBackgroundImage,
|
|
114
|
+
verifyFormLayout: defaultSettings.verifyFormLayout,
|
|
115
|
+
verifyFormImageUrl: defaultSettings.verifyFormImageUrl,
|
|
116
|
+
verifyFormBackgroundStyle: defaultSettings.verifyFormBackgroundStyle,
|
|
117
|
+
verifyFormVisibleFields: defaultSettings.verifyFormVisibleFields,
|
|
118
|
+
verifyFormShowSkipButton: defaultSettings.verifyFormShowSkipButton,
|
|
119
|
+
components: [],
|
|
120
|
+
activeComponent: null,
|
|
121
|
+
currentRoute: input?.settings?.currentRoute || '/',
|
|
122
|
+
routeSettings: {
|
|
123
|
+
'/': defaultRouteSettings
|
|
124
|
+
}
|
|
125
|
+
}, input?.settings);
|
|
49
126
|
},
|
|
50
127
|
states: {
|
|
51
|
-
initializing: {
|
|
52
|
-
entry: assign(({
|
|
53
|
-
context
|
|
54
|
-
}) => {
|
|
55
|
-
const savedSettings = loadSavedSettings();
|
|
56
|
-
return {
|
|
57
|
-
...context,
|
|
58
|
-
...savedSettings,
|
|
59
|
-
layout: {
|
|
60
|
-
...context.layout,
|
|
61
|
-
...(savedSettings.layout || {})
|
|
62
|
-
},
|
|
63
|
-
regions: {
|
|
64
|
-
...context.regions,
|
|
65
|
-
...(savedSettings.regions || {})
|
|
66
|
-
},
|
|
67
|
-
components: savedSettings.components || []
|
|
68
|
-
};
|
|
69
|
-
}),
|
|
70
|
-
always: 'idle'
|
|
71
|
-
},
|
|
72
128
|
idle: {
|
|
73
129
|
on: {
|
|
74
130
|
UPDATE: {
|
|
@@ -80,19 +136,6 @@ const settingsMachine = createMachine({
|
|
|
80
136
|
const newContext = {
|
|
81
137
|
...context
|
|
82
138
|
};
|
|
83
|
-
// Handle nested updates for layout and regions
|
|
84
|
-
if (event.value.layout) {
|
|
85
|
-
newContext.layout = {
|
|
86
|
-
...context.layout,
|
|
87
|
-
...event.value.layout
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
if (event.value.regions) {
|
|
91
|
-
newContext.regions = {
|
|
92
|
-
...context.regions,
|
|
93
|
-
...event.value.regions
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
139
|
// Handle top-level updates
|
|
97
140
|
if (event.value.navTheme !== undefined) {
|
|
98
141
|
newContext.navTheme = event.value.navTheme;
|
|
@@ -103,12 +146,47 @@ const settingsMachine = createMachine({
|
|
|
103
146
|
if (event.value.theme !== undefined) {
|
|
104
147
|
newContext.theme = event.value.theme;
|
|
105
148
|
}
|
|
149
|
+
// Add any new keys from event.value that don't exist in context
|
|
150
|
+
Object.keys(event.value).forEach(key => {
|
|
151
|
+
set(newContext, key, event.value[key]);
|
|
152
|
+
});
|
|
106
153
|
return newContext;
|
|
107
|
-
}),
|
|
108
|
-
|
|
154
|
+
}), 'updateReduxSettings']
|
|
155
|
+
},
|
|
156
|
+
ROUTE_CHANGE: {
|
|
157
|
+
actions: [assign(({
|
|
158
|
+
context,
|
|
159
|
+
event
|
|
109
160
|
}) => {
|
|
110
|
-
|
|
111
|
-
|
|
161
|
+
const newContext = {
|
|
162
|
+
...context
|
|
163
|
+
};
|
|
164
|
+
const routePath = event.pathname || '/';
|
|
165
|
+
console.log('routePath in ROUTE_CHANGE >>>>>>>>>>>>>>>>>>', routePath);
|
|
166
|
+
// Update current route
|
|
167
|
+
newContext.currentRoute = routePath;
|
|
168
|
+
console.log('newContext in ROUTE_CHANGE >>>>>>>>>>>>>>>>>>', newContext);
|
|
169
|
+
// Get the route's saved settings from history or use default
|
|
170
|
+
const routeSettings = context.routeSettings[routePath] || defaultRouteSettings;
|
|
171
|
+
// Initialize route settings if it doesn't exist
|
|
172
|
+
if (!newContext.routeSettings[routePath]) {
|
|
173
|
+
newContext.routeSettings[routePath] = {
|
|
174
|
+
...defaultRouteSettings
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
newContext.routeSettings[routePath].layout = routeSettings.layout || context.routeSettings[routePath].layout || defaultRouteSettings.layout;
|
|
178
|
+
newContext.routeSettings[routePath].regions = routeSettings.regions || context.routeSettings[routePath].regions || defaultRouteSettings.regions;
|
|
179
|
+
return newContext;
|
|
180
|
+
}), 'updateReduxSettings']
|
|
181
|
+
},
|
|
182
|
+
UPDATE_ROUTE_SETTINGS: {
|
|
183
|
+
actions: [assign(({
|
|
184
|
+
context,
|
|
185
|
+
event
|
|
186
|
+
}) => ({
|
|
187
|
+
...context,
|
|
188
|
+
routeSettings: deepMerge(context.routeSettings, event.settings)
|
|
189
|
+
})), 'updateReduxSettings']
|
|
112
190
|
},
|
|
113
191
|
REGISTER_COMPONENT: {
|
|
114
192
|
actions: [assign(({
|
|
@@ -129,11 +207,7 @@ const settingsMachine = createMachine({
|
|
|
129
207
|
...context,
|
|
130
208
|
components
|
|
131
209
|
};
|
|
132
|
-
}),
|
|
133
|
-
context
|
|
134
|
-
}) => {
|
|
135
|
-
localStorage.setItem('settings', JSON.stringify(context));
|
|
136
|
-
}]
|
|
210
|
+
}), 'updateReduxSettings']
|
|
137
211
|
},
|
|
138
212
|
UPDATE_COMPONENT_SETTINGS: {
|
|
139
213
|
actions: [assign(({
|
|
@@ -156,63 +230,39 @@ const settingsMachine = createMachine({
|
|
|
156
230
|
...context,
|
|
157
231
|
components
|
|
158
232
|
};
|
|
159
|
-
}),
|
|
160
|
-
context
|
|
161
|
-
}) => {
|
|
162
|
-
localStorage.setItem('settings', JSON.stringify(context));
|
|
163
|
-
}]
|
|
233
|
+
}), 'updateReduxSettings']
|
|
164
234
|
},
|
|
165
235
|
SELECT_COMPONENT: {
|
|
166
|
-
actions: assign(({
|
|
236
|
+
actions: [assign(({
|
|
167
237
|
context,
|
|
168
238
|
event
|
|
169
239
|
}) => ({
|
|
170
240
|
...context,
|
|
171
241
|
activeComponent: event.componentId
|
|
172
|
-
}))
|
|
242
|
+
})), 'updateReduxSettings']
|
|
173
243
|
},
|
|
174
244
|
CLEAR_COMPONENT_SELECTION: {
|
|
175
|
-
actions: assign(({
|
|
245
|
+
actions: [assign(({
|
|
176
246
|
context
|
|
177
247
|
}) => ({
|
|
178
248
|
...context,
|
|
179
249
|
activeComponent: null
|
|
180
|
-
}))
|
|
250
|
+
})), 'updateReduxSettings']
|
|
181
251
|
},
|
|
182
252
|
RESET: {
|
|
183
253
|
actions: [assign(() => ({
|
|
184
254
|
navTheme: defaultSettings.navTheme || 'light',
|
|
185
255
|
primaryColor: defaultSettings.primaryColor || '#1890ff',
|
|
186
256
|
theme: 'default',
|
|
187
|
-
layout: {
|
|
188
|
-
navigationMode: 'sidebar',
|
|
189
|
-
sideMenuType: 'expanded',
|
|
190
|
-
contentWidth: defaultSettings.contentWidth || 'fluid',
|
|
191
|
-
fixedHeader: defaultSettings.fixedHeader || false,
|
|
192
|
-
fixedSidebar: defaultSettings.fixSiderbar || false,
|
|
193
|
-
splitMenus: false
|
|
194
|
-
},
|
|
195
|
-
regions: {
|
|
196
|
-
showHeader: true,
|
|
197
|
-
showFooter: true,
|
|
198
|
-
showMenu: true,
|
|
199
|
-
menuHeaderRender: true,
|
|
200
|
-
searchBarRender: true
|
|
201
|
-
},
|
|
202
257
|
components: [],
|
|
203
|
-
activeComponent: null
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}]
|
|
258
|
+
activeComponent: null,
|
|
259
|
+
routeSettings: {
|
|
260
|
+
'/': defaultRouteSettings
|
|
261
|
+
}
|
|
262
|
+
})), 'updateReduxSettings']
|
|
209
263
|
},
|
|
210
264
|
SAVE: {
|
|
211
|
-
actions:
|
|
212
|
-
context
|
|
213
|
-
}) => {
|
|
214
|
-
localStorage.setItem('settings', JSON.stringify(context));
|
|
215
|
-
}
|
|
265
|
+
actions: ['updateReduxSettings']
|
|
216
266
|
}
|
|
217
267
|
}
|
|
218
268
|
}
|
|
@@ -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":"0KAcA;AACA,MAAM,cAAc,GAAG;AACnB,EAAA,cAAA,EAAc,OAA2B;AACzC,EAAA,YAAA,EAAY,UAA4B;AACxC,EAAA,YAAA,EAAY,OAAyB;AACrC,EAAA,WAAA,EAAW,IAA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A,CAAA,CAAA,EAAA,qBAAO;AACH,SAAA;AACI,QAAA,KAAA,EAAA;AAGY,UAAA,OAAA,EAAA,CAAA,MAAA,CAAA,OAAA;AACA,YAAA,QAAA,EAAA,eAAA,CAAA,QAAc,IAAA,OAAe;AAC7B,YAAA,YAAA,EAAA,eAAgB,CAAA,YAAA,IAAA,SAAA;AAChB,YAAA,KAAA,EAAA,SAAA;AACA,YAAA,UAAA,EAAA,EAAA;AACA,YAAA,eAAA,EAAA,IAAA;AACI,YAAA,aAAA,EAAA;AACH,cAAA,GAAA,EAAA;AACI;oCAEI;AACxB,SAAA;AACJ,QAAA,IAAA,EAAA;AACD,UAAA,OAAA,EAAA,CAAI,qBAAE;;AAEL;AACJ;AACJ;AACJ,CAAA"}
|
package/lib/machines/types.d.ts
CHANGED
|
@@ -2,14 +2,104 @@ export type ThemeColor = 'blue' | 'indigo' | 'red' | 'orange' | 'yellow' | 'teal
|
|
|
2
2
|
export type NavigationMode = 'sidebar' | 'topbar' | 'mixed';
|
|
3
3
|
export type SideMenuType = 'expanded' | 'collapsed';
|
|
4
4
|
export type ContentWidth = 'fixed' | 'fluid';
|
|
5
|
+
export declare enum SearchBarBehavior {
|
|
6
|
+
PERMANENT = "permanent",
|
|
7
|
+
ON_SCROLL = "on-scroll"
|
|
8
|
+
}
|
|
9
|
+
export interface BackgroundSettings {
|
|
10
|
+
type: 'color' | 'image' | 'video';
|
|
11
|
+
color?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
video?: string;
|
|
14
|
+
videoThumbnail?: string;
|
|
15
|
+
}
|
|
5
16
|
export interface ComponentSettings {
|
|
6
17
|
id: string;
|
|
7
18
|
name: string;
|
|
8
19
|
settings: Record<string, any>;
|
|
9
20
|
}
|
|
21
|
+
export type RouteSettings = {
|
|
22
|
+
layout?: {
|
|
23
|
+
desktop: {
|
|
24
|
+
navigationMode: NavigationMode;
|
|
25
|
+
sideMenuType: SideMenuType;
|
|
26
|
+
contentWidth: ContentWidth;
|
|
27
|
+
fixedHeader: boolean;
|
|
28
|
+
fixedSidebar: boolean;
|
|
29
|
+
splitMenus: boolean;
|
|
30
|
+
upperMenuDividerName?: string;
|
|
31
|
+
middleMenuDividerName?: string;
|
|
32
|
+
lowerMenuDividerName?: string;
|
|
33
|
+
};
|
|
34
|
+
mobile: {
|
|
35
|
+
navigationMode: NavigationMode;
|
|
36
|
+
sideMenuType: SideMenuType;
|
|
37
|
+
contentWidth: ContentWidth;
|
|
38
|
+
fixedHeader: boolean;
|
|
39
|
+
fixedSidebar: boolean;
|
|
40
|
+
splitMenus: boolean;
|
|
41
|
+
upperMenuDividerName?: string;
|
|
42
|
+
middleMenuDividerName?: string;
|
|
43
|
+
lowerMenuDividerName?: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
regions?: {
|
|
47
|
+
desktop?: {
|
|
48
|
+
background?: BackgroundSettings;
|
|
49
|
+
header?: {
|
|
50
|
+
showLogo?: boolean;
|
|
51
|
+
showSearchSlot?: boolean;
|
|
52
|
+
showRightContent?: boolean;
|
|
53
|
+
showMenuToggle?: boolean;
|
|
54
|
+
showBackButton?: boolean;
|
|
55
|
+
showPageTitle?: boolean;
|
|
56
|
+
showActionButtons?: boolean;
|
|
57
|
+
position?: 'fixed' | 'static';
|
|
58
|
+
height?: string;
|
|
59
|
+
elevation?: number;
|
|
60
|
+
showHeader?: boolean;
|
|
61
|
+
showMenu?: boolean;
|
|
62
|
+
menuHeaderRender?: boolean;
|
|
63
|
+
searchBarRender?: boolean;
|
|
64
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
65
|
+
searchBarOverlay?: boolean;
|
|
66
|
+
scrollThreshold?: number;
|
|
67
|
+
};
|
|
68
|
+
footer?: {
|
|
69
|
+
showFooter?: boolean;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
mobile?: {
|
|
73
|
+
background?: BackgroundSettings;
|
|
74
|
+
header?: {
|
|
75
|
+
showLogo?: boolean;
|
|
76
|
+
showSearchSlot?: boolean;
|
|
77
|
+
showRightContent?: boolean;
|
|
78
|
+
showMenuToggle?: boolean;
|
|
79
|
+
showBackButton?: boolean;
|
|
80
|
+
showPageTitle?: boolean;
|
|
81
|
+
showActionButtons?: boolean;
|
|
82
|
+
position?: 'fixed' | 'static';
|
|
83
|
+
height?: string;
|
|
84
|
+
elevation?: number;
|
|
85
|
+
showHeader?: boolean;
|
|
86
|
+
showMenu?: boolean;
|
|
87
|
+
menuHeaderRender?: boolean;
|
|
88
|
+
searchBarRender?: boolean;
|
|
89
|
+
searchBarBehavior?: SearchBarBehavior;
|
|
90
|
+
searchBarOverlay?: boolean;
|
|
91
|
+
scrollThreshold?: number;
|
|
92
|
+
};
|
|
93
|
+
footer?: {
|
|
94
|
+
showFooter?: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
10
99
|
export interface SettingsContext {
|
|
11
100
|
navTheme: 'light' | 'dark' | 'realDark';
|
|
12
101
|
primaryColor: string;
|
|
102
|
+
secondaryColor: string;
|
|
13
103
|
theme?: string;
|
|
14
104
|
logo: string;
|
|
15
105
|
showSettingPanel: boolean;
|
|
@@ -24,23 +114,19 @@ export interface SettingsContext {
|
|
|
24
114
|
headerBgColor: string;
|
|
25
115
|
textColor: string;
|
|
26
116
|
themeType: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
showHeader: boolean;
|
|
37
|
-
showFooter: boolean;
|
|
38
|
-
showMenu: boolean;
|
|
39
|
-
menuHeaderRender: boolean;
|
|
40
|
-
searchBarRender: boolean;
|
|
41
|
-
};
|
|
117
|
+
loginThemeColor: string;
|
|
118
|
+
loginFormPosition: string;
|
|
119
|
+
loginSocials: string;
|
|
120
|
+
loginBackgroundImage: string;
|
|
121
|
+
verifyFormLayout: string;
|
|
122
|
+
verifyFormImageUrl: string;
|
|
123
|
+
verifyFormBackgroundStyle: string;
|
|
124
|
+
verifyFormVisibleFields: string;
|
|
125
|
+
verifyFormShowSkipButton: boolean;
|
|
42
126
|
components: ComponentSettings[];
|
|
43
|
-
activeComponent?: string
|
|
127
|
+
activeComponent?: string;
|
|
128
|
+
currentRoute?: string;
|
|
129
|
+
routeSettings: Record<string, RouteSettings>;
|
|
44
130
|
}
|
|
45
131
|
export type UpdateEvent = {
|
|
46
132
|
type: 'UPDATE';
|
|
@@ -59,9 +145,30 @@ export type ComponentEvent = {
|
|
|
59
145
|
} | {
|
|
60
146
|
type: 'CLEAR_COMPONENT_SELECTION';
|
|
61
147
|
};
|
|
62
|
-
export type MachineEvent =
|
|
148
|
+
export type MachineEvent = {
|
|
149
|
+
type: 'UPDATE';
|
|
150
|
+
value: Partial<SettingsContext>;
|
|
151
|
+
} | {
|
|
152
|
+
type: 'REGISTER_COMPONENT';
|
|
153
|
+
component: any;
|
|
154
|
+
} | {
|
|
155
|
+
type: 'UPDATE_COMPONENT_SETTINGS';
|
|
156
|
+
componentId: string;
|
|
157
|
+
settings: any;
|
|
158
|
+
} | {
|
|
159
|
+
type: 'SELECT_COMPONENT';
|
|
160
|
+
componentId: string;
|
|
161
|
+
} | {
|
|
162
|
+
type: 'CLEAR_COMPONENT_SELECTION';
|
|
163
|
+
} | {
|
|
63
164
|
type: 'RESET';
|
|
64
165
|
} | {
|
|
65
166
|
type: 'SAVE';
|
|
167
|
+
} | {
|
|
168
|
+
type: 'ROUTE_CHANGE';
|
|
169
|
+
pathname: string;
|
|
170
|
+
} | {
|
|
171
|
+
type: 'UPDATE_ROUTE_SETTINGS';
|
|
172
|
+
settings: Record<string, Partial<SettingsContext>>;
|
|
66
173
|
};
|
|
67
174
|
//# 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,G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,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":"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,GAG5B,EAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"airbnbDatasourcesMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/airbnbDatasourcesMiddleware.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAsI9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingCarRentalMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/bookingCarRentalMiddleware.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAwH9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingDatasourcesMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/bookingDatasourcesMiddleware.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAmIvE,CAAC;AACF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasourcesMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/datasourcesMiddleware.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAsB9E,CAAC"}
|