@pie-element/complex-rubric 3.3.8-next.5 → 3.3.8
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/CHANGELOG.md +11 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +75 -10
- package/module/element.js +75 -10
- package/module/manifest.json +1 -1
- package/module/print.js +75 -10
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.3.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.3.7...@pie-element/complex-rubric@3.3.8) (2025-01-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4688, PD-4589, PD-4616 ([754480c](https://github.com/pie-framework/pie-elements/commit/754480c6c747fa9123d374df0287a644c8376939))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.3.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.3.6...@pie-element/complex-rubric@3.3.7) (2025-01-22)
|
|
7
18
|
|
|
8
19
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.4.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.4.7...@pie-element/complex-rubric-configure@2.4.8) (2025-01-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.4.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.4.6...@pie-element/complex-rubric-configure@2.4.7) (2025-01-22)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.8",
|
|
5
5
|
"description": "Complex Rubric authoring view",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"author": "Pie Framework Authors",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
|
-
"@pie-element/multi-trait-rubric": "^4.2.
|
|
12
|
-
"@pie-element/rubric": "^4.3.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^4.2.10",
|
|
12
|
+
"@pie-element/rubric": "^4.3.8",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.15",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.16...@pie-element/complex-rubric-controller@3.0.17) (2025-01-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4688, PD-4589, PD-4616 ([754480c](https://github.com/pie-framework/pie-elements/commit/754480c6c747fa9123d374df0287a644c8376939))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.15...@pie-element/complex-rubric-controller@3.0.16) (2025-01-22)
|
|
7
18
|
|
|
8
19
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.17",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/pie-toolbox": "2.7.
|
|
10
|
+
"@pie-lib/pie-toolbox": "2.7.1",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.0/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.8.0/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
m.forEach(function (e) {
|
|
6
6
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -114799,6 +114799,7 @@ const require$$15$8 = _dll_debug;
|
|
|
114799
114799
|
mml.setMmlFactory(customMmlFactory);
|
|
114800
114800
|
return html;
|
|
114801
114801
|
};
|
|
114802
|
+
var enrichSpeechInitialized = false;
|
|
114802
114803
|
var bootstrap = function bootstrap(opts) {
|
|
114803
114804
|
if (typeof window === 'undefined') {
|
|
114804
114805
|
return {
|
|
@@ -114816,10 +114817,19 @@ const require$$15$8 = _dll_debug;
|
|
|
114816
114817
|
for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
114817
114818
|
elements[_key] = arguments[_key];
|
|
114818
114819
|
}
|
|
114819
|
-
|
|
114820
|
+
var attemptRender = function attemptRender() {
|
|
114821
|
+
var _updatedDocument$math, _updatedDocument$math2;
|
|
114822
|
+
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
114820
114823
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
114821
114824
|
elements: elements
|
|
114822
|
-
} : {}).compile()
|
|
114825
|
+
} : {}).compile();
|
|
114826
|
+
if (!temporary) {
|
|
114827
|
+
updatedDocument = updatedDocument.enrich();
|
|
114828
|
+
}
|
|
114829
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
|
|
114830
|
+
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') {
|
|
114831
|
+
enrichSpeechInitialized = true;
|
|
114832
|
+
}
|
|
114823
114833
|
try {
|
|
114824
114834
|
var list = updatedDocument.math.list;
|
|
114825
114835
|
if (list) {
|
|
@@ -114833,6 +114843,12 @@ const require$$15$8 = _dll_debug;
|
|
|
114833
114843
|
console.error(e.toString());
|
|
114834
114844
|
}
|
|
114835
114845
|
updatedDocument.clear();
|
|
114846
|
+
};
|
|
114847
|
+
if (!enrichSpeechInitialized) {
|
|
114848
|
+
attemptRender(true);
|
|
114849
|
+
}
|
|
114850
|
+
_mathjax.mathjax.handleRetriesFor(function () {
|
|
114851
|
+
attemptRender();
|
|
114836
114852
|
});
|
|
114837
114853
|
}
|
|
114838
114854
|
};
|
|
@@ -176785,7 +176801,7 @@ const require$$3$d = _dll_prop_types;
|
|
|
176785
176801
|
return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
|
|
176786
176802
|
style: {
|
|
176787
176803
|
display: 'inline-flex',
|
|
176788
|
-
minHeight: '
|
|
176804
|
+
minHeight: '55px',
|
|
176789
176805
|
minWidth: '178px',
|
|
176790
176806
|
position: 'relative',
|
|
176791
176807
|
cursor: 'pointer'
|
|
@@ -176794,14 +176810,14 @@ const require$$3$d = _dll_prop_types;
|
|
|
176794
176810
|
style: {
|
|
176795
176811
|
display: 'inline-flex',
|
|
176796
176812
|
width: '100%',
|
|
176797
|
-
minHeight: '
|
|
176798
|
-
height: '
|
|
176813
|
+
minHeight: '46px',
|
|
176814
|
+
height: '46px',
|
|
176799
176815
|
backgroundColor: '#FFF',
|
|
176800
176816
|
border: ("1px solid ").concat(error ? 'red' : '#C0C3CF'),
|
|
176801
176817
|
boxSizing: 'border-box',
|
|
176802
176818
|
borderRadius: '4px',
|
|
176803
176819
|
overflow: 'hidden',
|
|
176804
|
-
padding: '
|
|
176820
|
+
padding: '12px 21px',
|
|
176805
176821
|
marginLeft: '4px'
|
|
176806
176822
|
},
|
|
176807
176823
|
dangerouslySetInnerHTML: {
|
|
@@ -176884,7 +176900,52 @@ const require$$3$c = _dll_prop_types;
|
|
|
176884
176900
|
display: 'flex',
|
|
176885
176901
|
alignItems: 'center',
|
|
176886
176902
|
justifyContent: 'center',
|
|
176887
|
-
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))'
|
|
176903
|
+
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))',
|
|
176904
|
+
'& > .mq-math-mode sup.mq-nthroot': {
|
|
176905
|
+
fontSize: '70% !important',
|
|
176906
|
+
verticalAlign: '1em !important'
|
|
176907
|
+
},
|
|
176908
|
+
'& > .mq-math-mode .mq-sqrt-stem': {
|
|
176909
|
+
borderTop: '0.07em solid',
|
|
176910
|
+
marginLeft: '-1.5px',
|
|
176911
|
+
marginTop: '-2px !important',
|
|
176912
|
+
paddingTop: '5px !important'
|
|
176913
|
+
},
|
|
176914
|
+
'& .mq-overarrow-inner': {
|
|
176915
|
+
paddingTop: '0 !important',
|
|
176916
|
+
border: 'none !important'
|
|
176917
|
+
},
|
|
176918
|
+
'& .mq-overarrow.mq-arrow-both': {
|
|
176919
|
+
marginTop: '0px',
|
|
176920
|
+
minWidth: '1.23em',
|
|
176921
|
+
'& *': {
|
|
176922
|
+
lineHeight: '1 !important'
|
|
176923
|
+
},
|
|
176924
|
+
'&:before': {
|
|
176925
|
+
top: '-0.4em',
|
|
176926
|
+
left: '-1px'
|
|
176927
|
+
},
|
|
176928
|
+
'&:after': {
|
|
176929
|
+
top: '0px !important',
|
|
176930
|
+
position: 'absolute !important',
|
|
176931
|
+
right: '-2px'
|
|
176932
|
+
},
|
|
176933
|
+
'&.mq-empty:after': {
|
|
176934
|
+
top: '-0.45em'
|
|
176935
|
+
}
|
|
176936
|
+
},
|
|
176937
|
+
'& .mq-overarrow.mq-arrow-right': {
|
|
176938
|
+
'&:before': {
|
|
176939
|
+
top: '-0.4em',
|
|
176940
|
+
right: '-1px'
|
|
176941
|
+
}
|
|
176942
|
+
},
|
|
176943
|
+
'& .mq-overarrow-inner-right': {
|
|
176944
|
+
display: 'none !important'
|
|
176945
|
+
},
|
|
176946
|
+
'& .mq-overarrow-inner-left': {
|
|
176947
|
+
display: 'none !important'
|
|
176948
|
+
}
|
|
176888
176949
|
}
|
|
176889
176950
|
};
|
|
176890
176951
|
};
|
|
@@ -178772,7 +178833,7 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
178772
178833
|
var customToolbarShowDone = node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;
|
|
178773
178834
|
var defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;
|
|
178774
178835
|
var hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;
|
|
178775
|
-
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));
|
|
178836
|
+
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));
|
|
178776
178837
|
var customStyles = toolbarOpts.minWidth !== undefined ? {
|
|
178777
178838
|
minWidth: toolbarOpts.minWidth
|
|
178778
178839
|
} : {};
|
|
@@ -178841,7 +178902,8 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
178841
178902
|
alwaysVisible: _propTypes["default"].bool,
|
|
178842
178903
|
ref: _propTypes["default"].func,
|
|
178843
178904
|
showDone: _propTypes["default"].bool,
|
|
178844
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
178905
|
+
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
178906
|
+
isHidden: _propTypes["default"].bool
|
|
178845
178907
|
}),
|
|
178846
178908
|
onDataChange: _propTypes["default"].func,
|
|
178847
178909
|
doneButtonRef: _propTypes["default"].func,
|
|
@@ -178876,6 +178938,9 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
178876
178938
|
fullWidth: {
|
|
178877
178939
|
width: '100%'
|
|
178878
178940
|
},
|
|
178941
|
+
hidden: {
|
|
178942
|
+
visibility: 'hidden'
|
|
178943
|
+
},
|
|
178879
178944
|
autoWidth: {
|
|
178880
178945
|
width: 'auto'
|
|
178881
178946
|
},
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_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) {
|
|
@@ -132405,6 +132405,7 @@ const require$$15$4 = _dll_debug;
|
|
|
132405
132405
|
mml.setMmlFactory(customMmlFactory);
|
|
132406
132406
|
return html;
|
|
132407
132407
|
};
|
|
132408
|
+
var enrichSpeechInitialized = false;
|
|
132408
132409
|
var bootstrap = function bootstrap(opts) {
|
|
132409
132410
|
if (typeof window === 'undefined') {
|
|
132410
132411
|
return {
|
|
@@ -132422,10 +132423,19 @@ const require$$15$4 = _dll_debug;
|
|
|
132422
132423
|
for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
132423
132424
|
elements[_key] = arguments[_key];
|
|
132424
132425
|
}
|
|
132425
|
-
|
|
132426
|
+
var attemptRender = function attemptRender() {
|
|
132427
|
+
var _updatedDocument$math, _updatedDocument$math2;
|
|
132428
|
+
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
132426
132429
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
132427
132430
|
elements: elements
|
|
132428
|
-
} : {}).compile()
|
|
132431
|
+
} : {}).compile();
|
|
132432
|
+
if (!temporary) {
|
|
132433
|
+
updatedDocument = updatedDocument.enrich();
|
|
132434
|
+
}
|
|
132435
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
|
|
132436
|
+
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') {
|
|
132437
|
+
enrichSpeechInitialized = true;
|
|
132438
|
+
}
|
|
132429
132439
|
try {
|
|
132430
132440
|
var list = updatedDocument.math.list;
|
|
132431
132441
|
if (list) {
|
|
@@ -132439,6 +132449,12 @@ const require$$15$4 = _dll_debug;
|
|
|
132439
132449
|
console.error(e.toString());
|
|
132440
132450
|
}
|
|
132441
132451
|
updatedDocument.clear();
|
|
132452
|
+
};
|
|
132453
|
+
if (!enrichSpeechInitialized) {
|
|
132454
|
+
attemptRender(true);
|
|
132455
|
+
}
|
|
132456
|
+
_mathjax.mathjax.handleRetriesFor(function () {
|
|
132457
|
+
attemptRender();
|
|
132442
132458
|
});
|
|
132443
132459
|
}
|
|
132444
132460
|
};
|
|
@@ -174862,7 +174878,7 @@ const require$$3$d = _dll_prop_types;
|
|
|
174862
174878
|
return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
|
|
174863
174879
|
style: {
|
|
174864
174880
|
display: 'inline-flex',
|
|
174865
|
-
minHeight: '
|
|
174881
|
+
minHeight: '55px',
|
|
174866
174882
|
minWidth: '178px',
|
|
174867
174883
|
position: 'relative',
|
|
174868
174884
|
cursor: 'pointer'
|
|
@@ -174871,14 +174887,14 @@ const require$$3$d = _dll_prop_types;
|
|
|
174871
174887
|
style: {
|
|
174872
174888
|
display: 'inline-flex',
|
|
174873
174889
|
width: '100%',
|
|
174874
|
-
minHeight: '
|
|
174875
|
-
height: '
|
|
174890
|
+
minHeight: '46px',
|
|
174891
|
+
height: '46px',
|
|
174876
174892
|
backgroundColor: '#FFF',
|
|
174877
174893
|
border: ("1px solid ").concat(error ? 'red' : '#C0C3CF'),
|
|
174878
174894
|
boxSizing: 'border-box',
|
|
174879
174895
|
borderRadius: '4px',
|
|
174880
174896
|
overflow: 'hidden',
|
|
174881
|
-
padding: '
|
|
174897
|
+
padding: '12px 21px',
|
|
174882
174898
|
marginLeft: '4px'
|
|
174883
174899
|
},
|
|
174884
174900
|
dangerouslySetInnerHTML: {
|
|
@@ -174961,7 +174977,52 @@ const require$$3$c = _dll_prop_types;
|
|
|
174961
174977
|
display: 'flex',
|
|
174962
174978
|
alignItems: 'center',
|
|
174963
174979
|
justifyContent: 'center',
|
|
174964
|
-
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))'
|
|
174980
|
+
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))',
|
|
174981
|
+
'& > .mq-math-mode sup.mq-nthroot': {
|
|
174982
|
+
fontSize: '70% !important',
|
|
174983
|
+
verticalAlign: '1em !important'
|
|
174984
|
+
},
|
|
174985
|
+
'& > .mq-math-mode .mq-sqrt-stem': {
|
|
174986
|
+
borderTop: '0.07em solid',
|
|
174987
|
+
marginLeft: '-1.5px',
|
|
174988
|
+
marginTop: '-2px !important',
|
|
174989
|
+
paddingTop: '5px !important'
|
|
174990
|
+
},
|
|
174991
|
+
'& .mq-overarrow-inner': {
|
|
174992
|
+
paddingTop: '0 !important',
|
|
174993
|
+
border: 'none !important'
|
|
174994
|
+
},
|
|
174995
|
+
'& .mq-overarrow.mq-arrow-both': {
|
|
174996
|
+
marginTop: '0px',
|
|
174997
|
+
minWidth: '1.23em',
|
|
174998
|
+
'& *': {
|
|
174999
|
+
lineHeight: '1 !important'
|
|
175000
|
+
},
|
|
175001
|
+
'&:before': {
|
|
175002
|
+
top: '-0.4em',
|
|
175003
|
+
left: '-1px'
|
|
175004
|
+
},
|
|
175005
|
+
'&:after': {
|
|
175006
|
+
top: '0px !important',
|
|
175007
|
+
position: 'absolute !important',
|
|
175008
|
+
right: '-2px'
|
|
175009
|
+
},
|
|
175010
|
+
'&.mq-empty:after': {
|
|
175011
|
+
top: '-0.45em'
|
|
175012
|
+
}
|
|
175013
|
+
},
|
|
175014
|
+
'& .mq-overarrow.mq-arrow-right': {
|
|
175015
|
+
'&:before': {
|
|
175016
|
+
top: '-0.4em',
|
|
175017
|
+
right: '-1px'
|
|
175018
|
+
}
|
|
175019
|
+
},
|
|
175020
|
+
'& .mq-overarrow-inner-right': {
|
|
175021
|
+
display: 'none !important'
|
|
175022
|
+
},
|
|
175023
|
+
'& .mq-overarrow-inner-left': {
|
|
175024
|
+
display: 'none !important'
|
|
175025
|
+
}
|
|
174965
175026
|
}
|
|
174966
175027
|
};
|
|
174967
175028
|
};
|
|
@@ -176849,7 +176910,7 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
176849
176910
|
var customToolbarShowDone = node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;
|
|
176850
176911
|
var defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;
|
|
176851
176912
|
var hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;
|
|
176852
|
-
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));
|
|
176913
|
+
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));
|
|
176853
176914
|
var customStyles = toolbarOpts.minWidth !== undefined ? {
|
|
176854
176915
|
minWidth: toolbarOpts.minWidth
|
|
176855
176916
|
} : {};
|
|
@@ -176918,7 +176979,8 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
176918
176979
|
alwaysVisible: _propTypes["default"].bool,
|
|
176919
176980
|
ref: _propTypes["default"].func,
|
|
176920
176981
|
showDone: _propTypes["default"].bool,
|
|
176921
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
176982
|
+
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
176983
|
+
isHidden: _propTypes["default"].bool
|
|
176922
176984
|
}),
|
|
176923
176985
|
onDataChange: _propTypes["default"].func,
|
|
176924
176986
|
doneButtonRef: _propTypes["default"].func,
|
|
@@ -176953,6 +177015,9 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
176953
177015
|
fullWidth: {
|
|
176954
177016
|
width: '100%'
|
|
176955
177017
|
},
|
|
177018
|
+
hidden: {
|
|
177019
|
+
visibility: 'hidden'
|
|
177020
|
+
},
|
|
176956
177021
|
autoWidth: {
|
|
176957
177022
|
width: 'auto'
|
|
176958
177023
|
},
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_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) {
|
|
@@ -132405,6 +132405,7 @@ const require$$15$4 = _dll_debug;
|
|
|
132405
132405
|
mml.setMmlFactory(customMmlFactory);
|
|
132406
132406
|
return html;
|
|
132407
132407
|
};
|
|
132408
|
+
var enrichSpeechInitialized = false;
|
|
132408
132409
|
var bootstrap = function bootstrap(opts) {
|
|
132409
132410
|
if (typeof window === 'undefined') {
|
|
132410
132411
|
return {
|
|
@@ -132422,10 +132423,19 @@ const require$$15$4 = _dll_debug;
|
|
|
132422
132423
|
for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
132423
132424
|
elements[_key] = arguments[_key];
|
|
132424
132425
|
}
|
|
132425
|
-
|
|
132426
|
+
var attemptRender = function attemptRender() {
|
|
132427
|
+
var _updatedDocument$math, _updatedDocument$math2;
|
|
132428
|
+
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
132426
132429
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
132427
132430
|
elements: elements
|
|
132428
|
-
} : {}).compile()
|
|
132431
|
+
} : {}).compile();
|
|
132432
|
+
if (!temporary) {
|
|
132433
|
+
updatedDocument = updatedDocument.enrich();
|
|
132434
|
+
}
|
|
132435
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
|
|
132436
|
+
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') {
|
|
132437
|
+
enrichSpeechInitialized = true;
|
|
132438
|
+
}
|
|
132429
132439
|
try {
|
|
132430
132440
|
var list = updatedDocument.math.list;
|
|
132431
132441
|
if (list) {
|
|
@@ -132439,6 +132449,12 @@ const require$$15$4 = _dll_debug;
|
|
|
132439
132449
|
console.error(e.toString());
|
|
132440
132450
|
}
|
|
132441
132451
|
updatedDocument.clear();
|
|
132452
|
+
};
|
|
132453
|
+
if (!enrichSpeechInitialized) {
|
|
132454
|
+
attemptRender(true);
|
|
132455
|
+
}
|
|
132456
|
+
_mathjax.mathjax.handleRetriesFor(function () {
|
|
132457
|
+
attemptRender();
|
|
132442
132458
|
});
|
|
132443
132459
|
}
|
|
132444
132460
|
};
|
|
@@ -174862,7 +174878,7 @@ const require$$3$d = _dll_prop_types;
|
|
|
174862
174878
|
return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
|
|
174863
174879
|
style: {
|
|
174864
174880
|
display: 'inline-flex',
|
|
174865
|
-
minHeight: '
|
|
174881
|
+
minHeight: '55px',
|
|
174866
174882
|
minWidth: '178px',
|
|
174867
174883
|
position: 'relative',
|
|
174868
174884
|
cursor: 'pointer'
|
|
@@ -174871,14 +174887,14 @@ const require$$3$d = _dll_prop_types;
|
|
|
174871
174887
|
style: {
|
|
174872
174888
|
display: 'inline-flex',
|
|
174873
174889
|
width: '100%',
|
|
174874
|
-
minHeight: '
|
|
174875
|
-
height: '
|
|
174890
|
+
minHeight: '46px',
|
|
174891
|
+
height: '46px',
|
|
174876
174892
|
backgroundColor: '#FFF',
|
|
174877
174893
|
border: ("1px solid ").concat(error ? 'red' : '#C0C3CF'),
|
|
174878
174894
|
boxSizing: 'border-box',
|
|
174879
174895
|
borderRadius: '4px',
|
|
174880
174896
|
overflow: 'hidden',
|
|
174881
|
-
padding: '
|
|
174897
|
+
padding: '12px 21px',
|
|
174882
174898
|
marginLeft: '4px'
|
|
174883
174899
|
},
|
|
174884
174900
|
dangerouslySetInnerHTML: {
|
|
@@ -174961,7 +174977,52 @@ const require$$3$c = _dll_prop_types;
|
|
|
174961
174977
|
display: 'flex',
|
|
174962
174978
|
alignItems: 'center',
|
|
174963
174979
|
justifyContent: 'center',
|
|
174964
|
-
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))'
|
|
174980
|
+
backgroundColor: 'var(--pie-background, rgba(255, 255, 255, 0))',
|
|
174981
|
+
'& > .mq-math-mode sup.mq-nthroot': {
|
|
174982
|
+
fontSize: '70% !important',
|
|
174983
|
+
verticalAlign: '1em !important'
|
|
174984
|
+
},
|
|
174985
|
+
'& > .mq-math-mode .mq-sqrt-stem': {
|
|
174986
|
+
borderTop: '0.07em solid',
|
|
174987
|
+
marginLeft: '-1.5px',
|
|
174988
|
+
marginTop: '-2px !important',
|
|
174989
|
+
paddingTop: '5px !important'
|
|
174990
|
+
},
|
|
174991
|
+
'& .mq-overarrow-inner': {
|
|
174992
|
+
paddingTop: '0 !important',
|
|
174993
|
+
border: 'none !important'
|
|
174994
|
+
},
|
|
174995
|
+
'& .mq-overarrow.mq-arrow-both': {
|
|
174996
|
+
marginTop: '0px',
|
|
174997
|
+
minWidth: '1.23em',
|
|
174998
|
+
'& *': {
|
|
174999
|
+
lineHeight: '1 !important'
|
|
175000
|
+
},
|
|
175001
|
+
'&:before': {
|
|
175002
|
+
top: '-0.4em',
|
|
175003
|
+
left: '-1px'
|
|
175004
|
+
},
|
|
175005
|
+
'&:after': {
|
|
175006
|
+
top: '0px !important',
|
|
175007
|
+
position: 'absolute !important',
|
|
175008
|
+
right: '-2px'
|
|
175009
|
+
},
|
|
175010
|
+
'&.mq-empty:after': {
|
|
175011
|
+
top: '-0.45em'
|
|
175012
|
+
}
|
|
175013
|
+
},
|
|
175014
|
+
'& .mq-overarrow.mq-arrow-right': {
|
|
175015
|
+
'&:before': {
|
|
175016
|
+
top: '-0.4em',
|
|
175017
|
+
right: '-1px'
|
|
175018
|
+
}
|
|
175019
|
+
},
|
|
175020
|
+
'& .mq-overarrow-inner-right': {
|
|
175021
|
+
display: 'none !important'
|
|
175022
|
+
},
|
|
175023
|
+
'& .mq-overarrow-inner-left': {
|
|
175024
|
+
display: 'none !important'
|
|
175025
|
+
}
|
|
174965
175026
|
}
|
|
174966
175027
|
};
|
|
174967
175028
|
};
|
|
@@ -176849,7 +176910,7 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
176849
176910
|
var customToolbarShowDone = node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;
|
|
176850
176911
|
var defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;
|
|
176851
176912
|
var hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;
|
|
176852
|
-
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));
|
|
176913
|
+
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));
|
|
176853
176914
|
var customStyles = toolbarOpts.minWidth !== undefined ? {
|
|
176854
176915
|
minWidth: toolbarOpts.minWidth
|
|
176855
176916
|
} : {};
|
|
@@ -176918,7 +176979,8 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
176918
176979
|
alwaysVisible: _propTypes["default"].bool,
|
|
176919
176980
|
ref: _propTypes["default"].func,
|
|
176920
176981
|
showDone: _propTypes["default"].bool,
|
|
176921
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
176982
|
+
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
176983
|
+
isHidden: _propTypes["default"].bool
|
|
176922
176984
|
}),
|
|
176923
176985
|
onDataChange: _propTypes["default"].func,
|
|
176924
176986
|
doneButtonRef: _propTypes["default"].func,
|
|
@@ -176953,6 +177015,9 @@ const {debounce: require$$16$2} = _dll_lodash;
|
|
|
176953
177015
|
fullWidth: {
|
|
176954
177016
|
width: '100%'
|
|
176955
177017
|
},
|
|
177018
|
+
hidden: {
|
|
177019
|
+
visibility: 'hidden'
|
|
177020
|
+
},
|
|
176956
177021
|
autoWidth: {
|
|
176957
177022
|
width: 'auto'
|
|
176958
177023
|
},
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "3.3.8
|
|
4
|
+
"version": "3.3.8",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "^4.2.10
|
|
11
|
-
"@pie-element/rubric": "^4.3.8
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.2.10",
|
|
11
|
+
"@pie-element/rubric": "^4.3.8",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "2c0186825adb965893eadb3fc6b7c71389caa6bf",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|