@mikezimm/fps-library-v2 1.2.49 → 1.2.50
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.
- package/lib/components/molecules/Categories/Categories.d.ts +42 -0
- package/lib/components/molecules/Categories/Categories.d.ts.map +1 -0
- package/lib/components/molecules/Categories/Categories.js +101 -0
- package/lib/components/molecules/Categories/Categories.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorp.d.ts +10 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorp.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorp.js +49 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorp.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorpALV.d.ts +12 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorpALV.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorpALV.js +76 -0
- package/lib/components/molecules/Categories/EasySearchCorp/EasySearchCorpALV.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/IEasyRegexCorp.d.ts +25 -0
- package/lib/components/molecules/Categories/EasySearchCorp/IEasyRegexCorp.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/IEasyRegexCorp.js +2 -0
- package/lib/components/molecules/Categories/EasySearchCorp/IEasyRegexCorp.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Culture.d.ts +2 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Culture.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Culture.js +14 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Culture.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerAutos.d.ts +2 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerAutos.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerAutos.js +15 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerAutos.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerTerms.d.ts +2 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerTerms.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerTerms.js +10 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/CustomerTerms.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Functions.d.ts +5 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Functions.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Functions.js +28 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Functions.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Products.d.ts +4 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Products.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Products.js +11 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Products.js.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Regions.d.ts +5 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Regions.d.ts.map +1 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Regions.js +30 -0
- package/lib/components/molecules/Categories/EasySearchCorp/RegularExpressions/Regions.js.map +1 -0
- package/lib/components/molecules/Categories/Headings/HubCon.d.ts +10 -0
- package/lib/components/molecules/Categories/Headings/HubCon.d.ts.map +1 -0
- package/lib/components/molecules/Categories/Headings/HubCon.js +39 -0
- package/lib/components/molecules/Categories/Headings/HubCon.js.map +1 -0
- package/lib/components/molecules/Categories/Highlights/HighlightRegArrays.d.ts +18 -0
- package/lib/components/molecules/Categories/Highlights/HighlightRegArrays.d.ts.map +1 -0
- package/lib/components/molecules/Categories/Highlights/HighlightRegArrays.js +58 -0
- package/lib/components/molecules/Categories/Highlights/HighlightRegArrays.js.map +1 -0
- package/lib/components/molecules/Categories/Highlights/highlightRegex.d.ts +2 -0
- package/lib/components/molecules/Categories/Highlights/highlightRegex.d.ts.map +1 -0
- package/lib/components/molecules/Categories/Highlights/highlightRegex.js +12 -0
- package/lib/components/molecules/Categories/Highlights/highlightRegex.js.map +1 -0
- package/lib/components/molecules/Categories/ICategoriesProps.d.ts +30 -0
- package/lib/components/molecules/Categories/ICategoriesProps.d.ts.map +1 -0
- package/lib/components/molecules/Categories/ICategoriesProps.js +2 -0
- package/lib/components/molecules/Categories/ICategoriesProps.js.map +1 -0
- package/lib/components/molecules/Categories/applyRegExpXSearchObject.d.ts +46 -0
- package/lib/components/molecules/Categories/applyRegExpXSearchObject.d.ts.map +1 -0
- package/lib/components/molecules/Categories/applyRegExpXSearchObject.js +68 -0
- package/lib/components/molecules/Categories/applyRegExpXSearchObject.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts +12 -2
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js +33 -3
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts +10 -3
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js +55 -4
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICustomRegexSearch } from '../applyRegExpXSearchObject';
|
|
2
|
+
/**
|
|
3
|
+
* Originally made for Hub Connections auto-filter buttons
|
|
4
|
+
* HighlightRegArrays will show all ICustomRegexSearch arrays and keys and highlight any matches if blueAllRegex === false.
|
|
5
|
+
* @param CustomSearch
|
|
6
|
+
* @param testString
|
|
7
|
+
* @param blueAllRegex
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function HighlightRegArrays(CustomSearch: ICustomRegexSearch, testString: string, blueAllRegex?: boolean): JSX.Element;
|
|
11
|
+
export declare const RegexSiteInfo: JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* pass in extraInfo such as RegexSiteInfo above which is what we use in Hub Connections web part
|
|
14
|
+
* @param extraInfo
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare function GeneralRegexInfo(extraInfo: JSX.Element, headingClass: string): JSX.Element;
|
|
18
|
+
//# sourceMappingURL=HighlightRegArrays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightRegArrays.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Categories/Highlights/HighlightRegArrays.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAE,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe,GAAI,GAAG,CAAC,OAAO,CAgCrI;AAED,eAAO,MAAM,aAAa,aAAgM,CAAC;AAE3N;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAE,SAAS,EAAE,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,GAAI,GAAG,CAAC,OAAO,CAQ5F"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { highlightStringBetweenB } from './highlightRegex';
|
|
3
|
+
// 2024-07-29: Migrated from HubCon only updating css require
|
|
4
|
+
require('@mikezimm/fps-styles/dist/HighlightReg.css');
|
|
5
|
+
/**
|
|
6
|
+
* Originally made for Hub Connections auto-filter buttons
|
|
7
|
+
* HighlightRegArrays will show all ICustomRegexSearch arrays and keys and highlight any matches if blueAllRegex === false.
|
|
8
|
+
* @param CustomSearch
|
|
9
|
+
* @param testString
|
|
10
|
+
* @param blueAllRegex
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export function HighlightRegArrays(CustomSearch, testString, blueAllRegex = false) {
|
|
14
|
+
const MatchedRegex = [];
|
|
15
|
+
const CustomSearchElement = React.createElement("div", { className: 'regArrays' }, Object.keys(CustomSearch).map(key => {
|
|
16
|
+
return React.createElement("div", { key: key, className: 'ARegexCat' },
|
|
17
|
+
React.createElement("h2", null, key),
|
|
18
|
+
React.createElement("ul", null, CustomSearch[key].map(reg => {
|
|
19
|
+
const wasFound = testString.match(reg) ? true : false;
|
|
20
|
+
if (wasFound === true)
|
|
21
|
+
MatchedRegex.push(reg);
|
|
22
|
+
const highlighted = wasFound === false ? highlightStringBetweenB(`${reg}`, false) : highlightStringBetweenB(`${reg}`, true);
|
|
23
|
+
// console.log( `render highlighted type = ${ typeof highlighted }`, `${reg}`);
|
|
24
|
+
return React.createElement("li", { className: blueAllRegex === true ? 'regHelp' : wasFound === true ? 'regMatch' : 'regNull', key: `${reg}` }, highlighted);
|
|
25
|
+
})));
|
|
26
|
+
}));
|
|
27
|
+
// eslint-disable-next-line @rushstack/security/no-unsafe-regexp
|
|
28
|
+
const combinedRegex = new RegExp(MatchedRegex.map(r => r.source).join('|'), 'g');
|
|
29
|
+
const stringToSearch = testString;
|
|
30
|
+
const matches = stringToSearch.match(combinedRegex);
|
|
31
|
+
console.log('HubCategories ~ render matches', matches);
|
|
32
|
+
return CustomSearchElement;
|
|
33
|
+
}
|
|
34
|
+
export const RegexSiteInfo = React.createElement("div", null,
|
|
35
|
+
"If a site/subsite",
|
|
36
|
+
`'`,
|
|
37
|
+
"s Title or Description has any of the words in ",
|
|
38
|
+
React.createElement("b", { style: { color: 'blue' } }, "blue"),
|
|
39
|
+
", the site should show up in the Category Name at the top of each group.");
|
|
40
|
+
/**
|
|
41
|
+
* pass in extraInfo such as RegexSiteInfo above which is what we use in Hub Connections web part
|
|
42
|
+
* @param extraInfo
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
export function GeneralRegexInfo(extraInfo, headingClass) {
|
|
46
|
+
return React.createElement("div", null,
|
|
47
|
+
React.createElement("div", { className: headingClass ? headingClass : 'secHeading' }, "The details:"),
|
|
48
|
+
React.createElement("div", null,
|
|
49
|
+
"We are using ",
|
|
50
|
+
React.createElement("a", { rel: "noreferrer", target: '_blank', href: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions' }, " Javascript Regular Expressions"),
|
|
51
|
+
" to determine the categories a site falls under."),
|
|
52
|
+
extraInfo,
|
|
53
|
+
React.createElement("div", null,
|
|
54
|
+
"Copy the Regular Expression to a tool like ",
|
|
55
|
+
React.createElement("a", { rel: "noreferrer", target: '_blank', href: 'https://regex101.com/' }, "Regex 101"),
|
|
56
|
+
" in order to test on some text."));
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=HighlightRegArrays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightRegArrays.js","sourceRoot":"","sources":["../../../../../src/components/molecules/Categories/Highlights/HighlightRegArrays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAG3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,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IACjF,MAAM,cAAc,GAAG,UAAU,CAAC;IAClC,MAAM,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,CAAE,gCAAgC,EAAE,OAAO,CAAE,CAAC;IAEzD,OAAO,mBAAmB,CAAC;AAE7B,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;;IAAuB,GAAG;;IAAgD,2BAAG,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAU;+EAA8E,CAAC;AAE3N;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAE,SAAsB,EAAE,YAAoB;IAC5E,OAAO;QACH,6BAAK,SAAS,EAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,mBAAqB;QAChF;;YAAkB,2BAAG,GAAG,EAAC,YAAY,EAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,mFAAmF,sCAAoC;+DAAsD;QACtO,SAAS;QACX;;YAAgD,2BAAG,GAAG,EAAC,YAAY,EAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,uBAAuB,gBAAc;8CAAqC,CAC/J,CAAC;AAEX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightRegex.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Categories/Highlights/highlightRegex.tsx"],"names":[],"mappings":"AAIA,wBAAgB,uBAAuB,CAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAI,GAAG,CAAC,OAAO,CAQtF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
// 2024-07-29: Migrated from HubCon
|
|
3
|
+
export function highlightStringBetweenB(str, highlight) {
|
|
4
|
+
const splits = str.split('\\b');
|
|
5
|
+
if (splits.length !== 3)
|
|
6
|
+
return React.createElement("span", { style: { backgroundColor: highlight === true ? 'yellow' : null } }, str);
|
|
7
|
+
return React.createElement("span", null,
|
|
8
|
+
React.createElement("span", null, `${splits[0]}\\b`),
|
|
9
|
+
React.createElement("span", null, `${splits[1]}`),
|
|
10
|
+
React.createElement("span", null, `\\b${splits[2]}`));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=highlightRegex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightRegex.js","sourceRoot":"","sources":["../../../../../src/components/molecules/Categories/Highlights/highlightRegex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,oCAAoC;AAEpC,MAAM,UAAU,uBAAuB,CAAE,GAAW,EAAE,SAAkB;IAEtE,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEhC,IAAK,MAAM,CAAC,MAAM,KAAK,CAAC;QAAG,OAAO,8BAAM,KAAK,EAAE,EAAE,eAAe,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,IAAG,GAAG,CAAQ,CAAC;IAEvH,OAAO;QAAM,kCAAO,GAAI,MAAM,CAAC,CAAC,CAAE,KAAK,CAAQ;QAAA,kCAAO,GAAI,MAAM,CAAC,CAAC,CAAE,EAAE,CAAQ;QAAA,kCAAO,MAAO,MAAM,CAAC,CAAC,CAAE,EAAE,CAAQ,CAAO,CAAC;AAE1H,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IWebpartBannerProps } from '../../../banner/mainReact/IWebpartBannerProps';
|
|
2
|
+
import { ICustomRegexSearch } from './applyRegExpXSearchObject';
|
|
3
|
+
export type IDefSourceType = 'lists...' | '' | '' | '' | '' | '*';
|
|
4
|
+
export interface ICategoryInfo {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ICategoriesProps {
|
|
9
|
+
bannerProps: IWebpartBannerProps;
|
|
10
|
+
expandedState: boolean;
|
|
11
|
+
CustomSearch: ICustomRegexSearch;
|
|
12
|
+
HeadingHelp: JSX.Element;
|
|
13
|
+
text1?: ICategoryInfo;
|
|
14
|
+
text2?: ICategoryInfo;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Extends IFPSCorePinMeReactComponentState with all basics required for FPS Banner
|
|
18
|
+
*/
|
|
19
|
+
export interface ICategoriesState {
|
|
20
|
+
testString: string;
|
|
21
|
+
text1?: string;
|
|
22
|
+
text2?: string;
|
|
23
|
+
searchText: string;
|
|
24
|
+
topSearch: number[];
|
|
25
|
+
topIdx?: number;
|
|
26
|
+
topMeta?: string;
|
|
27
|
+
topSearchLabels?: string[];
|
|
28
|
+
showAccordion: boolean;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=ICategoriesProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICategoriesProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Categories/ICategoriesProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;AAElE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,kBAAkB,CAAC;IACjC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B,aAAa,EAAE,OAAO,CAAC;CAExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICategoriesProps.js","sourceRoot":"","sources":["../../../../src/components/molecules/Categories/ICategoriesProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imported from HubCon 2024-07-29 as is.
|
|
3
|
+
*/
|
|
4
|
+
import { IAnySourceItem } from "../AnyContent/IAnyContent";
|
|
5
|
+
/**
|
|
6
|
+
* ICustomRegexSearch expects an object like this with any Keys that have RegExp[] as a prop:
|
|
7
|
+
*
|
|
8
|
+
Customer1?: RegExp[];
|
|
9
|
+
Customer2?: RegExp[];
|
|
10
|
+
Customer?: RegExp[];
|
|
11
|
+
Facilities?: RegExp[];
|
|
12
|
+
*/
|
|
13
|
+
export interface ICustomRegexSearch {
|
|
14
|
+
[key: string]: RegExp[];
|
|
15
|
+
}
|
|
16
|
+
export type IXSearchArray = 'topSearch' | 'leftSearch' | 'rightSearch' | 'typeSearch';
|
|
17
|
+
/**
|
|
18
|
+
* applyRegExpXSearchObject is built to take
|
|
19
|
+
* @param items - array of IAnySourceItem
|
|
20
|
+
* @param keys - array of item.props you want to search for like ['Title', 'Description'] etc...
|
|
21
|
+
* @param Uncategorized
|
|
22
|
+
* @param searchKeyX - like 'topSearch' 'leftSearch' 'rightSearch'
|
|
23
|
+
* @param EasyRegexSearch
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function applyRegExpXSearchObject(items: IAnySourceItem[], keys: string[], Uncategorized: 'Uncategorized', searchKeyX: IXSearchArray, EasyRegexSearch?: ICustomRegexSearch): IAnySourceItem[];
|
|
27
|
+
/**
|
|
28
|
+
* addARegExTopSearchArray is built to be called by applyRegExpXSearchObject ^^^^^^^^^
|
|
29
|
+
* addARegExTopSearchArray does the work of adding TopSearch info based on a single array of reg exp.
|
|
30
|
+
* it adds a specific label to the Search and topSearch array if any of the regex in the array are found.
|
|
31
|
+
* @param items - array of IAnySourceItem
|
|
32
|
+
* @param keys - array of item.props you want to search for like ['Title', 'Description'] etc...
|
|
33
|
+
* @param ARegex - [key: string]: RegExp [];
|
|
34
|
+
* @param label - label value to apply if Regex match is found... typically the key of ICustomRegexSearch
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
export declare function addARegExXSearchArray(items: IAnySourceItem[], keys: string[], searchKeyX: IXSearchArray, ARegex: RegExp[], label: string): IAnySourceItem[];
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param item - array of IAnySourceItem
|
|
41
|
+
* @param ARegex - [key: string]: RegExp [];
|
|
42
|
+
* @param keys - array of item.props you want to search for like ['Title', 'Description'] etc...
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
export declare function isAnyRegexFoundOnKeys(item: IAnySourceItem, ARegex: RegExp[], keys: string[]): boolean;
|
|
46
|
+
//# sourceMappingURL=applyRegExpXSearchObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyRegExpXSearchObject.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Categories/applyRegExpXSearchObject.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAG,CAAC;CAC1B;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,YAAY,CAAC;AAEtF;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAE,KAAK,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,aAAa,EAAG,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,GAAE,kBAAyD,GAAK,cAAc,EAAE,CAU7O;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,EAAE,cAAc,EAAE,EAAG,IAAI,EAAE,MAAM,EAAE,EAAG,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAK,cAAc,EAAE,CAehK;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAK,OAAO,CAQxG"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imported from HubCon 2024-07-29 as is.
|
|
3
|
+
*/
|
|
4
|
+
import { check4This } from "@mikezimm/fps-pnp2/lib/services/sp/CheckSearch";
|
|
5
|
+
// import { check4This } from "../../fpsReferences";
|
|
6
|
+
import { EasySearchCorp } from "./EasySearchCorp/EasySearchCorp";
|
|
7
|
+
/**
|
|
8
|
+
* applyRegExpXSearchObject is built to take
|
|
9
|
+
* @param items - array of IAnySourceItem
|
|
10
|
+
* @param keys - array of item.props you want to search for like ['Title', 'Description'] etc...
|
|
11
|
+
* @param Uncategorized
|
|
12
|
+
* @param searchKeyX - like 'topSearch' 'leftSearch' 'rightSearch'
|
|
13
|
+
* @param EasyRegexSearch
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export function applyRegExpXSearchObject(items, keys, Uncategorized, searchKeyX, EasyRegexSearch = EasySearchCorp) {
|
|
17
|
+
Object.keys(EasyRegexSearch).map(key => {
|
|
18
|
+
items = addARegExXSearchArray(items, keys, searchKeyX, EasyRegexSearch[key], key);
|
|
19
|
+
});
|
|
20
|
+
if (Uncategorized)
|
|
21
|
+
items.map(item => { if (item.FPSItem.Search[searchKeyX].length === 0)
|
|
22
|
+
item.FPSItem.Search[searchKeyX].push(Uncategorized); });
|
|
23
|
+
return items;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* addARegExTopSearchArray is built to be called by applyRegExpXSearchObject ^^^^^^^^^
|
|
27
|
+
* addARegExTopSearchArray does the work of adding TopSearch info based on a single array of reg exp.
|
|
28
|
+
* it adds a specific label to the Search and topSearch array if any of the regex in the array are found.
|
|
29
|
+
* @param items - array of IAnySourceItem
|
|
30
|
+
* @param keys - array of item.props you want to search for like ['Title', 'Description'] etc...
|
|
31
|
+
* @param ARegex - [key: string]: RegExp [];
|
|
32
|
+
* @param label - label value to apply if Regex match is found... typically the key of ICustomRegexSearch
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export function addARegExXSearchArray(items, keys, searchKeyX, ARegex, label) {
|
|
36
|
+
items.forEach(item => {
|
|
37
|
+
if (!item.FPSItem.Search[searchKeyX])
|
|
38
|
+
item.FPSItem.Search[searchKeyX] = [];
|
|
39
|
+
if (isAnyRegexFoundOnKeys(item, ARegex, keys) === true) {
|
|
40
|
+
item.FPSItem.Search[searchKeyX].push(label);
|
|
41
|
+
item.FPSItem.Search.searchText += ` || ${label}`;
|
|
42
|
+
item.FPSItem.Search.searchTextLC += ` || ${label.toLocaleLowerCase()}`;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
if (label === 'Customer' && check4This('showAllConsole=true', true))
|
|
46
|
+
console.log('addHubMeta test fail', ARegex, keys, item.Title, item);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
return items;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @param item - array of IAnySourceItem
|
|
54
|
+
* @param ARegex - [key: string]: RegExp [];
|
|
55
|
+
* @param keys - array of item.props you want to search for like ['Title', 'Description'] etc...
|
|
56
|
+
* @returns
|
|
57
|
+
*/
|
|
58
|
+
export function isAnyRegexFoundOnKeys(item, ARegex, keys) {
|
|
59
|
+
let found = false;
|
|
60
|
+
ARegex.map(filter => {
|
|
61
|
+
keys.map(key => {
|
|
62
|
+
if (typeof item[key] === 'string' && item[key].match(filter))
|
|
63
|
+
found = true;
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
return found;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=applyRegExpXSearchObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyRegExpXSearchObject.js","sourceRoot":"","sources":["../../../../src/components/molecules/Categories/applyRegExpXSearchObject.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAE5E,oDAAoD;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAkBjE;;;;;;;;GAQG;AACH,MAAM,UAAU,wBAAwB,CAAE,KAAuB,EAAE,IAAc,EAAE,aAA+B,EAAE,UAAyB,EAAE,kBAAsC,cAAoC;IAEvN,MAAM,CAAC,IAAI,CAAE,eAAe,CAAE,CAAC,GAAG,CAAE,GAAG,CAAC,EAAE;QACxC,KAAK,GAAG,qBAAqB,CAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,CAAE,GAAG,CAAG,EAAE,GAAiB,CAAE,CAAC;IACvG,CAAC,CAAC,CAAC;IAEH,IAAK,aAAa;QAAG,KAAK,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,GAAG,IAAK,IAAI,CAAC,OAAO,CAAC,MAAM,CAAE,UAAy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C,GAAG,CAAE,MAAM,CAAC,EAAE;QACnB,IAAI,CAAC,GAAG,CAAE,GAAG,CAAC,EAAE;YACd,IAAK,OAAO,IAAI,CAAE,GAAc,CAAE,KAAK,QAAQ,IAAI,IAAI,CAAE,GAAc,CAAE,CAAC,KAAK,CAAE,MAAM,CAAE;gBAAG,KAAK,GAAG,IAAI,CAAC;QAC3G,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFPSItem } from '../../AnyContent/IAnyContent';
|
|
2
|
-
import { IFetchHubDepth } from '../../SpHttp/HubsSubs/fetches/fetchMyHubsites';
|
|
2
|
+
import { IFetchHubDepth, IHubFilterType } from '../../SpHttp/HubsSubs/fetches/fetchMyHubsites';
|
|
3
3
|
import { ISourceProps } from '../../../../pnpjs/SourceItems/Interface';
|
|
4
4
|
import { ISourceSearch } from '../../SearchPage/Interfaces/ISourceSearch';
|
|
5
5
|
import { IStateSourceHubSubs } from '../../SpHttp/HubsSubs/getHubAssocSites';
|
|
@@ -15,5 +15,15 @@ import { IItemIsAKeys } from '../../AnyContent/IsA/IFPSItemIsA';
|
|
|
15
15
|
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* getFPSHubTiles was built for Hub Connection's web part to fetch both sites and webs.
|
|
20
|
+
* Use the depth property to specify either sites or webs.
|
|
21
|
+
* @param bannerProps
|
|
22
|
+
* @param sourceProps
|
|
23
|
+
* @param search
|
|
24
|
+
* @param WPFPSItem - use buildFpsTileWPProps
|
|
25
|
+
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare function getFPSHubTiles(bannerProps: IWebpartBannerProps, sourceProps: ISourceProps, search: ISourceSearch, webPartFPSItem: IFPSItem, departmentId?: string, depth?: IFetchHubDepth, surpressKeys?: IItemIsAKeys[], filter?: IHubFilterType): Promise<IStateSourceHubSubs>;
|
|
19
29
|
//# sourceMappingURL=getFPSHubTiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFPSHubTiles.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAmB,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"getFPSHubTiles.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAmB,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAChH,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAsB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEpF;;;;;;;;;GASG;AA8BH;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EACtH,cAAc,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,cAAuB,EAC/E,YAAY,GAAE,YAAY,EAAuB,EAAE,MAAM,GAAE,cAA6B,GAAK,OAAO,CAAC,mBAAmB,CAAC,CAwB1H"}
|
|
@@ -13,14 +13,44 @@ import { CommonSuppressKeys } from '../../AnyContent/IsA/IFPSItemIsA';
|
|
|
13
13
|
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
export async function getFPSHubTiles(bannerProps, sourceProps, search
|
|
16
|
+
// export async function getFPSHubTiles( bannerProps: IWebpartBannerProps, sourceProps: ISourceProps, search: ISourceSearch,
|
|
17
|
+
// webPartFPSItem: IFPSItem, departmentId?: string, depth: IFetchHubDepth = 'site',
|
|
18
|
+
// surpressKeys: IItemIsAKeys[] = CommonSuppressKeys ): Promise<IStateSourceHubSubs> {
|
|
19
|
+
// const useDepartmentId = departmentId ? departmentId : bannerProps.context.pageContext.legacyPageContext.departmentId;
|
|
20
|
+
// let results: IStateSourceHubSubs = await fetchMyHubsites( bannerProps.context.pageContext.web.absoluteUrl, depth, useDepartmentId, ) as any;
|
|
21
|
+
// if (results.status !== 'Success') {
|
|
22
|
+
// results.itemsY = [ createErrorFPSTileItem( results, webPartFPSItem ) ];
|
|
23
|
+
// } else {
|
|
24
|
+
// results = processHubSubResults(results, sourceProps, search, departmentId );
|
|
25
|
+
// // moved code from makeFPSSubHubTileItemsV2 directly into here
|
|
26
|
+
// results = makeFPSSubHubTiles( results, bannerProps, webPartFPSItem, surpressKeys );
|
|
27
|
+
// // results = buildFPSAnyTileItems( results, bannerProps, webPartFPSItem, ) as IStateSourceHubSubs;
|
|
28
|
+
// // results = addFPSViewHighlightElements( results, surpressKeys ) as IStateSourceHubSubs;
|
|
29
|
+
// // results.itemsY.map((item: IAnySourceItem ) => {
|
|
30
|
+
// // if ( !item.FPSItem.Icon.name ) item.FPSItem.Icon.name = 'SharePointLogo';
|
|
31
|
+
// // });
|
|
32
|
+
// }
|
|
33
|
+
// return results;
|
|
34
|
+
// }
|
|
35
|
+
/**
|
|
36
|
+
* getFPSHubTiles was built for Hub Connection's web part to fetch both sites and webs.
|
|
37
|
+
* Use the depth property to specify either sites or webs.
|
|
38
|
+
* @param bannerProps
|
|
39
|
+
* @param sourceProps
|
|
40
|
+
* @param search
|
|
41
|
+
* @param WPFPSItem - use buildFpsTileWPProps
|
|
42
|
+
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
export async function getFPSHubTiles(bannerProps, sourceProps, search, webPartFPSItem, departmentId, depth = 'site', surpressKeys = CommonSuppressKeys, filter = 'Associated') {
|
|
17
46
|
const useDepartmentId = departmentId ? departmentId : bannerProps.context.pageContext.legacyPageContext.departmentId;
|
|
18
|
-
let results = await fetchMyHubsites(bannerProps.context.pageContext.web.absoluteUrl, depth, useDepartmentId);
|
|
47
|
+
let results = await fetchMyHubsites(bannerProps.context.pageContext.web.absoluteUrl, depth, useDepartmentId, filter);
|
|
19
48
|
if (results.status !== 'Success') {
|
|
20
49
|
results.itemsY = [createErrorFPSTileItem(results, webPartFPSItem)];
|
|
21
50
|
}
|
|
22
51
|
else {
|
|
23
|
-
|
|
52
|
+
// Updated for https://github.com/fps-solutions/HubCon/issues/13
|
|
53
|
+
results = processHubSubResults(results, sourceProps, search, useDepartmentId, ['MSTeam',]);
|
|
24
54
|
// moved code from makeFPSSubHubTileItemsV2 directly into here
|
|
25
55
|
results = makeFPSSubHubTiles(results, bannerProps, webPartFPSItem, surpressKeys);
|
|
26
56
|
// results = buildFPSAnyTileItems( results, bannerProps, webPartFPSItem, ) as IStateSourceHubSubs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFPSHubTiles.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,
|
|
1
|
+
{"version":3,"file":"getFPSHubTiles.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAkB,MAAM,+CAA+C,CAAC;AAIhH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAs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O,GAAG,kBAAkB,CAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,CAAE,CAAC;QAEnF,kGAAkG;QAClG,yFAAyF;QACzF,kDAAkD;QAClD,8EAA8E;QAC9E,MAAM;KAEL;IAED,OAAO,OAAO,CAAC;AAEf,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { check4This } from '@mikezimm/fps-pnp2/lib/services/sp/CheckSearch';
|
|
|
14
14
|
export async function fetchMyHubSubs(webUrl, depth, departmentId) {
|
|
15
15
|
// const [ hubs, subs, nav ] = await Promise.all([
|
|
16
16
|
const [hubs, subs,] = await Promise.all([
|
|
17
|
-
fetchMyHubsites(webUrl, depth, departmentId),
|
|
17
|
+
fetchMyHubsites(webUrl, depth, departmentId, 'HubAndAssoc'),
|
|
18
18
|
fetchMySubsites(webUrl),
|
|
19
19
|
// fetchMyHubNav( webUrl, departmentId ),
|
|
20
20
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsSubs.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.ts"],"names":[],"mappings":"AACA,yFAAyF;AACzF,gEAAgE;AAChE,OAAO,EAAkB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAQ5E;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAE,MAAc,EAAE,KAAqB,EAAE,YAAoB;IAE/F,kDAAkD;IAClD,MAAM,CAAE,IAAI,EAAE,IAAI,EAAG,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACxC,eAAe,CAAE,MAAM,EAAE,KAAK,EAAE,YAAY,CAAE;
|
|
1
|
+
{"version":3,"file":"fetchMyHubsSubs.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.ts"],"names":[],"mappings":"AACA,yFAAyF;AACzF,gEAAgE;AAChE,OAAO,EAAkB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAQ5E;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAE,MAAc,EAAE,KAAqB,EAAE,YAAoB;IAE/F,kDAAkD;IAClD,MAAM,CAAE,IAAI,EAAE,IAAI,EAAG,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACxC,eAAe,CAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,CAAE;QAC7D,eAAe,CAAE,MAAM,CAAG;QAC1B,yCAAyC;KAC1C,CAAC,CAAC;IAEH,sCAAsC;IACtC,mDAAmD;IACnD,sDAAsD;IACtD,sDAAsD;IACtD,mDAAmD;IACnD,sDAAsD;IAEtD,2FAA2F;IAC3F,+FAA+F;IAC/F,sFAAsF;IACtF,gGAAgG;IAChG,wGAAwG;IACxG,+EAA+E;IAC/E,kEAAkE;IAElE,MAAM,OAAO,GAAiB;QAC5B,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,YAAY;KACb,CAAA;IACD,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI;QAAG,OAAO,CAAC,GAAG,CAAE,sDAAsD,EAAE,OAAO,CAAE,CAAC;IAExI,OAAO,OAAO,CAAC;AAEjB,CAAC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { IJSFetchReturn } from '../../doSpJsFetch';
|
|
2
|
+
import { IFPSWebsWithLogo } from '../interfaces/IFPSHubSiteDataDocsApi';
|
|
3
|
+
export type IFetchHubDepth = 'site' | 'web';
|
|
4
|
+
export type IHubFilterType = 'Associated' | 'Hubs' | 'Teams' | 'HubAndAssoc';
|
|
5
|
+
export interface IFetchHubsReturn extends IJSFetchReturn {
|
|
6
|
+
allHubs?: IFPSWebsWithLogo[];
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
|
-
* fetchMyHubsites
|
|
9
|
+
* fetchMyHubsites imported from HubCon on 2024-07-29.
|
|
4
10
|
* @param webUrl
|
|
11
|
+
* @param depth IFetchHubDepth = 'site' | 'web';
|
|
5
12
|
* @param departmentId
|
|
13
|
+
* @param filter IHubFilterType = 'Associated' | 'Hubs' | 'Teams' | 'HubAndAssoc';
|
|
6
14
|
* @returns
|
|
7
15
|
*/
|
|
8
|
-
export
|
|
9
|
-
export declare function fetchMyHubsites(webUrl: string, depth: IFetchHubDepth, departmentId: string): Promise<IJSFetchReturn>;
|
|
16
|
+
export declare function fetchMyHubsites(webUrl: string, depth: IFetchHubDepth, departmentId: string, filter: IHubFilterType): Promise<IFetchHubsReturn>;
|
|
10
17
|
//# sourceMappingURL=fetchMyHubsites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsites.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchMyHubsites.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAc,MAAM,sCAAsC,CAAC;AAqCpF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,CAAC;AAE7E,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED;;;;;;;GAOG;AAEH,wBAAsB,eAAe,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAI,OAAO,CAAC,gBAAgB,CAAC,CAuCtJ"}
|
|
@@ -3,13 +3,64 @@ import { doSpJsFetch } from '../../doSpJsFetch';
|
|
|
3
3
|
import { hubSelects } from '../interfaces/IFPSHubSiteDataDocsApi';
|
|
4
4
|
import { startPerformOpV2, unifiedPerformanceEnd } from '../../../Performance/functions';
|
|
5
5
|
import { checkItemsResults } from '../../../../../pnpjs/Common/CheckItemsResults';
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* fetchMyHubsites will fetch an array of the current site's hub associated sites. Used in Pivot Tiles and Hub Connections.
|
|
8
|
+
* @param webUrl
|
|
9
|
+
* @param departmentId
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
// export type IFetchHubDepth = 'site' | 'web';
|
|
13
|
+
// export async function fetchMyHubsites( webUrl: string, depth: IFetchHubDepth, departmentId: string ): Promise<IJSFetchReturn> {
|
|
14
|
+
// const performanceSettings: IPerformanceSettings = { label: 'myHubs', updateMiliseconds: true, includeMsStr: true, op: 'fetch' };
|
|
15
|
+
// const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null;
|
|
16
|
+
// const apiFetchAssociatedHubs: string = `${webUrl}/_api/search/query?querytext='DepartmentId=${departmentId} contentclass:sts_${depth} -SiteId:${departmentId}'&selectproperties='${hubSelects.join(',')}'&rowlimit=${depth==='site'?200:500}`;// 9 Works
|
|
17
|
+
// const resultHubSites: IJSFetchReturn = await doSpJsFetch( apiFetchAssociatedHubs );
|
|
18
|
+
// if ( resultHubSites.ok ) resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
19
|
+
// let result : IJSFetchReturn = unifiedPerformanceEnd( resultHubSites as IFpsErrorObject, performanceSettings, fetchOp, 'fetch', 'items' ) as IJSFetchReturn;
|
|
20
|
+
// result.fpsContentType = [ depth ];
|
|
21
|
+
// result = checkItemsResults( result as IFpsItemsReturn, `fps-library-v2: fetchMyHubsites ~ 30`, false, true ) as IJSFetchReturn;
|
|
22
|
+
// return resultHubSites;
|
|
23
|
+
// }
|
|
24
|
+
import { NonGroupGroupID } from '../functions/processHubSubResults';
|
|
25
|
+
/**
|
|
26
|
+
* fetchMyHubsites imported from HubCon on 2024-07-29.
|
|
27
|
+
* @param webUrl
|
|
28
|
+
* @param depth IFetchHubDepth = 'site' | 'web';
|
|
29
|
+
* @param departmentId
|
|
30
|
+
* @param filter IHubFilterType = 'Associated' | 'Hubs' | 'Teams' | 'HubAndAssoc';
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
export async function fetchMyHubsites(webUrl, depth, departmentId, filter) {
|
|
7
34
|
const performanceSettings = { label: 'myHubs', updateMiliseconds: true, includeMsStr: true, op: 'fetch' };
|
|
8
35
|
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
36
|
+
const minSearch = `${webUrl}/_api/search/query?querytext='DepartmentId=`;
|
|
37
|
+
const minSelectRowLimit = `'&selectproperties='${hubSelects.join(',')}'&rowlimit=`;
|
|
38
|
+
// -SiteId:${departmentId}
|
|
39
|
+
let fetchAPIStr = ``;
|
|
40
|
+
// if ( filter === 'Associated' ) { fetchAPIStr = `${minSearch}${departmentId} contentclass:sts_${depth} -SiteId:${departmentId} ${ minSelectRowLimit }${depth==='site'?200:500}`; // 9 Works
|
|
41
|
+
if (filter === 'Associated') {
|
|
42
|
+
fetchAPIStr = `${webUrl}/_api/search/query?querytext='DepartmentId=${departmentId} contentclass:sts_${depth} -SiteId:${departmentId}'&selectproperties='${hubSelects.join(',')}'&rowlimit=${depth === 'site' ? 200 : 500}`; // 9 Works
|
|
43
|
+
}
|
|
44
|
+
if (filter === 'HubAndAssoc') {
|
|
45
|
+
fetchAPIStr = `${webUrl}/_api/search/query?querytext='DepartmentId=${departmentId} contentclass:sts_${depth}'&selectproperties='${hubSelects.join(',')}'&rowlimit=${depth === 'site' ? 200 : 500}`; // 9 Works
|
|
46
|
+
}
|
|
47
|
+
if (filter === 'Hubs') {
|
|
48
|
+
fetchAPIStr = `${webUrl}/_api/search/query?querytext='DepartmentId=* contentclass:sts_site GroupId:"${NonGroupGroupID}" ${minSelectRowLimit}${500}`; // 9 Works
|
|
49
|
+
}
|
|
50
|
+
if (filter === 'Teams') {
|
|
51
|
+
fetchAPIStr = `${minSearch}* contentclass:sts_site -GroupId:"${NonGroupGroupID}" ${minSelectRowLimit}${500}`; // 9 Works
|
|
52
|
+
}
|
|
53
|
+
// fetchAPIStr = `${webUrl}/_api/search/query?querytext='DepartmentId=${departmentId} contentclass:sts_${depth} -SiteId:${departmentId}'&selectproperties='${hubSelects.join(',')}'&rowlimit=${depth==='site'?200:500}`;// 9 Works
|
|
54
|
+
// fetchAPIStr = `${minSearch}/${departmentId} contentclass:sts_${depth} -SiteId:${departmentId}'&selectproperties='${hubSelects.join(',')}'&rowlimit=${depth==='site'?200:500}`;// 9 Works
|
|
55
|
+
const resultHubSites = await doSpJsFetch(fetchAPIStr);
|
|
56
|
+
if (resultHubSites.ok) {
|
|
12
57
|
resultHubSites.items = cleanSearchedWebs(resultHubSites.items);
|
|
58
|
+
}
|
|
59
|
+
if (filter === 'Hubs') {
|
|
60
|
+
resultHubSites.allHubs = resultHubSites.items.filter(item => item.DepartmentId.indexOf(item.SiteId) === 1);
|
|
61
|
+
//https://github.com/fps-solutions/HubCon/issues/23
|
|
62
|
+
resultHubSites.allHubs.sort((a, b) => a.Title.localeCompare(b.Title));
|
|
63
|
+
}
|
|
13
64
|
let result = unifiedPerformanceEnd(resultHubSites, performanceSettings, fetchOp, 'fetch', 'items');
|
|
14
65
|
result.fpsContentType = [depth];
|
|
15
66
|
result = checkItemsResults(result, `fps-library-v2: fetchMyHubsites ~ 30`, false, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsites.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,
|
|
1
|
+
{"version":3,"file":"fetchMyHubsites.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAoB,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,EAAmB,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAEnG;;;;;GAKG;AAEH,+CAA+C;AAE/C,kIAAkI;AAElI,sIAAsI;AACtI,0FAA0F;AAE1F,6PAA6P;AAE7P,wFAAwF;AAExF,+FAA+F;AAE/F,iKAAiK;AACjK,uCAAuC;AAEvC,oIAAoI;AAEpI,2BAA2B;AAE3B,IAAI;AAEJ,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAUpE;;;;;;;GAOG;AAEH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAE,MAAc,EAAE,KAAqB,EAAE,YAAoB,EAAE,MAAsB;IAExH,MAAM,mBAAmB,GAAyB,EAAG,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;IACjI,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,CAAC,gBAAgB,CAAE,mBAAmB,CAA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M,KAAK,MAAM,EAAG;QACvB,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,MAAM,CAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAE,IAAI,CAAC,MAAM,CAAE,KAAK,CAAC,CAAE,CAAC;QAC/G,mDAAmD;QACnD,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;KACvE;IAED,IAAI,MAAM,GAAoB,qBAAqB,CAAE,cAAiC,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAqB,CAAC;IAC5J,MAAM,CAAC,cAAc,GAAG,CAAE,KAAK,CAAE,CAAC;IAElC,MAAM,GAAG,iBAAiB,CAAE,MAAyB,EAAE,sCAAsC,EAAE,KAAK,EAAE,IAAI,CAAoB,CAAC;IAE/H,OAAO,cAAc,CAAC;AAExB,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { fetchMyHubsites } from './fetches/fetchMyHubsites';
|
|
|
14
14
|
*/
|
|
15
15
|
export async function getHubAssocSites(departmentId, sourceProps, depth = 'site') {
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
-
let results = await fetchMyHubsites(sourceProps.absoluteWebUrl, depth, departmentId);
|
|
17
|
+
let results = await fetchMyHubsites(sourceProps.absoluteWebUrl, depth, departmentId, 'HubAndAssoc');
|
|
18
18
|
return results;
|
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
20
|
// return { ...EmptyStateSource as any, ...{ status: 'Unknown' } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHubAssocSites.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubsSubs/getHubAssocSites.ts"],"names":[],"mappings":"AACA,2DAA2D;AAC3D,4EAA4E;AAC5E,gFAAgF;AAChF,yDAAyD;AACzD,wEAAwE;AACxE,gEAAgE;AAQhE,OAAO,EAAkB,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAW5E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAE,YAAoB,EAAE,WAAyB,EAAE,QAAwB,MAAM;IAErH,8DAA8D;IAC9D,IAAI,OAAO,GAAwB,MAAM,eAAe,CAAE,WAAW,CAAC,cAAc,EAAE,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"getHubAssocSites.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubsSubs/getHubAssocSites.ts"],"names":[],"mappings":"AACA,2DAA2D;AAC3D,4EAA4E;AAC5E,gFAAgF;AAChF,yDAAyD;AACzD,wEAAwE;AACxE,gEAAgE;AAQhE,OAAO,EAAkB,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAW5E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAE,YAAoB,EAAE,WAAyB,EAAE,QAAwB,MAAM;IAErH,8DAA8D;IAC9D,IAAI,OAAO,GAAwB,MAAM,eAAe,CAAE,WAAW,CAAC,cAAc,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,CAAS,CAAC;IAElI,OAAO,OAAO,CAAC;IAEf,8DAA8D;IAC9D,kEAAkE;AAGpE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikezimm/fps-library-v2",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.50",
|
|
4
4
|
"description": "Library of reusable typescript/javascript functions, interfaces and constants",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@fluentui/react": "^7.199.1",
|
|
43
43
|
"@microsoft/sp-property-pane": "^1.17.3",
|
|
44
44
|
"@mikezimm/fps-pnp2": "^1.0.63",
|
|
45
|
-
"@mikezimm/fps-styles": "^1.0.
|
|
45
|
+
"@mikezimm/fps-styles": "^1.0.68",
|
|
46
46
|
"@pnp/spfx-controls-react": "^3.12.0",
|
|
47
47
|
"@pnp/spfx-property-controls": "^3.6.0",
|
|
48
48
|
"react": "^17.0.1",
|