@mikezimm/fps-library-v2 1.0.178 → 1.0.179

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.d.ts.map +1 -1
  3. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js +12 -1
  4. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js.map +1 -1
  5. package/lib/banner/FPSWebPartClass/FPSBaseClass.d.ts +12 -0
  6. package/lib/banner/FPSWebPartClass/FPSBaseClass.d.ts.map +1 -1
  7. package/lib/banner/FPSWebPartClass/FPSBaseClass.js +28 -0
  8. package/lib/banner/FPSWebPartClass/FPSBaseClass.js.map +1 -1
  9. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass.d.ts +3 -0
  10. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass.d.ts.map +1 -1
  11. package/lib/banner/FPSWebPartClass/runSuperOnInit.d.ts.map +1 -1
  12. package/lib/banner/FPSWebPartClass/runSuperOnInit.js +7 -0
  13. package/lib/banner/FPSWebPartClass/runSuperOnInit.js.map +1 -1
  14. package/lib/banner/FPSWebPartClass/runWebPartRender.d.ts.map +1 -1
  15. package/lib/banner/FPSWebPartClass/runWebPartRender.js +5 -0
  16. package/lib/banner/FPSWebPartClass/runWebPartRender.js.map +1 -1
  17. package/lib/banner/components/EasyPages/componentPage.d.ts.map +1 -1
  18. package/lib/banner/components/EasyPages/componentPage.js.map +1 -1
  19. package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts.map +1 -1
  20. package/lib/banner/features/ImportExport/BuildExportPropsX.js +2 -0
  21. package/lib/banner/features/ImportExport/BuildExportPropsX.js.map +1 -1
  22. package/lib/banner/interfaces/MinWP/IMinWPBannerProps.d.ts +2 -1
  23. package/lib/banner/interfaces/MinWP/IMinWPBannerProps.d.ts.map +1 -1
  24. package/lib/banner/interfaces/MinWP/IMinWPBannerProps.js.map +1 -1
  25. package/lib/banner/mainReact/IWebpartBannerProps.d.ts +4 -0
  26. package/lib/banner/mainReact/IWebpartBannerProps.d.ts.map +1 -1
  27. package/lib/banner/propPane/AllDefaultFPSGroups.d.ts.map +1 -1
  28. package/lib/banner/propPane/AllDefaultFPSGroups.js +3 -0
  29. package/lib/banner/propPane/AllDefaultFPSGroups.js.map +1 -1
  30. package/lib/components/atoms/Links/CallBackLinks.d.ts +14 -0
  31. package/lib/components/atoms/Links/CallBackLinks.d.ts.map +1 -0
  32. package/lib/components/atoms/Links/CallBackLinks.js +27 -0
  33. package/lib/components/atoms/Links/CallBackLinks.js.map +1 -0
  34. package/lib/components/molecules/FullPageBackGround/FullPageBGParams.d.ts +7 -0
  35. package/lib/components/molecules/FullPageBackGround/FullPageBGParams.d.ts.map +1 -0
  36. package/lib/components/molecules/FullPageBackGround/FullPageBGParams.js +8 -0
  37. package/lib/components/molecules/FullPageBackGround/FullPageBGParams.js.map +1 -0
  38. package/lib/components/molecules/FullPageBackGround/IFPSPageBGWPProps.d.ts +16 -0
  39. package/lib/components/molecules/FullPageBackGround/IFPSPageBGWPProps.d.ts.map +1 -0
  40. package/lib/components/molecules/FullPageBackGround/IFPSPageBGWPProps.js +5 -0
  41. package/lib/components/molecules/FullPageBackGround/IFPSPageBGWPProps.js.map +1 -0
  42. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.d.ts +9 -0
  43. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.d.ts.map +1 -0
  44. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.js +50 -0
  45. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.js.map +1 -0
  46. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSWarning.d.ts +9 -0
  47. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSWarning.d.ts.map +1 -0
  48. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSWarning.js +140 -0
  49. package/lib/components/molecules/FullPageBackGround/PropHelp/CSSWarning.js.map +1 -0
  50. package/lib/components/molecules/FullPageBackGround/PropHelp/FullImage.d.ts +11 -0
  51. package/lib/components/molecules/FullPageBackGround/PropHelp/FullImage.d.ts.map +1 -0
  52. package/lib/components/molecules/FullPageBackGround/PropHelp/FullImage.js +71 -0
  53. package/lib/components/molecules/FullPageBackGround/PropHelp/FullImage.js.map +1 -0
  54. package/lib/components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup.d.ts +11 -0
  55. package/lib/components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup.d.ts.map +1 -0
  56. package/lib/components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup.js +78 -0
  57. package/lib/components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup.js.map +1 -0
  58. package/lib/components/molecules/FullPageBackGround/addCanvasBGImageComponent.d.ts +3 -0
  59. package/lib/components/molecules/FullPageBackGround/addCanvasBGImageComponent.d.ts.map +1 -0
  60. package/lib/components/molecules/FullPageBackGround/addCanvasBGImageComponent.js +110 -0
  61. package/lib/components/molecules/FullPageBackGround/addCanvasBGImageComponent.js.map +1 -0
  62. package/lib/components/molecules/FullPageBackGround/forceWebpartWhiteText.d.ts +10 -0
  63. package/lib/components/molecules/FullPageBackGround/forceWebpartWhiteText.d.ts.map +1 -0
  64. package/lib/components/molecules/FullPageBackGround/forceWebpartWhiteText.js +21 -0
  65. package/lib/components/molecules/FullPageBackGround/forceWebpartWhiteText.js.map +1 -0
  66. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallBackLinks.js","sourceRoot":"","sources":["../../../../src/components/atoms/Links/CallBackLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,GAAE,MAAM,iCAAiC,CAAC;AAGvD,MAAM,UAAU,GAAwB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE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ageFitLayout2: string;
3
+ export declare const SetNormalColor: string;
4
+ export declare const SetWhiteColor: string;
5
+ export declare const ClearAllParams: string;
6
+ export declare const FullPageBGParams: string[];
7
+ //# sourceMappingURL=FullPageBGParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullPageBGParams.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FullPageBackGround/FullPageBGParams.tsx"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,EAAE,MAA+B,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAE,MAA8B,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAE,MAAmC,CAAC;AACjE,eAAO,MAAM,aAAa,EAAE,MAAiC,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAE,MAA8B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAqF,CAAC"}
@@ -0,0 +1,8 @@
1
+ export const PageFitOriginal = `fullPageFit=Original`;
2
+ export const PageFitLayout2 = `fullPageFit=Layout2`;
3
+ export const SetNormalColor = `defaultFontColor=default`;
4
+ export const SetWhiteColor = `defaultFontColor=white`;
5
+ export const ClearAllParams = `clearAllParams=true`;
6
+ export const FullPageBGParams = [PageFitOriginal, PageFitLayout2, SetNormalColor, SetWhiteColor, ClearAllParams];
7
+ // paramters used for FullBackGround
8
+ //# sourceMappingURL=FullPageBGParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullPageBGParams.js","sourceRoot":"","sources":["../../../../src/components/molecules/FullPageBackGround/FullPageBGParams.tsx"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,eAAe,GAAW,sBAAsB,CAAC;AAC9D,MAAM,CAAC,MAAM,cAAc,GAAW,qBAAqB,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAW,0BAA0B,CAAC;AACjE,MAAM,CAAC,MAAM,aAAa,GAAW,wBAAwB,CAAC;AAC9D,MAAM,CAAC,MAAM,cAAc,GAAW,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,gBAAgB,GAAa,CAAC,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;AAC3H,oCAAoC"}
@@ -0,0 +1,16 @@
1
+ export type IFullPageOverlayColor = 'Black' | 'White';
2
+ export declare const FullPageOverlayColors: IFullPageOverlayColor[];
3
+ export type IFPSFullPageImageFit = 'Original' | 'Layout2';
4
+ export declare const FullPageImageFitStrings: IFPSFullPageImageFit[];
5
+ export interface IFPSPageBGWPProps {
6
+ fullPageImage: string;
7
+ fullPageImageFilter: string;
8
+ fullPageScrollable: boolean;
9
+ defaultWhiteText: boolean;
10
+ whiteRefreshTip: string;
11
+ fullPageOverlayOpacity: number;
12
+ fullPageOverlayColor: IFullPageOverlayColor;
13
+ fullPageImageFit: IFPSFullPageImageFit;
14
+ }
15
+ export declare const changeFullBackground: string[];
16
+ //# sourceMappingURL=IFPSPageBGWPProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFPSPageBGWPProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FullPageBackGround/IFPSPageBGWPProps.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,OAAO,CAAC;AACtD,eAAO,MAAM,qBAAqB,EAAE,qBAAqB,EAAyB,CAAC;AAEnF,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,CAAC;AAC1D,eAAO,MAAM,uBAAuB,EAAE,oBAAoB,EAA8B,CAAC;AAEzF,MAAM,WAAW,iBAAiB;IAGhC,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C,gBAAgB,EAAE,oBAAoB,CAAC;CAExC;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,EACqE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const FullPageOverlayColors = [`Black`, `White`];
2
+ export const FullPageImageFitStrings = [`Original`, `Layout2`];
3
+ export const changeFullBackground = [`fullPageImage`, `fullPageImageFilter`, `fullPageScrollable`,
4
+ `defaultWhiteText`, `whiteRefreshTip`, `fullPageOverlayOpacity`, `fullPageOverlayColor`, `fullPageImageFit`];
5
+ //# sourceMappingURL=IFPSPageBGWPProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFPSPageBGWPProps.js","sourceRoot":"","sources":["../../../../src/components/molecules/FullPageBackGround/IFPSPageBGWPProps.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAA4B,CAAE,OAAO,EAAE,OAAO,CAAE,CAAC;AAGnF,MAAM,CAAC,MAAM,uBAAuB,GAA2B,CAAE,UAAU,EAAE,SAAS,CAAE,CAAC;AAgBzF,MAAM,CAAC,MAAM,oBAAoB,GAAa,CAAC,eAAe,EAAE,qBAAqB,EAAE,oBAAoB;IACzG,kBAAkB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * FPS Slick Sections Notes:
4
+ *
5
+ * ForceWhite does NOT work on collapsible sections.... might at first but if you collapse then expand, no go because web part does not re-apply the classes to the web parts.
6
+ * @returns
7
+ */
8
+ export declare function getWebPartHelpElementCSSPerformance(): JSX.Element;
9
+ //# sourceMappingURL=CSSPerformance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSPerformance.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.tsx"],"names":[],"mappings":";AAUA;;;;;GAKG;AAGH,wBAAgB,mCAAmC,IAAO,GAAG,CAAC,OAAO,CA6BpE"}
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ // import ReactJson from "react-json-view";
3
+ import { PivotItem, } from 'office-ui-fabric-react/lib/Pivot';
4
+ // export function putObjectIntoJSON ( obj: any, name: string = null ): JSX.Element {
5
+ // // return <ReactJson src={ obj } name={ 'panelItem' } collapsed={ true } displayDataTypes={ true } displayObjectSize={ true } enableClipboard={ true } style={{ padding: '20px 0px' }}/>;
6
+ // return <ReactJson src={ obj } name={ name } collapsed={ false } displayDataTypes={ false } displayObjectSize={ false } enableClipboard={ true } style={{ padding: '20px 0px' }} theme= { 'rjv-default' } indentWidth={ 2}/>;
7
+ // }
8
+ /**
9
+ * FPS Slick Sections Notes:
10
+ *
11
+ * ForceWhite does NOT work on collapsible sections.... might at first but if you collapse then expand, no go because web part does not re-apply the classes to the web parts.
12
+ * @returns
13
+ */
14
+ export function getWebPartHelpElementCSSPerformance() {
15
+ const WebPartHelpElement = React.createElement(PivotItem, { headerText: 'CSS Performance' },
16
+ React.createElement("div", { className: 'fps-pph-content' },
17
+ React.createElement("div", { className: 'fps-pph-topic' }, "CSS Lag and performance"),
18
+ React.createElement("div", null,
19
+ "If the web part is not in the ",
20
+ React.createElement("b", null, "active"),
21
+ " part of the page, styles will not get updated until the user moves/scrolls to where the web part can be loaded."),
22
+ React.createElement("div", null,
23
+ "Any changes to styles happen ",
24
+ React.createElement("b", null, "AFTER"),
25
+ " the page loads ",
26
+ React.createElement("b", null, "so you may notice it change"),
27
+ "."),
28
+ React.createElement("div", null, "See Improving Performance below for tips on how to improve perforamnce."),
29
+ React.createElement("div", { className: 'fps-pph-topic' }, "Tips to improve performance"),
30
+ React.createElement("h4", null, "Web part location"),
31
+ React.createElement("div", null,
32
+ React.createElement("b", null, "Install"),
33
+ " FPS Slick Sections web part ",
34
+ React.createElement("b", null, "in the first section on the page"),
35
+ "."),
36
+ React.createElement("h4", null, "Minimize what SharePoint has to do before web part is loaded"),
37
+ React.createElement("ul", null,
38
+ React.createElement("li", null, "Remove as much navigation as possible."),
39
+ React.createElement("ul", null,
40
+ React.createElement("li", null,
41
+ "Disable Navigation in ",
42
+ React.createElement("b", null, "Change the Look : Navigation"),
43
+ " menu"),
44
+ React.createElement("li", null, "Remove un-neccessary links in navigation"),
45
+ React.createElement("li", null, "If you are trying to totally hide SharePoint interface, disconnect from HubSite")),
46
+ React.createElement("li", null, "Reduce the number of sections on your page"),
47
+ React.createElement("li", null, "Reduce the number of web parts on your page"))));
48
+ return WebPartHelpElement;
49
+ }
50
+ //# sourceMappingURL=CSSPerformance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSPerformance.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,2CAA2C;AAC3C,OAAO,EAAG,SAAS,GAAG,MAAM,kCAAkC,CAAC;AAE/D,qFAAqF;AACrF,8LAA8L;AAC9L,iOAAiO;AACjO,IAAI;AAEJ;;;;;GAKG;AAGH,MAAM,UAAU,mCAAmC;IAEjD,MAAM,kBAAkB,GAAG,oBAAC,SAAS,IAAC,UAAU,EAAG,iBAAiB;QAClE,6BAAK,SAAS,EAAG,iBAAiB;YAChC,6BAAK,SAAS,EAAG,eAAe,8BAAgC;YAChE;;gBAAmC,wCAAa;mIAAsH;YACtK;;gBAAkC,uCAAY;;gBAAgB,6DAAkC;oBAAO;YACvG,2GAAkF;YAElF,6BAAK,SAAS,EAAG,eAAe,kCAAoC;YACpE,oDAA0B;YAC1B;gBAAK,yCAAc;;gBAA6B,kEAAuC;oBAAO;YAE9F,+FAAqE;YACrE;gBACE,yEAA+C;gBAC/C;oBACE;;wBAA0B,8DAAmC;gCAAU;oBACvE,2EAAiD;oBACjD,kHAAwF,CACrF;gBACL,6EAAmD;gBACnD,8EAAoD,CACjD,CACD,CACI,CAAC;IAEb,OAAO,kBAAkB,CAAC;AAE5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * FPS Slick Sections Notes:
4
+ *
5
+ * ForceWhite does NOT work on collapsible sections.... might at first but if you collapse then expand, no go because web part does not re-apply the classes to the web parts.
6
+ * @returns
7
+ */
8
+ export declare function getWebPartHelpElementCSSWarning(): JSX.Element;
9
+ //# sourceMappingURL=CSSWarning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSWarning.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropHelp/CSSWarning.tsx"],"names":[],"mappings":";AAUA;;;;;GAKG;AAGH,wBAAgB,+BAA+B,IAAO,GAAG,CAAC,OAAO,CAmGhE"}
@@ -0,0 +1,140 @@
1
+ import * as React from 'react';
2
+ import { Icon } from 'office-ui-fabric-react/lib/Icon';
3
+ // import ReactJson from "react-json-view";
4
+ import { PivotItem, } from 'office-ui-fabric-react/lib/Pivot';
5
+ // export function putObjectIntoJSON ( obj: any, name: string = null ): JSX.Element {
6
+ // // return <ReactJson src={ obj } name={ 'panelItem' } collapsed={ true } displayDataTypes={ true } displayObjectSize={ true } enableClipboard={ true } style={{ padding: '20px 0px' }}/>;
7
+ // return <ReactJson src={ obj } name={ name } collapsed={ false } displayDataTypes={ false } displayObjectSize={ false } enableClipboard={ true } style={{ padding: '20px 0px' }} theme= { 'rjv-default' } indentWidth={ 2}/>;
8
+ // }
9
+ /**
10
+ * FPS Slick Sections Notes:
11
+ *
12
+ * ForceWhite does NOT work on collapsible sections.... might at first but if you collapse then expand, no go because web part does not re-apply the classes to the web parts.
13
+ * @returns
14
+ */
15
+ export function getWebPartHelpElementCSSWarning() {
16
+ const WebPartHelpElement = React.createElement(PivotItem, { headerText: 'CSS Warning' },
17
+ React.createElement("div", { className: 'fps-pph-content' },
18
+ React.createElement("div", { className: 'fps-pph-topic' }, "CSS Warning - applies to ANY 3rd party web part that modifies SharePoint page styles"),
19
+ React.createElement("h4", null, "Style changes may stop working without notice"),
20
+ React.createElement("div", null, "3rd party web parts rely on specific settings on SharePoint pages to work."),
21
+ React.createElement("div", null, "Microsoft can change those settings at any time without notice which could cause this web part to not work as desired."),
22
+ React.createElement("div", null, "If you notice any changes, please report to your SharePoint team as soon as possible."),
23
+ React.createElement("div", null,
24
+ React.createElement("b", null, "DO NOT rely on any style changes as means for restricting access!"),
25
+ " Use proper permission strategies instead."),
26
+ React.createElement("h4", null, "Perceived Lag with styles changing"),
27
+ React.createElement("div", null, "See next tab regarding performance of style changes."),
28
+ React.createElement("div", { className: 'fps-pph-topic' }, "Incompatibilities - avoid these conditions"),
29
+ React.createElement("h4", null, "Collapsable sections"),
30
+ React.createElement("div", null, "Styling updates to web parts only happen when the page is first loaded. Due to how SharePoint builds the page, collapsible section styles get reset when expanding."),
31
+ React.createElement("div", { className: 'fps-pph-topic' }, "Forced White Font color returns to black"),
32
+ React.createElement("div", null, "If you scroll far down a page, SharePoint unloads some content like Site and Page Titles."),
33
+ React.createElement("div", null, "When you scroll back up, SharePoint recreates them from scratch which this web part can not detect."),
34
+ React.createElement("div", null,
35
+ "If this happens, just press the Refresh Icon in the web part bar: ",
36
+ React.createElement(Icon, { style: { fontSize: 'larger' }, iconName: "SyncStatusSolid" })),
37
+ React.createElement("div", { className: 'fps-pph-topic' }, "Styles do not get updated on all web parts"),
38
+ React.createElement("div", null, "Do to the vast and every changing variety of web parts, only the most common have been tested."),
39
+ React.createElement("div", null, "These include"),
40
+ React.createElement("ul", null,
41
+ React.createElement("li", null, "Quick Links - most style variations"),
42
+ React.createElement("li", null, "News, Image, Timer, Hero, People web parts"),
43
+ React.createElement("li", null, "Embeded link web part"),
44
+ React.createElement("li", null, "Youtube web part"),
45
+ React.createElement("li", null, "Pivot Tiles web part")),
46
+ React.createElement("div", { className: 'fps-pph-topic' }, "CSS Class Selectors"),
47
+ React.createElement("a", { href: 'https://github.com/mikezimm/Slick-Sections/blob/main/src/webparts/fpsSlickSections/CoreFPS/SectionStyles.ts' }, "SectionStyles.ts"),
48
+ React.createElement("div", null,
49
+ "Used to get all ",
50
+ React.createElement("b", null, "Section divs"),
51
+ ": ",
52
+ `document.querySelectorAll('`,
53
+ React.createElement("b", null, ".CanvasZone"),
54
+ `')`),
55
+ React.createElement("div", null,
56
+ "Used to get all ",
57
+ React.createElement("b", null, "WebPart divs"),
58
+ ": ",
59
+ `document.querySelectorAll('`,
60
+ React.createElement("b", null, ".ControlZone"),
61
+ `')`),
62
+ React.createElement("div", { className: 'fps-pph-topic' }, "Specific dependancy for Full Page Background Image"),
63
+ React.createElement("div", null,
64
+ "Used to Main Canvas Div - to add Full Page BG Image: ",
65
+ `document.getElementsByClassName('`,
66
+ React.createElement("b", null, "CanvasComponent"),
67
+ `')`),
68
+ React.createElement("div", { className: 'fps-pph-topic' }, "Specific dependancies for styling White Text"),
69
+ React.createElement("div", null,
70
+ "scss class: forceWhiteText - Code: ",
71
+ React.createElement("a", { href: 'https://github.com/mikezimm/Slick-Sections/blob/ab202b0aec3b42f24d34ce35be07e50ae2595842/src/webparts/fpsSlickSections/components/FpsSlickSections.module.scss#L207' }, "Link to scss file for White Text")),
72
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Site Header: Title, Following, Share buttons"),
73
+ React.createElement("div", null,
74
+ `document.querySelector('`,
75
+ React.createElement("b", null, `[data-automationid="SiteHeader"]`),
76
+ `')`),
77
+ React.createElement("div", null,
78
+ "Apply ",
79
+ React.createElement("b", null, ".forceWhiteTextSiteHeader"),
80
+ " to ",
81
+ React.createElement("b", null, "SiteHeader")),
82
+ React.createElement("div", null,
83
+ React.createElement("b", null,
84
+ React.createElement("mark", null, "NOTE:"),
85
+ " datautomationid"),
86
+ " is ONE WORD without a hyphen for this data element"),
87
+ React.createElement("div", null, `a,span ( attribute - link text and spans inside attributes )`),
88
+ React.createElement("div", null, `a span:hover ( attribute - link text and spans inside attributes )`),
89
+ React.createElement("div", null, `.ms-HorizontalNavItem-linkText.is-selected ( Add selected link underline bottom-border )`),
90
+ React.createElement("div", null, `data-automationid="SiteHeaderTitle" a ( attribute - link which Title is )`),
91
+ React.createElement("div", null, "Also targets all buttons and button icons"),
92
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Page Title"),
93
+ React.createElement("div", null,
94
+ `document.querySelector('`,
95
+ React.createElement("b", null,
96
+ "`",
97
+ `[data-automation-id="pageHeader"]`,
98
+ "`"),
99
+ `')`),
100
+ React.createElement("div", null,
101
+ "Apply ",
102
+ React.createElement("b", null, ".forceWhiteTextPageHeader"),
103
+ " to ",
104
+ React.createElement("b", null, "pageHeader")),
105
+ React.createElement("div", null, `[data-automation-id="TitleTextId"]`),
106
+ React.createElement("div", null, `[data-automation-id="personaDetails"]`),
107
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Used for Command Bar Div"),
108
+ React.createElement("div", null,
109
+ `document.getElementsByClassName('`,
110
+ React.createElement("b", null, "mainContent"),
111
+ `')`),
112
+ React.createElement("div", null,
113
+ "Apply ",
114
+ React.createElement("b", null, ".forceWhiteTextCmdButton"),
115
+ " to ",
116
+ React.createElement("b", null, "mainContent")),
117
+ React.createElement("div", null, `[data-automation-id="visibleContent"]`),
118
+ React.createElement("div", null, `[data-automation-id="CollapsibleLayer-Button"]`),
119
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: webPartHeader - All Webparts"),
120
+ React.createElement("div", null, `[data-automation-id="webPartHeader"] [role="heading"]`),
121
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: News webpart"),
122
+ React.createElement("div", null, `[data-automation-id="newsItem"]`),
123
+ React.createElement("div", null, `[data-automation-id="newsItemTitle"]`),
124
+ React.createElement("div", null, `[data-automation-id="newsItemDescription"]`),
125
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Image webpart"),
126
+ React.createElement("div", null, `[data-automation-id="captionElement"]`),
127
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Text web part"),
128
+ React.createElement("div", null, `[data-automation-id="textBox"] >> h2, h3, h4, p, a`),
129
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Quick Links web part"),
130
+ React.createElement("div", null, `[data-automation-id="quick-links-item-title"]`),
131
+ React.createElement("div", null, `[data-automation-id="tile-card"]`),
132
+ React.createElement("div", null, `[data-automation-id="button-card"]`),
133
+ React.createElement("div", null, `[data-automation-id="grid-layout"]`),
134
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Embed link web part"),
135
+ React.createElement("div", null, `[data-automation-id="embedContainer"]`),
136
+ React.createElement("div", { className: 'fps-pph-topic' }, "White Text: Collapsible Section - NOT supported"),
137
+ React.createElement("div", null, `[data-automation-id="CollapsibleLayer-Button"]`)));
138
+ return WebPartHelpElement;
139
+ }
140
+ //# sourceMappingURL=CSSWarning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSWarning.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropHelp/CSSWarning.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,2CAA2C;AAC3C,OAAO,EAAG,SAAS,GAAG,MAAM,kCAAkC,CAAC;AAE/D,qFAAqF;AACrF,8LAA8L;AAC9L,iOAAiO;AACjO,IAAI;AAEJ;;;;;GAKG;AAGH,MAAM,UAAU,+BAA+B;IAE7C,MAAM,kBAAkB,GAAG,oBAAC,SAAS,IAAC,UAAU,EAAG,aAAa;QAChE,6BAAK,SAAS,EAAG,iBAAiB;YAEhC,6BAAK,SAAS,EAAG,eAAe,2FAA6F;YAC3H,gFAAsD;YACtD,8GAAqF;YACrF,0JAAiI;YACjI,yHAAgG;YAChG;gBAAK,mGAAwE;6DAAgD;YAE7H,qEAA2C;YAC3C,wFAA+D;YAE/D,6BAAK,SAAS,EAAG,eAAe,iDAAmD;YACnF,uDAA6B;YAC7B,wMAA+K;YAE/K,6BAAK,SAAS,EAAG,eAAe,+CAAiD;YACjF,6HAAoG;YACpG,uIAA8G;YAC9G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jD,iCAAM,uCAAuC,CAAO;YAEpD,6BAAK,SAAS,EAAG,eAAe,4CAA8C;YAC9E;gBAAO,mCAAmC;gBAAC,6CAAkB;gBAAC,IAAI,CAAO;YACzE;;gBAAW,0DAA+B;;gBAAI,6CAAkB,CAAM;YACtE,iCAAM,uCAAuC,CAAO;YACpD,iCAAM,gDAAgD,CAAO;YAE7D,6BAAK,SAAS,EAAG,eAAe,gDAAkD;YAClF,iCAAM,uDAAuD,CAAO;YAEpE,6BAAK,SAAS,EAAG,eAAe,gCAAkC;YAClE,iCAAM,iCAAiC,CAAO;YAC9C,iCAAM,sCAAsC,CAAO;YACnD,iCAAM,4CAA4C,CAAO;YAEzD,6BAAK,SAAS,EAAG,eAAe,iCAAmC;YACnE,iCAAM,uCAAuC,CAAO;YAEpD,6BAAK,SAAS,EAAG,eAAe,iCAAmC;YACnE,iCAAM,oDAAoD,CAAO;YAEjE,6BAAK,SAAS,EAAG,eAAe,wCAA0C;YAC1E,iCAAM,+CAA+C,CAAO;YAC5D,iCAAM,kCAAkC,CAAO;YAC/C,iCAAM,oCAAoC,CAAO;YACjD,iCAAM,oCAAoC,CAAO;YAEjD,6BAAK,SAAS,EAAG,eAAe,uCAAyC;YACzE,iCAAM,uCAAuC,CAAO;YAEpD,6BAAK,SAAS,EAAG,eAAe,uDAAyD;YACzF,iCAAM,gDAAgD,CAAO,CAEzD,CACI,CAAC;IAEb,OAAO,kBAAkB,CAAC;AAE5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { ICallbackAddParamToUrl } from '../../../../banner/FPSWebPartClass/IThisFPSWebPartClass';
3
+ /**
4
+ * FPS Slick Sections Notes:
5
+ *
6
+ * ForceWhite does NOT work on collapsible sections.... might at first but if you collapse then expand, no go because web part does not re-apply the classes to the web parts.
7
+ * @returns
8
+ */
9
+ export declare const LinkStyles: React.CSSProperties;
10
+ export declare function getWebPartHelpElementFullImage(onClick: ICallbackAddParamToUrl): JSX.Element;
11
+ //# sourceMappingURL=FullImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropHelp/FullImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,aAAmG,CAAC;AAEnI,wBAAgB,8BAA8B,CAAG,OAAO,EAAE,sBAAsB,GAAI,GAAG,CAAC,OAAO,CA+C9F"}
@@ -0,0 +1,71 @@
1
+ import * as React from 'react';
2
+ import { Icon } from 'office-ui-fabric-react/lib/Icon';
3
+ // import ReactJson from "react-json-view";
4
+ import { PivotItem, } from 'office-ui-fabric-react/lib/Pivot';
5
+ import { PageFitLayout2, PageFitOriginal, SetNormalColor, SetWhiteColor } from "../FullPageBGParams";
6
+ /**
7
+ * FPS Slick Sections Notes:
8
+ *
9
+ * ForceWhite does NOT work on collapsible sections.... might at first but if you collapse then expand, no go because web part does not re-apply the classes to the web parts.
10
+ * @returns
11
+ */
12
+ // White text refresh label
13
+ export const LinkStyles = { padding: '8px 15px', marginBottom: '12px', color: 'darkblue', cursor: 'pointer' };
14
+ export function getWebPartHelpElementFullImage(onClick) {
15
+ const WebPartHelpElement = React.createElement(PivotItem, { headerText: 'Background' },
16
+ React.createElement("div", { className: 'fps-pph-content' },
17
+ React.createElement("div", { className: 'fps-pph-topic' }, "Full Page Image url"),
18
+ React.createElement("div", null, "If you want a single image as the page background, paste full link to image here"),
19
+ React.createElement("div", null, "When you scroll, the page scrolls but image is fixed."),
20
+ React.createElement("div", { className: 'fps-pph-topic' }, "Image Overlay"),
21
+ React.createElement("div", null, "Adjust Opacity greater than 0 in order to make background image darker or lighter."),
22
+ React.createElement("div", null, "Then select overlay color."),
23
+ React.createElement("div", { className: 'fps-pph-topic' }, "CSS Image Filter"),
24
+ React.createElement("div", null, "Allows you to apply a filter to your background image like blue or grayscale."),
25
+ React.createElement("div", null,
26
+ React.createElement("a", { href: `https://www.w3schools.com/cssref/playdemo.php?filename=playcss_filter&preval=blur(5px)` }, "See image filter examples here"),
27
+ "."),
28
+ React.createElement("div", null,
29
+ "Note you can combine filters to such as doing this: ",
30
+ React.createElement("b", null, "blur(5px) sepia(100%)"),
31
+ "."),
32
+ React.createElement("div", { className: 'fps-pph-topic' }, "Force default text color white"),
33
+ React.createElement("div", null,
34
+ React.createElement("b", null, "Toggle on"),
35
+ " if you are using a ",
36
+ React.createElement("b", null, "dark color full page image"),
37
+ "."),
38
+ React.createElement("div", null,
39
+ "Makes certain ",
40
+ React.createElement("b", null, "web backgrounds transparent with white text")),
41
+ React.createElement("div", null,
42
+ React.createElement("mark", null, "Text color may also be white while Editing the page when background image is not visible")),
43
+ React.createElement("div", { className: 'fps-pph-topic' }, "White text refresh label"),
44
+ React.createElement("div", null,
45
+ "If you force white text, the web part bar will have this icon: ",
46
+ React.createElement(Icon, { style: { fontSize: 'larger' }, iconName: "SyncStatusSolid" })),
47
+ React.createElement("div", null, "You can add text to left of that icon you want to tell people what it is."),
48
+ React.createElement("div", null,
49
+ "Note that the message should be very short and may crash into a longer web part title to ",
50
+ `it's`,
51
+ " left."),
52
+ React.createElement("div", { className: 'fps-pph-topic' }, "Image Fit"),
53
+ React.createElement("div", null, "Unfortunately the Background image will not fill entire page in all screen sizes."),
54
+ React.createElement("div", null, "We recommend you test the page by stretching to different sizes from wide-screen monitors to phone sizes in portrait mode."),
55
+ React.createElement("div", null, "Sometimes you may see white bars on the top-bottom or side."),
56
+ React.createElement("div", null, "If this causes an issue, you can try changing this setting, then save the page and completely refresh."),
57
+ React.createElement("div", null, "To temporarily test each layout, click on these links which will open this page in new windows."),
58
+ React.createElement("div", null,
59
+ PageFitOriginal,
60
+ PageFitLayout2),
61
+ React.createElement("div", null,
62
+ React.createElement("mark", null, "NOTE:"),
63
+ " If you are forcing white text, white bars may prevent you from finding the edit button."),
64
+ React.createElement("div", null,
65
+ "The work-around is to add this paramter to your page url and reload:",
66
+ SetNormalColor,
67
+ " OR",
68
+ SetWhiteColor)));
69
+ return WebPartHelpElement;
70
+ }
71
+ //# sourceMappingURL=FullImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullImage.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropHelp/FullImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,2CAA2C;AAC3C,OAAO,EAAG,SAAS,GAAG,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGrG;;;;;GAKG;AACH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,UAAU,GAAwB,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAEnI,MAAM,UAAU,8BAA8B,CAAG,OAA+B;IAE9E,MAAM,kBAAkB,GAAG,oBAAC,SAAS,IAAC,UAAU,EAAG,YAAY;QAC7D,6BAAK,SAAS,EAAG,iBAAiB;YAEhC,6BAAK,SAAS,EAAG,eAAe,0BAA4B;YAC5D,oHAA2F;YAC3F,yFAAgE;YAEhE,6BAAK,SAAS,EAAG,eAAe,oBAAsB;YACtD,sHAA6F;YAC7F,8DAAqC;YAErC,6BAAK,SAAS,EAAG,eAAe,uBAAyB;YACzD,iHAAwF;YACxF;gBAAK,2BAAG,IAAI,EAAG,wFAAwF,qCAAqC;oBAAO;YACnJ;;gBAA0D,uDAA4B;oBAAO;YAE7F,6BAAK,SAAS,EAAG,eAAe,qCAAuC;YACvE;gBAAK,2CAAgB;;gBAAoB,4DAAiC;oBAAO;YACjF;;gBAAmB,6EAAkD,CAAM;YAC3E;gBAAK,6HAAqG,CAAM;YAEhH,6BAAK,SAAS,EAAG,eAAe,+BAAiC;YACjE;;gBAAqE,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAC,iBAAiB,GAAE,CAAM;YAC5I,6GAAoF;YACpF;;gBAA+F,MAAM;yBAAa;YAElH,6BAAK,SAAS,EAAG,eAAe,gBAAkB;YAClD,qHAA4F;YAC5F,8JAAqI;YACrI,+FAAsE;YACtE,0IAAiH;YACjH,mIAA0G;YAC1G;gBACI,eAAe;gBACf,cAAc,CACZ;YACN;gBAAK,0CAAkB;2GAA8F;YACrH;;gBACI,cAAc;;gBACd,aAAa,CAAQ,CACrB,CACI,CAAC;IAEb,OAAO,kBAAkB,CAAC;AAE5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IPropertyPaneGroup } from '@microsoft/sp-property-pane';
2
+ /**
3
+ * FPSBanner3BasicGroup builds FPS Banner Basics Prop Pane Group: showBanner, bannerTitle, infoElementChoice, infoElementText,
4
+ * @param forceBanner
5
+ * @param modifyBannerTitle
6
+ * @param showBanner
7
+ * @param infoElementText
8
+ * @returns
9
+ */
10
+ export declare function FPSSlickBackgroundGroup(thisWPClass: any): IPropertyPaneGroup;
11
+ //# sourceMappingURL=FPSSlickBackgroundGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FPSSlickBackgroundGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAOH,kBAAkB,EAKnB,MAAM,6BAA6B,CAAC;AAQvC;;;;;;;GAOG;AAGH,wBAAgB,uBAAuB,CAAE,WAAW,EAAE,GAAG,GAAI,kBAAkB,CA0F9E"}
@@ -0,0 +1,78 @@
1
+ import { PropertyPaneTextField, PropertyPaneDropdown, PropertyPaneLabel,
2
+ // IPropertyPaneDropdownProps,
3
+ PropertyPaneToggle, PropertyPaneSlider,
4
+ // IPropertyPaneDropdownOption,
5
+ } from '@microsoft/sp-property-pane';
6
+ import { FullPageImageFitStrings, FullPageOverlayColors, } from '../IFPSPageBGWPProps';
7
+ const FPSSlickFullPageOverlayColorChoices = FullPageOverlayColors.map((key, idx) => { return { index: idx, key: key, text: key }; });
8
+ const FPSSlickFullPageImageFitChoices = FullPageImageFitStrings.map((key, idx) => { return { index: idx, key: key, text: key }; });
9
+ /**
10
+ * FPSBanner3BasicGroup builds FPS Banner Basics Prop Pane Group: showBanner, bannerTitle, infoElementChoice, infoElementText,
11
+ * @param forceBanner
12
+ * @param modifyBannerTitle
13
+ * @param showBanner
14
+ * @param infoElementText
15
+ * @returns
16
+ */
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
+ export function FPSSlickBackgroundGroup(thisWPClass) {
19
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
+ const thisProps = thisWPClass.properties;
21
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
+ const groupFields = [];
23
+ if (thisWPClass._allowFullPageBG !== true) {
24
+ groupFields.push(PropertyPaneLabel('nothing', {
25
+ text: 'This set of options is NOT available in webpart'
26
+ }));
27
+ }
28
+ else {
29
+ const { fullPageImage, fullPageOverlayOpacity } = thisProps;
30
+ const hasFullCanvasBG = fullPageImage ? true : false;
31
+ groupFields.push(PropertyPaneTextField(`fullPageImage`, {
32
+ label: 'Full Page Image url',
33
+ description: `Single picture spanning all sections`,
34
+ }));
35
+ groupFields.push(PropertyPaneSlider(`fullPageOverlayOpacity`, {
36
+ label: `Image Overlay Opacity - make Image lighter or darker`,
37
+ min: 0,
38
+ max: 1,
39
+ step: .1,
40
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
41
+ value: thisProps[`fullPageOverlayOpacity`],
42
+ }));
43
+ const hasOverlayOpacity = fullPageOverlayOpacity > 0 ? true : false;
44
+ groupFields.push(PropertyPaneDropdown('fullPageOverlayColor', {
45
+ label: 'Overlay color - When opacity > 0',
46
+ options: FPSSlickFullPageOverlayColorChoices,
47
+ disabled: hasOverlayOpacity === true ? false : true,
48
+ }));
49
+ groupFields.push(PropertyPaneTextField(`fullPageImageFilter`, {
50
+ label: 'CSS Image Filter - for Full Page Image',
51
+ description: `example: blur(5px) sepia(100%) - will both blur and colorize`,
52
+ disabled: hasFullCanvasBG === true ? false : true,
53
+ }));
54
+ // whiteRefreshTip
55
+ groupFields.push(PropertyPaneToggle('defaultWhiteText', {
56
+ label: `Force default text color to White`,
57
+ onText: `When fullPageImage is dark`,
58
+ offText: `Off`
59
+ }));
60
+ groupFields.push(PropertyPaneTextField(`whiteRefreshTip`, {
61
+ label: 'White text refresh label',
62
+ description: `Tip to refresh White Font colors like: Refresh White Text`,
63
+ disabled: thisProps.defaultWhiteText === true ? false : true,
64
+ }));
65
+ groupFields.push(PropertyPaneDropdown('fullPageImageFit', {
66
+ label: 'Image fit',
67
+ options: FPSSlickFullPageImageFitChoices,
68
+ disabled: hasFullCanvasBG === true ? false : true,
69
+ }));
70
+ }
71
+ const propGroup = {
72
+ groupName: `FPS Full Page Background Props`,
73
+ isCollapsed: true,
74
+ groupFields: groupFields
75
+ };
76
+ return propGroup;
77
+ }
78
+ //# sourceMappingURL=FPSSlickBackgroundGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FPSSlickBackgroundGroup.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FullPageBackGround/PropPane/FPSSlickBackgroundGroup.ts"],"names":[],"mappings":"AACA,OAAO,EACH,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB;AACjB,8BAA8B;AAC9B,kBAAkB,EAClB,kBAAkB;AAKlB,+BAA+B;EAChC,MAAM,6BAA6B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,GAAsB,MAAM,sBAAsB,CAAC;AAE1G,MAAM,mCAAmC,GAAiE,qBAAqB,CAAC,GAAG,CAAC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ACnC,SAAS,EAAE,gCAAgC;QAC3C,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,WAAW;KACzB,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IFPSPageBGWPProps } from "./IFPSPageBGWPProps";
2
+ export declare function addCanvasBGImageComponent(webPartProps: IFPSPageBGWPProps, updates: number): number;
3
+ //# sourceMappingURL=addCanvasBGImageComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addCanvasBGImageComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FullPageBackGround/addCanvasBGImageComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ9E,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAsHlG"}
@@ -0,0 +1,110 @@
1
+ import { check4This } from "@mikezimm/fps-pnp2/lib/services/sp/CheckSearch";
2
+ // require( './forceWhiteText.css' );
3
+ // require( './fullPageBackground.css' );
4
+ require('@mikezimm/fps-styles/dist/forceWhiteText.css');
5
+ require('@mikezimm/fps-styles/dist/fullPageBackground.css');
6
+ export function addCanvasBGImageComponent(webPartProps, updates) {
7
+ // Added due to https://github.com/mikezimm/Slick-Sections/issues/51
8
+ const defaultWhiteText = check4This(`defaultFontColor=default`) === true ? false : check4This(`defaultFontColor=white`) === true ? true : webPartProps.defaultWhiteText;
9
+ let fullPageImageFit = webPartProps.fullPageImageFit;
10
+ if (check4This(`fullPageFit=Original`) === true) {
11
+ fullPageImageFit = `Original`;
12
+ }
13
+ else if (check4This(`fullPageFit=Layout2`) === true) {
14
+ fullPageImageFit = `Layout2`;
15
+ }
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ let slickCanvasBG = Array.from(document.getElementsByClassName(`slickSectionCanvasBG`));
18
+ if (slickCanvasBG.length === 0)
19
+ slickCanvasBG = Array.from(document.getElementsByClassName(`slickSectionCanvasBG2`));
20
+ if (!webPartProps.fullPageImage) {
21
+ // if the fps canvas element exists already, just remove the visibleSlickSection className and return
22
+ if (slickCanvasBG.length > 0) {
23
+ slickCanvasBG[0].classList.remove(`visibleSlickSection`);
24
+ }
25
+ return updates;
26
+ }
27
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByClassName
28
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
+ const divsCanvas = Array.from(document.getElementsByClassName(`CanvasComponent`));
30
+ if (divsCanvas.length === 0) {
31
+ // If there are no CanvasComponent elements, then I don't have an element to prepend the background to
32
+ console.log(`FPS Slick Sections addPreCanvasComponent - NO CanvasComponent found`);
33
+ return updates;
34
+ }
35
+ const fullPageImageFilter = webPartProps.fullPageImageFilter ? `style= "filter:${webPartProps.fullPageImageFilter}"` : ``;
36
+ const canvasClass = fullPageImageFit === 'Layout2' ? `slickSectionCanvasBG2` : `slickSectionCanvasBG`;
37
+ const imgClass = fullPageImageFit === 'Layout2' ? `slickSectionCanvasBGImg2` : `slickSectionCanvasBGImg`;
38
+ // https://github.com/mikezimm/Slick-Sections/issues/40
39
+ const divHTML = `<div class="${canvasClass}">
40
+ <img class="${imgClass}" src="${webPartProps.fullPageImage}" ${fullPageImageFilter}>
41
+ <div class="${`slickSectionCanvasBGOverlay`}" style="
42
+ background: ${webPartProps.fullPageOverlayColor};
43
+ opacity: ${webPartProps.fullPageOverlayOpacity};
44
+ "></div>
45
+ </div>`;
46
+ if (slickCanvasBG.length > 0) {
47
+ // If slickCanvasBG already exists, add the visible class
48
+ slickCanvasBG[0].classList.add(`visibleSlickSection`);
49
+ // Then update the src
50
+ const img = slickCanvasBG[0].getElementsByClassName(imgClass);
51
+ if (img && img.src !== webPartProps.fullPageImage)
52
+ img.src = webPartProps.fullPageImage;
53
+ updates++;
54
+ }
55
+ else {
56
+ const tempDiv = document.createElement("div");
57
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement
58
+ divsCanvas[0].insertAdjacentElement("beforebegin", tempDiv);
59
+ tempDiv.outerHTML = divHTML;
60
+ tempDiv.classList.add(`visibleSlickSection`);
61
+ updates++;
62
+ }
63
+ // Only apply white to command bar if there is an image && you force white default
64
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
65
+ const cmdBar = Array.from(document.getElementsByClassName(`mainContent`));
66
+ if (cmdBar && cmdBar.length > 0) {
67
+ if (defaultWhiteText === true) {
68
+ cmdBar[0].classList.add(`forceWhiteTextCmdButton`);
69
+ }
70
+ else {
71
+ cmdBar[0].classList.remove(`forceWhiteTextCmdButton`);
72
+ }
73
+ }
74
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
75
+ const siteHeader = document.querySelector(`[data-automationid="SiteHeader"]`);
76
+ if (siteHeader) {
77
+ if (defaultWhiteText === true) {
78
+ siteHeader.classList.add(`forceWhiteTextSiteHeader`);
79
+ }
80
+ else {
81
+ siteHeader.classList.remove(`forceWhiteTextSiteHeader`);
82
+ }
83
+ }
84
+ // Added this for horizontal nav https://github.com/mikezimm/Slick-Sections/issues/53
85
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
86
+ const horizontalNav = Array.from(document.getElementsByClassName(`ms-HorizontalNav`));
87
+ if (horizontalNav && horizontalNav.length > 0) {
88
+ // Added targetIdx because first ms-HorizontalNav might be Hub Nav which does not have background
89
+ // Then also get parentElement so it can target both the HorizontalName AND actionsWrapper class
90
+ const targetIdx = horizontalNav.length - 1;
91
+ if (defaultWhiteText === true) {
92
+ horizontalNav[targetIdx].parentElement.classList.add(`forceWhiteTextSiteHeader`);
93
+ }
94
+ else {
95
+ horizontalNav[targetIdx].parentElement.classList.remove(`forceWhiteTextSiteHeader`);
96
+ }
97
+ }
98
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
99
+ const pageHeader = document.querySelector(`[data-automation-id="pageHeader"]`);
100
+ if (pageHeader) {
101
+ if (defaultWhiteText === true) {
102
+ pageHeader.classList.add(`forceWhiteTextPageHeader`);
103
+ }
104
+ else {
105
+ pageHeader.classList.remove(`forceWhiteTextPageHeader`);
106
+ }
107
+ }
108
+ return updates;
109
+ }
110
+ //# sourceMappingURL=addCanvasBGImageComponent.js.map