@mikezimm/fps-library-v2 1.1.20 → 1.1.22

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 CHANGED
@@ -4,12 +4,16 @@ 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.20
7
+ npm install @mikezimm/fps-library-v2@1.1.21
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.21 - 2023-July 31: FPSTileComponet & css
14
+ - migrate actual FpsTileComponent
15
+ - update css require statements for FpsTileComponent
16
+
13
17
  ## 1.1.20 - 2023-July 31: FPSTileComponet css
14
18
  npm install @mikezimm/fps-styles@1.0.41
15
19
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- require('./pubDate.css');
2
+ require('@mikezimm/fps-styles/dist/pubDate.css');
3
3
  export function createContentPubDate(item) {
4
4
  var _a;
5
5
  const pubDate = !item.FirstPublishedDate ? null : React.createElement("div", { className: 'pubDate', title: `Published on ${item.FirstPublishedDate}`, style: {
@@ -1 +1 @@
1
- {"version":3,"file":"createContentPubDate.js","sourceRoot":"","sources":["../../../../src/components/atoms/Highlights/createContentPubDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,CAAE,eAAe,CAAC,CAAC;AAE1B,MAAM,UAAU,oBAAoB,CAAC,IAAoB;;IACvD,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,IAAI,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE;YACpI,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM;YAC9E,KAAK,EAAE,SAAS;SACjB,IAAG,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAO,CAAC;IAE1D,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"createContentPubDate.js","sourceRoot":"","sources":["../../../../src/components/atoms/Highlights/createContentPubDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,CAAE,uCAAuC,CAAC,CAAC;AAElD,MAAM,UAAU,oBAAoB,CAAC,IAAoB;;IACvD,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,IAAI,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE;YACpI,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM;YAC9E,KAAK,EAAE,SAAS;SACjB,IAAG,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAO,CAAC;IAE1D,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { IFPSTileElementExtras, IFPSTileElementProps } from './FPSTile/IFPSTileElementProps';
3
+ import { IAnySourceItem } from '../../AnyContent/IAnyContent';
4
+ export interface IFpsTileComponentProps {
5
+ eleExtras?: IFPSTileElementExtras;
6
+ eleProps?: IFPSTileElementProps;
7
+ tiles: IAnySourceItem[];
8
+ }
9
+ export default class FpsTileComponent extends React.Component<IFpsTileComponentProps, {}> {
10
+ private count;
11
+ render(): React.ReactElement<IFpsTileComponentProps>;
12
+ }
13
+ //# sourceMappingURL=FpsTileComponent.d.ts.map
@@ -0,0 +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;AAI9D,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAID,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,sBAAsB,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,KAAK,CAAa;IACnB,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC;CAkB5D"}
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { FPSTileElement } from './FPSTile/FpsTileElement';
3
+ import { checkDeepProperty } from '../../../../logic/Objects/deep';
4
+ require('@mikezimm/fps-styles/dist/fps-tile-component.css');
5
+ export default class FpsTileComponent extends React.Component {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.count = 0;
9
+ }
10
+ render() {
11
+ this.count++;
12
+ console.log('rendering', this.count);
13
+ const propsImageWidth = checkDeepProperty(this.props, `eleProps.Image.css.width`.split('.'), 'EmptyString');
14
+ const imageWidth = propsImageWidth ? propsImageWidth : '200px';
15
+ const tiles = this.props.tiles.map((newTile) => {
16
+ const tile = FPSTileElement(newTile, this.props.eleExtras, this.props.eleProps);
17
+ return tile;
18
+ });
19
+ const gridClasses = ['tileGrid'];
20
+ const gridWidth = { gridTemplateColumns: `repeat( auto-fill, minmax(${imageWidth}, 1fr) )` };
21
+ const tileBuild = React.createElement("div", { className: gridClasses.join(' '), style: gridWidth },
22
+ " ",
23
+ tiles,
24
+ " ");
25
+ return (tileBuild);
26
+ }
27
+ }
28
+ //# sourceMappingURL=FpsTileComponent.js.map
@@ -0,0 +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;AAQnE,OAAO,CAAE,kDAAkD,CAAC,CAAC;AAE7D,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAqC;IAAzF;;QACU,UAAK,GAAW,CAAC,CAAC;IAmB5B,CAAC;IAlBQ,MAAM;QACX,IAAI,CAAC,KAAK,EAAG,CAAC;QACd,OAAO,CAAC,GAAG,CAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAE,CAAC;QACvC,MAAM,eAAe,GAAG,iBAAiB,CAAE,IAAI,CAAC,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,aAAa,CAAG,CAAC;QAC/G,MAAM,UAAU,GAAW,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC;QACvE,MAAM,KAAK,GAAmB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAE,CAAE,OAAuB,EAAG,EAAE;YAChF,MAAM,IAAI,GAAG,cAAc,CAAE,OAAyB,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAE,CAAC;YACpG,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,CAAE,UAAU,CAAE,CAAC;QACnC,MAAM,SAAS,GAAwB,EAAE,mBAAmB,EAAE,6BAA8B,UAAW,UAAU,EAAE,CAAC;QAEpH,MAAM,SAAS,GAAG,6BAAK,SAAS,EAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAG,KAAK,EAAG,SAAS;;YAAM,KAAK;gBAAS,CAAC;QAEjG,OAAO,CAAE,SAAS,CAAE,CAAC;IACvB,CAAC;CAEF"}
@@ -1,4 +1,19 @@
1
1
  import { IImageFit, IImageCover } from '../../../../common/Images/imgFit';
2
+ export declare const changesFpsTileComp: string[];
3
+ /**
4
+ * Sample usage of PreConfigProps
5
+ *
6
+ export const WPPresetEverywhere : IPreConfigSettings = {
7
+ source: 'WPPresetEverywhere',
8
+ location: '*',
9
+ props: { ...PreConfigFpsTileCompProps, ...{
10
+ bannerTitle: "FPS Hub Connections",
11
+ defPinState: 'disabled',
12
+ }},
13
+ };
14
+
15
+ */
16
+ export declare const PreConfigFpsTileCompProps: IFpsTileComponentWPProps;
2
17
  export interface IFpsTileComponentWPProps {
3
18
  tileImgWidth: number;
4
19
  tileImgHeight: number;
@@ -1 +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"}
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,eAAO,MAAM,kBAAkB,EAAG,MAAM,EACqC,CAAC;AAE9E;;;;;;;;;;;;EAYE;AACF,eAAO,MAAM,yBAAyB,EAAE,wBAQvC,CAAA;AAGD,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"}
@@ -1,2 +1,25 @@
1
- export {};
1
+ export const changesFpsTileComp = ['tileImgWidth', 'tileImgHeight', 'tileImgCover',
2
+ 'tileImgFit', 'tileImgBackground', 'tileTitleWrap', 'tileHighlightColor'];
3
+ /**
4
+ * Sample usage of PreConfigProps
5
+ *
6
+ export const WPPresetEverywhere : IPreConfigSettings = {
7
+ source: 'WPPresetEverywhere',
8
+ location: '*',
9
+ props: { ...PreConfigFpsTileCompProps, ...{
10
+ bannerTitle: "FPS Hub Connections",
11
+ defPinState: 'disabled',
12
+ }},
13
+ };
14
+
15
+ */
16
+ export const PreConfigFpsTileCompProps = {
17
+ tileImgWidth: 200,
18
+ tileImgHeight: 125,
19
+ tileImgCover: 'landscape',
20
+ tileImgFit: 'centerContain',
21
+ tileImgBackground: "lightgray",
22
+ tileTitleWrap: false,
23
+ tileHighlightColor: "yellow"
24
+ };
2
25
  //# sourceMappingURL=IFpsTileComponentWPProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IFpsTileComponentWPProps.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IFpsTileComponentWPProps.js","sourceRoot":"","sources":["../../../../../src/components/molecules/FPSTiles/webPart/IFpsTileComponentWPProps.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAc,CAAE,cAAc,EAAE,eAAe,EAAG,cAAc;IAC7F,YAAY,EAAG,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,CAAE,CAAC;AAE9E;;;;;;;;;;;;EAYE;AACF,MAAM,CAAC,MAAM,yBAAyB,GAA6B;IACjE,YAAY,EAAE,GAAG;IACjB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,WAAW;IACzB,UAAU,EAAE,eAAe;IAC3B,iBAAiB,EAAE,WAAW;IAC9B,aAAa,EAAE,KAAK;IACpB,kBAAkB,EAAE,QAAQ;CAC7B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-library-v2",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "Library of reusable typescript/javascript functions, interfaces and constants",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",