@pie-element/graphing 4.8.1-beta.3 → 4.8.1-beta.4
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/configure.js +326 -0
- package/configure/lib/configure.js.map +1 -0
- package/configure/lib/correct-response.js +471 -0
- package/configure/lib/correct-response.js.map +1 -0
- package/configure/lib/defaults.js +364 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/graphing-config.js +379 -0
- package/configure/lib/graphing-config.js.map +1 -0
- package/configure/lib/index.js +151 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/utils.js +137 -0
- package/configure/lib/utils.js.map +1 -0
- package/controller/lib/defaults.js +55 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +312 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/lib/utils.js +282 -0
- package/controller/lib/utils.js.map +1 -0
- package/lib/index.js +87 -0
- package/lib/index.js.map +1 -0
- package/lib/main.js +165 -0
- package/lib/main.js.map +1 -0
- package/lib/utils.js +43 -0
- package/lib/utils.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Configure = void 0;
|
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
+
var _react = _interopRequireDefault(require("react"));
|
|
16
|
+
var _styles = require("@material-ui/core/styles");
|
|
17
|
+
var _configUi = require("@pie-lib/config-ui");
|
|
18
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
+
var _debug = _interopRequireDefault(require("debug"));
|
|
20
|
+
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
|
21
|
+
var _editableHtml = _interopRequireDefault(require("@pie-lib/editable-html"));
|
|
22
|
+
var _graphingConfig = _interopRequireDefault(require("./graphing-config"));
|
|
23
|
+
var _correctResponse = _interopRequireDefault(require("./correct-response"));
|
|
24
|
+
var _intersection = _interopRequireDefault(require("lodash/intersection"));
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
|
+
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); }; }
|
|
28
|
+
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; } }
|
|
29
|
+
var Panel = _configUi.settings.Panel,
|
|
30
|
+
toggle = _configUi.settings.toggle,
|
|
31
|
+
radio = _configUi.settings.radio,
|
|
32
|
+
checkboxes = _configUi.settings.checkboxes;
|
|
33
|
+
var log = (0, _debug["default"])('@pie-element:graphing:configure');
|
|
34
|
+
var styles = function styles(theme) {
|
|
35
|
+
return {
|
|
36
|
+
title: {
|
|
37
|
+
fontSize: '1.1rem',
|
|
38
|
+
display: 'block',
|
|
39
|
+
marginTop: theme.spacing.unit * 2,
|
|
40
|
+
marginBottom: theme.spacing.unit
|
|
41
|
+
},
|
|
42
|
+
content: {
|
|
43
|
+
marginTop: theme.spacing.unit * 2
|
|
44
|
+
},
|
|
45
|
+
promptHolder: {
|
|
46
|
+
width: '100%',
|
|
47
|
+
paddingBottom: theme.spacing.unit * 2,
|
|
48
|
+
marginBottom: theme.spacing.unit * 2,
|
|
49
|
+
marginTop: theme.spacing.unit * 2
|
|
50
|
+
},
|
|
51
|
+
prompt: {
|
|
52
|
+
paddingTop: theme.spacing.unit * 2,
|
|
53
|
+
width: '100%'
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
var Configure = /*#__PURE__*/function (_React$Component) {
|
|
58
|
+
(0, _inherits2["default"])(Configure, _React$Component);
|
|
59
|
+
var _super = _createSuper(Configure);
|
|
60
|
+
function Configure() {
|
|
61
|
+
var _this;
|
|
62
|
+
(0, _classCallCheck2["default"])(this, Configure);
|
|
63
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
64
|
+
args[_key] = arguments[_key];
|
|
65
|
+
}
|
|
66
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
67
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onRationaleChange", function (rationale) {
|
|
68
|
+
var _this$props = _this.props,
|
|
69
|
+
onModelChanged = _this$props.onModelChanged,
|
|
70
|
+
model = _this$props.model;
|
|
71
|
+
onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
|
|
72
|
+
rationale: rationale
|
|
73
|
+
}));
|
|
74
|
+
});
|
|
75
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onPromptChange", function (prompt) {
|
|
76
|
+
var _this$props2 = _this.props,
|
|
77
|
+
onModelChanged = _this$props2.onModelChanged,
|
|
78
|
+
model = _this$props2.model;
|
|
79
|
+
onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
|
|
80
|
+
prompt: prompt
|
|
81
|
+
}));
|
|
82
|
+
});
|
|
83
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTeacherInstructionsChange", function (teacherInstructions) {
|
|
84
|
+
var _this$props3 = _this.props,
|
|
85
|
+
onModelChanged = _this$props3.onModelChanged,
|
|
86
|
+
model = _this$props3.model;
|
|
87
|
+
onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
|
|
88
|
+
teacherInstructions: teacherInstructions
|
|
89
|
+
}));
|
|
90
|
+
});
|
|
91
|
+
return _this;
|
|
92
|
+
}
|
|
93
|
+
(0, _createClass2["default"])(Configure, [{
|
|
94
|
+
key: "componentDidMount",
|
|
95
|
+
value: function componentDidMount() {
|
|
96
|
+
var _this$props4 = this.props,
|
|
97
|
+
configuration = _this$props4.configuration,
|
|
98
|
+
onModelChanged = _this$props4.onModelChanged,
|
|
99
|
+
model = _this$props4.model;
|
|
100
|
+
var _ref = configuration || {},
|
|
101
|
+
availableTools = _ref.availableTools;
|
|
102
|
+
var _ref2 = model || {},
|
|
103
|
+
arrows = _ref2.arrows;
|
|
104
|
+
|
|
105
|
+
// This is used for offering support for old models which have the property arrows: boolean
|
|
106
|
+
// Same thing is set in the controller: packages/graphing/controller/src/index.js - model
|
|
107
|
+
if (typeof arrows === 'boolean') {
|
|
108
|
+
if (arrows) {
|
|
109
|
+
arrows = {
|
|
110
|
+
left: true,
|
|
111
|
+
right: true,
|
|
112
|
+
up: true,
|
|
113
|
+
down: true
|
|
114
|
+
};
|
|
115
|
+
} else {
|
|
116
|
+
arrows = {
|
|
117
|
+
left: false,
|
|
118
|
+
right: false,
|
|
119
|
+
up: false,
|
|
120
|
+
down: false
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
var toolbarTools = (0, _intersection["default"])(availableTools || [], model.toolbarTools || []);
|
|
125
|
+
onModelChanged && onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
|
|
126
|
+
arrows: arrows,
|
|
127
|
+
toolbarTools: toolbarTools
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "render",
|
|
132
|
+
value: function render() {
|
|
133
|
+
var _this$props5 = this.props,
|
|
134
|
+
classes = _this$props5.classes,
|
|
135
|
+
model = _this$props5.model,
|
|
136
|
+
configuration = _this$props5.configuration,
|
|
137
|
+
onConfigurationChanged = _this$props5.onConfigurationChanged,
|
|
138
|
+
onModelChanged = _this$props5.onModelChanged,
|
|
139
|
+
imageSupport = _this$props5.imageSupport,
|
|
140
|
+
uploadSoundSupport = _this$props5.uploadSoundSupport;
|
|
141
|
+
var _ref3 = configuration || {},
|
|
142
|
+
_ref3$arrows = _ref3.arrows,
|
|
143
|
+
arrows = _ref3$arrows === void 0 ? {} : _ref3$arrows,
|
|
144
|
+
_ref3$authoring = _ref3.authoring,
|
|
145
|
+
authoring = _ref3$authoring === void 0 ? {} : _ref3$authoring,
|
|
146
|
+
_ref3$availableTools = _ref3.availableTools,
|
|
147
|
+
availableTools = _ref3$availableTools === void 0 ? [] : _ref3$availableTools,
|
|
148
|
+
_ref3$coordinatesOnHo = _ref3.coordinatesOnHover,
|
|
149
|
+
coordinatesOnHover = _ref3$coordinatesOnHo === void 0 ? {} : _ref3$coordinatesOnHo,
|
|
150
|
+
_ref3$gridConfigurati = _ref3.gridConfigurations,
|
|
151
|
+
gridConfigurations = _ref3$gridConfigurati === void 0 ? [] : _ref3$gridConfigurati,
|
|
152
|
+
_ref3$graphDimensions = _ref3.graphDimensions,
|
|
153
|
+
graphDimensions = _ref3$graphDimensions === void 0 ? {} : _ref3$graphDimensions,
|
|
154
|
+
_ref3$labels = _ref3.labels,
|
|
155
|
+
labels = _ref3$labels === void 0 ? {} : _ref3$labels,
|
|
156
|
+
_ref3$padding = _ref3.padding,
|
|
157
|
+
padding = _ref3$padding === void 0 ? {} : _ref3$padding,
|
|
158
|
+
_ref3$prompt = _ref3.prompt,
|
|
159
|
+
prompt = _ref3$prompt === void 0 ? {} : _ref3$prompt,
|
|
160
|
+
_ref3$rationale = _ref3.rationale,
|
|
161
|
+
rationale = _ref3$rationale === void 0 ? {} : _ref3$rationale,
|
|
162
|
+
_ref3$scoringType = _ref3.scoringType,
|
|
163
|
+
scoringType = _ref3$scoringType === void 0 ? {} : _ref3$scoringType,
|
|
164
|
+
settingsPanelDisabled = _ref3.settingsPanelDisabled,
|
|
165
|
+
_ref3$spellCheck = _ref3.spellCheck,
|
|
166
|
+
spellCheck = _ref3$spellCheck === void 0 ? {} : _ref3$spellCheck,
|
|
167
|
+
_ref3$studentInstruct = _ref3.studentInstructions,
|
|
168
|
+
studentInstructions = _ref3$studentInstruct === void 0 ? {} : _ref3$studentInstruct,
|
|
169
|
+
_ref3$teacherInstruct = _ref3.teacherInstructions,
|
|
170
|
+
teacherInstructions = _ref3$teacherInstruct === void 0 ? {} : _ref3$teacherInstruct,
|
|
171
|
+
_ref3$title = _ref3.title,
|
|
172
|
+
title = _ref3$title === void 0 ? {} : _ref3$title,
|
|
173
|
+
_ref3$maxImageWidth = _ref3.maxImageWidth,
|
|
174
|
+
maxImageWidth = _ref3$maxImageWidth === void 0 ? {} : _ref3$maxImageWidth,
|
|
175
|
+
_ref3$maxImageHeight = _ref3.maxImageHeight,
|
|
176
|
+
maxImageHeight = _ref3$maxImageHeight === void 0 ? {} : _ref3$maxImageHeight,
|
|
177
|
+
_ref3$withRubric = _ref3.withRubric,
|
|
178
|
+
withRubric = _ref3$withRubric === void 0 ? {} : _ref3$withRubric;
|
|
179
|
+
var _ref4 = model || {},
|
|
180
|
+
_ref4$errors = _ref4.errors,
|
|
181
|
+
errors = _ref4$errors === void 0 ? {} : _ref4$errors,
|
|
182
|
+
labelsEnabled = _ref4.labelsEnabled,
|
|
183
|
+
promptEnabled = _ref4.promptEnabled,
|
|
184
|
+
rationaleEnabled = _ref4.rationaleEnabled,
|
|
185
|
+
spellCheckEnabled = _ref4.spellCheckEnabled,
|
|
186
|
+
teacherInstructionsEnabled = _ref4.teacherInstructionsEnabled,
|
|
187
|
+
titleEnabled = _ref4.titleEnabled;
|
|
188
|
+
log('[render] model', model);
|
|
189
|
+
var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
190
|
+
var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
191
|
+
var labelsPlaceholders = {
|
|
192
|
+
top: labels.top,
|
|
193
|
+
right: labels.right,
|
|
194
|
+
bottom: labels.bottom,
|
|
195
|
+
left: labels.left
|
|
196
|
+
};
|
|
197
|
+
var panelItemType = {
|
|
198
|
+
arrows: arrows.settings && checkboxes(arrows.label, {
|
|
199
|
+
left: arrows.left,
|
|
200
|
+
right: arrows.right,
|
|
201
|
+
up: arrows.up,
|
|
202
|
+
down: arrows.down
|
|
203
|
+
}),
|
|
204
|
+
titleEnabled: title.settings && toggle(title.label),
|
|
205
|
+
padding: padding.settings && toggle(padding.label),
|
|
206
|
+
labelsEnabled: labels.settings && toggle(labels.label),
|
|
207
|
+
coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label)
|
|
208
|
+
};
|
|
209
|
+
var panelProperties = {
|
|
210
|
+
'authoring.enabled': authoring.settings && toggle(authoring.label, true),
|
|
211
|
+
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
212
|
+
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
213
|
+
promptEnabled: prompt.settings && toggle(prompt.label),
|
|
214
|
+
rationaleEnabled: rationale.settings && toggle(rationale.label),
|
|
215
|
+
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
216
|
+
scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),
|
|
217
|
+
rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
|
|
218
|
+
};
|
|
219
|
+
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
220
|
+
hideSettings: settingsPanelDisabled,
|
|
221
|
+
settings: /*#__PURE__*/_react["default"].createElement(Panel, {
|
|
222
|
+
model: model,
|
|
223
|
+
configuration: configuration,
|
|
224
|
+
onChangeModel: onModelChanged,
|
|
225
|
+
onChangeConfiguration: onConfigurationChanged,
|
|
226
|
+
groups: {
|
|
227
|
+
'Item Type': panelItemType,
|
|
228
|
+
Properties: panelProperties
|
|
229
|
+
}
|
|
230
|
+
})
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
|
+
className: classes.content
|
|
233
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
234
|
+
component: "div",
|
|
235
|
+
type: "body1"
|
|
236
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "This interaction asks a student to draw a line that meets specific criteria. The student will draw the line by clicking on two points on the graph.")), teacherInstructionsEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
237
|
+
label: teacherInstructions.label,
|
|
238
|
+
className: classes.promptHolder
|
|
239
|
+
}, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
|
|
240
|
+
className: classes.prompt,
|
|
241
|
+
markup: model.teacherInstructions || '',
|
|
242
|
+
onChange: this.onTeacherInstructionsChange,
|
|
243
|
+
imageSupport: imageSupport,
|
|
244
|
+
nonEmpty: false,
|
|
245
|
+
spellCheck: spellCheckEnabled,
|
|
246
|
+
maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
|
|
247
|
+
maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
|
|
248
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
249
|
+
languageCharactersProps: [{
|
|
250
|
+
language: 'spanish'
|
|
251
|
+
}, {
|
|
252
|
+
language: 'special'
|
|
253
|
+
}]
|
|
254
|
+
})), promptEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
255
|
+
label: prompt.label,
|
|
256
|
+
className: classes.promptHolder
|
|
257
|
+
}, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
|
|
258
|
+
className: classes.prompt,
|
|
259
|
+
markup: model.prompt,
|
|
260
|
+
onChange: this.onPromptChange,
|
|
261
|
+
imageSupport: imageSupport,
|
|
262
|
+
nonEmpty: false,
|
|
263
|
+
spellCheck: spellCheckEnabled,
|
|
264
|
+
disableUnderline: true,
|
|
265
|
+
maxImageWidth: defaultImageMaxWidth,
|
|
266
|
+
maxImageHeight: defaultImageMaxHeight,
|
|
267
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
268
|
+
languageCharactersProps: [{
|
|
269
|
+
language: 'spanish'
|
|
270
|
+
}, {
|
|
271
|
+
language: 'special'
|
|
272
|
+
}]
|
|
273
|
+
})), rationaleEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
274
|
+
label: rationale.label || 'Rationale',
|
|
275
|
+
className: classes.promptHolder
|
|
276
|
+
}, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
|
|
277
|
+
className: classes.prompt,
|
|
278
|
+
markup: model.rationale || '',
|
|
279
|
+
onChange: this.onRationaleChange,
|
|
280
|
+
imageSupport: imageSupport,
|
|
281
|
+
spellCheck: spellCheckEnabled,
|
|
282
|
+
maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
|
|
283
|
+
maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight,
|
|
284
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
285
|
+
languageCharactersProps: [{
|
|
286
|
+
language: 'spanish'
|
|
287
|
+
}, {
|
|
288
|
+
language: 'special'
|
|
289
|
+
}]
|
|
290
|
+
})), /*#__PURE__*/_react["default"].createElement(_graphingConfig["default"], {
|
|
291
|
+
authoring: authoring,
|
|
292
|
+
availableTools: availableTools,
|
|
293
|
+
gridConfigurations: gridConfigurations,
|
|
294
|
+
graphDimensions: graphDimensions,
|
|
295
|
+
labelsPlaceholders: labelsPlaceholders,
|
|
296
|
+
model: model,
|
|
297
|
+
showLabels: labelsEnabled,
|
|
298
|
+
showTitle: titleEnabled,
|
|
299
|
+
titlePlaceholder: title.placeholder,
|
|
300
|
+
onChange: this.props.onModelChanged
|
|
301
|
+
}), /*#__PURE__*/_react["default"].createElement(_correctResponse["default"], {
|
|
302
|
+
availableTools: availableTools,
|
|
303
|
+
errors: errors,
|
|
304
|
+
model: model,
|
|
305
|
+
onChange: this.props.onModelChanged
|
|
306
|
+
})));
|
|
307
|
+
}
|
|
308
|
+
}]);
|
|
309
|
+
return Configure;
|
|
310
|
+
}(_react["default"].Component);
|
|
311
|
+
exports.Configure = Configure;
|
|
312
|
+
(0, _defineProperty2["default"])(Configure, "propTypes", {
|
|
313
|
+
onModelChanged: _propTypes["default"].func,
|
|
314
|
+
onConfigurationChanged: _propTypes["default"].func,
|
|
315
|
+
classes: _propTypes["default"].object,
|
|
316
|
+
imageSupport: _propTypes["default"].object,
|
|
317
|
+
uploadSoundSupport: _propTypes["default"].object,
|
|
318
|
+
model: _propTypes["default"].object.isRequired,
|
|
319
|
+
configuration: _propTypes["default"].object.isRequired
|
|
320
|
+
});
|
|
321
|
+
(0, _defineProperty2["default"])(Configure, "defaultProps", {
|
|
322
|
+
classes: {}
|
|
323
|
+
});
|
|
324
|
+
var _default = (0, _styles.withStyles)(styles)(Configure);
|
|
325
|
+
exports["default"] = _default;
|
|
326
|
+
//# sourceMappingURL=configure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configure.js","names":["_react","_interopRequireDefault","require","_styles","_configUi","_propTypes","_debug","_Typography","_editableHtml","_graphingConfig","_correctResponse","_intersection","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","Panel","settings","toggle","radio","checkboxes","log","debug","styles","theme","title","fontSize","display","marginTop","spacing","unit","marginBottom","content","promptHolder","width","paddingBottom","prompt","paddingTop","Configure","_React$Component","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","rationale","_this$props","props","onModelChanged","model","_this$props2","teacherInstructions","_this$props3","_createClass2","value","componentDidMount","_this$props4","configuration","_ref","availableTools","_ref2","arrows","left","right","up","down","toolbarTools","intersection","render","_this$props5","classes","onConfigurationChanged","imageSupport","uploadSoundSupport","_ref3","_ref3$arrows","_ref3$authoring","authoring","_ref3$availableTools","_ref3$coordinatesOnHo","coordinatesOnHover","_ref3$gridConfigurati","gridConfigurations","_ref3$graphDimensions","graphDimensions","_ref3$labels","labels","_ref3$padding","padding","_ref3$prompt","_ref3$rationale","_ref3$scoringType","scoringType","settingsPanelDisabled","_ref3$spellCheck","spellCheck","_ref3$studentInstruct","studentInstructions","_ref3$teacherInstruct","_ref3$title","_ref3$maxImageWidth","maxImageWidth","_ref3$maxImageHeight","maxImageHeight","_ref3$withRubric","withRubric","_ref4","_ref4$errors","errors","labelsEnabled","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","titleEnabled","defaultImageMaxWidth","defaultImageMaxHeight","labelsPlaceholders","top","bottom","panelItemType","label","panelProperties","studentInstructionsEnabled","rubricEnabled","createElement","layout","ConfigLayout","hideSettings","onChangeModel","onChangeConfiguration","groups","Properties","className","component","type","InputContainer","markup","onChange","onTeacherInstructionsChange","nonEmpty","languageCharactersProps","language","onPromptChange","disableUnderline","onRationaleChange","showLabels","showTitle","titlePlaceholder","placeholder","React","Component","exports","PropTypes","func","isRequired","_default","withStyles"],"sources":["../src/configure.jsx"],"sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport { settings, layout, InputContainer } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport Typography from '@material-ui/core/Typography';\nimport EditableHtml from '@pie-lib/editable-html';\nimport GraphingConfig from './graphing-config';\nimport CorrectResponse from './correct-response';\nimport intersection from 'lodash/intersection';\n\nconst { Panel, toggle, radio, checkboxes } = settings;\nconst log = debug('@pie-element:graphing:configure');\n\nconst styles = (theme) => ({\n title: {\n fontSize: '1.1rem',\n display: 'block',\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit,\n },\n content: {\n marginTop: theme.spacing.unit * 2,\n },\n promptHolder: {\n width: '100%',\n paddingBottom: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n marginTop: theme.spacing.unit * 2,\n },\n prompt: {\n paddingTop: theme.spacing.unit * 2,\n width: '100%',\n },\n});\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n classes: PropTypes.object,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n };\n\n static defaultProps = { classes: {} };\n\n componentDidMount() {\n const { configuration, onModelChanged, model } = this.props;\n const { availableTools } = configuration || {};\n let { arrows } = model || {};\n\n // This is used for offering support for old models which have the property arrows: boolean\n // Same thing is set in the controller: packages/graphing/controller/src/index.js - model\n if (typeof arrows === 'boolean') {\n if (arrows) {\n arrows = { left: true, right: true, up: true, down: true };\n } else {\n arrows = { left: false, right: false, up: false, down: false };\n }\n }\n\n const toolbarTools = intersection(availableTools || [], model.toolbarTools || []);\n\n onModelChanged && onModelChanged({ ...model, arrows, toolbarTools });\n }\n\n onRationaleChange = (rationale) => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({ ...model, rationale });\n };\n\n onPromptChange = (prompt) => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({ ...model, prompt });\n };\n\n onTeacherInstructionsChange = (teacherInstructions) => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({ ...model, teacherInstructions });\n };\n\n render() {\n const { classes, model, configuration, onConfigurationChanged, onModelChanged, imageSupport, uploadSoundSupport } =\n this.props;\n const {\n arrows = {},\n authoring = {},\n availableTools = [],\n coordinatesOnHover = {},\n gridConfigurations = [],\n graphDimensions = {},\n labels = {},\n padding = {},\n prompt = {},\n rationale = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n title = {},\n maxImageWidth = {},\n maxImageHeight = {},\n withRubric = {},\n } = configuration || {};\n const {\n errors = {},\n labelsEnabled,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n titleEnabled,\n } = model || {};\n\n log('[render] model', model);\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const labelsPlaceholders = {\n top: labels.top,\n right: labels.right,\n bottom: labels.bottom,\n left: labels.left,\n };\n\n const panelItemType = {\n arrows:\n arrows.settings &&\n checkboxes(arrows.label, {\n left: arrows.left,\n right: arrows.right,\n up: arrows.up,\n down: arrows.down,\n }),\n titleEnabled: title.settings && toggle(title.label),\n padding: padding.settings && toggle(padding.label),\n labelsEnabled: labels.settings && toggle(labels.label),\n coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label),\n };\n const panelProperties = {\n 'authoring.enabled': authoring.settings && toggle(authoring.label, true),\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <layout.ConfigLayout\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={onModelChanged}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n 'Item Type': panelItemType,\n Properties: panelProperties,\n }}\n />\n }\n >\n <div className={classes.content}>\n <Typography component=\"div\" type=\"body1\">\n <span>\n This interaction asks a student to draw a line that meets specific criteria. The student will draw the\n line by clicking on two points on the graph.\n </span>\n </Typography>\n\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n {rationaleEnabled && (\n <InputContainer label={rationale.label || 'Rationale'} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.rationale || ''}\n onChange={this.onRationaleChange}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n <GraphingConfig\n authoring={authoring}\n availableTools={availableTools}\n gridConfigurations={gridConfigurations}\n graphDimensions={graphDimensions}\n labelsPlaceholders={labelsPlaceholders}\n model={model}\n showLabels={labelsEnabled}\n showTitle={titleEnabled}\n titlePlaceholder={title.placeholder}\n onChange={this.props.onModelChanged}\n />\n\n <CorrectResponse\n availableTools={availableTools}\n errors={errors}\n model={model}\n onChange={this.props.onModelChanged}\n />\n </div>\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Configure);\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBA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