@pie-element/explicit-constructed-response 3.7.19-next.85 → 3.8.1-beta.587
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 +541 -0
- package/configure/CHANGELOG.md +482 -0
- package/configure/lib/alternateResponses.js +45 -12
- package/configure/lib/alternateResponses.js.map +1 -1
- package/configure/lib/alternateSection.js +116 -19
- package/configure/lib/alternateSection.js.map +1 -1
- package/configure/lib/defaults.js +35 -0
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/ecr-toolbar.js +35 -19
- package/configure/lib/ecr-toolbar.js.map +1 -1
- package/configure/lib/index.js +17 -3
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/main.js +291 -58
- package/configure/lib/main.js.map +1 -1
- package/configure/lib/markupUtils.js +29 -3
- package/configure/lib/markupUtils.js.map +1 -1
- package/configure/lib/utils.js +15 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +23 -5
- package/controller/CHANGELOG.md +107 -0
- package/controller/lib/defaults.js +1 -0
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +109 -6
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +2 -2
- package/docs/config-schema.json +137 -0
- package/docs/config-schema.json.md +105 -1
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +6 -2
- package/docs/pie-schema.json +68 -0
- package/docs/pie-schema.json.md +53 -0
- package/lib/index.js +8 -1
- package/lib/index.js.map +1 -1
- package/lib/main.js +95 -25
- package/lib/main.js.map +1 -1
- package/lib/print.js +115 -0
- package/lib/print.js.map +1 -0
- package/package.json +14 -8
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,488 @@
|
|
|
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.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.3.0...@pie-element/explicit-constructed-response-configure@4.4.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
|
+
# [4.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.6...@pie-element/explicit-constructed-response-configure@4.3.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
|
+
* **explicit-constructed-response:** added configuration prop to hide the settings panel PD-1999 ([8aec356](https://github.com/pie-framework/pie-elements/commit/8aec3566ad4e3b7c190bfabb5d1e65dc5e735a8f))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [4.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.5...@pie-element/explicit-constructed-response-configure@4.2.6) (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
|
+
## [4.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.4...@pie-element/explicit-constructed-response-configure@4.2.5) (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
|
+
## [4.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.3...@pie-element/explicit-constructed-response-configure@4.2.4) (2022-12-07)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
|
|
59
|
+
* update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
|
|
60
|
+
* updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
|
|
61
|
+
* updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
|
|
62
|
+
* updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
|
|
63
|
+
* updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [4.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.2...@pie-element/explicit-constructed-response-configure@4.2.3) (2022-11-15)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [4.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.1...@pie-element/explicit-constructed-response-configure@4.2.2) (2022-11-11)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
* **explicit-constructed-response:** add sanity checks for withRubric ([8be2af0](https://github.com/pie-framework/pie-elements/commit/8be2af0bbe35d0e8ad3f7270cd3c390f9bb1c558))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## [4.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.2.0...@pie-element/explicit-constructed-response-configure@4.2.1) (2022-10-31)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# [4.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.9...@pie-element/explicit-constructed-response-configure@4.2.0) (2022-10-17)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
* 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))
|
|
107
|
+
* update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
|
|
108
|
+
* **explicit-constructed-response:** add pie-api config PD-23 ([df3e8bd](https://github.com/pie-framework/pie-elements/commit/df3e8bdbb19a3d6356f4bd639ab34aaac5068d61))
|
|
109
|
+
* **explicit-constructed-response:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2097 ([8c0acd3](https://github.com/pie-framework/pie-elements/commit/8c0acd3c19cf0cbf9ef39e1e045f895f996c9127))
|
|
110
|
+
* **explicit-constructed-response:** updated snapshot PD-2097 ([a04ac3d](https://github.com/pie-framework/pie-elements/commit/a04ac3d45a591db3513a9ccd1293d04e5dce5049))
|
|
111
|
+
* enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
|
|
112
|
+
* **explicit-constructed-response:** add uploadSoundSupport property PD-23-updated ([f701b37](https://github.com/pie-framework/pie-elements/commit/f701b37884cb81499c1be1b16fa6de5c6d5a1b5f))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## [4.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.8...@pie-element/explicit-constructed-response-configure@4.1.9) (2022-09-29)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [4.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.7...@pie-element/explicit-constructed-response-configure@4.1.8) (2022-09-14)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## [4.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.6...@pie-element/explicit-constructed-response-configure@4.1.7) (2022-08-31)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## [4.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.5...@pie-element/explicit-constructed-response-configure@4.1.6) (2022-08-16)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## [4.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.4...@pie-element/explicit-constructed-response-configure@4.1.5) (2022-08-08)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [4.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.3...@pie-element/explicit-constructed-response-configure@4.1.4) (2022-08-02)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## [4.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.2...@pie-element/explicit-constructed-response-configure@4.1.3) (2022-07-22)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## [4.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.1...@pie-element/explicit-constructed-response-configure@4.1.2) (2022-07-20)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## [4.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.1.0...@pie-element/explicit-constructed-response-configure@4.1.1) (2022-07-19)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
# [4.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@4.0.0...@pie-element/explicit-constructed-response-configure@4.1.0) (2022-06-28)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### Bug Fixes
|
|
194
|
+
|
|
195
|
+
* **explicit-constructed-response:** change validation messsage ([dff4964](https://github.com/pie-framework/pie-elements/commit/dff49645a4b814686bfaba18298b064e174c717a))
|
|
196
|
+
* clean up ([53cea01](https://github.com/pie-framework/pie-elements/commit/53cea01bd199a2f000035e9dad455fae5a6be452))
|
|
197
|
+
* error fucntion ([9b4a145](https://github.com/pie-framework/pie-elements/commit/9b4a145874ad19c14f558dad8bf505d3ae8a3857))
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### Features
|
|
201
|
+
|
|
202
|
+
* **inline-dropdown, drag-in-the-blank, explicit-constructed-response:** set config default for maxRespponseAreas ([a9e9dc5](https://github.com/pie-framework/pie-elements/commit/a9e9dc5ff43199c946f4226790d924ab5d8674ed))
|
|
203
|
+
* PD-1706 validation ui/ux ([265c248](https://github.com/pie-framework/pie-elements/commit/265c248ecd10d7a108f8d4abddd40824e4b2f0f4))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
# [4.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.8.4...@pie-element/explicit-constructed-response-configure@4.0.0) (2022-06-28)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### chore
|
|
213
|
+
|
|
214
|
+
* Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### BREAKING CHANGES
|
|
218
|
+
|
|
219
|
+
* Image percent buttons were removed from toolbar.
|
|
220
|
+
New properties maxImageWidth and maxImageHeight were added.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## [3.8.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.8.3...@pie-element/explicit-constructed-response-configure@3.8.4) (2022-06-13)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## [3.8.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.8.2...@pie-element/explicit-constructed-response-configure@3.8.3) (2022-05-30)
|
|
235
|
+
|
|
236
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## [3.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.8.1...@pie-element/explicit-constructed-response-configure@3.8.2) (2022-05-16)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## [3.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.8.0...@pie-element/explicit-constructed-response-configure@3.8.1) (2022-05-09)
|
|
251
|
+
|
|
252
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
# [3.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.7...@pie-element/explicit-constructed-response-configure@3.8.0) (2022-05-03)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Bug Fixes
|
|
262
|
+
|
|
263
|
+
* **explcit-constructed-response, inline-dropdown, drag-in-the-blank:** Fixed some math symbols rendering PD-1535 ([98b99ff](https://github.com/pie-framework/pie-elements/commit/98b99ff26742c15563b365c7fbb7fab981f057d8))
|
|
264
|
+
* **explicit-constructed-response:** Adjusted minimum and maximum values for MaxLengthPerChoice PD-1552 ([3ab3398](https://github.com/pie-framework/pie-elements/commit/3ab3398cc8c92a0effc492f7dc06c92ffc51eac0))
|
|
265
|
+
* **explicit-constructed-response:** Maximum Length field should always appear when Maximum Length Per Choice is set to true PD-1591 ([153123e](https://github.com/pie-framework/pie-elements/commit/153123ebb4162c8cb342bc7c6a979d68abc4b0c3))
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### Features
|
|
269
|
+
|
|
270
|
+
* **choices:** implemented response deletion and undo capabilities [PD-1592] ([158a6e1](https://github.com/pie-framework/pie-elements/commit/158a6e1cb67a1804af28acb4c731daaf40d8435a))
|
|
271
|
+
* **choices:** made sure adding a choice changes the markup [PD-1592] ([26768c0](https://github.com/pie-framework/pie-elements/commit/26768c0c04085d254633d099e45aaa68d7a4a269))
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
## [3.7.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.6...@pie-element/explicit-constructed-response-configure@3.7.7) (2022-04-12)
|
|
278
|
+
|
|
279
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
## [3.7.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.5...@pie-element/explicit-constructed-response-configure@3.7.6) (2022-03-28)
|
|
286
|
+
|
|
287
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
## [3.7.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.4...@pie-element/explicit-constructed-response-configure@3.7.5) (2022-03-22)
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
### Bug Fixes
|
|
297
|
+
|
|
298
|
+
* test ([61f9577](https://github.com/pie-framework/pie-elements/commit/61f95775a3086c6a4fce64c46b31b15b081f4243))
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
## [3.7.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.3...@pie-element/explicit-constructed-response-configure@3.7.4) (2022-03-08)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
## [3.7.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.2...@pie-element/explicit-constructed-response-configure@3.7.3) (2022-03-08)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
## [3.7.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.1...@pie-element/explicit-constructed-response-configure@3.7.2) (2022-02-21)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
## [3.7.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.7.0...@pie-element/explicit-constructed-response-configure@3.7.1) (2022-02-04)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
# [3.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.6.9...@pie-element/explicit-constructed-response-configure@3.7.0) (2022-01-24)
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### Bug Fixes
|
|
340
|
+
|
|
341
|
+
* **explicit-constructed-response:** Displayed delta, theta, times and tan symbols correctly PD-1507 ([29d97ec](https://github.com/pie-framework/pie-elements/commit/29d97ec68c6b66056595eb9444b9984aeb04472e))
|
|
342
|
+
* **explicit-constructed-response:** fix authoring bug when changing markup PD-1413. Show all choices and change title when maxLengthPerChoice is enabled PD-1396 ([b7944f4](https://github.com/pie-framework/pie-elements/commit/b7944f4ee7ae82eb7d40b7ec13dd1c5214157690))
|
|
343
|
+
* **explicit-constructed-response:** Fixed characters limit PD-1396 PD-1395 ([fcbf149](https://github.com/pie-framework/pie-elements/commit/fcbf149e49b5ead36585935e0b5616a970d0a81e))
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
### Features
|
|
347
|
+
|
|
348
|
+
* **explicit-constructed-response:** Added a max limit of characters and adjusted the width PD-794 ([135f176](https://github.com/pie-framework/pie-elements/commit/135f176402187e9a6120b88768ae7fb0152ac418))
|
|
349
|
+
* **explicit-constructed-response:** added the ability to choose the display property of the element [PD-1418] ([ac3ad81](https://github.com/pie-framework/pie-elements/commit/ac3ad8182911077b0eb3096944304c935bdf5e9a))
|
|
350
|
+
* **explicit-constructed-response:** Calculate maxChoicesLength if it's undefined. Fixed delete response area and choices bug. BREAKING CHANGE: add maxChoicesLength prop ([97431b9](https://github.com/pie-framework/pie-elements/commit/97431b9c3fbdafd84e040653c54d5f04bae16a1d))
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
## [3.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.6.8...@pie-element/explicit-constructed-response-configure@3.6.9) (2022-01-10)
|
|
357
|
+
|
|
358
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
## [3.6.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.6.7...@pie-element/explicit-constructed-response-configure@3.6.8) (2021-12-23)
|
|
365
|
+
|
|
366
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
## [3.6.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.6.5...@pie-element/explicit-constructed-response-configure@3.6.6) (2021-12-13)
|
|
373
|
+
|
|
374
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## [3.6.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.6.2...@pie-element/explicit-constructed-response-configure@3.6.3) (2021-12-01)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
## [3.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.6.1...@pie-element/explicit-constructed-response-configure@3.6.2) (2021-11-29)
|
|
389
|
+
|
|
390
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
## [3.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.31...@pie-element/explicit-constructed-response-configure@3.6.1) (2021-11-11)
|
|
397
|
+
|
|
398
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
# [3.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.27...@pie-element/explicit-constructed-response-configure@3.6.0) (2021-11-11)
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
### Bug Fixes
|
|
408
|
+
|
|
409
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
410
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
411
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
### Features
|
|
415
|
+
|
|
416
|
+
* **explicit-constructed-response:** Added a max limit of characters and adjusted the width PD-794 ([135f176](https://github.com/pie-framework/pie-elements/commit/135f176402187e9a6120b88768ae7fb0152ac418))
|
|
417
|
+
* **explicit-constructed-response:** Calculate maxChoicesLength if it's undefined. Fixed delete response area and choices bug. BREAKING CHANGE: add maxChoicesLength prop ([97431b9](https://github.com/pie-framework/pie-elements/commit/97431b9c3fbdafd84e040653c54d5f04bae16a1d))
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
## [3.5.31](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.30...@pie-element/explicit-constructed-response-configure@3.5.31) (2021-10-18)
|
|
425
|
+
|
|
426
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
## [3.5.30](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.29...@pie-element/explicit-constructed-response-configure@3.5.30) (2021-10-04)
|
|
433
|
+
|
|
434
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
## [3.5.29](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.28...@pie-element/explicit-constructed-response-configure@3.5.29) (2021-09-20)
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
### Bug Fixes
|
|
444
|
+
|
|
445
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
446
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
447
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
## [3.5.28](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.27...@pie-element/explicit-constructed-response-configure@3.5.28) (2021-08-05)
|
|
454
|
+
|
|
455
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
## [3.5.27](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.25...@pie-element/explicit-constructed-response-configure@3.5.27) (2021-08-05)
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
### Bug Fixes
|
|
465
|
+
|
|
466
|
+
* force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
## [3.5.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.24...@pie-element/explicit-constructed-response-configure@3.5.25) (2021-06-29)
|
|
473
|
+
|
|
474
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
## [3.5.24](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.23...@pie-element/explicit-constructed-response-configure@3.5.24) (2021-04-07)
|
|
481
|
+
|
|
482
|
+
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
6
488
|
## [3.5.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@3.5.20...@pie-element/explicit-constructed-response-configure@3.5.23) (2021-03-03)
|
|
7
489
|
|
|
8
490
|
**Note:** Version bump only for package @pie-element/explicit-constructed-response-configure
|
|
@@ -33,15 +33,17 @@ var _map = _interopRequireDefault(require("lodash/map"));
|
|
|
33
33
|
|
|
34
34
|
var _reduce = _interopRequireDefault(require("lodash/reduce"));
|
|
35
35
|
|
|
36
|
+
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
37
|
+
|
|
36
38
|
var _alternateSection = _interopRequireDefault(require("./alternateSection"));
|
|
37
39
|
|
|
38
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
40
|
+
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; }
|
|
39
41
|
|
|
40
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
42
|
+
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; }
|
|
41
43
|
|
|
42
44
|
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); }; }
|
|
43
45
|
|
|
44
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
46
|
+
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; } }
|
|
45
47
|
|
|
46
48
|
var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
47
49
|
(0, _inherits2["default"])(AlternateResponses, _React$Component);
|
|
@@ -58,12 +60,17 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
61
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
63
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
64
|
+
maxLengthPerChoice: (0, _cloneDeep["default"])(_this.props.model.maxLengthPerChoice)
|
|
65
|
+
});
|
|
62
66
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "updateChoicesIfNeeded", function (props) {
|
|
63
|
-
if (!_this.state.choices || !(0, _isEqual["default"])(_this.state.choices, props.model.choices) || !(0, _isEqual["default"])(props.model.choices, _this.props.model.choices)) {
|
|
64
|
-
var
|
|
67
|
+
if (!_this.state.choices || !(0, _isEqual["default"])(_this.state.choices, props.model.choices) || !(0, _isEqual["default"])(props.model.choices, _this.props.model.choices) || _this.state.values && Object.keys(_this.state.values).length !== Object.keys(_this.props.model.choices).length || props.maxLengthPerChoiceEnabled !== _this.props.maxLengthPerChoiceEnabled) {
|
|
68
|
+
var _props$model = props.model,
|
|
69
|
+
choices = _props$model.choices,
|
|
70
|
+
maxLengthPerChoice = _props$model.maxLengthPerChoice;
|
|
65
71
|
var selectedValues = (0, _reduce["default"])(choices, function (obj, c, key) {
|
|
66
|
-
if
|
|
72
|
+
// if maxLengthPerChoiceEnabled is true, we display all the choices
|
|
73
|
+
if (c && (props.maxLengthPerChoiceEnabled || c.length > 1)) {
|
|
67
74
|
obj[key] = c[0];
|
|
68
75
|
}
|
|
69
76
|
|
|
@@ -72,7 +79,8 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
72
79
|
|
|
73
80
|
_this.setState({
|
|
74
81
|
choices: props.model.choices,
|
|
75
|
-
values: selectedValues
|
|
82
|
+
values: selectedValues,
|
|
83
|
+
maxLengthPerChoice: (0, _cloneDeep["default"])(maxLengthPerChoice)
|
|
76
84
|
});
|
|
77
85
|
}
|
|
78
86
|
});
|
|
@@ -142,6 +150,14 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
142
150
|
});
|
|
143
151
|
}
|
|
144
152
|
});
|
|
153
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onLengthChanged", function (value, key) {
|
|
154
|
+
var _this$props = _this.props,
|
|
155
|
+
model = _this$props.model,
|
|
156
|
+
onLengthChange = _this$props.onLengthChange;
|
|
157
|
+
var maxLengthPerChoice = model.maxLengthPerChoice;
|
|
158
|
+
maxLengthPerChoice[key] = value;
|
|
159
|
+
onLengthChange(maxLengthPerChoice);
|
|
160
|
+
});
|
|
145
161
|
return _this;
|
|
146
162
|
}
|
|
147
163
|
|
|
@@ -161,12 +177,20 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
161
177
|
var _this2 = this;
|
|
162
178
|
|
|
163
179
|
var choices = this.state.choices;
|
|
180
|
+
var _this$props2 = this.props,
|
|
181
|
+
_this$props2$model = _this$props2.model,
|
|
182
|
+
maxLengthPerChoice = _this$props2$model.maxLengthPerChoice,
|
|
183
|
+
maxLengthPerChoiceEnabled = _this$props2$model.maxLengthPerChoiceEnabled,
|
|
184
|
+
spellCheck = _this$props2.spellCheck,
|
|
185
|
+
choicesErrors = _this$props2.choicesErrors;
|
|
164
186
|
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _map["default"])(choices, function (c, key) {
|
|
165
|
-
if
|
|
187
|
+
// if maxLengthPerChoiceEnabled is true, we display all the choices
|
|
188
|
+
if (c && (maxLengthPerChoiceEnabled || c.length > 1)) {
|
|
166
189
|
var selected = _this2.state.values[key];
|
|
167
190
|
return /*#__PURE__*/_react["default"].createElement(_alternateSection["default"], {
|
|
168
191
|
key: key,
|
|
169
192
|
value: selected && selected.value,
|
|
193
|
+
errors: choicesErrors && choicesErrors[key],
|
|
170
194
|
onSelect: function onSelect(choice) {
|
|
171
195
|
return _this2.onSectionSelect(choice, key);
|
|
172
196
|
},
|
|
@@ -176,8 +200,14 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
176
200
|
choiceRemoved: function choiceRemoved(value) {
|
|
177
201
|
return _this2.onChoiceRemoved(value, key);
|
|
178
202
|
},
|
|
203
|
+
lengthChanged: function lengthChanged(value) {
|
|
204
|
+
return _this2.onLengthChanged(value, key);
|
|
205
|
+
},
|
|
179
206
|
selectChoices: [selected],
|
|
180
|
-
choices: c
|
|
207
|
+
choices: c,
|
|
208
|
+
maxLength: maxLengthPerChoice[key],
|
|
209
|
+
showMaxLength: maxLengthPerChoiceEnabled,
|
|
210
|
+
spellCheck: spellCheck
|
|
181
211
|
});
|
|
182
212
|
}
|
|
183
213
|
}), choices && Object.keys(this.state.values).length !== Object.keys(choices).length && /*#__PURE__*/_react["default"].createElement(_alternateSection["default"], {
|
|
@@ -191,7 +221,8 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
191
221
|
choiceRemoved: function choiceRemoved(value) {
|
|
192
222
|
return _this2.onChoiceRemoved(value);
|
|
193
223
|
},
|
|
194
|
-
selectChoices: this.getRemainingChoices()
|
|
224
|
+
selectChoices: this.getRemainingChoices(),
|
|
225
|
+
spellCheck: spellCheck
|
|
195
226
|
}));
|
|
196
227
|
}
|
|
197
228
|
}]);
|
|
@@ -201,7 +232,9 @@ var AlternateResponses = /*#__PURE__*/function (_React$Component) {
|
|
|
201
232
|
exports.AlternateResponses = AlternateResponses;
|
|
202
233
|
(0, _defineProperty2["default"])(AlternateResponses, "propTypes", {
|
|
203
234
|
model: _propTypes["default"].object.isRequired,
|
|
204
|
-
onChange: _propTypes["default"].func.isRequired
|
|
235
|
+
onChange: _propTypes["default"].func.isRequired,
|
|
236
|
+
onLengthChange: _propTypes["default"].func.isRequired,
|
|
237
|
+
maxLengthPerChoiceEnabled: _propTypes["default"].bool.isRequired
|
|
205
238
|
});
|
|
206
239
|
var _default = AlternateResponses;
|
|
207
240
|
exports["default"] = _default;
|