@pie-lib/scoring-config 3.5.188-next.4 → 3.5.189

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.5.189](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.188...@pie-lib/scoring-config@3.5.189) (2022-11-23)
7
+
8
+ **Note:** Version bump only for package @pie-lib/scoring-config
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.5.188](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.187...@pie-lib/scoring-config@3.5.188) (2022-11-23)
15
+
16
+ **Note:** Version bump only for package @pie-lib/scoring-config
17
+
18
+
19
+
20
+
21
+
6
22
  ## [3.5.187](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.186...@pie-lib/scoring-config@3.5.187) (2022-11-17)
7
23
 
8
24
  **Note:** Version bump only for package @pie-lib/scoring-config
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.jsx"],"names":["PartialScoringConfig","props","checked","state","onChange","setState","partialScoring","classes","label","textLabel","scoringConfig","onCheckboxChanged","React","Component","PropTypes","string","bool","object","isRequired","func","paddingTop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEaA,oB;;;;;AAYX,gCAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,8FAJX;AACNC,MAAAA,OAAO,EAAE;AADH,KAIW;AAAA,0GAQC,YAAM;AACxB,UAAMA,OAAO,GAAG,CAAC,MAAKC,KAAL,CAAWD,OAA5B;AACA,UAAQE,QAAR,GAAqB,MAAKH,KAA1B,CAAQG,QAAR;;AAEA,YAAKC,QAAL,CAAc;AACZH,QAAAA,OAAO,EAAPA;AADY,OAAd;;AAGAE,MAAAA,QAAQ,CAACF,OAAD,CAAR;AACD,KAhBkB;AAGjB,QAAQI,cAAR,GAA2BL,KAA3B,CAAQK,cAAR;AAEA,UAAKH,KAAL,CAAWD,OAAX,GAAqBI,cAArB;AALiB;AAMlB;;;;WAYD,kBAAS;AACP,wBAA2B,KAAKL,KAAhC;AAAA,UAAQM,OAAR,eAAQA,OAAR;AAAA,UAAiBC,KAAjB,eAAiBA,KAAjB;AACA,UAAQN,OAAR,GAAoB,KAAKC,KAAzB,CAAQD,OAAR;AACA,UAAMO,SAAS,GACbD,KAAK,IACL,wFAFF;AAIA,0BACE;AAAK,QAAA,SAAS,EAAED,OAAO,CAACG;AAAxB,sBACE,gCAAC,sBAAD;AAAY,QAAA,IAAI,EAAC;AAAjB,iCADF,eAEE,2CAFF,eAGE,gCAAC,sBAAD,QAAaD,SAAb,CAHF,eAIE,gCAAC,oBAAD;AAAU,QAAA,OAAO,EAAEP,OAAnB;AAA4B,QAAA,QAAQ,EAAE,KAAKS,iBAA3C;AAA8D,QAAA,KAAK,EAAE;AAArE,QAJF,CADF;AAQD;;;EA7CuCC,kBAAMC,S;;;iCAAnCb,oB,eACQ;AACjBQ,EAAAA,KAAK,EAAEM,sBAAUC,MADA;AAEjBT,EAAAA,cAAc,EAAEQ,sBAAUE,IAFT;AAGjBT,EAAAA,OAAO,EAAEO,sBAAUG,MAAV,CAAiBC,UAHT;AAIjBd,EAAAA,QAAQ,EAAEU,sBAAUK;AAJH,C;;eA+CN,wBAAW;AACxBT,EAAAA,aAAa,EAAE;AACbU,IAAAA,UAAU,EAAE;AADC;AADS,CAAX,EAIZpB,oBAJY,C","sourcesContent":["import React from 'react';\nimport Typography from '@material-ui/core/Typography';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport { withStyles } from '@material-ui/core/styles';\nimport PropTypes from 'prop-types';\n\nexport class PartialScoringConfig extends React.Component {\n static propTypes = {\n label: PropTypes.string,\n partialScoring: PropTypes.bool,\n classes: PropTypes.object.isRequired,\n onChange: PropTypes.func\n };\n\n state = {\n checked: false\n };\n\n constructor(props) {\n super(props);\n\n const { partialScoring } = props;\n\n this.state.checked = partialScoring;\n }\n\n onCheckboxChanged = () => {\n const checked = !this.state.checked;\n const { onChange } = this.props;\n\n this.setState({\n checked\n });\n onChange(checked);\n };\n\n render() {\n const { classes, label } = this.props;\n const { checked } = this.state;\n const textLabel =\n label ||\n 'Each correct response is worth 1/X where X is the number of correct answer selections.';\n\n return (\n <div className={classes.scoringConfig}>\n <Typography type=\"subheading\">Partial Scoring Rules</Typography>\n <br />\n <Typography>{textLabel}</Typography>\n <Checkbox checked={checked} onChange={this.onCheckboxChanged} label={''} />\n </div>\n );\n }\n}\n\nexport default withStyles({\n scoringConfig: {\n paddingTop: '10px'\n }\n})(PartialScoringConfig);\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.jsx"],"names":["PartialScoringConfig","props","checked","state","onChange","setState","partialScoring","classes","label","textLabel","scoringConfig","onCheckboxChanged","React","Component","PropTypes","string","bool","object","isRequired","func","paddingTop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEaA,oB;;;;;AAYX,gCAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,8FAJX;AACNC,MAAAA,OAAO,EAAE;AADH,KAIW;AAAA,0GAQC,YAAM;AACxB,UAAMA,OAAO,GAAG,CAAC,MAAKC,KAAL,CAAWD,OAA5B;AACA,UAAQE,QAAR,GAAqB,MAAKH,KAA1B,CAAQG,QAAR;;AAEA,YAAKC,QAAL,CAAc;AACZH,QAAAA,OAAO,EAAPA;AADY,OAAd;;AAGAE,MAAAA,QAAQ,CAACF,OAAD,CAAR;AACD,KAhBkB;AAGjB,QAAQI,cAAR,GAA2BL,KAA3B,CAAQK,cAAR;AAEA,UAAKH,KAAL,CAAWD,OAAX,GAAqBI,cAArB;AALiB;AAMlB;;;;WAYD,kBAAS;AACP,wBAA2B,KAAKL,KAAhC;AAAA,UAAQM,OAAR,eAAQA,OAAR;AAAA,UAAiBC,KAAjB,eAAiBA,KAAjB;AACA,UAAQN,OAAR,GAAoB,KAAKC,KAAzB,CAAQD,OAAR;AACA,UAAMO,SAAS,GAAGD,KAAK,IAAI,wFAA3B;AAEA,0BACE;AAAK,QAAA,SAAS,EAAED,OAAO,CAACG;AAAxB,sBACE,gCAAC,sBAAD;AAAY,QAAA,IAAI,EAAC;AAAjB,iCADF,eAEE,2CAFF,eAGE,gCAAC,sBAAD,QAAaD,SAAb,CAHF,eAIE,gCAAC,oBAAD;AAAU,QAAA,OAAO,EAAEP,OAAnB;AAA4B,QAAA,QAAQ,EAAE,KAAKS,iBAA3C;AAA8D,QAAA,KAAK,EAAE;AAArE,QAJF,CADF;AAQD;;;EA3CuCC,kBAAMC,S;;;iCAAnCb,oB,eACQ;AACjBQ,EAAAA,KAAK,EAAEM,sBAAUC,MADA;AAEjBT,EAAAA,cAAc,EAAEQ,sBAAUE,IAFT;AAGjBT,EAAAA,OAAO,EAAEO,sBAAUG,MAAV,CAAiBC,UAHT;AAIjBd,EAAAA,QAAQ,EAAEU,sBAAUK;AAJH,C;;eA6CN,wBAAW;AACxBT,EAAAA,aAAa,EAAE;AACbU,IAAAA,UAAU,EAAE;AADC;AADS,CAAX,EAIZpB,oBAJY,C","sourcesContent":["import React from 'react';\nimport Typography from '@material-ui/core/Typography';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport { withStyles } from '@material-ui/core/styles';\nimport PropTypes from 'prop-types';\n\nexport class PartialScoringConfig extends React.Component {\n static propTypes = {\n label: PropTypes.string,\n partialScoring: PropTypes.bool,\n classes: PropTypes.object.isRequired,\n onChange: PropTypes.func,\n };\n\n state = {\n checked: false,\n };\n\n constructor(props) {\n super(props);\n\n const { partialScoring } = props;\n\n this.state.checked = partialScoring;\n }\n\n onCheckboxChanged = () => {\n const checked = !this.state.checked;\n const { onChange } = this.props;\n\n this.setState({\n checked,\n });\n onChange(checked);\n };\n\n render() {\n const { classes, label } = this.props;\n const { checked } = this.state;\n const textLabel = label || 'Each correct response is worth 1/X where X is the number of correct answer selections.';\n\n return (\n <div className={classes.scoringConfig}>\n <Typography type=\"subheading\">Partial Scoring Rules</Typography>\n <br />\n <Typography>{textLabel}</Typography>\n <Checkbox checked={checked} onChange={this.onCheckboxChanged} label={''} />\n </div>\n );\n }\n}\n\nexport default withStyles({\n scoringConfig: {\n paddingTop: '10px',\n },\n})(PartialScoringConfig);\n"],"file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/scoring-config",
3
- "version": "3.5.188-next.4+67ed9334",
3
+ "version": "3.5.189",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "src/index.jsx",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@material-ui/core": "^3.8.3",
15
15
  "@material-ui/icons": "^3.0.2",
16
- "@pie-lib/config-ui": "^11.0.24-next.4+67ed9334",
16
+ "@pie-lib/config-ui": "^11.0.25",
17
17
  "classnames": "^2.2.6",
18
18
  "debug": "^4.1.1",
19
19
  "lodash": "^4.17.11"
@@ -25,5 +25,5 @@
25
25
  "react": "^16.8.1",
26
26
  "react-dom": "^16.9.0"
27
27
  },
28
- "gitHead": "67ed9334c986af832b0a9058b696bc803acd3d74"
28
+ "gitHead": "f81076118e63884db5f5d65a41cff9aad111137e"
29
29
  }
package/src/index.jsx CHANGED
@@ -9,11 +9,11 @@ export class PartialScoringConfig extends React.Component {
9
9
  label: PropTypes.string,
10
10
  partialScoring: PropTypes.bool,
11
11
  classes: PropTypes.object.isRequired,
12
- onChange: PropTypes.func
12
+ onChange: PropTypes.func,
13
13
  };
14
14
 
15
15
  state = {
16
- checked: false
16
+ checked: false,
17
17
  };
18
18
 
19
19
  constructor(props) {
@@ -29,7 +29,7 @@ export class PartialScoringConfig extends React.Component {
29
29
  const { onChange } = this.props;
30
30
 
31
31
  this.setState({
32
- checked
32
+ checked,
33
33
  });
34
34
  onChange(checked);
35
35
  };
@@ -37,9 +37,7 @@ export class PartialScoringConfig extends React.Component {
37
37
  render() {
38
38
  const { classes, label } = this.props;
39
39
  const { checked } = this.state;
40
- const textLabel =
41
- label ||
42
- 'Each correct response is worth 1/X where X is the number of correct answer selections.';
40
+ const textLabel = label || 'Each correct response is worth 1/X where X is the number of correct answer selections.';
43
41
 
44
42
  return (
45
43
  <div className={classes.scoringConfig}>
@@ -54,6 +52,6 @@ export class PartialScoringConfig extends React.Component {
54
52
 
55
53
  export default withStyles({
56
54
  scoringConfig: {
57
- paddingTop: '10px'
58
- }
55
+ paddingTop: '10px',
56
+ },
59
57
  })(PartialScoringConfig);