@pie-element/rubric 3.1.10-next.7 → 3.2.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,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
+ # [3.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric@3.1.9...@pie-element/rubric@3.2.0) (2024-02-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * update pie-toolbox version SC-28868 ([5745f50](https://github.com/pie-framework/pie-elements/commit/5745f502c89d730e72d4cdb83e96c9465a81ae19))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric@3.1.8...@pie-element/rubric@3.1.9) (2024-02-07)
7
18
 
8
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
+ # [3.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@3.1.9...@pie-element/rubric-configure@3.2.0) (2024-02-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * update pie-toolbox version SC-28868 ([5745f50](https://github.com/pie-framework/pie-elements/commit/5745f502c89d730e72d4cdb83e96c9465a81ae19))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@3.1.8...@pie-element/rubric-configure@3.1.9) (2024-02-07)
7
18
 
8
19
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/rubric-configure",
3
3
  "private": true,
4
- "version": "3.1.9",
4
+ "version": "3.2.0",
5
5
  "description": "Rubric authoring view",
6
6
  "main": "lib/index.js",
7
7
  "author": "Pie Framework Authors",
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "1.5.8",
11
+ "@pie-lib/pie-toolbox": "1.6.0",
12
12
  "debug": "^4.1.1",
13
13
  "react": "^16.8.6",
14
14
  "react-dom": "^16.8.6"
@@ -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.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.9...@pie-element/rubric-controller@2.2.0) (2024-02-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * update pie-toolbox version SC-28868 ([5745f50](https://github.com/pie-framework/pie-elements/commit/5745f502c89d730e72d4cdb83e96c9465a81ae19))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.8...@pie-element/rubric-controller@2.1.9) (2024-02-07)
7
18
 
8
19
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/rubric-controller",
3
3
  "private": true,
4
- "version": "2.1.9",
4
+ "version": "2.2.0",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "test": "./node_modules/.bin/jest"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "1.5.8",
10
+ "@pie-lib/pie-toolbox": "1.6.0",
11
11
  "lodash": "^4.17.15"
12
12
  }
13
13
  }
@@ -226316,9 +226316,18 @@ const {isFinite: require$$15$1} = _dll_lodash;
226316
226316
  key: "render",
226317
226317
  value: function render() {
226318
226318
  var _this2 = this;
226319
- var _this$props4 = this.props, className = _this$props4.className, classes = _this$props4.classes, label = _this$props4.label, disabled = _this$props4.disabled, error = _this$props4.error, min = _this$props4.min, max = _this$props4.max, inputClassName = _this$props4.inputClassName, disableUnderline = _this$props4.disableUnderline, helperText = _this$props4.helperText, variant = _this$props4.variant, textAlign = _this$props4.textAlign, _this$props4$type = _this$props4.type, type = _this$props4$type === void 0 ? 'number' : _this$props4$type;
226319
+ var _this$props4 = this.props, className = _this$props4.className, classes = _this$props4.classes, label = _this$props4.label, disabled = _this$props4.disabled, error = _this$props4.error, min = _this$props4.min, max = _this$props4.max, customValues = _this$props4.customValues, inputClassName = _this$props4.inputClassName, disableUnderline = _this$props4.disableUnderline, helperText = _this$props4.helperText, variant = _this$props4.variant, textAlign = _this$props4.textAlign, _this$props4$type = _this$props4.type, type = _this$props4$type === void 0 ? 'number' : _this$props4$type;
226320
226320
  var value = this.state.value;
226321
226321
  var names = (0, _classnames["default"])(className, classes.input);
226322
+ var disabledStart = false;
226323
+ var disabledEnd = false;
226324
+ if (customValues.length > 0) {
226325
+ disabledStart = value === customValues[0];
226326
+ disabledEnd = value === customValues[customValues.length - 1];
226327
+ } else if ((0, _isFinite["default"])(min) && (0, _isFinite["default"])(max)) {
226328
+ disabledStart = value === min;
226329
+ disabledEnd = value === max;
226330
+ }
226322
226331
  return _react["default"].createElement(_TextField["default"], {
226323
226332
  variant: variant,
226324
226333
  inputRef: function inputRef(ref) {
@@ -226354,7 +226363,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
226354
226363
  position: "start"
226355
226364
  }, _react["default"].createElement(_IconButton["default"], {
226356
226365
  className: classes.iconButton,
226357
- disabled: disabled,
226366
+ disabled: disabled ? disabled : disabledStart,
226358
226367
  onClick: function onClick(e) {
226359
226368
  return _this2.changeValue(e, -1, true);
226360
226369
  }
@@ -226365,7 +226374,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
226365
226374
  position: "end"
226366
226375
  }, _react["default"].createElement(_IconButton["default"], {
226367
226376
  className: classes.iconButton,
226368
- disabled: disabled,
226377
+ disabled: disabled ? disabled : disabledEnd,
226369
226378
  onClick: function onClick(e) {
226370
226379
  return _this2.changeValue(e, 1, true);
226371
226380
  }
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/rubric@3.1.9</title>
5
+ <title>@pie-element/rubric@3.2.0</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/rubric",
3
- "version": "3.1.9",
3
+ "version": "3.2.0",
4
4
  "modules": [
5
5
  {
6
6
  "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/rubric@3.1.9</title>
5
+ <title>@pie-element/rubric@3.2.0</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/rubric",
3
- "version": "3.1.10-next.7+275c2daa2",
3
+ "version": "3.2.1-next.0+8c7b02494",
4
4
  "main": "lib/index.js",
5
5
  "module": "src/index.js",
6
6
  "description": "Rubric Scoring Interaction",
@@ -10,12 +10,12 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@material-ui/core": "^3.9.2",
13
- "@pie-lib/pie-toolbox": "1.5.8",
13
+ "@pie-lib/pie-toolbox": "1.6.0",
14
14
  "prop-types": "^15.7.2"
15
15
  },
16
16
  "author": "pie framework developers",
17
17
  "license": "ISC",
18
- "gitHead": "275c2daa2fbe7a34f50d61c286dda2817d476e7b",
18
+ "gitHead": "8c7b0249471b9ba58a92aa1507923382594d2493",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },