UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

42 lines (41 loc) 2.39 kB
/** * CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52 * Update:: import { IMinWPBannerProps } to '@mikezimm/fps-core-v7/lib/banner/interfaces/MinWP/IMinWPBannerProps;' */ import { applyHeadingCSS } from "@mikezimm/fps-core-v7/lib/logic/DOM/Headings/functions"; import { hideSPODataAutoId } from "./hideSPODataAutoId"; // import { minimizeHeader } from "./minimzeHeader"; import { setToolbar } from "./minimzeToolbar"; import { setQuickLaunch } from "./quickLaunch"; import { updateSectionStyles } from "./setAllSectionStyles"; /** * renderCustomStyles is intended for one-time style changes during onInit. Not dynamic changes * NOT for things like PinMe or Expando which the user changes on the fly * * @param wpInstanceID * @param domElement * @param wpProps // * @param fpsPageDone // Deprecating - No longer needed with more modern styling options in updateSectionStyles. // * @param fpsPageArray // Deprecating - No longer needed with more modern styling options in updateSectionStyles. * @param displayMode // * @param minHideToolbar //Should not be needed, using web part props for value and local function for url param // * @param hideToolbar //Should not be needed, using web part props for value and local function for url * @param doHeadings */ export function renderCustomStyles(sty) { const TempHeadingStyleProps = sty.wpProps; if (sty.doHeadings === true) applyHeadingCSS(TempHeadingStyleProps); //Used with FPS Options Functions setQuickLaunch(sty.wpProps.quickLaunchHide); // >> change to: minimizeQuickLaunch // minimizeHeader( document, sty.wpProps.pageHeaderHide, false, true ); //Dropped sending document because it is always there // https://github.com/mikezimm/pivottiles7/issues/392 // hideSPODataAutoId( sty.wpProps.pageHeaderHide, 'pageHeader', false, true ); hideSPODataAutoId(sty.wpProps.socialBarHide, 'sp-socialbar', false, true); // Deprecating - No longer needed with more modern styling options in updateSectionStyles. // setThisPageFormatting( sty.wpInstanceID, sty.domElement, sty.wpProps.fpsPageStyle, sty.fpsPageDone, sty.fpsPageArray ); setToolbar(sty.displayMode, sty.wpInstanceID, sty.wpProps.toolBarHide); updateSectionStyles(sty.wpInstanceID, sty.wpProps, sty.fpsid); } //# sourceMappingURL=renderCustStyles.js.map