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
45
node_modules/@mui/x-date-pickers/validation/validateDateTime.js
generated
vendored
Normal file
45
node_modules/@mui/x-date-pickers/validation/validateDateTime.js
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.validateDateTime = void 0;
|
||||
var _validateDate = require("./validateDate");
|
||||
var _validateTime = require("./validateTime");
|
||||
var _valueManagers = require("../internals/utils/valueManagers");
|
||||
/**
|
||||
* Validation props used by the Date Time Picker and Date Time Field components.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Validation props as received by the validateDateTime method.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Name of the props that should be defaulted before being passed to the validateDateTime method.
|
||||
*/
|
||||
|
||||
const validateDateTime = ({
|
||||
adapter,
|
||||
value,
|
||||
timezone,
|
||||
props
|
||||
}) => {
|
||||
const dateValidationResult = (0, _validateDate.validateDate)({
|
||||
adapter,
|
||||
value,
|
||||
timezone,
|
||||
props
|
||||
});
|
||||
if (dateValidationResult !== null) {
|
||||
return dateValidationResult;
|
||||
}
|
||||
return (0, _validateTime.validateTime)({
|
||||
adapter,
|
||||
value,
|
||||
timezone,
|
||||
props
|
||||
});
|
||||
};
|
||||
exports.validateDateTime = validateDateTime;
|
||||
validateDateTime.valueManager = _valueManagers.singleItemValueManager;
|
||||
Loading…
Add table
Add a link
Reference in a new issue