@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
73 lines • 2.08 kB
TypeScript
import { IFieldInfo } from "../../../../types/@pnp/@2.14.0/sp/fields";
export type IValidTemplate = 100 | 101;
/**
* IFieldPanelFetchState was split off to easily return back object from the fetch
*/
export interface IFieldPanelFetchState {
listFields: IMinField[];
filtered: IMinField[];
selected: IMinField[];
status: string;
fetched: boolean;
searchText: string;
searchProp: string;
errMessage: string;
}
export interface IFieldPanelState extends IFieldPanelFetchState {
listIdx: number;
showDesignMode: boolean;
fullDesign: boolean;
panelItem: IMinField;
}
export declare const IsEditable: string;
/**
* MEMO TO SELF... IMinFieldCmds Interface keys ARE TIED DIRECTLY TO THE IAllActionTypes types in CommandAccordion.tsx .
*
* If you add one here, you need to also update that interface by hand.
*
*/
export interface IMinFieldCmds {
showToUser?: boolean;
hideFromUser?: boolean;
setUser?: boolean;
addUser?: boolean;
removeUser?: boolean;
clearUsers?: boolean;
showOnTrue?: boolean;
showOnFalse?: boolean;
showOnNull?: boolean;
setTrue?: boolean;
setFalse?: boolean;
setToggle?: boolean;
perChoice?: boolean;
promoteChoice?: boolean;
demoteChoice?: boolean;
bracketChoice?: boolean;
rejectLast?: boolean;
clearDate?: boolean;
setToday?: boolean;
set1Week?: boolean;
set1Month?: boolean;
depends?: boolean;
showIfPast?: boolean;
showIfFuture?: boolean;
replaceText?: boolean;
promptText?: boolean;
captcha?: boolean;
appendNote?: boolean;
replaceNote?: boolean;
}
export interface IMinField extends IFieldInfo {
idx: number;
searchTextLC: string;
isSelected: boolean;
isKeeper: boolean;
commands: IMinFieldCmds;
Choices?: string[];
DisplayFormat?: 0 | 1;
Formula?: string;
NumberOfLines?: number;
MaxLength?: number;
FileLeafRef?: string;
}
//# sourceMappingURL=IFieldPanelHookProps.d.ts.map