@pie-element/complex-rubric 2.8.2-next.7 → 2.8.3-next.10

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,17 @@
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
+ ## [2.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.8.1...@pie-element/complex-rubric@2.8.2) (2024-04-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **complex-rubric:** added imageSupport to fix missing image setting from editable-html ([4a40858](https://github.com/pie-framework/pie-elements/commit/4a408580d012d27bf333f117308483b4854e2b20))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.8.0...@pie-element/complex-rubric@2.8.1) (2024-04-01)
7
18
 
8
19
  **Note:** Version bump only for package @pie-element/complex-rubric
@@ -3,6 +3,17 @@
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
+ ## [2.2.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.11...@pie-element/complex-rubric-configure@2.2.12) (2024-04-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **complex-rubric:** added imageSupport to fix missing image setting from editable-html ([4a40858](https://github.com/pie-framework/pie-elements/commit/4a408580d012d27bf333f117308483b4854e2b20))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.2.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.10...@pie-element/complex-rubric-configure@2.2.11) (2024-04-01)
7
18
 
8
19
  **Note:** Version bump only for package @pie-element/complex-rubric-configure
@@ -57,7 +57,7 @@ var multiTraitDefaultConfiguration = {
57
57
  disabled: false
58
58
  },
59
59
  image: {
60
- disabled: true
60
+ disabled: false
61
61
  }
62
62
  }
63
63
  },
@@ -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,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,CAA3B;AAOA,IAAMK,sBAAsB,GAAG;AAC7BD,EA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,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,CAA3B;AAOA,IAAMK,sBAAsB,GAAG;AAC7BD,EAAAA,SAAS,EAAE,GADkB;AAE7BJ,EAAAA,WAAW,EAAE,KAFgB;AAG7BM,EAAAA,4BAA4B,EAAE;AAHD,CAA/B;AAMA,IAAMC,8BAA8B,GAAG;AACrCC,EAAAA,sBAAsB,EAAE;AACtBC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,QAAQ,EAAE;AAAZ,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;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"}
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-configure",
3
3
  "private": true,
4
- "version": "2.2.11",
4
+ "version": "2.2.12",
5
5
  "description": "Complex Rubric authoring view",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "Pie Framework Authors",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
- "@pie-element/multi-trait-rubric": "^3.8.1",
12
- "@pie-element/rubric": "^3.8.1",
11
+ "@pie-element/multi-trait-rubric": "^3.8.2",
12
+ "@pie-element/rubric": "^3.8.2",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
14
  "@pie-lib/config-ui": "^11.9.25-next.0",
15
15
  "@pie-lib/editable-html": "^11.1.2-next.0",
@@ -34,7 +34,7 @@ const multiTraitDefaultConfiguration = {
34
34
  math: { disabled: true },
35
35
  audio: { disabled: false },
36
36
  video: { disabled: false },
37
- image: { disabled: true },
37
+ image: { disabled: false },
38
38
  },
39
39
  },
40
40
  labelInput: {
@@ -7,7 +7,7 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "1.13.1",
10
+ "@pie-lib/pie-toolbox": "1.15.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -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.6.1/module/index.js";
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) {
@@ -107119,31 +107119,33 @@ const require$$11$I = _dll_prop_types;
107119
107119
  }, {
107120
107120
  key: "alignImages",
107121
107121
  value: function alignImages() {
107122
- var previewPrompt = document.querySelector('#preview-prompt');
107123
- var images = previewPrompt && previewPrompt.getElementsByTagName('img');
107124
- if (images && images.length) {
107125
- var _iterator = _createForOfIteratorHelper(images), _step;
107126
- try {
107127
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
107128
- var image = _step.value;
107129
- if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
107130
- var parentNode = image.parentElement;
107131
- if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
107132
- var div = document.createElement('div');
107133
- div.style.display = 'flex';
107134
- div.style.width = '100%';
107135
- var copyImage = image.cloneNode(true);
107136
- div.appendChild(copyImage);
107137
- parentNode.replaceChild(div, image);
107122
+ var previewPrompts = document.querySelectorAll('#preview-prompt');
107123
+ previewPrompts.forEach(function (previewPrompt) {
107124
+ var images = previewPrompt.getElementsByTagName('img');
107125
+ if (images && images.length) {
107126
+ var _iterator = _createForOfIteratorHelper(images), _step;
107127
+ try {
107128
+ for (_iterator.s(); !(_step = _iterator.n()).done; ) {
107129
+ var image = _step.value;
107130
+ if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
107131
+ var parentNode = image.parentElement;
107132
+ if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
107133
+ var div = document.createElement('div');
107134
+ div.style.display = 'flex';
107135
+ div.style.width = '100%';
107136
+ var copyImage = image.cloneNode(true);
107137
+ div.appendChild(copyImage);
107138
+ parentNode.replaceChild(div, image);
107139
+ }
107138
107140
  }
107139
107141
  }
107142
+ } catch (err) {
107143
+ _iterator.e(err);
107144
+ } finally {
107145
+ _iterator.f();
107140
107146
  }
107141
- } catch (err) {
107142
- _iterator.e(err);
107143
- } finally {
107144
- _iterator.f();
107145
107147
  }
107146
- }
107148
+ });
107147
107149
  }
