@pie-element/complex-rubric 2.2.12-next.7 → 2.3.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 +11 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +12 -3
- package/module/element.js +12 -3
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/module/print.js +12 -3
- package/package.json +4 -4
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.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.2.11...@pie-element/complex-rubric@2.3.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.2.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.2.10...@pie-element/complex-rubric@2.2.11) (2024-02-07)
|
|
7
18
|
|
|
8
19
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.11...@pie-element/complex-rubric-configure@2.1.12) (2024-02-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.10...@pie-element/complex-rubric-configure@2.1.11) (2024-02-07)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.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.
|
|
12
|
-
"@pie-element/rubric": "^3.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.3.0",
|
|
12
|
+
"@pie-element/rubric": "^3.2.0",
|
|
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",
|
package/controller/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.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.1.10...@pie-element/complex-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.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.1.9...@pie-element/complex-rubric-controller@2.1.10) (2024-02-07)
|
|
7
18
|
|
|
8
19
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/pie-toolbox": "1.
|
|
10
|
+
"@pie-lib/pie-toolbox": "1.6.0",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -228843,9 +228843,18 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
228843
228843
|
key: "render",
|
|
228844
228844
|
value: function render() {
|
|
228845
228845
|
var _this2 = this;
|
|
228846
|
-
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;
|
|
228846
|
+
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;
|
|
228847
228847
|
var value = this.state.value;
|
|
228848
228848
|
var names = (0, _classnames["default"])(className, classes.input);
|
|
228849
|
+
var disabledStart = false;
|
|
228850
|
+
var disabledEnd = false;
|
|
228851
|
+
if (customValues.length > 0) {
|
|
228852
|
+
disabledStart = value === customValues[0];
|
|
228853
|
+
disabledEnd = value === customValues[customValues.length - 1];
|
|
228854
|
+
} else if ((0, _isFinite["default"])(min) && (0, _isFinite["default"])(max)) {
|
|
228855
|
+
disabledStart = value === min;
|
|
228856
|
+
disabledEnd = value === max;
|
|
228857
|
+
}
|
|
228849
228858
|
return _react["default"].createElement(_TextField["default"], {
|
|
228850
228859
|
variant: variant,
|
|
228851
228860
|
inputRef: function inputRef(ref) {
|
|
@@ -228881,7 +228890,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
228881
228890
|
position: "start"
|
|
228882
228891
|
}, _react["default"].createElement(_IconButton["default"], {
|
|
228883
228892
|
className: classes.iconButton,
|
|
228884
|
-
disabled: disabled,
|
|
228893
|
+
disabled: disabled ? disabled : disabledStart,
|
|
228885
228894
|
onClick: function onClick(e) {
|
|
228886
228895
|
return _this2.changeValue(e, -1, true);
|
|
228887
228896
|
}
|
|
@@ -228892,7 +228901,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
228892
228901
|
position: "end"
|
|
228893
228902
|
}, _react["default"].createElement(_IconButton["default"], {
|
|
228894
228903
|
className: classes.iconButton,
|
|
228895
|
-
disabled: disabled,
|
|
228904
|
+
disabled: disabled ? disabled : disabledEnd,
|
|
228896
228905
|
onClick: function onClick(e) {
|
|
228897
228906
|
return _this2.changeValue(e, 1, true);
|
|
228898
228907
|
}
|
package/module/element.js
CHANGED
|
@@ -227091,9 +227091,18 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
227091
227091
|
key: "render",
|
|
227092
227092
|
value: function render() {
|
|
227093
227093
|
var _this2 = this;
|
|
227094
|
-
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;
|
|
227094
|
+
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;
|
|
227095
227095
|
var value = this.state.value;
|
|
227096
227096
|
var names = (0, _classnames["default"])(className, classes.input);
|
|
227097
|
+
var disabledStart = false;
|
|
227098
|
+
var disabledEnd = false;
|
|
227099
|
+
if (customValues.length > 0) {
|
|
227100
|
+
disabledStart = value === customValues[0];
|
|
227101
|
+
disabledEnd = value === customValues[customValues.length - 1];
|
|
227102
|
+
} else if ((0, _isFinite["default"])(min) && (0, _isFinite["default"])(max)) {
|
|
227103
|
+
disabledStart = value === min;
|
|
227104
|
+
disabledEnd = value === max;
|
|
227105
|
+
}
|
|
227097
227106
|
return _react["default"].createElement(_TextField["default"], {
|
|
227098
227107
|
variant: variant,
|
|
227099
227108
|
inputRef: function inputRef(ref) {
|
|
@@ -227129,7 +227138,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
227129
227138
|
position: "start"
|
|
227130
227139
|
}, _react["default"].createElement(_IconButton["default"], {
|
|
227131
227140
|
className: classes.iconButton,
|
|
227132
|
-
disabled: disabled,
|
|
227141
|
+
disabled: disabled ? disabled : disabledStart,
|
|
227133
227142
|
onClick: function onClick(e) {
|
|
227134
227143
|
return _this2.changeValue(e, -1, true);
|
|
227135
227144
|
}
|
|
@@ -227140,7 +227149,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
227140
227149
|
position: "end"
|
|
227141
227150
|
}, _react["default"].createElement(_IconButton["default"], {
|
|
227142
227151
|
className: classes.iconButton,
|
|
227143
|
-
disabled: disabled,
|
|
227152
|
+
disabled: disabled ? disabled : disabledEnd,
|
|
227144
227153
|
onClick: function onClick(e) {
|
|
227145
227154
|
return _this2.changeValue(e, 1, true);
|
|
227146
227155
|
}
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -227091,9 +227091,18 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
227091
227091
|
key: "render",
|
|
227092
227092
|
value: function render() {
|
|
227093
227093
|
var _this2 = this;
|
|
227094
|
-
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;
|
|
227094
|
+
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;
|
|
227095
227095
|
var value = this.state.value;
|
|
227096
227096
|
var names = (0, _classnames["default"])(className, classes.input);
|
|
227097
|
+
var disabledStart = false;
|
|
227098
|
+
var disabledEnd = false;
|
|
227099
|
+
if (customValues.length > 0) {
|
|
227100
|
+
disabledStart = value === customValues[0];
|
|
227101
|
+
disabledEnd = value === customValues[customValues.length - 1];
|
|
227102
|
+
} else if ((0, _isFinite["default"])(min) && (0, _isFinite["default"])(max)) {
|
|
227103
|
+
disabledStart = value === min;
|
|
227104
|
+
disabledEnd = value === max;
|
|
227105
|
+
}
|
|
227097
227106
|
return _react["default"].createElement(_TextField["default"], {
|
|
227098
227107
|
variant: variant,
|
|
227099
227108
|
inputRef: function inputRef(ref) {
|
|
@@ -227129,7 +227138,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
227129
227138
|
position: "start"
|
|
227130
227139
|
}, _react["default"].createElement(_IconButton["default"], {
|
|
227131
227140
|
className: classes.iconButton,
|
|
227132
|
-
disabled: disabled,
|
|
227141
|
+
disabled: disabled ? disabled : disabledStart,
|
|
227133
227142
|
onClick: function onClick(e) {
|
|
227134
227143
|
return _this2.changeValue(e, -1, true);
|
|
227135
227144
|
}
|
|
@@ -227140,7 +227149,7 @@ const {isFinite: require$$15$1} = _dll_lodash;
|
|
|
227140
227149
|
position: "end"
|
|
227141
227150
|
}, _react["default"].createElement(_IconButton["default"], {
|
|
227142
227151
|
className: classes.iconButton,
|
|
227143
|
-
disabled: disabled,
|
|
227152
|
+
disabled: disabled ? disabled : disabledEnd,
|
|
227144
227153
|
onClick: function onClick(e) {
|
|
227145
227154
|
return _this2.changeValue(e, 1, true);
|
|
227146
227155
|
}
|
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.
|
|
4
|
+
"version": "2.3.1-next.0+8c7b02494",
|
|
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.
|
|
11
|
-
"@pie-element/rubric": "^3.1
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.3.1-next.0+8c7b02494",
|
|
11
|
+
"@pie-element/rubric": "^3.2.1-next.0+8c7b02494",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "8c7b0249471b9ba58a92aa1507923382594d2493",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|