@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 12.0.16-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 +401 -1
- package/lib/cdm-locales/en/settings.json +40 -1
- package/lib/cdm-locales/es/settings.json +42 -3
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +8 -18
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +1 -8
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +141 -64
- 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 -14
- package/lib/components/Layout/BasicLayout/utils.js.map +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 +1 -14
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +78 -53
- 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 +228 -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 +4 -4
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +2 -16
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +23 -0
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
- 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 +274 -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 +2 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +7 -3
- 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 -11
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +117 -78
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +3 -5
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +132 -45
- 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 +34 -14
- 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 +4 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
- 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 +4 -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.d.ts +1 -6
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +106 -31
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.d.ts +3 -0
- package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/InvitationSettings.js +79 -0
- package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/LayoutChange.d.ts +2 -6
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +84 -30
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +3 -0
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/NavigationsModes.js +289 -0
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +1 -6
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +696 -51
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +249 -113
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +2 -8
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +1 -1
- package/lib/components/SettingDrawer/Switch/index.js +17 -34
- package/lib/components/SettingDrawer/Switch/index.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +1 -6
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.js +3 -0
- package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/ThemeSelector.js +18 -0
- package/lib/components/SettingDrawer/ThemeSelector.js.map +1 -0
- 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 +91 -0
- package/lib/components/SettingDrawer/types.d.ts.map +1 -0
- 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 +139 -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 +56 -0
- package/lib/components/UI/Pagination.js.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts +99 -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 +420 -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/PricePopover.d.ts +8 -0
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard/PricePopover.js +98 -0
- package/lib/components/UI/VehicleCard/PricePopover.js.map +1 -0
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +7 -0
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +9 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.js +22 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +1 -0
- package/lib/components/UI/VehicleCard/types.d.ts +59 -0
- package/lib/components/UI/VehicleCard/types.d.ts.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/VehicleCard.js +166 -0
- package/lib/components/UI/VehicleCard.js.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/VehicleCardList.js +38 -0
- package/lib/components/UI/VehicleCardList.js.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 +10 -0
- package/lib/components/UI/index.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +11 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/index.d.ts +3 -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 +139 -49
- 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/compute.d.ts.map +1 -1
- package/lib/compute.js +6 -4
- 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.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 +18 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +76 -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 +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 +16 -0
- package/lib/icons.d.ts.map +1 -0
- package/lib/icons.js +12 -0
- package/lib/icons.js.map +1 -0
- package/lib/index.d.ts +2 -3
- 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 +6 -0
- package/lib/machines/settingsMachine.d.ts.map +1 -0
- package/lib/machines/settingsMachine.js +206 -0
- package/lib/machines/settingsMachine.js.map +1 -0
- package/lib/machines/types.d.ts +174 -0
- package/lib/machines/types.d.ts.map +1 -0
- 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/routes.json +1 -0
- package/lib/styles/index.css +667 -45
- package/lib/tailwindConfig.d.ts +100 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +101 -0
- package/lib/tailwindConfig.js.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/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 +7 -5
- 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/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
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -13
- package/lib/utils/index.js.map +0 -1
|
@@ -18,7 +18,7 @@ const getPageTitleInfo = (props, ignoreTile) => {
|
|
|
18
18
|
locale: false
|
|
19
19
|
}
|
|
20
20
|
} = props;
|
|
21
|
-
const pageTitle = title || '';
|
|
21
|
+
const pageTitle = ignoreTile ? '' : title || '';
|
|
22
22
|
const currRouterData = matchParamsPath(pathname, breadcrumb, breadcrumbMap);
|
|
23
23
|
if (!currRouterData) {
|
|
24
24
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAGa,MAAA,eAAe,GAAG,CAC3B,QAAgB,EAChB,UAA6C,EAC7C,aAAyC,KAC3B;;MAEV,aAAA,EAAa;UACP,OAAA,GAAA,CAAO,GAAG,aAAI,CAAA,IAAc,EAAA,CAAA,CAAI,IAAI,CAAA,GAAI,IAAK,YAAiB,CAAA,GAAA,CAAA,CAAA,IAAI,CAAC,QAAM,CAAA,CAAA;QAC/E,OAAI,EAAA;AACA,MAAA,OAAA,yBAAyB,CAAA;;;AAGrC;AAEA,MAAM,gBAAgB,GAAG,CACrB,KAAwB,EACxB,UAAoB,KAQpB;AACA,EAAA,MAAA;AAOQ,IAAA,QAAA,MAAa;;AAGrB,IAAA,aAAe;IACf,aAAM;IACN,KAAK,GAAc,gBAAG;QAClB,GAAO;AACH,MAAA,MAAA,EAAA;AACA;AACA,GAAA,GAAA,KAAA;iBACF,GAAA,UAAA,GAAA,EAAA,GAAA,KAAA,IAAA,EAAA;QACL,cAAA,GAAA,eAAA,CAAA,QAAA,EAAA,UAAA,EAAA,aAAA,CAAA;AACD,EAAA,IAAA,CAAA,cAA6B,EAAA;AAE7B,IAAA,OAAQ;WACI,EAAA;AACJ,MAAA,EAAA,EAAA,EAAA;cACc,EAAA;AACjB,KAAA;;MAGD,QAAS,GAAA,cAAG,CAAA,IAAA;UACL,CAAA,MAAA,KAAA,KAAA,IAAA,cAAA,CAAA,MAAA,IAAA,aAAA,EAAA;AACH,IAAA,QAAA,GAAA,aAAgB,CAAA;AAChB,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;AACzB,MAAA,cAAQ,EAAE,cAAS,CAAA;;;AAG3B,EAAA,IAAA,CAAA,QAAc,EAAA;WACH;AACH,MAAA,KAAA,EAAA,SAAe;AACf,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;cACjB,EAAA;;;MAGT,CAAA,KAAA,EAAA;AACH,IAAA,OAAA;AACA,MAAA,KAAI,EAAA,QAAA;QACJ,EAAQ,cAAA,CAAA,MAAA,IAAA,EAAA;MACV;AACN,KAAE;AAEF;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const ADDITIONAL_SETTINGS_SLOT_FILL_NAME = "additional_settings_slot_fill";
|
|
2
|
+
export declare const AdditionalSettingsSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const AdditionalSettingsFillCard: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=AdditionalSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdditionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/AdditionalSettings.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kCAAkC,kCAAkC,CAAC;AAElF,eAAO,MAAM,sBAAsB,GAAI,UAAK,4CAE3C,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,UAAK,4CAE/C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {Slot}from'@common-stack/components-pro';const ADDITIONAL_SETTINGS_SLOT_FILL_NAME = 'additional_settings_slot_fill';
|
|
2
|
+
const AdditionalSettingsSlot = props => {
|
|
3
|
+
return jsx(Slot, {
|
|
4
|
+
name: ADDITIONAL_SETTINGS_SLOT_FILL_NAME,
|
|
5
|
+
fillProps: props
|
|
6
|
+
});
|
|
7
|
+
};export{ADDITIONAL_SETTINGS_SLOT_FILL_NAME,AdditionalSettingsSlot};//# sourceMappingURL=AdditionalSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdditionalSettings.js","sources":["../../../../src/components/Layout/slot-fill/AdditionalSettings.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oFAIO,MAAM,kCAAkC,GAAG;AAErC,MAAA,sBAAsB,GAAG,KAAC,IAAS;SACrCA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,kCAAA;AAEF,IAAA,SAAa,EAAA;IACT;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FOOTER_SLOT_FILL_NAME = "footer-
|
|
1
|
+
export declare const FOOTER_SLOT_FILL_NAME = "footer-fill";
|
|
2
2
|
export declare const FooterSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare const FooterCard: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AAEnD,eAAO,MAAM,UAAU,GAAI,UAAK,4CAE/B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,UAAK,4CAE/B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {
|
|
2
|
-
const
|
|
3
|
-
return jsx(
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {Slot}from'@common-stack/components-pro';const FOOTER_SLOT_FILL_NAME = 'footer-fill';
|
|
2
|
+
const FooterSlot = props => {
|
|
3
|
+
return jsx(Slot, {
|
|
4
|
+
name: FOOTER_SLOT_FILL_NAME,
|
|
5
|
+
fillProps: props
|
|
6
6
|
});
|
|
7
|
-
};export{FOOTER_SLOT_FILL_NAME,
|
|
7
|
+
};export{FOOTER_SLOT_FILL_NAME,FooterSlot};//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Footer.js","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oFAEO,MAAM,qBAAqB,GAAG;AAExB,MAAA,UAAU,GAAG,KAAC,IAAS;SACzBA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,qBAAA;AAEF,IAAA,SAAa,EAAA;IACT;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderNotice.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderNotice.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"HeaderNotice.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderNotice.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,GAAI,UAAK,4CAErC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,UAAK,4CAErC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSearchBar.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,mBAAmB,GAAI,UAAK,4CAExC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import'reflect-metadata';import {Slot}from'@common-stack/components-pro';import {HEADER_SEARCHBAR_FILL}from'@admin-layout/client/lib/constants/layout.js';const HeaderSearchBarSlot = props => {
|
|
2
|
+
return jsx(Slot, {
|
|
3
|
+
name: HEADER_SEARCHBAR_FILL,
|
|
4
|
+
fillProps: props
|
|
5
|
+
});
|
|
6
|
+
};export{HeaderSearchBarSlot};//# sourceMappingURL=HeaderSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSearchBar.js","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchBar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"8LAKa,MAAA,mBAAmB,GAAG,KAAC,IAAS;SAClCA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,qBAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSearchButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,sBAAsB,GAAI,UAAK,4CAE3C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import'reflect-metadata';import {Slot}from'@common-stack/components-pro';import {HEADER_SEARCH_BUTTON_FILL}from'@admin-layout/client/lib/constants/layout.js';const HeaderSearchButtonSlot = props => {
|
|
2
|
+
return jsx(Slot, {
|
|
3
|
+
name: HEADER_SEARCH_BUTTON_FILL,
|
|
4
|
+
fillProps: props
|
|
5
|
+
});
|
|
6
|
+
};export{HeaderSearchButtonSlot};//# sourceMappingURL=HeaderSearchButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSearchButton.js","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchButton.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"kMAKa,MAAA,sBAAsB,GAAG,KAAC,IAAS;SACrCA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,yBAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RightContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/RightContent.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,gBAAgB,GAAI,UAAK,4CAErC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import'reflect-metadata';import {Slot}from'@common-stack/components-pro';import {RIGHT_CONTENT_FILL}from'@admin-layout/client/lib/constants/layout.js';const RightContentSlot = props => {
|
|
2
|
+
return jsx(Slot, {
|
|
3
|
+
name: RIGHT_CONTENT_FILL,
|
|
4
|
+
fillProps: props
|
|
5
|
+
});
|
|
6
|
+
};export{RightContentSlot};//# sourceMappingURL=RightContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RightContent.js","sources":["../../../../src/components/Layout/slot-fill/RightContent.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"2LAKa,MAAA,gBAAgB,GAAG,KAAC,IAAS;SAC/BA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,kBAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,GAAI,SAAI,EAAE,WAAM,WAU5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,CAAC,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,CAQ7F,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {generatePath}from'react-router';/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
+
const generateMenuPath = (path, params) => {
|
|
3
|
+
try {
|
|
4
|
+
const generatedPath = generatePath(path, params);
|
|
5
|
+
return generatedPath;
|
|
6
|
+
} catch (err) {
|
|
7
|
+
// console.log('--fillParams.path', path);
|
|
8
|
+
// console.log('--fillParams.params', params);
|
|
9
|
+
// console.log('generatePath is errored due to missing orgId');
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
};export{generateMenuPath};//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../src/components/Layout/util.ts"],"sourcesContent":[null],"names":[],"mappings":"wCAAA;MAGa,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAI;AAC7C,EAAA,IAAA;UACU,aAAA,GAAA,YAA4B,CAAA,IAAC,QAAM,CAAA;AACzC,IAAA,OAAA;IACJ,OAAC,GAAA,EAAA;;;;;SAIA,IAAA;AACD"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
list?: any[];
|
|
3
|
-
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
4
|
-
settings?: any;
|
|
5
|
-
};
|
|
1
|
+
import { ICheckboxThemeProps } from './types';
|
|
6
2
|
export default function CheckBoxTheme(props: ICheckboxThemeProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
3
|
//# sourceMappingURL=CheckBoxTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAsD9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CAiC/D"}
|
|
@@ -1,47 +1,122 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';const themelist = [{
|
|
2
|
+
key: 'light',
|
|
3
|
+
title: 'Light',
|
|
4
|
+
svg: jsxs("svg", {
|
|
5
|
+
width: "58",
|
|
6
|
+
height: "50",
|
|
7
|
+
viewBox: "0 0 58 50",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
children: [jsx("defs", {
|
|
10
|
+
children: jsx("filter", {
|
|
11
|
+
id: "softShadow",
|
|
12
|
+
x: "-20%",
|
|
13
|
+
y: "-20%",
|
|
14
|
+
width: "140%",
|
|
15
|
+
height: "140%",
|
|
16
|
+
children: jsx("feDropShadow", {
|
|
17
|
+
dx: "0",
|
|
18
|
+
dy: "2",
|
|
19
|
+
stdDeviation: "4",
|
|
20
|
+
floodColor: "#000000",
|
|
21
|
+
floodOpacity: "0.1"
|
|
22
|
+
})
|
|
23
|
+
})
|
|
24
|
+
}), jsx("rect", {
|
|
25
|
+
x: "0",
|
|
26
|
+
y: "0",
|
|
27
|
+
width: "58",
|
|
28
|
+
height: "50",
|
|
29
|
+
rx: "8",
|
|
30
|
+
fill: "#ffffff",
|
|
31
|
+
filter: "url(#softShadow)"
|
|
32
|
+
})]
|
|
33
|
+
})
|
|
34
|
+
}, {
|
|
35
|
+
key: 'realDark',
|
|
36
|
+
title: 'realDark',
|
|
37
|
+
svg: jsxs("svg", {
|
|
38
|
+
width: "58",
|
|
39
|
+
height: "50",
|
|
40
|
+
viewBox: "0 0 58 50",
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
children: [jsx("rect", {
|
|
43
|
+
x: "0",
|
|
44
|
+
y: "0",
|
|
45
|
+
width: "58",
|
|
46
|
+
height: "50",
|
|
47
|
+
rx: "8",
|
|
48
|
+
fill: "#ffffff"
|
|
49
|
+
}), jsx("path", {
|
|
50
|
+
d: "M0,8\n A8,8 0 0 1 8,0\n H18\n V50\n H8\n A8,8 0 0 1 0,42\n Z",
|
|
51
|
+
fill: "#011627"
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
}, {
|
|
55
|
+
key: 'dark',
|
|
56
|
+
title: 'Dark',
|
|
57
|
+
svg: jsxs("svg", {
|
|
58
|
+
width: "58",
|
|
59
|
+
height: "50",
|
|
60
|
+
viewBox: "0 0 58 50",
|
|
61
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
62
|
+
children: [jsx("rect", {
|
|
63
|
+
width: "58",
|
|
64
|
+
height: "50",
|
|
65
|
+
rx: "8",
|
|
66
|
+
fill: "#000000"
|
|
67
|
+
}), jsx("clipPath", {
|
|
68
|
+
id: "roundedClip",
|
|
69
|
+
children: jsx("rect", {
|
|
70
|
+
width: "58",
|
|
71
|
+
height: "50",
|
|
72
|
+
rx: "8"
|
|
73
|
+
})
|
|
74
|
+
}), jsxs("g", {
|
|
75
|
+
clipPath: "url(#roundedClip)",
|
|
76
|
+
children: [jsx("rect", {
|
|
77
|
+
x: "0",
|
|
78
|
+
y: "13",
|
|
79
|
+
width: "29",
|
|
80
|
+
height: "37",
|
|
81
|
+
fill: "#0d1117"
|
|
82
|
+
}), jsx("rect", {
|
|
83
|
+
x: "29",
|
|
84
|
+
y: "13",
|
|
85
|
+
width: "29",
|
|
86
|
+
height: "37",
|
|
87
|
+
fill: "#233445"
|
|
88
|
+
})]
|
|
89
|
+
})]
|
|
90
|
+
})
|
|
91
|
+
}];
|
|
92
|
+
function CheckBoxTheme(props) {
|
|
2
93
|
const {
|
|
3
94
|
list,
|
|
4
95
|
changeSetting,
|
|
5
96
|
settings
|
|
6
97
|
} = props;
|
|
7
98
|
return jsx("div", {
|
|
8
|
-
className: "flex flex-row",
|
|
9
|
-
children:
|
|
10
|
-
return
|
|
11
|
-
className: "
|
|
99
|
+
className: "flex flex-row gap-4",
|
|
100
|
+
children: themelist.map((themeItems, index) => {
|
|
101
|
+
return jsx("div", {
|
|
102
|
+
className: "relative cursor-pointer hover:opacity-80 transition-opacity",
|
|
12
103
|
style: {
|
|
13
104
|
boxShadow: '0 1px 2.5px 0 rgb(0 0 0 / 18%)'
|
|
14
105
|
},
|
|
15
106
|
onClick: () => {
|
|
16
107
|
changeSetting('navTheme', themeItems.key);
|
|
17
|
-
changeSetting('primaryColor', settings
|
|
108
|
+
changeSetting('primaryColor', settings?.primaryColor);
|
|
18
109
|
},
|
|
19
|
-
children:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className: "w-3/10 rounded-bl",
|
|
28
|
-
style: {
|
|
29
|
-
backgroundColor: themeItems.key === 'dark' ? 'rgba(13,32,51,1)' : '#ffff'
|
|
30
|
-
}
|
|
31
|
-
}), jsx("div", {
|
|
32
|
-
className: "w-7/10 rounded-br",
|
|
33
|
-
style: {
|
|
34
|
-
backgroundColor: themeItems.key == 'dark' ? 'rgba(38,55,72,1)' : '#f0f2f5'
|
|
35
|
-
}
|
|
110
|
+
children: jsxs("div", {
|
|
111
|
+
children: [themeItems.svg, settings?.navTheme === themeItems.key && jsx("svg", {
|
|
112
|
+
className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500",
|
|
113
|
+
viewBox: "0 0 24 24",
|
|
114
|
+
fill: "currentColor",
|
|
115
|
+
children: jsx("path", {
|
|
116
|
+
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
117
|
+
})
|
|
36
118
|
})]
|
|
37
|
-
})
|
|
38
|
-
className: "relative -bottom-8 left-8 w-4 h-4",
|
|
39
|
-
viewBox: "0 0 24 24",
|
|
40
|
-
fill: "currentColor",
|
|
41
|
-
children: jsx("path", {
|
|
42
|
-
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
43
|
-
})
|
|
44
|
-
}) : '']
|
|
119
|
+
})
|
|
45
120
|
}, `themeItem_${index}`);
|
|
46
121
|
})
|
|
47
122
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxTheme.js","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"CheckBoxTheme.js","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"yCAGA,MAAM,SAAS,GAAG,CAAA;AACd,EAAA,GAAA,EAAA,OAAA;AACI,EAAA,KAAA,EAAA,OAAY;AACZ,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAS,EAAA;SACX,EAAA,IACM;AASZ,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAY;AACf,IAAA,QAAA,GAAOC,GAAU,CAAA,MAAA,EAAA;cAEb,EAAAA,GAAA,CAAA,QAAK,EAAK;AAcjB,QAAA,EAAA,EAAA,YAAA;AACD,QAAA,CAAA,EAAA,MAAA;AACI,QAAA,CAAA,EAAG,MAAQ;AACX,QAAA,KAAK,EAAE,MAAM;QACb,MACI,EAAK,MAAA;AAWZ,QAAA,QAAA,EAAAA,GAAA,CAAA,cAAA,EAAA;UACH,EAAA,EAAA,GAAA;AAEF,UAAO,EAAA,EAAO,GAAU;UACd,YAAQ,EAAA,GAAA;AACd,UAAA,UACI,EAAA,SAAc;AAEN,UAAA,YAGQ,EAAA;AAGI,SAAA;AACA,OAAA;AACJ,KAAA,CAAA,EAAAA,GAAA,CAAA;SAiBX,GACC;AAEd,MAAC,CAAA,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationSettings.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/InvitationSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CA6D3E"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function InvitationSettings(props) {
|
|
2
|
+
const {
|
|
3
|
+
settings,
|
|
4
|
+
changeSetting,
|
|
5
|
+
location
|
|
6
|
+
} = props;
|
|
7
|
+
const {
|
|
8
|
+
t
|
|
9
|
+
} = useTranslation('settings');
|
|
10
|
+
const {
|
|
11
|
+
isMobile
|
|
12
|
+
} = useMediaQuery();
|
|
13
|
+
const currentRoute = location?.pathname || '/';
|
|
14
|
+
settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
15
|
+
// Fallback to global if not found in route
|
|
16
|
+
const invitations = settings?.organization?.members?.invitations || {};
|
|
17
|
+
const handleInvitationChange = (key, value) => {
|
|
18
|
+
if (!changeSetting) return;
|
|
19
|
+
const newInvitations = {
|
|
20
|
+
...invitations,
|
|
21
|
+
[key]: value
|
|
22
|
+
};
|
|
23
|
+
changeSetting(`organization.members.invitations`, newInvitations);
|
|
24
|
+
};
|
|
25
|
+
const textColor = {
|
|
26
|
+
color: settings?.navTheme === 'dark' ? '#ffff' : 'black'
|
|
27
|
+
};
|
|
28
|
+
return jsxs("div", {
|
|
29
|
+
children: [jsx("p", {
|
|
30
|
+
className: "mb-2 font-medium",
|
|
31
|
+
style: textColor,
|
|
32
|
+
children: t('invitation_settings') || 'Invitation Settings'
|
|
33
|
+
}), jsxs("div", {
|
|
34
|
+
className: "flex items-center mt-4",
|
|
35
|
+
children: [jsx("span", {
|
|
36
|
+
style: textColor,
|
|
37
|
+
children: t('show_email_invite') || 'Show Email Invite'
|
|
38
|
+
}), jsx("div", {
|
|
39
|
+
className: "flex-grow"
|
|
40
|
+
}), jsx(Switch, {
|
|
41
|
+
value: !!invitations.showEmailInvite,
|
|
42
|
+
onChange: checked => handleInvitationChange('showEmailInvite', checked)
|
|
43
|
+
})]
|
|
44
|
+
}), jsxs("div", {
|
|
45
|
+
className: "flex items-center mt-4",
|
|
46
|
+
children: [jsx("span", {
|
|
47
|
+
style: textColor,
|
|
48
|
+
children: t('show_sms_invite') || 'Show SMS Invite'
|
|
49
|
+
}), jsx("div", {
|
|
50
|
+
className: "flex-grow"
|
|
51
|
+
}), jsx(Switch, {
|
|
52
|
+
value: !!invitations.showSmsInvite,
|
|
53
|
+
onChange: checked => handleInvitationChange('showSmsInvite', checked)
|
|
54
|
+
})]
|
|
55
|
+
}), jsxs("div", {
|
|
56
|
+
className: "flex items-center mt-4",
|
|
57
|
+
children: [jsx("span", {
|
|
58
|
+
style: textColor,
|
|
59
|
+
children: t('show_qr_code_invite') || 'Show QR Code Invite'
|
|
60
|
+
}), jsx("div", {
|
|
61
|
+
className: "flex-grow"
|
|
62
|
+
}), jsx(Switch, {
|
|
63
|
+
value: !!invitations.showQrCodeInvite,
|
|
64
|
+
onChange: checked => handleInvitationChange('showQrCodeInvite', checked)
|
|
65
|
+
})]
|
|
66
|
+
}), jsxs("div", {
|
|
67
|
+
className: "flex items-center mt-4",
|
|
68
|
+
children: [jsx("span", {
|
|
69
|
+
style: textColor,
|
|
70
|
+
children: t('show_invite_link') || 'Show Invite Link'
|
|
71
|
+
}), jsx("div", {
|
|
72
|
+
className: "flex-grow"
|
|
73
|
+
}), jsx(Switch, {
|
|
74
|
+
value: !!invitations.showInviteLink,
|
|
75
|
+
onChange: checked => handleInvitationChange('showInviteLink', checked)
|
|
76
|
+
})]
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
}export{InvitationSettings as default};//# sourceMappingURL=InvitationSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationSettings.js","sources":["../../../src/components/SettingDrawer/InvitationSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"yUAMwB,SAAA,kBAAkB,CAAC,KAAiC,EAAA;QAClE;IACN,QAAQ;AACR,IAAA,aAAgB;AAChB,IAAA;AACA,GAAA,GAAA;QACM;IACN;MACM,cAAA,CAAW,UAAG,CAAQ;AAE5B,EAAA,MAAA;AACI,IAAA;mBAA2B,EAAA;AAC3B,EAAA,MAAA,uBAAuB,EAAA,QAAA,IAAA,GAAA;AACnB,EAAc,QAAA,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,QAAA,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA;;AAIlB,EAAA,MAAA,WAAA,GAAc,QAAA,EAAA,YAAA,EAAA,OAAA,EAAA,WAAoC,IAAA,EAAc;AACpE,EAAA,MAAE,sBAAA,GAAA,CAAA,GAAA,EAAA,KAAA,KAAA;AAEF,IAAA,IAAA,CAAA,aAAkB,EAAE;IAEpB,MAAO,cAEC,GAAA;AAqCZ,MAAC,GAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
settings?: Partial<ProSettings>;
|
|
4
|
-
changeSetting?: (key: string, value: string | boolean) => void;
|
|
5
|
-
};
|
|
6
|
-
export default function LayoutChange(props: ILayoutSettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ILayoutSettingsProps } from './types';
|
|
2
|
+
export default function LayoutChange(props: ILayoutSettingsProps | any): import("react/jsx-runtime").JSX.Element;
|
|
7
3
|
//# sourceMappingURL=LayoutChange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CA2GrE"}
|
|
@@ -1,68 +1,122 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {
|
|
2
|
-
const [selectedValue, setSelectedValue] = useState();
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function LayoutChange(props) {
|
|
3
2
|
const {
|
|
4
3
|
settings,
|
|
5
|
-
changeSetting
|
|
4
|
+
changeSetting,
|
|
5
|
+
location
|
|
6
6
|
} = props;
|
|
7
7
|
const {
|
|
8
8
|
t
|
|
9
9
|
} = useTranslation('settings');
|
|
10
10
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
fixSiderbar,
|
|
11
|
+
isMobile
|
|
12
|
+
} = useMediaQuery();
|
|
13
|
+
const currentRoute = location?.pathname || '/';
|
|
14
|
+
const {
|
|
16
15
|
navTheme
|
|
17
|
-
} = settings;
|
|
16
|
+
} = settings || {};
|
|
17
|
+
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
18
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
19
|
+
const deviceLayout = routeSettings?.layout?.[deviceType] || {};
|
|
20
|
+
const handleLayoutChange = (key, value) => {
|
|
21
|
+
if (!changeSetting) return;
|
|
22
|
+
changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
|
|
23
|
+
...deviceLayout,
|
|
24
|
+
[key]: value
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const textColor = {
|
|
28
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
29
|
+
};
|
|
18
30
|
return jsxs("div", {
|
|
19
31
|
children: [jsxs("div", {
|
|
20
32
|
className: "flex items-center mt-4",
|
|
21
33
|
children: [jsx("p", {
|
|
22
34
|
className: "mb-0",
|
|
23
|
-
style:
|
|
24
|
-
color: navTheme == 'dark' ? '#ffff' : 'black'
|
|
25
|
-
},
|
|
35
|
+
style: textColor,
|
|
26
36
|
children: t('fixed_header')
|
|
27
37
|
}), jsx("div", {
|
|
28
38
|
className: "flex-grow"
|
|
29
39
|
}), jsx(Switch, {
|
|
30
|
-
value: fixedHeader,
|
|
31
|
-
|
|
32
|
-
changeSetting: changeSetting,
|
|
33
|
-
settings: settings
|
|
40
|
+
value: deviceLayout.fixedHeader,
|
|
41
|
+
onChange: checked => handleLayoutChange('fixedHeader', checked)
|
|
34
42
|
})]
|
|
35
43
|
}), jsxs("div", {
|
|
36
44
|
className: "flex items-center mt-4",
|
|
37
45
|
children: [jsx("p", {
|
|
38
46
|
className: "mb-0",
|
|
39
|
-
style:
|
|
40
|
-
color: navTheme == 'dark' ? '#ffff' : 'black'
|
|
41
|
-
},
|
|
47
|
+
style: textColor,
|
|
42
48
|
children: t('fixed_sidebar')
|
|
43
49
|
}), jsx("div", {
|
|
44
50
|
className: "flex-grow"
|
|
45
51
|
}), jsx(Switch, {
|
|
46
|
-
value:
|
|
47
|
-
|
|
48
|
-
changeSetting: changeSetting,
|
|
49
|
-
settings: settings
|
|
52
|
+
value: deviceLayout.fixedSidebar,
|
|
53
|
+
onChange: checked => handleLayoutChange('fixedSidebar', checked)
|
|
50
54
|
})]
|
|
51
55
|
}), jsxs("div", {
|
|
52
56
|
className: "flex items-center mt-4",
|
|
53
57
|
children: [jsx("p", {
|
|
54
58
|
className: "mb-0",
|
|
55
|
-
style:
|
|
56
|
-
color: navTheme == 'dark' ? '#ffff' : 'black'
|
|
57
|
-
},
|
|
59
|
+
style: textColor,
|
|
58
60
|
children: t('split_menus')
|
|
59
61
|
}), jsx("div", {
|
|
60
62
|
className: "flex-grow"
|
|
61
63
|
}), jsx(Switch, {
|
|
62
|
-
value: splitMenus,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
value: deviceLayout.splitMenus,
|
|
65
|
+
onChange: checked => handleLayoutChange('splitMenus', checked)
|
|
66
|
+
})]
|
|
67
|
+
}), deviceLayout.splitMenus && jsxs(Fragment, {
|
|
68
|
+
children: [jsx("div", {
|
|
69
|
+
className: "mt-6 mb-2",
|
|
70
|
+
children: jsx("p", {
|
|
71
|
+
className: "text-sm font-medium",
|
|
72
|
+
style: textColor,
|
|
73
|
+
children: t('menu_divider_names')
|
|
74
|
+
})
|
|
75
|
+
}), jsxs("div", {
|
|
76
|
+
className: "flex flex-col space-y-4",
|
|
77
|
+
children: [jsxs("div", {
|
|
78
|
+
className: "flex flex-col",
|
|
79
|
+
children: [jsx("label", {
|
|
80
|
+
className: "text-xs mb-1",
|
|
81
|
+
style: textColor,
|
|
82
|
+
children: t('upper_menu_divider')
|
|
83
|
+
}), jsx("input", {
|
|
84
|
+
type: "text",
|
|
85
|
+
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
86
|
+
value: deviceLayout?.upperMenuDividerName,
|
|
87
|
+
onChange: e => {
|
|
88
|
+
handleLayoutChange('upperMenuDividerName', e.target.value);
|
|
89
|
+
}
|
|
90
|
+
})]
|
|
91
|
+
}), jsxs("div", {
|
|
92
|
+
className: "flex flex-col",
|
|
93
|
+
children: [jsx("label", {
|
|
94
|
+
className: "text-xs mb-1",
|
|
95
|
+
style: textColor,
|
|
96
|
+
children: t('middle_menu_divider')
|
|
97
|
+
}), jsx("input", {
|
|
98
|
+
type: "text",
|
|
99
|
+
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
100
|
+
value: deviceLayout?.middleMenuDividerName,
|
|
101
|
+
onChange: e => {
|
|
102
|
+
handleLayoutChange('middleMenuDividerName', e.target.value);
|
|
103
|
+
}
|
|
104
|
+
})]
|
|
105
|
+
}), jsxs("div", {
|
|
106
|
+
className: "flex flex-col",
|
|
107
|
+
children: [jsx("label", {
|
|
108
|
+
className: "text-xs mb-1",
|
|
109
|
+
style: textColor,
|
|
110
|
+
children: t('lower_menu_divider')
|
|
111
|
+
}), jsx("input", {
|
|
112
|
+
type: "text",
|
|
113
|
+
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
114
|
+
value: deviceLayout?.lowerMenuDividerName,
|
|
115
|
+
onChange: e => {
|
|
116
|
+
handleLayoutChange('lowerMenuDividerName', e.target.value);
|
|
117
|
+
}
|
|
118
|
+
})]
|
|
119
|
+
})]
|
|
66
120
|
})]
|
|
67
121
|
})]
|
|
68
122
|
});
|