107148
107150
  }, {
107149
107151
  key: "render",
@@ -110576,7 +110578,7 @@ var ScorePoint = (0, _styles$8.withStyles)(function (theme) {
110576
110578
  }
110577
110579
  };
110578
110580
  })(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;
110581
+ 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
110582
  var scoreBoxClasses = showScorePointLabels ? classes.scorePointBox : ("").concat(classes.scorePointBox, " ").concat(classes.scorePointBoxDisabled);
110581
110583
  return _react$26["default"].createElement("div", {
110582
110584
  className: classes.scorePointBoxWrapper
@@ -110596,16 +110598,17 @@ var ScorePoint = (0, _styles$8.withStyles)(function (theme) {
110596
110598
  pluginProps: pluginProps,
110597
110599
  activePlugins: _utils$1j.filteredDefaultPlugins,
110598
110600
  spellCheck: spellCheck,
110599
- toolbarOpts: alignToRight && ({
110601
+ toolbarOpts: alignToRight ? {
110600
110602
  alignment: 'right'
110601
- }),
110603
+ } : {},
110602
110604
  uploadSoundSupport: uploadSoundSupport,
110603
110605
  languageCharactersProps: [{
110604
110606
  language: 'spanish'
110605
110607
  }, {
110606
110608
  language: 'special'
110607
110609
  }],
110608
- mathMlOptions: mathMlOptions
110610
+ mathMlOptions: mathMlOptions,
110611
+ imageSupport: imageSupport
110609
110612
  }) : null));
110610
110613
  });
110611
110614
  common.ScorePoint = ScorePoint;
@@ -110671,7 +110674,7 @@ var SimpleInput = (0, _styles$8.withStyles)(function (theme) {
110671
110674
  }
110672
110675
  };
110673
110676
  })(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;
110677
+ 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
110678
  return _react$26["default"].createElement("div", {
110676
110679
  className: classes.simpleInput
110677
110680
  }, label && _react$26["default"].createElement("div", null, label), _react$26["default"].createElement(_editableHtml.EditableHtml, {
@@ -110691,7 +110694,8 @@ var SimpleInput = (0, _styles$8.withStyles)(function (theme) {
110691
110694
  }, {
110692
110695
  language: 'special'
110693
110696
  }],
110694
- mathMlOptions: mathMlOptions
110697
+ mathMlOptions: mathMlOptions,
110698
+ imageSupport: imageSupport
110695
110699
  }));
110696
110700
  });
110697
110701
  common.SimpleInput = SimpleInput;
@@ -110721,7 +110725,7 @@ var UnderlinedInput = (0, _styles$8.withStyles)(function (theme) {
110721
110725
  }
110722
110726
  };
110723
110727
  })(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;
110728
+ 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
110729
  return _react$26["default"].createElement("div", {
110726
110730
  className: classes.underlinedInputWrapper
110727
110731
  }, label && _react$26["default"].createElement("div", null, label), _react$26["default"].createElement(_editableHtml.EditableHtml, {
@@ -110742,7 +110746,8 @@ var UnderlinedInput = (0, _styles$8.withStyles)(function (theme) {
110742
110746
  }, {
110743
110747
  language: 'special'
110744
110748
  }],
110745
- mathMlOptions: mathMlOptions
110749
+ mathMlOptions: mathMlOptions,
110750
+ imageSupport: imageSupport
110746
110751
  }));
110747
110752
  });
110748
110753
  common.UnderlinedInput = UnderlinedInput;
@@ -110758,7 +110763,7 @@ var ExpandedInput = (0, _styles$8.withStyles)({
110758
110763
  marginTop: 0
110759
110764
  }
110760
110765
  })(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;
110766
+ 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
110767
  return _react$26["default"].createElement("div", null, _react$26["default"].createElement(_editableHtml.EditableHtml, {
110763
110768
  className: classes.prompt,
110764
110769
  classes: {
@@ -110769,9 +110774,9 @@ var ExpandedInput = (0, _styles$8.withStyles)({
110769
110774
  onChange: onChange,
110770
110775
  placeholder: placeholder,
110771
110776
  pluginProps: pluginProps,
110772
- toolbarOpts: alignToRight && ({
110777
+ toolbarOpts: alignToRight ? {
110773
110778
  alignment: 'right'
110774
- }),
110779
+ } : {},
110775
110780
  spellCheck: spellCheck,
110776
110781
  uploadSoundSupport: uploadSoundSupport,
110777
110782
  languageCharactersProps: [{
@@ -110780,7 +110785,8 @@ var ExpandedInput = (0, _styles$8.withStyles)({
110780
110785
  language: 'special'
110781
110786
  }],
110782
110787
  autoWidthToolbar: true,
110783
- mathMlOptions: mathMlOptions
110788
+ mathMlOptions: mathMlOptions,
110789
+ imageSupport: imageSupport
110784
110790
  }));
110785
110791
  });
110786
110792
  common.ExpandedInput = ExpandedInput;
@@ -110919,7 +110925,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
110919
110925
  primaryBlockGreyHeader: {
110920
110926
  paddingTop: theme.spacing.unit * 1.5
110921
110927
  },
110922
- errorText: {
110928
+ scorePointErrorText: {
110929
+ position: 'absolute',
110923
110930
  fontSize: theme.typography.fontSize - 2,
110924
110931
  color: theme.palette.error.main,
110925
110932
  paddingTop: theme.spacing.unit / 2
@@ -110980,7 +110987,7 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
110980
110987
  key: "render",
110981
110988
  value: function render() {
110982
110989
  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;
110990
+ 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
110991
  var anchorEl = this.state.anchorEl;
110985
110992
  return _react["default"].createElement(_common.Row, {
110986
110993
  className: classes.greyHeader,
@@ -110994,7 +111001,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
110994
111001
  spellCheck: spellCheck,
110995
111002
  label: "Level Label",
110996
111003
  uploadSoundSupport: uploadSoundSupport,
110997
- mathMlOptions: mathMlOptions
111004
+ mathMlOptions: mathMlOptions,
111005
+ imageSupport: imageSupport
110998
111006
  }), _react["default"].createElement(_common.ScaleSettings, null, _react["default"].createElement("div", null, "Scale ", scaleIndex + 1), maxPointsEnabled && _react["default"].createElement(_common.MaxPointsPicker, {
110999
111007
  maxPoints: maxPoints,
111000
111008
  maxMaxPoints: maxMaxPoints,
@@ -111056,9 +111064,10 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
111056
111064
  alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints,
111057
111065
  spellCheck: spellCheck,
111058
111066
  uploadSoundSupport: uploadSoundSupport,
111059
- mathMlOptions: mathMlOptions
111067
+ mathMlOptions: mathMlOptions,
111068
+ imageSupport: imageSupport
111060
111069
  }), error && _react["default"].createElement("div", {
111061
- className: classes.errorText
111070
+ className: classes.scorePointErrorText
111062
111071
  }, error));
111063
111072
  })));
111064
111073
  }
@@ -111091,7 +111100,11 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
111091
111100
  setSecondaryBlockRef: _propTypes["default"].func,
111092
111101
  uploadSoundSupport: _propTypes["default"].object,
111093
111102
  maxMaxPoints: _propTypes["default"].number,
111094
- labelPluginProps: _propTypes["default"].object
111103
+ labelPluginProps: _propTypes["default"].object,
111104
+ imageSupport: _propTypes["default"].shape({
111105
+ add: _propTypes["default"].func.isRequired,
111106
+ "delete": _propTypes["default"].func.isRequired
111107
+ })
111095
111108
  };
111096
111109
  var _default = (0, _styles.withStyles)(styles)(TraitsHeaderTile);
111097
111110
  exports["default"] = _default;
@@ -111262,7 +111275,7 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
111262
111275
  key: "render",
111263
111276
  value: function render() {
111264
111277
  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;
111278
+ 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
111279
  var anchorEl = this.state.anchorEl;
111267
111280
  return connectDragPreview(connectDropTarget(_react["default"].createElement("div", null, _react["default"].createElement(_common.Row, null, _react["default"].createElement(_common.PrimaryBlock, {
111268
111281
  className: classes.primaryBlock
@@ -111303,7 +111316,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
111303
111316
  placeholder: ("Enter ").concat(traitLabel),
111304
111317
  spellCheck: spellCheck,
111305
111318
  uploadSoundSupport: uploadSoundSupport,
111306
- mathMlOptions: mathMlOptions
111319
+ mathMlOptions: mathMlOptions,
111320
+ imageSupport: imageSupport
111307
111321
  }), error && _react["default"].createElement("div", {
111308
111322
  className: classes.errorText
111309
111323
  }, error.name || '')), _react["default"].createElement(_common.SecondaryBlock, {
@@ -111322,7 +111336,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
111322
111336
  pluginProps: expandedPluginProps,
111323
111337
  spellCheck: spellCheck,
111324
111338
  uploadSoundSupport: uploadSoundSupport,
111325
- mathMlOptions: mathMlOptions
111339
+ mathMlOptions: mathMlOptions,
111340
+ imageSupport: imageSupport
111326
111341
  })), showDescription && _react["default"].createElement(_common.Block, null, _react["default"].createElement(_common.ExpandedInput, {
111327
111342
  placeholder: "Enter Description",
111328
111343
  markup: description,
@@ -111335,7 +111350,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
111335
111350
  pluginProps: expandedPluginProps,
111336
111351
  spellCheck: spellCheck,
111337
111352
  uploadSoundSupport: uploadSoundSupport,
111338
- mathMlOptions: mathMlOptions
111353
+ mathMlOptions: mathMlOptions,
111354
+ imageSupport: imageSupport
111339
111355
  }), error && _react["default"].createElement("div", {
111340
111356
  className: classes.errorText
111341
111357
  }, error.description || '')), (scorePointsValues || []).map(function (scorePointsValue, index) {
@@ -111363,7 +111379,8 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
111363
111379
  alignToRight: remainingSpace < 296 && scorePointsValue < maxPoints,
111364
111380
  spellCheck: spellCheck,
111365
111381
  uploadSoundSupport: uploadSoundSupport,
111366
- mathMlOptions: mathMlOptions
111382
+ mathMlOptions: mathMlOptions,
111383
+ imageSupport: imageSupport
111367
111384
  }));
111368
111385
  }))))));
111369
111386
  }
@@ -111402,7 +111419,11 @@ const require$$14$8 = _dll_pie_lib__pie_toolbox_render_ui;
111402
111419
  currentPosition: _propTypes["default"].number,
111403
111420
  secondaryBlockWidth: _propTypes["default"].number,
111404
111421
  expandedPluginProps: _propTypes["default"].object,
111405
- labelPluginProps: _propTypes["default"].object
111422
+ labelPluginProps: _propTypes["default"].object,
111423
+ imageSupport: _propTypes["default"].shape({
111424
+ add: _propTypes["default"].func.isRequired,
111425
+ "delete": _propTypes["default"].func.isRequired
111426
+ })
111406
111427
  };
111407
111428
  var StyledTrait = (0, _styles.withStyles)(styles)(TraitTile);
111408
111429
  exports.StyledTrait = StyledTrait;
@@ -112154,7 +112175,7 @@ var defaults$1 = {};
112154
112175
  disabled: false
112155
112176
  },
112156
112177
  image: {
112157
- disabled: true
112178
+ disabled: false
112158
112179
  }
112159
112180
  }
112160
112181
  },
@@ -112850,7 +112871,7 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
112850
112871
  key: "render",
112851
112872
  value: function render() {
112852
112873
  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;
112874
+ 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
112875
  var _ref16 = scale || ({}), maxPoints = _ref16.maxPoints, scorePointsLabels = _ref16.scorePointsLabels, traitLabel = _ref16.traitLabel, traits = _ref16.traits;
112855
112876
  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
112877
  var _ref17 = errors || ({}), traitsErrors = _ref17.traitsErrors, scorePointsErrors = _ref17.scorePointsErrors;
@@ -112902,7 +112923,8 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
112902
112923
  mathMlOptions: mathMlOptions,
112903
112924
  maxMaxPoints: maxMaxPoints,
112904
112925
  expandedPluginProps: expandedPluginProps,
112905
- labelPluginProps: labelPluginProps
112926
+ labelPluginProps: labelPluginProps,
112927
+ imageSupport: imageSupport
112906
112928
  }), traits.map(function (trait, index) {
112907
112929
  return _react["default"].createElement(_trait["default"], {
112908
112930
  key: index,
@@ -112929,7 +112951,8 @@ const require$$15$6 = _dll_pie_lib__pie_toolbox_render_ui;
112929
112951
  uploadSoundSupport: uploadSoundSupport,
112930
112952
  mathMlOptions: mathMlOptions,
112931
112953
  expandedPluginProps: expandedPluginProps,
112932
- labelPluginProps: labelPluginProps
112954
+ labelPluginProps: labelPluginProps,
112955
+ imageSupport: imageSupport
112933
112956
  });
112934
112957
  }), _react["default"].createElement(_common.Arrow, {
112935
112958
  width: ("").concat(AdjustedBlockWidth / 2, "px"),
@@ -113363,7 +113386,7 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113363
113386
  key: "render",
113364
113387
  value: function render() {
113365
113388
  var _this2 = this;
113366
- var _ref24 = this.props || ({}), model = _ref24.model, configuration = _ref24.configuration, onConfigurationChanged = _ref24.onConfigurationChanged, uploadSoundSupport = _ref24.uploadSoundSupport;
113389
+ var _ref24 = this.props || ({}), model = _ref24.model, configuration = _ref24.configuration, onConfigurationChanged = _ref24.onConfigurationChanged, uploadSoundSupport = _ref24.uploadSoundSupport, imageSupport = _ref24.imageSupport;
113367
113390
  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
113391
  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
113392
  var _ref27 = this.state || ({}), showExcludeZeroDialog = _ref27.showExcludeZeroDialog, showInfoDialog = _ref27.showInfoDialog, infoDialogText = _ref27.infoDialogText, adjustedWidth = _ref27.adjustedWidth;
@@ -113432,7 +113455,8 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113432
113455
  uploadSoundSupport: uploadSoundSupport,
113433
113456
  maxPointsEnabled: maxPointsEnabled,
113434
113457
  maxNoOfTraits: maxNoOfTraits,
113435
- minNoOfTraits: minNoOfTraits
113458
+ minNoOfTraits: minNoOfTraits,
113459
+ imageSupport: imageSupport
113436
113460
  }, _this2.props, {
113437
113461
  classes: {},
113438
113462
  mathMlOptions: mathMlOptions,
@@ -113462,7 +113486,11 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113462
113486
  uploadSoundSupport: _propTypes["default"].object,
113463
113487
  configuration: _propTypes["default"].object,
113464
113488
  onModelChanged: _propTypes["default"].func,
113465
- onConfigurationChanged: _propTypes["default"].func
113489
+ onConfigurationChanged: _propTypes["default"].func,
113490
+ imageSupport: _propTypes["default"].shape({
113491
+ add: _propTypes["default"].func.isRequired,
113492
+ "delete": _propTypes["default"].func.isRequired
113493
+ })
113466
113494
  };
113467
113495
  var _default = (0, _drag.withDragContext)((0, _styles.withStyles)(styles)(Main));
113468
113496
  exports["default"] = _default;
@@ -113548,13 +113576,23 @@ const require$$12$j = _dll_react_dom;
113548
113576
  var _this;
113549
113577
  (0, _classCallCheck2["default"])(this, MultiTraitRubricElement);
113550
113578
  _this = _super.call(this);
113551
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "validateModel", function (m) {
113552
- var validatedModel = m;
113553
- var scales = validatedModel.scales, excludeZero = validatedModel.excludeZero;
113579
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "updateModelAccordingToReceivedProps", function (m) {
113580
+ var currentModel = _objectSpread({}, _this._model);
113581
+ if (!m) {
113582
+ return currentModel;
113583
+ }
113584
+ var validatedModel = _objectSpread({}, m);
113585
+ var _ref = validatedModel || ({}), scales = _ref.scales, excludeZero = _ref.excludeZero;
113554
113586
  (scales || []).forEach(function (scale) {
113555
- var _ref = scale || ({}), maxPoints = _ref.maxPoints;
113556
- scale.scorePointsLabels = (0, _toConsumableArray2["default"])(scale.scorePointsLabels);
113557
- scale.traits = (0, _toConsumableArray2["default"])(scale.traits);
113587
+ if (!scale) {
113588
+ scale = {
113589
+ scorePointsLabels: [],
113590
+ traits: []
113591
+ };
113592
+ }
113593
+ var _ref2 = scale || ({}), maxPoints = _ref2.maxPoints;
113594
+ scale.scorePointsLabels = (0, _toConsumableArray2["default"])(scale.scorePointsLabels || []);
113595
+ scale.traits = (0, _toConsumableArray2["default"])(scale.traits || []);
113558
113596
  var howManyScorePointLabelsShouldHave = excludeZero ? maxPoints : maxPoints + 1;
113559
113597
  var howManyScorePointLabelsItHas = scale.scorePointsLabels.length;
113560
113598
  if (howManyScorePointLabelsItHas !== howManyScorePointLabelsShouldHave) {
@@ -113567,7 +113605,12 @@ const require$$12$j = _dll_react_dom;
113567
113605
  }
113568
113606
  }
113569
113607
  (scale.traits || []).forEach(function (trait) {
113570
- trait.scorePointsDescriptors = (0, _toConsumableArray2["default"])(trait.scorePointsDescriptors);
113608
+ if (!trait) {
113609
+ trait = {
113610
+ scorePointsDescriptors: []
113611
+ };
113612
+ }
113613
+ trait.scorePointsDescriptors = (0, _toConsumableArray2["default"])(trait.scorePointsDescriptors || []);
113571
113614
  var howManyScorePointDescriptorsItHas = trait.scorePointsDescriptors.length;
113572
113615
  if (howManyScorePointDescriptorsItHas !== howManyScorePointLabelsShouldHave) {
113573
113616
  if (howManyScorePointDescriptorsItHas < howManyScorePointLabelsShouldHave) {
@@ -113583,7 +113626,7 @@ const require$$12$j = _dll_react_dom;
113583
113626
  return validatedModel;
113584
113627
  });
113585
113628
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onModelChanged", function (m) {
113586
- _this._model = _this.validateModel(modelWithDefaults(m));
113629
+ _this._model = _this.updateModelAccordingToReceivedProps(modelWithDefaults(m));
113587
113630
  _this._render();
113588
113631
  _this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(_this._model, false));
113589
113632
  });
@@ -113598,7 +113641,7 @@ const require$$12$j = _dll_react_dom;
113598
113641
  (0, _createClass2["default"])(MultiTraitRubricElement, [{
113599
113642
  key: "model",
113600
113643
  set: function set(m) {
113601
- this._model = this.validateModel(modelWithDefaults(m));
113644
+ this._model = this.updateModelAccordingToReceivedProps(modelWithDefaults(m));
113602
113645
  this._render();
113603
113646
  }
113604
113647
  }, {
@@ -113617,10 +113660,19 @@ const require$$12$j = _dll_react_dom;
113617
113660
  value: function onDeleteSound(src, done) {
113618
113661
  this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
113619
113662
  }
113663
+ }, {
113664
+ key: "insertImage",
113665
+ value: function insertImage(handler) {
113666
+ this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
113667
+ }
113668
+ }, {
113669
+ key: "onDeleteImage",
113670
+ value: function onDeleteImage(src, done) {
113671
+ this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
113672
+ }
113620
113673
  }, {
113621
113674
  key: "_render",
113622
113675
  value: function _render() {
113623
- console.log('THE MODEL', this._model);
113624
113676
  if (this._model) {
113625
113677
  var element = _react["default"].createElement(_main["default"], {
113626
113678
  model: this._model,
@@ -113630,6 +113682,10 @@ const require$$12$j = _dll_react_dom;
113630
113682
  uploadSoundSupport: {
113631
113683
  add: this.insertSound.bind(this),
113632
113684
  "delete": this.onDeleteSound.bind(this)
113685
+ },
113686
+ imageSupport: {
113687
+ add: this.insertImage.bind(this),
113688
+ "delete": this.onDeleteImage.bind(this)
113633
113689
  }
113634
113690
  });
113635
113691
  _reactDom["default"].render(element, this);
@@ -158290,12 +158346,17 @@ const require$$2$4 = _dll_prop_types;
158290
158346
  var _react = _interopRequireDefault(require$$1$b);
158291
158347
  var _propTypes = _interopRequireDefault(require$$2$4);
158292
158348
  var _core = require$$12$6;
158349
+ var _styles = styles$1J;
158293
158350
  var AlertDialog = function AlertDialog(_ref) {
158294
- var text = _ref.text, title = _ref.title, onClose = _ref.onClose, onConfirm = _ref.onConfirm, open = _ref.open, onCloseText = _ref.onCloseText, onConfirmText = _ref.onConfirmText;
158351
+ var text = _ref.text, title = _ref.title, onClose = _ref.onClose, onConfirm = _ref.onConfirm, open = _ref.open, onCloseText = _ref.onCloseText, onConfirmText = _ref.onConfirmText, classes = _ref.classes;
158295
158352
  return _react["default"].createElement(_core.Dialog, {
158296
158353
  open: open,
158297
158354
  onClose: onClose
158298
- }, title && _react["default"].createElement(_core.DialogTitle, null, title), text && _react["default"].createElement(_core.DialogContent, null, _react["default"].createElement(_core.DialogContentText, null, text)), _react["default"].createElement(_core.DialogActions, null, onClose && _react["default"].createElement(_core.Button, {
158355
+ }, title && _react["default"].createElement(_core.DialogTitle, {
158356
+ className: classes.heading
158357
+ }, title), text && _react["default"].createElement(_core.DialogContent, null, _react["default"].createElement(_core.DialogContentText, {
158358
+ className: classes.subheading
158359
+ }, text)), _react["default"].createElement(_core.DialogActions, null, onClose && _react["default"].createElement(_core.Button, {
158299
158360
  onClick: onClose,
158300
158361
  color: "primary"
158301
158362
  }, onCloseText), onConfirm && _react["default"].createElement(_core.Button, {
@@ -158315,9 +158376,22 @@ const require$$2$4 = _dll_prop_types;
158315
158376
  onConfirm: _propTypes["default"].func,
158316
158377
  open: _propTypes["default"].bool,
158317
158378
  onConfirmText: _propTypes["default"].string,
158318
- onCloseText: _propTypes["default"].string
158379
+ onCloseText: _propTypes["default"].string,
158380
+ classes: _propTypes["default"].object
158319
158381
  };
158320
- var _default = AlertDialog;
158382
+ var styles = function styles() {
158383
+ return {
158384
+ heading: {
158385
+ '& h2': {
158386
+ fontSize: 'max(1.25rem, 18px)'
158387
+ }
158388
+ },
158389
+ subheading: {
158390
+ fontSize: 'max(1rem, 14px)'
158391
+ }
158392
+ };
158393
+ };
158394
+ var _default = (0, _styles.withStyles)(styles)(AlertDialog);
158321
158395
  exports["default"] = _default;
158322
158396
  })(alertDialog);
158323
158397
  getDefaultExportFromCjs(alertDialog);
@@ -233192,7 +233266,7 @@ const multiTraitDefaultConfiguration = {
233192
233266
  disabled: false
233193
233267
  },
233194
233268
  image: {
233195
- disabled: true
233269
+ disabled: false
233196
233270
  }
233197
233271
  }
233198
233272
  },
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.6.1/module/index.js";
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) {
@@ -127535,31 +127535,33 @@ const require$$11$u = _dll_prop_types;
127535
127535
  }, {
127536
127536
  key: "alignImages",
127537
127537
  value: function alignImages() {
127538
- var previewPrompt = document.querySelector('#preview-prompt');
127539
- var images = previewPrompt && previewPrompt.getElementsByTagName('img');
127540
- if (images && images.length) {
127541
- var _iterator = _createForOfIteratorHelper(images), _step;
127542
- try {
127543
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
127544
- var image = _step.value;
127545
- if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
127546
- var parentNode = image.parentElement;
127547
- if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
127548
- var div = document.createElement('div');
127549
- div.style.display = 'flex';
127550
- div.style.width = '100%';
127551
- var copyImage = image.cloneNode(true);
127552
- div.appendChild(copyImage);
127553
- parentNode.replaceChild(div, image);
127538
+ var previewPrompts = document.querySelectorAll('#preview-prompt');
127539
+ previewPrompts.forEach(function (previewPrompt) {
127540
+ var images = previewPrompt.getElementsByTagName('img');
127541
+ if (images && images.length) {
127542
+ var _iterator = _createForOfIteratorHelper(images), _step;
127543
+ try {
127544
+ for (_iterator.s(); !(_step = _iterator.n()).done; ) {
127545
+ var image = _step.value;
127546
+ if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
127547
+ var parentNode = image.parentElement;
127548
+ if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
127549
+ var div = document.createElement('div');
127550
+ div.style.display = 'flex';
127551
+ div.style.width = '100%';
127552
+ var copyImage = image.cloneNode(true);
127553
+ div.appendChild(copyImage);
127554
+ parentNode.replaceChild(div, image);
127555
+ }
127554
127556
  }
127555
127557
  }
127558
+ } catch (err) {
127559
+ _iterator.e(err);
127560
+ } finally {
127561
+ _iterator.f();
127556
127562
  }
127557
- } catch (err) {
127558
- _iterator.e(err);
127559
- } finally {
127560
- _iterator.f();
127561
127563
  }
127562
- }
127564
+ });
127563
127565
  }
127564
127566
  }, {
127565
127567
  key: "render",
@@ -156416,12 +156418,17 @@ const require$$2$4 = _dll_prop_types;
156416
156418
  var _react = _interopRequireDefault(require$$1$b);
156417
156419
  var _propTypes = _interopRequireDefault(require$$2$4);
156418
156420
  var _core = require$$12$6;
156421
+ var _styles = styles$1K;
156419
156422
  var AlertDialog = function AlertDialog(_ref) {
156420
- var text = _ref.text, title = _ref.title, onClose = _ref.onClose, onConfirm = _ref.onConfirm, open = _ref.open, onCloseText = _ref.onCloseText, onConfirmText = _ref.onConfirmText;
156423
+ var text = _ref.text, title = _ref.title, onClose = _ref.onClose, onConfirm = _ref.onConfirm, open = _ref.open, onCloseText = _ref.onCloseText, onConfirmText = _ref.onConfirmText, classes = _ref.classes;
156421
156424
  return _react["default"].createElement(_core.Dialog, {
156422
156425
  open: open,
156423
156426
  onClose: onClose
156424
- }, title && _react["default"].createElement(_core.DialogTitle, null, title), text && _react["default"].createElement(_core.DialogContent, null, _react["default"].createElement(_core.DialogContentText, null, text)), _react["default"].createElement(_core.DialogActions, null, onClose && _react["default"].createElement(_core.Button, {
156427
+ }, title && _react["default"].createElement(_core.DialogTitle, {
156428
+ className: classes.heading
156429
+ }, title), text && _react["default"].createElement(_core.DialogContent, null, _react["default"].createElement(_core.DialogContentText, {
156430
+ className: classes.subheading
156431
+ }, text)), _react["default"].createElement(_core.DialogActions, null, onClose && _react["default"].createElement(_core.Button, {
156425
156432
  onClick: onClose,
156426
156433
  color: "primary"
156427
156434
  }, onCloseText), onConfirm && _react["default"].createElement(_core.Button, {
@@ -156441,9 +156448,22 @@ const require$$2$4 = _dll_prop_types;
156441
156448
  onConfirm: _propTypes["default"].func,
156442
156449
  open: _propTypes["default"].bool,
156443
156450
  onConfirmText: _propTypes["default"].string,
156444
- onCloseText: _propTypes["default"].string
156451
+ onCloseText: _propTypes["default"].string,
156452
+ classes: _propTypes["default"].object
156453
+ };
156454
+ var styles = function styles() {
156455
+ return {
156456
+ heading: {
156457
+ '& h2': {
156458
+ fontSize: 'max(1.25rem, 18px)'
156459
+ }
156460
+ },
156461
+ subheading: {
156462
+ fontSize: 'max(1rem, 14px)'
156463
+ }
156464
+ };
156445
156465
  };
156446
- var _default = AlertDialog;
156466
+ var _default = (0, _styles.withStyles)(styles)(AlertDialog);
156447
156467
  exports["default"] = _default;
156448
156468
  })(alertDialog);
156449
156469
  getDefaultExportFromCjs(alertDialog);
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/complex-rubric@2.8.1</title>
5
+ <title>@pie-element/complex-rubric@2.8.2</title>
6
6
  <script
7
7
  type="module"
8
8
  src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.6.1"
7
+ "version": "1.7.1"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/complex-rubric@2.8.1</title>
5
+ <title>@pie-element/complex-rubric@2.8.2</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
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.6.1/module/index.js";
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) {
@@ -127535,31 +127535,33 @@ const require$$11$u = _dll_prop_types;
127535
127535
  }, {
127536
127536
  key: "alignImages",
127537
127537
  value: function alignImages() {
127538
- var previewPrompt = document.querySelector('#preview-prompt');
127539
- var images = previewPrompt && previewPrompt.getElementsByTagName('img');
127540
- if (images && images.length) {
127541
- var _iterator = _createForOfIteratorHelper(images), _step;
127542
- try {
127543
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
127544
- var image = _step.value;
127545
- if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
127546
- var parentNode = image.parentElement;
127547
- if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
127548
- var div = document.createElement('div');
127549
- div.style.display = 'flex';
127550
- div.style.width = '100%';
127551
- var copyImage = image.cloneNode(true);
127552
- div.appendChild(copyImage);
127553
- parentNode.replaceChild(div, image);
127538
+ var previewPrompts = document.querySelectorAll('#preview-prompt');
127539
+ previewPrompts.forEach(function (previewPrompt) {
127540
+ var images = previewPrompt.getElementsByTagName('img');
127541
+ if (images && images.length) {
127542
+ var _iterator = _createForOfIteratorHelper(images), _step;
127543
+ try {
127544
+ for (_iterator.s(); !(_step = _iterator.n()).done; ) {
127545
+ var image = _step.value;
127546
+ if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
127547
+ var parentNode = image.parentElement;
127548
+ if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
127549
+ var div = document.createElement('div');
127550
+ div.style.display = 'flex';
127551
+ div.style.width = '100%';
127552
+ var copyImage = image.cloneNode(true);
127553
+ div.appendChild(copyImage);
127554
+ parentNode.replaceChild(div, image);
127555
+ }
127554
127556
  }
127555
127557
  }
127558
+ } catch (err) {
127559
+ _iterator.e(err);
127560
+ } finally {
127561
+ _iterator.f();
127556
127562
  }
127557
- } catch (err) {
127558
- _iterator.e(err);
127559
- } finally {
127560
- _iterator.f();
127561
127563
  }
127562
- }
127564
+ });
127563
127565
  }
127564
127566
  }, {
127565
127567
  key: "render",
@@ -156416,12 +156418,17 @@ const require$$2$4 = _dll_prop_types;
156416
156418
  var _react = _interopRequireDefault(require$$1$b);
156417
156419
  var _propTypes = _interopRequireDefault(require$$2$4);
156418
156420
  var _core = require$$12$6;
156421
+ var _styles = styles$1K;
156419
156422
  var AlertDialog = function AlertDialog(_ref) {
156420
- var text = _ref.text, title = _ref.title, onClose = _ref.onClose, onConfirm = _ref.onConfirm, open = _ref.open, onCloseText = _ref.onCloseText, onConfirmText = _ref.onConfirmText;
156423
+ var text = _ref.text, title = _ref.title, onClose = _ref.onClose, onConfirm = _ref.onConfirm, open = _ref.open, onCloseText = _ref.onCloseText, onConfirmText = _ref.onConfirmText, classes = _ref.classes;
156421
156424
  return _react["default"].createElement(_core.Dialog, {
156422
156425
  open: open,
156423
156426
  onClose: onClose
156424
- }, title && _react["default"].createElement(_core.DialogTitle, null, title), text && _react["default"].createElement(_core.DialogContent, null, _react["default"].createElement(_core.DialogContentText, null, text)), _react["default"].createElement(_core.DialogActions, null, onClose && _react["default"].createElement(_core.Button, {
156427
+ }, title && _react["default"].createElement(_core.DialogTitle, {
156428
+ className: classes.heading
156429
+ }, title), text && _react["default"].createElement(_core.DialogContent, null, _react["default"].createElement(_core.DialogContentText, {
156430
+ className: classes.subheading
156431
+ }, text)), _react["default"].createElement(_core.DialogActions, null, onClose && _react["default"].createElement(_core.Button, {
156425
156432
  onClick: onClose,
156426
156433
  color: "primary"
156427
156434
  }, onCloseText), onConfirm && _react["default"].createElement(_core.Button, {
@@ -156441,9 +156448,22 @@ const require$$2$4 = _dll_prop_types;
156441
156448
  onConfirm: _propTypes["default"].func,
156442
156449
  open: _propTypes["default"].bool,
156443
156450
  onConfirmText: _propTypes["default"].string,
156444
- onCloseText: _propTypes["default"].string
156451
+ onCloseText: _propTypes["default"].string,
156452
+ classes: _propTypes["default"].object
156453
+ };
156454
+ var styles = function styles() {
156455
+ return {
156456
+ heading: {
156457
+ '& h2': {
156458
+ fontSize: 'max(1.25rem, 18px)'
156459
+ }
156460
+ },
156461
+ subheading: {
156462
+ fontSize: 'max(1rem, 14px)'
156463
+ }
156464
+ };
156445
156465
  };
156446
- var _default = AlertDialog;
156466
+ var _default = (0, _styles.withStyles)(styles)(AlertDialog);
156447
156467
  exports["default"] = _default;
156448
156468
  })(alertDialog);
156449
156469
  getDefaultExportFromCjs(alertDialog);
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.7+4853068d6",
4
+ "version": "2.8.3-next.10+5fa3e462b",
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.7+4853068d6",
11
- "@pie-element/rubric": "^3.8.2-next.7+4853068d6",
10
+ "@pie-element/multi-trait-rubric": "^3.8.3-next.10+5fa3e462b",
11
+ "@pie-element/rubric": "^3.8.3-next.10+5fa3e462b",
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": "4853068d6d7e236c696288361b42ede1923a6fd5",
18
+ "gitHead": "5fa3e462b8fe802214f4540b571f9ef9213356d0",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },