@pie-element/complex-rubric 2.6.5 → 2.6.7

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,28 @@
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.6.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.6.6...@pie-element/complex-rubric@2.6.7) (2024-03-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add back changes for PD-1870, that were reverted in previous version ([0cad3b8](https://github.com/pie-framework/pie-elements/commit/0cad3b8f29a123e34098b865190e57b92fbf5ecc))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.6.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.6.5...@pie-element/complex-rubric@2.6.6) (2024-03-27)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * revert changes made for PD-1870, we'll add them back later ([3e7e73e](https://github.com/pie-framework/pie-elements/commit/3e7e73ecc31de0ae16c59163bad95b6d7a02bb37))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [2.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.6.4...@pie-element/complex-rubric@2.6.5) (2024-03-26)
7
29
 
8
30
 
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.6...@pie-element/complex-rubric-configure@2.2.7) (2024-03-27)
7
+
8
+ **Note:** Version bump only for package @pie-element/complex-rubric-configure
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.5...@pie-element/complex-rubric-configure@2.2.6) (2024-03-27)
15
+
16
+ **Note:** Version bump only for package @pie-element/complex-rubric-configure
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.4...@pie-element/complex-rubric-configure@2.2.5) (2024-03-26)
7
23
 
8
24
 
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-configure",
3
3
  "private": true,
4
- "version": "2.2.5",
4
+ "version": "2.2.7",
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.6.2",
12
- "@pie-element/rubric": "^3.6.0",
11
+ "@pie-element/multi-trait-rubric": "^3.6.4",
12
+ "@pie-element/rubric": "^3.6.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",
@@ -3,6 +3,28 @@
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.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.5.2...@pie-element/complex-rubric-controller@2.5.3) (2024-03-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add back changes for PD-1870, that were reverted in previous version ([0cad3b8](https://github.com/pie-framework/pie-elements/commit/0cad3b8f29a123e34098b865190e57b92fbf5ecc))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.5.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.5.1...@pie-element/complex-rubric-controller@2.5.2) (2024-03-27)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * revert changes made for PD-1870, we'll add them back later ([3e7e73e](https://github.com/pie-framework/pie-elements/commit/3e7e73ecc31de0ae16c59163bad95b6d7a02bb37))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [2.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.5.0...@pie-element/complex-rubric-controller@2.5.1) (2024-03-26)
7
29
 
8
30
  **Note:** Version bump only for package @pie-element/complex-rubric-controller
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-controller",
3
3
  "private": true,
4
- "version": "2.5.1",
4
+ "version": "2.5.3",
5
5
  "description": "",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
package/module/element.js CHANGED
@@ -8193,19 +8193,20 @@ class Rubric extends React$j.Component {
8193
8193
  }
8194
8194
  }, points.slice(0).reverse().map((desc, index) => {
8195
8195
  index = points.length - index - 1;
8196
- return this.shouldRenderPoint(index, value) && React$j.createElement(React$j.Fragment, {
8196
+ const pointsLabel = value.excludeZero ? index + 1 : index;
8197
+ return React$j.createElement(React$j.Fragment, {
8197
8198
  key: index,
8198
8199
  __self: this,
8199
8200
  __source: {
8200
8201
  fileName: _jsxFileName$4,
8201
- lineNumber: 66
8202
+ lineNumber: 67
8202
8203
  }
8203
8204
  }, React$j.createElement(ListItem, {
8204
8205
  key: `P${index}`,
8205
8206
  __self: this,
8206
8207
  __source: {
8207
8208
  fileName: _jsxFileName$4,
8208
- lineNumber: 67
8209
+ lineNumber: 68
8209
8210
  }
8210
8211
  }, React$j.createElement(ListItemText, {
8211
8212
  className: classes.rubricCol,
@@ -8214,13 +8215,13 @@ class Rubric extends React$j.Component {
8214
8215
  __self: this,
8215
8216
  __source: {
8216
8217
  fileName: _jsxFileName$4,
8217
- lineNumber: 70
8218
+ lineNumber: 71
8218
8219
  }
8219
- }, index === 1 ? `${index} PT` : `${index} PTS`),
8220
+ }, pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`),
8220
8221
  __self: this,
8221
8222
  __source: {
8222
8223
  fileName: _jsxFileName$4,
8223
- lineNumber: 68
8224
+ lineNumber: 69
8224
8225
  }
8225
8226
  }), React$j.createElement(ListItemText, {
8226
8227
  primary: React$j.createElement('div', {
@@ -8231,20 +8232,20 @@ class Rubric extends React$j.Component {
8231
8232
  __self: this,
8232
8233
  __source: {
8233
8234
  fileName: _jsxFileName$4,
8234
- lineNumber: 74
8235
+ lineNumber: 75
8235
8236
  }
8236
8237
  }),
8237
8238
  __self: this,
8238
8239
  __source: {
8239
8240
  fileName: _jsxFileName$4,
8240
- lineNumber: 73
8241
+ lineNumber: 74
8241
8242
  }
8242
8243
  })), sampleAnswers && sampleAnswers[index] && React$j.createElement(ListItem, {
8243
8244
  key: `S${index}`,
8244
8245
  __self: this,
8245
8246
  __source: {
8246
8247
  fileName: _jsxFileName$4,
8247
- lineNumber: 79
8248
+ lineNumber: 80
8248
8249
  }
8249
8250
  }, React$j.createElement(ListItemText, {
8250
8251
  className: classes.rubricCol,
@@ -8256,13 +8257,13 @@ class Rubric extends React$j.Component {
8256
8257
  __self: this,
8257
8258
  __source: {
8258
8259
  fileName: _jsxFileName$4,
8259
- lineNumber: 83
8260
+ lineNumber: 84
8260
8261
  }
8261
8262
  }, "Sample Answer"),
8262
8263
  __self: this,
8263
8264
  __source: {
8264
8265
  fileName: _jsxFileName$4,
8265
- lineNumber: 80
8266
+ lineNumber: 81
8266
8267
  }
8267
8268
  }), React$j.createElement(ListItemText, {
8268
8269
  primary: React$j.createElement('div', {
@@ -8273,13 +8274,13 @@ class Rubric extends React$j.Component {
8273
8274
  __self: this,
8274
8275
  __source: {
8275
8276
  fileName: _jsxFileName$4,
8276
- lineNumber: 88
8277
+ lineNumber: 89
8277
8278
  }
8278
8279
  }),
8279
8280
  __self: this,
8280
8281
  __source: {
8281
8282
  fileName: _jsxFileName$4,
8282
- lineNumber: 86
8283
+ lineNumber: 87
8283
8284
  }
8284
8285
  })));
8285
8286
  }));
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.6.4</title>
5
+ <title>@pie-element/complex-rubric@2.6.6</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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-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.6.4</title>
5
+ <title>@pie-element/complex-rubric@2.6.6</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
@@ -8193,19 +8193,20 @@ class Rubric extends React$j.Component {
8193
8193
  }
8194
8194
  }, points.slice(0).reverse().map((desc, index) => {
8195
8195
  index = points.length - index - 1;
8196
- return this.shouldRenderPoint(index, value) && React$j.createElement(React$j.Fragment, {
8196
+ const pointsLabel = value.excludeZero ? index + 1 : index;
8197
+ return React$j.createElement(React$j.Fragment, {
8197
8198
  key: index,
8198
8199
  __self: this,
8199
8200
  __source: {
8200
8201
  fileName: _jsxFileName$4,
8201
- lineNumber: 66
8202
+ lineNumber: 67
8202
8203
  }
8203
8204
  }, React$j.createElement(ListItem, {
8204
8205
  key: `P${index}`,
8205
8206
  __self: this,
8206
8207
  __source: {
8207
8208
  fileName: _jsxFileName$4,
8208
- lineNumber: 67
8209
+ lineNumber: 68
8209
8210
  }
8210
8211
  }, React$j.createElement(ListItemText, {
8211
8212
  className: classes.rubricCol,
@@ -8214,13 +8215,13 @@ class Rubric extends React$j.Component {
8214
8215
  __self: this,
8215
8216
  __source: {
8216
8217
  fileName: _jsxFileName$4,
8217
- lineNumber: 70
8218
+ lineNumber: 71
8218
8219
  }
8219
- }, index === 1 ? `${index} PT` : `${index} PTS`),
8220
+ }, pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`),
8220
8221
  __self: this,
8221
8222
  __source: {
8222
8223
  fileName: _jsxFileName$4,
8223
- lineNumber: 68
8224
+ lineNumber: 69
8224
8225
  }
8225
8226
  }), React$j.createElement(ListItemText, {
8226
8227
  primary: React$j.createElement('div', {
@@ -8231,20 +8232,20 @@ class Rubric extends React$j.Component {
8231
8232
  __self: this,
8232
8233
  __source: {
8233
8234
  fileName: _jsxFileName$4,
8234
- lineNumber: 74
8235
+ lineNumber: 75
8235
8236
  }
8236
8237
  }),
8237
8238
  __self: this,
8238
8239
  __source: {
8239
8240
  fileName: _jsxFileName$4,
8240
- lineNumber: 73
8241
+ lineNumber: 74
8241
8242
  }
8242
8243
  })), sampleAnswers && sampleAnswers[index] && React$j.createElement(ListItem, {
8243
8244
  key: `S${index}`,
8244
8245
  __self: this,
8245
8246
  __source: {
8246
8247
  fileName: _jsxFileName$4,
8247
- lineNumber: 79
8248
+ lineNumber: 80
8248
8249
  }
8249
8250
  }, React$j.createElement(ListItemText, {
8250
8251
  className: classes.rubricCol,
@@ -8256,13 +8257,13 @@ class Rubric extends React$j.Component {
8256
8257
  __self: this,
8257
8258
  __source: {
8258
8259
  fileName: _jsxFileName$4,
8259
- lineNumber: 83
8260
+ lineNumber: 84
8260
8261
  }
8261
8262
  }, "Sample Answer"),
8262
8263
  __self: this,
8263
8264
  __source: {
8264
8265
  fileName: _jsxFileName$4,
8265
- lineNumber: 80
8266
+ lineNumber: 81
8266
8267
  }
8267
8268
  }), React$j.createElement(ListItemText, {
8268
8269
  primary: React$j.createElement('div', {
@@ -8273,13 +8274,13 @@ class Rubric extends React$j.Component {
8273
8274
  __self: this,
8274
8275
  __source: {
8275
8276
  fileName: _jsxFileName$4,
8276
- lineNumber: 88
8277
+ lineNumber: 89
8277
8278
  }
8278
8279
  }),
8279
8280
  __self: this,
8280
8281
  __source: {
8281
8282
  fileName: _jsxFileName$4,
8282
- lineNumber: 86
8283
+ lineNumber: 87
8283
8284
  }
8284
8285
  })));
8285
8286
  }));
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.6.5",
4
+ "version": "2.6.7",
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.6.2",
11
- "@pie-element/rubric": "^3.6.0",
10
+ "@pie-element/multi-trait-rubric": "^3.6.4",
11
+ "@pie-element/rubric": "^3.6.2",
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": "1840347c542bef38be847854da6221b4d83fac9d",
18
+ "gitHead": "2939e10bb564b2874799a8c2ffe28c05612bee6e",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },