@pie-element/complex-rubric 2.16.3-next.8 → 2.16.4-next.0

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 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.16.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.16.2...@pie-element/complex-rubric@2.16.3) (2024-07-04)
7
+
8
+ **Note:** Version bump only for package @pie-element/complex-rubric
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.16.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.16.1...@pie-element/complex-rubric@2.16.2) (2024-06-28)
7
15
 
8
16
  **Note:** Version bump only for package @pie-element/complex-rubric
@@ -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.2.33](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.32...@pie-element/complex-rubric-configure@2.2.33) (2024-07-04)
7
+
8
+ **Note:** Version bump only for package @pie-element/complex-rubric-configure
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.2.32](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.31...@pie-element/complex-rubric-configure@2.2.32) (2024-06-28)
7
15
 
8
16
  **Note:** Version bump only for package @pie-element/complex-rubric-configure
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-configure",
3
3
  "private": true,
4
- "version": "2.2.32",
4
+ "version": "2.2.33",
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": "^3.16.2",
12
- "@pie-element/rubric": "^3.16.1",
11
+ "@pie-element/multi-trait-rubric": "^3.16.3",
12
+ "@pie-element/rubric": "^3.16.2",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
14
  "@pie-lib/config-ui": "^11.9.25-next.0",
15
15
  "@pie-lib/editable-html": "^11.1.2-next.0",
@@ -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.15.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.15.1...@pie-element/complex-rubric-controller@2.15.2) (2024-07-04)
7
+
8
+ **Note:** Version bump only for package @pie-element/complex-rubric-controller
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.15.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.15.0...@pie-element/complex-rubric-controller@2.15.1) (2024-06-26)
7
15
 
8
16
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-controller",
3
3
  "private": true,
4
- "version": "2.15.1",
4
+ "version": "2.15.2",
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": "1.25.0",
10
+ "@pie-lib/pie-toolbox": "1.25.1",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -144353,6 +144353,7 @@ const require$$3$v = _dll_prop_types;
144353
144353
  var _react = _interopRequireDefault(require$$2$c);
144354
144354
  var _propTypes = _interopRequireDefault(require$$3$v);
144355
144355
  var _styles = styles$1J;
144356
+ var _mathInput = mathInput;
144356
144357
  var MathTemplated = function MathTemplated(_ref) {
144357
144358
  var attributes = _ref.attributes, value = _ref.value, classes = _ref.classes, keyToDisplay = _ref.keyToDisplay;
144358
144359
  return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
@@ -144360,11 +144361,10 @@ const require$$3$v = _dll_prop_types;
144360
144361
  }), _react["default"].createElement("div", {
144361
144362
  className: classes.responseBox
144362
144363
  }, keyToDisplay), _react["default"].createElement("div", {
144363
- className: classes.mathBlock,
144364
- dangerouslySetInnerHTML: {
144365
- __html: value || '<div>&nbsp;</div>'
144366
- }
144367
- }));
144364
+ className: classes.mathBlock
144365
+ }, _react["default"].createElement(_mathInput.mq.Static, {
144366
+ latex: value
144367
+ })));
144368
144368
  };
144369
144369
  MathTemplated.propTypes = {
144370
144370
  attributes: _propTypes["default"].object,
@@ -144382,6 +144382,7 @@ const require$$3$v = _dll_prop_types;
144382
144382
  boxSizing: 'border-box',
144383
144383
  overflow: 'hidden',
144384
144384
  fontSize: '12px',
144385
+ minHeight: '36px',
144385
144386
  height: '100%',
144386
144387
  alignItems: 'center',
144387
144388
  fontFamily: 'Symbola, Times New Roman, serif',
@@ -144396,7 +144397,7 @@ const require$$3$v = _dll_prop_types;
144396
144397
  justifyContent: 'center',
144397
144398
  minWidth: '50px',
144398
144399
  minHeight: '36px',
144399
- height: '36px'
144400
+ height: 'fit-content'
144400
144401
  },
144401
144402
  mathBlock: {
144402
144403
  flex: 8,
@@ -148589,6 +148590,7 @@ const require$$13$5 = _dll_prop_types;
148589
148590
  }
148590
148591
  log('[render] inFocus: ', inFocus, 'value.isFocused:', value.isFocused, 'focused node: ', focusedNode);
148591
148592
  return _react["default"].createElement("div", {
148593
+ tabIndex: 0,
148592
148594
  className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noBorder, toolbarOpts && toolbarOpts.noBorder), (0, _defineProperty2["default"])(_classNames2, classes.error, toolbarOpts && toolbarOpts.error), _classNames2), classes.root)
148593
148595
  }, _react["default"].createElement("div", {
148594
148596
  className: holderNames
@@ -158029,7 +158031,9 @@ const require$$23 = _dll_classnames;
158029
158031
  }
158030
158032
  _this.stashValue();
158031
158033
  _this.props.onFocus();
158032
- change === null || change === void 0 ? void 0 : change.focus();
158034
+ if (!_this.isRelatedTargetButton(event)) {
158035
+ change === null || change === void 0 ? void 0 : change.focus();
158036
+ }
158033
158037
  resolve();
158034
158038
  });
158035
158039
  });
@@ -158372,6 +158376,12 @@ const require$$23 = _dll_classnames;
158372
158376
  value: function componentWillUnmount() {
158373
158377
  window.removeEventListener('resize', this.onResize);
158374
158378
  }
158379
+ }, {
158380
+ key: "isRelatedTargetButton",
158381
+ value: function isRelatedTargetButton(event) {
158382
+ var relatedTarget = event === null || event === void 0 ? void 0 : event.relatedTarget;
158383
+ return relatedTarget && relatedTarget.tagName.toLowerCase() === 'button';
158384
+ }
158375
158385
  }, {
158376
158386
  key: "buildSizeStyle",
158377
158387
  value: function buildSizeStyle() {
package/module/element.js CHANGED
@@ -142613,6 +142613,7 @@ const require$$3$v = _dll_prop_types;
142613
142613
  var _react = _interopRequireDefault(require$$2$c);
142614
142614
  var _propTypes = _interopRequireDefault(require$$3$v);
142615
142615
  var _styles = styles$1K;
142616
+ var _mathInput = mathInput;
142616
142617
  var MathTemplated = function MathTemplated(_ref) {
142617
142618
  var attributes = _ref.attributes, value = _ref.value, classes = _ref.classes, keyToDisplay = _ref.keyToDisplay;
142618
142619
  return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
@@ -142620,11 +142621,10 @@ const require$$3$v = _dll_prop_types;
142620
142621
  }), _react["default"].createElement("div", {
142621
142622
  className: classes.responseBox
142622
142623
  }, keyToDisplay), _react["default"].createElement("div", {
142623
- className: classes.mathBlock,
142624
- dangerouslySetInnerHTML: {
142625
- __html: value || '<div>&nbsp;</div>'
142626
- }
142627
- }));
142624
+ className: classes.mathBlock
142625
+ }, _react["default"].createElement(_mathInput.mq.Static, {
142626
+ latex: value
142627
+ })));
142628
142628
  };
142629
142629
  MathTemplated.propTypes = {
142630
142630
  attributes: _propTypes["default"].object,
@@ -142642,6 +142642,7 @@ const require$$3$v = _dll_prop_types;
142642
142642
  boxSizing: 'border-box',
142643
142643
  overflow: 'hidden',
142644
142644
  fontSize: '12px',
142645
+ minHeight: '36px',
142645
142646
  height: '100%',
142646
142647
  alignItems: 'center',
142647
142648
  fontFamily: 'Symbola, Times New Roman, serif',
@@ -142656,7 +142657,7 @@ const require$$3$v = _dll_prop_types;
142656
142657
  justifyContent: 'center',
142657
142658
  minWidth: '50px',
142658
142659
  minHeight: '36px',
142659
- height: '36px'
142660
+ height: 'fit-content'
142660
142661
  },
142661
142662
  mathBlock: {
142662
142663
  flex: 8,
@@ -146849,6 +146850,7 @@ const require$$13$5 = _dll_prop_types;
146849
146850
  }
146850
146851
  log('[render] inFocus: ', inFocus, 'value.isFocused:', value.isFocused, 'focused node: ', focusedNode);
146851
146852
  return _react["default"].createElement("div", {
146853
+ tabIndex: 0,
146852
146854
  className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noBorder, toolbarOpts && toolbarOpts.noBorder), (0, _defineProperty2["default"])(_classNames2, classes.error, toolbarOpts && toolbarOpts.error), _classNames2), classes.root)
146853
146855
  }, _react["default"].createElement("div", {
146854
146856
  className: holderNames
@@ -156094,7 +156096,9 @@ const require$$23 = _dll_classnames;
156094
156096
  }
156095
156097
  _this.stashValue();
156096
156098
  _this.props.onFocus();
156097
- change === null || change === void 0 ? void 0 : change.focus();
156099
+ if (!_this.isRelatedTargetButton(event)) {
156100
+ change === null || change === void 0 ? void 0 : change.focus();
156101
+ }
156098
156102
  resolve();
156099
156103
  });
156100
156104
  });
@@ -156437,6 +156441,12 @@ const require$$23 = _dll_classnames;
156437
156441
  value: function componentWillUnmount() {
156438
156442
  window.removeEventListener('resize', this.onResize);
156439
156443
  }
156444
+ }, {
156445
+ key: "isRelatedTargetButton",
156446
+ value: function isRelatedTargetButton(event) {
156447
+ var relatedTarget = event === null || event === void 0 ? void 0 : event.relatedTarget;
156448
+ return relatedTarget && relatedTarget.tagName.toLowerCase() === 'button';
156449
+ }
156440
156450
  }, {
156441
156451
  key: "buildSizeStyle",
156442
156452
  value: function buildSizeStyle() {
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/complex-rubric@2.16.2</title>
5
+ <title>@pie-element/complex-rubric@2.16.3</title>
6
6
  <script
7
7
  type="module"
8
8
  src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
- "version": "2.16.2",
3
+ "version": "2.16.3",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/complex-rubric@2.16.2</title>
5
+ <title>@pie-element/complex-rubric@2.16.3</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/module/print.js CHANGED
@@ -142613,6 +142613,7 @@ const require$$3$v = _dll_prop_types;
142613
142613
  var _react = _interopRequireDefault(require$$2$c);
142614
142614
  var _propTypes = _interopRequireDefault(require$$3$v);
142615
142615
  var _styles = styles$1K;
142616
+ var _mathInput = mathInput;
142616
142617
  var MathTemplated = function MathTemplated(_ref) {
142617
142618
  var attributes = _ref.attributes, value = _ref.value, classes = _ref.classes, keyToDisplay = _ref.keyToDisplay;
142618
142619
  return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
@@ -142620,11 +142621,10 @@ const require$$3$v = _dll_prop_types;
142620
142621
  }), _react["default"].createElement("div", {
142621
142622
  className: classes.responseBox
142622
142623
  }, keyToDisplay), _react["default"].createElement("div", {
142623
- className: classes.mathBlock,
142624
- dangerouslySetInnerHTML: {
142625
- __html: value || '<div>&nbsp;</div>'
142626
- }
142627
- }));
142624
+ className: classes.mathBlock
142625
+ }, _react["default"].createElement(_mathInput.mq.Static, {
142626
+ latex: value
142627
+ })));
142628
142628
  };
142629
142629
  MathTemplated.propTypes = {
142630
142630
  attributes: _propTypes["default"].object,
@@ -142642,6 +142642,7 @@ const require$$3$v = _dll_prop_types;
142642
142642
  boxSizing: 'border-box',
142643
142643
  overflow: 'hidden',
142644
142644
  fontSize: '12px',
142645
+ minHeight: '36px',
142645
142646
  height: '100%',
142646
142647
  alignItems: 'center',
142647
142648
  fontFamily: 'Symbola, Times New Roman, serif',
@@ -142656,7 +142657,7 @@ const require$$3$v = _dll_prop_types;
142656
142657
  justifyContent: 'center',
142657
142658
  minWidth: '50px',
142658
142659
  minHeight: '36px',
142659
- height: '36px'
142660
+ height: 'fit-content'
142660
142661
  },
142661
142662
  mathBlock: {
142662
142663
  flex: 8,
@@ -146849,6 +146850,7 @@ const require$$13$5 = _dll_prop_types;
146849
146850
  }
146850
146851
  log('[render] inFocus: ', inFocus, 'value.isFocused:', value.isFocused, 'focused node: ', focusedNode);
146851
146852
  return _react["default"].createElement("div", {
146853
+ tabIndex: 0,
146852
146854
  className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noBorder, toolbarOpts && toolbarOpts.noBorder), (0, _defineProperty2["default"])(_classNames2, classes.error, toolbarOpts && toolbarOpts.error), _classNames2), classes.root)
146853
146855
  }, _react["default"].createElement("div", {
146854
146856
  className: holderNames
@@ -156094,7 +156096,9 @@ const require$$23 = _dll_classnames;
156094
156096
  }
156095
156097
  _this.stashValue();
156096
156098
  _this.props.onFocus();
156097
- change === null || change === void 0 ? void 0 : change.focus();
156099
+ if (!_this.isRelatedTargetButton(event)) {
156100
+ change === null || change === void 0 ? void 0 : change.focus();
156101
+ }
156098
156102
  resolve();
156099
156103
  });
156100
156104
  });
@@ -156437,6 +156441,12 @@ const require$$23 = _dll_classnames;
156437
156441
  value: function componentWillUnmount() {
156438
156442
  window.removeEventListener('resize', this.onResize);
156439
156443
  }
156444
+ }, {
156445
+ key: "isRelatedTargetButton",
156446
+ value: function isRelatedTargetButton(event) {
156447
+ var relatedTarget = event === null || event === void 0 ? void 0 : event.relatedTarget;
156448
+ return relatedTarget && relatedTarget.tagName.toLowerCase() === 'button';
156449
+ }
156440
156450
  }, {
156441
156451
  key: "buildSizeStyle",
156442
156452
  value: function buildSizeStyle() {
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": "2.16.3-next.8+0755a62e2",
4
+ "version": "2.16.4-next.0+30959513b",
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": "^3.16.3-next.8+0755a62e2",
11
- "@pie-element/rubric": "^3.16.2-next.12+0755a62e2",
10
+ "@pie-element/multi-trait-rubric": "^3.16.4-next.0+30959513b",
11
+ "@pie-element/rubric": "^3.16.3-next.0+30959513b",
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": "0755a62e27834a00243b5945411ac7034ac37794",
18
+ "gitHead": "30959513b59815fbed1cef5d3eb1a38c86b94a67",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },