@pie-element/explicit-constructed-response 6.9.1-next.16 → 6.9.1-next.18
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/module/element.js +21 -4
- package/module/print.js +21 -4
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "1.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.13.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
package/module/element.js
CHANGED
|
@@ -125157,6 +125157,7 @@ const require$$9 = _dll_prop_types;
|
|
|
125157
125157
|
var _react = _interopRequireDefault(require$$8);
|
|
125158
125158
|
var _propTypes = _interopRequireDefault(require$$9);
|
|
125159
125159
|
var _Select = _interopRequireDefault(Select$2);
|
|
125160
|
+
var _InputLabel = _interopRequireDefault(InputLabel$2);
|
|
125160
125161
|
var _MenuItem = _interopRequireDefault(MenuItem$2);
|
|
125161
125162
|
var _correctInput = _interopRequireDefault(correctInput);
|
|
125162
125163
|
var _styles = styles$s;
|
|
@@ -125213,9 +125214,16 @@ const require$$9 = _dll_prop_types;
|
|
|
125213
125214
|
(0, _createClass2["default"])(Dropdown, [{
|
|
125214
125215
|
key: "render",
|
|
125215
125216
|
value: function render() {
|
|
125216
|
-
var _this$props = this.props, classes = _this$props.classes, id = _this$props.id, correct = _this$props.correct, disabled = _this$props.disabled, value = _this$props.value, _onChange = _this$props.onChange, choices = _this$props.choices, showCorrectAnswer = _this$props.showCorrectAnswer;
|
|
125217
|
+
var _this$props = this.props, classes = _this$props.classes, id = _this$props.id, correct = _this$props.correct, disabled = _this$props.disabled, value = _this$props.value, _onChange = _this$props.onChange, choices = _this$props.choices, showCorrectAnswer = _this$props.showCorrectAnswer, singleQuery = _this$props.singleQuery;
|
|
125217
125218
|
var _this$state = this.state, showCheckmark = _this$state.showCheckmark, open = _this$state.open;
|
|
125218
|
-
|
|
125219
|
+
var incrementedId = parseInt(id, 10) + 1;
|
|
125220
|
+
var labelId = singleQuery ? 'Query-label' : ("Query-label-").concat(incrementedId);
|
|
125221
|
+
var labelText = singleQuery ? 'Query' : ("Query ").concat(incrementedId);
|
|
125222
|
+
return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_InputLabel["default"], {
|
|
125223
|
+
className: classes.srOnly,
|
|
125224
|
+
id: labelId
|
|
125225
|
+
}, labelText), _react["default"].createElement(_Select["default"], {
|
|
125226
|
+
labelId: labelId,
|
|
125219
125227
|
classes: {
|
|
125220
125228
|
root: classes.root,
|
|
125221
125229
|
icon: classes.icon,
|
|
@@ -125256,7 +125264,7 @@ const require$$9 = _dll_prop_types;
|
|
|
125256
125264
|
__html: c.value === value ? ' ✓' : ''
|
|
125257
125265
|
}
|
|
125258
125266
|
}));
|
|
125259
|
-
}));
|
|
125267
|
+
})));
|
|
125260
125268
|
}
|
|
125261
125269
|
}]);
|
|
125262
125270
|
return Dropdown;
|
|
@@ -125336,6 +125344,14 @@ const require$$9 = _dll_prop_types;
|
|
|
125336
125344
|
},
|
|
125337
125345
|
label: {
|
|
125338
125346
|
fontSize: 'max(1rem, 14px)'
|
|
125347
|
+
},
|
|
125348
|
+
srOnly: {
|
|
125349
|
+
position: 'absolute',
|
|
125350
|
+
left: '-10000px',
|
|
125351
|
+
top: 'auto',
|
|
125352
|
+
width: '1px',
|
|
125353
|
+
height: '1px',
|
|
125354
|
+
overflow: 'hidden'
|
|
125339
125355
|
}
|
|
125340
125356
|
};
|
|
125341
125357
|
};
|
|
@@ -125370,7 +125386,8 @@ const require$$1 = _dll_react;
|
|
|
125370
125386
|
id: dataset.id,
|
|
125371
125387
|
onChange: onChange,
|
|
125372
125388
|
choices: choices[dataset.id],
|
|
125373
|
-
showCorrectAnswer: showCorrectAnswer
|
|
125389
|
+
showCorrectAnswer: showCorrectAnswer,
|
|
125390
|
+
singleQuery: Object.keys(choices).length == 1
|
|
125374
125391
|
});
|
|
125375
125392
|
}
|
|
125376
125393
|
};
|
package/module/print.js
CHANGED
|
@@ -125120,6 +125120,7 @@ const require$$9 = _dll_prop_types;
|
|
|
125120
125120
|
var _react = _interopRequireDefault(require$$8);
|
|
125121
125121
|
var _propTypes = _interopRequireDefault(require$$9);
|
|
125122
125122
|
var _Select = _interopRequireDefault(Select$2);
|
|
125123
|
+
var _InputLabel = _interopRequireDefault(InputLabel$2);
|
|
125123
125124
|
var _MenuItem = _interopRequireDefault(MenuItem$2);
|
|
125124
125125
|
var _correctInput = _interopRequireDefault(correctInput);
|
|
125125
125126
|
var _styles = styles$s;
|
|
@@ -125176,9 +125177,16 @@ const require$$9 = _dll_prop_types;
|
|
|
125176
125177
|
(0, _createClass2["default"])(Dropdown, [{
|
|
125177
125178
|
key: "render",
|
|
125178
125179
|
value: function render() {
|
|
125179
|
-
var _this$props = this.props, classes = _this$props.classes, id = _this$props.id, correct = _this$props.correct, disabled = _this$props.disabled, value = _this$props.value, _onChange = _this$props.onChange, choices = _this$props.choices, showCorrectAnswer = _this$props.showCorrectAnswer;
|
|
125180
|
+
var _this$props = this.props, classes = _this$props.classes, id = _this$props.id, correct = _this$props.correct, disabled = _this$props.disabled, value = _this$props.value, _onChange = _this$props.onChange, choices = _this$props.choices, showCorrectAnswer = _this$props.showCorrectAnswer, singleQuery = _this$props.singleQuery;
|
|
125180
125181
|
var _this$state = this.state, showCheckmark = _this$state.showCheckmark, open = _this$state.open;
|
|
125181
|
-
|
|
125182
|
+
var incrementedId = parseInt(id, 10) + 1;
|
|
125183
|
+
var labelId = singleQuery ? 'Query-label' : ("Query-label-").concat(incrementedId);
|
|
125184
|
+
var labelText = singleQuery ? 'Query' : ("Query ").concat(incrementedId);
|
|
125185
|
+
return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_InputLabel["default"], {
|
|
125186
|
+
className: classes.srOnly,
|
|
125187
|
+
id: labelId
|
|
125188
|
+
}, labelText), _react["default"].createElement(_Select["default"], {
|
|
125189
|
+
labelId: labelId,
|
|
125182
125190
|
classes: {
|
|
125183
125191
|
root: classes.root,
|
|
125184
125192
|
icon: classes.icon,
|
|
@@ -125219,7 +125227,7 @@ const require$$9 = _dll_prop_types;
|
|
|
125219
125227
|
__html: c.value === value ? ' ✓' : ''
|
|
125220
125228
|
}
|
|
125221
125229
|
}));
|
|
125222
|
-
}));
|
|
125230
|
+
})));
|
|
125223
125231
|
}
|
|
125224
125232
|
}]);
|
|
125225
125233
|
return Dropdown;
|
|
@@ -125299,6 +125307,14 @@ const require$$9 = _dll_prop_types;
|
|
|
125299
125307
|
},
|
|
125300
125308
|
label: {
|
|
125301
125309
|
fontSize: 'max(1rem, 14px)'
|
|
125310
|
+
},
|
|
125311
|
+
srOnly: {
|
|
125312
|
+
position: 'absolute',
|
|
125313
|
+
left: '-10000px',
|
|
125314
|
+
top: 'auto',
|
|
125315
|
+
width: '1px',
|
|
125316
|
+
height: '1px',
|
|
125317
|
+
overflow: 'hidden'
|
|
125302
125318
|
}
|
|
125303
125319
|
};
|
|
125304
125320
|
};
|
|
@@ -125333,7 +125349,8 @@ const require$$1 = _dll_react;
|
|
|
125333
125349
|
id: dataset.id,
|
|
125334
125350
|
onChange: onChange,
|
|
125335
125351
|
choices: choices[dataset.id],
|
|
125336
|
-
showCorrectAnswer: showCorrectAnswer
|
|
125352
|
+
showCorrectAnswer: showCorrectAnswer,
|
|
125353
|
+
singleQuery: Object.keys(choices).length == 1
|
|
125337
125354
|
});
|
|
125338
125355
|
}
|
|
125339
125356
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "6.9.1-next.
|
|
7
|
+
"version": "6.9.1-next.18+867186f22",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postpublish": "../../scripts/postpublish"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.13.0",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"lodash": "^4.17.10",
|
|
18
18
|
"prop-types": "^15.6.1",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "ISC",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "867186f22b1b891c92a74e63fbf81f86d6485632",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|