Added Statistics calculation
Statistics now show calculated values
This commit is contained in:
parent
fe87374e47
commit
fc0f69dacb
2147 changed files with 141321 additions and 39 deletions
44
node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.d.ts
generated
vendored
Normal file
44
node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
import { UseFieldInternalProps, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, SectionOrdering, UseFieldForwardedProps, CharacterEditingQuery } from "./useField.types.js";
|
||||
import { FieldSelectedSections, PickersTimezone, InferFieldSection, PickerManager } from "../../../models/index.js";
|
||||
import { PickerValidValue } from "../../models/index.js";
|
||||
export declare const useFieldState: <TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError, TValidationProps extends {}, TForwardedProps extends UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure>>(parameters: UseFieldStateParameters<TValue, TEnableAccessibleFieldDOMStructure, TError, TValidationProps, TForwardedProps>) => UseFieldStateReturnValue<TValue>;
|
||||
interface UseFieldStateParameters<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError, TValidationProps extends {}, TForwardedProps extends UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure>> {
|
||||
manager: PickerManager<TValue, TEnableAccessibleFieldDOMStructure, TError, TValidationProps, any>;
|
||||
internalPropsWithDefaults: UseFieldInternalProps<TValue, TEnableAccessibleFieldDOMStructure, TError> & TValidationProps;
|
||||
forwardedProps: TForwardedProps;
|
||||
}
|
||||
export interface UpdateSectionValueParameters<TValue extends PickerValidValue> {
|
||||
/**
|
||||
* The section on which we want to apply the new value.
|
||||
*/
|
||||
section: InferFieldSection<TValue>;
|
||||
/**
|
||||
* Value to apply to the active section.
|
||||
*/
|
||||
newSectionValue: string;
|
||||
/**
|
||||
* If `true`, the focus will move to the next section.
|
||||
*/
|
||||
shouldGoToNextSection: boolean;
|
||||
}
|
||||
export interface UseFieldStateReturnValue<TValue extends PickerValidValue> {
|
||||
activeSectionIndex: number | null;
|
||||
areAllSectionsEmpty: boolean;
|
||||
error: boolean;
|
||||
localizedDigits: string[];
|
||||
parsedSelectedSections: FieldParsedSelectedSections;
|
||||
sectionOrder: SectionOrdering;
|
||||
sectionsValueBoundaries: FieldSectionsValueBoundaries;
|
||||
state: UseFieldState<TValue>;
|
||||
timezone: PickersTimezone;
|
||||
value: TValue;
|
||||
clearValue: () => void;
|
||||
clearActiveSection: () => void;
|
||||
setCharacterQuery: (characterQuery: CharacterEditingQuery | null) => void;
|
||||
setSelectedSections: (sections: FieldSelectedSections) => void;
|
||||
setTempAndroidValueStr: (tempAndroidValueStr: string | null) => void;
|
||||
updateSectionValue: (parameters: UpdateSectionValueParameters<TValue>) => void;
|
||||
updateValueFromValueStr: (valueStr: string) => void;
|
||||
getSectionsFromValue: (value: TValue, fallbackSections?: InferFieldSection<TValue>[] | null) => InferFieldSection<TValue>[];
|
||||
}
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue