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
31
node_modules/@mui/x-date-pickers/esm/DateCalendar/useIsDateDisabled.js
generated
vendored
Normal file
31
node_modules/@mui/x-date-pickers/esm/DateCalendar/useIsDateDisabled.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import { validateDate } from "../validation/index.js";
|
||||
import { usePickerAdapter } from "../hooks/usePickerAdapter.js";
|
||||
export const useIsDateDisabled = ({
|
||||
shouldDisableDate,
|
||||
shouldDisableMonth,
|
||||
shouldDisableYear,
|
||||
minDate,
|
||||
maxDate,
|
||||
disableFuture,
|
||||
disablePast,
|
||||
timezone
|
||||
}) => {
|
||||
const adapter = usePickerAdapter();
|
||||
return React.useCallback(day => validateDate({
|
||||
adapter,
|
||||
value: day,
|
||||
timezone,
|
||||
props: {
|
||||
shouldDisableDate,
|
||||
shouldDisableMonth,
|
||||
shouldDisableYear,
|
||||
minDate,
|
||||
maxDate,
|
||||
disableFuture,
|
||||
disablePast
|
||||
}
|
||||
}) !== null, [adapter, shouldDisableDate, shouldDisableMonth, shouldDisableYear, minDate, maxDate, disableFuture, disablePast, timezone]);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue