@pie-element/complex-rubric 2.2.10-next.9 → 2.2.11-next.3
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 +8 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +2 -2
- package/module/configure.js +23 -17
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/package.json +4 -4
package/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.2.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.2.9...@pie-element/complex-rubric@2.2.10) (2024-02-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [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
15
|
|
|
8
16
|
|
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.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.1.9...@pie-element/complex-rubric-configure@2.1.10) (2024-02-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [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
15
|
|
|
8
16
|
|
package/configure/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.10",
|
|
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.2.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.2.5",
|
|
12
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",
|
package/module/configure.js
CHANGED
|
@@ -20005,7 +20005,7 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20005
20005
|
}
|
|
20006
20006
|
});
|
|
20007
20007
|
};
|
|
20008
|
-
for (var i = 0; i
|
|
20008
|
+
for (var i = 0; i < numberValue; i++) {
|
|
20009
20009
|
_loop(i);
|
|
20010
20010
|
}
|
|
20011
20011
|
onScaleChanged(scaleIndex, {
|
|
@@ -20030,10 +20030,16 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20030
20030
|
});
|
|
20031
20031
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "changeMaxPoints", function () {
|
|
20032
20032
|
var _ref4 = _this.state || ({}), newMaxPoints = _ref4.newMaxPoints;
|
|
20033
|
-
var _ref5 = _this.props || ({}), scaleIndex = _ref5.scaleIndex, onScaleChanged = _ref5.onScaleChanged;
|
|
20033
|
+
var _ref5 = _this.props || ({}), scaleIndex = _ref5.scaleIndex, onScaleChanged = _ref5.onScaleChanged, scale = _ref5.scale;
|
|
20034
|
+
var _ref6 = scale || ({}), maxPoints = _ref6.maxPoints;
|
|
20035
|
+
var _ref7 = scale || ({}), scorePointsLabels = _ref7.scorePointsLabels;
|
|
20034
20036
|
if (newMaxPoints) {
|
|
20037
|
+
if (newMaxPoints < maxPoints) {
|
|
20038
|
+
scorePointsLabels = scorePointsLabels.slice(0, newMaxPoints);
|
|
20039
|
+
}
|
|
20035
20040
|
onScaleChanged(scaleIndex, {
|
|
20036
|
-
maxPoints: newMaxPoints
|
|
20041
|
+
maxPoints: newMaxPoints,
|
|
20042
|
+
scorePointsLabels: scorePointsLabels
|
|
20037
20043
|
});
|
|
20038
20044
|
}
|
|
20039
20045
|
_this.hideDecreaseMaxPointsModal();
|
|
@@ -20049,7 +20055,7 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20049
20055
|
});
|
|
20050
20056
|
});
|
|
20051
20057
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "deleteScale", function () {
|
|
20052
|
-
var
|
|
20058
|
+
var _ref8 = _this.props || ({}), scaleIndex = _ref8.scaleIndex, onScaleRemoved = _ref8.onScaleRemoved;
|
|
20053
20059
|
_this.hideDeleteScaleModal();
|
|
20054
20060
|
onScaleRemoved(scaleIndex);
|
|
20055
20061
|
});
|
|
@@ -20067,8 +20073,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20067
20073
|
});
|
|
20068
20074
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTraitRemoved", function () {
|
|
20069
20075
|
var traitToDeleteIndex = _this.state.traitToDeleteIndex;
|
|
20070
|
-
var
|
|
20071
|
-
var
|
|
20076
|
+
var _ref9 = _this.props || ({}), scale = _ref9.scale, scaleIndex = _ref9.scaleIndex, onScaleChanged = _ref9.onScaleChanged, minNoOfTraits = _ref9.minNoOfTraits;
|
|
20077
|
+
var _ref10 = scale || ({}), traits = _ref10.traits, traitLabel = _ref10.traitLabel;
|
|
20072
20078
|
if (traitToDeleteIndex < 0 || traitToDeleteIndex >= traits.length) return;
|
|
20073
20079
|
if (traits.length === minNoOfTraits) {
|
|
20074
20080
|
_this.set({
|
|
@@ -20084,8 +20090,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20084
20090
|
_this.hideDeleteTraitModal();
|
|
20085
20091
|
});
|
|
20086
20092
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTraitAdded", function () {
|
|
20087
|
-
var
|
|
20088
|
-
var
|
|
20093
|
+
var _ref11 = _this.props || ({}), scale = _ref11.scale, scaleIndex = _ref11.scaleIndex, onScaleChanged = _ref11.onScaleChanged, maxNoOfTraits = _ref11.maxNoOfTraits;
|
|
20094
|
+
var _ref12 = scale || ({}), traits = _ref12.traits, scorePointsLabels = _ref12.scorePointsLabels;
|
|
20089
20095
|
if (traits.length === maxNoOfTraits) {
|
|
20090
20096
|
_this.set({
|
|
20091
20097
|
infoDialogText: ("There can't be more than ").concat(maxNoOfTraits, " scales."),
|
|
@@ -20108,8 +20114,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20108
20114
|
});
|
|
20109
20115
|
});
|
|
20110
20116
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTraitChanged", function (traitIndex, trait) {
|
|
20111
|
-
var
|
|
20112
|
-
var
|
|
20117
|
+
var _ref13 = _this.props || ({}), scale = _ref13.scale, scaleIndex = _ref13.scaleIndex, onScaleChanged = _ref13.onScaleChanged;
|
|
20118
|
+
var _ref14 = scale || ({}), traits = _ref14.traits;
|
|
20113
20119
|
if (traitIndex >= 0 && traitIndex < traits.length) {
|
|
20114
20120
|
traits[traitIndex] = trait;
|
|
20115
20121
|
onScaleChanged(scaleIndex, {
|
|
@@ -20118,8 +20124,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20118
20124
|
}
|
|
20119
20125
|
});
|
|
20120
20126
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTraitDropped", function (source, newIndex) {
|
|
20121
|
-
var
|
|
20122
|
-
var
|
|
20127
|
+
var _ref15 = _this.props || ({}), scale = _ref15.scale, scaleIndex = _ref15.scaleIndex, onScaleChanged = _ref15.onScaleChanged;
|
|
20128
|
+
var _ref16 = scale || ({}), traits = _ref16.traits;
|
|
20123
20129
|
var oldIndex = source.index;
|
|
20124
20130
|
var cup = traits[oldIndex];
|
|
20125
20131
|
var remainingTraits = traits.filter(function (item, index) {
|
|
@@ -20183,10 +20189,10 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20183
20189
|
key: "render",
|
|
20184
20190
|
value: function render() {
|
|
20185
20191
|
var _this2 = this;
|
|
20186
|
-
var
|
|
20187
|
-
var
|
|
20192
|
+
var _ref17 = this.props || ({}), classes = _ref17.classes, errors = _ref17.errors, scale = _ref17.scale, scaleIndex = _ref17.scaleIndex, showStandards = _ref17.showStandards, onScaleChanged = _ref17.onScaleChanged, excludeZero = _ref17.excludeZero, showDescription = _ref17.showDescription, showLevelTagInput = _ref17.showLevelTagInput, showScorePointLabels = _ref17.showScorePointLabels, enableDragAndDrop = _ref17.enableDragAndDrop, spellCheck = _ref17.spellCheck, width = _ref17.width, uploadSoundSupport = _ref17.uploadSoundSupport, maxPointsEnabled = _ref17.maxPointsEnabled, _ref17$mathMlOptions = _ref17.mathMlOptions, mathMlOptions = _ref17$mathMlOptions === void 0 ? {} : _ref17$mathMlOptions, maxMaxPoints = _ref17.maxMaxPoints;
|
|
20193
|
+
var _ref18 = scale || ({}), maxPoints = _ref18.maxPoints, scorePointsLabels = _ref18.scorePointsLabels, traitLabel = _ref18.traitLabel, traits = _ref18.traits;
|
|
20188
20194
|
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;
|
|
20189
|
-
var
|
|
20195
|
+
var _ref19 = errors || ({}), traitsErrors = _ref19.traitsErrors, scorePointsErrors = _ref19.scorePointsErrors;
|
|
20190
20196
|
var currentScaleTraitsErrors = traitsErrors && traitsErrors[scaleIndex] || ({});
|
|
20191
20197
|
var currentScalePointsLabelsErrors = scorePointsErrors && scorePointsErrors[scaleIndex] || ({});
|
|
20192
20198
|
var scorePointsValues = [];
|
|
@@ -20197,8 +20203,8 @@ const require$$15$7 = _dll_pie_lib__pie_toolbox_render_ui;
|
|
|
20197
20203
|
return _react["default"].createElement("div", {
|
|
20198
20204
|
key: ("scale-").concat(scaleIndex),
|
|
20199
20205
|
className: classes.scaleWrapper,
|
|
20200
|
-
ref: function ref(
|
|
20201
|
-
_this2.scaleWrapper =
|
|
20206
|
+
ref: function ref(_ref20) {
|
|
20207
|
+
_this2.scaleWrapper = _ref20;
|
|
20202
20208
|
}
|
|
20203
20209
|
}, _react["default"].createElement(_traitsHeader["default"], {
|
|
20204
20210
|
setSecondaryBlockRef: function setSecondaryBlockRef(ref) {
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
package/module/print.html
CHANGED
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.
|
|
4
|
+
"version": "2.2.11-next.3+96330117b",
|
|
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.
|
|
11
|
-
"@pie-element/rubric": "^3.1.9-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.2.6-next.3+96330117b",
|
|
11
|
+
"@pie-element/rubric": "^3.1.9-next.34+96330117b",
|
|
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": "96330117bc514d7691b9ba2dbede328aac59385e",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|