@pie-element/rubric 6.3.4-next.3 → 7.0.0-beta.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.
Files changed (54) hide show
  1. package/configure/lib/defaults.js +2 -3
  2. package/configure/lib/defaults.js.map +1 -1
  3. package/configure/lib/index.js +90 -152
  4. package/configure/lib/index.js.map +1 -1
  5. package/configure/lib/main.js +90 -149
  6. package/configure/lib/main.js.map +1 -1
  7. package/configure/package.json +11 -7
  8. package/configure/src/__tests__/index.test.jsx +12 -2
  9. package/configure/src/index.js +12 -2
  10. package/configure/src/main.jsx +11 -13
  11. package/controller/lib/defaults.js +2 -3
  12. package/controller/lib/defaults.js.map +1 -1
  13. package/controller/lib/index.js +15 -28
  14. package/controller/lib/index.js.map +1 -1
  15. package/controller/package.json +1 -1
  16. package/lib/index.js +38 -80
  17. package/lib/index.js.map +1 -1
  18. package/lib/main.js +182 -244
  19. package/lib/main.js.map +1 -1
  20. package/lib/print.js +41 -84
  21. package/lib/print.js.map +1 -1
  22. package/package.json +8 -13
  23. package/src/__tests__/rubric-view.test.jsx +12 -24
  24. package/src/index.js +14 -3
  25. package/src/main.jsx +100 -93
  26. package/src/print.js +13 -2
  27. package/configure/lib/pie-toolbox-rubric/authoring.js +0 -573
  28. package/configure/lib/pie-toolbox-rubric/authoring.js.map +0 -1
  29. package/configure/lib/pie-toolbox-rubric/index.js +0 -24
  30. package/configure/lib/pie-toolbox-rubric/index.js.map +0 -1
  31. package/configure/lib/pie-toolbox-rubric/point-menu.js +0 -172
  32. package/configure/lib/pie-toolbox-rubric/point-menu.js.map +0 -1
  33. package/configure/src/pie-toolbox-rubric/authoring.jsx +0 -449
  34. package/configure/src/pie-toolbox-rubric/index.js +0 -9
  35. package/configure/src/pie-toolbox-rubric/point-menu.jsx +0 -94
  36. package/esm/configure.js +0 -34632
  37. package/esm/configure.js.map +0 -1
  38. package/esm/controller.js +0 -68
  39. package/esm/controller.js.map +0 -1
  40. package/esm/element.js +0 -12909
  41. package/esm/element.js.map +0 -1
  42. package/esm/package.json +0 -3
  43. package/esm/print.js +0 -13482
  44. package/esm/print.js.map +0 -1
  45. package/module/configure.js +0 -1
  46. package/module/controller.js +0 -113
  47. package/module/demo.js +0 -33
  48. package/module/element.js +0 -1
  49. package/module/index.html +0 -21
  50. package/module/manifest.json +0 -14
  51. package/module/print-demo.js +0 -71
  52. package/module/print.html +0 -18
  53. package/module/print.js +0 -1
  54. package/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -2521
package/lib/main.js CHANGED
@@ -1,270 +1,208 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = exports.RubricType = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
-
20
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
-
7
+ exports.default = exports.RubricType = void 0;
22
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
9
  var _react = _interopRequireDefault(require("react"));
25
-
26
- var _styles = require("@material-ui/core/styles");
27
-
28
- var _ListItem = _interopRequireDefault(require("@material-ui/core/ListItem"));
29
-
30
- var _List = _interopRequireDefault(require("@material-ui/core/List"));
31
-
32
- var _Collapse = _interopRequireDefault(require("@material-ui/core/Collapse"));
33
-
10
+ var _styles = require("@mui/material/styles");
11
+ var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
12
+ var _List = _interopRequireDefault(require("@mui/material/List"));
13
+ var _Collapse = _interopRequireDefault(require("@mui/material/Collapse"));
34
14
  var _renderUi = require("@pie-lib/render-ui");
35
-
36
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
37
-
38
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
39
-
40
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
-
42
- var RubricType = _propTypes["default"].shape({
43
- excludeZero: _propTypes["default"].bool,
44
- points: _propTypes["default"].arrayOf(_propTypes["default"].string),
45
- sampleAnswers: _propTypes["default"].arrayOf(_propTypes["default"].string),
46
- animationsDisabled: _propTypes["default"].bool
16
+ const StyledUiLayout = (0, _styles.styled)(_renderUi.UiLayout)({
17
+ color: _renderUi.color.text(),
18
+ backgroundColor: _renderUi.color.background(),
19
+ // apply styles to tables to match the rest of the UI
20
+ '&:not(.MathJax) table': {
21
+ borderCollapse: 'collapse'
22
+ },
23
+ '&:not(.MathJax) table td, &:not(.MathJax) table th': {
24
+ padding: '8px 12px',
25
+ textAlign: 'left'
26
+ },
27
+ // reset paragraph margins and line-height inside lists to override client styles
28
+ '& ul p, & ol p': {
29
+ marginBottom: 0,
30
+ marginTop: 0,
31
+ lineHeight: 'normal'
32
+ }
47
33
  });
48
-
49
- exports.RubricType = RubricType;
50
-
51
- var Rubric = /*#__PURE__*/function (_React$Component) {
52
- (0, _inherits2["default"])(Rubric, _React$Component);
53
-
54
- var _super = _createSuper(Rubric);
55
-
56
- function Rubric(props) {
57
- var _this;
58
-
59
- (0, _classCallCheck2["default"])(this, Rubric);
60
- _this = _super.call(this, props);
61
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "dudUrl", 'javascript:;');
62
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "shouldRenderPoint", function (index, value) {
34
+ const StyledListItem = (0, _styles.styled)(_ListItem.default)({
35
+ display: 'flex',
36
+ flexDirection: 'column',
37
+ alignItems: 'flex-start',
38
+ padding: '12px 0px'
39
+ });
40
+ const Text = (0, _styles.styled)('div')({
41
+ color: _renderUi.color.text()
42
+ });
43
+ const TitleText = (0, _styles.styled)('h3')({
44
+ color: _renderUi.color.text(),
45
+ fontSize: '16px',
46
+ fontWeight: '700',
47
+ margin: 0,
48
+ paddingBottom: '6px'
49
+ });
50
+ const SampleTitleText = (0, _styles.styled)('h4')({
51
+ color: _renderUi.color.text(),
52
+ fontSize: '16px',
53
+ fontWeight: 'normal',
54
+ margin: 0,
55
+ paddingBottom: '6px'
56
+ });
57
+ const RubricToggle = (0, _styles.styled)('h2')(({
58
+ theme
59
+ }) => ({
60
+ display: 'flex',
61
+ alignItems: 'center',
62
+ cursor: 'pointer',
63
+ userSelect: 'none',
64
+ fontSize: theme.typography.fontSize,
65
+ fontWeight: '500',
66
+ color: _renderUi.color.tertiary(),
67
+ margin: 0
68
+ }));
69
+ const ChevronStyle = (0, _styles.styled)('span')({
70
+ display: 'inline-flex',
71
+ transition: 'transform 0.2s',
72
+ marginLeft: 2,
73
+ alignSelf: 'center'
74
+ });
75
+ const HiddenScreenReader = (0, _styles.styled)('h2')({
76
+ position: 'absolute',
77
+ width: '1px',
78
+ height: '1px',
79
+ padding: 0,
80
+ margin: '-1px',
81
+ overflow: 'hidden',
82
+ clip: 'rect(0,0,0,0)',
83
+ border: 0,
84
+ whiteSpace: 'nowrap'
85
+ });
86
+ const RubricType = exports.RubricType = _propTypes.default.shape({
87
+ excludeZero: _propTypes.default.bool,
88
+ points: _propTypes.default.arrayOf(_propTypes.default.string),
89
+ sampleAnswers: _propTypes.default.arrayOf(_propTypes.default.string),
90
+ animationsDisabled: _propTypes.default.bool
91
+ });
92
+ class Rubric extends _react.default.Component {
93
+ constructor(props) {
94
+ super(props);
95
+ (0, _defineProperty2.default)(this, "dudUrl", 'javascript:;');
96
+ (0, _defineProperty2.default)(this, "shouldRenderPoint", (index, value) => {
63
97
  if (!value.excludeZero) {
64
98
  return true;
65
99
  } else {
66
100
  return index !== 0;
67
101
  }
68
102
  });
69
- _this.state = {
103
+ this.state = {
70
104
  rubricOpen: false,
71
105
  linkPrefix: 'Show'
72
106
  };
73
- _this.toggleRubric = _this.toggleRubric.bind((0, _assertThisInitialized2["default"])(_this));
74
- return _this;
107
+ this.toggleRubric = this.toggleRubric.bind(this);
75
108
  }
76
-
77
- (0, _createClass2["default"])(Rubric, [{
78
- key: "toggleRubric",
79
- value: function toggleRubric() {
80
- this.setState({
81
- rubricOpen: !this.state.rubricOpen
82
- });
83
- this.setState({
84
- linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide'
85
- });
86
- }
87
- }, {
88
- key: "render",
89
- value: function render() {
90
- var _this2 = this;
91
-
92
- var _this$props = this.props,
93
- model = _this$props.model,
94
- value = _this$props.value,
95
- classes = _this$props.classes;
96
- var animationsDisabled = this.props.animationsDisabled;
97
- animationsDisabled = animationsDisabled || value.animationsDisabled;
98
-
99
- if (value && value.points) {
100
- var _ref = model || {},
101
- extraCSSRules = _ref.extraCSSRules;
102
-
103
- var points = value.points,
104
- sampleAnswers = value.sampleAnswers;
105
-
106
- var rubricList = /*#__PURE__*/_react["default"].createElement(_List["default"], {
107
- component: "nav"
108
- }, points.slice(0).reverse().map(function (desc, index) {
109
- index = points.length - index - 1;
110
- var pointsLabel = value.excludeZero ? index + 1 : index;
111
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
112
- key: index
113
- }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
114
- key: "P".concat(index),
115
- className: classes.listColumn
116
- }, /*#__PURE__*/_react["default"].createElement("h3", {
117
- className: classes.titleText
118
- }, pointsLabel === 1 ? "".concat(pointsLabel, " PT") : "".concat(pointsLabel, " PTS")), /*#__PURE__*/_react["default"].createElement("div", {
119
- className: classes.text,
120
- dangerouslySetInnerHTML: {
121
- __html: desc
122
- }
123
- })), sampleAnswers && sampleAnswers[index] && /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
124
- key: "S".concat(index),
125
- className: classes.listColumn
126
- }, /*#__PURE__*/_react["default"].createElement("h4", {
127
- className: classes.titleText,
128
- style: {
129
- fontWeight: 'normal'
130
- }
131
- }, "Sample Answer"), /*#__PURE__*/_react["default"].createElement("div", {
132
- className: classes.text,
133
- dangerouslySetInnerHTML: {
134
- __html: sampleAnswers[index]
135
- }
136
- })));
137
- }));
138
-
139
- return /*#__PURE__*/_react["default"].createElement(_renderUi.UiLayout, {
140
- extraCSSRules: extraCSSRules,
141
- className: classes.root
142
- }, /*#__PURE__*/_react["default"].createElement("h2", {
143
- className: classes.hiddenScreenReader
144
- }, "Rubric"), !animationsDisabled ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("h2", {
145
- id: 'rubric-toggle',
146
- className: classes.rubricToggle,
147
- tabIndex: 0,
148
- role: "button",
149
- "aria-expanded": this.state.rubricOpen,
150
- onClick: this.toggleRubric,
151
- onKeyPress: function onKeyPress(e) {
152
- if (e.key === 'Enter' || e.key === ' ') _this2.toggleRubric();
109
+ toggleRubric() {
110
+ this.setState({
111
+ rubricOpen: !this.state.rubricOpen
112
+ });
113
+ this.setState({
114
+ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide'
115
+ });
116
+ }
117
+ render() {
118
+ const {
119
+ model,
120
+ value
121
+ } = this.props;
122
+ let {
123
+ animationsDisabled
124
+ } = this.props;
125
+ animationsDisabled = animationsDisabled || value.animationsDisabled;
126
+ if (value && value.points) {
127
+ const {
128
+ extraCSSRules
129
+ } = model || {};
130
+ const {
131
+ points,
132
+ sampleAnswers
133
+ } = value;
134
+ const rubricList = /*#__PURE__*/_react.default.createElement(_List.default, {
135
+ component: "nav"
136
+ }, points.slice(0).reverse().map((desc, index) => {
137
+ index = points.length - index - 1;
138
+ const pointsLabel = value.excludeZero ? index + 1 : index;
139
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
140
+ key: index
141
+ }, /*#__PURE__*/_react.default.createElement(StyledListItem, {
142
+ key: `P${index}`
143
+ }, /*#__PURE__*/_react.default.createElement(TitleText, null, pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`), /*#__PURE__*/_react.default.createElement(Text, {
144
+ dangerouslySetInnerHTML: {
145
+ __html: desc
153
146
  }
154
- }, this.state.linkPrefix, " Rubric", /*#__PURE__*/_react["default"].createElement("span", {
155
- className: classes.chevronStyle,
156
- "aria-hidden": "true"
157
- }, this.state.rubricOpen ? /*#__PURE__*/_react["default"].createElement("svg", {
158
- width: "20",
159
- height: "20",
160
- viewBox: "0 0 24 24",
161
- fill: "none",
162
- stroke: "currentColor",
163
- strokeWidth: "2",
164
- strokeLinecap: "round",
165
- strokeLinejoin: "round"
166
- }, /*#__PURE__*/_react["default"].createElement("polyline", {
167
- points: "18 15 12 9 6 15"
168
- })) : /*#__PURE__*/_react["default"].createElement("svg", {
169
- width: "20",
170
- height: "20",
171
- viewBox: "0 0 24 24",
172
- fill: "none",
173
- stroke: "currentColor",
174
- strokeWidth: "2",
175
- strokeLinecap: "round",
176
- strokeLinejoin: "round"
177
- }, /*#__PURE__*/_react["default"].createElement("polyline", {
178
- points: "6 9 12 15 18 9"
179
- })))), /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
180
- "in": this.state.rubricOpen,
181
- timeout: "auto"
182
- }, rubricList)) : rubricList);
183
- } else {
184
- return null;
185
- }
147
+ })), sampleAnswers && sampleAnswers[index] && /*#__PURE__*/_react.default.createElement(StyledListItem, {
148
+ key: `S${index}`
149
+ }, /*#__PURE__*/_react.default.createElement(SampleTitleText, null, "Sample Answer"), /*#__PURE__*/_react.default.createElement(Text, {
150
+ dangerouslySetInnerHTML: {
151
+ __html: sampleAnswers[index]
152
+ }
153
+ })));
154
+ }));
155
+ return /*#__PURE__*/_react.default.createElement(StyledUiLayout, {
156
+ extraCSSRules: extraCSSRules
157
+ }, /*#__PURE__*/_react.default.createElement(HiddenScreenReader, null, "Rubric"), !animationsDisabled ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(RubricToggle, {
158
+ id: 'rubric-toggle',
159
+ tabIndex: 0,
160
+ role: "button",
161
+ "aria-expanded": this.state.rubricOpen,
162
+ onClick: this.toggleRubric,
163
+ onKeyPress: e => {
164
+ if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();
165
+ }
166
+ }, this.state.linkPrefix, " Rubric", /*#__PURE__*/_react.default.createElement(ChevronStyle, {
167
+ "aria-hidden": "true"
168
+ }, this.state.rubricOpen ? /*#__PURE__*/_react.default.createElement("svg", {
169
+ width: "20",
170
+ height: "20",
171
+ viewBox: "0 0 24 24",
172
+ fill: "none",
173
+ stroke: "currentColor",
174
+ strokeWidth: "2",
175
+ strokeLinecap: "round",
176
+ strokeLinejoin: "round"
177
+ }, /*#__PURE__*/_react.default.createElement("polyline", {
178
+ points: "18 15 12 9 6 15"
179
+ })) : /*#__PURE__*/_react.default.createElement("svg", {
180
+ width: "20",
181
+ height: "20",
182
+ viewBox: "0 0 24 24",
183
+ fill: "none",
184
+ stroke: "currentColor",
185
+ strokeWidth: "2",
186
+ strokeLinecap: "round",
187
+ strokeLinejoin: "round"
188
+ }, /*#__PURE__*/_react.default.createElement("polyline", {
189
+ points: "6 9 12 15 18 9"
190
+ })))), /*#__PURE__*/_react.default.createElement(_Collapse.default, {
191
+ in: this.state.rubricOpen,
192
+ timeout: {
193
+ enter: 225,
194
+ exit: 195
195
+ }
196
+ }, rubricList)) : rubricList);
197
+ } else {
198
+ return null;
186
199
  }
187
- }]);
188
- return Rubric;
189
- }(_react["default"].Component);
190
-
191
- (0, _defineProperty2["default"])(Rubric, "propTypes", {
192
- classes: _propTypes["default"].object.isRequired,
193
- model: _propTypes["default"].object.isRequired,
194
- animationsDisabled: _propTypes["default"].bool,
200
+ }
201
+ }
202
+ (0, _defineProperty2.default)(Rubric, "propTypes", {
203
+ model: _propTypes.default.object.isRequired,
204
+ animationsDisabled: _propTypes.default.bool,
195
205
  value: RubricType
196
206
  });
197
-
198
- var styles = function styles(theme) {
199
- return {
200
- root: {
201
- color: _renderUi.color.text(),
202
- backgroundColor: _renderUi.color.background(),
203
- // apply styles to tables to match the rest of the UI
204
- '&:not(.MathJax) table': {
205
- borderCollapse: 'collapse'
206
- },
207
- '&:not(.MathJax) table td, &:not(.MathJax) table th': {
208
- padding: '8px 12px',
209
- textAlign: 'left'
210
- },
211
- // reset paragraph margins and line-height inside lists to override client styles
212
- '& ul p, & ol p': {
213
- marginBottom: 0,
214
- marginTop: 0,
215
- lineHeight: 'normal'
216
- }
217
- },
218
- listColumn: {
219
- display: 'flex',
220
- flexDirection: 'column',
221
- alignItems: 'flex-start',
222
- padding: '12px 0px'
223
- },
224
- listColumnItem: {
225
- padding: 0
226
- },
227
- text: {
228
- color: _renderUi.color.text()
229
- },
230
- titleText: {
231
- color: _renderUi.color.text(),
232
- fontSize: '16px',
233
- fontWeight: '700',
234
- margin: 0,
235
- paddingBottom: '6px'
236
- },
237
- rubricToggle: {
238
- display: 'flex',
239
- alignItems: 'center',
240
- cursor: 'pointer',
241
- userSelect: 'none',
242
- fontSize: theme.typography.fontSize,
243
- fontWeight: '500',
244
- color: _renderUi.color.tertiary(),
245
- margin: 0
246
- },
247
- chevronStyle: {
248
- display: 'inline-flex',
249
- transition: 'transform 0.2s',
250
- marginLeft: 2,
251
- alignSelf: 'center'
252
- },
253
- hiddenScreenReader: {
254
- position: 'absolute',
255
- width: '1px',
256
- height: '1px',
257
- padding: 0,
258
- margin: '-1px',
259
- overflow: 'hidden',
260
- clip: 'rect(0,0,0,0)',
261
- border: 0,
262
- whiteSpace: 'nowrap'
263
- }
264
- };
265
- };
266
-
267
- var _default = (0, _styles.withStyles)(styles)(Rubric);
268
-
269
- exports["default"] = _default;
207
+ var _default = exports.default = Rubric;
270
208
  //# sourceMappingURL=main.js.map
package/lib/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["RubricType","PropTypes","shape","excludeZero","bool","points","arrayOf","string","sampleAnswers","animationsDisabled","Rubric","props","index","value","state","rubricOpen","linkPrefix","toggleRubric","bind","setState","model","classes","extraCSSRules","rubricList","slice","reverse","map","desc","length","pointsLabel","listColumn","titleText","text","__html","fontWeight","root","hiddenScreenReader","rubricToggle","e","key","chevronStyle","React","Component","object","isRequired","styles","theme","color","backgroundColor","background","borderCollapse","padding","textAlign","marginBottom","marginTop","lineHeight","display","flexDirection","alignItems","listColumnItem","fontSize","margin","paddingBottom","cursor","userSelect","typography","tertiary","transition","marginLeft","alignSelf","position","width","height","overflow","clip","border","whiteSpace"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEO,IAAMA,UAAU,GAAGC,sBAAUC,KAAV,CAAgB;AACxCC,EAAAA,WAAW,EAAEF,sBAAUG,IADiB;AAExCC,EAAAA,MAAM,EAAEJ,sBAAUK,OAAV,CAAkBL,sBAAUM,MAA5B,CAFgC;AAGxCC,EAAAA,aAAa,EAAEP,sBAAUK,OAAV,CAAkBL,sBAAUM,MAA5B,CAHyB;AAIxCE,EAAAA,kBAAkB,EAAER,sBAAUG;AAJU,CAAhB,CAAnB;;;;IAODM,M;;;;;AAGJ,kBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,+FAFV,cAEU;AAAA,0GAqBC,UAACC,KAAD,EAAQC,KAAR,EA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E,KAHH;AAIT2B,MAAAA,MAAM,EAAE,CAJC;AAKTC,MAAAA,aAAa,EAAE;AALN,KA/Bc;AAsCzBzB,IAAAA,YAAY,EAAE;AACZmB,MAAAA,OAAO,EAAE,MADG;AAEZE,MAAAA,UAAU,EAAE,QAFA;AAGZK,MAAAA,MAAM,EAAE,SAHI;AAIZC,MAAAA,UAAU,EAAE,MAJA;AAKZJ,MAAAA,QAAQ,EAAEd,KAAK,CAACmB,UAAN,CAAiBL,QALf;AAMZ1B,MAAAA,UAAU,EAAE,KANA;AAOZa,MAAAA,KAAK,EAAEA,gBAAMmB,QAAN,EAPK;AAQZL,MAAAA,MAAM,EAAE;AARI,KAtCW;AAgDzBrB,IAAAA,YAAY,EAAE;AACZgB,MAAAA,OAAO,EAAE,aADG;AAEZW,MAAAA,UAAU,EAAE,gBAFA;AAGZC,MAAAA,UAAU,EAAE,CAHA;AAIZC,MAAAA,SAAS,EAAE;AAJC,KAhDW;AAsDzBjC,IAAAA,kBAAkB,EAAE;AAClBkC,MAAAA,QAAQ,EAAE,UADQ;AAElBC,MAAAA,KAAK,EAAE,KAFW;AAGlBC,MAAAA,MAAM,EAAE,KAHU;AAIlBrB,MAAAA,OAAO,EAAE,CAJS;AAKlBU,MAAAA,MAAM,EAAE,MALU;AAMlBY,MAAAA,QAAQ,EAAE,QANQ;AAOlBC,MAAAA,IAAI,EAAE,eAPY;AAQlBC,MAAAA,MAAM,EAAE,CARU;AASlBC,MAAAA,UAAU,EAAE;AATM;AAtDK,GAAZ;AAAA,CAAf;;eAmEe,wBAAW/B,MAAX,EAAmBnC,MAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport ListItem from '@material-ui/core/ListItem';\nimport List from '@material-ui/core/List';\nimport Collapse from '@material-ui/core/Collapse';\nimport { color, UiLayout } from '@pie-lib/render-ui';\nimport PropTypes from 'prop-types';\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n static propTypes = {\n classes: PropTypes.object.isRequired,\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value, classes } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <ListItem key={`P${index}`} className={classes.listColumn}>\n <h3 className={classes.titleText}>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </h3>\n <div className={classes.text} dangerouslySetInnerHTML={{ __html: desc }} />\n </ListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <ListItem key={`S${index}`} className={classes.listColumn}>\n <h4 className={classes.titleText} style={{ fontWeight: 'normal' }}>\n Sample Answer\n </h4>\n <div className={classes.text} dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </ListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <UiLayout extraCSSRules={extraCSSRules} className={classes.root}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <h2 className={classes.hiddenScreenReader}>Rubric</h2>\n {!animationsDisabled ? (\n <React.Fragment>\n <h2\n id={'rubric-toggle'}\n className={classes.rubricToggle}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <span className={classes.chevronStyle} aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </span>\n </h2>\n <Collapse in={this.state.rubricOpen} timeout=\"auto\">\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </UiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nconst styles = (theme) => ({\n root: {\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n },\n listColumn: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n },\n listColumnItem: {\n padding: 0,\n },\n text: {\n color: color.text(),\n },\n titleText: {\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n },\n rubricToggle: {\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n },\n chevronStyle: {\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n },\n hiddenScreenReader: {\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n },\n});\n\nexport default withStyles(styles)(Rubric);\n"],"file":"main.js"}
1
+ {"version":3,"file":"main.js","names":["_react","_interopRequireDefault","require","_styles","_ListItem","_List","_Collapse","_renderUi","_propTypes","StyledUiLayout","styled","UiLayout","color","text","backgroundColor","background","borderCollapse","padding","textAlign","marginBottom","marginTop","lineHeight","StyledListItem","ListItem","display","flexDirection","alignItems","Text","TitleText","fontSize","fontWeight","margin","paddingBottom","SampleTitleText","RubricToggle","theme","cursor","userSelect","typography","tertiary","ChevronStyle","transition","marginLeft","alignSelf","HiddenScreenReader","position","width","height","overflow","clip","border","whiteSpace","RubricType","exports","PropTypes","shape","excludeZero","bool","points","arrayOf","string","sampleAnswers","animationsDisabled","Rubric","React","Component","constructor","props","_defineProperty2","default","index","value","state","rubricOpen","linkPrefix","toggleRubric","bind","setState","render","model","extraCSSRules","rubricList","createElement","component","slice","reverse","map","desc","length","pointsLabel","Fragment","key","dangerouslySetInnerHTML","__html","id","tabIndex","role","onClick","onKeyPress","e","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","in","timeout","enter","exit","object","isRequired","_default"],"sources":["../src/main.jsx"],"sourcesContent":["import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout } from '@pie-lib/render-ui';\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text = styled('div')({\n color: color.text(),\n});\n\nconst TitleText = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,MAAMO,cAAc,GAAG,IAAAC,cAAM,EAACC,kBAAQ,CAAC,CAAC;EACtCC,KAAK,EAAEA,eAAK,CAACC,IAAI,CAAC,CAAC;EACnBC,eAAe,EAAEF,eAAK,CAACG,UAAU,CAAC,CAAC;EACnC;EACA,uBAAuB,EAAE;IACvBC,cAAc,EAAE;EAClB,CAAC;EACD,oDAAoD,EAAE;IACpDC,OAAO,EAAE,UAAU;IACnBC,SAAS,EAAE;EACb,CAAC;EACD;EACA,gBAAgB,EAAE;IAChBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,UAAU,EAAE;EACd;AACF,CAAC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