@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/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _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_classnames, _dll_react_dom, _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 RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
3
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -109977,27 +109977,12 @@ const require$$0$8 = _dll_pie_lib__pie_toolbox_editable_html;
|
|
|
109977
109977
|
Object.defineProperty(utils$6, "__esModule", {
|
|
109978
109978
|
value: true
|
|
109979
109979
|
});
|
|
109980
|
-
utils$6.
|
|
109980
|
+
utils$6.filteredDefaultPlugins = void 0;
|
|
109981
109981
|
var _editableHtml$1 = require$$0$8;
|
|
109982
109982
|
var filteredDefaultPlugins = (_editableHtml$1.DEFAULT_PLUGINS || []).filter(function (p) {
|
|
109983
109983
|
return p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list';
|
|
109984
109984
|
});
|
|
109985
109985
|
utils$6.filteredDefaultPlugins = filteredDefaultPlugins;
|
|
109986
|
-
var labelPlugins = {
|
|
109987
|
-
image: {
|
|
109988
|
-
disabled: true
|
|
109989
|
-
},
|
|
109990
|
-
math: {
|
|
109991
|
-
disabled: true
|
|
109992
|
-
},
|
|
109993
|
-
audio: {
|
|
109994
|
-
disabled: true
|
|
109995
|
-
},
|
|
109996
|
-
video: {
|
|
109997
|
-
disabled: true
|
|
109998
|
-
}
|
|
109999
|
-
};
|
|
110000
|
-
utils$6.labelPlugins = labelPlugins;
|
|
110001
109986
|
const require$$1$T = _dll_react;
|
|
110002
109987
|
const require$$2$k = _dll_classnames;
|
|
110003
109988
|
const require$$4$14 = _dll_pie_lib__pie_toolbox_editable_html;
|
|
@@ -110467,7 +110452,6 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110467
110452
|
var _MoreVert = _interopRequireDefault(MoreVert);
|
|
110468
110453
|
var _renderUi = require$$15$6;
|
|
110469
110454
|
var _common = common;
|
|
110470
|
-
var _utils = utils$6;
|
|
110471
110455
|
function _createSuper(Derived) {
|
|
110472
110456
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
110473
110457
|
return function _createSuperInternal() {
|
|
@@ -110574,7 +110558,7 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110574
110558
|
key: "render",
|
|
110575
110559
|
value: function render() {
|
|
110576
110560
|
var _this2 = this;
|
|
110577
|
-
var _this$props2 = this.props, scorePointsValues = _this$props2.scorePointsValues, scorePointsLabels = _this$props2.scorePointsLabels, traitLabel = _this$props2.traitLabel, classes = _this$props2.classes, currentPosition = _this$props2.currentPosition, showStandards = _this$props2.showStandards, onTraitLabelChange = _this$props2.onTraitLabelChange, showDescription = _this$props2.showDescription, showLevelTagInput = _this$props2.showLevelTagInput, maxPoints = _this$props2.maxPoints, updateMaxPointsFieldValue = _this$props2.updateMaxPointsFieldValue, scaleIndex = _this$props2.scaleIndex, showScorePointLabels = _this$props2.showScorePointLabels, secondaryBlockWidth = _this$props2.secondaryBlockWidth, setSecondaryBlockRef = _this$props2.setSecondaryBlockRef, spellCheck = _this$props2.spellCheck, uploadSoundSupport = _this$props2.uploadSoundSupport, maxPointsEnabled = _this$props2.maxPointsEnabled, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$errors = _this$props2.errors, errors = _this$props2$errors === void 0 ? {} : _this$props2$errors, maxMaxPoints = _this$props2.maxMaxPoints;
|
|
110561
|
+
var _this$props2 = this.props, scorePointsValues = _this$props2.scorePointsValues, scorePointsLabels = _this$props2.scorePointsLabels, traitLabel = _this$props2.traitLabel, classes = _this$props2.classes, currentPosition = _this$props2.currentPosition, showStandards = _this$props2.showStandards, onTraitLabelChange = _this$props2.onTraitLabelChange, showDescription = _this$props2.showDescription, showLevelTagInput = _this$props2.showLevelTagInput, maxPoints = _this$props2.maxPoints, updateMaxPointsFieldValue = _this$props2.updateMaxPointsFieldValue, scaleIndex = _this$props2.scaleIndex, showScorePointLabels = _this$props2.showScorePointLabels, secondaryBlockWidth = _this$props2.secondaryBlockWidth, setSecondaryBlockRef = _this$props2.setSecondaryBlockRef, spellCheck = _this$props2.spellCheck, uploadSoundSupport = _this$props2.uploadSoundSupport, maxPointsEnabled = _this$props2.maxPointsEnabled, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$errors = _this$props2.errors, errors = _this$props2$errors === void 0 ? {} : _this$props2$errors, maxMaxPoints = _this$props2.maxMaxPoints, _this$props2$labelPlu = _this$props2.labelPluginProps, labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu;
|
|
110578
110562
|
var anchorEl = this.state.anchorEl;
|
|
110579
110563
|
return _react["default"].createElement(_common.Row, {
|
|
110580
110564
|
className: classes.greyHeader,
|
|
@@ -110584,7 +110568,7 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110584
110568
|
}, showLevelTagInput && _react["default"].createElement(_common.SimpleInput, {
|
|
110585
110569
|
markup: traitLabel || 'Trait',
|
|
110586
110570
|
onChange: onTraitLabelChange,
|
|
110587
|
-
pluginProps:
|
|
110571
|
+
pluginProps: labelPluginProps,
|
|
110588
110572
|
spellCheck: spellCheck,
|
|
110589
110573
|
label: "Level Label",
|
|
110590
110574
|
uploadSoundSupport: uploadSoundSupport,
|
|
@@ -110639,7 +110623,7 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110639
110623
|
scorePointsValue: scorePointsValue,
|
|
110640
110624
|
error: error,
|
|
110641
110625
|
scoreDescriptor: scoreDescriptor,
|
|
110642
|
-
pluginProps:
|
|
110626
|
+
pluginProps: labelPluginProps,
|
|
110643
110627
|
showScorePointLabels: showScorePointLabels,
|
|
110644
110628
|
onChange: function onChange(scorePointLabel) {
|
|
110645
110629
|
return _this2.onScorePointLabelChange({
|
|
@@ -110684,7 +110668,8 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110684
110668
|
showScorePointLabels: _propTypes["default"].bool,
|
|
110685
110669
|
setSecondaryBlockRef: _propTypes["default"].func,
|
|
110686
110670
|
uploadSoundSupport: _propTypes["default"].object,
|
|
110687
|
-
maxMaxPoints: _propTypes["default"].number
|
|
110671
|
+
maxMaxPoints: _propTypes["default"].number,
|
|
110672
|
+
labelPluginProps: _propTypes["default"].object
|
|
110688
110673
|
};
|
|
110689
110674
|
var _default = (0, _styles.withStyles)(styles)(TraitsHeaderTile);
|
|
110690
110675
|
exports["default"] = _default;
|
|
@@ -110733,7 +110718,6 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110733
110718
|
var _styles = styles$1J;
|
|
110734
110719
|
var _renderUi = require$$14$8;
|
|
110735
110720
|
var _common = common;
|
|
110736
|
-
var _utils = utils$6;
|
|
110737
110721
|
var _IconButton = _interopRequireDefault(IconButton$2);
|
|
110738
110722
|
var _MoreVert = _interopRequireDefault(MoreVert);
|
|
110739
110723
|
var _Menu = _interopRequireDefault(Menu$2);
|
|
@@ -110856,16 +110840,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110856
110840
|
key: "render",
|
|
110857
110841
|
value: function render() {
|
|
110858
110842
|
var _this2 = this;
|
|
110859
|
-
var _this$props2 = this.props, classes = _this$props2.classes, connectDragSource = _this$props2.connectDragSource, connectDropTarget = _this$props2.connectDropTarget, connectDragPreview = _this$props2.connectDragPreview, error = _this$props2.error, _this$props2$trait = _this$props2.trait, name = _this$props2$trait.name, standards = _this$props2$trait.standards, description = _this$props2$trait.description, scorePointsDescriptors = _this$props2$trait.scorePointsDescriptors, traitLabel = _this$props2.traitLabel, scorePointsValues = _this$props2.scorePointsValues, showStandards = _this$props2.showStandards, showDescription = _this$props2.showDescription, enableDragAndDrop = _this$props2.enableDragAndDrop, currentPosition = _this$props2.currentPosition, secondaryBlockWidth = _this$props2.secondaryBlockWidth, spellCheck = _this$props2.spellCheck, maxPoints = _this$props2.maxPoints, uploadSoundSupport = _this$props2.uploadSoundSupport, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp;
|
|
110843
|
+
var _this$props2 = this.props, classes = _this$props2.classes, connectDragSource = _this$props2.connectDragSource, connectDropTarget = _this$props2.connectDropTarget, connectDragPreview = _this$props2.connectDragPreview, error = _this$props2.error, _this$props2$trait = _this$props2.trait, name = _this$props2$trait.name, standards = _this$props2$trait.standards, description = _this$props2$trait.description, scorePointsDescriptors = _this$props2$trait.scorePointsDescriptors, traitLabel = _this$props2.traitLabel, scorePointsValues = _this$props2.scorePointsValues, showStandards = _this$props2.showStandards, showDescription = _this$props2.showDescription, enableDragAndDrop = _this$props2.enableDragAndDrop, currentPosition = _this$props2.currentPosition, secondaryBlockWidth = _this$props2.secondaryBlockWidth, spellCheck = _this$props2.spellCheck, maxPoints = _this$props2.maxPoints, uploadSoundSupport = _this$props2.uploadSoundSupport, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$expanded = _this$props2.expandedPluginProps, expandedPluginProps = _this$props2$expanded === void 0 ? {} : _this$props2$expanded, _this$props2$labelPlu = _this$props2.labelPluginProps, labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu;
|
|
110860
110844
|
var anchorEl = this.state.anchorEl;
|
|
110861
|
-
var pluginProps = {
|
|
110862
|
-
image: {
|
|
110863
|
-
disabled: true
|
|
110864
|
-
},
|
|
110865
|
-
math: {
|
|
110866
|
-
disabled: true
|
|
110867
|
-
}
|
|
110868
|
-
};
|
|
110869
110845
|
return connectDragPreview(connectDropTarget(_react["default"].createElement("div", null, _react["default"].createElement(_common.Row, null, _react["default"].createElement(_common.PrimaryBlock, {
|
|
110870
110846
|
className: classes.primaryBlock
|
|
110871
110847
|
}, _react["default"].createElement("div", {
|
|
@@ -110901,7 +110877,7 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110901
110877
|
name: name
|
|
110902
110878
|
});
|
|
110903
110879
|
},
|
|
110904
|
-
pluginProps:
|
|
110880
|
+
pluginProps: labelPluginProps,
|
|
110905
110881
|
placeholder: ("Enter ").concat(traitLabel),
|
|
110906
110882
|
spellCheck: spellCheck,
|
|
110907
110883
|
uploadSoundSupport: uploadSoundSupport,
|
|
@@ -110921,7 +110897,7 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110921
110897
|
standards: standards.split(',')
|
|
110922
110898
|
});
|
|
110923
110899
|
},
|
|
110924
|
-
pluginProps:
|
|
110900
|
+
pluginProps: expandedPluginProps,
|
|
110925
110901
|
spellCheck: spellCheck,
|
|
110926
110902
|
uploadSoundSupport: uploadSoundSupport,
|
|
110927
110903
|
mathMlOptions: mathMlOptions
|
|
@@ -110934,7 +110910,7 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110934
110910
|
description: description
|
|
110935
110911
|
});
|
|
110936
110912
|
},
|
|
110937
|
-
pluginProps:
|
|
110913
|
+
pluginProps: expandedPluginProps,
|
|
110938
110914
|
spellCheck: spellCheck,
|
|
110939
110915
|
uploadSoundSupport: uploadSoundSupport,
|
|
110940
110916
|
mathMlOptions: mathMlOptions
|
|
@@ -110961,7 +110937,7 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110961
110937
|
value: value
|
|
110962
110938
|
});
|
|
110963
110939
|
},
|
|
110964
|
-
pluginProps:
|
|
110940
|
+
pluginProps: expandedPluginProps,
|
|
110965
110941
|
alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints,
|
|
110966
110942
|
spellCheck: spellCheck,
|
|
110967
110943
|
uploadSoundSupport: uploadSoundSupport,
|
|
@@ -111002,7 +110978,9 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111002
110978
|
maxPoints: _propTypes["default"].number,
|
|
111003
110979
|
enableDragAndDrop: _propTypes["default"].bool,
|
|
111004
110980
|
currentPosition: _propTypes["default"].number,
|
|
111005
|
-
secondaryBlockWidth: _propTypes["default"].number
|
|
110981
|
+
secondaryBlockWidth: _propTypes["default"].number,
|
|
110982
|
+
expandedPluginProps: _propTypes["default"].object,
|
|
110983
|
+
labelPluginProps: _propTypes["default"].object
|
|
111006
110984
|
};
|
|
111007
110985
|
var StyledTrait = (0, _styles.withStyles)(styles)(TraitTile);
|
|
111008
110986
|
exports.StyledTrait = StyledTrait;
|
|
@@ -111731,6 +111709,49 @@ var defaults$1 = {};
|
|
|
111731
111709
|
addScaleEnabled: true
|
|
111732
111710
|
},
|
|
111733
111711
|
configuration: {
|
|
111712
|
+
baseInputConfiguration: {
|
|
111713
|
+
audio: {
|
|
111714
|
+
disabled: false
|
|
111715
|
+
},
|
|
111716
|
+
video: {
|
|
111717
|
+
disabled: false
|
|
111718
|
+
},
|
|
111719
|
+
image: {
|
|
111720
|
+
disabled: false
|
|
111721
|
+
}
|
|
111722
|
+
},
|
|
111723
|
+
expandedInput: {
|
|
111724
|
+
inputConfiguration: {
|
|
111725
|
+
math: {
|
|
111726
|
+
disabled: true
|
|
111727
|
+
},
|
|
111728
|
+
audio: {
|
|
111729
|
+
disabled: false
|
|
111730
|
+
},
|
|
111731
|
+
video: {
|
|
111732
|
+
disabled: false
|
|
111733
|
+
},
|
|
111734
|
+
image: {
|
|
111735
|
+
disabled: true
|
|
111736
|
+
}
|
|
111737
|
+
}
|
|
111738
|
+
},
|
|
111739
|
+
labelInput: {
|
|
111740
|
+
inputConfiguration: {
|
|
111741
|
+
math: {
|
|
111742
|
+
disabled: true
|
|
111743
|
+
},
|
|
111744
|
+
audio: {
|
|
111745
|
+
disabled: true
|
|
111746
|
+
},
|
|
111747
|
+
video: {
|
|
111748
|
+
disabled: true
|
|
111749
|
+
},
|
|
111750
|
+
image: {
|
|
111751
|
+
disabled: true
|
|
111752
|
+
}
|
|
111753
|
+
}
|
|
111754
|
+
},
|
|
111734
111755
|
excludeZeroDialogBoxContent: {
|
|
111735
111756
|
title: 'Exclude 0 (Zero) from Score Point Values.',
|
|
111736
111757
|
text: "<div>\n You are about to exclude 0 from score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the left\n </li>\n <li>\n remove 0 column with its Label and Description\n </li>\n </ul>\n </div>"
|
|
@@ -112428,7 +112449,7 @@ const require$$15$5 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112428
112449
|
key: "render",
|
|
112429
112450
|
value: function render() {
|
|
112430
112451
|
var _this2 = this;
|
|
112431
|
-
var _ref17 = this.props || ({}), classes = _ref17.classes, errors = _ref17.errors, scale = _ref17.scale, scaleIndex = _ref17.scaleIndex, showStandards = _ref17.showStandards, onScaleChanged = _ref17.onScaleChanged, excludeZero = _ref17.excludeZero, showDescription = _ref17.showDescription, showLevelTagInput = _ref17.showLevelTagInput, showScorePointLabels = _ref17.showScorePointLabels, enableDragAndDrop = _ref17.enableDragAndDrop, spellCheck = _ref17.spellCheck, width = _ref17.width, uploadSoundSupport = _ref17.uploadSoundSupport, maxPointsEnabled = _ref17.maxPointsEnabled, _ref17$mathMlOptions = _ref17.mathMlOptions, mathMlOptions = _ref17$mathMlOptions === void 0 ? {} : _ref17$mathMlOptions, maxMaxPoints = _ref17.maxMaxPoints;
|
|
112452
|
+
var _ref17 = this.props || ({}), classes = _ref17.classes, errors = _ref17.errors, scale = _ref17.scale, scaleIndex = _ref17.scaleIndex, showStandards = _ref17.showStandards, onScaleChanged = _ref17.onScaleChanged, excludeZero = _ref17.excludeZero, showDescription = _ref17.showDescription, showLevelTagInput = _ref17.showLevelTagInput, showScorePointLabels = _ref17.showScorePointLabels, enableDragAndDrop = _ref17.enableDragAndDrop, spellCheck = _ref17.spellCheck, width = _ref17.width, uploadSoundSupport = _ref17.uploadSoundSupport, maxPointsEnabled = _ref17.maxPointsEnabled, _ref17$mathMlOptions = _ref17.mathMlOptions, mathMlOptions = _ref17$mathMlOptions === void 0 ? {} : _ref17$mathMlOptions, maxMaxPoints = _ref17.maxMaxPoints, _ref17$expandedPlugin = _ref17.expandedPluginProps, expandedPluginProps = _ref17$expandedPlugin === void 0 ? {} : _ref17$expandedPlugin, _ref17$labelPluginPro = _ref17.labelPluginProps, labelPluginProps = _ref17$labelPluginPro === void 0 ? {} : _ref17$labelPluginPro;
|
|
112432
112453
|
var _ref18 = scale || ({}), maxPoints = _ref18.maxPoints, scorePointsLabels = _ref18.scorePointsLabels, traitLabel = _ref18.traitLabel, traits = _ref18.traits;
|
|
112433
112454
|
var _this$state = this.state, showDecreaseMaxPointsDialog = _this$state.showDecreaseMaxPointsDialog, showDeleteScaleDialog = _this$state.showDeleteScaleDialog, showDeleteTraitDialog = _this$state.showDeleteTraitDialog, currentPosition = _this$state.currentPosition, showRight = _this$state.showRight, showLeft = _this$state.showLeft, showInfoDialog = _this$state.showInfoDialog, infoDialogText = _this$state.infoDialogText;
|
|
112434
112455
|
var _ref19 = errors || ({}), traitsErrors = _ref19.traitsErrors, scorePointsErrors = _ref19.scorePointsErrors;
|
|
@@ -112478,7 +112499,9 @@ const require$$15$5 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112478
112499
|
uploadSoundSupport: uploadSoundSupport,
|
|
112479
112500
|
maxPointsEnabled: maxPointsEnabled,
|
|
112480
112501
|
mathMlOptions: mathMlOptions,
|
|
112481
|
-
maxMaxPoints: maxMaxPoints
|
|
112502
|
+
maxMaxPoints: maxMaxPoints,
|
|
112503
|
+
expandedPluginProps: expandedPluginProps,
|
|
112504
|
+
labelPluginProps: labelPluginProps
|
|
112482
112505
|
}), traits.map(function (trait, index) {
|
|
112483
112506
|
return _react["default"].createElement(_trait["default"], {
|
|
112484
112507
|
key: index,
|
|
@@ -112503,7 +112526,9 @@ const require$$15$5 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112503
112526
|
secondaryBlockWidth: secondaryBlockWidth,
|
|
112504
112527
|
spellCheck: spellCheck,
|
|
112505
112528
|
uploadSoundSupport: uploadSoundSupport,
|
|
112506
|
-
mathMlOptions: mathMlOptions
|
|
112529
|
+
mathMlOptions: mathMlOptions,
|
|
112530
|
+
expandedPluginProps: expandedPluginProps,
|
|
112531
|
+
labelPluginProps: labelPluginProps
|
|
112507
112532
|
});
|
|
112508
112533
|
}), _react["default"].createElement(_common.Arrow, {
|
|
112509
112534
|
width: ("").concat(AdjustedBlockWidth / 2, "px"),
|
|
@@ -112574,7 +112599,9 @@ const require$$15$5 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112574
112599
|
showDescription: _propTypes["default"].bool,
|
|
112575
112600
|
uploadSoundSupport: _propTypes["default"].object,
|
|
112576
112601
|
showScorePointLabels: _propTypes["default"].bool,
|
|
112577
|
-
enableDragAndDrop: _propTypes["default"].bool
|
|
112602
|
+
enableDragAndDrop: _propTypes["default"].bool,
|
|
112603
|
+
expandedPluginProps: _propTypes["default"].object,
|
|
112604
|
+
labelPluginProps: _propTypes["default"].object
|
|
112578
112605
|
};
|
|
112579
112606
|
var _default = (0, _drag.withDragContext)((0, _styles.withStyles)(styles)(Scale));
|
|
112580
112607
|
exports["default"] = _default;
|
|
@@ -112936,7 +112963,7 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
|
|
|
112936
112963
|
value: function render() {
|
|
112937
112964
|
var _this2 = this;
|
|
112938
112965
|
var _ref24 = this.props || ({}), model = _ref24.model, configuration = _ref24.configuration, onConfigurationChanged = _ref24.onConfigurationChanged, uploadSoundSupport = _ref24.uploadSoundSupport;
|
|
112939
|
-
var _ref25 = configuration || ({}), addScale = _ref25.addScale, dragAndDrop = _ref25.dragAndDrop, _ref25$contentDimensi = _ref25.contentDimensions, contentDimensions = _ref25$contentDimensi === void 0 ? {} : _ref25$contentDimensi, showDescription = _ref25.showDescription, showExcludeZero = _ref25.showExcludeZero, showLevelTagInput = _ref25.showLevelTagInput, showStandards = _ref25.showStandards, showHalfScoring = _ref25.showHalfScoring, showMaxPoint = _ref25.showMaxPoint, showScorePointLabels = _ref25.showScorePointLabels, showVisibleToStudent = _ref25.showVisibleToStudent, _ref25$spellCheck = _ref25.spellCheck, spellCheck = _ref25$spellCheck === void 0 ? {} : _ref25$spellCheck, settingsPanelDisabled = _ref25.settingsPanelDisabled, maxNoOfTraits = _ref25.maxNoOfTraits, minNoOfTraits = _ref25.minNoOfTraits, width = _ref25.width, _ref25$mathMlOptions = _ref25.mathMlOptions, mathMlOptions = _ref25$mathMlOptions === void 0 ? {} : _ref25$mathMlOptions, maxMaxPoints = _ref25.maxMaxPoints;
|
|
112966
|
+
var _ref25 = configuration || ({}), addScale = _ref25.addScale, _ref25$baseInputConfi = _ref25.baseInputConfiguration, baseInputConfiguration = _ref25$baseInputConfi === void 0 ? {} : _ref25$baseInputConfi, dragAndDrop = _ref25.dragAndDrop, _ref25$contentDimensi = _ref25.contentDimensions, contentDimensions = _ref25$contentDimensi === void 0 ? {} : _ref25$contentDimensi, showDescription = _ref25.showDescription, showExcludeZero = _ref25.showExcludeZero, showLevelTagInput = _ref25.showLevelTagInput, showStandards = _ref25.showStandards, showHalfScoring = _ref25.showHalfScoring, showMaxPoint = _ref25.showMaxPoint, showScorePointLabels = _ref25.showScorePointLabels, showVisibleToStudent = _ref25.showVisibleToStudent, _ref25$spellCheck = _ref25.spellCheck, spellCheck = _ref25$spellCheck === void 0 ? {} : _ref25$spellCheck, settingsPanelDisabled = _ref25.settingsPanelDisabled, maxNoOfTraits = _ref25.maxNoOfTraits, minNoOfTraits = _ref25.minNoOfTraits, width = _ref25.width, _ref25$mathMlOptions = _ref25.mathMlOptions, mathMlOptions = _ref25$mathMlOptions === void 0 ? {} : _ref25$mathMlOptions, maxMaxPoints = _ref25.maxMaxPoints, _ref25$expandedInput = _ref25.expandedInput, expandedInput = _ref25$expandedInput === void 0 ? {} : _ref25$expandedInput, _ref25$labelInput = _ref25.labelInput, labelInput = _ref25$labelInput === void 0 ? {} : _ref25$labelInput;
|
|
112940
112967
|
var _ref26 = model || ({}), errors = _ref26.errors, scales = _ref26.scales, excludeZero = _ref26.excludeZero, description = _ref26.description, pointLabels = _ref26.pointLabels, standards = _ref26.standards, spellCheckEnabled = _ref26.spellCheckEnabled, maxPointsEnabled = _ref26.maxPointsEnabled, addScaleEnabled = _ref26.addScaleEnabled;
|
|
112941
112968
|
var _ref27 = this.state || ({}), showExcludeZeroDialog = _ref27.showExcludeZeroDialog, showInfoDialog = _ref27.showInfoDialog, infoDialogText = _ref27.infoDialogText, adjustedWidth = _ref27.adjustedWidth;
|
|
112942
112969
|
var panelSettings = {
|
|
@@ -112954,6 +112981,9 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
|
|
|
112954
112981
|
maxPointsEnabled: showMaxPoint.settings && toggle(showMaxPoint.label),
|
|
112955
112982
|
addScaleEnabled: addScale.settings && toggle(addScale.label)
|
|
112956
112983
|
};
|
|
112984
|
+
var getPluginProps = function getPluginProps(props) {
|
|
112985
|
+
return Object.assign(_objectSpread({}, baseInputConfiguration), props || ({}));
|
|
112986
|
+
};
|
|
112957
112987
|
return _react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
112958
112988
|
dimensions: contentDimensions,
|
|
112959
112989
|
hideSettings: settingsPanelDisabled,
|
|
@@ -113005,7 +113035,9 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
|
|
|
113005
113035
|
}, _this2.props, {
|
|
113006
113036
|
classes: {},
|
|
113007
113037
|
mathMlOptions: mathMlOptions,
|
|
113008
|
-
maxMaxPoints: maxMaxPoints
|
|
113038
|
+
maxMaxPoints: maxMaxPoints,
|
|
113039
|
+
expandedPluginProps: getPluginProps(expandedInput === null || expandedInput === void 0 ? void 0 : expandedInput.inputConfiguration),
|
|
113040
|
+
labelPluginProps: getPluginProps(labelInput === null || labelInput === void 0 ? void 0 : labelInput.inputConfiguration)
|
|
113009
113041
|
}));
|
|
113010
113042
|
}), addScaleEnabled && _react["default"].createElement(_common.MultiTraitButton, {
|
|
113011
113043
|
onClick: this.onScaleAdded
|
|
@@ -138613,7 +138645,7 @@ const {isEqual: require$$12$d} = _dll_lodash;
|
|
|
138613
138645
|
if (tagName === 'math' || el.dataset && el.dataset.type === 'mathml' || hasMathChild) {
|
|
138614
138646
|
var newHtml = hasMathChild ? el.innerHTML : el.outerHTML;
|
|
138615
138647
|
if (MathPlugin.mathMlOptions.mmlEditing) {
|
|
138616
|
-
var htmlWithRemovedSpaces = newHtml.replaceAll(
|
|
138648
|
+
var htmlWithRemovedSpaces = newHtml.replaceAll(' ', ' ');
|
|
138617
138649
|
var htmlToUse = (0, _mathRendering.mmlToLatex)(htmlWithRemovedSpaces);
|
|
138618
138650
|
var latex = htmlDecode(htmlToUse);
|
|
138619
138651
|
var correctedLatex = fixLatexExpression(latex);
|
|
@@ -231997,7 +232029,7 @@ const require$$28 = _dll_debug;
|
|
|
231997
232029
|
}
|
|
231998
232030
|
};
|
|
231999
232031
|
})(function (props) {
|
|
232000
|
-
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;
|
|
232032
|
+
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;
|
|
232001
232033
|
var pointsLabel = ("").concat(points, " ").concat(points <= 1 ? 'pt' : 'pts');
|
|
232002
232034
|
var showSampleAnswer = checkSampleAnswer(sampleAnswer);
|
|
232003
232035
|
return _react["default"].createElement("div", {
|
|
@@ -232012,6 +232044,7 @@ const require$$28 = _dll_debug;
|
|
|
232012
232044
|
}), _react["default"].createElement(_editableHtml["default"], {
|
|
232013
232045
|
className: classes.editor,
|
|
232014
232046
|
error: error,
|
|
232047
|
+
pluginProps: pluginOpts,
|
|
232015
232048
|
markup: content,
|
|
232016
232049
|
onChange: props.onChange,
|
|
232017
232050
|
mathMlOptions: mathMlOptions
|
|
@@ -232031,6 +232064,7 @@ const require$$28 = _dll_debug;
|
|
|
232031
232064
|
}, "Sample Response"), _react["default"].createElement(_editableHtml["default"], {
|
|
232032
232065
|
className: classes.editor,
|
|
232033
232066
|
markup: sampleAnswer,
|
|
232067
|
+
pluginProps: pluginOpts,
|
|
232034
232068
|
onChange: props.onSampleChange,
|
|
232035
232069
|
mathMlOptions: mathMlOptions
|
|
232036
232070
|
})));
|
|
@@ -232140,7 +232174,7 @@ const require$$28 = _dll_debug;
|
|
|
232140
232174
|
key: "render",
|
|
232141
232175
|
value: function render() {
|
|
232142
232176
|
var _this2 = this;
|
|
232143
|
-
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;
|
|
232177
|
+
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;
|
|
232144
232178
|
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;
|
|
232145
232179
|
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;
|
|
232146
232180
|
var _ref3 = errors || ({}), pointsDescriptorsErrors = _ref3.pointsDescriptorsErrors;
|
|
@@ -232158,7 +232192,8 @@ const require$$28 = _dll_debug;
|
|
|
232158
232192
|
}, maxPointsEnabled && _react["default"].createElement(MaxPoints, {
|
|
232159
232193
|
max: maxMaxPoints < 100 ? maxMaxPoints : 100,
|
|
232160
232194
|
value: maxPointsValue,
|
|
232161
|
-
onChange: this.changeMaxPoints
|
|
232195
|
+
onChange: this.changeMaxPoints,
|
|
232196
|
+
pluginOpts: pluginOpts
|
|
232162
232197
|
}), excludeZeroEnabled && _react["default"].createElement(_FormControlLabel["default"], {
|
|
232163
232198
|
label: "Exclude zeros",
|
|
232164
232199
|
control: _react["default"].createElement(_Checkbox["default"], {
|
|
@@ -232172,6 +232207,7 @@ const require$$28 = _dll_debug;
|
|
|
232172
232207
|
className: classes.input,
|
|
232173
232208
|
markup: value.rubriclessInstruction || '',
|
|
232174
232209
|
onChange: this.changeRubriclessInstruction,
|
|
232210
|
+
pluginProps: pluginOpts,
|
|
232175
232211
|
nonEmpty: false,
|
|
232176
232212
|
disableUnderline: true,
|
|
232177
232213
|
languageCharactersProps: [{
|
|
@@ -232212,7 +232248,8 @@ const require$$28 = _dll_debug;
|
|
|
232212
232248
|
onMenuChange: function onMenuChange(clickedItem) {
|
|
232213
232249
|
return _this2.onPointMenuChange(index, clickedItem);
|
|
232214
232250
|
},
|
|
232215
|
-
mathMlOptions: mathMlOptions
|
|
232251
|
+
mathMlOptions: mathMlOptions,
|
|
232252
|
+
pluginOpts: pluginOpts
|
|
232216
232253
|
}));
|
|
232217
232254
|
});
|
|
232218
232255
|
}), provided.placeholder);
|
|
@@ -232227,6 +232264,7 @@ const require$$28 = _dll_debug;
|
|
|
232227
232264
|
className: _propTypes["default"].string,
|
|
232228
232265
|
value: RubricType,
|
|
232229
232266
|
config: _propTypes["default"].object,
|
|
232267
|
+
pluginOpts: _propTypes["default"].object,
|
|
232230
232268
|
rubricless: _propTypes["default"].bool,
|
|
232231
232269
|
onChange: _propTypes["default"].func
|
|
232232
232270
|
});
|
|
@@ -232261,7 +232299,7 @@ const require$$28 = _dll_debug;
|
|
|
232261
232299
|
};
|
|
232262
232300
|
var StyledRawAuthoring = (0, _styles.withStyles)(styles)(RawAuthoring);
|
|
232263
232301
|
var Reverse = function Reverse(props) {
|
|
232264
|
-
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;
|
|
232302
|
+
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;
|
|
232265
232303
|
var points = Array.from(props.value.points || []).reverse();
|
|
232266
232304
|
var sampleAnswers = Array.from(props.value.sampleAnswers || []).reverse();
|
|
232267
232305
|
if (points.length > sampleAnswers.length) {
|
|
@@ -232283,12 +232321,14 @@ const require$$28 = _dll_debug;
|
|
|
232283
232321
|
value: value,
|
|
232284
232322
|
config: config,
|
|
232285
232323
|
onChange: onChange,
|
|
232286
|
-
rubricless: rubricless
|
|
232324
|
+
rubricless: rubricless,
|
|
232325
|
+
pluginOpts: pluginOpts
|
|
232287
232326
|
});
|
|
232288
232327
|
};
|
|
232289
232328
|
Reverse.propTypes = {
|
|
232290
232329
|
value: RubricType,
|
|
232291
232330
|
config: _propTypes["default"].object,
|
|
232331
|
+
pluginOpts: _propTypes["default"].object,
|
|
232292
232332
|
rubricless: _propTypes["default"].bool,
|
|
232293
232333
|
getIndex: _propTypes["default"].func,
|
|
232294
232334
|
onChange: _propTypes["default"].func
|
|
@@ -232537,6 +232577,49 @@ const rubriclessDefaultModel = {
|
|
|
232537
232577
|
rubriclessInstructionEnabled: true
|
|
232538
232578
|
};
|
|
232539
232579
|
const multiTraitDefaultConfiguration = {
|
|
232580
|
+
baseInputConfiguration: {
|
|
232581
|
+
audio: {
|
|
232582
|
+
disabled: false
|
|
232583
|
+
},
|
|
232584
|
+
video: {
|
|
232585
|
+
disabled: false
|
|
232586
|
+
},
|
|
232587
|
+
image: {
|
|
232588
|
+
disabled: false
|
|
232589
|
+
}
|
|
232590
|
+
},
|
|
232591
|
+
expandedInput: {
|
|
232592
|
+
inputConfiguration: {
|
|
232593
|
+
math: {
|
|
232594
|
+
disabled: true
|
|
232595
|
+
},
|
|
232596
|
+
audio: {
|
|
232597
|
+
disabled: false
|
|
232598
|
+
},
|
|
232599
|
+
video: {
|
|
232600
|
+
disabled: false
|
|
232601
|
+
},
|
|
232602
|
+
image: {
|
|
232603
|
+
disabled: true
|
|
232604
|
+
}
|
|
232605
|
+
}
|
|
232606
|
+
},
|
|
232607
|
+
labelInput: {
|
|
232608
|
+
inputConfiguration: {
|
|
232609
|
+
math: {
|
|
232610
|
+
disabled: true
|
|
232611
|
+
},
|
|
232612
|
+
audio: {
|
|
232613
|
+
disabled: true
|
|
232614
|
+
},
|
|
232615
|
+
video: {
|
|
232616
|
+
disabled: true
|
|
232617
|
+
},
|
|
232618
|
+
image: {
|
|
232619
|
+
disabled: true
|
|
232620
|
+
}
|
|
232621
|
+
}
|
|
232622
|
+
},
|
|
232540
232623
|
settingsPanelDisabled: false,
|
|
232541
232624
|
excludeZeroDialogBoxContent: {
|
|
232542
232625
|
title: 'Exclude 0 (Zero) from Score Point Values.',
|
|
@@ -232626,6 +232709,17 @@ const multiTraitDefaultConfiguration = {
|
|
|
232626
232709
|
maxMaxPoints: 9
|
|
232627
232710
|
};
|
|
232628
232711
|
const rubricDefaultConfiguration = {
|
|
232712
|
+
baseInputConfiguration: {
|
|
232713
|
+
audio: {
|
|
232714
|
+
disabled: false
|
|
232715
|
+
},
|
|
232716
|
+
video: {
|
|
232717
|
+
disabled: false
|
|
232718
|
+
},
|
|
232719
|
+
image: {
|
|
232720
|
+
disabled: false
|
|
232721
|
+
}
|
|
232722
|
+
},
|
|
232629
232723
|
showExcludeZero: {
|
|
232630
232724
|
settings: true,
|
|
232631
232725
|
label: 'Ability to exclude zero'
|
|
@@ -232638,6 +232732,17 @@ const rubricDefaultConfiguration = {
|
|
|
232638
232732
|
maxMaxPoints: 9
|
|
232639
232733
|
};
|
|
232640
232734
|
const rubriclessDefaultConfiguration = {
|
|
232735
|
+
baseInputConfiguration: {
|
|
232736
|
+
audio: {
|
|
232737
|
+
disabled: false
|
|
232738
|
+
},
|
|
232739
|
+
video: {
|
|
232740
|
+
disabled: false
|
|
232741
|
+
},
|
|
232742
|
+
image: {
|
|
232743
|
+
disabled: false
|
|
232744
|
+
}
|
|
232745
|
+
},
|
|
232641
232746
|
showExcludeZero: {
|
|
232642
232747
|
settings: true,
|
|
232643
232748
|
label: 'Ability to exclude zero'
|
|
@@ -232650,7 +232755,18 @@ const rubriclessDefaultConfiguration = {
|
|
|
232650
232755
|
rubricless: true,
|
|
232651
232756
|
rubriclessInstruction: {
|
|
232652
232757
|
settings: true,
|
|
232653
|
-
label: 'Instruction'
|
|
232758
|
+
label: 'Instruction',
|
|
232759
|
+
inputConfiguration: {
|
|
232760
|
+
audio: {
|
|
232761
|
+
disabled: false
|
|
232762
|
+
},
|
|
232763
|
+
video: {
|
|
232764
|
+
disabled: false
|
|
232765
|
+
},
|
|
232766
|
+
image: {
|
|
232767
|
+
disabled: false
|
|
232768
|
+
}
|
|
232769
|
+
}
|
|
232654
232770
|
},
|
|
232655
232771
|
maxMaxPoints: 100
|
|
232656
232772
|
};
|
package/module/element.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/module/index.html
CHANGED
package/module/manifest.json
CHANGED