@pie-element/complex-rubric 2.3.2-next.2 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/configure/CHANGELOG.md +11 -0
- package/configure/lib/main.js +19 -6
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +3 -3
- package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +45 -0
- package/configure/src/main.jsx +13 -3
- package/controller/CHANGELOG.md +12 -0
- package/controller/package.json +2 -2
- package/module/configure.js +26 -11
- package/module/element.js +5 -2
- package/module/print.js +5 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.3.1...@pie-element/complex-rubric@2.3.2) (2024-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* adjust width for complex-rubric selection options and add styles on hover PD-3463 ([bc5ef47](https://github.com/pie-framework/pie-elements/commit/bc5ef477d462ec9abd3111e57c9a001fe4dafd98))
|
|
12
|
+
* pie-lib/pie-toolbox with slate updates ([a8f8707](https://github.com/pie-framework/pie-elements/commit/a8f8707b2c197c2b40fb6632cee0ba4c27aa9aa4))
|
|
13
|
+
* update pie-lib/pie-toolbox ([cec328c](https://github.com/pie-framework/pie-elements/commit/cec328caf5b69d9fee00473c502aed62d6e27462))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [2.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.3.0...@pie-element/complex-rubric@2.3.1) (2024-02-12)
|
|
7
20
|
|
|
8
21
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [2.1.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.13...@pie-element/complex-rubric-configure@2.1.14) (2024-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* adjust width for complex-rubric selection options and add styles on hover PD-3463 ([bc5ef47](https://github.com/pie-framework/pie-elements/commit/bc5ef477d462ec9abd3111e57c9a001fe4dafd98))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.1.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.12...@pie-element/complex-rubric-configure@2.1.13) (2024-02-12)
|
|
7
18
|
|
|
8
19
|
|
package/configure/lib/main.js
CHANGED
|
@@ -33,9 +33,9 @@ var _Radio = _interopRequireDefault(require("@material-ui/core/Radio"));
|
|
|
33
33
|
|
|
34
34
|
var _RadioGroup = _interopRequireDefault(require("@material-ui/core/RadioGroup"));
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel"));
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _styles = require("@material-ui/core/styles");
|
|
39
39
|
|
|
40
40
|
var _rubricLabels;
|
|
41
41
|
|
|
@@ -47,7 +47,16 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
47
47
|
|
|
48
48
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
49
49
|
|
|
50
|
-
var styles = {
|
|
50
|
+
var styles = {
|
|
51
|
+
root: {
|
|
52
|
+
width: 'fit-content',
|
|
53
|
+
paddingRight: '24px',
|
|
54
|
+
boxSizing: 'border-box',
|
|
55
|
+
'&:hover': {
|
|
56
|
+
background: 'var(--pie-secondary-background, rgba(241,241,241,1))'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
51
60
|
var rubricLabels = (_rubricLabels = {}, (0, _defineProperty2["default"])(_rubricLabels, _rubric.RUBRIC_TYPES.MULTI_TRAIT_RUBRIC, 'Multi Trait Rubric'), (0, _defineProperty2["default"])(_rubricLabels, _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC, 'Simple Rubric'), (0, _defineProperty2["default"])(_rubricLabels, _rubric.RUBRIC_TYPES.RUBRICLESS, 'Rubricless'), _rubricLabels);
|
|
52
61
|
|
|
53
62
|
var Main = /*#__PURE__*/function (_React$Component) {
|
|
@@ -88,7 +97,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
88
97
|
var _this$props = this.props,
|
|
89
98
|
model = _this$props.model,
|
|
90
99
|
configuration = _this$props.configuration,
|
|
91
|
-
canUpdateModel = _this$props.canUpdateModel
|
|
100
|
+
canUpdateModel = _this$props.canUpdateModel,
|
|
101
|
+
classes = _this$props.classes;
|
|
92
102
|
|
|
93
103
|
var _ref = model || {},
|
|
94
104
|
_ref$rubrics = _ref.rubrics,
|
|
@@ -178,13 +188,16 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
178
188
|
value: model.rubricType,
|
|
179
189
|
onChange: this.onChangeRubricType
|
|
180
190
|
}, rubricOptions.length > 1 && rubricOptions.map(function (availableRubric, i) {
|
|
181
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
191
|
+
return /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], {
|
|
182
192
|
key: i,
|
|
183
193
|
value: availableRubric,
|
|
184
194
|
control: /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
185
195
|
checked: rubricType === availableRubric
|
|
186
196
|
}),
|
|
187
|
-
label: rubricLabels[availableRubric]
|
|
197
|
+
label: rubricLabels[availableRubric],
|
|
198
|
+
classes: {
|
|
199
|
+
root: classes.root
|
|
200
|
+
}
|
|
188
201
|
});
|
|
189
202
|
})), isRubricTypeAvailable && rubricTag);
|
|
190
203
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["styles","rubricLabels","RUBRIC_TYPES","MULTI_TRAIT_RUBRIC","SIMPLE_RUBRIC","RUBRICLESS","Main","model","onModelChanged","props","e","rubricType","target","value","configuration","canUpdateModel","rubrics","contentDimensions","rubricOptions","multiTraitRubric","simpleRubric","rubricless","
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["styles","root","width","paddingRight","boxSizing","background","rubricLabels","RUBRIC_TYPES","MULTI_TRAIT_RUBRIC","SIMPLE_RUBRIC","RUBRICLESS","Main","model","onModelChanged","props","e","rubricType","target","value","configuration","canUpdateModel","classes","rubrics","contentDimensions","rubricOptions","multiTraitRubric","simpleRubric","rubricless","rubricTag","isRubricTypeAvailable","indexOf","ref","errors","onChangeRubricType","length","map","availableRubric","i","React","Component","PropTypes","object","bool","func","onConfigurationChanged"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG;AACbC,EAAAA,IAAI,EAAE;AACJC,IAAAA,KAAK,EAAE,aADH;AAEJC,IAAAA,YAAY,EAAE,MAFV;AAGJC,IAAAA,SAAS,EAAE,YAHP;AAIJ,eAAW;AACTC,MAAAA,UAAU,EAAE;AADH;AAJP;AADO,CAAf;AAUA,IAAMC,YAAY,wEACfC,qBAAaC,kBADE,EACmB,oBADnB,mDAEfD,qBAAaE,aAFE,EAEc,eAFd,mDAGfF,qBAAaG,UAHE,EAGW,YAHX,iBAAlB;;IAMaC,I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FT;AAGjBvB,EAAAA,aAAa,EAAEqB,sBAAUC,MAHR;AAIjB7B,EAAAA,KAAK,EAAE4B,sBAAUC,MAJA;AAKjB5B,EAAAA,cAAc,EAAE2B,sBAAUG,IALT;AAMjBC,EAAAA,sBAAsB,EAAEJ,sBAAUG;AANjB,C;;eAsHN,wBAAW3C,MAAX,EAAmBW,IAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { RUBRIC_TYPES } from '@pie-lib/pie-toolbox/rubric';\nimport { layout } from '@pie-lib/pie-toolbox/config-ui';\nimport Radio from '@material-ui/core/Radio';\nimport RadioGroup from '@material-ui/core/RadioGroup';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport { withStyles } from '@material-ui/core/styles';\n\nconst styles = {\n root: {\n width: 'fit-content',\n paddingRight: '24px',\n boxSizing: 'border-box',\n '&:hover': {\n background: 'var(--pie-secondary-background, rgba(241,241,241,1))'\n }\n }\n};\nconst rubricLabels = {\n [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: 'Multi Trait Rubric',\n [RUBRIC_TYPES.SIMPLE_RUBRIC]: 'Simple Rubric',\n [RUBRIC_TYPES.RUBRICLESS]: 'Rubricless',\n};\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, classes } = this.props;\n\n const { rubrics = {} } = model || {};\n let { rubricType } = model;\n const { contentDimensions = {}, rubricOptions = [], multiTraitRubric, simpleRubric, rubricless, width } = configuration;\n let rubricTag = '';\n\n if (!rubricType) {\n rubricType = RUBRIC_TYPES.SIMPLE_RUBRIC;\n }\n\n const isRubricTypeAvailable = rubricOptions.indexOf(rubricType) > -1;\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, errors: model.errors || {}};\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, errors: model.errors || {} };\n this.multiTraitRubric.configuration = { ...multiTraitRubric, width: width || multiTraitRubric.width };\n }\n }}\n />\n );\n break;\n\n case RUBRIC_TYPES.RUBRICLESS:\n rubricTag = (\n <rubric-configure\n id=\"rubricless\"\n key=\"rubricless\"\n ref={(ref) => {\n if (ref) {\n this.rubricless = ref;\n\n this.rubricless.model = rubrics.rubricless;\n this.rubricless.configuration = { ...rubricless, 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 {\n rubricOptions.length > 1 && rubricOptions.map((availableRubric, i)=>\n <FormControlLabel\n key={i}\n value={availableRubric}\n control={<Radio checked={rubricType === availableRubric} />}\n label={rubricLabels[availableRubric]}\n classes={{ root: classes.root }}\n />\n )\n }\n </RadioGroup>\n\n {isRubricTypeAvailable && rubricTag}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.14",
|
|
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": "^3.3.
|
|
12
|
-
"@pie-element/rubric": "^3.2.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.3.1",
|
|
12
|
+
"@pie-element/rubric": "^3.2.1",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
14
|
"@pie-lib/config-ui": "^11.9.25-next.0",
|
|
15
15
|
"@pie-lib/editable-html": "^11.1.2-next.0",
|
|
@@ -13,6 +13,11 @@ exports[`Main snapshot renders 1`] = `
|
|
|
13
13
|
value="simpleRubric"
|
|
14
14
|
>
|
|
15
15
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
16
|
+
classes={
|
|
17
|
+
Object {
|
|
18
|
+
"root": undefined,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
16
21
|
control={
|
|
17
22
|
<WithStyles(Radio)
|
|
18
23
|
checked={true}
|
|
@@ -23,6 +28,11 @@ exports[`Main snapshot renders 1`] = `
|
|
|
23
28
|
value="simpleRubric"
|
|
24
29
|
/>
|
|
25
30
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
31
|
+
classes={
|
|
32
|
+
Object {
|
|
33
|
+
"root": undefined,
|
|
34
|
+
}
|
|
35
|
+
}
|
|
26
36
|
control={
|
|
27
37
|
<WithStyles(Radio)
|
|
28
38
|
checked={false}
|
|
@@ -33,6 +43,11 @@ exports[`Main snapshot renders 1`] = `
|
|
|
33
43
|
value="multiTraitRubric"
|
|
34
44
|
/>
|
|
35
45
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
46
|
+
classes={
|
|
47
|
+
Object {
|
|
48
|
+
"root": undefined,
|
|
49
|
+
}
|
|
50
|
+
}
|
|
36
51
|
control={
|
|
37
52
|
<WithStyles(Radio)
|
|
38
53
|
checked={false}
|
|
@@ -62,6 +77,11 @@ exports[`Main snapshot renders multi trait rubric 1`] = `
|
|
|
62
77
|
value="multiTraitRubric"
|
|
63
78
|
>
|
|
64
79
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
80
|
+
classes={
|
|
81
|
+
Object {
|
|
82
|
+
"root": undefined,
|
|
83
|
+
}
|
|
84
|
+
}
|
|
65
85
|
control={
|
|
66
86
|
<WithStyles(Radio)
|
|
67
87
|
checked={false}
|
|
@@ -72,6 +92,11 @@ exports[`Main snapshot renders multi trait rubric 1`] = `
|
|
|
72
92
|
value="simpleRubric"
|
|
73
93
|
/>
|
|
74
94
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
95
|
+
classes={
|
|
96
|
+
Object {
|
|
97
|
+
"root": undefined,
|
|
98
|
+
}
|
|
99
|
+
}
|
|
75
100
|
control={
|
|
76
101
|
<WithStyles(Radio)
|
|
77
102
|
checked={true}
|
|
@@ -82,6 +107,11 @@ exports[`Main snapshot renders multi trait rubric 1`] = `
|
|
|
82
107
|
value="multiTraitRubric"
|
|
83
108
|
/>
|
|
84
109
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
110
|
+
classes={
|
|
111
|
+
Object {
|
|
112
|
+
"root": undefined,
|
|
113
|
+
}
|
|
114
|
+
}
|
|
85
115
|
control={
|
|
86
116
|
<WithStyles(Radio)
|
|
87
117
|
checked={false}
|
|
@@ -111,6 +141,11 @@ exports[`Main snapshot renders simple rubric 1`] = `
|
|
|
111
141
|
value="simpleRubric"
|
|
112
142
|
>
|
|
113
143
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
144
|
+
classes={
|
|
145
|
+
Object {
|
|
146
|
+
"root": undefined,
|
|
147
|
+
}
|
|
148
|
+
}
|
|
114
149
|
control={
|
|
115
150
|
<WithStyles(Radio)
|
|
116
151
|
checked={true}
|
|
@@ -121,6 +156,11 @@ exports[`Main snapshot renders simple rubric 1`] = `
|
|
|
121
156
|
value="simpleRubric"
|
|
122
157
|
/>
|
|
123
158
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
159
|
+
classes={
|
|
160
|
+
Object {
|
|
161
|
+
"root": undefined,
|
|
162
|
+
}
|
|
163
|
+
}
|
|
124
164
|
control={
|
|
125
165
|
<WithStyles(Radio)
|
|
126
166
|
checked={false}
|
|
@@ -131,6 +171,11 @@ exports[`Main snapshot renders simple rubric 1`] = `
|
|
|
131
171
|
value="multiTraitRubric"
|
|
132
172
|
/>
|
|
133
173
|
<WithStyles(WithFormControlContext(FormControlLabel))
|
|
174
|
+
classes={
|
|
175
|
+
Object {
|
|
176
|
+
"root": undefined,
|
|
177
|
+
}
|
|
178
|
+
}
|
|
134
179
|
control={
|
|
135
180
|
<WithStyles(Radio)
|
|
136
181
|
checked={false}
|
package/configure/src/main.jsx
CHANGED
|
@@ -4,10 +4,19 @@ import { RUBRIC_TYPES } from '@pie-lib/pie-toolbox/rubric';
|
|
|
4
4
|
import { layout } from '@pie-lib/pie-toolbox/config-ui';
|
|
5
5
|
import Radio from '@material-ui/core/Radio';
|
|
6
6
|
import RadioGroup from '@material-ui/core/RadioGroup';
|
|
7
|
+
import FormControlLabel from '@material-ui/core/FormControlLabel';
|
|
7
8
|
import { withStyles } from '@material-ui/core/styles';
|
|
8
|
-
import { FormControlLabel } from '@material-ui/core';
|
|
9
9
|
|
|
10
|
-
const styles = {
|
|
10
|
+
const styles = {
|
|
11
|
+
root: {
|
|
12
|
+
width: 'fit-content',
|
|
13
|
+
paddingRight: '24px',
|
|
14
|
+
boxSizing: 'border-box',
|
|
15
|
+
'&:hover': {
|
|
16
|
+
background: 'var(--pie-secondary-background, rgba(241,241,241,1))'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
11
20
|
const rubricLabels = {
|
|
12
21
|
[RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: 'Multi Trait Rubric',
|
|
13
22
|
[RUBRIC_TYPES.SIMPLE_RUBRIC]: 'Simple Rubric',
|
|
@@ -38,7 +47,7 @@ export class Main extends React.Component {
|
|
|
38
47
|
};
|
|
39
48
|
|
|
40
49
|
render() {
|
|
41
|
-
const { model, configuration, canUpdateModel } = this.props;
|
|
50
|
+
const { model, configuration, canUpdateModel, classes } = this.props;
|
|
42
51
|
|
|
43
52
|
const { rubrics = {} } = model || {};
|
|
44
53
|
let { rubricType } = model;
|
|
@@ -121,6 +130,7 @@ export class Main extends React.Component {
|
|
|
121
130
|
value={availableRubric}
|
|
122
131
|
control={<Radio checked={rubricType === availableRubric} />}
|
|
123
132
|
label={rubricLabels[availableRubric]}
|
|
133
|
+
classes={{ root: classes.root }}
|
|
124
134
|
/>
|
|
125
135
|
)
|
|
126
136
|
}
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [2.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.2.0...@pie-element/complex-rubric-controller@2.2.1) (2024-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* pie-lib/pie-toolbox with slate updates ([a8f8707](https://github.com/pie-framework/pie-elements/commit/a8f8707b2c197c2b40fb6632cee0ba4c27aa9aa4))
|
|
12
|
+
* update pie-lib/pie-toolbox ([cec328c](https://github.com/pie-framework/pie-elements/commit/cec328caf5b69d9fee00473c502aed62d6e27462))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [2.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.1.10...@pie-element/complex-rubric-controller@2.2.0) (2024-02-09)
|
|
7
19
|
|
|
8
20
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/pie-toolbox": "1.
|
|
10
|
+
"@pie-lib/pie-toolbox": "1.7.1",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -229634,7 +229634,7 @@ const require$$16 = _dll_classnames;
|
|
|
229634
229634
|
}
|
|
229635
229635
|
};
|
|
229636
229636
|
})(function (_ref) {
|
|
229637
|
-
var label = _ref.label, classes = _ref.classes, onChange = _ref.onChange, value = _ref.value, className = _ref.className, imageSupport = _ref.imageSupport, disableImageAlignmentButtons = _ref.disableImageAlignmentButtons, disabled = _ref.disabled, spellCheck = _ref.spellCheck, nonEmpty = _ref.nonEmpty, toolbarOpts = _ref.toolbarOpts, error = _ref.error, maxImageWidth = _ref.maxImageWidth, maxImageHeight = _ref.maxImageHeight, uploadSoundSupport = _ref.uploadSoundSupport, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions;
|
|
229637
|
+
var label = _ref.label, classes = _ref.classes, onChange = _ref.onChange, value = _ref.value, className = _ref.className, imageSupport = _ref.imageSupport, disableImageAlignmentButtons = _ref.disableImageAlignmentButtons, disabled = _ref.disabled, spellCheck = _ref.spellCheck, nonEmpty = _ref.nonEmpty, pluginOpts = _ref.pluginOpts, toolbarOpts = _ref.toolbarOpts, error = _ref.error, maxImageWidth = _ref.maxImageWidth, maxImageHeight = _ref.maxImageHeight, uploadSoundSupport = _ref.uploadSoundSupport, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions;
|
|
229638
229638
|
var names = (0, _classnames["default"])(classes.labelContainer, className);
|
|
229639
229639
|
return _react["default"].createElement(_renderUi.InputContainer, {
|
|
229640
229640
|
label: label,
|
|
@@ -229650,6 +229650,7 @@ const require$$16 = _dll_classnames;
|
|
|
229650
229650
|
imageSupport: imageSupport,
|
|
229651
229651
|
disableImageAlignmentButtons: disableImageAlignmentButtons,
|
|
229652
229652
|
className: classes.editor,
|
|
229653
|
+
pluginProps: pluginOpts || ({}),
|
|
229653
229654
|
toolbarOpts: toolbarOpts,
|
|
229654
229655
|
error: error,
|
|
229655
229656
|
maxImageWidth: maxImageWidth,
|
|
@@ -229764,7 +229765,7 @@ const require$$16 = _dll_classnames;
|
|
|
229764
229765
|
(0, _createClass2["default"])(ChoiceConfiguration, [{
|
|
229765
229766
|
key: "render",
|
|
229766
229767
|
value: function render() {
|
|
229767
|
-
var _this$props5 = this.props, data = _this$props5.data, classes = _this$props5.classes, mode = _this$props5.mode, onDelete = _this$props5.onDelete, defaultFeedback = _this$props5.defaultFeedback, index = _this$props5.index, className = _this$props5.className, noLabels = _this$props5.noLabels, useLetterOrdering = _this$props5.useLetterOrdering, imageSupport = _this$props5.imageSupport, disableImageAlignmentButtons = _this$props5.disableImageAlignmentButtons, disabled = _this$props5.disabled, spellCheck = _this$props5.spellCheck, nonEmpty = _this$props5.nonEmpty, allowFeedBack = _this$props5.allowFeedBack, allowDelete = _this$props5.allowDelete, toolbarOpts = _this$props5.toolbarOpts, error = _this$props5.error, noCorrectAnswerError = _this$props5.noCorrectAnswerError, uploadSoundSupport = _this$props5.uploadSoundSupport, maxImageWidth = _this$props5.maxImageWidth, maxImageHeight = _this$props5.maxImageHeight, _this$props5$mathMlOp = _this$props5.mathMlOptions, mathMlOptions = _this$props5$mathMlOp === void 0 ? {} : _this$props5$mathMlOp;
|
|
229768
|
+
var _this$props5 = this.props, data = _this$props5.data, classes = _this$props5.classes, mode = _this$props5.mode, onDelete = _this$props5.onDelete, defaultFeedback = _this$props5.defaultFeedback, index = _this$props5.index, className = _this$props5.className, noLabels = _this$props5.noLabels, useLetterOrdering = _this$props5.useLetterOrdering, imageSupport = _this$props5.imageSupport, disableImageAlignmentButtons = _this$props5.disableImageAlignmentButtons, disabled = _this$props5.disabled, spellCheck = _this$props5.spellCheck, nonEmpty = _this$props5.nonEmpty, allowFeedBack = _this$props5.allowFeedBack, allowDelete = _this$props5.allowDelete, pluginOpts = _this$props5.pluginOpts, toolbarOpts = _this$props5.toolbarOpts, error = _this$props5.error, noCorrectAnswerError = _this$props5.noCorrectAnswerError, uploadSoundSupport = _this$props5.uploadSoundSupport, maxImageWidth = _this$props5.maxImageWidth, maxImageHeight = _this$props5.maxImageHeight, _this$props5$mathMlOp = _this$props5.mathMlOptions, mathMlOptions = _this$props5$mathMlOp === void 0 ? {} : _this$props5$mathMlOp;
|
|
229768
229769
|
var InputToggle = mode === 'checkbox' ? _inputs.InputCheckbox : _inputs.InputRadio;
|
|
229769
229770
|
var names = (0, _classnames["default"])(classes.choiceConfiguration, className);
|
|
229770
229771
|
return _react["default"].createElement("div", {
|
|
@@ -229792,6 +229793,7 @@ const require$$16 = _dll_classnames;
|
|
|
229792
229793
|
disabled: disabled,
|
|
229793
229794
|
spellCheck: spellCheck,
|
|
229794
229795
|
nonEmpty: nonEmpty,
|
|
229796
|
+
pluginOpts: pluginOpts,
|
|
229795
229797
|
toolbarOpts: toolbarOpts,
|
|
229796
229798
|
error: error,
|
|
229797
229799
|
uploadSoundSupport: uploadSoundSupport,
|
|
@@ -229858,6 +229860,7 @@ const require$$16 = _dll_classnames;
|
|
|
229858
229860
|
allowDelete: _propTypes["default"].bool,
|
|
229859
229861
|
noCorrectAnswerError: _propTypes["default"].string,
|
|
229860
229862
|
spellCheck: _propTypes["default"].bool,
|
|
229863
|
+
pluginOpts: _propTypes["default"].object,
|
|
229861
229864
|
toolbarOpts: _propTypes["default"].object,
|
|
229862
229865
|
uploadSoundSupport: _propTypes["default"].object,
|
|
229863
229866
|
maxImageWidth: _propTypes["default"].number,
|
|
@@ -232619,7 +232622,16 @@ const React$1 = _dll_react;
|
|
|
232619
232622
|
const PropTypes = _dll_prop_types;
|
|
232620
232623
|
const {layout: layout} = _dll_pie_lib__pie_toolbox_config_ui;
|
|
232621
232624
|
const _jsxFileName = "/home/circleci/repo/packages/complex-rubric/configure/src/main.jsx";
|
|
232622
|
-
const styles = {
|
|
232625
|
+
const styles = {
|
|
232626
|
+
root: {
|
|
232627
|
+
width: 'fit-content',
|
|
232628
|
+
paddingRight: '24px',
|
|
232629
|
+
boxSizing: 'border-box',
|
|
232630
|
+
'&:hover': {
|
|
232631
|
+
background: 'var(--pie-secondary-background, rgba(241,241,241,1))'
|
|
232632
|
+
}
|
|
232633
|
+
}
|
|
232634
|
+
};
|
|
232623
232635
|
const rubricLabels = {
|
|
232624
232636
|
[rubric$1.RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: 'Multi Trait Rubric',
|
|
232625
232637
|
[rubric$1.RUBRIC_TYPES.SIMPLE_RUBRIC]: 'Simple Rubric',
|
|
@@ -232658,7 +232670,7 @@ class Main extends React$1.Component {
|
|
|
232658
232670
|
};
|
|
232659
232671
|
}
|
|
232660
232672
|
render() {
|
|
232661
|
-
const {model, configuration, canUpdateModel} = this.props;
|
|
232673
|
+
const {model, configuration, canUpdateModel, classes} = this.props;
|
|
232662
232674
|
const {rubrics = {}} = model || ({});
|
|
232663
232675
|
let {rubricType} = model;
|
|
232664
232676
|
const {contentDimensions = {}, rubricOptions = [], multiTraitRubric, simpleRubric, rubricless, width} = configuration;
|
|
@@ -232690,7 +232702,7 @@ class Main extends React$1.Component {
|
|
|
232690
232702
|
__self: this,
|
|
232691
232703
|
__source: {
|
|
232692
232704
|
fileName: _jsxFileName,
|
|
232693
|
-
lineNumber:
|
|
232705
|
+
lineNumber: 68
|
|
232694
232706
|
}
|
|
232695
232707
|
});
|
|
232696
232708
|
break;
|
|
@@ -232714,7 +232726,7 @@ class Main extends React$1.Component {
|
|
|
232714
232726
|
__self: this,
|
|
232715
232727
|
__source: {
|
|
232716
232728
|
fileName: _jsxFileName,
|
|
232717
|
-
lineNumber:
|
|
232729
|
+
lineNumber: 84
|
|
232718
232730
|
}
|
|
232719
232731
|
});
|
|
232720
232732
|
break;
|
|
@@ -232735,7 +232747,7 @@ class Main extends React$1.Component {
|
|
|
232735
232747
|
__self: this,
|
|
232736
232748
|
__source: {
|
|
232737
232749
|
fileName: _jsxFileName,
|
|
232738
|
-
lineNumber:
|
|
232750
|
+
lineNumber: 101
|
|
232739
232751
|
}
|
|
232740
232752
|
});
|
|
232741
232753
|
break;
|
|
@@ -232748,7 +232760,7 @@ class Main extends React$1.Component {
|
|
|
232748
232760
|
__self: this,
|
|
232749
232761
|
__source: {
|
|
232750
232762
|
fileName: _jsxFileName,
|
|
232751
|
-
lineNumber:
|
|
232763
|
+
lineNumber: 119
|
|
232752
232764
|
}
|
|
232753
232765
|
}, React$1.createElement(RadioGroup, {
|
|
232754
232766
|
'aria-label': "rubric-type",
|
|
@@ -232758,7 +232770,7 @@ class Main extends React$1.Component {
|
|
|
232758
232770
|
__self: this,
|
|
232759
232771
|
__source: {
|
|
232760
232772
|
fileName: _jsxFileName,
|
|
232761
|
-
lineNumber:
|
|
232773
|
+
lineNumber: 120
|
|
232762
232774
|
}
|
|
232763
232775
|
}, rubricOptions.length > 1 && rubricOptions.map((availableRubric, i) => React$1.createElement(FormControlLabel, {
|
|
232764
232776
|
key: i,
|
|
@@ -232768,14 +232780,17 @@ class Main extends React$1.Component {
|
|
|
232768
232780
|
__self: this,
|
|
232769
232781
|
__source: {
|
|
232770
232782
|
fileName: _jsxFileName,
|
|
232771
|
-
lineNumber:
|
|
232783
|
+
lineNumber: 131
|
|
232772
232784
|
}
|
|
232773
232785
|
}),
|
|
232774
232786
|
label: rubricLabels[availableRubric],
|
|
232787
|
+
classes: {
|
|
232788
|
+
root: classes.root
|
|
232789
|
+
},
|
|
232775
232790
|
__self: this,
|
|
232776
232791
|
__source: {
|
|
232777
232792
|
fileName: _jsxFileName,
|
|
232778
|
-
lineNumber:
|
|
232793
|
+
lineNumber: 128
|
|
232779
232794
|
}
|
|
232780
232795
|
}))), isRubricTypeAvailable && rubricTag);
|
|
232781
232796
|
}
|
package/module/element.js
CHANGED
|
@@ -227882,7 +227882,7 @@ const require$$16 = _dll_classnames;
|
|
|
227882
227882
|
}
|
|
227883
227883
|
};
|
|
227884
227884
|
})(function (_ref) {
|
|
227885
|
-
var label = _ref.label, classes = _ref.classes, onChange = _ref.onChange, value = _ref.value, className = _ref.className, imageSupport = _ref.imageSupport, disableImageAlignmentButtons = _ref.disableImageAlignmentButtons, disabled = _ref.disabled, spellCheck = _ref.spellCheck, nonEmpty = _ref.nonEmpty, toolbarOpts = _ref.toolbarOpts, error = _ref.error, maxImageWidth = _ref.maxImageWidth, maxImageHeight = _ref.maxImageHeight, uploadSoundSupport = _ref.uploadSoundSupport, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions;
|
|
227885
|
+
var label = _ref.label, classes = _ref.classes, onChange = _ref.onChange, value = _ref.value, className = _ref.className, imageSupport = _ref.imageSupport, disableImageAlignmentButtons = _ref.disableImageAlignmentButtons, disabled = _ref.disabled, spellCheck = _ref.spellCheck, nonEmpty = _ref.nonEmpty, pluginOpts = _ref.pluginOpts, toolbarOpts = _ref.toolbarOpts, error = _ref.error, maxImageWidth = _ref.maxImageWidth, maxImageHeight = _ref.maxImageHeight, uploadSoundSupport = _ref.uploadSoundSupport, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions;
|
|
227886
227886
|
var names = (0, _classnames["default"])(classes.labelContainer, className);
|
|
227887
227887
|
return _react["default"].createElement(_renderUi.InputContainer, {
|
|
227888
227888
|
label: label,
|
|
@@ -227898,6 +227898,7 @@ const require$$16 = _dll_classnames;
|
|
|
227898
227898
|
imageSupport: imageSupport,
|
|
227899
227899
|
disableImageAlignmentButtons: disableImageAlignmentButtons,
|
|
227900
227900
|
className: classes.editor,
|
|
227901
|
+
pluginProps: pluginOpts || ({}),
|
|
227901
227902
|
toolbarOpts: toolbarOpts,
|
|
227902
227903
|
error: error,
|
|
227903
227904
|
maxImageWidth: maxImageWidth,
|
|
@@ -228012,7 +228013,7 @@ const require$$16 = _dll_classnames;
|
|
|
228012
228013
|
(0, _createClass2["default"])(ChoiceConfiguration, [{
|
|
228013
228014
|
key: "render",
|
|
228014
228015
|
value: function render() {
|
|
228015
|
-
var _this$props5 = this.props, data = _this$props5.data, classes = _this$props5.classes, mode = _this$props5.mode, onDelete = _this$props5.onDelete, defaultFeedback = _this$props5.defaultFeedback, index = _this$props5.index, className = _this$props5.className, noLabels = _this$props5.noLabels, useLetterOrdering = _this$props5.useLetterOrdering, imageSupport = _this$props5.imageSupport, disableImageAlignmentButtons = _this$props5.disableImageAlignmentButtons, disabled = _this$props5.disabled, spellCheck = _this$props5.spellCheck, nonEmpty = _this$props5.nonEmpty, allowFeedBack = _this$props5.allowFeedBack, allowDelete = _this$props5.allowDelete, toolbarOpts = _this$props5.toolbarOpts, error = _this$props5.error, noCorrectAnswerError = _this$props5.noCorrectAnswerError, uploadSoundSupport = _this$props5.uploadSoundSupport, maxImageWidth = _this$props5.maxImageWidth, maxImageHeight = _this$props5.maxImageHeight, _this$props5$mathMlOp = _this$props5.mathMlOptions, mathMlOptions = _this$props5$mathMlOp === void 0 ? {} : _this$props5$mathMlOp;
|
|
228016
|
+
var _this$props5 = this.props, data = _this$props5.data, classes = _this$props5.classes, mode = _this$props5.mode, onDelete = _this$props5.onDelete, defaultFeedback = _this$props5.defaultFeedback, index = _this$props5.index, className = _this$props5.className, noLabels = _this$props5.noLabels, useLetterOrdering = _this$props5.useLetterOrdering, imageSupport = _this$props5.imageSupport, disableImageAlignmentButtons = _this$props5.disableImageAlignmentButtons, disabled = _this$props5.disabled, spellCheck = _this$props5.spellCheck, nonEmpty = _this$props5.nonEmpty, allowFeedBack = _this$props5.allowFeedBack, allowDelete = _this$props5.allowDelete, pluginOpts = _this$props5.pluginOpts, toolbarOpts = _this$props5.toolbarOpts, error = _this$props5.error, noCorrectAnswerError = _this$props5.noCorrectAnswerError, uploadSoundSupport = _this$props5.uploadSoundSupport, maxImageWidth = _this$props5.maxImageWidth, maxImageHeight = _this$props5.maxImageHeight, _this$props5$mathMlOp = _this$props5.mathMlOptions, mathMlOptions = _this$props5$mathMlOp === void 0 ? {} : _this$props5$mathMlOp;
|
|
228016
228017
|
var InputToggle = mode === 'checkbox' ? _inputs.InputCheckbox : _inputs.InputRadio;
|
|
228017
228018
|
var names = (0, _classnames["default"])(classes.choiceConfiguration, className);
|
|
228018
228019
|
return _react["default"].createElement("div", {
|
|
@@ -228040,6 +228041,7 @@ const require$$16 = _dll_classnames;
|
|
|
228040
228041
|
disabled: disabled,
|
|
228041
228042
|
spellCheck: spellCheck,
|
|
228042
228043
|
nonEmpty: nonEmpty,
|
|
228044
|
+
pluginOpts: pluginOpts,
|
|
228043
228045
|
toolbarOpts: toolbarOpts,
|
|
228044
228046
|
error: error,
|
|
228045
228047
|
uploadSoundSupport: uploadSoundSupport,
|
|
@@ -228106,6 +228108,7 @@ const require$$16 = _dll_classnames;
|
|
|
228106
228108
|
allowDelete: _propTypes["default"].bool,
|
|
228107
228109
|
noCorrectAnswerError: _propTypes["default"].string,
|
|
228108
228110
|
spellCheck: _propTypes["default"].bool,
|
|
228111
|
+
pluginOpts: _propTypes["default"].object,
|
|
228109
228112
|
toolbarOpts: _propTypes["default"].object,
|
|
228110
228113
|
uploadSoundSupport: _propTypes["default"].object,
|
|
228111
228114
|
maxImageWidth: _propTypes["default"].number,
|
package/module/print.js
CHANGED
|
@@ -227882,7 +227882,7 @@ const require$$16 = _dll_classnames;
|
|
|
227882
227882
|
}
|
|
227883
227883
|
};
|
|
227884
227884
|
})(function (_ref) {
|
|
227885
|
-
var label = _ref.label, classes = _ref.classes, onChange = _ref.onChange, value = _ref.value, className = _ref.className, imageSupport = _ref.imageSupport, disableImageAlignmentButtons = _ref.disableImageAlignmentButtons, disabled = _ref.disabled, spellCheck = _ref.spellCheck, nonEmpty = _ref.nonEmpty, toolbarOpts = _ref.toolbarOpts, error = _ref.error, maxImageWidth = _ref.maxImageWidth, maxImageHeight = _ref.maxImageHeight, uploadSoundSupport = _ref.uploadSoundSupport, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions;
|
|
227885
|
+
var label = _ref.label, classes = _ref.classes, onChange = _ref.onChange, value = _ref.value, className = _ref.className, imageSupport = _ref.imageSupport, disableImageAlignmentButtons = _ref.disableImageAlignmentButtons, disabled = _ref.disabled, spellCheck = _ref.spellCheck, nonEmpty = _ref.nonEmpty, pluginOpts = _ref.pluginOpts, toolbarOpts = _ref.toolbarOpts, error = _ref.error, maxImageWidth = _ref.maxImageWidth, maxImageHeight = _ref.maxImageHeight, uploadSoundSupport = _ref.uploadSoundSupport, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions;
|
|
227886
227886
|
var names = (0, _classnames["default"])(classes.labelContainer, className);
|
|
227887
227887
|
return _react["default"].createElement(_renderUi.InputContainer, {
|
|
227888
227888
|
label: label,
|
|
@@ -227898,6 +227898,7 @@ const require$$16 = _dll_classnames;
|
|
|
227898
227898
|
imageSupport: imageSupport,
|
|
227899
227899
|
disableImageAlignmentButtons: disableImageAlignmentButtons,
|
|
227900
227900
|
className: classes.editor,
|
|
227901
|
+
pluginProps: pluginOpts || ({}),
|
|
227901
227902
|
toolbarOpts: toolbarOpts,
|
|
227902
227903
|
error: error,
|
|
227903
227904
|
maxImageWidth: maxImageWidth,
|
|
@@ -228012,7 +228013,7 @@ const require$$16 = _dll_classnames;
|
|
|
228012
228013
|
(0, _createClass2["default"])(ChoiceConfiguration, [{
|
|
228013
228014
|
key: "render",
|
|
228014
228015
|
value: function render() {
|
|
228015
|
-
var _this$props5 = this.props, data = _this$props5.data, classes = _this$props5.classes, mode = _this$props5.mode, onDelete = _this$props5.onDelete, defaultFeedback = _this$props5.defaultFeedback, index = _this$props5.index, className = _this$props5.className, noLabels = _this$props5.noLabels, useLetterOrdering = _this$props5.useLetterOrdering, imageSupport = _this$props5.imageSupport, disableImageAlignmentButtons = _this$props5.disableImageAlignmentButtons, disabled = _this$props5.disabled, spellCheck = _this$props5.spellCheck, nonEmpty = _this$props5.nonEmpty, allowFeedBack = _this$props5.allowFeedBack, allowDelete = _this$props5.allowDelete, toolbarOpts = _this$props5.toolbarOpts, error = _this$props5.error, noCorrectAnswerError = _this$props5.noCorrectAnswerError, uploadSoundSupport = _this$props5.uploadSoundSupport, maxImageWidth = _this$props5.maxImageWidth, maxImageHeight = _this$props5.maxImageHeight, _this$props5$mathMlOp = _this$props5.mathMlOptions, mathMlOptions = _this$props5$mathMlOp === void 0 ? {} : _this$props5$mathMlOp;
|
|
228016
|
+
var _this$props5 = this.props, data = _this$props5.data, classes = _this$props5.classes, mode = _this$props5.mode, onDelete = _this$props5.onDelete, defaultFeedback = _this$props5.defaultFeedback, index = _this$props5.index, className = _this$props5.className, noLabels = _this$props5.noLabels, useLetterOrdering = _this$props5.useLetterOrdering, imageSupport = _this$props5.imageSupport, disableImageAlignmentButtons = _this$props5.disableImageAlignmentButtons, disabled = _this$props5.disabled, spellCheck = _this$props5.spellCheck, nonEmpty = _this$props5.nonEmpty, allowFeedBack = _this$props5.allowFeedBack, allowDelete = _this$props5.allowDelete, pluginOpts = _this$props5.pluginOpts, toolbarOpts = _this$props5.toolbarOpts, error = _this$props5.error, noCorrectAnswerError = _this$props5.noCorrectAnswerError, uploadSoundSupport = _this$props5.uploadSoundSupport, maxImageWidth = _this$props5.maxImageWidth, maxImageHeight = _this$props5.maxImageHeight, _this$props5$mathMlOp = _this$props5.mathMlOptions, mathMlOptions = _this$props5$mathMlOp === void 0 ? {} : _this$props5$mathMlOp;
|
|
228016
228017
|
var InputToggle = mode === 'checkbox' ? _inputs.InputCheckbox : _inputs.InputRadio;
|
|
228017
228018
|
var names = (0, _classnames["default"])(classes.choiceConfiguration, className);
|
|
228018
228019
|
return _react["default"].createElement("div", {
|
|
@@ -228040,6 +228041,7 @@ const require$$16 = _dll_classnames;
|
|
|
228040
228041
|
disabled: disabled,
|
|
228041
228042
|
spellCheck: spellCheck,
|
|
228042
228043
|
nonEmpty: nonEmpty,
|
|
228044
|
+
pluginOpts: pluginOpts,
|
|
228043
228045
|
toolbarOpts: toolbarOpts,
|
|
228044
228046
|
error: error,
|
|
228045
228047
|
uploadSoundSupport: uploadSoundSupport,
|
|
@@ -228106,6 +228108,7 @@ const require$$16 = _dll_classnames;
|
|
|
228106
228108
|
allowDelete: _propTypes["default"].bool,
|
|
228107
228109
|
noCorrectAnswerError: _propTypes["default"].string,
|
|
228108
228110
|
spellCheck: _propTypes["default"].bool,
|
|
228111
|
+
pluginOpts: _propTypes["default"].object,
|
|
228109
228112
|
toolbarOpts: _propTypes["default"].object,
|
|
228110
228113
|
uploadSoundSupport: _propTypes["default"].object,
|
|
228111
228114
|
maxImageWidth: _propTypes["default"].number,
|
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": "2.3.2
|
|
4
|
+
"version": "2.3.2",
|
|
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": "^3.3.1
|
|
11
|
-
"@pie-element/rubric": "^3.2.1
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.3.1",
|
|
11
|
+
"@pie-element/rubric": "^3.2.1",
|
|
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": "96b02afbc7ab4112eb8213c47e5513adf60c80fe",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|