@pie-element/complex-rubric 3.3.4-next.9 → 3.3.4
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 +6 -8
- package/module/element.js +6 -8
- package/module/manifest.json +1 -1
- package/module/print.js +6 -8
- 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
|
+
## [3.3.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.3.3...@pie-element/complex-rubric@3.3.4) (2024-12-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3843, PD-4518, PD-4588, PD-4210, PD-4362, PD-4618 ([c213141](https://github.com/pie-framework/pie-elements/commit/c2131410e19605093ca77afb8234b31708db01b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.3.2...@pie-element/complex-rubric@3.3.3) (2024-12-10)
|
|
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.4.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.4.3...@pie-element/complex-rubric-configure@2.4.4) (2024-12-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.4.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.4.2...@pie-element/complex-rubric-configure@2.4.3) (2024-12-10)
|
|
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.4.
|
|
4
|
+
"version": "2.4.4",
|
|
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": "^4.2.
|
|
12
|
-
"@pie-element/rubric": "^4.3.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^4.2.6",
|
|
12
|
+
"@pie-element/rubric": "^4.3.4",
|
|
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
|
+
## [3.0.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.12...@pie-element/complex-rubric-controller@3.0.13) (2024-12-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3843, PD-4518, PD-4588, PD-4210, PD-4362, PD-4618 ([c213141](https://github.com/pie-framework/pie-elements/commit/c2131410e19605093ca77afb8234b31708db01b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.11...@pie-element/complex-rubric-controller@3.0.12) (2024-12-10)
|
|
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": "3.0.
|
|
4
|
+
"version": "3.0.13",
|
|
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": "2.
|
|
10
|
+
"@pie-lib/pie-toolbox": "2.5.0",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.4.1/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.1/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
m.forEach(function (e) {
|
|
6
6
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -115090,7 +115090,7 @@ const require$$24 = _dll_classnames;
|
|
|
115090
115090
|
var relatedTarget = event.relatedTarget;
|
|
115091
115091
|
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.toolbarRef.className, "\"]")));
|
|
115092
115092
|
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat((_this$doneButtonRef$c = _this.doneButtonRef.current) === null || _this$doneButtonRef$c === void 0 ? void 0 : _this$doneButtonRef$c.className, "\"]")));
|
|
115093
|
-
_this.skipBlurHandling = _this.keypadInteractionDetected
|
|
115093
|
+
_this.skipBlurHandling = _this.keypadInteractionDetected && relatedTarget !== null;
|
|
115094
115094
|
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
115095
115095
|
_this.setState({
|
|
115096
115096
|
focusToolbar: true
|
|
@@ -115100,6 +115100,7 @@ const require$$24 = _dll_classnames;
|
|
|
115100
115100
|
log('[onBlur] node: ', node);
|
|
115101
115101
|
return new Promise(function (resolve) {
|
|
115102
115102
|
if (!_this.skipBlurHandling) {
|
|
115103
|
+
_this.setKeypadInteraction(false);
|
|
115103
115104
|
_this.setState({
|
|
115104
115105
|
preBlurValue: _this.state.value,
|
|
115105
115106
|
focusedNode: !node ? null : node
|
|
@@ -115155,14 +115156,10 @@ const require$$24 = _dll_classnames;
|
|
|
115155
115156
|
}
|
|
115156
115157
|
_this.stashValue();
|
|
115157
115158
|
_this.props.onFocus();
|
|
115158
|
-
var
|
|
115159
|
-
var shouldFocusEditor = !isKeypadInteractionActive && !isTouchDevice;
|
|
115159
|
+
var shouldFocusEditor = !_this.keypadInteractionDetected && !isTouchDevice;
|
|
115160
115160
|
if (shouldFocusEditor) {
|
|
115161
115161
|
change === null || change === void 0 ? void 0 : change.focus();
|
|
115162
115162
|
}
|
|
115163
|
-
if (isKeypadInteractionActive) {
|
|
115164
|
-
_this.setKeypadInteraction(false);
|
|
115165
|
-
}
|
|
115166
115163
|
resolve();
|
|
115167
115164
|
});
|
|
115168
115165
|
});
|
|
@@ -115237,10 +115234,11 @@ const require$$24 = _dll_classnames;
|
|
|
115237
115234
|
if (!v) {
|
|
115238
115235
|
return;
|
|
115239
115236
|
}
|
|
115237
|
+
var calcRegex = /^calc\((.*)\)$/;
|
|
115240
115238
|
if (typeof v === 'string') {
|
|
115241
115239
|
if (v.endsWith('%')) {
|
|
115242
115240
|
return undefined;
|
|
115243
|
-
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw')) {
|
|
115241
|
+
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw') || v.endsWith('ch') || v.match(calcRegex)) {
|
|
115244
115242
|
return v;
|
|
115245
115243
|
} else {
|
|
115246
115244
|
var value = parseInt(v, 10);
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.4.1/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.1/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -113167,7 +113167,7 @@ const require$$24 = _dll_classnames;
|
|
|
113167
113167
|
var relatedTarget = event.relatedTarget;
|
|
113168
113168
|
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.toolbarRef.className, "\"]")));
|
|
113169
113169
|
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat((_this$doneButtonRef$c = _this.doneButtonRef.current) === null || _this$doneButtonRef$c === void 0 ? void 0 : _this$doneButtonRef$c.className, "\"]")));
|
|
113170
|
-
_this.skipBlurHandling = _this.keypadInteractionDetected
|
|
113170
|
+
_this.skipBlurHandling = _this.keypadInteractionDetected && relatedTarget !== null;
|
|
113171
113171
|
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
113172
113172
|
_this.setState({
|
|
113173
113173
|
focusToolbar: true
|
|
@@ -113177,6 +113177,7 @@ const require$$24 = _dll_classnames;
|
|
|
113177
113177
|
log('[onBlur] node: ', node);
|
|
113178
113178
|
return new Promise(function (resolve) {
|
|
113179
113179
|
if (!_this.skipBlurHandling) {
|
|
113180
|
+
_this.setKeypadInteraction(false);
|
|
113180
113181
|
_this.setState({
|
|
113181
113182
|
preBlurValue: _this.state.value,
|
|
113182
113183
|
focusedNode: !node ? null : node
|
|
@@ -113232,14 +113233,10 @@ const require$$24 = _dll_classnames;
|
|
|
113232
113233
|
}
|
|
113233
113234
|
_this.stashValue();
|
|
113234
113235
|
_this.props.onFocus();
|
|
113235
|
-
var
|
|
113236
|
-
var shouldFocusEditor = !isKeypadInteractionActive && !isTouchDevice;
|
|
113236
|
+
var shouldFocusEditor = !_this.keypadInteractionDetected && !isTouchDevice;
|
|
113237
113237
|
if (shouldFocusEditor) {
|
|
113238
113238
|
change === null || change === void 0 ? void 0 : change.focus();
|
|
113239
113239
|
}
|
|
113240
|
-
if (isKeypadInteractionActive) {
|
|
113241
|
-
_this.setKeypadInteraction(false);
|
|
113242
|
-
}
|
|
113243
113240
|
resolve();
|
|
113244
113241
|
});
|
|
113245
113242
|
});
|
|
@@ -113314,10 +113311,11 @@ const require$$24 = _dll_classnames;
|
|
|
113314
113311
|
if (!v) {
|
|
113315
113312
|
return;
|
|
113316
113313
|
}
|
|
113314
|
+
var calcRegex = /^calc\((.*)\)$/;
|
|
113317
113315
|
if (typeof v === 'string') {
|
|
113318
113316
|
if (v.endsWith('%')) {
|
|
113319
113317
|
return undefined;
|
|
113320
|
-
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw')) {
|
|
113318
|
+
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw') || v.endsWith('ch') || v.match(calcRegex)) {
|
|
113321
113319
|
return v;
|
|
113322
113320
|
} else {
|
|
113323
113321
|
var value = parseInt(v, 10);
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.4.1/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.1/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -113167,7 +113167,7 @@ const require$$24 = _dll_classnames;
|
|
|
113167
113167
|
var relatedTarget = event.relatedTarget;
|
|
113168
113168
|
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.toolbarRef.className, "\"]")));
|
|
113169
113169
|
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat((_this$doneButtonRef$c = _this.doneButtonRef.current) === null || _this$doneButtonRef$c === void 0 ? void 0 : _this$doneButtonRef$c.className, "\"]")));
|
|
113170
|
-
_this.skipBlurHandling = _this.keypadInteractionDetected
|
|
113170
|
+
_this.skipBlurHandling = _this.keypadInteractionDetected && relatedTarget !== null;
|
|
113171
113171
|
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
113172
113172
|
_this.setState({
|
|
113173
113173
|
focusToolbar: true
|
|
@@ -113177,6 +113177,7 @@ const require$$24 = _dll_classnames;
|
|
|
113177
113177
|
log('[onBlur] node: ', node);
|
|
113178
113178
|
return new Promise(function (resolve) {
|
|
113179
113179
|
if (!_this.skipBlurHandling) {
|
|
113180
|
+
_this.setKeypadInteraction(false);
|
|
113180
113181
|
_this.setState({
|
|
113181
113182
|
preBlurValue: _this.state.value,
|
|
113182
113183
|
focusedNode: !node ? null : node
|
|
@@ -113232,14 +113233,10 @@ const require$$24 = _dll_classnames;
|
|
|
113232
113233
|
}
|
|
113233
113234
|
_this.stashValue();
|
|
113234
113235
|
_this.props.onFocus();
|
|
113235
|
-
var
|
|
113236
|
-
var shouldFocusEditor = !isKeypadInteractionActive && !isTouchDevice;
|
|
113236
|
+
var shouldFocusEditor = !_this.keypadInteractionDetected && !isTouchDevice;
|
|
113237
113237
|
if (shouldFocusEditor) {
|
|
113238
113238
|
change === null || change === void 0 ? void 0 : change.focus();
|
|
113239
113239
|
}
|
|
113240
|
-
if (isKeypadInteractionActive) {
|
|
113241
|
-
_this.setKeypadInteraction(false);
|
|
113242
|
-
}
|
|
113243
113240
|
resolve();
|
|
113244
113241
|
});
|
|
113245
113242
|
});
|
|
@@ -113314,10 +113311,11 @@ const require$$24 = _dll_classnames;
|
|
|
113314
113311
|
if (!v) {
|
|
113315
113312
|
return;
|
|
113316
113313
|
}
|
|
113314
|
+
var calcRegex = /^calc\((.*)\)$/;
|
|
113317
113315
|
if (typeof v === 'string') {
|
|
113318
113316
|
if (v.endsWith('%')) {
|
|
113319
113317
|
return undefined;
|
|
113320
|
-
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw')) {
|
|
113318
|
+
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw') || v.endsWith('ch') || v.match(calcRegex)) {
|
|
113321
113319
|
return v;
|
|
113322
113320
|
} else {
|
|
113323
113321
|
var value = parseInt(v, 10);
|
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": "3.3.4
|
|
4
|
+
"version": "3.3.4",
|
|
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": "^4.2.6
|
|
11
|
-
"@pie-element/rubric": "^4.3.4
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.2.6",
|
|
11
|
+
"@pie-element/rubric": "^4.3.4",
|
|
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": "9fc5748c74eb6cc3633d9cf31576c58fae9f4843",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|