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
29
node_modules/@mui/x-date-pickers/hooks/usePickerAdapter.js
generated
vendored
Normal file
29
node_modules/@mui/x-date-pickers/hooks/usePickerAdapter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.usePickerAdapter = exports.useLocalizationContext = void 0;
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
var _enUS = require("../locales/enUS");
|
||||
var _LocalizationProvider = require("../LocalizationProvider/LocalizationProvider");
|
||||
const useLocalizationContext = () => {
|
||||
const localization = React.useContext(_LocalizationProvider.PickerAdapterContext);
|
||||
if (localization === null) {
|
||||
throw new Error(['MUI X: Can not find the date and time pickers localization context.', 'It looks like you forgot to wrap your component in LocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package'].join('\n'));
|
||||
}
|
||||
if (localization.adapter === null) {
|
||||
throw new Error(['MUI X: Can not find the date and time pickers adapter from its localization context.', 'It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.'].join('\n'));
|
||||
}
|
||||
const localeText = React.useMemo(() => (0, _extends2.default)({}, _enUS.DEFAULT_LOCALE, localization.localeText), [localization.localeText]);
|
||||
return React.useMemo(() => (0, _extends2.default)({}, localization, {
|
||||
localeText
|
||||
}), [localization, localeText]);
|
||||
};
|
||||
exports.useLocalizationContext = useLocalizationContext;
|
||||
const usePickerAdapter = () => useLocalizationContext().adapter;
|
||||
exports.usePickerAdapter = usePickerAdapter;
|
||||
Loading…
Add table
Add a link
Reference in a new issue