@pie-element/complex-rubric 1.4.1-next.5 → 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.
- package/CHANGELOG.md +18 -0
- package/configure/CHANGELOG.md +18 -0
- package/configure/lib/defaults.js +0 -4
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/main.js +13 -8
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +8 -8
- package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +30 -15
- package/configure/src/defaults.js +0 -4
- package/configure/src/main.jsx +9 -7
- package/controller/CHANGELOG.md +16 -0
- package/controller/lib/defaults.js +0 -4
- package/controller/lib/defaults.js.map +1 -1
- package/controller/package.json +3 -3
- package/controller/src/defaults.js +0 -4
- package/docs/config-schema.json +40 -32
- package/docs/config-schema.json.md +32 -24
- package/docs/pie-schema.json +20 -16
- package/docs/pie-schema.json.md +16 -12
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.4.0...@pie-element/complex-rubric@1.5.0) (2023-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* tests ([af46516](https://github.com/pie-framework/pie-elements/commit/af4651698e0fb88353ccb89661c2e1cad6e31b19))
|
|
12
|
+
* **complex-rubric:** fix rubric type radio buttons PD-2492 ([19fdae2](https://github.com/pie-framework/pie-elements/commit/19fdae26ad76cd2d713e343a3b663181d7fccea3))
|
|
13
|
+
* **multi-trait-rubric:** fix validation bugs, update documentation. Fixed match docs typo PD-2427 ([26d598e](https://github.com/pie-framework/pie-elements/commit/26d598e7a32d50ed176d566605bb6b4ebdc07a2c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
# [1.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.3.1...@pie-element/complex-rubric@1.4.0) (2023-01-05)
|
|
7
25
|
|
|
8
26
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.3.0...@pie-element/complex-rubric-configure@1.4.0) (2023-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* tests ([af46516](https://github.com/pie-framework/pie-elements/commit/af4651698e0fb88353ccb89661c2e1cad6e31b19))
|
|
12
|
+
* **complex-rubric:** fix rubric type radio buttons PD-2492 ([19fdae2](https://github.com/pie-framework/pie-elements/commit/19fdae26ad76cd2d713e343a3b663181d7fccea3))
|
|
13
|
+
* **multi-trait-rubric:** fix validation bugs, update documentation. Fixed match docs typo PD-2427 ([26d598e](https://github.com/pie-framework/pie-elements/commit/26d598e7a32d50ed176d566605bb6b4ebdc07a2c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
# [1.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.2.7...@pie-element/complex-rubric-configure@1.3.0) (2023-01-05)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -29,10 +29,6 @@ var multiTraitDefaultConfiguration = {
|
|
|
29
29
|
title: 'Include 0 (Zero) in Score Point Values.',
|
|
30
30
|
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>"
|
|
31
31
|
},
|
|
32
|
-
deleteTraitDialogBoxContent: {
|
|
33
|
-
title: 'Delete Trait',
|
|
34
|
-
text: 'Are you sure you want to delete this trait?'
|
|
35
|
-
},
|
|
36
32
|
deleteScaleDialogBoxContent: {
|
|
37
33
|
title: 'Delete Scale',
|
|
38
34
|
text: 'Are you sure you want to delete this scale?'
|
|
@@ -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","
|
|
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,E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AAtD;AAFJ,GADM;AAKbwC,EAAAA,aAAa,EAAE;AACbD,IAAAA,gBAAgB,EAAE3B,8BADL;AAEb0B,IAAAA,YAAY,EAAEL;AAFD;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 multiTraitRubric: multiTraitDefaultConfiguration,\n simpleRubric: rubricDefaultConfiguration,\n },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/main.js
CHANGED
|
@@ -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
|
|
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:
|
|
@@ -137,18 +141,19 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
137
141
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_RadioGroup["default"], {
|
|
138
142
|
"aria-label": "rubric-type",
|
|
139
143
|
name: "rubricType",
|
|
140
|
-
value: rubricType,
|
|
141
|
-
defaultValue: _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC,
|
|
144
|
+
value: model.rubricType,
|
|
142
145
|
onChange: this.onChangeRubricType
|
|
143
146
|
}, /*#__PURE__*/_react["default"].createElement(_core.FormControlLabel, {
|
|
144
147
|
value: _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC,
|
|
145
|
-
control: /*#__PURE__*/_react["default"].createElement(_Radio["default"],
|
|
146
|
-
|
|
148
|
+
control: /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
149
|
+
checked: rubricType === _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC
|
|
150
|
+
}),
|
|
147
151
|
label: "Simple Rubric"
|
|
148
152
|
}), /*#__PURE__*/_react["default"].createElement(_core.FormControlLabel, {
|
|
149
153
|
value: _rubric.RUBRIC_TYPES.MULTI_TRAIT_RUBRIC,
|
|
150
|
-
control: /*#__PURE__*/_react["default"].createElement(_Radio["default"],
|
|
151
|
-
|
|
154
|
+
control: /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
155
|
+
checked: rubricType === _rubric.RUBRIC_TYPES.MULTI_TRAIT_RUBRIC
|
|
156
|
+
}),
|
|
152
157
|
label: "Multi Trait Rubric"
|
|
153
158
|
}))), /*#__PURE__*/_react["default"].createElement("div", null, rubricTag)));
|
|
154
159
|
}
|
|
@@ -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,
|
|
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,MAA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Aa,EAAEY,sBAAUC,MAFR;AAGjBrB,EAAAA,KAAK,EAAEoB,sBAAUC,MAHA;AAIjBpB,EAAAA,cAAc,EAAEmB,sBAAUE,IAJT;AAKjBC,EAAAA,sBAAsB,EAAEH,sBAAUE;AALjB,C;;eAkGN,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 { 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"}
|
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.4.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.5.0",
|
|
12
|
+
"@pie-element/rubric": "^2.4.0",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
|
-
"@pie-lib/config-ui": "
|
|
15
|
-
"@pie-lib/editable-html": "
|
|
16
|
-
"@pie-lib/render-ui": "^4.
|
|
17
|
-
"@pie-lib/rubric": "
|
|
18
|
-
"@pie-lib/scoring-config": "^3.
|
|
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",
|
|
@@ -9,20 +9,25 @@ exports[`Main snapshot renders 1`] = `
|
|
|
9
9
|
<div>
|
|
10
10
|
<RadioGroup
|
|
11
11
|
aria-label="rubric-type"
|
|
12
|
-
defaultValue="simpleRubric"
|
|
13
12
|
name="rubricType"
|
|
14
13
|
onChange={[Function]}
|
|
15
14
|
value="simpleRubric"
|
|
16
15
|
>
|
|
17
16
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
control={
|
|
18
|
+
<WithStyles(Radio)
|
|
19
|
+
checked={true}
|
|
20
|
+
/>
|
|
21
|
+
}
|
|
20
22
|
label="Simple Rubric"
|
|
21
23
|
value="simpleRubric"
|
|
22
24
|
/>
|
|
23
25
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
control={
|
|
27
|
+
<WithStyles(Radio)
|
|
28
|
+
checked={false}
|
|
29
|
+
/>
|
|
30
|
+
}
|
|
26
31
|
label="Multi Trait Rubric"
|
|
27
32
|
value="multiTraitRubric"
|
|
28
33
|
/>
|
|
@@ -47,20 +52,25 @@ exports[`Main snapshot renders multi trait rubric 1`] = `
|
|
|
47
52
|
<div>
|
|
48
53
|
<RadioGroup
|
|
49
54
|
aria-label="rubric-type"
|
|
50
|
-
defaultValue="simpleRubric"
|
|
51
55
|
name="rubricType"
|
|
52
56
|
onChange={[Function]}
|
|
53
57
|
value="multiTraitRubric"
|
|
54
58
|
>
|
|
55
59
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
control={
|
|
61
|
+
<WithStyles(Radio)
|
|
62
|
+
checked={false}
|
|
63
|
+
/>
|
|
64
|
+
}
|
|
58
65
|
label="Simple Rubric"
|
|
59
66
|
value="simpleRubric"
|
|
60
67
|
/>
|
|
61
68
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
control={
|
|
70
|
+
<WithStyles(Radio)
|
|
71
|
+
checked={true}
|
|
72
|
+
/>
|
|
73
|
+
}
|
|
64
74
|
label="Multi Trait Rubric"
|
|
65
75
|
value="multiTraitRubric"
|
|
66
76
|
/>
|
|
@@ -85,20 +95,25 @@ exports[`Main snapshot renders simple rubric 1`] = `
|
|
|
85
95
|
<div>
|
|
86
96
|
<RadioGroup
|
|
87
97
|
aria-label="rubric-type"
|
|
88
|
-
defaultValue="simpleRubric"
|
|
89
98
|
name="rubricType"
|
|
90
99
|
onChange={[Function]}
|
|
91
100
|
value="simpleRubric"
|
|
92
101
|
>
|
|
93
102
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
control={
|
|
104
|
+
<WithStyles(Radio)
|
|
105
|
+
checked={true}
|
|
106
|
+
/>
|
|
107
|
+
}
|
|
96
108
|
label="Simple Rubric"
|
|
97
109
|
value="simpleRubric"
|
|
98
110
|
/>
|
|
99
111
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
control={
|
|
113
|
+
<WithStyles(Radio)
|
|
114
|
+
checked={false}
|
|
115
|
+
/>
|
|
116
|
+
}
|
|
102
117
|
label="Multi Trait Rubric"
|
|
103
118
|
value="multiTraitRubric"
|
|
104
119
|
/>
|
|
@@ -53,10 +53,6 @@ const multiTraitDefaultConfiguration = {
|
|
|
53
53
|
</ul>
|
|
54
54
|
</div>`,
|
|
55
55
|
},
|
|
56
|
-
deleteTraitDialogBoxContent: {
|
|
57
|
-
title: 'Delete Trait',
|
|
58
|
-
text: 'Are you sure you want to delete this trait?',
|
|
59
|
-
},
|
|
60
56
|
deleteScaleDialogBoxContent: {
|
|
61
57
|
title: 'Delete Scale',
|
|
62
58
|
text: 'Are you sure you want to delete this scale?',
|
package/configure/src/main.jsx
CHANGED
|
@@ -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 {
|
|
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:
|
|
@@ -84,21 +89,18 @@ export class Main extends React.Component {
|
|
|
84
89
|
<RadioGroup
|
|
85
90
|
aria-label="rubric-type"
|
|
86
91
|
name="rubricType"
|
|
87
|
-
value={rubricType}
|
|
88
|
-
defaultValue={RUBRIC_TYPES.SIMPLE_RUBRIC}
|
|
92
|
+
value={model.rubricType}
|
|
89
93
|
onChange={this.onChangeRubricType}
|
|
90
94
|
>
|
|
91
95
|
<FormControlLabel
|
|
92
96
|
value={RUBRIC_TYPES.SIMPLE_RUBRIC}
|
|
93
|
-
control={<Radio />}
|
|
94
|
-
checked={rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC}
|
|
97
|
+
control={<Radio checked={rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC} />}
|
|
95
98
|
label="Simple Rubric"
|
|
96
99
|
/>
|
|
97
100
|
|
|
98
101
|
<FormControlLabel
|
|
99
102
|
value={RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}
|
|
100
|
-
control={<Radio />}
|
|
101
|
-
checked={rubricType === RUBRIC_TYPES.MULTI_TRAIT_RUBRIC}
|
|
103
|
+
control={<Radio checked={rubricType === RUBRIC_TYPES.MULTI_TRAIT_RUBRIC} />}
|
|
102
104
|
label="Multi Trait Rubric"
|
|
103
105
|
/>
|
|
104
106
|
</RadioGroup>
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@1.3.0...@pie-element/complex-rubric-controller@1.4.0) (2023-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **multi-trait-rubric:** fix validation bugs, update documentation. Fixed match docs typo PD-2427 ([26d598e](https://github.com/pie-framework/pie-elements/commit/26d598e7a32d50ed176d566605bb6b4ebdc07a2c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [1.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@1.2.4...@pie-element/complex-rubric-controller@1.3.0) (2023-01-05)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -29,10 +29,6 @@ var multiTraitDefaultConfiguration = {
|
|
|
29
29
|
title: 'Include 0 (Zero) in Score Point Values.',
|
|
30
30
|
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>"
|
|
31
31
|
},
|
|
32
|
-
deleteTraitDialogBoxContent: {
|
|
33
|
-
title: 'Delete Trait',
|
|
34
|
-
text: 'Are you sure you want to delete this trait?'
|
|
35
|
-
},
|
|
36
32
|
deleteScaleDialogBoxContent: {
|
|
37
33
|
title: 'Delete Scale',
|
|
38
34
|
text: 'Are you sure you want to delete this scale?'
|
|
@@ -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","
|
|
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;AAO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: 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 multiTraitRubric: multiTraitDefaultConfiguration,\n simpleRubric: rubricDefaultConfiguration,\n },\n};\n"],"file":"defaults.js"}
|
package/controller/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/controller-utils": "^0.2.
|
|
11
|
-
"@pie-lib/rubric": "
|
|
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": "",
|
|
@@ -53,10 +53,6 @@ const multiTraitDefaultConfiguration = {
|
|
|
53
53
|
</ul>
|
|
54
54
|
</div>`,
|
|
55
55
|
},
|
|
56
|
-
deleteTraitDialogBoxContent: {
|
|
57
|
-
title: 'Delete Trait',
|
|
58
|
-
text: 'Are you sure you want to delete this trait?',
|
|
59
|
-
},
|
|
60
56
|
deleteScaleDialogBoxContent: {
|
|
61
57
|
title: 'Delete Scale',
|
|
62
58
|
text: 'Are you sure you want to delete this scale?',
|
package/docs/config-schema.json
CHANGED
|
@@ -39,22 +39,6 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"deleteTraitDialogBoxContent": {
|
|
43
|
-
"title": "DialogContent",
|
|
44
|
-
"type": "object",
|
|
45
|
-
"properties": {
|
|
46
|
-
"title": {
|
|
47
|
-
"description": "Dialog box title",
|
|
48
|
-
"type": "string",
|
|
49
|
-
"title": "title"
|
|
50
|
-
},
|
|
51
|
-
"text": {
|
|
52
|
-
"description": "Dialog box text",
|
|
53
|
-
"type": "string",
|
|
54
|
-
"title": "text"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
42
|
"deleteScaleDialogBoxContent": {
|
|
59
43
|
"title": "DialogContent",
|
|
60
44
|
"type": "object",
|
|
@@ -192,6 +176,26 @@
|
|
|
192
176
|
"description": "How large (in px) should multi-trait-rubric be",
|
|
193
177
|
"type": "string",
|
|
194
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"
|
|
195
199
|
}
|
|
196
200
|
},
|
|
197
201
|
"required": [
|
|
@@ -241,22 +245,6 @@
|
|
|
241
245
|
}
|
|
242
246
|
}
|
|
243
247
|
},
|
|
244
|
-
"deleteTraitDialogBoxContent": {
|
|
245
|
-
"title": "DialogContent",
|
|
246
|
-
"type": "object",
|
|
247
|
-
"properties": {
|
|
248
|
-
"title": {
|
|
249
|
-
"description": "Dialog box title",
|
|
250
|
-
"type": "string",
|
|
251
|
-
"title": "title"
|
|
252
|
-
},
|
|
253
|
-
"text": {
|
|
254
|
-
"description": "Dialog box text",
|
|
255
|
-
"type": "string",
|
|
256
|
-
"title": "text"
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
248
|
"deleteScaleDialogBoxContent": {
|
|
261
249
|
"title": "DialogContent",
|
|
262
250
|
"type": "object",
|
|
@@ -394,6 +382,26 @@
|
|
|
394
382
|
"description": "How large (in px) should multi-trait-rubric be",
|
|
395
383
|
"type": "string",
|
|
396
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"
|
|
397
405
|
}
|
|
398
406
|
},
|
|
399
407
|
"required": [
|
|
@@ -30,18 +30,6 @@ Dialog box title
|
|
|
30
30
|
|
|
31
31
|
Dialog box text
|
|
32
32
|
|
|
33
|
-
## `deleteTraitDialogBoxContent` (object)
|
|
34
|
-
|
|
35
|
-
Properties of the `deleteTraitDialogBoxContent` object:
|
|
36
|
-
|
|
37
|
-
### `title` (string)
|
|
38
|
-
|
|
39
|
-
Dialog box title
|
|
40
|
-
|
|
41
|
-
### `text` (string)
|
|
42
|
-
|
|
43
|
-
Dialog box text
|
|
44
|
-
|
|
45
33
|
## `deleteScaleDialogBoxContent` (object)
|
|
46
34
|
|
|
47
35
|
Properties of the `deleteScaleDialogBoxContent` object:
|
|
@@ -146,6 +134,22 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
146
134
|
|
|
147
135
|
How large (in px) should multi-trait-rubric be
|
|
148
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
|
+
|
|
149
153
|
---
|
|
150
154
|
|
|
151
155
|
# Sub Schemas
|
|
@@ -182,18 +186,6 @@ Dialog box title
|
|
|
182
186
|
|
|
183
187
|
Dialog box text
|
|
184
188
|
|
|
185
|
-
### `deleteTraitDialogBoxContent` (object)
|
|
186
|
-
|
|
187
|
-
Properties of the `deleteTraitDialogBoxContent` object:
|
|
188
|
-
|
|
189
|
-
#### `title` (string)
|
|
190
|
-
|
|
191
|
-
Dialog box title
|
|
192
|
-
|
|
193
|
-
#### `text` (string)
|
|
194
|
-
|
|
195
|
-
Dialog box text
|
|
196
|
-
|
|
197
189
|
### `deleteScaleDialogBoxContent` (object)
|
|
198
190
|
|
|
199
191
|
Properties of the `deleteScaleDialogBoxContent` object:
|
|
@@ -298,6 +290,22 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
298
290
|
|
|
299
291
|
How large (in px) should multi-trait-rubric be
|
|
300
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
|
+
|
|
301
309
|
## `DialogContent` (object)
|
|
302
310
|
|
|
303
311
|
Properties of the `DialogContent` object:
|
package/docs/pie-schema.json
CHANGED
|
@@ -276,22 +276,6 @@
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
|
-
"deleteTraitDialogBoxContent": {
|
|
280
|
-
"title": "DialogContent",
|
|
281
|
-
"type": "object",
|
|
282
|
-
"properties": {
|
|
283
|
-
"title": {
|
|
284
|
-
"description": "Dialog box title",
|
|
285
|
-
"type": "string",
|
|
286
|
-
"title": "title"
|
|
287
|
-
},
|
|
288
|
-
"text": {
|
|
289
|
-
"description": "Dialog box text",
|
|
290
|
-
"type": "string",
|
|
291
|
-
"title": "text"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
279
|
"deleteScaleDialogBoxContent": {
|
|
296
280
|
"title": "DialogContent",
|
|
297
281
|
"type": "object",
|
|
@@ -429,6 +413,26 @@
|
|
|
429
413
|
"description": "How large (in px) should multi-trait-rubric be",
|
|
430
414
|
"type": "string",
|
|
431
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"
|
|
432
436
|
}
|
|
433
437
|
},
|
|
434
438
|
"required": [
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -187,18 +187,6 @@ Dialog box title
|
|
|
187
187
|
|
|
188
188
|
Dialog box text
|
|
189
189
|
|
|
190
|
-
### `deleteTraitDialogBoxContent` (object)
|
|
191
|
-
|
|
192
|
-
Properties of the `deleteTraitDialogBoxContent` object:
|
|
193
|
-
|
|
194
|
-
#### `title` (string)
|
|
195
|
-
|
|
196
|
-
Dialog box title
|
|
197
|
-
|
|
198
|
-
#### `text` (string)
|
|
199
|
-
|
|
200
|
-
Dialog box text
|
|
201
|
-
|
|
202
190
|
### `deleteScaleDialogBoxContent` (object)
|
|
203
191
|
|
|
204
192
|
Properties of the `deleteScaleDialogBoxContent` object:
|
|
@@ -303,6 +291,22 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
303
291
|
|
|
304
292
|
How large (in px) should multi-trait-rubric be
|
|
305
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
|
+
|
|
306
310
|
## `DialogContent` (object)
|
|
307
311
|
|
|
308
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.
|
|
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": "^
|
|
11
|
-
"@pie-element/rubric": "^
|
|
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": "
|
|
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": "
|
|
19
|
+
"gitHead": "449763c046b78327513c38ea5367b8d4da120760",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|