@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,182 @@
1
+ import { MinFileObjectSelects, MinFileSelects } from "../../AnyContent/IFPSFileObject";
2
+ import { ItemIsADocSet, ItemIsADraft, ItemIsAFile, ItemIsAFileObject, ItemIsAMajor, ItemIsANewsLink, ItemIsANewsPost, ItemIsAPage, ItemIsCheckedOut, ItemIsCodeContent, ItemIsFolderContent, ItemIsPublished, ItemIsUnPublished } from "../../AnyContent/IsA/IFPSItemIsA";
3
+ import { ALLProgrammingFileKeys } from "../../SearchPage/Interfaces/ProgrammingFileKeys";
4
+ import { addItemIsA } from "./addItemIsA";
5
+ export function addSearchFileDataItemsV2(items, sourceProps, SearchTypes) {
6
+ items.map((item) => {
7
+ item = addSearchFileDataV2(item, sourceProps, SearchTypes);
8
+ });
9
+ return items;
10
+ }
11
+ export function check4MissingSelects(item, selects) {
12
+ const missing = [];
13
+ selects.map(select => {
14
+ if (!item[select] && item[select] !== 0)
15
+ missing.push(select);
16
+ });
17
+ if (missing.length > 0)
18
+ console.log(`check4MissingSelects:`, missing, item);
19
+ return missing.length > 0 ? true : false;
20
+ }
21
+ export function addSearchFileDataV2(item, sourceProps, SearchTypes) {
22
+ // if ( item.File || item.FileSizeDisplay || item.FileLeafRef || item.FileRef || item.File_x0020_Type || item.DocIcon || item.FirstPublishedDate ) { // removed item.FirstPublishedDate because Hubs data had item.FirstPublishedDate which caused issues.
23
+ if (item.File || item.FileSizeDisplay || item.FileLeafRef || item.FileRef || item.File_x0020_Type || item.DocIcon) {
24
+ // Item is a file
25
+ item = addItemIsA(item, ItemIsAFileObject);
26
+ }
27
+ else {
28
+ return item;
29
+ }
30
+ if (check4MissingSelects(item, MinFileObjectSelects) === false) {
31
+ }
32
+ item.FPSItem.File.fileDisplayName = ''; //Basically the file name but without extension
33
+ // Added this in case File is not expanded but there is a FileRef
34
+ if (!item.File && (item.FileRef || item.ServerRelativeUrl)) {
35
+ item.File = {
36
+ ServerRelativeUrl: item.ServerRelativeUrl ? item.ServerRelativeUrl : item.FileRef,
37
+ };
38
+ }
39
+ // This loop was originally in addDateTimeFileInfoSearch
40
+ // Added this to flatten file url for easier use
41
+ if (item.File && item.File.ServerRelativeUrl) {
42
+ item['File/ServerRelativeUrl'] = item.File.ServerRelativeUrl;
43
+ // https://github.com/mikezimm/pivottiles7/issues/314
44
+ const FileLeafRef = item.File.FileLeafRef ? item.File.FileLeafRef : item.File.ServerRelativeUrl.substring(item.File.ServerRelativeUrl.lastIndexOf('/') + 1);
45
+ if (!item.File.FileRef)
46
+ item.File.FileRef = item.File.ServerRelativeUrl;
47
+ if (!item.File.Name)
48
+ item.File.Name = FileLeafRef;
49
+ if (!item.File.FileLeafRef)
50
+ item.File.FileLeafRef = FileLeafRef;
51
+ item.FPSItem.File ? item.FPSItem.File.valid = true : item.FPSItem.File = {
52
+ valid: true,
53
+ fileDisplayName: FileLeafRef,
54
+ };
55
+ }
56
+ //https://github.com/mikezimm/Compliance/issues/121
57
+ if (item.FileSizeDisplay)
58
+ item.FPSItem.File.fileSizeNumber = parseInt(item.FileSizeDisplay);
59
+ let { searchTitle, searchDesc, } = item.FPSItem.Search;
60
+ let searchType = item.FPSItem.Search.type;
61
+ if (item.FileSystemObjectType === 1) {
62
+ /**
63
+ * THIS IS A FOLDER
64
+ */
65
+ item = addItemIsA(item, ItemIsFolderContent);
66
+ const thisContentType = item[`ContentType/Name`] ? item[`ContentType/Name`] : 'Unknown';
67
+ if (thisContentType.indexOf(`Document Set`) > -1) {
68
+ searchType = 'docset';
69
+ item[`File_x0020_Type`] = 'docset';
70
+ searchTitle = item.FileLeafRef ? item.FileLeafRef : '';
71
+ searchDesc = item.Description ? item.Description : '';
72
+ item = addItemIsA(item, ItemIsADocSet);
73
+ }
74
+ else {
75
+ searchType = 'folder';
76
+ item[`File_x0020_Type`] = 'folder';
77
+ searchTitle = item.FileLeafRef ? item.FileLeafRef : ''; //webRelativeLink
78
+ const webLink = `${sourceProps.webUrl}${sourceProps.webRelativeLink ? sourceProps.webRelativeLink : ''}`;
79
+ const fileRelativeLink = item.FileRef && item.FileRef.indexOf(webLink) === 0 ?
80
+ item.FileRef.substring(webLink.length) : item.FileRef ? item.FileRef : '';
81
+ searchDesc = item.Description ? item.Description : !item.FileLeafRef ? '' : fileRelativeLink.substring(0, fileRelativeLink.lastIndexOf(item.FileLeafRef) - 1);
82
+ item = addItemIsA(item, ItemIsFolderContent);
83
+ }
84
+ }
85
+ else if (item.FileSystemObjectType === 0) {
86
+ /**
87
+ * THIS IS A FILE
88
+ */
89
+ if (check4MissingSelects(item, MinFileSelects) === false) { }
90
+ item = addItemIsA(item, ItemIsAFile);
91
+ /**
92
+ * OData__OriginalSourceUrl is a hidden column in SharePoint Online that is used to store the original URL of a document that was uploaded to SharePoint.
93
+ * This column is used by the SharePoint Online search engine to crawl and index documents.
94
+ * It is not recommended to modify or delete this column as it can cause issues with search results and other SharePoint Online features¹.
95
+
96
+ I hope this helps! Let me know if you have any other questions.
97
+
98
+ Source: Conversation with Bing, 7/6/2023
99
+ (1) Use OData query operations in SharePoint REST requests. https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests.
100
+ (2) OData Source for SharePoint Online - social.msdn.microsoft.com. https://social.msdn.microsoft.com/Forums/en-US/58807617-90aa-48e3-a06f-9582b683d8de/odata-source-for-sharepoint-online?forum=sharepointadmin.
101
+ (3) Working with SharePoint Online through OData v4 Endpoint - KingswaySoft. http://www.kingswaysoft.com/blog/2021/06/29/Working-with-SharePoint-Online-through-OData-v4-Endpoint.
102
+ (4) Using OData sources with Business Connectivity Services in SharePoint .... https://learn.microsoft.com/en-us/sharepoint/dev/general-development/using-odata-sources-with-business-connectivity-services-in-sharepoint.
103
+ */
104
+ if (item.DocIcon === 'aspx' || item.File_x0020_Type === 'aspx') {
105
+ /**
106
+ * THIS IS A PAGE
107
+ */
108
+ searchDesc = item.Description;
109
+ searchType = 'page';
110
+ item.FPSItem.File.fileDisplayName = item.FileLeafRef ? item.FileLeafRef.replace(`.aspx`, '') : ''; // eslint-disable-line dot-notation
111
+ searchTitle = item.Title ? item.Title : item.FPSItem.File.fileDisplayName;
112
+ if (item.OData__OriginalSourceUrl !== null) {
113
+ item = addItemIsA(item, ItemIsANewsLink);
114
+ }
115
+ else if (item.PromotedState === 1 || item.PromotedState === 2) {
116
+ item = addItemIsA(item, ItemIsANewsPost);
117
+ }
118
+ else {
119
+ item = addItemIsA(item, ItemIsAPage);
120
+ }
121
+ }
122
+ else { // This is a normal file
123
+ /**
124
+ * THIS IS A NORMAL FILE
125
+ */
126
+ searchType = item.DocIcon ? item.DocIcon : item.File_x0020_Type ? item.File_x0020_Type : ``;
127
+ item.FPSItem.File.fileDisplayName = item.FileLeafRef ? item.FileLeafRef.replace(`.${item.DocIcon}`, '') : ''; // eslint-disable-line dot-notation
128
+ searchTitle = item['FileLeafRef'] ? item['FileLeafRef'] : 'No Filename to show'; // eslint-disable-line dot-notation
129
+ searchDesc = item.Description ? item.Description : ``;
130
+ if (!searchType) {
131
+ const extIdx = item.FileRef ? item.FileRef.lastIndexOf('.') : -1;
132
+ searchType = item.FileRef ? item.FileRef.substring(extIdx + 1) : '';
133
+ }
134
+ }
135
+ const libUrl = `${sourceProps.webUrl}${sourceProps.webRelativeLink ? sourceProps.webRelativeLink : ''}`;
136
+ const folderString = item.FileRef && libUrl ? item.FileRef.replace(libUrl, '').replace(`/${item.FileLeafRef}`, '') : '';
137
+ const folderTree = folderString ? folderString.indexOf('/') === 0 ? folderString.substring(1).split('/') : folderString.split('/') : [];
138
+ item.FPSItem.File.folderString = folderString;
139
+ item.FPSItem.File.folderTree = folderTree;
140
+ }
141
+ else {
142
+ // Need to fix select statements
143
+ console.log('addSearchFileDataV2: You need to update select statements to include FileSystemObjectType ~ 171', item);
144
+ }
145
+ if (!searchType)
146
+ searchType = sourceProps.defType;
147
+ if (!searchTitle)
148
+ searchTitle = item.Title ? item.Title : ``;
149
+ if (!searchDesc)
150
+ searchDesc = 'Other Type Search Desc';
151
+ let searchTypeIdx = SearchTypes.keys.indexOf(item.FPSItem.Search.type);
152
+ item.FPSItem.Search.searchTitle = searchTitle;
153
+ item.FPSItem.Search.searchDesc = searchDesc;
154
+ // 2023-02-13: This is needed because sometimes the type is not found and this will prevent crashes
155
+ if (searchTypeIdx > -1 && SearchTypes.objs[searchTypeIdx]) {
156
+ item.FPSItem.Search.searchTypes.push(SearchTypes.objs[searchTypeIdx]);
157
+ item.FPSItem.Search.searchTypeIdx = searchTypeIdx;
158
+ }
159
+ item.FPSItem.Search.type = searchType;
160
+ const minorVersion = item.OData__UIVersionString && item.OData__UIVersionString.split('.')[1] !== '0' ? true : false;
161
+ if (minorVersion === true) {
162
+ item = addItemIsA(item, ItemIsADraft);
163
+ }
164
+ else if (item.OData__UIVersionString) {
165
+ item = addItemIsA(item, ItemIsAMajor);
166
+ }
167
+ ;
168
+ if (item.PromotedState === 1) {
169
+ item = addItemIsA(item, ItemIsUnPublished);
170
+ }
171
+ else if (item.PromotedState === 2) {
172
+ item = addItemIsA(item, ItemIsPublished);
173
+ }
174
+ if (item['File_x0020_Type'] && ALLProgrammingFileKeys.indexOf(item['File_x0020_Type']) > -1) {
175
+ item = addItemIsA(item, ItemIsCodeContent);
176
+ }
177
+ if (item.CheckoutUserId) {
178
+ item = addItemIsA(item, ItemIsCheckedOut);
179
+ }
180
+ return item;
181
+ }
182
+ //# sourceMappingURL=addSearchFileV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addSearchFileV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import { IFPSItemPerson } from "../../AnyContent/IFPSItemPerson";
3
+ import { IFPSItemTime } from "../../AnyContent/IFPSItemTime";
4
+ import { ISourceSearch } from "../../SearchPage/Interfaces/ISourceSearch";
5
+ import { ISourceProps } from '../../source-props/ISourceProps';
6
+ export declare function createMinFPSItemTime(item: IAnySourceItem, field: string): IFPSItemTime;
7
+ export declare function createMinFPSItemUser(item: IAnySourceItem, field: string): IFPSItemPerson;
8
+ /**
9
+ * 2023-07-06 - REFACTOR -
10
+ * @param item
11
+ * @returns
12
+ */
13
+ export declare function addDateTimeInfoSearch(item: IAnySourceItem): IAnySourceItem;
14
+ export declare function addSearchMeta1(items: IAnySourceItem[], sourceProps: ISourceProps, search: ISourceSearch): IAnySourceItem[];
15
+ /**
16
+ * addStandardSearchArrays:
17
+ *
18
+ * This was derived from ALVFM DataFetch which added keyword arrays found in item search directly to the item.
19
+ * This makes searching faster when using buttons because it is just looking for a specific word match in an array... not searching entire string.
20
+ *
21
+ * @param item
22
+ * @param sourceProps - These are specific search criteria based on each specific source
23
+ * @param search - These are general search criteria used in a multi-source search page like in ALVFM
24
+ * @returns
25
+ */
26
+ export declare function addStandardSearchArrays(item: IAnySourceItem, sourceProps: ISourceProps, search: ISourceSearch): IAnySourceItem;
27
+ /**
28
+ * buildItemSearchArray
29
+ *
30
+ * This is called by addStandardSearchArrays and makes it more reuslable and scalable to add this type of data to items.
31
+ *
32
+ * @param item
33
+ * @param key
34
+ * @param keyWords
35
+ * @param keyWordsLC
36
+ * @returns
37
+ */
38
+ export declare function buildItemSearchArray(item: any, key: string, keyWords: string[], keyWordsLC: string[], OverflowTab?: string): IAnySourceItem;
39
+ //# sourceMappingURL=addSearchMeta1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addSearchMeta1.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SearchPage/functions/addSearchMeta1.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAA+C,MAAM,8BAA8B,CAAC;AAC3G,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAK1E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAI/D,wBAAgB,oBAAoB,CAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAK,YAAY,CA4BzF;AAED,wBAAgB,oBAAoB,CAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAK,cAAc,CAmC3F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAG,IAAI,EAAE,cAAc,GAAI,cAAc,CAsD7E;AAED,wBAAgB,cAAc,CAAG,KAAK,EAAE,cAAc,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,GAAI,cAAc,EAAE,CA+W7H;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAE,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,GAAI,cAAc,CAehI;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,oBAAoB,CAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,GAAE,MAA2B,GAAI,cAAc,CA+BjK"}