@pie-element/charting 5.11.3-next.112 → 5.11.3-next.121
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 +16 -0
- package/configure/CHANGELOG.md +14 -0
- package/configure/lib/configure.js +7 -2
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/defaults.js +13 -0
- package/configure/lib/defaults.js.map +1 -1
- package/configure/package.json +4 -4
- package/docs/config-schema.json +95 -1
- package/docs/config-schema.json.md +61 -1
- package/docs/pie-schema.json +44 -0
- package/docs/pie-schema.json.md +28 -0
- package/package.json +3 -3
package/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
|
+
## [5.11.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/charting@5.11.2...@pie-element/charting@5.11.3) (2023-05-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-libs PD-2755, PD-2625, PD-2119 ([698446b](https://github.com/pie-framework/pie-elements/commit/698446b29a553a022c91825118370faae824b723))
|
|
12
|
+
* **charting:** fix code introduced by PR pull/1389 for PD-2755, PD-2625, PD-2626 ([8eb0165](https://github.com/pie-framework/pie-elements/commit/8eb016503d174524de146a97fa600789a4007e95))
|
|
13
|
+
* update pie-libs (fix eslint problems PD-2732) ([3fa630e](https://github.com/pie-framework/pie-elements/commit/3fa630eb96b116cb685ab58fbf216fb572d1c333))
|
|
14
|
+
* update pie-libs PD-2755, PD-2625, PD-491, PD-2753, PD-2758, PD-2720, PD-2770 ([2cf9ffa](https://github.com/pie-framework/pie-elements/commit/2cf9ffa4fbef6f2ebc0924f305debc9fc6560a75))
|
|
15
|
+
* **charting:** update chart data in player ([b7143d1](https://github.com/pie-framework/pie-elements/commit/b7143d12620b16e8f4fd1bc0c1790fecb0db9155))
|
|
16
|
+
* **charting:** update correct response setup ([bfac45b](https://github.com/pie-framework/pie-elements/commit/bfac45bc6ee7e8328ea924acc4595e21eb8d4d93))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [5.11.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/charting@5.11.1...@pie-element/charting@5.11.2) (2023-04-25)
|
|
7
23
|
|
|
8
24
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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
|
+
## [5.8.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/charting-configure@5.8.2...@pie-element/charting-configure@5.8.3) (2023-05-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-libs (fix eslint problems PD-2732) ([3fa630e](https://github.com/pie-framework/pie-elements/commit/3fa630eb96b116cb685ab58fbf216fb572d1c333))
|
|
12
|
+
* update pie-libs PD-2755, PD-2625, PD-2119 ([698446b](https://github.com/pie-framework/pie-elements/commit/698446b29a553a022c91825118370faae824b723))
|
|
13
|
+
* update pie-libs PD-2755, PD-2625, PD-491, PD-2753, PD-2758, PD-2720, PD-2770 ([2cf9ffa](https://github.com/pie-framework/pie-elements/commit/2cf9ffa4fbef6f2ebc0924f305debc9fc6560a75))
|
|
14
|
+
* **charting:** update correct response setup ([bfac45b](https://github.com/pie-framework/pie-elements/commit/bfac45bc6ee7e8328ea924acc4595e21eb8d4d93))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [5.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/charting-configure@5.8.1...@pie-element/charting-configure@5.8.2) (2023-04-25)
|
|
7
21
|
|
|
8
22
|
|
|
@@ -198,7 +198,10 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
198
198
|
_ref2$withRubric = _ref2.withRubric,
|
|
199
199
|
withRubric = _ref2$withRubric === void 0 ? {} : _ref2$withRubric,
|
|
200
200
|
_ref2$chartingOptions = _ref2.chartingOptions,
|
|
201
|
-
chartingOptions = _ref2$chartingOptions === void 0 ? {} : _ref2$chartingOptions
|
|
201
|
+
chartingOptions = _ref2$chartingOptions === void 0 ? {} : _ref2$chartingOptions,
|
|
202
|
+
_ref2$availableChartT = _ref2.availableChartTypes,
|
|
203
|
+
availableChartTypes = _ref2$availableChartT === void 0 ? {} : _ref2$availableChartT,
|
|
204
|
+
chartTypeLabel = _ref2.chartTypeLabel;
|
|
202
205
|
|
|
203
206
|
var _ref3 = model || {},
|
|
204
207
|
errors = _ref3.errors,
|
|
@@ -293,7 +296,9 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
293
296
|
labelValues: labelValues,
|
|
294
297
|
chartDimensions: chartDimensions,
|
|
295
298
|
charts: charts,
|
|
296
|
-
studentNewCategoryDefaultLabel: studentNewCategoryDefaultLabel
|
|
299
|
+
studentNewCategoryDefaultLabel: studentNewCategoryDefaultLabel,
|
|
300
|
+
availableChartTypes: availableChartTypes,
|
|
301
|
+
chartTypeLabel: chartTypeLabel
|
|
297
302
|
}), /*#__PURE__*/_react["default"].createElement(_chartingConfig["default"], {
|
|
298
303
|
model: model,
|
|
299
304
|
onChange: onModelChanged,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/configure.jsx"],"names":["log","Panel","settings","toggle","radio","styles","theme","title","fontSize","display","marginTop","spacing","unit","marginBottom","promptHolder","width","paddingTop","description","charts","chartTypes","Bar","Histogram","LineDot","LineCross","DotPlot","LinePlot","Configure","props","rationale","onModelChanged","model","prompt","teacherInstructions","chartType","config","state","oldGridValues","gridValues","oldLabelValues","labelValues","updatedModel","graph","range","rangeConstraints","height","setState","step","classes","configuration","imageSupport","onConfigurationChanged","uploadSoundSupport","contentDimensions","chartDimensions","authorNewCategoryDefaults","labelsPlaceholders","maxImageWidth","maxImageHeight","scoringType","settingsPanelDisabled","spellCheck","studentInstructions","titlePlaceholder","withRubric","chartingOptions","errors","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","studentNewCategoryDefaultLabel","categoryErrors","correctAnswerErrors","showPixeGuides","showInConfigPanel","defaultImageMaxWidth","defaultImageMaxHeight","panelItemType","changeInteractiveEnabled","changeInteractive","settingsLabel","changeEditableEnabled","changeEditable","changeAddCategoryEnabled","addCategory","panelProperties","label","studentInstructionsEnabled","rubricEnabled","Settings","Properties","onTeacherInstructionsChange","language","onPromptChange","onConfigChange","onRationaleChange","React","Component","PropTypes","func","object","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,iCAAN,CAAZ;AACA,IAAQC,KAAR,GAAiCC,kBAAjC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAiCD,kBAAjC,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAAiCF,kBAAjC,CAAuBE,KAAvB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,KAAK,EAAE;AACLC,MAAAA,QAAQ,EAAE,QADL;AAELC,MAAAA,OAAO,EAAE,OAFJ;AAGLC,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAH3B;AAILC,MAAAA,YAAY,EAAEP,KAAK,CAACK,OAAN,CAAcC;AAJvB,KADkB;AAOzBE,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEV,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAFrB;AAGZC,M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,SAAS,EAAEiC,OAAO,CAAChB,MADrB;AAEE,QAAA,MAAM,EAAED,KAAK,CAACF,SAAN,IAAmB,EAF7B;AAGE,QAAA,QAAQ,EAAE,KAAKmE,iBAHjB;AAIE,QAAA,YAAY,EAAE9C,YAJhB;AAKE,QAAA,UAAU,EAAEmB,iBALd;AAME,QAAA,aAAa,EAAGZ,aAAa,IAAIA,aAAa,CAAC5B,SAAhC,IAA8C+C,oBAN/D;AAOE,QAAA,cAAc,EAAGlB,cAAc,IAAIA,cAAc,CAAC7B,SAAlC,IAAgDgD,qBAPlE;AAQE,QAAA,kBAAkB,EAAEzB,kBARtB;AASE,QAAA,uBAAuB,EAAE,CAAC;AAAEyC,UAAAA,QAAQ,EAAE;AAAZ,SAAD,EAA0B;AAAEA,UAAAA,QAAQ,EAAE;AAAZ,SAA1B;AAT3B,QADF,CAzFJ,CADF;AA0GD;;;EA5M4BI,kBAAMC,S;;;iCAAxBvE,S,eACQ;AACjBG,EAAAA,cAAc,EAAEqE,sBAAUC,IADT;AAEjBjD,EAAAA,sBAAsB,EAAEgD,sBAAUC,IAFjB;AAGjBpD,EAAAA,OAAO,EAAEmD,sBAAUE,MAHF;AAIjBnD,EAAAA,YAAY,EAAEiD,sBAAUE,MAJP;AAKjBjD,EAAAA,kBAAkB,EAAE+C,sBAAUE,MALb;AAMjBtE,EAAAA,KAAK,EAAEoE,sBAAUE,MAAV,CAAiBC,UANP;AAOjBrD,EAAAA,aAAa,EAAEkD,sBAAUE,MAAV,CAAiBC,UAPf;AAQjBrC,EAAAA,eAAe,EAAEkC,sBAAUE;AARV,C;iCADR1E,S,kBAqBW;AAAEqB,EAAAA,OAAO,EAAE;AAAX,C;;eA0LT,wBAAW1C,MAAX,EAAmBqB,SAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport { chartTypes, ConfigureChartPanel } from '@pie-lib/charting';\nimport { settings, layout, InputContainer } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport Typography from '@material-ui/core/Typography';\nimport EditableHtml from '@pie-lib/editable-html';\n\nimport ChartingConfig from './charting-config';\nimport CorrectResponse from './correct-response';\nimport { applyConstraints, getGridValues, getLabelValues } from './utils';\n\nconst log = debug('@pie-element:graphing:configure');\nconst { Panel, toggle, radio } = settings;\n\nconst styles = (theme) => ({\n title: {\n fontSize: '1.1rem',\n display: 'block',\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit,\n },\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n description: {\n marginBottom: theme.spacing.unit * 2.5,\n },\n});\n\nconst charts = [\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n];\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n classes: PropTypes.object,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n chartingOptions: PropTypes.object,\n };\n\n constructor(props) {\n super(props);\n const { range = {}, graph } = props.model || {};\n const gridValues = { range: getGridValues(range, graph.height, true) };\n const labelValues = { range: getLabelValues(range.step || 1) };\n\n this.state = { gridValues, labelValues };\n }\n\n static defaultProps = { classes: {} };\n\n onRationaleChange = (rationale) => this.props.onModelChanged({ ...this.props.model, rationale });\n\n onPromptChange = (prompt) => this.props.onModelChanged({ ...this.props.model, prompt });\n\n onTeacherInstructionsChange = (teacherInstructions) =>\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n\n onChartTypeChange = (chartType) => this.props.onModelChanged({ ...this.props.model, chartType });\n\n onConfigChange = (config) => {\n const { model, onModelChanged } = this.props;\n const { gridValues: oldGridValues, labelValues: oldLabelValues } = this.state;\n const updatedModel = { ...model, ...config };\n const { graph, range } = updatedModel;\n const gridValues = {};\n const labelValues = {};\n\n const rangeConstraints = applyConstraints(range, graph.height, oldGridValues.range, oldLabelValues.range);\n\n gridValues.range = rangeConstraints.gridValues;\n labelValues.range = rangeConstraints.labelValues;\n\n this.setState({ gridValues, labelValues });\n onModelChanged(updatedModel);\n };\n\n render() {\n const { classes, configuration, imageSupport, model, onConfigurationChanged, onModelChanged, uploadSoundSupport } =\n this.props;\n\n log('[render] model', model);\n\n const { graph } = model;\n const {\n contentDimensions = {},\n chartDimensions = {},\n authorNewCategoryDefaults = {},\n labelsPlaceholders = {},\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n rationale = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n titlePlaceholder = {},\n withRubric = {},\n chartingOptions = {},\n } = configuration || {};\n const { errors, promptEnabled, rationaleEnabled, spellCheckEnabled, teacherInstructionsEnabled, studentNewCategoryDefaultLabel } = model || {};\n const { categoryErrors, correctAnswerErrors } = errors || {};\n const { gridValues, labelValues } = this.state;\n const showPixeGuides = chartDimensions.showInConfigPanel || true;\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const panelItemType = {\n changeInteractiveEnabled: chartingOptions.changeInteractive?.settings && toggle(chartingOptions.changeInteractive.settingsLabel),\n changeEditableEnabled: chartingOptions.changeEditable?.settings && toggle(chartingOptions.changeEditable.settingsLabel),\n changeAddCategoryEnabled: chartingOptions.addCategory?.settings && toggle(chartingOptions.addCategory.settingsLabel),\n };\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['all or nothing', 'partial scoring']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={onModelChanged}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelItemType,\n Properties: panelProperties,\n }}\n />\n }\n >\n <Typography component=\"div\" type=\"body1\" className={classes.description}>\n This item type provides various types of interactive charts. Depending upon how an item is configured,\n students can change the heights of bars (or other similar chart elements) created by the author; relabel bars\n created by the author; and/or add new bars, label them, and set their heights.\n </Typography>\n\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n <ConfigureChartPanel\n model={model}\n onChange={this.onConfigChange}\n gridValues={gridValues}\n labelValues={labelValues}\n chartDimensions={chartDimensions}\n charts={charts}\n studentNewCategoryDefaultLabel={studentNewCategoryDefaultLabel}\n />\n\n <ChartingConfig\n model={model}\n onChange={onModelChanged}\n charts={charts}\n labelsPlaceholders={labelsPlaceholders}\n titlePlaceholder={titlePlaceholder}\n showPixelGuides={showPixeGuides}\n authorNewCategoryDefaults={authorNewCategoryDefaults}\n chartingOptions={chartingOptions}\n />\n\n <CorrectResponse\n config={graph}\n model={model}\n onChange={onModelChanged}\n charts={charts}\n error={categoryErrors}\n correctAnswerErrors={correctAnswerErrors}\n studentNewCategoryDefaultLabel={studentNewCategoryDefaultLabel}\n />\n\n {rationaleEnabled && (\n <InputContainer label={rationale.label || 'Rationale'} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.rationale || ''}\n onChange={this.onRationaleChange}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Configure);\n"],"file":"configure.js"}
|
|
1
|
+
{"version":3,"sources":["../src/configure.jsx"],"names":["log","Panel","settings","toggle","radio","styles","theme","title","fontSize","display","marginTop","spacing","unit","marginBottom","promptHolder","width","paddingTop","description","charts","chartTypes","Bar","Histogram","LineDot","LineCross","DotPlot","LinePlot","Configure","props","rationale","onModelChanged","model","prompt","teacherInstructions","chartType","config","state","oldGridValues","gridValues","oldLabelValues","labelValues","updatedModel","graph","range","rangeConstraints","height","setState","step","classes","configuration","imageSupport","onConfigurationChanged","uploadSoundSupport","contentDimensions","chartDimensions","authorNewCategoryDefaults","labelsPlaceholders","maxImageWidth","maxImageHeight","scoringType","settingsPanelDisabled","spellCheck","studentInstructions","titlePlaceholder","withRubric","chartingOptions","availableChartTypes","chartTypeLabel","errors","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","studentNewCategoryDefaultLabel","categoryErrors","correctAnswerErrors","showPixeGuides","showInConfigPanel","defaultImageMaxWidth","defaultImageMaxHeight","panelItemType","changeInteractiveEnabled","changeInteractive","settingsLabel","changeEditableEnabled","changeEditable","changeAddCategoryEnabled","addCategory","panelProperties","label","studentInstructionsEnabled","rubricEnabled","Settings","Properties","onTeacherInstructionsChange","language","onPromptChange","onConfigChange","onRationaleChange","React","Component","PropTypes","func","object","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,iCAAN,CAAZ;AACA,IAAQC,KAAR,GAAiCC,kBAAjC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAiCD,kBAAjC,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAAiCF,kBAAjC,CAAuBE,KAAvB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,KAAK,EAAE;AACLC,MAAAA,QAAQ,EAAE,QADL;AAELC,MAAAA,OAAO,EAAE,OAFJ;AAGLC,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAH3B;AAILC,MAAAA,YAAY,EAAEP,KAAK,CAACK,OAAN,CAAcC;AAJvB,KADkB;AAOzBE,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEV,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAFrB;AAGZC,MAAAA,YAAY,EAAEP,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KAPW;AAYzBK,IAAAA,WAAW,EAAE;AACXJ,MAAAA,YAAY,EAAEP,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AADxB;AAZY,GAA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EiC,OAAO,CAAChB,MADrB;AAEE,QAAA,MAAM,EAAED,KAAK,CAACF,SAAN,IAAmB,EAF7B;AAGE,QAAA,QAAQ,EAAE,KAAKqE,iBAHjB;AAIE,QAAA,YAAY,EAAEhD,YAJhB;AAKE,QAAA,UAAU,EAAEqB,iBALd;AAME,QAAA,aAAa,EAAGd,aAAa,IAAIA,aAAa,CAAC5B,SAAhC,IAA8CiD,oBAN/D;AAOE,QAAA,cAAc,EAAGpB,cAAc,IAAIA,cAAc,CAAC7B,SAAlC,IAAgDkD,qBAPlE;AAQE,QAAA,kBAAkB,EAAE3B,kBARtB;AASE,QAAA,uBAAuB,EAAE,CAAC;AAAE2C,UAAAA,QAAQ,EAAE;AAAZ,SAAD,EAA0B;AAAEA,UAAAA,QAAQ,EAAE;AAAZ,SAA1B;AAT3B,QADF,CA3FJ,CADF;AA4GD;;;EAnN4BI,kBAAMC,S;;;iCAAxBzE,S,eACQ;AACjBG,EAAAA,cAAc,EAAEuE,sBAAUC,IADT;AAEjBnD,EAAAA,sBAAsB,EAAEkD,sBAAUC,IAFjB;AAGjBtD,EAAAA,OAAO,EAAEqD,sBAAUE,MAHF;AAIjBrD,EAAAA,YAAY,EAAEmD,sBAAUE,MAJP;AAKjBnD,EAAAA,kBAAkB,EAAEiD,sBAAUE,MALb;AAMjBxE,EAAAA,KAAK,EAAEsE,sBAAUE,MAAV,CAAiBC,UANP;AAOjBvD,EAAAA,aAAa,EAAEoD,sBAAUE,MAAV,CAAiBC,UAPf;AAQjBvC,EAAAA,eAAe,EAAEoC,sBAAUE;AARV,C;iCADR5E,S,kBAqBW;AAAEqB,EAAAA,OAAO,EAAE;AAAX,C;;eAiMT,wBAAW1C,MAAX,EAAmBqB,SAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport { chartTypes, ConfigureChartPanel } from '@pie-lib/charting';\nimport { settings, layout, InputContainer } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport Typography from '@material-ui/core/Typography';\nimport EditableHtml from '@pie-lib/editable-html';\n\nimport ChartingConfig from './charting-config';\nimport CorrectResponse from './correct-response';\nimport { applyConstraints, getGridValues, getLabelValues } from './utils';\n\nconst log = debug('@pie-element:graphing:configure');\nconst { Panel, toggle, radio } = settings;\n\nconst styles = (theme) => ({\n title: {\n fontSize: '1.1rem',\n display: 'block',\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit,\n },\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n description: {\n marginBottom: theme.spacing.unit * 2.5,\n },\n});\n\nconst charts = [\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n];\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n classes: PropTypes.object,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n chartingOptions: PropTypes.object,\n };\n\n constructor(props) {\n super(props);\n const { range = {}, graph } = props.model || {};\n const gridValues = { range: getGridValues(range, graph.height, true) };\n const labelValues = { range: getLabelValues(range.step || 1) };\n\n this.state = { gridValues, labelValues };\n }\n\n static defaultProps = { classes: {} };\n\n onRationaleChange = (rationale) => this.props.onModelChanged({ ...this.props.model, rationale });\n\n onPromptChange = (prompt) => this.props.onModelChanged({ ...this.props.model, prompt });\n\n onTeacherInstructionsChange = (teacherInstructions) =>\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n\n onChartTypeChange = (chartType) => this.props.onModelChanged({ ...this.props.model, chartType });\n\n onConfigChange = (config) => {\n const { model, onModelChanged } = this.props;\n const { gridValues: oldGridValues, labelValues: oldLabelValues } = this.state;\n const updatedModel = { ...model, ...config };\n const { graph, range } = updatedModel;\n const gridValues = {};\n const labelValues = {};\n\n const rangeConstraints = applyConstraints(range, graph.height, oldGridValues.range, oldLabelValues.range);\n\n gridValues.range = rangeConstraints.gridValues;\n labelValues.range = rangeConstraints.labelValues;\n\n this.setState({ gridValues, labelValues });\n onModelChanged(updatedModel);\n };\n\n render() {\n const { classes, configuration, imageSupport, model, onConfigurationChanged, onModelChanged, uploadSoundSupport } =\n this.props;\n\n log('[render] model', model);\n\n const { graph } = model;\n const {\n contentDimensions = {},\n chartDimensions = {},\n authorNewCategoryDefaults = {},\n labelsPlaceholders = {},\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n rationale = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n titlePlaceholder = {},\n withRubric = {},\n chartingOptions = {},\n availableChartTypes = {},\n chartTypeLabel,\n } = configuration || {};\n const { errors, promptEnabled, rationaleEnabled, spellCheckEnabled, teacherInstructionsEnabled, studentNewCategoryDefaultLabel } = model || {};\n const { categoryErrors, correctAnswerErrors } = errors || {};\n const { gridValues, labelValues } = this.state;\n const showPixeGuides = chartDimensions.showInConfigPanel || true;\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const panelItemType = {\n changeInteractiveEnabled:\n chartingOptions.changeInteractive?.settings && toggle(chartingOptions.changeInteractive.settingsLabel),\n changeEditableEnabled:\n chartingOptions.changeEditable?.settings && toggle(chartingOptions.changeEditable.settingsLabel),\n changeAddCategoryEnabled:\n chartingOptions.addCategory?.settings && toggle(chartingOptions.addCategory.settingsLabel),\n };\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['all or nothing', 'partial scoring']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={onModelChanged}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelItemType,\n Properties: panelProperties,\n }}\n />\n }\n >\n <Typography component=\"div\" type=\"body1\" className={classes.description}>\n This item type provides various types of interactive charts. Depending upon how an item is configured,\n students can change the heights of bars (or other similar chart elements) created by the author; relabel bars\n created by the author; and/or add new bars, label them, and set their heights.\n </Typography>\n\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n <ConfigureChartPanel\n model={model}\n onChange={this.onConfigChange}\n gridValues={gridValues}\n labelValues={labelValues}\n chartDimensions={chartDimensions}\n charts={charts}\n studentNewCategoryDefaultLabel={studentNewCategoryDefaultLabel}\n availableChartTypes={availableChartTypes}\n chartTypeLabel={chartTypeLabel}\n />\n\n <ChartingConfig\n model={model}\n onChange={onModelChanged}\n charts={charts}\n labelsPlaceholders={labelsPlaceholders}\n titlePlaceholder={titlePlaceholder}\n showPixelGuides={showPixeGuides}\n authorNewCategoryDefaults={authorNewCategoryDefaults}\n chartingOptions={chartingOptions}\n />\n\n <CorrectResponse\n config={graph}\n model={model}\n onChange={onModelChanged}\n charts={charts}\n error={categoryErrors}\n correctAnswerErrors={correctAnswerErrors}\n studentNewCategoryDefaultLabel={studentNewCategoryDefaultLabel}\n />\n\n {rationaleEnabled && (\n <InputContainer label={rationale.label || 'Rationale'} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.rationale || ''}\n onChange={this.onRationaleChange}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default withStyles(styles)(Configure);\n"],"file":"configure.js"}
|
|
@@ -72,6 +72,19 @@ var _default = {
|
|
|
72
72
|
interactive: true,
|
|
73
73
|
editable: false
|
|
74
74
|
},
|
|
75
|
+
availableChartTypes: {
|
|
76
|
+
bar: 'Bar Chart',
|
|
77
|
+
histogram: 'Histogram',
|
|
78
|
+
lineDot: 'Line Chart ●',
|
|
79
|
+
lineCross: 'Line Chart x',
|
|
80
|
+
dotPlot: 'Dot/Line Plot ⬤',
|
|
81
|
+
linePlot: 'Dot/Line Plot X'
|
|
82
|
+
},
|
|
83
|
+
chartTypeLabel: 'ChartType',
|
|
84
|
+
studentNewCategoryDefaultLabel: {
|
|
85
|
+
settings: false,
|
|
86
|
+
label: 'Category'
|
|
87
|
+
},
|
|
75
88
|
prompt: {
|
|
76
89
|
settings: true,
|
|
77
90
|
label: 'Item Stem'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","addCategoryEnabled","chartType","correctAnswer","data","domain","graph","width","height","prompt","promptEnabled","rationale","range","label","max","min","scoringType","title","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","studentNewCategoryDefaultLabel","changeInteractiveEnabled","changeEditableEnabled","changeAddCategoryEnabled","configuration","spellCheck","settings","enabled","chartDimensions","showInConfigPanel","step","authorNewCategoryDefaults","interactive","editable","settingsPanelDisabled","studentInstructions","teacherInstructions","titlePlaceholder","labelsPlaceholders","left","right","top","bottom","maxImageWidth","maxImageHeight","withRubric","chartingOptions","changeInteractive","authoringLabel","settingsLabel","changeEditable","addCategory"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,kBAAkB,EAAE,IADf;AAELC,IAAAA,SAAS,EAAE,WAFN;AAGLC,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,IAAI,EAAE,EAJD;AAKLC,IAAAA,MAAM,EAAE,EALH;AAMLC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAE,GADF;AAELC,MAAAA,MAAM,EAAE;AAFH,KANF;AAULC,IAAAA,MAAM,EAAE,EAVH;AAWLC,IAAAA,aAAa,EAAE,IAXV;AAYLC,IAAAA,SAAS,EAAE,EAZN;AAaLC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAE,EADF;AAELC,MAAAA,GAAG,EAAE,CAFA;AAGLC,MAAAA,GAAG,EAAE;AAHA,KAbF;AAkBLC,IAAAA,WAAW,EAAE,gBAlBR;AAmBLC,IAAAA,KAAK,EAAE,EAnBF;AAoBLC,IAAAA,gBAAgB,EAAE,IApBb;AAqBLC,IAAAA,0BAA0B,EAAE,IArBvB;AAsBLC,IAAAA,0BAA0B,EAAE,IAtBvB;AAuBLC,IAAAA,8BAA8B,EAAE,cAvB3B;AAwBLC,IAAAA,wBAAwB,EAAE,IAxBrB;AAyBLC,IAAAA,qBAAqB,EAAE,IAzBlB;AA0BLC,IAAAA,wBAAwB,EAAE;AA1BrB,GADM;AA6BbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,UAAU,EAAE;AACVb,MAAAA,KAAK,EAAE,YADG;AAEVc,MAAAA,QAAQ,EAAE,KAFA;AAGVC,MAAAA,OAAO,EAAE;AAHC,KADC;AAMbC,IAAAA,eAAe,EAAE;AACfF,MAAAA,QAAQ,EAAE,KADK;AAEfd,MAAAA,KAAK,EAAE,kBAFQ;AAGfiB,MAAAA,iBAAiB,EAAE,IAHJ;AAIfvB,MAAAA,KAAK,EAAE;AACLQ,QAAAA,GAAG,EAAE,EADA;AAELD,QAAAA,GAAG,EAAE,GAFA;AAGLiB,QAAAA,IAAI,EAAE;AAHD,OAJQ;AASfvB,MAAAA,MAAM,EAAE;AACNO,QAAAA,GAAG,EAAE,GADC;AAEND,QAAAA,GAAG,EAAE,GAFC;AAGNiB,QAAAA,IAAI,EAAE;AAHA;AATO,KANJ;AAqBbC,IAAAA,yBAAyB,EAAE;AACzBL,MAAAA,QAAQ,EAAE,KADe;AAEzBd,MAAAA,KAAK,EAAE,UAFkB;AAGzBoB,MAAAA,WAAW,EAAE,IAHY;AAIzBC,MAAAA,QAAQ,EAAE;AAJe,KArBd;
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","addCategoryEnabled","chartType","correctAnswer","data","domain","graph","width","height","prompt","promptEnabled","rationale","range","label","max","min","scoringType","title","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","studentNewCategoryDefaultLabel","changeInteractiveEnabled","changeEditableEnabled","changeAddCategoryEnabled","configuration","spellCheck","settings","enabled","chartDimensions","showInConfigPanel","step","authorNewCategoryDefaults","interactive","editable","availableChartTypes","bar","histogram","lineDot","lineCross","dotPlot","linePlot","chartTypeLabel","settingsPanelDisabled","studentInstructions","teacherInstructions","titlePlaceholder","labelsPlaceholders","left","right","top","bottom","maxImageWidth","maxImageHeight","withRubric","chartingOptions","changeInteractive","authoringLabel","settingsLabel","changeEditable","addCategory"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,kBAAkB,EAAE,IADf;AAELC,IAAAA,SAAS,EAAE,WAFN;AAGLC,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,IAAI,EAAE,EAJD;AAKLC,IAAAA,MAAM,EAAE,EALH;AAMLC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAE,GADF;AAELC,MAAAA,MAAM,EAAE;AAFH,KANF;AAULC,IAAAA,MAAM,EAAE,EAVH;AAWLC,IAAAA,aAAa,EAAE,IAXV;AAYLC,IAAAA,SAAS,EAAE,EAZN;AAaLC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAE,EADF;AAELC,MAAAA,GAAG,EAAE,CAFA;AAGLC,MAAAA,GAAG,EAAE;AAHA,KAbF;AAkBLC,IAAAA,WAAW,EAAE,gBAlBR;AAmBLC,IAAAA,KAAK,EAAE,EAnBF;AAoBLC,IAAAA,gBAAgB,EAAE,IApBb;AAqBLC,IAAAA,0BAA0B,EAAE,IArBvB;AAsBLC,IAAAA,0BAA0B,EAAE,IAtBvB;AAuBLC,IAAAA,8BAA8B,EAAE,cAvB3B;AAwBLC,IAAAA,wBAAwB,EAAE,IAxBrB;AAyBLC,IAAAA,qBAAqB,EAAE,IAzBlB;AA0BLC,IAAAA,wBAAwB,EAAE;AA1BrB,GADM;AA6BbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,UAAU,EAAE;AACVb,MAAAA,KAAK,EAAE,YADG;AAEVc,MAAAA,QAAQ,EAAE,KAFA;AAGVC,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,QAAAA,QAAQ,EAAE,KADI;AAEd8B,QAAAA,cAAc,EAAE,uBAFF;AAGdC,QAAAA,aAAa,EAAE;AAHD,OAND;AAWfE,MAAAA,WAAW,EAAE;AACXjC,QAAAA,QAAQ,EAAE,KADC;AAEX8B,QAAAA,cAAc,EAAE,4BAFL;AAGXC,QAAAA,aAAa,EAAE;AAHJ;AAXE;AAzFJ;AA7BF,C","sourcesContent":["/**\n * NOTE: There's no functionality described for graphTitle,\n * rationale, scoringType, studentInstructions, teacherInstructions\n * so there's no implementation (they are only added in model)\n */\n\n// const createCategory = (label, value) => ({\n// label,\n// value,\n// interactive: true,\n// editable: true\n// });\n\nexport default {\n model: {\n addCategoryEnabled: true,\n chartType: 'lineCross',\n correctAnswer: {},\n data: [],\n domain: {},\n graph: {\n width: 480,\n height: 480,\n },\n prompt: '',\n promptEnabled: true,\n rationale: '',\n range: {\n label: '',\n max: 1,\n min: 0,\n },\n scoringType: 'all or nothing',\n title: '',\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n studentNewCategoryDefaultLabel: 'New Category',\n changeInteractiveEnabled: true,\n changeEditableEnabled: true,\n changeAddCategoryEnabled: true,\n },\n configuration: {\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n chartDimensions: {\n settings: false,\n label: 'Chart Dimensions',\n showInConfigPanel: true,\n width: {\n min: 50,\n max: 700,\n step: 20,\n },\n height: {\n min: 400,\n max: 700,\n step: 20,\n },\n },\n authorNewCategoryDefaults: {\n settings: false,\n label: 'Category',\n interactive: true,\n editable: false,\n },\n availableChartTypes: {\n bar: 'Bar Chart',\n histogram: 'Histogram',\n lineDot: 'Line Chart ●',\n lineCross: 'Line Chart x',\n dotPlot: 'Dot/Line Plot ⬤',\n linePlot: 'Dot/Line Plot X',\n },\n chartTypeLabel: 'ChartType',\n studentNewCategoryDefaultLabel: {\n settings: false,\n label: 'Category',\n },\n prompt: {\n settings: true,\n label: 'Item Stem',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n },\n scoringType: {\n settings: false,\n label: 'Scoring Type',\n },\n settingsPanelDisabled: false,\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n title: {\n settings: false,\n label: 'Chart Title',\n },\n titlePlaceholder: {\n settings: false,\n label: 'Click here to add a title',\n },\n labelsPlaceholders: {\n left: 'Click here to add a label for this axis',\n right: '',\n top: '',\n bottom: 'Click here to add a label for this axis',\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n chartingOptions: {\n changeInteractive: {\n settings: false,\n authoringLabel: 'Student can set value',\n settingsLabel: 'Allow non-interactive categories',\n },\n changeEditable: {\n settings: false,\n authoringLabel: 'Student can edit name',\n settingsLabel: 'Allow editable category names',\n },\n addCategory: {\n settings: false,\n authoringLabel: 'Student can add categories',\n settingsLabel: 'Allow changes to whether students can add categories',\n },\n },\n },\n};\n"],"file":"defaults.js"}
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/charting-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "5.8.
|
|
4
|
+
"version": "5.8.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
11
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
12
|
-
"@pie-lib/charting": "^5.
|
|
13
|
-
"@pie-lib/config-ui": "^11.6.
|
|
14
|
-
"@pie-lib/editable-html": "^9.6.
|
|
12
|
+
"@pie-lib/charting": "^5.12.0",
|
|
13
|
+
"@pie-lib/config-ui": "^11.6.10",
|
|
14
|
+
"@pie-lib/editable-html": "^9.6.2",
|
|
15
15
|
"@pie-lib/math-rendering": "^2.5.14",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"debug": "^4.1.1",
|
package/docs/config-schema.json
CHANGED
|
@@ -335,6 +335,55 @@
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
|
+
"availableChartTypes": {
|
|
339
|
+
"title": "AvailableChartTypes",
|
|
340
|
+
"type": "object",
|
|
341
|
+
"properties": {
|
|
342
|
+
"bar": {
|
|
343
|
+
"description": "Indicates if bar chart is available and the label used for it.",
|
|
344
|
+
"type": "string",
|
|
345
|
+
"title": "bar"
|
|
346
|
+
},
|
|
347
|
+
"histogram": {
|
|
348
|
+
"description": "Indicates if histogram is available and the label used for it.",
|
|
349
|
+
"type": "string",
|
|
350
|
+
"title": "histogram"
|
|
351
|
+
},
|
|
352
|
+
"lineDot": {
|
|
353
|
+
"description": "Indicates if line chart with dots is available and the label used for it.",
|
|
354
|
+
"type": "string",
|
|
355
|
+
"title": "lineDot"
|
|
356
|
+
},
|
|
357
|
+
"lineCross": {
|
|
358
|
+
"description": "Indicates if line chart with crosses is available and the label used for it.",
|
|
359
|
+
"type": "string",
|
|
360
|
+
"title": "lineCross"
|
|
361
|
+
},
|
|
362
|
+
"dotPlot": {
|
|
363
|
+
"description": "Indicates if dot plot is available and the label used for it.",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"title": "dotPlot"
|
|
366
|
+
},
|
|
367
|
+
"linePlot": {
|
|
368
|
+
"description": "Indicates if line plot is available and the label used for it.",
|
|
369
|
+
"type": "string",
|
|
370
|
+
"title": "linePlot"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": [
|
|
374
|
+
"bar",
|
|
375
|
+
"dotPlot",
|
|
376
|
+
"histogram",
|
|
377
|
+
"lineCross",
|
|
378
|
+
"lineDot",
|
|
379
|
+
"linePlot"
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
"chartTypeLabel": {
|
|
383
|
+
"description": "Indicates the label for the chart type",
|
|
384
|
+
"type": "string",
|
|
385
|
+
"title": "chartTypeLabel"
|
|
386
|
+
},
|
|
338
387
|
"showPrompt": {
|
|
339
388
|
"description": "Determines whether prompt field will be displayed or not",
|
|
340
389
|
"default": true,
|
|
@@ -399,7 +448,8 @@
|
|
|
399
448
|
}
|
|
400
449
|
},
|
|
401
450
|
"required": [
|
|
402
|
-
"authorNewCategoryDefaults"
|
|
451
|
+
"authorNewCategoryDefaults",
|
|
452
|
+
"chartTypeLabel"
|
|
403
453
|
],
|
|
404
454
|
"definitions": {
|
|
405
455
|
"ConfigureProp": {
|
|
@@ -616,6 +666,50 @@
|
|
|
616
666
|
"title": "settingsLabel"
|
|
617
667
|
}
|
|
618
668
|
}
|
|
669
|
+
},
|
|
670
|
+
"AvailableChartTypes": {
|
|
671
|
+
"title": "AvailableChartTypes",
|
|
672
|
+
"type": "object",
|
|
673
|
+
"properties": {
|
|
674
|
+
"bar": {
|
|
675
|
+
"description": "Indicates if bar chart is available and the label used for it.",
|
|
676
|
+
"type": "string",
|
|
677
|
+
"title": "bar"
|
|
678
|
+
},
|
|
679
|
+
"histogram": {
|
|
680
|
+
"description": "Indicates if histogram is available and the label used for it.",
|
|
681
|
+
"type": "string",
|
|
682
|
+
"title": "histogram"
|
|
683
|
+
},
|
|
684
|
+
"lineDot": {
|
|
685
|
+
"description": "Indicates if line chart with dots is available and the label used for it.",
|
|
686
|
+
"type": "string",
|
|
687
|
+
"title": "lineDot"
|
|
688
|
+
},
|
|
689
|
+
"lineCross": {
|
|
690
|
+
"description": "Indicates if line chart with crosses is available and the label used for it.",
|
|
691
|
+
"type": "string",
|
|
692
|
+
"title": "lineCross"
|
|
693
|
+
},
|
|
694
|
+
"dotPlot": {
|
|
695
|
+
"description": "Indicates if dot plot is available and the label used for it.",
|
|
696
|
+
"type": "string",
|
|
697
|
+
"title": "dotPlot"
|
|
698
|
+
},
|
|
699
|
+
"linePlot": {
|
|
700
|
+
"description": "Indicates if line plot is available and the label used for it.",
|
|
701
|
+
"type": "string",
|
|
702
|
+
"title": "linePlot"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"required": [
|
|
706
|
+
"bar",
|
|
707
|
+
"dotPlot",
|
|
708
|
+
"histogram",
|
|
709
|
+
"lineCross",
|
|
710
|
+
"lineDot",
|
|
711
|
+
"linePlot"
|
|
712
|
+
]
|
|
619
713
|
}
|
|
620
714
|
},
|
|
621
715
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -256,6 +256,38 @@ Indicates the label for the option
|
|
|
256
256
|
|
|
257
257
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
258
258
|
|
|
259
|
+
# `availableChartTypes` (object)
|
|
260
|
+
|
|
261
|
+
Properties of the `availableChartTypes` object:
|
|
262
|
+
|
|
263
|
+
## `bar` (string, required)
|
|
264
|
+
|
|
265
|
+
Indicates if bar chart is available and the label used for it.
|
|
266
|
+
|
|
267
|
+
## `histogram` (string, required)
|
|
268
|
+
|
|
269
|
+
Indicates if histogram is available and the label used for it.
|
|
270
|
+
|
|
271
|
+
## `lineDot` (string, required)
|
|
272
|
+
|
|
273
|
+
Indicates if line chart with dots is available and the label used for it.
|
|
274
|
+
|
|
275
|
+
## `lineCross` (string, required)
|
|
276
|
+
|
|
277
|
+
Indicates if line chart with crosses is available and the label used for it.
|
|
278
|
+
|
|
279
|
+
## `dotPlot` (string, required)
|
|
280
|
+
|
|
281
|
+
Indicates if dot plot is available and the label used for it.
|
|
282
|
+
|
|
283
|
+
## `linePlot` (string, required)
|
|
284
|
+
|
|
285
|
+
Indicates if line plot is available and the label used for it.
|
|
286
|
+
|
|
287
|
+
# `chartTypeLabel` (string, required)
|
|
288
|
+
|
|
289
|
+
Indicates the label for the chart type
|
|
290
|
+
|
|
259
291
|
# `showPrompt` (boolean)
|
|
260
292
|
|
|
261
293
|
Determines whether prompt field will be displayed or not
|
|
@@ -478,4 +510,32 @@ Indicates the label for the option
|
|
|
478
510
|
|
|
479
511
|
### `settingsLabel` (string)
|
|
480
512
|
|
|
481
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
513
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
514
|
+
|
|
515
|
+
## `AvailableChartTypes` (object)
|
|
516
|
+
|
|
517
|
+
Properties of the `AvailableChartTypes` object:
|
|
518
|
+
|
|
519
|
+
### `bar` (string, required)
|
|
520
|
+
|
|
521
|
+
Indicates if bar chart is available and the label used for it.
|
|
522
|
+
|
|
523
|
+
### `histogram` (string, required)
|
|
524
|
+
|
|
525
|
+
Indicates if histogram is available and the label used for it.
|
|
526
|
+
|
|
527
|
+
### `lineDot` (string, required)
|
|
528
|
+
|
|
529
|
+
Indicates if line chart with dots is available and the label used for it.
|
|
530
|
+
|
|
531
|
+
### `lineCross` (string, required)
|
|
532
|
+
|
|
533
|
+
Indicates if line chart with crosses is available and the label used for it.
|
|
534
|
+
|
|
535
|
+
### `dotPlot` (string, required)
|
|
536
|
+
|
|
537
|
+
Indicates if dot plot is available and the label used for it.
|
|
538
|
+
|
|
539
|
+
### `linePlot` (string, required)
|
|
540
|
+
|
|
541
|
+
Indicates if line plot is available and the label used for it.
|
package/docs/pie-schema.json
CHANGED
|
@@ -770,6 +770,50 @@
|
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
},
|
|
773
|
+
"AvailableChartTypes": {
|
|
774
|
+
"title": "AvailableChartTypes",
|
|
775
|
+
"type": "object",
|
|
776
|
+
"properties": {
|
|
777
|
+
"bar": {
|
|
778
|
+
"description": "Indicates if bar chart is available and the label used for it.",
|
|
779
|
+
"type": "string",
|
|
780
|
+
"title": "bar"
|
|
781
|
+
},
|
|
782
|
+
"histogram": {
|
|
783
|
+
"description": "Indicates if histogram is available and the label used for it.",
|
|
784
|
+
"type": "string",
|
|
785
|
+
"title": "histogram"
|
|
786
|
+
},
|
|
787
|
+
"lineDot": {
|
|
788
|
+
"description": "Indicates if line chart with dots is available and the label used for it.",
|
|
789
|
+
"type": "string",
|
|
790
|
+
"title": "lineDot"
|
|
791
|
+
},
|
|
792
|
+
"lineCross": {
|
|
793
|
+
"description": "Indicates if line chart with crosses is available and the label used for it.",
|
|
794
|
+
"type": "string",
|
|
795
|
+
"title": "lineCross"
|
|
796
|
+
},
|
|
797
|
+
"dotPlot": {
|
|
798
|
+
"description": "Indicates if dot plot is available and the label used for it.",
|
|
799
|
+
"type": "string",
|
|
800
|
+
"title": "dotPlot"
|
|
801
|
+
},
|
|
802
|
+
"linePlot": {
|
|
803
|
+
"description": "Indicates if line plot is available and the label used for it.",
|
|
804
|
+
"type": "string",
|
|
805
|
+
"title": "linePlot"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"required": [
|
|
809
|
+
"bar",
|
|
810
|
+
"dotPlot",
|
|
811
|
+
"histogram",
|
|
812
|
+
"lineCross",
|
|
813
|
+
"lineDot",
|
|
814
|
+
"linePlot"
|
|
815
|
+
]
|
|
816
|
+
},
|
|
773
817
|
"Answer": {
|
|
774
818
|
"title": "Answer",
|
|
775
819
|
"type": "object",
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -362,6 +362,34 @@ Indicates the label for the option
|
|
|
362
362
|
|
|
363
363
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
364
364
|
|
|
365
|
+
## `AvailableChartTypes` (object)
|
|
366
|
+
|
|
367
|
+
Properties of the `AvailableChartTypes` object:
|
|
368
|
+
|
|
369
|
+
### `bar` (string, required)
|
|
370
|
+
|
|
371
|
+
Indicates if bar chart is available and the label used for it.
|
|
372
|
+
|
|
373
|
+
### `histogram` (string, required)
|
|
374
|
+
|
|
375
|
+
Indicates if histogram is available and the label used for it.
|
|
376
|
+
|
|
377
|
+
### `lineDot` (string, required)
|
|
378
|
+
|
|
379
|
+
Indicates if line chart with dots is available and the label used for it.
|
|
380
|
+
|
|
381
|
+
### `lineCross` (string, required)
|
|
382
|
+
|
|
383
|
+
Indicates if line chart with crosses is available and the label used for it.
|
|
384
|
+
|
|
385
|
+
### `dotPlot` (string, required)
|
|
386
|
+
|
|
387
|
+
Indicates if dot plot is available and the label used for it.
|
|
388
|
+
|
|
389
|
+
### `linePlot` (string, required)
|
|
390
|
+
|
|
391
|
+
Indicates if line plot is available and the label used for it.
|
|
392
|
+
|
|
365
393
|
## `Answer` (object)
|
|
366
394
|
|
|
367
395
|
Properties of the `Answer` object:
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "5.11.3-next.
|
|
7
|
+
"version": "5.11.3-next.121+c54f9d9c0",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@material-ui/core": "^3.9.2",
|
|
15
15
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
16
|
-
"@pie-lib/charting": "^5.
|
|
16
|
+
"@pie-lib/charting": "^5.12.0",
|
|
17
17
|
"@pie-lib/correct-answer-toggle": "^2.3.74",
|
|
18
18
|
"@pie-lib/math-rendering": "^2.5.14",
|
|
19
19
|
"@pie-lib/render-ui": "^4.14.24",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "c54f9d9c09365eb318522fa0a14745c99b2accc4",
|
|
29
29
|
"main": "lib/index.js",
|
|
30
30
|
"module": "src/index.js"
|
|
31
31
|
}
|