@pie-element/complex-rubric 2.16.8-next.21 → 2.16.8-next.24

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/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.19.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.20.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -139198,6 +139198,7 @@ const require$$4$P = _dll_prop_types;
139198
139198
  var _classnames = _interopRequireDefault(require$$3$z);
139199
139199
  var _propTypes = _interopRequireDefault(require$$4$P);
139200
139200
  var _grey = _interopRequireDefault(grey$1);
139201
+ var _renderUi = renderUi;
139201
139202
  var PlaceHolder = function PlaceHolder(props) {
139202
139203
  var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
139203
139204
  var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
@@ -139209,6 +139210,10 @@ const require$$4$P = _dll_prop_types;
139209
139210
  var repeatValue = grid.rowsRepeatValue || '1fr';
139210
139211
  style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
139211
139212
  }
139213
+ if (type === 'choice') {
139214
+ style.border = ("1px solid ").concat(_renderUi.color.borderLight());
139215
+ style.background = _renderUi.color.backgroundDark();
139216
+ }
139212
139217
  var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
139213
139218
  return _react["default"].createElement("div", {
139214
139219
  style: style,
@@ -139237,14 +139242,14 @@ const require$$4$P = _dll_prop_types;
139237
139242
  placeholder: {
139238
139243
  width: '100%',
139239
139244
  height: '100%',
139240
- background: theme.palette.grey[200],
139241
- border: '1px solid #D1D1D1',
139245
+ background: _renderUi.color.white(),
139242
139246
  transition: 'background-color 200ms linear, border-color 200ms linear',
139243
139247
  boxSizing: 'border-box',
139244
139248
  display: 'grid',
139245
139249
  gridRowGap: ("").concat(theme.spacing.unit, "px"),
139246
139250
  gridColumnGap: ("").concat(theme.spacing.unit, "px"),
139247
- padding: theme.spacing.unit * 1
139251
+ padding: theme.spacing.unit * 1,
139252
+ border: ("2px dashed ").concat(_renderUi.color.black())
139248
139253
  },
139249
139254
  disabled: {
139250
139255
  boxShadow: 'none',
@@ -139255,18 +139260,17 @@ const require$$4$P = _dll_prop_types;
139255
139260
  backgroundColor: ("").concat(_grey["default"][300])
139256
139261
  },
139257
139262
  board: {
139258
- border: '1px solid #D1D1D1',
139259
139263
  padding: theme.spacing.unit,
139260
139264
  display: 'flex',
139261
139265
  flexWrap: 'wrap',
139262
139266
  alignItems: 'center',
139263
- minHeight: '200px',
139267
+ minHeight: '100px',
139264
139268
  justifyContent: 'center',
139265
139269
  overflow: 'hidden',
139266
- touchAction: 'none'
139270
+ touchAction: 'none',
139271
+ backgroundColor: _renderUi.color.backgroundDark()
139267
139272
  },
139268
139273
  categorizeBoard: {
139269
- border: '1px solid #D1D1D1',
139270
139274
  padding: theme.spacing.unit / 2,
139271
139275
  display: 'flex',
139272
139276
  flexWrap: 'wrap',
@@ -139274,7 +139278,8 @@ const require$$4$P = _dll_prop_types;
139274
139278
  minHeight: '100px',
139275
139279
  justifyContent: 'center',
139276
139280
  overflow: 'hidden',
139277
- touchAction: 'none'
139281
+ touchAction: 'none',
139282
+ backgroundColor: _renderUi.color.backgroundDark()
139278
139283
  }
139279
139284
  };
139280
139285
  };
@@ -156507,7 +156512,7 @@ const require$$23 = _dll_classnames;
156507
156512
  }, {
156508
156513
  key: "render",
156509
156514
  value: function render() {
156510
- var _classNames, _this4 = this;
156515
+ var _classNames, _value$document, _this4 = this, _value$document2;
156511
156516
  var _this$props2 = this.props, disabled = _this$props2.disabled, spellCheck = _this$props2.spellCheck, highlightShape = _this$props2.highlightShape, classes = _this$props2.classes, className = _this$props2.className, placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
156512
156517
  var _ref4 = pluginProps || ({});
156513
156518
  _ref4.customPlugins;
@@ -156516,14 +156521,19 @@ const require$$23 = _dll_classnames;
156516
156521
  log('[render] value: ', value);
156517
156522
  var sizeStyle = this.buildSizeStyle();
156518
156523
  var names = (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.withBg, highlightShape), (0, _defineProperty2["default"])(_classNames, classes.toolbarOnTop, toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.scheduled, scheduled), _classNames), className);
