Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.137.181.194
{"version":3,"sources":["pages/masters/deggrp/deggrpForm.js","pages/masters/deggrp/degreeSelect.js","actions/masters/degreeGroup.js","pages/masters/deggrp/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["DegreeGroupForm","state","deggrp","fdeggrp","fdescpn","fyear","fexamtype","fexamdate","fdeleted","degoptions","degreeGroup","changeDeggrp","_callee","e","data","regenerator_default","a","wrap","_context","prev","next","undefined","_this","filter","el","i","value","toUpperCase","setState","props","getDegrees","stop","handleAddition","_callee2","_ref2","_context2","concat","Object","toConsumableArray","handleChange","objectSpread","defineProperty","name","handleCancel","this","fetchDegGrp","onRef","prevProps","deggroup_options","map","key","text","_this$state$deggrp","react_default","createElement","Form","Group","Field","width","Dropdown","size","fluid","search","selection","onChange","allowAdditions","onAddItem","placeholder","disabled","openOnFocus","options","selectOnBlur","searchInput","autoFocus","Input","label","Component","connect","user","DegreeSelect","selectDegree","target","checked","selectDeggrpDegree","_this2","degrees","className","Table","celled","style","fontSize","Header","Row","HeaderCell","singleLine","textAlign","Body","Cell","fdegree","type","fselect","degGrpDegree","payload","showError","DegreeGroup","deggroup","ftype","error","errorMessage","del_deggrp","frmsubmit","setDeggrp","handleReport","window","open","ReportAPI","univcode","header","content","handleSave","saveDeggrpDegrees","dgform","getDegreeSelect","abrupt","getDegreeGroupDegree","renderHeader","Card","display","Button","basic","color","onClick","icon","Link","to","wheight","wHeight","Content","Divider","Description","height","overflowY","deggrpForm","ref","degreeSelect","saveDeggrp","fcuruniv","asyncToGenerator","mark","dispatch","getState","response","console","log","univadmin","post","univ","funivcode","sent","error_code","msg","status","_x3","_x4","apply","arguments","_ref","_error","get","params","_x","_x2","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","n","classnames__WEBPACK_IMPORTED_MODULE_1__","classnames__WEBPACK_IMPORTED_MODULE_1___default","react__WEBPACK_IMPORTED_MODULE_2__","react__WEBPACK_IMPORTED_MODULE_2___default","_lib__WEBPACK_IMPORTED_MODULE_3__","_lib__WEBPACK_IMPORTED_MODULE_4__","_lib__WEBPACK_IMPORTED_MODULE_5__","_lib__WEBPACK_IMPORTED_MODULE_6__","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"gTAKMA,6MACJC,MAAQ,CACNC,OAAQ,CACNC,QAAS,GACTC,QAAS,GACTC,MAAO,GACPC,UAAW,GACXC,UAAW,GACXC,UAAU,GAEZC,WAAY,GACZC,YAAa,MAafC,mDAAe,SAAAC,EAAOC,EAAGC,GAAV,IAAAZ,EAAA,OAAAa,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,mBAKEC,KAJTnB,EAASoB,EAAKrB,MAAMS,YAAYa,OAAO,SAACC,EAAIC,GAChD,OAAOD,EAAGrB,SAAWW,EAAKY,MAAMC,gBAC/B,IAGDL,EAAKM,SAAS,CACZ1B,OAAQ,CACNC,QAASW,EAAKY,MACdtB,QAAS,GACTC,MAAO,GACPC,UAAW,GACXC,UAAW,GACXC,UAAU,KAIdc,EAAKM,SAAS,CAAE1B,OAAQA,IAjBbgB,EAAAE,KAAA,EAmBPE,EAAKO,MAAMlB,aAAaG,EAAKY,OAnBtB,OAoBbJ,EAAKO,MAAMC,aApBE,wBAAAZ,EAAAa,SAAAnB,gEAuBfoB,qDAAiB,SAAAC,EAAOpB,EAAPqB,GAAA,IAAAR,EAAA,OAAAX,EAAAC,EAAAC,KAAA,SAAAkB,GAAA,cAAAA,EAAAhB,KAAAgB,EAAAf,MAAA,cAAYM,EAAZQ,EAAYR,MAAZS,EAAAf,KAAA,EACTE,EAAKM,SAAS,CAClBlB,YAAW,CACT,CACEP,QAAS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EAAA,KAAAS,EAAAT,EAAA,KAAAU,EAAAV,EAAA,KASA,SAAAnC,EAAA7G,GACA,IAAA2J,EAAA3J,EAAA2J,SACAlG,EAAAzD,EAAAyD,UACAmG,EAAA5J,EAAA4J,SACAnE,EAAAzF,EAAAyF,QACAoE,EAAA7J,EAAA6J,OACAC,EAAA9J,EAAA8J,OACAC,EAAA/J,EAAA+J,WACAC,EAAAhK,EAAAgK,SACAC,EAAAjK,EAAAiK,QACAC,EAAAlK,EAAAkK,SACAC,EAAgBf,IAAE,KAAO5I,OAAA+I,EAAA,EAAA/I,CAAUoJ,EAAA,YAAwBpJ,OAAA+I,EAAA,EAAA/I,CAAUqJ,EAAA,UAAoBrJ,OAAA+I,EAAA,EAAA/I,CAAUsJ,EAAA,UAAoBtJ,OAAA+I,EAAA,EAAA/I,CAAUuJ,EAAA,cAA4BvJ,OAAA+I,EAAA,EAAA/I,CAAUwJ,EAAA,YAAwBxJ,OAAA+I,EAAA,EAAA/I,CAAUyJ,EAAA,WAAsBzJ,OAAA+I,EAAA,EAAA/I,CAAU0J,EAAA,sBAAAzG,GACzO2G,EAAa5J,OAAAgJ,EAAA,EAAAhJ,CAAiBqG,EAAA7G,GAC9BqK,EAAoB7J,OAAAiJ,EAAA,EAAAjJ,CAAcqG,EAAA7G,GAClC,OAASsJ,EAAAnK,EAAKsC,cAAA4I,EAA4BpB,IAAQ,GAAGmB,EAAA,CACrD3G,UAAA0G,IACMT,EAAA,EAAaY,MAAAX,GAAAlE,EAAAkE,GAGnB9C,EAAA0D,aAAA,kHACA1D,EAAA2D,UAiCC,GACcC,EAAA","file":"static/js/163.ea1e8728.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Form, Dropdown } from \"semantic-ui-react\";\nimport { fetchDegGrp } from \"../../../actions\";\n\nclass DegreeGroupForm extends Component {\n state = {\n deggrp: {\n fdeggrp: \"\",\n fdescpn: \"\",\n fyear: \"\",\n fexamtype: \"\",\n fexamdate: \"\",\n fdeleted: false\n },\n degoptions: [],\n degreeGroup: []\n };\n componentDidMount() {\n this.props.fetchDegGrp();\n this.props.onRef(this);\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.deggrp !== prevProps.deggrp) {\n this.setState({ degreeGroup: this.props.deggrp });\n }\n }\n\n changeDeggrp = async (e, data) => {\n const deggrp = this.state.degreeGroup.filter((el, i) => {\n return el.fdeggrp == data.value.toUpperCase();\n })[0];\n // if it is new addition\n if (deggrp === undefined) {\n this.setState({\n deggrp: {\n fdeggrp: data.value,\n fdescpn: \"\",\n fyear: \"\",\n fexamtype: \"\",\n fexamdate: \"\",\n fdeleted: false\n }\n });\n } else {\n this.setState({ deggrp: deggrp });\n }\n await this.props.changeDeggrp(data.value);\n this.props.getDegrees();\n };\n // This Function is to add new item to select box After adding onchange will also be triggered\n handleAddition = async (e, { value }) => {\n await this.setState({\n degreeGroup: [\n {\n fdeggrp: value,\n fdescpn: \"\",\n fyear: \"\",\n fexamtype: \"\",\n fexamdate: \"\",\n fdeleted: false\n },\n ...this.state.degreeGroup\n ]\n });\n };\n\n handleChange = (e, data) => {\n this.setState({\n deggrp: { ...this.state.deggrp, [data.name]: data.value }\n });\n };\n\n handleCancel = () => {\n this.setState({\n deggrp: {\n fdeggrp: \"\",\n fdescpn: \"\",\n fyear: \"\",\n fexamtype: \"\",\n fexamdate: \"\",\n fdeleted: false\n }\n });\n };\n\n render() {\n const deggroup = this.state.degreeGroup;\n var deggroup_options = deggroup.map((el, i) => {\n return { key: i, value: el.fdeggrp, text: `${el.fdeggrp}` };\n });\n\n const { fdeggrp, fyear, fdescpn, fexamtype, fexamdate } = this.state.deggrp;\n\n return (\n <div>\n <Form.Group>\n <Form.Field width={4}>\n <label>Degree Group</label>\n <Dropdown\n size=\"mini\"\n fluid\n search\n selection\n value={fdeggrp}\n onChange={this.changeDeggrp}\n allowAdditions\n onAddItem={this.handleAddition}\n placeholder=\"Deg. Grp.\"\n disabled={this.props.disabled}\n openOnFocus={false}\n options={deggroup_options}\n selectOnBlur={false}\n searchInput={{ autoFocus: true }}\n />\n </Form.Field>\n <Form.Field width={13}>\n <Form.Input\n placeholder=\"Description\"\n value={fdescpn}\n label=\"Description\"\n name=\"fdescpn\"\n onChange={this.handleChange}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Input\n placeholder=\"Year\"\n value={fyear}\n width={4}\n label=\"Year\"\n name=\"fyear\"\n onChange={this.handleChange}\n />\n <Form.Input\n placeholder=\"Type\"\n value={fexamtype}\n width={3}\n label=\"Type\"\n name=\"fexamtype\"\n onChange={this.handleChange}\n />\n <Form.Input\n placeholder=\"Exam Date\"\n label=\"Exam Date\"\n width={10}\n name=\"fexamdate\"\n value={fexamdate}\n onChange={this.handleChange}\n />\n </Form.Group>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n deggrp: state.deggrp,\n user: state.user\n };\n};\n\nexport default connect(\n mapStateToProps,\n { fetchDegGrp }\n)(DegreeGroupForm);\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Table } from \"semantic-ui-react\";\nimport { selectDeggrpDegree } from \"../../../actions/masters/degreeGroup\";\nimport { showError } from \"../../../actions\";\n\nclass DegreeSelect extends Component {\n // select or desect Degree by checking on\n selectDegree = (e, el, i) => {\n const data = { ...el, [e.target.name]: e.target.checked };\n this.props.selectDeggrpDegree(data, i);\n };\n\n render() {\n const { degrees } = this.props;\n\n return (\n <div className=\"ui mini form\">\n <Table celled style={{ fontSize: \"1.2536em\" }}>\n <Table.Header>\n <Table.Row>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n singleLine\n textAlign=\"center\"\n >\n Sl. No.\n </Table.HeaderCell>\n <Table.HeaderCell style={{ width: \"22%\" }} textAlign=\"center\">\n Degree\n </Table.HeaderCell>\n <Table.HeaderCell textAlign=\"center\">\n Description\n </Table.HeaderCell>\n <Table.HeaderCell style={{ width: \"10%\" }} textAlign=\"center\">\n Select\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {degrees.map((el, i) => {\n return (\n <Table.Row key={i}>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n\n <Table.Cell textAlign=\"center\" singleLine>\n {el.fdegree}\n </Table.Cell>\n\n <Table.Cell>{el.fdescpn}</Table.Cell>\n <Table.Cell textAlign=\"center\">\n <div className=\"ui checkbox\">\n <input\n type=\"checkbox\"\n name=\"fselect\"\n value={el.fselect}\n onChange={e => this.selectDegree(e, el, i)}\n checked={el.fselect == \"true\" ? \"checked\" : null}\n />\n <label> </label>\n </div>\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n degrees: state.degGrpDegree\n };\n};\nexport default connect(\n mapStateToProps,\n {\n selectDeggrpDegree,\n showError\n }\n)(DegreeSelect);\n","import univadmin from \"../../apis/univadmin\";\n\nexport const getDegreeGroupDegree = deggrp => {\n return async (dispatch, getState) => {\n console.log(deggrp);\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getDegreeGroupDegree\",\n deggrp: deggrp,\n univcode: state.univ.funivcode\n }\n });\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n // console.log(typeof response.data)\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n // const data = { error_code: -1, data: { msg: \"Something went wrong\" }, status: \"failure\" }\n dispatch({\n type: \"SHOW_ERROR\",\n payload: error\n });\n } else if (response.data.error_code === 0) {\n dispatch({\n type: \"FETCH_DEGGRP_DEGREE\",\n payload: response.data\n });\n } else {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch({\n type: \"SHOW_ERROR\",\n payload: error\n });\n }\n };\n};\n\n/*\nexport const addDateMaster = (item) => {\n return {\n type: 'ADD_DATE_MASTER',\n payload: item\n }\n}\n\nexport const deleteDateMaster = () => {\n return {\n type: 'DELETE_DATE_MASTER',\n }\n}*/\n\nexport const selectDeggrpDegree = (el, i) => {\n return {\n type: \"SELECT_DEGGRP_DEGREE\",\n payload: { el, i }\n };\n};\n\nexport const saveDeggrpDegrees = deggrp => {\n return async (dispatch, getState) => {\n console.log(deggrp);\n const state = getState();\n const degrees = state.degGrpDegree;\n dispatch({\n type: \"SET_LOADER\"\n });\n const response = await univadmin.post(\n \"/app.php?a=saveDeggrpDegrees&univcode=\" + state.univ.funivcode,\n {\n data: {\n deggrp: deggrp,\n degrees: degrees\n }\n }\n );\n dispatch({\n type: \"UNSET_LOADER\"\n });\n\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\"\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data\n });\n } else {\n dispatch({\n type: \"SET_ERROR\",\n payload: response.data\n });\n }\n };\n};\n","import React, { Component } from \"react\";\nimport { Card, Divider, Button, Form } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp, showError } from \"../../../actions\";\nimport {\n getDegreeGroupDegree,\n saveDeggrpDegrees\n} from \"../../../actions/masters/degreeGroup\";\n\nimport { Link } from \"react-router-dom\";\nimport { wHeight } from \"../../parms\";\nimport DegreeGroupForm from \"./deggrpForm\";\nimport DegreeSelect from \"./degreeSelect\";\nimport { ReportAPI } from \"../../../apis/consts\";\n\nclass DegreeGroup extends Component {\n state = {\n deggroup: [\n {\n fdeggrp: \"\",\n fdescpn: \"\",\n fyear: \"\",\n ftype: \"\",\n fexamdate: \"\",\n fdeleted: false\n }\n ],\n error: false,\n errorMessage: \"\",\n del_deggrp: [],\n frmsubmit: false,\n fdeggrp: \"\"\n };\n\n setDeggrp = data => {\n this.setState({ fdeggrp: data });\n };\n\n handleReport = () => {\n if (this.state.fdeggrp === \"\") {\n const error = { header: \"Error\", content: \"Degree Group required\" };\n this.props.showError(error);\n return;\n }\n window.open(\n ReportAPI +\n \"degreeGroupReport&univcode=\" +\n this.props.univcode +\n \"&fdeggrp=\" +\n this.state.fdeggrp,\n \"_blank\"\n );\n };\n\n handleSave = async () => {\n await this.props.saveDeggrpDegrees(this.dgform.state.deggrp);\n this.setState({ frmsubmit: false });\n };\n\n handleCancel = () => {\n this.setState({ frmsubmit: false });\n this.dgform.handleCancel();\n };\n\n getDegreeSelect = async () => {\n if (this.state.fdeggrp === \"\") {\n const error = { header: \"Error\", content: \"Degree Group required\" };\n this.props.showError(error);\n return;\n }\n\n await this.props.getDegreeGroupDegree(this.state.fdeggrp);\n this.setState({ frmsubmit: true });\n };\n\n renderHeader = () => {\n return (\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Degree Group</h4>\n <div className=\"ml-auto\">\n <Button\n disabled={!this.state.frmsubmit}\n basic\n color=\"green\"\n content=\"Save\"\n onClick={this.handleSave}\n icon=\"save\"\n />\n <Button\n basic\n onClick={this.handleCancel}\n color=\"black\"\n icon=\"ban\"\n content=\"Cancel\"\n />\n <Button\n basic\n color=\"blue\"\n content=\"Report\"\n icon=\"file\"\n onClick={this.handleReport}\n />\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n );\n };\n\n render() {\n const { frmsubmit } = this.state;\n\n const wheight = wHeight();\n return (\n <div className=\"animated fadeIn\">\n <Card fluid>\n <Card.Content>\n {this.renderHeader()}\n <Divider />\n <Card.Description\n style={{ height: `${wheight}px`, overflowY: \"auto\" }}\n >\n <div className=\"col-md-8\">\n <Form>\n <DegreeGroupForm\n disabled={frmsubmit}\n onRef={ref => (this.dgform = ref)}\n changeDeggrp={this.setDeggrp}\n getDegrees={this.getDegreeSelect}\n />\n </Form>\n </div>\n <Divider />\n {frmsubmit ? <DegreeSelect /> : null}\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n saveDeggrp: state.saveDeggrp,\n univcode: state.user.fcuruniv\n };\n};\n\nexport default connect(\n mapStateToProps,\n {\n saveDeggrpDegrees,\n fetchDegGrp,\n showError,\n getDegreeGroupDegree\n }\n)(DegreeGroup);\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A divider visually segments content into groups.\n */\n\nfunction Divider(props) {\n var children = props.children,\n className = props.className,\n clearing = props.clearing,\n content = props.content,\n fitted = props.fitted,\n hidden = props.hidden,\n horizontal = props.horizontal,\n inverted = props.inverted,\n section = props.section,\n vertical = props.vertical;\n var classes = cx('ui', useKeyOnly(clearing, 'clearing'), useKeyOnly(fitted, 'fitted'), useKeyOnly(hidden, 'hidden'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useKeyOnly(section, 'section'), useKeyOnly(vertical, 'vertical'), 'divider', className);\n var rest = getUnhandledProps(Divider, props);\n var ElementType = getElementType(Divider, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nDivider.handledProps = [\"as\", \"children\", \"className\", \"clearing\", \"content\", \"fitted\", \"hidden\", \"horizontal\", \"inverted\", \"section\", \"vertical\"];\nDivider.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Divider can clear the content above it. */\n clearing: PropTypes.bool,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** Divider can be fitted without any space above or below it. */\n fitted: PropTypes.bool,\n\n /** Divider can divide content without creating a dividing line. */\n hidden: PropTypes.bool,\n\n /** Divider can segment content horizontally. */\n horizontal: PropTypes.bool,\n\n /** Divider can have its colours inverted. */\n inverted: PropTypes.bool,\n\n /** Divider can provide greater margins to divide sections of content. */\n section: PropTypes.bool,\n\n /** Divider can segment content vertically. */\n vertical: PropTypes.bool\n} : {};\nexport default Divider;"],"sourceRoot":""}
|