@mikezimm/fps-core-v7 1.0.7 → 1.0.8

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 (202) hide show
  1. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass1152.d.ts +1 -1
  2. package/lib/banner/FPSWebPartClass/IThisFPSWebPartClass1152.d.ts.map +1 -1
  3. package/lib/banner/bannerX/sendFeedback.d.ts +4 -0
  4. package/lib/banner/bannerX/sendFeedback.d.ts.map +1 -0
  5. package/lib/banner/bannerX/sendFeedback.js +20 -0
  6. package/lib/banner/bannerX/sendFeedback.js.map +1 -0
  7. package/lib/banner/features/FPSDOM/FPSDocument.d.ts +25 -0
  8. package/lib/banner/features/FPSDOM/FPSDocument.d.ts.map +1 -0
  9. package/lib/banner/features/FPSDOM/FPSDocument.js +152 -0
  10. package/lib/banner/features/FPSDOM/FPSDocument.js.map +1 -0
  11. package/lib/banner/features/FPSDOM/FPSEnviro.d.ts +5 -0
  12. package/lib/banner/features/FPSDOM/FPSEnviro.d.ts.map +1 -0
  13. package/lib/banner/features/FPSDOM/FPSEnviro.js +103 -0
  14. package/lib/banner/features/FPSDOM/FPSEnviro.js.map +1 -0
  15. package/lib/{types/fps-class/window → banner/features/FPSDOM}/IFPSEnviro.d.ts +3 -3
  16. package/lib/{types/fps-class/window → banner/features/FPSDOM}/IFPSEnviro.d.ts.map +1 -1
  17. package/lib/banner/features/FPSDOM/IFPSEnviro.js.map +1 -0
  18. package/lib/banner/features/FPSDOM/IFPSSection.d.ts +35 -0
  19. package/lib/banner/features/FPSDOM/IFPSSection.d.ts.map +1 -0
  20. package/lib/banner/features/FPSDOM/IFPSSection.js +5 -0
  21. package/lib/banner/features/FPSDOM/IFPSSection.js.map +1 -0
  22. package/lib/banner/features/FPSDOM/IFPSWindowProps.d.ts +40 -0
  23. package/lib/banner/features/FPSDOM/IFPSWindowProps.d.ts.map +1 -0
  24. package/lib/banner/features/FPSDOM/IFPSWindowProps.js.map +1 -0
  25. package/lib/banner/features/FPSDOM/Window.d.ts +14 -0
  26. package/lib/banner/features/FPSDOM/Window.d.ts.map +1 -0
  27. package/lib/banner/features/FPSDOM/Window.js +2 -0
  28. package/lib/banner/features/FPSDOM/Window.js.map +1 -0
  29. package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts +16 -0
  30. package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts.map +1 -0
  31. package/lib/banner/features/ImportExport/BuildExportPropsX.js +79 -0
  32. package/lib/banner/features/ImportExport/BuildExportPropsX.js.map +1 -0
  33. package/lib/banner/features/ImportExport/ExportFunctions.d.ts +34 -0
  34. package/lib/banner/features/ImportExport/ExportFunctions.d.ts.map +1 -0
  35. package/lib/banner/features/ImportExport/ExportFunctions.js +59 -0
  36. package/lib/banner/features/ImportExport/ExportFunctions.js.map +1 -0
  37. package/lib/banner/features/ImportExport/IgnoreBlockProps.d.ts +3 -0
  38. package/lib/banner/features/ImportExport/IgnoreBlockProps.d.ts.map +1 -0
  39. package/lib/banner/features/ImportExport/IgnoreBlockProps.js +14 -0
  40. package/lib/banner/features/ImportExport/IgnoreBlockProps.js.map +1 -0
  41. package/lib/components/atoms/FilterButtons/functions/onFPSFilterButtonFieldChanged.js +1 -1
  42. package/lib/components/atoms/FilterButtons/functions/onFPSFilterButtonFieldChanged.js.map +1 -1
  43. package/lib/components/atoms/Links/GulpLinks.d.ts +3 -0
  44. package/lib/components/atoms/Links/GulpLinks.d.ts.map +1 -0
  45. package/lib/components/atoms/Links/GulpLinks.js +13 -0
  46. package/lib/components/atoms/Links/GulpLinks.js.map +1 -0
  47. package/lib/components/atoms/Links/ValidateLinks.d.ts +3 -0
  48. package/lib/components/atoms/Links/ValidateLinks.d.ts.map +1 -0
  49. package/lib/components/atoms/Links/ValidateLinks.js +13 -0
  50. package/lib/components/atoms/Links/ValidateLinks.js.map +1 -0
  51. package/lib/components/atoms/Links/_LinkIsValid.d.ts +15 -0
  52. package/lib/components/atoms/Links/_LinkIsValid.d.ts.map +1 -0
  53. package/lib/components/atoms/Links/_LinkIsValid.js +75 -0
  54. package/lib/components/atoms/Links/_LinkIsValid.js.map +1 -0
  55. package/lib/components/atoms/easy-analytics/functions/buildAnalyticsSummary.d.ts +4 -0
  56. package/lib/components/atoms/easy-analytics/functions/buildAnalyticsSummary.d.ts.map +1 -0
  57. package/lib/components/atoms/easy-analytics/functions/buildAnalyticsSummary.js +84 -0
  58. package/lib/components/atoms/easy-analytics/functions/buildAnalyticsSummary.js.map +1 -0
  59. package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.d.ts +6 -0
  60. package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.d.ts.map +1 -0
  61. package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.js +36 -0
  62. package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.js.map +1 -0
  63. package/lib/components/atoms/easy-analytics/functions/getBestAnalyticsLinkAndIcon.d.ts +9 -0
  64. package/lib/components/atoms/easy-analytics/functions/getBestAnalyticsLinkAndIcon.d.ts.map +1 -0
  65. package/lib/components/atoms/easy-analytics/functions/getBestAnalyticsLinkAndIcon.js +32 -0
  66. package/lib/components/atoms/easy-analytics/functions/getBestAnalyticsLinkAndIcon.js.map +1 -0
  67. package/lib/components/atoms/easy-analytics/functions/getPageTitle.d.ts +3 -0
  68. package/lib/components/atoms/easy-analytics/functions/getPageTitle.d.ts.map +1 -0
  69. package/lib/components/atoms/easy-analytics/functions/getPageTitle.js +11 -0
  70. package/lib/components/atoms/easy-analytics/functions/getPageTitle.js.map +1 -0
  71. package/lib/components/atoms/easy-analytics/functions/summarizeArrayByKey.d.ts +63 -0
  72. package/lib/components/atoms/easy-analytics/functions/summarizeArrayByKey.d.ts.map +1 -0
  73. package/lib/components/atoms/easy-analytics/functions/summarizeArrayByKey.js +172 -0
  74. package/lib/components/atoms/easy-analytics/functions/summarizeArrayByKey.js.map +1 -0
  75. package/lib/components/atoms/easy-analytics/interfaces/EasyContents.d.ts +8 -0
  76. package/lib/components/atoms/easy-analytics/interfaces/EasyContents.d.ts.map +1 -0
  77. package/lib/components/atoms/easy-analytics/interfaces/EasyContents.js +8 -0
  78. package/lib/components/atoms/easy-analytics/interfaces/EasyContents.js.map +1 -0
  79. package/lib/components/atoms/easy-analytics/interfaces/ExtremeStorageLog.d.ts +2 -0
  80. package/lib/components/atoms/easy-analytics/interfaces/ExtremeStorageLog.d.ts.map +1 -0
  81. package/lib/components/atoms/easy-analytics/interfaces/ExtremeStorageLog.js +2 -0
  82. package/lib/components/atoms/easy-analytics/interfaces/ExtremeStorageLog.js.map +1 -0
  83. package/lib/components/atoms/{easy-pages → easy-analytics}/interfaces/IEasyAnalyticsHookProps.d.ts +1 -1
  84. package/lib/components/atoms/easy-analytics/interfaces/IEasyAnalyticsHookProps.d.ts.map +1 -0
  85. package/lib/components/atoms/easy-analytics/interfaces/IEasyAnalyticsHookProps.js.map +1 -0
  86. package/lib/components/atoms/easy-analytics/interfaces/IStateSourceA.d.ts +15 -0
  87. package/lib/components/atoms/easy-analytics/interfaces/IStateSourceA.d.ts.map +1 -0
  88. package/lib/components/atoms/easy-analytics/interfaces/IStateSourceA.js +2 -0
  89. package/lib/components/atoms/easy-analytics/interfaces/IStateSourceA.js.map +1 -0
  90. package/lib/components/atoms/easy-analytics/interfaces/analytics.d.ts +86 -0
  91. package/lib/components/atoms/easy-analytics/interfaces/analytics.d.ts.map +1 -0
  92. package/lib/components/atoms/easy-analytics/interfaces/analytics.js +5 -0
  93. package/lib/components/atoms/easy-analytics/interfaces/analytics.js.map +1 -0
  94. package/lib/components/atoms/easy-analytics/interfaces/constants.d.ts +8 -0
  95. package/lib/components/atoms/easy-analytics/interfaces/constants.d.ts.map +1 -0
  96. package/lib/components/atoms/easy-analytics/interfaces/constants.js +23 -0
  97. package/lib/components/atoms/easy-analytics/interfaces/constants.js.map +1 -0
  98. package/lib/components/atoms/easy-pages/interfaces/IEasyPagesHookProps.d.ts +1 -1
  99. package/lib/components/atoms/easy-pages/interfaces/IEasyPagesHookProps.d.ts.map +1 -1
  100. package/lib/components/atoms/easy-pages/interfaces/createAnalyticsSourceProps.d.ts +6 -0
  101. package/lib/components/atoms/easy-pages/interfaces/createAnalyticsSourceProps.d.ts.map +1 -0
  102. package/lib/components/atoms/easy-pages/interfaces/createAnalyticsSourceProps.js +31 -0
  103. package/lib/components/atoms/easy-pages/interfaces/createAnalyticsSourceProps.js.map +1 -0
  104. package/lib/components/molecules/AnyContent/IAnyContent.d.ts +2 -2
  105. package/lib/components/molecules/AnyContent/IAnyContent.d.ts.map +1 -1
  106. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.d.ts +25 -0
  107. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.d.ts.map +1 -0
  108. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.js +13 -0
  109. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.js.map +1 -0
  110. package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.d.ts +31 -0
  111. package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.d.ts.map +1 -0
  112. package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.js +4 -0
  113. package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.js.map +1 -0
  114. package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.d.ts +23 -0
  115. package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.d.ts.map +1 -0
  116. package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.js +2 -0
  117. package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.js.map +1 -0
  118. package/lib/components/molecules/SearchPage/functions/addDeepPropsToSearch.d.ts +3 -0
  119. package/lib/components/molecules/SearchPage/functions/addDeepPropsToSearch.d.ts.map +1 -0
  120. package/lib/components/molecules/SearchPage/functions/addDeepPropsToSearch.js +9 -0
  121. package/lib/components/molecules/SearchPage/functions/addDeepPropsToSearch.js.map +1 -0
  122. package/lib/components/molecules/SearchPage/functions/addItemIsA.d.ts +4 -0
  123. package/lib/components/molecules/SearchPage/functions/addItemIsA.d.ts.map +1 -0
  124. package/lib/components/molecules/SearchPage/functions/addItemIsA.js +22 -0
  125. package/lib/components/molecules/SearchPage/functions/addItemIsA.js.map +1 -0
  126. package/lib/components/molecules/SearchPage/functions/addListIsAMeta.d.ts +4 -0
  127. package/lib/components/molecules/SearchPage/functions/addListIsAMeta.d.ts.map +1 -0
  128. package/lib/components/molecules/SearchPage/functions/addListIsAMeta.js +73 -0
  129. package/lib/components/molecules/SearchPage/functions/addListIsAMeta.js.map +1 -0
  130. package/lib/components/molecules/SearchPage/functions/addSearchAll.d.ts +6 -0
  131. package/lib/components/molecules/SearchPage/functions/addSearchAll.d.ts.map +1 -0
  132. package/lib/components/molecules/SearchPage/functions/addSearchAll.js +14 -0
  133. package/lib/components/molecules/SearchPage/functions/addSearchAll.js.map +1 -0
  134. package/lib/components/molecules/SearchPage/functions/addSearchAllV2.d.ts +6 -0
  135. package/lib/components/molecules/SearchPage/functions/addSearchAllV2.d.ts.map +1 -0
  136. package/lib/components/molecules/SearchPage/functions/addSearchAllV2.js +14 -0
  137. package/lib/components/molecules/SearchPage/functions/addSearchAllV2.js.map +1 -0
  138. package/lib/components/molecules/SearchPage/functions/addSearchFile.d.ts +5 -0
  139. package/lib/components/molecules/SearchPage/functions/addSearchFile.d.ts.map +1 -0
  140. package/lib/components/molecules/SearchPage/functions/addSearchFile.js +137 -0
  141. package/lib/components/molecules/SearchPage/functions/addSearchFile.js.map +1 -0
  142. package/lib/components/molecules/SearchPage/functions/addSearchFileV2.d.ts +7 -0
  143. package/lib/components/molecules/SearchPage/functions/addSearchFileV2.d.ts.map +1 -0
  144. package/lib/components/molecules/SearchPage/functions/addSearchFileV2.js +182 -0
  145. package/lib/components/molecules/SearchPage/functions/addSearchFileV2.js.map +1 -0
  146. package/lib/components/molecules/SearchPage/functions/addSearchMeta1.d.ts +39 -0
  147. package/lib/components/molecules/SearchPage/functions/addSearchMeta1.d.ts.map +1 -0
  148. package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js +513 -0
  149. package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js.map +1 -0
  150. package/lib/components/molecules/SearchPage/functions/addSearchMeta2.d.ts +10 -0
  151. package/lib/components/molecules/SearchPage/functions/addSearchMeta2.d.ts.map +1 -0
  152. package/lib/components/molecules/SearchPage/functions/addSearchMeta2.js +83 -0
  153. package/lib/components/molecules/SearchPage/functions/addSearchMeta2.js.map +1 -0
  154. package/lib/components/molecules/SearchPage/functions/getFilteredV1.d.ts +20 -0
  155. package/lib/components/molecules/SearchPage/functions/getFilteredV1.d.ts.map +1 -0
  156. package/lib/components/molecules/SearchPage/functions/getFilteredV1.js +130 -0
  157. package/lib/components/molecules/SearchPage/functions/getFilteredV1.js.map +1 -0
  158. package/lib/components/molecules/SearchPage/functions/markPopular.d.ts +19 -0
  159. package/lib/components/molecules/SearchPage/functions/markPopular.d.ts.map +1 -0
  160. package/lib/components/molecules/SearchPage/functions/markPopular.js +78 -0
  161. package/lib/components/molecules/SearchPage/functions/markPopular.js.map +1 -0
  162. package/lib/components/molecules/source-props/Lists/getVX/SysLists.d.ts +46 -0
  163. package/lib/components/molecules/source-props/Lists/getVX/SysLists.d.ts.map +1 -0
  164. package/lib/components/molecules/source-props/Lists/getVX/SysLists.js +125 -0
  165. package/lib/components/molecules/source-props/Lists/getVX/SysLists.js.map +1 -0
  166. package/lib/logic/Math/getNumber.d.ts +12 -0
  167. package/lib/logic/Math/getNumber.d.ts.map +1 -0
  168. package/lib/logic/Math/getNumber.js +24 -0
  169. package/lib/logic/Math/getNumber.js.map +1 -0
  170. package/lib/logic/Math/labels.d.ts +26 -0
  171. package/lib/logic/Math/labels.d.ts.map +1 -0
  172. package/lib/logic/Math/labels.js +52 -0
  173. package/lib/logic/Math/labels.js.map +1 -0
  174. package/lib/logic/Math/rounding.d.ts +13 -0
  175. package/lib/logic/Math/rounding.d.ts.map +1 -0
  176. package/lib/logic/Math/rounding.js +30 -0
  177. package/lib/logic/Math/rounding.js.map +1 -0
  178. package/lib/logic/Strings/getStringArrayBasic.d.ts +26 -0
  179. package/lib/logic/Strings/getStringArrayBasic.d.ts.map +1 -0
  180. package/lib/logic/Strings/getStringArrayBasic.js +45 -0
  181. package/lib/logic/Strings/getStringArrayBasic.js.map +1 -0
  182. package/lib/logic/Strings/getWordsFromString.d.ts +28 -0
  183. package/lib/logic/Strings/getWordsFromString.d.ts.map +1 -0
  184. package/lib/logic/Strings/getWordsFromString.js +88 -0
  185. package/lib/logic/Strings/getWordsFromString.js.map +1 -0
  186. package/lib/logic/Strings/urlServices.d.ts +62 -0
  187. package/lib/logic/Strings/urlServices.d.ts.map +1 -0
  188. package/lib/logic/Strings/urlServices.js +193 -0
  189. package/lib/logic/Strings/urlServices.js.map +1 -0
  190. package/lib/types/fps-class/window/Window.d.ts +2 -2
  191. package/lib/types/fps-class/window/Window.d.ts.map +1 -1
  192. package/lib/types/react/IFPSJSX_Element.d.ts.map +1 -1
  193. package/package.json +1 -1
  194. package/lib/components/atoms/easy-pages/interfaces/IEasyAnalyticsHookProps.d.ts.map +0 -1
  195. package/lib/components/atoms/easy-pages/interfaces/IEasyAnalyticsHookProps.js.map +0 -1
  196. package/lib/types/fps-class/window/IFPSEnviro.js.map +0 -1
  197. package/lib/types/fps-class/window/IFPSWindowProps.d.ts +0 -73
  198. package/lib/types/fps-class/window/IFPSWindowProps.d.ts.map +0 -1
  199. package/lib/types/fps-class/window/IFPSWindowProps.js.map +0 -1
  200. /package/lib/{types/fps-class/window → banner/features/FPSDOM}/IFPSEnviro.js +0 -0
  201. /package/lib/{types/fps-class/window → banner/features/FPSDOM}/IFPSWindowProps.js +0 -0
  202. /package/lib/components/atoms/{easy-pages → easy-analytics}/interfaces/IEasyAnalyticsHookProps.js +0 -0
