@pie-element/matrix 0.1.4-next.135 → 0.1.4-next.1357

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,251 @@
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
+ ## [0.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.2.0...@pie-element/matrix@0.2.1) (2022-06-28)
7
+
8
+ **Note:** Version bump only for package @pie-element/matrix
9
+
10
+
11
+
12
+
13
+
14
+ # [0.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.31...@pie-element/matrix@0.2.0) (2022-06-28)
15
+
16
+
17
+ ### chore
18
+
19
+ * Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * Image percent buttons were removed from toolbar.
25
+ New properties maxImageWidth and maxImageHeight were added.
26
+
27
+
28
+
29
+
30
+
31
+ ## [0.1.31](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.30...@pie-element/matrix@0.1.31) (2022-06-13)
32
+
33
+ **Note:** Version bump only for package @pie-element/matrix
34
+
35
+
36
+
37
+
38
+
39
+ ## [0.1.30](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.29...@pie-element/matrix@0.1.30) (2022-05-30)
40
+
41
+ **Note:** Version bump only for package @pie-element/matrix
42
+
43
+
44
+
45
+
46
+
47
+ ## [0.1.29](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.28...@pie-element/matrix@0.1.29) (2022-05-16)
48
+
49
+ **Note:** Version bump only for package @pie-element/matrix
50
+
51
+
52
+
53
+
54
+
55
+ ## [0.1.28](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.27...@pie-element/matrix@0.1.28) (2022-05-09)
56
+
57
+ **Note:** Version bump only for package @pie-element/matrix
58
+
59
+
60
+
61
+
62
+
63
+ ## [0.1.27](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.26...@pie-element/matrix@0.1.27) (2022-05-03)
64
+
65
+ **Note:** Version bump only for package @pie-element/matrix
66
+
67
+
68
+
69
+
70
+
71
+ ## [0.1.26](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.25...@pie-element/matrix@0.1.26) (2022-04-12)
72
+
73
+ **Note:** Version bump only for package @pie-element/matrix
74
+
75
+
76
+
77
+
78
+
79
+ ## [0.1.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.24...@pie-element/matrix@0.1.25) (2022-03-28)
80
+
81
+ **Note:** Version bump only for package @pie-element/matrix
82
+
83
+
84
+
85
+
86
+
87
+ ## [0.1.24](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.23...@pie-element/matrix@0.1.24) (2022-03-22)
88
+
89
+ **Note:** Version bump only for package @pie-element/matrix
90
+
91
+
92
+
93
+
94
+
95
+ ## [0.1.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.22...@pie-element/matrix@0.1.23) (2022-03-08)
96
+
97
+ **Note:** Version bump only for package @pie-element/matrix
98
+
99
+
100
+
101
+
102
+
103
+ ## [0.1.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.21...@pie-element/matrix@0.1.22) (2022-03-08)
104
+
105
+ **Note:** Version bump only for package @pie-element/matrix
106
+
107
+
108
+
109
+
110
+
111
+ ## [0.1.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.20...@pie-element/matrix@0.1.21) (2022-02-21)
112
+
113
+ **Note:** Version bump only for package @pie-element/matrix
114
+
115
+
116
+
117
+
118
+
119
+ ## [0.1.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.19...@pie-element/matrix@0.1.20) (2022-02-04)
120
+
121
+ **Note:** Version bump only for package @pie-element/matrix
122
+
123
+
124
+
125
+
126
+
127
+ ## [0.1.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.18...@pie-element/matrix@0.1.19) (2022-01-24)
128
+
129
+
130
+ ### Bug Fixes
131
+
132
+ * use preview prompt for prompt, rationale and teacher instructions to fix table rendering PD-1456 ([f330601](https://github.com/pie-framework/pie-elements/commit/f3306019a2d1c8ce3e2783823dfe9ef0a0394e4f))
133
+
134
+
135
+
136
+
137
+
138
+ ## [0.1.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.17...@pie-element/matrix@0.1.18) (2022-01-10)
139
+
140
+ **Note:** Version bump only for package @pie-element/matrix
141
+
142
+
143
+
144
+
145
+
146
+ ## [0.1.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.16...@pie-element/matrix@0.1.17) (2021-12-23)
147
+
148
+ **Note:** Version bump only for package @pie-element/matrix
149
+
150
+
151
+
152
+
153
+
154
+ ## [0.1.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.14...@pie-element/matrix@0.1.15) (2021-12-13)
155
+
156
+ **Note:** Version bump only for package @pie-element/matrix
157
+
158
+
159
+
160
+
161
+
162
+ ## [0.1.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.11...@pie-element/matrix@0.1.12) (2021-11-29)
163
+
164
+ **Note:** Version bump only for package @pie-element/matrix
165
+
166
+
167
+
168
+
169
+
170
+ ## [0.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.7...@pie-element/matrix@0.1.11) (2021-11-11)
171
+
172
+ **Note:** Version bump only for package @pie-element/matrix
173
+
174
+
175
+
176
+
177
+
178
+ ## [0.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.3...@pie-element/matrix@0.1.10) (2021-11-11)
179
+
180
+
181
+ ### Bug Fixes
182
+
183
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
184
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
185
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
186
+
187
+
188
+
189
+
190
+
191
+
192
+ ## [0.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.6...@pie-element/matrix@0.1.7) (2021-10-04)
193
+
194
+ **Note:** Version bump only for package @pie-element/matrix
195
+
196
+
197
+
198
+
199
+
200
+ ## [0.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.5...@pie-element/matrix@0.1.6) (2021-09-20)
201
+
202
+
203
+ ### Bug Fixes
204
+
205
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
206
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
207
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
208
+
209
+
210
+
211
+
212
+
213
+ ## [0.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.4...@pie-element/matrix@0.1.5) (2021-09-01)
214
+
215
+ **Note:** Version bump only for package @pie-element/matrix
216
+
217
+
218
+
219
+
220
+
221
+ ## [0.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.3...@pie-element/matrix@0.1.4) (2021-08-05)
222
+
223
+ **Note:** Version bump only for package @pie-element/matrix
224
+
225
+
226
+
227
+
228
+
229
+ ## [0.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.1...@pie-element/matrix@0.1.3) (2021-08-05)
230
+
231
+
232
+ ### Bug Fixes
233
+
234
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
235
+
236
+
237
+
238
+
239
+
240
+ ## [0.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.1.0...@pie-element/matrix@0.1.1) (2021-06-29)
241
+
242
+
243
+ ### Bug Fixes
244
+
245
+ * Removed excess white space at the beginning of all items - PD-1184 ([#602](https://github.com/pie-framework/pie-elements/issues/602)) ([25b9f72](https://github.com/pie-framework/pie-elements/commit/25b9f72d2fe73bd46ea1a5c3611ff82eef3efb84))
246
+
247
+
248
+
249
+
250
+
6
251
  # [0.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix@0.0.7...@pie-element/matrix@0.1.0) (2021-04-07)
7
252
 
8
253
 
@@ -3,6 +3,215 @@
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
+ ## [0.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.2.0...@pie-element/matrix-configure@0.2.1) (2022-06-28)
7
+
8
+ **Note:** Version bump only for package @pie-element/matrix-configure
9
+
10
+
11
+
12
+
13
+
14
+ # [0.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.26...@pie-element/matrix-configure@0.2.0) (2022-06-28)
15
+
16
+
17
+ ### chore
18
+
19
+ * Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * Image percent buttons were removed from toolbar.
25
+ New properties maxImageWidth and maxImageHeight were added.
26
+
27
+
28
+
29
+
30
+
31
+ ## [0.1.26](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.25...@pie-element/matrix-configure@0.1.26) (2022-06-13)
32
+
33
+ **Note:** Version bump only for package @pie-element/matrix-configure
34
+
35
+
36
+
37
+
38
+
39
+ ## [0.1.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.24...@pie-element/matrix-configure@0.1.25) (2022-05-30)
40
+
41
+ **Note:** Version bump only for package @pie-element/matrix-configure
42
+
43
+
44
+
45
+
46
+
47
+ ## [0.1.24](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.23...@pie-element/matrix-configure@0.1.24) (2022-05-16)
48
+
49
+ **Note:** Version bump only for package @pie-element/matrix-configure
50
+
51
+
52
+
53
+
54
+
55
+ ## [0.1.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.22...@pie-element/matrix-configure@0.1.23) (2022-05-09)
56
+
57
+ **Note:** Version bump only for package @pie-element/matrix-configure
58
+
59
+
60
+
61
+
62
+
63
+ ## [0.1.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.21...@pie-element/matrix-configure@0.1.22) (2022-05-03)
64
+
65
+ **Note:** Version bump only for package @pie-element/matrix-configure
66
+
67
+
68
+
69
+
70
+
71
+ ## [0.1.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.20...@pie-element/matrix-configure@0.1.21) (2022-04-12)
72
+
73
+ **Note:** Version bump only for package @pie-element/matrix-configure
74
+
75
+
76
+
77
+
78
+
79
+ ## [0.1.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.19...@pie-element/matrix-configure@0.1.20) (2022-03-28)
80
+
81
+ **Note:** Version bump only for package @pie-element/matrix-configure
82
+
83
+
84
+
85
+
86
+
87
+ ## [0.1.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.18...@pie-element/matrix-configure@0.1.19) (2022-03-22)
88
+
89
+ **Note:** Version bump only for package @pie-element/matrix-configure
90
+
91
+
92
+
93
+
94
+
95
+ ## [0.1.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.17...@pie-element/matrix-configure@0.1.18) (2022-03-08)
96
+
97
+ **Note:** Version bump only for package @pie-element/matrix-configure
98
+
99
+
100
+
101
+
102
+
103
+ ## [0.1.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.16...@pie-element/matrix-configure@0.1.17) (2022-03-08)
104
+
105
+ **Note:** Version bump only for package @pie-element/matrix-configure
106
+
107
+
108
+
109
+
110
+
111
+ ## [0.1.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.15...@pie-element/matrix-configure@0.1.16) (2022-02-21)
112
+
113
+ **Note:** Version bump only for package @pie-element/matrix-configure
114
+
115
+
116
+
117
+
118
+
119
+ ## [0.1.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.14...@pie-element/matrix-configure@0.1.15) (2022-02-04)
120
+
121
+ **Note:** Version bump only for package @pie-element/matrix-configure
122
+
123
+
124
+
125
+
126
+
127
+ ## [0.1.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.13...@pie-element/matrix-configure@0.1.14) (2022-01-24)
128
+
129
+ **Note:** Version bump only for package @pie-element/matrix-configure
130
+
131
+
132
+
133
+
134
+
135
+ ## [0.1.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.12...@pie-element/matrix-configure@0.1.13) (2022-01-10)
136
+
137
+ **Note:** Version bump only for package @pie-element/matrix-configure
138
+
139
+
140
+
141
+
142
+
143
+ ## [0.1.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.11...@pie-element/matrix-configure@0.1.12) (2021-12-23)
144
+
145
+ **Note:** Version bump only for package @pie-element/matrix-configure
146
+
147
+
148
+
149
+
150
+
151
+ ## [0.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.9...@pie-element/matrix-configure@0.1.10) (2021-12-13)
152
+
153
+ **Note:** Version bump only for package @pie-element/matrix-configure
154
+
155
+
156
+
157
+
158
+
159
+ ## [0.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.6...@pie-element/matrix-configure@0.1.7) (2021-11-29)
160
+
161
+ **Note:** Version bump only for package @pie-element/matrix-configure
162
+
163
+
164
+
165
+
166
+
167
+ ## [0.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.5...@pie-element/matrix-configure@0.1.6) (2021-10-04)
168
+
169
+ **Note:** Version bump only for package @pie-element/matrix-configure
170
+
171
+
172
+
173
+
174
+
175
+ ## [0.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.4...@pie-element/matrix-configure@0.1.5) (2021-09-20)
176
+
177
+
178
+ ### Bug Fixes
179
+
180
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
181
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
182
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
183
+
184
+
185
+
186
+
187
+
188
+ ## [0.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.3...@pie-element/matrix-configure@0.1.4) (2021-08-05)
189
+
190
+ **Note:** Version bump only for package @pie-element/matrix-configure
191
+
192
+
193
+
194
+
195
+
196
+ ## [0.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.1...@pie-element/matrix-configure@0.1.3) (2021-08-05)
197
+
198
+
199
+ ### Bug Fixes
200
+
201
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
202
+
203
+
204
+
205
+
206
+
207
+ ## [0.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.1.0...@pie-element/matrix-configure@0.1.1) (2021-06-29)
208
+
209
+ **Note:** Version bump only for package @pie-element/matrix-configure
210
+
211
+
212
+
213
+
214
+
6
215
  # [0.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/matrix-configure@0.0.7...@pie-element/matrix-configure@0.1.0) (2021-04-07)
7
216
 
8
217
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.IconWrapper = exports.NumberInputFormGroupWrapper = exports.ColumnsHeader = exports.ColumnsWrapper = void 0;
8
+ exports.NumberInputFormGroupWrapper = exports.IconWrapper = exports.ColumnsWrapper = exports.ColumnsHeader = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
@@ -41,13 +41,13 @@ var _MatrixLabelTypeHeaderInput = _interopRequireDefault(require("./MatrixLabelT
41
41
 
42
42
  var _MatrixValues = _interopRequireDefault(require("./MatrixValues"));
43
43
 
44
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
44
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
45
45
 
46
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
46
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
47
47
 
48
48
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
49
49
 
50
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
50
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
51
 
52
52
  var Panel = _configUi.settings.Panel,
53
53
  toggle = _configUi.settings.toggle,
@@ -82,6 +82,7 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
82
82
  configuration = props.configuration,
83
83
  onPromptChanged = props.onPromptChanged,
84
84
  imageSupport = props.imageSupport,
85
+ uploadSoundSupport = props.uploadSoundSupport,
85
86
  onChangeModel = props.onChangeModel,
86
87
  onConfigurationChanged = props.onConfigurationChanged,
87
88
  onTeacherInstructionsChanged = props.onTeacherInstructionsChanged;
@@ -92,10 +93,13 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
92
93
  _ref$teacherInstructi = _ref.teacherInstructions,
93
94
  teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi,
94
95
  _ref$scoringType = _ref.scoringType,
95
- scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType;
96
+ scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType,
97
+ _ref$spellCheck = _ref.spellCheck,
98
+ spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck;
96
99
 
97
100
  var _ref2 = model || {},
98
- teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled;
101
+ teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled,
102
+ spellCheckEnabled = _ref2.spellCheckEnabled;
99
103
 
100
104
  return /*#__PURE__*/_react["default"].createElement("div", {
101
105
  className: classes.design
@@ -108,6 +112,7 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
108
112
  groups: {
109
113
  Properties: {
110
114
  teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
115
+ spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
111
116
  scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
112
117
  }
113
118
  }
@@ -131,7 +136,9 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
131
136
  markup: model.teacherInstructions || '',
132
137
  onChange: onTeacherInstructionsChanged,
133
138
  imageSupport: imageSupport,
134
- nonEmpty: false
139
+ nonEmpty: false,
140
+ spellCheck: spellCheckEnabled,
141
+ uploadSoundSupport: uploadSoundSupport
135
142
  })), /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
136
143
  label: prompt.label,
137
144
  className: classes.promptHolder
@@ -141,6 +148,8 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
141
148
  onChange: onPromptChanged,
142
149
  imageSupport: imageSupport,
143
150
  nonEmpty: !prompt.settings,
151
+ spellCheck: spellCheckEnabled,
152
+ uploadSoundSupport: uploadSoundSupport,
144
153
  disableUnderline: true
145
154
  })), /*#__PURE__*/_react["default"].createElement(_MatrixValues["default"], {
146
155
  model: model,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Main.jsx"],"names":["Panel","settings","toggle","radio","styles","theme","promptHolder","width","paddingBottom","spacing","unit","marginBottom","prompt","paddingTop","matrixHeaderOptionsHolder","display","padding","justifyContent","design","Design","props","classes","model","configuration","onPromptChanged","imageSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","teacherInstructions","scoringType","teacherInstructionsEnabled","Properties","label","Main","onModelChanged","data","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEQA,K,GAAyBC,kB,CAAzBD,K;IAAOE,M,GAAkBD,kB,CAAlBC,M;IAAQC,K,GAAUF,kB,CAAVE,K;;AAEvB,IAAMC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,aAAa,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAFxB;AAGZC,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KADS;AAMvBE,IAAAA,MAAM,EAAE;AACNC,MAAAA,UAAU,EAAER,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAD3B;AAENH,MAAAA,KAAK,EAAE;AAFD,KANe;AAUvBO,IAAAA,yBAAyB,EAAE;AACzBC,MAAAA,OAAO,EAAE,MADgB;AAEzBR,MAAAA,KAAK,EAAE,MAFkB;AAGzBS,MAAAA,OAAO,EAAE,QAHgB;AAIzBC,MAAAA,cAAc,EAAE;AAJS,KAVJ;AAgBvBC,IAAAA,MAAM,EAAE;AACNL,MAAAA,UAAU,EAAER,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QF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AANG,C;AA6CrB,IAAMM,MAAM,GAAG,wBAAW3C,MAAX,EAAmB8B,IAAnB,CAAf;eAEea,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html';\nimport {\n InputContainer,\n settings,\n layout\n} from '@pie-lib/config-ui';\nimport {withStyles} from '@material-ui/core/styles';\nimport MatrixColumnsSizeHeaderInput from './MatrixColumnsSizeHeaderInput';\nimport MatrixRowsSizeHeaderInput from './MatrixRowsSizeHeaderInput';\nimport MatrixLabelTypeHeaderInput from './MatrixLabelTypeHeaderInput';\nimport MatrixValues from './MatrixValues';\n\nconst { Panel, toggle, radio } = settings;\n\nconst styles = theme => ({\n promptHolder: {\n width: '100%',\n paddingBottom: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2\n },\n prompt: {\n paddingTop: theme.spacing.unit * 2,\n width: '100%'\n },\n matrixHeaderOptionsHolder: {\n display: 'flex',\n width: '100%',\n padding: '20px 0',\n justifyContent: 'space-around'\n },\n design: {\n paddingTop: theme.spacing.unit * 3\n }\n});\n\n\nconst Design = withStyles(styles)(props => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n imageSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged\n } = props;\n const {\n prompt = {},\n teacherInstructions = {},\n scoringType = {},\n } = configuration || {};\n const {\n teacherInstructionsEnabled\n } = model || {};\n\n return (\n <div className={classes.design}>\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])\n }\n }}\n />\n }\n >\n <div>\n <div className={classes.matrixHeaderOptionsHolder}>\n <MatrixRowsSizeHeaderInput model={model} onChangeModel={onChangeModel}/>\n <MatrixColumnsSizeHeaderInput model={model} onChangeModel={onChangeModel}/>\n <MatrixLabelTypeHeaderInput model={model} onChangeModel={onChangeModel}/>\n </div>\n\n {teacherInstructionsEnabled && (\n <InputContainer\n label={teacherInstructions.label}\n className={classes.promptHolder}\n >\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n />\n </InputContainer>\n )}\n\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={!prompt.settings}\n disableUnderline\n />\n </InputContainer>\n\n <MatrixValues model={model} onChangeModel={onChangeModel}/>\n </div>\n </layout.ConfigLayout>\n </div>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired\n })\n };\n\n onPromptChanged = prompt => {\n this.props.onModelChanged({\n ...this.props.model,\n prompt\n });\n };\n\n onChangeModel = data => {\n this.props.onModelChanged({\n ...this.props.model,\n ...data\n });\n };\n\n onTeacherInstructionsChanged = teacherInstructions => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions\n });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"Main.js"}
1
+ {"version":3,"sources":["../src/Main.jsx"],"names":["Panel","settings","toggle","radio","styles","theme","promptHolder","width","paddingBottom","spacing","unit","marginBottom","prompt","paddingTop","matrixHeaderOptionsHolder","display","padding","justifyContent","design","Design","props","classes","model","configuration","onPromptChanged","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","teacherInstructions","scoringType","spellCheck","teacherInstructionsEnabled","spellCheckEnabled","Properties","label","Main","onModelChanged","data","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAiCC,kBAAjC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAiCD,kBAAjC,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAAiCF,kBAAjC,CAAuBE,KAAvB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,aAAa,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAFxB;AAGZC,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KADS;AAMvBE,IAAAA,MAAM,EAAE;AACNC,MAAAA,UAAU,EAAER,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAD3B;AAENH,MAAAA,KAAK,EAAE;AAFD,KANe;AAUvBO,IAAAA,yBAAyB,EAAE;AACzBC,MAAAA,OAAO,EAAE,MADgB;AAEzBR,MAAAA,KAAK,EAAE,MAFkB;AAGzBS,MAAAA,OAAO,EAAE,QAHgB;AAIzBC,MAAAA,cAAc,EAAE;AAJS,KAVJ;AAgBvBC,IAAAA,MAAM,EAAE;AACNL,MAAAA,UAAU,EAAER,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAD3B;AAhBe,GAAL;AAAA,CAApB;;AAsBA,IAAMS,MAAM,GAAG,wBAAWf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BvB,EAAAA,OAAO,EAAEqB,sBAAUC,MAAV,CAAiBC,UALT;AAMjBnB,EAAAA,YAAY,EAAEiB,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AANG,C;AA6CrB,IAAMM,MAAM,GAAG,wBAAW9C,MAAX,EAAmBiC,IAAnB,CAAf;eAEea,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html';\nimport {\n InputContainer,\n settings,\n layout\n} from '@pie-lib/config-ui';\nimport {withStyles} from '@material-ui/core/styles';\nimport MatrixColumnsSizeHeaderInput from './MatrixColumnsSizeHeaderInput';\nimport MatrixRowsSizeHeaderInput from './MatrixRowsSizeHeaderInput';\nimport MatrixLabelTypeHeaderInput from './MatrixLabelTypeHeaderInput';\nimport MatrixValues from './MatrixValues';\n\nconst { Panel, toggle, radio } = settings;\n\nconst styles = theme => ({\n promptHolder: {\n width: '100%',\n paddingBottom: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2\n },\n prompt: {\n paddingTop: theme.spacing.unit * 2,\n width: '100%'\n },\n matrixHeaderOptionsHolder: {\n display: 'flex',\n width: '100%',\n padding: '20px 0',\n justifyContent: 'space-around'\n },\n design: {\n paddingTop: theme.spacing.unit * 3\n }\n});\n\n\nconst Design = withStyles(styles)(props => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged\n } = props;\n const {\n prompt = {},\n teacherInstructions = {},\n scoringType = {},\n spellCheck = {},\n } = configuration || {};\n const {\n teacherInstructionsEnabled, spellCheckEnabled\n } = model || {};\n\n return (\n <div className={classes.design}>\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled:\n spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])\n }\n }}\n />\n }\n >\n <div>\n <div className={classes.matrixHeaderOptionsHolder}>\n <MatrixRowsSizeHeaderInput model={model} onChangeModel={onChangeModel}/>\n <MatrixColumnsSizeHeaderInput model={model} onChangeModel={onChangeModel}/>\n <MatrixLabelTypeHeaderInput model={model} onChangeModel={onChangeModel}/>\n </div>\n\n {teacherInstructionsEnabled && (\n <InputContainer\n label={teacherInstructions.label}\n className={classes.promptHolder}\n >\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n />\n </InputContainer>\n )}\n\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={!prompt.settings}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n disableUnderline\n />\n </InputContainer>\n\n <MatrixValues model={model} onChangeModel={onChangeModel}/>\n </div>\n </layout.ConfigLayout>\n </div>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired\n })\n };\n\n onPromptChanged = prompt => {\n this.props.onModelChanged({\n ...this.props.model,\n prompt\n });\n };\n\n onChangeModel = data => {\n this.props.onModelChanged({\n ...this.props.model,\n ...data\n });\n };\n\n onTeacherInstructionsChanged = teacherInstructions => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions\n });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"Main.js"}
@@ -23,9 +23,9 @@ var _HeaderCommon = require("./HeaderCommon");
23
23
 
24
24
  var _matrixEntities = require("./matrixEntities");
25
25
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
26
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
27
 
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
29
 
30
30
  var MatrixColumnsSizeHeaderInput = function MatrixColumnsSizeHeaderInput(_ref) {
31
31
  var model = _ref.model,
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
6
 
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
@@ -31,6 +31,10 @@ var _isNumeric = _interopRequireDefault(require("./isNumeric"));
31
31
 
32
32
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
33
33
 
34
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
+
36
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
+
34
38
  var MatrixEditableButtonWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n height: 50px;\n margin: 1px;\n background: #04b26e;\n border-radius: 5px;\n color: white;\n font-size: 14px;\n white-space: nowrap;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
35
39
 
36
40
  var MatrixEditableButtonContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n padding: 0 5px 0 12px;\n width: 100%;\n display: flex;\n align-items: center;\n overflow: hidden;\n"])));
@@ -59,7 +63,8 @@ var MatrixLabelEditableButton = function MatrixLabelEditableButton(props) {
59
63
  var onLabelUpdate = props.onLabelUpdate,
60
64
  value = props.value,
61
65
  resourceIndex = props.resourceIndex,
62
- onAction = props.onAction;
66
+ onAction = props.onAction,
67
+ spellCheck = props.spellCheck;
63
68
 
64
69
  var _useState = (0, _react.useState)(null),
65
70
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
@@ -162,7 +167,8 @@ var MatrixLabelEditableButton = function MatrixLabelEditableButton(props) {
162
167
  onChange: function onChange(e) {
163
168
  return setLabelValue(e.target.value);
164
169
  },
165
- onBlur: onBlur
170
+ onBlur: onBlur,
171
+ spellCheck: spellCheck
166
172
  }) : /*#__PURE__*/_react["default"].createElement(MatrixEditableButtonText, {
167
173
  onClick: onShowInput
168
174
  }, value)), /*#__PURE__*/_react["default"].createElement(MatrixEditableButtonActions, {