@mikezimm/fps-core-v7 1.0.7 → 1.0.9

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 (234) 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/SpHttp/Groups/fetchWebGroupInfoAPI.d.ts +3 -0
  163. package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.d.ts.map +1 -0
  164. package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.js +44 -0
  165. package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.js.map +1 -0
  166. package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.d.ts +4 -0
  167. package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.d.ts.map +1 -0
  168. package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.js +55 -0
  169. package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.js.map +1 -0
  170. package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts +39 -0
  171. package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts.map +1 -0
  172. package/lib/components/molecules/SpHttp/doSpJsFetch.js +88 -0
  173. package/lib/components/molecules/SpHttp/doSpJsFetch.js.map +1 -0
  174. package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.d.ts +31 -0
  175. package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.d.ts.map +1 -0
  176. package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.js +6 -0
  177. package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.js.map +1 -0
  178. package/lib/components/molecules/process-results/CheckItemsResults.d.ts +5 -2
  179. package/lib/components/molecules/process-results/CheckItemsResults.d.ts.map +1 -1
  180. package/lib/components/molecules/process-results/CheckItemsResults.js.map +1 -1
  181. package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.d.ts +4 -0
  182. package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.d.ts.map +1 -0
  183. package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.js +16 -0
  184. package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.js.map +1 -0
  185. package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.d.ts +3 -0
  186. package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.d.ts.map +1 -0
  187. package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.js +10 -0
  188. package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.js.map +1 -0
  189. package/lib/components/molecules/source-props/Lists/getVX/SysLists.d.ts +46 -0
  190. package/lib/components/molecules/source-props/Lists/getVX/SysLists.d.ts.map +1 -0
  191. package/lib/components/molecules/source-props/Lists/getVX/SysLists.js +125 -0
  192. package/lib/components/molecules/source-props/Lists/getVX/SysLists.js.map +1 -0
  193. package/lib/components/molecules/state-source/IStateSource.d.ts.map +1 -1
  194. package/lib/components/molecules/state-source/IStateSource.js +2 -0
  195. package/lib/components/molecules/state-source/IStateSource.js.map +1 -1
  196. package/lib/logic/Math/getNumber.d.ts +12 -0
  197. package/lib/logic/Math/getNumber.d.ts.map +1 -0
  198. package/lib/logic/Math/getNumber.js +24 -0
  199. package/lib/logic/Math/getNumber.js.map +1 -0
  200. package/lib/logic/Math/labels.d.ts +26 -0
  201. package/lib/logic/Math/labels.d.ts.map +1 -0
  202. package/lib/logic/Math/labels.js +52 -0
  203. package/lib/logic/Math/labels.js.map +1 -0
  204. package/lib/logic/Math/rounding.d.ts +13 -0
  205. package/lib/logic/Math/rounding.d.ts.map +1 -0
  206. package/lib/logic/Math/rounding.js +30 -0
  207. package/lib/logic/Math/rounding.js.map +1 -0
  208. package/lib/logic/Strings/getStringArrayBasic.d.ts +26 -0
  209. package/lib/logic/Strings/getStringArrayBasic.d.ts.map +1 -0
  210. package/lib/logic/Strings/getStringArrayBasic.js +45 -0
  211. package/lib/logic/Strings/getStringArrayBasic.js.map +1 -0
  212. package/lib/logic/Strings/getWordsFromString.d.ts +28 -0
  213. package/lib/logic/Strings/getWordsFromString.d.ts.map +1 -0
  214. package/lib/logic/Strings/getWordsFromString.js +88 -0
  215. package/lib/logic/Strings/getWordsFromString.js.map +1 -0
  216. package/lib/logic/Strings/urlServices.d.ts +62 -0
  217. package/lib/logic/Strings/urlServices.d.ts.map +1 -0
  218. package/lib/logic/Strings/urlServices.js +193 -0
  219. package/lib/logic/Strings/urlServices.js.map +1 -0
  220. package/lib/types/fps-class/window/Window.d.ts +2 -2
  221. package/lib/types/fps-class/window/Window.d.ts.map +1 -1
  222. package/lib/types/fps-returns/common/IFpsErrorObject.d.ts +1 -0
  223. package/lib/types/fps-returns/common/IFpsErrorObject.d.ts.map +1 -1
  224. package/lib/types/react/IFPSJSX_Element.d.ts.map +1 -1
  225. package/package.json +1 -1
  226. package/lib/components/atoms/easy-pages/interfaces/IEasyAnalyticsHookProps.d.ts.map +0 -1
  227. package/lib/components/atoms/easy-pages/interfaces/IEasyAnalyticsHookProps.js.map +0 -1
  228. package/lib/types/fps-class/window/IFPSEnviro.js.map +0 -1
  229. package/lib/types/fps-class/window/IFPSWindowProps.d.ts +0 -73
  230. package/lib/types/fps-class/window/IFPSWindowProps.d.ts.map +0 -1
  231. package/lib/types/fps-class/window/IFPSWindowProps.js.map +0 -1
  232. /package/lib/{types/fps-class/window → banner/features/FPSDOM}/IFPSEnviro.js +0 -0
  233. /package/lib/{types/fps-class/window → banner/features/FPSDOM}/IFPSWindowProps.js +0 -0
  234. /package/lib/components/atoms/{easy-pages → easy-analytics}/interfaces/IEasyAnalyticsHookProps.js +0 -0
