UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

49 lines (47 loc) 2.06 kB
/** * CodeAnalizerComment: Updated 2 imports on 2024-09-21 23:07:24 * Update:: import { IImageFit } to '@mikezimm/fps-core-v7/lib/common/Images/imgFit;' * Update:: import { IImageCover } to '@mikezimm/fps-core-v7/lib/common/Images/imgFit;' */ export const changesFpsTileComp = ['tileLayout', 'tileImgWidth', 'tileImgHeight', 'tileImgCover', 'tileImgFit', 'tileImgBackground', 'tileTitleWrap', 'tileHighlightColor', 'tileFileImagePriority']; /** * Sample usage of PreConfigProps * export const WPPresetEverywhere : IPreConfigSettings = { source: 'WPPresetEverywhere', location: '*', props: { ...PreConfigFpsTileCompProps, ...{ bannerTitle: "FPS Hub Connections", defPinState: 'disabled', }}, }; */ const PreConfigFpsTileBaseCompProps = { tileImgWidth: 200, tileImgHeight: 125, tileImgCover: 'landscape', tileImgFit: 'centerContain', tileImgBackground: "lightgray", tileTitleWrap: false, tileHighlightColor: "yellow", tileLayout: 'hover', }; // This is essentially the old PreConfigFpsTileCompProps option which defaults to icon export const PreConfigFpsTileCompPropsIcon = { ...PreConfigFpsTileBaseCompProps, tileFileImagePriority: 'icon', }; // https://github.com/mikezimm/pivottiles7/issues/402 // This fixes the SharePoint Logo on all Hub tiles.... Defaults to Image first if it's available. Else goes to Icon mode export const PreConfigFpsTileCompPropsDefault = { ...PreConfigFpsTileBaseCompProps, tileFileImagePriority: 'default', }; // This can be used for toggling layout export const FPSTileLayoutValues1Base = ['small', 'med', 'hover', 'tight']; export const FPSTileLayoutValues2Box = [...FPSTileLayoutValues1Base, 'list1', 'list2', 'card', 'box']; export const FPSTileLayoutValues3Image = [...FPSTileLayoutValues2Box, 'image']; // This can be used for toggling layout export const FPSFileImagePriorityValues = ['icon', 'preview', 'default', 'code']; //# sourceMappingURL=IFpsTileComponentWPProps.js.map