@pie-element/complex-rubric 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/configure/CHANGELOG.md +13 -0
- package/configure/lib/defaults.js +1 -0
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/main.js +9 -4
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +6 -6
- package/configure/src/defaults.js +1 -0
- package/configure/src/main.jsx +7 -7
- package/docs/config-schema.json +165 -17
- package/docs/config-schema.json.md +133 -13
- package/docs/pie-schema.json +87 -16
- package/docs/pie-schema.json.md +70 -12
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.6.0...@pie-element/complex-rubric@1.7.0) (2023-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update pie-libs ([e2c0b89](https://github.com/pie-framework/pie-elements/commit/e2c0b894caa20ed5d5681302a84b2bfd20dbd9f6))
|
|
12
|
+
* **complex-rurbic:** add width property to configuration and send to multi-trait-rubric and rubric ([7433a90](https://github.com/pie-framework/pie-elements/commit/7433a90426cf90b1fbfd6005f1911629bfa86a88))
|
|
13
|
+
* **rubric:** add width property to configuration ([75bdb82](https://github.com/pie-framework/pie-elements/commit/75bdb82ddd3ffe41ce50aa98928914f321127eed))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# [1.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.5.0...@pie-element/complex-rubric@1.6.0) (2023-02-01)
|
|
7
20
|
|
|
8
21
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.5.0...@pie-element/complex-rubric-configure@1.6.0) (2023-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update pie-libs ([e2c0b89](https://github.com/pie-framework/pie-elements/commit/e2c0b894caa20ed5d5681302a84b2bfd20dbd9f6))
|
|
12
|
+
* **complex-rurbic:** add width property to configuration and send to multi-trait-rubric and rubric ([7433a90](https://github.com/pie-framework/pie-elements/commit/7433a90426cf90b1fbfd6005f1911629bfa86a88))
|
|
13
|
+
* **rubric:** add width property to configuration ([75bdb82](https://github.com/pie-framework/pie-elements/commit/75bdb82ddd3ffe41ce50aa98928914f321127eed))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# [1.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.4.0...@pie-element/complex-rubric-configure@1.5.0) (2023-02-01)
|
|
7
20
|
|
|
8
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["multiTraitDefaultModel","visibleToStudent","halfScoring","pointLabels","description","standards","scales","excludeZero","rubricDefaultModel","points","sampleAnswers","maxPoints","multiTraitDefaultConfiguration","settingsPanelDisabled","excludeZeroDialogBoxContent","title","text","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","spellCheck","label","settings","enabled","showExcludeZero","showScorePointLabels","showDescription","showVisibleToStudent","showHalfScoring","width","showStandards","showLevelTagInput","dragAndDrop","rubricDefaultConfiguration","showMaxPoint","model","rubricType","rubrics","simpleRubric","multiTraitRubric","configuration"],"mapp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AAA,YAAY,EAAE9B,kBAAhB;AAAoC+B,MAAAA,gBAAgB,EAAEvC;AAAtD;AAFJ,GADM;AAKbwC,EAAAA,aAAa,EAAE;
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["multiTraitDefaultModel","visibleToStudent","halfScoring","pointLabels","description","standards","scales","excludeZero","rubricDefaultModel","points","sampleAnswers","maxPoints","multiTraitDefaultConfiguration","settingsPanelDisabled","excludeZeroDialogBoxContent","title","text","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","spellCheck","label","settings","enabled","showExcludeZero","showScorePointLabels","showDescription","showVisibleToStudent","showHalfScoring","width","showStandards","showLevelTagInput","dragAndDrop","rubricDefaultConfiguration","showMaxPoint","model","rubricType","rubrics","simpleRubric","multiTraitRubric","configuration"],"mappings":";;;;;;AAAA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,gBAAgB,EAAE,IADW;AAE7BC,EAAAA,WAAW,EAAE,KAFgB;AAG7BC,EAAAA,WAAW,EAAE,IAHgB;AAI7BC,EAAAA,WAAW,EAAE,KAJgB;AAK7BC,EAAAA,SAAS,EAAE,KALkB;AAM7BC,EAAAA,MAAM,EAAE,EANqB;AAO7BC,EAAAA,WAAW,EAAE;AAPgB,CAA/B;AAUA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,MAAM,EAAE,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,CADiB;AAEzBC,EAAAA,aAAa,EAAE,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAFU;AAGzBC,EAAAA,SAAS,EAAE,CAHc;AAIzBJ,EAAAA,WAAW,EAAE;AAJY,CAA3B;AAOA,IAAMK,8BAA8B,GAAG;AACrCC,EAAAA,qBAAqB,EAAE,KADc;AAErCC,EAAAA,2BAA2B,EAAE;AAC3BC,IAAAA,KAAK,EAAE,2CADoB;AAE3BC,IAAAA,IAAI;AAFuB,GAFQ;AAoBrCC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kB;AAoFrCS,EAAAA,WAAW,EAAE;AACXV,IAAAA,QAAQ,EAAE,IADC;AAEXD,IAAAA,KAAK,EAAE,sBAFI;AAGXE,IAAAA,OAAO,EAAE;AAHE;AApFwB,CAAvC;AA2FA,IAAMU,0BAA0B,GAAG;AACjCT,EAAAA,eAAe,EAAE;AACfF,IAAAA,QAAQ,EAAE,IADK;AAEfD,IAAAA,KAAK,EAAE;AAFQ,GADgB;AAKjCa,EAAAA,YAAY,EAAE;AACZZ,IAAAA,QAAQ,EAAE,IADE;AAEZD,IAAAA,KAAK,EAAE;AAFK,GALmB;AASjCR,EAAAA,qBAAqB,EAAE;AATU,CAAnC;eAYe;AACbsB,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE,cADP;AAELC,IAAAA,OAAO,EAAE;AAAEC,MAAAA,YAAY,EAAE9B,kBAAhB;AAAoC+B,MAAAA,gBAAgB,EAAEvC;AAAtD;AAFJ,GADM;AAKbwC,EAAAA,aAAa,EAAE;AACb;AACAD,IAAAA,gBAAgB,EAAE3B,8BAFL;AAGb0B,IAAAA,YAAY,EAAEL;AAHD;AALF,C","sourcesContent":["const multiTraitDefaultModel = {\n visibleToStudent: true,\n halfScoring: false,\n pointLabels: true,\n description: false,\n standards: false,\n scales: [],\n excludeZero: false,\n};\n\nconst rubricDefaultModel = {\n points: ['', '', '', ''],\n sampleAnswers: [null, null, null, null],\n maxPoints: 4,\n excludeZero: false,\n};\n\nconst multiTraitDefaultConfiguration = {\n settingsPanelDisabled: false,\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 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};\n\nconst rubricDefaultConfiguration = {\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n};\n\nexport default {\n model: {\n rubricType: 'simpleRubric',\n rubrics: { simpleRubric: rubricDefaultModel, multiTraitRubric: multiTraitDefaultModel },\n },\n configuration: {\n // width: '770px',\n multiTraitRubric: multiTraitDefaultConfiguration,\n simpleRubric: rubricDefaultConfiguration,\n },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/main.js
CHANGED
|
@@ -95,7 +95,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
95
95
|
rubrics = _model$rubrics === void 0 ? {} : _model$rubrics;
|
|
96
96
|
var rubricType = model.rubricType;
|
|
97
97
|
var multiTraitRubric = configuration.multiTraitRubric,
|
|
98
|
-
simpleRubric = configuration.simpleRubric
|
|
98
|
+
simpleRubric = configuration.simpleRubric,
|
|
99
|
+
width = configuration.width;
|
|
99
100
|
var rubricTag = '';
|
|
100
101
|
|
|
101
102
|
if (!rubricType) {
|
|
@@ -112,7 +113,9 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
112
113
|
if (_ref) {
|
|
113
114
|
_this2.simpleRubric = _ref;
|
|
114
115
|
_this2.simpleRubric.model = rubrics.simpleRubric;
|
|
115
|
-
_this2.simpleRubric.configuration = simpleRubric
|
|
116
|
+
_this2.simpleRubric.configuration = _objectSpread(_objectSpread({}, simpleRubric), {}, {
|
|
117
|
+
width: width
|
|
118
|
+
});
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
});
|
|
@@ -125,8 +128,10 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
125
128
|
ref: function ref(_ref2) {
|
|
126
129
|
if (_ref2) {
|
|
127
130
|
_this2.multiTraitRubric = _ref2;
|
|
128
|
-
_this2.multiTraitRubric.model =
|
|
129
|
-
_this2.multiTraitRubric.configuration = multiTraitRubric
|
|
131
|
+
_this2.multiTraitRubric.model = rubrics.multiTraitRubric;
|
|
132
|
+
_this2.multiTraitRubric.configuration = _objectSpread(_objectSpread({}, multiTraitRubric), {}, {
|
|
133
|
+
width: width
|
|
134
|
+
});
|
|
130
135
|
}
|
|
131
136
|
}
|
|
132
137
|
});
|
|
@@ -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,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;AAAhC;AACD,K;;;;;;WAED,kBAAS;AAAA;;AACP,wBAA0C,KAAKF,KAA/C;AAAA,UAAQK,OAAR,eAAQA,OAAR;AAAA,UAAiBP,KAAjB,eAAiBA,KAAjB;AAAA,UAAwBQ,aAAxB,eAAwBA,aAAxB;AACA,2BAAyBR,KAAzB,CAAQS,OAAR;AAAA,UAAQA,OAAR,+BAAkB,EAAlB;AACA,UAAML,UAAN,
|
|
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","width","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,CA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A5C,UAFX;AAGE,QAAA,KAAK,EAAC;AAHR,QAZF,CADF,CADF,eAsBE,6CAAMJ,SAAN,CAtBF,CADF,CADF;AA4BD;;;EAhGuBM,kBAAMC,S;;;iCAAnBrB,I,eACQ;AACjBQ,EAAAA,OAAO,EAAEc,sBAAUC,MADF;AAEjBd,EAAAA,aAAa,EAAEa,sBAAUC,MAFR;AAGjBtB,EAAAA,KAAK,EAAEqB,sBAAUC,MAHA;AAIjBrB,EAAAA,cAAc,EAAEoB,sBAAUE,IAJT;AAKjBC,EAAAA,sBAAsB,EAAEH,sBAAUE;AALjB,C;;eAkGN,wBAAW5B,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 { rubrics = {} } = model;\n let { rubricType } = model;\n const { multiTraitRubric, simpleRubric, width } = 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, width };\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, width };\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"}
|
package/configure/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"description": "Complex Rubric authoring view",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"author": "Pie Framework Authors",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
|
-
"@pie-element/multi-trait-rubric": "^2.
|
|
12
|
-
"@pie-element/rubric": "^2.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^2.7.0",
|
|
12
|
+
"@pie-element/rubric": "^2.6.0",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
|
-
"@pie-lib/config-ui": "^11.
|
|
15
|
-
"@pie-lib/editable-html": "^9.5.
|
|
14
|
+
"@pie-lib/config-ui": "^11.4.0",
|
|
15
|
+
"@pie-lib/editable-html": "^9.5.13",
|
|
16
16
|
"@pie-lib/render-ui": "^4.14.12",
|
|
17
17
|
"@pie-lib/rubric": "^0.7.12",
|
|
18
|
-
"@pie-lib/scoring-config": "^3.6.
|
|
18
|
+
"@pie-lib/scoring-config": "^3.6.13",
|
|
19
19
|
"debug": "^4.1.1",
|
|
20
20
|
"lodash": "^4.17.15",
|
|
21
21
|
"prop-types": "^15.6.2",
|
|
@@ -124,6 +124,7 @@ export default {
|
|
|
124
124
|
rubrics: { simpleRubric: rubricDefaultModel, multiTraitRubric: multiTraitDefaultModel },
|
|
125
125
|
},
|
|
126
126
|
configuration: {
|
|
127
|
+
// width: '770px',
|
|
127
128
|
multiTraitRubric: multiTraitDefaultConfiguration,
|
|
128
129
|
simpleRubric: rubricDefaultConfiguration,
|
|
129
130
|
},
|
package/configure/src/main.jsx
CHANGED
|
@@ -39,8 +39,8 @@ export class Main extends React.Component {
|
|
|
39
39
|
render() {
|
|
40
40
|
const { classes, model, configuration } = this.props;
|
|
41
41
|
const { rubrics = {} } = model;
|
|
42
|
-
let { rubricType }
|
|
43
|
-
const { multiTraitRubric, simpleRubric } = configuration;
|
|
42
|
+
let { rubricType } = model;
|
|
43
|
+
const { multiTraitRubric, simpleRubric, width } = configuration;
|
|
44
44
|
let rubricTag = '';
|
|
45
45
|
|
|
46
46
|
if (!rubricType) {
|
|
@@ -58,7 +58,7 @@ export class Main extends React.Component {
|
|
|
58
58
|
if (ref) {
|
|
59
59
|
this.simpleRubric = ref;
|
|
60
60
|
this.simpleRubric.model = rubrics.simpleRubric;
|
|
61
|
-
this.simpleRubric.configuration = simpleRubric;
|
|
61
|
+
this.simpleRubric.configuration = { ...simpleRubric, width };
|
|
62
62
|
}
|
|
63
63
|
}}
|
|
64
64
|
/>
|
|
@@ -73,8 +73,8 @@ export class Main extends React.Component {
|
|
|
73
73
|
ref={(ref) => {
|
|
74
74
|
if (ref) {
|
|
75
75
|
this.multiTraitRubric = ref;
|
|
76
|
-
this.multiTraitRubric.model =
|
|
77
|
-
this.multiTraitRubric.configuration = multiTraitRubric;
|
|
76
|
+
this.multiTraitRubric.model = rubrics.multiTraitRubric;
|
|
77
|
+
this.multiTraitRubric.configuration = { ...multiTraitRubric, width };
|
|
78
78
|
}
|
|
79
79
|
}}
|
|
80
80
|
/>
|
|
@@ -94,13 +94,13 @@ export class Main extends React.Component {
|
|
|
94
94
|
>
|
|
95
95
|
<FormControlLabel
|
|
96
96
|
value={RUBRIC_TYPES.SIMPLE_RUBRIC}
|
|
97
|
-
control={<Radio checked={rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC}
|
|
97
|
+
control={<Radio checked={rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC}/>}
|
|
98
98
|
label="Simple Rubric"
|
|
99
99
|
/>
|
|
100
100
|
|
|
101
101
|
<FormControlLabel
|
|
102
102
|
value={RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}
|
|
103
|
-
control={<Radio checked={rubricType === RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}
|
|
103
|
+
control={<Radio checked={rubricType === RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}/>}
|
|
104
104
|
label="Multi Trait Rubric"
|
|
105
105
|
/>
|
|
106
106
|
</RadioGroup>
|
package/docs/config-schema.json
CHANGED
|
@@ -1,6 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"width": {
|
|
5
|
+
"description": "How large should complex-rubric be",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"title": "width"
|
|
8
|
+
},
|
|
9
|
+
"simpleRubric": {
|
|
10
|
+
"title": "RubricConfigure",
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"settingsPanelDisabled": {
|
|
14
|
+
"description": "Indicates if the settings panel is not available",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"title": "settingsPanelDisabled"
|
|
17
|
+
},
|
|
18
|
+
"showExcludeZero": {
|
|
19
|
+
"title": "ConfigureProp",
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"settings": {
|
|
23
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"title": "settings"
|
|
26
|
+
},
|
|
27
|
+
"label": {
|
|
28
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"title": "label"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"showMaxPoint": {
|
|
35
|
+
"title": "ConfigureProp",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"settings": {
|
|
39
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"title": "settings"
|
|
42
|
+
},
|
|
43
|
+
"label": {
|
|
44
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "label"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"width": {
|
|
51
|
+
"description": "How large can the rubric be",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"title": "width"
|
|
54
|
+
},
|
|
55
|
+
"showPrompt": {
|
|
56
|
+
"description": "Determines whether prompt field will be displayed or not",
|
|
57
|
+
"default": true,
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"title": "showPrompt"
|
|
60
|
+
},
|
|
61
|
+
"promptLabel": {
|
|
62
|
+
"description": "The label for the item stem/prompt field",
|
|
63
|
+
"default": "Item Stemm",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"title": "promptLabel"
|
|
66
|
+
},
|
|
67
|
+
"settingsPartialScoring": {
|
|
68
|
+
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
69
|
+
"default": true,
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"title": "settingsPartialScoring"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
4
75
|
"multiTraitRubric": {
|
|
5
76
|
"description": "Config Object for @pie-elements/multi-trait-rubric",
|
|
6
77
|
"additionalProperties": false,
|
|
@@ -196,6 +267,11 @@
|
|
|
196
267
|
"description": "Maximum number of scales",
|
|
197
268
|
"type": "number",
|
|
198
269
|
"title": "maxNoOfScales"
|
|
270
|
+
},
|
|
271
|
+
"defaultTraitLabel": {
|
|
272
|
+
"description": "The default trait label for new created scales",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"title": "defaultTraitLabel"
|
|
199
275
|
}
|
|
200
276
|
},
|
|
201
277
|
"required": [
|
|
@@ -204,9 +280,92 @@
|
|
|
204
280
|
}
|
|
205
281
|
},
|
|
206
282
|
"required": [
|
|
207
|
-
"multiTraitRubric"
|
|
283
|
+
"multiTraitRubric",
|
|
284
|
+
"simpleRubric"
|
|
208
285
|
],
|
|
209
286
|
"definitions": {
|
|
287
|
+
"RubricConfigure": {
|
|
288
|
+
"title": "RubricConfigure",
|
|
289
|
+
"type": "object",
|
|
290
|
+
"properties": {
|
|
291
|
+
"settingsPanelDisabled": {
|
|
292
|
+
"description": "Indicates if the settings panel is not available",
|
|
293
|
+
"type": "boolean",
|
|
294
|
+
"title": "settingsPanelDisabled"
|
|
295
|
+
},
|
|
296
|
+
"showExcludeZero": {
|
|
297
|
+
"title": "ConfigureProp",
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {
|
|
300
|
+
"settings": {
|
|
301
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"title": "settings"
|
|
304
|
+
},
|
|
305
|
+
"label": {
|
|
306
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
307
|
+
"type": "string",
|
|
308
|
+
"title": "label"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"showMaxPoint": {
|
|
313
|
+
"title": "ConfigureProp",
|
|
314
|
+
"type": "object",
|
|
315
|
+
"properties": {
|
|
316
|
+
"settings": {
|
|
317
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"title": "settings"
|
|
320
|
+
},
|
|
321
|
+
"label": {
|
|
322
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
323
|
+
"type": "string",
|
|
324
|
+
"title": "label"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"width": {
|
|
329
|
+
"description": "How large can the rubric be",
|
|
330
|
+
"type": "string",
|
|
331
|
+
"title": "width"
|
|
332
|
+
},
|
|
333
|
+
"showPrompt": {
|
|
334
|
+
"description": "Determines whether prompt field will be displayed or not",
|
|
335
|
+
"default": true,
|
|
336
|
+
"type": "boolean",
|
|
337
|
+
"title": "showPrompt"
|
|
338
|
+
},
|
|
339
|
+
"promptLabel": {
|
|
340
|
+
"description": "The label for the item stem/prompt field",
|
|
341
|
+
"default": "Item Stemm",
|
|
342
|
+
"type": "string",
|
|
343
|
+
"title": "promptLabel"
|
|
344
|
+
},
|
|
345
|
+
"settingsPartialScoring": {
|
|
346
|
+
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
347
|
+
"default": true,
|
|
348
|
+
"type": "boolean",
|
|
349
|
+
"title": "settingsPartialScoring"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"ConfigureProp": {
|
|
354
|
+
"title": "ConfigureProp",
|
|
355
|
+
"type": "object",
|
|
356
|
+
"properties": {
|
|
357
|
+
"settings": {
|
|
358
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
359
|
+
"type": "boolean",
|
|
360
|
+
"title": "settings"
|
|
361
|
+
},
|
|
362
|
+
"label": {
|
|
363
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"title": "label"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
210
369
|
"MultiTraitRubricConfigure": {
|
|
211
370
|
"description": "Config Object for @pie-elements/multi-trait-rubric",
|
|
212
371
|
"additionalProperties": false,
|
|
@@ -402,6 +561,11 @@
|
|
|
402
561
|
"description": "Maximum number of scales",
|
|
403
562
|
"type": "number",
|
|
404
563
|
"title": "maxNoOfScales"
|
|
564
|
+
},
|
|
565
|
+
"defaultTraitLabel": {
|
|
566
|
+
"description": "The default trait label for new created scales",
|
|
567
|
+
"type": "string",
|
|
568
|
+
"title": "defaultTraitLabel"
|
|
405
569
|
}
|
|
406
570
|
},
|
|
407
571
|
"required": [
|
|
@@ -423,22 +587,6 @@
|
|
|
423
587
|
"title": "text"
|
|
424
588
|
}
|
|
425
589
|
}
|
|
426
|
-
},
|
|
427
|
-
"ConfigureProp": {
|
|
428
|
-
"title": "ConfigureProp",
|
|
429
|
-
"type": "object",
|
|
430
|
-
"properties": {
|
|
431
|
-
"settings": {
|
|
432
|
-
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
433
|
-
"type": "boolean",
|
|
434
|
-
"title": "settings"
|
|
435
|
-
},
|
|
436
|
-
"label": {
|
|
437
|
-
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
438
|
-
"type": "string",
|
|
439
|
-
"title": "label"
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
590
|
}
|
|
443
591
|
},
|
|
444
592
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
The schema defines the following properties:
|
|
2
2
|
|
|
3
|
+
# `width` (string)
|
|
4
|
+
|
|
5
|
+
How large should complex-rubric be
|
|
6
|
+
|
|
7
|
+
# `simpleRubric` (object, required)
|
|
8
|
+
|
|
9
|
+
Properties of the `simpleRubric` object:
|
|
10
|
+
|
|
11
|
+
## `settingsPanelDisabled` (boolean)
|
|
12
|
+
|
|
13
|
+
Indicates if the settings panel is not available
|
|
14
|
+
|
|
15
|
+
## `showExcludeZero` (object)
|
|
16
|
+
|
|
17
|
+
Properties of the `showExcludeZero` object:
|
|
18
|
+
|
|
19
|
+
### `settings` (boolean)
|
|
20
|
+
|
|
21
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
22
|
+
|
|
23
|
+
### `label` (string)
|
|
24
|
+
|
|
25
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
26
|
+
|
|
27
|
+
## `showMaxPoint` (object)
|
|
28
|
+
|
|
29
|
+
Properties of the `showMaxPoint` object:
|
|
30
|
+
|
|
31
|
+
### `settings` (boolean)
|
|
32
|
+
|
|
33
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
34
|
+
|
|
35
|
+
### `label` (string)
|
|
36
|
+
|
|
37
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
38
|
+
|
|
39
|
+
## `width` (string)
|
|
40
|
+
|
|
41
|
+
How large can the rubric be
|
|
42
|
+
|
|
43
|
+
## `showPrompt` (boolean)
|
|
44
|
+
|
|
45
|
+
Determines whether prompt field will be displayed or not
|
|
46
|
+
|
|
47
|
+
Default: `true`
|
|
48
|
+
|
|
49
|
+
## `promptLabel` (string)
|
|
50
|
+
|
|
51
|
+
The label for the item stem/prompt field
|
|
52
|
+
|
|
53
|
+
Default: `"Item Stemm"`
|
|
54
|
+
|
|
55
|
+
## `settingsPartialScoring` (boolean)
|
|
56
|
+
|
|
57
|
+
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
|
58
|
+
|
|
59
|
+
Default: `true`
|
|
60
|
+
|
|
3
61
|
# `multiTraitRubric` (object, required)
|
|
4
62
|
|
|
5
63
|
Config Object for @pie-elements/multi-trait-rubric
|
|
@@ -150,12 +208,82 @@ Minimum number of scales
|
|
|
150
208
|
|
|
151
209
|
Maximum number of scales
|
|
152
210
|
|
|
211
|
+
## `defaultTraitLabel` (string)
|
|
212
|
+
|
|
213
|
+
The default trait label for new created scales
|
|
214
|
+
|
|
153
215
|
---
|
|
154
216
|
|
|
155
217
|
# Sub Schemas
|
|
156
218
|
|
|
157
219
|
The schema defines the following additional types:
|
|
158
220
|
|
|
221
|
+
## `RubricConfigure` (object)
|
|
222
|
+
|
|
223
|
+
Properties of the `RubricConfigure` object:
|
|
224
|
+
|
|
225
|
+
### `settingsPanelDisabled` (boolean)
|
|
226
|
+
|
|
227
|
+
Indicates if the settings panel is not available
|
|
228
|
+
|
|
229
|
+
### `showExcludeZero` (object)
|
|
230
|
+
|
|
231
|
+
Properties of the `showExcludeZero` object:
|
|
232
|
+
|
|
233
|
+
#### `settings` (boolean)
|
|
234
|
+
|
|
235
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
236
|
+
|
|
237
|
+
#### `label` (string)
|
|
238
|
+
|
|
239
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
240
|
+
|
|
241
|
+
### `showMaxPoint` (object)
|
|
242
|
+
|
|
243
|
+
Properties of the `showMaxPoint` object:
|
|
244
|
+
|
|
245
|
+
#### `settings` (boolean)
|
|
246
|
+
|
|
247
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
248
|
+
|
|
249
|
+
#### `label` (string)
|
|
250
|
+
|
|
251
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
252
|
+
|
|
253
|
+
### `width` (string)
|
|
254
|
+
|
|
255
|
+
How large can the rubric be
|
|
256
|
+
|
|
257
|
+
### `showPrompt` (boolean)
|
|
258
|
+
|
|
259
|
+
Determines whether prompt field will be displayed or not
|
|
260
|
+
|
|
261
|
+
Default: `true`
|
|
262
|
+
|
|
263
|
+
### `promptLabel` (string)
|
|
264
|
+
|
|
265
|
+
The label for the item stem/prompt field
|
|
266
|
+
|
|
267
|
+
Default: `"Item Stemm"`
|
|
268
|
+
|
|
269
|
+
### `settingsPartialScoring` (boolean)
|
|
270
|
+
|
|
271
|
+
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
|
272
|
+
|
|
273
|
+
Default: `true`
|
|
274
|
+
|
|
275
|
+
## `ConfigureProp` (object)
|
|
276
|
+
|
|
277
|
+
Properties of the `ConfigureProp` object:
|
|
278
|
+
|
|
279
|
+
### `settings` (boolean)
|
|
280
|
+
|
|
281
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
282
|
+
|
|
283
|
+
### `label` (string)
|
|
284
|
+
|
|
285
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
286
|
+
|
|
159
287
|
## `MultiTraitRubricConfigure` (object)
|
|
160
288
|
|
|
161
289
|
Config Object for @pie-elements/multi-trait-rubric
|
|
@@ -306,6 +434,10 @@ Minimum number of scales
|
|
|
306
434
|
|
|
307
435
|
Maximum number of scales
|
|
308
436
|
|
|
437
|
+
### `defaultTraitLabel` (string)
|
|
438
|
+
|
|
439
|
+
The default trait label for new created scales
|
|
440
|
+
|
|
309
441
|
## `DialogContent` (object)
|
|
310
442
|
|
|
311
443
|
Properties of the `DialogContent` object:
|
|
@@ -316,16 +448,4 @@ Dialog box title
|
|
|
316
448
|
|
|
317
449
|
### `text` (string)
|
|
318
450
|
|
|
319
|
-
Dialog box text
|
|
320
|
-
|
|
321
|
-
## `ConfigureProp` (object)
|
|
322
|
-
|
|
323
|
-
Properties of the `ConfigureProp` object:
|
|
324
|
-
|
|
325
|
-
### `settings` (boolean)
|
|
326
|
-
|
|
327
|
-
Indicates if the item has to be displayed in the Settings Panel
|
|
328
|
-
|
|
329
|
-
### `label` (string)
|
|
330
|
-
|
|
331
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
451
|
+
Dialog box text
|
package/docs/pie-schema.json
CHANGED
|
@@ -238,6 +238,88 @@
|
|
|
238
238
|
"rubrics"
|
|
239
239
|
],
|
|
240
240
|
"definitions": {
|
|
241
|
+
"RubricConfigure": {
|
|
242
|
+
"title": "RubricConfigure",
|
|
243
|
+
"type": "object",
|
|
244
|
+
"properties": {
|
|
245
|
+
"settingsPanelDisabled": {
|
|
246
|
+
"description": "Indicates if the settings panel is not available",
|
|
247
|
+
"type": "boolean",
|
|
248
|
+
"title": "settingsPanelDisabled"
|
|
249
|
+
},
|
|
250
|
+
"showExcludeZero": {
|
|
251
|
+
"title": "ConfigureProp",
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"settings": {
|
|
255
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"title": "settings"
|
|
258
|
+
},
|
|
259
|
+
"label": {
|
|
260
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
261
|
+
"type": "string",
|
|
262
|
+
"title": "label"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"showMaxPoint": {
|
|
267
|
+
"title": "ConfigureProp",
|
|
268
|
+
"type": "object",
|
|
269
|
+
"properties": {
|
|
270
|
+
"settings": {
|
|
271
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"title": "settings"
|
|
274
|
+
},
|
|
275
|
+
"label": {
|
|
276
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
277
|
+
"type": "string",
|
|
278
|
+
"title": "label"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"width": {
|
|
283
|
+
"description": "How large can the rubric be",
|
|
284
|
+
"type": "string",
|
|
285
|
+
"title": "width"
|
|
286
|
+
},
|
|
287
|
+
"showPrompt": {
|
|
288
|
+
"description": "Determines whether prompt field will be displayed or not",
|
|
289
|
+
"default": true,
|
|
290
|
+
"type": "boolean",
|
|
291
|
+
"title": "showPrompt"
|
|
292
|
+
},
|
|
293
|
+
"promptLabel": {
|
|
294
|
+
"description": "The label for the item stem/prompt field",
|
|
295
|
+
"default": "Item Stemm",
|
|
296
|
+
"type": "string",
|
|
297
|
+
"title": "promptLabel"
|
|
298
|
+
},
|
|
299
|
+
"settingsPartialScoring": {
|
|
300
|
+
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
301
|
+
"default": true,
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"title": "settingsPartialScoring"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"ConfigureProp": {
|
|
308
|
+
"title": "ConfigureProp",
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"settings": {
|
|
312
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"title": "settings"
|
|
315
|
+
},
|
|
316
|
+
"label": {
|
|
317
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
318
|
+
"type": "string",
|
|
319
|
+
"title": "label"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
241
323
|
"MultiTraitRubricConfigure": {
|
|
242
324
|
"description": "Config Object for @pie-elements/multi-trait-rubric",
|
|
243
325
|
"additionalProperties": false,
|
|
@@ -433,6 +515,11 @@
|
|
|
433
515
|
"description": "Maximum number of scales",
|
|
434
516
|
"type": "number",
|
|
435
517
|
"title": "maxNoOfScales"
|
|
518
|
+
},
|
|
519
|
+
"defaultTraitLabel": {
|
|
520
|
+
"description": "The default trait label for new created scales",
|
|
521
|
+
"type": "string",
|
|
522
|
+
"title": "defaultTraitLabel"
|
|
436
523
|
}
|
|
437
524
|
},
|
|
438
525
|
"required": [
|
|
@@ -455,22 +542,6 @@
|
|
|
455
542
|
}
|
|
456
543
|
}
|
|
457
544
|
},
|
|
458
|
-
"ConfigureProp": {
|
|
459
|
-
"title": "ConfigureProp",
|
|
460
|
-
"type": "object",
|
|
461
|
-
"properties": {
|
|
462
|
-
"settings": {
|
|
463
|
-
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
464
|
-
"type": "boolean",
|
|
465
|
-
"title": "settings"
|
|
466
|
-
},
|
|
467
|
-
"label": {
|
|
468
|
-
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
469
|
-
"type": "string",
|
|
470
|
-
"title": "label"
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
545
|
"RubricType": {
|
|
475
546
|
"title": "RubricType",
|
|
476
547
|
"enum": [
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -157,6 +157,72 @@ The html Element tag name
|
|
|
157
157
|
|
|
158
158
|
The schema defines the following additional types:
|
|
159
159
|
|
|
160
|
+
## `RubricConfigure` (object)
|
|
161
|
+
|
|
162
|
+
Properties of the `RubricConfigure` object:
|
|
163
|
+
|
|
164
|
+
### `settingsPanelDisabled` (boolean)
|
|
165
|
+
|
|
166
|
+
Indicates if the settings panel is not available
|
|
167
|
+
|
|
168
|
+
### `showExcludeZero` (object)
|
|
169
|
+
|
|
170
|
+
Properties of the `showExcludeZero` object:
|
|
171
|
+
|
|
172
|
+
#### `settings` (boolean)
|
|
173
|
+
|
|
174
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
175
|
+
|
|
176
|
+
#### `label` (string)
|
|
177
|
+
|
|
178
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
179
|
+
|
|
180
|
+
### `showMaxPoint` (object)
|
|
181
|
+
|
|
182
|
+
Properties of the `showMaxPoint` object:
|
|
183
|
+
|
|
184
|
+
#### `settings` (boolean)
|
|
185
|
+
|
|
186
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
187
|
+
|
|
188
|
+
#### `label` (string)
|
|
189
|
+
|
|
190
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
191
|
+
|
|
192
|
+
### `width` (string)
|
|
193
|
+
|
|
194
|
+
How large can the rubric be
|
|
195
|
+
|
|
196
|
+
### `showPrompt` (boolean)
|
|
197
|
+
|
|
198
|
+
Determines whether prompt field will be displayed or not
|
|
199
|
+
|
|
200
|
+
Default: `true`
|
|
201
|
+
|
|
202
|
+
### `promptLabel` (string)
|
|
203
|
+
|
|
204
|
+
The label for the item stem/prompt field
|
|
205
|
+
|
|
206
|
+
Default: `"Item Stemm"`
|
|
207
|
+
|
|
208
|
+
### `settingsPartialScoring` (boolean)
|
|
209
|
+
|
|
210
|
+
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
|
211
|
+
|
|
212
|
+
Default: `true`
|
|
213
|
+
|
|
214
|
+
## `ConfigureProp` (object)
|
|
215
|
+
|
|
216
|
+
Properties of the `ConfigureProp` object:
|
|
217
|
+
|
|
218
|
+
### `settings` (boolean)
|
|
219
|
+
|
|
220
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
221
|
+
|
|
222
|
+
### `label` (string)
|
|
223
|
+
|
|
224
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
225
|
+
|
|
160
226
|
## `MultiTraitRubricConfigure` (object)
|
|
161
227
|
|
|
162
228
|
Config Object for @pie-elements/multi-trait-rubric
|
|
@@ -307,6 +373,10 @@ Minimum number of scales
|
|
|
307
373
|
|
|
308
374
|
Maximum number of scales
|
|
309
375
|
|
|
376
|
+
### `defaultTraitLabel` (string)
|
|
377
|
+
|
|
378
|
+
The default trait label for new created scales
|
|
379
|
+
|
|
310
380
|
## `DialogContent` (object)
|
|
311
381
|
|
|
312
382
|
Properties of the `DialogContent` object:
|
|
@@ -319,18 +389,6 @@ Dialog box title
|
|
|
319
389
|
|
|
320
390
|
Dialog box text
|
|
321
391
|
|
|
322
|
-
## `ConfigureProp` (object)
|
|
323
|
-
|
|
324
|
-
Properties of the `ConfigureProp` object:
|
|
325
|
-
|
|
326
|
-
### `settings` (boolean)
|
|
327
|
-
|
|
328
|
-
Indicates if the item has to be displayed in the Settings Panel
|
|
329
|
-
|
|
330
|
-
### `label` (string)
|
|
331
|
-
|
|
332
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
333
|
-
|
|
334
392
|
## `RubricType` (string)
|
|
335
393
|
|
|
336
394
|
## `RubricModels` (object)
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
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.
|
|
11
|
-
"@pie-element/rubric": "^2.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^2.7.0",
|
|
11
|
+
"@pie-element/rubric": "^2.6.0",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"@pie-lib/rubric": "^0.7.12",
|
|
14
14
|
"classnames": "^2.2.5",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"lodash": "^4.17.11",
|
|
17
17
|
"prop-types": "^15.7.2"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "0b9d7319130f9923ce54f97d62386aa28dd89f9e",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|