@pie-element/explicit-constructed-response 7.2.10-next.5 → 7.2.10-next.7
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/configure.js +1 -1
- package/module/element.js +79 -12
- package/module/manifest.json +1 -1
- package/module/print.js +79 -12
- 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": "2.7.
|
|
11
|
+
"@pie-lib/pie-toolbox": "2.7.1",
|
|
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/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.8.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.8.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -92252,6 +92252,7 @@ const require$$15$4 = _dll_debug;
|
|
|
92252
92252
|
mml.setMmlFactory(customMmlFactory);
|
|
92253
92253
|
return html;
|
|
92254
92254
|
};
|
|
92255
|
+
var enrichSpeechInitialized = false;
|
|
92255
92256
|
var bootstrap = function bootstrap(opts) {
|
|
92256
92257
|
if (typeof window === 'undefined') {
|
|
92257
92258
|
return {
|
|
@@ -92269,10 +92270,19 @@ const require$$15$4 = _dll_debug;
|
|
|
92269
92270
|
for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
92270
92271
|
elements[_key] = arguments[_key];
|
|
92271
92272
|
}
|
|
92272
|
-
|
|
92273
|
+
var attemptRender = function attemptRender() {
|
|
92274
|
+
var _updatedDocument$math, _updatedDocument$math2;
|
|
92275
|
+
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
92273
92276
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
92274
92277
|
elements: elements
|
|
92275
|
-
} : {}).compile()
|
|
92278
|
+
} : {}).compile();
|
|
92279
|
+
if (!temporary) {
|
|
92280
|
+
updatedDocument = updatedDocument.enrich();
|
|
92281
|
+
}
|
|
92282
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
|
|
92283
|
+
if (!enrichSpeechInitialized && (0, _typeof2["default"])((_updatedDocument$math = updatedDocument.math.list) === null || _updatedDocument$math === void 0 ? void 0 : (_updatedDocument$math2 = _updatedDocument$math.next) === null || _updatedDocument$math2 === void 0 ? void 0 : _updatedDocument$math2.data) === 'object') {
|
|
92284
|
+
enrichSpeechInitialized = true;
|
|
92285
|
+
}
|
|
92276
92286
|
try {
|
|
92277
92287
|
var list = updatedDocument.math.list;
|
|
92278
92288
|
if (list) {
|
|
@@ -92286,6 +92296,12 @@ const require$$15$4 = _dll_debug;
|
|
|
92286
92296
|
console.error(e.toString());
|
|
92287
92297
|
}
|
|
92288
92298
|
updatedDocument.clear();
|
|
92299
|
+
};
|
|
92300
|
+
if (!enrichSpeechInitialized) {
|
|
92301
|
+
attemptRender(true);
|
|
92302
|
+
}
|
|
92303
|
+
_mathjax.mathjax.handleRetriesFor(function () {
|
|
92304
|
+
attemptRender();
|
|
92289
92305
|
});
|
|
92290
92306
|
}
|
|
92291
92307
|
};
|
|
@@ -175290,7 +175306,7 @@ const require$$3$6 = _dll_prop_types;
|
|
|
175290
175306
|
return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
|
|
175291
175307
|
style: {
|
|
175292
175308
|
display: 'inline-flex',
|
|
175293
|
-
minHeight: '
|
|
175309
|
+
minHeight: '55px',
|
|
175294
175310
|
minWidth: '178px',
|
|
175295
175311
|
position: 'relative',
|
|
175296
175312
|
cursor: 'pointer'
|
|
@@ -175299,14 +175315,14 @@ const require$$3$6 = _dll_prop_types;
|
|
|
175299
175315
|
style: {
|
|
175300
175316
|
display: 'inline-flex',
|
|
175301
175317
|
width: '100%',
|
|
175302
|
-
minHeight: '
|
|
175303
|
-
height: '
|
|
175318
|
+
minHeight: '46px',
|
|
175319
|
+
height: '46px',
|
|
175304
175320
|
backgroundColor: '#FFF',
|
|
175305
175321
|
border: ("1px solid ").concat(error ? 'red' : '#C0C3CF'),
|
|
175306
175322
|
boxSizing: 'border-box',
|
|
175307
175323
|
borderRadius: '4px',
|
|
175308
175324
|
overflow: 'hidden',
|
|
175309
|
-
padding: '
|
|
175325
|
+
padding: '12px 21px',
|
|
175310
175326
|
marginLeft: '4px'
|
|
175311
175327
|
},
|
|
175312
175328
|
dangerouslySetInnerHTML: {
|
|
@@ -175389,7 +175405,52 @@ const require$$3$5 = _dll_prop_types;
|
|
|
175389
175405
|
display: 'flex',
|
|
175390
175406
|
alignItems: 'center',
|
|
175391
175407
|
justifyContent: 'center',
|
|
175392
|
-
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))'
|
|
175408
|
+
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))',
|
|
175409
|
+
'& > .mq-math-mode sup.mq-nthroot': {
|
|
175410
|
+
fontSize: '70% !important',
|
|
175411
|
+
verticalAlign: '1em !important'
|
|
175412
|
+
},
|
|
175413
|
+
'& > .mq-math-mode .mq-sqrt-stem': {
|
|
175414
|
+
borderTop: '0.07em solid',
|
|
175415
|
+
marginLeft: '-1.5px',
|
|
175416
|
+
marginTop: '-2px !important',
|
|
175417
|
+
paddingTop: '5px !important'
|
|
175418
|
+
},
|
|
175419
|
+
'& .mq-overarrow-inner': {
|
|
175420
|
+
paddingTop: '0 !important',
|
|
175421
|
+
border: 'none !important'
|
|
175422
|
+
},
|
|
175423
|
+
'& .mq-overarrow.mq-arrow-both': {
|
|
175424
|
+
marginTop: '0px',
|
|
175425
|
+
minWidth: '1.23em',
|
|
175426
|
+
'& *': {
|
|
175427
|
+
lineHeight: '1 !important'
|
|
175428
|
+
},
|
|
175429
|
+
'&:before': {
|
|
175430
|
+
top: '-0.4em',
|
|
175431
|
+
left: '-1px'
|
|
175432
|
+
},
|
|
175433
|
+
'&:after': {
|
|
175434
|
+
top: '0px !important',
|
|
175435
|
+
position: 'absolute !important',
|
|
175436
|
+
right: '-2px'
|
|
175437
|
+
},
|
|
175438
|
+
'&.mq-empty:after': {
|
|
175439
|
+
top: '-0.45em'
|
|
175440
|
+
}
|
|
175441
|
+
},
|
|
175442
|
+
'& .mq-overarrow.mq-arrow-right': {
|
|
175443
|
+
'&:before': {
|
|
175444
|
+
top: '-0.4em',
|
|
175445
|
+
right: '-1px'
|
|
175446
|
+
}
|
|
175447
|
+
},
|
|
175448
|
+
'& .mq-overarrow-inner-right': {
|
|
175449
|
+
display: 'none !important'
|
|
175450
|
+
},
|
|
175451
|
+
'& .mq-overarrow-inner-left': {
|
|
175452
|
+
display: 'none !important'
|
|
175453
|
+
}
|
|
175393
175454
|
}
|
|
175394
175455
|
};
|
|
175395
175456
|
};
|
|
@@ -177277,7 +177338,7 @@ const {debounce: require$$16} = _dll_lodash;
|
|
|
177277
177338
|
var customToolbarShowDone = node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;
|
|
177278
177339
|
var defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;
|
|
177279
177340
|
var hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;
|
|
177280
|
-
var names = (0, _classnames["default"])(classes.toolbar, _constants.PIE_TOOLBAR__CLASS, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.toolbarWithNoDone, !hasDoneButton), (0, _defineProperty2["default"])(_classNames, classes.toolbarTop, toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.toolbarRight, toolbarOpts.alignment === 'right'), (0, _defineProperty2["default"])(_classNames, classes.focused, toolbarOpts.alwaysVisible || isFocused), (0, _defineProperty2["default"])(_classNames, classes.autoWidth, autoWidth), (0, _defineProperty2["default"])(_classNames, classes.fullWidth, !autoWidth), _classNames));
|
|
177341
|
+
var names = (0, _classnames["default"])(classes.toolbar, _constants.PIE_TOOLBAR__CLASS, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.toolbarWithNoDone, !hasDoneButton), (0, _defineProperty2["default"])(_classNames, classes.toolbarTop, toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.toolbarRight, toolbarOpts.alignment === 'right'), (0, _defineProperty2["default"])(_classNames, classes.focused, toolbarOpts.alwaysVisible || isFocused), (0, _defineProperty2["default"])(_classNames, classes.autoWidth, autoWidth), (0, _defineProperty2["default"])(_classNames, classes.fullWidth, !autoWidth), (0, _defineProperty2["default"])(_classNames, classes.hidden, toolbarOpts.isHidden === true), _classNames));
|
|
177281
177342
|
var customStyles = toolbarOpts.minWidth !== undefined ? {
|
|
177282
177343
|
minWidth: toolbarOpts.minWidth
|
|
177283
177344
|
} : {};
|
|
@@ -177346,7 +177407,8 @@ const {debounce: require$$16} = _dll_lodash;
|
|
|
177346
177407
|
alwaysVisible: _propTypes["default"].bool,
|
|
177347
177408
|
ref: _propTypes["default"].func,
|
|
177348
177409
|
showDone: _propTypes["default"].bool,
|
|
177349
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
177410
|
+
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
177411
|
+
isHidden: _propTypes["default"].bool
|
|
177350
177412
|
}),
|
|
177351
177413
|
onDataChange: _propTypes["default"].func,
|
|
177352
177414
|
doneButtonRef: _propTypes["default"].func,
|
|
@@ -177381,6 +177443,9 @@ const {debounce: require$$16} = _dll_lodash;
|
|
|
177381
177443
|
fullWidth: {
|
|
177382
177444
|
width: '100%'
|
|
177383
177445
|
},
|
|
177446
|
+
hidden: {
|
|
177447
|
+
visibility: 'hidden'
|
|
177448
|
+
},
|
|
177384
177449
|
autoWidth: {
|
|
177385
177450
|
width: 'auto'
|
|
177386
177451
|
},
|
|
@@ -180159,7 +180224,7 @@ const require$$6 = _dll_classnames;
|
|
|
180159
180224
|
var adjustedLimit = props.adjustedLimit, disabled = props.disabled, feedback = props.feedback, showCorrectAnswer = props.showCorrectAnswer, maxLength = props.maxLength, spellCheck = props.spellCheck, classes = props.classes, pluginProps = props.pluginProps, onChange = props.onChange;
|
|
180160
180225
|
var dataset = ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : _node$data.dataset) || ({});
|
|
180161
180226
|
if (dataset.component === 'input') {
|
|
180162
|
-
var _classnames;
|
|
180227
|
+
var _pluginProps$characte, _classnames;
|
|
180163
180228
|
var correctAnswer = (props.choices && dataset && props.choices[dataset.id] || [])[0];
|
|
180164
180229
|
var finalValue = showCorrectAnswer ? correctAnswer && correctAnswer.label : data[dataset.id] || '';
|
|
180165
180230
|
var width = maxLength && maxLength[dataset.id];
|
|
@@ -180190,9 +180255,11 @@ const require$$6 = _dll_classnames;
|
|
|
180190
180255
|
spellCheck: spellCheck,
|
|
180191
180256
|
width: ("calc(").concat(width, "ch + 42px)"),
|
|
180192
180257
|
onKeyDown: handleKeyDown,
|
|
180258
|
+
autoWidthToolbar: true,
|
|
180193
180259
|
toolbarOpts: {
|
|
180194
180260
|
minWidth: 'auto',
|
|
180195
|
-
noBorder: true
|
|
180261
|
+
noBorder: true,
|
|
180262
|
+
isHidden: !!(pluginProps !== null && pluginProps !== void 0 && (_pluginProps$characte = pluginProps.characters) !== null && _pluginProps$characte !== void 0 && _pluginProps$characte.disabled)
|
|
180196
180263
|
},
|
|
180197
180264
|
className: (0, _classnames2["default"])(classes.editableHtmlCustom, (_classnames = {}, (0, _defineProperty2["default"])(_classnames, classes.correct, isCorrect), (0, _defineProperty2["default"])(_classnames, classes.incorrect, isIncorrect), _classnames))
|
|
180198
180265
|
});
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.8.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -92215,6 +92215,7 @@ const require$$15$4 = _dll_debug;
|
|
|
92215
92215
|
mml.setMmlFactory(customMmlFactory);
|
|
92216
92216
|
return html;
|
|
92217
92217
|
};
|
|
92218
|
+
var enrichSpeechInitialized = false;
|
|
92218
92219
|
var bootstrap = function bootstrap(opts) {
|
|
92219
92220
|
if (typeof window === 'undefined') {
|
|
92220
92221
|
return {
|
|
@@ -92232,10 +92233,19 @@ const require$$15$4 = _dll_debug;
|
|
|
92232
92233
|
for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
92233
92234
|
elements[_key] = arguments[_key];
|
|
92234
92235
|
}
|
|
92235
|
-
|
|
92236
|
+
var attemptRender = function attemptRender() {
|
|
92237
|
+
var _updatedDocument$math, _updatedDocument$math2;
|
|
92238
|
+
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
92236
92239
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
92237
92240
|
elements: elements
|
|
92238
|
-
} : {}).compile()
|
|
92241
|
+
} : {}).compile();
|
|
92242
|
+
if (!temporary) {
|
|
92243
|
+
updatedDocument = updatedDocument.enrich();
|
|
92244
|
+
}
|
|
92245
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
|
|
92246
|
+
if (!enrichSpeechInitialized && (0, _typeof2["default"])((_updatedDocument$math = updatedDocument.math.list) === null || _updatedDocument$math === void 0 ? void 0 : (_updatedDocument$math2 = _updatedDocument$math.next) === null || _updatedDocument$math2 === void 0 ? void 0 : _updatedDocument$math2.data) === 'object') {
|
|
92247
|
+
enrichSpeechInitialized = true;
|
|
92248
|
+
}
|
|
92239
92249
|
try {
|
|
92240
92250
|
var list = updatedDocument.math.list;
|
|
92241
92251
|
if (list) {
|
|
@@ -92249,6 +92259,12 @@ const require$$15$4 = _dll_debug;
|
|
|
92249
92259
|
console.error(e.toString());
|
|
92250
92260
|
}
|
|
92251
92261
|
updatedDocument.clear();
|
|
92262
|
+
};
|
|
92263
|
+
if (!enrichSpeechInitialized) {
|
|
92264
|
+
attemptRender(true);
|
|
92265
|
+
}
|
|
92266
|
+
_mathjax.mathjax.handleRetriesFor(function () {
|
|
92267
|
+
attemptRender();
|
|
92252
92268
|
});
|
|
92253
92269
|
}
|
|
92254
92270
|
};
|
|
@@ -175253,7 +175269,7 @@ const require$$3$6 = _dll_prop_types;
|
|
|
175253
175269
|
return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
|
|
175254
175270
|
style: {
|
|
175255
175271
|
display: 'inline-flex',
|
|
175256
|
-
minHeight: '
|
|
175272
|
+
minHeight: '55px',
|
|
175257
175273
|
minWidth: '178px',
|
|
175258
175274
|
position: 'relative',
|
|
175259
175275
|
cursor: 'pointer'
|
|
@@ -175262,14 +175278,14 @@ const require$$3$6 = _dll_prop_types;
|
|
|
175262
175278
|
style: {
|
|
175263
175279
|
display: 'inline-flex',
|
|
175264
175280
|
width: '100%',
|
|
175265
|
-
minHeight: '
|
|
175266
|
-
height: '
|
|
175281
|
+
minHeight: '46px',
|
|
175282
|
+
height: '46px',
|
|
175267
175283
|
backgroundColor: '#FFF',
|
|
175268
175284
|
border: ("1px solid ").concat(error ? 'red' : '#C0C3CF'),
|
|
175269
175285
|
boxSizing: 'border-box',
|
|
175270
175286
|
borderRadius: '4px',
|
|
175271
175287
|
overflow: 'hidden',
|
|
175272
|
-
padding: '
|
|
175288
|
+
padding: '12px 21px',
|
|
175273
175289
|
marginLeft: '4px'
|
|
175274
175290
|
},
|
|
175275
175291
|
dangerouslySetInnerHTML: {
|
|
@@ -175352,7 +175368,52 @@ const require$$3$5 = _dll_prop_types;
|
|
|
175352
175368
|
display: 'flex',
|
|
175353
175369
|
alignItems: 'center',
|
|
175354
175370
|
justifyContent: 'center',
|
|
175355
|
-
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))'
|
|
175371
|
+
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))',
|
|
175372
|
+
'& > .mq-math-mode sup.mq-nthroot': {
|
|
175373
|
+
fontSize: '70% !important',
|
|
175374
|
+
verticalAlign: '1em !important'
|
|
175375
|
+
},
|
|
175376
|
+
'& > .mq-math-mode .mq-sqrt-stem': {
|
|
175377
|
+
borderTop: '0.07em solid',
|
|
175378
|
+
marginLeft: '-1.5px',
|
|
175379
|
+
marginTop: '-2px !important',
|
|
175380
|
+
paddingTop: '5px !important'
|
|
175381
|
+
},
|
|
175382
|
+
'& .mq-overarrow-inner': {
|
|
175383
|
+
paddingTop: '0 !important',
|
|
175384
|
+
border: 'none !important'
|
|
175385
|
+
},
|
|
175386
|
+
'& .mq-overarrow.mq-arrow-both': {
|
|
175387
|
+
marginTop: '0px',
|
|
175388
|
+
minWidth: '1.23em',
|
|
175389
|
+
'& *': {
|
|
175390
|
+
lineHeight: '1 !important'
|
|
175391
|
+
},
|
|
175392
|
+
'&:before': {
|
|
175393
|
+
top: '-0.4em',
|
|
175394
|
+
left: '-1px'
|
|
175395
|
+
},
|
|
175396
|
+
'&:after': {
|
|
175397
|
+
top: '0px !important',
|
|
175398
|
+
position: 'absolute !important',
|
|
175399
|
+
right: '-2px'
|
|
175400
|
+
},
|
|
175401
|
+
'&.mq-empty:after': {
|
|
175402
|
+
top: '-0.45em'
|
|
175403
|
+
}
|
|
175404
|
+
},
|
|
175405
|
+
'& .mq-overarrow.mq-arrow-right': {
|
|
175406
|
+
'&:before': {
|
|
175407
|
+
top: '-0.4em',
|
|
175408
|
+
right: '-1px'
|
|
175409
|
+
}
|
|
175410
|
+
},
|
|
175411
|
+
'& .mq-overarrow-inner-right': {
|
|
175412
|
+
display: 'none !important'
|
|
175413
|
+
},
|
|
175414
|
+
'& .mq-overarrow-inner-left': {
|
|
175415
|
+
display: 'none !important'
|
|
175416
|
+
}
|
|
175356
175417
|
}
|
|
175357
175418
|
};
|
|
175358
175419
|
};
|
|
@@ -177240,7 +177301,7 @@ const {debounce: require$$16} = _dll_lodash;
|
|
|
177240
177301
|
var customToolbarShowDone = node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;
|
|
177241
177302
|
var defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;
|
|
177242
177303
|
var hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;
|
|
177243
|
-
var names = (0, _classnames["default"])(classes.toolbar, _constants.PIE_TOOLBAR__CLASS, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.toolbarWithNoDone, !hasDoneButton), (0, _defineProperty2["default"])(_classNames, classes.toolbarTop, toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.toolbarRight, toolbarOpts.alignment === 'right'), (0, _defineProperty2["default"])(_classNames, classes.focused, toolbarOpts.alwaysVisible || isFocused), (0, _defineProperty2["default"])(_classNames, classes.autoWidth, autoWidth), (0, _defineProperty2["default"])(_classNames, classes.fullWidth, !autoWidth), _classNames));
|
|
177304
|
+
var names = (0, _classnames["default"])(classes.toolbar, _constants.PIE_TOOLBAR__CLASS, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.toolbarWithNoDone, !hasDoneButton), (0, _defineProperty2["default"])(_classNames, classes.toolbarTop, toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.toolbarRight, toolbarOpts.alignment === 'right'), (0, _defineProperty2["default"])(_classNames, classes.focused, toolbarOpts.alwaysVisible || isFocused), (0, _defineProperty2["default"])(_classNames, classes.autoWidth, autoWidth), (0, _defineProperty2["default"])(_classNames, classes.fullWidth, !autoWidth), (0, _defineProperty2["default"])(_classNames, classes.hidden, toolbarOpts.isHidden === true), _classNames));
|
|
177244
177305
|
var customStyles = toolbarOpts.minWidth !== undefined ? {
|
|
177245
177306
|
minWidth: toolbarOpts.minWidth
|
|
177246
177307
|
} : {};
|
|
@@ -177309,7 +177370,8 @@ const {debounce: require$$16} = _dll_lodash;
|
|
|
177309
177370
|
alwaysVisible: _propTypes["default"].bool,
|
|
177310
177371
|
ref: _propTypes["default"].func,
|
|
177311
177372
|
showDone: _propTypes["default"].bool,
|
|
177312
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
177373
|
+
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
177374
|
+
isHidden: _propTypes["default"].bool
|
|
177313
177375
|
}),
|
|
177314
177376
|
onDataChange: _propTypes["default"].func,
|
|
177315
177377
|
doneButtonRef: _propTypes["default"].func,
|
|
@@ -177344,6 +177406,9 @@ const {debounce: require$$16} = _dll_lodash;
|
|
|
177344
177406
|
fullWidth: {
|
|
177345
177407
|
width: '100%'
|
|
177346
177408
|
},
|
|
177409
|
+
hidden: {
|
|
177410
|
+
visibility: 'hidden'
|
|
177411
|
+
},
|
|
177347
177412
|
autoWidth: {
|
|
177348
177413
|
width: 'auto'
|
|
177349
177414
|
},
|
|
@@ -180122,7 +180187,7 @@ const require$$6 = _dll_classnames;
|
|
|
180122
180187
|
var adjustedLimit = props.adjustedLimit, disabled = props.disabled, feedback = props.feedback, showCorrectAnswer = props.showCorrectAnswer, maxLength = props.maxLength, spellCheck = props.spellCheck, classes = props.classes, pluginProps = props.pluginProps, onChange = props.onChange;
|
|
180123
180188
|
var dataset = ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : _node$data.dataset) || ({});
|
|
180124
180189
|
if (dataset.component === 'input') {
|
|
180125
|
-
var _classnames;
|
|
180190
|
+
var _pluginProps$characte, _classnames;
|
|
180126
180191
|
var correctAnswer = (props.choices && dataset && props.choices[dataset.id] || [])[0];
|
|
180127
180192
|
var finalValue = showCorrectAnswer ? correctAnswer && correctAnswer.label : data[dataset.id] || '';
|
|
180128
180193
|
var width = maxLength && maxLength[dataset.id];
|
|
@@ -180153,9 +180218,11 @@ const require$$6 = _dll_classnames;
|
|
|
180153
180218
|
spellCheck: spellCheck,
|
|
180154
180219
|
width: ("calc(").concat(width, "ch + 42px)"),
|
|
180155
180220
|
onKeyDown: handleKeyDown,
|
|
180221
|
+
autoWidthToolbar: true,
|
|
180156
180222
|
toolbarOpts: {
|
|
180157
180223
|
minWidth: 'auto',
|
|
180158
|
-
noBorder: true
|
|
180224
|
+
noBorder: true,
|
|
180225
|
+
isHidden: !!(pluginProps !== null && pluginProps !== void 0 && (_pluginProps$characte = pluginProps.characters) !== null && _pluginProps$characte !== void 0 && _pluginProps$characte.disabled)
|
|
180159
180226
|
},
|
|
180160
180227
|
className: (0, _classnames2["default"])(classes.editableHtmlCustom, (_classnames = {}, (0, _defineProperty2["default"])(_classnames, classes.correct, isCorrect), (0, _defineProperty2["default"])(_classnames, classes.incorrect, isIncorrect), _classnames))
|
|
180161
180228
|
});
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "7.2.10-next.
|
|
7
|
+
"version": "7.2.10-next.7+e7e1358bc",
|
|
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": "2.7.
|
|
15
|
+
"@pie-lib/pie-toolbox": "2.7.1",
|
|
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": "e7e1358bcd9013c15e9d795c4fae899e683f6562",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|