@pie-element/complex-rubric 1.7.10-next.41 → 1.8.1
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 +33 -0
- package/configure/CHANGELOG.md +31 -0
- package/configure/lib/main.js +5 -2
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +8 -7
- package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +3 -0
- package/configure/src/main.jsx +4 -3
- package/controller/CHANGELOG.md +16 -0
- package/controller/lib/index.js +1 -1
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/controller/src/index.js +1 -1
- package/docs/config-schema.json +88 -0
- package/docs/config-schema.json.md +68 -0
- package/docs/demo/generate.js +1 -1
- package/docs/pie-schema.json +44 -0
- package/docs/pie-schema.json.md +34 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
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.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.8.0...@pie-element/complex-rubric@1.8.1) (2023-04-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **complex-rubric:** missing lib ([88f69b1](https://github.com/pie-framework/pie-elements/commit/88f69b1cf92033424e6df153e0a9f7f6328a7f63))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.7.9...@pie-element/complex-rubric@1.8.0) (2023-04-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-libs ([b7d3e7f](https://github.com/pie-framework/pie-elements/commit/b7d3e7f7160aafd5dcfed2960bc6c2f03dba2180))
|
|
23
|
+
* **all elements:** fix eslint problems-PD-2732 ([eaeabfb](https://github.com/pie-framework/pie-elements/commit/eaeabfbbe3a868a1f9828ef831a7ea864dee75a9))
|
|
24
|
+
* add tests back ([286b458](https://github.com/pie-framework/pie-elements/commit/286b458727b8680df397c5e932cc0fa23d702ef4))
|
|
25
|
+
* remove tests to see if they cause build break ([a0b0046](https://github.com/pie-framework/pie-elements/commit/a0b00464cd0859dbd3803c4629a88e8eb78bbae7))
|
|
26
|
+
* remove usage of pie-lib/rubric to test webpack build ([50fa5dc](https://github.com/pie-framework/pie-elements/commit/50fa5dcae7ffcedfd5d6560ffc8519839d167658))
|
|
27
|
+
* update pie-libs ([6738269](https://github.com/pie-framework/pie-elements/commit/6738269d878f24ec4429f210d18bbf591123a55f))
|
|
28
|
+
* update pie-libs ([9f05be1](https://github.com/pie-framework/pie-elements/commit/9f05be1ae6bf0a9651739b6bef7eca32ecabb4ce))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* added the ability to set min/max width and height for the content PD-2425 ([befba3a](https://github.com/pie-framework/pie-elements/commit/befba3a8fa23e8dd21a3e3f63f306bd6dfc35bdd))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
## [1.7.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@1.7.8...@pie-element/complex-rubric@1.7.9) (2023-03-30)
|
|
7
40
|
|
|
8
41
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
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.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.7.0...@pie-element/complex-rubric-configure@1.7.1) (2023-04-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **complex-rubric:** missing lib ([88f69b1](https://github.com/pie-framework/pie-elements/commit/88f69b1cf92033424e6df153e0a9f7f6328a7f63))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.6.8...@pie-element/complex-rubric-configure@1.7.0) (2023-04-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-libs ([b7d3e7f](https://github.com/pie-framework/pie-elements/commit/b7d3e7f7160aafd5dcfed2960bc6c2f03dba2180))
|
|
23
|
+
* **all elements:** fix eslint problems-PD-2732 ([eaeabfb](https://github.com/pie-framework/pie-elements/commit/eaeabfbbe3a868a1f9828ef831a7ea864dee75a9))
|
|
24
|
+
* remove usage of pie-lib/rubric to test webpack build ([50fa5dc](https://github.com/pie-framework/pie-elements/commit/50fa5dcae7ffcedfd5d6560ffc8519839d167658))
|
|
25
|
+
* update pie-libs ([6738269](https://github.com/pie-framework/pie-elements/commit/6738269d878f24ec4429f210d18bbf591123a55f))
|
|
26
|
+
* update pie-libs ([9f05be1](https://github.com/pie-framework/pie-elements/commit/9f05be1ae6bf0a9651739b6bef7eca32ecabb4ce))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* added the ability to set min/max width and height for the content PD-2425 ([befba3a](https://github.com/pie-framework/pie-elements/commit/befba3a8fa23e8dd21a3e3f63f306bd6dfc35bdd))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
6
37
|
## [1.6.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@1.6.7...@pie-element/complex-rubric-configure@1.6.8) (2023-03-30)
|
|
7
38
|
|
|
8
39
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
package/configure/lib/main.js
CHANGED
|
@@ -83,14 +83,15 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
83
83
|
var _this2 = this;
|
|
84
84
|
|
|
85
85
|
var _this$props = this.props,
|
|
86
|
-
classes = _this$props.classes,
|
|
87
86
|
model = _this$props.model,
|
|
88
87
|
configuration = _this$props.configuration,
|
|
89
88
|
canUpdateModel = _this$props.canUpdateModel;
|
|
90
89
|
var _model$rubrics = model.rubrics,
|
|
91
90
|
rubrics = _model$rubrics === void 0 ? {} : _model$rubrics;
|
|
92
91
|
var rubricType = model.rubricType;
|
|
93
|
-
var
|
|
92
|
+
var _configuration$conten = configuration.contentDimensions,
|
|
93
|
+
contentDimensions = _configuration$conten === void 0 ? {} : _configuration$conten,
|
|
94
|
+
multiTraitRubric = configuration.multiTraitRubric,
|
|
94
95
|
simpleRubric = configuration.simpleRubric,
|
|
95
96
|
width = configuration.width;
|
|
96
97
|
var rubricTag = '';
|
|
@@ -137,6 +138,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
141
|
+
dimensions: contentDimensions,
|
|
140
142
|
hideSettings: true,
|
|
141
143
|
settings: null
|
|
142
144
|
}, /*#__PURE__*/_react["default"].createElement(_RadioGroup["default"], {
|
|
@@ -165,6 +167,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
165
167
|
exports.Main = Main;
|
|
166
168
|
(0, _defineProperty2["default"])(Main, "propTypes", {
|
|
167
169
|
classes: _propTypes["default"].object,
|
|
170
|
+
canUpdateModel: _propTypes["default"].bool,
|
|
168
171
|
configuration: _propTypes["default"].object,
|
|
169
172
|
model: _propTypes["default"].object,
|
|
170
173
|
onModelChanged: _propTypes["default"].func,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["styles","Main","model","onModelChanged","props","e","rubricType","target","value","
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["styles","Main","model","onModelChanged","props","e","rubricType","target","value","configuration","canUpdateModel","rubrics","contentDimensions","multiTraitRubric","simpleRubric","width","rubricTag","RUBRIC_TYPES","SIMPLE_RUBRIC","ref","MULTI_TRAIT_RUBRIC","onChangeRubricType","React","Component","classes","PropTypes","object","bool","func","onConfigurationChanged"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG,EAAf;;IAEaC,I;;;;;;;;;;;;;;;uGAUM,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,wBAAiD,KAAKF,KAAtD;AAAA,UAAQF,KAAR,eAAQA,KAAR;AAAA,UAAeO,aAAf,eAAeA,aAAf;AAAA,UAA8BC,cAA9B,eAA8BA,cAA9B;AACA,2BAAyBR,KAAzB,CAAQS,OAAR;AAAA,UAAQA,OAAR,+BAAkB,EAAlB;AACA,UAAML,UAAN,GAAqBJ,KAArB,CAAMI,UAAN;AACA,kCAA0EG,aAA1E,CAAQG,iBAAR;AAAA,UAAQA,iBAAR,sCAA4B,EAA5B;AAAA,UAAgCC,gBAAhC,GAA0EJ,aAA1E,CAAgCI,gBAAhC;AAAA,UAAkDC,YAAlD,GAA0EL,aAA1E,CAAkDK,YAAlD;AAAA,UAAgEC,KAAh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BAAD;AACE,sBAAW,aADb;AAEE,QAAA,IAAI,EAAC,YAFP;AAGE,QAAA,KAAK,EAAEV,KAAK,CAACI,UAHf;AAIE,QAAA,QAAQ,EAAE,KAAKe;AAJjB,sBAME,gCAAC,sBAAD;AACE,QAAA,KAAK,EAAEJ,qBAAaC,aADtB;AAEE,QAAA,OAAO,eAAE,gCAAC,iBAAD;AAAO,UAAA,OAAO,EAAEZ,UAAU,KAAKW,qBAAaC;AAA5C,UAFX;AAGE,QAAA,KAAK,EAAC;AAHR,QANF,eAYE,gCAAC,sBAAD;AACE,QAAA,KAAK,EAAED,qBAAaG,kBADtB;AAEE,QAAA,OAAO,eAAE,gCAAC,iBAAD;AAAO,UAAA,OAAO,EAAEd,UAAU,KAAKW,qBAAaG;AAA5C,UAFX;AAGE,QAAA,KAAK,EAAC;AAHR,QAZF,CADF,EAoBGJ,SApBH,CADF;AAwBD;;;EAhGuBM,kBAAMC,S;;;iCAAnBtB,I,eACQ;AACjBuB,EAAAA,OAAO,EAAEC,sBAAUC,MADF;AAEjBhB,EAAAA,cAAc,EAAEe,sBAAUE,IAFT;AAGjBlB,EAAAA,aAAa,EAAEgB,sBAAUC,MAHR;AAIjBxB,EAAAA,KAAK,EAAEuB,sBAAUC,MAJA;AAKjBvB,EAAAA,cAAc,EAAEsB,sBAAUG,IALT;AAMjBC,EAAAA,sBAAsB,EAAEJ,sBAAUG;AANjB,C;;eAkGN,wBAAW5B,MAAX,EAAmBC,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\nexport class Main extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n canUpdateModel: PropTypes.bool,\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 { model, configuration, canUpdateModel } = this.props;\n const { rubrics = {} } = model;\n let { rubricType } = model;\n const { contentDimensions = {}, multiTraitRubric, simpleRubric, width } = configuration;\n let rubricTag = '';\n\n if (!rubricType) {\n rubricType = RUBRIC_TYPES.SIMPLE_RUBRIC;\n }\n\n if (canUpdateModel) {\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\n this.multiTraitRubric.model = rubrics.multiTraitRubric;\n this.multiTraitRubric.configuration = { ...multiTraitRubric, width };\n }\n }}\n />\n );\n break;\n }\n }\n\n return (\n <layout.ConfigLayout dimensions={contentDimensions} hideSettings={true} settings={null}>\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\n {rubricTag}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.1",
|
|
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.10.0",
|
|
12
|
+
"@pie-element/rubric": "^2.8.0",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
|
-
"@pie-lib/config-ui": "^11.6.
|
|
15
|
-
"@pie-lib/editable-html": "^9.5.
|
|
16
|
-
"@pie-lib/render-ui": "^4.14.
|
|
17
|
-
"@pie-lib/
|
|
14
|
+
"@pie-lib/config-ui": "^11.6.1",
|
|
15
|
+
"@pie-lib/editable-html": "^9.5.20",
|
|
16
|
+
"@pie-lib/render-ui": "^4.14.20",
|
|
17
|
+
"@pie-lib/rubric": "^0.7.20",
|
|
18
|
+
"@pie-lib/scoring-config": "^3.6.22",
|
|
18
19
|
"debug": "^4.1.1",
|
|
19
20
|
"lodash": "^4.17.15",
|
|
20
21
|
"prop-types": "^15.6.2",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Main snapshot renders 1`] = `
|
|
4
4
|
<ConfigLayout
|
|
5
|
+
dimensions={Object {}}
|
|
5
6
|
hideSettings={true}
|
|
6
7
|
settings={null}
|
|
7
8
|
>
|
|
@@ -39,6 +40,7 @@ exports[`Main snapshot renders 1`] = `
|
|
|
39
40
|
|
|
40
41
|
exports[`Main snapshot renders multi trait rubric 1`] = `
|
|
41
42
|
<ConfigLayout
|
|
43
|
+
dimensions={Object {}}
|
|
42
44
|
hideSettings={true}
|
|
43
45
|
settings={null}
|
|
44
46
|
>
|
|
@@ -76,6 +78,7 @@ exports[`Main snapshot renders multi trait rubric 1`] = `
|
|
|
76
78
|
|
|
77
79
|
exports[`Main snapshot renders simple rubric 1`] = `
|
|
78
80
|
<ConfigLayout
|
|
81
|
+
dimensions={Object {}}
|
|
79
82
|
hideSettings={true}
|
|
80
83
|
settings={null}
|
|
81
84
|
>
|
package/configure/src/main.jsx
CHANGED
|
@@ -12,6 +12,7 @@ const styles = {};
|
|
|
12
12
|
export class Main extends React.Component {
|
|
13
13
|
static propTypes = {
|
|
14
14
|
classes: PropTypes.object,
|
|
15
|
+
canUpdateModel: PropTypes.bool,
|
|
15
16
|
configuration: PropTypes.object,
|
|
16
17
|
model: PropTypes.object,
|
|
17
18
|
onModelChanged: PropTypes.func,
|
|
@@ -32,10 +33,10 @@ export class Main extends React.Component {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
render() {
|
|
35
|
-
const {
|
|
36
|
+
const { model, configuration, canUpdateModel } = this.props;
|
|
36
37
|
const { rubrics = {} } = model;
|
|
37
38
|
let { rubricType } = model;
|
|
38
|
-
const { multiTraitRubric, simpleRubric, width } = configuration;
|
|
39
|
+
const { contentDimensions = {}, multiTraitRubric, simpleRubric, width } = configuration;
|
|
39
40
|
let rubricTag = '';
|
|
40
41
|
|
|
41
42
|
if (!rubricType) {
|
|
@@ -81,7 +82,7 @@ export class Main extends React.Component {
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
return (
|
|
84
|
-
<layout.ConfigLayout hideSettings={true} settings={null}>
|
|
85
|
+
<layout.ConfigLayout dimensions={contentDimensions} hideSettings={true} settings={null}>
|
|
85
86
|
<RadioGroup
|
|
86
87
|
aria-label="rubric-type"
|
|
87
88
|
name="rubricType"
|
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.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@1.5.3...@pie-element/complex-rubric-controller@1.5.4) (2023-04-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **all elements:** fix eslint problems-PD-2732 ([eaeabfb](https://github.com/pie-framework/pie-elements/commit/eaeabfbbe3a868a1f9828ef831a7ea864dee75a9))
|
|
12
|
+
* add tests back ([286b458](https://github.com/pie-framework/pie-elements/commit/286b458727b8680df397c5e932cc0fa23d702ef4))
|
|
13
|
+
* remove tests to see if they cause build break ([a0b0046](https://github.com/pie-framework/pie-elements/commit/a0b00464cd0859dbd3803c4629a88e8eb78bbae7))
|
|
14
|
+
* remove usage of pie-lib/rubric to test webpack build ([50fa5dc](https://github.com/pie-framework/pie-elements/commit/50fa5dcae7ffcedfd5d6560ffc8519839d167658))
|
|
15
|
+
* update pie-libs ([6738269](https://github.com/pie-framework/pie-elements/commit/6738269d878f24ec4429f210d18bbf591123a55f))
|
|
16
|
+
* update pie-libs ([9f05be1](https://github.com/pie-framework/pie-elements/commit/9f05be1ae6bf0a9651739b6bef7eca32ecabb4ce))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@1.5.2...@pie-element/complex-rubric-controller@1.5.3) (2023-03-30)
|
|
7
23
|
|
|
8
24
|
|
package/controller/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["RUBRIC_TYPES","SIMPLE_RUBRIC","MULTI_TRAIT_RUBRIC","createDefaultModel","model","Promise","resolve","defaults","normalize","question","session","env","normalizedQuestion","rubricType","role","rubrics","multiTraitRubric","visible","visibleToStudent","scales","excludeZero","parsedScales","map","scale","simpleRubric","getScore","outcome","score","empty","createCorrectResponseSession","mode","id"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA;AACA,IAAMA,YAAY,GAAG;AACnBC,EAAAA,aAAa,EAAE,cADI;AAEnBC,EAAAA,kBAAkB,EAAE;AAFD,CAArB;;AAKO,SAASC,kBAAT,GAAwC;AAAA,MAAZC,KAAY,uEAAJ,EAAI;AAC7C,SAAO,IAAIC,OAAJ,CAAY,UAACC,OAAD;AAAA,WAAaA,OAAO,iCAAMC,qBAASH,KAAf,GAAyBA,KAAzB,EAApB;AAAA,GAAZ,CAAP;AACD;;AAEM,IAAMI,SAAS,GAAG,SAAZA,SAAY,CAACC,QAAD;AAAA,yCAAoBF,qBAASH,KAA7B,GAAuCK,QAAvC;AAAA,CAAlB;AAEP;AACA;AACA;AACA;AACA;;;;;SACsBL,K;;;;;yFAAf,iBAAqBK,QAArB,EAA+BC,OAA/B,EAAwCC,GAAxC;AAAA;;AAAA;AAAA;AAAA;AAAA;AACCC,YAAAA,kBADD,GACsBJ,SAAS,CAACC,QAAD,CAD/B;;AAAA,kBAGDG,kBAAkB,CAACC,UAAnB,KAAkCb,YAAY,CAACC,aAH9C;AAAA;AAAA;AAAA;;AAAA,6CAII,IAAII,OAAJ,CAAY,UAACC,OAAD,EAAa;AAC9BA,cAAAA,OAAO,CACLK,GAAG,IAAIA,GAAG,CAACG,IAAX,IAAmBH,GAAG,CAACG,IAAJ,KAAa,YAAhC,mCAEOF,kBAFP;AAGIG,gBAAAA,OAAO,kCACFH,kBAAkB,CAACG,OADjB;AAELC,kBAAAA,gBAAgB,kCACXJ,kBAAkB,CAACG,OAAnB,CAA2BC,gBADhB;AAEdC,oBA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
|
+
{"version":3,"sources":["../src/index.js"],"names":["RUBRIC_TYPES","SIMPLE_RUBRIC","MULTI_TRAIT_RUBRIC","createDefaultModel","model","Promise","resolve","defaults","normalize","question","session","env","normalizedQuestion","rubricType","role","rubrics","multiTraitRubric","visible","visibleToStudent","scales","excludeZero","parsedScales","map","scale","simpleRubric","getScore","outcome","score","empty","createCorrectResponseSession","mode","id"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA;AACA,IAAMA,YAAY,GAAG;AACnBC,EAAAA,aAAa,EAAE,cADI;AAEnBC,EAAAA,kBAAkB,EAAE;AAFD,CAArB;;AAKO,SAASC,kBAAT,GAAwC;AAAA,MAAZC,KAAY,uEAAJ,EAAI;AAC7C,SAAO,IAAIC,OAAJ,CAAY,UAACC,OAAD;AAAA,WAAaA,OAAO,iCAAMC,qBAASH,KAAf,GAAyBA,KAAzB,EAApB;AAAA,GAAZ,CAAP;AACD;;AAEM,IAAMI,SAAS,GAAG,SAAZA,SAAY,CAACC,QAAD;AAAA,yCAAoBF,qBAASH,KAA7B,GAAuCK,QAAvC;AAAA,CAAlB;AAEP;AACA;AACA;AACA;AACA;;;;;SACsBL,K;;;;;yFAAf,iBAAqBK,QAArB,EAA+BC,OAA/B,EAAwCC,GAAxC;AAAA;;AAAA;AAAA;AAAA;AAAA;AACCC,YAAAA,kBADD,GACsBJ,SAAS,CAACC,QAAD,CAD/B;;AAAA,kBAGDG,kBAAkB,CAACC,UAAnB,KAAkCb,YAAY,CAACC,aAH9C;AAAA;AAAA;AAAA;;AAAA,6CAII,IAAII,OAAJ,CAAY,UAACC,OAAD,EAAa;AAC9BA,cAAAA,OAAO,CACLK,GAAG,IAAIA,GAAG,CAACG,IAAX,IAAmBH,GAAG,CAACG,IAAJ,KAAa,YAAhC,mCAEOF,kBAFP;AAGIG,gBAAAA,OAAO,kCACFH,kBAAkB,CAACG,OADjB;AAELC,kBAAAA,gBAAgB,kCACXJ,kBAAkB,CAACG,OAAnB,CAA2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O,SAASC,OAAT,GAAmB;AACxB,SAAO,IAAIrB,OAAJ,CAAY,UAACC,OAAD;AAAA,WAAaA,OAAO,CAAC;AAAEqB,MAAAA,KAAK,EAAE,CAAT;AAAYC,MAAAA,KAAK,EAAE;AAAnB,KAAD,CAApB;AAAA,GAAZ,CAAP;AACD;;AAEM,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA+B,CAACpB,QAAD,EAAWE,GAAX,EAAmB;AAC7D,SAAO,IAAIN,OAAJ,CAAY,UAACC,OAAD,EAAa;AAC9B,QAAIK,GAAG,CAACmB,IAAJ,KAAa,UAAb,IAA2BnB,GAAG,CAACG,IAAJ,KAAa,YAA5C,EAA0D;AACxDR,MAAAA,OAAO,CAAC;AAAEyB,QAAAA,EAAE,EAAE;AAAN,OAAD,CAAP;AACD,KAFD,MAEO;AACLzB,MAAAA,OAAO,CAAC,IAAD,CAAP;AACD;AACF,GANM,CAAP;AAOD,CARM","sourcesContent":["import defaults from './defaults';\n\n// todo the import from pie-lib/rubric might break webpack\nconst RUBRIC_TYPES = {\n SIMPLE_RUBRIC: 'simpleRubric',\n MULTI_TRAIT_RUBRIC: 'multiTraitRubric',\n};\n\nexport function createDefaultModel(model = {}) {\n return new Promise((resolve) => resolve({ ...defaults.model, ...model }));\n}\n\nexport const normalize = (question) => ({ ...defaults.model, ...question });\n\n/**\n * @param {*} question\n * @param {*} session\n * @param {*} env\n */\nexport async function model(question, session, env) {\n const normalizedQuestion = normalize(question);\n\n if (normalizedQuestion.rubricType === RUBRIC_TYPES.SIMPLE_RUBRIC) {\n return new Promise((resolve) => {\n resolve(\n env && env.role && env.role === 'instructor'\n ? {\n ...normalizedQuestion,\n rubrics: {\n ...normalizedQuestion.rubrics,\n multiTraitRubric: {\n ...normalizedQuestion.rubrics.multiTraitRubric,\n visible: false,\n },\n },\n }\n : {},\n );\n });\n } else {\n if (\n !env.role ||\n (env.role === 'student' && normalizedQuestion.rubrics && normalizedQuestion.rubrics.multiTraitRubric)\n ) {\n normalizedQuestion.rubrics.multiTraitRubric.visible = normalizedQuestion.visibleToStudent;\n } else {\n normalizedQuestion.rubrics.multiTraitRubric.visible = true;\n }\n\n // todo update pie-ui instead of parsing this here:\n const { scales, excludeZero } = normalizedQuestion.rubrics.multiTraitRubric || {};\n const parsedScales = (scales || []).map((scale) => ({ ...scale, excludeZero }));\n\n return {\n ...normalizedQuestion,\n rubrics: {\n ...normalizedQuestion.rubrics,\n simpleRubric: {\n ...normalizedQuestion.rubrics.simpleRubric,\n visible: false,\n },\n multiTraitRubric: {\n ...normalizedQuestion.rubrics.multiTraitRubric,\n scales: parsedScales,\n },\n },\n };\n }\n}\n\nexport const getScore = () => 0;\n\n/**\n * @param {Object} model - the main model\n * @param {*} session\n * @param {Object} env\n */\nexport function outcome() {\n return new Promise((resolve) => resolve({ score: 0, empty: true }));\n}\n\nexport const createCorrectResponseSession = (question, env) => {\n return new Promise((resolve) => {\n if (env.mode !== 'evaluate' && env.role === 'instructor') {\n resolve({ id: '1' });\n } else {\n resolve(null);\n }\n });\n};\n"],"file":"index.js"}
|
package/controller/package.json
CHANGED
package/controller/src/index.js
CHANGED
package/docs/config-schema.json
CHANGED
|
@@ -64,6 +64,50 @@
|
|
|
64
64
|
"type": "string",
|
|
65
65
|
"title": "promptLabel"
|
|
66
66
|
},
|
|
67
|
+
"contentDimensions": {
|
|
68
|
+
"description": "Indicates the dimensions configuration for the authoring container\nNote: Some items have a default minimum width because of their content, but if\nthe minWidth is lower than this, the overflow behavior will take care of that",
|
|
69
|
+
"default": ": {}",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"maxHeight": {
|
|
73
|
+
"description": "Indicates the max height of the authoring container",
|
|
74
|
+
"default": "undefined",
|
|
75
|
+
"type": [
|
|
76
|
+
"string",
|
|
77
|
+
"number"
|
|
78
|
+
],
|
|
79
|
+
"title": "maxHeight"
|
|
80
|
+
},
|
|
81
|
+
"maxWidth": {
|
|
82
|
+
"description": "Indicates the max width of the authoring container",
|
|
83
|
+
"default": "undefined",
|
|
84
|
+
"type": [
|
|
85
|
+
"string",
|
|
86
|
+
"number"
|
|
87
|
+
],
|
|
88
|
+
"title": "maxWidth"
|
|
89
|
+
},
|
|
90
|
+
"minHeight": {
|
|
91
|
+
"description": "Indicates the min height of the authoring container",
|
|
92
|
+
"default": "undefined",
|
|
93
|
+
"type": [
|
|
94
|
+
"string",
|
|
95
|
+
"number"
|
|
96
|
+
],
|
|
97
|
+
"title": "minHeight"
|
|
98
|
+
},
|
|
99
|
+
"minWidth": {
|
|
100
|
+
"description": "Indicates the min width of the authoring container",
|
|
101
|
+
"default": "undefined",
|
|
102
|
+
"type": [
|
|
103
|
+
"string",
|
|
104
|
+
"number"
|
|
105
|
+
],
|
|
106
|
+
"title": "minWidth"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"title": "contentDimensions"
|
|
110
|
+
},
|
|
67
111
|
"settingsPartialScoring": {
|
|
68
112
|
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
69
113
|
"default": true,
|
|
@@ -342,6 +386,50 @@
|
|
|
342
386
|
"type": "string",
|
|
343
387
|
"title": "promptLabel"
|
|
344
388
|
},
|
|
389
|
+
"contentDimensions": {
|
|
390
|
+
"description": "Indicates the dimensions configuration for the authoring container\nNote: Some items have a default minimum width because of their content, but if\nthe minWidth is lower than this, the overflow behavior will take care of that",
|
|
391
|
+
"default": ": {}",
|
|
392
|
+
"type": "object",
|
|
393
|
+
"properties": {
|
|
394
|
+
"maxHeight": {
|
|
395
|
+
"description": "Indicates the max height of the authoring container",
|
|
396
|
+
"default": "undefined",
|
|
397
|
+
"type": [
|
|
398
|
+
"string",
|
|
399
|
+
"number"
|
|
400
|
+
],
|
|
401
|
+
"title": "maxHeight"
|
|
402
|
+
},
|
|
403
|
+
"maxWidth": {
|
|
404
|
+
"description": "Indicates the max width of the authoring container",
|
|
405
|
+
"default": "undefined",
|
|
406
|
+
"type": [
|
|
407
|
+
"string",
|
|
408
|
+
"number"
|
|
409
|
+
],
|
|
410
|
+
"title": "maxWidth"
|
|
411
|
+
},
|
|
412
|
+
"minHeight": {
|
|
413
|
+
"description": "Indicates the min height of the authoring container",
|
|
414
|
+
"default": "undefined",
|
|
415
|
+
"type": [
|
|
416
|
+
"string",
|
|
417
|
+
"number"
|
|
418
|
+
],
|
|
419
|
+
"title": "minHeight"
|
|
420
|
+
},
|
|
421
|
+
"minWidth": {
|
|
422
|
+
"description": "Indicates the min width of the authoring container",
|
|
423
|
+
"default": "undefined",
|
|
424
|
+
"type": [
|
|
425
|
+
"string",
|
|
426
|
+
"number"
|
|
427
|
+
],
|
|
428
|
+
"title": "minWidth"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"title": "contentDimensions"
|
|
432
|
+
},
|
|
345
433
|
"settingsPartialScoring": {
|
|
346
434
|
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
347
435
|
"default": true,
|
|
@@ -52,6 +52,40 @@ The label for the item stem/prompt field
|
|
|
52
52
|
|
|
53
53
|
Default: `"Item Stemm"`
|
|
54
54
|
|
|
55
|
+
## `contentDimensions` (object)
|
|
56
|
+
|
|
57
|
+
Indicates the dimensions configuration for the authoring container
|
|
58
|
+
Note: Some items have a default minimum width because of their content, but if
|
|
59
|
+
the minWidth is lower than this, the overflow behavior will take care of that
|
|
60
|
+
|
|
61
|
+
Properties of the `contentDimensions` object:
|
|
62
|
+
|
|
63
|
+
### `maxHeight` (string,number)
|
|
64
|
+
|
|
65
|
+
Indicates the max height of the authoring container
|
|
66
|
+
|
|
67
|
+
Default: `"undefined"`
|
|
68
|
+
|
|
69
|
+
### `maxWidth` (string,number)
|
|
70
|
+
|
|
71
|
+
Indicates the max width of the authoring container
|
|
72
|
+
|
|
73
|
+
Default: `"undefined"`
|
|
74
|
+
|
|
75
|
+
### `minHeight` (string,number)
|
|
76
|
+
|
|
77
|
+
Indicates the min height of the authoring container
|
|
78
|
+
|
|
79
|
+
Default: `"undefined"`
|
|
80
|
+
|
|
81
|
+
### `minWidth` (string,number)
|
|
82
|
+
|
|
83
|
+
Indicates the min width of the authoring container
|
|
84
|
+
|
|
85
|
+
Default: `"undefined"`
|
|
86
|
+
|
|
87
|
+
Default: `": {}"`
|
|
88
|
+
|
|
55
89
|
## `settingsPartialScoring` (boolean)
|
|
56
90
|
|
|
57
91
|
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
|
@@ -267,6 +301,40 @@ The label for the item stem/prompt field
|
|
|
267
301
|
|
|
268
302
|
Default: `"Item Stemm"`
|
|
269
303
|
|
|
304
|
+
### `contentDimensions` (object)
|
|
305
|
+
|
|
306
|
+
Indicates the dimensions configuration for the authoring container
|
|
307
|
+
Note: Some items have a default minimum width because of their content, but if
|
|
308
|
+
the minWidth is lower than this, the overflow behavior will take care of that
|
|
309
|
+
|
|
310
|
+
Properties of the `contentDimensions` object:
|
|
311
|
+
|
|
312
|
+
#### `maxHeight` (string,number)
|
|
313
|
+
|
|
314
|
+
Indicates the max height of the authoring container
|
|
315
|
+
|
|
316
|
+
Default: `"undefined"`
|
|
317
|
+
|
|
318
|
+
#### `maxWidth` (string,number)
|
|
319
|
+
|
|
320
|
+
Indicates the max width of the authoring container
|
|
321
|
+
|
|
322
|
+
Default: `"undefined"`
|
|
323
|
+
|
|
324
|
+
#### `minHeight` (string,number)
|
|
325
|
+
|
|
326
|
+
Indicates the min height of the authoring container
|
|
327
|
+
|
|
328
|
+
Default: `"undefined"`
|
|
329
|
+
|
|
330
|
+
#### `minWidth` (string,number)
|
|
331
|
+
|
|
332
|
+
Indicates the min width of the authoring container
|
|
333
|
+
|
|
334
|
+
Default: `"undefined"`
|
|
335
|
+
|
|
336
|
+
Default: `": {}"`
|
|
337
|
+
|
|
270
338
|
### `settingsPartialScoring` (boolean)
|
|
271
339
|
|
|
272
340
|
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
package/docs/demo/generate.js
CHANGED
|
@@ -141,7 +141,7 @@ exports.model = (id, element) => ({
|
|
|
141
141
|
{
|
|
142
142
|
name: 'Voice',
|
|
143
143
|
standards: [],
|
|
144
|
-
description:
|
|
144
|
+
description: 'the personal tone and flavor of the author\'s message',
|
|
145
145
|
scorePointsDescriptors: [
|
|
146
146
|
'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
|
|
147
147
|
'Not concerned with audience or purpose\n' +
|
package/docs/pie-schema.json
CHANGED
|
@@ -296,6 +296,50 @@
|
|
|
296
296
|
"type": "string",
|
|
297
297
|
"title": "promptLabel"
|
|
298
298
|
},
|
|
299
|
+
"contentDimensions": {
|
|
300
|
+
"description": "Indicates the dimensions configuration for the authoring container\nNote: Some items have a default minimum width because of their content, but if\nthe minWidth is lower than this, the overflow behavior will take care of that",
|
|
301
|
+
"default": ": {}",
|
|
302
|
+
"type": "object",
|
|
303
|
+
"properties": {
|
|
304
|
+
"maxHeight": {
|
|
305
|
+
"description": "Indicates the max height of the authoring container",
|
|
306
|
+
"default": "undefined",
|
|
307
|
+
"type": [
|
|
308
|
+
"string",
|
|
309
|
+
"number"
|
|
310
|
+
],
|
|
311
|
+
"title": "maxHeight"
|
|
312
|
+
},
|
|
313
|
+
"maxWidth": {
|
|
314
|
+
"description": "Indicates the max width of the authoring container",
|
|
315
|
+
"default": "undefined",
|
|
316
|
+
"type": [
|
|
317
|
+
"string",
|
|
318
|
+
"number"
|
|
319
|
+
],
|
|
320
|
+
"title": "maxWidth"
|
|
321
|
+
},
|
|
322
|
+
"minHeight": {
|
|
323
|
+
"description": "Indicates the min height of the authoring container",
|
|
324
|
+
"default": "undefined",
|
|
325
|
+
"type": [
|
|
326
|
+
"string",
|
|
327
|
+
"number"
|
|
328
|
+
],
|
|
329
|
+
"title": "minHeight"
|
|
330
|
+
},
|
|
331
|
+
"minWidth": {
|
|
332
|
+
"description": "Indicates the min width of the authoring container",
|
|
333
|
+
"default": "undefined",
|
|
334
|
+
"type": [
|
|
335
|
+
"string",
|
|
336
|
+
"number"
|
|
337
|
+
],
|
|
338
|
+
"title": "minWidth"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"title": "contentDimensions"
|
|
342
|
+
},
|
|
299
343
|
"settingsPartialScoring": {
|
|
300
344
|
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
301
345
|
"default": true,
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -205,6 +205,40 @@ The label for the item stem/prompt field
|
|
|
205
205
|
|
|
206
206
|
Default: `"Item Stemm"`
|
|
207
207
|
|
|
208
|
+
### `contentDimensions` (object)
|
|
209
|
+
|
|
210
|
+
Indicates the dimensions configuration for the authoring container
|
|
211
|
+
Note: Some items have a default minimum width because of their content, but if
|
|
212
|
+
the minWidth is lower than this, the overflow behavior will take care of that
|
|
213
|
+
|
|
214
|
+
Properties of the `contentDimensions` object:
|
|
215
|
+
|
|
216
|
+
#### `maxHeight` (string,number)
|
|
217
|
+
|
|
218
|
+
Indicates the max height of the authoring container
|
|
219
|
+
|
|
220
|
+
Default: `"undefined"`
|
|
221
|
+
|
|
222
|
+
#### `maxWidth` (string,number)
|
|
223
|
+
|
|
224
|
+
Indicates the max width of the authoring container
|
|
225
|
+
|
|
226
|
+
Default: `"undefined"`
|
|
227
|
+
|
|
228
|
+
#### `minHeight` (string,number)
|
|
229
|
+
|
|
230
|
+
Indicates the min height of the authoring container
|
|
231
|
+
|
|
232
|
+
Default: `"undefined"`
|
|
233
|
+
|
|
234
|
+
#### `minWidth` (string,number)
|
|
235
|
+
|
|
236
|
+
Indicates the min width of the authoring container
|
|
237
|
+
|
|
238
|
+
Default: `"undefined"`
|
|
239
|
+
|
|
240
|
+
Default: `": {}"`
|
|
241
|
+
|
|
208
242
|
### `settingsPartialScoring` (boolean)
|
|
209
243
|
|
|
210
244
|
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
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.10.0",
|
|
11
|
+
"@pie-element/rubric": "^2.8.0",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "4f0d146d15709604690318fd5ed6c20034552e9f",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|