@pie-element/placement-ordering 9.4.1-next.41 → 9.4.1-next.42
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/package.json +1 -1
- package/controller/package.json +1 -1
- package/package.json +3 -3
- package/configure/lib/choice-editor.js +0 -477
- package/configure/lib/choice-editor.js.map +0 -1
- package/configure/lib/choice-tile.js +0 -279
- package/configure/lib/choice-tile.js.map +0 -1
- package/configure/lib/defaults.js +0 -135
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/design.js +0 -455
- package/configure/lib/design.js.map +0 -1
- package/configure/lib/help.js +0 -22
- package/configure/lib/help.js.map +0 -1
- package/configure/lib/index.js +0 -230
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/utils.js +0 -14
- package/configure/lib/utils.js.map +0 -1
- package/controller/lib/defaults.js +0 -28
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -282
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/scoring.js +0 -150
- package/controller/lib/scoring.js.map +0 -1
- package/lib/index.js +0 -149
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -69
- package/lib/main.js.map +0 -1
- package/lib/ordering.js +0 -214
- package/lib/ordering.js.map +0 -1
- package/lib/placement-ordering.js +0 -456
- package/lib/placement-ordering.js.map +0 -1
- package/lib/tile.js +0 -271
- package/lib/tile.js.map +0 -1
- package/lib/tiler.js +0 -234
- package/lib/tiler.js.map +0 -1
|
@@ -1,279 +0,0 @@
|
|
|
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.ChoiceTile = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
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 _editableHtml = require("@pie-lib/pie-toolbox/editable-html");
|
|
25
|
-
|
|
26
|
-
var _CardActions = _interopRequireDefault(require("@material-ui/core/CardActions"));
|
|
27
|
-
|
|
28
|
-
var _DragHandle = _interopRequireDefault(require("@material-ui/icons/DragHandle"));
|
|
29
|
-
|
|
30
|
-
var _reactDnd = require("react-dnd");
|
|
31
|
-
|
|
32
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
|
-
|
|
34
|
-
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
35
|
-
|
|
36
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
37
|
-
|
|
38
|
-
var _react = _interopRequireDefault(require("react"));
|
|
39
|
-
|
|
40
|
-
var _RemoveCircle = _interopRequireDefault(require("@material-ui/icons/RemoveCircle"));
|
|
41
|
-
|
|
42
|
-
var _debug = _interopRequireDefault(require("debug"));
|
|
43
|
-
|
|
44
|
-
var _styles = require("@material-ui/core/styles");
|
|
45
|
-
|
|
46
|
-
var _renderUi = require("@pie-lib/pie-toolbox/render-ui");
|
|
47
|
-
|
|
48
|
-
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); }; }
|
|
49
|
-
|
|
50
|
-
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; } }
|
|
51
|
-
|
|
52
|
-
var log = (0, _debug["default"])('@pie-element:placement-ordering:configure:choice-tile');
|
|
53
|
-
|
|
54
|
-
var ChoiceTile = /*#__PURE__*/function (_React$Component) {
|
|
55
|
-
(0, _inherits2["default"])(ChoiceTile, _React$Component);
|
|
56
|
-
|
|
57
|
-
var _super = _createSuper(ChoiceTile);
|
|
58
|
-
|
|
59
|
-
function ChoiceTile() {
|
|
60
|
-
var _this;
|
|
61
|
-
|
|
62
|
-
(0, _classCallCheck2["default"])(this, ChoiceTile);
|
|
63
|
-
|
|
64
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
65
|
-
args[_key] = arguments[_key];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
69
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onLabelChange", function (label) {
|
|
70
|
-
var _this$props = _this.props,
|
|
71
|
-
choice = _this$props.choice,
|
|
72
|
-
onChoiceChange = _this$props.onChoiceChange;
|
|
73
|
-
choice.label = label;
|
|
74
|
-
onChoiceChange(choice);
|
|
75
|
-
});
|
|
76
|
-
return _this;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
(0, _createClass2["default"])(ChoiceTile, [{
|
|
80
|
-
key: "render",
|
|
81
|
-
value: function render() {
|
|
82
|
-
var _this$props2 = this.props,
|
|
83
|
-
_this$props2$choice = _this$props2.choice,
|
|
84
|
-
label = _this$props2$choice.label,
|
|
85
|
-
editable = _this$props2$choice.editable,
|
|
86
|
-
type = _this$props2$choice.type,
|
|
87
|
-
isDragging = _this$props2.isDragging,
|
|
88
|
-
connectDragSource = _this$props2.connectDragSource,
|
|
89
|
-
connectDropTarget = _this$props2.connectDropTarget,
|
|
90
|
-
classes = _this$props2.classes,
|
|
91
|
-
onDelete = _this$props2.onDelete,
|
|
92
|
-
imageSupport = _this$props2.imageSupport,
|
|
93
|
-
disableImages = _this$props2.disableImages,
|
|
94
|
-
spellCheck = _this$props2.spellCheck,
|
|
95
|
-
toolbarOpts = _this$props2.toolbarOpts,
|
|
96
|
-
maxImageWidth = _this$props2.maxImageWidth,
|
|
97
|
-
maxImageHeight = _this$props2.maxImageHeight,
|
|
98
|
-
error = _this$props2.error,
|
|
99
|
-
_this$props2$mathMlOp = _this$props2.mathMlOptions,
|
|
100
|
-
mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp;
|
|
101
|
-
var dragSourceOpts = {}; //dropEffect: moveOnDrag ? 'move' : 'copy'};
|
|
102
|
-
|
|
103
|
-
var choicePlugins = {
|
|
104
|
-
image: {
|
|
105
|
-
disabled: disableImages
|
|
106
|
-
},
|
|
107
|
-
audio: {
|
|
108
|
-
disabled: true
|
|
109
|
-
},
|
|
110
|
-
video: {
|
|
111
|
-
disabled: true
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
var filteredDefaultPlugins = (_editableHtml.DEFAULT_PLUGINS || []).filter(function (p) {
|
|
115
|
-
return p !== 'bulleted-list' && p !== 'numbered-list';
|
|
116
|
-
});
|
|
117
|
-
var opacity = isDragging ? 0 : 1;
|
|
118
|
-
|
|
119
|
-
var markup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: classes.choiceTile,
|
|
121
|
-
style: {
|
|
122
|
-
opacity: opacity,
|
|
123
|
-
width: '100%'
|
|
124
|
-
}
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
-
style: {
|
|
127
|
-
width: '100%',
|
|
128
|
-
display: 'flex'
|
|
129
|
-
}
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_CardActions["default"], null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
|
-
className: (0, _classnames["default"])(classes.dragHandle)
|
|
132
|
-
}, /*#__PURE__*/_react["default"].createElement(_DragHandle["default"], {
|
|
133
|
-
className: classes.actions
|
|
134
|
-
}))), /*#__PURE__*/_react["default"].createElement(_editableHtml.EditableHtml, {
|
|
135
|
-
disabled: !editable,
|
|
136
|
-
className: (0, _classnames["default"])(classes.prompt, !editable && classes.targetPrompt),
|
|
137
|
-
placeholder: type !== 'target' && !label.includes('data-latex') ? 'Enter a choice' : '',
|
|
138
|
-
markup: label,
|
|
139
|
-
imageSupport: imageSupport || undefined,
|
|
140
|
-
onChange: this.onLabelChange,
|
|
141
|
-
pluginProps: choicePlugins,
|
|
142
|
-
toolbarOpts: toolbarOpts,
|
|
143
|
-
activePlugins: filteredDefaultPlugins,
|
|
144
|
-
spellCheck: spellCheck,
|
|
145
|
-
maxImageWidth: maxImageWidth,
|
|
146
|
-
maxImageHeight: maxImageHeight,
|
|
147
|
-
languageCharactersProps: [{
|
|
148
|
-
language: 'spanish'
|
|
149
|
-
}, {
|
|
150
|
-
language: 'special'
|
|
151
|
-
}],
|
|
152
|
-
error: editable && error,
|
|
153
|
-
mathMlOptions: mathMlOptions
|
|
154
|
-
}), editable && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
-
className: classes.controls
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
157
|
-
color: "default",
|
|
158
|
-
onClick: onDelete
|
|
159
|
-
}, /*#__PURE__*/_react["default"].createElement(_RemoveCircle["default"], {
|
|
160
|
-
classes: {
|
|
161
|
-
root: classes.removeCircle
|
|
162
|
-
}
|
|
163
|
-
})))), editable && error && /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
-
className: classes.errorText
|
|
165
|
-
}, error));
|
|
166
|
-
|
|
167
|
-
return connectDragSource(connectDropTarget( /*#__PURE__*/_react["default"].createElement("div", null, markup)), dragSourceOpts);
|
|
168
|
-
}
|
|
169
|
-
}]);
|
|
170
|
-
return ChoiceTile;
|
|
171
|
-
}(_react["default"].Component);
|
|
172
|
-
|
|
173
|
-
exports.ChoiceTile = ChoiceTile;
|
|
174
|
-
(0, _defineProperty2["default"])(ChoiceTile, "propTypes", {
|
|
175
|
-
connectDragSource: _propTypes["default"].func.isRequired,
|
|
176
|
-
connectDropTarget: _propTypes["default"].func.isRequired,
|
|
177
|
-
isDragging: _propTypes["default"].bool.isRequired,
|
|
178
|
-
id: _propTypes["default"].any,
|
|
179
|
-
maxImageHeight: _propTypes["default"].object,
|
|
180
|
-
maxImageWidth: _propTypes["default"].object,
|
|
181
|
-
label: _propTypes["default"].string,
|
|
182
|
-
isOver: _propTypes["default"].bool,
|
|
183
|
-
classes: _propTypes["default"].object.isRequired,
|
|
184
|
-
type: _propTypes["default"].string,
|
|
185
|
-
empty: _propTypes["default"].bool,
|
|
186
|
-
disabled: _propTypes["default"].bool,
|
|
187
|
-
outcome: _propTypes["default"].object,
|
|
188
|
-
index: _propTypes["default"].number,
|
|
189
|
-
imageSupport: _propTypes["default"].shape({
|
|
190
|
-
add: _propTypes["default"].func.isRequired,
|
|
191
|
-
"delete": _propTypes["default"].func.isRequired
|
|
192
|
-
}),
|
|
193
|
-
choice: _propTypes["default"].object,
|
|
194
|
-
choices: _propTypes["default"].array.isRequired,
|
|
195
|
-
onChoiceChange: _propTypes["default"].func.isRequired,
|
|
196
|
-
onDelete: _propTypes["default"].func.isRequired,
|
|
197
|
-
disableImages: _propTypes["default"].bool,
|
|
198
|
-
toolbarOpts: _propTypes["default"].object,
|
|
199
|
-
choicesLabel: _propTypes["default"].string,
|
|
200
|
-
error: _propTypes["default"].string,
|
|
201
|
-
spellCheck: _propTypes["default"].bool
|
|
202
|
-
});
|
|
203
|
-
var Styled = (0, _styles.withStyles)(function (theme) {
|
|
204
|
-
return {
|
|
205
|
-
removeCircle: {
|
|
206
|
-
fill: theme.palette.error[500]
|
|
207
|
-
},
|
|
208
|
-
choiceTile: {
|
|
209
|
-
cursor: 'move',
|
|
210
|
-
backgroundColor: theme.palette.common.white,
|
|
211
|
-
margin: "".concat(theme.spacing.unit, "px 0"),
|
|
212
|
-
display: 'flex',
|
|
213
|
-
flexDirection: 'column'
|
|
214
|
-
},
|
|
215
|
-
controls: {
|
|
216
|
-
display: 'flex',
|
|
217
|
-
justifyContent: 'flex-end'
|
|
218
|
-
},
|
|
219
|
-
prompt: {
|
|
220
|
-
width: '80%',
|
|
221
|
-
border: 'none',
|
|
222
|
-
borderRadius: '4px'
|
|
223
|
-
},
|
|
224
|
-
targetPrompt: {
|
|
225
|
-
backgroundColor: theme.palette.error['A100']
|
|
226
|
-
},
|
|
227
|
-
actions: {
|
|
228
|
-
color: theme.palette.error[400]
|
|
229
|
-
},
|
|
230
|
-
errorText: {
|
|
231
|
-
fontSize: theme.typography.fontSize - 2,
|
|
232
|
-
color: theme.palette.error.main,
|
|
233
|
-
marginLeft: theme.spacing.unit * 5,
|
|
234
|
-
marginTop: theme.spacing.unit
|
|
235
|
-
},
|
|
236
|
-
correctOrder: {
|
|
237
|
-
position: 'absolute',
|
|
238
|
-
top: 0,
|
|
239
|
-
fontSize: theme.typography.fontSize - 2,
|
|
240
|
-
color: _renderUi.color.disabled()
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
})(ChoiceTile);
|
|
244
|
-
var NAME = 'choice-config';
|
|
245
|
-
var choiceSource = {
|
|
246
|
-
beginDrag: function beginDrag(props) {
|
|
247
|
-
return {
|
|
248
|
-
id: props.choice.id,
|
|
249
|
-
index: props.index,
|
|
250
|
-
type: props.choice.type,
|
|
251
|
-
instanceId: props.choice.instanceId
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
var StyledSource = (0, _reactDnd.DragSource)(NAME, choiceSource, function (connect, monitor) {
|
|
256
|
-
return {
|
|
257
|
-
connectDragSource: connect.dragSource(),
|
|
258
|
-
isDragging: monitor.isDragging()
|
|
259
|
-
};
|
|
260
|
-
})(Styled);
|
|
261
|
-
var choiceTarget = {
|
|
262
|
-
hover: function hover() {
|
|
263
|
-
log('[hover]');
|
|
264
|
-
},
|
|
265
|
-
drop: function drop(props, monitor) {
|
|
266
|
-
var item = monitor.getItem();
|
|
267
|
-
log('[drop] item: ', item, 'didDrop?', monitor.didDrop());
|
|
268
|
-
props.onDropChoice(item, props.index);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
var StyledSourceAndTarget = (0, _reactDnd.DropTarget)(NAME, choiceTarget, function (connect, monitor) {
|
|
272
|
-
return {
|
|
273
|
-
connectDropTarget: connect.dropTarget(),
|
|
274
|
-
isOver: monitor.isOver()
|
|
275
|
-
};
|
|
276
|
-
})(StyledSource);
|
|
277
|
-
var _default = StyledSourceAndTarget;
|
|
278
|
-
exports["default"] = _default;
|
|
279
|
-
//# sourceMappingURL=choice-tile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/choice-tile.jsx"],"names":["log","ChoiceTile","label","props","choice","onChoiceChange","editable","type","isDragging","connectDragSource","connectDropTarget","classes","onDelete","imageSupport","disableImages","spellCheck","toolbarOpts","maxImageWidth","maxImageHeight","error","mathMlOptions","dragSourceOpts","choicePlugins","image","disabled","audio","video","filteredDefaultPlugins","DEFAULT_PLUGINS","filter","p","opacity","markup","choiceTile","width","display","dragHandle","actions","prompt","targetPrompt","includes","undefined","onLabelChange","language","controls","root","removeCircle","errorText","React","Component","PropTypes","func","isRequired","bool","id","any","object","string","isOver","empty","outcome","index","number","shape","add","choices","array","choicesLabel","Styled","theme","fill","palette","cursor","backgroundColor","common","white","margin","spacing","unit","flexDirection","justifyContent","border","borderRadius","color","fontSize","typography","main","marginLeft","marginTop","correctOrder","position","top","NAME","choiceSource","beginDrag","instanceId","StyledSource","connect","monitor","dragSource","choiceTarget","hover","drop","item","getItem","didDrop","onDropChoice","StyledSourceAndTarget","dropTarget"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,uDAAN,CAAZ;;IAEaC,U;;;;;;;;;;;;;;;sGA+BK,UAACC,KAAD,EAAW;AACzB,wBAAmC,MAAKC,KAAxC;AAAA,UAAQC,MAAR,eAAQA,MAAR;AAAA,UAAgBC,cAAhB,eAAgBA,cAAhB;AAEAD,MAAAA,MAAM,CAACF,KAAP,GAAeA,KAAf;AACAG,MAAAA,cAAc,CAACD,MAAD,CAAd;AACD,K;;;;;;WAED,kBAAS;AACP,yBAeI,KAAKD,KAfT;AAAA,6CACEC,MADF;AAAA,UACYF,KADZ,uBACYA,KADZ;AAAA,UACmBI,QADnB,uBACmBA,QADnB;AAAA,UAC6BC,IAD7B,uBAC6BA,IAD7B;AAAA,UAEEC,UAFF,gBAEEA,UAFF;AAAA,UAGEC,iBAHF,gBAGEA,iBAHF;AAAA,UAIEC,iBAJF,gBAIEA,iBAJF;AAAA,UAKEC,OALF,gBAKEA,OALF;AAAA,UAMEC,QANF,gBAMEA,QANF;AAAA,UAOEC,YAPF,gBAOEA,YAPF;AAAA,UAQEC,aARF,gBAQEA,aARF;AAAA,UASEC,UATF,gBASEA,UATF;AAAA,UAUEC,WAVF,gBAUEA,WAVF;AAAA,UAWEC,aAXF,gBAWEA,aAXF;AAAA,UAYEC,cAZF,gBAYEA,cAZF;AAAA,UAaEC,KAbF,gBAaEA,KAbF;AAAA,+CAcEC,aAdF;AAAA,UAcEA,aAdF,sCAckB,EAdlB;AAiBA,UAAMC,cAAc,GAAG,EAAvB,CAlBO,CAkBoB;;AAE3B,UAAMC,aAAa,G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AjB,EAA+B,UAACH,OAAD,EAAUC,OAAV;AAAA,SAAuB;AAClFxF,IAAAA,iBAAiB,EAAEuF,OAAO,CAACW,UAAR,EAD+D;AAElFlD,IAAAA,MAAM,EAAEwC,OAAO,CAACxC,MAAR;AAF0E,GAAvB;AAAA,CAA/B,EAG1BsC,YAH0B,CAA9B;eAKeW,qB","sourcesContent":["import { EditableHtml, DEFAULT_PLUGINS } from '@pie-lib/pie-toolbox/editable-html';\nimport CardActions from '@material-ui/core/CardActions';\nimport DragHandle from '@material-ui/icons/DragHandle';\n\nimport { DragSource, DropTarget } from 'react-dnd';\nimport classNames from 'classnames';\n\nimport IconButton from '@material-ui/core/IconButton';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport RemoveCircle from '@material-ui/icons/RemoveCircle';\nimport debug from 'debug';\nimport { withStyles } from '@material-ui/core/styles';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\n\nconst log = debug('@pie-element:placement-ordering:configure:choice-tile');\n\nexport class ChoiceTile extends React.Component {\n static propTypes = {\n connectDragSource: PropTypes.func.isRequired,\n connectDropTarget: PropTypes.func.isRequired,\n isDragging: PropTypes.bool.isRequired,\n id: PropTypes.any,\n maxImageHeight: PropTypes.object,\n maxImageWidth: PropTypes.object,\n label: PropTypes.string,\n isOver: PropTypes.bool,\n classes: PropTypes.object.isRequired,\n type: PropTypes.string,\n empty: PropTypes.bool,\n disabled: PropTypes.bool,\n outcome: PropTypes.object,\n index: PropTypes.number,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n choice: PropTypes.object,\n choices: PropTypes.array.isRequired,\n onChoiceChange: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n disableImages: PropTypes.bool,\n toolbarOpts: PropTypes.object,\n choicesLabel: PropTypes.string,\n error: PropTypes.string,\n spellCheck: PropTypes.bool,\n };\n\n onLabelChange = (label) => {\n const { choice, onChoiceChange } = this.props;\n\n choice.label = label;\n onChoiceChange(choice);\n };\n\n render() {\n const {\n choice: { label, editable, type },\n isDragging,\n connectDragSource,\n connectDropTarget,\n classes,\n onDelete,\n imageSupport,\n disableImages,\n spellCheck,\n toolbarOpts,\n maxImageWidth,\n maxImageHeight,\n error,\n mathMlOptions = {}\n } = this.props;\n\n const dragSourceOpts = {}; //dropEffect: moveOnDrag ? 'move' : 'copy'};\n\n const choicePlugins = {\n image: { disabled: disableImages },\n audio: { disabled: true },\n video: { disabled: true },\n };\n const filteredDefaultPlugins = (DEFAULT_PLUGINS || []).filter(\n (p) => p !== 'bulleted-list' && p !== 'numbered-list',\n );\n\n const opacity = isDragging ? 0 : 1;\n const markup = (\n <div className={classes.choiceTile} style={{ opacity: opacity, width: '100%' }}>\n <div style={{ width: '100%', display: 'flex' }}>\n <CardActions>\n <span className={classNames(classes.dragHandle)}>\n <DragHandle className={classes.actions} />\n </span>\n </CardActions>\n\n <EditableHtml\n disabled={!editable}\n className={classNames(classes.prompt, !editable && classes.targetPrompt)}\n placeholder={type !== 'target' && !label.includes('data-latex') ? 'Enter a choice' : ''}\n markup={label}\n imageSupport={imageSupport || undefined}\n onChange={this.onLabelChange}\n pluginProps={choicePlugins}\n toolbarOpts={toolbarOpts}\n activePlugins={filteredDefaultPlugins}\n spellCheck={spellCheck}\n maxImageWidth={maxImageWidth}\n maxImageHeight={maxImageHeight}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n error={editable && error}\n mathMlOptions={mathMlOptions}\n />\n\n {editable && (\n <div className={classes.controls}>\n <IconButton color=\"default\" onClick={onDelete}>\n <RemoveCircle classes={{ root: classes.removeCircle }} />\n </IconButton>\n </div>\n )}\n </div>\n\n {editable && error && <div className={classes.errorText}>{error}</div>}\n </div>\n );\n\n return connectDragSource(connectDropTarget(<div>{markup}</div>), dragSourceOpts);\n }\n}\n\nconst Styled = withStyles((theme) => ({\n removeCircle: {\n fill: theme.palette.error[500],\n },\n choiceTile: {\n cursor: 'move',\n backgroundColor: theme.palette.common.white,\n margin: `${theme.spacing.unit}px 0`,\n display: 'flex',\n flexDirection: 'column',\n },\n controls: {\n display: 'flex',\n justifyContent: 'flex-end',\n },\n prompt: {\n width: '80%',\n border: 'none',\n borderRadius: '4px',\n },\n targetPrompt: {\n backgroundColor: theme.palette.error['A100'],\n },\n actions: {\n color: theme.palette.error[400],\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n marginLeft: theme.spacing.unit * 5,\n marginTop: theme.spacing.unit,\n },\n correctOrder: {\n position: 'absolute',\n top: 0,\n fontSize: theme.typography.fontSize - 2,\n color: color.disabled(),\n },\n}))(ChoiceTile);\n\nconst NAME = 'choice-config';\n\nconst choiceSource = {\n beginDrag(props) {\n return {\n id: props.choice.id,\n index: props.index,\n type: props.choice.type,\n instanceId: props.choice.instanceId,\n };\n },\n};\n\nconst StyledSource = DragSource(NAME, choiceSource, (connect, monitor) => ({\n connectDragSource: connect.dragSource(),\n isDragging: monitor.isDragging(),\n}))(Styled);\n\nconst choiceTarget = {\n hover() {\n log('[hover]');\n },\n drop(props, monitor) {\n const item = monitor.getItem();\n log('[drop] item: ', item, 'didDrop?', monitor.didDrop());\n\n props.onDropChoice(item, props.index);\n },\n};\n\nconst StyledSourceAndTarget = DropTarget(NAME, choiceTarget, (connect, monitor) => ({\n connectDropTarget: connect.dropTarget(),\n isOver: monitor.isOver(),\n}))(StyledSource);\n\nexport default StyledSourceAndTarget;\n"],"file":"choice-tile.js"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
/** NOTE: teacherInstructions, studentInstructions, rationale & scoringType
|
|
9
|
-
* functionalities are not defined yet - the value for those can belong to
|
|
10
|
-
* model or to configuration
|
|
11
|
-
*/
|
|
12
|
-
var _default = {
|
|
13
|
-
model: {
|
|
14
|
-
choiceLabel: '',
|
|
15
|
-
choices: [],
|
|
16
|
-
correctResponse: [],
|
|
17
|
-
enableImages: false,
|
|
18
|
-
prompt: 'Item Stem goes here',
|
|
19
|
-
numberedGuides: false,
|
|
20
|
-
orientation: 'vertical',
|
|
21
|
-
partialScoring: true,
|
|
22
|
-
placementArea: false,
|
|
23
|
-
removeTilesAfterPlacing: true,
|
|
24
|
-
choiceLabelEnabled: true,
|
|
25
|
-
scoringType: 'auto',
|
|
26
|
-
targetLabel: '',
|
|
27
|
-
rationaleEnabled: true,
|
|
28
|
-
feedbackEnabled: false,
|
|
29
|
-
promptEnabled: true,
|
|
30
|
-
teacherInstructionsEnabled: true,
|
|
31
|
-
studentInstructionsEnabled: true,
|
|
32
|
-
toolbarEditorPosition: 'bottom'
|
|
33
|
-
},
|
|
34
|
-
configuration: {
|
|
35
|
-
choiceLabel: {
|
|
36
|
-
settings: true,
|
|
37
|
-
label: 'Choice label'
|
|
38
|
-
},
|
|
39
|
-
choices: {
|
|
40
|
-
settings: true,
|
|
41
|
-
label: 'Choices'
|
|
42
|
-
},
|
|
43
|
-
enableImages: {
|
|
44
|
-
settings: true,
|
|
45
|
-
label: 'Enable Images'
|
|
46
|
-
},
|
|
47
|
-
feedback: {
|
|
48
|
-
settings: true,
|
|
49
|
-
label: 'Feedback',
|
|
50
|
-
enabled: true
|
|
51
|
-
},
|
|
52
|
-
prompt: {
|
|
53
|
-
settings: true,
|
|
54
|
-
label: 'Item Stem'
|
|
55
|
-
},
|
|
56
|
-
numberedGuides: {
|
|
57
|
-
settings: true,
|
|
58
|
-
label: 'Numbered guides'
|
|
59
|
-
},
|
|
60
|
-
orientation: {
|
|
61
|
-
settings: true,
|
|
62
|
-
label: 'Orientation'
|
|
63
|
-
},
|
|
64
|
-
partialScoring: {
|
|
65
|
-
settings: false,
|
|
66
|
-
label: 'Allow Partial Scoring'
|
|
67
|
-
},
|
|
68
|
-
placementArea: {
|
|
69
|
-
settings: true,
|
|
70
|
-
label: 'Placement Area'
|
|
71
|
-
},
|
|
72
|
-
rationale: {
|
|
73
|
-
settings: true,
|
|
74
|
-
label: 'Rationale'
|
|
75
|
-
},
|
|
76
|
-
removeTilesAfterPlacing: {
|
|
77
|
-
settings: false,
|
|
78
|
-
label: 'Remove Tiles after placing'
|
|
79
|
-
},
|
|
80
|
-
settingsPanelDisabled: false,
|
|
81
|
-
scoringType: {
|
|
82
|
-
settings: false,
|
|
83
|
-
label: 'Scoring Type'
|
|
84
|
-
},
|
|
85
|
-
studentInstructions: {
|
|
86
|
-
settings: false,
|
|
87
|
-
label: 'Student Instructions'
|
|
88
|
-
},
|
|
89
|
-
targetLabel: {
|
|
90
|
-
settings: true,
|
|
91
|
-
label: 'Target label'
|
|
92
|
-
},
|
|
93
|
-
spellCheck: {
|
|
94
|
-
label: 'Spellcheck',
|
|
95
|
-
settings: false,
|
|
96
|
-
enabled: true
|
|
97
|
-
},
|
|
98
|
-
teacherInstructions: {
|
|
99
|
-
settings: true,
|
|
100
|
-
label: 'Teacher Instructions'
|
|
101
|
-
},
|
|
102
|
-
maxImageWidth: {
|
|
103
|
-
teacherInstructions: 300,
|
|
104
|
-
prompt: 300,
|
|
105
|
-
rationale: 300,
|
|
106
|
-
choicesWithPlacementArea: 240,
|
|
107
|
-
choicesWithoutPlacementArea: 300
|
|
108
|
-
},
|
|
109
|
-
maxImageHeight: {
|
|
110
|
-
teacherInstructions: 300,
|
|
111
|
-
prompt: 300,
|
|
112
|
-
rationale: 300,
|
|
113
|
-
choices: 150
|
|
114
|
-
},
|
|
115
|
-
withRubric: {
|
|
116
|
-
settings: false,
|
|
117
|
-
label: 'Add Rubric'
|
|
118
|
-
},
|
|
119
|
-
mathMlOptions: {
|
|
120
|
-
mmlOutput: false,
|
|
121
|
-
mmlEditing: false
|
|
122
|
-
},
|
|
123
|
-
language: {
|
|
124
|
-
settings: false,
|
|
125
|
-
label: 'Specify Language',
|
|
126
|
-
enabled: false
|
|
127
|
-
},
|
|
128
|
-
languageChoices: {
|
|
129
|
-
label: 'Language Choices',
|
|
130
|
-
options: []
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
exports["default"] = _default;
|
|
135
|
-
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","choiceLabel","choices","correctResponse","enableImages","prompt","numberedGuides","orientation","partialScoring","placementArea","removeTilesAfterPlacing","choiceLabelEnabled","scoringType","targetLabel","rationaleEnabled","feedbackEnabled","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","toolbarEditorPosition","configuration","settings","label","feedback","enabled","rationale","settingsPanelDisabled","studentInstructions","spellCheck","teacherInstructions","maxImageWidth","choicesWithPlacementArea","choicesWithoutPlacementArea","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,WAAW,EAAE,EADR;AAELC,IAAAA,OAAO,EAAE,EAFJ;AAGLC,IAAAA,eAAe,EAAE,EAHZ;AAILC,IAAAA,YAAY,EAAE,KAJT;AAKLC,IAAAA,MAAM,EAAE,qBALH;AAMLC,IAAAA,cAAc,EAAE,KANX;AAOLC,IAAAA,WAAW,EAAE,UAPR;AAQLC,IAAAA,cAAc,EAAE,IARX;AASLC,IAAAA,aAAa,EAAE,KATV;AAULC,IAAAA,uBAAuB,EAAE,IAVpB;AAWLC,IAAAA,kBAAkB,EAAE,IAXf;AAYLC,IAAAA,WAAW,EAAE,MAZR;AAaLC,IAAAA,WAAW,EAAE,EAbR;AAcLC,IAAAA,gBAAgB,EAAE,IAdb;AAeLC,IAAAA,eAAe,EAAE,KAfZ;AAgBLC,IAAAA,aAAa,EAAE,IAhBV;AAiBLC,IAAAA,0BAA0B,EAAE,IAjBvB;AAkBLC,IAAAA,0BAA0B,EAAE,IAlBvB;A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AA8Fbe,IAAAA,eAAe,EAAE;AACfjB,MAAAA,KAAK,EAAE,kBADQ;AAEfkB,MAAAA,OAAO,EAAE;AAFM;AA9FJ;AAtBF,C","sourcesContent":["/** NOTE: teacherInstructions, studentInstructions, rationale & scoringType\n * functionalities are not defined yet - the value for those can belong to\n * model or to configuration\n */\n\nexport default {\n model: {\n choiceLabel: '',\n choices: [],\n correctResponse: [],\n enableImages: false,\n prompt: 'Item Stem goes here',\n numberedGuides: false,\n orientation: 'vertical',\n partialScoring: true,\n placementArea: false,\n removeTilesAfterPlacing: true,\n choiceLabelEnabled: true,\n scoringType: 'auto',\n targetLabel: '',\n rationaleEnabled: true,\n feedbackEnabled: false,\n promptEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n },\n configuration: {\n choiceLabel: {\n settings: true,\n label: 'Choice label',\n },\n choices: {\n settings: true,\n label: 'Choices',\n },\n enableImages: {\n settings: true,\n label: 'Enable Images',\n },\n feedback: {\n settings: true,\n label: 'Feedback',\n enabled: true,\n },\n prompt: {\n settings: true,\n label: 'Item Stem',\n },\n numberedGuides: {\n settings: true,\n label: 'Numbered guides',\n },\n orientation: {\n settings: true,\n label: 'Orientation',\n },\n partialScoring: {\n settings: false,\n label: 'Allow Partial Scoring',\n },\n placementArea: {\n settings: true,\n label: 'Placement Area',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n },\n removeTilesAfterPlacing: {\n settings: false,\n label: 'Remove Tiles after placing',\n },\n settingsPanelDisabled: false,\n scoringType: {\n settings: false,\n label: 'Scoring Type',\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n targetLabel: {\n settings: true,\n label: 'Target label',\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n choicesWithPlacementArea: 240,\n choicesWithoutPlacementArea: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n choices: 150,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n },\n },\n};\n"],"file":"defaults.js"}
|