UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

44 lines 2.35 kB
/** * 2024-09-06: Migrated from fps-library-v2\src\banner\components\EasyPages\Analytics\components\... */ import { IFPSGeneric_JSX_Element } from "../../../../types/react/IFPSJSX_Element"; import { IMinReactMouseEvent } from "../../../../types/react/IReactEvents"; import { ISourceRowRender } from "../../../molecules/SourcePage/ISourceRowRender"; import { IEasyPagesSourceProps } from "../../easy-pages/interfaces/IEasyPagesPageProps"; import { IZFullAnalytics } from "./analytics"; export interface IEasyAnalyticsProps { expandedState: boolean; analyticsListX: string; analyticsWebX: string; analyticsOptionsX: string[]; trickyLytics: string[]; wpTDLeft?: string[]; wpTDRight?: string[]; wpFilterProps?: string[]; class1: string; class2: string; renderItemsRow?: (props: ISourceRowRender) => IFPSGeneric_JSX_Element; renderBarsRow?: (props: ISourceRowRender) => IFPSGeneric_JSX_Element; /** * 2025-01-16: Added for custom row render. * You need to pass in an array of strings or elements for EVERY renderItemsRow */ customItemsHeaders?: (string | IFPSGeneric_JSX_Element)[][]; /** * 2025-01-16: Currently only need these 3 for SP-API-Tester, but have the next 3 on hand and ready to go if needed */ renderCustomElement1?: (item: IZFullAnalytics, option: string, xFilter: string) => IFPSGeneric_JSX_Element; renderCustomElement1B?: (item: IZFullAnalytics, option: string, xFilter: string) => IFPSGeneric_JSX_Element; renderCustomElement1C?: (item: IZFullAnalytics, option: string, xFilter: string) => IFPSGeneric_JSX_Element; sendItemToParent?: (command: string, Id: number, type: string, item: IZFullAnalytics, event?: IMinReactMouseEvent<HTMLElement>) => void; } export interface IEasyAnalyticsHookProps { easyAnalyticsProps: IEasyAnalyticsProps; easyPagesSourceProps: IEasyPagesSourceProps; } export type IPanelOption = 'performance' | 'item'; export type IAnalyticsTab = 'Items' | 'Offices' | 'Sites' | 'Languages' | 'Dates' | 'Users' | 'CodeVersion'; export declare const AnalyticsTabs: IAnalyticsTab[]; export type ITopButtons = 'Mine' | 'OtherPeeps' | 'ThisSite' | 'OtherSites'; export declare const TopButtons: ITopButtons[]; //# sourceMappingURL=IEasyAnalyticsHookProps.d.ts.map