@@ -0,0 +1,79 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /***
3
+ * d888888b .88b d88. d8888b. .d88b. d8888b. d888888b .d88b. d88888b d88888b d888888b .o88b. d888888b .d8b. db
4
+ * `88' 88'YbdP`88 88 `8D .8P Y8. 88 `8D `~~88~~' .8P Y8. 88' 88' `88' d8P Y8 `88' d8' `8b 88
5
+ * 88 88 88 88 88oodD' 88 88 88oobY' 88 88 88 88ooo 88ooo 88 8P 88 88ooo88 88
6
+ * 88 88 88 88 88~~~ 88 88 88`8b 88 88 88 88~~~ 88~~~ 88 8b 88 88~~~88 88
7
+ * .88. 88 88 88 88 `8b d8' 88 `88. 88 `8b d8' 88 88 .88. Y8b d8 .88. 88 88 88booo.
8
+ * Y888888P YP YP YP 88 `Y88P' 88 YD YP `Y88P' YP YP Y888888P `Y88P' Y888888P YP YP Y88888P
9
+ *
10
+ *
11
+ */
12
+ // import { changeEasyIcons } from "../../../components/atoms/EasyIcons/interfaces/IEasyIconsWPProps";
13
+ import { changeEasyIcons } from '../../../components/atoms/easy-icons/interfaces/IEasyIconsWPProps';
14
+ import { changeEasyPages } from '../../../components/atoms/easy-pages/interfaces/epTypes';
15
+ import { changeFullBackground } from '../../../components/molecules/FullPageBackGround/interfaces/IFPSPageBGWPProps';
16
+ import { check4This } from '../../../logic/Links/CheckSearch';
17
+ // import { changeEasyPages } from '../../components/EasyPages/interfaces/epTypes';
18
+ import { changeCustomHelp } from '../../components/VisitorPanel/Interfaces';
19
+ import { changeBannerBasics, changeBannerNav } from '../../interfaces/MinWP/IMinBannerUIProps';
20
+ import { changeBannerUtility } from '../../interfaces/MinWP/IMinBannerUtilityProps';
21
+ import { changeBannerTheme } from '../../interfaces/Theme/Interfaces';
22
+ import { changeExpando } from '../Expando/Interfaces';
23
+ import { changeLockProps } from '../LockProps/Interfaces';
24
+ import { changePageStyle } from '../PageStyle/Interfaces';
25
+ import { changePinMe } from '../PinMe/Interfaces';
26
+ import { createExportObject, } from './ExportFunctions';
27
+ import { exportIgnorePropsFPS } from './IgnoreBlockProps';
28
+ // import { check4This } from '@mikezimm/fps-pnp2/lib/services/sp/CheckSearch';
29
+ /**
30
+ * These are properties to export BOTH to analytics AND the panel
31
+ */
32
+ const exportFPSAnalytics = {
33
+ Visitor: changeCustomHelp,
34
+ easyPages: changeEasyPages,
35
+ easyIcons: changeEasyIcons,
36
+ BannerBasics: changeBannerBasics,
37
+ BannerNav: changeBannerNav,
38
+ FullBackGround: changeFullBackground,
39
+ BannerTheme: changeBannerTheme,
40
+ BannerOther: changeBannerUtility,
41
+ fpsOptions1: changePageStyle,
42
+ Expando: changeExpando,
43
+ pinMe: changePinMe,
44
+ LockProps: changeLockProps,
45
+ };
46
+ /**
47
+ For props to export to panel but NOT save in analytics
48
+ */
49
+ const exportFPSPanel = {};
50
+ /**
51
+ * This will create total export object for the panel in order of:
52
+ * 'Start items that are always there'
53
+ * Then adding wpAnalyticsChanges and wpPanelChanges if usage === Panel
54
+ * Followed by: exportFPSAnalytics and exportFPSPanel if usage === Panel
55
+ *
56
+ * @param wpProps
57
+ * @param wpInstanceID
58
+ * @param currentWeb
59
+ * @param wpAnalyticsChanges
60
+ * @param wpPanelChanges
61
+ * @returns
62
+ */
63
+ export function buildExportPropsX(usage, wpProps, wpInstanceID, currentWeb, wpAnalyticsChanges, wpPanelChanges, importBlockPropsWP, _FPSId) {
64
+ const exportStart = {
65
+ wpInstanceID: wpInstanceID,
66
+ _FPSId: _FPSId,
67
+ currentWeb: currentWeb,
68
+ };
69
+ const exportStructure = usage === 'Panel' ?
70
+ { ...exportStart, ...wpAnalyticsChanges, ...wpPanelChanges, ...exportFPSAnalytics, ...exportFPSPanel } :
71
+ { ...exportStart, ...wpAnalyticsChanges, ...exportFPSAnalytics, };
72
+ const exportIgnoreProps = [...exportIgnorePropsFPS, ...importBlockPropsWP];
73
+ const exportObject = createExportObject(exportStructure, wpProps, exportIgnoreProps, false);
74
+ // https://github.com/mikezimm/fps-library-v2/issues/39
75
+ if (check4This(`buildExportPropsX=true`) === true && usage === 'Panel')
76
+ console.log('Exportable Props:', exportObject);
77
+ return exportObject;
78
+ }
79
+ //# sourceMappingURL=BuildExportPropsX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildExportPropsX.js","sourceRoot":"","sources":["../../../../src/banner/features/ImportExport/BuildExportPropsX.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD;;;;;;;;;GASG;AACH,sGAAsG;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AACrH,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,mFAAmF;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,kBAAkB,GAAG,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,+EAA+E;AAE/E;;GAEG;AACH,MAAM,kBAAkB,GAAS;IAC/B,OAAO,EAAG,gBAAgB;IAC1B,SAAS,EAAG,eAAe;IAC3B,SAAS,EAAG,eAAe;IAC3B,YAAY,EAAG,kBAAkB;IACjC,SAAS,EAAG,eAAe;IAE3B,cAAc,EAAE,oBAAoB;IACpC,WAAW,EAAG,iBAAiB;IAC/B,WAAW,EAAG,mBAAmB;IACjC,WAAW,EAAG,eAAe;IAC7B,OAAO,EAAG,aAAa;IACvB,KAAK,EAAG,WAAW;IACnB,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,cAAc,GAAS,EAE5B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iBAAiB,CAAE,KAA4B,EAAE,OAA2B,EAAE,YAAoB,EAAE,UAAkB,EAAE,kBAAuB,EAAE,cAAmB,EAAE,kBAAuB,EAAE,MAAc;IAE3N,MAAM,WAAW,GAAQ;QACvB,YAAY,EAAE,YAAY;QAC1B,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,UAAU;KACvB,CAAC;IAEF,MAAM,eAAe,GAAS,KAAK,KAAI,OAAO,CAAA,CAAC;QAC9C,EAAE,GAAG,WAAW,EAAE,GAAG,kBAAkB,EAAE,GAAG,cAAc,EAAE,GAAG,kBAAkB,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC;QACxG,EAAE,GAAG,WAAW,EAAE,GAAG,kBAAkB,EAAE,GAAG,kBAAkB,GAAG,CAAC;IAEnE,MAAM,iBAAiB,GAAc,CAAE,GAAG,oBAAoB,EAAE,GAAG,kBAAkB,CAAG,CAAC;IACzF,MAAM,YAAY,GAAG,kBAAkB,CAAE,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,CAAE,CAAC;IAE9F,wDAAwD;IACxD,IAAK,UAAU,CAAE,wBAAwB,CAAC,KAAK,IAAI,IAAI,KAAK,KAAK,OAAO;QAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,YAAY,CAAE,CAAC;IAE3H,OAAO,YAAY,CAAC;AAEtB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @param exportStructure returns an object with selected this.properties to export via the help panel
3
+ * Should only be property keys that you want to import
4
+ * exportStructure = {
5
+ * key1: [ prop1, prop2, prop3 ] }
6
+ * }
7
+ * @param thisProperties - this is the webpart properties
8
+ * @returns
9
+ */
10
+ export declare const exportNotAvailMess = "Export Unavailable";
11
+ export type IAny = any;
12
+ export interface IMinExportObject extends IAny {
13
+ wpInstanceID: string;
14
+ currentWeb: string;
15
+ }
16
+ /**
17
+ *
18
+ * @param exportStructure - object with keys as groups of properties to export, will cycle through each group which has it's own property keys in string array
19
+ * @param thisProperties - webpart props
20
+ * @param ignoreProps - array of property keys to explicitly not export
21
+ * @param skipNullUndefined - false by default, will show null and undefined values in export
22
+ * @returns
23
+ */
24
+ export declare function createExportObject(exportStructure: IMinExportObject, thisProperties: any, ignoreProps: string[], skipNullUndefined?: boolean): any;
25
+ /**
26
+ *
27
+ * @param updateOnThese - array of property keys to fetch from webpart props and save to exportProps object
28
+ * @param thisProperties - webpart props
29
+ * @param ignoreProps - array of property keys to explicitly not export
30
+ * @param skipNullUndefined - false by default, will show null and undefined values in export
31
+ * @returns
32
+ */
33
+ export declare function createExportGroup(updateOnThese: string[], thisProperties: any, ignoreProps: string[], skipNullUndefined?: boolean): any;
34
+ //# sourceMappingURL=ExportFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportFunctions.d.ts","sourceRoot":"","sources":["../../../../src/banner/features/ImportExport/ExportFunctions.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,MAAM,MAAM,IAAI,GAAG,GAAG,CAAC;AAEvB,MAAM,WAAW,gBAAiB,SAAQ,IAAI;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAEC;;;;;;;EAOE;AACJ,wBAAgB,kBAAkB,CAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAE,OAAe,GAAI,GAAG,CAa3J;AAED;;;;;;;GAOG;AACD,wBAAgB,iBAAiB,CAAE,aAAa,EAAC,MAAM,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAE,OAAe,GAAI,GAAG,CAiB/I"}
@@ -0,0 +1,59 @@
1
+ import { indexOfAnyCase } from '../../../logic/Arrays/searching/objectfind';
2
+ /**
3
+ * @param exportStructure returns an object with selected this.properties to export via the help panel
4
+ * Should only be property keys that you want to import
5
+ * exportStructure = {
6
+ * key1: [ prop1, prop2, prop3 ] }
7
+ * }
8
+ * @param thisProperties - this is the webpart properties
9
+ * @returns
10
+ */
11
+ export const exportNotAvailMess = 'Export Unavailable';
12
+ /**
13
+ *
14
+ * @param exportStructure - object with keys as groups of properties to export, will cycle through each group which has it's own property keys in string array
15
+ * @param thisProperties - webpart props
16
+ * @param ignoreProps - array of property keys to explicitly not export
17
+ * @param skipNullUndefined - false by default, will show null and undefined values in export
18
+ * @returns
19
+ */
20
+ export function createExportObject(exportStructure, thisProperties, ignoreProps, skipNullUndefined = false) {
21
+ let finalObject = {};
22
+ Object.keys(exportStructure).map(key => {
23
+ if (key === 'wpInstanceID' || key === '_FPSId' || key === 'currentWeb') { //If this is the wpInstanceID, then do not look for props
24
+ finalObject[key] = exportStructure[key];
25
+ }
26
+ else {
27
+ finalObject[key] = createExportGroup(exportStructure[key], thisProperties, ignoreProps, skipNullUndefined);
28
+ }
29
+ });
30
+ return finalObject;
31
+ }
32
+ /**
33
+ *
34
+ * @param updateOnThese - array of property keys to fetch from webpart props and save to exportProps object
35
+ * @param thisProperties - webpart props
36
+ * @param ignoreProps - array of property keys to explicitly not export
37
+ * @param skipNullUndefined - false by default, will show null and undefined values in export
38
+ * @returns
39
+ */
40
+ export function createExportGroup(updateOnThese, thisProperties, ignoreProps, skipNullUndefined = false) {
41
+ let exportProps = {};
42
+ updateOnThese.map(thisProp => {
43
+ if (indexOfAnyCase(thisProp, ignoreProps, true, false) < 0) {
44
+ //2022-02-16: had to update this so that it exports false, but also you can now specify to skip null or undefined if neccessary
45
+ let isUnknown = thisProperties[thisProp] === null || thisProperties[thisProp] === undefined ? true : false;
46
+ if (isUnknown === true && skipNullUndefined === true) {
47
+ //Skip this property because it's null or undefined and the paramter says to skip these
48
+ }
49
+ else {
50
+ exportProps[thisProp] = thisProperties[thisProp];
51
+ }
52
+ }
53
+ else {
54
+ exportProps[thisProp] = exportNotAvailMess;
55
+ }
56
+ });
57
+ return exportProps;
58
+ }
59
+ //# sourceMappingURL=ExportFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportFunctions.js","sourceRoot":"","sources":["../../../../src/banner/features/ImportExport/ExportFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAE5E;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AASrD;;;;;;;EAOE;AACJ,MAAM,UAAU,kBAAkB,CAAE,eAAiC,EAAE,cAAmB,EAAE,WAAqB,EAAE,oBAA6B,KAAK;IACnJ,IAAI,WAAW,GAAS,EAAE,CAAC;IAE3B,MAAM,CAAC,IAAI,CAAE,eAAe,CAAE,CAAC,GAAG,CAAE,GAAG,CAAC,EAAE;QACxC,IAAK,GAAG,KAAK,cAAc,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,YAAY,EAAG,EAAG,yDAAyD;YACpI,WAAW,CAAC,GAAG,CAAC,GAAG,eAAe,CAAE,GAAG,CAAE,CAAC;SAC3C;aAAM;YACL,WAAW,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAE,eAAe,CAAE,GAAG,CAAE,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,CAAE,CAAC;SAChH;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AAErB,CAAC;AAED;;;;;;;GAOG;AACD,MAAM,UAAU,iBAAiB,CAAE,aAAsB,EAAE,cAAmB,EAAE,WAAqB,EAAE,oBAA6B,KAAK;IACvI,IAAI,WAAW,GAAQ,EAAG,CAAC;IAC3B,aAAa,CAAC,GAAG,CAAE,QAAQ,CAAC,EAAE;QAC5B,IAAK,cAAc,CAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,CAAE,GAAG,CAAC,EAAG;YAC9D,gIAAgI;YAChI,IAAI,SAAS,GAAG,cAAc,CAAE,QAAQ,CAAE,KAAK,IAAI,IAAI,cAAc,CAAE,QAAQ,CAAE,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;YAC/G,IAAK,SAAS,KAAK,IAAI,IAAI,iBAAiB,KAAK,IAAI,EAAG;gBACtD,uFAAuF;aACxF;iBAAM;gBACL,WAAW,CAAE,QAAQ,CAAE,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;aACpD;SACF;aAAM;YACL,WAAW,CAAE,QAAQ,CAAE,GAAG,kBAAkB,CAAC;SAC9C;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const exportIgnorePropsFPS: string[];
2
+ export declare const importBlockPropsFPS: string[];
3
+ //# sourceMappingURL=IgnoreBlockProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IgnoreBlockProps.d.ts","sourceRoot":"","sources":["../../../../src/banner/features/ImportExport/IgnoreBlockProps.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,EAAG,MAAM,EAAqG,CAAC;AAGhJ,eAAO,MAAM,mBAAmB,EAAG,MAAM,EAOvC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { changeSULProps } from "../../../common/PropPaneHelp/preconfig/Interfaces";
2
+ import { changesFieldPanel } from "../../../components/molecules/FieldPanel/interfaces/IMinWPFieldPanelProps";
3
+ //Common props to Ignore export
4
+ export const exportIgnorePropsFPS = ['analyticsList', 'analyticsWeb', ...changesFieldPanel, ...changeSULProps, 'replacePanelHTML'];
5
+ //Common props to block import
6
+ export const importBlockPropsFPS = ['scenario', 'analyticsList', 'analyticsWeb', 'lastPropDetailChange', 'showBanner',
7
+ 'showTricks', 'showRepoLinks', 'showExport', 'fpsImportProps', 'fullPanelAudience',
8
+ 'documentationIsValid', 'requireDocumentation', 'requireContacts', 'supportContacts', 'documentationLinkDesc', 'documentationLinkUrl',
9
+ 'tenantHelpUrl', 'getStartedUrl', 'tenanatFirst5', 'tenantPolicies',
10
+ 'currentWeb', 'loadPerformance', 'webpartHistory', 'pageLayout', 'propsEasyMode',
11
+ 'enableLockProps', 'lockedByUser', 'lockedTime', 'enableForceOverRide', 'overrideByUser', 'overrideTime', 'overrideProps', 'overrideKeys',
12
+ ...changeSULProps, 'replacePanelHTML', 'webUrl', 'parentListWeb', 'parentListURL', 'feedbackEmail', 'currentWeb', '_FPSId'
13
+ ];
14
+ //# sourceMappingURL=IgnoreBlockProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IgnoreBlockProps.js","sourceRoot":"","sources":["../../../../src/banner/features/ImportExport/IgnoreBlockProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2EAA2E,CAAC;AAE9G,+BAA+B;AAC/B,MAAM,CAAC,MAAM,oBAAoB,GAAc,CAAE,eAAe,EAAE,cAAc,EAAE,GAAG,iBAAiB,EAAE,GAAG,cAAc,EAAE,kBAAkB,CAAE,CAAC;AAEhJ,8BAA8B;AAC9B,MAAM,CAAC,MAAM,mBAAmB,GAAc,CAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,YAAY;IAC/H,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB;IAClF,sBAAsB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,sBAAsB;IACrI,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB;IACnE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe;IAChF,iBAAiB,EAAC,cAAc,EAAE,YAAY,EAAG,qBAAqB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc;IACzI,GAAG,cAAc,EAAE,kBAAkB,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,QAAQ;CAC1H,CAAC"}
@@ -1,4 +1,4 @@
1
- // import { check4This } from "@mikezimm/fps-pnp2/lib/services/sp/CheckSearch";
1
+ // import { check4This } from '../../../../logic/Links/CheckSearch';
2
2
  import { check4This } from "../../../../logic/Links/CheckSearch";
