@pie-element/complex-rubric 1.5.1-next.5 → 1.5.1-next.55

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,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C;;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;AA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/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 { 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": "^11.3.12",
15
+ "@pie-lib/editable-html": "^9.5.12",
16
+ "@pie-lib/render-ui": "^4.14.12",
17
+ "@pie-lib/rubric": "^0.7.12",
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": "^0.7.12",
12
12
  "lodash": "^4.17.15"
13
13
  },
14
14
  "author": "",
@@ -176,6 +176,31 @@
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"
199
+ },
200
+ "defaultTraitLabel": {
201
+ "description": "The default trait label for new created scales",
202
+ "type": "string",
203
+ "title": "defaultTraitLabel"
179
204
  }
180
205
  },
181
206
  "required": [
@@ -362,6 +387,31 @@
362
387
  "description": "How large (in px) should multi-trait-rubric be",
363
388
  "type": "string",
364
389
  "title": "width"
390
+ },
391
+ "minNoOfTraits": {
392
+ "description": "Minimum number of traits",
393
+ "type": "number",
394
+ "title": "minNoOfTraits"
395
+ },
396
+ "maxNoOfTraits": {
397
+ "description": "Maximum number of traits",
398
+ "type": "number",
399
+ "title": "maxNoOfTraits"
400
+ },
401
+ "minNoOfScales": {
402
+ "description": "Minimum number of scales",
403
+ "type": "number",
404
+ "title": "minNoOfScales"
405
+ },
406
+ "maxNoOfScales": {
407
+ "description": "Maximum number of scales",
408
+ "type": "number",
409
+ "title": "maxNoOfScales"
410
+ },
411
+ "defaultTraitLabel": {
412
+ "description": "The default trait label for new created scales",
413
+ "type": "string",
414
+ "title": "defaultTraitLabel"
365
415
  }
366
416
  },
367
417
  "required": [
@@ -134,6 +134,26 @@ 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
+
153
+ ## `defaultTraitLabel` (string)
154
+
155
+ The default trait label for new created scales
156
+
137
157
  ---
138
158
 
139
159
  # Sub Schemas
@@ -274,6 +294,26 @@ Indicates the label for the item that has to be displayed in the Settings Panel
274
294
 
275
295
  How large (in px) should multi-trait-rubric be
276
296
 
297
+ ### `minNoOfTraits` (number)
298
+
299
+ Minimum number of traits
300
+
301
+ ### `maxNoOfTraits` (number)
302
+
303
+ Maximum number of traits
304
+
305
+ ### `minNoOfScales` (number)
306
+
307
+ Minimum number of scales
308
+
309
+ ### `maxNoOfScales` (number)
310
+
311
+ Maximum number of scales
312
+
313
+ ### `defaultTraitLabel` (string)
314
+
315
+ The default trait label for new created scales
316
+
277
317
  ## `DialogContent` (object)
278
318
 
279
319
  Properties of the `DialogContent` object:
@@ -413,6 +413,31 @@
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"
436
+ },
437
+ "defaultTraitLabel": {
438
+ "description": "The default trait label for new created scales",
439
+ "type": "string",
440
+ "title": "defaultTraitLabel"
416
441
  }
417
442
  },
418
443
  "required": [
@@ -291,6 +291,26 @@ 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
+
310
+ ### `defaultTraitLabel` (string)
311
+
312
+ The default trait label for new created scales
313
+
294
314
  ## `DialogContent` (object)
295
315
 
296
316
  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.1-next.5+cc70f5246",
4
+ "version": "1.5.1-next.55+f823b7736",
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.1-next.5+cc70f5246",
11
- "@pie-element/rubric": "^2.4.1-next.5+cc70f5246",
10
+ "@pie-element/multi-trait-rubric": "^2.5.1-next.55+f823b7736",
11
+ "@pie-element/rubric": "^2.4.1-next.55+f823b7736",
12
12
  "@pie-framework/pie-player-events": "^0.1.0",
13
- "@pie-lib/rubric": "^0.7.0",
13
+ "@pie-lib/rubric": "^0.7.12",
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": "cc70f5246cb72774afb9b8bd4864877f02c504ab",
19
+ "gitHead": "f823b773669541eccfeb074a728947d478580fb0",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },