UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

56 lines (55 loc) 3.03 kB
/** * CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52 * Update:: import { IPropertyPaneGroup } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;' * Update:: import { IThisFPSWebPartClass } to '@mikezimm/fps-core-v7/lib/banner/FPSWebPartClass/IThisFPSWebPartClass1152;' */ import { FPSFieldsPanelPropGroup } from "../../components/molecules/FieldPanel/PPCPropGroup"; import { FPSEasyPagesGroup } from "../components/EasyPages/components/EasyPagesGroup"; import { FPSBanner3VisHelpGroup } from "../components/VisitorPanel/FPSOptionsGroupVisHelp"; import { FPSOptionsExpando } from "../features/Expando/ExpandoPropGroup"; import { FPSImportPropsGroup } from "../features/ImportExport/ImportFunctions"; import { FPSPinMePropsGroupX } from "../features/PinMe/PinMePropGroup"; import { FPSBanner3NavGroup } from "./FPSBanner3NavGroup"; import { FPSBanner3ThemeGroup } from "./FPSBanner3ThemeGroup"; import { FPSBanner4BasicGroup } from "./FPSBanner4BasicGroup"; import { FPSOptionsGroupBasic } from "./FPSOptionsGroupBasic"; import { FPSSlickBackgroundGroup } from "../../components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup"; /** * This will auto build all allowable FPSPropPane Groups * With the exception of WebPartInfoGroup which typically is created separately * @param thisWPClass */ export function getAllDefaultFPSFeatureGroups(thisWPClass) { // https://github.com/mikezimm/fps-library-v2/issues/199 if (thisWPClass.properties.enableLockProps === true) return []; const groups = []; // https://github.com/mikezimm/pivottiles7/issues/246 const { properties, _allowPinMe, _isSPA, _allowEasyPages, _allowFullPageBG, _allowPandoramic, _allowFieldPanel } = thisWPClass; const { propsEasyMode, showCustomHelp, } = properties; // Added this check for https://github.com/mikezimm/fps-library-v2/issues/7 if (_allowPinMe === true && _isSPA !== true) groups.push(FPSPinMePropsGroupX(thisWPClass)); if (propsEasyMode !== true) if (_allowEasyPages) groups.push(FPSEasyPagesGroup(thisWPClass)); if (_allowFieldPanel === 'Manual') groups.push(FPSFieldsPanelPropGroup(thisWPClass)); if (propsEasyMode !== true || showCustomHelp === true) groups.push(FPSBanner3VisHelpGroup(thisWPClass)); groups.push(FPSBanner4BasicGroup(thisWPClass)); groups.push(FPSBanner3ThemeGroup(thisWPClass)); // Added this check for https://github.com/mikezimm/fps-library-v2/issues/7 if (_isSPA !== true) groups.push(FPSOptionsGroupBasic(thisWPClass)); if (propsEasyMode !== true) { groups.push(FPSBanner3NavGroup()); if (_allowFullPageBG === 'Auto') groups.push(FPSSlickBackgroundGroup(thisWPClass)); if (_allowPandoramic) groups.push(FPSOptionsExpando(thisWPClass)); } groups.push(FPSImportPropsGroup); return groups; } //# sourceMappingURL=AllDefaultFPSGroups.js.map