3
3
  export function onFPSFilterButtonFieldChanged(buttons, propertyPath, oldValue, newValue, refreshPane) {
4
4
  const propKeys = propertyPath.split('.');
@@ -1 +1 @@
1
- {"version":3,"file":"onFPSFilterButtonFieldChanged.js","sourceRoot":"","sources":["../../../../../src/components/atoms/FilterButtons/functions/onFPSFilterButtonFieldChanged.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAIjE,MAAM,UAAU,6BAA6B,CAAC,OAAkC,EAAE,YAAoB,EAAE,QAAa,EAAE,QAAa,EAAE,WAAgB;IAEpJ,MAAM,QAAQ,GAAa,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,IAAK,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC;QAAG,OAAO,OAAO,CAAC;IAE7D,MAAM,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QACzB,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAEvB,sFAAsF;YACtF,IAAK,UAAU,CAAE,iBAAiB,CAAE,EAAG,GAAE;iBACpC;gBACH,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAE,KAAK,EAAE,MAAM,CAAC,CAAC,C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AQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE;oBAC/E,IAAI,EAAE,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBAC3C,SAAS,EAAE,UAAU,KAAK,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE;oBACjF,IAAI,EAAE,GAAG,GAAG,EAAE;oBACd,QAAQ,EAAE,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBACnD,SAAS,EAAE,UAAU,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;iBACtD,CAAC;aACH;YACD,MAAM,CAAC,UAAqB,CAAC,GAAG,QAAQ,CAAC;YACzC,MAAM,CAAC,GAAU,CAAC,GAAG,MAAM,CAAC;SAC7B;QACD,WAAW,EAAE,CAAC;KACf;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function addGulpParam(current: string): string;
2
+ export declare function removeGulpParam(current: string): string;
3
+ //# sourceMappingURL=GulpLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GulpLinks.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Links/GulpLinks.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAE,OAAO,EAAE,MAAM,GAAK,MAAM,CAOvD;AAED,wBAAgB,eAAe,CAAE,OAAO,EAAE,MAAM,GAAK,MAAM,CAE1D"}
@@ -0,0 +1,13 @@
1
+ import { gulpParam1, gulpParam2 } from "./CommonDevUrls";
2
+ export function addGulpParam(current) {
3
+ const hasGulp1 = current.indexOf(gulpParam1) > 0 ? true : false;
4
+ const hasGulp2 = current.indexOf(gulpParam2) > 0 ? true : false;
5
+ if (hasGulp1 === true || hasGulp2 === true)
6
+ return current;
7
+ const final = current.indexOf('?') > 0 ? `${current}&${gulpParam1}` : `${current}?${gulpParam1}`;
8
+ return final;
9
+ }
10
+ export function removeGulpParam(current) {
11
+ return !current ? '' : current.replace(gulpParam1, '').replace(gulpParam2, '');
12
+ }
13
+ //# sourceMappingURL=GulpLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GulpLinks.js","sourceRoot":"","sources":["../../../../src/components/atoms/Links/GulpLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,UAAU,YAAY,CAAE,OAAe;IAC3C,MAAM,QAAQ,GAAY,OAAO,CAAC,OAAO,CAAE,UAAU,CAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAC3E,MAAM,QAAQ,GAAY,OAAO,CAAC,OAAO,CAAE,UAAU,CAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAE3E,IAAK,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,IAAI;QAAG,OAAO,OAAO,CAAC;IAC7D,MAAM,KAAK,GAAW,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,UAAU,EAAE,CAAE;IAC1G,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,eAAe,CAAE,OAAe;IAC9C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAE,UAAU,EAAE,EAAE,CAAE,CAAC,OAAO,CAAE,UAAU,EAAE,EAAE,CAAE,CAAC;AACrF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IMinCustomHelpProps } from "../../../banner/components/VisitorPanel/Interfaces";
2
+ export declare function validateDocumentationUrl(thisProps: IMinCustomHelpProps, propertyPath: string, newValue: any): Promise<void>;
3
+ //# sourceMappingURL=ValidateLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidateLinks.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Links/ValidateLinks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAI,MAAM,oDAAoD,CAAC;AAG3F,wBAAsB,wBAAwB,CAAG,SAAS,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,EAAG,QAAQ,EAAE,GAAG,iBAWpH"}
@@ -0,0 +1,13 @@
1
+ import { _LinkIsValid } from "./_LinkIsValid";
2
+ export async function validateDocumentationUrl(thisProps, propertyPath, newValue) {
3
+ if (propertyPath === 'documentationLinkUrl' || propertyPath === 'fpsImportProps') {
4
+ thisProps.documentationIsValid = await _LinkIsValid(newValue) === "" ? true : false;
5
+ console.log(`${newValue ? newValue : 'Empty'} Docs Link ${thisProps.documentationIsValid === true ? ' IS ' : ' IS NOT '} Valid `);
6
+ }
7
+ else {
8
+ if (!thisProps.documentationIsValid) {
9
+ thisProps.documentationIsValid = false;
10
+ }
11
+ }
12
+ }
13
+ //# sourceMappingURL=ValidateLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidateLinks.js","sourceRoot":"","sources":["../../../../src/components/atoms/Links/ValidateLinks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAG,SAA8B,EAAE,YAAoB,EAAG,QAAa;IAEjH,IAAK,YAAY,KAAK,sBAAsB,IAAI,YAAY,KAAK,gBAAgB,EAAG;QAChF,SAAS,CAAC,oBAAoB,GAAG,MAAM,YAAY,CAAE,QAAQ,CAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACtF,OAAO,CAAC,GAAG,CAAE,GAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAQ,cAAe,SAAS,CAAC,oBAAoB,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAW,SAAS,CAAC,CAAC;KAE1I;SAAM;QACH,IAAK,CAAC,SAAS,CAAC,oBAAoB,EAAG;YAAE,SAAS,CAAC,oBAAoB,GAAG,KAAK,CAAC;SAAE;KAErF;AAEL,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This should be able to tell whether a SPO link is valid or not.
3
+ * @param url
4
+ * @param consoleLog
5
+ * @param extraMessage
6
+ * @returns
7
+ */
8
+ export declare function _LinkIsValid(url: string, consoleLog?: boolean, extraMessage?: string): Promise<false | "" | "Link is not valid">;
9
+ /**
10
+ * This is different from _LinkIsValid in that it returns the status... ie 404, 403, etc...
11
+ * @param url
12
+ * @returns
13
+ */
14
+ export declare function _LinkStatus(url: string): Promise<number | false>;
15
+ //# sourceMappingURL=_LinkIsValid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_LinkIsValid.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Links/_LinkIsValid.ts"],"names":[],"mappings":"AAUA;;;;;;GAMG;AAEH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,EAAE,YAAY,GAAE,MAAW,6CA8BpG;AACD;;;;GAIG;AAEH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,2BAwB5C"}
@@ -0,0 +1,75 @@
1
+ // import { IHelpfullOutput, getHelpfullErrorV2 } from "@mikezimm/fps-core-v7/lib/logic/Errors/friendly";
2
+ import { getHelpfullErrorV2 } from "../../../logic/Errors/friendly";
3
+ // Combined with same function name on CreateLinks.tsx
4
+ // export function createLink(href: string, target: string, linkDesc: string, styles?: any ){
5
+ // return (
6
+ // <Link style={ styles } href={href} target={ target }>{ linkDesc }</Link>
7
+ // );
8
+ // }
9
+ /**
10
+ * This should be able to tell whether a SPO link is valid or not.
11
+ * @param url
12
+ * @param consoleLog
13
+ * @param extraMessage
14
+ * @returns
15
+ */
16
+ export async function _LinkIsValid(url, consoleLog = true, extraMessage = '') {
17
+ //Require this is filled out.
18
+ if (!url) {
19
+ return false;
20
+ }
21
+ var http = new XMLHttpRequest();
22
+ http.open('HEAD', url, false);
23
+ let isValid = true;
24
+ let errMessage = '';
25
+ try {
26
+ await http.send();
27
+ isValid = http.status != 404 ? true : false;
28
+ if (isValid === false && consoleLog === true) {
29
+ errMessage = `${extraMessage} Location does not seem to exist ~ 52: ${url}`;
30
+ console.log(errMessage);
31
+ }
32
+ }
33
+ catch (e) {
34
+ isValid = false;
35
+ const HelpfulErrorOutput = getHelpfullErrorV2(e, false, true, '_LinkIsValid ~ 59', false);
36
+ errMessage = HelpfulErrorOutput.returnMess;
37
+ if (consoleLog === true) {
38
+ console.log(`${extraMessage} Location does not seem to exist: ${url}`);
39
+ console.log(errMessage);
40
+ }
41
+ }
42
+ return isValid === true ? '' : 'Link is not valid';
43
+ }
44
+ /**
45
+ * This is different from _LinkIsValid in that it returns the status... ie 404, 403, etc...
46
+ * @param url
47
+ * @returns
48
+ */
49
+ export async function _LinkStatus(url) {
50
+ //Require this is filled out.
51
+ if (!url) {
52
+ return false;
53
+ }
54
+ else if (url === 'http://linkless.header/')
55
+ return -1;
56
+ var http = new XMLHttpRequest();
57
+ http.open('HEAD', url, false);
58
+ let isValid = true;
59
+ try {
60
+ await http.send();
61
+ isValid = http.status ? http.status : false;
62
+ }
63
+ catch (e) {
64
+ isValid = false;
65
+ }
66
+ // try {
67
+ // const response = await fetch(url, { method: "HEAD" });
68
+ // isValid= response.ok;
69
+ // } catch (error) {
70
+ // console.error(error);
71
+ // isValid = false;
72
+ // }
73
+ return isValid;
74
+ }
75
+ //# sourceMappingURL=_LinkIsValid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_LinkIsValid.js","sourceR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C,CAAC;YACxE,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;SAEzB;KACF;IAED,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAAC;AACrD,CAAC;AACD;;;;GAIG;AAEH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,GAAW;IAC3C,6BAA6B;IAC7B,IAAI,CAAC,GAAG,EAAE;QAAE,OAAO,KAAK,CAAC;KAAE;SACtB,IAAI,GAAG,KAAK,yBAAyB;QAAE,OAAO,CAAC,CAAC,CAAC;IAEtD,IAAI,IAAI,GAAG,IAAI,cAAc,EAAE,CAAC;IAChC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9B,IAAI,OAAO,GAAqB,IAAI,CAAC;IACrC,IAAI;QACF,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;KAE7C;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,GAAG,KAAK,CAAC;KACjB;IAED,QAAQ;IACR,2DAA2D;IAC3D,0BAA0B;IAC1B,oBAAoB;IACpB,0BAA0B;IAC1B,qBAAqB;IACrB,IAAI;IACJ,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ISourceProps } from "../../../molecules/source-props/ISourceProps";
2
+ import { IStateSourceA } from "../interfaces/IStateSourceA";
3
+ export declare function buildAnalyticsSummary(AnalyticsSourceProps: ISourceProps, stateSource: IStateSourceA, wpFilterProps: string[]): IStateSourceA;
4
+ //# sourceMappingURL=buildAnalyticsSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAnalyticsSummary.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-analytics/functions/buildAnalyticsSummary.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAsB,MAAM,6BAA6B,CAAC;AAGhF,wBAAgB,qBAAqB,CAAE,oBAAoB,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,GAAI,aAAa,CAuE9I"}
@@ -0,0 +1,84 @@
1
+ import { retrieveFPSEnviro } from "../../../../banner/features/FPSDOM/FPSEnviro";
2
+ import { retrieveFPSUser } from "../../../../banner/FPSWebPartClass/functions/showTricks";
3
+ import { getDeepValuesStringArray } from "../../../../logic/Objects/deep";
4
+ import { addDeepPropsToSearch } from "../../../molecules/SearchPage/functions/addDeepPropsToSearch";
5
+ import { addSearchMeta1 } from "../../../molecules/SearchPage/functions/addSearchMeta1";
6
+ import { getPageTitle } from "./getPageTitle";
7
+ export function buildAnalyticsSummary(AnalyticsSourceProps, stateSource, wpFilterProps) {
8
+ // DO something here to summarize
9
+ const FPSUser = retrieveFPSUser();
10
+ const FPSEnviro = retrieveFPSEnviro();
11
+ const currentSiteLC = FPSEnviro.siteUrl.toLowerCase();
12
+ let isMine = false, isOthers = false, isThisSite = false, isOtherSite = false;
13
+ // 2024-09-07: Set 'null as any' to remove typing warning
14
+ stateSource.items = addSearchMeta1(stateSource.items, AnalyticsSourceProps, null);
15
+ stateSource.itemsS = [];
16
+ stateSource.itemsO = [];
17
+ stateSource.itemsP = [];
18
+ if (!stateSource.meta1)
19
+ stateSource.meta1 = [];
20
+ if (!stateSource.meta2)
21
+ stateSource.meta2 = [];
22
+ stateSource.items.map((item) => {
23
+ let { searchTextLC, searchText, } = item.FPSItem.Search;
24
+ if (item['Author/Title'] === FPSUser.Title) {
25
+ searchText += ` || Mine`;
26
+ isMine = true;
27
+ }
28
+ else {
29
+ searchText += ` || OtherPeeps`;
30
+ isOthers = true;
31
+ }
32
+ // if ( item['Author/Title'] === FPSUser.Title ) { searchTextLC += ` || Mine` }
33
+ // else { item.FPSItem.SearchLC += ` || Others` }
34
+ if (item.SiteLink && item.SiteLink.Url.toLowerCase().indexOf(currentSiteLC) > -1) {
35
+ searchText += ` || ThisSite`;
36
+ isThisSite = true;
37
+ }
38
+ else {
39
+ searchText += ` || OtherSites`;
40
+ isOtherSite = true;
41
+ }
42
+ if (item.language && stateSource.meta2 && stateSource.meta2.indexOf(item.language) < 0)
43
+ stateSource.meta2.push(item.language);
44
+ if (item.performance) {
45
+ try {
46
+ item.performanceObj = JSON.parse(item.performance);
47
+ }
48
+ catch (e) { }
49
+ }
50
+ if (item.FPSProps) {
51
+ try {
52
+ item.FPSPropsObj = JSON.parse(item.FPSProps);
53
+ }
54
+ catch (e) { }
55
+ }
56
+ const PageTitle = getPageTitle(item);
57
+ if (PageTitle)
58
+ searchText = searchText + ` || ` + PageTitle;
59
+ if (item.FPSItem.Search) {
60
+ item.FPSItem.Search.searchText = searchText;
61
+ item.FPSItem.Search.searchTextLC = searchText.toLowerCase();
62
+ }
63
+ // Added search for extra Search Buttons
64
+ const wpFilterPropVals = getDeepValuesStringArray(item, wpFilterProps);
65
+ // This will add the filtered values to stateSource.meta array if they are not already there.
66
+ if (!stateSource.meta1)
67
+ stateSource.meta1 = [];
68
+ wpFilterPropVals.map((v) => { if (stateSource.meta1.indexOf(v) < 0)
69
+ stateSource.meta1.push(v); });
70
+ // This will update FPSItem.Search searchString on the item with the latest deep values.
71
+ item = addDeepPropsToSearch(wpFilterPropVals, item);
72
+ });
73
+ if (isMine === true)
74
+ stateSource.meta1.push('Mine');
75
+ if (isOthers === true)
76
+ stateSource.meta1.push('OtherPeeps');
77
+ if (isThisSite === true)
78
+ stateSource.meta1.push('ThisSite');
79
+ if (isOtherSite === true)
80
+ stateSource.meta1.push('OtherSites');
81
+ stateSource.itemsA = [];
82
+ return stateSource;
83
+ }
84
+ //# sourceMappingURL=buildAnalyticsSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAnalyticsSummary.js","source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migrated to SAME FOLDER in fps-core-v7\src/components/atoms/easy-pages/interfaces\...
3
+ */
4
+ import { ISourceProps } from "../../../molecules/source-props/ISourceProps";
5
+ export declare function createAnalyticsSourceProps(analyticsListX: string, analyticsWebX?: string): ISourceProps;
6
+ //# sourceMappingURL=createAnalyticsSourceProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAnalyticsSourceProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAU5E,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,MAAM,EAAG,aAAa,GAAE,MAAqB,GAAK,YAAY,CA0BxH"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * 2024-09-07: Migrated to SAME FOLDER in fps-core-v7\src/components/atoms/easy-pages/interfaces\...
3
+ */
4
+ import { createSeriesSort } from "../../../molecules/source-props/createOrderBy";
5
+ import { CurrentTenant } from "../../../molecules/source-props/IMinSourceFetchProps";
6
+ import { prepSourceColumns } from "../../../molecules/source-props/prepSourceColumns";
7
+ import { AnalyticsWeb } from "../interfaces/constants";
8
+ // import { ISourceProps } from "../../../../../pnpjs/SourceItems/ISourceProps";
9
+ // import { createSeriesSort } from "../../../../../pnpjs/SourceItems/createOrderBy";
10
+ // import { AnalyticsWeb } from "../../../../../pnpjs/Logging/Interfaces/constants";
11
+ // import { prepSourceColumns } from "../../../../../pnpjs/SourceItems/prepSourceColumns";
12
+ // import { CurrentTenant } from "../../../../../pnpjs/SourceItems/IMinSourceFetchProps";
13
+ export function createAnalyticsSourceProps(analyticsListX, analyticsWebX = AnalyticsWeb) {
14
+ const key = `analytics`;
15
+ const AnalyticsSourceProps = prepSourceColumns({
16
+ key: key,
17
+ defType: key,
18
+ tenant: CurrentTenant,
19
+ webUrl: `${window.location.origin}${analyticsWebX}`,
20
+ webRelativeLink: `/lists/${analyticsListX}`,
21
+ searchSource: key,
22
+ searchSourceDesc: key,
23
+ listTitle: analyticsListX,
24
+ columns: ['*',],
25
+ searchProps: ['ID', 'Author/Title', 'Author/Office', 'SiteTitle', 'language', 'CodeVersion'],
26
+ selectThese: ['*', 'Author/Title', 'Author/Office', 'performance'],
27
+ isModern: true,
28
+ defSearchButtons: [],
29
+ orderBy: createSeriesSort('Id', false),
30
+ fetchCount: 5000,
31
+ performanceSettings: { label: 'analytics', updateMiliseconds: true, includeMsStr: true, op: 'fetch' },
32
+ fpsContentType: ['item'],
33
+ }, '');
34
+ return AnalyticsSourceProps;
35
+ }
36
+ //# sourceMappingURL=createAnalyticsSourceProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAnalyticsSourceProps.js","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,gFAAgF;AAChF,qFAAqF;AACrF,oFAAoF;AACpF,0FAA0F;AAC1F,yFAAyF;AAEzF,MAAM,UAAU,0BAA0B,CAAC,cAAsB,EAAG,gBAAwB,YAAY;IAEtG,MAAM,GAAG,GAAW,WAAW,CAAC;IAChC,MAAM,oBAAoB,GAAiB,iBAAiB,CAAE;QAC5D,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,aAAa,EAAE;QACnD,eAAe,EAAE,UAAU,cAAc,EAAE;QAC3C,YAAY,EAAE,GAAG;QACjB,gBAAgB,EAAE,GAAG;QACrB,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE,CAAE,GAAG,EAAG;QACjB,WAAW,EAAE,CAAE,IAAI,EAAE,cAAc,EAAC,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,CAAE;QAC7F,WAAW,EAAE,CAAC,GAAG,EAAE,cAAc,EAAC,eAAe,EAAE,aAAa,CAAE;QAClE,QAAQ,EAAE,IAAI;QACd,gBAAgB,EAAE,EAAE;QACpB,OAAO,EAAE,gBAAgB,CAAE,IAAI,EAAE,KAAK,CAAE;QACxC,UAAU,EAAE,IAAI;QAChB,mBAAmB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE;QACrG,cAAc,EAAE,CAAE,MAAM,CAAE;KAE3B,EAAE,EAAE,CAAE,CAAC;IAER,OAAO,oBAAoB,CAAC;AAE9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { IZFetchedAnalytics } from '../interfaces/IStateSourceA';
2
+ export interface IAnalyticsLinkIcon {
3
+ linkUrl: string;
4
+ iconName: string;
5
+ }
6
+ export declare const ProcessingRunIcon: string;
7
+ export type IAnalyticsLinkIconPriority = 'PageURL' | 'PageLink' | 'SiteLink';
8
+ export declare function getBestAnalyticsLinkAndIcon(item: IZFetchedAnalytics, gulpMe: boolean, priority: IAnalyticsLinkIconPriority[]): IAnalyticsLinkIcon;
9
+ //# sourceMappingURL=getBestAnalyticsLinkAndIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBestAnalyticsLinkAndIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-analytics/functions/getBestAnalyticsLinkAndIcon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAIjE,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,iBAAiB,EAAE,MAAwB,CAAC;AAEzD,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE7E,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,0BAA0B,EAAE,GAAG,kBAAkB,CA+BjJ"}
@@ -0,0 +1,32 @@
1
+ import { addGulpParam, removeGulpParam } from '../../../../components/atoms/Links/GulpLinks';
2
+ import { gulpParam1 } from '../../Links/CommonDevUrls';
3
+ export const ProcessingRunIcon = 'ProcessingRun';
4
+ export function getBestAnalyticsLinkAndIcon(item, gulpMe, priority) {
5
+ const result = {
6
+ linkUrl: '',
7
+ iconName: '',
8
+ };
9
+ let foundBest = false;
10
+ priority.map((col) => {
11
+ if (foundBest === true) {
12
+ // Already found first choice... do nothing more.
13
+ }
14
+ else if (col === 'PageURL' && item.PageURL) {
15
+ result.linkUrl = gulpMe === true ? `${item.PageURL}?${gulpParam1}` : item.PageURL;
16
+ result.iconName = gulpMe === true ? ProcessingRunIcon : 'Page';
17
+ foundBest = true;
18
+ }
19
+ else if (col === 'PageLink' && item.PageLink) {
20
+ result.linkUrl = gulpMe === true ? addGulpParam(item.PageLink.Url) : removeGulpParam(item.PageLink.Url);
21
+ result.iconName = gulpMe === true ? ProcessingRunIcon : 'Page';
22
+ foundBest = true;
23
+ }
24
+ else if (col === 'SiteLink' && item.SiteLink) {
25
+ result.linkUrl = gulpMe === true ? `${item.SiteLink.Url}?${gulpParam1}` : item.SiteLink.Url;
26
+ result.iconName = gulpMe === true ? ProcessingRunIcon : 'SharepointLogo';
27
+ foundBest = true;
28
+ }
29
+ });
30
+ return result;
31
+ }
32
+ //# sourceMappingURL=getBestAnalyticsLinkAndIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBestAnalyticsLinkAndIcon.js","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-analytics/funct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AS,GAAG,IAAI,CAAC;SAElB;aAAM,IAAI,GAAG,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,EAAE;YAC9C,MAAM,CAAC,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC5F,MAAM,CAAC,QAAQ,GAAG,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;YACzE,SAAS,GAAG,IAAI,CAAC;SAClB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IZFetchedAnalytics } from '../interfaces/IStateSourceA';
2
+ export declare function getPageTitle(item: IZFetchedAnalytics): string;
3
+ //# sourceMappingURL=getPageTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPageTitle.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-analytics/functions/getPageTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,wBAAgB,YAAY,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAM7D"}