156519
- return _react["default"].createElement("div", {
156524
+ var isResponseAreaEditor = names.includes('response-area-editor');
156525
+ return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
156526
+ htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
156527
+ className: classes.srOnly
156528
+ }, "Answer:"), _react["default"].createElement("div", {
156520
156529
  ref: function ref(_ref5) {
156521
156530
  return _this4.wrapperRef = _ref5;
156522
156531
  },
156523
156532
  style: {
156524
156533
  width: sizeStyle.width
156525
156534
  },
156526
- className: names
156535
+ className: names,
156536
+ id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document2 = value.document) === null || _value$document2 === void 0 ? void 0 : _value$document2.key)
156527
156537
  }, scheduled && _react["default"].createElement("div", {
156528
156538
  className: classes.uploading
156529
156539
  }, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
@@ -156582,7 +156592,7 @@ const require$$23 = _dll_classnames;
156582
156592
  onConfirm: dialog.onConfirm,
156583
156593
  onConfirmText: dialog.onConfirmText,
156584
156594
  onCloseText: dialog.onCloseText
156585
- }));
156595
+ })));
156586
156596
  }
156587
156597
  }]);
156588
156598
  return Editor;
@@ -156715,6 +156725,16 @@ const require$$23 = _dll_classnames;
156715
156725
  marginTop: '6px',
156716
156726
  padding: '20px',
156717
156727
  backgroundColor: 'rgba(0,0,0,0.06)'
156728
+ },
156729
+ srOnly: {
156730
+ border: 0,
156731
+ clip: 'rect(0, 0, 0, 0)',
156732
+ height: '1px',
156733
+ margin: '-1px',
156734
+ overflow: 'hidden',
156735
+ padding: 0,
156736
+ position: 'absolute',
156737
+ width: '1px'
156718
156738
  }
156719
156739
  };
156720
156740
  var _default = (0, _styles.withStyles)(styles)(Editor);
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.19.2"
7
+ "version": "1.20.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.19.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.20.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -139198,6 +139198,7 @@ const require$$4$P = _dll_prop_types;
139198
139198
  var _classnames = _interopRequireDefault(require$$3$z);
139199
139199
  var _propTypes = _interopRequireDefault(require$$4$P);
139200
139200
  var _grey = _interopRequireDefault(grey$1);
139201
+ var _renderUi = renderUi;
139201
139202
  var PlaceHolder = function PlaceHolder(props) {
139202
139203
  var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
139203
139204
  var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
@@ -139209,6 +139210,10 @@ const require$$4$P = _dll_prop_types;
139209
139210
  var repeatValue = grid.rowsRepeatValue || '1fr';
139210
139211
  style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
139211
139212
  }
139213
+ if (type === 'choice') {
139214
+ style.border = ("1px solid ").concat(_renderUi.color.borderLight());
139215
+ style.background = _renderUi.color.backgroundDark();
139216
+ }
139212
139217
  var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
139213
139218
  return _react["default"].createElement("div", {
139214
139219
  style: style,
@@ -139237,14 +139242,14 @@ const require$$4$P = _dll_prop_types;
139237
139242
  placeholder: {
139238
139243
  width: '100%',
139239
139244
  height: '100%',
139240
- background: theme.palette.grey[200],
139241
- border: '1px solid #D1D1D1',
139245
+ background: _renderUi.color.white(),
139242
139246
  transition: 'background-color 200ms linear, border-color 200ms linear',
139243
139247
  boxSizing: 'border-box',
139244
139248
  display: 'grid',
139245
139249
  gridRowGap: ("").concat(theme.spacing.unit, "px"),
139246
139250
  gridColumnGap: ("").concat(theme.spacing.unit, "px"),
139247
- padding: theme.spacing.unit * 1
139251
+ padding: theme.spacing.unit * 1,
139252
+ border: ("2px dashed ").concat(_renderUi.color.black())
139248
139253
  },
139249
139254
  disabled: {
139250
139255
  boxShadow: 'none',
@@ -139255,18 +139260,17 @@ const require$$4$P = _dll_prop_types;
139255
139260
  backgroundColor: ("").concat(_grey["default"][300])
139256
139261
  },
139257
139262
  board: {
139258
- border: '1px solid #D1D1D1',
139259
139263
  padding: theme.spacing.unit,
139260
139264
  display: 'flex',
139261
139265
  flexWrap: 'wrap',
139262
139266
  alignItems: 'center',
139263
- minHeight: '200px',
139267
+ minHeight: '100px',
139264
139268
  justifyContent: 'center',
139265
139269
  overflow: 'hidden',
139266
- touchAction: 'none'
139270
+ touchAction: 'none',
139271
+ backgroundColor: _renderUi.color.backgroundDark()
139267
139272
  },
139268
139273
  categorizeBoard: {
139269
- border: '1px solid #D1D1D1',
139270
139274
  padding: theme.spacing.unit / 2,
139271
139275
  display: 'flex',
139272
139276
  flexWrap: 'wrap',
@@ -139274,7 +139278,8 @@ const require$$4$P = _dll_prop_types;
139274
139278
  minHeight: '100px',
139275
139279
  justifyContent: 'center',
139276
139280
  overflow: 'hidden',
139277
- touchAction: 'none'
139281
+ touchAction: 'none',
139282
+ backgroundColor: _renderUi.color.backgroundDark()
139278
139283
  }
139279
139284
  };
139280
139285
  };
@@ -156507,7 +156512,7 @@ const require$$23 = _dll_classnames;
156507
156512
  }, {
156508
156513
  key: "render",
156509
156514
  value: function render() {
156510
- var _classNames, _this4 = this;
156515
+ var _classNames, _value$document, _this4 = this, _value$document2;
156511
156516
  var _this$props2 = this.props, disabled = _this$props2.disabled, spellCheck = _this$props2.spellCheck, highlightShape = _this$props2.highlightShape, classes = _this$props2.classes, className = _this$props2.className, placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
156512
156517
  var _ref4 = pluginProps || ({});
156513
156518
  _ref4.customPlugins;
@@ -156516,14 +156521,19 @@ const require$$23 = _dll_classnames;
156516
156521
  log('[render] value: ', value);
156517
156522
  var sizeStyle = this.buildSizeStyle();
156518
156523
  var names = (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.withBg, highlightShape), (0, _defineProperty2["default"])(_classNames, classes.toolbarOnTop, toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.scheduled, scheduled), _classNames), className);
156519
- return _react["default"].createElement("div", {
156524
+ var isResponseAreaEditor = names.includes('response-area-editor');
156525
+ return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
156526
+ htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
156527
+ className: classes.srOnly
156528
+ }, "Answer:"), _react["default"].createElement("div", {
156520
156529
  ref: function ref(_ref5) {
156521
156530
  return _this4.wrapperRef = _ref5;
156522
156531
  },
156523
156532
  style: {
156524
156533
  width: sizeStyle.width
156525
156534
  },
156526
- className: names
156535
+ className: names,
156536
+ id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document2 = value.document) === null || _value$document2 === void 0 ? void 0 : _value$document2.key)
156527
156537
  }, scheduled && _react["default"].createElement("div", {
156528
156538
  className: classes.uploading
156529
156539
  }, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
@@ -156582,7 +156592,7 @@ const require$$23 = _dll_classnames;
156582
156592
  onConfirm: dialog.onConfirm,
156583
156593
  onConfirmText: dialog.onConfirmText,
156584
156594
  onCloseText: dialog.onCloseText
156585
- }));
156595
+ })));
156586
156596
  }
156587
156597
  }]);
156588
156598
  return Editor;
@@ -156715,6 +156725,16 @@ const require$$23 = _dll_classnames;
156715
156725
  marginTop: '6px',
156716
156726
  padding: '20px',
156717
156727
  backgroundColor: 'rgba(0,0,0,0.06)'
156728
+ },
156729
+ srOnly: {
156730
+ border: 0,
156731
+ clip: 'rect(0, 0, 0, 0)',
156732
+ height: '1px',
156733
+ margin: '-1px',
156734
+ overflow: 'hidden',
156735
+ padding: 0,
156736
+ position: 'absolute',
156737
+ width: '1px'
156718
156738
  }
156719
156739
  };
156720
156740
  var _default = (0, _styles.withStyles)(styles)(Editor);
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.8-next.21+1e416a557",
4
+ "version": "2.16.8-next.24+ac34d93fc",
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.8-next.21+1e416a557",
11
- "@pie-element/rubric": "^3.16.7-next.21+1e416a557",
10
+ "@pie-element/multi-trait-rubric": "^3.16.8-next.24+ac34d93fc",
11
+ "@pie-element/rubric": "^3.16.7-next.24+ac34d93fc",
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": "1e416a557b158c94c4c9e3575126d87a8a57e640",
18
+ "gitHead": "ac34d93fcc97e79cacddcd38c7509f3c96b69976",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },