@pie-element/complex-rubric 2.10.2-next.6 → 2.10.2
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 +29 -7
- package/module/element.js +29 -7
- package/module/manifest.json +2 -2
- package/module/print.js +29 -7
- 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.10.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.1...@pie-element/complex-rubric@2.10.2) (2024-05-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.10.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.0...@pie-element/complex-rubric@2.10.1) (2024-04-29)
|
|
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.2.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.16...@pie-element/complex-rubric-configure@2.2.17) (2024-05-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.2.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.15...@pie-element/complex-rubric-configure@2.2.16) (2024-04-29)
|
|
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.2.
|
|
4
|
+
"version": "2.2.17",
|
|
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.10.
|
|
12
|
-
"@pie-element/rubric": "^3.10.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.10.2",
|
|
12
|
+
"@pie-element/rubric": "^3.10.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",
|
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.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.1...@pie-element/complex-rubric-controller@2.9.2) (2024-05-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.0...@pie-element/complex-rubric-controller@2.9.1) (2024-04-29)
|
|
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.9.
|
|
4
|
+
"version": "2.9.2",
|
|
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.17.1",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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@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@1.10.0/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@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@4.12.0/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) {
|
|
@@ -10681,7 +10681,7 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10681
10681
|
var _propTypes = _interopRequireDefault(require$$4$1l);
|
|
10682
10682
|
var _grey = _interopRequireDefault(grey$1);
|
|
10683
10683
|
var PlaceHolder = function PlaceHolder(props) {
|
|
10684
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
10684
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
10685
10685
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
10686
10686
|
var style = {};
|
|
10687
10687
|
if (grid && grid.columns) {
|
|
@@ -10691,9 +10691,10 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10691
10691
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
10692
10692
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
10693
10693
|
}
|
|
10694
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
10694
10695
|
return _react["default"].createElement("div", {
|
|
10695
10696
|
style: style,
|
|
10696
|
-
className: choiceBoard ?
|
|
10697
|
+
className: choiceBoard ? boardStyle : names
|
|
10697
10698
|
}, children);
|
|
10698
10699
|
};
|
|
10699
10700
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -10710,7 +10711,8 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10710
10711
|
isOver: _propTypes["default"].bool,
|
|
10711
10712
|
index: _propTypes["default"].number,
|
|
10712
10713
|
type: _propTypes["default"].string,
|
|
10713
|
-
disabled: _propTypes["default"].bool
|
|
10714
|
+
disabled: _propTypes["default"].bool,
|
|
10715
|
+
isCategorize: _propTypes["default"].bool
|
|
10714
10716
|
};
|
|
10715
10717
|
var styles = function styles(theme) {
|
|
10716
10718
|
return {
|
|
@@ -10744,6 +10746,17 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10744
10746
|
justifyContent: 'center',
|
|
10745
10747
|
overflow: 'hidden',
|
|
10746
10748
|
touchAction: 'none'
|
|
10749
|
+
},
|
|
10750
|
+
categorizeBoard: {
|
|
10751
|
+
border: '1px solid #D1D1D1',
|
|
10752
|
+
padding: theme.spacing.unit / 2,
|
|
10753
|
+
display: 'flex',
|
|
10754
|
+
flexWrap: 'wrap',
|
|
10755
|
+
alignItems: 'center',
|
|
10756
|
+
minHeight: '100px',
|
|
10757
|
+
justifyContent: 'center',
|
|
10758
|
+
overflow: 'hidden',
|
|
10759
|
+
touchAction: 'none'
|
|
10747
10760
|
}
|
|
10748
10761
|
};
|
|
10749
10762
|
};
|
|
@@ -136004,8 +136017,8 @@ var primeArcminute = set$8({
|
|
|
136004
136017
|
geometry$1.primeArcminute = primeArcminute;
|
|
136005
136018
|
var doublePrimeArcSecond = set$8({
|
|
136006
136019
|
name: 'Double Prime',
|
|
136007
|
-
latex: '"
|
|
136008
|
-
write: '"
|
|
136020
|
+
latex: "''",
|
|
136021
|
+
write: "''"
|
|
136009
136022
|
});
|
|
136010
136023
|
geometry$1.doublePrimeArcSecond = doublePrimeArcSecond;
|
|
136011
136024
|
var leftArrow = set$8({
|
|
@@ -136509,6 +136522,9 @@ var updateSpans = function updateSpans() {
|
|
|
136509
136522
|
if (span && span.innerText === '∥' && span.className !== 'mq-editable-field') {
|
|
136510
136523
|
span.style.fontSize = '32px';
|
|
136511
136524
|
}
|
|
136525
|
+
if ((span.innerText === '′' || span.innerText === '′′') && !span.hasAttribute('data-prime')) {
|
|
136526
|
+
span.setAttribute('data-prime', 'true');
|
|
136527
|
+
}
|
|
136512
136528
|
});
|
|
136513
136529
|
};
|
|
136514
136530
|
updateSpans$1.updateSpans = updateSpans;
|
|
@@ -138207,6 +138223,9 @@ const {isEqual: require$$18$2} = _dll_lodash;
|
|
|
138207
138223
|
marginBottom: '-2px'
|
|
138208
138224
|
},
|
|
138209
138225
|
'-webkit-font-smoothing': 'antialiased !important'
|
|
138226
|
+
},
|
|
138227
|
+
'& span[data-prime="true"]': {
|
|
138228
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
138210
138229
|
}
|
|
138211
138230
|
},
|
|
138212
138231
|
hide: {
|
|
@@ -138661,6 +138680,9 @@ const require$$11$s = _dll_prop_types;
|
|
|
138661
138680
|
},
|
|
138662
138681
|
'& .mq-parallelogram': {
|
|
138663
138682
|
lineHeight: 0.85
|
|
138683
|
+
},
|
|
138684
|
+
'& span[data-prime="true"]': {
|
|
138685
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
138664
138686
|
}
|
|
138665
138687
|
},
|
|
138666
138688
|
selected: {
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.0/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
|
|
@@ -36820,8 +36820,8 @@ var primeArcminute = set$8({
|
|
|
36820
36820
|
geometry$1.primeArcminute = primeArcminute;
|
|
36821
36821
|
var doublePrimeArcSecond = set$8({
|
|
36822
36822
|
name: 'Double Prime',
|
|
36823
|
-
latex: '"
|
|
36824
|
-
write: '"
|
|
36823
|
+
latex: "''",
|
|
36824
|
+
write: "''"
|
|
36825
36825
|
});
|
|
36826
36826
|
geometry$1.doublePrimeArcSecond = doublePrimeArcSecond;
|
|
36827
36827
|
var leftArrow = set$8({
|
|
@@ -37325,6 +37325,9 @@ var updateSpans = function updateSpans() {
|
|
|
37325
37325
|
if (span && span.innerText === '∥' && span.className !== 'mq-editable-field') {
|
|
37326
37326
|
span.style.fontSize = '32px';
|
|
37327
37327
|
}
|
|
37328
|
+
if ((span.innerText === '′' || span.innerText === '′′') && !span.hasAttribute('data-prime')) {
|
|
37329
|
+
span.setAttribute('data-prime', 'true');
|
|
37330
|
+
}
|
|
37328
37331
|
});
|
|
37329
37332
|
};
|
|
37330
37333
|
updateSpans$1.updateSpans = updateSpans;
|
|
@@ -128300,6 +128303,9 @@ const {isEqual: require$$18$2} = _dll_lodash;
|
|
|
128300
128303
|
marginBottom: '-2px'
|
|
128301
128304
|
},
|
|
128302
128305
|
'-webkit-font-smoothing': 'antialiased !important'
|
|
128306
|
+
},
|
|
128307
|
+
'& span[data-prime="true"]': {
|
|
128308
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128303
128309
|
}
|
|
128304
128310
|
},
|
|
128305
128311
|
hide: {
|
|
@@ -128754,6 +128760,9 @@ const require$$11$s = _dll_prop_types;
|
|
|
128754
128760
|
},
|
|
128755
128761
|
'& .mq-parallelogram': {
|
|
128756
128762
|
lineHeight: 0.85
|
|
128763
|
+
},
|
|
128764
|
+
'& span[data-prime="true"]': {
|
|
128765
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128757
128766
|
}
|
|
128758
128767
|
},
|
|
128759
128768
|
selected: {
|
|
@@ -140438,7 +140447,7 @@ const require$$4$N = _dll_prop_types;
|
|
|
140438
140447
|
var _propTypes = _interopRequireDefault(require$$4$N);
|
|
140439
140448
|
var _grey = _interopRequireDefault(grey$1);
|
|
140440
140449
|
var PlaceHolder = function PlaceHolder(props) {
|
|
140441
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
140450
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
140442
140451
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
140443
140452
|
var style = {};
|
|
140444
140453
|
if (grid && grid.columns) {
|
|
@@ -140448,9 +140457,10 @@ const require$$4$N = _dll_prop_types;
|
|
|
140448
140457
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
140449
140458
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
140450
140459
|
}
|
|
140460
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
140451
140461
|
return _react["default"].createElement("div", {
|
|
140452
140462
|
style: style,
|
|
140453
|
-
className: choiceBoard ?
|
|
140463
|
+
className: choiceBoard ? boardStyle : names
|
|
140454
140464
|
}, children);
|
|
140455
140465
|
};
|
|
140456
140466
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -140467,7 +140477,8 @@ const require$$4$N = _dll_prop_types;
|
|
|
140467
140477
|
isOver: _propTypes["default"].bool,
|
|
140468
140478
|
index: _propTypes["default"].number,
|
|
140469
140479
|
type: _propTypes["default"].string,
|
|
140470
|
-
disabled: _propTypes["default"].bool
|
|
140480
|
+
disabled: _propTypes["default"].bool,
|
|
140481
|
+
isCategorize: _propTypes["default"].bool
|
|
140471
140482
|
};
|
|
140472
140483
|
var styles = function styles(theme) {
|
|
140473
140484
|
return {
|
|
@@ -140501,6 +140512,17 @@ const require$$4$N = _dll_prop_types;
|
|
|
140501
140512
|
justifyContent: 'center',
|
|
140502
140513
|
overflow: 'hidden',
|
|
140503
140514
|
touchAction: 'none'
|
|
140515
|
+
},
|
|
140516
|
+
categorizeBoard: {
|
|
140517
|
+
border: '1px solid #D1D1D1',
|
|
140518
|
+
padding: theme.spacing.unit / 2,
|
|
140519
|
+
display: 'flex',
|
|
140520
|
+
flexWrap: 'wrap',
|
|
140521
|
+
alignItems: 'center',
|
|
140522
|
+
minHeight: '100px',
|
|
140523
|
+
justifyContent: 'center',
|
|
140524
|
+
overflow: 'hidden',
|
|
140525
|
+
touchAction: 'none'
|
|
140504
140526
|
}
|
|
140505
140527
|
};
|
|
140506
140528
|
};
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.0/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
|
|
@@ -36820,8 +36820,8 @@ var primeArcminute = set$8({
|
|
|
36820
36820
|
geometry$1.primeArcminute = primeArcminute;
|
|
36821
36821
|
var doublePrimeArcSecond = set$8({
|
|
36822
36822
|
name: 'Double Prime',
|
|
36823
|
-
latex: '"
|
|
36824
|
-
write: '"
|
|
36823
|
+
latex: "''",
|
|
36824
|
+
write: "''"
|
|
36825
36825
|
});
|
|
36826
36826
|
geometry$1.doublePrimeArcSecond = doublePrimeArcSecond;
|
|
36827
36827
|
var leftArrow = set$8({
|
|
@@ -37325,6 +37325,9 @@ var updateSpans = function updateSpans() {
|
|
|
37325
37325
|
if (span && span.innerText === '∥' && span.className !== 'mq-editable-field') {
|
|
37326
37326
|
span.style.fontSize = '32px';
|
|
37327
37327
|
}
|
|
37328
|
+
if ((span.innerText === '′' || span.innerText === '′′') && !span.hasAttribute('data-prime')) {
|
|
37329
|
+
span.setAttribute('data-prime', 'true');
|
|
37330
|
+
}
|
|
37328
37331
|
});
|
|
37329
37332
|
};
|
|
37330
37333
|
updateSpans$1.updateSpans = updateSpans;
|
|
@@ -128300,6 +128303,9 @@ const {isEqual: require$$18$2} = _dll_lodash;
|
|
|
128300
128303
|
marginBottom: '-2px'
|
|
128301
128304
|
},
|
|
128302
128305
|
'-webkit-font-smoothing': 'antialiased !important'
|
|
128306
|
+
},
|
|
128307
|
+
'& span[data-prime="true"]': {
|
|
128308
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128303
128309
|
}
|
|
128304
128310
|
},
|
|
128305
128311
|
hide: {
|
|
@@ -128754,6 +128760,9 @@ const require$$11$s = _dll_prop_types;
|
|
|
128754
128760
|
},
|
|
128755
128761
|
'& .mq-parallelogram': {
|
|
128756
128762
|
lineHeight: 0.85
|
|
128763
|
+
},
|
|
128764
|
+
'& span[data-prime="true"]': {
|
|
128765
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128757
128766
|
}
|
|
128758
128767
|
},
|
|
128759
128768
|
selected: {
|
|
@@ -140438,7 +140447,7 @@ const require$$4$N = _dll_prop_types;
|
|
|
140438
140447
|
var _propTypes = _interopRequireDefault(require$$4$N);
|
|
140439
140448
|
var _grey = _interopRequireDefault(grey$1);
|
|
140440
140449
|
var PlaceHolder = function PlaceHolder(props) {
|
|
140441
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
140450
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
140442
140451
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
140443
140452
|
var style = {};
|
|
140444
140453
|
if (grid && grid.columns) {
|
|
@@ -140448,9 +140457,10 @@ const require$$4$N = _dll_prop_types;
|
|
|
140448
140457
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
140449
140458
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
140450
140459
|
}
|
|
140460
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
140451
140461
|
return _react["default"].createElement("div", {
|
|
140452
140462
|
style: style,
|
|
140453
|
-
className: choiceBoard ?
|
|
140463
|
+
className: choiceBoard ? boardStyle : names
|
|
140454
140464
|
}, children);
|
|
140455
140465
|
};
|
|
140456
140466
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -140467,7 +140477,8 @@ const require$$4$N = _dll_prop_types;
|
|
|
140467
140477
|
isOver: _propTypes["default"].bool,
|
|
140468
140478
|
index: _propTypes["default"].number,
|
|
140469
140479
|
type: _propTypes["default"].string,
|
|
140470
|
-
disabled: _propTypes["default"].bool
|
|
140480
|
+
disabled: _propTypes["default"].bool,
|
|
140481
|
+
isCategorize: _propTypes["default"].bool
|
|
140471
140482
|
};
|
|
140472
140483
|
var styles = function styles(theme) {
|
|
140473
140484
|
return {
|
|
@@ -140501,6 +140512,17 @@ const require$$4$N = _dll_prop_types;
|
|
|
140501
140512
|
justifyContent: 'center',
|
|
140502
140513
|
overflow: 'hidden',
|
|
140503
140514
|
touchAction: 'none'
|
|
140515
|
+
},
|
|
140516
|
+
categorizeBoard: {
|
|
140517
|
+
border: '1px solid #D1D1D1',
|
|
140518
|
+
padding: theme.spacing.unit / 2,
|
|
140519
|
+
display: 'flex',
|
|
140520
|
+
flexWrap: 'wrap',
|
|
140521
|
+
alignItems: 'center',
|
|
140522
|
+
minHeight: '100px',
|
|
140523
|
+
justifyContent: 'center',
|
|
140524
|
+
overflow: 'hidden',
|
|
140525
|
+
touchAction: 'none'
|
|
140504
140526
|
}
|
|
140505
140527
|
};
|
|
140506
140528
|
};
|
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.10.2
|
|
4
|
+
"version": "2.10.2",
|
|
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.10.2
|
|
11
|
-
"@pie-element/rubric": "^3.10.2
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.10.2",
|
|
11
|
+
"@pie-element/rubric": "^3.10.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": "
|
|
18
|
+
"gitHead": "e36060353a9a0203a362c8f42780002a072cebdb",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|