@pie-element/complex-rubric 1.5.0 → 1.5.1-beta.5259

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.
@@ -91,13 +91,17 @@ var Main = /*#__PURE__*/function (_React$Component) {
91
91
  classes = _this$props.classes,
92
92
  model = _this$props.model,
93
93
  configuration = _this$props.configuration;
94
- var rubricType = model.rubricType,
95
- _model$rubrics = model.rubrics,
94
+ var _model$rubrics = model.rubrics,
96
95
  rubrics = _model$rubrics === void 0 ? {} : _model$rubrics;
96
+ var rubricType = model.rubricType;
97
97
  var multiTraitRubric = configuration.multiTraitRubric,
98
98
  simpleRubric = configuration.simpleRubric;
99
99
  var rubricTag = '';
100
100
 
101
+ if (!rubricType) {
102
+ rubricType = _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC;
103
+ }
104
+
101
105
  switch (rubricType) {
102
106
  case _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC:
103
107
  default:
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["styles","rubric","display","flexDirection","Main","model","onModelChanged","props","e","rubricType","target","value","classes","configuration","rubrics","multiTraitRubric","simpleRubric","rubricTag","RUBRIC_TYPES","SIMPLE_RUBRIC","ref","MULTI_TRAIT_RUBRIC","onChangeRubricType","React","Component","PropTypes","object","func","onConfigurationChanged"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG;AACbC,EAAAA,MAAM,EAAE;AACNC,IAAAA,OAAO,EAAE,MADH;AAENC,IAAAA,aAAa,EAAE;AAFT;AADK,CAAf;;IAOaC,I;;;;;;;;;;;;;;;uGASM,UAACC,KAAD,EAAW;AAC1B,UAAQC,cAAR,GAA2B,MAAKC,KAAhC,CAAQD,cAAR;AAEA,aAAOA,cAAc,CAACD,KAAD,CAArB;AACD,K;2GAEoB,UAACG,CAAD,EA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;eA6FN,wBAAW3B,MAAX,EAAmBI,IAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { RUBRIC_TYPES } from '@pie-lib/rubric';\nimport { layout } from '@pie-lib/config-ui';\nimport Radio from '@material-ui/core/Radio';\nimport RadioGroup from '@material-ui/core/RadioGroup';\nimport { withStyles } from '@material-ui/core/styles';\nimport { FormControlLabel } from '@material-ui/core';\n\nconst styles = {\n rubric: {\n display: 'flex',\n flexDirection: 'column',\n },\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n configuration: PropTypes.object,\n model: PropTypes.object,\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n };\n\n onModelChanged = (model) => {\n const { onModelChanged } = this.props;\n\n return onModelChanged(model);\n };\n\n onChangeRubricType = (e) => {\n const { model } = this.props;\n\n const rubricType = e.target.value;\n this.onModelChanged({ ...model, rubricType });\n };\n\n render() {\n const { classes, model, configuration } = this.props;\n const { rubricType, rubrics = {} } = model;\n const { multiTraitRubric, simpleRubric } = configuration;\n let rubricTag = '';\n\n switch (rubricType) {\n case RUBRIC_TYPES.SIMPLE_RUBRIC:\n default:\n rubricTag = (\n <rubric-configure\n id=\"simpleRubric\"\n key=\"simple-rubric\"\n ref={(ref) => {\n if (ref) {\n this.simpleRubric = ref;\n this.simpleRubric.model = rubrics.simpleRubric;\n this.simpleRubric.configuration = simpleRubric;\n }\n }}\n />\n );\n break;\n\n case RUBRIC_TYPES.MULTI_TRAIT_RUBRIC:\n rubricTag = (\n <multi-trait-rubric-configure\n id=\"multiTraitRubric\"\n key=\"multi-trait-rubric\"\n ref={(ref) => {\n if (ref) {\n this.multiTraitRubric = ref;\n this.multiTraitRubric.model = { ...rubrics.multiTraitRubric };\n this.multiTraitRubric.configuration = multiTraitRubric;\n }\n }}\n />\n );\n break;\n }\n\n return (\n <layout.ConfigLayout hideSettings={true} settings={null}>\n <div className={classes.rubric}>\n <div>\n <RadioGroup\n aria-label=\"rubric-type\"\n name=\"rubricType\"\n value={model.rubricType}\n onChange={this.onChangeRubricType}\n >\n <FormControlLabel\n value={RUBRIC_TYPES.SIMPLE_RUBRIC}\n control={<Radio checked={rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC} />}\n label=\"Simple Rubric\"\n />\n\n <FormControlLabel\n value={RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}\n control={<Radio checked={rubricType === RUBRIC_TYPES.MULTI_TRAIT_RUBRIC} />}\n label=\"Multi Trait Rubric\"\n />\n </RadioGroup>\n </div>\n\n <div>{rubricTag}</div>\n </div>\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
1
+ {"version":3,"sources":["../src/main.jsx"],"names":["styles","rubric","display","flexDirection","Main","model","onModelChanged","props","e","rubricType","target","value","classes","configuration","rubrics","multiTraitRubric","simpleRubric","rubricTag","RUBRIC_TYPES","SIMPLE_RUBRIC","ref","MULTI_TRAIT_RUBRIC","onChangeRubricType","React","Component","PropTypes","object","func","onConfigurationChanged"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG;AACbC,EAAAA,MAAM,EAAE;AACNC,IAAAA,OAAO,EAAE,MADH;AAENC,IAAAA,aAAa,EAAE;AAFT;AADK,CAAf;;IAOaC,I;;;;;;;;;;;;;;;uGASM,UAACC,KAAD,EAAW;AAC1B,UAAQC,cAAR,GAA2B,MAAKC,KAAhC,CAAQD,cAAR;AAEA,aAAOA,cAAc,CAACD,KAAD,CAArB;AACD,K;2GAEoB,UAACG,CAAD,EAAO;AAC1B,UAAQH,KAAR,GAAkB,MAAKE,KAAvB,CAAQF,KAAR;AAEA,UAAMI,UAAU,GAAGD,CAAC,CAACE,MAAF,CAASC,KAA5B;;AACA,YAAKL,cAAL,iCAAyBD,KAAzB;AAAgCI,QAAAA,UAAU,EAAVA;AAAh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ubric';\nimport { layout } from '@pie-lib/config-ui';\nimport Radio from '@material-ui/core/Radio';\nimport RadioGroup from '@material-ui/core/RadioGroup';\nimport { withStyles } from '@material-ui/core/styles';\nimport { FormControlLabel } from '@material-ui/core';\n\nconst styles = {\n rubric: {\n display: 'flex',\n flexDirection: 'column',\n },\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n configuration: PropTypes.object,\n model: PropTypes.object,\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n };\n\n onModelChanged = (model) => {\n const { onModelChanged } = this.props;\n\n return onModelChanged(model);\n };\n\n onChangeRubricType = (e) => {\n const { model } = this.props;\n\n const rubricType = e.target.value;\n this.onModelChanged({ ...model, rubricType });\n };\n\n render() {\n const { classes, model, configuration } = this.props;\n const { rubrics = {} } = model;\n let { rubricType } = model;\n const { multiTraitRubric, simpleRubric } = configuration;\n let rubricTag = '';\n\n if (!rubricType) {\n rubricType = RUBRIC_TYPES.SIMPLE_RUBRIC;\n }\n\n switch (rubricType) {\n case RUBRIC_TYPES.SIMPLE_RUBRIC:\n default:\n rubricTag = (\n <rubric-configure\n id=\"simpleRubric\"\n key=\"simple-rubric\"\n ref={(ref) => {\n if (ref) {\n this.simpleRubric = ref;\n this.simpleRubric.model = rubrics.simpleRubric;\n this.simpleRubric.configuration = simpleRubric;\n }\n }}\n />\n );\n break;\n\n case RUBRIC_TYPES.MULTI_TRAIT_RUBRIC:\n rubricTag = (\n <multi-trait-rubric-configure\n id=\"multiTraitRubric\"\n key=\"multi-trait-rubric\"\n ref={(ref) => {\n if (ref) {\n this.multiTraitRubric = ref;\n this.multiTraitRubric.model = { ...rubrics.multiTraitRubric };\n this.multiTraitRubric.configuration = multiTraitRubric;\n }\n }}\n />\n );\n break;\n }\n\n return (\n <layout.ConfigLayout hideSettings={true} settings={null}>\n <div className={classes.rubric}>\n <div>\n <RadioGroup\n aria-label=\"rubric-type\"\n name=\"rubricType\"\n value={model.rubricType}\n onChange={this.onChangeRubricType}\n >\n <FormControlLabel\n value={RUBRIC_TYPES.SIMPLE_RUBRIC}\n control={<Radio checked={rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC} />}\n label=\"Simple Rubric\"\n />\n\n <FormControlLabel\n value={RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}\n control={<Radio checked={rubricType === RUBRIC_TYPES.MULTI_TRAIT_RUBRIC} />}\n label=\"Multi Trait Rubric\"\n />\n </RadioGroup>\n </div>\n\n <div>{rubricTag}</div>\n </div>\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
@@ -11,11 +11,11 @@
11
11
  "@pie-element/multi-trait-rubric": "^2.5.0",
12
12
  "@pie-element/rubric": "^2.4.0",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
- "@pie-lib/config-ui": "^11.3.0",
15
- "@pie-lib/editable-html": "^9.5.0",
16
- "@pie-lib/render-ui": "^4.13.7",
17
- "@pie-lib/rubric": "^0.7.0",
18
- "@pie-lib/scoring-config": "^3.6.0",
14
+ "@pie-lib/config-ui": "12.0.0-beta.2",
15
+ "@pie-lib/editable-html": "10.0.0-beta.2",
16
+ "@pie-lib/render-ui": "^4.14.12",
17
+ "@pie-lib/rubric": "1.0.0-beta.1",
18
+ "@pie-lib/scoring-config": "^3.6.12",
19
19
  "debug": "^4.1.1",
20
20
  "lodash": "^4.17.15",
21
21
  "prop-types": "^15.6.2",
@@ -38,10 +38,15 @@ export class Main extends React.Component {
38
38
 
39
39
  render() {
40
40
  const { classes, model, configuration } = this.props;
41
- const { rubricType, rubrics = {} } = model;
41
+ const { rubrics = {} } = model;
42
+ let { rubricType } = model;
42
43
  const { multiTraitRubric, simpleRubric } = configuration;
43
44
  let rubricTag = '';
44
45
 
46
+ if (!rubricType) {
47
+ rubricType = RUBRIC_TYPES.SIMPLE_RUBRIC;
48
+ }
49
+
45
50
  switch (rubricType) {
46
51
  case RUBRIC_TYPES.SIMPLE_RUBRIC:
47
52
  default:
@@ -7,8 +7,8 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/controller-utils": "^0.2.27",
11
- "@pie-lib/rubric": "^0.7.0",
10
+ "@pie-lib/controller-utils": "^0.2.42",
11
+ "@pie-lib/rubric": "1.0.0-beta.1",
12
12
  "lodash": "^4.17.15"
13
13
  },
14
14
  "author": "",
@@ -176,6 +176,26 @@
176
176
  "description": "How large (in px) should multi-trait-rubric be",
177
177
  "type": "string",
178
178
  "title": "width"
179
+ },
180
+ "minNoOfTraits": {
181
+ "description": "Minimum number of traits",
182
+ "type": "number",
183
+ "title": "minNoOfTraits"
184
+ },
185
+ "maxNoOfTraits": {
186
+ "description": "Maximum number of traits",
187
+ "type": "number",
188
+ "title": "maxNoOfTraits"
189
+ },
190
+ "minNoOfScales": {
191
+ "description": "Minimum number of scales",
192
+ "type": "number",
193
+ "title": "minNoOfScales"
194
+ },
195
+ "maxNoOfScales": {
196
+ "description": "Maximum number of scales",
197
+ "type": "number",
198
+ "title": "maxNoOfScales"
179
199
  }
180
200
  },
181
201
  "required": [
@@ -362,6 +382,26 @@
362
382
  "description": "How large (in px) should multi-trait-rubric be",
363
383
  "type": "string",
364
384
  "title": "width"
385
+ },
386
+ "minNoOfTraits": {
387
+ "description": "Minimum number of traits",
388
+ "type": "number",
389
+ "title": "minNoOfTraits"
390
+ },
391
+ "maxNoOfTraits": {
392
+ "description": "Maximum number of traits",
393
+ "type": "number",
394
+ "title": "maxNoOfTraits"
395
+ },
396
+ "minNoOfScales": {
397
+ "description": "Minimum number of scales",
398
+ "type": "number",
399
+ "title": "minNoOfScales"
400
+ },
401
+ "maxNoOfScales": {
402
+ "description": "Maximum number of scales",
403
+ "type": "number",
404
+ "title": "maxNoOfScales"
365
405
  }
366
406
  },
367
407
  "required": [
@@ -134,6 +134,22 @@ Indicates the label for the item that has to be displayed in the Settings Panel
134
134
 
135
135
  How large (in px) should multi-trait-rubric be
136
136
 
137
+ ## `minNoOfTraits` (number)
138
+
139
+ Minimum number of traits
140
+
141
+ ## `maxNoOfTraits` (number)
142
+
143
+ Maximum number of traits
144
+
145
+ ## `minNoOfScales` (number)
146
+
147
+ Minimum number of scales
148
+
149
+ ## `maxNoOfScales` (number)
150
+
151
+ Maximum number of scales
152
+
137
153
  ---
138
154
 
139
155
  # Sub Schemas
@@ -274,6 +290,22 @@ Indicates the label for the item that has to be displayed in the Settings Panel
274
290
 
275
291
  How large (in px) should multi-trait-rubric be
276
292
 
293
+ ### `minNoOfTraits` (number)
294
+
295
+ Minimum number of traits
296
+
297
+ ### `maxNoOfTraits` (number)
298
+
299
+ Maximum number of traits
300
+
301
+ ### `minNoOfScales` (number)
302
+
303
+ Minimum number of scales
304
+
305
+ ### `maxNoOfScales` (number)
306
+
307
+ Maximum number of scales
308
+
277
309
  ## `DialogContent` (object)
278
310
 
279
311
  Properties of the `DialogContent` object:
@@ -413,6 +413,26 @@
413
413
  "description": "How large (in px) should multi-trait-rubric be",
414
414
  "type": "string",
415
415
  "title": "width"
416
+ },
417
+ "minNoOfTraits": {
418
+ "description": "Minimum number of traits",
419
+ "type": "number",
420
+ "title": "minNoOfTraits"
421
+ },
422
+ "maxNoOfTraits": {
423
+ "description": "Maximum number of traits",
424
+ "type": "number",
425
+ "title": "maxNoOfTraits"
426
+ },
427
+ "minNoOfScales": {
428
+ "description": "Minimum number of scales",
429
+ "type": "number",
430
+ "title": "minNoOfScales"
431
+ },
432
+ "maxNoOfScales": {
433
+ "description": "Maximum number of scales",
434
+ "type": "number",
435
+ "title": "maxNoOfScales"
416
436
  }
417
437
  },
418
438
  "required": [
@@ -291,6 +291,22 @@ Indicates the label for the item that has to be displayed in the Settings Panel
291
291
 
292
292
  How large (in px) should multi-trait-rubric be
293
293
 
294
+ ### `minNoOfTraits` (number)
295
+
296
+ Minimum number of traits
297
+
298
+ ### `maxNoOfTraits` (number)
299
+
300
+ Maximum number of traits
301
+
302
+ ### `minNoOfScales` (number)
303
+
304
+ Minimum number of scales
305
+
306
+ ### `maxNoOfScales` (number)
307
+
308
+ Maximum number of scales
309
+
294
310
  ## `DialogContent` (object)
295
311
 
296
312
  Properties of the `DialogContent` object:
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "1.5.0",
4
+ "version": "1.5.1-beta.5259+449763c04",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
- "@pie-element/multi-trait-rubric": "^2.5.0",
11
- "@pie-element/rubric": "^2.4.0",
10
+ "@pie-element/multi-trait-rubric": "^1.4.20-beta.1443+449763c04",
11
+ "@pie-element/rubric": "^1.8.1-beta.1443+449763c04",
12
12
  "@pie-framework/pie-player-events": "^0.1.0",
13
- "@pie-lib/rubric": "^0.7.0",
13
+ "@pie-lib/rubric": "1.0.0-beta.1",
14
14
  "classnames": "^2.2.5",
15
15
  "debug": "^4.1.1",
16
16
  "lodash": "^4.17.11",
17
17
  "prop-types": "^15.7.2"
18
18
  },
19
- "gitHead": "7fcbba0ed99ce1db1e66598ea6865b4a2425d0a4",
19
+ "gitHead": "449763c046b78327513c38ea5367b8d4da120760",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },