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

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.
@@ -99,6 +99,7 @@ var _default = {
99
99
  }
100
100
  },
101
101
  configuration: {
102
+ // width: '770px',
102
103
  multiTraitRubric: multiTraitDefaultConfiguration,
103
104
  simpleRubric: rubricDefaultConfiguration
104
105
  }
@@ -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"],"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;AA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A,KAAK,EAAE;AAFM,GA3EsB;AA+ErCU,EAAAA,iBAAiB,EAAE;AACjBT,IAAAA,QAAQ,EAAE,KADO;AAEjBD,IAAAA,KAAK,EAAE,sBAFU;AAGjBE,IAAAA,OAAO,EAAE;AAHQ,GA/EkB;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;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"}
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,EAAAA,2BAA2B,EAAE;AAC3BF,IAAAA,KAAK,EAAE,yCADoB;AAE3BC,IAAAA,IAAI;AAFuB,GApBQ;AAsCrCE,EAAAA,2BAA2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,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"}
@@ -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 = _objectSpread({}, rubrics.multiTraitRubric);
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;AAC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mB,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"}
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,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,CAAQ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AFR;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"}
@@ -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
  },
@@ -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 } = model;
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 = { ...rubrics.multiTraitRubric };
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>
@@ -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,
@@ -209,9 +280,92 @@
209
280
  }
210
281
  },
211
282
  "required": [
212
- "multiTraitRubric"
283
+ "multiTraitRubric",
284
+ "simpleRubric"
213
285
  ],
214
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
+ },
215
369
  "MultiTraitRubricConfigure": {
216
370
  "description": "Config Object for @pie-elements/multi-trait-rubric",
217
371
  "additionalProperties": false,
@@ -433,22 +587,6 @@
433
587
  "title": "text"
434
588
  }
435
589
  }
436
- },
437
- "ConfigureProp": {
438
- "title": "ConfigureProp",
439
- "type": "object",
440
- "properties": {
441
- "settings": {
442
- "description": "Indicates if the item has to be displayed in the Settings Panel",
443
- "type": "boolean",
444
- "title": "settings"
445
- },
446
- "label": {
447
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
448
- "type": "string",
449
- "title": "label"
450
- }
451
- }
452
590
  }
453
591
  },
454
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
@@ -160,6 +218,72 @@ The default trait label for new created scales
160
218
 
161
219
  The schema defines the following additional types:
162
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
+
163
287
  ## `MultiTraitRubricConfigure` (object)
164
288
 
165
289
  Config Object for @pie-elements/multi-trait-rubric
@@ -324,16 +448,4 @@ Dialog box title
324
448
 
325
449
  ### `text` (string)
326
450
 
327
- Dialog box text
328
-
329
- ## `ConfigureProp` (object)
330
-
331
- Properties of the `ConfigureProp` object:
332
-
333
- ### `settings` (boolean)
334
-
335
- Indicates if the item has to be displayed in the Settings Panel
336
-
337
- ### `label` (string)
338
-
339
- Indicates the label for the item that has to be displayed in the Settings Panel
451
+ Dialog box text
@@ -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,
@@ -460,22 +542,6 @@
460
542
  }
461
543
  }
462
544
  },
463
- "ConfigureProp": {
464
- "title": "ConfigureProp",
465
- "type": "object",
466
- "properties": {
467
- "settings": {
468
- "description": "Indicates if the item has to be displayed in the Settings Panel",
469
- "type": "boolean",
470
- "title": "settings"
471
- },
472
- "label": {
473
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
474
- "type": "string",
475
- "title": "label"
476
- }
477
- }
478
- },
479
545
  "RubricType": {
480
546
  "title": "RubricType",
481
547
  "enum": [
@@ -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
@@ -323,18 +389,6 @@ Dialog box title
323
389
 
324
390
  Dialog box text
325
391
 
326
- ## `ConfigureProp` (object)
327
-
328
- Properties of the `ConfigureProp` object:
329
-
330
- ### `settings` (boolean)
331
-
332
- Indicates if the item has to be displayed in the Settings Panel
333
-
334
- ### `label` (string)
335
-
336
- Indicates the label for the item that has to be displayed in the Settings Panel
337
-
338
392
  ## `RubricType` (string)
339
393
 
340
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.5.1-next.55+f823b7736",
4
+ "version": "1.5.1-next.65+1040f4124",
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.55+f823b7736",
11
- "@pie-element/rubric": "^2.4.1-next.55+f823b7736",
10
+ "@pie-element/multi-trait-rubric": "^2.5.1-next.65+1040f4124",
11
+ "@pie-element/rubric": "^2.4.1-next.65+1040f4124",
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": "f823b773669541eccfeb074a728947d478580fb0",
19
+ "gitHead": "1040f412440d5abfdcaeb1ddae84cda110a80102",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },