@pie-element/complex-rubric 2.0.2-next.13 → 2.0.2-next.15

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 (96) hide show
  1. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
  2. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +978 -0
  3. package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +5 -0
  4. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
  5. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
  6. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +869 -0
  7. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +502 -0
  8. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
  9. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +98 -0
  10. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
  11. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +126 -0
  12. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +553 -0
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +361 -0
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +552 -0
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +371 -0
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +270 -0
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +29 -0
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +18 -0
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +210 -0
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +94 -0
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +161 -0
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +13 -0
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +15 -0
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +272 -0
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +206 -0
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +180 -0
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +298 -0
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +201 -0
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +85 -0
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +161 -0
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +330 -0
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +103 -0
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +24 -0
  52. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
  53. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +1248 -0
  54. package/configure/node_modules/@pie-element/rubric/LICENSE.md +5 -0
  55. package/configure/node_modules/@pie-element/rubric/README.md +3 -0
  56. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
  57. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +1088 -0
  58. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +34 -0
  59. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
  60. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +130 -0
  61. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
  62. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +108 -0
  63. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
  64. package/configure/node_modules/@pie-element/rubric/configure/package.json +17 -0
  65. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +26 -0
  66. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +64 -0
  67. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +56 -0
  68. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
  69. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +192 -0
  70. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +14 -0
  71. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
  72. package/configure/node_modules/@pie-element/rubric/controller/package.json +13 -0
  73. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +31 -0
  74. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +6 -0
  75. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +160 -0
  76. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +127 -0
  77. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
  78. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
  79. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
  80. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +96 -0
  81. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +65 -0
  82. package/configure/node_modules/@pie-element/rubric/lib/index.js +88 -0
  83. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
  84. package/configure/node_modules/@pie-element/rubric/lib/main.js +188 -0
  85. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
  86. package/configure/node_modules/@pie-element/rubric/lib/print.js +114 -0
  87. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
  88. package/configure/node_modules/@pie-element/rubric/package.json +26 -0
  89. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +23003 -0
  90. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +46 -0
  91. package/configure/node_modules/@pie-element/rubric/src/index.js +34 -0
  92. package/configure/node_modules/@pie-element/rubric/src/main.jsx +136 -0
  93. package/configure/node_modules/@pie-element/rubric/src/print.js +63 -0
  94. package/configure/package.json +2 -2
  95. package/controller/package.json +1 -1
  96. package/package.json +4 -4
@@ -0,0 +1,270 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.TraitsHeaderTile = 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
+
22
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
+
24
+ var _react = _interopRequireDefault(require("react"));
25
+
26
+ var _propTypes = _interopRequireDefault(require("prop-types"));
27
+
28
+ var _styles = require("@material-ui/core/styles");
29
+
30
+ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
31
+
32
+ var _Menu = _interopRequireDefault(require("@material-ui/core/Menu"));
33
+
34
+ var _MenuItem = _interopRequireDefault(require("@material-ui/core/MenuItem"));
35
+
36
+ var _MoreVert = _interopRequireDefault(require("@material-ui/icons/MoreVert"));
37
+
38
+ var _renderUi = require("@pie-lib/pie-toolbox/render-ui");
39
+
40
+ var _common = require("./common");
41
+
42
+ var _utils = require("./utils");
43
+
44
+ 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); }; }
45
+
46
+ 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; } }
47
+
48
+ var styles = function styles(theme) {
49
+ return {
50
+ label: {
51
+ textAlign: 'center',
52
+ width: '140px',
53
+ border: 'none',
54
+ margin: theme.spacing.unit,
55
+ padding: '10px 0',
56
+ display: 'flex',
57
+ alignItems: 'center',
58
+ justifyContent: 'space-around'
59
+ },
60
+ greyHeader: {
61
+ background: _renderUi.color.secondaryBackground(),
62
+ borderRadius: '4px',
63
+ position: 'relative',
64
+ marginBottom: theme.spacing.unit * 2
65
+ },
66
+ primaryBlockGreyHeader: {
67
+ paddingTop: theme.spacing.unit * 1.5
68
+ }
69
+ };
70
+ };
71
+
72
+ var TraitsHeaderTile = /*#__PURE__*/function (_React$Component) {
73
+ (0, _inherits2["default"])(TraitsHeaderTile, _React$Component);
74
+
75
+ var _super = _createSuper(TraitsHeaderTile);
76
+
77
+ function TraitsHeaderTile() {
78
+ var _this;
79
+
80
+ (0, _classCallCheck2["default"])(this, TraitsHeaderTile);
81
+
82
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
83
+ args[_key] = arguments[_key];
84
+ }
85
+
86
+ _this = _super.call.apply(_super, [this].concat(args));
87
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
88
+ anchorEl: null
89
+ });
90
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onScorePointLabelChange", function (_ref) {
91
+ var scorePointLabel = _ref.scorePointLabel,
92
+ value = _ref.value;
93
+ var _this$props = _this.props,
94
+ scorePointsLabels = _this$props.scorePointsLabels,
95
+ onScaleChange = _this$props.onScaleChange;
96
+ if (value < 0 || value >= scorePointsLabels.length) return;
97
+ scorePointsLabels[value] = scorePointLabel;
98
+ onScaleChange({
99
+ scorePointsLabels: scorePointsLabels
100
+ });
101
+ });
102
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClick", function (event) {
103
+ return _this.setState({
104
+ anchorEl: event.currentTarget
105
+ });
106
+ });
107
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClose", function () {
108
+ return _this.setState({
109
+ anchorEl: null
110
+ });
111
+ });
112
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "scrollToPosition", function (position) {
113
+ return _this.secondaryBlock.scrollTo({
114
+ left: position
115
+ });
116
+ });
117
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "openMenu", function () {
118
+ _this.props.showDeleteScaleModal();
119
+
120
+ _this.handleClose();
121
+ });
122
+ return _this;
123
+ }
124
+
125
+ (0, _createClass2["default"])(TraitsHeaderTile, [{
126
+ key: "UNSAFE_componentWillReceiveProps",
127
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
128
+ if (nextProps.currentPosition !== this.props.currentPosition) {
129
+ this.scrollToPosition(nextProps.currentPosition);
130
+ }
131
+ }
132
+ }, {
133
+ key: "render",
134
+ value: function render() {
135
+ var _this2 = this;
136
+
137
+ var _this$props2 = this.props,
138
+ scorePointsValues = _this$props2.scorePointsValues,
139
+ scorePointsLabels = _this$props2.scorePointsLabels,
140
+ traitLabel = _this$props2.traitLabel,
141
+ classes = _this$props2.classes,
142
+ currentPosition = _this$props2.currentPosition,
143
+ showStandards = _this$props2.showStandards,
144
+ onTraitLabelChange = _this$props2.onTraitLabelChange,
145
+ showDescription = _this$props2.showDescription,
146
+ showLevelTagInput = _this$props2.showLevelTagInput,
147
+ maxPoints = _this$props2.maxPoints,
148
+ updateMaxPointsFieldValue = _this$props2.updateMaxPointsFieldValue,
149
+ scaleIndex = _this$props2.scaleIndex,
150
+ showScorePointLabels = _this$props2.showScorePointLabels,
151
+ secondaryBlockWidth = _this$props2.secondaryBlockWidth,
152
+ setSecondaryBlockRef = _this$props2.setSecondaryBlockRef,
153
+ spellCheck = _this$props2.spellCheck,
154
+ uploadSoundSupport = _this$props2.uploadSoundSupport,
155
+ maxPointsEnabled = _this$props2.maxPointsEnabled,
156
+ _this$props2$mathMlOp = _this$props2.mathMlOptions,
157
+ mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp;
158
+ var anchorEl = this.state.anchorEl;
159
+ return /*#__PURE__*/_react["default"].createElement(_common.Row, {
160
+ className: classes.greyHeader,
161
+ height: showLevelTagInput ? _common.HeaderHeightLarge : _common.HeaderHeight
162
+ }, /*#__PURE__*/_react["default"].createElement(_common.PrimaryBlock, {
163
+ className: classes.primaryBlockGreyHeader
164
+ }, showLevelTagInput && /*#__PURE__*/_react["default"].createElement(_common.SimpleInput, {
165
+ markup: traitLabel || 'Trait',
166
+ onChange: onTraitLabelChange,
167
+ pluginProps: _utils.labelPlugins,
168
+ spellCheck: spellCheck,
169
+ label: "Level Label",
170
+ uploadSoundSupport: uploadSoundSupport,
171
+ mathMlOptions: mathMlOptions
172
+ }), /*#__PURE__*/_react["default"].createElement(_common.ScaleSettings, null, /*#__PURE__*/_react["default"].createElement("div", null, "Scale ", scaleIndex + 1), maxPointsEnabled && /*#__PURE__*/_react["default"].createElement(_common.MaxPointsPicker, {
173
+ maxPoints: maxPoints,
174
+ onChange: updateMaxPointsFieldValue
175
+ }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
176
+ "aria-label": "more",
177
+ "aria-controls": "long-menu",
178
+ "aria-haspopup": "true",
179
+ onClick: this.handleClick
180
+ }, /*#__PURE__*/_react["default"].createElement(_MoreVert["default"], null)), /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
181
+ id: "long-menu",
182
+ anchorEl: anchorEl,
183
+ keepMounted: true,
184
+ open: !!anchorEl,
185
+ onClose: this.handleClose
186
+ }, ['Remove Scale'].map(function (option) {
187
+ return /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
188
+ key: option,
189
+ onClick: _this2.openMenu
190
+ }, option);
191
+ }))))), /*#__PURE__*/_react["default"].createElement(_common.SecondaryBlock, {
192
+ setRef: function setRef(ref) {
193
+ if (ref) {
194
+ _this2.secondaryBlock = ref;
195
+ setSecondaryBlockRef(ref);
196
+ }
197
+ },
198
+ width: "".concat(secondaryBlockWidth, "px")
199
+ }, showStandards && /*#__PURE__*/_react["default"].createElement(_common.Block, null, /*#__PURE__*/_react["default"].createElement("div", {
200
+ className: classes.label
201
+ }, "Standard(s)")), showDescription && /*#__PURE__*/_react["default"].createElement(_common.Block, null, /*#__PURE__*/_react["default"].createElement("div", {
202
+ className: classes.label
203
+ }, "Description")), scorePointsValues.map(function (scorePointsValue, index) {
204
+ var adjustedBlockWidth = _common.BlockWidth + 2 * 8; // 8 is padding
205
+
206
+ var remainingSpace = secondaryBlockWidth - adjustedBlockWidth * index + currentPosition - 128;
207
+ var value = scorePointsValues.length - index - 1;
208
+ var scoreDescriptor;
209
+
210
+ try {
211
+ scoreDescriptor = scorePointsLabels[value] || '';
212
+ } catch (e) {
213
+ scoreDescriptor = '';
214
+ }
215
+
216
+ return /*#__PURE__*/_react["default"].createElement(_common.Block, {
217
+ key: "secondary-block-part-".concat(index)
218
+ }, /*#__PURE__*/_react["default"].createElement(_common.ScorePoint, {
219
+ scorePointsValue: scorePointsValue,
220
+ scoreDescriptor: scoreDescriptor,
221
+ pluginProps: _utils.labelPlugins,
222
+ showScorePointLabels: showScorePointLabels,
223
+ onChange: function onChange(scorePointLabel) {
224
+ return _this2.onScorePointLabelChange({
225
+ scorePointLabel: scorePointLabel,
226
+ value: value
227
+ });
228
+ },
229
+ alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints // 296 is the space required for the toolbar
230
+ ,
231
+ spellCheck: spellCheck,
232
+ uploadSoundSupport: uploadSoundSupport,
233
+ mathMlOptions: mathMlOptions
234
+ }));
235
+ })));
236
+ }
237
+ }]);
238
+ return TraitsHeaderTile;
239
+ }(_react["default"].Component);
240
+
241
+ exports.TraitsHeaderTile = TraitsHeaderTile;
242
+ (0, _defineProperty2["default"])(TraitsHeaderTile, "propTypes", {
243
+ maxPointsEnabled: _propTypes["default"].bool,
244
+ spellCheck: _propTypes["default"].bool
245
+ });
246
+ TraitsHeaderTile.propTypes = {
247
+ classes: _propTypes["default"].object.isRequired,
248
+ onTraitLabelChange: _propTypes["default"].func,
249
+ onScaleChange: _propTypes["default"].func,
250
+ scorePointsValues: _propTypes["default"].arrayOf(_propTypes["default"].number),
251
+ scorePointsLabels: _propTypes["default"].arrayOf(_propTypes["default"].string),
252
+ traitLabel: _propTypes["default"].string,
253
+ showStandards: _propTypes["default"].bool,
254
+ showLevelTagInput: _propTypes["default"].bool,
255
+ showDescription: _propTypes["default"].bool,
256
+ maxPoints: _propTypes["default"].number,
257
+ updateMaxPointsFieldValue: _propTypes["default"].func,
258
+ scaleIndex: _propTypes["default"].number,
259
+ currentPosition: _propTypes["default"].number,
260
+ secondaryBlockWidth: _propTypes["default"].number,
261
+ showDeleteScaleModal: _propTypes["default"].func,
262
+ showScorePointLabels: _propTypes["default"].bool,
263
+ setSecondaryBlockRef: _propTypes["default"].func,
264
+ uploadSoundSupport: _propTypes["default"].object
265
+ };
266
+
267
+ var _default = (0, _styles.withStyles)(styles)(TraitsHeaderTile);
268
+
269
+ exports["default"] = _default;
270
+ //# sourceMappingURL=traitsHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/traitsHeader.jsx"],"names":["styles","theme","label","textAlign","width","border","margin","spacing","unit","padding","display","alignItems","justifyContent","greyHeader","background","color","secondaryBackground","borderRadius","position","marginBottom","primaryBlockGreyHeader","paddingTop","TraitsHeaderTile","anchorEl","scorePointLabel","value","props","scorePointsLabels","onScaleChange","length","event","setState","currentTarget","secondaryBlock","scrollTo","left","showDeleteScaleModal","handleClose","nextProps","currentPosition","scrollToPosition","scorePointsValues","traitLabel","classes","showStandards","onTraitLabelChange","showDescription","showLevelTagInput","maxPoints","updateMaxPointsFieldValue","scaleIndex","showScorePointLabels","secondaryBlockWidth","setSecondaryBlockRef","spellCheck","uploadSoundSupport","maxPointsEnabled","mathMlOptions","state","HeaderHeightLarge","HeaderHeight","labelPlugins","handleClick","map","option","openMenu","ref","scorePointsValue","index","adjustedBlockWidth","BlockWidth","remainingSpace","scoreDescriptor","e","onScorePointLabelChange","React","Component","PropTypes","bool","propTypes","object","isRequired","func","arrayOf","number","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAaA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,KAAK,EAAE;AACLC,MAAAA,SAAS,EAAE,QADN;AAELC,MAAAA,KAAK,EAAE,OAFF;AAGLC,MAAAA,MAAM,EAAE,MAHH;AAILC,MAAAA,MAAM,EAAEL,KAAK,CAACM,OAAN,CAAcC,IAJjB;AAKLC,MAAAA,OAAO,EAAE,QALJ;AAMLC,MAAAA,OAAO,EAAE,MANJ;AAOLC,MAAAA,UAAU,EAAE,QAPP;AAQLC,MAAAA,cAAc,EAAE;AARX,KADkB;AAWzBC,IAAAA,UAAU,EAAE;AACVC,MAAAA,UAAU,EAAEC,gBAAMC,mBAAN,EADF;AAEVC,MAAAA,YAAY,EAAE,KAFJ;AAGVC,MAAAA,QAAQ,EAAE,UAHA;AAIVC,MAAAA,YAAY,EAAElB,KAAK,CAACM,OAAN,CAAcC,IAAd,GAAqB;AAJzB,KAXa;AAiBzBY,IAAAA,sBAAsB,EAAE;AACtBC,MAAAA,UAAU,EAAEpB,KAAK,CAACM,OAAN,CAAcC,IAAd,GAAqB;AADX;AAjBC,GAAZ;AAAA,CAAf;;IAsBac,gB;;;;;;;;;;;;;;;8FAMH;AACNC,MAAAA,QAAQ,EAAE;AADJ,K;gHAUkB,gBAAgC;AAAA,UAA7BC,eAA6B,QAA7BA,eAA6B;AAAA,UA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,iBAAiB,EAAEkD,sBAAUM,OAAV,CAAkBN,sBAAUQ,MAA5B,CALQ;AAM3B3C,EAAAA,UAAU,EAAEmC,sBAAUQ,MANK;AAO3BzC,EAAAA,aAAa,EAAEiC,sBAAUC,IAPE;AAQ3B/B,EAAAA,iBAAiB,EAAE8B,sBAAUC,IARF;AAS3BhC,EAAAA,eAAe,EAAE+B,sBAAUC,IATA;AAU3B9B,EAAAA,SAAS,EAAE6B,sBAAUO,MAVM;AAW3BnC,EAAAA,yBAAyB,EAAE4B,sBAAUK,IAXV;AAY3BhC,EAAAA,UAAU,EAAE2B,sBAAUO,MAZK;AAa3B7C,EAAAA,eAAe,EAAEsC,sBAAUO,MAbA;AAc3BhC,EAAAA,mBAAmB,EAAEyB,sBAAUO,MAdJ;AAe3BhD,EAAAA,oBAAoB,EAAEyC,sBAAUK,IAfL;AAgB3B/B,EAAAA,oBAAoB,EAAE0B,sBAAUC,IAhBL;AAiB3BzB,EAAAA,oBAAoB,EAAEwB,sBAAUK,IAjBL;AAkB3B3B,EAAAA,kBAAkB,EAAEsB,sBAAUG;AAlBH,CAA7B;;eAqBe,wBAAWhF,MAAX,EAAmBsB,gBAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { withStyles } from '@material-ui/core/styles';\nimport IconButton from '@material-ui/core/IconButton';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\n\nimport {\n Block,\n BlockWidth,\n PrimaryBlock,\n Row,\n SecondaryBlock,\n ScorePoint,\n MaxPointsPicker,\n SimpleInput,\n ScaleSettings,\n HeaderHeight,\n HeaderHeightLarge,\n} from './common';\nimport { labelPlugins } from './utils';\n\nconst styles = (theme) => ({\n label: {\n textAlign: 'center',\n width: '140px',\n border: 'none',\n margin: theme.spacing.unit,\n padding: '10px 0',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-around',\n },\n greyHeader: {\n background: color.secondaryBackground(),\n borderRadius: '4px',\n position: 'relative',\n marginBottom: theme.spacing.unit * 2,\n },\n primaryBlockGreyHeader: {\n paddingTop: theme.spacing.unit * 1.5,\n },\n});\n\nexport class TraitsHeaderTile extends React.Component {\n static propTypes = {\n maxPointsEnabled: PropTypes.bool,\n spellCheck: PropTypes.bool,\n };\n\n state = {\n anchorEl: null,\n };\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.currentPosition !== this.props.currentPosition) {\n this.scrollToPosition(nextProps.currentPosition);\n }\n }\n\n onScorePointLabelChange = ({ scorePointLabel, value }) => {\n const { scorePointsLabels, onScaleChange } = this.props;\n\n if (value < 0 || value >= scorePointsLabels.length) return;\n\n scorePointsLabels[value] = scorePointLabel;\n\n onScaleChange({ scorePointsLabels });\n };\n\n handleClick = (event) => this.setState({ anchorEl: event.currentTarget });\n\n handleClose = () => this.setState({ anchorEl: null });\n\n scrollToPosition = (position) => this.secondaryBlock.scrollTo({ left: position });\n\n openMenu = () => {\n this.props.showDeleteScaleModal();\n this.handleClose();\n };\n\n render() {\n const {\n scorePointsValues,\n scorePointsLabels,\n traitLabel,\n classes,\n currentPosition,\n showStandards,\n onTraitLabelChange,\n showDescription,\n showLevelTagInput,\n maxPoints,\n updateMaxPointsFieldValue,\n scaleIndex,\n showScorePointLabels,\n secondaryBlockWidth,\n setSecondaryBlockRef,\n spellCheck,\n uploadSoundSupport,\n maxPointsEnabled,\n mathMlOptions = {},\n } = this.props;\n const { anchorEl } = this.state;\n\n return (\n <Row className={classes.greyHeader} height={showLevelTagInput ? HeaderHeightLarge : HeaderHeight}>\n <PrimaryBlock className={classes.primaryBlockGreyHeader}>\n {showLevelTagInput && (\n <SimpleInput\n markup={traitLabel || 'Trait'}\n onChange={onTraitLabelChange}\n pluginProps={labelPlugins}\n spellCheck={spellCheck}\n label=\"Level Label\"\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n />\n )}\n\n <ScaleSettings>\n <div>Scale {scaleIndex + 1}</div>\n\n {maxPointsEnabled && <MaxPointsPicker maxPoints={maxPoints} onChange={updateMaxPointsFieldValue} />}\n\n <div>\n <IconButton aria-label=\"more\" aria-controls=\"long-menu\" aria-haspopup=\"true\" onClick={this.handleClick}>\n <MoreVertIcon />\n </IconButton>\n <Menu id=\"long-menu\" anchorEl={anchorEl} keepMounted open={!!anchorEl} onClose={this.handleClose}>\n {['Remove Scale'].map((option) => (\n <MenuItem key={option} onClick={this.openMenu}>\n {option}\n </MenuItem>\n ))}\n </Menu>\n </div>\n </ScaleSettings>\n </PrimaryBlock>\n\n <SecondaryBlock\n setRef={(ref) => {\n if (ref) {\n this.secondaryBlock = ref;\n setSecondaryBlockRef(ref);\n }\n }}\n width={`${secondaryBlockWidth}px`}\n >\n {showStandards && (\n <Block>\n <div className={classes.label}>Standard(s)</div>\n </Block>\n )}\n\n {showDescription && (\n <Block>\n <div className={classes.label}>Description</div>\n </Block>\n )}\n\n {scorePointsValues.map((scorePointsValue, index) => {\n const adjustedBlockWidth = BlockWidth + 2 * 8; // 8 is padding\n const remainingSpace = secondaryBlockWidth - adjustedBlockWidth * index + currentPosition - 128;\n const value = scorePointsValues.length - index - 1;\n let scoreDescriptor;\n\n try {\n scoreDescriptor = scorePointsLabels[value] || '';\n } catch (e) {\n scoreDescriptor = '';\n }\n\n return (\n <Block key={`secondary-block-part-${index}`}>\n <ScorePoint\n scorePointsValue={scorePointsValue}\n scoreDescriptor={scoreDescriptor}\n pluginProps={labelPlugins}\n showScorePointLabels={showScorePointLabels}\n onChange={(scorePointLabel) => this.onScorePointLabelChange({ scorePointLabel, value })}\n alignToRight={remainingSpace < 296 && scorePointsValue < maxPoints} // 296 is the space required for the toolbar\n spellCheck={spellCheck}\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n />\n </Block>\n );\n })}\n </SecondaryBlock>\n </Row>\n );\n }\n}\n\nTraitsHeaderTile.propTypes = {\n classes: PropTypes.object.isRequired,\n onTraitLabelChange: PropTypes.func,\n onScaleChange: PropTypes.func,\n scorePointsValues: PropTypes.arrayOf(PropTypes.number),\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n showStandards: PropTypes.bool,\n showLevelTagInput: PropTypes.bool,\n showDescription: PropTypes.bool,\n maxPoints: PropTypes.number,\n updateMaxPointsFieldValue: PropTypes.func,\n scaleIndex: PropTypes.number,\n currentPosition: PropTypes.number,\n secondaryBlockWidth: PropTypes.number,\n showDeleteScaleModal: PropTypes.func,\n showScorePointLabels: PropTypes.bool,\n setSecondaryBlockRef: PropTypes.func,\n uploadSoundSupport: PropTypes.object,\n};\n\nexport default withStyles(styles)(TraitsHeaderTile);\n"],"file":"traitsHeader.js"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.labelPlugins = exports.filteredDefaultPlugins = void 0;
7
+
8
+ var _editableHtml = require("@pie-lib/pie-toolbox/editable-html");
9
+
10
+ var filteredDefaultPlugins = (_editableHtml.DEFAULT_PLUGINS || []).filter(function (p) {
11
+ return p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list';
12
+ });
13
+ exports.filteredDefaultPlugins = filteredDefaultPlugins;
14
+ var labelPlugins = {
15
+ image: {
16
+ disabled: true
17
+ },
18
+ math: {
19
+ disabled: true
20
+ },
21
+ audio: {
22
+ disabled: true
23
+ },
24
+ video: {
25
+ disabled: true
26
+ }
27
+ };
28
+ exports.labelPlugins = labelPlugins;
29
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils.js"],"names":["filteredDefaultPlugins","DEFAULT_PLUGINS","filter","p","labelPlugins","image","disabled","math","audio","video"],"mappings":";;;;;;;AAAA;;AAEO,IAAMA,sBAAsB,GAAG,CAACC,iCAAmB,EAApB,EAAwBC,MAAxB,CACpC,UAACC,CAAD;AAAA,SAAOA,CAAC,KAAK,OAAN,IAAiBA,CAAC,KAAK,eAAvB,IAA0CA,CAAC,KAAK,eAAvD;AAAA,CADoC,CAA/B;;AAIA,IAAMC,YAAY,GAAG;AAC1BC,EAAAA,KAAK,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAZ,GADmB;AAE1BC,EAAAA,IAAI,EAAE;AAAED,IAAAA,QAAQ,EAAE;AAAZ,GAFoB;AAG1BE,EAAAA,KAAK,EAAE;AAAEF,IAAAA,QAAQ,EAAE;AAAZ,GAHmB;AAI1BG,EAAAA,KAAK,EAAE;AAAEH,IAAAA,QAAQ,EAAE;AAAZ;AAJmB,CAArB","sourcesContent":["import { DEFAULT_PLUGINS } from '@pie-lib/pie-toolbox/editable-html';\n\nexport const filteredDefaultPlugins = (DEFAULT_PLUGINS || []).filter(\n (p) => p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list',\n);\n\nexport const labelPlugins = {\n image: { disabled: true },\n math: { disabled: true },\n audio: { disabled: true },\n video: { disabled: true },\n};\n"],"file":"utils.js"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@pie-element/multi-trait-rubric-configure",
3
+ "version": "3.0.1",
4
+ "private": true,
5
+ "main": "lib/index.js",
6
+ "module": "src/index.js",
7
+ "dependencies": {
8
+ "@material-ui/core": "^3.9.2",
9
+ "@material-ui/icons": "^3.0.1",
10
+ "@pie-framework/pie-configure-events": "^1.3.0",
11
+ "@pie-lib/pie-toolbox": "1.0.12-next.3",
12
+ "debug": "^3.1.0",
13
+ "lodash": "^4.17.15",
14
+ "prop-types": "^15.6.2",
15
+ "react": "^16.8.1",
16
+ "react-dom": "^16.8.1"
17
+ }
18
+ }
@@ -0,0 +1,210 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [2.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@2.0.0...@pie-element/multi-trait-rubric-controller@2.0.1) (2023-11-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-3221, PD-3249, PD-2765 ([9de1563](https://github.com/pie-framework/pie-elements/commit/9de1563d636983c3ddceee0279c0709d396d4f96))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.4.0...@pie-element/multi-trait-rubric-controller@2.0.0) (2023-11-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * update pie-lib version to fix imports for pie-lib/pie-toolbox/editable-html ([a90cbf6](https://github.com/pie-framework/pie-elements/commit/a90cbf6be81824e7266df23c2dc49b259337c1b6))
23
+ * update pie-lib/pie-toolbox version ([212cbfa](https://github.com/pie-framework/pie-elements/commit/212cbfad27b29f0b1b2a3706ba82f6fb59147001))
24
+ * update pie-lib/pie-toolbox version ([b791e10](https://github.com/pie-framework/pie-elements/commit/b791e10857928766e2d73c6aa80b3fb50fd1afac))
25
+ * update pie-lib/pie-toolbox version ([7f64f9f](https://github.com/pie-framework/pie-elements/commit/7f64f9f2b874fd08bd8f6f05c1c4292c34ac6338))
26
+
27
+
28
+ ### Code Refactoring
29
+
30
+ * replaced all pie-lib packages with the new pie-toolbox package that contains all of them. ([073d7e5](https://github.com/pie-framework/pie-elements/commit/073d7e5175f7a73069f09d2ceda799682acce494))
31
+
32
+
33
+ ### BREAKING CHANGES
34
+
35
+ * using pie-lib/pie-toolbox now, instead of any other pie-lib package.
36
+
37
+
38
+
39
+
40
+
41
+ # [1.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.3.5...@pie-element/multi-trait-rubric-controller@1.4.0) (2023-07-06)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **multi-trait-rubric:** fix conflicts ([52f3c3d](https://github.com/pie-framework/pie-elements/commit/52f3c3d87cca681094c1475085dce9f0cf395030))
47
+ * updated editable-html dependent packages for PD-2150 ([ffa6297](https://github.com/pie-framework/pie-elements/commit/ffa62977a9e329c1e12ea1dfcb2af4ba4c993bca))
48
+
49
+
50
+ ### Features
51
+
52
+ * **multi-trait-rubric:** PD-2872-add validations in controller ([8d31062](https://github.com/pie-framework/pie-elements/commit/8d31062f539455d22382ed07e13a97fd93c5847b))
53
+ * **multi-trait-rubric:** PD-2872-call imported method without this ([567372f](https://github.com/pie-framework/pie-elements/commit/567372f5806c0e0a54fc31727f20ce97369538e7))
54
+ * **multi-trait-rubric:** PD-2872-ui part of validations ([bba8c0c](https://github.com/pie-framework/pie-elements/commit/bba8c0cd410cb1968c5f144c97aded00624cece2))
55
+ * **multi-trait-rubric:** solve review observations ([b4aef59](https://github.com/pie-framework/pie-elements/commit/b4aef594a59c80530b3049cc30754eef905982ed))
56
+
57
+
58
+
59
+
60
+
61
+ ## [1.3.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.3.4...@pie-element/multi-trait-rubric-controller@1.3.5) (2023-06-13)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * **multi-trait-rubric:** use the first scale trait label only if defaultTraitLabel is not defined PD-2869 ([87cf86f](https://github.com/pie-framework/pie-elements/commit/87cf86fe29d4cf6dbcbed800dd009b590b82fbf7))
67
+
68
+
69
+
70
+
71
+
72
+ ## [1.3.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.3.3...@pie-element/multi-trait-rubric-controller@1.3.4) (2023-05-02)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * update pie-libs (fix eslint problems PD-2732) ([3fa630e](https://github.com/pie-framework/pie-elements/commit/3fa630eb96b116cb685ab58fbf216fb572d1c333))
78
+ * **pie-elements:** avoid logs pbs and add fragments as containers ([b4bd2b7](https://github.com/pie-framework/pie-elements/commit/b4bd2b7f994d7affdac443bd486047e5a629b763))
79
+
80
+
81
+
82
+
83
+
84
+ ## [1.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.3.2...@pie-element/multi-trait-rubric-controller@1.3.3) (2023-04-25)
85
+
86
+
87
+ ### Bug Fixes
88
+
89
+ * update pie-libs PD-2762 ([7ac4313](https://github.com/pie-framework/pie-elements/commit/7ac431346b822fe3bbb0d13375f044f6ce1f426b))
90
+
91
+
92
+
93
+
94
+
95
+ ## [1.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.3.1...@pie-element/multi-trait-rubric-controller@1.3.2) (2023-03-30)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * revert adding pie-lib/rubric and remove its usage from controller ([2e58a35](https://github.com/pie-framework/pie-elements/commit/2e58a35e3490f4c002c82206eec3b74b215f3e57))
101
+
102
+
103
+
104
+
105
+
106
+ ## [1.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.3.0...@pie-element/multi-trait-rubric-controller@1.3.1) (2023-03-30)
107
+
108
+
109
+ ### Bug Fixes
110
+
111
+ * add dependencies ([4156132](https://github.com/pie-framework/pie-elements/commit/415613209380f7bc613b1ae7908586bbe43e32bf))
112
+
113
+
114
+
115
+
116
+
117
+ # [1.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.13...@pie-element/multi-trait-rubric-controller@1.3.0) (2023-02-01)
118
+
119
+
120
+ ### Features
121
+
122
+ * update pie-libs ([0af590d](https://github.com/pie-framework/pie-elements/commit/0af590d624f4b2c0af58039e935531cef52e2a86))
123
+
124
+
125
+
126
+
127
+
128
+ ## [1.2.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.12...@pie-element/multi-trait-rubric-controller@1.2.13) (2023-01-17)
129
+
130
+
131
+ ### Bug Fixes
132
+
133
+ * **multi-trait-rubric:** fix validation bugs, update documentation. Fixed match docs typo PD-2427 ([26d598e](https://github.com/pie-framework/pie-elements/commit/26d598e7a32d50ed176d566605bb6b4ebdc07a2c))
134
+
135
+
136
+
137
+
138
+
139
+ ## [1.2.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.11...@pie-element/multi-trait-rubric-controller@1.2.12) (2022-12-07)
140
+
141
+
142
+ ### Bug Fixes
143
+
144
+ * update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
145
+
146
+
147
+
148
+
149
+
150
+ ## [1.2.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.6...@pie-element/multi-trait-rubric-controller@1.2.8) (2021-11-11)
151
+
152
+ **Note:** Version bump only for package @pie-element/multi-trait-rubric-controller
153
+
154
+
155
+
156
+
157
+
158
+ ## [1.2.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.6...@pie-element/multi-trait-rubric-controller@1.2.7) (2021-11-11)
159
+
160
+ **Note:** Version bump only for package @pie-element/multi-trait-rubric-controller
161
+
162
+
163
+
164
+
165
+
166
+ ## [1.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.4...@pie-element/multi-trait-rubric-controller@1.2.6) (2021-08-05)
167
+
168
+
169
+ ### Bug Fixes
170
+
171
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
172
+
173
+
174
+
175
+
176
+
177
+ ## [1.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.3...@pie-element/multi-trait-rubric-controller@1.2.4) (2021-06-29)
178
+
179
+ **Note:** Version bump only for package @pie-element/multi-trait-rubric-controller
180
+
181
+
182
+
183
+
184
+
185
+ ## [1.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.2.0...@pie-element/multi-trait-rubric-controller@1.2.3) (2021-03-03)
186
+
187
+ **Note:** Version bump only for package @pie-element/multi-trait-rubric-controller
188
+
189
+
190
+
191
+
192
+
193
+ # [1.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multi-trait-rubric-controller@1.1.0...@pie-element/multi-trait-rubric-controller@1.2.0) (2021-03-03)
194
+
195
+
196
+ ### Features
197
+
198
+ * Updated design. Moved exclude zero at item level. Added ability to toggle from Settings Panel: level tag input, description, standards, visibility to student, half scoring, score labels, drag and drop. Added Actionable List. BREAKING CHANGE: moved exclude zero at item level (from scale level) ([c8bb906](https://github.com/pie-framework/pie-elements/commit/c8bb9064712aae057b74dceba5928a19054b27eb))
199
+
200
+
201
+
202
+
203
+
204
+ # 1.1.0 (2021-02-02)
205
+
206
+
207
+ ### Features
208
+
209
+ * Added showStandards configuration setting. Added halfScoring and visibleToStudent. ([db993ca](https://github.com/pie-framework/pie-elements/commit/db993ca))
210
+ * multi-trait-rubric (No authoring yet) ([dc01b01](https://github.com/pie-framework/pie-elements/commit/dc01b01))
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = {
8
+ model: {
9
+ visibleToStudent: true,
10
+ halfScoring: false,
11
+ pointLabels: true,
12
+ description: false,
13
+ standards: false,
14
+ scales: [],
15
+ excludeZero: false,
16
+ maxPointsEnabled: true,
17
+ addScaleEnabled: true
18
+ },
19
+ configuration: {
20
+ excludeZeroDialogBoxContent: {
21
+ title: 'Exclude 0 (Zero) from Score Point Values.',
22
+ text: "<div>\n You are about to exclude 0 from score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the left\n </li>\n <li>\n remove 0 column with its Label and Description\n </li>\n </ul>\n </div>"
23
+ },
24
+ includeZeroDialogBoxContent: {
25
+ title: 'Include 0 (Zero) in Score Point Values.',
26
+ text: "<div>\n You are about to include 0 in score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the right\n </li>\n <li>\n add 0 column with empty Label and Descriptions\n </li>\n </ul>\n </div>"
27
+ },
28
+ deleteScaleDialogBoxContent: {
29
+ title: 'Delete Scale',
30
+ text: 'Are you sure you want to delete this scale?'
31
+ },
32
+ maxPointsDialogBoxContent: {
33
+ title: 'Decreasing Max Points.',
34
+ text: " You are about to decrease max score point value.\n <br/>\n All the Labels and Descriptions for scores above Max Point will be deleted."
35
+ },
36
+ settingsPanelDisabled: false,
37
+ spellCheck: {
38
+ label: 'Spellcheck',
39
+ settings: false,
40
+ enabled: true
41
+ },
42
+ showExcludeZero: {
43
+ settings: true,
44
+ label: 'Exclude Zero'
45
+ },
46
+ showScorePointLabels: {
47
+ settings: true,
48
+ label: 'Show Score Point Labels'
49
+ },
50
+ showDescription: {
51
+ settings: true,
52
+ label: 'Show Description'
53
+ },
54
+ showVisibleToStudent: {
55
+ settings: true,
56
+ label: 'Visible to Student'
57
+ },
58
+ showHalfScoring: {
59
+ settings: true,
60
+ label: 'Half Scoring'
61
+ },
62
+ width: '900px',
63
+ // these should not be set to true (should not be used) for now
64
+ showStandards: {
65
+ settings: false,
66
+ label: 'Show Standards'
67
+ },
68
+ showLevelTagInput: {
69
+ settings: false,
70
+ label: 'Show Level Tag Input',
71
+ enabled: false
72
+ },
73
+ dragAndDrop: {
74
+ settings: true,
75
+ label: 'Enable Drag and Drop',
76
+ enabled: false
77
+ },
78
+ showMaxPoint: {
79
+ settings: true,
80
+ label: 'Show Max Points Dropdown'
81
+ },
82
+ addScale: {
83
+ settings: true,
84
+ label: 'Add Scale Available'
85
+ },
86
+ minNoOfTraits: 1,
87
+ maxNoOfTraits: 10,
88
+ minNoOfScales: 2,
89
+ maxNoOfScales: 10,
90
+ defaultTraitLabel: 'Trait'
91
+ }
92
+ };
93
+ exports["default"] = _default;
94
+ //# sourceMappingURL=defaults.js.map