@pie-element/complex-rubric 2.8.2-next.4 → 2.8.2-next.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure/lib/defaults.js +1 -1
- package/configure/lib/defaults.js.map +1 -1
- package/configure/src/defaults.js +1 -1
- package/module/configure.js +97 -43
- package/module/element.js +1 -1
- package/module/manifest.json +1 -1
- package/module/print.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["multiTraitDefaultModel","visibleToStudent","halfScoring","pointLabels","description","standards","scales","excludeZero","rubricDefaultModel","points","sampleAnswers","maxPoints","rubriclessDefaultModel","rubriclessInstructionEnabled","multiTraitDefaultConfiguration","baseInputConfiguration","audio","disabled","video","image","expandedInput","inputConfiguration","math","labelInput","settingsPanelDisabled","excludeZeroDialogBoxContent","title","text","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","spellCheck","label","settings","enabled","showExcludeZero","showScorePointLabels","showDescription","showVisibleToStudent","showHalfScoring","showStandards","showLevelTagInput","dragAndDrop","maxMaxPoints","rubricDefaultConfiguration","showMaxPoint","rubriclessDefaultConfiguration","rubricless","rubriclessInstruction","model","rubricType","rubrics","RUBRIC_TYPES","SIMPLE_RUBRIC","MULTI_TRAIT_RUBRIC","RUBRICLESS","configuration","rubricOptions"],"mappings":";;;;;;;;;;;AAAA;;;;AAEA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,gBAAgB,EAAE,IADW;AAE7BC,EAAAA,WAAW,EAAE,KAFgB;AAG7BC,EAAAA,WAAW,EAAE,IAHgB;AAI7BC,EAAAA,WAAW,EAAE,KAJgB;AAK7BC,EAAAA,SAAS,EAAE,KALkB;AAM7BC,EAAAA,MAAM,EAAE,EANqB;AAO7BC,EAAAA,WAAW,EAAE;AAPgB,CAA/B;AAUA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,MAAM,E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,EAAE,IADK;AAEfD,IAAAA,KAAK,EAAE;AAFQ,GANoB;AAUrCa,EAAAA,YAAY,EAAE;AACZZ,IAAAA,QAAQ,EAAE,IADE;AAEZD,IAAAA,KAAK,EAAE;AAFK,GAVuB;AAcrCR,EAAAA,qBAAqB,EAAE,KAdc;AAerC;AACAuB,EAAAA,UAAU,EAAE,IAhByB;AAiBrC;AACAC,EAAAA,qBAAqB,EAAE;AACrBf,IAAAA,QAAQ,EAAE,IADW;AAErBD,IAAAA,KAAK,EAAE,aAFc;AAGrBX,IAAAA,kBAAkB,EAAE;AAClBL,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ,OADW;AAElBC,MAAAA,KAAK,EAAE;AAAED,QAAAA,QAAQ,EAAE;AAAZ,OAFW;AAGlBE,MAAAA,KAAK,EAAE;AAAEF,QAAAA,QAAQ,EAAE;AAAZ;AAHW;AAHC,GAlBc;AA2BrC0B,EAAAA,YAAY,EAAE;AA3BuB,CAAvC;eA8Be;AACbM,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE,cADP;AAELC,IAAAA,OAAO,6DACJC,qBAAaC,aADT,EACyB7C,kBADzB,8CAEJ4C,qBAAaE,kBAFT,EAE8BtD,sBAF9B,8CAGJoD,qBAAaG,UAHT,EAGsB3C,sBAHtB;AAFF,GADM;AASb4C,EAAAA,aAAa;AACX;AACAC,IAAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,kBAAjB,EAAqC,YAArC;AAFJ,sDAGVL,qBAAaE,kBAHH,EAGwBxC,8BAHxB,oDAIVsC,qBAAaC,aAJH,EAImBT,0BAJnB,oDAKVQ,qBAAaG,UALH,EAKgBT,8BALhB;AATA,C","sourcesContent":["import { RUBRIC_TYPES } from '@pie-lib/pie-toolbox/rubric';\n\nconst multiTraitDefaultModel = {\n visibleToStudent: true,\n halfScoring: false,\n pointLabels: true,\n description: false,\n standards: false,\n scales: [],\n excludeZero: false,\n};\n\nconst rubricDefaultModel = {\n points: ['', '', '', ''],\n sampleAnswers: [null, null, null, null],\n maxPoints: 3,\n excludeZero: false,\n};\n\nconst rubriclessDefaultModel = {\n maxPoints: 100,\n excludeZero: false,\n rubriclessInstructionEnabled: true,\n};\n\nconst multiTraitDefaultConfiguration = {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n expandedInput: {\n inputConfiguration: {\n math: { disabled: true },\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: true },\n },\n },\n labelInput: {\n inputConfiguration: {\n math: { disabled: true },\n audio: { disabled: true },\n video: { disabled: true },\n image: { disabled: true },\n },\n },\n settingsPanelDisabled: false,\n excludeZeroDialogBoxContent: {\n title: 'Exclude 0 (Zero) from Score Point Values.',\n text: `<div>\n You are about to exclude 0 from score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the left\n </li>\n <li>\n remove 0 column with its Label and Description\n </li>\n </ul>\n </div>`,\n },\n includeZeroDialogBoxContent: {\n title: 'Include 0 (Zero) in Score Point Values.',\n text: `<div>\n You are about to include 0 in score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the right\n </li>\n <li>\n add 0 column with empty Label and Descriptions\n </li>\n </ul>\n </div>`,\n },\n deleteScaleDialogBoxContent: {\n title: 'Delete Scale',\n text: 'Are you sure you want to delete this scale?',\n },\n maxPointsDialogBoxContent: {\n title: 'Decreasing Max Points.',\n text: ` You are about to decrease max score point value.\n <br/>\n All the Labels and Descriptions for scores above Max Point will be deleted.`,\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n showExcludeZero: {\n settings: true,\n label: 'Exclude Zero',\n },\n showScorePointLabels: {\n settings: true,\n label: 'Show Score Point Labels',\n },\n showDescription: {\n settings: true,\n label: 'Show Description',\n },\n showVisibleToStudent: {\n settings: true,\n label: 'Visible to Student',\n },\n showHalfScoring: {\n settings: true,\n label: 'Half Scoring',\n },\n // commenting this in order to use the dynamic width if the width was not set by the client (PD-3203)\n // width: '900px',\n // these should not be set to true (should not be used) for now\n showStandards: {\n settings: false,\n label: 'Show Standards',\n },\n showLevelTagInput: {\n settings: false,\n label: 'Show Level Tag Input',\n enabled: false,\n },\n dragAndDrop: {\n settings: true,\n label: 'Enable Drag and Drop',\n enabled: false,\n },\n maxMaxPoints: 9,\n};\n\nconst rubricDefaultConfiguration = {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n maxMaxPoints: 9,\n};\n\nconst rubriclessDefaultConfiguration = {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n // shows us if it simple rubric or rubricless(simple rubric with less structure)\n rubricless: true,\n // scoring instruction for rubricless\n rubriclessInstruction: {\n settings: true,\n label: 'Instruction',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n maxMaxPoints: 100,\n};\n\nexport default {\n model: {\n rubricType: 'simpleRubric',\n rubrics: {\n [RUBRIC_TYPES.SIMPLE_RUBRIC]: rubricDefaultModel,\n [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: multiTraitDefaultModel,\n [RUBRIC_TYPES.RUBRICLESS]: rubriclessDefaultModel,\n },\n },\n configuration: {\n // width: '770px',\n rubricOptions: ['simpleRubric', 'multiTraitRubric', 'rubricless'],\n [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: multiTraitDefaultConfiguration,\n [RUBRIC_TYPES.SIMPLE_RUBRIC]: rubricDefaultConfiguration,\n [RUBRIC_TYPES.RUBRICLESS]: rubriclessDefaultConfiguration,\n },\n};\n"],"file":"defaults.js"}
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["multiTraitDefaultModel","visibleToStudent","halfScoring","pointLabels","description","standards","scales","excludeZero","rubricDefaultModel","points","sampleAnswers","maxPoints","rubriclessDefaultModel","rubriclessInstructionEnabled","multiTraitDefaultConfiguration","baseInputConfiguration","audio","disabled","video","image","expandedInput","inputConfiguration","math","labelInput","settingsPanelDisabled","excludeZeroDialogBoxContent","title","text","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","spellCheck","label","settings","enabled","showExcludeZero","showScorePointLabels","showDescription","showVisibleToStudent","showHalfScoring","showStandards","showLevelTagInput","dragAndDrop","maxMaxPoints","rubricDefaultConfiguration","showMaxPoint","rubriclessDefaultConfiguration","rubricless","rubriclessInstruction","model","rubricType","rubrics","RUBRIC_TYPES","SIMPLE_RUBRIC","MULTI_TRAIT_RUBRIC","RUBRICLESS","configuration","rubricOptions"],"mappings":";;;;;;;;;;;AAAA;;;;AAEA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,gBAAgB,EAAE,IADW;AAE7BC,EAAAA,WAAW,EAAE,KAFgB;AAG7BC,EAAAA,WAAW,EAAE,IAHgB;AAI7BC,EAAAA,WAAW,EAAE,KAJgB;AAK7BC,EAAAA,SAAS,EAAE,KALkB;AAM7BC,EAAAA,MAAM,EAAE,EANqB;AAO7BC,EAAAA,WAAW,EAAE;AAPgB,CAA/B;AAUA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,MAAM,EAAE,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,CADiB;AAEzBC,EAAAA,aAAa,EAAE,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAFU;AAGzBC,EAAAA,SAAS,EAAE,CAHc;AAIzBJ,EAAAA,WAAW,EAAE;AAJY,C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U,EAAE,IAhByB;AAiBrC;AACAC,EAAAA,qBAAqB,EAAE;AACrBf,IAAAA,QAAQ,EAAE,IADW;AAErBD,IAAAA,KAAK,EAAE,aAFc;AAGrBX,IAAAA,kBAAkB,EAAE;AAClBL,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ,OADW;AAElBC,MAAAA,KAAK,EAAE;AAAED,QAAAA,QAAQ,EAAE;AAAZ,OAFW;AAGlBE,MAAAA,KAAK,EAAE;AAAEF,QAAAA,QAAQ,EAAE;AAAZ;AAHW;AAHC,GAlBc;AA2BrC0B,EAAAA,YAAY,EAAE;AA3BuB,CAAvC;eA8Be;AACbM,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE,cADP;AAELC,IAAAA,OAAO,6DACJC,qBAAaC,aADT,EACyB7C,kBADzB,8CAEJ4C,qBAAaE,kBAFT,EAE8BtD,sBAF9B,8CAGJoD,qBAAaG,UAHT,EAGsB3C,sBAHtB;AAFF,GADM;AASb4C,EAAAA,aAAa;AACX;AACAC,IAAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,kBAAjB,EAAqC,YAArC;AAFJ,sDAGVL,qBAAaE,kBAHH,EAGwBxC,8BAHxB,oDAIVsC,qBAAaC,aAJH,EAImBT,0BAJnB,oDAKVQ,qBAAaG,UALH,EAKgBT,8BALhB;AATA,C","sourcesContent":["import { RUBRIC_TYPES } from '@pie-lib/pie-toolbox/rubric';\n\nconst multiTraitDefaultModel = {\n visibleToStudent: true,\n halfScoring: false,\n pointLabels: true,\n description: false,\n standards: false,\n scales: [],\n excludeZero: false,\n};\n\nconst rubricDefaultModel = {\n points: ['', '', '', ''],\n sampleAnswers: [null, null, null, null],\n maxPoints: 3,\n excludeZero: false,\n};\n\nconst rubriclessDefaultModel = {\n maxPoints: 100,\n excludeZero: false,\n rubriclessInstructionEnabled: true,\n};\n\nconst multiTraitDefaultConfiguration = {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n expandedInput: {\n inputConfiguration: {\n math: { disabled: true },\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n labelInput: {\n inputConfiguration: {\n math: { disabled: true },\n audio: { disabled: true },\n video: { disabled: true },\n image: { disabled: true },\n },\n },\n settingsPanelDisabled: false,\n excludeZeroDialogBoxContent: {\n title: 'Exclude 0 (Zero) from Score Point Values.',\n text: `<div>\n You are about to exclude 0 from score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the left\n </li>\n <li>\n remove 0 column with its Label and Description\n </li>\n </ul>\n </div>`,\n },\n includeZeroDialogBoxContent: {\n title: 'Include 0 (Zero) in Score Point Values.',\n text: `<div>\n You are about to include 0 in score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the right\n </li>\n <li>\n add 0 column with empty Label and Descriptions\n </li>\n </ul>\n </div>`,\n },\n deleteScaleDialogBoxContent: {\n title: 'Delete Scale',\n text: 'Are you sure you want to delete this scale?',\n },\n maxPointsDialogBoxContent: {\n title: 'Decreasing Max Points.',\n text: ` You are about to decrease max score point value.\n <br/>\n All the Labels and Descriptions for scores above Max Point will be deleted.`,\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n showExcludeZero: {\n settings: true,\n label: 'Exclude Zero',\n },\n showScorePointLabels: {\n settings: true,\n label: 'Show Score Point Labels',\n },\n showDescription: {\n settings: true,\n label: 'Show Description',\n },\n showVisibleToStudent: {\n settings: true,\n label: 'Visible to Student',\n },\n showHalfScoring: {\n settings: true,\n label: 'Half Scoring',\n },\n // commenting this in order to use the dynamic width if the width was not set by the client (PD-3203)\n // width: '900px',\n // these should not be set to true (should not be used) for now\n showStandards: {\n settings: false,\n label: 'Show Standards',\n },\n showLevelTagInput: {\n settings: false,\n label: 'Show Level Tag Input',\n enabled: false,\n },\n dragAndDrop: {\n settings: true,\n label: 'Enable Drag and Drop',\n enabled: false,\n },\n maxMaxPoints: 9,\n};\n\nconst rubricDefaultConfiguration = {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n maxMaxPoints: 9,\n};\n\nconst rubriclessDefaultConfiguration = {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n // shows us if it simple rubric or rubricless(simple rubric with less structure)\n rubricless: true,\n // scoring instruction for rubricless\n rubriclessInstruction: {\n settings: true,\n label: 'Instruction',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n maxMaxPoints: 100,\n};\n\nexport default {\n model: {\n rubricType: 'simpleRubric',\n rubrics: {\n [RUBRIC_TYPES.SIMPLE_RUBRIC]: rubricDefaultModel,\n [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: multiTraitDefaultModel,\n [RUBRIC_TYPES.RUBRICLESS]: rubriclessDefaultModel,\n },\n },\n configuration: {\n // width: '770px',\n rubricOptions: ['simpleRubric', 'multiTraitRubric', 'rubricless'],\n [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: multiTraitDefaultConfiguration,\n [RUBRIC_TYPES.SIMPLE_RUBRIC]: rubricDefaultConfiguration,\n [RUBRIC_TYPES.RUBRICLESS]: rubriclessDefaultConfiguration,\n },\n};\n"],"file":"defaults.js"}
|
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.7.1/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
3
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -110576,7 +110576,7 @@ var ScorePoint = (0, _styles$8.withStyles)(function (theme) {
|
|
|
110576
110576
|
}
|
|
110577
110577
|
};
|
|
110578
110578
|
})(function (_ref6) {
|
|
110579
|
-
var classes = _ref6.classes, _ref6$error = _ref6.error, error = _ref6$error === void 0 ? '' : _ref6$error, scorePointsValue = _ref6.scorePointsValue, scoreDescriptor = _ref6.scoreDescriptor, pluginProps = _ref6.pluginProps, onChange = _ref6.onChange, showScorePointLabels = _ref6.showScorePointLabels, alignToRight = _ref6.alignToRight, spellCheck = _ref6.spellCheck, uploadSoundSupport = _ref6.uploadSoundSupport, _ref6$mathMlOptions = _ref6.mathMlOptions, mathMlOptions = _ref6$mathMlOptions === void 0 ? {} : _ref6$mathMlOptions;
|
|
110579
|
+
var classes = _ref6.classes, _ref6$error = _ref6.error, error = _ref6$error === void 0 ? '' : _ref6$error, scorePointsValue = _ref6.scorePointsValue, scoreDescriptor = _ref6.scoreDescriptor, pluginProps = _ref6.pluginProps, onChange = _ref6.onChange, showScorePointLabels = _ref6.showScorePointLabels, alignToRight = _ref6.alignToRight, spellCheck = _ref6.spellCheck, uploadSoundSupport = _ref6.uploadSoundSupport, _ref6$imageSupport = _ref6.imageSupport, imageSupport = _ref6$imageSupport === void 0 ? {} : _ref6$imageSupport, _ref6$mathMlOptions = _ref6.mathMlOptions, mathMlOptions = _ref6$mathMlOptions === void 0 ? {} : _ref6$mathMlOptions;
|
|
110580
110580
|
var scoreBoxClasses = showScorePointLabels ? classes.scorePointBox : ("").concat(classes.scorePointBox, " ").concat(classes.scorePointBoxDisabled);
|
|
110581
110581
|
return _react$26["default"].createElement("div", {
|
|
110582
110582
|
className: classes.scorePointBoxWrapper
|
|
@@ -110596,16 +110596,17 @@ var ScorePoint = (0, _styles$8.withStyles)(function (theme) {
|
|
|
110596
110596
|
pluginProps: pluginProps,
|
|
110597
110597
|
activePlugins: _utils$1j.filteredDefaultPlugins,
|
|
110598
110598
|
spellCheck: spellCheck,
|
|
110599
|
-
toolbarOpts: alignToRight
|
|
110599
|
+
toolbarOpts: alignToRight ? {
|
|
110600
110600
|
alignment: 'right'
|
|
110601
|
-
}
|
|
110601
|
+
} : {},
|
|
110602
110602
|
uploadSoundSupport: uploadSoundSupport,
|
|
110603
110603
|
languageCharactersProps: [{
|
|
110604
110604
|
language: 'spanish'
|
|
110605
110605
|
}, {
|
|
110606
110606
|
language: 'special'
|
|
110607
110607
|
}],
|
|
110608
|
-
mathMlOptions: mathMlOptions
|
|
110608
|
+
mathMlOptions: mathMlOptions,
|
|
110609
|
+
imageSupport: imageSupport
|
|
110609
110610
|
}) : null));
|
|
110610
110611
|
});
|
|
110611
110612
|
common.ScorePoint = ScorePoint;
|
|
@@ -110671,7 +110672,7 @@ var SimpleInput = (0, _styles$8.withStyles)(function (theme) {
|
|
|
110671
110672
|
}
|
|
110672
110673
|
};
|
|
110673
110674
|
})(function (_ref8) {
|
|
110674
|
-
var classes = _ref8.classes, markup = _ref8.markup, onChange = _ref8.onChange, pluginProps = _ref8.pluginProps, label = _ref8.label, spellCheck = _ref8.spellCheck, uploadSoundSupport = _ref8.uploadSoundSupport, _ref8$mathMlOptions = _ref8.mathMlOptions, mathMlOptions = _ref8$mathMlOptions === void 0 ? {} : _ref8$mathMlOptions;
|
|
110675
|
+
var classes = _ref8.classes, markup = _ref8.markup, onChange = _ref8.onChange, pluginProps = _ref8.pluginProps, label = _ref8.label, spellCheck = _ref8.spellCheck, uploadSoundSupport = _ref8.uploadSoundSupport, _ref8$mathMlOptions = _ref8.mathMlOptions, mathMlOptions = _ref8$mathMlOptions === void 0 ? {} : _ref8$mathMlOptions, _ref8$imageSupport = _ref8.imageSupport, imageSupport = _ref8$imageSupport === void 0 ? {} : _ref8$imageSupport;
|
|
110675
110676
|
return _react$26["default"].createElement("div", {
|
|
110676
110677
|
className: classes.simpleInput
|
|
110677
110678
|
}, label && _react$26["default"].createElement("div", null, label), _react$26["default"].createElement(_editableHtml.EditableHtml, {
|
|
@@ -110691,7 +110692,8 @@ var SimpleInput = (0, _styles$8.withStyles)(function (theme) {
|
|
|
110691
110692
|
}, {
|
|
110692
110693
|
language: 'special'
|
|
110693
110694
|
}],
|
|
110694
|
-
mathMlOptions: mathMlOptions
|
|
110695
|
+
mathMlOptions: mathMlOptions,
|
|
110696
|
+
imageSupport: imageSupport
|
|
110695
110697
|
}));
|
|
110696
110698
|
});
|
|
110697
110699
|
common.SimpleInput = SimpleInput;
|
|
@@ -110721,7 +110723,7 @@ var UnderlinedInput = (0, _styles$8.withStyles)(function (theme) {
|
|
|
110721
110723
|
}
|
|
110722
110724
|
};
|
|
110723
110725
|
})(function (_ref9) {
|
|
110724
|
-
var classes = _ref9.classes, error = _ref9.error, markup = _ref9.markup, onChange = _ref9.onChange, pluginProps = _ref9.pluginProps, label = _ref9.label, placeholder = _ref9.placeholder, spellCheck = _ref9.spellCheck, uploadSoundSupport = _ref9.uploadSoundSupport, _ref9$mathMlOptions = _ref9.mathMlOptions, mathMlOptions = _ref9$mathMlOptions === void 0 ? {} : _ref9$mathMlOptions;
|
|
110726
|
+
var classes = _ref9.classes, error = _ref9.error, markup = _ref9.markup, onChange = _ref9.onChange, pluginProps = _ref9.pluginProps, label = _ref9.label, placeholder = _ref9.placeholder, spellCheck = _ref9.spellCheck, uploadSoundSupport = _ref9.uploadSoundSupport, _ref9$imageSupport = _ref9.imageSupport, imageSupport = _ref9$imageSupport === void 0 ? {} : _ref9$imageSupport, _ref9$mathMlOptions = _ref9.mathMlOptions, mathMlOptions = _ref9$mathMlOptions === void 0 ? {} : _ref9$mathMlOptions;
|
|
110725
110727
|
return _react$26["default"].createElement("div", {
|
|
110726
110728
|
className: classes.underlinedInputWrapper
|
|
110727
110729
|
}, label && _react$26["default"].createElement("div", null, label), _react$26["default"].createElement(_editableHtml.EditableHtml, {
|
|
@@ -110742,7 +110744,8 @@ var UnderlinedInput = (0, _styles$8.withStyles)(function (theme) {
|
|
|
110742
110744
|
}, {
|
|
110743
110745
|
language: 'special'
|
|
110744
110746
|
}],
|
|
110745
|
-
mathMlOptions: mathMlOptions
|
|
110747
|
+
mathMlOptions: mathMlOptions,
|
|
110748
|
+
imageSupport: imageSupport
|
|
110746
110749
|
}));
|
|
110747
110750
|
});
|
|
110748
110751
|
common.UnderlinedInput = UnderlinedInput;
|
|
@@ -110758,7 +110761,7 @@ var ExpandedInput = (0, _styles$8.withStyles)({
|
|
|
110758
110761
|
marginTop: 0
|
|
110759
110762
|
}
|
|
110760
110763
|
})(function (_ref10) {
|
|
110761
|
-
var classes = _ref10.classes, error = _ref10.error, markup = _ref10.markup, onChange = _ref10.onChange, pluginProps = _ref10.pluginProps, placeholder = _ref10.placeholder, alignToRight = _ref10.alignToRight, spellCheck = _ref10.spellCheck, uploadSoundSupport = _ref10.uploadSoundSupport, _ref10$mathMlOptions = _ref10.mathMlOptions, mathMlOptions = _ref10$mathMlOptions === void 0 ? {} : _ref10$mathMlOptions;
|
|
110764
|
+
var classes = _ref10.classes, error = _ref10.error, markup = _ref10.markup, onChange = _ref10.onChange, pluginProps = _ref10.pluginProps, placeholder = _ref10.placeholder, alignToRight = _ref10.alignToRight, spellCheck = _ref10.spellCheck, uploadSoundSupport = _ref10.uploadSoundSupport, _ref10$mathMlOptions = _ref10.mathMlOptions, mathMlOptions = _ref10$mathMlOptions === void 0 ? {} : _ref10$mathMlOptions, _ref10$imageSupport = _ref10.imageSupport, imageSupport = _ref10$imageSupport === void 0 ? {} : _ref10$imageSupport;
|
|
110762
110765
|
return _react$26["default"].createElement("div", null, _react$26["default"].createElement(_editableHtml.EditableHtml, {
|
|
110763
110766
|
className: classes.prompt,
|
|
110764
110767
|
classes: {
|
|
@@ -110769,9 +110772,9 @@ var ExpandedInput = (0, _styles$8.withStyles)({
|
|
|
110769
110772
|
onChange: onChange,
|
|
110770
110773
|
placeholder: placeholder,
|
|
110771
110774
|
pluginProps: pluginProps,
|
|
110772
|
-
toolbarOpts: alignToRight
|
|
110775
|
+
toolbarOpts: alignToRight ? {
|
|
110773
110776
|
alignment: 'right'
|
|
110774
|
-
}
|
|
110777
|
+
} : {},
|
|
110775
110778
|
spellCheck: spellCheck,
|
|
110776
110779
|
uploadSoundSupport: uploadSoundSupport,
|
|
110777
110780
|
languageCharactersProps: [{
|
|
@@ -110780,7 +110783,8 @@ var ExpandedInput = (0, _styles$8.withStyles)({
|
|
|
110780
110783
|
language: 'special'
|
|
110781
110784
|
}],
|
|
110782
110785
|
autoWidthToolbar: true,
|
|
110783
|
-
mathMlOptions: mathMlOptions
|
|
110786
|
+
mathMlOptions: mathMlOptions,
|
|
110787
|
+
imageSupport: imageSupport
|
|
110784
110788
|
}));
|
|
110785
110789
|
});
|
|
110786
110790
|
common.ExpandedInput = ExpandedInput;
|
|
@@ -110919,7 +110923,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110919
110923
|
primaryBlockGreyHeader: {
|
|
110920
110924
|
paddingTop: theme.spacing.unit * 1.5
|
|
110921
110925
|
},
|
|
110922
|
-
|
|
110926
|
+
scorePointErrorText: {
|
|
110927
|
+
position: 'absolute',
|
|
110923
110928
|
fontSize: theme.typography.fontSize - 2,
|
|
110924
110929
|
color: theme.palette.error.main,
|
|
110925
110930
|
paddingTop: theme.spacing.unit / 2
|
|
@@ -110980,7 +110985,7 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110980
110985
|
key: "render",
|
|
110981
110986
|
value: function render() {
|
|
110982
110987
|
var _this2 = this;
|
|
110983
|
-
var _this$props2 = this.props, scorePointsValues = _this$props2.scorePointsValues, scorePointsLabels = _this$props2.scorePointsLabels, traitLabel = _this$props2.traitLabel, classes = _this$props2.classes, currentPosition = _this$props2.currentPosition, showStandards = _this$props2.showStandards, onTraitLabelChange = _this$props2.onTraitLabelChange, showDescription = _this$props2.showDescription, showLevelTagInput = _this$props2.showLevelTagInput, maxPoints = _this$props2.maxPoints, updateMaxPointsFieldValue = _this$props2.updateMaxPointsFieldValue, scaleIndex = _this$props2.scaleIndex, showScorePointLabels = _this$props2.showScorePointLabels, secondaryBlockWidth = _this$props2.secondaryBlockWidth, setSecondaryBlockRef = _this$props2.setSecondaryBlockRef, spellCheck = _this$props2.spellCheck, uploadSoundSupport = _this$props2.uploadSoundSupport, maxPointsEnabled = _this$props2.maxPointsEnabled, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$errors = _this$props2.errors, errors = _this$props2$errors === void 0 ? {} : _this$props2$errors, maxMaxPoints = _this$props2.maxMaxPoints, _this$props2$labelPlu = _this$props2.labelPluginProps, labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu;
|
|
110988
|
+
var _this$props2 = this.props, scorePointsValues = _this$props2.scorePointsValues, scorePointsLabels = _this$props2.scorePointsLabels, traitLabel = _this$props2.traitLabel, classes = _this$props2.classes, currentPosition = _this$props2.currentPosition, showStandards = _this$props2.showStandards, onTraitLabelChange = _this$props2.onTraitLabelChange, showDescription = _this$props2.showDescription, showLevelTagInput = _this$props2.showLevelTagInput, maxPoints = _this$props2.maxPoints, updateMaxPointsFieldValue = _this$props2.updateMaxPointsFieldValue, scaleIndex = _this$props2.scaleIndex, showScorePointLabels = _this$props2.showScorePointLabels, secondaryBlockWidth = _this$props2.secondaryBlockWidth, setSecondaryBlockRef = _this$props2.setSecondaryBlockRef, spellCheck = _this$props2.spellCheck, uploadSoundSupport = _this$props2.uploadSoundSupport, maxPointsEnabled = _this$props2.maxPointsEnabled, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$errors = _this$props2.errors, errors = _this$props2$errors === void 0 ? {} : _this$props2$errors, maxMaxPoints = _this$props2.maxMaxPoints, _this$props2$labelPlu = _this$props2.labelPluginProps, labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu, _this$props2$imageSup = _this$props2.imageSupport, imageSupport = _this$props2$imageSup === void 0 ? {} : _this$props2$imageSup;
|
|
110984
110989
|
var anchorEl = this.state.anchorEl;
|
|
110985
110990
|
return _react["default"].createElement(_common.Row, {
|
|
110986
110991
|
className: classes.greyHeader,
|
|
@@ -110994,7 +110999,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
110994
110999
|
spellCheck: spellCheck,
|
|
110995
111000
|
label: "Level Label",
|
|
110996
111001
|
uploadSoundSupport: uploadSoundSupport,
|
|
110997
|
-
mathMlOptions: mathMlOptions
|
|
111002
|
+
mathMlOptions: mathMlOptions,
|
|
111003
|
+
imageSupport: imageSupport
|
|
110998
111004
|
}), _react["default"].createElement(_common.ScaleSettings, null, _react["default"].createElement("div", null, "Scale ", scaleIndex + 1), maxPointsEnabled && _react["default"].createElement(_common.MaxPointsPicker, {
|
|
110999
111005
|
maxPoints: maxPoints,
|
|
111000
111006
|
maxMaxPoints: maxMaxPoints,
|
|
@@ -111056,9 +111062,10 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111056
111062
|
alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints,
|
|
111057
111063
|
spellCheck: spellCheck,
|
|
111058
111064
|
uploadSoundSupport: uploadSoundSupport,
|
|
111059
|
-
mathMlOptions: mathMlOptions
|
|
111065
|
+
mathMlOptions: mathMlOptions,
|
|
111066
|
+
imageSupport: imageSupport
|
|
111060
111067
|
}), error && _react["default"].createElement("div", {
|
|
111061
|
-
className: classes.
|
|
111068
|
+
className: classes.scorePointErrorText
|
|
111062
111069
|
}, error));
|
|
111063
111070
|
})));
|
|
111064
111071
|
}
|
|
@@ -111091,7 +111098,11 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111091
111098
|
setSecondaryBlockRef: _propTypes["default"].func,
|
|
111092
111099
|
uploadSoundSupport: _propTypes["default"].object,
|
|
111093
111100
|
maxMaxPoints: _propTypes["default"].number,
|
|
111094
|
-
labelPluginProps: _propTypes["default"].object
|
|
111101
|
+
labelPluginProps: _propTypes["default"].object,
|
|
111102
|
+
imageSupport: _propTypes["default"].shape({
|
|
111103
|
+
add: _propTypes["default"].func.isRequired,
|
|
111104
|
+
"delete": _propTypes["default"].func.isRequired
|
|
111105
|
+
})
|
|
111095
111106
|
};
|
|
111096
111107
|
var _default = (0, _styles.withStyles)(styles)(TraitsHeaderTile);
|
|
111097
111108
|
exports["default"] = _default;
|
|
@@ -111262,7 +111273,7 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111262
111273
|
key: "render",
|
|
111263
111274
|
value: function render() {
|
|
111264
111275
|
var _this2 = this;
|
|
111265
|
-
var _this$props2 = this.props, classes = _this$props2.classes, connectDragSource = _this$props2.connectDragSource, connectDropTarget = _this$props2.connectDropTarget, connectDragPreview = _this$props2.connectDragPreview, error = _this$props2.error, _this$props2$trait = _this$props2.trait, name = _this$props2$trait.name, standards = _this$props2$trait.standards, description = _this$props2$trait.description, scorePointsDescriptors = _this$props2$trait.scorePointsDescriptors, traitLabel = _this$props2.traitLabel, scorePointsValues = _this$props2.scorePointsValues, showStandards = _this$props2.showStandards, showDescription = _this$props2.showDescription, enableDragAndDrop = _this$props2.enableDragAndDrop, currentPosition = _this$props2.currentPosition, secondaryBlockWidth = _this$props2.secondaryBlockWidth, spellCheck = _this$props2.spellCheck, maxPoints = _this$props2.maxPoints, uploadSoundSupport = _this$props2.uploadSoundSupport, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$expanded = _this$props2.expandedPluginProps, expandedPluginProps = _this$props2$expanded === void 0 ? {} : _this$props2$expanded, _this$props2$labelPlu = _this$props2.labelPluginProps, labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu;
|
|
111276
|
+
var _this$props2 = this.props, classes = _this$props2.classes, connectDragSource = _this$props2.connectDragSource, connectDropTarget = _this$props2.connectDropTarget, connectDragPreview = _this$props2.connectDragPreview, error = _this$props2.error, _this$props2$trait = _this$props2.trait, name = _this$props2$trait.name, standards = _this$props2$trait.standards, description = _this$props2$trait.description, scorePointsDescriptors = _this$props2$trait.scorePointsDescriptors, traitLabel = _this$props2.traitLabel, scorePointsValues = _this$props2.scorePointsValues, showStandards = _this$props2.showStandards, showDescription = _this$props2.showDescription, enableDragAndDrop = _this$props2.enableDragAndDrop, currentPosition = _this$props2.currentPosition, secondaryBlockWidth = _this$props2.secondaryBlockWidth, spellCheck = _this$props2.spellCheck, maxPoints = _this$props2.maxPoints, uploadSoundSupport = _this$props2.uploadSoundSupport, _this$props2$mathMlOp = _this$props2.mathMlOptions, mathMlOptions = _this$props2$mathMlOp === void 0 ? {} : _this$props2$mathMlOp, _this$props2$expanded = _this$props2.expandedPluginProps, expandedPluginProps = _this$props2$expanded === void 0 ? {} : _this$props2$expanded, _this$props2$labelPlu = _this$props2.labelPluginProps, labelPluginProps = _this$props2$labelPlu === void 0 ? {} : _this$props2$labelPlu, _this$props2$imageSup = _this$props2.imageSupport, imageSupport = _this$props2$imageSup === void 0 ? {} : _this$props2$imageSup;
|
|
111266
111277
|
var anchorEl = this.state.anchorEl;
|
|
111267
111278
|
return connectDragPreview(connectDropTarget(_react["default"].createElement("div", null, _react["default"].createElement(_common.Row, null, _react["default"].createElement(_common.PrimaryBlock, {
|
|
111268
111279
|
className: classes.primaryBlock
|
|
@@ -111303,7 +111314,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111303
111314
|
placeholder: ("Enter ").concat(traitLabel),
|
|
111304
111315
|
spellCheck: spellCheck,
|
|
111305
111316
|
uploadSoundSupport: uploadSoundSupport,
|
|
111306
|
-
mathMlOptions: mathMlOptions
|
|
111317
|
+
mathMlOptions: mathMlOptions,
|
|
111318
|
+
imageSupport: imageSupport
|
|
111307
111319
|
}), error && _react["default"].createElement("div", {
|
|
111308
111320
|
className: classes.errorText
|
|
111309
111321
|
}, error.name || '')), _react["default"].createElement(_common.SecondaryBlock, {
|
|
@@ -111322,7 +111334,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111322
111334
|
pluginProps: expandedPluginProps,
|
|
111323
111335
|
spellCheck: spellCheck,
|
|
111324
111336
|
uploadSoundSupport: uploadSoundSupport,
|
|
111325
|
-
mathMlOptions: mathMlOptions
|
|
111337
|
+
mathMlOptions: mathMlOptions,
|
|
111338
|
+
imageSupport: imageSupport
|
|
111326
111339
|
})), showDescription && _react["default"].createElement(_common.Block, null, _react["default"].createElement(_common.ExpandedInput, {
|
|
111327
111340
|
placeholder: "Enter Description",
|
|
111328
111341
|
markup: description,
|
|
@@ -111335,7 +111348,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111335
111348
|
pluginProps: expandedPluginProps,
|
|
111336
111349
|
spellCheck: spellCheck,
|
|
111337
111350
|
uploadSoundSupport: uploadSoundSupport,
|
|
111338
|
-
mathMlOptions: mathMlOptions
|
|
111351
|
+
mathMlOptions: mathMlOptions,
|
|
111352
|
+
imageSupport: imageSupport
|
|
111339
111353
|
}), error && _react["default"].createElement("div", {
|
|
111340
111354
|
className: classes.errorText
|
|
111341
111355
|
}, error.description || '')), (scorePointsValues || []).map(function (scorePointsValue, index) {
|
|
@@ -111363,7 +111377,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111363
111377
|
alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints,
|
|
111364
111378
|
spellCheck: spellCheck,
|
|
111365
111379
|
uploadSoundSupport: uploadSoundSupport,
|
|
111366
|
-
mathMlOptions: mathMlOptions
|
|
111380
|
+
mathMlOptions: mathMlOptions,
|
|
111381
|
+
imageSupport: imageSupport
|
|
111367
111382
|
}));
|
|
111368
111383
|
}))))));
|
|
111369
111384
|
}
|
|
@@ -111402,7 +111417,11 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
111402
111417
|
currentPosition: _propTypes["default"].number,
|
|
111403
111418
|
secondaryBlockWidth: _propTypes["default"].number,
|
|
111404
111419
|
expandedPluginProps: _propTypes["default"].object,
|
|
111405
|
-
labelPluginProps: _propTypes["default"].object
|
|
111420
|
+
labelPluginProps: _propTypes["default"].object,
|
|
111421
|
+
imageSupport: _propTypes["default"].shape({
|
|
111422
|
+
add: _propTypes["default"].func.isRequired,
|
|
111423
|
+
"delete": _propTypes["default"].func.isRequired
|
|
111424
|
+
})
|
|
111406
111425
|
};
|
|
111407
111426
|
var StyledTrait = (0, _styles.withStyles)(styles)(TraitTile);
|
|
111408
111427
|
exports.StyledTrait = StyledTrait;
|
|
@@ -112154,7 +112173,7 @@ var defaults$1 = {};
|
|
|
112154
112173
|
disabled: false
|
|
112155
112174
|
},
|
|
112156
112175
|
image: {
|
|
112157
|
-
disabled:
|
|
112176
|
+
disabled: false
|
|
112158
112177
|
}
|
|
112159
112178
|
}
|
|
112160
112179
|
},
|
|
@@ -112850,7 +112869,7 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112850
112869
|
key: "render",
|
|
112851
112870
|
value: function render() {
|
|
112852
112871
|
var _this2 = this;
|
|
112853
|
-
var _ref15 = this.props || ({}), classes = _ref15.classes, errors = _ref15.errors, scale = _ref15.scale, scaleIndex = _ref15.scaleIndex, showStandards = _ref15.showStandards, onScaleChanged = _ref15.onScaleChanged, excludeZero = _ref15.excludeZero, showDescription = _ref15.showDescription, showLevelTagInput = _ref15.showLevelTagInput, showScorePointLabels = _ref15.showScorePointLabels, enableDragAndDrop = _ref15.enableDragAndDrop, spellCheck = _ref15.spellCheck, width = _ref15.width, uploadSoundSupport = _ref15.uploadSoundSupport, maxPointsEnabled = _ref15.maxPointsEnabled, _ref15$mathMlOptions = _ref15.mathMlOptions, mathMlOptions = _ref15$mathMlOptions === void 0 ? {} : _ref15$mathMlOptions, maxMaxPoints = _ref15.maxMaxPoints, _ref15$expandedPlugin = _ref15.expandedPluginProps, expandedPluginProps = _ref15$expandedPlugin === void 0 ? {} : _ref15$expandedPlugin, _ref15$labelPluginPro = _ref15.labelPluginProps, labelPluginProps = _ref15$labelPluginPro === void 0 ? {} : _ref15$labelPluginPro;
|
|
112872
|
+
var _ref15 = this.props || ({}), classes = _ref15.classes, errors = _ref15.errors, scale = _ref15.scale, scaleIndex = _ref15.scaleIndex, showStandards = _ref15.showStandards, onScaleChanged = _ref15.onScaleChanged, excludeZero = _ref15.excludeZero, showDescription = _ref15.showDescription, showLevelTagInput = _ref15.showLevelTagInput, showScorePointLabels = _ref15.showScorePointLabels, enableDragAndDrop = _ref15.enableDragAndDrop, spellCheck = _ref15.spellCheck, width = _ref15.width, uploadSoundSupport = _ref15.uploadSoundSupport, maxPointsEnabled = _ref15.maxPointsEnabled, _ref15$mathMlOptions = _ref15.mathMlOptions, mathMlOptions = _ref15$mathMlOptions === void 0 ? {} : _ref15$mathMlOptions, maxMaxPoints = _ref15.maxMaxPoints, _ref15$expandedPlugin = _ref15.expandedPluginProps, expandedPluginProps = _ref15$expandedPlugin === void 0 ? {} : _ref15$expandedPlugin, _ref15$labelPluginPro = _ref15.labelPluginProps, labelPluginProps = _ref15$labelPluginPro === void 0 ? {} : _ref15$labelPluginPro, _ref15$imageSupport = _ref15.imageSupport, imageSupport = _ref15$imageSupport === void 0 ? {} : _ref15$imageSupport;
|
|
112854
112873
|
var _ref16 = scale || ({}), maxPoints = _ref16.maxPoints, scorePointsLabels = _ref16.scorePointsLabels, traitLabel = _ref16.traitLabel, traits = _ref16.traits;
|
|
112855
112874
|
var _this$state = this.state, showDecreaseMaxPointsDialog = _this$state.showDecreaseMaxPointsDialog, showDeleteScaleDialog = _this$state.showDeleteScaleDialog, showDeleteTraitDialog = _this$state.showDeleteTraitDialog, currentPosition = _this$state.currentPosition, showRight = _this$state.showRight, showLeft = _this$state.showLeft, showInfoDialog = _this$state.showInfoDialog, infoDialogText = _this$state.infoDialogText;
|
|
112856
112875
|
var _ref17 = errors || ({}), traitsErrors = _ref17.traitsErrors, scorePointsErrors = _ref17.scorePointsErrors;
|
|
@@ -112902,7 +112921,8 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112902
112921
|
mathMlOptions: mathMlOptions,
|
|
112903
112922
|
maxMaxPoints: maxMaxPoints,
|
|
112904
112923
|
expandedPluginProps: expandedPluginProps,
|
|
112905
|
-
labelPluginProps: labelPluginProps
|
|
112924
|
+
labelPluginProps: labelPluginProps,
|
|
112925
|
+
imageSupport: imageSupport
|
|
112906
112926
|
}), traits.map(function (trait, index) {
|
|
112907
112927
|
return _react["default"].createElement(_trait["default"], {
|
|
112908
112928
|
key: index,
|
|
@@ -112929,7 +112949,8 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
112929
112949
|
uploadSoundSupport: uploadSoundSupport,
|
|
112930
112950
|
mathMlOptions: mathMlOptions,
|
|
112931
112951
|
expandedPluginProps: expandedPluginProps,
|
|
112932
|
-
labelPluginProps: labelPluginProps
|
|
112952
|
+
labelPluginProps: labelPluginProps,
|
|
112953
|
+
imageSupport: imageSupport
|
|
112933
112954
|
});
|
|
112934
112955
|
}), _react["default"].createElement(_common.Arrow, {
|
|
112935
112956
|
width: ("").concat(AdjustedBlockWidth / 2, "px"),
|
|
@@ -113363,7 +113384,7 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
|
|
|
113363
113384
|
key: "render",
|
|
113364
113385
|
value: function render() {
|
|
113365
113386
|
var _this2 = this;
|
|
113366
|
-
var _ref24 = this.props || ({}), model = _ref24.model, configuration = _ref24.configuration, onConfigurationChanged = _ref24.onConfigurationChanged, uploadSoundSupport = _ref24.uploadSoundSupport;
|
|
113387
|
+
var _ref24 = this.props || ({}), model = _ref24.model, configuration = _ref24.configuration, onConfigurationChanged = _ref24.onConfigurationChanged, uploadSoundSupport = _ref24.uploadSoundSupport, imageSupport = _ref24.imageSupport;
|
|
113367
113388
|
var _ref25 = configuration || ({}), addScale = _ref25.addScale, _ref25$baseInputConfi = _ref25.baseInputConfiguration, baseInputConfiguration = _ref25$baseInputConfi === void 0 ? {} : _ref25$baseInputConfi, dragAndDrop = _ref25.dragAndDrop, _ref25$contentDimensi = _ref25.contentDimensions, contentDimensions = _ref25$contentDimensi === void 0 ? {} : _ref25$contentDimensi, showDescription = _ref25.showDescription, showExcludeZero = _ref25.showExcludeZero, showLevelTagInput = _ref25.showLevelTagInput, showStandards = _ref25.showStandards, showHalfScoring = _ref25.showHalfScoring, showMaxPoint = _ref25.showMaxPoint, showScorePointLabels = _ref25.showScorePointLabels, showVisibleToStudent = _ref25.showVisibleToStudent, _ref25$spellCheck = _ref25.spellCheck, spellCheck = _ref25$spellCheck === void 0 ? {} : _ref25$spellCheck, settingsPanelDisabled = _ref25.settingsPanelDisabled, maxNoOfTraits = _ref25.maxNoOfTraits, minNoOfTraits = _ref25.minNoOfTraits, width = _ref25.width, _ref25$mathMlOptions = _ref25.mathMlOptions, mathMlOptions = _ref25$mathMlOptions === void 0 ? {} : _ref25$mathMlOptions, maxMaxPoints = _ref25.maxMaxPoints, _ref25$expandedInput = _ref25.expandedInput, expandedInput = _ref25$expandedInput === void 0 ? {} : _ref25$expandedInput, _ref25$labelInput = _ref25.labelInput, labelInput = _ref25$labelInput === void 0 ? {} : _ref25$labelInput;
|
|
113368
113389
|
var _ref26 = model || ({}), errors = _ref26.errors, scales = _ref26.scales, excludeZero = _ref26.excludeZero, description = _ref26.description, pointLabels = _ref26.pointLabels, standards = _ref26.standards, spellCheckEnabled = _ref26.spellCheckEnabled, maxPointsEnabled = _ref26.maxPointsEnabled, addScaleEnabled = _ref26.addScaleEnabled;
|
|
113369
113390
|
var _ref27 = this.state || ({}), showExcludeZeroDialog = _ref27.showExcludeZeroDialog, showInfoDialog = _ref27.showInfoDialog, infoDialogText = _ref27.infoDialogText, adjustedWidth = _ref27.adjustedWidth;
|
|
@@ -113432,7 +113453,8 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
|
|
|
113432
113453
|
uploadSoundSupport: uploadSoundSupport,
|
|
113433
113454
|
maxPointsEnabled: maxPointsEnabled,
|
|
113434
113455
|
maxNoOfTraits: maxNoOfTraits,
|
|
113435
|
-
minNoOfTraits: minNoOfTraits
|
|
113456
|
+
minNoOfTraits: minNoOfTraits,
|
|
113457
|
+
imageSupport: imageSupport
|
|
113436
113458
|
}, _this2.props, {
|
|
113437
113459
|
classes: {},
|
|
113438
113460
|
mathMlOptions: mathMlOptions,
|
|
@@ -113462,7 +113484,11 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
|
|
|
113462
113484
|
uploadSoundSupport: _propTypes["default"].object,
|
|
113463
113485
|
configuration: _propTypes["default"].object,
|
|
113464
113486
|
onModelChanged: _propTypes["default"].func,
|
|
113465
|
-
onConfigurationChanged: _propTypes["default"].func
|
|
113487
|
+
onConfigurationChanged: _propTypes["default"].func,
|
|
113488
|
+
imageSupport: _propTypes["default"].shape({
|
|
113489
|
+
add: _propTypes["default"].func.isRequired,
|
|
113490
|
+
"delete": _propTypes["default"].func.isRequired
|
|
113491
|
+
})
|
|
113466
113492
|
};
|
|
113467
113493
|
var _default = (0, _drag.withDragContext)((0, _styles.withStyles)(styles)(Main));
|
|
113468
113494
|
exports["default"] = _default;
|
|
@@ -113548,13 +113574,23 @@ const require$$12$j = _dll_react_dom;
|
|
|
113548
113574
|
var _this;
|
|
113549
113575
|
(0, _classCallCheck2["default"])(this, MultiTraitRubricElement);
|
|
113550
113576
|
_this = _super.call(this);
|
|
113551
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "
|
|
113552
|
-
var
|
|
113553
|
-
|
|
113577
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "updateModelAccordingToReceivedProps", function (m) {
|
|
113578
|
+
var currentModel = _objectSpread({}, _this._model);
|
|
113579
|
+
if (!m) {
|
|
113580
|
+
return currentModel;
|
|
113581
|
+
}
|
|
113582
|
+
var validatedModel = _objectSpread({}, m);
|
|
113583
|
+
var _ref = validatedModel || ({}), scales = _ref.scales, excludeZero = _ref.excludeZero;
|
|
113554
113584
|
(scales || []).forEach(function (scale) {
|
|
113555
|
-
|
|
113556
|
-
|
|
113557
|
-
|
|
113585
|
+
if (!scale) {
|
|
113586
|
+
scale = {
|
|
113587
|
+
scorePointsLabels: [],
|
|
113588
|
+
traits: []
|
|
113589
|
+
};
|
|
113590
|
+
}
|
|
113591
|
+
var _ref2 = scale || ({}), maxPoints = _ref2.maxPoints;
|
|
113592
|
+
scale.scorePointsLabels = (0, _toConsumableArray2["default"])(scale.scorePointsLabels || []);
|
|
113593
|
+
scale.traits = (0, _toConsumableArray2["default"])(scale.traits || []);
|
|
113558
113594
|
var howManyScorePointLabelsShouldHave = excludeZero ? maxPoints : maxPoints + 1;
|
|
113559
113595
|
var howManyScorePointLabelsItHas = scale.scorePointsLabels.length;
|
|
113560
113596
|
if (howManyScorePointLabelsItHas !== howManyScorePointLabelsShouldHave) {
|
|
@@ -113567,7 +113603,12 @@ const require$$12$j = _dll_react_dom;
|
|
|
113567
113603
|
}
|
|
113568
113604
|
}
|
|
113569
113605
|
(scale.traits || []).forEach(function (trait) {
|
|
113570
|
-
|
|
113606
|
+
if (!trait) {
|
|
113607
|
+
trait = {
|
|
113608
|
+
scorePointsDescriptors: []
|
|
113609
|
+
};
|
|
113610
|
+
}
|
|
113611
|
+
trait.scorePointsDescriptors = (0, _toConsumableArray2["default"])(trait.scorePointsDescriptors || []);
|
|
113571
113612
|
var howManyScorePointDescriptorsItHas = trait.scorePointsDescriptors.length;
|
|
113572
113613
|
if (howManyScorePointDescriptorsItHas !== howManyScorePointLabelsShouldHave) {
|
|
113573
113614
|
if (howManyScorePointDescriptorsItHas < howManyScorePointLabelsShouldHave) {
|
|
@@ -113583,7 +113624,7 @@ const require$$12$j = _dll_react_dom;
|
|
|
113583
113624
|
return validatedModel;
|
|
113584
113625
|
});
|
|
113585
113626
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onModelChanged", function (m) {
|
|
113586
|
-
_this._model = _this.
|
|
113627
|
+
_this._model = _this.updateModelAccordingToReceivedProps(modelWithDefaults(m));
|
|
113587
113628
|
_this._render();
|
|
113588
113629
|
_this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(_this._model, false));
|
|
113589
113630
|
});
|
|
@@ -113598,7 +113639,7 @@ const require$$12$j = _dll_react_dom;
|
|
|
113598
113639
|
(0, _createClass2["default"])(MultiTraitRubricElement, [{
|
|
113599
113640
|
key: "model",
|
|
113600
113641
|
set: function set(m) {
|
|
113601
|
-
this._model = this.
|
|
113642
|
+
this._model = this.updateModelAccordingToReceivedProps(modelWithDefaults(m));
|
|
113602
113643
|
this._render();
|
|
113603
113644
|
}
|
|
113604
113645
|
}, {
|
|
@@ -113617,10 +113658,19 @@ const require$$12$j = _dll_react_dom;
|
|
|
113617
113658
|
value: function onDeleteSound(src, done) {
|
|
113618
113659
|
this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
|
|
113619
113660
|
}
|
|
113661
|
+
}, {
|
|
113662
|
+
key: "insertImage",
|
|
113663
|
+
value: function insertImage(handler) {
|
|
113664
|
+
this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
|
|
113665
|
+
}
|
|
113666
|
+
}, {
|
|
113667
|
+
key: "onDeleteImage",
|
|
113668
|
+
value: function onDeleteImage(src, done) {
|
|
113669
|
+
this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
|
|
113670
|
+
}
|
|
113620
113671
|
}, {
|
|
113621
113672
|
key: "_render",
|
|
113622
113673
|
value: function _render() {
|
|
113623
|
-
console.log('THE MODEL', this._model);
|
|
113624
113674
|
if (this._model) {
|
|
113625
113675
|
var element = _react["default"].createElement(_main["default"], {
|
|
113626
113676
|
model: this._model,
|
|
@@ -113630,6 +113680,10 @@ const require$$12$j = _dll_react_dom;
|
|
|
113630
113680
|
uploadSoundSupport: {
|
|
113631
113681
|
add: this.insertSound.bind(this),
|
|
113632
113682
|
"delete": this.onDeleteSound.bind(this)
|
|
113683
|
+
},
|
|
113684
|
+
imageSupport: {
|
|
113685
|
+
add: this.insertImage.bind(this),
|
|
113686
|
+
"delete": this.onDeleteImage.bind(this)
|
|
113633
113687
|
}
|
|
113634
113688
|
});
|
|
113635
113689
|
_reactDom["default"].render(element, this);
|
|
@@ -233192,7 +233246,7 @@ const multiTraitDefaultConfiguration = {
|
|
|
233192
233246
|
disabled: false
|
|
233193
233247
|
},
|
|
233194
233248
|
image: {
|
|
233195
|
-
disabled:
|
|
233249
|
+
disabled: false
|
|
233196
233250
|
}
|
|
233197
233251
|
}
|
|
233198
233252
|
},
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.7.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.7.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "2.8.2-next.
|
|
4
|
+
"version": "2.8.2-next.48+bd7303c2a",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "^3.8.2-next.
|
|
11
|
-
"@pie-element/rubric": "^3.8.2-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.8.2-next.48+bd7303c2a",
|
|
11
|
+
"@pie-element/rubric": "^3.8.2-next.48+bd7303c2a",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "bd7303c2a8774d73ac50417797994e6f7c0ad268",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|