@pie-element/rubric 2.9.1-next.21 → 2.9.1-next.33
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/configure/lib/defaults.js +6 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/main.js +4 -1
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +2 -2
- package/configure/src/defaults.js +4 -0
- package/configure/src/main.jsx +2 -1
- package/docs/config-schema.json +32 -0
- package/docs/config-schema.json.md +25 -1
- package/docs/pie-schema.json +16 -0
- package/docs/pie-schema.json.md +13 -1
- package/package.json +3 -3
|
@@ -22,8 +22,12 @@ var _default = {
|
|
|
22
22
|
settings: true,
|
|
23
23
|
label: 'Show max points dropdown'
|
|
24
24
|
},
|
|
25
|
-
settingsPanelDisabled: false
|
|
26
|
-
|
|
25
|
+
settingsPanelDisabled: false,
|
|
26
|
+
// width: '500px'
|
|
27
|
+
mathMlOptions: {
|
|
28
|
+
mmlOutput: false,
|
|
29
|
+
mmlEditing: false
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
};
|
|
29
33
|
exports["default"] = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","points","sampleAnswers","maxPoints","excludeZero","excludeZeroEnabled","maxPointsEnabled","configuration","showExcludeZero","settings","label","showMaxPoint","settingsPanelDisabled"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,CADH;AAELC,IAAAA,aAAa,EAAE,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAFV;AAGLC,IAAAA,SAAS,EAAE,CAHN;AAILC,IAAAA,WAAW,EAAE,KAJR;AAKLC,IAAAA,kBAAkB,EAAE,IALf;AAMLC,IAAAA,gBAAgB,EAAE;AANb,GADM;AASbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,eAAe,EAAE;AACfC,MAAAA,QAAQ,EAAE,IADK;AAEfC,MAAAA,KAAK,EAAE;AAFQ,KADJ;AAKbC,IAAAA,YAAY,EAAE;AACZF,MAAAA,QAAQ,EAAE,IADE;AAEZC,MAAAA,KAAK,EAAE;AAFK,KALD;AASbE,IAAAA,qBAAqB,EAAE,KATV,
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","points","sampleAnswers","maxPoints","excludeZero","excludeZeroEnabled","maxPointsEnabled","configuration","showExcludeZero","settings","label","showMaxPoint","settingsPanelDisabled","mathMlOptions","mmlOutput","mmlEditing"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,CADH;AAELC,IAAAA,aAAa,EAAE,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAFV;AAGLC,IAAAA,SAAS,EAAE,CAHN;AAILC,IAAAA,WAAW,EAAE,KAJR;AAKLC,IAAAA,kBAAkB,EAAE,IALf;AAMLC,IAAAA,gBAAgB,EAAE;AANb,GADM;AASbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,eAAe,EAAE;AACfC,MAAAA,QAAQ,EAAE,IADK;AAEfC,MAAAA,KAAK,EAAE;AAFQ,KADJ;AAKbC,IAAAA,YAAY,EAAE;AACZF,MAAAA,QAAQ,EAAE,IADE;AAEZC,MAAAA,KAAK,EAAE;AAFK,KALD;AASbE,IAAAA,qBAAqB,EAAE,KATV;AAUb;AACAC,IAAAA,aAAa,EAAE;AACbC,MAAAA,SAAS,EAAE,KADE;AAEbC,MAAAA,UAAU,EAAE;AAFC;AAXF;AATF,C","sourcesContent":["export default {\n model: {\n points: ['', '', '', ''],\n sampleAnswers: [null, null, null, null],\n maxPoints: 4,\n excludeZero: false,\n excludeZeroEnabled: true,\n maxPointsEnabled: true,\n },\n configuration: {\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 // width: '500px'\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n }\n },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/main.js
CHANGED
|
@@ -68,6 +68,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
68
68
|
showExcludeZero = _ref2$showExcludeZero === void 0 ? {} : _ref2$showExcludeZero,
|
|
69
69
|
_ref2$showMaxPoint = _ref2.showMaxPoint,
|
|
70
70
|
showMaxPoint = _ref2$showMaxPoint === void 0 ? {} : _ref2$showMaxPoint,
|
|
71
|
+
_ref2$mathMlOptions = _ref2.mathMlOptions,
|
|
72
|
+
mathMlOptions = _ref2$mathMlOptions === void 0 ? {} : _ref2$mathMlOptions,
|
|
71
73
|
width = _ref2.width;
|
|
72
74
|
|
|
73
75
|
var panelProperties = {
|
|
@@ -92,7 +94,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
92
94
|
}
|
|
93
95
|
}, /*#__PURE__*/_react["default"].createElement(_rubric.Authoring, {
|
|
94
96
|
value: model,
|
|
95
|
-
onChange: onModelChanged
|
|
97
|
+
onChange: onModelChanged,
|
|
98
|
+
mathMlOptions: mathMlOptions
|
|
96
99
|
})));
|
|
97
100
|
}
|
|
98
101
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","styles","theme","design","fontFamily","fontSize","typography","Main","props","model","configuration","onConfigurationChanged","onModelChanged","contentDimensions","settingsPanelDisabled","showExcludeZero","showMaxPoint","width","panelProperties","excludeZeroEnabled","label","maxPointsEnabled","Properties","maxWidth","React","Component"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAQA,KAAR,GAA0BC,kBAA1B,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA0BD,kBAA1B,CAAeC,MAAf;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,MAAM,EAAE;AACNC,MAAAA,UAAU,EAAE,cADN;AAENC,MAAAA,QAAQ,EAAEH,KAAK,CAACI,UAAN,CAAiBD;AAFrB;AADiB,GAAZ;AAAA,CAAf;;IAOME,I;;;;;;;;;;;;WACJ,kBAAS;AACP,iBAAyE,KAAKC,KAAL,IAAc,EAAvF;AAAA,UAAQC,KAAR,QAAQA,KAAR;AAAA,UAAeC,aAAf,QAAeA,aAAf;AAAA,UAA8BC,sBAA9B,QAA8BA,sBAA9B;AAAA,UAAsDC,cAAtD,QAAsDA,cAAtD;;AACA,
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","styles","theme","design","fontFamily","fontSize","typography","Main","props","model","configuration","onConfigurationChanged","onModelChanged","contentDimensions","settingsPanelDisabled","showExcludeZero","showMaxPoint","mathMlOptions","width","panelProperties","excludeZeroEnabled","label","maxPointsEnabled","Properties","maxWidth","React","Component"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAQA,KAAR,GAA0BC,kBAA1B,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA0BD,kBAA1B,CAAeC,MAAf;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,MAAM,EAAE;AACNC,MAAAA,UAAU,EAAE,cADN;AAENC,MAAAA,QAAQ,EAAEH,KAAK,CAACI,UAAN,CAAiBD;AAFrB;AADiB,GAAZ;AAAA,CAAf;;IAOME,I;;;;;;;;;;;;WACJ,kBAAS;AACP,iBAAyE,KAAKC,KAAL,IAAc,EAAvF;AAAA,UAAQC,KAAR,QAAQA,KAAR;AAAA,UAAeC,aAAf,QAAeA,aAAf;AAAA,UAA8BC,sBAA9B,QAA8BA,sBAA9B;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ie-lib/rubric';\nimport { withStyles } from '@material-ui/core/styles';\nimport { layout, settings } from '@pie-lib/config-ui';\n\nconst { Panel, toggle } = settings;\n\nconst styles = (theme) => ({\n design: {\n fontFamily: 'Cerebri Sans',\n fontSize: theme.typography.fontSize,\n },\n});\n\nclass Main extends React.Component {\n render() {\n const { model, configuration, onConfigurationChanged, onModelChanged } = this.props || {};\n const {\n contentDimensions = {},\n settingsPanelDisabled,\n showExcludeZero = {},\n showMaxPoint = {},\n mathMlOptions = {},\n width,\n } = configuration || {};\n\n const panelProperties = {\n excludeZeroEnabled: showExcludeZero.settings && toggle(showExcludeZero.label),\n maxPointsEnabled: showMaxPoint.settings && toggle(showMaxPoint.label),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onModelChanged}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n <div style={{ maxWidth: width }}>\n <Authoring value={model} onChange={onModelChanged} mathMlOptions={mathMlOptions} />\n </div>\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/config-ui": "^11.
|
|
12
|
-
"@pie-lib/rubric": "^0.
|
|
11
|
+
"@pie-lib/config-ui": "^11.8.1",
|
|
12
|
+
"@pie-lib/rubric": "^0.8.1",
|
|
13
13
|
"debug": "^4.1.1",
|
|
14
14
|
"react": "^16.8.6",
|
|
15
15
|
"react-dom": "^16.8.6"
|
package/configure/src/main.jsx
CHANGED
|
@@ -20,6 +20,7 @@ class Main extends React.Component {
|
|
|
20
20
|
settingsPanelDisabled,
|
|
21
21
|
showExcludeZero = {},
|
|
22
22
|
showMaxPoint = {},
|
|
23
|
+
mathMlOptions = {},
|
|
23
24
|
width,
|
|
24
25
|
} = configuration || {};
|
|
25
26
|
|
|
@@ -45,7 +46,7 @@ class Main extends React.Component {
|
|
|
45
46
|
}
|
|
46
47
|
>
|
|
47
48
|
<div style={{ maxWidth: width }}>
|
|
48
|
-
<Authoring value={model} onChange={onModelChanged} />
|
|
49
|
+
<Authoring value={model} onChange={onModelChanged} mathMlOptions={mathMlOptions} />
|
|
49
50
|
</div>
|
|
50
51
|
</layout.ConfigLayout>
|
|
51
52
|
);
|
package/docs/config-schema.json
CHANGED
|
@@ -43,6 +43,22 @@
|
|
|
43
43
|
"type": "string",
|
|
44
44
|
"title": "width"
|
|
45
45
|
},
|
|
46
|
+
"mathMlOptions": {
|
|
47
|
+
"title": "ConfigureMathMLProp",
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"mmlOutput": {
|
|
51
|
+
"description": "Indicates if model should have mathML output instead of latex",
|
|
52
|
+
"type": "number",
|
|
53
|
+
"title": "mmlOutput"
|
|
54
|
+
},
|
|
55
|
+
"mmlEditing": {
|
|
56
|
+
"description": "Indicates if mathML that's already in model should be editable",
|
|
57
|
+
"type": "number",
|
|
58
|
+
"title": "mmlEditing"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
46
62
|
"showPrompt": {
|
|
47
63
|
"description": "Determines whether prompt field will be displayed or not",
|
|
48
64
|
"default": true,
|
|
@@ -122,6 +138,22 @@
|
|
|
122
138
|
"title": "label"
|
|
123
139
|
}
|
|
124
140
|
}
|
|
141
|
+
},
|
|
142
|
+
"ConfigureMathMLProp": {
|
|
143
|
+
"title": "ConfigureMathMLProp",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"mmlOutput": {
|
|
147
|
+
"description": "Indicates if model should have mathML output instead of latex",
|
|
148
|
+
"type": "number",
|
|
149
|
+
"title": "mmlOutput"
|
|
150
|
+
},
|
|
151
|
+
"mmlEditing": {
|
|
152
|
+
"description": "Indicates if mathML that's already in model should be editable",
|
|
153
|
+
"type": "number",
|
|
154
|
+
"title": "mmlEditing"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
125
157
|
}
|
|
126
158
|
},
|
|
127
159
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -32,6 +32,18 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
32
32
|
|
|
33
33
|
How large can the rubric be
|
|
34
34
|
|
|
35
|
+
# `mathMlOptions` (object)
|
|
36
|
+
|
|
37
|
+
Properties of the `mathMlOptions` object:
|
|
38
|
+
|
|
39
|
+
## `mmlOutput` (number)
|
|
40
|
+
|
|
41
|
+
Indicates if model should have mathML output instead of latex
|
|
42
|
+
|
|
43
|
+
## `mmlEditing` (number)
|
|
44
|
+
|
|
45
|
+
Indicates if mathML that's already in model should be editable
|
|
46
|
+
|
|
35
47
|
# `showPrompt` (boolean)
|
|
36
48
|
|
|
37
49
|
Determines whether prompt field will be displayed or not
|
|
@@ -100,4 +112,16 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
100
112
|
|
|
101
113
|
### `label` (string)
|
|
102
114
|
|
|
103
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
115
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
116
|
+
|
|
117
|
+
## `ConfigureMathMLProp` (object)
|
|
118
|
+
|
|
119
|
+
Properties of the `ConfigureMathMLProp` object:
|
|
120
|
+
|
|
121
|
+
### `mmlOutput` (number)
|
|
122
|
+
|
|
123
|
+
Indicates if model should have mathML output instead of latex
|
|
124
|
+
|
|
125
|
+
### `mmlEditing` (number)
|
|
126
|
+
|
|
127
|
+
Indicates if mathML that's already in model should be editable
|
package/docs/pie-schema.json
CHANGED
|
@@ -74,6 +74,22 @@
|
|
|
74
74
|
"title": "label"
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
},
|
|
78
|
+
"ConfigureMathMLProp": {
|
|
79
|
+
"title": "ConfigureMathMLProp",
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"mmlOutput": {
|
|
83
|
+
"description": "Indicates if model should have mathML output instead of latex",
|
|
84
|
+
"type": "number",
|
|
85
|
+
"title": "mmlOutput"
|
|
86
|
+
},
|
|
87
|
+
"mmlEditing": {
|
|
88
|
+
"description": "Indicates if mathML that's already in model should be editable",
|
|
89
|
+
"type": "number",
|
|
90
|
+
"title": "mmlEditing"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
77
93
|
}
|
|
78
94
|
},
|
|
79
95
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -50,4 +50,16 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
50
50
|
|
|
51
51
|
### `label` (string)
|
|
52
52
|
|
|
53
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
53
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
54
|
+
|
|
55
|
+
## `ConfigureMathMLProp` (object)
|
|
56
|
+
|
|
57
|
+
Properties of the `ConfigureMathMLProp` object:
|
|
58
|
+
|
|
59
|
+
### `mmlOutput` (number)
|
|
60
|
+
|
|
61
|
+
Indicates if model should have mathML output instead of latex
|
|
62
|
+
|
|
63
|
+
### `mmlEditing` (number)
|
|
64
|
+
|
|
65
|
+
Indicates if mathML that's already in model should be editable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/rubric",
|
|
3
|
-
"version": "2.9.1-next.
|
|
3
|
+
"version": "2.9.1-next.33+649fb8f53",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"description": "Rubric Scoring Interaction",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
|
-
"@pie-lib/render-ui": "^4.14.
|
|
13
|
+
"@pie-lib/render-ui": "^4.14.26",
|
|
14
14
|
"prop-types": "^15.7.2"
|
|
15
15
|
},
|
|
16
16
|
"author": "pie framework developers",
|
|
17
17
|
"license": "ISC",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "649fb8f535172d76b3ffc676ec53b2726432808c",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|