@mikezimm/fps-library-v2 1.0.21 → 1.0.22

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 (70) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.d.ts +18 -0
  3. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.d.ts.map +1 -0
  4. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js +205 -0
  5. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js.map +1 -0
  6. package/lib/banner/FPSWebPartClass/FPSBaseClass.d.ts +60 -0
  7. package/lib/banner/FPSWebPartClass/FPSBaseClass.d.ts.map +1 -0
  8. package/lib/banner/FPSWebPartClass/FPSBaseClass.js +75 -0
  9. package/lib/banner/FPSWebPartClass/FPSBaseClass.js.map +1 -0
  10. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass.d.ts +67 -0
  11. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass.d.ts.map +1 -0
  12. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass.js +2 -0
  13. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass.js.map +1 -0
  14. package/lib/banner/{oninit → FPSWebPartClass}/index.d.ts +0 -0
  15. package/lib/banner/FPSWebPartClass/index.d.ts.map +1 -0
  16. package/lib/banner/{oninit → FPSWebPartClass}/index.js +0 -0
  17. package/lib/banner/FPSWebPartClass/index.js.map +1 -0
  18. package/lib/banner/FPSWebPartClass/runOnPropChange.d.ts +3 -0
  19. package/lib/banner/FPSWebPartClass/runOnPropChange.d.ts.map +1 -0
  20. package/lib/banner/FPSWebPartClass/runOnPropChange.js +31 -0
  21. package/lib/banner/FPSWebPartClass/runOnPropChange.js.map +1 -0
  22. package/lib/banner/FPSWebPartClass/runSuperOnInit.d.ts +4 -0
  23. package/lib/banner/FPSWebPartClass/runSuperOnInit.d.ts.map +1 -0
  24. package/lib/banner/FPSWebPartClass/runSuperOnInit.js +50 -0
  25. package/lib/banner/FPSWebPartClass/runSuperOnInit.js.map +1 -0
  26. package/lib/banner/FPSWebPartClass/runWebPartRender.d.ts +4 -0
  27. package/lib/banner/FPSWebPartClass/runWebPartRender.d.ts.map +1 -0
  28. package/lib/banner/FPSWebPartClass/runWebPartRender.js +46 -0
  29. package/lib/banner/FPSWebPartClass/runWebPartRender.js.map +1 -0
  30. package/lib/banner/components/VisitorPanel/refreshPanel.d.ts +5 -0
  31. package/lib/banner/components/VisitorPanel/refreshPanel.d.ts.map +1 -0
  32. package/lib/banner/{render → components/VisitorPanel}/refreshPanel.js +2 -2
  33. package/lib/banner/components/VisitorPanel/refreshPanel.js.map +1 -0
  34. package/lib/banner/components/VisitorPanel/refreshPanelHTML.d.ts +5 -0
  35. package/lib/banner/components/VisitorPanel/refreshPanelHTML.d.ts.map +1 -0
  36. package/lib/banner/{render → components/VisitorPanel}/refreshPanelHTML.js +2 -2
  37. package/lib/banner/components/VisitorPanel/refreshPanelHTML.js.map +1 -0
  38. package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts +16 -0
  39. package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts.map +1 -0
  40. package/lib/banner/features/ImportExport/BuildExportPropsX.js +88 -0
  41. package/lib/banner/features/ImportExport/BuildExportPropsX.js.map +1 -0
  42. package/lib/banner/render/IMinFPSLegacyProps.d.ts +0 -6
  43. package/lib/banner/render/IMinFPSLegacyProps.d.ts.map +1 -1
  44. package/lib/banner/render/IMinFPSLegacyProps.js +9 -1
  45. package/lib/banner/render/IMinFPSLegacyProps.js.map +1 -1
  46. package/lib/common/interfaces/@msft/1.15.2/WebPartContext.d.ts +8 -4
  47. package/lib/common/interfaces/@msft/1.15.2/WebPartContext.d.ts.map +1 -1
  48. package/lib/common/interfaces/@msft/1.15.2/WebPartContext.js +3 -0
  49. package/lib/common/interfaces/@msft/1.15.2/WebPartContext.js.map +1 -1
  50. package/lib/logic/Users/FPSUser.d.ts +2 -2
  51. package/lib/logic/Users/FPSUser.d.ts.map +1 -1
  52. package/lib/logic/Users/FPSUser.js +3 -3
  53. package/lib/logic/Users/FPSUser.js.map +1 -1
  54. package/package.json +1 -1
  55. package/lib/banner/oninit/index.d.ts.map +0 -1
  56. package/lib/banner/oninit/index.js.map +0 -1
  57. package/lib/banner/render/BuildBannerPropsX.d.ts +0 -34
  58. package/lib/banner/render/BuildBannerPropsX.d.ts.map +0 -1
  59. package/lib/banner/render/BuildBannerPropsX.js +0 -234
  60. package/lib/banner/render/BuildBannerPropsX.js.map +0 -1
  61. package/lib/banner/render/IBuildBannerSettings.d.ts +0 -28
  62. package/lib/banner/render/IBuildBannerSettings.d.ts.map +0 -1
  63. package/lib/banner/render/IBuildBannerSettings.js +0 -6
  64. package/lib/banner/render/IBuildBannerSettings.js.map +0 -1
  65. package/lib/banner/render/refreshPanel.d.ts +0 -5
  66. package/lib/banner/render/refreshPanel.d.ts.map +0 -1
  67. package/lib/banner/render/refreshPanel.js.map +0 -1
  68. package/lib/banner/render/refreshPanelHTML.d.ts +0 -5
  69. package/lib/banner/render/refreshPanelHTML.d.ts.map +0 -1
  70. package/lib/banner/render/refreshPanelHTML.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -5,11 +5,15 @@ npm run build
5
5
  npm version major/minor/patch
6
6
  npm publish --access=public
7
7
 
8
- npm install @mikezimm/fps-library-v2@1.0.21
8
+ npm install @mikezimm/fps-library-v2@1.0.22
9
9
 
10
10
 
11
11
  # Changelog
12
12
 
13
+ ## 1.0.22 - 2022-Dec-14
14
+ - Add baseline files for updated IThisFPSWebPartClass, FPSBaseClass
15
+ - Add runFPSSuperOnInit, runFPSWebPartRender, runOnPropChange buildExportPropsX
16
+
13
17
  ## 1.0.21 - 2022-Dec-13
14
18
  - update easyPagesSources - add 'Article' css class and logic based on testing
15
19
 
@@ -0,0 +1,18 @@
1
+ import { ISpecialMessage } from "../components/SpecialBanner/interface";
2
+ import { IWebpartBannerProps } from "../mainReact/IWebpartBannerProps";
3
+ import { IThisFPSWebPartClass } from "./IThisFPSWebPartClass";
4
+ export interface IMainWPBannerSetupX {
5
+ main: IThisFPSWebPartClass;
6
+ exportProps: any;
7
+ strings: any;
8
+ wideToggle: boolean;
9
+ expandConsole: boolean;
10
+ SpecialMessage?: ISpecialMessage;
11
+ }
12
+ /**
13
+ * This function takes the main webpart class
14
+ * @param setup
15
+ * @returns
16
+ */
17
+ export declare function mainWebPartRenderBannerSetupX(setup: IMainWPBannerSetupX): IWebpartBannerProps;
18
+ //# sourceMappingURL=BuildBannerPropsX2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildBannerPropsX2.d.ts","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/BuildBannerPropsX2.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAQvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,WAAW,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,eAAe,CAAC;CAClC;AAED;;;;GAIG;AAEH,wBAAgB,6BAA6B,CAAE,KAAK,EAAE,mBAAmB,GAAK,mBAAmB,CAmOhG"}
@@ -0,0 +1,205 @@
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/Users";
6
+ import { getReactCSSFromString } from "../../logic/Strings/reactCSS";
7
+ import { visitorPanelInfo } from "../components/VisitorPanel/VisitorPanelComponent";
8
+ import { SPPermission } from '@microsoft/sp-page-context';
9
+ import { createEasyPagesSourceWPProps } from "../components/EasyPages/createEasyPagesSourceWPProps";
10
+ import { createEasyPagesExtraWPProps } from "../components/EasyPages/createEasyPagesExtraWPProps";
11
+ import { createEasyIconsWPProps } from "../../components/atoms/EasyIcons/createEasyIconsWPProps";
12
+ import { createKeySiteProps } from "../components/Gear/CreateKeySiteProps";
13
+ /**
14
+ * This function takes the main webpart class
15
+ * @param setup
16
+ * @returns
17
+ */
18
+ export function mainWebPartRenderBannerSetupX(setup) {
19
+ const { displayMode, _beAReader, _FPSUser, properties, _modifyBannerTitle, _forceBanner, _sitePresets, _disablePandoramic, } = setup.main;
20
+ const { pageContext, _pageLayoutType } = setup.main.context;
21
+ const renderAsReader = displayMode === DisplayMode.Read && _beAReader === true ? true : false;
22
+ let showTricks = false;
23
+ setup.main._trickyEmailsAll.map(getsTricks => {
24
+ if (pageContext.user && pageContext.user.loginName && pageContext.user.loginName.toLowerCase().indexOf(getsTricks) > -1) {
25
+ showTricks = true;
26
+ properties.showRepoLinks = true; //Always show these users repo links
27
+ }
28
+ });
29
+ properties.showBannerGear = verifyAudienceVsUser(_FPSUser, showTricks, properties.homeParentGearAudience, null, renderAsReader);
30
+ let errMessage = '';
31
+ let validDocsContacts = ''; //This may no longer be needed if links below are commented out.
32
+ if ((properties.documentationIsValid !== true && properties.documentationLinkUrl) //This means it failed the url ping test... throw error
33
+ || (properties.requireDocumentation === true && !properties.documentationLinkUrl)) { //This means docs are required but there isn't one provided
34
+ errMessage += ' Invalid Support Doc Link: ' + (properties.documentationLinkUrl ? properties.documentationLinkUrl : 'Empty. ');
35
+ validDocsContacts += 'DocLink,';
36
+ }
37
+ if (properties.requireContacts === true) {
38
+ if (!properties.supportContacts || properties.supportContacts.length < 1) {
39
+ errMessage += ' Need valid Support Contacts';
40
+ validDocsContacts += 'Contacts,';
41
+ }
42
+ }
43
+ const replacePanelWarning = `Anyone with lower permissions than '${properties.fullPanelAudience}' will ONLY see this content in panel`;
44
+ // Updated for SPA to get Title which is also the window.name property https://github.com/mikezimm/drilldown7/issues/243
45
+ const bannerTitle = _modifyBannerTitle === true && properties.bannerTitle && properties.bannerTitle.length > 0 ? properties.bannerTitle :
46
+ _pageLayoutType === 'SingleWebPartAppPageLayout' ? document.title : setup.main._repoLink.desc;
47
+ const bannerStyle = getReactCSSFromString('bannerStyle', properties.bannerStyle, baseBannerStyles);
48
+ const bannerCmdStyle = getReactCSSFromString('bannerCmdStyle', properties.bannerCmdStyle, baseBannerCmdStyles);
49
+ //Over-rides gear for certain users
50
+ const showRepoLinks = renderAsReader === true || properties.showRepoLinks === false ? false : true;
51
+ const isSiteAdmin = renderAsReader !== true && _FPSUser.isSiteAdmin === true ? true : false;
52
+ const hasCustomizePages = isSiteAdmin === true ? true :
53
+ verifyAudienceVsUser(_FPSUser, showTricks, properties.homeParentGearAudience, SPPermission.addAndCustomizePages, renderAsReader);
54
+ const homeParentGearAudience = isSiteAdmin === true ? true : verifyAudienceVsUser(_FPSUser, showTricks, properties.homeParentGearAudience, null, renderAsReader);
55
+ const showBannerGear = isSiteAdmin === true ? true : properties.showBannerGear === true && homeParentGearAudience === true ? true : false;
56
+ const showGoToHome = isSiteAdmin === true ? true : properties.showGoToHome === true && homeParentGearAudience === true ? true : false;
57
+ const showGoToParent = isSiteAdmin === true ? true : properties.showGoToParent === true && homeParentGearAudience === true ? true : false;
58
+ const showExport = isSiteAdmin === true ? true : properties.showExport === true && hasCustomizePages !== true ? false : true;
59
+ const enableExpandoramic = _disablePandoramic === true || properties.enableExpandoramic === false ? false :
60
+ verifyAudienceVsUser(_FPSUser, showTricks, properties.expandoAudience, null, renderAsReader);
61
+ //Always show full panel if you are SCA
62
+ const showFullPanel = isSiteAdmin === true ? true : verifyAudienceVsUser(_FPSUser, showTricks, properties.fullPanelAudience, SPPermission.editListItems, renderAsReader);
63
+ //Over-rides expand for certain users
64
+ // Changed expandoStyle from buildExpandoStyle function based on https://github.com/mikezimm/CoreFPS114/issues/6
65
+ // let expandobuildExpandoStyle = buildExpandoStyle( errMessage, properties, bbs.errorObjArray, bbs.expandoErrorObj );
66
+ const expandoStyleObject = getReactCSSFromString('expandoStyle', properties.expandoStyle, {});
67
+ const styleErrors = [];
68
+ if (bannerStyle.errMessage) {
69
+ styleErrors.push(bannerStyle.errMessage);
70
+ }
71
+ if (bannerCmdStyle.errMessage) {
72
+ styleErrors.push(bannerCmdStyle.errMessage);
73
+ }
74
+ if (expandoStyleObject.errMessage) {
75
+ styleErrors.push(expandoStyleObject.errMessage);
76
+ }
77
+ const styleErrorMessage = styleErrors.length > 0 ? `; ${styleErrors.join('; ')}` : '';
78
+ errMessage += styleErrorMessage;
79
+ const showBannerError = errMessage !== '' && errMessage !== null ? true : false;
80
+ //Always pass false for verifyAudienceVsUser 'beAUser' or it will hide the beAUser Icon.
81
+ const showBeAUserIcon = verifyAudienceVsUser(_FPSUser, showTricks, properties.beAUserAudience, SPPermission.addAndCustomizePages, false);
82
+ // let showBeAUserIcon: boolean = false;
83
+ // if ( ( properties.expandoAudience && properties.expandoAudience !== 'Everyone')
84
+ // || ( properties.homeParentGearAudience && properties.homeParentGearAudience !== 'Everyone' ) ) {
85
+ // showBeAUserIcon = true;
86
+ // }
87
+ let infoElement = 'More Information';
88
+ if (properties.infoElementChoice === 'Text') {
89
+ infoElement = properties.infoElementText;
90
+ }
91
+ else if (properties.infoElementChoice) {
92
+ infoElement = properties.infoElementChoice;
93
+ }
94
+ const startTime = new Date();
95
+ const refreshId = startTime.toISOString().replace('T', ' T'); // + ' ~ ' + startTime.toLocaleTimeString();
96
+ const bannerProps = {
97
+ webpartHistory: properties.webpartHistory,
98
+ easyPagesSourceProps: createEasyPagesSourceWPProps(properties, setup.main.context, setup.main._repoLink),
99
+ easyPagesExtraProps: createEasyPagesExtraWPProps(properties, showTricks),
100
+ EasyIconsObject: createEasyIconsWPProps(properties),
101
+ sitePresets: _sitePresets,
102
+ keySiteProps: createKeySiteProps(pageContext),
103
+ fpsPinMenu: {
104
+ defPinState: properties.defPinState ? properties.defPinState : 'disabled',
105
+ forcePinState: properties.forcePinState ? properties.forcePinState : true,
106
+ domElement: setup.main.context.domElement,
107
+ pageLayout: properties.pageLayout,
108
+ },
109
+ refreshId: refreshId,
110
+ FPSUser: _FPSUser,
111
+ exportProps: setup.exportProps,
112
+ context: setup.main.context,
113
+ displayMode: displayMode,
114
+ WebPartHelpElements: [],
115
+ SpecialMessage: setup.SpecialMessage,
116
+ panelTitle: showBannerError === true ? errMessage : bannerTitle,
117
+ infoElement: infoElement,
118
+ // changed null to undefined: https://github.com/mikezimm/ALVFinMan/issues/171
119
+ contentPages: {
120
+ aboutTable: undefined,
121
+ advancedContent: undefined,
122
+ basicsContent: undefined,
123
+ errorsContent: undefined,
124
+ futureContent: undefined,
125
+ getRandomTip: undefined,
126
+ gettingStartedContent: undefined,
127
+ tricksTable: undefined,
128
+ webParTips: [],
129
+ whyContent: undefined,
130
+ },
131
+ bannerWidth: (setup.main.domElement.clientWidth - (displayMode === DisplayMode.Edit ? 250 : 0)),
132
+ showBanner: showTricks === true || _forceBanner === true || properties.showBanner !== false ? true : false,
133
+ feedbackEmail: properties.feedbackEmail ? properties.feedbackEmail : '',
134
+ showTricks: showTricks,
135
+ showBannerGear: showBannerGear,
136
+ showGoToHome: showGoToHome,
137
+ showGoToParent: showGoToParent,
138
+ showRepoLinks: showRepoLinks,
139
+ showExport: showExport,
140
+ showFullPanel: showFullPanel,
141
+ replacePanelHTML: properties.replacePanelHTML,
142
+ bonusHTML1: null,
143
+ panelPerformance: setup.main._performance,
144
+ bonusHTML2: null,
145
+ replacePanelWarning: replacePanelWarning,
146
+ // onHomePage: anyContext._pageLayoutType === 'Home' ? true : false,
147
+ onHomePage: pageContext.legacyPageContext.isWebWelcomePage === true ? true : false,
148
+ hoverEffect: properties.bannerHoverEffect === false ? false : true,
149
+ //This was my modified attempt that didn't work
150
+ title: showBannerError === true ? errMessage : bannerTitle,
151
+ bannerReactCSS: showBannerError === true ? { background: "yellow", color: "red", } : bannerStyle.parsed,
152
+ bannerCmdReactCSS: bannerCmdStyle.parsed,
153
+ gitHubRepo: setup.main._repoLink,
154
+ farElements: [],
155
+ nearElements: [],
156
+ earyAccess: false,
157
+ wideToggle: setup.wideToggle,
158
+ //2022-02-17: Added these for expandoramic mode
159
+ domElement: setup.main.context.domElement,
160
+ pageLayout: properties.pageLayout,
161
+ expandoProps: {
162
+ enableExpandoramic: enableExpandoramic,
163
+ expandoDefault: properties.expandoDefault,
164
+ expandoStyle: expandoStyleObject.parsed,
165
+ expandAlert: false,
166
+ expandConsole: setup.expandConsole,
167
+ expandoPadding: properties.expandoPadding,
168
+ expandoAudience: properties.expandoAudience,
169
+ //2022-02-17: END additions for expandoramic mode
170
+ },
171
+ beAUser: renderAsReader,
172
+ showBeAUserIcon: showBeAUserIcon,
173
+ beAUserFunction: null,
174
+ };
175
+ //close #129: This makes the maxWidth added in fps options apply to banner as well.
176
+ // if ( properties.fpsContainerMaxWidth && properties.fpsContainerMaxWidth.length > 0 && bannerProps.bannerReactCSS ) {
177
+ // bannerProps.bannerReactCSS.maxWidth = properties.fpsContainerMaxWidth;
178
+ // }
179
+ // 2022-12-12: VERIFY THIS IS NEEDED, it's in buildBannerPropsv1 AND WebPartRenderBannerV2.ts
180
+ if (properties.allSectionMaxWidthEnable && properties.allSectionMaxWidth > 0 && bannerProps.bannerReactCSS) {
181
+ bannerProps.bannerReactCSS.maxWidth = properties.allSectionMaxWidth;
182
+ }
183
+ if (properties.defPinState === 'disabled') {
184
+ }
185
+ else {
186
+ if (!properties.bannerTitle || properties.bannerTitle === '') {
187
+ if (properties.defPinState !== 'normal' && setup.strings.bannerTitle) {
188
+ bannerProps.title = setup.strings.bannerTitle;
189
+ }
190
+ else {
191
+ bannerProps.title = 'hide';
192
+ }
193
+ }
194
+ //Add this to force a title because when pinned by default, users may not know it's there.
195
+ if (properties.forcePinState === true && properties.defPinState !== 'normal') {
196
+ if (!properties.bannerTitle || properties.bannerTitle.length < 3) {
197
+ bannerProps.title = 'Page Contents';
198
+ }
199
+ }
200
+ }
201
+ properties.replacePanelHTML = visitorPanelInfo(properties, setup.main._repoLink, '', '', createPerformanceTableVisitor(setup.main._performance, setup.main._keysToShow));
202
+ bannerProps.replacePanelHTML = properties.replacePanelHTML;
203
+ return bannerProps;
204
+ }
205
+ //# sourceMappingURL=BuildBannerPropsX2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildBannerPropsX2.js","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/BuildBannerPropsX2.ts"],"names":[],"mappings":"AACA,4DAA4D;AAE5D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,WAAW,GAAG,MAAM,kDAAkD,CAAC;AAChF,OAAO,EAAE,6BAA6B,GAAG,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAG,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAqB,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAa3E;;;;GAIG;AAEH,MAAM,UAAU,6BAA6B,CAAE,KAA0B;IAEvE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,GAAG,GAAG,KAAK,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CAAC,IAAI,WAAW,CAAC,cAAc,EAAG;QAC5G,WAAW,CAAC,cAAc,CAAC,QAAQ,GAAG,UAAU,CAAC,kBAAkB,CAAC;KACrE;IAEL,IAAK,UAAU,CAAC,WAAW,KAAK,UAAU,EAAI;KAE7C;SAAM;QACL,IAAK,CAAC,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,KAAK,EAAE,EAAG;YAC9D,IAAK,UAAU,CAAC,WAAW,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,EAAG;gBACtE,WAAW,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAE;aAChD;iBAAM;gBACL,WAAW,CAAC,KAAK,GAAG,MAAM,CAAE;aAC7B;SACF;QAED,0FAA0F;QAC1F,IAAK,UAAU,CAAC,aAAa,KAAK,IAAI,IAAI,UAAU,CAAC,WAAW,KAAK,QAAQ,EAAG;YAC9E,IAAK,CAAC,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAG;gBAAE,WAAW,CAAC,KAAK,GAAG,eAAe,CAAE;aAAE;SAC9G;KACF;IAED,UAAU,CAAC,gBAAgB,GAAG,gBAAgB,CAAE,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,6BAA6B,CAAE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAE,CAAE,CAAC;IAE7K,WAAW,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAE3D,OAAO,WAAW,CAAC;AAErB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
2
+ import { ISitePreConfigProps } from '../../common/PropPaneHelp/IPreConfig';
3
+ import { IRepoLinks } from '../../components/atoms/Links/CreateLinks';
4
+ import { ILoadPerformance, ILoadPerformanceOps } from '../../components/molecules/Performance/IPerformance';
5
+ import { IFPSUser } from '../../logic/Users/IUserInterfaces';
6
+ /**
7
+ * The purpose of this class is to easily add all required setup to use the banner.
8
+ * Then minimal set up is required in each webpart project
9
+ *
10
+ *
11
+ * WARNING: THIS SHOULD MATCH THE Interface in IThisFPSWebPartClass
12
+ * It is intended to mirror the class and is used for type checking in various functions including:
13
+ * - BuildBannerProps
14
+ * - runOnPropChange
15
+ * - runOnSuperOnInit
16
+ * - runWebPartRender
17
+ *
18
+ */
19
+ export declare abstract class FPSBaseClass<TProperties> extends BaseClientSideWebPart<TProperties> {
20
+ /**
21
+ * These are intended to be set or adjusted right at the beginning of the main webpart class
22
+ */
23
+ protected _repoLink: IRepoLinks;
24
+ protected _exportIgnoreProps: string[];
25
+ protected _importBlockProps: string[];
26
+ protected _trickyApp: string;
27
+ protected _trickyEmailsWP: string[];
28
+ /**
29
+ * These are preset but likely to be adjusted in each webpart as needed
30
+ */
31
+ protected _disablePinMe: boolean;
32
+ protected _disablePandoramic: boolean;
33
+ /**
34
+ * These are preset and NOT Likely to need adjustments
35
+ */
36
+ protected _forceBanner: boolean;
37
+ protected _modifyBannerTitle: boolean;
38
+ protected _modifyBannerStyle: boolean;
39
+ protected _keysToShow: ILoadPerformanceOps[];
40
+ /**
41
+ * These are updated later in the code
42
+ */
43
+ _performance: ILoadPerformance;
44
+ _sitePresets: ISitePreConfigProps;
45
+ _FPSUser: IFPSUser;
46
+ /**
47
+ * These are preset and should be managed by the code... do not change in main webpart class
48
+ */
49
+ protected _wpInstanceID: string;
50
+ protected _exitPropPaneChanged: boolean;
51
+ protected _importErrorMessage: string;
52
+ protected _trickyEmailsALL: string[];
53
+ protected _urlParameters: any;
54
+ _beAReader: boolean;
55
+ /**
56
+ * These are functions used in the class
57
+ */
58
+ protected _beAUserFunction(): void;
59
+ }
60
+ //# sourceMappingURL=FPSBaseClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FPSBaseClass.d.ts","sourceRoot":"","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3C,SAAS,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAG1C,SAAS,CAAC,cAAc,EAAE,GAAG,CAAM;IAG5B,UAAU,EAAE,OAAO,CAAS;IAGnC;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAWnC"}
@@ -0,0 +1,75 @@
1
+ import { DisplayMode } from '@microsoft/sp-core-library';
2
+ import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
3
+ import { webpartInstance } from '../features/FPSDOM/FPSDocument';
4
+ /**
5
+ * The purpose of this class is to easily add all required setup to use the banner.
6
+ * Then minimal set up is required in each webpart project
7
+ *
8
+ *
9
+ * WARNING: THIS SHOULD MATCH THE Interface in IThisFPSWebPartClass
10
+ * It is intended to mirror the class and is used for type checking in various functions including:
11
+ * - BuildBannerProps
12
+ * - runOnPropChange
13
+ * - runOnSuperOnInit
14
+ * - runWebPartRender
15
+ *
16
+ */
17
+ export class FPSBaseClass extends BaseClientSideWebPart {
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * These are intended to be set or adjusted right at the beginning of the main webpart class
22
+ */
23
+ this._repoLink = null; //Set as any but will get created in FPSSuperOnOnit
24
+ this._exportIgnoreProps = [];
25
+ this._importBlockProps = [];
26
+ this._trickyApp = 'FPS UPDATE FPSBaseClass';
27
+ this._trickyEmailsWP = []; // These are emails that get tricky functionality for this specific web part
28
+ /**
29
+ * These are preset but likely to be adjusted in each webpart as needed
30
+ */
31
+ this._disablePinMe = false;
32
+ this._disablePandoramic = false;
33
+ /**
34
+ * These are preset and NOT Likely to need adjustments
35
+ */
36
+ this._forceBanner = true;
37
+ this._modifyBannerTitle = true;
38
+ this._modifyBannerStyle = true;
39
+ this._keysToShow = [];
40
+ /**
41
+ * These are updated later in the code
42
+ */
43
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
+ this._performance = null; //Set as any but will get created in FPSSuperOnOnit
45
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
+ this._sitePresets = null; //Set as any but will get created in FPSSuperOnOnit
47
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
+ this._FPSUser = null; //Set as any but will get created in FPSSuperOnOnit
49
+ /**
50
+ * These are preset and should be managed by the code... do not change in main webpart class
51
+ */
52
+ this._wpInstanceID = webpartInstance(this._trickyApp);
53
+ this._exitPropPaneChanged = false;
54
+ this._importErrorMessage = '';
55
+ this._trickyEmailsALL = []; // These are emails that get tricky functionality for this specific web part
56
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
57
+ this._urlParameters = {};
58
+ //2022-04-07: Intent of this is a one-time per instance to 'become a reader' level user. aka, hide banner buttons that reader won't see
59
+ this._beAReader = false;
60
+ }
61
+ /**
62
+ * These are functions used in the class
63
+ */
64
+ _beAUserFunction() {
65
+ console.log('beAUserFunction:');
66
+ if (this.displayMode === DisplayMode.Edit) {
67
+ alert("'Be a regular user' mode is only available while viewing the page. \n\nOnce you are out of Edit mode, please refresh the page (CTRL-F5) to reload the web part.");
68
+ }
69
+ else {
70
+ this._beAReader = this._beAReader === true ? false : true;
71
+ this.render();
72
+ }
73
+ }
74
+ }
75
+ //# sourceMappingURL=FPSBaseClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FPSBaseClass.js","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/FPSBaseClass.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAgB,YAA0B,SAAQ,qBAAkC;IAA1F;;QAEE;;WAEG;QACO,cAAS,GAAe,IAAW,CAAC,CAAC,mDAAmD;QACxF,uBAAkB,GAAa,EAAE,CAAC;QAClC,sBAAiB,GAAa,EAAE,CAAC;QACjC,eAAU,GAAG,yBAAyB,CAAC;QACvC,oBAAe,GAAa,EAAE,CAAC,CAAC,4EAA4E;QAEtH;;WAEG;QACO,kBAAa,GAAY,KAAK,CAAC;QAC/B,uBAAkB,GAAY,KAAK,CAAC;QAE9C;;WAEG;QACO,iBAAY,GAAY,IAAI,CAAC;QAC7B,uBAAkB,GAAY,IAAI,CAAC;QACnC,uBAAkB,GAAY,IAAI,CAAC;QACnC,gBAAW,GAA0B,EAAE,CAAC;QAElD;;WAEG;QAEH,8DAA8D;QACvD,iBAAY,GAAqB,IAAW,CAAC,CAAC,mDAAmD;QAExG,8DAA8D;QACvD,iBAAY,GAAwB,IAAW,CAAC,CAAC,mDAAmD;QAE3G,8DAA8D;QACvD,aAAQ,GAAa,IAAW,CAAC,CAAC,mDAAmD;QAG5F;;WAEG;QACO,kBAAa,GAAW,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACzD,yBAAoB,GAAY,KAAK,CAAC;QACtC,wBAAmB,GAAW,EAAE,CAAC;QACjC,qBAAgB,GAAa,EAAE,CAAC,CAAC,4EAA4E;QAEvH,8DAA8D;QACpD,mBAAc,GAAQ,EAAE,CAAC;QAEnC,yIAAyI;QAClI,eAAU,GAAY,KAAK,CAAC;IAiBrC,CAAC;IAdC;;OAEG;IACO,gBAAgB;QACxB,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAChC,IAAI,IAAI,CAAC,WAAW,KAAK,WAAW,CAAC,IAAI,EAAE;YACzC,KAAK,CAAC,kKAAkK,CAAC,CAAC;SAE3K;aAAM;YACL,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YAC1D,IAAI,CAAC,MAAM,EAAE,CAAC;SACf;IACH,CAAC;CAEF"}
@@ -0,0 +1,67 @@
1
+ import { DisplayMode } from '@microsoft/sp-core-library';
2
+ import { WebPartContextCopy_15_2 } from '../../common/interfaces/indexes';
3
+ import { ISitePreConfigProps } from '../../common/PropPaneHelp/IPreConfig';
4
+ import { IRepoLinks } from '../../components/atoms/Links/CreateLinks';
5
+ import { ILoadPerformance, ILoadPerformanceOps } from '../../components/molecules/Performance/IPerformance';
6
+ import { IFPSUser } from '../../logic/Users/IUserInterfaces';
7
+ import { IMinWPBannerProps } from '../interfaces/MinWP/IMinWPBannerProps';
8
+ /**
9
+ *
10
+ * WARNING: THIS SHOULD MATCH THE CLASS IN FPSBaseClass
11
+ * It is intended to mirror the class and is used for type checking in various functions including:
12
+ * - BuildBannerProps
13
+ * - runOnPropChange
14
+ * - runOnSuperOnInit
15
+ * - runWebPartRender
16
+ *
17
+ */
18
+ export interface IThisFPSWebPartClass {
19
+ /**
20
+ * These are intended to be set or adjusted right at the beginning of the main webpart class
21
+ */
22
+ _repoLink: IRepoLinks;
23
+ _exportIgnoreProps: string[];
24
+ _importBlockProps: string[];
25
+ _trickyApp: string;
26
+ _trickyEmailsWP: string[];
27
+ /**
28
+ * These are preset but likely to be adjusted in each webpart as needed
29
+ */
30
+ _disablePinMe: boolean;
31
+ _disablePandoramic: boolean;
32
+ /**
33
+ * These are preset and NOT Likely to need adjustments
34
+ */
35
+ _forceBanner: boolean;
36
+ _modifyBannerTitle: boolean;
37
+ _modifyBannerStyle: boolean;
38
+ _keysToShow: ILoadPerformanceOps[];
39
+ /**
40
+ * These are updated later in the code
41
+ */
42
+ _performance: ILoadPerformance;
43
+ _sitePresets: ISitePreConfigProps;
44
+ _FPSUser: IFPSUser;
45
+ /**
46
+ * These are preset and should be managed by the code... do not change in main webpart class
47
+ */
48
+ _wpInstanceID: string;
49
+ _exitPropPaneChanged: boolean;
50
+ _importErrorMessage: string;
51
+ _trickyEmailsAll: string[];
52
+ _urlParameters: any;
53
+ _beAReader: boolean;
54
+ /**
55
+ * These are functions used in the class
56
+ */
57
+ _beAUserFunction(): void;
58
+ /**
59
+ * These are here JUST FOR INTERFACE but come from SharePoint class
60
+ */
61
+ displayMode: DisplayMode;
62
+ context: WebPartContextCopy_15_2;
63
+ domElement: HTMLElement;
64
+ properties: IMinWPBannerProps;
65
+ onPropertyPaneConfigurationStart: any;
66
+ }
67
+ //# sourceMappingURL=IThisFPSWebPartClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IThisFPSWebPartClass.d.ts","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/IThisFPSWebPartClass.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB;IAEnC;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;IACtB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAEnC;;OAEG;IACH,YAAY,EAAE,gBAAgB,CAAC;IAC/B,YAAY,EAAE,mBAAmB,CAAC;IAClC,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAE3B,cAAc,EAAE,GAAG,CAAC;IAEpB,UAAU,EAAE,OAAO,CAAC;IAGpB;;OAEG;IAEH,gBAAgB,IAAI,IAAI,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,uBAAuB,CAAC;IACjC,UAAU,EAAE,WAAW,CAAC;IACxB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gCAAgC,EAAE,GAAG,CAAC;CAUvC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IThisFPSWebPartClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IThisFPSWebPartClass.js","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/IThisFPSWebPartClass.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/index.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,qDAAqD;AACrD,2DAA2D;AAE3D,oBAAoB"}
@@ -0,0 +1,3 @@
1
+ import { IThisFPSWebPartClass } from "./IThisFPSWebPartClass";
2
+ export declare function onFPSPropPaneCHanged(thisWPClass: IThisFPSWebPartClass, propertyPath: string, oldValue: any, newValue: any): Promise<void>;
3
+ //# sourceMappingURL=runOnPropChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runOnPropChange.d.ts","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/runOnPropChange.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,wBAAsB,oBAAoB,CAAG,WAAW,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,GAAK,OAAO,CAAC,IAAI,CAAC,CAwCnJ"}
@@ -0,0 +1,31 @@
1
+ import { validateDocumentationUrl } from "../../components/atoms/Links/ValidateLinks";
2
+ import { updateFpsImportProps } from "../features/ImportExport/ImportFunctions";
3
+ import { refreshBannerStylesOnPropChange, updateBannerThemeStyles } from "../features/PageStyle/bannerThemes";
4
+ import { updateWebpartHistoryV2 } from "../features/WebPartHistory/Functions";
5
+ export async function onFPSPropPaneCHanged(thisWPClass, propertyPath, oldValue, newValue) {
6
+ try {
7
+ await validateDocumentationUrl(thisWPClass.properties, propertyPath, newValue);
8
+ }
9
+ catch (e) {
10
+ alert('unable to validateDocumentationUrl');
11
+ }
12
+ thisWPClass.properties.webpartHistory = updateWebpartHistoryV2(thisWPClass.properties.webpartHistory, propertyPath, newValue, thisWPClass.context.pageContext.user.displayName, [], []);
13
+ if (propertyPath === 'fpsImportProps') {
14
+ thisWPClass._importErrorMessage = updateFpsImportProps(thisWPClass.properties, thisWPClass._importBlockProps, propertyPath, newValue, thisWPClass.context.propertyPane.refresh, thisWPClass.onPropertyPaneConfigurationStart, thisWPClass._exitPropPaneChanged);
15
+ }
16
+ else if (propertyPath === 'bannerStyle' || propertyPath === 'bannerCmdStyle') {
17
+ refreshBannerStylesOnPropChange(thisWPClass.properties, propertyPath, newValue, thisWPClass.context.propertyPane.refresh);
18
+ }
19
+ else if (propertyPath === 'bannerStyleChoice') {
20
+ // bannerThemes, bannerThemeKeys, makeCSSPropPaneString
21
+ updateBannerThemeStyles(thisWPClass.properties, newValue, true, thisWPClass.properties.defPinState, thisWPClass._sitePresets.forces);
22
+ if (newValue === 'custom' || newValue === 'lock') {
23
+ //Do nothing for these cases.
24
+ }
25
+ else {
26
+ //Reset main web part styles to defaults
27
+ }
28
+ }
29
+ console.log('onFPSPropPaneCHanged applied these changes = Path, old, new: ', propertyPath, oldValue, newValue);
30
+ }
31
+ //# sourceMappingURL=runOnPropChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runOnPropChange.js","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/runOnPropChange.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC9G,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAG9E,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAG,WAAiC,EAAE,YAAoB,EAAE,QAAa,EAAE,QAAa;IAEhI,IAAI;QACF,MAAM,wBAAwB,CAAG,WAAW,CAAC,UAAU,EAAE,YAAY,EAAG,QAAQ,CAAE,CAAC;KAEpF;IAAC,OAAM,CAAC,EAAE;QACT,KAAK,CAAC,oCAAoC,CAAE,CAAC;KAC9C;IAED,WAAW,CAAC,UAAU,CAAC,cAAc,GAAG,sBAAsB,CAAE,WAAW,CAAC,UAAU,CAAC,cAAc,EAAG,YAAY,EAAG,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,CAAE,CAAC;IAE5L,IAAK,YAAY,KAAK,gBAAgB,EAAG;QAEvC,WAAW,CAAC,mBAAmB,GAAG,oBAAoB,CAAE,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EACnI,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EACxC,WAAW,CAAC,gCAAgC,EAC5C,WAAW,CAAC,oBAAoB,CACjC,CAAC;KAEF;SAAM,IAAK,YAAY,KAAK,aAAa,IAAI,YAAY,KAAK,gBAAgB,EAAI;QAElF,+BAA+B,CAAE,WAAW,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAE,CAAC;KAE7H;SAAM,IAAI,YAAY,KAAK,mBAAmB,EAAG;QAChD,uDAAuD;QAEvD,uBAAuB,CAAE,WAAW,CAAC,UAAU,EAAG,QAAQ,EAAE,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC,MAAM,CAAE,CAAC;QAExI,IAAK,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,MAAM,EAAG;YAClD,6BAA6B;SAE9B;aAAM;YACL,wCAAwC;SAEzC;KAEF;IAED,OAAO,CAAC,GAAG,CAAC,+DAA+D,EAAG,YAAY,EAAE,QAAQ,EAAE,QAAQ,CAAE,CAAC;AAEnH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IAllPreConfigSettings } from '../../common/PropPaneHelp/IPreConfig';
2
+ import { IThisFPSWebPartClass } from './IThisFPSWebPartClass';
3
+ export declare function runFPSSuperOnInit(thisWPClass: IThisFPSWebPartClass, PreConfiguredProps: IAllPreConfigSettings, SPPermission: any): void;
4
+ //# sourceMappingURL=runSuperOnInit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runSuperOnInit.d.ts","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/runSuperOnInit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAQ7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,wBAAgB,iBAAiB,CAAE,WAAW,EAAE,oBAAoB,EAAE,kBAAkB,EAAG,qBAAqB,EAAE,YAAY,EAAE,GAAG,GAAI,IAAI,CAmD1I"}
@@ -0,0 +1,50 @@
1
+ import { applyPresetCollectionDefaults } from '../../common/PropPaneHelp/ApplyPresets';
2
+ import { trickyEmails } from '../../components/atoms/Links/LinksRepos';
3
+ import { createBasePerformanceInit, startPerformOp, updatePerformanceEnd } from '../../components/indexes';
4
+ import { getFPSUser } from '../../logic/indexes';
5
+ import { expandoOnInit } from '../features/Expando/oninit';
6
+ import { updateBannerThemeStyles } from '../features/PageStyle/bannerThemes';
7
+ import { renderCustomStyles } from '../features/PageStyle/renderCustStyles';
8
+ import { getWebPartHistoryOnInit } from '../features/WebPartHistory/OnInit';
9
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ export function runFPSSuperOnInit(thisWPClass, PreConfiguredProps, SPPermission) {
11
+ /**
12
+ * NOTE FROM TESTING, Only deconstruct things that do NOT change.
13
+ * If I deconstructed _performance, _sitePresets, _FPSUser, then in main web part it would not return the actual values back.
14
+ */
15
+ // let { _performance, _sitePresets, _FPSUser, } = thisWPClass;
16
+ const { displayMode, context, properties, domElement, _wpInstanceID, _trickyApp, } = thisWPClass;
17
+ /***
18
+ * .d88b. d8b db d888888b d8b db d888888b d888888b d8888b. db db .d8b. .d8888. d88888b .d888b.
19
+ * .8P Y8. 888o 88 `88' 888o 88 `88' `~~88~~' 88 `8D 88 88 d8' `8b 88' YP 88' VP `8D
20
+ * 88 88 88V8o 88 88 88V8o 88 88 88 88oodD' 88ooo88 88ooo88 `8bo. 88ooooo odD'
21
+ * 88 88 88 V8o88 88 88 V8o88 88 88 88~~~ 88~~~88 88~~~88 `Y8b. 88~~~~~ .88'
22
+ * `8b d8' 88 V888 .88. 88 V888 .88. 88 88 88 88 88 88 db 8D 88. j88.
23
+ * `Y88P' VP V8P Y888888P VP V8P Y888888P YP 88 YP YP YP YP `8888Y' Y88888P 888888D
24
+ *
25
+ *
26
+ */
27
+ // DEFAULTS SECTION: Performance <<< ================================================================
28
+ thisWPClass._performance = createBasePerformanceInit(displayMode, false);
29
+ thisWPClass._performance.ops.superOnInit = startPerformOp('superOnInit', displayMode);
30
+ thisWPClass._trickyEmailsAll = [...trickyEmails, ...thisWPClass._trickyEmailsWP];
31
+ //NEED TO APPLY THIS HERE as well as follow-up in render for it to not visibly change
32
+ thisWPClass._sitePresets = applyPresetCollectionDefaults(thisWPClass._sitePresets, PreConfiguredProps, thisWPClass.properties, thisWPClass.context.pageContext.web.serverRelativeUrl);
33
+ //This indicates if its SPA, Teams etc.... always keep.
34
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
35
+ const pageLayout = context['_pageLayoutType'] ? context['_pageLayoutType'] : context['_pageLayoutType'];
36
+ thisWPClass.properties.pageLayout = pageLayout;
37
+ // _urlParameters = getUrlVars();
38
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
+ thisWPClass._FPSUser = getFPSUser(context, thisWPClass._trickyEmailsAll, _trickyApp, SPPermission);
40
+ console.log('FPSUser: ', thisWPClass._FPSUser);
41
+ expandoOnInit(properties, context.domElement, displayMode);
42
+ const bannerStyleChoice = properties.bannerStyleChoice ? properties.bannerStyleChoice : 'corpDark1';
43
+ updateBannerThemeStyles(properties, bannerStyleChoice, true, properties.defPinState, thisWPClass._sitePresets.forces);
44
+ thisWPClass.properties.webpartHistory = getWebPartHistoryOnInit(context.pageContext.user.displayName, properties.webpartHistory);
45
+ renderCustomStyles({ wpInstanceID: _wpInstanceID, domElement: domElement, wpProps: properties,
46
+ displayMode: displayMode,
47
+ doHeadings: false }); //doHeadings is currently only used in PageInfo so set to false.
48
+ thisWPClass._performance.ops.superOnInit = updatePerformanceEnd(thisWPClass._performance.ops.superOnInit, true, 666);
49
+ }
50
+ //# sourceMappingURL=runSuperOnInit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runSuperOnInit.js","sourceRoot":"","sources":["../../../src/banner/FPSWebPartClass/runSuperOnInit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MA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/C,iCAAiC;IAEjC,8DAA8D;IAC9D,WAAW,CAAC,QAAQ,GAAG,UAAU,CAAE,OAAc,EAAE,WAAW,CAAC,gBAAgB,EAAE,UAAU,EAAE,YAAY,CAAE,CAAE;IAC7G,OAAO,CAAC,GAAG,CAAE,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAE,CAAC;IAEjD,aAAa,CAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAE,CAAC;IAE7D,MAAM,iBAAiB,GAAW,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,WAAW,CAAC;IAC5G,uBAAuB,CAAE,UAAU,EAAE,iBAAiB,EAAE,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC,MAAM,CAAE,CAAC;IAExH,WAAW,CAAC,UAAU,CAAC,cAAc,GAAG,uBAAuB,CAAE,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,cAAc,CAAE,CAAC;IAEnI,kBAAkB,CAChB,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU;QACxE,WAAW,EAAE,WAAW;QACxB,UAAU,EAAE,KAAK,EAAE,CAAE,CAAC,CAAE,gEAAgE;IAE5F,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,GAAG,oBAAoB,CAAE,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,EAAC,GAAG,CAAE,CAAC;AAC1H,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IWebpartBannerProps } from '../mainReact/IWebpartBannerProps';
2
+ import { IThisFPSWebPartClass } from './IThisFPSWebPartClass';
3
+ export declare function runFPSWebPartRender(thisWPClass: IThisFPSWebPartClass, strings: any, WebPartAnalyticsChanges: any, WebPartPanelChanges: any, alreadyStartedPerformOp?: boolean): IWebpartBannerProps;
4
+ //# sourceMappingURL=runWebPartRender.d.ts.map