@pie-element/multiple-choice 6.1.11 → 6.2.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +369 -0
  2. package/README.md +1 -1
  3. package/configure/CHANGELOG.md +338 -0
  4. package/configure/lib/defaults.js +22 -1
  5. package/configure/lib/defaults.js.map +1 -1
  6. package/configure/lib/index.js +16 -2
  7. package/configure/lib/index.js.map +1 -1
  8. package/configure/lib/main.js +204 -159
  9. package/configure/lib/main.js.map +1 -1
  10. package/configure/lib/utils.js +18 -0
  11. package/configure/lib/utils.js.map +1 -0
  12. package/configure/package.json +5 -5
  13. package/controller/CHANGELOG.md +35 -0
  14. package/controller/lib/defaults.js.map +1 -1
  15. package/controller/lib/index.js +61 -3
  16. package/controller/lib/index.js.map +1 -1
  17. package/controller/lib/utils.js.map +1 -1
  18. package/controller/package.json +2 -2
  19. package/docs/config-schema.json +115 -0
  20. package/docs/config-schema.json.md +89 -1
  21. package/docs/demo/config.js +2 -2
  22. package/docs/demo/generate.js +13 -11
  23. package/docs/demo/index.html +1 -1
  24. package/docs/demo/session.js +1 -1
  25. package/docs/pie-schema.json +38 -0
  26. package/docs/pie-schema.json.md +28 -0
  27. package/lib/choice-input.js +17 -10
  28. package/lib/choice-input.js.map +1 -1
  29. package/lib/choice.js +14 -3
  30. package/lib/choice.js.map +1 -1
  31. package/lib/index.js +1 -1
  32. package/lib/index.js.map +1 -1
  33. package/lib/main.js +4 -1
  34. package/lib/main.js.map +1 -1
  35. package/lib/multiple-choice.js +12 -3
  36. package/lib/multiple-choice.js.map +1 -1
  37. package/lib/print.js +2 -0
  38. package/lib/print.js.map +1 -1
  39. package/lib/session-updater.js.map +1 -1
  40. package/package.json +6 -6
  41. package/module/configure.js +0 -771
  42. package/module/controller.js +0 -20641
  43. package/module/demo.js +0 -77
  44. package/module/element.js +0 -2004
  45. package/module/index.html +0 -21
  46. package/module/manifest.json +0 -14
  47. package/module/print-demo.js +0 -115
  48. package/module/print.html +0 -18
  49. package/module/print.js +0 -1966
package/CHANGELOG.md CHANGED
@@ -3,6 +3,375 @@
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
+ # [7.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.5.0...@pie-element/multiple-choice@7.6.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
+ # [7.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.4.1...@pie-element/multiple-choice@7.5.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
+ * **multiple-choice:** added configuration prop to hide the settings pannel PD-1999 + refactoring ([f0f3f6e](https://github.com/pie-framework/pie-elements/commit/f0f3f6e95f9bd96196dec2ba5e861b5bf170e146))
26
+
27
+
28
+
29
+
30
+
31
+ ## [7.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.4.0...@pie-element/multiple-choice@7.4.1) (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
+ # [7.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.3.3...@pie-element/multiple-choice@7.4.0) (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
+ ### Features
51
+
52
+ * **pie-models:** update schemas for extended-text-entry in order to include the updated spellchek property ([bf4b656](https://github.com/pie-framework/pie-elements/commit/bf4b656241887acf8e2aa1264e747c0c338ed727))
53
+
54
+
55
+
56
+
57
+
58
+ ## [7.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.3.2...@pie-element/multiple-choice@7.3.3) (2022-12-07)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
64
+ * update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
65
+ * updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
66
+ * updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
67
+ * updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
68
+ * updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
69
+
70
+
71
+
72
+
73
+
74
+ ## [7.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.3.1...@pie-element/multiple-choice@7.3.2) (2022-11-15)
75
+
76
+ **Note:** Version bump only for package @pie-element/multiple-choice
77
+
78
+
79
+
80
+
81
+
82
+ ## [7.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.3.0...@pie-element/multiple-choice@7.3.1) (2022-11-11)
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * **multiple-choice:** add sanity checks for withRubric ([76558ed](https://github.com/pie-framework/pie-elements/commit/76558ed68c4c2f038640864996197d8139431c3e))
88
+
89
+
90
+
91
+
92
+
93
+ # [7.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.2.1...@pie-element/multiple-choice@7.3.0) (2022-11-01)
94
+
95
+
96
+ ### Features
97
+
98
+ * add a different property in the config, forceEnabled, to force a value ([300c664](https://github.com/pie-framework/pie-elements/commit/300c664618f46177137deef3bced2d096cdb8126))
99
+
100
+
101
+
102
+
103
+
104
+ ## [7.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.2.0...@pie-element/multiple-choice@7.2.1) (2022-10-31)
105
+
106
+ **Note:** Version bump only for package @pie-element/multiple-choice
107
+
108
+
109
+
110
+
111
+
112
+ # [7.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.9...@pie-element/multiple-choice@7.2.0) (2022-10-17)
113
+
114
+
115
+ ### Bug Fixes
116
+
117
+ * **multiple-choice:** add upload file option in choices ([1968e45](https://github.com/pie-framework/pie-elements/commit/1968e45753265c4e7267017b0d59cc745a115aa1))
118
+
119
+
120
+ ### Features
121
+
122
+ * enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
123
+ * 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))
124
+ * update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
125
+ * **categorize:** add pie-api config PD-23 ([79a3424](https://github.com/pie-framework/pie-elements/commit/79a3424efbb4e32097028da0bada6c493ad4d0e5))
126
+ * **categorize:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2019 ([fc719ea](https://github.com/pie-framework/pie-elements/commit/fc719ea36f0a3fd74829e4e550222d1d1a9b0df8))
127
+ * **categorize:** add uploadSoundSupport property PD-23-updated ([74eb10b](https://github.com/pie-framework/pie-elements/commit/74eb10b6187cdd5c068820e5079e88230246b0d4))
128
+ * **multiple-choice:** add pie-api config PD-23 ([2568ef7](https://github.com/pie-framework/pie-elements/commit/2568ef75200a95d014f803addda8addf520b2abc))
129
+ * **multiple-choice:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2019 ([92668e4](https://github.com/pie-framework/pie-elements/commit/92668e40e6e7f6a015c8ee49ab773c4d4cd09dc0))
130
+ * **multiple-choice:** add uploadSoundSupport property + proper events emit events (wip) PD-23-updated ([488f422](https://github.com/pie-framework/pie-elements/commit/488f4224f95de2ffdcb11ac608d7c627146b6216))
131
+ * **multiple-choice:** bump pie-configure-events and editable-html versions ([aaaaf46](https://github.com/pie-framework/pie-elements/commit/aaaaf46b44b0bed74fd09f05ccf5fcda2f8bb71f))
132
+
133
+
134
+
135
+
136
+
137
+ ## [7.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.8...@pie-element/multiple-choice@7.1.9) (2022-09-29)
138
+
139
+ **Note:** Version bump only for package @pie-element/multiple-choice
140
+
141
+
142
+
143
+
144
+
145
+ ## [7.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.7...@pie-element/multiple-choice@7.1.8) (2022-09-14)
146
+
147
+ **Note:** Version bump only for package @pie-element/multiple-choice
148
+
149
+
150
+
151
+
152
+
153
+ ## [7.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.6...@pie-element/multiple-choice@7.1.7) (2022-08-31)
154
+
155
+ **Note:** Version bump only for package @pie-element/multiple-choice
156
+
157
+
158
+
159
+
160
+
161
+ ## [7.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.5...@pie-element/multiple-choice@7.1.6) (2022-08-16)
162
+
163
+ **Note:** Version bump only for package @pie-element/multiple-choice
164
+
165
+
166
+
167
+
168
+
169
+ ## [7.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.4...@pie-element/multiple-choice@7.1.5) (2022-08-08)
170
+
171
+ **Note:** Version bump only for package @pie-element/multiple-choice
172
+
173
+
174
+
175
+
176
+
177
+ ## [7.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.3...@pie-element/multiple-choice@7.1.4) (2022-08-02)
178
+
179
+ **Note:** Version bump only for package @pie-element/multiple-choice
180
+
181
+
182
+
183
+
184
+
185
+ ## [7.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.2...@pie-element/multiple-choice@7.1.3) (2022-07-22)
186
+
187
+ **Note:** Version bump only for package @pie-element/multiple-choice
188
+
189
+
190
+
191
+
192
+
193
+ ## [7.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.1...@pie-element/multiple-choice@7.1.2) (2022-07-20)
194
+
195
+ **Note:** Version bump only for package @pie-element/multiple-choice
196
+
197
+
198
+
199
+
200
+
201
+ ## [7.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.1.0...@pie-element/multiple-choice@7.1.1) (2022-07-19)
202
+
203
+ **Note:** Version bump only for package @pie-element/multiple-choice
204
+
205
+
206
+
207
+
208
+
209
+ # [7.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@7.0.0...@pie-element/multiple-choice@7.1.0) (2022-06-28)
210
+
211
+
212
+ ### Features
213
+
214
+ * **multiple-choice:** add maxImageWidth and maxImageHeight props PD-1801 ([36b9617](https://github.com/pie-framework/pie-elements/commit/36b961715f3913606b8abb9e9aae764bf02c8d7a))
215
+
216
+
217
+
218
+
219
+
220
+ # [7.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.3.4...@pie-element/multiple-choice@7.0.0) (2022-06-28)
221
+
222
+
223
+ ### chore
224
+
225
+ * Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
226
+
227
+
228
+ ### BREAKING CHANGES
229
+
230
+ * Image percent buttons were removed from toolbar.
231
+ New properties maxImageWidth and maxImageHeight were added.
232
+
233
+
234
+
235
+
236
+
237
+ ## [6.3.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.3.3...@pie-element/multiple-choice@6.3.4) (2022-06-13)
238
+
239
+ **Note:** Version bump only for package @pie-element/multiple-choice
240
+
241
+
242
+
243
+
244
+
245
+ ## [6.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.3.2...@pie-element/multiple-choice@6.3.3) (2022-05-30)
246
+
247
+ **Note:** Version bump only for package @pie-element/multiple-choice
248
+
249
+
250
+
251
+
252
+
253
+ ## [6.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.3.1...@pie-element/multiple-choice@6.3.2) (2022-05-16)
254
+
255
+ **Note:** Version bump only for package @pie-element/multiple-choice
256
+
257
+
258
+
259
+
260
+
261
+ ## [6.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.3.0...@pie-element/multiple-choice@6.3.1) (2022-05-09)
262
+
263
+ **Note:** Version bump only for package @pie-element/multiple-choice
264
+
265
+
266
+
267
+
268
+
269
+ # [6.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.7...@pie-element/multiple-choice@6.3.0) (2022-05-03)
270
+
271
+
272
+ ### Bug Fixes
273
+
274
+ * build ([7b3a278](https://github.com/pie-framework/pie-elements/commit/7b3a278f2c83562cbe848bd08c38a20d6cd2b8a0))
275
+ * fix crash ([0b5ab48](https://github.com/pie-framework/pie-elements/commit/0b5ab48ecf0468ac7fb724a152a5640dc25fea62))
276
+ * **multiple-choice:** comment validation ui/ux ([89e731c](https://github.com/pie-framework/pie-elements/commit/89e731c549a3da60f4dcbdb2e131d53a4587b5ea))
277
+ * added getters for the session PD-1668 ([de8a754](https://github.com/pie-framework/pie-elements/commit/de8a754f4580370b127257c435e43db405b4bdc4))
278
+ * **multiple-choice:** set choices layout for print PD-1623 ([ed90d57](https://github.com/pie-framework/pie-elements/commit/ed90d578da7d8db040082e93e718357a60dd8881))
279
+ * **multiple-choice:** set lockChoiceOrder to true for print ([5de2c75](https://github.com/pie-framework/pie-elements/commit/5de2c751b7a6cc63d54d4c8a1bbfb7adab4d2c00))
280
+
281
+
282
+ ### Features
283
+
284
+ * **multiple-choice:** PD-1697 ui/ux for validation ([9a088a3](https://github.com/pie-framework/pie-elements/commit/9a088a3d4af75586d6b8e302078c8629a3e7d718))
285
+ * **multiple-choice:** updated validation behaviors PD-1696 PD-1697 ([ab009c4](https://github.com/pie-framework/pie-elements/commit/ab009c4832572dab96c5b4130a5088dea17222e6))
286
+ * added configurable validation ([1e3a0d6](https://github.com/pie-framework/pie-elements/commit/1e3a0d6da3c790e68a7fd401df2c832917d62480))
287
+ * added configurable validation + refactoring PD-1696 ([31f6354](https://github.com/pie-framework/pie-elements/commit/31f6354b256fef876fa6c48e79a3f82486b5fce7))
288
+ * added configurable validation + refactoring PD-1696 ([08d9b70](https://github.com/pie-framework/pie-elements/commit/08d9b70991f159707ef7fd5b3e533a0addda1d90))
289
+ * added configurable validation + refactoring PD-1696 ([07c42c2](https://github.com/pie-framework/pie-elements/commit/07c42c2811349d1e829d367993541157fbbe2dfc))
290
+ * start working on multiple-choice validation ([722037b](https://github.com/pie-framework/pie-elements/commit/722037bc0fddd2e090ec1506e85a91949ad86c91))
291
+
292
+
293
+
294
+
295
+
296
+ ## [6.2.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.6...@pie-element/multiple-choice@6.2.7) (2022-04-12)
297
+
298
+ **Note:** Version bump only for package @pie-element/multiple-choice
299
+
300
+
301
+
302
+
303
+
304
+ ## [6.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.5...@pie-element/multiple-choice@6.2.6) (2022-03-28)
305
+
306
+ **Note:** Version bump only for package @pie-element/multiple-choice
307
+
308
+
309
+
310
+
311
+
312
+ ## [6.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.4...@pie-element/multiple-choice@6.2.5) (2022-03-22)
313
+
314
+ **Note:** Version bump only for package @pie-element/multiple-choice
315
+
316
+
317
+
318
+
319
+
320
+ ## [6.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.3...@pie-element/multiple-choice@6.2.4) (2022-03-08)
321
+
322
+ **Note:** Version bump only for package @pie-element/multiple-choice
323
+
324
+
325
+
326
+
327
+
328
+ ## [6.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.2...@pie-element/multiple-choice@6.2.3) (2022-03-08)
329
+
330
+ **Note:** Version bump only for package @pie-element/multiple-choice
331
+
332
+
333
+
334
+
335
+
336
+ ## [6.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.1...@pie-element/multiple-choice@6.2.2) (2022-02-21)
337
+
338
+ **Note:** Version bump only for package @pie-element/multiple-choice
339
+
340
+
341
+
342
+
343
+
344
+ ## [6.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.2.0...@pie-element/multiple-choice@6.2.1) (2022-02-04)
345
+
346
+ **Note:** Version bump only for package @pie-element/multiple-choice
347
+
348
+
349
+
350
+
351
+
352
+ # [6.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.1.11...@pie-element/multiple-choice@6.2.0) (2022-01-24)
353
+
354
+
355
+ ### Bug Fixes
356
+
357
+ * check if limitChoicesNumber is defined when adding a choice ([6f32cf0](https://github.com/pie-framework/pie-elements/commit/6f32cf05a1095b2be28864f2bb697080d05744f8))
358
+ * **multiple-choice:** fix colors for evaluate and view PD-1433 ([7050109](https://github.com/pie-framework/pie-elements/commit/705010946a1b0175fe19566d9daa86846fc55ca7))
359
+ * **multiple-choice:** limit choice number to 9 if it's defined ([4fa374c](https://github.com/pie-framework/pie-elements/commit/4fa374c77ca625522549ce68e1062ca4a5145b8b))
360
+ * **multiple-choice:** show choice prefix in print DNA-13066 ([52bd9bf](https://github.com/pie-framework/pie-elements/commit/52bd9bf862ad7adaf5ff0067a6738ad944b6d32d))
361
+ * **multiple-choice-print:** remove feedback ([25cbac5](https://github.com/pie-framework/pie-elements/commit/25cbac5647afe8864bedd9c50cd98abe6b31ddb0))
362
+ * **multiple-choice-print, ecr-print:** fix toggle issue, change options.mode to options.role ([0b3f534](https://github.com/pie-framework/pie-elements/commit/0b3f534bb4d2f969e21528e74516345e84f18d72))
363
+ * **multiple-choice, explicit-constructed-response, extended-text-entry:** print do not show teacher instructions, rationale or prompt if they are diabled DNA-13089 ([06b9555](https://github.com/pie-framework/pie-elements/commit/06b9555b25e094e0b2bce0e6a852a206c6d2c17d))
364
+ * show tick if available only in evaluate mode ([dddca13](https://github.com/pie-framework/pie-elements/commit/dddca137875221d3b52b17151163610f5eb1ea98))
365
+
366
+
367
+ ### Features
368
+
369
+ * **multiple-choice:** set min and max number of choices. BREAKING CHANGE: removed limitChoicesNumber from config and added minAnswerChoices and maxAnswerChoices ([a467f8f](https://github.com/pie-framework/pie-elements/commit/a467f8f4827c032c88de480b25eb49efcf1486aa))
370
+
371
+
372
+
373
+
374
+
6
375
  ## [6.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@6.1.10...@pie-element/multiple-choice@6.1.11) (2022-01-11)
7
376
 
8
377
  **Note:** Version bump only for package @pie-element/multiple-choice
package/README.md CHANGED
@@ -53,4 +53,4 @@ gulp release
53
53
  git checkout master
54
54
  npm publish
55
55
  ```
56
- [pie]: http://npmjs.org/package/pie
56
+ [pie]: http://npmjs.org/package/pie