@pie-element/fraction-model 1.1.0
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.json +1 -0
- package/CHANGELOG.md +12 -0
- package/LICENSE.md +5 -0
- package/README.md +18 -0
- package/configure/CHANGELOG.json +1 -0
- package/configure/CHANGELOG.md +12 -0
- package/configure/lib/card-bar.js +78 -0
- package/configure/lib/card-bar.js.map +1 -0
- package/configure/lib/defaults.js +103 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/index.js +225 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/main.js +302 -0
- package/configure/lib/main.js.map +1 -0
- package/configure/lib/model-options.js +221 -0
- package/configure/lib/model-options.js.map +1 -0
- package/configure/lib/number-text-field.js +103 -0
- package/configure/lib/number-text-field.js.map +1 -0
- package/configure/package.json +20 -0
- package/controller/CHANGELOG.json +1 -0
- package/controller/CHANGELOG.md +11 -0
- package/controller/lib/defaults.js +21 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +260 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/package.json +18 -0
- package/docs/config-schema.json +975 -0
- package/docs/config-schema.json.md +718 -0
- package/docs/demo/config.js +8 -0
- package/docs/demo/generate.js +6 -0
- package/docs/demo/index.html +1 -0
- package/docs/demo/session.js +6 -0
- package/docs/pie-schema.json +123 -0
- package/docs/pie-schema.json.md +93 -0
- package/lib/answer-fraction.js +161 -0
- package/lib/answer-fraction.js.map +1 -0
- package/lib/fraction-model-chart.js +343 -0
- package/lib/fraction-model-chart.js.map +1 -0
- package/lib/index.js +131 -0
- package/lib/index.js.map +1 -0
- package/lib/main.js +248 -0
- package/lib/main.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.NumberTextField = exports.MiniField = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
+
|
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
15
|
+
|
|
16
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
+
|
|
18
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
19
|
+
|
|
20
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
21
|
+
|
|
22
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
23
|
+
|
|
24
|
+
var _configUi = require("@pie-lib/pie-toolbox/config-ui");
|
|
25
|
+
|
|
26
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
|
+
|
|
28
|
+
var _react = _interopRequireDefault(require("react"));
|
|
29
|
+
|
|
30
|
+
var _styles = require("@material-ui/core/styles");
|
|
31
|
+
|
|
32
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
|
+
|
|
34
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
+
|
|
36
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
|
+
|
|
38
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
39
|
+
|
|
40
|
+
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; } }
|
|
41
|
+
|
|
42
|
+
var NumberTextField = /*#__PURE__*/function (_React$Component) {
|
|
43
|
+
(0, _inherits2["default"])(NumberTextField, _React$Component);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(NumberTextField);
|
|
46
|
+
|
|
47
|
+
function NumberTextField() {
|
|
48
|
+
(0, _classCallCheck2["default"])(this, NumberTextField);
|
|
49
|
+
return _super.apply(this, arguments);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
(0, _createClass2["default"])(NumberTextField, [{
|
|
53
|
+
key: "render",
|
|
54
|
+
value: function render() {
|
|
55
|
+
var classes = this.props.classes;
|
|
56
|
+
|
|
57
|
+
var props = _objectSpread(_objectSpread({}, this.props), {}, {
|
|
58
|
+
classes: undefined
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement(_configUi.NumberTextField, (0, _extends2["default"])({}, props, {
|
|
62
|
+
className: (0, _classnames["default"])(classes.textField, props.className),
|
|
63
|
+
variant: "outlined"
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
}]);
|
|
67
|
+
return NumberTextField;
|
|
68
|
+
}(_react["default"].Component);
|
|
69
|
+
|
|
70
|
+
exports.NumberTextField = NumberTextField;
|
|
71
|
+
(0, _defineProperty2["default"])(NumberTextField, "propTypes", {
|
|
72
|
+
classes: _propTypes["default"].object.isRequired
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
var styles = function styles(theme) {
|
|
76
|
+
return {
|
|
77
|
+
textField: {
|
|
78
|
+
marginLeft: theme.spacing.unit
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var miniStyles = function miniStyles() {
|
|
84
|
+
return {
|
|
85
|
+
textField: {
|
|
86
|
+
maxWidth: '120px',
|
|
87
|
+
width: '120px',
|
|
88
|
+
marginTop: '0',
|
|
89
|
+
'& [class^="MuiInputBase-root"]': {
|
|
90
|
+
height: 40,
|
|
91
|
+
fontSize: '14px'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var MiniField = (0, _styles.withStyles)(miniStyles)(NumberTextField);
|
|
98
|
+
exports.MiniField = MiniField;
|
|
99
|
+
|
|
100
|
+
var _default = (0, _styles.withStyles)(styles)(NumberTextField);
|
|
101
|
+
|
|
102
|
+
exports["default"] = _default;
|
|
103
|
+
//# sourceMappingURL=number-text-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/number-text-field.jsx"],"names":["NumberTextField","classes","props","undefined","textField","className","React","Component","PropTypes","object","isRequired","styles","theme","marginLeft","spacing","unit","miniStyles","maxWidth","width","marginTop","height","fontSize","MiniField"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,e;;;;;;;;;;;;WAKX,kBAAS;AACP,UAAQC,OAAR,GAAoB,KAAKC,KAAzB,CAAQD,OAAR;;AACA,UAAMC,KAAK,mCAAQ,KAAKA,KAAb;AAAoBD,QAAAA,OAAO,EAAEE;AAA7B,QAAX;;AACA,0BAAO,gCAAC,yBAAD,gCAASD,KAAT;AAAgB,QAAA,SAAS,EAAE,4BAAGD,OAAO,CAACG,SAAX,EAAsBF,KAAK,CAACG,SAA5B,CAA3B;AAAmE,QAAA,OAAO,EAAC;AAA3E,SAAP;AACD;;;EATkCC,kBAAMC,S;;;iCAA9BP,e,eACQ;AACjBC,EAAAA,OAAO,EAAEO,sBAAUC,MAAV,CAAiBC;AADT,C;;AAWrB,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBR,IAAAA,SAAS,EAAE;AACTS,MAAAA,UAAU,EAAED,KAAK,CAACE,OAAN,CAAcC;AADjB;AADc,GAAZ;AAAA,CAAf;;AAMA,IAAMC,UAAU,GAAG,SAAbA,UAAa;AAAA,SAAO;AACxBZ,IAAAA,SAAS,EAAE;AACTa,MAAAA,QAAQ,EAAE,OADD;AAETC,MAAAA,KAAK,EAAE,OAFE;AAGTC,MAAAA,SAAS,EAAE,GAHF;AAIT,wCAAkC;AAChCC,QAAAA,MAAM,EAAE,EADwB;AAEhCC,QAAAA,QAAQ,EAAE;AAFsB;AAJzB;AADa,GAAP;AAAA,CAAnB;;AAWO,IAAMC,SAAS,GAAG,wBAAWN,UAAX,EAAuBhB,eAAvB,CAAlB;;;eAEQ,wBAAWW,MAAX,EAAmBX,eAAnB,C","sourcesContent":["import { NumberTextField as NTF } from '@pie-lib/pie-toolbox/config-ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport cn from 'classnames';\n\nexport class NumberTextField extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n };\n\n render() {\n const { classes } = this.props;\n const props = { ...this.props, classes: undefined };\n return <NTF {...props} className={cn(classes.textField, props.className)} variant=\"outlined\" />;\n }\n}\n\nconst styles = (theme) => ({\n textField: {\n marginLeft: theme.spacing.unit,\n },\n});\n\nconst miniStyles = () => ({\n textField: {\n maxWidth: '120px',\n width: '120px',\n marginTop: '0',\n '& [class^=\"MuiInputBase-root\"]': {\n height: 40,\n fontSize: '14px',\n },\n },\n});\nexport const MiniField = withStyles(miniStyles)(NumberTextField);\n\nexport default withStyles(styles)(NumberTextField);\n"],"file":"number-text-field.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pie-element/fraction-model-configure",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"module": "src/index.js",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@material-ui/core": "^3.9.2",
|
|
10
|
+
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.31.4",
|
|
12
|
+
"debug": "^3.1.0",
|
|
13
|
+
"lodash": "^4.17.15",
|
|
14
|
+
"prop-types": "^15.6.2",
|
|
15
|
+
"react": "^16.8.1",
|
|
16
|
+
"react-dom": "^16.8.1"
|
|
17
|
+
},
|
|
18
|
+
"author": "",
|
|
19
|
+
"license": "ISC"
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# 1.1.0 (2024-09-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **fraction-model:** Implementation of new Fraction Model | SC-30716 ([17deff0](https://github.com/pie-framework/pie-elements/commit/17deff0d85ebd7dd4ac0fd2cec7e64a272ec71ba))
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
// Should be exactly the same as configure/defaults.js
|
|
8
|
+
var _default = {
|
|
9
|
+
model: {
|
|
10
|
+
correctResponse: [],
|
|
11
|
+
title: '',
|
|
12
|
+
question: '',
|
|
13
|
+
modelTypeSelected: 'bar',
|
|
14
|
+
maxModelSelected: 1,
|
|
15
|
+
partsPerModel: 5,
|
|
16
|
+
allowedStudentConfig: false,
|
|
17
|
+
showGraphLabels: false
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports["default"] = _default;
|
|
21
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","correctResponse","title","question","modelTypeSelected","maxModelSelected","partsPerModel","allowedStudentConfig","showGraphLabels"],"mappings":";;;;;;AAAA;eACe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,eAAe,EAAE,EADZ;AAELC,IAAAA,KAAK,EAAE,EAFF;AAGLC,IAAAA,QAAQ,EAAE,EAHL;AAILC,IAAAA,iBAAiB,EAAE,KAJd;AAKLC,IAAAA,gBAAgB,EAAE,CALb;AAMLC,IAAAA,aAAa,EAAE,CANV;AAOLC,IAAAA,oBAAoB,EAAE,KAPjB;AAQLC,IAAAA,eAAe,EAAE;AARZ;AADM,C","sourcesContent":["// Should be exactly the same as configure/defaults.js\nexport default {\n model: {\n correctResponse: [],\n title: '',\n question: '',\n modelTypeSelected: 'bar',\n maxModelSelected: 1,\n partsPerModel: 5,\n allowedStudentConfig: false,\n showGraphLabels: false,\n },\n};\n"],"file":"defaults.js"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.validate = exports.outcome = exports.model = exports.getResponseCorrectness = exports.createDefaultModel = exports.createCorrectResponseSession = void 0;
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
|
|
12
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
13
|
+
|
|
14
|
+
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
15
|
+
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* Function to check the correctness of the response
|
|
22
|
+
* @param {model} model contains the model object
|
|
23
|
+
* @param {answers} answers contains the answers object
|
|
24
|
+
* @param {env} env contains the environment object
|
|
25
|
+
* @returns {string} returns the correctness of the response
|
|
26
|
+
* */
|
|
27
|
+
var getResponseCorrectness = function getResponseCorrectness(model, answers) {
|
|
28
|
+
var env = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
29
|
+
var correct;
|
|
30
|
+
|
|
31
|
+
if (model.allowedStudentConfig) {
|
|
32
|
+
correct = !!(answers.partsPerModel === model.partsPerModel && partialFillCheck(answers.response, model.partsPerModel) && numeratorCheck(model.correctResponse, answers.response));
|
|
33
|
+
} else {
|
|
34
|
+
correct = !!(partialFillCheck(answers.response, model.partsPerModel) && numeratorCheck(model.correctResponse, answers.response));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return correct ? 'correct' : 'incorrect';
|
|
38
|
+
};
|
|
39
|
+
/*
|
|
40
|
+
* Function to get the correctness of the response
|
|
41
|
+
* @param {question} question contains the question object
|
|
42
|
+
* @param {env} env contains the environment object
|
|
43
|
+
* @param {answers} answers contains the answers object
|
|
44
|
+
* @returns {string} returns the correctness
|
|
45
|
+
* */
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
exports.getResponseCorrectness = getResponseCorrectness;
|
|
49
|
+
|
|
50
|
+
var getCorrectness = function getCorrectness(question, env) {
|
|
51
|
+
var answers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
52
|
+
|
|
53
|
+
if (env.mode === 'evaluate') {
|
|
54
|
+
return getResponseCorrectness(question, answers, env);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
/*
|
|
58
|
+
* Function to get the outcome score
|
|
59
|
+
* @param {question} question contains the question object
|
|
60
|
+
* @param {env} env contains the environment object
|
|
61
|
+
* @param {answers} answers contains the answers object
|
|
62
|
+
* @returns {number} returns the score
|
|
63
|
+
* */
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
var getOutComeScore = function getOutComeScore(question, env) {
|
|
67
|
+
var answers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
68
|
+
var correctness = getCorrectness(question, env, answers);
|
|
69
|
+
return correctness === 'correct' ? 1 : 0;
|
|
70
|
+
};
|
|
71
|
+
/*
|
|
72
|
+
* Function to check outcome of the session
|
|
73
|
+
* @param {model} model contains the model object
|
|
74
|
+
* @param {session} session contains the session object
|
|
75
|
+
* @param {env} env contains the environment object
|
|
76
|
+
* @returns {Promise} returns the score
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var outcome = function outcome(model, session, env) {
|
|
81
|
+
return new Promise(function (resolve) {
|
|
82
|
+
if (!session || (0, _isEmpty["default"])(session)) {
|
|
83
|
+
resolve({
|
|
84
|
+
score: 0,
|
|
85
|
+
empty: true
|
|
86
|
+
});
|
|
87
|
+
} else {
|
|
88
|
+
if (env.mode !== 'evaluate') {
|
|
89
|
+
resolve({
|
|
90
|
+
score: undefined,
|
|
91
|
+
completed: undefined
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
resolve({
|
|
95
|
+
score: getOutComeScore(model, env, session.answers)
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
/*
|
|
102
|
+
* Function to check if the numerator of the response matches the numerator of the correct response
|
|
103
|
+
* @param {correctResponse} correctResponse contains the correct response object
|
|
104
|
+
* @param {response} response contains the response object
|
|
105
|
+
* @returns {boolean} returns true if the numerators match
|
|
106
|
+
* */
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
exports.outcome = outcome;
|
|
110
|
+
|
|
111
|
+
var numeratorCheck = function numeratorCheck(correctResponse, response) {
|
|
112
|
+
var correctNumerator = 0;
|
|
113
|
+
var responseNumerator = 0;
|
|
114
|
+
|
|
115
|
+
for (var i = 0; i < correctResponse.length; i++) {
|
|
116
|
+
correctNumerator += correctResponse[i].value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
for (var _i = 0; _i < response.length; _i++) {
|
|
120
|
+
responseNumerator += response[_i].value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return correctNumerator === responseNumerator;
|
|
124
|
+
};
|
|
125
|
+
/*
|
|
126
|
+
* Function to check if the response contains more than one partially-filled model
|
|
127
|
+
* @param {response} response contains the response object
|
|
128
|
+
* @param {partsPerModel} partsPerModel contains the number of parts per model
|
|
129
|
+
* */
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
var partialFillCheck = function partialFillCheck(response, partsPerModel) {
|
|
133
|
+
if (response.length > 0) {
|
|
134
|
+
var partialModelCount = 0;
|
|
135
|
+
response.forEach(function (selection) {
|
|
136
|
+
if (selection.value !== partsPerModel) {
|
|
137
|
+
partialModelCount++;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
return partialModelCount <= 1;
|
|
141
|
+
} else {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
/*
|
|
146
|
+
* Function to create a default model
|
|
147
|
+
* @param {model} model contains the model object
|
|
148
|
+
* */
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
var createDefaultModel = function createDefaultModel() {
|
|
152
|
+
var model = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
153
|
+
return _objectSpread(_objectSpread({}, _defaults["default"].model), model);
|
|
154
|
+
};
|
|
155
|
+
/*
|
|
156
|
+
* Return the model object
|
|
157
|
+
* */
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
exports.createDefaultModel = createDefaultModel;
|
|
161
|
+
|
|
162
|
+
var model = function model(question, session, env) {
|
|
163
|
+
return new Promise(function (resolve) {
|
|
164
|
+
session = session || {};
|
|
165
|
+
var model = createDefaultModel(question);
|
|
166
|
+
var correctness, score;
|
|
167
|
+
|
|
168
|
+
if ((!session || (0, _isEmpty["default"])(session)) && env.mode === 'evaluate') {
|
|
169
|
+
correctness = 'unanswered';
|
|
170
|
+
score = '0%';
|
|
171
|
+
} else {
|
|
172
|
+
correctness = getCorrectness(model, env, session && session.answers);
|
|
173
|
+
score = "".concat(getOutComeScore(model, env, session && session.answers) * 100, "%");
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
var correctInfo = {
|
|
177
|
+
score: score,
|
|
178
|
+
correctness: correctness
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
var out = _objectSpread(_objectSpread({
|
|
182
|
+
env: env
|
|
183
|
+
}, model), {}, {
|
|
184
|
+
view: env.mode === 'view' || env.mode === 'evaluate'
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
if (env.mode === 'evaluate') {
|
|
188
|
+
Object.assign(out, {
|
|
189
|
+
correctness: correctInfo
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
resolve(out);
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
/*
|
|
197
|
+
* Function to create a correct response session
|
|
198
|
+
* @param {model} model contains the model object
|
|
199
|
+
* @param {env} env contains the environment object
|
|
200
|
+
* @returns {Promise} returns the correct response session
|
|
201
|
+
* */
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
exports.model = model;
|
|
205
|
+
|
|
206
|
+
var createCorrectResponseSession = function createCorrectResponseSession(model, env) {
|
|
207
|
+
return new Promise(function (resolve) {
|
|
208
|
+
if (env.mode !== 'evaluate' && env.role === 'instructor') {
|
|
209
|
+
var correctResponse = model.correctResponse,
|
|
210
|
+
maxModelSelected = model.maxModelSelected,
|
|
211
|
+
partsPerModel = model.partsPerModel;
|
|
212
|
+
resolve({
|
|
213
|
+
answers: {
|
|
214
|
+
response: correctResponse,
|
|
215
|
+
noOfModel: maxModelSelected,
|
|
216
|
+
partsPerModel: partsPerModel
|
|
217
|
+
},
|
|
218
|
+
id: '1'
|
|
219
|
+
});
|
|
220
|
+
} else {
|
|
221
|
+
resolve(null);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
/*
|
|
226
|
+
* Function to validate the model
|
|
227
|
+
* @param {model} model contains the model object
|
|
228
|
+
* @param {config} config contains the config object
|
|
229
|
+
* */
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
exports.createCorrectResponseSession = createCorrectResponseSession;
|
|
233
|
+
|
|
234
|
+
var validate = function validate() {
|
|
235
|
+
var model = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
236
|
+
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
237
|
+
var errors = {};
|
|
238
|
+
|
|
239
|
+
if (model.correctResponse.length === 0) {
|
|
240
|
+
errors.correctResponse = 'To save the item, at least one section must be marked as correct.';
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (model.correctResponse.length > 0) {
|
|
244
|
+
var partialModelCount = 0;
|
|
245
|
+
model.correctResponse.forEach(function (selection) {
|
|
246
|
+
if (selection.value !== model.partsPerModel) {
|
|
247
|
+
partialModelCount++;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
if (partialModelCount > 1) {
|
|
252
|
+
errors.correctResponse = 'The correct answer should include no more than one partially-filled model';
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return errors;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
exports.validate = validate;
|
|
260
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["getResponseCorrectness","model","answers","env","correct","allowedStudentConfig","partsPerModel","partialFillCheck","response","numeratorCheck","correctResponse","getCorrectness","question","mode","getOutComeScore","correctness","outcome","session","Promise","resolve","score","empty","undefined","completed","correctNumerator","responseNumerator","i","length","value","partialModelCount","forEach","selection","createDefaultModel","defaults","correctInfo","out","view","Object","assign","createCorrectResponseSession","role","maxModelSelected","noOfModel","id","validate","config","errors"],"mappings":";;;;;;;;;;;AAAA;;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,KAAD,EAAQC,OAAR,EAA8B;AAAA,MAAbC,GAAa,uEAAP,EAAO;AAClE,MAAIC,OAAJ;;AACA,MAAIH,KAAK,CAACI,oBAAV,EAAgC;AAC9BD,IAAAA,OAAO,GAAG,CAAC,EACTF,OAAO,CAACI,aAAR,KAA0BL,KAAK,CAACK,aAAhC,IACAC,gBAAgB,CAACL,OAAO,CAACM,QAAT,EAAmBP,KAAK,CAACK,aAAzB,CADhB,IAEAG,c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AACA,MAAI7C,KAAK,CAACS,eAAN,CAAsBiB,MAAtB,KAAiC,CAArC,EAAwC;AACtCmB,IAAAA,MAAM,CAACpC,eAAP,GAAyB,mEAAzB;AACD;;AACD,MAAIT,KAAK,CAACS,eAAN,CAAsBiB,MAAtB,GAA+B,CAAnC,EAAsC;AACpC,QAAIE,iBAAiB,GAAG,CAAxB;AACA5B,IAAAA,KAAK,CAACS,eAAN,CAAsBoB,OAAtB,CAA8B,UAACC,SAAD,EAAe;AAC3C,UAAIA,SAAS,CAACH,KAAV,KAAoB3B,KAAK,CAACK,aAA9B,EAA6C;AAC3CuB,QAAAA,iBAAiB;AAClB;AACF,KAJD;;AAKA,QAAIA,iBAAiB,GAAG,CAAxB,EAA2B;AACzBiB,MAAAA,MAAM,CAACpC,eAAP,GAAyB,2EAAzB;AACD;AACF;;AACD,SAAOoC,MAAP;AACD,CAjBM","sourcesContent":["import isEmpty from 'lodash/isEmpty';\nimport defaults from './defaults';\n\n/*\n * Function to check the correctness of the response\n * @param {model} model contains the model object\n * @param {answers} answers contains the answers object\n * @param {env} env contains the environment object\n * @returns {string} returns the correctness of the response\n * */\nexport const getResponseCorrectness = (model, answers, env = {}) => {\n let correct;\n if (model.allowedStudentConfig) {\n correct = !!(\n answers.partsPerModel === model.partsPerModel &&\n partialFillCheck(answers.response, model.partsPerModel) &&\n numeratorCheck(model.correctResponse, answers.response)\n );\n } else {\n correct = !!(\n partialFillCheck(answers.response, model.partsPerModel) && numeratorCheck(model.correctResponse, answers.response)\n );\n }\n return correct ? 'correct' : 'incorrect';\n};\n\n/*\n * Function to get the correctness of the response\n * @param {question} question contains the question object\n * @param {env} env contains the environment object\n * @param {answers} answers contains the answers object\n * @returns {string} returns the correctness\n * */\nconst getCorrectness = (question, env, answers = {}) => {\n if (env.mode === 'evaluate') {\n return getResponseCorrectness(question, answers, env);\n }\n};\n\n/*\n * Function to get the outcome score\n * @param {question} question contains the question object\n * @param {env} env contains the environment object\n * @param {answers} answers contains the answers object\n * @returns {number} returns the score\n * */\nconst getOutComeScore = (question, env, answers = {}) => {\n const correctness = getCorrectness(question, env, answers);\n return correctness === 'correct' ? 1 : 0;\n};\n\n/*\n * Function to check outcome of the session\n * @param {model} model contains the model object\n * @param {session} session contains the session object\n * @param {env} env contains the environment object\n * @returns {Promise} returns the score\n */\nexport const outcome = (model, session, env) =>\n new Promise((resolve) => {\n if (!session || isEmpty(session)) {\n resolve({ score: 0, empty: true });\n } else {\n if (env.mode !== 'evaluate') {\n resolve({ score: undefined, completed: undefined });\n } else {\n resolve({ score: getOutComeScore(model, env, session.answers) });\n }\n }\n });\n\n/*\n * Function to check if the numerator of the response matches the numerator of the correct response\n * @param {correctResponse} correctResponse contains the correct response object\n * @param {response} response contains the response object\n * @returns {boolean} returns true if the numerators match\n * */\nconst numeratorCheck = (correctResponse, response) => {\n let correctNumerator = 0;\n let responseNumerator = 0;\n for (let i = 0; i < correctResponse.length; i++) {\n correctNumerator += correctResponse[i].value;\n }\n for (let i = 0; i < response.length; i++) {\n responseNumerator += response[i].value;\n }\n return correctNumerator === responseNumerator;\n};\n\n/*\n * Function to check if the response contains more than one partially-filled model\n * @param {response} response contains the response object\n * @param {partsPerModel} partsPerModel contains the number of parts per model\n * */\nconst partialFillCheck = (response, partsPerModel) => {\n if (response.length > 0) {\n let partialModelCount = 0;\n response.forEach((selection) => {\n if (selection.value !== partsPerModel) {\n partialModelCount++;\n }\n });\n return partialModelCount <= 1;\n } else {\n return false;\n }\n};\n\n/*\n * Function to create a default model\n * @param {model} model contains the model object\n * */\nexport const createDefaultModel = (model = {}) => ({\n ...defaults.model,\n ...model,\n});\n\n/*\n * Return the model object\n * */\nexport const model = (question, session, env) => {\n return new Promise((resolve) => {\n session = session || {};\n const model = createDefaultModel(question);\n let correctness, score;\n if ((!session || isEmpty(session)) && env.mode === 'evaluate') {\n correctness = 'unanswered';\n score = '0%';\n } else {\n correctness = getCorrectness(model, env, session && session.answers);\n score = `${getOutComeScore(model, env, session && session.answers) * 100}%`;\n }\n const correctInfo = {\n score,\n correctness,\n };\n const out = {\n env,\n ...model,\n view: env.mode === 'view' || env.mode === 'evaluate',\n };\n if (env.mode === 'evaluate') {\n Object.assign(out, {\n correctness: correctInfo,\n });\n }\n resolve(out);\n });\n};\n\n/*\n * Function to create a correct response session\n * @param {model} model contains the model object\n * @param {env} env contains the environment object\n * @returns {Promise} returns the correct response session\n * */\nexport const createCorrectResponseSession = (model, env) => {\n return new Promise((resolve) => {\n if (env.mode !== 'evaluate' && env.role === 'instructor') {\n const { correctResponse, maxModelSelected, partsPerModel } = model;\n resolve({\n answers: {\n response: correctResponse,\n noOfModel: maxModelSelected,\n partsPerModel,\n },\n id: '1',\n });\n } else {\n resolve(null);\n }\n });\n};\n\n/*\n * Function to validate the model\n * @param {model} model contains the model object\n * @param {config} config contains the config object\n * */\nexport const validate = (model = {}, config = {}) => {\n const errors = {};\n if (model.correctResponse.length === 0) {\n errors.correctResponse = 'To save the item, at least one section must be marked as correct.';\n }\n if (model.correctResponse.length > 0) {\n let partialModelCount = 0;\n model.correctResponse.forEach((selection) => {\n if (selection.value !== model.partsPerModel) {\n partialModelCount++;\n }\n });\n if (partialModelCount > 1) {\n errors.correctResponse = 'The correct answer should include no more than one partially-filled model';\n }\n }\n return errors;\n};\n"],"file":"index.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pie-element/fraction-model-controller",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"module": "src/index.js",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@pie-lib/pie-toolbox": "1.31.4",
|
|
10
|
+
"debug": "^3.1.0",
|
|
11
|
+
"lodash": "^4.17.15"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"lodash": "^4.17.15"
|
|
15
|
+
},
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC"
|
|
18
|
+
}
|