@mikezimm/fps-library-v2 1.0.11 → 1.0.12
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/CHANGELOG.md +74 -3
- package/lib/banner/banner/component.d.ts +35 -0
- package/lib/banner/banner/component.d.ts.map +1 -0
- package/lib/banner/banner/component.js +537 -0
- package/lib/banner/banner/component.js.map +1 -0
- package/lib/banner/components/EasyPages/componentPage.d.ts +1 -1
- package/lib/banner/components/EasyPages/componentPage.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/componentPage.js +4 -4
- package/lib/banner/components/EasyPages/componentPage.js.map +1 -1
- package/lib/banner/components/EasyPages/componentSources.d.ts +1 -1
- package/lib/banner/components/EasyPages/componentSources.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/componentSources.js +11 -10
- package/lib/banner/components/EasyPages/componentSources.js.map +1 -1
- package/lib/banner/components/EasyPages/createEasyPagesExtraWPProps.d.ts +4 -0
- package/lib/banner/components/EasyPages/createEasyPagesExtraWPProps.d.ts.map +1 -0
- package/lib/banner/components/EasyPages/createEasyPagesExtraWPProps.js +25 -0
- package/lib/banner/components/EasyPages/createEasyPagesExtraWPProps.js.map +1 -0
- package/lib/banner/components/EasyPages/createEasyPagesSourceWPProps.d.ts +12 -0
- package/lib/banner/components/EasyPages/createEasyPagesSourceWPProps.d.ts.map +1 -0
- package/lib/banner/components/EasyPages/createEasyPagesSourceWPProps.js +13 -0
- package/lib/banner/components/EasyPages/createEasyPagesSourceWPProps.js.map +1 -0
- package/lib/banner/components/EasyPages/devLinks.d.ts +2 -4
- package/lib/banner/components/EasyPages/devLinks.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/devLinks.js +12 -12
- package/lib/banner/components/EasyPages/devLinks.js.map +1 -1
- package/lib/banner/components/EasyPages/functions.d.ts +1 -1
- package/lib/banner/components/EasyPages/functions.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/functions.js +1 -1
- package/lib/banner/components/Gear/IKeySiteProps.d.ts +10 -0
- package/lib/banner/components/Gear/IKeySiteProps.d.ts.map +1 -0
- package/lib/banner/components/Gear/IKeySiteProps.js +2 -0
- package/lib/banner/components/Gear/IKeySiteProps.js.map +1 -0
- package/lib/banner/components/Gear/bannerGearFunctions.d.ts +28 -0
- package/lib/banner/components/Gear/bannerGearFunctions.d.ts.map +1 -0
- package/lib/banner/components/Gear/bannerGearFunctions.js +244 -0
- package/lib/banner/components/Gear/bannerGearFunctions.js.map +1 -0
- package/lib/banner/components/Panel/createAboutRow.d.ts +4 -0
- package/lib/banner/components/Panel/createAboutRow.d.ts.map +1 -0
- package/lib/banner/components/Panel/createAboutRow.js +8 -0
- package/lib/banner/components/Panel/createAboutRow.js.map +1 -0
- package/lib/banner/components/PropPane/controls.d.ts +1 -1
- package/lib/banner/components/PropPane/controls.d.ts.map +1 -1
- package/lib/banner/components/SpecialBanner/component.d.ts +4 -0
- package/lib/banner/components/SpecialBanner/component.d.ts.map +1 -0
- package/lib/banner/components/SpecialBanner/component.js +39 -0
- package/lib/banner/components/SpecialBanner/component.js.map +1 -0
- package/lib/banner/components/SpecialBanner/interface.d.ts +19 -0
- package/lib/banner/components/SpecialBanner/interface.d.ts.map +1 -0
- package/lib/banner/components/SpecialBanner/interface.js +20 -0
- package/lib/banner/components/SpecialBanner/interface.js.map +1 -0
- package/lib/banner/components/VisitorPanel/FPSOptionsGroupVisHelp.d.ts +18 -0
- package/lib/banner/components/VisitorPanel/FPSOptionsGroupVisHelp.d.ts.map +1 -0
- package/lib/banner/components/VisitorPanel/FPSOptionsGroupVisHelp.js +96 -0
- package/lib/banner/components/VisitorPanel/FPSOptionsGroupVisHelp.js.map +1 -0
- package/lib/banner/{interfaces/CustomHelp → components/VisitorPanel}/Interfaces.d.ts +19 -6
- package/lib/banner/components/VisitorPanel/Interfaces.d.ts.map +1 -0
- package/lib/banner/{interfaces/CustomHelp → components/VisitorPanel}/Interfaces.js +0 -0
- package/lib/banner/components/VisitorPanel/Interfaces.js.map +1 -0
- package/lib/banner/components/VisitorPanel/VisitorPanelComponent.d.ts +15 -0
- package/lib/banner/components/VisitorPanel/VisitorPanelComponent.d.ts.map +1 -0
- package/lib/banner/components/VisitorPanel/VisitorPanelComponent.js +100 -0
- package/lib/banner/components/VisitorPanel/VisitorPanelComponent.js.map +1 -0
- package/lib/banner/components/WebPartLinks/WebPartLinks.d.ts +52 -0
- package/lib/banner/components/WebPartLinks/WebPartLinks.d.ts.map +1 -0
- package/lib/banner/components/WebPartLinks/WebPartLinks.js +98 -0
- package/lib/banner/components/WebPartLinks/WebPartLinks.js.map +1 -0
- package/lib/banner/features/BeAUser/confirmBeAUser.d.ts +2 -0
- package/lib/banner/features/BeAUser/confirmBeAUser.d.ts.map +1 -0
- package/lib/banner/features/BeAUser/confirmBeAUser.js +5 -0
- package/lib/banner/features/BeAUser/confirmBeAUser.js.map +1 -0
- package/lib/banner/features/Expando/functions.d.ts +1 -1
- package/lib/banner/features/Expando/functions.d.ts.map +1 -1
- package/lib/banner/features/Expando/oninit.d.ts +1 -1
- package/lib/banner/features/Expando/oninit.d.ts.map +1 -1
- package/lib/banner/features/{PropImportExport → ImportExport}/ExportFunctions.d.ts +0 -0
- package/lib/banner/features/ImportExport/ExportFunctions.d.ts.map +1 -0
- package/lib/banner/features/{PropImportExport → ImportExport}/ExportFunctions.js +0 -0
- package/lib/banner/features/ImportExport/ExportFunctions.js.map +1 -0
- package/lib/banner/features/{PropImportExport → ImportExport}/IgnoreBlockProps.d.ts +0 -0
- package/lib/banner/features/ImportExport/IgnoreBlockProps.d.ts.map +1 -0
- package/lib/banner/features/{PropImportExport → ImportExport}/IgnoreBlockProps.js +0 -0
- package/lib/banner/features/ImportExport/IgnoreBlockProps.js.map +1 -0
- package/lib/banner/features/{PropImportExport → ImportExport}/ImportFunctions.d.ts +1 -1
- package/lib/banner/features/ImportExport/ImportFunctions.d.ts.map +1 -0
- package/lib/banner/features/{PropImportExport → ImportExport}/ImportFunctions.js +0 -0
- package/lib/banner/features/ImportExport/ImportFunctions.js.map +1 -0
- package/lib/banner/features/PageStyle/minimzeToolbar.d.ts +2 -2
- package/lib/banner/features/PageStyle/minimzeToolbar.d.ts.map +1 -1
- package/lib/banner/features/PageStyle/setAllSectionStyles.d.ts +2 -2
- package/lib/banner/features/PageStyle/setAllSectionStyles.d.ts.map +1 -1
- package/lib/banner/features/PinMe/FPSPinMenu.d.ts +1 -1
- package/lib/banner/features/PinMe/FPSPinMenu.d.ts.map +1 -1
- package/lib/banner/features/Tricky/ReusaableTricks.d.ts +30 -0
- package/lib/banner/features/Tricky/ReusaableTricks.d.ts.map +1 -0
- package/lib/banner/features/Tricky/ReusaableTricks.js +81 -0
- package/lib/banner/features/Tricky/ReusaableTricks.js.map +1 -0
- package/lib/banner/features/Tricky/constants.d.ts +22 -0
- package/lib/banner/features/Tricky/constants.d.ts.map +1 -0
- package/lib/banner/features/Tricky/constants.js +59 -0
- package/lib/banner/features/Tricky/constants.js.map +1 -0
- package/lib/banner/features/Tricky/logTest.d.ts +27 -0
- package/lib/banner/features/Tricky/logTest.d.ts.map +1 -0
- package/lib/banner/features/Tricky/logTest.js +47 -0
- package/lib/banner/features/Tricky/logTest.js.map +1 -0
- package/lib/banner/features/Tricky/logfun.d.ts +18 -0
- package/lib/banner/features/Tricky/logfun.d.ts.map +1 -0
- package/lib/banner/features/Tricky/logfun.js +69 -0
- package/lib/banner/features/Tricky/logfun.js.map +1 -0
- package/lib/banner/features/Tricky/verify.d.ts +3 -0
- package/lib/banner/features/Tricky/verify.d.ts.map +1 -0
- package/lib/banner/features/Tricky/verify.js +3 -0
- package/lib/banner/features/Tricky/verify.js.map +1 -0
- package/lib/banner/interfaces/{Banner → MinWP}/IMinBannerUIProps.d.ts +0 -0
- package/lib/banner/interfaces/MinWP/IMinBannerUIProps.d.ts.map +1 -0
- package/lib/banner/interfaces/{Banner → MinWP}/IMinBannerUIProps.js +0 -0
- package/lib/banner/interfaces/MinWP/IMinBannerUIProps.js.map +1 -0
- package/lib/banner/interfaces/{Banner → MinWP}/IMinBannerUtilityProps.d.ts +0 -0
- package/lib/banner/interfaces/MinWP/IMinBannerUtilityProps.d.ts.map +1 -0
- package/lib/banner/interfaces/{Banner → MinWP}/IMinBannerUtilityProps.js +0 -0
- package/lib/banner/interfaces/MinWP/IMinBannerUtilityProps.js.map +1 -0
- package/lib/banner/interfaces/{Banner → MinWP}/IMinWPBannerProps.d.ts +1 -1
- package/lib/banner/interfaces/MinWP/IMinWPBannerProps.d.ts.map +1 -0
- package/lib/banner/interfaces/{Banner → MinWP}/IMinWPBannerProps.js +0 -0
- package/lib/banner/interfaces/MinWP/IMinWPBannerProps.js.map +1 -0
- package/lib/banner/mainReact/IWebpartBannerProps.d.ts +86 -0
- package/lib/banner/mainReact/IWebpartBannerProps.d.ts.map +1 -0
- package/lib/banner/mainReact/IWebpartBannerProps.js +2 -0
- package/lib/banner/mainReact/IWebpartBannerProps.js.map +1 -0
- package/lib/banner/mainReact/ReactComponentProps.d.ts +33 -0
- package/lib/banner/mainReact/ReactComponentProps.d.ts.map +1 -0
- package/lib/banner/mainReact/ReactComponentProps.js +2 -0
- package/lib/banner/mainReact/ReactComponentProps.js.map +1 -0
- package/lib/banner/mainReact/ReactComponentState.d.ts +27 -0
- package/lib/banner/mainReact/ReactComponentState.d.ts.map +1 -0
- package/lib/banner/mainReact/ReactComponentState.js +2 -0
- package/lib/banner/mainReact/ReactComponentState.js.map +1 -0
- package/lib/banner/render/IBuildBannerSettings.d.ts +28 -0
- package/lib/banner/render/IBuildBannerSettings.d.ts.map +1 -0
- package/lib/banner/render/IBuildBannerSettings.js +6 -0
- package/lib/banner/render/IBuildBannerSettings.js.map +1 -0
- package/lib/banner/render/IMinFPSLegacyProps.d.ts +7 -0
- package/lib/banner/render/IMinFPSLegacyProps.d.ts.map +1 -0
- package/lib/banner/render/IMinFPSLegacyProps.js +2 -0
- package/lib/banner/render/IMinFPSLegacyProps.js.map +1 -0
- package/lib/banner/render/WebPartRenderBannerV2.d.ts +32 -0
- package/lib/banner/render/WebPartRenderBannerV2.d.ts.map +1 -0
- package/lib/banner/render/WebPartRenderBannerV2.js +218 -0
- package/lib/banner/render/WebPartRenderBannerV2.js.map +1 -0
- package/lib/banner/render/buildBannerPropsV1.d.ts +34 -0
- package/lib/banner/render/buildBannerPropsV1.d.ts.map +1 -0
- package/lib/banner/render/buildBannerPropsV1.js +195 -0
- package/lib/banner/render/buildBannerPropsV1.js.map +1 -0
- package/lib/banner/render/refreshPanel.d.ts +5 -0
- package/lib/banner/render/refreshPanel.d.ts.map +1 -0
- package/lib/banner/render/refreshPanel.js +9 -0
- package/lib/banner/render/refreshPanel.js.map +1 -0
- package/lib/banner/render/refreshPanelHTML.d.ts +5 -0
- package/lib/banner/render/refreshPanelHTML.d.ts.map +1 -0
- package/lib/banner/render/refreshPanelHTML.js +10 -0
- package/lib/banner/render/refreshPanelHTML.js.map +1 -0
- package/lib/common/Audiences/AudiencePropGroup.d.ts +4 -0
- package/lib/common/Audiences/AudiencePropGroup.d.ts.map +1 -0
- package/lib/common/Audiences/AudiencePropGroup.js +24 -0
- package/lib/common/Audiences/AudiencePropGroup.js.map +1 -0
- package/lib/common/Audiences/Interfaces.d.ts +18 -0
- package/lib/common/Audiences/Interfaces.d.ts.map +1 -0
- package/lib/common/Audiences/Interfaces.js +28 -0
- package/lib/common/Audiences/Interfaces.js.map +1 -0
- package/lib/common/PropPaneHelp/ApplyPresets.d.ts +3 -0
- package/lib/common/PropPaneHelp/ApplyPresets.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/ApplyPresets.js +29 -0
- package/lib/common/PropPaneHelp/ApplyPresets.js.map +1 -0
- package/lib/common/PropPaneHelp/IPreConfig.d.ts +26 -0
- package/lib/common/PropPaneHelp/IPreConfig.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/IPreConfig.js +2 -0
- package/lib/common/PropPaneHelp/IPreConfig.js.map +1 -0
- package/lib/common/PropPaneHelp/PreConfiguredConstants.d.ts +3 -0
- package/lib/common/PropPaneHelp/PreConfiguredConstants.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/PreConfiguredConstants.js +31 -0
- package/lib/common/PropPaneHelp/PreConfiguredConstants.js.map +1 -0
- package/lib/common/PropPaneHelp/getThisSitesPreConfigProps.d.ts +4 -0
- package/lib/common/PropPaneHelp/getThisSitesPreConfigProps.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/getThisSitesPreConfigProps.js +44 -0
- package/lib/common/PropPaneHelp/getThisSitesPreConfigProps.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/Banner.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/Banner.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/Banner.js +49 -0
- package/lib/common/PropPaneHelp/pages/Banner.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/FPSBasic.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/FPSBasic.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/FPSBasic.js +33 -0
- package/lib/common/PropPaneHelp/pages/FPSBasic.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/FPSExpand.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/FPSExpand.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/FPSExpand.js +41 -0
- package/lib/common/PropPaneHelp/pages/FPSExpand.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/Import.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/Import.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/Import.js +21 -0
- package/lib/common/PropPaneHelp/pages/Import.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/PinMe.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/PinMe.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/PinMe.js +28 -0
- package/lib/common/PropPaneHelp/pages/PinMe.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/SinglePageApp.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/SinglePageApp.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/SinglePageApp.js +39 -0
- package/lib/common/PropPaneHelp/pages/SinglePageApp.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/SitePresetsInfo.d.ts +9 -0
- package/lib/common/PropPaneHelp/pages/SitePresetsInfo.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/SitePresetsInfo.js +84 -0
- package/lib/common/PropPaneHelp/pages/SitePresetsInfo.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/Visitor.d.ts +3 -0
- package/lib/common/PropPaneHelp/pages/Visitor.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/Visitor.js +24 -0
- package/lib/common/PropPaneHelp/pages/Visitor.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/Warnings.d.ts +4 -0
- package/lib/common/PropPaneHelp/pages/Warnings.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/Warnings.js +19 -0
- package/lib/common/PropPaneHelp/pages/Warnings.js.map +1 -0
- package/lib/common/PropPaneHelp/pages/zTemplate.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/zTemplate.d.ts.map +1 -0
- package/lib/common/PropPaneHelp/pages/zTemplate.js +9 -0
- package/lib/common/PropPaneHelp/pages/zTemplate.js.map +1 -0
- package/lib/common/commandStyles/adjustCmdThemes.d.ts +22 -0
- package/lib/common/commandStyles/adjustCmdThemes.d.ts.map +1 -0
- package/lib/common/commandStyles/adjustCmdThemes.js +49 -0
- package/lib/common/commandStyles/adjustCmdThemes.js.map +1 -0
- package/lib/common/commandStyles/defaults.d.ts +24 -0
- package/lib/common/commandStyles/defaults.d.ts.map +1 -0
- package/lib/common/commandStyles/defaults.js +140 -0
- package/lib/common/commandStyles/defaults.js.map +1 -0
- package/lib/common/interfaces/@msft/1.15.2/WebPartContext.d.ts +3 -0
- package/lib/common/interfaces/@msft/1.15.2/WebPartContext.d.ts.map +1 -1
- package/lib/common/interfaces/@msft/1.15.2/WebPartContext.js.map +1 -1
- package/lib/components/atoms/EasyIcons/createEasyIconsWPProps.d.ts +3 -0
- package/lib/components/atoms/EasyIcons/createEasyIconsWPProps.d.ts.map +1 -0
- package/lib/components/atoms/EasyIcons/createEasyIconsWPProps.js +15 -0
- package/lib/components/atoms/EasyIcons/createEasyIconsWPProps.js.map +1 -0
- package/lib/components/atoms/EasyIcons/{eiFunctions.d.ts → getEasyIcon.d.ts} +2 -3
- package/lib/components/atoms/EasyIcons/getEasyIcon.d.ts.map +1 -0
- package/lib/components/atoms/EasyIcons/{eiFunctions.js → getEasyIcon.js} +4 -17
- package/lib/components/atoms/EasyIcons/getEasyIcon.js.map +1 -0
- package/lib/components/atoms/Elements/HighlightedText.d.ts +9 -0
- package/lib/components/atoms/Elements/HighlightedText.d.ts.map +1 -0
- package/lib/components/atoms/Elements/HighlightedText.js +30 -0
- package/lib/components/atoms/Elements/HighlightedText.js.map +1 -0
- package/lib/components/atoms/Elements/IElements.d.ts +8 -0
- package/lib/components/atoms/Elements/IElements.d.ts.map +1 -0
- package/lib/components/atoms/Elements/IElements.js +2 -0
- package/lib/components/atoms/Elements/IElements.js.map +1 -0
- package/lib/components/atoms/Elements/ToggleJSONButton.d.ts +13 -0
- package/lib/components/atoms/Elements/ToggleJSONButton.d.ts.map +1 -0
- package/lib/components/atoms/Elements/ToggleJSONButton.js +31 -0
- package/lib/components/atoms/Elements/ToggleJSONButton.js.map +1 -0
- package/lib/components/atoms/Elements/basic.d.ts +26 -0
- package/lib/components/atoms/Elements/basic.d.ts.map +1 -0
- package/lib/components/atoms/Elements/basic.js +126 -0
- package/lib/components/atoms/Elements/basic.js.map +1 -0
- package/lib/components/atoms/Elements/dialogBox.d.ts +23 -0
- package/lib/components/atoms/Elements/dialogBox.d.ts.map +1 -0
- package/lib/components/atoms/Elements/dialogBox.js +59 -0
- package/lib/components/atoms/Elements/dialogBox.js.map +1 -0
- package/lib/components/atoms/Elements/draw.d.ts +14 -0
- package/lib/components/atoms/Elements/draw.d.ts.map +1 -0
- package/lib/components/atoms/Elements/draw.js +100 -0
- package/lib/components/atoms/Elements/draw.js.map +1 -0
- package/lib/components/atoms/Elements/markdown.d.ts +4 -0
- package/lib/components/atoms/Elements/markdown.d.ts.map +1 -0
- package/lib/components/atoms/Elements/markdown.js +34 -0
- package/lib/components/atoms/Elements/markdown.js.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.d.ts +3 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.d.ts.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.js +10 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.js.map +1 -0
- package/lib/components/atoms/Links/LinksRepos.d.ts.map +1 -1
- package/lib/components/atoms/Links/LinksRepos.js.map +1 -1
- package/lib/components/atoms/Links/ValidateLinks.d.ts +1 -1
- package/lib/components/atoms/Links/ValidateLinks.d.ts.map +1 -1
- package/lib/components/atoms/SVGIcons/TeamsLogo.d.ts +2 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.js +2 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.js.map +1 -0
- package/lib/components/molecules/Performance/tables.d.ts +1 -1
- package/lib/components/molecules/Performance/tables.d.ts.map +1 -1
- package/lib/logic/DOM/Headings/functions.d.ts.map +1 -1
- package/lib/logic/DOM/Headings/functions.js +15 -19
- package/lib/logic/DOM/Headings/functions.js.map +1 -1
- package/lib/logic/Errors/friendly.d.ts +1 -1
- package/lib/logic/Errors/friendly.d.ts.map +1 -1
- package/lib/logic/Links/Navigation.d.ts +4 -0
- package/lib/logic/Links/Navigation.d.ts.map +1 -0
- package/lib/logic/Links/Navigation.js +15 -0
- package/lib/logic/Links/Navigation.js.map +1 -0
- package/lib/logic/Strings/arraysFromString.d.ts.map +1 -1
- package/lib/logic/Strings/arraysFromString.js +2 -0
- package/lib/logic/Strings/arraysFromString.js.map +1 -1
- package/lib/logic/Strings/decamelize.d.ts +7 -0
- package/lib/logic/Strings/decamelize.d.ts.map +1 -0
- package/lib/logic/Strings/decamelize.js +38 -0
- package/lib/logic/Strings/decamelize.js.map +1 -0
- package/lib/logic/Strings/reactCSS.d.ts +19 -0
- package/lib/logic/Strings/reactCSS.d.ts.map +1 -0
- package/lib/logic/Strings/reactCSS.js +70 -0
- package/lib/logic/Strings/reactCSS.js.map +1 -0
- package/lib/logic/indexes/StringsIndex.d.ts +2 -0
- package/lib/logic/indexes/StringsIndex.d.ts.map +1 -1
- package/lib/logic/indexes/StringsIndex.js +3 -0
- package/lib/logic/indexes/StringsIndex.js.map +1 -1
- package/lib/logic/indexes/index.d.ts +0 -1
- package/lib/logic/indexes/index.d.ts.map +1 -1
- package/lib/logic/indexes/index.js +1 -1
- package/lib/logic/indexes/index.js.map +1 -1
- package/package.json +5 -2
- package/lib/banner/features/PropImportExport/ExportFunctions.d.ts.map +0 -1
- package/lib/banner/features/PropImportExport/ExportFunctions.js.map +0 -1
- package/lib/banner/features/PropImportExport/IgnoreBlockProps.d.ts.map +0 -1
- package/lib/banner/features/PropImportExport/IgnoreBlockProps.js.map +0 -1
- package/lib/banner/features/PropImportExport/ImportFunctions.d.ts.map +0 -1
- package/lib/banner/features/PropImportExport/ImportFunctions.js.map +0 -1
- package/lib/banner/interfaces/Banner/IMinBannerUIProps.d.ts.map +0 -1
- package/lib/banner/interfaces/Banner/IMinBannerUIProps.js.map +0 -1
- package/lib/banner/interfaces/Banner/IMinBannerUtilityProps.d.ts.map +0 -1
- package/lib/banner/interfaces/Banner/IMinBannerUtilityProps.js.map +0 -1
- package/lib/banner/interfaces/Banner/IMinWPBannerProps.d.ts.map +0 -1
- package/lib/banner/interfaces/Banner/IMinWPBannerProps.js.map +0 -1
- package/lib/banner/interfaces/CustomHelp/Interfaces.d.ts.map +0 -1
- package/lib/banner/interfaces/CustomHelp/Interfaces.js.map +0 -1
- package/lib/components/atoms/EasyIcons/eiFunctions.d.ts.map +0 -1
- package/lib/components/atoms/EasyIcons/eiFunctions.js.map +0 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// import { DisplayMode } from "@microsoft/sp-core-library";
|
|
2
|
+
import { baseBannerCmdStyles, baseBannerStyles } from "../../common/commandStyles/defaults";
|
|
3
|
+
import { DisplayMode, } from "../../common/interfaces/@msft/1.15.2/displayMode";
|
|
4
|
+
import { createPerformanceTableVisitor } from "../../components/indexes/Performance";
|
|
5
|
+
import { verifyAudienceVsUser } from "../../logic/indexes";
|
|
6
|
+
import { getReactCSSFromString } from "../../logic/Strings/reactCSS";
|
|
7
|
+
import { visitorPanelInfo } from "../components/VisitorPanel/VisitorPanelComponent";
|
|
8
|
+
import { SPPermission } from '@microsoft/sp-page-context';
|
|
9
|
+
export function mainWebPartRenderBannerSetup(main) {
|
|
10
|
+
const { displayMode, beAReader, FPSUser, minWPBannerProps, repoLink, trickyEmails, exportProps, strings, clientWidth, thisContext, modifyBannerTitle, forceBanner, disablePandoramic, performance, keysToShow, wideToggle, expandConsole, SpecialMessage, } = main;
|
|
11
|
+
let anyContext = thisContext;
|
|
12
|
+
const renderAsReader = displayMode === DisplayMode.Read && beAReader === true ? true : false;
|
|
13
|
+
// console.log('mainWebPart: showTricks ~ 322', );
|
|
14
|
+
// Verify if this is a duplicate of the code in FPSUser (copied and commented out below )
|
|
15
|
+
let showTricks = false;
|
|
16
|
+
trickyEmails.map(getsTricks => {
|
|
17
|
+
if (thisContext.pageContext.user && thisContext.pageContext.user.loginName && thisContext.pageContext.user.loginName.toLowerCase().indexOf(getsTricks) > -1) {
|
|
18
|
+
showTricks = true;
|
|
19
|
+
minWPBannerProps.showRepoLinks = true; //Always show these users repo links
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
// Copied from getFPSUser Junly 29, 2022
|
|
23
|
+
// let showTricks: any = false;
|
|
24
|
+
// trickyEmails.map( getsTricks => {
|
|
25
|
+
// if ( user.loginName && user.loginName.toLowerCase().indexOf( getsTricks ) > -1 ) {
|
|
26
|
+
// showTricks = true ;
|
|
27
|
+
// }
|
|
28
|
+
// } );
|
|
29
|
+
// console.log('mainWebPart: verifyAudienceVsUser ~ 341', );
|
|
30
|
+
minWPBannerProps.showBannerGear = verifyAudienceVsUser(FPSUser, showTricks, minWPBannerProps.homeParentGearAudience, null, renderAsReader);
|
|
31
|
+
let errMessage = '';
|
|
32
|
+
let validDocsContacts = ''; //This may no longer be needed if links below are commented out.
|
|
33
|
+
if ((minWPBannerProps.documentationIsValid !== true && minWPBannerProps.documentationLinkUrl) //This means it failed the url ping test... throw error
|
|
34
|
+
|| (minWPBannerProps.requireDocumentation === true && !minWPBannerProps.documentationLinkUrl)) { //This means docs are required but there isn't one provided
|
|
35
|
+
errMessage += ' Invalid Support Doc Link: ' + (minWPBannerProps.documentationLinkUrl ? minWPBannerProps.documentationLinkUrl : 'Empty. ');
|
|
36
|
+
validDocsContacts += 'DocLink,';
|
|
37
|
+
}
|
|
38
|
+
if (minWPBannerProps.requireContacts === true) {
|
|
39
|
+
if (!minWPBannerProps.supportContacts || minWPBannerProps.supportContacts.length < 1) {
|
|
40
|
+
errMessage += ' Need valid Support Contacts';
|
|
41
|
+
validDocsContacts += 'Contacts,';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/***
|
|
45
|
+
* d8888b. .d8b. d8b db d8b db d88888b d8888b.
|
|
46
|
+
* 88 `8D d8' `8b 888o 88 888o 88 88' 88 `8D
|
|
47
|
+
* 88oooY' 88ooo88 88V8o 88 88V8o 88 88ooooo 88oobY'
|
|
48
|
+
* 88~~~b. 88~~~88 88 V8o88 88 V8o88 88~~~~~ 88`8b
|
|
49
|
+
* 88 8D 88 88 88 V888 88 V888 88. 88 `88.
|
|
50
|
+
* Y8888P' YP YP VP V8P VP V8P Y88888P 88 YD
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
const replacePanelWarning = `Anyone with lower permissions than '${minWPBannerProps.fullPanelAudience}' will ONLY see this content in panel`;
|
|
55
|
+
// export function buildBannerProps ( wpProps : IMinWPBannerProps, FPSUser: IFPSUser, bbs: IBuildBannerSettings, showTricks: boolean, displayMode: DisplayMode ) {
|
|
56
|
+
/***
|
|
57
|
+
* d8888b. .d8b. d8b db d8b db d88888b d8888b.
|
|
58
|
+
* 88 `8D d8' `8b 888o 88 888o 88 88' 88 `8D
|
|
59
|
+
* 88oooY' 88ooo88 88V8o 88 88V8o 88 88ooooo 88oobY'
|
|
60
|
+
* 88~~~b. 88~~~88 88 V8o88 88 V8o88 88~~~~~ 88`8b
|
|
61
|
+
* 88 8D 88 88 88 V888 88 V888 88. 88 `88.
|
|
62
|
+
* Y8888P' YP YP VP V8P VP V8P Y88888P 88 YD
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
// Updated for SPA to get Title which is also the window.name property https://github.com/mikezimm/drilldown7/issues/243
|
|
67
|
+
let bannerTitle = modifyBannerTitle === true && minWPBannerProps.bannerTitle && minWPBannerProps.bannerTitle.length > 0 ? minWPBannerProps.bannerTitle :
|
|
68
|
+
anyContext._pageLayoutType === 'SingleWebPartAppPageLayout' ? document.title : repoLink.desc;
|
|
69
|
+
let bannerStyle = getReactCSSFromString('bannerStyle', minWPBannerProps.bannerStyle, baseBannerStyles);
|
|
70
|
+
let bannerCmdStyle = getReactCSSFromString('bannerCmdStyle', minWPBannerProps.bannerCmdStyle, baseBannerCmdStyles);
|
|
71
|
+
//Over-rides gear for certain users
|
|
72
|
+
let showRepoLinks = renderAsReader === true || minWPBannerProps.showRepoLinks === false ? false : true;
|
|
73
|
+
let isSiteAdmin = renderAsReader !== true && FPSUser.isSiteAdmin === true ? true : false;
|
|
74
|
+
let hasCustomizePages = isSiteAdmin === true ? true :
|
|
75
|
+
verifyAudienceVsUser(FPSUser, showTricks, minWPBannerProps.homeParentGearAudience, SPPermission.addAndCustomizePages, renderAsReader);
|
|
76
|
+
let homeParentGearAudience = isSiteAdmin === true ? true : verifyAudienceVsUser(FPSUser, showTricks, minWPBannerProps.homeParentGearAudience, null, renderAsReader);
|
|
77
|
+
let showBannerGear = isSiteAdmin === true ? true : minWPBannerProps.showBannerGear === true && homeParentGearAudience === true ? true : false;
|
|
78
|
+
let showGoToHome = isSiteAdmin === true ? true : minWPBannerProps.showGoToHome === true && homeParentGearAudience === true ? true : false;
|
|
79
|
+
let showGoToParent = isSiteAdmin === true ? true : minWPBannerProps.showGoToParent === true && homeParentGearAudience === true ? true : false;
|
|
80
|
+
let showExport = isSiteAdmin === true ? true : minWPBannerProps.showExport === true && hasCustomizePages !== true ? false : true;
|
|
81
|
+
let enableExpandoramic = disablePandoramic === true || minWPBannerProps.enableExpandoramic === false ? false :
|
|
82
|
+
verifyAudienceVsUser(FPSUser, showTricks, minWPBannerProps.expandoAudience, null, renderAsReader);
|
|
83
|
+
//Always show full panel if you are SCA
|
|
84
|
+
let showFullPanel = isSiteAdmin === true ? true : verifyAudienceVsUser(FPSUser, showTricks, minWPBannerProps.fullPanelAudience, SPPermission.editListItems, renderAsReader);
|
|
85
|
+
//Over-rides expand for certain users
|
|
86
|
+
console.log('_pageLayoutType:', anyContext._pageLayoutType);
|
|
87
|
+
console.log('pageLayoutType:', anyContext.pageLayoutType);
|
|
88
|
+
// Changed expandoStyle from buildExpandoStyle function based on https://github.com/mikezimm/CoreFPS114/issues/6
|
|
89
|
+
// let expandobuildExpandoStyle = buildExpandoStyle( errMessage, minWPBannerProps, bbs.errorObjArray, bbs.expandoErrorObj );
|
|
90
|
+
let expandoStyleObject = getReactCSSFromString('expandoStyle', minWPBannerProps.expandoStyle, {});
|
|
91
|
+
let styleErrors = [];
|
|
92
|
+
if (bannerStyle.errMessage) {
|
|
93
|
+
styleErrors.push(bannerStyle.errMessage);
|
|
94
|
+
}
|
|
95
|
+
if (bannerCmdStyle.errMessage) {
|
|
96
|
+
styleErrors.push(bannerCmdStyle.errMessage);
|
|
97
|
+
}
|
|
98
|
+
if (expandoStyleObject.errMessage) {
|
|
99
|
+
styleErrors.push(expandoStyleObject.errMessage);
|
|
100
|
+
}
|
|
101
|
+
let styleErrorMessage = styleErrors.length > 0 ? `; ${styleErrors.join('; ')}` : '';
|
|
102
|
+
errMessage += styleErrorMessage;
|
|
103
|
+
let showBannerError = errMessage !== '' && errMessage !== null ? true : false;
|
|
104
|
+
//Always pass false for verifyAudienceVsUser 'beAUser' or it will hide the beAUser Icon.
|
|
105
|
+
const showBeAUserIcon = verifyAudienceVsUser(FPSUser, showTricks, minWPBannerProps.beAUserAudience, SPPermission.addAndCustomizePages, false);
|
|
106
|
+
// let showBeAUserIcon: boolean = false;
|
|
107
|
+
// if ( ( minWPBannerProps.expandoAudience && minWPBannerProps.expandoAudience !== 'Everyone')
|
|
108
|
+
// || ( minWPBannerProps.homeParentGearAudience && minWPBannerProps.homeParentGearAudience !== 'Everyone' ) ) {
|
|
109
|
+
// showBeAUserIcon = true;
|
|
110
|
+
// }
|
|
111
|
+
let infoElement = 'More Information';
|
|
112
|
+
if (minWPBannerProps.infoElementChoice === 'Text') {
|
|
113
|
+
infoElement = minWPBannerProps.infoElementText;
|
|
114
|
+
}
|
|
115
|
+
else if (minWPBannerProps.infoElementChoice) {
|
|
116
|
+
infoElement = minWPBannerProps.infoElementChoice;
|
|
117
|
+
}
|
|
118
|
+
let startTime = new Date();
|
|
119
|
+
let refreshId = startTime.toISOString().replace('T', ' T'); // + ' ~ ' + startTime.toLocaleTimeString();
|
|
120
|
+
let bannerProps = {
|
|
121
|
+
webpartHistory: minWPBannerProps.webpartHistory,
|
|
122
|
+
refreshId: refreshId,
|
|
123
|
+
FPSUser: FPSUser,
|
|
124
|
+
exportProps: exportProps,
|
|
125
|
+
pageContext: thisContext.pageContext,
|
|
126
|
+
displayMode: displayMode,
|
|
127
|
+
WebPartHelpElement: null,
|
|
128
|
+
SpecialMessage: SpecialMessage,
|
|
129
|
+
panelTitle: showBannerError === true ? errMessage : bannerTitle,
|
|
130
|
+
infoElement: infoElement,
|
|
131
|
+
// changed null to undefined: https://github.com/mikezimm/ALVFinMan/issues/171
|
|
132
|
+
contentPages: {
|
|
133
|
+
aboutTable: undefined,
|
|
134
|
+
advancedContent: undefined,
|
|
135
|
+
basicsContent: undefined,
|
|
136
|
+
errorsContent: undefined,
|
|
137
|
+
futureContent: undefined,
|
|
138
|
+
getRandomTip: undefined,
|
|
139
|
+
gettingStartedContent: undefined,
|
|
140
|
+
tricksTable: undefined,
|
|
141
|
+
webParTips: [],
|
|
142
|
+
whyContent: undefined,
|
|
143
|
+
},
|
|
144
|
+
bannerWidth: (clientWidth - (displayMode === DisplayMode.Edit ? 250 : 0)),
|
|
145
|
+
showBanner: showTricks === true || forceBanner === true || minWPBannerProps.showBanner !== false ? true : false,
|
|
146
|
+
feedbackEmail: minWPBannerProps.feedbackEmail ? minWPBannerProps.feedbackEmail : '',
|
|
147
|
+
showTricks: showTricks,
|
|
148
|
+
showBannerGear: showBannerGear,
|
|
149
|
+
showGoToHome: showGoToHome,
|
|
150
|
+
showGoToParent: showGoToParent,
|
|
151
|
+
showRepoLinks: showRepoLinks,
|
|
152
|
+
showExport: showExport,
|
|
153
|
+
showFullPanel: showFullPanel,
|
|
154
|
+
replacePanelHTML: minWPBannerProps.replacePanelHTML,
|
|
155
|
+
bonusHTML1: null,
|
|
156
|
+
panelPerformance: performance,
|
|
157
|
+
bonusHTML2: null,
|
|
158
|
+
replacePanelWarning: replacePanelWarning,
|
|
159
|
+
// onHomePage: anyContext._pageLayoutType === 'Home' ? true : false,
|
|
160
|
+
onHomePage: thisContext.pageContext.legacyPageContext.isWebWelcomePage === true ? true : false,
|
|
161
|
+
hoverEffect: minWPBannerProps.bannerHoverEffect === false ? false : true,
|
|
162
|
+
//This was my modified attempt that didn't work
|
|
163
|
+
title: showBannerError === true ? errMessage : bannerTitle,
|
|
164
|
+
bannerReactCSS: showBannerError === true ? { background: "yellow", color: "red", } : bannerStyle.parsed,
|
|
165
|
+
bannerCmdReactCSS: bannerCmdStyle.parsed,
|
|
166
|
+
gitHubRepo: repoLink,
|
|
167
|
+
farElements: [],
|
|
168
|
+
nearElements: [],
|
|
169
|
+
earyAccess: false,
|
|
170
|
+
wideToggle: wideToggle,
|
|
171
|
+
//2022-02-17: Added these for expandoramic mode
|
|
172
|
+
domElement: thisContext.domElement,
|
|
173
|
+
pageLayout: minWPBannerProps.pageLayout,
|
|
174
|
+
enableExpandoramic: enableExpandoramic,
|
|
175
|
+
expandoDefault: minWPBannerProps.expandoDefault,
|
|
176
|
+
expandoStyle: expandoStyleObject.parsed,
|
|
177
|
+
expandAlert: false,
|
|
178
|
+
expandConsole: expandConsole,
|
|
179
|
+
expandoPadding: minWPBannerProps.expandoPadding,
|
|
180
|
+
//2022-02-17: END additions for expandoramic mode
|
|
181
|
+
beAUser: renderAsReader,
|
|
182
|
+
showBeAUserIcon: showBeAUserIcon,
|
|
183
|
+
beAUserFunction: null,
|
|
184
|
+
};
|
|
185
|
+
//close #129: This makes the maxWidth added in fps options apply to banner as well.
|
|
186
|
+
// if ( minWPBannerProps.fpsContainerMaxWidth && minWPBannerProps.fpsContainerMaxWidth.length > 0 && bannerProps.bannerReactCSS ) {
|
|
187
|
+
// bannerProps.bannerReactCSS.maxWidth = minWPBannerProps.fpsContainerMaxWidth;
|
|
188
|
+
// }
|
|
189
|
+
// 2022-12-12: VERIFY THIS IS NEEDED, it's in buildBannerPropsv1 AND WebPartRenderBannerV2.ts
|
|
190
|
+
if (minWPBannerProps.allSectionMaxWidthEnable && minWPBannerProps.allSectionMaxWidth > 0 && bannerProps.bannerReactCSS) {
|
|
191
|
+
bannerProps.bannerReactCSS.maxWidth = minWPBannerProps.allSectionMaxWidth;
|
|
192
|
+
}
|
|
193
|
+
// return { errMessage: errMessage, bannerProps: bannerProps, errorObjArray: [ expandoStyleObject.errMessage ], };
|
|
194
|
+
if (minWPBannerProps.defPinState === 'disabled') {
|
|
195
|
+
// npm install @mikezimm/npmfunctions@2.1.14
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
if (!minWPBannerProps.bannerTitle || minWPBannerProps.bannerTitle === '') {
|
|
199
|
+
if (minWPBannerProps.defPinState !== 'normal' && strings.bannerTitle) {
|
|
200
|
+
bannerProps.title = strings.bannerTitle;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
bannerProps.title = 'hide';
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
//Add this to force a title because when pinned by default, users may not know it's there.
|
|
207
|
+
if (minWPBannerProps.forcePinState === true && minWPBannerProps.defPinState !== 'normal') {
|
|
208
|
+
if (!minWPBannerProps.bannerTitle || minWPBannerProps.bannerTitle.length < 3) {
|
|
209
|
+
bannerProps.title = 'Page Contents';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
bannerProps.enableExpandoramic = enableExpandoramic; //Hard code this option for FPS PageInfo web part only because of PinMe option
|
|
214
|
+
minWPBannerProps.replacePanelHTML = visitorPanelInfo(minWPBannerProps, repoLink, '', '', createPerformanceTableVisitor(performance, keysToShow));
|
|
215
|
+
bannerProps.replacePanelHTML = minWPBannerProps.replacePanelHTML;
|
|
216
|
+
return bannerProps;
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=WebPartRenderBannerV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebPartRenderBannerV2.js","sourceRoot":"","sources":["../../../src/banner/render/WebPartRenderBannerV2.ts"],"names":[],"mappings":"AACA,4DAA4D;AAE5D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE5F,OAAO,EAAE,WAAW,GAAG,MAAM,kDAAkD,CAAC;AAEhF,OAAO,EAAE,6BAA6B,EAAoB,MAAM,sCAAsC,CAAC;AAEvG,OAAO,EAAY,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAqB,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,gBA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AAc,CAAC,QAAQ,GAAG,gBAAgB,CAAC,kBAAkB,CAAC;KAC3E;IAEF,mHAAmH;IAErH,IAAK,gBAAgB,CAAC,WAAW,KAAK,UAAU,EAAI;QAClD,4CAA4C;KAE7C;SAAM;QACL,IAAK,CAAC,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,WAAW,KAAK,EAAE,EAAG;YAC1E,IAAK,gBAAgB,CAAC,WAAW,KAAK,QAAQ,IAAI,OAAO,CAAC,WAAW,EAAG;gBACtE,WAAW,CAAC,KAAK,GAAG,OAAO,CAAC,WAAW,CAAE;aAC1C;iBAAM;gBACL,WAAW,CAAC,KAAK,GAAG,MAAM,CAAE;aAC7B;SACF;QAED,0FAA0F;QAC1F,IAAK,gBAAgB,CAAC,aAAa,KAAK,IAAI,IAAI,gBAAgB,CAAC,WAAW,KAAK,QAAQ,EAAG;YAC1F,IAAK,CAAC,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAG;gBAAE,WAAW,CAAC,KAAK,GAAG,eAAe,CAAE;aAAE;SAC1H;KACF;IAED,WAAW,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,CAAC,8EAA8E;IAEnI,gBAAgB,CAAC,gBAAgB,GAAG,gBAAgB,CAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,6BAA6B,CAAE,WAAW,EAAE,UAAU,CAAE,CAAE,CAAC;IAErJ,WAAW,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC;IAEjE,OAAO,WAAW,CAAC;AAEvB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The purpose of this file is to build the FPS Banner props in a standard way.
|
|
3
|
+
* To benefit from typescript, it's meant to be copied to the specific webpart using it
|
|
4
|
+
*/
|
|
5
|
+
import { DisplayMode } from '@microsoft/sp-core-library';
|
|
6
|
+
import { IFPSUser } from '../../logic/indexes';
|
|
7
|
+
import { IMinWPBannerProps } from '../interfaces/MinWP/IMinWPBannerProps';
|
|
8
|
+
import { IWebpartBannerProps } from '../mainReact/IWebpartBannerProps';
|
|
9
|
+
import { IBuildBannerSettings } from './IBuildBannerSettings';
|
|
10
|
+
/***
|
|
11
|
+
* d888888b .88b d88. d8888b. .d88b. d8888b. d888888b d8b db d8888b. .88b d88. d88888b db db d8b db .o88b. d888888b d888888b .d88b. d8b db .d8888.
|
|
12
|
+
* `88' 88'YbdP`88 88 `8D .8P Y8. 88 `8D `~~88~~' 888o 88 88 `8D 88'YbdP`88 88' 88 88 888o 88 d8P Y8 `~~88~~' `88' .8P Y8. 888o 88 88' YP
|
|
13
|
+
* 88 88 88 88 88oodD' 88 88 88oobY' 88 88V8o 88 88oodD' 88 88 88 88ooo 88 88 88V8o 88 8P 88 88 88 88 88V8o 88 `8bo.
|
|
14
|
+
* 88 88 88 88 88~~~ 88 88 88`8b 88 88 V8o88 88~~~ 88 88 88 88~~~ 88 88 88 V8o88 8b 88 88 88 88 88 V8o88 `Y8b.
|
|
15
|
+
* .88. 88 88 88 88 `8b d8' 88 `88. 88 88 V888 88 88 88 88 88 88b d88 88 V888 Y8b d8 88 .88. `8b d8' 88 V888 db 8D
|
|
16
|
+
* Y888888P YP YP YP 88 `Y88P' 88 YD YP VP V8P 88 YP YP YP YP ~Y8888P' VP V8P `Y88P' YP Y888888P `Y88P' VP V8P `8888Y'
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param wpProps
|
|
23
|
+
* @param FPSUser
|
|
24
|
+
* @param bbs
|
|
25
|
+
* @param showTricks
|
|
26
|
+
* @param displayMode
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildBannerProps(wpProps: IMinWPBannerProps, FPSUser: IFPSUser, bbs: IBuildBannerSettings, showTricks: boolean, displayMode: DisplayMode): {
|
|
30
|
+
errMessage: string;
|
|
31
|
+
bannerProps: IWebpartBannerProps;
|
|
32
|
+
errorObjArray: string[];
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=buildBannerPropsV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildBannerPropsV1.d.ts","sourceRoot":"","sources":["../../../src/banner/render/buildBannerPropsV1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAG,MAAM,4BAA4B,CAAC;AAM1D,OAAO,EAAE,QAAQ,EAAwB,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;;;;GASG;AAuBJ;;;;;;;;GAQG;AACF,wBAAgB,gBAAgB,CAAG,OAAO,EAAG,iBAAiB,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,oBAAoB,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW;;;;EA4L1J"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The purpose of this file is to build the FPS Banner props in a standard way.
|
|
3
|
+
* To benefit from typescript, it's meant to be copied to the specific webpart using it
|
|
4
|
+
*/
|
|
5
|
+
// import { WebPartContext } from '@microsoft/sp-webpart-base';
|
|
6
|
+
import { DisplayMode, } from '@microsoft/sp-core-library';
|
|
7
|
+
// import { IPropertyFieldGroupOrPerson } from "@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker";
|
|
8
|
+
// For SPPermission: let addAndCustomizePages = pageContext.web.permissions.hasPermission( SPPermission.addAndCustomizePages );
|
|
9
|
+
import { SPPermission } from '@microsoft/sp-page-context';
|
|
10
|
+
import { baseBannerCmdStyles, baseBannerStyles } from '../../common/commandStyles/defaults';
|
|
11
|
+
import { verifyAudienceVsUser } from '../../logic/indexes';
|
|
12
|
+
import { getReactCSSFromString } from '../../logic/Strings/reactCSS';
|
|
13
|
+
/***
|
|
14
|
+
* d888888b .88b d88. d8888b. .d88b. d8888b. d888888b d8b db d8888b. .88b d88. d88888b db db d8b db .o88b. d888888b d888888b .d88b. d8b db .d8888.
|
|
15
|
+
* `88' 88'YbdP`88 88 `8D .8P Y8. 88 `8D `~~88~~' 888o 88 88 `8D 88'YbdP`88 88' 88 88 888o 88 d8P Y8 `~~88~~' `88' .8P Y8. 888o 88 88' YP
|
|
16
|
+
* 88 88 88 88 88oodD' 88 88 88oobY' 88 88V8o 88 88oodD' 88 88 88 88ooo 88 88 88V8o 88 8P 88 88 88 88 88V8o 88 `8bo.
|
|
17
|
+
* 88 88 88 88 88~~~ 88 88 88`8b 88 88 V8o88 88~~~ 88 88 88 88~~~ 88 88 88 V8o88 8b 88 88 88 88 88 V8o88 `Y8b.
|
|
18
|
+
* .88. 88 88 88 88 `8b d8' 88 `88. 88 88 V888 88 88 88 88 88 88b d88 88 V888 Y8b d8 88 .88. `8b d8' 88 V888 db 8D
|
|
19
|
+
* Y888888P YP YP YP 88 `Y88P' 88 YD YP VP V8P 88 YP YP YP YP ~Y8888P' VP V8P `Y88P' YP Y888888P `Y88P' VP V8P `8888Y'
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
// import { getReactCSSFromString, ICurleyBraceCheck } from '../../Services/PropPane/StringToReactCSS';
|
|
24
|
+
// import { IWebpartBannerProps,} from './bannerProps';
|
|
25
|
+
// import { baseBannerCmdStyles, baseBannerStyles} from './defaults_';
|
|
26
|
+
// import { IEveryoneItemPageAudience } from '../../Services/DOM/Expando/FPSOptionsExpando';
|
|
27
|
+
// import { getHelpfullError, getHelpfullErrorV2 } from '../../Services/Logging/ErrorHandler';
|
|
28
|
+
// import { IRepoLinks } from '../../Links/CreateLinks';
|
|
29
|
+
// import { verifyAudienceVsUser } from '../../Services/Users_/CheckPermissions_';
|
|
30
|
+
// import { IFPSUser, } from '../../Services/Users_/IUserInterfaces_';
|
|
31
|
+
// import { IWebpartHistory, } from '../../Services/PropPane/WebPartHistory/Interface';
|
|
32
|
+
// import { ISupportedHost } from '../../Services/PropPane/FPSInterfaces';
|
|
33
|
+
// import { IPinMeState } from "../../Services/DOM/PinMe/FPSPinMenu";
|
|
34
|
+
// import { IMinWPBannerProps, IBuildBannerSettings } from "./Moved_/BannerInterface_";
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param wpProps
|
|
38
|
+
* @param FPSUser
|
|
39
|
+
* @param bbs
|
|
40
|
+
* @param showTricks
|
|
41
|
+
* @param displayMode
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
export function buildBannerProps(wpProps, FPSUser, bbs, showTricks, displayMode) {
|
|
45
|
+
/***
|
|
46
|
+
* d8888b. .d8b. d8b db d8b db d88888b d8888b.
|
|
47
|
+
* 88 `8D d8' `8b 888o 88 888o 88 88' 88 `8D
|
|
48
|
+
* 88oooY' 88ooo88 88V8o 88 88V8o 88 88ooooo 88oobY'
|
|
49
|
+
* 88~~~b. 88~~~88 88 V8o88 88 V8o88 88~~~~~ 88`8b
|
|
50
|
+
* 88 8D 88 88 88 V888 88 V888 88. 88 `88.
|
|
51
|
+
* Y8888P' YP YP VP V8P VP V8P Y88888P 88 YD
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
let bannerTitle = bbs.modifyBannerTitle === true && wpProps.bannerTitle && wpProps.bannerTitle.length > 0 ? wpProps.bannerTitle : bbs.repoLinks.desc;
|
|
56
|
+
let bannerStyle = getReactCSSFromString('bannerStyle', wpProps.bannerStyle, baseBannerStyles);
|
|
57
|
+
let bannerCmdStyle = getReactCSSFromString('bannerCmdStyle', wpProps.bannerCmdStyle, baseBannerCmdStyles);
|
|
58
|
+
//Over-rides gear for certain users
|
|
59
|
+
let showRepoLinks = bbs.beAUser === true || wpProps.showRepoLinks === false ? false : true;
|
|
60
|
+
let isSiteAdmin = bbs.beAUser !== true && FPSUser.isSiteAdmin === true ? true : false;
|
|
61
|
+
let showBannerGear = isSiteAdmin === true ? true : false;
|
|
62
|
+
let showGoToHome = isSiteAdmin === true ? true : false;
|
|
63
|
+
let showGoToParent = isSiteAdmin === true ? true : false;
|
|
64
|
+
let showExport = isSiteAdmin === true ? true : false;
|
|
65
|
+
let enableExpandoramic = isSiteAdmin === true ? true : false;
|
|
66
|
+
//Always show full panel if you are SCA
|
|
67
|
+
let showFullPanel = isSiteAdmin === true ? true : false;
|
|
68
|
+
if (isSiteAdmin !== true) {
|
|
69
|
+
let homeParentGearAudience = verifyAudienceVsUser(FPSUser, showTricks, wpProps.homeParentGearAudience, null, bbs.beAUser);
|
|
70
|
+
showBannerGear = wpProps.showBannerGear === true && homeParentGearAudience === true ? true : false;
|
|
71
|
+
showGoToHome = wpProps.showGoToHome === true && homeParentGearAudience === true ? true : false;
|
|
72
|
+
showGoToParent = wpProps.showGoToParent === true && homeParentGearAudience === true ? true : false;
|
|
73
|
+
let hasCustomizePages = verifyAudienceVsUser(FPSUser, showTricks, wpProps.homeParentGearAudience, SPPermission.addAndCustomizePages, bbs.beAUser);
|
|
74
|
+
showExport = wpProps.showExport === true && hasCustomizePages !== true ? false : true;
|
|
75
|
+
enableExpandoramic = verifyAudienceVsUser(FPSUser, showTricks, wpProps.expandoAudience, null, bbs.beAUser);
|
|
76
|
+
//Logic for showing full panel... If you can edit items, you can likely edit the page and therefore should know about the webpart.
|
|
77
|
+
let getsFullPanelExperience = verifyAudienceVsUser(FPSUser, showTricks, wpProps.fullPanelAudience, SPPermission.editListItems, bbs.beAUser);
|
|
78
|
+
showFullPanel = getsFullPanelExperience;
|
|
79
|
+
}
|
|
80
|
+
//Over-rides expand for certain users
|
|
81
|
+
let anyContext = bbs.context;
|
|
82
|
+
console.log('_pageLayoutType:', anyContext._pageLayoutType);
|
|
83
|
+
console.log('pageLayoutType:', anyContext.pageLayoutType);
|
|
84
|
+
// Changed expandoStyle from buildExpandoStyle function based on https://github.com/mikezimm/CoreFPS114/issues/6
|
|
85
|
+
// let expandobuildExpandoStyle = buildExpandoStyle( bbs.errMessage, wpProps, bbs.errorObjArray, bbs.expandoErrorObj );
|
|
86
|
+
let expandoStyleObject = getReactCSSFromString('expandoStyle', wpProps.expandoStyle, {});
|
|
87
|
+
let styleErrors = [];
|
|
88
|
+
if (bannerStyle.errMessage) {
|
|
89
|
+
styleErrors.push(bannerStyle.errMessage);
|
|
90
|
+
}
|
|
91
|
+
if (bannerCmdStyle.errMessage) {
|
|
92
|
+
styleErrors.push(bannerCmdStyle.errMessage);
|
|
93
|
+
}
|
|
94
|
+
if (expandoStyleObject.errMessage) {
|
|
95
|
+
styleErrors.push(expandoStyleObject.errMessage);
|
|
96
|
+
}
|
|
97
|
+
let styleErrorMessage = styleErrors.length > 0 ? `; ${styleErrors.join('; ')}` : '';
|
|
98
|
+
bbs.errMessage += styleErrorMessage;
|
|
99
|
+
let showBannerError = bbs.errMessage !== '' && bbs.errMessage !== null ? true : false;
|
|
100
|
+
//Always pass false for verifyAudienceVsUser 'beAUser' or it will hide the beAUser Icon.
|
|
101
|
+
const showBeAUserIcon = verifyAudienceVsUser(FPSUser, showTricks, wpProps.beAUserAudience, SPPermission.addAndCustomizePages, false);
|
|
102
|
+
// let showBeAUserIcon: boolean = false;
|
|
103
|
+
// if ( ( wpProps.expandoAudience && wpProps.expandoAudience !== 'Everyone')
|
|
104
|
+
// || ( wpProps.homeParentGearAudience && wpProps.homeParentGearAudience !== 'Everyone' ) ) {
|
|
105
|
+
// showBeAUserIcon = true;
|
|
106
|
+
// }
|
|
107
|
+
let infoElement = 'More Information';
|
|
108
|
+
if (wpProps.infoElementChoice === 'Text') {
|
|
109
|
+
infoElement = wpProps.infoElementText;
|
|
110
|
+
}
|
|
111
|
+
else if (wpProps.infoElementChoice) {
|
|
112
|
+
infoElement = wpProps.infoElementChoice;
|
|
113
|
+
}
|
|
114
|
+
let bannerProps = {
|
|
115
|
+
webpartHistory: wpProps.webpartHistory,
|
|
116
|
+
FPSUser: FPSUser,
|
|
117
|
+
exportProps: bbs.exportProps,
|
|
118
|
+
pageContext: bbs.context.pageContext,
|
|
119
|
+
displayMode: displayMode,
|
|
120
|
+
WebPartHelpElement: null,
|
|
121
|
+
panelTitle: showBannerError === true ? bbs.errMessage : bannerTitle,
|
|
122
|
+
infoElement: infoElement,
|
|
123
|
+
contentPages: {
|
|
124
|
+
aboutTable: null,
|
|
125
|
+
advancedContent: null,
|
|
126
|
+
basicsContent: null,
|
|
127
|
+
errorsContent: null,
|
|
128
|
+
futureContent: null,
|
|
129
|
+
getRandomTip: null,
|
|
130
|
+
gettingStartedContent: null,
|
|
131
|
+
tricksTable: null,
|
|
132
|
+
webParTips: [],
|
|
133
|
+
whyContent: null,
|
|
134
|
+
},
|
|
135
|
+
bannerWidth: bbs.clientWidth,
|
|
136
|
+
showBanner: showTricks === true || bbs.forceBanner === true || wpProps.showBanner !== false ? true : false,
|
|
137
|
+
feedbackEmail: wpProps.feedbackEmail ? wpProps.feedbackEmail : '',
|
|
138
|
+
showTricks: showTricks,
|
|
139
|
+
showBannerGear: showBannerGear,
|
|
140
|
+
showGoToHome: showGoToHome,
|
|
141
|
+
showGoToParent: showGoToParent,
|
|
142
|
+
showRepoLinks: showRepoLinks,
|
|
143
|
+
showExport: showExport,
|
|
144
|
+
showFullPanel: showFullPanel,
|
|
145
|
+
replacePanelHTML: wpProps.replacePanelHTML,
|
|
146
|
+
replacePanelWarning: bbs.replacePanelWarning,
|
|
147
|
+
// onHomePage: anyContext._pageLayoutType === 'Home' ? true : false,
|
|
148
|
+
onHomePage: bbs.context.pageContext.legacyPageContext.isWebWelcomePage === true ? true : false,
|
|
149
|
+
hoverEffect: wpProps.bannerHoverEffect === false ? false : true,
|
|
150
|
+
//This was my modified attempt that didn't work
|
|
151
|
+
title: showBannerError === true ? bbs.errMessage : bannerTitle,
|
|
152
|
+
bannerReactCSS: showBannerError === true ? { background: "yellow", color: "red", } : bannerStyle.parsed,
|
|
153
|
+
bannerCmdReactCSS: bannerCmdStyle.parsed,
|
|
154
|
+
gitHubRepo: bbs.repoLinks,
|
|
155
|
+
farElements: [],
|
|
156
|
+
nearElements: [],
|
|
157
|
+
earyAccess: bbs.earyAccess,
|
|
158
|
+
wideToggle: bbs.wideToggle,
|
|
159
|
+
bonusHTML1: '',
|
|
160
|
+
bonusHTML2: '',
|
|
161
|
+
refreshId: '',
|
|
162
|
+
panelPerformance: {
|
|
163
|
+
mode: DisplayMode.Read,
|
|
164
|
+
monitor: false,
|
|
165
|
+
onInit: new Date(),
|
|
166
|
+
constructor: new Date(),
|
|
167
|
+
sets: {},
|
|
168
|
+
ops: {},
|
|
169
|
+
},
|
|
170
|
+
// bonusHTML2: null,
|
|
171
|
+
//2022-02-17: Added these for expandoramic mode
|
|
172
|
+
domElement: bbs.context.domElement,
|
|
173
|
+
pageLayout: wpProps.pageLayout,
|
|
174
|
+
enableExpandoramic: enableExpandoramic,
|
|
175
|
+
expandoDefault: wpProps.expandoDefault,
|
|
176
|
+
expandoStyle: expandoStyleObject.parsed,
|
|
177
|
+
expandAlert: bbs.expandAlert,
|
|
178
|
+
expandConsole: bbs.expandConsole,
|
|
179
|
+
expandoPadding: wpProps.expandoPadding,
|
|
180
|
+
//2022-02-17: END additions for expandoramic mode
|
|
181
|
+
beAUser: bbs.beAUser,
|
|
182
|
+
showBeAUserIcon: showBeAUserIcon,
|
|
183
|
+
beAUserFunction: null,
|
|
184
|
+
};
|
|
185
|
+
//close #129: This makes the maxWidth added in fps options apply to banner as well.
|
|
186
|
+
// if ( wpProps.fpsContainerMaxWidth && wpProps.fpsContainerMaxWidth.length > 0 && bannerProps.bannerReactCSS ) {
|
|
187
|
+
// bannerProps.bannerReactCSS.maxWidth = wpProps.fpsContainerMaxWidth;
|
|
188
|
+
// }
|
|
189
|
+
// 2022-12-12: VERIFY THIS IS NEEDED, it's in buildBannerPropsv1 AND WebPartRenderBannerV2.ts
|
|
190
|
+
if (wpProps.allSectionMaxWidthEnable && wpProps.allSectionMaxWidth > 0 && bannerProps.bannerReactCSS) {
|
|
191
|
+
bannerProps.bannerReactCSS.maxWidth = wpProps.allSectionMaxWidth;
|
|
192
|
+
}
|
|
193
|
+
return { errMessage: bbs.errMessage, bannerProps: bannerProps, errorObjArray: [expandoStyleObject.errMessage], };
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=buildBannerPropsV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildBannerPropsV1.js","sourceRoot":"","sources":["../../../src/banner/render/buildBannerPropsV1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gEAAgE;AAChE,OAAO,EAAE,WAAW,GAAG,MAAM,4BAA4B,CAAC;AAC1D,2GAA2G;AAE1G,gIAAgI;AACjI,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAY,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAqB,MAAM,8BAA8B,CAAC;AAKvF;;;;;;;;;GASG;AAEJ,wGAAwG;AACxG,wDAAwD;AACxD,uEAAuE;AAEvE,6FAA6F;AAE7F,+FAA+F;AAE/F,yDAAyD;AAEzD,mFAAmF;AACnF,wEAAwE;AAExE,uFAAuF;AACvF,0EAA0E;AAE1E,qEAAqE;AAGrE,uFAAuF;AAEvF;;;;;;;;GAQG;AACF,MAAM,UAAU,gBAAgB,CAAG,OAA2B,EAAE,OAAiB,EAAE,GAAyB,EAAE,UAAmB,EAAE,WAAwB;IAGvJ;;;;;;;;;OASG;IAIF,IAAI,WAAW,GAAG,GAAG,CAAC,iBAAiB,KAAK,IAAI,IAAI,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM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,CAAC,cAAc;QACtC,YAAY,EAAE,kBAAkB,CAAC,MAAM;QACvC,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,kDAAkD;QAElD,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,eAAe,EAAE,eAAe;QAChC,eAAe,EAAE,IAAI;KAEtB,CAAC;IAEL,oFAAoF;IACpF,iHAAiH;IACjH,wEAAwE;IACxE,IAAI;IACJ,8FAA8F;IAC9F,IAAK,OAAO,CAAC,wBAAwB,IAAI,OAAO,CAAC,kBAAkB,GAAG,CAAC,IAAI,WAAW,CAAC,cAAc,EAAG;QACtG,WAAW,CAAC,cAAc,CAAC,QAAQ,GAAG,OAAO,CAAC,kBAAkB,CAAC;KAClE;IAEG,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,CAAE,kBAAkB,CAAC,UAAU,CAAE,GAAG,CAAC;AAExH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IRepoLinks } from "../../components/atoms/Links/CreateLinks";
|
|
2
|
+
import { ILoadPerformance, ILoadPerformanceOps } from "../../components/molecules/Performance/IPerformance";
|
|
3
|
+
import { IMinWPBannerProps } from "../interfaces/MinWP/IMinWPBannerProps";
|
|
4
|
+
export declare function refreshPanel(bannerProps: IMinWPBannerProps, repoLink: IRepoLinks, performance: ILoadPerformance, keysToShow: ILoadPerformanceOps[]): IMinWPBannerProps;
|
|
5
|
+
//# sourceMappingURL=refreshPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refreshPanel.d.ts","sourceRoot":"","sources":["../../../src/banner/render/refreshPanel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAE5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,wBAAgB,YAAY,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,mBAAmB,EAAE,qBAQlJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createPerformanceTableVisitor } from "../../components/indexes";
|
|
2
|
+
import { visitorPanelInfo } from "../components/VisitorPanel/VisitorPanelComponent";
|
|
3
|
+
export function refreshPanel(bannerProps, repoLink, performance, keysToShow) {
|
|
4
|
+
if (performance) {
|
|
5
|
+
bannerProps.replacePanelHTML = visitorPanelInfo(bannerProps, repoLink, '', '', createPerformanceTableVisitor(performance, keysToShow));
|
|
6
|
+
}
|
|
7
|
+
return bannerProps;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=refreshPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refreshPanel.js","sourceRoot":"","sources":["../../../src/banner/render/refreshPanel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,MAAM,UAAU,YAAY,CAAC,WAA8B,EAAE,QAAoB,EAAE,WAA6B,EAAE,UAAiC;IAEjJ,IAAI,WAAW,EAAE;QACf,WAAW,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,WAAgC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,6BAA6B,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;KAC7J;IAED,OAAO,WAAW,CAAC;AAErB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IRepoLinks } from "../../components/atoms/Links/CreateLinks";
|
|
2
|
+
import { ILoadPerformance, ILoadPerformanceOps } from "../../components/molecules/Performance/IPerformance";
|
|
3
|
+
import { IMinWPBannerProps } from "../interfaces/MinWP/IMinWPBannerProps";
|
|
4
|
+
export declare function refreshPanelHTML(bannerProps: IMinWPBannerProps, repoLink: IRepoLinks, performance: ILoadPerformance, keysToShow: ILoadPerformanceOps[]): any;
|
|
5
|
+
//# sourceMappingURL=refreshPanelHTML.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refreshPanelHTML.d.ts","sourceRoot":"","sources":["../../../src/banner/render/refreshPanelHTML.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAE5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,mBAAmB,EAAE,OAStJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createPerformanceTableVisitor } from "../../components/indexes";
|
|
2
|
+
import { visitorPanelInfo } from "../components/VisitorPanel/VisitorPanelComponent";
|
|
3
|
+
export function refreshPanelHTML(bannerProps, repoLink, performance, keysToShow) {
|
|
4
|
+
let replacePanelHTML = bannerProps.replacePanelHTML;
|
|
5
|
+
if (performance) {
|
|
6
|
+
replacePanelHTML = visitorPanelInfo(bannerProps, repoLink, '', '', createPerformanceTableVisitor(performance, keysToShow));
|
|
7
|
+
}
|
|
8
|
+
return replacePanelHTML;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=refreshPanelHTML.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refreshPanelHTML.js","sourceRoot":"","sources":["../../../src/banner/render/refreshPanelHTML.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,MAAM,UAAU,gBAAgB,CAAC,WAA8B,EAAE,QAAoB,EAAE,WAA6B,EAAE,UAAiC;IACrJ,IAAI,gBAAgB,GAAQ,WAAW,CAAC,gBAAgB,CAAC;IAEzD,IAAI,WAAW,EAAE;QACf,gBAAgB,GAAG,gBAAgB,CAAC,WAAgC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,6BAA6B,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;KACjJ;IAED,OAAO,gBAAgB,CAAC;AAE1B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IPropertyPaneDropdownProps } from '@microsoft/sp-property-pane';
|
|
2
|
+
import { IAudienceGroupType } from './Interfaces';
|
|
3
|
+
export declare function createAudienceGroup(propName: string, label: string, audience: IAudienceGroupType, disabled: boolean): import("@microsoft/sp-property-pane").IPropertyPaneField<IPropertyPaneDropdownProps>;
|
|
4
|
+
//# sourceMappingURL=AudiencePropGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudiencePropGroup.d.ts","sourceRoot":"","sources":["../../../src/common/Audiences/AudiencePropGroup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,0BAA0B,EAAG,MAAM,6BAA6B,CAAC;AAEhG,OAAO,EAAE,kBAAkB,EAAoI,MAAM,cAAc,CAAC;AACpL,wBAAgB,mBAAmB,CAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAE,OAAO,wFAiBpH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropertyPaneDropdown, } from '@microsoft/sp-property-pane';
|
|
2
|
+
import { EveryoneAudienceChoices, FullControlAudienceChoices, PageEditorAudienceChoices, ItemEditorAudienceChoices, EditorAudienceChoices } from './Interfaces';
|
|
3
|
+
export function createAudienceGroup(propName, label, audience, disabled) {
|
|
4
|
+
let options = EveryoneAudienceChoices;
|
|
5
|
+
if (audience === 'Owner') {
|
|
6
|
+
options = FullControlAudienceChoices;
|
|
7
|
+
}
|
|
8
|
+
else if (audience === 'Page') {
|
|
9
|
+
options = PageEditorAudienceChoices;
|
|
10
|
+
}
|
|
11
|
+
else if (audience === 'Item') {
|
|
12
|
+
options = ItemEditorAudienceChoices;
|
|
13
|
+
}
|
|
14
|
+
else if (audience === 'Editor') {
|
|
15
|
+
options = EditorAudienceChoices;
|
|
16
|
+
}
|
|
17
|
+
const thisField = PropertyPaneDropdown(propName, {
|
|
18
|
+
label: label,
|
|
19
|
+
options: options,
|
|
20
|
+
disabled: disabled,
|
|
21
|
+
});
|
|
22
|
+
return thisField;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=AudiencePropGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudiencePropGroup.js","sourceRoot":"","sources":["../../../src/common/Audiences/AudiencePropGroup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,GAA+B,MAAM,6BAA6B,CAAC;AAEhG,OAAO,EAAsB,uBAAuB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACpL,MAAM,UAAU,mBAAmB,CAAE,QAAgB,EAAE,KAAa,EAAE,QAA4B,EAAE,QAAiB;IAEnH,IAAI,OAAO,GAAG,uBAAuB,CAAC;IACtC,IAAK,QAAQ,KAAK,OAAO,EAAG;QAAE,OAAO,GAAG,0BAA0B,CAAC;KAAE;SAChE,IAAK,QAAQ,KAAK,MAAM,EAAG;QAAE,OAAO,GAAG,yBAAyB,CAAC;KAAE;SACnE,IAAK,QAAQ,KAAK,MAAM,EAAG;QAAE,OAAO,GAAG,yBAAyB,CAAC;KAAE;SACnE,IAAK,QAAQ,KAAK,QAAQ,EAAG;QAAE,OAAO,GAAG,qBAAqB,CAAC;KAAE;IAEtE,MAAM,SAAS,GAAM,oBAAoB,CAAE,QAAQ,EAA8B;QAC/E,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAE;IAEJ,OAAO,SAAS,CAAC;AAGnB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IPropertyPaneDropdownOption } from '@microsoft/sp-property-pane';
|
|
2
|
+
export type IAdminAudience = 'Site Admins';
|
|
3
|
+
export type IOwnerAudience = 'Site Owners';
|
|
4
|
+
export type IPageEditAudience = 'Page Editors';
|
|
5
|
+
export type IItemEditAudience = 'Item Editors';
|
|
6
|
+
export type IVisitorAudience = 'Everyone';
|
|
7
|
+
export type IFullControlAudience = IAdminAudience | IOwnerAudience;
|
|
8
|
+
export declare const FullControlAudienceChoices: IPropertyPaneDropdownOption[];
|
|
9
|
+
export type IPageEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience;
|
|
10
|
+
export declare const PageEditorAudienceChoices: IPropertyPaneDropdownOption[];
|
|
11
|
+
export type IItemEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience | IVisitorAudience;
|
|
12
|
+
export declare const ItemEditorAudienceChoices: IPropertyPaneDropdownOption[];
|
|
13
|
+
export type IEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience;
|
|
14
|
+
export declare const EditorAudienceChoices: IPropertyPaneDropdownOption[];
|
|
15
|
+
export type IEveryoneAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience | IVisitorAudience;
|
|
16
|
+
export declare const EveryoneAudienceChoices: IPropertyPaneDropdownOption[];
|
|
17
|
+
export type IAudienceGroupType = 'Admin' | 'Owner' | 'Page' | 'Item' | 'Editor' | 'Everyone';
|
|
18
|
+
//# sourceMappingURL=Interfaces.d.ts.map
|
|
@@ -0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