@pie-element/placement-ordering 7.7.9 → 7.8.1-beta.1443
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 +374 -0
- package/README.md +1 -1
- package/configure/CHANGELOG.md +356 -0
- package/configure/lib/choice-editor.js +73 -65
- package/configure/lib/choice-editor.js.map +1 -1
- package/configure/lib/choice-tile.js +44 -48
- package/configure/lib/choice-tile.js.map +1 -1
- package/configure/lib/defaults.js +23 -0
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/design.js +204 -94
- package/configure/lib/design.js.map +1 -1
- package/configure/lib/help.js.map +1 -1
- package/configure/lib/index.js +16 -2
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/utils.js +14 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +6 -6
- package/controller/CHANGELOG.md +57 -0
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +67 -16
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/scoring.js +3 -3
- package/controller/lib/scoring.js.map +1 -1
- package/controller/package.json +3 -3
- package/docs/config-schema.json +145 -0
- package/docs/config-schema.json.md +113 -1
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +9 -10
- package/docs/demo/index.html +1 -2
- package/docs/demo/session.js +1 -1
- package/docs/pie-schema.json +48 -0
- package/docs/pie-schema.json.md +36 -0
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/main.js.map +1 -1
- package/lib/ordering.js +2 -1
- package/lib/ordering.js.map +1 -1
- package/lib/placement-ordering.js +73 -30
- package/lib/placement-ordering.js.map +1 -1
- package/lib/tile.js.map +1 -1
- package/lib/tiler.js +2 -2
- package/lib/tiler.js.map +1 -1
- package/package.json +7 -7
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,362 @@
|
|
|
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
|
+
# [6.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.4.0...@pie-element/placement-ordering-configure@6.5.0) (2023-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [6.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.3.3...@pie-element/placement-ordering-configure@6.4.0) (2023-01-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* update pie-libs ([b174476](https://github.com/pie-framework/pie-elements/commit/b174476729119a0689f1f8adfc8c235246676cab))
|
|
23
|
+
* update pie-libs ([f72c3c8](https://github.com/pie-framework/pie-elements/commit/f72c3c8d8bc9bbf061bb81502317157a63c22972))
|
|
24
|
+
* update pie-libs ([8490729](https://github.com/pie-framework/pie-elements/commit/8490729a2389d36fd3968f0806119fde96577842))
|
|
25
|
+
* **placement-ordering:** added configuration prop to hide the settings pannel PD-1999 + refactoring ([e293169](https://github.com/pie-framework/pie-elements/commit/e29316962aa5461ee864bd35e4e265a81ced6e35))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [6.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.3.2...@pie-element/placement-ordering-configure@6.3.3) (2022-12-21)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* updated pie-libs ([8cb5b90](https://github.com/pie-framework/pie-elements/commit/8cb5b90d501ccbdf5ffd764e6555faa48b8f54d6))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [6.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.3.1...@pie-element/placement-ordering-configure@6.3.2) (2022-12-20)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* updated pie-libs ([6549302](https://github.com/pie-framework/pie-elements/commit/65493026fbf356c5ab752ae6a14d961d4b256368))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## [6.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.3.0...@pie-element/placement-ordering-configure@6.3.1) (2022-12-07)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* revert Patricia's latest changes related to PD-2155, revert Carla's changes related to PD-1559, and updated the approach of setting a default session value PD-2155 ([890f3a3](https://github.com/pie-framework/pie-elements/commit/890f3a3fb9077d7f2e53062ad9d4cd43c7d30365))
|
|
59
|
+
* update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
|
|
60
|
+
* update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
|
|
61
|
+
* updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
|
|
62
|
+
* updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
|
|
63
|
+
* updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
|
|
64
|
+
* updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
|
|
65
|
+
* **placement-ordering:** disable feedbackEnabled if feedback object is not present in model PD-2182 ([98aa82a](https://github.com/pie-framework/pie-elements/commit/98aa82a7f153471217e53c3ff8e942d9a9b31975))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# [6.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.2.3...@pie-element/placement-ordering-configure@6.3.0) (2022-11-15)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
* **placement-ordering:** fix performance issue and update react-dnd version PD-2129 ([7a3d091](https://github.com/pie-framework/pie-elements/commit/7a3d0915d92932ac3f9514d263536cc5142c972e))
|
|
77
|
+
* **placement-ordering:** move the delete choice button PD-2170 ([bd526c8](https://github.com/pie-framework/pie-elements/commit/bd526c8935c539ecf1d65d9aabc367f52a6b6b79))
|
|
78
|
+
* tests ([d6b6c66](https://github.com/pie-framework/pie-elements/commit/d6b6c6635afa0aae74de6509238d8394cf86717c))
|
|
79
|
+
* **placement-ordering:** shuffle choices in player, not only in authoring PD-2155 ([a1e7bea](https://github.com/pie-framework/pie-elements/commit/a1e7bea7efaf57a8abb68bd4dfa17ad86b5eaca9))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* **placement-ordering:** add a new label and change choices one PD-2162 ([8db41c9](https://github.com/pie-framework/pie-elements/commit/8db41c984791d12d4680a8ada35449006d69a18f))
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [6.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.2.2...@pie-element/placement-ordering-configure@6.2.3) (2022-11-11)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Bug Fixes
|
|
94
|
+
|
|
95
|
+
* **placement-ordering:** add sanity checks for withRubric ([89f3a8a](https://github.com/pie-framework/pie-elements/commit/89f3a8ab13629bb3d6405955a7b0316d44be90c1))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## [6.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.2.1...@pie-element/placement-ordering-configure@6.2.2) (2022-11-01)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
* **placement-ordering:** change labels to not be transformed to upper case PD-2154 ([1ababe8](https://github.com/pie-framework/pie-elements/commit/1ababe896ce692fb4ac6c76154faa96accbcdf46))
|
|
107
|
+
* **placement-ordering:** remove 'Ordering' subtitle PD-2153 ([c0654a2](https://github.com/pie-framework/pie-elements/commit/c0654a2061f33adb2fa8c95a6db4c93fe551c67c))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## [6.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.2.0...@pie-element/placement-ordering-configure@6.2.1) (2022-10-31)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Bug Fixes
|
|
117
|
+
|
|
118
|
+
* add choices validation in controller method, remove from autoring PD-2152 ([8c49a7f](https://github.com/pie-framework/pie-elements/commit/8c49a7f6500bf541e03d86276292189aeadb465a))
|
|
119
|
+
* imports and indentation ([f5e3b6b](https://github.com/pie-framework/pie-elements/commit/f5e3b6b1d025512354e57455bb89393ec6fdf968))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
# [6.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.9...@pie-element/placement-ordering-configure@6.2.0) (2022-10-17)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Bug Fixes
|
|
129
|
+
|
|
130
|
+
* update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Features
|
|
134
|
+
|
|
135
|
+
* set withRubric to false in item default configurations. Set rubricEnabled to true if it's enabled for drawing-response and extended-text-entry ([a209057](https://github.com/pie-framework/pie-elements/commit/a209057f5a3fa5438efc8595453c89c11959a8f5))
|
|
136
|
+
* update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
|
|
137
|
+
* **placement-ordering:** add pie-api config PD-23 ([8f87b30](https://github.com/pie-framework/pie-elements/commit/8f87b301a88e676849e2ef8e6db138e11b003767))
|
|
138
|
+
* **placement-ordering:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2106 ([03968e5](https://github.com/pie-framework/pie-elements/commit/03968e52e450a1b031c460576bd996e54630844a))
|
|
139
|
+
* **placement-ordering:** updated snapshot PD-2106 ([a4631de](https://github.com/pie-framework/pie-elements/commit/a4631de51d98124a6beb3fda2c5e7232e3476366))
|
|
140
|
+
* enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
|
|
141
|
+
* **placement-ordering:** add uploadSoundSupport property PD-23-updated ([18ca247](https://github.com/pie-framework/pie-elements/commit/18ca247c942324dc8a32c1a94fbfc610160c05d6))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## [6.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.8...@pie-element/placement-ordering-configure@6.1.9) (2022-09-29)
|
|
148
|
+
|
|
149
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## [6.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.7...@pie-element/placement-ordering-configure@6.1.8) (2022-09-14)
|
|
156
|
+
|
|
157
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## [6.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.6...@pie-element/placement-ordering-configure@6.1.7) (2022-08-31)
|
|
164
|
+
|
|
165
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
## [6.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.5...@pie-element/placement-ordering-configure@6.1.6) (2022-08-16)
|
|
172
|
+
|
|
173
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## [6.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.4...@pie-element/placement-ordering-configure@6.1.5) (2022-08-08)
|
|
180
|
+
|
|
181
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## [6.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.3...@pie-element/placement-ordering-configure@6.1.4) (2022-08-02)
|
|
188
|
+
|
|
189
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## [6.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.2...@pie-element/placement-ordering-configure@6.1.3) (2022-07-22)
|
|
196
|
+
|
|
197
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [6.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.1...@pie-element/placement-ordering-configure@6.1.2) (2022-07-20)
|
|
204
|
+
|
|
205
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## [6.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.1.0...@pie-element/placement-ordering-configure@6.1.1) (2022-07-19)
|
|
212
|
+
|
|
213
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
# [6.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@6.0.0...@pie-element/placement-ordering-configure@6.1.0) (2022-06-28)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Features
|
|
223
|
+
|
|
224
|
+
* **placement-ordering:** add maxImageWidth and maxImageHeight props PD-1801 ([dae17c0](https://github.com/pie-framework/pie-elements/commit/dae17c0567dfaf8a46228643977ff88ca934f1a6))
|
|
225
|
+
* **placement-ordering:** implement ui/ux for validation PD-1744 ([e0a18f3](https://github.com/pie-framework/pie-elements/commit/e0a18f32b57ed7f4ec4c7431634700cbe2fbae33))
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
# [6.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.12...@pie-element/placement-ordering-configure@6.0.0) (2022-06-28)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### chore
|
|
235
|
+
|
|
236
|
+
* Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### BREAKING CHANGES
|
|
240
|
+
|
|
241
|
+
* Image percent buttons were removed from toolbar.
|
|
242
|
+
New properties maxImageWidth and maxImageHeight were added.
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
## [5.6.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.11...@pie-element/placement-ordering-configure@5.6.12) (2022-06-13)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
## [5.6.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.10...@pie-element/placement-ordering-configure@5.6.11) (2022-05-30)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## [5.6.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.9...@pie-element/placement-ordering-configure@5.6.10) (2022-05-16)
|
|
265
|
+
|
|
266
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
## [5.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.8...@pie-element/placement-ordering-configure@5.6.9) (2022-05-09)
|
|
273
|
+
|
|
274
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
## [5.6.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.7...@pie-element/placement-ordering-configure@5.6.8) (2022-05-03)
|
|
281
|
+
|
|
282
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
## [5.6.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.6...@pie-element/placement-ordering-configure@5.6.7) (2022-04-12)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## [5.6.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.5...@pie-element/placement-ordering-configure@5.6.6) (2022-03-28)
|
|
297
|
+
|
|
298
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
## [5.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.4...@pie-element/placement-ordering-configure@5.6.5) (2022-03-22)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
## [5.6.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.3...@pie-element/placement-ordering-configure@5.6.4) (2022-03-08)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
## [5.6.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.2...@pie-element/placement-ordering-configure@5.6.3) (2022-03-08)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
## [5.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.1...@pie-element/placement-ordering-configure@5.6.2) (2022-02-21)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
## [5.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.6.0...@pie-element/placement-ordering-configure@5.6.1) (2022-02-04)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
# [5.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.5.8...@pie-element/placement-ordering-configure@5.6.0) (2022-01-24)
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### Bug Fixes
|
|
348
|
+
|
|
349
|
+
* **placement-ordering:** fix issues with dragging answer choices in authoring PD-1329 ([286a495](https://github.com/pie-framework/pie-elements/commit/286a495e313cb33227a8672f38331b283c283583))
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### Features
|
|
353
|
+
|
|
354
|
+
* **placement-ordering:** add baseline validation for authoring PD-600, PD-1334 ([2350279](https://github.com/pie-framework/pie-elements/commit/23502790000e3c4f14e4dae6744519b004eb1172))
|
|
355
|
+
* **placement-ordering:** add shuffle button to UI for authoring PD-1300 ([734fcda](https://github.com/pie-framework/pie-elements/commit/734fcda4b50b50cb54d66789b854f270818ba6fc))
|
|
356
|
+
* **placement-ordering:** remove list buttons from choice labels PD-1337 ([1f1f927](https://github.com/pie-framework/pie-elements/commit/1f1f9276a29d84b551a3eaa93e15738ef1e22681))
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
6
362
|
## [5.5.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/placement-ordering-configure@5.5.7...@pie-element/placement-ordering-configure@5.5.8) (2022-01-10)
|
|
7
363
|
|
|
8
364
|
**Note:** Version bump only for package @pie-element/placement-ordering-configure
|
|
@@ -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["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
|
|
@@ -45,38 +45,17 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
|
45
45
|
|
|
46
46
|
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _renderUi = require("@pie-lib/render-ui");
|
|
49
49
|
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
var _DialogActions = _interopRequireDefault(require("@material-ui/core/DialogActions"));
|
|
50
|
+
var _configUi = require("@pie-lib/config-ui");
|
|
53
51
|
|
|
54
52
|
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); }; }
|
|
55
53
|
|
|
56
54
|
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; } }
|
|
57
55
|
|
|
58
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
59
|
-
|
|
60
|
-
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; }
|
|
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; }
|
|
61
57
|
|
|
62
|
-
var
|
|
63
|
-
var title = _ref.title,
|
|
64
|
-
open = _ref.open,
|
|
65
|
-
onOk = _ref.onOk;
|
|
66
|
-
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
67
|
-
open: open
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], null, title), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, onOk && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
69
|
-
onClick: onOk,
|
|
70
|
-
color: "primary"
|
|
71
|
-
}, "OK")));
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
exports.InfoDialog = InfoDialog;
|
|
75
|
-
InfoDialog.propTypes = {
|
|
76
|
-
title: _propTypes["default"].string,
|
|
77
|
-
open: _propTypes["default"].bool,
|
|
78
|
-
onOk: _propTypes["default"].func
|
|
79
|
-
};
|
|
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; }
|
|
80
59
|
|
|
81
60
|
function findFreeChoiceSlot(choices) {
|
|
82
61
|
var slot = 1;
|
|
@@ -197,7 +176,7 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
197
176
|
(0, _classCallCheck2["default"])(this, ChoiceEditor);
|
|
198
177
|
_this = _super.call(this, props);
|
|
199
178
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
200
|
-
|
|
179
|
+
warning: {
|
|
201
180
|
open: false
|
|
202
181
|
}
|
|
203
182
|
});
|
|
@@ -207,8 +186,7 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
207
186
|
var _this$props = _this.props,
|
|
208
187
|
choices = _this$props.choices,
|
|
209
188
|
onChange = _this$props.onChange,
|
|
210
|
-
correctResponse = _this$props.correctResponse
|
|
211
|
-
toolbarOpts = _this$props.toolbarOpts;
|
|
189
|
+
correctResponse = _this$props.correctResponse;
|
|
212
190
|
var index = choices.findIndex(function (c) {
|
|
213
191
|
return c.id === choice.id;
|
|
214
192
|
});
|
|
@@ -227,16 +205,9 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
227
205
|
|
|
228
206
|
if (choices && choices.length === 3) {
|
|
229
207
|
_this.setState({
|
|
230
|
-
|
|
208
|
+
warning: {
|
|
231
209
|
open: true,
|
|
232
|
-
|
|
233
|
-
onOk: function onOk() {
|
|
234
|
-
_this.setState({
|
|
235
|
-
dialog: {
|
|
236
|
-
open: false
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
}
|
|
210
|
+
text: "There have to be at least 3 ".concat(choicesLabel, ".")
|
|
240
211
|
}
|
|
241
212
|
});
|
|
242
213
|
} else {
|
|
@@ -259,16 +230,9 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
259
230
|
|
|
260
231
|
if (choices && choices.length === 10) {
|
|
261
232
|
_this.setState({
|
|
262
|
-
|
|
233
|
+
warning: {
|
|
263
234
|
open: true,
|
|
264
|
-
|
|
265
|
-
onOk: function onOk() {
|
|
266
|
-
_this.setState({
|
|
267
|
-
dialog: {
|
|
268
|
-
open: false
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
}
|
|
235
|
+
text: "There can be maximum 10 ".concat(choicesLabel, ".")
|
|
272
236
|
}
|
|
273
237
|
});
|
|
274
238
|
} else {
|
|
@@ -347,14 +311,23 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
347
311
|
toolbarOpts = _this$props5.toolbarOpts,
|
|
348
312
|
singularChoiceLabel = _this$props5.singularChoiceLabel,
|
|
349
313
|
pluralChoiceLabel = _this$props5.pluralChoiceLabel,
|
|
350
|
-
choicesLabel = _this$props5.choicesLabel
|
|
351
|
-
|
|
314
|
+
choicesLabel = _this$props5.choicesLabel,
|
|
315
|
+
spellCheck = _this$props5.spellCheck,
|
|
316
|
+
maxImageWidth = _this$props5.maxImageWidth,
|
|
317
|
+
maxImageHeight = _this$props5.maxImageHeight,
|
|
318
|
+
errors = _this$props5.errors;
|
|
319
|
+
var warning = this.state.warning;
|
|
320
|
+
|
|
321
|
+
var _ref = errors || {},
|
|
322
|
+
choicesErrors = _ref.choicesErrors,
|
|
323
|
+
orderError = _ref.orderError;
|
|
324
|
+
|
|
352
325
|
var ordering = {
|
|
353
326
|
choices: choices,
|
|
354
327
|
response: !correctResponse || (0, _isEmpty["default"])(correctResponse) ? new Array(choices.length) : correctResponse,
|
|
355
328
|
tiles: buildTiles(choices, correctResponse, this.instanceId)
|
|
356
329
|
};
|
|
357
|
-
var
|
|
330
|
+
var vTilerStyle = {
|
|
358
331
|
gridTemplateColumns: 'repeat(2, 1fr)',
|
|
359
332
|
gridTemplateRows: "repeat(".concat(choices.length, ", 1fr)")
|
|
360
333
|
};
|
|
@@ -362,24 +335,41 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
362
335
|
className: classes.choiceEditor
|
|
363
336
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
364
337
|
className: classes.vtiler,
|
|
365
|
-
style:
|
|
366
|
-
|
|
338
|
+
style: {
|
|
339
|
+
gridTemplateColumns: 'repeat(2, 1fr)'
|
|
340
|
+
}
|
|
341
|
+
}, /*#__PURE__*/_react["default"].createElement(_renderUi.InputContainer, {
|
|
342
|
+
label: "Student ".concat(choicesLabel || 'Choices'),
|
|
343
|
+
className: classes.columnLabel
|
|
344
|
+
}), /*#__PURE__*/_react["default"].createElement(_renderUi.InputContainer, {
|
|
345
|
+
label: "Correct Order",
|
|
346
|
+
className: classes.columnLabel
|
|
347
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
348
|
+
className: classes.vtiler,
|
|
349
|
+
style: vTilerStyle
|
|
350
|
+
}, ordering.tiles.map(function (choice, index) {
|
|
367
351
|
return /*#__PURE__*/_react["default"].createElement(_choiceTile["default"], {
|
|
368
|
-
choice:
|
|
352
|
+
choice: choice,
|
|
369
353
|
index: index,
|
|
370
354
|
key: index,
|
|
371
355
|
imageSupport: imageSupport,
|
|
372
|
-
onDelete: _this2.onDelete.bind(_this2,
|
|
356
|
+
onDelete: _this2.onDelete.bind(_this2, choice),
|
|
373
357
|
onChoiceChange: _this2.onChoiceChange,
|
|
374
358
|
onDropChoice: function onDropChoice(source, index) {
|
|
375
|
-
return _this2.onDropChoice(ordering,
|
|
359
|
+
return _this2.onDropChoice(ordering, choice, source, index);
|
|
376
360
|
},
|
|
377
361
|
disableImages: disableImages,
|
|
378
362
|
toolbarOpts: toolbarOpts,
|
|
379
363
|
choices: choices,
|
|
380
|
-
choicesLabel: choicesLabel
|
|
364
|
+
choicesLabel: choicesLabel,
|
|
365
|
+
spellCheck: spellCheck,
|
|
366
|
+
maxImageWidth: maxImageWidth,
|
|
367
|
+
maxImageHeight: maxImageHeight,
|
|
368
|
+
error: (choicesErrors === null || choicesErrors === void 0 ? void 0 : choicesErrors[choice.id]) || orderError && ' ' || null
|
|
381
369
|
});
|
|
382
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
370
|
+
})), orderError && /*#__PURE__*/_react["default"].createElement("div", {
|
|
371
|
+
className: classes.errorText
|
|
372
|
+
}, orderError), /*#__PURE__*/_react["default"].createElement("div", {
|
|
383
373
|
className: classes.controls
|
|
384
374
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
385
375
|
onClick: this.shuffleChoices,
|
|
@@ -399,10 +389,17 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
399
389
|
root: classes.addButtonRoot,
|
|
400
390
|
label: classes.addButtonLabel
|
|
401
391
|
}
|
|
402
|
-
}, "ADD ".concat(singularChoiceLabel).toUpperCase())), /*#__PURE__*/_react["default"].createElement(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
392
|
+
}, "ADD ".concat(singularChoiceLabel).toUpperCase())), /*#__PURE__*/_react["default"].createElement(_configUi.AlertDialog, {
|
|
393
|
+
open: warning.open,
|
|
394
|
+
title: "Warning",
|
|
395
|
+
text: warning.text,
|
|
396
|
+
onConfirm: function onConfirm() {
|
|
397
|
+
return _this2.setState({
|
|
398
|
+
warning: {
|
|
399
|
+
open: false
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
}
|
|
406
403
|
}));
|
|
407
404
|
}
|
|
408
405
|
}]);
|
|
@@ -423,14 +420,15 @@ var ChoiceEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
423
420
|
placementArea: _propTypes["default"].bool,
|
|
424
421
|
singularChoiceLabel: _propTypes["default"].string,
|
|
425
422
|
pluralChoiceLabel: _propTypes["default"].string,
|
|
426
|
-
choicesLabel: _propTypes["default"].string
|
|
423
|
+
choicesLabel: _propTypes["default"].string,
|
|
424
|
+
errors: _propTypes["default"].object
|
|
427
425
|
});
|
|
428
426
|
|
|
429
427
|
var styles = function styles(theme) {
|
|
430
428
|
return {
|
|
431
429
|
allToggle: {},
|
|
432
430
|
choiceEditor: {
|
|
433
|
-
marginTop:
|
|
431
|
+
marginTop: theme.spacing.unit
|
|
434
432
|
},
|
|
435
433
|
controls: {
|
|
436
434
|
display: 'flex',
|
|
@@ -443,8 +441,8 @@ var styles = function styles(theme) {
|
|
|
443
441
|
fill: theme.palette.primary[500]
|
|
444
442
|
},
|
|
445
443
|
addButtonRoot: {
|
|
446
|
-
marginTop:
|
|
447
|
-
paddingHorizontal:
|
|
444
|
+
marginTop: theme.spacing.unit * 3,
|
|
445
|
+
paddingHorizontal: theme.spacing.unit * 1.5
|
|
448
446
|
},
|
|
449
447
|
addButtonLabel: {
|
|
450
448
|
transition: 'opacity 200ms linear',
|
|
@@ -456,6 +454,16 @@ var styles = function styles(theme) {
|
|
|
456
454
|
gridAutoFlow: 'column',
|
|
457
455
|
display: 'grid',
|
|
458
456
|
gridGap: '10px'
|
|
457
|
+
},
|
|
458
|
+
columnLabel: {
|
|
459
|
+
width: '100%',
|
|
460
|
+
paddingTop: theme.spacing.unit * 3,
|
|
461
|
+
marginTop: theme.spacing.unit * 2
|
|
462
|
+
},
|
|
463
|
+
errorText: {
|
|
464
|
+
fontSize: theme.typography.fontSize - 2,
|
|
465
|
+
color: 'red',
|
|
466
|
+
paddingTop: theme.spacing.unit
|
|
459
467
|
}
|
|
460
468
|
};
|
|
461
469
|
};
|