@pie-element/match 4.6.1-next.99 → 4.7.3-next.1008

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,220 @@
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
+ ## [4.10.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.10.5...@pie-element/match@4.10.6) (2022-03-28)
7
+
8
+ **Note:** Version bump only for package @pie-element/match
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.10.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.10.4...@pie-element/match@4.10.5) (2022-03-22)
15
+
16
+ **Note:** Version bump only for package @pie-element/match
17
+
18
+
19
+
20
+
21
+
22
+ ## [4.10.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.10.3...@pie-element/match@4.10.4) (2022-03-08)
23
+
24
+ **Note:** Version bump only for package @pie-element/match
25
+
26
+
27
+
28
+
29
+
30
+ ## [4.10.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.10.2...@pie-element/match@4.10.3) (2022-03-08)
31
+
32
+ **Note:** Version bump only for package @pie-element/match
33
+
34
+
35
+
36
+
37
+
38
+ ## [4.10.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.10.1...@pie-element/match@4.10.2) (2022-02-21)
39
+
40
+ **Note:** Version bump only for package @pie-element/match
41
+
42
+
43
+
44
+
45
+
46
+ ## [4.10.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.10.0...@pie-element/match@4.10.1) (2022-02-04)
47
+
48
+ **Note:** Version bump only for package @pie-element/match
49
+
50
+
51
+
52
+
53
+
54
+ # [4.10.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.9.8...@pie-element/match@4.10.0) (2022-01-24)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * match - after the player gives all the responses, feedback is 'you have not entered a response' PD-902 ([6bbcac9](https://github.com/pie-framework/pie-elements/commit/6bbcac9d4349e59b221471ea1b07957ea2c608e0))
60
+ * 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))
61
+ * **match:** indicate answer correctness in evaluate mode PD-1378 ([fe78c07](https://github.com/pie-framework/pie-elements/commit/fe78c073505ca72527894b30f7ba9cd570f39da0))
62
+ * **match:** set default false for lock choice order settings PD-1333 ([4f07002](https://github.com/pie-framework/pie-elements/commit/4f07002ceece8b82450cc6fff13515923df370cc))
63
+
64
+
65
+ ### Features
66
+
67
+ * **match:** change drag-and-drop behavior from swap to push PD-1336 ([0383630](https://github.com/pie-framework/pie-elements/commit/0383630ba588fed54aa9ff0b9a936f1c8d773eff))
68
+ * **match:** remove list buttons from question text PD-1335 ([671d0fb](https://github.com/pie-framework/pie-elements/commit/671d0fbbf79e343dc9a89dc6f820309edcccbaaf))
69
+
70
+
71
+
72
+
73
+
74
+ ## [4.9.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.9.7...@pie-element/match@4.9.8) (2022-01-10)
75
+
76
+ **Note:** Version bump only for package @pie-element/match
77
+
78
+
79
+
80
+
81
+
82
+ ## [4.9.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.9.6...@pie-element/match@4.9.7) (2021-12-23)
83
+
84
+ **Note:** Version bump only for package @pie-element/match
85
+
86
+
87
+
88
+
89
+
90
+ ## [4.9.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.9.4...@pie-element/match@4.9.5) (2021-12-13)
91
+
92
+ **Note:** Version bump only for package @pie-element/match
93
+
94
+
95
+
96
+
97
+
98
+ ## [4.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.9.1...@pie-element/match@4.9.2) (2021-11-29)
99
+
100
+ **Note:** Version bump only for package @pie-element/match
101
+
102
+
103
+
104
+
105
+
106
+ ## [4.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.8.4...@pie-element/match@4.9.1) (2021-11-11)
107
+
108
+ **Note:** Version bump only for package @pie-element/match
109
+
110
+
111
+
112
+
113
+
114
+ # [4.9.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.7.2...@pie-element/match@4.9.0) (2021-11-11)
115
+
116
+
117
+ ### Bug Fixes
118
+
119
+ * **match:** set default false for lock choice order settings PD-1333 ([4f07002](https://github.com/pie-framework/pie-elements/commit/4f07002ceece8b82450cc6fff13515923df370cc))
120
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
121
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
122
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
123
+ * **match:** Fixed the session for pits PD-902 ([2d51d53](https://github.com/pie-framework/pie-elements/commit/2d51d534d832dcc7bc18f8afc6dc1da1031d2fab))
124
+
125
+
126
+ ### Features
127
+
128
+ * **match:** authoring UI should allow up to 10 columns. Change column header fields PD-601 ([6015d9f](https://github.com/pie-framework/pie-elements/commit/6015d9fd8768f7b8462b7c85c2a2ce61df9ab535))
129
+ * **match:** change drag-and-drop behavior from swap to push PD-1336 ([0383630](https://github.com/pie-framework/pie-elements/commit/0383630ba588fed54aa9ff0b9a936f1c8d773eff))
130
+ * **match:** remove insert audio and video buttons from question text PD-601 ([6407962](https://github.com/pie-framework/pie-elements/commit/64079623bbba4803e18d49b33b43f62f9b1082cb))
131
+ * **match:** remove list buttons from question text PD-1335 ([671d0fb](https://github.com/pie-framework/pie-elements/commit/671d0fbbf79e343dc9a89dc6f820309edcccbaaf))
132
+ * **match:** set toolbar editor position to bottom ([54c781e](https://github.com/pie-framework/pie-elements/commit/54c781e16207ddb5cbc623626ab1bc8980518b49))
133
+
134
+
135
+
136
+
137
+
138
+
139
+ ## [4.8.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.8.3...@pie-element/match@4.8.4) (2021-11-01)
140
+
141
+ **Note:** Version bump only for package @pie-element/match
142
+
143
+
144
+
145
+
146
+
147
+ ## [4.8.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.8.2...@pie-element/match@4.8.3) (2021-10-04)
148
+
149
+ **Note:** Version bump only for package @pie-element/match
150
+
151
+
152
+
153
+
154
+
155
+ ## [4.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.8.1...@pie-element/match@4.8.2) (2021-09-20)
156
+
157
+
158
+ ### Bug Fixes
159
+
160
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
161
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
162
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
163
+ * **match:** Fixed the session for pits PD-902 ([2d51d53](https://github.com/pie-framework/pie-elements/commit/2d51d534d832dcc7bc18f8afc6dc1da1031d2fab))
164
+
165
+
166
+
167
+
168
+
169
+ ## [4.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.8.0...@pie-element/match@4.8.1) (2021-09-01)
170
+
171
+ **Note:** Version bump only for package @pie-element/match
172
+
173
+
174
+
175
+
176
+
177
+ # [4.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.7.2...@pie-element/match@4.8.0) (2021-08-05)
178
+
179
+
180
+ ### Features
181
+
182
+ * **match:** authoring UI should allow up to 10 columns. Change column header fields PD-601 ([6015d9f](https://github.com/pie-framework/pie-elements/commit/6015d9fd8768f7b8462b7c85c2a2ce61df9ab535))
183
+ * **match:** remove insert audio and video buttons from question text PD-601 ([6407962](https://github.com/pie-framework/pie-elements/commit/64079623bbba4803e18d49b33b43f62f9b1082cb))
184
+ * **match:** set toolbar editor position to bottom ([54c781e](https://github.com/pie-framework/pie-elements/commit/54c781e16207ddb5cbc623626ab1bc8980518b49))
185
+
186
+
187
+
188
+
189
+
190
+ ## [4.7.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.7.0...@pie-element/match@4.7.2) (2021-08-05)
191
+
192
+
193
+ ### Bug Fixes
194
+
195
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
196
+
197
+
198
+
199
+
200
+
201
+ # [4.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.6.0...@pie-element/match@4.7.0) (2021-06-29)
202
+
203
+
204
+ ### Bug Fixes
205
+
206
+ * 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))
207
+ * **match:** Changed the horizontal spacing ([#569](https://github.com/pie-framework/pie-elements/issues/569)) ([1e9ed15](https://github.com/pie-framework/pie-elements/commit/1e9ed15df316f9de98552597d20d58db03e359e7))
208
+ * **match:** remove rationale and teacher instructions from the item model returned by the API PD-1158 ([#591](https://github.com/pie-framework/pie-elements/issues/591)) ([e33786a](https://github.com/pie-framework/pie-elements/commit/e33786ad0bc788872c3624805790c82b3819c879))
209
+
210
+
211
+ ### Features
212
+
213
+ * remove audio and video buttons from various fields of various items PD-1180 ([#601](https://github.com/pie-framework/pie-elements/issues/601)) ([8766b25](https://github.com/pie-framework/pie-elements/commit/8766b25690f5dde6c3e896860d63e205bf3c831b))
214
+ * **match:** change partial scoring method for match items that use checkboxes PD-741 ([#588](https://github.com/pie-framework/pie-elements/issues/588)) ([65cd5dd](https://github.com/pie-framework/pie-elements/commit/65cd5dd6adb2307f89f53248b0d4489b0dd71e39))
215
+
216
+
217
+
218
+
219
+
6
220
  # [4.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match@4.5.18...@pie-element/match@4.6.0) (2021-04-07)
7
221
 
8
222
 
@@ -3,6 +3,198 @@
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
+ ## [4.5.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.5.5...@pie-element/match-configure@4.5.6) (2022-03-28)
7
+
8
+ **Note:** Version bump only for package @pie-element/match-configure
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.5.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.5.4...@pie-element/match-configure@4.5.5) (2022-03-22)
15
+
16
+ **Note:** Version bump only for package @pie-element/match-configure
17
+
18
+
19
+
20
+
21
+
22
+ ## [4.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.5.3...@pie-element/match-configure@4.5.4) (2022-03-08)
23
+
24
+ **Note:** Version bump only for package @pie-element/match-configure
25
+
26
+
27
+
28
+
29
+
30
+ ## [4.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.5.2...@pie-element/match-configure@4.5.3) (2022-03-08)
31
+
32
+ **Note:** Version bump only for package @pie-element/match-configure
33
+
34
+
35
+
36
+
37
+
38
+ ## [4.5.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.5.1...@pie-element/match-configure@4.5.2) (2022-02-21)
39
+
40
+ **Note:** Version bump only for package @pie-element/match-configure
41
+
42
+
43
+
44
+
45
+
46
+ ## [4.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.5.0...@pie-element/match-configure@4.5.1) (2022-02-04)
47
+
48
+ **Note:** Version bump only for package @pie-element/match-configure
49
+
50
+
51
+
52
+
53
+
54
+ # [4.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.4.8...@pie-element/match-configure@4.5.0) (2022-01-24)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * match - after the player gives all the responses, feedback is 'you have not entered a response' PD-902 ([6bbcac9](https://github.com/pie-framework/pie-elements/commit/6bbcac9d4349e59b221471ea1b07957ea2c608e0))
60
+ * **match:** set default false for lock choice order settings PD-1333 ([4f07002](https://github.com/pie-framework/pie-elements/commit/4f07002ceece8b82450cc6fff13515923df370cc))
61
+
62
+
63
+ ### Features
64
+
65
+ * **match:** change drag-and-drop behavior from swap to push PD-1336 ([0383630](https://github.com/pie-framework/pie-elements/commit/0383630ba588fed54aa9ff0b9a936f1c8d773eff))
66
+ * **match:** remove list buttons from question text PD-1335 ([671d0fb](https://github.com/pie-framework/pie-elements/commit/671d0fbbf79e343dc9a89dc6f820309edcccbaaf))
67
+
68
+
69
+
70
+
71
+
72
+ ## [4.4.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.4.7...@pie-element/match-configure@4.4.8) (2022-01-10)
73
+
74
+ **Note:** Version bump only for package @pie-element/match-configure
75
+
76
+
77
+
78
+
79
+
80
+ ## [4.4.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.4.6...@pie-element/match-configure@4.4.7) (2021-12-23)
81
+
82
+ **Note:** Version bump only for package @pie-element/match-configure
83
+
84
+
85
+
86
+
87
+
88
+ ## [4.4.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.4.4...@pie-element/match-configure@4.4.5) (2021-12-13)
89
+
90
+ **Note:** Version bump only for package @pie-element/match-configure
91
+
92
+
93
+
94
+
95
+
96
+ ## [4.4.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.4.1...@pie-element/match-configure@4.4.2) (2021-11-29)
97
+
98
+ **Note:** Version bump only for package @pie-element/match-configure
99
+
100
+
101
+
102
+
103
+
104
+ ## [4.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.3.3...@pie-element/match-configure@4.4.1) (2021-11-11)
105
+
106
+ **Note:** Version bump only for package @pie-element/match-configure
107
+
108
+
109
+
110
+
111
+
112
+ # [4.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.2.2...@pie-element/match-configure@4.4.0) (2021-11-11)
113
+
114
+
115
+ ### Bug Fixes
116
+
117
+ * **match:** set default false for lock choice order settings PD-1333 ([4f07002](https://github.com/pie-framework/pie-elements/commit/4f07002ceece8b82450cc6fff13515923df370cc))
118
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
119
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
120
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
121
+
122
+
123
+ ### Features
124
+
125
+ * **match:** authoring UI should allow up to 10 columns. Change column header fields PD-601 ([6015d9f](https://github.com/pie-framework/pie-elements/commit/6015d9fd8768f7b8462b7c85c2a2ce61df9ab535))
126
+ * **match:** change drag-and-drop behavior from swap to push PD-1336 ([0383630](https://github.com/pie-framework/pie-elements/commit/0383630ba588fed54aa9ff0b9a936f1c8d773eff))
127
+ * **match:** remove insert audio and video buttons from question text PD-601 ([6407962](https://github.com/pie-framework/pie-elements/commit/64079623bbba4803e18d49b33b43f62f9b1082cb))
128
+ * **match:** remove list buttons from question text PD-1335 ([671d0fb](https://github.com/pie-framework/pie-elements/commit/671d0fbbf79e343dc9a89dc6f820309edcccbaaf))
129
+
130
+
131
+
132
+
133
+
134
+
135
+ ## [4.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.3.2...@pie-element/match-configure@4.3.3) (2021-11-01)
136
+
137
+ **Note:** Version bump only for package @pie-element/match-configure
138
+
139
+
140
+
141
+
142
+
143
+ ## [4.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.3.1...@pie-element/match-configure@4.3.2) (2021-10-04)
144
+
145
+ **Note:** Version bump only for package @pie-element/match-configure
146
+
147
+
148
+
149
+
150
+
151
+ ## [4.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.3.0...@pie-element/match-configure@4.3.1) (2021-09-20)
152
+
153
+
154
+ ### Bug Fixes
155
+
156
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
157
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
158
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
159
+
160
+
161
+
162
+
163
+
164
+ # [4.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.2.2...@pie-element/match-configure@4.3.0) (2021-08-05)
165
+
166
+
167
+ ### Features
168
+
169
+ * **match:** authoring UI should allow up to 10 columns. Change column header fields PD-601 ([6015d9f](https://github.com/pie-framework/pie-elements/commit/6015d9fd8768f7b8462b7c85c2a2ce61df9ab535))
170
+ * **match:** remove insert audio and video buttons from question text PD-601 ([6407962](https://github.com/pie-framework/pie-elements/commit/64079623bbba4803e18d49b33b43f62f9b1082cb))
171
+
172
+
173
+
174
+
175
+
176
+ ## [4.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.2.0...@pie-element/match-configure@4.2.2) (2021-08-05)
177
+
178
+
179
+ ### Bug Fixes
180
+
181
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
182
+
183
+
184
+
185
+
186
+
187
+ # [4.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.1.24...@pie-element/match-configure@4.2.0) (2021-06-29)
188
+
189
+
190
+ ### Features
191
+
192
+ * remove audio and video buttons from various fields of various items PD-1180 ([#601](https://github.com/pie-framework/pie-elements/issues/601)) ([8766b25](https://github.com/pie-framework/pie-elements/commit/8766b25690f5dde6c3e896860d63e205bf3c831b))
193
+
194
+
195
+
196
+
197
+
6
198
  ## [4.1.24](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-configure@4.1.23...@pie-element/match-configure@4.1.24) (2021-04-07)
7
199
 
8
200
  **Note:** Version bump only for package @pie-element/match-configure
@@ -31,7 +31,7 @@ var _Add = _interopRequireDefault(require("@material-ui/icons/Add"));
31
31
 
32
32
  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); }; }
33
33
 
34
- 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; } }
34
+ 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; } }
35
35
 
36
36
  var AddRowButton = /*#__PURE__*/function (_React$Component) {
37
37
  (0, _inherits2["default"])(AddRowButton, _React$Component);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/add-row.jsx"],"names":["AddRowButton","props","classes","onAddClick","button","React","Component","PropTypes","object","isRequired","func","styles","theme","display","alignSelf","margin","marginBottom","spacing","unit"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEaA,Y;;;;;;;;;;;;WAMX,kBAAS;AAAA,wBACyB,KAAKC,KAD9B;AAAA,UACCC,OADD,eACCA,OADD;AAAA,UACUC,UADV,eACUA,UADV;AAGP,0BACE,gCAAC,kBAAD;AAAQ,QAAA,SAAS,EAAED,OAAO,CAACE,MAA3B;AAAmC,QAAA,QAAQ,EAAE,KAA7C;AAAoD,QAAA,OAAO,EAAED;AAA7D,sBACE,gCAAC,eAAD,OADF,oBADF;AAMD;;;EAf+BE,kBAAMC,S;;;iCAA3BN,Y,eACQ;AACjBE,EAAAA,OAAO,EAAEK,sBAAUC,MAAV,CAAiBC,UADT;AAEjBN,EAAAA,UAAU,EAAEI,sBAAUG,IAAV,CAAeD;AAFV,C;;AAiBrB,IAAME,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBR,IAAAA,MAAM,EAAE;AACNS,MAAAA,OAAO,EAAE,MADH;AAENC,MAAAA,SAAS,EAAE,YAFL;AAGNC,MAAAA,MAAM,EAAE,CAHF;AAINC,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAJ7B;AADe,GAAL;AAAA,CAApB;;eASe,wBAAWP,MAAX,EAAmBX,YAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@material-ui/core/Button';\nimport { withStyles } from '@material-ui/core/styles';\nimport AddButton from '@material-ui/icons/Add';\n\nexport class AddRowButton extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n onAddClick: PropTypes.func.isRequired\n };\n\n render() {\n const { classes, onAddClick } = this.props;\n\n return (\n <Button className={classes.button} disabled={false} onClick={onAddClick}>\n <AddButton />\n Add Another Row\n </Button>\n );\n }\n}\n\nconst styles = theme => ({\n button: {\n display: 'flex',\n alignSelf: 'flex-start',\n margin: 0,\n marginBottom: theme.spacing.unit * 2\n }\n});\n\nexport default withStyles(styles)(AddRowButton);\n"],"file":"add-row.js"}
1
+ {"version":3,"sources":["../src/add-row.jsx"],"names":["AddRowButton","props","classes","onAddClick","button","React","Component","PropTypes","object","isRequired","func","styles","theme","display","alignSelf","margin","marginBottom","spacing","unit"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEaA,Y;;;;;;;;;;;;WAMX,kBAAS;AACP,wBAAgC,KAAKC,KAArC;AAAA,UAAQC,OAAR,eAAQA,OAAR;AAAA,UAAiBC,UAAjB,eAAiBA,UAAjB;AAEA,0BACE,gCAAC,kBAAD;AAAQ,QAAA,SAAS,EAAED,OAAO,CAACE,MAA3B;AAAmC,QAAA,QAAQ,EAAE,KAA7C;AAAoD,QAAA,OAAO,EAAED;AAA7D,sBACE,gCAAC,eAAD,OADF,oBADF;AAMD;;;EAf+BE,kBAAMC,S;;;iCAA3BN,Y,eACQ;AACjBE,EAAAA,OAAO,EAAEK,sBAAUC,MAAV,CAAiBC,UADT;AAEjBN,EAAAA,UAAU,EAAEI,sBAAUG,IAAV,CAAeD;AAFV,C;;AAiBrB,IAAME,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBR,IAAAA,MAAM,EAAE;AACNS,MAAAA,OAAO,EAAE,MADH;AAENC,MAAAA,SAAS,EAAE,YAFL;AAGNC,MAAAA,MAAM,EAAE,CAHF;AAINC,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAJ7B;AADe,GAAL;AAAA,CAApB;;eASe,wBAAWP,MAAX,EAAmBX,YAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@material-ui/core/Button';\nimport { withStyles } from '@material-ui/core/styles';\nimport AddButton from '@material-ui/icons/Add';\n\nexport class AddRowButton extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n onAddClick: PropTypes.func.isRequired\n };\n\n render() {\n const { classes, onAddClick } = this.props;\n\n return (\n <Button className={classes.button} disabled={false} onClick={onAddClick}>\n <AddButton />\n Add Another Row\n </Button>\n );\n }\n}\n\nconst styles = theme => ({\n button: {\n display: 'flex',\n alignSelf: 'flex-start',\n margin: 0,\n marginBottom: theme.spacing.unit * 2\n }\n});\n\nexport default withStyles(styles)(AddRowButton);\n"],"file":"add-row.js"}
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
10
  exports["default"] = void 0;
11
11
 
12
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
13
+
12
14
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
15
 
14
16
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -35,8 +37,6 @@ var _Typography = _interopRequireDefault(require("@material-ui/core/Typography")
35
37
 
36
38
  var _styles = require("@material-ui/core/styles");
37
39
 
38
- var _drag = require("@pie-lib/drag");
39
-
40
40
  var _addRow = _interopRequireDefault(require("./add-row"));
41
41
 
42
42
  var _row = _interopRequireDefault(require("./row"));
@@ -49,13 +49,17 @@ var _editableHtml = _interopRequireWildcard(require("@pie-lib/editable-html"));
49
49
 
50
50
  var _common = require("./common");
51
51
 
52
- 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; }
52
+ 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); }
53
53
 
54
- 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; }
54
+ 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; }
55
+
56
+ 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; }
57
+
58
+ 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; }
55
59
 
56
60
  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); }; }
57
61
 
58
- 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; } }
62
+ 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; } }
59
63
 
60
64
  var log = (0, _debug["default"])('pie-elements:match:configure');
61
65
 
@@ -112,6 +116,11 @@ var styles = function styles(theme) {
112
116
  '&> div': {
113
117
  fontWeight: 'bold'
114
118
  }
119
+ },
120
+ errorText: {
121
+ fontSize: '12px',
122
+ color: 'red',
123
+ paddingTop: '5px'
115
124
  }
116
125
  };
117
126
  };
@@ -143,9 +152,25 @@ var AnswerConfigBlock = /*#__PURE__*/function (_React$Component) {
143
152
 
144
153
  var newModel = _objectSpread({}, model);
145
154
 
146
- var rows = newModel.rows;
155
+ var rows = newModel.rows || [];
147
156
  log('[moveRow]: ', from, to);
148
- var update = (0, _drag.swap)(rows, from, to);
157
+
158
+ var _rows$reduce = rows.reduce(function (acc, item, index) {
159
+ if (index === from) {
160
+ acc.movedRow = item;
161
+ } else {
162
+ acc.remainingRows.push(item);
163
+ }
164
+
165
+ return acc;
166
+ }, {
167
+ movedRow: null,
168
+ remainingRows: []
169
+ }),
170
+ movedRow = _rows$reduce.movedRow,
171
+ remainingRows = _rows$reduce.remainingRows;
172
+
173
+ var update = [].concat((0, _toConsumableArray2["default"])(remainingRows.slice(0, to)), [movedRow], (0, _toConsumableArray2["default"])(remainingRows.slice(to)));
149
174
  log('update: ', update);
150
175
  newModel.rows = update;
151
176
  onChange(newModel);
@@ -224,13 +249,27 @@ var AnswerConfigBlock = /*#__PURE__*/function (_React$Component) {
224
249
  model = _this$props4.model,
225
250
  onAddRow = _this$props4.onAddRow,
226
251
  imageSupport = _this$props4.imageSupport,
227
- configuration = _this$props4.configuration;
252
+ configuration = _this$props4.configuration,
253
+ toolbarOpts = _this$props4.toolbarOpts,
254
+ spellCheck = _this$props4.spellCheck;
228
255
 
229
256
  var _ref2 = configuration || {},
230
257
  _ref2$headers = _ref2.headers,
231
- headers = _ref2$headers === void 0 ? {} : _ref2$headers;
258
+ headers = _ref2$headers === void 0 ? {} : _ref2$headers,
259
+ _ref2$maxImageWidth = _ref2.maxImageWidth,
260
+ maxImageWidth = _ref2$maxImageWidth === void 0 ? {} : _ref2$maxImageWidth,
261
+ _ref2$maxImageHeight = _ref2.maxImageHeight,
262
+ maxImageHeight = _ref2$maxImageHeight === void 0 ? {} : _ref2$maxImageHeight;
232
263
 
233
264
  var dialog = this.state.dialog;
265
+
266
+ var _ref3 = model || {},
267
+ errors = _ref3.errors;
268
+
269
+ var _ref4 = errors || {},
270
+ correctResponseError = _ref4.correctResponseError,
271
+ rowsErrors = _ref4.rowsErrors;
272
+
234
273
  var filteredDefaultPlugins = (_editableHtml.DEFAULT_PLUGINS || []).filter(function (p) {
235
274
  return p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list';
236
275
  });
@@ -242,12 +281,16 @@ var AnswerConfigBlock = /*#__PURE__*/function (_React$Component) {
242
281
  disabled: true
243
282
  }
244
283
  };
284
+ var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
285
+ var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
245
286
  return /*#__PURE__*/React.createElement("div", {
246
287
  className: classes.container
247
288
  }, /*#__PURE__*/React.createElement(_Typography["default"], {
248
289
  type: "body1",
249
290
  component: "div"
250
- }, "Click on the labels to edit or remove. Set the correct answers by clicking each correct answer per row."), /*#__PURE__*/React.createElement("div", {
291
+ }, "Click on the labels to edit or remove. Set the correct answers by clicking each correct answer per row."), correctResponseError && /*#__PURE__*/React.createElement("div", {
292
+ className: classes.errorText
293
+ }, correctResponseError), /*#__PURE__*/React.createElement("div", {
251
294
  className: classes.rowTable
252
295
  }, /*#__PURE__*/React.createElement("div", {
253
296
  className: classes.rowContainer
@@ -263,7 +306,8 @@ var AnswerConfigBlock = /*#__PURE__*/function (_React$Component) {
263
306
  activePlugins: filteredDefaultPlugins,
264
307
  pluginProps: labelPlugins,
265
308
  autoWidthToolbar: true,
266
- allowValidation: true
309
+ allowValidation: true,
310
+ spellCheck: spellCheck
267
311
  }));
268
312
  }), /*#__PURE__*/React.createElement("div", {
269
313
  className: classes.deleteIcon
@@ -281,7 +325,12 @@ var AnswerConfigBlock = /*#__PURE__*/function (_React$Component) {
281
325
  onChange: _this2.props.onChange,
282
326
  onMoveRow: _this2.moveRow,
283
327
  imageSupport: imageSupport,
284
- enableImages: model.enableImages
328
+ enableImages: model.enableImages,
329
+ toolbarOpts: toolbarOpts,
330
+ spellCheck: spellCheck,
331
+ error: rowsErrors && rowsErrors[row.id],
332
+ maxImageWidth: maxImageWidth && maxImageWidth.rowTitles || defaultImageMaxWidth,
333
+ maxImageHeight: maxImageHeight && maxImageHeight.rowTitles || defaultImageMaxHeight
285
334
  });
286
335
  }), /*#__PURE__*/React.createElement(_addRow["default"], {
287
336
  onAddClick: onAddRow
@@ -305,7 +354,8 @@ var AnswerConfigBlock = /*#__PURE__*/function (_React$Component) {
305
354
  imageSupport: _propTypes["default"].shape({
306
355
  add: _propTypes["default"].func.isRequired,
307
356
  "delete": _propTypes["default"].func.isRequired
308
- })
357
+ }),
358
+ toolbarOpts: _propTypes["default"].object
309
359
  });
310
360
 
311
361
  var _default = (0, _styles.withStyles)(styles)(AnswerConfigBlock);