@pie-element/multiple-choice 8.7.1-next.5 → 8.8.0

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 CHANGED
@@ -3,6 +3,27 @@
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
+ # [8.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@8.7.0...@pie-element/multiple-choice@8.8.0) (2024-03-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Renamed the html prop to the correct math prop PD-3527 ([28061b6](https://github.com/pie-framework/pie-elements/commit/28061b6032817dae15837131d8a0bf5a08683b10))
12
+ * updated pie-lib/pie-toolbox SC-28500 ([a8e4e6a](https://github.com/pie-framework/pie-elements/commit/a8e4e6ab27584435ce7ac3e964ccac2747402777))
13
+
14
+
15
+ ### Features
16
+
17
+ * Add configuration for custom buttons PD-3520 ([a7a7ace](https://github.com/pie-framework/pie-elements/commit/a7a7ace27eaac47c9a0f172f7ae0440c6dc4e600))
18
+ * Add configuration for custom buttons PD-3527 ([45a32bd](https://github.com/pie-framework/pie-elements/commit/45a32bd8e9d7bd33beca74cc10c7dd973a9f9dbc))
19
+ * Replace math-rendering package with math-rendering-accessible-package for accessibility PD-1870 ([b6cdee8](https://github.com/pie-framework/pie-elements/commit/b6cdee8915b06e4c11b002b10437db07ce966501))
20
+ * updated pie-lib/pie-toolbox SC-27890 and reverted once again math-rendering-accessible ([fd312e1](https://github.com/pie-framework/pie-elements/commit/fd312e1336999893025231946649496d290883e4))
21
+ * use math-rendering-accessible everywhere PD-1870 ([d52e660](https://github.com/pie-framework/pie-elements/commit/d52e6607ad8847d704bd9cb9b7e3107c130f0500))
22
+
23
+
24
+
25
+
26
+
6
27
  # [8.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@8.6.1...@pie-element/multiple-choice@8.7.0) (2024-03-15)
7
28
 
8
29
 
@@ -3,6 +3,24 @@
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
+ # [6.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@6.6.0...@pie-element/multiple-choice-configure@6.7.0) (2024-03-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * updated pie-lib/pie-toolbox SC-28500 ([a8e4e6a](https://github.com/pie-framework/pie-elements/commit/a8e4e6ab27584435ce7ac3e964ccac2747402777))
12
+
13
+
14
+ ### Features
15
+
16
+ * Add configuration for custom buttons PD-3520 ([a7a7ace](https://github.com/pie-framework/pie-elements/commit/a7a7ace27eaac47c9a0f172f7ae0440c6dc4e600))
17
+ * updated pie-lib/pie-toolbox SC-27890 and reverted once again math-rendering-accessible ([fd312e1](https://github.com/pie-framework/pie-elements/commit/fd312e1336999893025231946649496d290883e4))
18
+ * use math-rendering-accessible everywhere PD-1870 ([d52e660](https://github.com/pie-framework/pie-elements/commit/d52e6607ad8847d704bd9cb9b7e3107c130f0500))
19
+
20
+
21
+
22
+
23
+
6
24
  # [6.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@6.5.2...@pie-element/multiple-choice-configure@6.6.0) (2024-03-15)
7
25
 
8
26
 
@@ -228,8 +228,9 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
228
228
  maxAnswerChoices = MAX_CHOICES;
229
229
  }
230
230
 
231
- var getPluginProps = function getPluginProps(props) {
232
- return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
231
+ var getPluginProps = function getPluginProps() {
232
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
233
+ return _objectSpread(_objectSpread({}, baseInputConfiguration), props);
233
234
  };
234
235
 
235
236
  var validationMessage = (0, _utils.generateValidationMessage)(configuration);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","dropdown","MAX_CHOICES","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","rationaleHolder","flex","marginTop","marginLeft","accessibilityHolder","choiceConfigurationHolder","display","flexDirection","choiceConfiguration","switchElement","justifyContent","margin","addButton","disableButton","cursor","pointerEvents","backgroundColor","color","disabled","flexContainer","alignItems","titleText","fontSize","typography","marginRight","tooltip","whiteSpace","maxWidth","errorText","palette","error","main","Design","props","classes","model","configuration","onPromptChanged","onChoiceChanged","onRemoveChoice","onAddChoice","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","addChoiceButton","contentDimensions","feedback","deleteChoice","choiceMode","choicePrefix","partialScoring","lockChoiceOrder","teacherInstructions","studentInstructions","rationale","accessibility","scoringType","sequentialChoiceLabels","settingsPanelDisabled","choicesLayout","spellCheck","gridColumns","maxImageWidth","maxImageHeight","prompt","withRubric","mathMlOptions","language","languageChoices","maxAnswerChoices","limitChoicesNumber","teacherInstructionsEnabled","rationaleEnabled","accessibilityLabelsEnabled","feedbackEnabled","promptEnabled","spellCheckEnabled","choices","errors","toolbarEditorPosition","choicesErrors","correctResponseError","answerChoicesError","nrOfColumnsAvailable","length","Array","from","_","i","baseInputConfiguration","toolbarOpts","position","getPluginProps","Object","assign","validationMessage","defaultImageMaxWidth","defaultImageMaxHeight","addChoiceButtonTooltip","panelSettings","label","enabled","options","panelProperties","studentInstructionsEnabled","rubricEnabled","Settings","Properties","inputConfiguration","map","choice","index","c","value","root","Main","showWarning","onModelChanged","minAnswerChoices","setState","splice","push","utils","firstAvailableIndex","type","correct","key","correctFound","state","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAA2CC,kBAA3C,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA2CD,kB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op-types';\nimport { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';\nimport {\n AlertDialog,\n InputContainer,\n ChoiceConfiguration,\n settings,\n layout,\n choiceUtils as utils,\n} from '@pie-lib/pie-toolbox/config-ui';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport Info from '@material-ui/icons/Info';\nimport merge from 'lodash/merge';\nimport { generateValidationMessage } from './utils';\n\nconst { Panel, toggle, radio, dropdown } = settings;\n\nconst MAX_CHOICES = 9;\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n rationaleHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n accessibilityHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n choiceConfigurationHolder: {\n display: 'flex',\n flexDirection: 'column',\n marginBottom: theme.spacing.unit,\n },\n choiceConfiguration: {\n width: '100%',\n },\n switchElement: {\n justifyContent: 'space-between',\n margin: 0,\n },\n addButton: {\n marginTop: theme.spacing.unit,\n float: 'right',\n },\n disableButton: {\n cursor: 'not-allowed',\n pointerEvents: 'all',\n backgroundColor: color.disabled(),\n '&:hover': {\n backgroundColor: color.disabled(),\n },\n '&:focus': {\n backgroundColor: color.disabled(),\n },\n },\n flexContainer: {\n display: 'flex',\n alignItems: 'center',\n },\n titleText: {\n fontSize: theme.typography.fontSize + 2,\n marginRight: theme.spacing.unit,\n },\n tooltip: {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre',\n maxWidth: '500px',\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n onChoiceChanged,\n onRemoveChoice,\n onAddChoice,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged,\n } = props;\n\n const {\n addChoiceButton = {},\n contentDimensions = {},\n feedback = {},\n deleteChoice = {},\n choiceMode = {},\n choicePrefix = {},\n partialScoring = {},\n lockChoiceOrder = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n accessibility = {},\n scoringType = {},\n sequentialChoiceLabels = {},\n settingsPanelDisabled,\n choicesLayout,\n spellCheck = {},\n gridColumns,\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n let { maxAnswerChoices } = configuration || {};\n const {\n limitChoicesNumber,\n teacherInstructionsEnabled,\n rationaleEnabled,\n accessibilityLabelsEnabled,\n feedbackEnabled,\n promptEnabled,\n spellCheckEnabled,\n choices,\n errors,\n toolbarEditorPosition,\n } = model || {};\n\n const { choicesErrors, correctResponseError, answerChoicesError } = errors || {};\n const nrOfColumnsAvailable = choices?.length ? Array.from({ length: choices.length }, (_, i) => `${i + 1}`) : [];\n\n const { baseInputConfiguration = {} } = configuration;\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n const getPluginProps = (props) => {\n return Object.assign({\n ...baseInputConfiguration,\n },\n props || {},\n );\n };\n\n const validationMessage = generateValidationMessage(configuration);\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const addChoiceButtonTooltip =\n maxAnswerChoices && choices?.length >= maxAnswerChoices ? `Only ${maxAnswerChoices} allowed maximum` : '';\n\n const panelSettings = {\n choiceMode: choiceMode.settings && radio(choiceMode.label, ['checkbox', 'radio']),\n 'sequentialChoiceLabels.enabled': sequentialChoiceLabels.settings && toggle(sequentialChoiceLabels.label, true),\n choicePrefix: choicePrefix.settings && radio(choicePrefix.label, ['numbers', 'letters']),\n partialScoring: partialScoring.settings && toggle(partialScoring.label),\n lockChoiceOrder: lockChoiceOrder.settings && toggle(lockChoiceOrder.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n choicesLayout: choicesLayout.settings && dropdown(choicesLayout.label, ['vertical', 'grid', 'horizontal']),\n gridColumns:\n choicesLayout.settings &&\n model.choicesLayout === 'grid' &&\n nrOfColumnsAvailable.length > 0 &&\n dropdown(gridColumns.label, nrOfColumnsAvailable),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n accessibilityLabelsEnabled: accessibility.settings && toggle(accessibility.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\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 onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.teacherInstructions?.inputConfiguration)}\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 mathMlOptions={mathMlOptions}\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={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n disableUnderline\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.prompt?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={maxImageWidth && maxImageWidth.prompt}\n maxImageHeight={maxImageHeight && maxImageHeight.prompt}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n <div className={classes.flexContainer}>\n <Typography className={classes.titleText}>Choices</Typography>\n <Tooltip\n classes={{ tooltip: classes.tooltip }}\n disableFocusListener\n disableTouchListener\n placement={'right'}\n title={validationMessage}\n >\n <Info fontSize={'small'} color={'primary'} />\n </Tooltip>\n </div>\n\n {choices.map((choice, index) => (\n <div key={`choice-${index}`} className={classes.choiceConfigurationHolder}>\n <ChoiceConfiguration\n key={index}\n index={index + 1}\n useLetterOrdering={model.choicePrefix === 'letters'}\n className={classes.choiceConfiguration}\n mode={model.choiceMode}\n data={choice}\n defaultFeedback={{}}\n imageSupport={imageSupport}\n disableImageAlignmentButtons={true}\n onDelete={() => onRemoveChoice(index)}\n onChange={(c) => onChoiceChanged(index, c)}\n allowFeedBack={feedbackEnabled}\n allowDelete={deleteChoice.settings}\n noLabels\n pluginOpts={getPluginProps(configuration?.choices?.inputConfiguration)}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n error={choicesErrors?.[choice.value] || null}\n noCorrectAnswerError={correctResponseError}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n />\n\n {rationaleEnabled && (\n <InputContainer key={`rationale-${index}`} label={rationale.label} className={classes.rationaleHolder}>\n <EditableHtml\n className={classes.rationale}\n markup={choice.rationale || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, rationale: c })}\n imageSupport={imageSupport}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.rationale?.inputConfiguration)}\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 mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {accessibilityLabelsEnabled && (\n <InputContainer\n key={`accessibility-${index}`}\n label={accessibility.label}\n className={classes.accessibilityHolder}\n >\n <EditableHtml\n className={classes.accessibility}\n markup={choice.accessibility || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, accessibility: c })}\n imageSupport={imageSupport}\n pluginProps={getPluginProps(configuration?.accessibility?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n </div>\n ))}\n\n {correctResponseError && <div className={classes.errorText}>{correctResponseError}</div>}\n {answerChoicesError && <div className={classes.errorText}>{answerChoicesError}</div>}\n\n {addChoiceButton.settings && (\n <Tooltip title={addChoiceButtonTooltip} classes={{ tooltip: classes.tooltip }}>\n <Button\n classes={{ root: maxAnswerChoices && choices?.length >= maxAnswerChoices && classes.disableButton }}\n className={classes.addButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={onAddChoice}\n >\n {addChoiceButton.label}\n </Button>\n </Tooltip>\n )}\n </layout.ConfigLayout>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n state = { showWarning: false };\n\n onRemoveChoice = (index) => {\n const { model, configuration, onModelChanged } = this.props;\n const { minAnswerChoices } = configuration || {};\n\n if (minAnswerChoices && model.choices.length === minAnswerChoices) {\n this.setState({ showWarning: true });\n\n return;\n }\n\n model.choices.splice(index, 1);\n onModelChanged(model);\n };\n\n onAddChoice = () => {\n const { model, configuration, onModelChanged } = this.props;\n let { maxAnswerChoices } = configuration || {};\n const { limitChoicesNumber } = model || {};\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n if (maxAnswerChoices && model.choices.length >= maxAnswerChoices) {\n return;\n }\n\n model.choices.push({\n label: '',\n value: utils.firstAvailableIndex(\n model.choices.map((c) => c.value),\n 0,\n ),\n feedback: { type: 'none' },\n });\n\n onModelChanged(model);\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n if (choice.correct && model.choiceMode === 'radio') {\n model.choices = model.choices.map((c) => merge({}, c, { correct: false }));\n }\n\n model.choices.splice(index, 1, choice);\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({\n ...this.props.model,\n prompt,\n });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions,\n });\n };\n\n onModelChanged = (model, key) => {\n const { onModelChanged } = this.props;\n\n switch (key) {\n case 'choiceMode': {\n let value = model.choiceMode;\n\n if (value === 'radio') {\n let correctFound = false;\n\n model.choices = model.choices.map((c) => {\n if (correctFound) {\n c.correct = false;\n\n return c;\n }\n\n if (c.correct) {\n correctFound = true;\n }\n\n return c;\n });\n }\n\n onModelChanged(model, true);\n break;\n }\n\n default:\n onModelChanged(model);\n break;\n }\n };\n\n render() {\n const { configuration: { minAnswerChoices } = {} } = this.props;\n const { showWarning } = this.state;\n\n return (\n <React.Fragment>\n <AlertDialog\n open={showWarning}\n title=\"Warning\"\n text={`There can't be less than ${minAnswerChoices || 0} choices.`}\n onConfirm={() => this.setState({ showWarning: false })}\n />\n <Design\n {...this.props}\n onChangeModel={this.onModelChanged}\n onRemoveChoice={this.onRemoveChoice}\n onChoiceChanged={this.onChoiceChanged}\n onAddChoice={this.onAddChoice}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n </React.Fragment>\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
1
+ {"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","dropdown","MAX_CHOICES","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","rationaleHolder","flex","marginTop","marginLeft","accessibilityHolder","choiceConfigurationHolder","display","flexDirection","choiceConfiguration","switchElement","justifyContent","margin","addButton","disableButton","cursor","pointerEvents","backgroundColor","color","disabled","flexContainer","alignItems","titleText","fontSize","typography","marginRight","tooltip","whiteSpace","maxWidth","errorText","palette","error","main","Design","props","classes","model","configuration","onPromptChanged","onChoiceChanged","onRemoveChoice","onAddChoice","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","addChoiceButton","contentDimensions","feedback","deleteChoice","choiceMode","choicePrefix","partialScoring","lockChoiceOrder","teacherInstructions","studentInstructions","rationale","accessibility","scoringType","sequentialChoiceLabels","settingsPanelDisabled","choicesLayout","spellCheck","gridColumns","maxImageWidth","maxImageHeight","prompt","withRubric","mathMlOptions","language","languageChoices","maxAnswerChoices","limitChoicesNumber","teacherInstructionsEnabled","rationaleEnabled","accessibilityLabelsEnabled","feedbackEnabled","promptEnabled","spellCheckEnabled","choices","errors","toolbarEditorPosition","choicesErrors","correctResponseError","answerChoicesError","nrOfColumnsAvailable","length","Array","from","_","i","baseInputConfiguration","toolbarOpts","position","getPluginProps","validationMessage","defaultImageMaxWidth","defaultImageMaxHeight","addChoiceButtonTooltip","panelSettings","label","enabled","options","panelProperties","studentInstructionsEnabled","rubricEnabled","Settings","Properties","inputConfiguration","map","choice","index","c","value","root","Main","showWarning","onModelChanged","minAnswerChoices","setState","splice","push","utils","firstAvailableIndex","type","correct","key","correctFound","state","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAA2CC,kBAA3C,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA2CD,kBAA3C,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAA2CF,kBAA3C,CAAuBE,KAAvB;AAAA,IAA8BC,QAA9B,GAA2CH,kBAA3C,CAA8BG,QAA9B;AAEA,IAAMC,WAAW,GAAG,CAApB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,E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ACM,KAAKnF,KADX;AAEE,QAAA,aAAa,EAAE,KAAKoF,cAFtB;AAGE,QAAA,cAAc,EAAE,KAAK9E,cAHvB;AAIE,QAAA,eAAe,EAAE,KAAKD,eAJxB;AAKE,QAAA,WAAW,EAAE,KAAKE,WALpB;AAME,QAAA,eAAe,EAAE,KAAKH,eANxB;AAOE,QAAA,4BAA4B,EAAE,KAAKQ;AAPrC,SAPF,CADF;AAmBD;;;EA3IuBoF,kBAAMC,S;;;iCAAnBf,I,eACQ;AACjBhF,EAAAA,KAAK,EAAEgG,sBAAUC,MAAV,CAAiBC,UADP;AAEjBjG,EAAAA,aAAa,EAAE+F,sBAAUC,MAAV,CAAiBC,UAFf;AAGjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAHX;AAIjBlB,EAAAA,cAAc,EAAEc,sBAAUK,IAAV,CAAeH,UAJd;AAKjBzF,EAAAA,sBAAsB,EAAEuF,sBAAUK,IAAV,CAAeH,UALtB;AAMjBnG,EAAAA,OAAO,EAAEiG,sBAAUC,MAAV,CAAiBC,UANT;AAOjB5F,EAAAA,YAAY,EAAE0F,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AAPG,C;AA6IrB,IAAMM,MAAM,GAAG,wBAAWnJ,MAAX,EAAmB2H,IAAnB,CAAf;eAEewB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';\nimport {\n AlertDialog,\n InputContainer,\n ChoiceConfiguration,\n settings,\n layout,\n choiceUtils as utils,\n} from '@pie-lib/pie-toolbox/config-ui';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport Info from '@material-ui/icons/Info';\nimport merge from 'lodash/merge';\nimport { generateValidationMessage } from './utils';\n\nconst { Panel, toggle, radio, dropdown } = settings;\n\nconst MAX_CHOICES = 9;\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n rationaleHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n accessibilityHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n choiceConfigurationHolder: {\n display: 'flex',\n flexDirection: 'column',\n marginBottom: theme.spacing.unit,\n },\n choiceConfiguration: {\n width: '100%',\n },\n switchElement: {\n justifyContent: 'space-between',\n margin: 0,\n },\n addButton: {\n marginTop: theme.spacing.unit,\n float: 'right',\n },\n disableButton: {\n cursor: 'not-allowed',\n pointerEvents: 'all',\n backgroundColor: color.disabled(),\n '&:hover': {\n backgroundColor: color.disabled(),\n },\n '&:focus': {\n backgroundColor: color.disabled(),\n },\n },\n flexContainer: {\n display: 'flex',\n alignItems: 'center',\n },\n titleText: {\n fontSize: theme.typography.fontSize + 2,\n marginRight: theme.spacing.unit,\n },\n tooltip: {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre',\n maxWidth: '500px',\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n onChoiceChanged,\n onRemoveChoice,\n onAddChoice,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged,\n } = props;\n\n const {\n addChoiceButton = {},\n contentDimensions = {},\n feedback = {},\n deleteChoice = {},\n choiceMode = {},\n choicePrefix = {},\n partialScoring = {},\n lockChoiceOrder = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n accessibility = {},\n scoringType = {},\n sequentialChoiceLabels = {},\n settingsPanelDisabled,\n choicesLayout,\n spellCheck = {},\n gridColumns,\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n let { maxAnswerChoices } = configuration || {};\n const {\n limitChoicesNumber,\n teacherInstructionsEnabled,\n rationaleEnabled,\n accessibilityLabelsEnabled,\n feedbackEnabled,\n promptEnabled,\n spellCheckEnabled,\n choices,\n errors,\n toolbarEditorPosition,\n } = model || {};\n\n const { choicesErrors, correctResponseError, answerChoicesError } = errors || {};\n const nrOfColumnsAvailable = choices?.length ? Array.from({ length: choices.length }, (_, i) => `${i + 1}`) : [];\n\n const { baseInputConfiguration = {} } = configuration;\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n const getPluginProps = (props = {}) => ({\n ...baseInputConfiguration,\n ...props,\n });\n\n const validationMessage = generateValidationMessage(configuration);\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const addChoiceButtonTooltip =\n maxAnswerChoices && choices?.length >= maxAnswerChoices ? `Only ${maxAnswerChoices} allowed maximum` : '';\n\n const panelSettings = {\n choiceMode: choiceMode.settings && radio(choiceMode.label, ['checkbox', 'radio']),\n 'sequentialChoiceLabels.enabled': sequentialChoiceLabels.settings && toggle(sequentialChoiceLabels.label, true),\n choicePrefix: choicePrefix.settings && radio(choicePrefix.label, ['numbers', 'letters']),\n partialScoring: partialScoring.settings && toggle(partialScoring.label),\n lockChoiceOrder: lockChoiceOrder.settings && toggle(lockChoiceOrder.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n choicesLayout: choicesLayout.settings && dropdown(choicesLayout.label, ['vertical', 'grid', 'horizontal']),\n gridColumns:\n choicesLayout.settings &&\n model.choicesLayout === 'grid' &&\n nrOfColumnsAvailable.length > 0 &&\n dropdown(gridColumns.label, nrOfColumnsAvailable),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n accessibilityLabelsEnabled: accessibility.settings && toggle(accessibility.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\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 onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.teacherInstructions?.inputConfiguration)}\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 mathMlOptions={mathMlOptions}\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={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n disableUnderline\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.prompt?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={maxImageWidth && maxImageWidth.prompt}\n maxImageHeight={maxImageHeight && maxImageHeight.prompt}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n <div className={classes.flexContainer}>\n <Typography className={classes.titleText}>Choices</Typography>\n <Tooltip\n classes={{ tooltip: classes.tooltip }}\n disableFocusListener\n disableTouchListener\n placement={'right'}\n title={validationMessage}\n >\n <Info fontSize={'small'} color={'primary'} />\n </Tooltip>\n </div>\n\n {choices.map((choice, index) => (\n <div key={`choice-${index}`} className={classes.choiceConfigurationHolder}>\n <ChoiceConfiguration\n key={index}\n index={index + 1}\n useLetterOrdering={model.choicePrefix === 'letters'}\n className={classes.choiceConfiguration}\n mode={model.choiceMode}\n data={choice}\n defaultFeedback={{}}\n imageSupport={imageSupport}\n disableImageAlignmentButtons={true}\n onDelete={() => onRemoveChoice(index)}\n onChange={(c) => onChoiceChanged(index, c)}\n allowFeedBack={feedbackEnabled}\n allowDelete={deleteChoice.settings}\n noLabels\n pluginOpts={getPluginProps(configuration?.choices?.inputConfiguration)}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n error={choicesErrors?.[choice.value] || null}\n noCorrectAnswerError={correctResponseError}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n />\n\n {rationaleEnabled && (\n <InputContainer key={`rationale-${index}`} label={rationale.label} className={classes.rationaleHolder}>\n <EditableHtml\n className={classes.rationale}\n markup={choice.rationale || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, rationale: c })}\n imageSupport={imageSupport}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.rationale?.inputConfiguration)}\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 mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {accessibilityLabelsEnabled && (\n <InputContainer\n key={`accessibility-${index}`}\n label={accessibility.label}\n className={classes.accessibilityHolder}\n >\n <EditableHtml\n className={classes.accessibility}\n markup={choice.accessibility || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, accessibility: c })}\n imageSupport={imageSupport}\n pluginProps={getPluginProps(configuration?.accessibility?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n </div>\n ))}\n\n {correctResponseError && <div className={classes.errorText}>{correctResponseError}</div>}\n {answerChoicesError && <div className={classes.errorText}>{answerChoicesError}</div>}\n\n {addChoiceButton.settings && (\n <Tooltip title={addChoiceButtonTooltip} classes={{ tooltip: classes.tooltip }}>\n <Button\n classes={{ root: maxAnswerChoices && choices?.length >= maxAnswerChoices && classes.disableButton }}\n className={classes.addButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={onAddChoice}\n >\n {addChoiceButton.label}\n </Button>\n </Tooltip>\n )}\n </layout.ConfigLayout>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n state = { showWarning: false };\n\n onRemoveChoice = (index) => {\n const { model, configuration, onModelChanged } = this.props;\n const { minAnswerChoices } = configuration || {};\n\n if (minAnswerChoices && model.choices.length === minAnswerChoices) {\n this.setState({ showWarning: true });\n\n return;\n }\n\n model.choices.splice(index, 1);\n onModelChanged(model);\n };\n\n onAddChoice = () => {\n const { model, configuration, onModelChanged } = this.props;\n let { maxAnswerChoices } = configuration || {};\n const { limitChoicesNumber } = model || {};\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n if (maxAnswerChoices && model.choices.length >= maxAnswerChoices) {\n return;\n }\n\n model.choices.push({\n label: '',\n value: utils.firstAvailableIndex(\n model.choices.map((c) => c.value),\n 0,\n ),\n feedback: { type: 'none' },\n });\n\n onModelChanged(model);\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n if (choice.correct && model.choiceMode === 'radio') {\n model.choices = model.choices.map((c) => merge({}, c, { correct: false }));\n }\n\n model.choices.splice(index, 1, choice);\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({\n ...this.props.model,\n prompt,\n });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions,\n });\n };\n\n onModelChanged = (model, key) => {\n const { onModelChanged } = this.props;\n\n switch (key) {\n case 'choiceMode': {\n let value = model.choiceMode;\n\n if (value === 'radio') {\n let correctFound = false;\n\n model.choices = model.choices.map((c) => {\n if (correctFound) {\n c.correct = false;\n\n return c;\n }\n\n if (c.correct) {\n correctFound = true;\n }\n\n return c;\n });\n }\n\n onModelChanged(model, true);\n break;\n }\n\n default:\n onModelChanged(model);\n break;\n }\n };\n\n render() {\n const { configuration: { minAnswerChoices } = {} } = this.props;\n const { showWarning } = this.state;\n\n return (\n <React.Fragment>\n <AlertDialog\n open={showWarning}\n title=\"Warning\"\n text={`There can't be less than ${minAnswerChoices || 0} choices.`}\n onConfirm={() => this.setState({ showWarning: false })}\n />\n <Design\n {...this.props}\n onChangeModel={this.onModelChanged}\n onRemoveChoice={this.onRemoveChoice}\n onChoiceChanged={this.onChoiceChanged}\n onAddChoice={this.onAddChoice}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n </React.Fragment>\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice-configure",
3
- "version": "6.6.0",
3
+ "version": "6.7.0",
4
4
  "private": true,
5
5
  "main": "lib/index.js",
6
6
  "module": "src/index.js",
@@ -8,7 +8,7 @@
8
8
  "@material-ui/core": "^3.9.2",
9
9
  "@material-ui/icons": "^3.0.1",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "1.9.0",
11
+ "@pie-lib/pie-toolbox": "1.11.1",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -3,6 +3,23 @@
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
+ # [4.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@4.4.0...@pie-element/multiple-choice-controller@4.5.0) (2024-03-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * updated pie-lib/pie-toolbox SC-28500 ([a8e4e6a](https://github.com/pie-framework/pie-elements/commit/a8e4e6ab27584435ce7ac3e964ccac2747402777))
12
+
13
+
14
+ ### Features
15
+
16
+ * updated pie-lib/pie-toolbox SC-27890 and reverted once again math-rendering-accessible ([fd312e1](https://github.com/pie-framework/pie-elements/commit/fd312e1336999893025231946649496d290883e4))
17
+ * use math-rendering-accessible everywhere PD-1870 ([d52e660](https://github.com/pie-framework/pie-elements/commit/d52e6607ad8847d704bd9cb9b7e3107c130f0500))
18
+
19
+
20
+
21
+
22
+
6
23
  # [4.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@4.3.2...@pie-element/multiple-choice-controller@4.4.0) (2024-03-15)
7
24
 
8
25
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice-controller",
3
3
  "private": true,
4
- "version": "4.4.0",
4
+ "version": "4.5.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
- "@pie-lib/pie-toolbox": "1.9.0",
11
+ "@pie-lib/pie-toolbox": "1.11.1",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15"
14
14
  }
@@ -30,6 +30,17 @@
30
30
  "title": "EditableHtmlConfigureProp",
31
31
  "type": "object",
32
32
  "properties": {
33
+ "math": {
34
+ "title": "EditableHtmlButtonConfigure",
35
+ "type": "object",
36
+ "properties": {
37
+ "disabled": {
38
+ "description": "Indicates if the plugin is disabled or not",
39
+ "type": "boolean",
40
+ "title": "disabled"
41
+ }
42
+ }
43
+ },
33
44
  "audio": {
34
45
  "title": "EditableHtmlButtonConfigure",
35
46
  "type": "object",
@@ -73,6 +84,17 @@
73
84
  "title": "EditableHtmlConfigureProp",
74
85
  "type": "object",
75
86
  "properties": {
87
+ "math": {
88
+ "title": "EditableHtmlButtonConfigure",
89
+ "type": "object",
90
+ "properties": {
91
+ "disabled": {
92
+ "description": "Indicates if the plugin is disabled or not",
93
+ "type": "boolean",
94
+ "title": "disabled"
95
+ }
96
+ }
97
+ },
76
98
  "audio": {
77
99
  "title": "EditableHtmlButtonConfigure",
78
100
  "type": "object",
@@ -192,6 +214,17 @@
192
214
  "title": "EditableHtmlConfigureProp",
193
215
  "type": "object",
194
216
  "properties": {
217
+ "math": {
218
+ "title": "EditableHtmlButtonConfigure",
219
+ "type": "object",
220
+ "properties": {
221
+ "disabled": {
222
+ "description": "Indicates if the plugin is disabled or not",
223
+ "type": "boolean",
224
+ "title": "disabled"
225
+ }
226
+ }
227
+ },
195
228
  "audio": {
196
229
  "title": "EditableHtmlButtonConfigure",
197
230
  "type": "object",
@@ -327,6 +360,17 @@
327
360
  "title": "EditableHtmlConfigureProp",
328
361
  "type": "object",
329
362
  "properties": {
363
+ "math": {
364
+ "title": "EditableHtmlButtonConfigure",
365
+ "type": "object",
366
+ "properties": {
367
+ "disabled": {
368
+ "description": "Indicates if the plugin is disabled or not",
369
+ "type": "boolean",
370
+ "title": "disabled"
371
+ }
372
+ }
373
+ },
330
374
  "audio": {
331
375
  "title": "EditableHtmlButtonConfigure",
332
376
  "type": "object",
@@ -419,6 +463,17 @@
419
463
  "title": "EditableHtmlConfigureProp",
420
464
  "type": "object",
421
465
  "properties": {
466
+ "math": {
467
+ "title": "EditableHtmlButtonConfigure",
468
+ "type": "object",
469
+ "properties": {
470
+ "disabled": {
471
+ "description": "Indicates if the plugin is disabled or not",
472
+ "type": "boolean",
473
+ "title": "disabled"
474
+ }
475
+ }
476
+ },
422
477
  "audio": {
423
478
  "title": "EditableHtmlButtonConfigure",
424
479
  "type": "object",
@@ -495,6 +550,17 @@
495
550
  "title": "EditableHtmlConfigureProp",
496
551
  "type": "object",
497
552
  "properties": {
553
+ "math": {
554
+ "title": "EditableHtmlButtonConfigure",
555
+ "type": "object",
556
+ "properties": {
557
+ "disabled": {
558
+ "description": "Indicates if the plugin is disabled or not",
559
+ "type": "boolean",
560
+ "title": "disabled"
561
+ }
562
+ }
563
+ },
498
564
  "audio": {
499
565
  "title": "EditableHtmlButtonConfigure",
500
566
  "type": "object",
@@ -780,6 +846,17 @@
780
846
  "title": "EditableHtmlConfigureProp",
781
847
  "type": "object",
782
848
  "properties": {
849
+ "math": {
850
+ "title": "EditableHtmlButtonConfigure",
851
+ "type": "object",
852
+ "properties": {
853
+ "disabled": {
854
+ "description": "Indicates if the plugin is disabled or not",
855
+ "type": "boolean",
856
+ "title": "disabled"
857
+ }
858
+ }
859
+ },
783
860
  "audio": {
784
861
  "title": "EditableHtmlButtonConfigure",
785
862
  "type": "object",
@@ -834,6 +911,17 @@
834
911
  "title": "EditableHtmlConfigureProp",
835
912
  "type": "object",
836
913
  "properties": {
914
+ "math": {
915
+ "title": "EditableHtmlButtonConfigure",
916
+ "type": "object",
917
+ "properties": {
918
+ "disabled": {
919
+ "description": "Indicates if the plugin is disabled or not",
920
+ "type": "boolean",
921
+ "title": "disabled"
922
+ }
923
+ }
924
+ },
837
925
  "audio": {
838
926
  "title": "EditableHtmlButtonConfigure",
839
927
  "type": "object",
@@ -28,6 +28,14 @@ Indicates the label for the item that has to be displayed in the Settings Panel
28
28
 
29
29
  Properties of the `baseInputConfiguration` object:
30
30
 
31
+ ## `math` (object)
32
+
33
+ Properties of the `math` object:
34
+
35
+ ### `disabled` (boolean)
36
+
37
+ Indicates if the plugin is disabled or not
38
+
31
39
  ## `audio` (object)
32
40
 
33
41
  Properties of the `audio` object:
@@ -60,6 +68,14 @@ Properties of the `choices` object:
60
68
 
61
69
  Properties of the `inputConfiguration` object:
62
70
 
71
+ ### `math` (object)
72
+
73
+ Properties of the `math` object:
74
+
75
+ #### `disabled` (boolean)
76
+
77
+ Indicates if the plugin is disabled or not
78
+
63
79
  ### `audio` (object)
64
80
 
65
81
  Properties of the `audio` object:
@@ -148,6 +164,14 @@ Properties of the `prompt` object:
148
164
 
149
165
  Properties of the `inputConfiguration` object:
150
166
 
167
+ ### `math` (object)
168
+
169
+ Properties of the `math` object:
170
+
171
+ #### `disabled` (boolean)
172
+
173
+ Indicates if the plugin is disabled or not
174
+
151
175
  ### `audio` (object)
152
176
 
153
177
  Properties of the `audio` object:
@@ -248,6 +272,14 @@ Properties of the `rationale` object:
248
272
 
249
273
  Properties of the `inputConfiguration` object:
250
274
 
275
+ ### `math` (object)
276
+
277
+ Properties of the `math` object:
278
+
279
+ #### `disabled` (boolean)
280
+
281
+ Indicates if the plugin is disabled or not
282
+
251
283
  ### `audio` (object)
252
284
 
253
285
  Properties of the `audio` object:
@@ -316,6 +348,14 @@ Properties of the `teacherInstructions` object:
316
348
 
317
349
  Properties of the `inputConfiguration` object:
318
350
 
351
+ ### `math` (object)
352
+
353
+ Properties of the `math` object:
354
+
355
+ #### `disabled` (boolean)
356
+
357
+ Indicates if the plugin is disabled or not
358
+
319
359
  ### `audio` (object)
320
360
 
321
361
  Properties of the `audio` object:
@@ -373,6 +413,14 @@ Properties of the `accessibility` object:
373
413
 
374
414
  Properties of the `inputConfiguration` object:
375
415
 
416
+ ### `math` (object)
417
+
418
+ Properties of the `math` object:
419
+
420
+ #### `disabled` (boolean)
421
+
422
+ Indicates if the plugin is disabled or not
423
+
376
424
  ### `audio` (object)
377
425
 
378
426
  Properties of the `audio` object:
@@ -591,6 +639,14 @@ Indicates the label for the item that has to be displayed in the Settings Panel
591
639
 
592
640
  Properties of the `EditableHtmlConfigureProp` object:
593
641
 
642
+ ### `math` (object)
643
+
644
+ Properties of the `math` object:
645
+
646
+ #### `disabled` (boolean)
647
+
648
+ Indicates if the plugin is disabled or not
649
+
594
650
  ### `audio` (object)
595
651
 
596
652
  Properties of the `audio` object:
@@ -631,6 +687,14 @@ Properties of the `EditableHtmlPluginConfigure` object:
631
687
 
632
688
  Properties of the `inputConfiguration` object:
633
689
 
690
+ #### `math` (object)
691
+
692
+ Properties of the `math` object:
693
+
694
+ ##### `disabled` (boolean)
695
+
696
+ Indicates if the plugin is disabled or not
697
+
634
698
  #### `audio` (object)
635
699
 
636
700
  Properties of the `audio` object:
@@ -237,6 +237,17 @@
237
237
  "title": "EditableHtmlConfigureProp",
238
238
  "type": "object",
239
239
  "properties": {
240
+ "math": {
241
+ "title": "EditableHtmlButtonConfigure",
242
+ "type": "object",
243
+ "properties": {
244
+ "disabled": {
245
+ "description": "Indicates if the plugin is disabled or not",
246
+ "type": "boolean",
247
+ "title": "disabled"
248
+ }
249
+ }
250
+ },
240
251
  "audio": {
241
252
  "title": "EditableHtmlButtonConfigure",
242
253
  "type": "object",
@@ -291,6 +302,17 @@
291
302
  "title": "EditableHtmlConfigureProp",
292
303
  "type": "object",
293
304
  "properties": {
305
+ "math": {
306
+ "title": "EditableHtmlButtonConfigure",
307
+ "type": "object",
308
+ "properties": {
309
+ "disabled": {
310
+ "description": "Indicates if the plugin is disabled or not",
311
+ "type": "boolean",
312
+ "title": "disabled"
313
+ }
314
+ }
315
+ },
294
316
  "audio": {
295
317
  "title": "EditableHtmlButtonConfigure",
296
318
  "type": "object",
@@ -199,6 +199,14 @@ Indicates the label for the item that has to be displayed in the Settings Panel
199
199
 
200
200
  Properties of the `EditableHtmlConfigureProp` object:
201
201
 
202
+ ### `math` (object)
203
+
204
+ Properties of the `math` object:
205
+
206
+ #### `disabled` (boolean)
207
+
208
+ Indicates if the plugin is disabled or not
209
+
202
210
  ### `audio` (object)
203
211
 
204
212
  Properties of the `audio` object:
@@ -239,6 +247,14 @@ Properties of the `EditableHtmlPluginConfigure` object:
239
247
 
240
248
  Properties of the `inputConfiguration` object:
241
249
 
250
+ #### `math` (object)
251
+
252
+ Properties of the `math` object:
253
+
254
+ ##### `disabled` (boolean)
255
+
256
+ Indicates if the plugin is disabled or not
257
+
242
258
  #### `audio` (object)
243
259
 
244
260
  Properties of the `audio` object:
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -10279,11 +10279,10 @@ const Design = styles$8.withStyles(styles)(props => {
10279
10279
  if (limitChoicesNumber) {
10280
10280
  maxAnswerChoices = MAX_CHOICES;
10281
10281
  }
10282
- const getPluginProps = props => {
10283
- return Object.assign({
10284
- ...baseInputConfiguration
10285
- }, props || ({}));
10286
- };
10282
+ const getPluginProps = (props = {}) => ({
10283
+ ...baseInputConfiguration,
10284
+ ...props
10285
+ });
10287
10286
  const validationMessage = generateValidationMessage(configuration);
10288
10287
  const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
10289
10288
  const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
@@ -10325,13 +10324,13 @@ const Design = styles$8.withStyles(styles)(props => {
10325
10324
  __self: undefined,
10326
10325
  __source: {
10327
10326
  fileName: _jsxFileName,
10328
- lineNumber: 207
10327
+ lineNumber: 204
10329
10328
  }
10330
10329
  }),
10331
10330
  __self: undefined,
10332
10331
  __source: {
10333
10332
  fileName: _jsxFileName,
10334
- lineNumber: 203
10333
+ lineNumber: 200
10335
10334
  }
10336
10335
  }, teacherInstructionsEnabled && React$1.createElement(InputContainer, {
10337
10336
  label: teacherInstructions.label,
@@ -10339,7 +10338,7 @@ const Design = styles$8.withStyles(styles)(props => {
10339
10338
  __self: undefined,
10340
10339
  __source: {
10341
10340
  fileName: _jsxFileName,
10342
- lineNumber: 220
10341
+ lineNumber: 217
10343
10342
  }
10344
10343
  }, React$1.createElement(EditableHtml, {
10345
10344
  className: classes.prompt,
@@ -10362,7 +10361,7 @@ const Design = styles$8.withStyles(styles)(props => {
10362
10361
  __self: undefined,
10363
10362
  __source: {
10364
10363
  fileName: _jsxFileName,
10365
- lineNumber: 221
10364
+ lineNumber: 218
10366
10365
  }
10367
10366
  })), promptEnabled && React$1.createElement(InputContainer, {
10368
10367
  label: prompt.label,
@@ -10370,7 +10369,7 @@ const Design = styles$8.withStyles(styles)(props => {
10370
10369
  __self: undefined,
10371
10370
  __source: {
10372
10371
  fileName: _jsxFileName,
10373
- lineNumber: 240
10372
+ lineNumber: 237
10374
10373
  }
10375
10374
  }, React$1.createElement(EditableHtml, {
10376
10375
  className: classes.prompt,
@@ -10394,21 +10393,21 @@ const Design = styles$8.withStyles(styles)(props => {
10394
10393
  __self: undefined,
10395
10394
  __source: {
10396
10395
  fileName: _jsxFileName,
10397
- lineNumber: 241
10396
+ lineNumber: 238
10398
10397
  }
10399
10398
  })), React$1.createElement('div', {
10400
10399
  className: classes.flexContainer,
10401
10400
  __self: undefined,
10402
10401
  __source: {
10403
10402
  fileName: _jsxFileName,
10404
- lineNumber: 260
10403
+ lineNumber: 257
10405
10404
  }
10406
10405
  }, React$1.createElement(Typography, {
10407
10406
  className: classes.titleText,
10408
10407
  __self: undefined,
10409
10408
  __source: {
10410
10409
  fileName: _jsxFileName,
10411
- lineNumber: 261
10410
+ lineNumber: 258
10412
10411
  }
10413
10412
  }, "Choices"), React$1.createElement(Tooltip, {
10414
10413
  classes: {
@@ -10421,7 +10420,7 @@ const Design = styles$8.withStyles(styles)(props => {
10421
10420
  __self: undefined,
10422
10421
  __source: {
10423
10422
  fileName: _jsxFileName,
10424
- lineNumber: 262
10423
+ lineNumber: 259
10425
10424
  }
10426
10425
  }, React$1.createElement(default_1, {
10427
10426
  fontSize: 'small',
@@ -10429,7 +10428,7 @@ const Design = styles$8.withStyles(styles)(props => {
10429
10428
  __self: undefined,
10430
10429
  __source: {
10431
10430
  fileName: _jsxFileName,
10432
- lineNumber: 269
10431
+ lineNumber: 266
10433
10432
  }
10434
10433
  }))), choices.map((choice, index) => React$1.createElement('div', {
10435
10434
  key: `choice-${index}`,
@@ -10437,7 +10436,7 @@ const Design = styles$8.withStyles(styles)(props => {
10437
10436
  __self: undefined,
10438
10437
  __source: {
10439
10438
  fileName: _jsxFileName,
10440
- lineNumber: 274
10439
+ lineNumber: 271
10441
10440
  }
10442
10441
  }, React$1.createElement(ChoiceConfiguration, {
10443
10442
  key: index,
@@ -10466,7 +10465,7 @@ const Design = styles$8.withStyles(styles)(props => {
10466
10465
  __self: undefined,
10467
10466
  __source: {
10468
10467
  fileName: _jsxFileName,
10469
- lineNumber: 275
10468
+ lineNumber: 272
10470
10469
  }
10471
10470
  }), rationaleEnabled && React$1.createElement(InputContainer, {
10472
10471
  key: `rationale-${index}`,
@@ -10475,7 +10474,7 @@ const Design = styles$8.withStyles(styles)(props => {
10475
10474
  __self: undefined,
10476
10475
  __source: {
10477
10476
  fileName: _jsxFileName,
10478
- lineNumber: 302
10477
+ lineNumber: 299
10479
10478
  }
10480
10479
  }, React$1.createElement(EditableHtml, {
10481
10480
  className: classes.rationale,
@@ -10500,7 +10499,7 @@ const Design = styles$8.withStyles(styles)(props => {
10500
10499
  __self: undefined,
10501
10500
  __source: {
10502
10501
  fileName: _jsxFileName,
10503
- lineNumber: 303
10502
+ lineNumber: 300
10504
10503
  }
10505
10504
  })), accessibilityLabelsEnabled && React$1.createElement(InputContainer, {
10506
10505
  key: `accessibility-${index}`,
@@ -10509,7 +10508,7 @@ const Design = styles$8.withStyles(styles)(props => {
10509
10508
  __self: undefined,
10510
10509
  __source: {
10511
10510
  fileName: _jsxFileName,
10512
- lineNumber: 321
10511
+ lineNumber: 318
10513
10512
  }
10514
10513
  }, React$1.createElement(EditableHtml, {
10515
10514
  className: classes.accessibility,
@@ -10533,21 +10532,21 @@ const Design = styles$8.withStyles(styles)(props => {
10533
10532
  __self: undefined,
10534
10533
  __source: {
10535
10534
  fileName: _jsxFileName,
10536
- lineNumber: 326
10535
+ lineNumber: 323
10537
10536
  }
10538
10537
  })))), correctResponseError && React$1.createElement('div', {
10539
10538
  className: classes.errorText,
10540
10539
  __self: undefined,
10541
10540
  __source: {
10542
10541
  fileName: _jsxFileName,
10543
- lineNumber: 344
10542
+ lineNumber: 341
10544
10543
  }
10545
10544
  }, correctResponseError), answerChoicesError && React$1.createElement('div', {
10546
10545
  className: classes.errorText,
10547
10546
  __self: undefined,
10548
10547
  __source: {
10549
10548
  fileName: _jsxFileName,
10550
- lineNumber: 345
10549
+ lineNumber: 342
10551
10550
  }
10552
10551
  }, answerChoicesError), addChoiceButton.settings && React$1.createElement(Tooltip, {
10553
10552
  title: addChoiceButtonTooltip,
@@ -10557,7 +10556,7 @@ const Design = styles$8.withStyles(styles)(props => {
10557
10556
  __self: undefined,
10558
10557
  __source: {
10559
10558
  fileName: _jsxFileName,
10560
- lineNumber: 348
10559
+ lineNumber: 345
10561
10560
  }
10562
10561
  }, React$1.createElement(Button, {
10563
10562
  classes: {
@@ -10570,7 +10569,7 @@ const Design = styles$8.withStyles(styles)(props => {
10570
10569
  __self: undefined,
10571
10570
  __source: {
10572
10571
  fileName: _jsxFileName,
10573
- lineNumber: 349
10572
+ lineNumber: 346
10574
10573
  }
10575
10574
  }, addChoiceButton.label)));
10576
10575
  });
@@ -10703,7 +10702,7 @@ class Main extends React$1.Component {
10703
10702
  __self: this,
10704
10703
  __source: {
10705
10704
  fileName: _jsxFileName,
10706
- lineNumber: 485
10705
+ lineNumber: 482
10707
10706
  }
10708
10707
  }, React$1.createElement(AlertDialog, {
10709
10708
  open: showWarning,
@@ -10715,7 +10714,7 @@ class Main extends React$1.Component {
10715
10714
  __self: this,
10716
10715
  __source: {
10717
10716
  fileName: _jsxFileName,
10718
- lineNumber: 486
10717
+ lineNumber: 483
10719
10718
  }
10720
10719
  }), React$1.createElement(Design, {
10721
10720
  ...this.props,
@@ -10728,7 +10727,7 @@ class Main extends React$1.Component {
10728
10727
  __self: this,
10729
10728
  __source: {
10730
10729
  fileName: _jsxFileName,
10731
- lineNumber: 492
10730
+ lineNumber: 489
10732
10731
  }
10733
10732
  }));
10734
10733
  }
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.1.6"
7
+ "version": "1.4.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "8.7.1-next.5+39f4e49a2",
4
+ "version": "8.8.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
- "@pie-lib/pie-toolbox": "1.9.0",
10
+ "@pie-lib/pie-toolbox": "1.11.1",
11
11
  "classnames": "^2.2.5",
12
12
  "debug": "^4.1.1",
13
13
  "enzyme-to-json": "^3.3.3",
@@ -18,7 +18,7 @@
18
18
  "react-test-renderer": "^16.3.2",
19
19
  "react-transition-group": "^2.3.1"
20
20
  },
21
- "gitHead": "39f4e49a21cc2c873345e9a96922166f606f48ae",
21
+ "gitHead": "229e10aa53659f55129b8a4e27dbfc76939e214b",
22
22
  "scripts": {
23
23
  "postpublish": "../../scripts/postpublish"
24
24
  },