@pie-element/rubric 2.7.5-next.41 → 2.7.5-next.53
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/main.js
CHANGED
|
@@ -62,6 +62,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
62
62
|
onModelChanged = _ref.onModelChanged;
|
|
63
63
|
|
|
64
64
|
var _ref2 = configuration || {},
|
|
65
|
+
_ref2$contentDimensio = _ref2.contentDimensions,
|
|
66
|
+
contentDimensions = _ref2$contentDimensio === void 0 ? {} : _ref2$contentDimensio,
|
|
65
67
|
settingsPanelDisabled = _ref2.settingsPanelDisabled,
|
|
66
68
|
_ref2$showExcludeZero = _ref2.showExcludeZero,
|
|
67
69
|
showExcludeZero = _ref2$showExcludeZero === void 0 ? {} : _ref2$showExcludeZero,
|
|
@@ -74,6 +76,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
74
76
|
maxPointsEnabled: showMaxPoint.settings && toggle(showMaxPoint.label)
|
|
75
77
|
};
|
|
76
78
|
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
79
|
+
dimensions: contentDimensions,
|
|
77
80
|
hideSettings: settingsPanelDisabled,
|
|
78
81
|
settings: /*#__PURE__*/_react["default"].createElement(Panel, {
|
|
79
82
|
model: model,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","styles","theme","design","fontFamily","fontSize","typography","Main","props","model","classes","configuration","onConfigurationChanged","onModelChanged","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,iBAAkF,KAAKC,KAAL,IAAc,EAAhG;AAAA,UAAQC,KAAR,QAAQA,KAAR;AAAA,UAAeC,OAAf,QAAeA,OAAf;AAAA,UAAwBC,aAAxB,QAAwBA,aAAxB;AAAA,UAAuCC,sBAAvC,QAAuCA,sBAAvC;AAAA,UAA+DC,cAA/D,QAA+DA,cAA/D;;AACA,
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","styles","theme","design","fontFamily","fontSize","typography","Main","props","model","classes","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,iBAAkF,KAAKC,KAAL,IAAc,EAAhG;AAAA,UAAQC,KAAR,QAAQA,KAAR;AAAA,UAAeC,OAAf,QAAeA,OAAf;AAAA,UAAwBC,aAAxB,QAAwBA,aAAxB;AAAA,UAAuCC,sBAAvC,QAAuCA,sBAAvC;AAAA,UAA+DC,cAA/D,QAA+DA,cAA/D;;AACA,kBAMIF,aAAa,IAAI,EANrB;AAAA,wCACEG,iBADF;AAAA,UACEA,iBADF,sCACsB,EADtB;AAAA,UAEEC,qBAFF,SAEEA,qBAFF;AAAA,wCAGEC,eAHF;AAAA,UAGEA,eAHF,sCAGoB,EAHpB;AAAA,qCAIEC,YAJF;AAAA,UAIEA,YAJF,mCAIiB,EAJjB;AAAA,UAKEC,KALF,SAKEA,KALF;;AAQA,UAAMC,eAAe,GAAG;AACtBC,QAAAA,kBAAkB,EAAEJ,eAAe,CAACjB,QAAhB,IAA4BC,MAAM,CAACgB,eAAe,CAACK,KAAjB,CADhC;AAEtBC,QAAAA,gBAAgB,EAAEL,YAAY,CAAClB,QAAb,IAAyBC,MAAM,CAACiB,YAAY,CAACI,KAAd;AAF3B,OAAxB;AAKA,0BACE,gCAAC,gBAAD,CAAQ,YAAR;AACE,QAAA,UAAU,EAAEP,iBADd;AAEE,QAAA,YAAY,EAAEC,qBAFhB;AAGE,QAAA,QAAQ,eACN,gCAAC,KAAD;AACE,UAAA,KAAK,EAAEN,KADT;AAEE,UAAA,aAAa,EAAEI,cAFjB;AAGE,UAAA,aAAa,EAAEF,aAHjB;AAIE,UAAA,qBAAqB,EAAEC,sBAJzB;AAKE,UAAA,MAAM,EAAE;AACNW,YAAAA,UAAU,EAAEJ;AADN;AALV;AAJJ,sBAeE;AAAK,QAAA,KAAK,EAAE;AAAEK,UAAAA,QAAQ,EAAEN;AAAZ;AAAZ,sBACE,gCAAC,iBAAD;AAAW,QAAA,KAAK,EAAET,KAAlB;AAAyB,QAAA,QAAQ,EAAEI;AAAnC,QADF,CAfF,CADF;AAqBD;;;EArCgBY,kBAAMC,S;;eAwCV,wBAAWzB,MAAX,EAAmBM,IAAnB,C","sourcesContent":["import React from 'react';\nimport { Authoring } from '@pie-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, classes, configuration, onConfigurationChanged, onModelChanged } = this.props || {};\n const {\n contentDimensions = {},\n settingsPanelDisabled,\n showExcludeZero = {},\n showMaxPoint = {},\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} />\n </div>\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
|
package/configure/src/main.jsx
CHANGED
|
@@ -15,7 +15,13 @@ const styles = (theme) => ({
|
|
|
15
15
|
class Main extends React.Component {
|
|
16
16
|
render() {
|
|
17
17
|
const { model, classes, configuration, onConfigurationChanged, onModelChanged } = this.props || {};
|
|
18
|
-
const {
|
|
18
|
+
const {
|
|
19
|
+
contentDimensions = {},
|
|
20
|
+
settingsPanelDisabled,
|
|
21
|
+
showExcludeZero = {},
|
|
22
|
+
showMaxPoint = {},
|
|
23
|
+
width,
|
|
24
|
+
} = configuration || {};
|
|
19
25
|
|
|
20
26
|
const panelProperties = {
|
|
21
27
|
excludeZeroEnabled: showExcludeZero.settings && toggle(showExcludeZero.label),
|
|
@@ -24,6 +30,7 @@ class Main extends React.Component {
|
|
|
24
30
|
|
|
25
31
|
return (
|
|
26
32
|
<layout.ConfigLayout
|
|
33
|
+
dimensions={contentDimensions}
|
|
27
34
|
hideSettings={settingsPanelDisabled}
|
|
28
35
|
settings={
|
|
29
36
|
<Panel
|
package/docs/config-schema.json
CHANGED
|
@@ -55,6 +55,50 @@
|
|
|
55
55
|
"type": "string",
|
|
56
56
|
"title": "promptLabel"
|
|
57
57
|
},
|
|
58
|
+
"contentDimensions": {
|
|
59
|
+
"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",
|
|
60
|
+
"default": ": {}",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"maxHeight": {
|
|
64
|
+
"description": "Indicates the max height of the authoring container",
|
|
65
|
+
"default": "undefined",
|
|
66
|
+
"type": [
|
|
67
|
+
"string",
|
|
68
|
+
"number"
|
|
69
|
+
],
|
|
70
|
+
"title": "maxHeight"
|
|
71
|
+
},
|
|
72
|
+
"maxWidth": {
|
|
73
|
+
"description": "Indicates the max width of the authoring container",
|
|
74
|
+
"default": "undefined",
|
|
75
|
+
"type": [
|
|
76
|
+
"string",
|
|
77
|
+
"number"
|
|
78
|
+
],
|
|
79
|
+
"title": "maxWidth"
|
|
80
|
+
},
|
|
81
|
+
"minHeight": {
|
|
82
|
+
"description": "Indicates the min height of the authoring container",
|
|
83
|
+
"default": "undefined",
|
|
84
|
+
"type": [
|
|
85
|
+
"string",
|
|
86
|
+
"number"
|
|
87
|
+
],
|
|
88
|
+
"title": "minHeight"
|
|
89
|
+
},
|
|
90
|
+
"minWidth": {
|
|
91
|
+
"description": "Indicates the min width of the authoring container",
|
|
92
|
+
"default": "undefined",
|
|
93
|
+
"type": [
|
|
94
|
+
"string",
|
|
95
|
+
"number"
|
|
96
|
+
],
|
|
97
|
+
"title": "minWidth"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"title": "contentDimensions"
|
|
101
|
+
},
|
|
58
102
|
"settingsPartialScoring": {
|
|
59
103
|
"description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
|
|
60
104
|
"default": true,
|
|
@@ -44,6 +44,40 @@ The label for the item stem/prompt field
|
|
|
44
44
|
|
|
45
45
|
Default: `"Item Stemm"`
|
|
46
46
|
|
|
47
|
+
# `contentDimensions` (object)
|
|
48
|
+
|
|
49
|
+
Indicates the dimensions configuration for the authoring container
|
|
50
|
+
Note: Some items have a default minimum width because of their content, but if
|
|
51
|
+
the minWidth is lower than this, the overflow behavior will take care of that
|
|
52
|
+
|
|
53
|
+
Properties of the `contentDimensions` object:
|
|
54
|
+
|
|
55
|
+
## `maxHeight` (string,number)
|
|
56
|
+
|
|
57
|
+
Indicates the max height of the authoring container
|
|
58
|
+
|
|
59
|
+
Default: `"undefined"`
|
|
60
|
+
|
|
61
|
+
## `maxWidth` (string,number)
|
|
62
|
+
|
|
63
|
+
Indicates the max width of the authoring container
|
|
64
|
+
|
|
65
|
+
Default: `"undefined"`
|
|
66
|
+
|
|
67
|
+
## `minHeight` (string,number)
|
|
68
|
+
|
|
69
|
+
Indicates the min height of the authoring container
|
|
70
|
+
|
|
71
|
+
Default: `"undefined"`
|
|
72
|
+
|
|
73
|
+
## `minWidth` (string,number)
|
|
74
|
+
|
|
75
|
+
Indicates the min width of the authoring container
|
|
76
|
+
|
|
77
|
+
Default: `"undefined"`
|
|
78
|
+
|
|
79
|
+
Default: `": {}"`
|
|
80
|
+
|
|
47
81
|
# `settingsPartialScoring` (boolean)
|
|
48
82
|
|
|
49
83
|
Indicates whether the settings panel wil allow the author to modify settings for partial scoring
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/rubric",
|
|
3
|
-
"version": "2.7.5-next.
|
|
3
|
+
"version": "2.7.5-next.53+f7af573fb",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"description": "Rubric Scoring Interaction",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"author": "pie framework developers",
|
|
17
17
|
"license": "ISC",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "f7af573fb4e0491e4f5ff278103b157ac0120f98",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|