@@ -0,0 +1,88 @@
1
+ import { sortStringArrayCollator } from "../../logic/Arrays/sorting/strings";
2
+ import { getStringArrayBasic } from "./getStringArrayBasic";
3
+ /**
4
+ *
5
+ * Originally used in Compliance to get list of words from a string
6
+ * Updated 2023-03-28
7
+ *
8
+ * @param str
9
+ * @param removeDigits
10
+ * @returns array of words found
11
+ */
12
+ export function mergeArrayOfWordsFromString(str, intoThese, removeDigits, removeDups, ignoreCase, order, localLanguage = 'en') {
13
+ if (!str)
14
+ return [];
15
+ const theseWords = getArrayOfWordsFromString(str, removeDigits, removeDups, ignoreCase, order, localLanguage);
16
+ const results = mergeWordArrays(theseWords, intoThese, ignoreCase, order, localLanguage);
17
+ return results;
18
+ }
19
+ /**
20
+ * getArrayOfWordsFromString is a more advanced variation of getStringArrayBasic
21
+ * This will check for duplicates and also allow for using or ignoring case.
22
+ * Finally it also provides a built in option to sort.
23
+ *
24
+ * You can use getStringArrayBasic if you do not need any of those advanced options but to just split into words.
25
+ * @param str
26
+ * @param removeDigits
27
+ * @param removeDups
28
+ * @param ignoreCase
29
+ * @param order
30
+ * @param localLanguage
31
+ * @returns
32
+ */
33
+ export function getArrayOfWordsFromString(str, removeDigits, removeDups, ignoreCase, order, localLanguage = 'en') {
34
+ const results = [];
35
+ if (!str)
36
+ return results;
37
+ // let baseStr = `${str}`;
38
+ // if ( removeDigits === true ) baseStr = baseStr.replace(/[0-9]/g, ' ');
39
+ // baseStr = baseStr.replace( /[-_,&[\]]+/g, ' ' ); // Replace most common special characters
40
+ // baseStr = baseStr.replace( /[()]+/g, ' ' ); // Replace most common special characters
41
+ // baseStr = baseStr.replace( /[/\\]+/g, ' ' ); // Replace most common special characters
42
+ // baseStr = baseStr.replace( /[']+/g, ' ' ); // Replace most common special characters
43
+ // baseStr = baseStr.replace(/\s\s+/g, ' '); // Replace multiple spaces with just one
44
+ // // get array of original trimmed words and exclude empties
45
+ // const originalWords: string[] = baseStr.split(/\b([a-z]+)\b/gi).map( word => { return word.trim() } ).filter( word => { return word } );
46
+ const originalWords = getStringArrayBasic(`${str}`, removeDigits);
47
+ // Correct case of compare array of strings from str
48
+ let originalCompareWords = ignoreCase === true ? originalWords.map(item => { return item.toLocaleLowerCase(); }) : originalWords;
49
+ originalCompareWords = removeDups === true ? originalCompareWords.filter(item => { return item.toLocaleLowerCase(); }) : originalCompareWords;
50
+ let finalVals = [];
51
+ // finalCompare is used as a comparison for when case is important
52
+ // const finalCompare: string[] = ignoreCase === true ? finalVals.map( item => { return item.toLowerCase() } ) : finalVals;
53
+ if (removeDups !== true) {
54
+ // NOTE: If you do not remove dups, it currently does not check for ignoreCase
55
+ finalVals = [...finalVals, ...originalWords];
56
+ }
57
+ else {
58
+ const filteredCompareWords = []; // These are the same words but in lower case for comparison for duplicates
59
+ // only save unique words found in this str
60
+ originalWords.map((item, index) => {
61
+ const itemTest = originalCompareWords[index];
62
+ // First see if it's a duplicate in the original string str
63
+ if (filteredCompareWords.indexOf(itemTest) === -1) {
64
+ finalVals.push(item);
65
+ filteredCompareWords.push(itemTest);
66
+ }
67
+ });
68
+ }
69
+ if (order !== 'asis')
70
+ finalVals = sortStringArrayCollator(finalVals, order, false, localLanguage);
71
+ return finalVals;
72
+ }
73
+ export function mergeWordArrays(mergeThese, intoThese, ignoreCase, order, localLanguage = 'en') {
74
+ let finalWords = intoThese;
75
+ const finalCompareWords = ignoreCase === true ? finalWords.map(item => { return item.toLocaleLowerCase(); }) : finalWords;
76
+ const mergeTheseCompare = ignoreCase === true ? mergeThese.map(item => { return item.toLocaleLowerCase(); }) : mergeThese;
77
+ // Now compare the filteredNewWords with the finalWords and only add ones that are not a duplicate.
78
+ mergeTheseCompare.map((compareWord, index) => {
79
+ if (finalCompareWords.indexOf(compareWord) === -1) {
80
+ finalWords.push(mergeThese[index]);
81
+ finalCompareWords.push(compareWord);
82
+ }
83
+ });
84
+ if (order !== 'asis')
85
+ finalWords = sortStringArrayCollator(finalWords, order, false, localLanguage);
86
+ return finalWords;
87
+ }
88
+ //# sourceMappingURL=getWordsFromString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWordsFromString.js","sourceRoot":"","sources":["../../../src/logic/Strings/getWordsFromString.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;GAQG;AAEH,MAAM,UAAU,2BAA2B,CAAE,GAAW,EAAE,SAAmB,EAAE,YAAqB,EAAE,UAAmB,EAAE,UAAmB,EAAE,KAAkB,EAAE,gBAAwB,IAAI;IAE9L,IAAK,CAAC,GAAG;QAAG,OAAO,EAAE,CAAC;IACtB,MAAM,UAAU,GAAa,yBAAyB,CAAE,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,CAAE,CAAC;IAC1H,MAAM,OAAO,GAAa,eAAe,CAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,CAAE,CAAC;IACrG,OAAO,OAAO,CAAC;AAEjB,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,yBAAyB,CAAE,GAAW,EAAE,YAAqB,EAAE,UAAmB,EAAE,UAAmB,EAAE,KAAkB,EAAE,gBAAwB,IAAI;IACvK,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAK,CAAC,GAAG;QAAG,OAAO,OAAO,CAA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888b d8888b. d88888b .o88b. .d88b. d8888b. d88888b .d8888. d888888b d8888b. d888888b d8b db d888b
3
+ * 88' 888o 88 d8P Y8 .8P Y8. 88 `8D 88' 88 `8D 88' d8P Y8 .8P Y8. 88 `8D 88' 88' YP `~~88~~' 88 `8D `88' 888o 88 88' Y8b
4
+ * 88ooooo 88V8o 88 8P 88 88 88 88 88ooooo 88 88 88ooooo 8P 88 88 88 88 88ooooo `8bo. 88 88oobY' 88 88V8o 88 88
5
+ * 88~~~~~ 88 V8o88 8b 88 88 88 88 88~~~~~ 88 88 88~~~~~ 8b 88 88 88 88 88~~~~~ `Y8b. 88 88`8b 88 88 V8o88 88 ooo
6
+ * 88. 88 V888 Y8b d8 `8b d8' 88 .8D 88. 88 .8D 88. Y8b d8 `8b d8' 88 .8D 88. db 8D 88 88 `88. .88. 88 V888 88. ~8~
7
+ * Y88888P VP V8P `Y88P' `Y88P' Y8888D' Y88888P Y8888D' Y88888P `Y88P' `Y88P' Y8888D' Y88888P `8888Y' YP 88 YD Y888888P VP V8P Y888P
8
+ *
9
+ *
10
+ */
11
+ export declare function encodeDecodeString(str: string, doThis: 'encode' | 'decode'): string;
12
+ /***
13
+ * .o88b. db d88888b .d8b. d8b db .d8888. d8888b. db d888888b .d8888. d888888b db db d8888b. db
14
+ * d8P Y8 88 88' d8' `8b 888o 88 88' YP 88 `8D 88 `88' 88' YP `~~88~~' 88 88 88 `8D 88
15
+ * 8P 88 88ooooo 88ooo88 88V8o 88 `8bo. 88oodD' 88 88 `8bo. 88 88 88 88oobY' 88
16
+ * 8b 88 88~~~~~ 88~~~88 88 V8o88 `Y8b. 88~~~ 88 88 `Y8b. 88 88 88 88`8b 88
17
+ * Y8b d8 88booo. 88. 88 88 88 V888 db 8D 88 88booo. .88. db 8D 88 88b d88 88 `88. 88booo.
18
+ * `Y88P' Y88888P Y88888P YP YP VP V8P `8888Y' 88 Y88888P Y888888P `8888Y' YP ~Y8888P' 88 YD Y88888P
19
+ *
20
+ *
21
+ */
22
+ /**
23
+ * SharePoint automatically removes characters from library names
24
+ *
25
+ * @param str
26
+ */
27
+ export declare function cleanSPListURL(str: string): string;
28
+ /***
29
+ * .o88b. db d88888b .d8b. d8b db db db d8888b. db
30
+ * d8P Y8 88 88' d8' `8b 888o 88 88 88 88 `8D 88
31
+ * 8P 88 88ooooo 88ooo88 88V8o 88 88 88 88oobY' 88
32
+ * 8b 88 88~~~~~ 88~~~88 88 V8o88 88 88 88`8b 88
33
+ * Y8b d8 88booo. 88. 88 88 88 V888 88b d88 88 `88. 88booo.
34
+ * `Y88P' Y88888P Y88888P YP YP VP V8P ~Y8888P' 88 YD Y88888P
35
+ *
36
+ *
37
+ */
38
+ export declare function cleanURL(originalURL: String): string;
39
+ /**
40
+ * NOTE This only works when the /sites/ you are refering to is in the same tenant
41
+ * @param relUrl
42
+ */
43
+ export declare function getFullUrlFromSlashSitesUrl(relUrl: string, showConsole?: boolean): string;
44
+ export declare function getSiteCollectionUrlFromLink(link: string): string;
45
+ export declare const regexMultiFwdSlash: RegExp;
46
+ export declare const regexInsecureProtocall: RegExp;
47
+ export declare const regexSecureProtocall: RegExp;
48
+ export declare const regexAnyProtocoll: RegExp;
49
+ /**
50
+ * Copied from SecureScript
51
+ *
52
+ * This coverts any Url to serverRelativeUrl style (starts with /sites/) if it's on tenant ( removes the current hostname )
53
+ * The special part about it is it also:
54
+ * handles different cAsEs of the protocall and origin
55
+ * cleans up cases with extra // in back part of url: like /sites/test///anotherUrl
56
+ * handles both http: and https: links
57
+ *
58
+ * @param url
59
+ * @returns
60
+ */
61
+ export declare function standardizeLocalLink(url: string): string;
62
+ //# sourceMappingURL=urlServices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlServices.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/urlServices.ts"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEF,wBAAgB,kBAAkB,CAAE,GAAG,EAAG,MAAM,EAAG,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAwCrF;AAEH;;;;;;;;;GASG;AACH;;;;GAIG;AACF,wBAAgB,cAAc,CAAE,GAAG,EAAG,MAAM,GAAI,MAAM,CAGpD;AAED;;;;;;;;;GASG;AAMH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAoBlD;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAE,MAAM,EAAG,MAAM,EAAE,WAAW,GAAE,OAAc,GAAI,MAAM,CAapG;AAWH,wBAAgB,4BAA4B,CAAE,IAAI,EAAE,MAAM,GAAI,MAAM,CAUnE;AAGD,eAAO,MAAM,kBAAkB,QAAS,CAAC;AACzC,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AACtD,eAAO,MAAM,oBAAoB,QAAmB,CAAC;AAErD,eAAO,MAAM,iBAAiB,QAAmB,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAE,GAAG,EAAG,MAAM,GAAI,MAAM,CAuB3D"}
@@ -0,0 +1,193 @@
1
+ // import { cleanSPListURL, cleanURL, encodeDecodeString, } from '@mikezimm/npmfunctions/dist/Services/Strings/urlServices';
2
+ import { check4This } from "../Links/CheckSearch";
3
+ // import { check4This } from "@mikezimm/fps-pnp2/lib/services/sp/CheckSearch";
4
+ /***
5
+ * d88888b d8b db .o88b. .d88b. d8888b. d88888b d8888b. d88888b .o88b. .d88b. d8888b. d88888b .d8888. d888888b d8888b. d888888b d8b db d888b
6
+ * 88' 888o 88 d8P Y8 .8P Y8. 88 `8D 88' 88 `8D 88' d8P Y8 .8P Y8. 88 `8D 88' 88' YP `~~88~~' 88 `8D `88' 888o 88 88' Y8b
7
+ * 88ooooo 88V8o 88 8P 88 88 88 88 88ooooo 88 88 88ooooo 8P 88 88 88 88 88ooooo `8bo. 88 88oobY' 88 88V8o 88 88
8
+ * 88~~~~~ 88 V8o88 8b 88 88 88 88 88~~~~~ 88 88 88~~~~~ 8b 88 88 88 88 88~~~~~ `Y8b. 88 88`8b 88 88 V8o88 88 ooo
9
+ * 88. 88 V888 Y8b d8 `8b d8' 88 .8D 88. 88 .8D 88. Y8b d8 `8b d8' 88 .8D 88. db 8D 88 88 `88. .88. 88 V888 88. ~8~
10
+ * Y88888P VP V8P `Y88P' `Y88P' Y8888D' Y88888P Y8888D' Y88888P `Y88P' `Y88P' Y8888D' Y88888P `8888Y' YP 88 YD Y888888P VP V8P Y888P
11
+ *
12
+ *
13
+ */
14
+ export function encodeDecodeString(str, doThis) {
15
+ //https://abstractspaces.wordpress.com/2008/05/07/sharepoint-column-names-internal-name-mappings-for-non-alphabet/
16
+ let newStr = str + '';
17
+ newStr = newStr.replace(/_x007e_/g, '~');
18
+ newStr = newStr.replace(/_x0021_/g, '!');
19
+ newStr = newStr.replace(/_x0040_/g, '@');
20
+ newStr = newStr.replace(/_x0023_/g, '#');
21
+ newStr = newStr.replace(/_x0024_/g, '$');
22
+ newStr = newStr.replace(/_x0025_/g, '%');
23
+ newStr = newStr.replace(/_x005e_/g, '^');
24
+ newStr = newStr.replace(/_x0026_/g, '&');
25
+ newStr = newStr.replace(/_x002a_/g, '*');
26
+ newStr = newStr.replace(/_x0028_/g, '(');
27
+ newStr = newStr.replace(/_x0029_/g, ')');
28
+ newStr = newStr.replace(/_x002b_/g, '+');
29
+ newStr = newStr.replace(/_x002d_/g, '\–');
30
+ newStr = newStr.replace(/_x003d_/g, '=');
31
+ newStr = newStr.replace(/_x007b_/g, '{');
32
+ newStr = newStr.replace(/_x007d_/g, '}');
33
+ newStr = newStr.replace(/_x003a_/g, ':');
34
+ newStr = newStr.replace(/_x0022_/g, '\“');
35
+ newStr = newStr.replace(/_x007c_/g, '|');
36
+ newStr = newStr.replace(/_x003b_/g, ';');
37
+ newStr = newStr.replace(/_x0027_/g, '\‘');
38
+ newStr = newStr.replace(/_x005c_/g, '\\');
39
+ newStr = newStr.replace(/_x003c_/g, '\<');
40
+ newStr = newStr.replace(/_x003e_/g, '\>');
41
+ newStr = newStr.replace(/_x003f_/g, '?');
42
+ newStr = newStr.replace(/_x002c_/g, ',');
43
+ newStr = newStr.replace(/_x002e_/g, '.');
44
+ newStr = newStr.replace(/_x002f_/g, '/');
45
+ newStr = newStr.replace(/_x0060_/g, '`');
46
+ newStr = newStr.replace(/_x0020_/g, ' ');
47
+ newStr = newStr.replace(/_x005f_/g, '_');
48
+ newStr = newStr.replace(/_/g, '_');
49
+ return newStr;
50
+ }
51
+ /***
52
+ * .o88b. db d88888b .d8b. d8b db .d8888. d8888b. db d888888b .d8888. d888888b db db d8888b. db
53
+ * d8P Y8 88 88' d8' `8b 888o 88 88' YP 88 `8D 88 `88' 88' YP `~~88~~' 88 88 88 `8D 88
54
+ * 8P 88 88ooooo 88ooo88 88V8o 88 `8bo. 88oodD' 88 88 `8bo. 88 88 88 88oobY' 88
55
+ * 8b 88 88~~~~~ 88~~~88 88 V8o88 `Y8b. 88~~~ 88 88 `Y8b. 88 88 88 88`8b 88
56
+ * Y8b d8 88booo. 88. 88 88 88 V888 db 8D 88 88booo. .88. db 8D 88 88b d88 88 `88. 88booo.
57
+ * `Y88P' Y88888P Y88888P YP YP VP V8P `8888Y' 88 Y88888P Y888888P `8888Y' YP ~Y8888P' 88 YD Y88888P
58
+ *
59
+ *
60
+ */
61
+ /**
62
+ * SharePoint automatically removes characters from library names
63
+ *
64
+ * @param str
65
+ */
66
+ export function cleanSPListURL(str) {
67
+ return str.replace(/\s\%\&\?\.\+/g, '');
68
+ }
69
+ /***
70
+ * .o88b. db d88888b .d8b. d8b db db db d8888b. db
71
+ * d8P Y8 88 88' d8' `8b 888o 88 88 88 88 `8D 88
72
+ * 8P 88 88ooooo 88ooo88 88V8o 88 88 88 88oobY' 88
73
+ * 8b 88 88~~~~~ 88~~~88 88 V8o88 88 88 88`8b 88
74
+ * Y8b d8 88booo. 88. 88 88 88 V888 88b d88 88 `88. 88booo.
75
+ * `Y88P' Y88888P Y88888P YP YP VP V8P ~Y8888P' 88 YD Y88888P
76
+ *
77
+ *
78
+ */
79
+ //Sample to convert to arrow function
80
+ //const sum1 = function(list, prop){ return list.reduce( function(a, b){ return a + b[prop];}, 0);}
81
+ //const sum2 = (list,prop) => { return list.reduce((a,b) => {return (a+ b[prop])}, 0);}
82
+ export function cleanURL(originalURL) {
83
+ let newURL = originalURL.toLowerCase();
84
+ if (newURL.indexOf('/sitepages/') > 0) {
85
+ return newURL.substring(0, newURL.indexOf('/sitepages/') + 1);
86
+ }
87
+ if (newURL.indexOf('/lists/') > 0) {
88
+ return newURL.substring(0, newURL.indexOf('/lists/') + 1);
89
+ }
90
+ if (newURL.indexOf('/siteassets/') > 0) {
91
+ return newURL.substring(0, newURL.indexOf('/siteassets/') + 1);
92
+ }
93
+ if (newURL.indexOf('/_layouts/') > 0) {
94
+ return newURL.substring(0, newURL.indexOf('/_layouts/') + 1);
95
+ }
96
+ if (newURL.indexOf('/documents/') > 0) {
97
+ return newURL.substring(0, newURL.indexOf('/documents/') + 1);
98
+ }
99
+ if (newURL.indexOf('/shared documents/') > 0) {
100
+ return newURL.substring(0, newURL.indexOf('/shared documents/') + 1);
101
+ }
102
+ if (newURL.indexOf('/shared%20documents/') > 0) {
103
+ return newURL.substring(0, newURL.indexOf('/shared%20documents/') + 1);
104
+ }
105
+ if (newURL.indexOf('/forms/') > 0) {
106
+ newURL = newURL.substring(0, newURL.indexOf('/forms/'));
107
+ newURL = newURL.substring(0, newURL.indexOf('/') + 1);
108
+ return newURL;
109
+ }
110
+ if (newURL.indexOf('/pages/') > 0) {
111
+ return newURL.substring(0, newURL.indexOf('/pages/') + 1);
112
+ }
113
+ if (newURL.substring(newURL.length - 1) !== '/') {
114
+ return newURL + '/';
115
+ }
116
+ return newURL;
117
+ }
118
+ /**
119
+ * NOTE This only works when the /sites/ you are refering to is in the same tenant
120
+ * @param relUrl
121
+ */
122
+ export function getFullUrlFromSlashSitesUrl(relUrl, showConsole = true) {
123
+ if (relUrl === undefined || relUrl === null) {
124
+ relUrl = '';
125
+ }
126
+ let newURL = relUrl + '';
127
+ //Added this to prevent errors in next
128
+ if (!relUrl || relUrl.length === 0) {
129
+ newURL = '';
130
+ }
131
+ if (relUrl.indexOf('/sites/') === 0) {
132
+ // let domain = window.location.href.substr( 0, window.location.href.indexOf('/sites/') );
133
+ newURL = window.location.origin + relUrl;
134
+ if (check4This('prepSource') === true) {
135
+ console.log('updated Url to: ', newURL);
136
+ }
137
+ }
138
+ return newURL;
139
+ }
140
+ // window.location properties
141
+ // host: "tenant.sharepoint.com"
142
+ // hostname: "tenant.sharepoint.com"
143
+ // href: "https://tenant.sharepoint.com/sites/WebPartDev/SitePages/ECStorage.aspx?debug=true&noredir=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&allowOtherSites=true&scenario=dev"
144
+ // origin: "https://tenant.sharepoint.com"
145
+ // pathname: "/sites/WebPartDev/SitePages/ECStorage.aspx"
146
+ // protocol: "https:"
147
+ // search: "?debug=true&noredir=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&allowOtherSites=true&scenario=dev"
148
+ export function getSiteCollectionUrlFromLink(link) {
149
+ if (!link || link.length === 0) {
150
+ link = window.location.pathname;
151
+ }
152
+ else if (link.indexOf('http') === 0) {
153
+ link = link.replace(window.location.origin, '');
154
+ }
155
+ //At this point, link should be relative url /sites/collection....
156
+ let parts = link.split('/');
157
+ let collectionUrl = `${window.location.origin}/sites/${parts[2]}`;
158
+ return collectionUrl;
159
+ }
160
+ export const regexMultiFwdSlash = /\/+/g;
161
+ export const regexInsecureProtocall = /(http:\/\/)/ig;
162
+ export const regexSecureProtocall = /(https:\/\/)/ig;
163
+ export const regexAnyProtocoll = /https?:\/\/+/ig; // https:// or hTTps:// or http://
164
+ /**
165
+ * Copied from SecureScript
166
+ *
167
+ * This coverts any Url to serverRelativeUrl style (starts with /sites/) if it's on tenant ( removes the current hostname )
168
+ * The special part about it is it also:
169
+ * handles different cAsEs of the protocall and origin
170
+ * cleans up cases with extra // in back part of url: like /sites/test///anotherUrl
171
+ * handles both http: and https: links
172
+ *
173
+ * @param url
174
+ * @returns
175
+ */
176
+ export function standardizeLocalLink(url) {
177
+ //1.) remove the hostname from a link
178
+ let newUrl = url.toLowerCase().indexOf(`${window.location.origin}`) === 0 ? url.slice(window.location.origin.length) : url;
179
+ //2.) %3a with : if it is pasted in
180
+ newUrl = newUrl.replace(/%3a/gi, ':');
181
+ //2.) get backHalf of url ( any part after https:// )
182
+ let proto = newUrl.toLowerCase().indexOf('http://') === 0 ? 'http://' : newUrl.toLowerCase().indexOf('https://') === 0 ? 'https://' : '';
183
+ let backHalf = newUrl.slice(proto.length);
184
+ backHalf = backHalf.replace(regexSecureProtocall, 'regexSecureProtocall').replace(regexInsecureProtocall, 'regexInsecureProtocall');
185
+ //3.) remove any non-protocol multi-slashes from back half of url
186
+ backHalf = backHalf.replace(regexMultiFwdSlash, '\/');
187
+ //4.) add back any protocols that might be part of paramters (so they still have // in them )
188
+ backHalf = backHalf.replace(/regexSecureProtocall/g, 'https://');
189
+ backHalf = backHalf.replace(/regexInsecureProtocall/g, 'http://');
190
+ let result = proto + backHalf;
191
+ return result;
192
+ }
193
+ //# sourceMappingURL=urlServices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlServices.js","sourceRoot":"","sources":["../../../src/logic/Strings/urlServices.ts"],"names":[],"mappings":"AAEA,4HAA4H;AAE5H,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,+EAA+E;AAE/E;;;;;;;;;GASG;AAEF,MAAM,UAAU,kBAAkB,CAAE,GAAY,EAAG,MAA2B;IAE3E,kHAAkH;IAElH,IAAI,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC;IACtB,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,EAAC,GAAG,CAAC,CAAC;IACxC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,EAAC,GAAG,CAAC,CAAC;IACxC,MAAM,GAA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CAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAE/H,mCAAmC;IACnC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,EAAC,GAAG,CAAC,CAAC;IAErC,qDAAqD;IACrD,IAAI,KAAK,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IACzI,IAAI,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAE,KAAK,CAAC,MAAM,CAAE,CAAC;IAC5C,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAE,oBAAoB,EAAC,sBAAsB,CAAE,CAAC,OAAO,CAAE,sBAAsB,EAAC,wBAAwB,CAAE,CAAC;IAEtI,iEAAiE;IACjE,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAE,kBAAkB,EAAE,IAAI,CAAE,CAAC;IAExD,6FAA6F;IAC7F,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAE,uBAAuB,EAAE,UAAU,CAAE,CAAC;IACnE,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAE,yBAAyB,EAAE,SAAS,CAAE,CAAC;IAEpE,IAAI,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC9B,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { IFPSUser } from "../../../logic/Users/IUserInterfaces";
2
2
  import { IFPSEasyIcons } from "../../../components/atoms/easy-icons/interfaces/IFPSEasyIcons";
3
3
  import { LegacyPageContextCopy_15_2, PageContextCopy_15_2 } from "../../@msft/1.15.2/WebPartContext";
4
- import { IFPSEnviro } from "./IFPSEnviro";
5
- import { IFPSWindowProps } from "./IFPSWindowProps";
4
+ import { IFPSEnviro } from "../../../banner/features/FPSDOM/IFPSEnviro";
5
+ import { IFPSWindowProps } from "../../../banner/features/FPSDOM/IFPSWindowProps";
6
6
  export interface IFPSWindow {
7
7
  FPSUser: IFPSUser;
8
8
  FPSOptions: IFPSWindowProps;
@@ -1 +1 @@
1
- {"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-class/window/Window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,UAAU;IAEzB,OAAO,EAAE,QAAQ,CAAC;IAElB,UAAU,EAAE,eAAe,CAAC;IAE5B,SAAS,EAAE,UAAU,CAAC;IAGtB,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAExC,YAAY,CAAC,EAAE,aAAa,CAAC;CAE9B"}
1
+ {"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-class/window/Window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAElF,MAAM,WAAW,UAAU;IAEzB,OAAO,EAAE,QAAQ,CAAC;IAElB,UAAU,EAAE,eAAe,CAAC;IAE5B,SAAS,EAAE,UAAU,CAAC;IAGtB,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAExC,YAAY,CAAC,EAAE,aAAa,CAAC;CAE9B"}
@@ -6,6 +6,7 @@ export interface IBlankErrorObj {
6
6
  status: IFPSResultStatus;
7
7
  statusNo?: number;
8
8
  statusText?: string;
9
+ ok: boolean;
9
10
  e: any;
10
11
  fpsContentType?: IFPSBaseContentType[];
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IFpsErrorObject.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/common/IFpsErrorObject.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,GAAG,CAAC;IACP,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACxC;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElH;;;GAGG;AAEH,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE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wB,SAAQ,OAAO;CAAI"}
1
+ {"version":3,"file":"IFPSJSX_Element.d.ts","sourceRoot":"","sources":["../../../src/types/react/IFPSJSX_Element.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAwB,SAAQ,OAAO;CAItD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-core-v7",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Library of reusable core interfaces, types and constants migrated from fps-library-v2",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEasyAnalyticsHookProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-pages/interfaces/IEasyAnalyticsHookProps.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAG9D,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,oBAAoB,EAAE,qBAAqB,CAAC;CAE7C;AAED,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;AAC5G,eAAO,MAAM,aAAa,EAAE,aAAa,EAAgF,CAAC;AAE1H,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAC5E,eAAO,MAAM,UAAU,EAAE,WAAW,EAAqD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEasyAnalyticsHookProps.js","sourceRoot":"","sources":["../../../../../src/components/atoms/easy-pages/interfaces/IEasyAnalyticsHookProps.tsx"],"names":[],"mappings":"AAAA;;GAEG;AA4BH,MAAM,CAAC,MAAM,aAAa,GAAoB,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AAG1H,MAAM,CAAC,MAAM,UAAU,GAAkB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFPSEnviro.js","sourceRoot":"","sources":["../../../../src/types/fps-class/window/IFPSEnviro.ts"],"names":[],"mappings":""}
@@ -1,73 +0,0 @@
1
- /**
2
- * Minimal object required for styling and page changes
3
- */
4
- export interface IFPSMinimal {
5
- title: string;
6
- original: any;
7
- wpInstanceID: any;
8
- history: string[];
9
- attempted: boolean;
10
- value: any;
11
- success: number;
12
- errors: number;
13
- }
14
- /**
15
- * Object stored in window for a ALL FPS Webpart Settings
16
- */
17
- export interface IFPSWindowProps {
18
- page: IFPSPage;
19
- sections: IFPSSection;
20
- pageHeader?: IFPSMinimal;
21
- spsocialbar: IFPSMinimal;
22
- quicklaunch: IFPSMinimal;
23
- toolBar: IFPSSectionStyle;
24
- expando: IFPSMinimal;
25
- }
26
- /**
27
- * Object stored in window for a specific type of Page change request
28
- */
29
- export interface IFPSPage {
30
- attempted: boolean;
31
- title: string;
32
- wpInstanceID: any;
33
- do: boolean | null;
34
- errors: number;
35
- success: number;
36
- Style: string | null;
37
- Array: any[] | any | null;
38
- }
39
- /**
40
- * Minimal object needed to kick off a Section Style change request
41
- * keys should also be found on IFPSSectionStyle.
42
- */
43
- export interface IFPSSectionRequest {
44
- do: boolean | null;
45
- value: any;
46
- }
47
- /**
48
- * Object stored in window for a specific type of Style change request
49
- */
50
- export interface IFPSSectionStyle {
51
- title: string;
52
- cssProp: string;
53
- wpInstanceID: any;
54
- history: string[];
55
- attempted: boolean;
56
- do: boolean | null;
57
- value: any;
58
- original: any;
59
- errors: number;
60
- success: number;
61
- }
62
- /**
63
- * Object stored in window for ALL Style change requests
64
- */
65
- export interface IFPSSection {
66
- summary: {
67
- success: number;
68
- errors: number;
69
- };
70
- maxWidth: IFPSSectionStyle;
71
- marginTB: IFPSSectionStyle;
72
- }
73
- //# sourceMappingURL=IFPSWindowProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFPSWindowProps.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-class/window/IFPSWindowProps.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,GAAG,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC;IAItB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,GAAG,CAAC;IAClB,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,GAAG,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAA;KACf,CAAC;IACF,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFPSWindowProps.js","sourceRoot":"","sources":["../../../../src/types/fps-class/window/IFPSWindowProps.ts"],"names":[],"mappings":"AAAA,2EAA2E"}