@pie-element/complex-rubric 2.2.9-next.2 → 2.2.9

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,18 @@
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.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.2.8...@pie-element/complex-rubric@2.2.9) (2024-01-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **rubric, complex-rubric:** fix validation for simple rubric exclude zero PD-3407 ([7b62d85](https://github.com/pie-framework/pie-elements/commit/7b62d85c04822794b0b2d17b62cf9fb75fbcda21))
12
+ * **rubric, complex-rubric:** update defaults and demo files maxPoints value in model to be consistent with the points array and excludeZero property PD-3406 ([230c7b2](https://github.com/pie-framework/pie-elements/commit/230c7b258e62f9e2bfe92ff71ac30362aa5f1591))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [2.2.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.2.7...@pie-element/complex-rubric@2.2.8) (2024-01-24)
7
19
 
8
20
 
@@ -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.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.8...@pie-element/complex-rubric-configure@2.1.9) (2024-01-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **rubric, complex-rubric:** update defaults and demo files maxPoints value in model to be consistent with the points array and excludeZero property PD-3406 ([230c7b2](https://github.com/pie-framework/pie-elements/commit/230c7b258e62f9e2bfe92ff71ac30362aa5f1591))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.7...@pie-element/complex-rubric-configure@2.1.8) (2024-01-24)
7
18
 
8
19
  **Note:** Version bump only for package @pie-element/complex-rubric-configure
@@ -25,7 +25,7 @@ var multiTraitDefaultModel = {
25
25
  var rubricDefaultModel = {
26
26
  points: ['', '', '', ''],
27
27
  sampleAnswers: [null, null, null, null],
28
- maxPoints: 4,
28
+ maxPoints: 3,
29
29
  excludeZero: false
30
30
  };
31
31
  var rubriclessDefaultModel = {
@@ -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","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,EAA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AE;AACrBf,IAAAA,QAAQ,EAAE,IADW;AAErBD,IAAAA,KAAK,EAAE;AAFc,GAbc;AAiBrCW,EAAAA,YAAY,EAAE;AAjBuB,CAAvC;eAoBe;AACbM,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE,cADP;AAELC,IAAAA,OAAO,6DAAKC,qBAAaC,aAAlB,EAAkCpC,kBAAlC,8CAAuDmC,qBAAaE,kBAApE,EAAyF7C,sBAAzF,8CAAkH2C,qBAAaG,UAA/H,EAA4IlC,sBAA5I;AAFF,GADM;AAKbmC,EAAAA,aAAa;AACX;AACAC,IAAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,kBAAjB;AAFJ,sDAGVL,qBAAaE,kBAHH,EAGwB/B,8BAHxB,oDAIV6B,qBAAaC,aAJH,EAImBT,0BAJnB,oDAKVQ,qBAAaG,UALH,EAKgBT,8BALhB;AALA,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: 4,\n excludeZero: false,\n};\n\nconst rubriclessDefaultModel = {\n maxPoints: 100,\n excludeZero: false,\n rubriclessInstructionEnabled: true,\n};\n\nconst multiTraitDefaultConfiguration = {\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 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\n\nconst rubriclessDefaultConfiguration = {\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 },\n maxMaxPoints: 100,\n};\n\nexport default {\n model: {\n rubricType: 'simpleRubric',\n rubrics: { [RUBRIC_TYPES.SIMPLE_RUBRIC]: rubricDefaultModel, [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: multiTraitDefaultModel, [RUBRIC_TYPES.RUBRICLESS]: rubriclessDefaultModel },\n },\n configuration: {\n // width: '770px',\n rubricOptions: ['simpleRubric', 'multiTraitRubric'],\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","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,kBAAk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K,GALuB;AASrCR,EAAAA,qBAAqB,EAAE,KATc;AAUrC;AACAuB,EAAAA,UAAU,EAAE,IAXyB;AAYrC;AACAC,EAAAA,qBAAqB,EAAE;AACrBf,IAAAA,QAAQ,EAAE,IADW;AAErBD,IAAAA,KAAK,EAAE;AAFc,GAbc;AAiBrCW,EAAAA,YAAY,EAAE;AAjBuB,CAAvC;eAoBe;AACbM,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE,cADP;AAELC,IAAAA,OAAO,6DAAKC,qBAAaC,aAAlB,EAAkCpC,kBAAlC,8CAAuDmC,qBAAaE,kBAApE,EAAyF7C,sBAAzF,8CAAkH2C,qBAAaG,UAA/H,EAA4IlC,sBAA5I;AAFF,GADM;AAKbmC,EAAAA,aAAa;AACX;AACAC,IAAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,kBAAjB;AAFJ,sDAGVL,qBAAaE,kBAHH,EAGwB/B,8BAHxB,oDAIV6B,qBAAaC,aAJH,EAImBT,0BAJnB,oDAKVQ,qBAAaG,UALH,EAKgBT,8BALhB;AALA,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 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 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\n\nconst rubriclessDefaultConfiguration = {\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 },\n maxMaxPoints: 100,\n};\n\nexport default {\n model: {\n rubricType: 'simpleRubric',\n rubrics: { [RUBRIC_TYPES.SIMPLE_RUBRIC]: rubricDefaultModel, [RUBRIC_TYPES.MULTI_TRAIT_RUBRIC]: multiTraitDefaultModel, [RUBRIC_TYPES.RUBRICLESS]: rubriclessDefaultModel },\n },\n configuration: {\n // width: '770px',\n rubricOptions: ['simpleRubric', 'multiTraitRubric'],\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,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-configure",
3
3
  "private": true,
4
- "version": "2.1.8",
4
+ "version": "2.1.9",
5
5
  "description": "Complex Rubric authoring view",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-element/multi-trait-rubric": "^3.2.4",
12
- "@pie-element/rubric": "^3.1.7",
12
+ "@pie-element/rubric": "^3.1.8",
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",
@@ -13,7 +13,7 @@ const multiTraitDefaultModel = {
13
13
  const rubricDefaultModel = {
14
14
  points: ['', '', '', ''],
15
15
  sampleAnswers: [null, null, null, null],
16
- maxPoints: 4,
16
+ maxPoints: 3,
17
17
  excludeZero: false,
18
18
  };
19
19
 
@@ -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.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.1.8...@pie-element/complex-rubric-controller@2.1.9) (2024-01-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **rubric, complex-rubric:** fix validation for simple rubric exclude zero PD-3407 ([7b62d85](https://github.com/pie-framework/pie-elements/commit/7b62d85c04822794b0b2d17b62cf9fb75fbcda21))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.1.7...@pie-element/complex-rubric-controller@2.1.8) (2024-01-24)
7
18
 
8
19
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-controller",
3
3
  "private": true,
4
- "version": "2.1.8",
4
+ "version": "2.1.9",
5
5
  "description": "",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -7,7 +7,7 @@ exports.model = (id, element) => ({
7
7
  simpleRubric: {
8
8
  points: ['nothing right', 'a teeny bit right', 'mostly right', 'bingo'],
9
9
  sampleAnswers: [null, 'just right', 'not left', null],
10
- maxPoints: 4,
10
+ maxPoints: 3,
11
11
  excludeZero: false,
12
12
  },
13
13
  rubricless: {
@@ -232776,7 +232776,7 @@ const multiTraitDefaultModel = {
232776
232776
  const rubricDefaultModel = {
232777
232777
  points: ['', '', '', ''],
232778
232778
  sampleAnswers: [null, null, null, null],
232779
- maxPoints: 4,
232779
+ maxPoints: 3,
232780
232780
  excludeZero: false
232781
232781
  };
232782
232782
  const rubriclessDefaultModel = {
package/module/demo.js CHANGED
@@ -13,7 +13,7 @@ generate.model = (id, element) => ({
13
13
  simpleRubric: {
14
14
  points: ['nothing right', 'a teeny bit right', 'mostly right', 'bingo'],
15
15
  sampleAnswers: [null, 'just right', 'not left', null],
16
- maxPoints: 4,
16
+ maxPoints: 3,
17
17
  excludeZero: false,
18
18
  },
19
19
  rubricless: {
@@ -11,7 +11,7 @@ generate.model = (id, element) => ({
11
11
  simpleRubric: {
12
12
  points: ['nothing right', 'a teeny bit right', 'mostly right', 'bingo'],
13
13
  sampleAnswers: [null, 'just right', 'not left', null],
14
- maxPoints: 4,
14
+ maxPoints: 3,
15
15
  excludeZero: false,
16
16
  },
17
17
  rubricless: {
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.2.9-next.2+7521f7fde",
4
+ "version": "2.2.9",
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.2.5-next.2+7521f7fde",
11
- "@pie-element/rubric": "^3.1.8-next.2+7521f7fde",
10
+ "@pie-element/multi-trait-rubric": "^3.2.4",
11
+ "@pie-element/rubric": "^3.1.8",
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": "7521f7fdef22c6f5918d299a7f323a4f54976023",
18
+ "gitHead": "3d96530235834a96ef232fb04420861b23baa596",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },