@pie-element/multi-trait-rubric 3.10.1-next.1 → 3.10.1-next.6

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.
@@ -0,0 +1,296 @@
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
+ 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); }; }
43
+
44
+ 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; } }
45
+
46
+ var styles = function styles(theme) {
47
+ return {
48
+ label: {
49
+ textAlign: 'center',
50
+ width: '140px',
51
+ border: 'none',
52
+ margin: theme.spacing.unit,
53
+ padding: '10px 0',
54
+ display: 'flex',
55
+ alignItems: 'center',
56
+ justifyContent: 'space-around'
57
+ },
58
+ greyHeader: {
59
+ background: _renderUi.color.secondaryBackground(),
60
+ borderRadius: '4px',
61
+ position: 'relative',
62
+ marginBottom: theme.spacing.unit * 2
63
+ },
64
+ primaryBlockGreyHeader: {
65
+ paddingTop: theme.spacing.unit * 1.5
66
+ },
67
+ scorePointErrorText: {
68
+ position: 'absolute',
69
+ fontSize: theme.typography.fontSize - 2,
70
+ color: theme.palette.error.main,
71
+ paddingTop: theme.spacing.unit / 2
72
+ }
73
+ };
74
+ };
75
+
76
+ var TraitsHeaderTile = /*#__PURE__*/function (_React$Component) {
77
+ (0, _inherits2["default"])(TraitsHeaderTile, _React$Component);
78
+
79
+ var _super = _createSuper(TraitsHeaderTile);
80
+
81
+ function TraitsHeaderTile() {
82
+ var _this;
83
+
84
+ (0, _classCallCheck2["default"])(this, TraitsHeaderTile);
85
+
86
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
87
+ args[_key] = arguments[_key];
88
+ }
89
+
90
+ _this = _super.call.apply(_super, [this].concat(args));
91
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
92
+ anchorEl: null
93
+ });
94
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onScorePointLabelChange", function (_ref) {
95
+ var scorePointLabel = _ref.scorePointLabel,
96
+ value = _ref.value;
97
+ var _this$props = _this.props,
98
+ scorePointsLabels = _this$props.scorePointsLabels,
99
+ onScaleChange = _this$props.onScaleChange;
100
+ if (value < 0 || value >= scorePointsLabels.length) return;
101
+ scorePointsLabels[value] = scorePointLabel;
102
+ onScaleChange({
103
+ scorePointsLabels: scorePointsLabels
104
+ });
105
+ });
106
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClick", function (event) {
107
+ return _this.setState({
108
+ anchorEl: event.currentTarget
109
+ });
110
+ });
111
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClose", function () {
112
+ return _this.setState({
113
+ anchorEl: null
114
+ });
115
+ });
116
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "scrollToPosition", function (position) {
117
+ return _this.secondaryBlock.scrollTo({
118
+ left: position
119
+ });
120
+ });
121
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "openMenu", function () {
122
+ _this.props.showDeleteScaleModal();
123
+
124
+ _this.handleClose();
125
+ });
126
+ return _this;
127
+ }
128
+
129
+ (0, _createClass2["default"])(TraitsHeaderTile, [{
130
+ key: "UNSAFE_componentWillReceiveProps",
131
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
132
+ if (nextProps.currentPosition !== this.props.currentPosition) {
133
+ this.scrollToPosition(nextProps.currentPosition);
134
+ }
135
+ }
136
+ }, {
137
+ key: "render",
138
+ value: function render() {
139
+ var _this2 = this;
140
+
141
+ var _this$props2 = this.props,
142
+ scorePointsValues = _this$props2.scorePointsValues,
143
+ scorePointsLabels = _this$props2.scorePointsLabels,
144
+ traitLabel = _this$props2.traitLabel,
145
+ classes = _this$props2.classes,
146
+ currentPosition = _this$props2.currentPosition,
147
+ showStandards = _this$props2.showStandards,
148
+ onTraitLabelChange = _this$props2.onTraitLabelChange,
149
+ showDescription = _this$props2.showDescription,
150
+ showLevelTagInput = _this$props2.showLevelTagInput,
151
+ maxPoints = _this$props2.maxPoints,
152
+ updateMaxPointsFieldValue = _this$props2.updateMaxPointsFieldValue,
153
+ scaleIndex = _this$props2.scaleIndex,
154
+ showScorePointLabels = _this$props2.showScorePointLabels,
155
+ secondaryBlockWidth = _this$props2.secondaryBlockWidth,
156
+ setSecondaryBlockRef = _this$props2.setSecondaryBlockRef,
157
+ spellCheck = _this$props2.spellCheck,
158
+ uploadSoundSupport = _this$props2.uploadSoundSupport,
159
+ maxPointsEnabled = _this$props2.maxPointsEnabled,
160
+ _this$props2$mathMlOp = _this$props2.mathMlOptions,
161
+ mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp,
162
+ _this$props2$errors = _this$props2.errors,
163
+ errors = _this$props2$errors === void 0 ? {} : _this$props2$errors,
164
+ maxMaxPoints = _this$props2.maxMaxPoints,
165
+ _this$props2$labelPlu = _this$props2.labelPluginProps,
166
+ labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu,
167
+ _this$props2$imageSup = _this$props2.imageSupport,
168
+ imageSupport = _this$props2$imageSup === void 0 ? {} : _this$props2$imageSup;
169
+ var anchorEl = this.state.anchorEl;
170
+ return /*#__PURE__*/_react["default"].createElement(_common.Row, {
171
+ className: classes.greyHeader,
172
+ height: showLevelTagInput ? _common.HeaderHeightLarge : _common.HeaderHeight
173
+ }, /*#__PURE__*/_react["default"].createElement(_common.PrimaryBlock, {
174
+ className: classes.primaryBlockGreyHeader
175
+ }, showLevelTagInput && /*#__PURE__*/_react["default"].createElement(_common.SimpleInput, {
176
+ markup: traitLabel || 'Trait',
177
+ onChange: onTraitLabelChange,
178
+ pluginProps: labelPluginProps,
179
+ spellCheck: spellCheck,
180
+ label: "Level Label",
181
+ uploadSoundSupport: uploadSoundSupport,
182
+ mathMlOptions: mathMlOptions,
183
+ imageSupport: imageSupport
184
+ }), /*#__PURE__*/_react["default"].createElement(_common.ScaleSettings, null, /*#__PURE__*/_react["default"].createElement("div", null, "Scale ", scaleIndex + 1), maxPointsEnabled && /*#__PURE__*/_react["default"].createElement(_common.MaxPointsPicker, {
185
+ maxPoints: maxPoints,
186
+ maxMaxPoints: maxMaxPoints,
187
+ onChange: updateMaxPointsFieldValue
188
+ }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
189
+ "aria-label": "more",
190
+ "aria-controls": "long-menu",
191
+ "aria-haspopup": "true",
192
+ onClick: this.handleClick
193
+ }, /*#__PURE__*/_react["default"].createElement(_MoreVert["default"], null)), /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
194
+ id: "long-menu",
195
+ anchorEl: anchorEl,
196
+ keepMounted: true,
197
+ open: !!anchorEl,
198
+ onClose: this.handleClose
199
+ }, ['Remove Scale'].map(function (option) {
200
+ return /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
201
+ key: option,
202
+ onClick: _this2.openMenu
203
+ }, option);
204
+ }))))), /*#__PURE__*/_react["default"].createElement(_common.SecondaryBlock, {
205
+ setRef: function setRef(ref) {
206
+ if (ref) {
207
+ _this2.secondaryBlock = ref;
208
+ setSecondaryBlockRef(ref);
209
+ }
210
+ },
211
+ width: "".concat(secondaryBlockWidth, "px")
212
+ }, showStandards && /*#__PURE__*/_react["default"].createElement(_common.Block, null, /*#__PURE__*/_react["default"].createElement("div", {
213
+ className: classes.label
214
+ }, "Standard(s)")), showDescription && /*#__PURE__*/_react["default"].createElement(_common.Block, null, /*#__PURE__*/_react["default"].createElement("div", {
215
+ className: classes.label
216
+ }, "Description")), scorePointsValues.map(function (scorePointsValue, index) {
217
+ var adjustedBlockWidth = _common.BlockWidth + 2 * 8; // 8 is padding
218
+
219
+ var remainingSpace = secondaryBlockWidth - adjustedBlockWidth * index + currentPosition - 128;
220
+ var value = scorePointsValues.length - index - 1;
221
+ var scoreDescriptor;
222
+ var error;
223
+
224
+ try {
225
+ scoreDescriptor = scorePointsLabels[value] || '';
226
+ error = errors[value] || '';
227
+ } catch (e) {
228
+ scoreDescriptor = '';
229
+ }
230
+
231
+ return /*#__PURE__*/_react["default"].createElement(_common.Block, {
232
+ key: "secondary-block-part-".concat(index)
233
+ }, /*#__PURE__*/_react["default"].createElement(_common.ScorePoint, {
234
+ scorePointsValue: scorePointsValue,
235
+ error: error,
236
+ scoreDescriptor: scoreDescriptor,
237
+ pluginProps: labelPluginProps,
238
+ showScorePointLabels: showScorePointLabels,
239
+ onChange: function onChange(scorePointLabel) {
240
+ return _this2.onScorePointLabelChange({
241
+ scorePointLabel: scorePointLabel,
242
+ value: value
243
+ });
244
+ },
245
+ alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints // 296 is the space required for the toolbar
246
+ ,
247
+ spellCheck: spellCheck,
248
+ uploadSoundSupport: uploadSoundSupport,
249
+ mathMlOptions: mathMlOptions,
250
+ imageSupport: imageSupport
251
+ }), error && /*#__PURE__*/_react["default"].createElement("div", {
252
+ className: classes.scorePointErrorText
253
+ }, error));
254
+ })));
255
+ }
256
+ }]);
257
+ return TraitsHeaderTile;
258
+ }(_react["default"].Component);
259
+
260
+ exports.TraitsHeaderTile = TraitsHeaderTile;
261
+ (0, _defineProperty2["default"])(TraitsHeaderTile, "propTypes", {
262
+ maxPointsEnabled: _propTypes["default"].bool,
263
+ spellCheck: _propTypes["default"].bool,
264
+ errors: _propTypes["default"].object
265
+ });
266
+ TraitsHeaderTile.propTypes = {
267
+ classes: _propTypes["default"].object.isRequired,
268
+ onTraitLabelChange: _propTypes["default"].func,
269
+ onScaleChange: _propTypes["default"].func,
270
+ scorePointsValues: _propTypes["default"].arrayOf(_propTypes["default"].number),
271
+ scorePointsLabels: _propTypes["default"].arrayOf(_propTypes["default"].string),
272
+ traitLabel: _propTypes["default"].string,
273
+ showStandards: _propTypes["default"].bool,
274
+ showLevelTagInput: _propTypes["default"].bool,
275
+ showDescription: _propTypes["default"].bool,
276
+ maxPoints: _propTypes["default"].number,
277
+ updateMaxPointsFieldValue: _propTypes["default"].func,
278
+ scaleIndex: _propTypes["default"].number,
279
+ currentPosition: _propTypes["default"].number,
280
+ secondaryBlockWidth: _propTypes["default"].number,
281
+ showDeleteScaleModal: _propTypes["default"].func,
282
+ showScorePointLabels: _propTypes["default"].bool,
283
+ setSecondaryBlockRef: _propTypes["default"].func,
284
+ uploadSoundSupport: _propTypes["default"].object,
285
+ maxMaxPoints: _propTypes["default"].number,
286
+ labelPluginProps: _propTypes["default"].object,
287
+ imageSupport: _propTypes["default"].shape({
288
+ add: _propTypes["default"].func.isRequired,
289
+ "delete": _propTypes["default"].func.isRequired
290
+ })
291
+ };
292
+
293
+ var _default = (0, _styles.withStyles)(styles)(TraitsHeaderTile);
294
+
295
+ exports["default"] = _default;
296
+ //# 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","scorePointErrorText","fontSize","typography","palette","error","main","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","errors","maxMaxPoints","labelPluginProps","imageSupport","state","HeaderHeightLarge","HeaderHeight","handleClick","map","option","openMenu","ref","scorePointsValue","index","adjustedBlockWidth","BlockWidth","remainingSpace","scoreDescriptor","e","onScorePointLabelChange","React","Component","PropTypes","bool","object","propTypes","isRequired","func","arrayOf","number","string","shape","add"],"mappings":";;;;;;;;;;;;;;;;;;;;;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BAAkB,EAAEyB,sBAAUE,MAlBH;AAmB3BvB,EAAAA,YAAY,EAAEqB,sBAAUO,MAnBG;AAoB3B3B,EAAAA,gBAAgB,EAAEoB,sBAAUE,MApBD;AAqB3BrB,EAAAA,YAAY,EAAEmB,sBAAUS,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEV,sBAAUK,IAAV,CAAeD,UADQ;AAE5B,cAAQJ,sBAAUK,IAAV,CAAeD;AAFK,GAAhB;AArBa,CAA7B;;eA2Be,wBAAW1F,MAAX,EAAmB4B,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';\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 scorePointErrorText: {\n position: 'absolute',\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit / 2,\n },\n});\n\nexport class TraitsHeaderTile extends React.Component {\n static propTypes = {\n maxPointsEnabled: PropTypes.bool,\n spellCheck: PropTypes.bool,\n errors: PropTypes.object,\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 errors = {},\n maxMaxPoints,\n labelPluginProps = {},\n imageSupport = {},\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={labelPluginProps}\n spellCheck={spellCheck}\n label=\"Level Label\"\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n imageSupport={imageSupport}\n />\n )}\n\n <ScaleSettings>\n <div>Scale {scaleIndex + 1}</div>\n\n {maxPointsEnabled && (\n <MaxPointsPicker maxPoints={maxPoints} maxMaxPoints={maxMaxPoints} onChange={updateMaxPointsFieldValue} />\n )}\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 let error;\n\n try {\n scoreDescriptor = scorePointsLabels[value] || '';\n error = errors[value] || '';\n } catch (e) {\n scoreDescriptor = '';\n }\n\n return (\n <Block key={`secondary-block-part-${index}`}>\n <ScorePoint\n scorePointsValue={scorePointsValue}\n error={error}\n scoreDescriptor={scoreDescriptor}\n pluginProps={labelPluginProps}\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 imageSupport={imageSupport}\n />\n {error && <div className={classes.scorePointErrorText}>{error}</div>}\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 maxMaxPoints: PropTypes.number,\n labelPluginProps: PropTypes.object,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n};\n\nexport default withStyles(styles)(TraitsHeaderTile);\n"],"file":"traitsHeader.js"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ 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
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils.js"],"names":["filteredDefaultPlugins","DEFAULT_PLUGINS","filter","p"],"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","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"],"file":"utils.js"}
@@ -8,7 +8,7 @@
8
8
  "@material-ui/core": "^3.9.2",
9
9
  "@material-ui/icons": "^3.0.1",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "1.16.1-next.28",
11
+ "@pie-lib/pie-toolbox": "1.16.0",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/defaults.js"],"names":["model","visibleToStudent","halfScoring","pointLabels","description","standards","scales","excludeZero","maxPointsEnabled","addScaleEnabled","configuration","excludeZeroDialogBoxContent","title","text","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","settingsPanelDisabled","spellCheck","label","settings","enabled","showExcludeZero","showScorePointLabels","showDescription","showVisibleToStudent","showHalfScoring","width","showStandards","showLevelTagInput","dragAndDrop","showMaxPoint","addScale","minNoO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A,QAAQ,EAAE,IADK;AAEfD,MAAAA,KAAK,EAAE;AAFQ,KA7DJ;AAiEbM,IAAAA,oBAAoB,EAAE;AACpBL,MAAAA,QAAQ,EAAE,IADU;AAEpBD,MAAAA,KAAK,EAAE;AAFa,KAjET;AAqEbO,IAAAA,eAAe,EAAE;AACfN,MAAAA,QAAQ,EAAE,IADK;AAEfD,MAAAA,KAAK,EAAE;AAFQ,KArEJ;AAyEbQ,IAAAA,KAAK,EAAE,OAzEM;AA0Eb;AACAC,IAAAA,aAAa,EAAE;AACbR,MAAAA,QAAQ,EAAE,KADG;AAEbD,MAAAA,KAAK,EAAE;AAFM,KA3EF;AA+EbU,IAAAA,iBAAiB,EAAE;AACjBT,MAAAA,QAAQ,EAAE,KADO;AAEjBD,MAAAA,KAAK,EAAE,sBAFU;AAGjBE,MAAAA,OAAO,EAAE;AAHQ,KA/EN;AAoFbS,IAAAA,WAAW,EAAE;AACXV,MAAAA,QAAQ,EAAE,IADC;AAEXD,MAAAA,KAAK,EAAE,sBAFI;AAGXE,MAAAA,OAAO,EAAE;AAHE,KApFA;AAyFbU,IAAAA,YAAY,EAAE;AACZX,MAAAA,QAAQ,EAAE,IADE;AAEZD,MAAAA,KAAK,EAAE;AAFK,KAzFD;AA6Fba,IAAAA,QAAQ,EAAE;AACRZ,MAAAA,QAAQ,EAAE,IADF;AAERD,MAAAA,KAAK,EAAE;AAFC,KA7FG;AAiGbc,IAAAA,aAAa,EAAE,CAjGF;AAkGbC,IAAAA,aAAa,EAAE,EAlGF;AAmGbC,IAAAA,aAAa,EAAE,CAnGF;AAoGbC,IAAAA,aAAa,EAAE,EApGF;AAqGbC,IAAAA,iBAAiB,EAAE;AArGN;AAZF,C","sourcesContent":["export default {\n model: {\n visibleToStudent: true,\n halfScoring: false,\n pointLabels: true,\n description: false,\n standards: false,\n scales: [],\n excludeZero: false,\n maxPointsEnabled: true,\n addScaleEnabled: true,\n },\n configuration: {\n excludeZeroDialogBoxContent: {\n title: 'Exclude 0 (Zero) from Score Point Values.',\n 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>`,\n },\n includeZeroDialogBoxContent: {\n title: 'Include 0 (Zero) in Score Point Values.',\n 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>`,\n },\n deleteScaleDialogBoxContent: {\n title: 'Delete Scale',\n text: 'Are you sure you want to delete this scale?',\n },\n maxPointsDialogBoxContent: {\n title: 'Decreasing Max Points.',\n 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.`,\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n showExcludeZero: {\n settings: true,\n label: 'Exclude Zero',\n },\n showScorePointLabels: {\n settings: true,\n label: 'Show Score Point Labels',\n },\n showDescription: {\n settings: true,\n label: 'Show Description',\n },\n showVisibleToStudent: {\n settings: true,\n label: 'Visible to Student',\n },\n showHalfScoring: {\n settings: true,\n label: 'Half Scoring',\n },\n width: '900px',\n // these should not be set to true (should not be used) for now\n showStandards: {\n settings: false,\n label: 'Show Standards',\n },\n showLevelTagInput: {\n settings: false,\n label: 'Show Level Tag Input',\n enabled: false,\n },\n dragAndDrop: {\n settings: true,\n label: 'Enable Drag and Drop',\n enabled: false,\n },\n showMaxPoint: {\n settings: true,\n label: 'Show Max Points Dropdown',\n },\n addScale: {\n settings: true,\n label: 'Add Scale Available',\n },\n minNoOfTraits: 1,\n maxNoOfTraits: 10,\n minNoOfScales: 2,\n maxNoOfScales: 10,\n defaultTraitLabel: 'Trait',\n },\n};\n"],"file":"defaults.js"}