///
import { ReactElement } from "react";
import { AutoCompleteActiviteOption, NomenclatureActivityOption } from "./ActivityTypes";
import { CheckboxOneCustomOption } from "./CheckboxOptions";
import { Activity } from "./TimepickerTypes";
import { IODataStructure } from "./WeeklyPlannerTypes";
export type ActivityLabelProps = {
selectInCategory: string;
addActivity: string;
alertMessage: string;
alertIgnore: string;
alertComplete: string;
clickableListPlaceholder: string;
clickableListNotFoundLabel: string;
clickableListNotFoundComment: string;
clickableListAddActivityButton: string;
clickableListNotSearchLabel: string;
otherButton: string;
saveButton: string;
validateButton: string;
};
export type InfoProps = {
normalText?: string;
boldText?: string;
isAlertInfo?: boolean;
infoIcon?: ReactElement;
infoIconTooltip?: ReactElement;
infoIconTop?: boolean;
border: boolean;
boldFirst?: boolean;
};
export type WeeklyPlannerSpecificProps = {
surveyDate?: string;
isSubChildDisplayed: boolean;
setIsSubChildDisplayed(value: boolean): void;
isPlaceWorkDisplayed: boolean;
setIsPlaceWorkDisplayed(value: boolean): void;
setDisplayedDayHeader(value: string): void;
displayedDayHeader: string;
labels: {
title: string;
workSumLabel: string;
presentButtonLabel: string;
futureButtonLabel: string;
editButtonLabel?: string;
infoLabels: InfoProps;
dates: string;
datesStarted: string;
};
saveAll(idSurvey: string, data: [IODataStructure[], string[], string[], any[]], localSaveOnly: boolean): void;
language: string;
helpStep?: number;
moreIcon: ReactElement;
expandLessIcon: ReactElement;
expandMoreIcon: ReactElement;
expandLessWhiteIcon: ReactElement;
expandMoreWhiteIcon: ReactElement;
workIcon: ReactElement;
modifiable?: boolean;
saveHours(idSurvey: string, response: responsesHourChecker): void;
optionsIcons: {
[id: string]: {
icon?: React.FunctionComponent>;
altIcon: string;
};
};
idSurvey: string;
};
export type responsesHourChecker = {
names: string[];
values: {
[key: string]: boolean;
};
date: string;
};
export type ActivitySelecterSpecificProps = {
categoriesIcons: {
[id: string]: {
icon: React.FunctionComponent>;
altIcon: string;
};
};
clickableListIconNoResult: ReactElement;
activitesAutoCompleteRef: AutoCompleteActiviteOption[];
backClickEvent: React.MouseEvent | undefined;
nextClickEvent: React.MouseEvent | undefined;
backClickCallback(): void;
nextClickCallback(routeToGoal: boolean): void;
setDisplayStepper(value: boolean): void;
setDisplayHeader?(value: boolean): void;
categoriesAndActivitesNomenclature: NomenclatureActivityOption[];
labels: ActivityLabelProps;
errorIcon: ReactElement;
addToReferentielCallBack(newItem: AutoCompleteActiviteOption, categoryId: string | undefined, newActivity: string): void;
onSelectValue(): void;
widthGlobal?: boolean;
separatorSuggester: string;
helpStep?: number;
chevronRightIcon: React.FunctionComponent>;
chevronRightIconAlt: string;
searchIcon: React.FunctionComponent>;
searchIconAlt: string;
extensionIcon: ReactElement;
addLightBlueIcon: ReactElement;
addWhiteIcon: ReactElement;
modifiable?: boolean;
CreateIndex(optionsFiltered: AutoCompleteActiviteOption[]): elasticlunr.Index;
indexSuggester: elasticlunr.Index;
};
export type IconGridCheckBoxOneSpecificProps = {
optionsIcons: {
[id: string]: {
icon: React.FunctionComponent>;
altIcon: string;
};
};
backClickEvent: React.MouseEvent | undefined;
nextClickEvent: React.MouseEvent | undefined;
backClickCallback(): void;
nextClickCallback(): void;
labels: {
alertMessage: string;
alertIgnore: string;
alertComplete: string;
};
errorIcon: ReactElement;
onSelectValue?(): void;
modifiable?: boolean;
};
export type CheckboxGroupSpecificProps = {
optionsIcons: {
[id: string]: {
icon: React.FunctionComponent>;
altIcon: string;
};
};
backClickEvent?: React.MouseEvent;
nextClickEvent?: React.MouseEvent;
backClickCallback?(): void;
nextClickCallback?(): void;
labels?: {
alertMessage?: string;
alertIgnore?: string;
alertComplete?: string;
};
errorIcon?: ReactElement;
helpStep?: number;
modifiable?: boolean;
};
export type CheckboxOneSpecificProps = {
options?: CheckboxOneCustomOption[];
icon: ReactElement;
defaultIcon?: boolean;
labelsSpecifics?: CheckBoxOneSpecificPropsLabels;
labels?: {
alertMessage: string;
alertIgnore: string;
alertComplete: string;
};
backClickEvent?: React.MouseEvent;
nextClickEvent?: React.MouseEvent;
backClickCallback?(): void;
nextClickCallback?(): void;
errorIcon?: ReactElement;
addToReferentielCallBack?(newItem: CheckboxOneCustomOption): void;
onSelectValue?(): void;
extensionIcon: ReactElement;
modifiable?: boolean;
activitesAutoCompleteRef?: AutoCompleteActiviteOption[];
separatorSuggester?: string;
labelsClickableList?: {
clickableListPlaceholder: string;
clickableListNotFoundLabel: string;
clickableListNotFoundComment: string;
clickableListNotSearchLabel: string;
clickableListAddActivityButton: string;
otherButton: string;
saveButton: string;
addActivity: string;
};
icons?: {
clickableListIconNoResult: ReactElement;
iconAddWhite: ReactElement;
iconAddLightBlue: ReactElement;
iconExtension: ReactElement;
iconSearch: ReactElement;
};
CreateIndex?(optionsFiltered: AutoCompleteActiviteOption[]): elasticlunr.Index;
indexSuggester?: elasticlunr.Index;
};
export type CheckBoxOneSpecificPropsLabels = {
otherButtonLabel?: string;
subchildLabel?: string;
inputPlaceholder?: string;
validateButton?: string;
};
export type TimepickerSpecificProps = {
activitiesAct: Activity[];
defaultValue?: boolean;
gapToFillIndex?: number;
constants: any;
helpStep?: number;
helpImage?: ReactElement;
arrowDownIcon: ReactElement;
modifiable?: boolean;
defaultLanguage: string;
labels: {
cancelLabel: string;
validateLabel: string;
ariaLabelTimepicker: string;
};
};
export type CheckboxBooleanEdtSpecificProps = {
backClickEvent?: React.MouseEvent;
nextClickEvent?: React.MouseEvent;
backClickCallback?(): void;
nextClickCallback?(): void;
labels?: {
alertMessage?: string;
alertIgnore?: string;
alertComplete?: string;
};
onSelectValue?(): void;
errorIcon?: ReactElement;
modifiable?: boolean;
};