@pie-element/complex-rubric 2.5.0 → 2.5.1-next.48
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/configure/lib/defaults.js +77 -1
- package/configure/lib/defaults.js.map +1 -1
- package/configure/src/defaults.js +44 -5
- package/controller/package.json +1 -1
- package/docs/config-schema.json +699 -24
- package/docs/config-schema.json.md +504 -12
- package/docs/pie-schema.json +413 -12
- package/docs/pie-schema.json.md +298 -6
- package/module/configure.js +167 -51
- package/module/element.js +16 -8
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +16 -8
- package/package.json +4 -4
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -128806,7 +128806,7 @@ const {isEqual: require$$12$d} = _dll_lodash;
|
|
|
128806
128806
|
if (tagName === 'math' || el.dataset && el.dataset.type === 'mathml' || hasMathChild) {
|
|
128807
128807
|
var newHtml = hasMathChild ? el.innerHTML : el.outerHTML;
|
|
128808
128808
|
if (MathPlugin.mathMlOptions.mmlEditing) {
|
|
128809
|
-
var htmlWithRemovedSpaces = newHtml.replaceAll(
|
|
128809
|
+
var htmlWithRemovedSpaces = newHtml.replaceAll(' ', ' ');
|
|
128810
128810
|
var htmlToUse = (0, _mathRendering.mmlToLatex)(htmlWithRemovedSpaces);
|
|
128811
128811
|
var latex = htmlDecode(htmlToUse);
|
|
128812
128812
|
var correctedLatex = fixLatexExpression(latex);
|
|
@@ -230169,7 +230169,7 @@ const require$$28 = _dll_debug;
|
|
|
230169
230169
|
}
|
|
230170
230170
|
};
|
|
230171
230171
|
})(function (props) {
|
|
230172
|
-
var points = props.points, content = props.content, classes = props.classes, sampleAnswer = props.sampleAnswer, _props$mathMlOptions = props.mathMlOptions, mathMlOptions = _props$mathMlOptions === void 0 ? {} : _props$mathMlOptions, error = props.error;
|
|
230172
|
+
var points = props.points, content = props.content, classes = props.classes, sampleAnswer = props.sampleAnswer, _props$mathMlOptions = props.mathMlOptions, mathMlOptions = _props$mathMlOptions === void 0 ? {} : _props$mathMlOptions, error = props.error, _props$pluginOpts = props.pluginOpts, pluginOpts = _props$pluginOpts === void 0 ? {} : _props$pluginOpts;
|
|
230173
230173
|
var pointsLabel = ("").concat(points, " ").concat(points <= 1 ? 'pt' : 'pts');
|
|
230174
230174
|
var showSampleAnswer = checkSampleAnswer(sampleAnswer);
|
|
230175
230175
|
return _react["default"].createElement("div", {
|
|
@@ -230184,6 +230184,7 @@ const require$$28 = _dll_debug;
|
|
|
230184
230184
|
}), _react["default"].createElement(_editableHtml["default"], {
|
|
230185
230185
|
className: classes.editor,
|
|
230186
230186
|
error: error,
|
|
230187
|
+
pluginProps: pluginOpts,
|
|
230187
230188
|
markup: content,
|
|
230188
230189
|
onChange: props.onChange,
|
|
230189
230190
|
mathMlOptions: mathMlOptions
|
|
@@ -230203,6 +230204,7 @@ const require$$28 = _dll_debug;
|
|
|
230203
230204
|
}, "Sample Response"), _react["default"].createElement(_editableHtml["default"], {
|
|
230204
230205
|
className: classes.editor,
|
|
230205
230206
|
markup: sampleAnswer,
|
|
230207
|
+
pluginProps: pluginOpts,
|
|
230206
230208
|
onChange: props.onSampleChange,
|
|
230207
230209
|
mathMlOptions: mathMlOptions
|
|
230208
230210
|
})));
|
|
@@ -230312,7 +230314,7 @@ const require$$28 = _dll_debug;
|
|
|
230312
230314
|
key: "render",
|
|
230313
230315
|
value: function render() {
|
|
230314
230316
|
var _this2 = this;
|
|
230315
|
-
var _this$props6 = this.props, classes = _this$props6.classes, className = _this$props6.className, value = _this$props6.value, _this$props6$mathMlOp = _this$props6.mathMlOptions, mathMlOptions = _this$props6$mathMlOp === void 0 ? {} : _this$props6$mathMlOp, _this$props6$config = _this$props6.config, config = _this$props6$config === void 0 ? {} : _this$props6$config, _this$props6$rubricle = _this$props6.rubricless, rubricless = _this$props6$rubricle === void 0 ? false : _this$props6$rubricle;
|
|
230317
|
+
var _this$props6 = this.props, classes = _this$props6.classes, className = _this$props6.className, value = _this$props6.value, _this$props6$mathMlOp = _this$props6.mathMlOptions, mathMlOptions = _this$props6$mathMlOp === void 0 ? {} : _this$props6$mathMlOp, _this$props6$config = _this$props6.config, config = _this$props6$config === void 0 ? {} : _this$props6$config, _this$props6$rubricle = _this$props6.rubricless, rubricless = _this$props6$rubricle === void 0 ? false : _this$props6$rubricle, _this$props6$pluginOp = _this$props6.pluginOpts, pluginOpts = _this$props6$pluginOp === void 0 ? {} : _this$props6$pluginOp;
|
|
230316
230318
|
var _ref = value || ({}), _ref$excludeZeroEnabl = _ref.excludeZeroEnabled, excludeZeroEnabled = _ref$excludeZeroEnabl === void 0 ? true : _ref$excludeZeroEnabl, _ref$maxPointsEnabled = _ref.maxPointsEnabled, maxPointsEnabled = _ref$maxPointsEnabled === void 0 ? true : _ref$maxPointsEnabled, _ref$errors = _ref.errors, errors = _ref$errors === void 0 ? {} : _ref$errors, _ref$rubriclessInstru = _ref.rubriclessInstructionEnabled, rubriclessInstructionEnabled = _ref$rubriclessInstru === void 0 ? false : _ref$rubriclessInstru, _ref$maxPoints = _ref.maxPoints, maxPoints = _ref$maxPoints === void 0 ? 10 : _ref$maxPoints;
|
|
230317
230319
|
var _ref2 = config || ({}), _ref2$rubriclessInstr = _ref2.rubriclessInstruction, rubriclessInstruction = _ref2$rubriclessInstr === void 0 ? {} : _ref2$rubriclessInstr, _ref2$maxMaxPoints = _ref2.maxMaxPoints, maxMaxPoints = _ref2$maxMaxPoints === void 0 ? 10 : _ref2$maxMaxPoints;
|
|
230318
230320
|
var _ref3 = errors || ({}), pointsDescriptorsErrors = _ref3.pointsDescriptorsErrors;
|
|
@@ -230330,7 +230332,8 @@ const require$$28 = _dll_debug;
|
|
|
230330
230332
|
}, maxPointsEnabled && _react["default"].createElement(MaxPoints, {
|
|
230331
230333
|
max: maxMaxPoints < 100 ? maxMaxPoints : 100,
|
|
230332
230334
|
value: maxPointsValue,
|
|
230333
|
-
onChange: this.changeMaxPoints
|
|
230335
|
+
onChange: this.changeMaxPoints,
|
|
230336
|
+
pluginOpts: pluginOpts
|
|
230334
230337
|
}), excludeZeroEnabled && _react["default"].createElement(_FormControlLabel["default"], {
|
|
230335
230338
|
label: "Exclude zeros",
|
|
230336
230339
|
control: _react["default"].createElement(_Checkbox["default"], {
|
|
@@ -230344,6 +230347,7 @@ const require$$28 = _dll_debug;
|
|
|
230344
230347
|
className: classes.input,
|
|
230345
230348
|
markup: value.rubriclessInstruction || '',
|
|
230346
230349
|
onChange: this.changeRubriclessInstruction,
|
|
230350
|
+
pluginProps: pluginOpts,
|
|
230347
230351
|
nonEmpty: false,
|
|
230348
230352
|
disableUnderline: true,
|
|
230349
230353
|
languageCharactersProps: [{
|
|
@@ -230384,7 +230388,8 @@ const require$$28 = _dll_debug;
|
|
|
230384
230388
|
onMenuChange: function onMenuChange(clickedItem) {
|
|
230385
230389
|
return _this2.onPointMenuChange(index, clickedItem);
|
|
230386
230390
|
},
|
|
230387
|
-
mathMlOptions: mathMlOptions
|
|
230391
|
+
mathMlOptions: mathMlOptions,
|
|
230392
|
+
pluginOpts: pluginOpts
|
|
230388
230393
|
}));
|
|
230389
230394
|
});
|
|
230390
230395
|
}), provided.placeholder);
|
|
@@ -230399,6 +230404,7 @@ const require$$28 = _dll_debug;
|
|
|
230399
230404
|
className: _propTypes["default"].string,
|
|
230400
230405
|
value: RubricType,
|
|
230401
230406
|
config: _propTypes["default"].object,
|
|
230407
|
+
pluginOpts: _propTypes["default"].object,
|
|
230402
230408
|
rubricless: _propTypes["default"].bool,
|
|
230403
230409
|
onChange: _propTypes["default"].func
|
|
230404
230410
|
});
|
|
@@ -230433,7 +230439,7 @@ const require$$28 = _dll_debug;
|
|
|
230433
230439
|
};
|
|
230434
230440
|
var StyledRawAuthoring = (0, _styles.withStyles)(styles)(RawAuthoring);
|
|
230435
230441
|
var Reverse = function Reverse(props) {
|
|
230436
|
-
var _ref4 = props || ({}), _ref4$rubricless = _ref4.rubricless, rubricless = _ref4$rubricless === void 0 ? false : _ref4$rubricless, _ref4$config = _ref4.config, config = _ref4$config === void 0 ? {} : _ref4$config;
|
|
230442
|
+
var _ref4 = props || ({}), _ref4$rubricless = _ref4.rubricless, rubricless = _ref4$rubricless === void 0 ? false : _ref4$rubricless, _ref4$config = _ref4.config, config = _ref4$config === void 0 ? {} : _ref4$config, _ref4$pluginOpts = _ref4.pluginOpts, pluginOpts = _ref4$pluginOpts === void 0 ? {} : _ref4$pluginOpts;
|
|
230437
230443
|
var points = Array.from(props.value.points || []).reverse();
|
|
230438
230444
|
var sampleAnswers = Array.from(props.value.sampleAnswers || []).reverse();
|
|
230439
230445
|
if (points.length > sampleAnswers.length) {
|
|
@@ -230455,12 +230461,14 @@ const require$$28 = _dll_debug;
|
|
|
230455
230461
|
value: value,
|
|
230456
230462
|
config: config,
|
|
230457
230463
|
onChange: onChange,
|
|
230458
|
-
rubricless: rubricless
|
|
230464
|
+
rubricless: rubricless,
|
|
230465
|
+
pluginOpts: pluginOpts
|
|
230459
230466
|
});
|
|
230460
230467
|
};
|
|
230461
230468
|
Reverse.propTypes = {
|
|
230462
230469
|
value: RubricType,
|
|
230463
230470
|
config: _propTypes["default"].object,
|
|
230471
|
+
pluginOpts: _propTypes["default"].object,
|
|
230464
230472
|
rubricless: _propTypes["default"].bool,
|
|
230465
230473
|
getIndex: _propTypes["default"].func,
|
|
230466
230474
|
onChange: _propTypes["default"].func
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.1-next.48+a8e4e6ab2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "^3.5.
|
|
11
|
-
"@pie-element/rubric": "^3.4.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.5.1-next.48+a8e4e6ab2",
|
|
11
|
+
"@pie-element/rubric": "^3.4.1-next.48+a8e4e6ab2",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "a8e4e6ab27584435ce7ac3e964ccac2747402777",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|