@mikezimm/fps-library-v2 1.1.16 → 1.1.19
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/CHANGELOG.md +24 -1
- package/lib/components/atoms/Highlights/createContentItemCount.d.ts +5 -0
- package/lib/components/atoms/Highlights/createContentItemCount.d.ts.map +1 -0
- package/lib/components/atoms/Highlights/createContentItemCount.js +15 -0
- package/lib/components/atoms/Highlights/createContentItemCount.js.map +1 -0
- package/lib/components/atoms/Highlights/createContentPubDate.d.ts +4 -0
- package/lib/components/atoms/Highlights/createContentPubDate.d.ts.map +1 -0
- package/lib/components/atoms/Highlights/createContentPubDate.js +11 -0
- package/lib/components/atoms/Highlights/createContentPubDate.js.map +1 -0
- package/lib/components/atoms/Highlights/createContentViewsRecent.d.ts +4 -0
- package/lib/components/atoms/Highlights/createContentViewsRecent.d.ts.map +1 -0
- package/lib/components/atoms/Highlights/createContentViewsRecent.js +10 -0
- package/lib/components/atoms/Highlights/createContentViewsRecent.js.map +1 -0
- package/lib/components/atoms/Highlights/createItemHighlights.d.ts +4 -0
- package/lib/components/atoms/Highlights/createItemHighlights.d.ts.map +1 -0
- package/lib/components/atoms/Highlights/createItemHighlights.js +19 -0
- package/lib/components/atoms/Highlights/createItemHighlights.js.map +1 -0
- package/lib/components/atoms/Icons/iconNames.d.ts +1 -0
- package/lib/components/atoms/Icons/iconNames.d.ts.map +1 -1
- package/lib/components/atoms/Icons/iconNames.js +1 -0
- package/lib/components/atoms/Icons/iconNames.js.map +1 -1
- package/lib/components/atoms/Icons/standardUniversalFPS.d.ts +1 -0
- package/lib/components/atoms/Icons/standardUniversalFPS.d.ts.map +1 -1
- package/lib/components/atoms/Icons/standardUniversalFPS.js +1 -0
- package/lib/components/atoms/Icons/standardUniversalFPS.js.map +1 -1
- package/lib/components/molecules/AnyContent/IAnyContent.d.ts +3 -0
- package/lib/components/molecules/AnyContent/IAnyContent.d.ts.map +1 -1
- package/lib/components/molecules/AnyContent/IsA/IFPSItemIsA.d.ts +6 -2
- package/lib/components/molecules/AnyContent/IsA/IFPSItemIsA.d.ts.map +1 -1
- package/lib/components/molecules/AnyContent/IsA/IFPSItemIsA.js +5 -3
- package/lib/components/molecules/AnyContent/IsA/IFPSItemIsA.js.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsTileElement.d.ts +16 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsTileElement.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsTileElement.js +48 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsTileElement.js.map +1 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/IFPSTileElementProps.d.ts +18 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/IFPSTileElementProps.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/IFPSTileElementProps.js +2 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/IFPSTileElementProps.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/buildFPSSubHubTileItems.d.ts +14 -0
- package/lib/components/molecules/FPSTiles/functions/buildFPSSubHubTileItems.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/buildFPSSubHubTileItems.js +58 -0
- package/lib/components/molecules/FPSTiles/functions/buildFPSSubHubTileItems.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/createErrorFPSTileItem.d.ts +15 -0
- package/lib/components/molecules/FPSTiles/functions/createErrorFPSTileItem.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/createErrorFPSTileItem.js +199 -0
- package/lib/components/molecules/FPSTiles/functions/createErrorFPSTileItem.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts +16 -0
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js +26 -0
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/mergeDeep.d.ts +12 -0
- package/lib/components/molecules/FPSTiles/functions/mergeDeep.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/mergeDeep.js +62 -0
- package/lib/components/molecules/FPSTiles/functions/mergeDeep.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/onFPSClick.d.ts +4 -0
- package/lib/components/molecules/FPSTiles/functions/onFPSClick.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/onFPSClick.js +27 -0
- package/lib/components/molecules/FPSTiles/functions/onFPSClick.js.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/packageFPSTileProps.d.ts +20 -0
- package/lib/components/molecules/FPSTiles/functions/packageFPSTileProps.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/functions/packageFPSTileProps.js +49 -0
- package/lib/components/molecules/FPSTiles/functions/packageFPSTileProps.js.map +1 -0
- package/lib/components/molecules/FPSTiles/webPart/FPSTileWPGroup.d.ts +8 -0
- package/lib/components/molecules/FPSTiles/webPart/FPSTileWPGroup.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/webPart/FPSTileWPGroup.js +66 -0
- package/lib/components/molecules/FPSTiles/webPart/FPSTileWPGroup.js.map +1 -0
- package/lib/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.d.ts +11 -0
- package/lib/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.d.ts.map +1 -0
- package/lib/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.js +2 -0
- package/lib/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.js.map +1 -0
- package/lib/components/molecules/SearchPage/Interfaces/IContentGroup.d.ts +2 -1
- package/lib/components/molecules/SearchPage/Interfaces/IContentGroup.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/Interfaces/IContentGroup.js +1 -0
- package/lib/components/molecules/SearchPage/Interfaces/IContentGroup.js.map +1 -1
- package/lib/components/molecules/SearchPage/Interfaces/ProgrammingFileKeys.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/Interfaces/ProgrammingFileKeys.js +12 -11
- package/lib/components/molecules/SearchPage/Interfaces/ProgrammingFileKeys.js.map +1 -1
- package/lib/components/molecules/SearchPage/Interfaces/StandardTypes.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/Interfaces/StandardTypes.js +40 -36
- package/lib/components/molecules/SearchPage/Interfaces/StandardTypes.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addItemIsA.d.ts +0 -1
- package/lib/components/molecules/SearchPage/functions/addItemIsA.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addItemIsA.js +2 -52
- package/lib/components/molecules/SearchPage/functions/addItemIsA.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.d.ts +3 -0
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.d.ts.map +1 -0
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.js +27 -0
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.js.map +1 -0
- package/lib/components/molecules/SearchPage/functions/addSearchAll.d.ts +6 -0
- package/lib/components/molecules/SearchPage/functions/addSearchAll.d.ts.map +1 -0
- package/lib/components/molecules/SearchPage/functions/addSearchAll.js +14 -0
- package/lib/components/molecules/SearchPage/functions/addSearchAll.js.map +1 -0
- package/lib/components/molecules/SearchPage/functions/addSearchFile.d.ts +5 -0
- package/lib/components/molecules/SearchPage/functions/addSearchFile.d.ts.map +1 -0
- package/lib/components/molecules/SearchPage/functions/addSearchFile.js +137 -0
- package/lib/components/molecules/SearchPage/functions/addSearchFile.js.map +1 -0
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.d.ts +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js +109 -99
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta2.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta2.js +2 -0
- package/lib/components/molecules/SearchPage/functions/addSearchMeta2.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/markPopular.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/{fetchMyHubsSubs.d.ts → fetches/fetchMyHubsSubs.d.ts} +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/{fetchMyHubsites.d.ts → fetches/fetchMyHubsites.d.ts} +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/{fetchMyHubsites.js → fetches/fetchMyHubsites.js} +5 -5
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/{fetchMySubsites.d.ts → fetches/fetchMySubsites.d.ts} +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/{fetchMySubsites.js → fetches/fetchMySubsites.js} +5 -5
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.js.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/{cleanSearchedWebs.d.ts → functions/cleanSearchedWebs.d.ts} +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/functions/cleanSearchedWebs.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/{cleanSearchedWebs.js → functions/cleanSearchedWebs.js} +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/functions/cleanSearchedWebs.js.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.d.ts +5 -0
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.js +22 -0
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.js.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.d.ts +17 -0
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js +21 -0
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js.map +1 -0
- package/package.json +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/cleanSearchedWebs.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/cleanSearchedWebs.js.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetchMyHubsSubs.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetchMyHubsSubs.js.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetchMyHubsites.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetchMyHubsites.js.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetchMySubsites.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetchMySubsites.js.map +0 -1
- /package/lib/components/molecules/SpHttp/HubsSubs/{fetchMyHubsSubs.js → fetches/fetchMyHubsSubs.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildFPSSubHubTileItems.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/buildFPSSubHubTileItems.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO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C,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE;YACtB,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;SACnC,CAAA;IACH,CAAC,CAAC,CAAC;IAEH,8DAA8D;IAC9D,2DAA2D;IAC3D,gDAAgD;IAEhD,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAoB,EAAG,EAAE;QAC3C,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG;YACtB,wCAAwC;YACxC,0CAA0C;YAC1C,QAAQ,EAAE,wBAAwB,CAAC,IAAI,CAAC;YACxC,QAAQ,EAAE,oBAAoB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;SACtG,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AAEjB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IAnySourceItem, IFPSItem } from '../../AnyContent/IAnyContent';
|
|
2
|
+
import { IStateSourceHubSubs } from '../../SpHttp/HubsSubs/getHubAssocSites';
|
|
3
|
+
/**
|
|
4
|
+
* createErrorFPSTileItem will build an item: IAnySourceItem with the correct FPSItem object which can be used in FPSTileComponent and FPSTileElement
|
|
5
|
+
*
|
|
6
|
+
* @param results
|
|
7
|
+
* @param webPartFPSItem
|
|
8
|
+
* @param newTitle
|
|
9
|
+
* @param background
|
|
10
|
+
// * @param hUnit These should be set right in FPSTileElement and not needed here.
|
|
11
|
+
// * @param wUnit These should be set right in FPSTileElement and not needed here.
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function createErrorFPSTileItem(results: IStateSourceHubSubs, webPartFPSItem: IFPSItem, newTitle?: string, background?: string): IAnySourceItem;
|
|
15
|
+
//# sourceMappingURL=createErrorFPSTileItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createErrorFPSTileItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/createErrorFPSTileItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;;;;;;;;;GAUG;AAEH,wBAAgB,sBAAsB,CAAE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,GAAE,MAAW,EAAE,UAAU,GAAE,MAAW,GAAI,cAAc,CAuC/J"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { EmptyFPSItemSearch } from '../../AnyContent/IFPSItemSearch';
|
|
2
|
+
/**
|
|
3
|
+
* createErrorFPSTileItem will build an item: IAnySourceItem with the correct FPSItem object which can be used in FPSTileComponent and FPSTileElement
|
|
4
|
+
*
|
|
5
|
+
* @param results
|
|
6
|
+
* @param webPartFPSItem
|
|
7
|
+
* @param newTitle
|
|
8
|
+
* @param background
|
|
9
|
+
// * @param hUnit These should be set right in FPSTileElement and not needed here.
|
|
10
|
+
// * @param wUnit These should be set right in FPSTileElement and not needed here.
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export function createErrorFPSTileItem(results, webPartFPSItem, newTitle = ``, background = ``) {
|
|
14
|
+
var _a;
|
|
15
|
+
const Title = `${newTitle ? newTitle : results.status}`;
|
|
16
|
+
const Description = `${(_a = results.errorInfo) === null || _a === void 0 ? void 0 : _a.friendly}`;
|
|
17
|
+
const FPSItem = {
|
|
18
|
+
Search: JSON.parse(JSON.stringify(EmptyFPSItemSearch)),
|
|
19
|
+
Image: {
|
|
20
|
+
src: '',
|
|
21
|
+
css: {
|
|
22
|
+
height: webPartFPSItem.Image.css.height,
|
|
23
|
+
width: webPartFPSItem.Image.css.width,
|
|
24
|
+
background: background ? background : `yellow`,
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
Icon: {
|
|
28
|
+
name: 'StatusErrorFull',
|
|
29
|
+
css: {
|
|
30
|
+
// size: `${tileHeight * .8 }${hUnit}`,
|
|
31
|
+
color: `red`,
|
|
32
|
+
},
|
|
33
|
+
// react: { paddingTop: `${ ( tileHeight * .2 ) /2 }${hUnit}` }
|
|
34
|
+
},
|
|
35
|
+
Link: {
|
|
36
|
+
href: ``,
|
|
37
|
+
title: Title,
|
|
38
|
+
description: Description,
|
|
39
|
+
},
|
|
40
|
+
IsA: { allIsAKeys: [] }
|
|
41
|
+
};
|
|
42
|
+
const item = {
|
|
43
|
+
Title: Title,
|
|
44
|
+
Description: Description,
|
|
45
|
+
FPSItem: FPSItem,
|
|
46
|
+
};
|
|
47
|
+
return item;
|
|
48
|
+
}
|
|
49
|
+
// export function NoListFound (parentProps: IPivotTiles20Props,parentState: IPivotTiles20State): JSX.Element {
|
|
50
|
+
// // console.log('NoListFound');
|
|
51
|
+
// // console.log(parentProps);
|
|
52
|
+
// let noListFound = null;
|
|
53
|
+
// if ( parentState.loadStatus !== "ListNotFound" ) {
|
|
54
|
+
// // console.log('parentState.loadStatus !== "ListNotFound" >> NoListFound');
|
|
55
|
+
// } else {
|
|
56
|
+
// const fixedURL = fixURLs(parentProps.tileList.listWebURL, parentProps.bannerProps.context.pageContext);
|
|
57
|
+
// const errMessage = SanitizeErrorMessage(parentState.loadError);
|
|
58
|
+
// const listExt = parentProps.tileList.listDefinition.indexOf("Library") === -1 ? "lists/" : "" ;
|
|
59
|
+
// noListFound =
|
|
60
|
+
// <div className={styles.rowNoPad}>
|
|
61
|
+
// <div className={parentState.loadStatus === "ListNotFound" ? styles.showErrorMessage : styles.hideMe }>
|
|
62
|
+
// <h1>We had a problem getting your data: {parentProps.tileList.listTitle}</h1>
|
|
63
|
+
// {errMessage}
|
|
64
|
+
// Check your site contents for list: <Link href={fixedURL + "_layouts/15/viewlsts.aspx"} target="_blank">{fixedURL}</Link>
|
|
65
|
+
// <h2>Other common causes for this message</h2>
|
|
66
|
+
// <h3>1) You do not have a Tile Category set for a visible tile:</h3>
|
|
67
|
+
// <p><Link href={fixedURL + listExt + parentProps.tileList.listTitle}
|
|
68
|
+
// target="_blank">
|
|
69
|
+
// {fixedURL + listExt + parentProps.tileList.listTitle}
|
|
70
|
+
// </Link></p>
|
|
71
|
+
// <h3>2) You do not have permissions to the list :(</h3>
|
|
72
|
+
// <p>Please contact your site admin for assistance!</p>
|
|
73
|
+
// </div>
|
|
74
|
+
// </div>;
|
|
75
|
+
// }
|
|
76
|
+
// return noListFound;
|
|
77
|
+
// }
|
|
78
|
+
// export function NoItemsFound (parentProps: IPivotTiles20Props,parentState: IPivotTiles20State): JSX.Element {
|
|
79
|
+
// // console.log('NoListFound');
|
|
80
|
+
// // console.log(parentProps);
|
|
81
|
+
// let noItemsFound = null;
|
|
82
|
+
// if ( parentState.loadStatus !== "ListNotFound" && parentState.loadStatus !== "NoItemsFound" ) {
|
|
83
|
+
// // console.log('Did NOT find NoItemsFound - aka found something?' );
|
|
84
|
+
// } else if ( check4This ( 'fpsShowFetchResults=true' ) !== true ) {
|
|
85
|
+
// // Skip warning if not showing this parameter https://github.com/mikezimm/pivottiles7/issues/267
|
|
86
|
+
// } else {
|
|
87
|
+
// const fixedURL = fixURLs(parentProps.tileList.listWebURL, parentProps.bannerProps.context.pageContext);
|
|
88
|
+
// const errMessage = SanitizeErrorMessage(parentState.loadError);
|
|
89
|
+
// const listExt = parentProps.tileList.listDefinition.indexOf("Library") === -1 ? "lists/" : "" ;
|
|
90
|
+
// noItemsFound =
|
|
91
|
+
// <div className={styles.rowNoPad}>
|
|
92
|
+
// <div className={parentState.loadStatus === "NoItemsFound" ? styles.showErrorMessage : styles.hideMe }>
|
|
93
|
+
// <p>{parentState.loadError}</p>
|
|
94
|
+
// <h1>No items were found in your tile list: {parentProps.tileList.listTitle}</h1>
|
|
95
|
+
// {errMessage}
|
|
96
|
+
// <p>This is the filter we are using: <b>{parentProps.tileList.setFilter}</b></p>
|
|
97
|
+
// <p>Looking here:</p>
|
|
98
|
+
// <p><Link href={fixedURL + listExt + parentProps.tileList.listTitle}
|
|
99
|
+
// target="_blank">
|
|
100
|
+
// {fixedURL + listExt + parentProps.tileList.listTitle}
|
|
101
|
+
// </Link></p>
|
|
102
|
+
// <p>You can also get this message if you do not have permissions to the list.</p>
|
|
103
|
+
// </div>
|
|
104
|
+
// </div>;
|
|
105
|
+
// }
|
|
106
|
+
// return noItemsFound;
|
|
107
|
+
// }
|
|
108
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
|
+
// export function SanitizeErrorMessage(errIn: any): JSX.Element {
|
|
110
|
+
// const err = JSON.stringify(errIn);
|
|
111
|
+
// if (errIn === "") {
|
|
112
|
+
// return undefined;
|
|
113
|
+
// }
|
|
114
|
+
// let errType = "";
|
|
115
|
+
// if (err.indexOf("[400]") > 0 ) {
|
|
116
|
+
// errType = "[400] Bad Request?";
|
|
117
|
+
// } else if (err.indexOf("[403]") > 0 ) {
|
|
118
|
+
// errType = "[403] Insufficient Permissions?";
|
|
119
|
+
// } else if (err.indexOf("[500]") > 0 ) {
|
|
120
|
+
// errType = "[500] Internal Server Error?";
|
|
121
|
+
// } else if (err.indexOf("[503]") > 0 ) {
|
|
122
|
+
// errType = "[503] Server Busy?";
|
|
123
|
+
// }
|
|
124
|
+
// const messStart = err.indexOf('message');
|
|
125
|
+
// let errValue = "";
|
|
126
|
+
// if (messStart > 0 ) {
|
|
127
|
+
// const valueStart = err.indexOf('value',messStart);
|
|
128
|
+
// if (err.indexOf('value',valueStart) > 0 ) {
|
|
129
|
+
// errValue = err.slice(valueStart + 9, valueStart + 1000);
|
|
130
|
+
// errValue = errValue.replace(/[}]/g,'').replace(/[/]/g,'').replace(/["\\]/g,'');
|
|
131
|
+
// } else {
|
|
132
|
+
// errValue = err;
|
|
133
|
+
// }
|
|
134
|
+
// }
|
|
135
|
+
// const thisError =
|
|
136
|
+
// <div>
|
|
137
|
+
// <h2>{errType}</h2>
|
|
138
|
+
// <p><mark>{errValue}</mark></p>
|
|
139
|
+
// <p/>
|
|
140
|
+
// </div>;
|
|
141
|
+
// return thisError;
|
|
142
|
+
// }
|
|
143
|
+
// export const LoadErrorIcon = 'ErrorBadge';
|
|
144
|
+
// export const LoadErrorCategory = 'ErrorMessage';
|
|
145
|
+
// export function createErrorTile( sourceType: string, errTitle: string, errDetails: string, pivotProps: IPivotTiles20Props ): IPivotTileItemProps {
|
|
146
|
+
// const tile : IPivotTileItemProps = {
|
|
147
|
+
// system: '',
|
|
148
|
+
// themeVariant: pivotProps.themeVariant,
|
|
149
|
+
// //Custom image properties
|
|
150
|
+
// imageWidth: pivotProps.images.imageWidth,
|
|
151
|
+
// imageHeight: pivotProps.images.imageHeight,
|
|
152
|
+
// textPadding: pivotProps.images.textPadding,
|
|
153
|
+
// sourceType: sourceType,
|
|
154
|
+
// sortValue: '',
|
|
155
|
+
// id: '666',
|
|
156
|
+
// title: errTitle,
|
|
157
|
+
// description: errDetails,
|
|
158
|
+
// href: null,
|
|
159
|
+
// // https://github.com/mikezimm/pivottiles7/issues/274
|
|
160
|
+
// // category: [ sourceType, 'LoadError', LoadErrorIcon, pivotProps.tabs.otherTab ],
|
|
161
|
+
// category: [ sourceType, LoadErrorCategory, pivotProps.tabs.otherTab ],
|
|
162
|
+
// setTab: pivotProps.tabs.setTab,
|
|
163
|
+
// setSize: pivotProps.images.setSize,
|
|
164
|
+
// heroType: pivotProps.hero.heroType,
|
|
165
|
+
// heroCategory: 'currentHero',
|
|
166
|
+
// Id: '666',
|
|
167
|
+
// //ifNotExistsReturnNull
|
|
168
|
+
// options: ifNotExistsReturnNull( pivotProps.tileCols.colTileStyle ),
|
|
169
|
+
// color: 'yellow',
|
|
170
|
+
// imgSize: ifNotExistsReturnNull( pivotProps.tileCols.colSize ),
|
|
171
|
+
// listWebURL: '',
|
|
172
|
+
// listTitle: '',
|
|
173
|
+
// target: 'blank',
|
|
174
|
+
// setRatio: pivotProps.images.setRatio,
|
|
175
|
+
// setImgFit: pivotProps.images.setImgFit,
|
|
176
|
+
// setImgCover: pivotProps.images.setImgCover,
|
|
177
|
+
// onHoverZoom: pivotProps.images.onHoverZoom,
|
|
178
|
+
// // imageMaxWidth: null,
|
|
179
|
+
// imageUrl: null,
|
|
180
|
+
// modifiedTime: null,
|
|
181
|
+
// createdTime: null,
|
|
182
|
+
// isNewsLink: false,
|
|
183
|
+
// modifiedByTitle: '',
|
|
184
|
+
// createdByTitle: '',
|
|
185
|
+
// createdNote: '',
|
|
186
|
+
// modifiedNote: '',
|
|
187
|
+
// } as IPivotTileItemProps;
|
|
188
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
189
|
+
// const tileAny: any = tile;
|
|
190
|
+
// tileAny.SiteLogoUrl = LoadErrorCategory;
|
|
191
|
+
// tileAny.Title = errTitle;
|
|
192
|
+
// tileAny.Description = errDetails;
|
|
193
|
+
// tileAny.SiteDescription = errDetails;
|
|
194
|
+
// tileAny.TitleDescription = errDetails;
|
|
195
|
+
// tileAny.modified = '';
|
|
196
|
+
// tileAny.created = '';
|
|
197
|
+
// return tile;
|
|
198
|
+
// }
|
|
199
|
+
//# sourceMappingURL=createErrorFPSTileItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createErrorFPSTileItem.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/createErrorFPSTileItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE;;;;;;;;;;GAUG;AAEH,MAAM,UAAU,sBAAsB,CAAE,OAA4B,EAAE,cAAwB,EAAE,WAAmB,EAAE,EAAE,aAAqB,EAAE;;IAE5I,MAAM,KAAK,GAAU,GAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,MAAO,EAAE,CAAC;IACjE,MAAM,W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,4DAA4D;AAC5D,yFAAyF;AACzF,6EAA6E;AAE7E,sCAAsC;AACtC,0CAA0C;AAC1C,0CAA0C;AAC1C,mCAAmC;AAEnC,iBAAiB;AAEjB,8BAA8B;AAC9B,0EAA0E;AAE1E,uBAAuB;AAEvB,qEAAqE;AAErE,sBAAsB;AACtB,qBAAqB;AAErB,wBAAwB;AAExB,4CAA4C;AAC5C,8CAA8C;AAC9C,kDAAkD;AAClD,kDAAkD;AAElD,8BAA8B;AAC9B,sBAAsB;AAEtB,0BAA0B;AAC1B,yBAAyB;AACzB,yBAAyB;AACzB,2BAA2B;AAC3B,0BAA0B;AAC1B,uBAAuB;AACvB,wBAAwB;AAExB,8BAA8B;AAE9B,mEAAmE;AACnE,+BAA+B;AAC/B,6CAA6C;AAC7C,8BAA8B;AAC9B,sCAAsC;AACtC,0CAA0C;AAC1C,2CAA2C;AAC3C,2BAA2B;AAC3B,0BAA0B;AAE1B,iBAAiB;AAEjB,IAAI"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IStateSource } from '../../../../pnpjs/Common/IStateSource';
|
|
2
|
+
import { IFPSItem } from '../../AnyContent/IAnyContent';
|
|
3
|
+
import { ISourceProps } from '../../../../pnpjs/SourceItems/Interface';
|
|
4
|
+
import { ISourceSearch } from '../../SearchPage/Interfaces/ISourceSearch';
|
|
5
|
+
import { IWebpartBannerProps } from '../../../../banner/mainReact/IWebpartBannerProps';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param bannerProps
|
|
9
|
+
* @param sourceProps
|
|
10
|
+
* @param search
|
|
11
|
+
* @param WPFPSItem - use buildFpsTileWPProps
|
|
12
|
+
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare function getFPSHubTiles(bannerProps: IWebpartBannerProps, sourceProps: ISourceProps, search: ISourceSearch, webPartFPSItem: IFPSItem, departmentId?: string): Promise<IStateSource>;
|
|
16
|
+
//# sourceMappingURL=getFPSHubTiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFPSHubTiles.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAIvF;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,GAAI,OAAO,CAAC,YAAY,CAAC,CAejM"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { fetchMyHubsites } from '../../SpHttp/HubsSubs/fetches/fetchMyHubsites';
|
|
2
|
+
import { processHubSubResults } from '../../SpHttp/HubsSubs/functions/processHubSubResults';
|
|
3
|
+
import { buildFPSSubHubTileItems } from './buildFPSSubHubTileItems';
|
|
4
|
+
import { createErrorFPSTileItem } from './createErrorFPSTileItem';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param bannerProps
|
|
8
|
+
* @param sourceProps
|
|
9
|
+
* @param search
|
|
10
|
+
* @param WPFPSItem - use buildFpsTileWPProps
|
|
11
|
+
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export async function getFPSHubTiles(bannerProps, sourceProps, search, webPartFPSItem, departmentId) {
|
|
15
|
+
const useDepartmentId = departmentId ? departmentId : bannerProps.context.pageContext.legacyPageContext.departmentId;
|
|
16
|
+
let results = await fetchMyHubsites(bannerProps.context.pageContext.web.absoluteUrl, useDepartmentId);
|
|
17
|
+
if (results.status !== 'Success') {
|
|
18
|
+
results.itemsY = [createErrorFPSTileItem(results, webPartFPSItem)];
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
results = processHubSubResults(results, sourceProps, search);
|
|
22
|
+
results = buildFPSSubHubTileItems(results, bannerProps, webPartFPSItem);
|
|
23
|
+
}
|
|
24
|
+
return results;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=getFPSHubTiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFPSHubTiles.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAIhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAE5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAE,WAAgC,EAAE,WAAyB,EAAE,MAAqB,EAAE,cAAwB,EAAE,YAAqB;IAEvK,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC;IACrH,IAAI,OAAO,GAAwB,MAAM,eAAe,CAAE,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,eAAe,CAAS,CAAC;IAEpI,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;QAChC,OAAO,CAAC,MAAM,GAAG,CAAE,sBAAsB,CAAE,OAAO,EAAE,cAAc,CAAE,CAAE,CAAC;KAExE;SAAM;QACL,OAAO,GAAG,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;QAC7D,OAAO,GAAG,uBAAuB,CAAE,OAAO,EAAE,WAAW,EAAE,cAAc,CAAE,CAAC;KAC3E;IAED,OAAO,OAAO,CAAC;AAEjB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per Bing Chat
|
|
3
|
+
* Sure, I can help you with that. There are different ways to deep merge two JSON objects in TypeScript, depending on your needs and preferences. Here are some possible solutions:
|
|
4
|
+
|
|
5
|
+
You can use a third-party library such as ts-deepmerge that provides a deep merge function that automatically infers the return type based on your input, without mutating the source objects1.
|
|
6
|
+
You can use the Object.assign () method or the spread operator (…) to shallow merge the objects, and then use a recursive function to merge the nested properties2. For example:
|
|
7
|
+
|
|
8
|
+
* @param item
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function mergeDeep(target: any, source: any, skips?: string[]): any;
|
|
12
|
+
//# sourceMappingURL=mergeDeep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeDeep.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/mergeDeep.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAGH,wBAAgB,SAAS,CAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,GAAE,MAAM,EAAO,GAAI,GAAG,CAe/E"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/**
|
|
3
|
+
* Per Bing Chat
|
|
4
|
+
* Sure, I can help you with that. There are different ways to deep merge two JSON objects in TypeScript, depending on your needs and preferences. Here are some possible solutions:
|
|
5
|
+
|
|
6
|
+
You can use a third-party library such as ts-deepmerge that provides a deep merge function that automatically infers the return type based on your input, without mutating the source objects1.
|
|
7
|
+
You can use the Object.assign () method or the spread operator (…) to shallow merge the objects, and then use a recursive function to merge the nested properties2. For example:
|
|
8
|
+
|
|
9
|
+
* @param item
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
// A recursive function to deep merge two objects
|
|
13
|
+
export function mergeDeep(target, source, skips = []) {
|
|
14
|
+
if (isObject(target) && isObject(source)) {
|
|
15
|
+
for (const key in source) {
|
|
16
|
+
if (skips.indexOf(key) > -1) {
|
|
17
|
+
// Do nothing
|
|
18
|
+
target[key] = source[key];
|
|
19
|
+
}
|
|
20
|
+
else if (isObject(source[key])) {
|
|
21
|
+
if (!target[key])
|
|
22
|
+
Object.assign(target, { [key]: {} });
|
|
23
|
+
mergeDeep(target[key], source[key]);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
Object.assign(target, { [key]: source[key] });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
}
|
|
32
|
+
// A helper function to check if an item is an object
|
|
33
|
+
function isObject(item) {
|
|
34
|
+
return (item && typeof item === 'object' && !Array.isArray(item));
|
|
35
|
+
}
|
|
36
|
+
// function test( showLog = true ) {
|
|
37
|
+
// const start = new Date()
|
|
38
|
+
// // Example usage
|
|
39
|
+
// const obj1 = { a: { b: 1, c: 2 }, d: 3 };
|
|
40
|
+
// const obj2 = { a: { b: 4, e: 5 }, f: 6, x: JSON.parse(JSON.stringify( obj1 )) };
|
|
41
|
+
// let merged = {};
|
|
42
|
+
// for (let i = 0; i < 1000000; i++) {
|
|
43
|
+
// merged = mergeDeep (obj1, obj2);
|
|
44
|
+
// }
|
|
45
|
+
// const end = new Date()
|
|
46
|
+
// if ( showLog === true ) {
|
|
47
|
+
// console.log (merged); // { a: { b: 4, c: 2, e: 5 }, d: 3, f: 6 }
|
|
48
|
+
// console.log( 'time:', end - start )
|
|
49
|
+
// }
|
|
50
|
+
// }
|
|
51
|
+
// test()
|
|
52
|
+
// result :
|
|
53
|
+
// {
|
|
54
|
+
// "a": {
|
|
55
|
+
// "b": 4,
|
|
56
|
+
// "c": 2,
|
|
57
|
+
// "e": 5
|
|
58
|
+
// },
|
|
59
|
+
// "d": 3,
|
|
60
|
+
// "f": 6,
|
|
61
|
+
// "x": {
|
|
62
|
+
//# sourceMappingURL=mergeDeep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeDeep.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/mergeDeep.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD;;;;;;;;;GASG;AAEH,iDAAiD;AACjD,MAAM,UAAU,SAAS,CAAE,MAAW,EAAE,MAAW,EAAE,QAAkB,EAAE;IACvE,IAAI,QAAQ,CAAE,MAAM,CAAC,IAAI,QAAQ,CAAE,MAAM,CAAC,EAAE;QAC1C,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAK,KAAK,CAAC,OAAO,CAAE,GAAG,CAAE,GAAG,CAAC,CAAC,EAAG;gBAC/B,aAAa;gBACb,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAE,GAAG,CAAC,CAAC;aAC5B;iBAAM,IAAI,QAAQ,CAAE,MAAM,CAAE,GAAG,CAAC,CAAC,EAAE;gBAClC,IAAI,CAAC,MAAM,CAAE,GAAG,CAAC;oBAAE,MAAM,CAAC,MAAM,CAAE,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;gBACzD,SAAS,CAAE,MAAM,CAAE,GAAG,CAAC,EAAE,MAAM,CAAE,GAAG,CAAC,CAAC,CAAC;aACxC;iBAAM;gBACL,MAAM,CAAC,MAAM,CAAE,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,CAAE,GAAG,CAAC,EAAE,CAAC,CAAC;aACjD;SACF;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,qDAAqD;AACrD,SAAS,QAAQ,CAAE,IAAS;IAC1B,OAAO,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAE,IAAI,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,oCAAoC;AAEpC,6BAA6B;AAC7B,qBAAqB;AACrB,8CAA8C;AAC9C,qFAAqF;AAErF,qBAAqB;AAErB,wCAAwC;AACxC,uCAAuC;AACvC,MAAM;AACN,2BAA2B;AAC3B,+BAA+B;AAC/B,uEAAuE;AACvE,2CAA2C;AAC3C,MAAM;AAEN,IAAI;AAEJ,SAAS;AAET,WAAW;AAEX,IAAI;AACJ,WAAW;AACX,cAAc;AACd,cAAc;AACd,aAAa;AACb,OAAO;AACP,YAAY;AACZ,YAAY;AACZ,WAAW"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAnySourceItem } from "../../../molecules/AnyContent/IAnyContent";
|
|
3
|
+
export declare function onFPSClick(event: React.MouseEvent<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement | HTMLLinkElement>, tile: IAnySourceItem): void;
|
|
4
|
+
//# sourceMappingURL=onFPSClick.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onFPSClick.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/onFPSClick.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,wBAAgB,UAAU,CAAG,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,eAAe,GAAG,eAAe,CAAE,EAAE,IAAI,EAAE,cAAc,GAAK,IAAI,CA8B/K"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function onFPSClick(event, tile) {
|
|
2
|
+
const { altKey, ctrlKey, shiftKey, metaKey } = event;
|
|
3
|
+
const { FPSItem } = tile;
|
|
4
|
+
const { href, altClick, ctrlClick, shiftClick, key3Click } = FPSItem ? FPSItem.Link : null;
|
|
5
|
+
console.log('event', event);
|
|
6
|
+
console.log('tile', tile);
|
|
7
|
+
if (metaKey) {
|
|
8
|
+
const metaClick = `${href}${href.indexOf('?') > -1 ? '&' : '?'}debug=true&noredir=true&debugManifestsFile=https://localhost:4321/temp/manifests.js`;
|
|
9
|
+
window.open(metaClick, '_none'); // For SPO Link, _blank opens in new tab
|
|
10
|
+
}
|
|
11
|
+
else if (altKey && shiftKey && ctrlKey) {
|
|
12
|
+
window.open(key3Click, '_none');
|
|
13
|
+
}
|
|
14
|
+
else if (ctrlKey) {
|
|
15
|
+
window.open(ctrlClick, '_none'); // For SPO Link, _none opens in new tab BUT DOES NOT jump to it
|
|
16
|
+
}
|
|
17
|
+
else if (altKey) {
|
|
18
|
+
window.open(altClick, '_blank'); // For SPO Link, _blank opens in new tab AND Jumps to it
|
|
19
|
+
}
|
|
20
|
+
else if (shiftKey) {
|
|
21
|
+
window.open(shiftClick, '_none');
|
|
22
|
+
}
|
|
23
|
+
else if (href) {
|
|
24
|
+
window.open(href, '_self'); // For SPO Link, _self opens in the CURRENT tab
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=onFPSClick.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onFPSClick.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/onFPSClick.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAG,KAAoH,EAAE,IAAoB;IAErK,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAE3F,OAAO,CAAC,GAAG,CAAE,OAAO,EAAE,KAAK,CAAE,CAAC;IAC9B,OAAO,CAAC,GAAG,CAAE,MAAM,EAAE,IAAI,CAAE,CAAC;IAE5B,IAAK,OAAO,EAAG;QACb,MAAM,SAAS,GAAG,GAAG,IAAI,GAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAI,qFAAqF,CAAC;QACtJ,MAAM,CAAC,IAAI,CAAE,SAAS,EAAE,OAAO,CAAE,CAAC,CAAC,wCAAwC;KAE5E;SAAM,IAAK,MAAM,IAAI,QAAQ,IAAI,OAAO,EAAG;QAC1C,MAAM,CAAC,IAAI,CAAE,SAAS,EAAE,OAAO,CAAE,CAAC;KAEnC;SAAM,IAAK,OAAO,EAAG;QACpB,MAAM,CAAC,IAAI,CAAE,SAAS,EAAE,OAAO,CAAE,CAAC,CAAC,+DAA+D;KAEnG;SAAM,IAAK,MAAM,EAAG;QACnB,MAAM,CAAC,IAAI,CAAE,QAAQ,EAAE,QAAQ,CAAE,CAAC,CAAC,wDAAwD;KAE5F;SAAM,IAAK,QAAQ,EAAG;QACrB,MAAM,CAAC,IAAI,CAAE,UAAU,EAAE,OAAO,CAAE,CAAC;KAEpC;SAAM,IAAK,IAAI,EAAG;QACjB,MAAM,CAAC,IAAI,CAAE,IAAI,EAAE,OAAO,CAAE,CAAC,CAAC,+CAA+C;KAC9E;AAGH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IFPSItem } from '../../AnyContent/IAnyContent';
|
|
2
|
+
import { IFpsTileComponentWPProps } from '../webPart/IFpsTileComponentWPProps';
|
|
3
|
+
/**
|
|
4
|
+
* This will take WP Props and create a shell FpsItem object which can be added to the item later on or passed in to some components
|
|
5
|
+
* @param wpProps
|
|
6
|
+
* @returns
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildFpsTileWPProps(wpProps: IFpsTileComponentWPProps, hUnit?: string, wUnit?: string): IFPSItem;
|
|
10
|
+
/**
|
|
11
|
+
* mergeFPSItemProps will take the wpProps and create FPSItem.
|
|
12
|
+
* Then, if there is a previousFpsItem, it will merge those into the ones based on current props.
|
|
13
|
+
* This means that if you run this type of function twice, the second time will take precedence on the same object.
|
|
14
|
+
*
|
|
15
|
+
* @param wpProps
|
|
16
|
+
* @param previousFpsItem
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function mergeFPSItemProps(wpProps: IFpsTileComponentWPProps, previousFpsItem?: IFPSItem): IFPSItem;
|
|
20
|
+
//# sourceMappingURL=packageFPSTileProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageFPSTileProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/packageFPSTileProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAG,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAI/E;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAG,OAAO,EAAE,wBAAwB,EAAE,KAAK,GAAE,MAAa,EAAE,KAAK,GAAE,MAAa,GAAK,QAAQ,CA0B/H;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAG,OAAO,EAAE,wBAAwB,EAAE,eAAe,CAAC,EAAE,QAAQ,GAAI,QAAQ,CAQ5G"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { getImgCover, getImgFit } from '../../../../common/Images/imgFit';
|
|
2
|
+
import { mergeDeep } from './mergeDeep';
|
|
3
|
+
/**
|
|
4
|
+
* This will take WP Props and create a shell FpsItem object which can be added to the item later on or passed in to some components
|
|
5
|
+
* @param wpProps
|
|
6
|
+
* @returns
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export function buildFpsTileWPProps(wpProps, hUnit = 'px', wUnit = 'px') {
|
|
10
|
+
const FpsItem = {
|
|
11
|
+
Image: {
|
|
12
|
+
src: ``,
|
|
13
|
+
css: {
|
|
14
|
+
height: `${wpProps.tileImgHeight}${hUnit}`,
|
|
15
|
+
width: `${wpProps.tileImgWidth}${wUnit}`,
|
|
16
|
+
background: wpProps.tileImgBackground,
|
|
17
|
+
},
|
|
18
|
+
fabric: {
|
|
19
|
+
imgCover: getImgCover(wpProps.tileImgCover),
|
|
20
|
+
imgFit: getImgFit(wpProps.tileImgFit),
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
Link: {
|
|
24
|
+
href: ``,
|
|
25
|
+
},
|
|
26
|
+
Icon: {
|
|
27
|
+
name: ``,
|
|
28
|
+
},
|
|
29
|
+
IsA: { allIsAKeys: [] }
|
|
30
|
+
};
|
|
31
|
+
return FpsItem;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* mergeFPSItemProps will take the wpProps and create FPSItem.
|
|
35
|
+
* Then, if there is a previousFpsItem, it will merge those into the ones based on current props.
|
|
36
|
+
* This means that if you run this type of function twice, the second time will take precedence on the same object.
|
|
37
|
+
*
|
|
38
|
+
* @param wpProps
|
|
39
|
+
* @param previousFpsItem
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
export function mergeFPSItemProps(wpProps, previousFpsItem) {
|
|
43
|
+
const thisFPSItem = buildFpsTileWPProps(wpProps);
|
|
44
|
+
if (!previousFpsItem)
|
|
45
|
+
return thisFPSItem;
|
|
46
|
+
const mergedFPSItem = mergeDeep(thisFPSItem, previousFpsItem, ['Elements']);
|
|
47
|
+
return mergedFPSItem;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=packageFPSTileProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageFPSTileProps.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/packageFPSTileProps.ts"],"names":[],"mapp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
key: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare function FPSTileWPGroup(): IPropertyPaneGroup;
|
|
8
|
+
//# sourceMappingURL=FPSTileWPGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSTileWPGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/webPart/FPSTileWPGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EACJ,kBAAkB,EAGpB,MAAM,6BAA6B,CAAC;AAKrC,eAAO,MAAM,qBAAqB;;;;GASjC,CAAC;AAEF,wBAAgB,cAAc,IAAK,kBAAkB,CAyEpD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PropertyPaneDropdown, PropertyPaneTextField, PropertyPaneSlider, PropertyPaneToggle } from '@microsoft/sp-property-pane';
|
|
2
|
+
import { imgFitChoices, imgCoverChoices, } from '../../../../common/Images/imgFit';
|
|
3
|
+
export const highlightColorChoices = [
|
|
4
|
+
{ index: 0, key: 'yellow', text: "Yellow" },
|
|
5
|
+
{ index: 1, key: 'white', text: "White" },
|
|
6
|
+
{ index: 1, key: 'lightblue', text: "Light Blue" },
|
|
7
|
+
{ index: 1, key: 'lime', text: "Lime" },
|
|
8
|
+
{ index: 1, key: 'orange', text: "Orange" },
|
|
9
|
+
{ index: 1, key: 'pink', text: "Pink" },
|
|
10
|
+
{ index: 1, key: 'coral', text: "Coral" },
|
|
11
|
+
{ index: 1, key: 'lightgray', text: "Light Gray" },
|
|
12
|
+
];
|
|
13
|
+
export function FPSTileWPGroup() {
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
const groupFields = [];
|
|
16
|
+
groupFields.push(PropertyPaneSlider('tileImgHeight', {
|
|
17
|
+
label: 'Image Height (pixels)',
|
|
18
|
+
min: 100,
|
|
19
|
+
max: 400,
|
|
20
|
+
step: 25,
|
|
21
|
+
}));
|
|
22
|
+
groupFields.push(PropertyPaneSlider('tileImgWidth', {
|
|
23
|
+
label: 'Image width (pixels)',
|
|
24
|
+
min: 100,
|
|
25
|
+
max: 500,
|
|
26
|
+
step: 25,
|
|
27
|
+
}));
|
|
28
|
+
groupFields.push(PropertyPaneDropdown('tileImgFit', {
|
|
29
|
+
label: `Image Fit`,
|
|
30
|
+
options: imgFitChoices,
|
|
31
|
+
}));
|
|
32
|
+
groupFields.push(PropertyPaneDropdown('tileImgCover', {
|
|
33
|
+
label: `Image Cover`,
|
|
34
|
+
options: imgCoverChoices,
|
|
35
|
+
}));
|
|
36
|
+
// https://github.com/mikezimm/pivottiles7/issues/306
|
|
37
|
+
groupFields.push(PropertyPaneTextField('tileImgBackground', {
|
|
38
|
+
label: `Image Background color`,
|
|
39
|
+
description: `'theme ; yellow' will set imageBackgrounds to theme and Icon backgrounds to yellow`,
|
|
40
|
+
// disabled: wpProps.ignoreList === true ? true : false,
|
|
41
|
+
}));
|
|
42
|
+
// https://github.com/mikezimm/pivottiles7/issues/306
|
|
43
|
+
groupFields.push(PropertyPaneToggle('tileTitleWrap', {
|
|
44
|
+
label: `Tile Title wrap`,
|
|
45
|
+
onText: `pre-wrap`,
|
|
46
|
+
offText: `no-wrap`,
|
|
47
|
+
// disabled: wpProps.ignoreList === true ? true : false,
|
|
48
|
+
}));
|
|
49
|
+
groupFields.push(PropertyPaneDropdown('tileImgFit', {
|
|
50
|
+
label: `Image Fit`,
|
|
51
|
+
options: imgFitChoices,
|
|
52
|
+
}));
|
|
53
|
+
// https://github.com/mikezimm/pivottiles7/issues/306 tileHighlightColor
|
|
54
|
+
groupFields.push(PropertyPaneDropdown('tileHighlightColor', {
|
|
55
|
+
label: `Highlighted color`,
|
|
56
|
+
description: `Any html color code. 'yellow' will set the Tile Description text to be yellow and more readable.`,
|
|
57
|
+
options: highlightColorChoices,
|
|
58
|
+
}));
|
|
59
|
+
const ExportThisGroup = {
|
|
60
|
+
groupName: `Tile styles`,
|
|
61
|
+
isCollapsed: false,
|
|
62
|
+
groupFields: groupFields
|
|
63
|
+
};
|
|
64
|
+
return ExportThisGroup;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=FPSTileWPGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSTileWPGroup.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/webPart/FPSTileWPGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACA,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAClF,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,eAAe,GAAG,MAAM,kCAAkC,CAAC;AAGnF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC3C,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IACzC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE;IAClD,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;IACvC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC3C,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;IACvC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IACzC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE;CACnD,CAAC;AAEF,MAAM,UAAU,cAAc;IAE5B,8DAA8D;IAC9D,MAAM,WAAW,GAA8B,EAAE,CAAC;IAGlD,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AqB;KAC/B,CAAC,CAAC,CAAC;IAEN,MAAM,eAAe,GAAuB;QAC1C,SAAS,EAAE,aAAa;QACxB,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,WAAW;KACzB,CAAC;IAEF,OAAO,eAAe,CAAC;AAEzB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IImageFit, IImageCover } from '../../../../common/Images/imgFit';
|
|
2
|
+
export interface IFpsTileComponentWPProps {
|
|
3
|
+
tileImgWidth: number;
|
|
4
|
+
tileImgHeight: number;
|
|
5
|
+
tileImgCover: IImageCover;
|
|
6
|
+
tileImgFit: IImageFit;
|
|
7
|
+
tileImgBackground: string;
|
|
8
|
+
tileTitleWrap: boolean;
|
|
9
|
+
tileHighlightColor: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=IFpsTileComponentWPProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFpsTileComponentWPProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAG,MAAM,kCAAkC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,SAAS,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFpsTileComponentWPProps.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export type IContentGroup = 'Office' | 'Code' | 'Data' | 'SharePoint' | 'Media' | 'Folder' | 'Other';
|
|
1
|
+
export type IContentGroup = 'Office' | 'Code' | 'Archive' | 'Data' | 'SharePoint' | 'Media' | 'Folder' | 'Other';
|
|
2
2
|
export declare const ContentGroupOffice: IContentGroup;
|
|
3
3
|
export declare const ContentGroupData: IContentGroup;
|
|
4
|
+
export declare const ContentGroupArchive: IContentGroup;
|
|
4
5
|
export declare const ContentGroupCode: IContentGroup;
|
|
5
6
|
export declare const ContentGroupMedia: IContentGroup;
|
|
6
7
|
export declare const ContentGroupSP: IContentGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContentGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SearchPage/Interfaces/IContentGroup.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IContentGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SearchPage/Interfaces/IContentGroup.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEjH,eAAO,MAAM,kBAAkB,EAAE,aAAwB,CAAC;AAC1D,eAAO,MAAM,gBAAgB,EAAE,aAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,EAAE,aAAyB,CAAC;AAC5D,eAAO,MAAM,gBAAgB,EAAE,aAAsB,CAAC;AACtD,eAAO,MAAM,iBAAiB,EAAE,aAAuB,CAAC;AACxD,eAAO,MAAM,cAAc,EAAE,aAA4B,CAAC;AAC1D,eAAO,MAAM,kBAAkB,EAAE,aAAwB,CAAC;AAC1D,eAAO,MAAM,iBAAiB,EAAE,aAAuB,CAAC"}
|