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
136
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.js
generated
vendored
Normal file
136
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.js
generated
vendored
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "label", "notched", "shrink"];
|
||||
import * as React from 'react';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import { shouldForwardProp } from '@mui/system/createStyled';
|
||||
import { usePickerTextFieldOwnerState } from "../usePickerTextFieldOwnerState.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const OutlineRoot = styled('fieldset', {
|
||||
name: 'MuiPickersOutlinedInput',
|
||||
slot: 'NotchedOutline'
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
||||
return {
|
||||
textAlign: 'left',
|
||||
position: 'absolute',
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
top: -5,
|
||||
left: 0,
|
||||
margin: 0,
|
||||
padding: '0 8px',
|
||||
pointerEvents: 'none',
|
||||
borderRadius: 'inherit',
|
||||
borderStyle: 'solid',
|
||||
borderWidth: 1,
|
||||
overflow: 'hidden',
|
||||
minWidth: '0%',
|
||||
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
||||
};
|
||||
});
|
||||
const OutlineLabel = styled('span')(({
|
||||
theme
|
||||
}) => ({
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: 'inherit'
|
||||
}));
|
||||
const OutlineLegend = styled('legend', {
|
||||
shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'notched'
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
float: 'unset',
|
||||
// Fix conflict with bootstrap
|
||||
width: 'auto',
|
||||
// Fix conflict with bootstrap
|
||||
overflow: 'hidden',
|
||||
// Fix Horizontal scroll when label too long
|
||||
variants: [{
|
||||
props: {
|
||||
inputHasLabel: false
|
||||
},
|
||||
style: {
|
||||
padding: 0,
|
||||
lineHeight: '11px',
|
||||
// sync with `height` in `legend` styles
|
||||
transition: theme.transitions.create('width', {
|
||||
duration: 150,
|
||||
easing: theme.transitions.easing.easeOut
|
||||
})
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
inputHasLabel: true
|
||||
},
|
||||
style: {
|
||||
display: 'block',
|
||||
// Fix conflict with normalize.css and sanitize.css
|
||||
padding: 0,
|
||||
height: 11,
|
||||
// sync with `lineHeight` in `legend` styles
|
||||
fontSize: '0.75em',
|
||||
visibility: 'hidden',
|
||||
maxWidth: 0.01,
|
||||
transition: theme.transitions.create('max-width', {
|
||||
duration: 50,
|
||||
easing: theme.transitions.easing.easeOut
|
||||
}),
|
||||
whiteSpace: 'nowrap',
|
||||
'& > span': {
|
||||
paddingLeft: 5,
|
||||
paddingRight: 5,
|
||||
display: 'inline-block',
|
||||
opacity: 0,
|
||||
visibility: 'visible'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
inputHasLabel: true,
|
||||
notched: true
|
||||
},
|
||||
style: {
|
||||
maxWidth: '100%',
|
||||
transition: theme.transitions.create('max-width', {
|
||||
duration: 100,
|
||||
easing: theme.transitions.easing.easeOut,
|
||||
delay: 50
|
||||
})
|
||||
}
|
||||
}]
|
||||
}));
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
export default function Outline(props) {
|
||||
const {
|
||||
className,
|
||||
label,
|
||||
notched
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = usePickerTextFieldOwnerState();
|
||||
return /*#__PURE__*/_jsx(OutlineRoot, _extends({
|
||||
"aria-hidden": true,
|
||||
className: className
|
||||
}, other, {
|
||||
ownerState: ownerState,
|
||||
children: /*#__PURE__*/_jsx(OutlineLegend, {
|
||||
ownerState: ownerState,
|
||||
notched: notched,
|
||||
children: label ? /*#__PURE__*/_jsx(OutlineLabel, {
|
||||
children: label
|
||||
}) :
|
||||
/*#__PURE__*/
|
||||
// notranslate needed while Google Translate will not fix zero-width space issue
|
||||
_jsx(OutlineLabel, {
|
||||
className: "notranslate",
|
||||
children: "\u200B"
|
||||
})
|
||||
})
|
||||
}));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue