@mikezimm/fps-library-v2 1.1.27 → 1.1.29
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 +17 -2
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.d.ts +4 -8
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.js +17 -10
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.js.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FpsTileComponent.d.ts +3 -1
- package/lib/components/molecules/FPSTiles/components/FpsTileComponent.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FpsTileComponent.js +7 -4
- package/lib/components/molecules/FPSTiles/components/FpsTileComponent.js.map +1 -1
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts +2 -1
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js +2 -2
- package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js.map +1 -1
- package/lib/components/molecules/FPSTiles/functions/mergeDeep.js +2 -2
- package/lib/components/molecules/FPSTiles/functions/mergeDeep.js.map +1 -1
- package/lib/components/molecules/FPSTiles/functions/packageFPSTileProps.js +2 -1
- package/lib/components/molecules/FPSTiles/functions/packageFPSTileProps.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts +2 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js +2 -2
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts +2 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js +3 -9
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.d.ts +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.js +1 -0
- package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.js +7 -2
- package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.d.ts +3 -1
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js +3 -2
- package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js.map +1 -1
- package/lib/logic/Arrays/searching/filterObjArrayByUniqueKey.d.ts +10 -0
- package/lib/logic/Arrays/searching/filterObjArrayByUniqueKey.d.ts.map +1 -0
- package/lib/logic/Arrays/searching/filterObjArrayByUniqueKey.js +12 -0
- package/lib/logic/Arrays/searching/filterObjArrayByUniqueKey.js.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,28 @@ npm run clean
|
|
|
4
4
|
npm run build
|
|
5
5
|
npm version major/minor/patch
|
|
6
6
|
npm publish --access=public
|
|
7
|
-
npm install @mikezimm/fps-library-v2@1.1.
|
|
7
|
+
npm install @mikezimm/fps-library-v2@1.1.29
|
|
8
8
|
|
|
9
9
|
# Changelog
|
|
10
10
|
|
|
11
11
|
NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
|
|
12
12
|
|
|
13
|
-
## 1.1.
|
|
13
|
+
## 1.1.29 - 2023-Aug 03: FpsCompactTile - improve Compact style
|
|
14
|
+
- create filterObjArrayByUniqueKey
|
|
15
|
+
- attempt to improve styling of tiles: processHubSubResults
|
|
16
|
+
- create WebSourceProps from HubSubSourceProps
|
|
17
|
+
- update fetchMyHubsites: result.fpsContentType = [ depth ];
|
|
18
|
+
- update FpsCompactTile by creating var: showAsSize to use in adjusting styling during certain instances
|
|
19
|
+
|
|
20
|
+
## 1.1.28 - 2023-Aug 03: FpsCompactTile & css
|
|
21
|
+
- npm install @mikezimm/fps-styles@1.0.44
|
|
22
|
+
- add optional farContent to FpsCompactTile and FpsTileComponent, fetchMyHubsites, getHubAssocSites
|
|
23
|
+
- add optional depth: 'site' | 'web' to getFPSHubTiles
|
|
24
|
+
- fix mergeDeep to not do anything on skips... was still setting target=source if it matched. NEED TO VERIFY on FUNCTIONS though
|
|
25
|
+
- update buildFpsTileWPProps to also set min width when using small or med... but does not seem to do anything. So also added it directly in component.
|
|
26
|
+
- add minWidth capability to FpsTileComponent when using small or med compact tile
|
|
27
|
+
|
|
28
|
+
## 1.1.27 - 2023-Aug 02: FpsCompactTile & css
|
|
14
29
|
- bump to npm install @mikezimm/fps-styles@1.0.43
|
|
15
30
|
|
|
16
31
|
## 1.1.26 - 2023-Aug 03: FpsCompactTile & css
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
import { IAnySourceItem } from '../../../AnyContent/IAnyContent';
|
|
3
3
|
import { IFPSCompactTileSize } from '../../webPart/IFpsTileComponentWPProps';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* Therefore, any item.FPSItem props will be considered the tie-breaker of both objects have the same keys.
|
|
7
|
-
*
|
|
8
|
-
* This way you can either pre-merge the FPSItem props in the initial data set or merge right here depending on needs.
|
|
9
|
-
* If you have a lot of items but only show a few need the FPSTileElement, it may not make sense to do up front.
|
|
10
|
-
*
|
|
5
|
+
* FpsCompactTile is a compact version of tile, like QuickLinks compact layout
|
|
11
6
|
* @param item
|
|
12
|
-
* @param
|
|
7
|
+
* @param size 'small' or 'med'. 'small' does not show description
|
|
8
|
+
* @param farContent is additional content that goes on far right. Can be used for adding highlight things
|
|
13
9
|
* @returns
|
|
14
10
|
*/
|
|
15
|
-
export declare function FpsCompactTile(item: IAnySourceItem, size?: IFPSCompactTileSize): JSX.Element;
|
|
11
|
+
export declare function FpsCompactTile(item: IAnySourceItem, size?: IFPSCompactTileSize, farContent?: JSX.Element): JSX.Element;
|
|
16
12
|
//# sourceMappingURL=FpsCompactTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FpsCompactTile.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAI7E
|
|
1
|
+
{"version":3,"file":"FpsCompactTile.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAI7E;;;;;;GAMG;AAEH,wBAAgB,cAAc,CAAE,IAAI,EAAE,cAAc,EAAE,IAAI,GAAE,mBAA2B,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,GAAI,GAAG,CAAC,OAAO,CAsD/H"}
|
|
@@ -5,17 +5,13 @@ import { Icon, } from 'office-ui-fabric-react/lib/Icon';
|
|
|
5
5
|
import { onFPSClick } from '../../functions/onFPSClick';
|
|
6
6
|
require('@mikezimm/fps-styles/dist/fps-compact-tile.css');
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* Therefore, any item.FPSItem props will be considered the tie-breaker of both objects have the same keys.
|
|
10
|
-
*
|
|
11
|
-
* This way you can either pre-merge the FPSItem props in the initial data set or merge right here depending on needs.
|
|
12
|
-
* If you have a lot of items but only show a few need the FPSTileElement, it may not make sense to do up front.
|
|
13
|
-
*
|
|
8
|
+
* FpsCompactTile is a compact version of tile, like QuickLinks compact layout
|
|
14
9
|
* @param item
|
|
15
|
-
* @param
|
|
10
|
+
* @param size 'small' or 'med'. 'small' does not show description
|
|
11
|
+
* @param farContent is additional content that goes on far right. Can be used for adding highlight things
|
|
16
12
|
* @returns
|
|
17
13
|
*/
|
|
18
|
-
export function FpsCompactTile(item, size = 'med') {
|
|
14
|
+
export function FpsCompactTile(item, size = 'med', farContent) {
|
|
19
15
|
const { FPSItem } = item;
|
|
20
16
|
const { src, fabric, } = FPSItem.Image;
|
|
21
17
|
const iconName = FPSItem.Icon ? FPSItem.Icon.name : '';
|
|
@@ -25,8 +21,15 @@ export function FpsCompactTile(item, size = 'med') {
|
|
|
25
21
|
const ItemOrIcon = iconName ? React.createElement(Icon, { className: ['fps-compact-icon'].join(' '), iconName: iconName, style: { color: iconColor } }) : React.createElement(Image, { style: { height: imageIsDefault === true ? '20px' : '50px' }, className: ['fps-compact-tile-image'
|
|
26
22
|
].join(' '), src: src, shouldFadeIn: true, imageFit: fabric.imgFit, coverStyle: fabric.imgCover, title: description });
|
|
27
23
|
const newClass = ['fps-compact-tile'];
|
|
28
|
-
|
|
24
|
+
const showAsSize = size === 'small' || !description ? 'small' : 'med';
|
|
25
|
+
// Added !description to force compact so that Title is more vertically centered.
|
|
26
|
+
// Unfortunately this only applies when all tiles in the row do not have a description.
|
|
27
|
+
// If one has a description, then all are treated as being taller
|
|
28
|
+
// if ( size === 'small' )
|
|
29
|
+
if (showAsSize === 'small')
|
|
29
30
|
newClass.push('is-small-compact');
|
|
31
|
+
if (farContent)
|
|
32
|
+
newClass.push('hasFarContent');
|
|
30
33
|
const isCurrent = window.location.pathname.toLocaleLowerCase().indexOf(href === null || href === void 0 ? void 0 : href.replace(window.location.origin, '').toLocaleLowerCase()) > -1 ? true : false;
|
|
31
34
|
const titleStyle = { fontSize: title ? '' : 'smaller', fontWeight: title ? '' : 400 };
|
|
32
35
|
const titleClass = ['fps-compact-tile-title', 'text-ellipse'];
|
|
@@ -41,7 +44,11 @@ export function FpsCompactTile(item, size = 'med') {
|
|
|
41
44
|
currentPageIcon,
|
|
42
45
|
" ",
|
|
43
46
|
title),
|
|
44
|
-
React.createElement("div", { className:
|
|
47
|
+
farContent ? React.createElement("div", { className: 'fps-tile-far-content' },
|
|
48
|
+
currentPageIcon,
|
|
49
|
+
" ",
|
|
50
|
+
title) : undefined,
|
|
51
|
+
showAsSize === 'med' ? React.createElement("div", { className: size === 'med' ? 'fps-compact-tile-desc text-ellipse' : 'text-hidden' }, description) : undefined);
|
|
45
52
|
return medium;
|
|
46
53
|
}
|
|
47
54
|
//# sourceMappingURL=FpsCompactTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FpsCompactTile.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,wDAAwD;AACxD,OAAO,EAAE,KAAK,GAAG,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,IAAI,GAAG,MAAM,iCAAiC,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,OAAO,CAAG,gDAAgD,CAAE,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"FpsCompactTile.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.tsx"],"names":[],"mappings":"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"}
|
|
@@ -6,9 +6,11 @@ export interface IFpsTileComponentProps {
|
|
|
6
6
|
eleExtras?: IFPSTileElementExtras;
|
|
7
7
|
eleProps?: IFPSTileElementProps;
|
|
8
8
|
tiles: IAnySourceItem[];
|
|
9
|
+
header?: JSX.Element;
|
|
10
|
+
componentClassName?: string;
|
|
9
11
|
refreshId?: string;
|
|
10
12
|
bannerProps?: IWebpartBannerProps;
|
|
11
|
-
|
|
13
|
+
tilesClassName?: string;
|
|
12
14
|
reactStyles?: React.CSSProperties;
|
|
13
15
|
}
|
|
14
16
|
export default class FpsTileComponent extends React.Component<IFpsTileComponentProps, {}> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FpsTileComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/components/FpsTileComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAG7F,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAIvF,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,
|
|
1
|
+
{"version":3,"file":"FpsTileComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/components/FpsTileComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAG7F,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAIvF,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAID,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,sBAAsB,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,KAAK,CAAa;IAEnB,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,IAAI;IAI9G,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC;CA+B5D"}
|
|
@@ -17,7 +17,7 @@ export default class FpsTileComponent extends React.Component {
|
|
|
17
17
|
const tileLayout = this.props.eleExtras && this.props.eleExtras.tileLayout ? this.props.eleExtras.tileLayout : 'hover';
|
|
18
18
|
console.log('rendering', this.count);
|
|
19
19
|
const propsImageWidth = checkDeepProperty(this.props, `eleProps.Image.css.width`.split('.'), 'EmptyString');
|
|
20
|
-
const imageWidth = propsImageWidth ? propsImageWidth : '200px';
|
|
20
|
+
const imageWidth = propsImageWidth ? tileLayout === 'small' || tileLayout === 'med' ? `${Math.max(parseInt(propsImageWidth), 250)}px` : propsImageWidth : '200px';
|
|
21
21
|
const tiles = this.props.tiles.map((newTile) => {
|
|
22
22
|
const tile = tileLayout === 'hover' ? FPSTileElement(newTile, this.props.eleExtras, this.props.eleProps) :
|
|
23
23
|
tileLayout === 'small' || tileLayout === 'med' ? FpsCompactTile(newTile, tileLayout) : undefined;
|
|
@@ -25,8 +25,8 @@ export default class FpsTileComponent extends React.Component {
|
|
|
25
25
|
});
|
|
26
26
|
const gridClasses = ['tileGrid'];
|
|
27
27
|
// Add optional className
|
|
28
|
-
if (this.props.
|
|
29
|
-
gridClasses.push(this.props.
|
|
28
|
+
if (this.props.tilesClassName)
|
|
29
|
+
gridClasses.push(this.props.tilesClassName);
|
|
30
30
|
// Merge optional reactStyles
|
|
31
31
|
const baseGridWidth = { gridTemplateColumns: `repeat( auto-fill, minmax(${imageWidth}, 1fr) )` };
|
|
32
32
|
const gridWidth = this.props.reactStyles ? { ...baseGridWidth, ...this.props.reactStyles } : baseGridWidth;
|
|
@@ -34,7 +34,10 @@ export default class FpsTileComponent extends React.Component {
|
|
|
34
34
|
" ",
|
|
35
35
|
tiles,
|
|
36
36
|
" ");
|
|
37
|
-
|
|
37
|
+
const thisComponent = !this.props.header ? tileBuild : React.createElement("div", { className: this.props.componentClassName },
|
|
38
|
+
this.props.header,
|
|
39
|
+
tileBuild);
|
|
40
|
+
return (thisComponent);
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
//# sourceMappingURL=FpsTileComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FpsTileComponent.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/components/FpsTileComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"FpsTileComponent.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/components/FpsTileComponent.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IFPSItem } from '../../AnyContent/IAnyContent';
|
|
2
|
+
import { IFetchHubDepth } from '../../SpHttp/HubsSubs/fetches/fetchMyHubsites';
|
|
2
3
|
import { ISourceProps } from '../../../../pnpjs/SourceItems/Interface';
|
|
3
4
|
import { ISourceSearch } from '../../SearchPage/Interfaces/ISourceSearch';
|
|
4
5
|
import { IStateSourceHubSubs } from '../../SpHttp/HubsSubs/getHubAssocSites';
|
|
@@ -12,5 +13,5 @@ import { IWebpartBannerProps } from '../../../../banner/mainReact/IWebpartBanner
|
|
|
12
13
|
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
13
14
|
* @returns
|
|
14
15
|
*/
|
|
15
|
-
export declare function getFPSHubTiles(bannerProps: IWebpartBannerProps, sourceProps: ISourceProps, search: ISourceSearch, webPartFPSItem: IFPSItem, departmentId?: string): Promise<IStateSourceHubSubs>;
|
|
16
|
+
export declare function getFPSHubTiles(bannerProps: IWebpartBannerProps, sourceProps: ISourceProps, search: ISourceSearch, webPartFPSItem: IFPSItem, departmentId?: string, depth?: IFetchHubDepth): Promise<IStateSourceHubSubs>;
|
|
16
17
|
//# 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;
|
|
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;AAChG,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;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,EAAE,KAAK,GAAE,cAAuB,GAAI,OAAO,CAAC,mBAAmB,CAAC,CAexO"}
|
|
@@ -11,9 +11,9 @@ import { createErrorFPSTileItem } from './createErrorFPSTileItem';
|
|
|
11
11
|
* @param departmentId - if for current site, leave empty, will get from bannerProps
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export async function getFPSHubTiles(bannerProps, sourceProps, search, webPartFPSItem, departmentId) {
|
|
14
|
+
export async function getFPSHubTiles(bannerProps, sourceProps, search, webPartFPSItem, departmentId, depth = 'site') {
|
|
15
15
|
const useDepartmentId = departmentId ? departmentId : bannerProps.context.pageContext.legacyPageContext.departmentId;
|
|
16
|
-
let results = await fetchMyHubsites(bannerProps.context.pageContext.web.absoluteUrl, useDepartmentId);
|
|
16
|
+
let results = await fetchMyHubsites(bannerProps.context.pageContext.web.absoluteUrl, depth, useDepartmentId);
|
|
17
17
|
if (results.status !== 'Success') {
|
|
18
18
|
results.itemsY = [createErrorFPSTileItem(results, webPartFPSItem)];
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFPSHubTiles.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"getFPSHubTiles.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/getFPSHubTiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAIhG,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,EAAE,QAAwB,MAAM;IAEvM,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,KAAK,EAAE,eAAe,CAAW,CAAC;IAE7I,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"}
|
|
@@ -15,12 +15,12 @@ export function mergeDeep(target, source, skips = []) {
|
|
|
15
15
|
for (const key in source) {
|
|
16
16
|
if (skips.indexOf(key) > -1) {
|
|
17
17
|
// Do nothing
|
|
18
|
-
target[key] = source[key];
|
|
18
|
+
// target[key] = source [key];
|
|
19
19
|
}
|
|
20
20
|
else if (isObject(source[key])) {
|
|
21
21
|
if (!target[key])
|
|
22
22
|
Object.assign(target, { [key]: {} });
|
|
23
|
-
mergeDeep(target[key], source[key]);
|
|
23
|
+
mergeDeep(target[key], source[key], skips);
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
Object.assign(target, { [key]: source[key] });
|
|
@@ -1 +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,
|
|
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,8BAA8B;aAC/B;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,EAAE,KAAK,CAAE,CAAC;aAChD;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"}
|
|
@@ -7,12 +7,13 @@ import { mergeDeep } from './mergeDeep';
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
export function buildFpsTileWPProps(wpProps, hUnit = 'px', wUnit = 'px') {
|
|
10
|
+
const tileImgWidth = wpProps.tileLayout === 'small' || wpProps.tileLayout === 'med' ? Math.max(wpProps.tileImgWidth, 250) : wpProps.tileImgWidth;
|
|
10
11
|
const FpsItem = {
|
|
11
12
|
Image: {
|
|
12
13
|
src: ``,
|
|
13
14
|
css: {
|
|
14
15
|
height: `${wpProps.tileImgHeight}${hUnit}`,
|
|
15
|
-
width: `${
|
|
16
|
+
width: `${tileImgWidth}${wUnit}`,
|
|
16
17
|
background: wpProps.tileImgBackground,
|
|
17
18
|
},
|
|
18
19
|
fabric: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageFPSTileProps.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/packageFPSTileProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAG,OAAiC,EAAE,QAAgB,IAAI,EAAE,QAAgB,IAAI;
|
|
1
|
+
{"version":3,"file":"packageFPSTileProps.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/functions/packageFPSTileProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAG,OAAiC,EAAE,QAAgB,IAAI,EAAE,QAAgB,IAAI;IACjH,MAAM,YAAY,GAAY,OAAO,CAAC,UAAU,KAAK,OAAO,IAAI,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAE,OAAO,CAAC,YAAY,EAAE,GAAG,CAAE,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAC5J,MAAM,OAAO,GAAa;QACxB,KAAK,EAAE;YACL,GAAG,EAAE,EAAE;YACP,GAAG,EAAE;gBACH,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,GAAG,KAAK,EAAE;gBAC1C,KAAK,EAAE,GAAG,YAAY,GAAG,KAAK,EAAE;gBAChC,UAAU,EAAE,OAAO,CAAC,iBAAiB;aACtC;YACD,MAAM,EAAE;gBACN,QAAQ,EAAE,WAAW,CAAE,OAAO,CAAC,YAAY,CAAE;gBAC7C,MAAM,EAAE,SAAS,CAAE,OAAO,CAAC,UAAU,CAAE;aACxC;SACF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,EAAE;SACT;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,EAAE;SACT;QACD,GAAG,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;KACxB,CAAA;IAED,OAAO,OAAO,CAAC;AAEjB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAG,OAAiC,EAAE,eAA0B;IAE/F,MAAM,WAAW,GAAa,mBAAmB,CAAE,OAAO,CAAE,CAAC;IAC7D,IAAK,CAAC,eAAe;QAAG,OAAO,WAAW,CAAC;IAE3C,MAAM,aAAa,GAAa,SAAS,CAAE,WAAW,EAAE,eAAe,EAAE,CAAE,UAAU,EAAG,CAAE,CAAC;IAC3F,OAAO,aAAa,CAAC;AAEvB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IJSFetchReturn } from '../../doSpJsFetch';
|
|
2
|
+
import { IFetchHubDepth } from './fetchMyHubsites';
|
|
2
3
|
export interface IFPSHubsSubs {
|
|
3
4
|
hubs: IJSFetchReturn;
|
|
4
5
|
subs: IJSFetchReturn;
|
|
@@ -11,5 +12,5 @@ export interface IFPSHubsSubs {
|
|
|
11
12
|
* @param departmentId
|
|
12
13
|
* @returns
|
|
13
14
|
*/
|
|
14
|
-
export declare function fetchMyHubSubs(webUrl: string, departmentId: string): Promise<IFPSHubsSubs>;
|
|
15
|
+
export declare function fetchMyHubSubs(webUrl: string, depth: IFetchHubDepth, departmentId: string): Promise<IFPSHubsSubs>;
|
|
15
16
|
//# sourceMappingURL=fetchMyHubsSubs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsSubs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchMyHubsSubs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,cAAc,EAAmB,MAAM,mBAAmB,CAAC;AAIpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,cAAc,CAAC;CAEtB;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAI,OAAO,CAAC,YAAY,CAAC,CAiCzH"}
|
|
@@ -11,10 +11,10 @@ import { check4This } from '@mikezimm/fps-pnp2/lib/services/sp/CheckSearch';
|
|
|
11
11
|
* @param departmentId
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export async function fetchMyHubSubs(webUrl, departmentId) {
|
|
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, departmentId),
|
|
17
|
+
fetchMyHubsites(webUrl, depth, departmentId),
|
|
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,
|
|
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;QAC9C,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"}
|
|
@@ -5,5 +5,6 @@ import { IJSFetchReturn } from '../../doSpJsFetch';
|
|
|
5
5
|
* @param departmentId
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type IFetchHubDepth = 'site' | 'web';
|
|
9
|
+
export declare function fetchMyHubsites(webUrl: string, depth: IFetchHubDepth, departmentId: string): Promise<IJSFetchReturn>;
|
|
9
10
|
//# 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;AAOhE;;;;;GAKG;
|
|
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;AAOhE;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC;AAE5C,wBAAsB,eAAe,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAI,OAAO,CAAC,cAAc,CAAC,CAkB5H"}
|
|
@@ -3,21 +3,15 @@ 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
|
-
|
|
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 async function fetchMyHubsites(webUrl, departmentId) {
|
|
6
|
+
export async function fetchMyHubsites(webUrl, depth, departmentId) {
|
|
13
7
|
let performanceSettings = { label: 'myHubs', updateMiliseconds: true, includeMsStr: true, op: 'fetch' };
|
|
14
8
|
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
15
|
-
const apiFetchAssociatedHubs = `${webUrl}/_api/search/query?querytext='DepartmentId=${departmentId} contentclass:
|
|
9
|
+
const apiFetchAssociatedHubs = `${webUrl}/_api/search/query?querytext='DepartmentId=${departmentId} contentclass:sts_${depth} -SiteId:${departmentId}'&selectproperties='${hubSelects.join(',')}'&rowlimit=${depth === 'site' ? 200 : 500}`; // 9 Works
|
|
16
10
|
let resultHubSites = await doSpJsFetch(apiFetchAssociatedHubs);
|
|
17
11
|
if (resultHubSites.ok)
|
|
18
12
|
resultHubSites.items = cleanSearchedWebs(resultHubSites.items);
|
|
19
13
|
let result = unifiedPerformanceEnd(resultHubSites, performanceSettings, fetchOp, 'fetch', 'items');
|
|
20
|
-
result.fpsContentType = [
|
|
14
|
+
result.fpsContentType = [depth];
|
|
21
15
|
result = checkItemsResults(result, `fps-library-v2: fetchMyHubsites ~ 30`, false, true);
|
|
22
16
|
return resultHubSites;
|
|
23
17
|
}
|
|
@@ -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,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,EAAmB,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;
|
|
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,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,EAAmB,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAWnG,MAAM,CAAC,KAAK,UAAU,eAAe,CAAE,MAAc,EAAE,KAAqB,EAAE,YAAoB;IAEhG,IAAI,mBAAmB,GAAyB,EAAG,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;IAC/H,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,CAAC,gBAAgB,CAAE,mBAAmB,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAErF,MAAM,sBAAsB,GAAW,GAAG,MAAM,8CAA8C,YAAY,qBAAqB,KAAK,YAAY,YAAY,uBAAuB,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,KAAK,KAAG,MAAM,CAAA,CAAC,CAAA,GAAG,CAAA,CAAC,CAAA,GAAG,EAAE,CAAC,CAAA,UAAU;IAExP,IAAI,cAAc,GAAmB,MAAM,WAAW,CAAE,sBAAsB,CAAE,CAAC;IAEjF,IAAK,cAAc,CAAC,EAAE;QAAG,cAAc,CAAC,KAAK,GAAG,iBAAiB,CAAE,cAAc,CAAC,KAAK,CAAE,CAAC;IAE1F,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHubSubSourceProps.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,eAAO,MAAM,iBAAiB,EAAE,YAoC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"createHubSubSourceProps.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,eAAO,MAAM,iBAAiB,EAAE,YAoC/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,YAAsG,CAAC"}
|
|
@@ -33,4 +33,5 @@ export const HubSubSourceProps = {
|
|
|
33
33
|
metaX: [],
|
|
34
34
|
performanceSettings: { label: 'HubSub', updateMiliseconds: true, includeMsStr: true, op: 'fetch' },
|
|
35
35
|
};
|
|
36
|
+
export const WebSourceProps = { ...HubSubSourceProps, ...{ key: 'webs', defType: 'webs', fpsContentType: ['web'], } };
|
|
36
37
|
//# sourceMappingURL=createHubSubSourceProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHubSubSourceProps.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,GAAG,EAAE,OAAO;IACZ,OAAO,EAAE,OAAO;IAChB,cAAc,EAAE,CAAE,MAAM,EAAG;IAC3B,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;IAEpB,8EAA8E;IAC9E,SAAS,EAAE,UAAU;IAErB,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,UAAU;IAEvB,sCAAsC;IACtC,kBAAkB;IAClB,uFAAuF;IACvF,+GAA+G;IAC/G,2FAA2F;IAC3F,kBAAkB;IAClB,gBAAgB,EAAE,CAAE,GAAG,EAAE,GAAG,EAAG;IAC/B,UAAU,EAAE,GAAG;IACf,OAAO,EAAE;QACP,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,IAAI;KACV;IACD,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,mBAAmB,EAAE,EAAG,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CACrG,CAAC"}
|
|
1
|
+
{"version":3,"file":"createHubSubSourceProps.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,GAAG,EAAE,OAAO;IACZ,OAAO,EAAE,OAAO;IAChB,cAAc,EAAE,CAAE,MAAM,EAAG;IAC3B,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;IAEpB,8EAA8E;IAC9E,SAAS,EAAE,UAAU;IAErB,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,UAAU;IAEvB,sCAAsC;IACtC,kBAAkB;IAClB,uFAAuF;IACvF,+GAA+G;IAC/G,2FAA2F;IAC3F,kBAAkB;IAClB,gBAAgB,EAAE,CAAE,GAAG,EAAE,GAAG,EAAG;IAC/B,UAAU,EAAE,GAAG;IACf,OAAO,EAAE;QACP,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,IAAI;KACV;IACD,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,mBAAmB,EAAE,EAAG,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CACrG,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAiB,EAAE,GAAG,iBAAiB,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,KAAK,CAAC,GAAI,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processHubSubResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"processHubSubResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAK1D,wBAAgB,oBAAoB,CAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,GAAG,mBAAmB,CAsBzI"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { check4This } from '@mikezimm/fps-pnp2/lib/services/sp/CheckSearch';
|
|
2
2
|
import { addPopularityToItems } from '../../../SearchPage/functions/markPopular';
|
|
3
3
|
import { addSearchMeta1 } from '../../../SearchPage/functions/addSearchMeta1';
|
|
4
|
+
import { filterObjArrayByUniqueKey } from '../../../../../logic/Arrays/searching/filterObjArrayByUniqueKey';
|
|
4
5
|
// import { createErrorFPSTileItem } from '../../../FPSTiles/functions/ErrorMessages';
|
|
5
6
|
export function processHubSubResults(results, sourceProps, search) {
|
|
6
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10,9 +11,13 @@ export function processHubSubResults(results, sourceProps, search) {
|
|
|
10
11
|
// finalItems.push( createErrorTile(props.fetchInfo.hubs.hubsCategory, 'HubSiteFunctions: DID NOT FIND ANY ASSOCIATED SITES!', results.errorInfo.friendly, props ));
|
|
11
12
|
}
|
|
12
13
|
else {
|
|
13
|
-
results.itemsY =
|
|
14
|
-
results.itemsY =
|
|
14
|
+
results.itemsY = filterObjArrayByUniqueKey(results.items, 'ServerRelativeUrl');
|
|
15
|
+
results.itemsY = addSearchMeta1(results.itemsY, sourceProps, search);
|
|
16
|
+
results.itemsY = addPopularityToItems(results.itemsY, 0.2);
|
|
15
17
|
results.itemsY.sort((a, b) => a.Title.localeCompare(b.Title));
|
|
18
|
+
// results.itemsY = addSearchMeta1(results.items, sourceProps, search);
|
|
19
|
+
// results.itemsY = addPopularityToItems(results.items, 0.2);
|
|
20
|
+
// results.itemsY.sort((a, b) => a.Title.localeCompare(b.Title));
|
|
16
21
|
}
|
|
17
22
|
if (check4This('fpsShowFetchResults=true') === true) {
|
|
18
23
|
console.log(`processHubResults: ~ 54`, results);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processHubSubResults.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAGjF,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E,sFAAsF;AAGtF,MAAM,UAAU,oBAAoB,CAAE,OAA4B,EAAE,WAAyB,EAAE,MAAqB;IAClH,8DAA8D;IAC9D,kDAAkD;IAElD,IAAK,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;QACjC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAE/B,oKAAoK;KACrK;SAAM;
|
|
1
|
+
{"version":3,"file":"processHubSubResults.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAGjF,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iEAAiE,CAAC;AAC5G,sFAAsF;AAGtF,MAAM,UAAU,oBAAoB,CAAE,OAA4B,EAAE,WAAyB,EAAE,MAAqB;IAClH,8DAA8D;IAC9D,kDAAkD;IAElD,IAAK,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;QACjC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAE/B,oKAAoK;KACrK;SAAM;QACL,OAAO,CAAC,MAAM,GAAG,yBAAyB,CAAE,OAAO,CAAC,KAAK,EAAE,mBAAmB,CAAE,CAAC;QACjF,OAAO,CAAC,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;QACrE,OAAO,CAAC,MAAM,GAAG,oBAAoB,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3D,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9D,uEAAuE;QACvE,6DAA6D;QAC7D,iEAAiE;KAElE;IAED,IAAI,UAAU,CAAC,0BAA0B,CAAC,KAAK,IAAI,EAAE;QAAE,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;KAAE;IACzG,OAAO,OAAO,CAAC;AAEjB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IStateSource } from '../../../../pnpjs/Common/IStateSource';
|
|
2
2
|
import { IAnySourceItem } from '../../AnyContent/IAnyContent';
|
|
3
|
+
import { IFetchHubDepth } from './fetches/fetchMyHubsites';
|
|
3
4
|
import { ISourceProps } from '../../../../pnpjs/SourceItems/Interface';
|
|
4
5
|
/**
|
|
5
6
|
* This just makes itemsY required since it is the return value (for initial build)
|
|
@@ -11,7 +12,8 @@ export interface IStateSourceHubSubs extends IStateSource {
|
|
|
11
12
|
* This MAY NOT BE NEEDED. but IStateSourceHubSubs should be moved to fetchMyHubsites?
|
|
12
13
|
* @param departmentId
|
|
13
14
|
* @param sourceProps
|
|
15
|
+
* @param depth: IFetchHubDepth 'site' or 'web'
|
|
14
16
|
* @returns
|
|
15
17
|
*/
|
|
16
|
-
export declare function getHubAssocSites(departmentId: string, sourceProps: ISourceProps): Promise<IStateSource>;
|
|
18
|
+
export declare function getHubAssocSites(departmentId: string, sourceProps: ISourceProps, depth?: IFetchHubDepth): Promise<IStateSource>;
|
|
17
19
|
//# sourceMappingURL=getHubAssocSites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHubAssocSites.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubsSubs/getHubAssocSites.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"getHubAssocSites.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubsSubs/getHubAssocSites.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAmB,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,GAAE,cAAuB,GAAI,OAAO,CAAC,YAAY,CAAC,CAW/I"}
|
|
@@ -9,11 +9,12 @@ import { fetchMyHubsites } from './fetches/fetchMyHubsites';
|
|
|
9
9
|
* This MAY NOT BE NEEDED. but IStateSourceHubSubs should be moved to fetchMyHubsites?
|
|
10
10
|
* @param departmentId
|
|
11
11
|
* @param sourceProps
|
|
12
|
+
* @param depth: IFetchHubDepth 'site' or 'web'
|
|
12
13
|
* @returns
|
|
13
14
|
*/
|
|
14
|
-
export async function getHubAssocSites(departmentId, sourceProps) {
|
|
15
|
+
export async function getHubAssocSites(departmentId, sourceProps, depth = 'site') {
|
|
15
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
-
let results = await fetchMyHubsites(sourceProps.absoluteWebUrl, departmentId);
|
|
17
|
+
let results = await fetchMyHubsites(sourceProps.absoluteWebUrl, depth, departmentId);
|
|
17
18
|
return results;
|
|
18
19
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
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,
|
|
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;AAU5E;;;;;;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,CAAW,CAAC;IAErH,OAAO,OAAO,CAAC;IAEf,8DAA8D;IAC9D,kEAAkE;AAGpE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This will take an array of objects, and return unique ones based on the key property.
|
|
3
|
+
* If there are duplicate items with the same key value, the first one is returned and the rest are not returned.
|
|
4
|
+
*
|
|
5
|
+
* Originally written for processHubSubResults using chatGPT
|
|
6
|
+
* @param arr
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function filterObjArrayByUniqueKey(arr: any[], key: string): any[];
|
|
10
|
+
//# sourceMappingURL=filterObjArrayByUniqueKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterObjArrayByUniqueKey.d.ts","sourceRoot":"","sources":["../../../../src/logic/Arrays/searching/filterObjArrayByUniqueKey.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,CAGxE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This will take an array of objects, and return unique ones based on the key property.
|
|
3
|
+
* If there are duplicate items with the same key value, the first one is returned and the rest are not returned.
|
|
4
|
+
*
|
|
5
|
+
* Originally written for processHubSubResults using chatGPT
|
|
6
|
+
* @param arr
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export function filterObjArrayByUniqueKey(arr, key) {
|
|
10
|
+
return arr.filter((obj, index, self) => index === self.findIndex((t) => t[key] === obj[key]));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=filterObjArrayByUniqueKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterObjArrayByUniqueKey.js","sourceRoot":"","sources":["../../../../src/logic/Arrays/searching/filterObjArrayByUniqueKey.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,UAAU,yBAAyB,CAAC,GAAU,EAAE,GAAW;IAC/D,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,KAAa,EAAE,IAAS,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAClH,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikezimm/fps-library-v2",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.29",
|
|
4
4
|
"description": "Library of reusable typescript/javascript functions, interfaces and constants",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@microsoft/sp-property-pane": "^1.15.2",
|
|
43
43
|
"@mikezimm/fps-pnp2": "^1.0.50",
|
|
44
|
-
"@mikezimm/fps-styles": "^1.0.
|
|
44
|
+
"@mikezimm/fps-styles": "^1.0.44",
|
|
45
45
|
"@pnp/spfx-controls-react": "3.12.0",
|
|
46
46
|
"@pnp/spfx-property-controls": "^3.6.0",
|
|
47
47
|
"office-ui-fabric-react": "^7.199.1",
|