-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Plotly for charts; use pyproject.toml
- Loading branch information
Showing
44 changed files
with
6,012 additions
and
5,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ docs/ | |
build/ | ||
rest_pandas/static/ | ||
packages/analyst/index.js | ||
index.unpkg.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
index.js | ||
index.js.map | ||
version.js | ||
/index.js | ||
/icons.js | ||
/hooks.js | ||
/components/ | ||
/views/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.tgz | ||
__tests__ | ||
rollup.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from "react"; | ||
import { Formik } from "formik"; | ||
import { Grid } from "@mui/material"; | ||
import { AutoInput } from "@wq/react"; | ||
import { View } from "@wq/material"; | ||
import PropTypes from "prop-types"; | ||
|
||
export default function AnalystForm({ form, options, setOptions }) { | ||
return ( | ||
<Formik | ||
initialValues={options} | ||
enableReinitialize={true} | ||
validate={setOptions} | ||
> | ||
<View sx={{ p: 2 }}> | ||
<Grid container spacing={1} sx={{}}> | ||
{form.map((field) => ( | ||
<GridInput key={field.name} {...field} /> | ||
))} | ||
</Grid> | ||
</View> | ||
</Formik> | ||
); | ||
} | ||
|
||
AnalystForm.propTypes = { | ||
form: PropTypes.arrayOf(PropTypes.object), | ||
options: PropTypes.object, | ||
setOptions: PropTypes.func, | ||
}; | ||
|
||
function GridInput(props) { | ||
if (props.type === "hidden") { | ||
return <AutoInput {...props} />; | ||
} else if (props.fullwidth) { | ||
return ( | ||
<Grid item xs={12} lg={6} xl={4}> | ||
<AutoInput {...props} /> | ||
</Grid> | ||
); | ||
} else { | ||
return ( | ||
<Grid item xs={12} md={6} lg={3} xl={2}> | ||
<AutoInput {...props} /> | ||
</Grid> | ||
); | ||
} | ||
} | ||
|
||
GridInput.propTypes = { | ||
type: PropTypes.string, | ||
fullwidth: PropTypes.bool, | ||
}; |
Oops, something went wrong.