@pie-lib/scoring-config 3.5.147 → 3.5.150
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 +24 -0
- package/lib/index.js +18 -14
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.150](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.149...@pie-lib/scoring-config@3.5.150) (2022-03-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-lib/scoring-config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.5.149](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.148...@pie-lib/scoring-config@3.5.149) (2022-02-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-lib/scoring-config
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.5.148](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.147...@pie-lib/scoring-config@3.5.148) (2022-02-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/scoring-config
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.5.147](https://github.com/pie-framework/pie-lib/compare/@pie-lib/scoring-config@3.5.146...@pie-lib/scoring-config@3.5.147) (2022-02-04)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @pie-lib/scoring-config
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -17,37 +19,39 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
21
|
-
|
|
22
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
23
|
|
|
24
24
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
25
|
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
27
|
|
|
28
|
-
function
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
|
-
function
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
+
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31
35
|
|
|
32
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
37
|
|
|
34
|
-
function
|
|
38
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
39
|
|
|
36
|
-
function
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
41
|
|
|
38
42
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
43
|
|
|
40
|
-
var PartialScoringConfig =
|
|
41
|
-
/*#__PURE__*/
|
|
42
|
-
function (_React$Component) {
|
|
44
|
+
var PartialScoringConfig = /*#__PURE__*/function (_React$Component) {
|
|
43
45
|
_inherits(PartialScoringConfig, _React$Component);
|
|
44
46
|
|
|
47
|
+
var _super = _createSuper(PartialScoringConfig);
|
|
48
|
+
|
|
45
49
|
function PartialScoringConfig(props) {
|
|
46
50
|
var _this;
|
|
47
51
|
|
|
48
52
|
_classCallCheck(this, PartialScoringConfig);
|
|
49
53
|
|
|
50
|
-
_this =
|
|
54
|
+
_this = _super.call(this, props);
|
|
51
55
|
|
|
52
56
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
53
57
|
checked: false
|
|
@@ -77,11 +81,11 @@ function (_React$Component) {
|
|
|
77
81
|
label = _this$props.label;
|
|
78
82
|
var checked = this.state.checked;
|
|
79
83
|
var textLabel = label || 'Each correct response is worth 1/X where X is the number of correct answer selections.';
|
|
80
|
-
return _react["default"].createElement("div", {
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
85
|
className: classes.scoringConfig
|
|
82
|
-
}, _react["default"].createElement(_Typography["default"], {
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
83
87
|
type: "subheading"
|
|
84
|
-
}, "Partial Scoring Rules"), _react["default"].createElement("br", null), _react["default"].createElement(_Typography["default"], null, textLabel), _react["default"].createElement(_Checkbox["default"], {
|
|
88
|
+
}, "Partial Scoring Rules"), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_Typography["default"], null, textLabel), /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
85
89
|
checked: checked,
|
|
86
90
|
onChange: this.onCheckboxChanged,
|
|
87
91
|
label: ''
|
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":"
|
|
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,4DAJX;AACNC,MAAAA,OAAO,EAAE;AADH,KAIW;;AAAA,wEAQC,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;;;;gBAAnCb,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/scoring-config",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.150",
|
|
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": "^10.10.
|
|
16
|
+
"@pie-lib/config-ui": "^10.10.21",
|
|
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": "
|
|
28
|
+
"gitHead": "94d3f4ebeac61ccfff87705594a1e80f664d4975"
|
|
29
29
|
}
|