@pie-element/drag-in-the-blank 3.9.0 → 3.9.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 +513 -0
- package/configure/CHANGELOG.md +421 -0
- package/configure/lib/choice.js +28 -21
- package/configure/lib/choice.js.map +1 -1
- package/configure/lib/choices.js +118 -65
- package/configure/lib/choices.js.map +1 -1
- package/configure/lib/defaults.js +24 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/index.js +20 -6
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/main.js +150 -33
- package/configure/lib/main.js.map +1 -1
- package/configure/lib/markupUtils.js +9 -3
- package/configure/lib/markupUtils.js.map +1 -1
- package/configure/package.json +26 -8
- package/configure/utils.js +17 -0
- package/controller/CHANGELOG.md +91 -0
- package/controller/lib/index.js +45 -3
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +1 -1
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +2 -2
- package/docs/config-schema.json +115 -0
- package/docs/config-schema.json.md +89 -1
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +30 -27
- package/docs/pie-schema.json +49 -0
- package/docs/pie-schema.json.md +39 -0
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/main.js +18 -31
- package/lib/main.js.map +1 -1
- package/package.json +9 -7
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,427 @@
|
|
|
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/drag-in-the-blank-configure@4.3.0...@pie-element/drag-in-the-blank-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/drag-in-the-blank-configure@4.2.6...@pie-element/drag-in-the-blank-configure@4.3.0) (2023-01-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **drag-in-the-blank:** add validation for empty response areas + UI improvements PD-2160 ([1c24e8f](https://github.com/pie-framework/pie-elements/commit/1c24e8f3f5890f6c325035c9b20d20b4dbc7f5a6))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* update pie-libs ([b174476](https://github.com/pie-framework/pie-elements/commit/b174476729119a0689f1f8adfc8c235246676cab))
|
|
28
|
+
* update pie-libs ([f72c3c8](https://github.com/pie-framework/pie-elements/commit/f72c3c8d8bc9bbf061bb81502317157a63c22972))
|
|
29
|
+
* update pie-libs ([8490729](https://github.com/pie-framework/pie-elements/commit/8490729a2389d36fd3968f0806119fde96577842))
|
|
30
|
+
* **drag-in-the-blank:** added configuration prop to hide the settings panel PD-1999 ([630cc87](https://github.com/pie-framework/pie-elements/commit/630cc87640183a21e456876b6389d2694a0e5553))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [4.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.2.5...@pie-element/drag-in-the-blank-configure@4.2.6) (2022-12-21)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* updated pie-libs ([8cb5b90](https://github.com/pie-framework/pie-elements/commit/8cb5b90d501ccbdf5ffd764e6555faa48b8f54d6))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [4.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.2.4...@pie-element/drag-in-the-blank-configure@4.2.5) (2022-12-20)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* updated pie-libs ([6549302](https://github.com/pie-framework/pie-elements/commit/65493026fbf356c5ab752ae6a14d961d4b256368))
|
|
53
|
+
* **drag-in-the-blank:** added config deafults for minChoices PD-2413 ([026657b](https://github.com/pie-framework/pie-elements/commit/026657be1bdea260288d93c1a89245a58d0ce9c2))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [4.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.2.3...@pie-element/drag-in-the-blank-configure@4.2.4) (2022-12-07)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
|
|
65
|
+
* update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
|
|
66
|
+
* updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
|
|
67
|
+
* updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
|
|
68
|
+
* updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
|
|
69
|
+
* updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## [4.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.2.2...@pie-element/drag-in-the-blank-configure@4.2.3) (2022-11-15)
|
|
76
|
+
|
|
77
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## [4.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.2.1...@pie-element/drag-in-the-blank-configure@4.2.2) (2022-11-11)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* **drag-in-the-blank:** add sanity checks for withRubric ([709cdea](https://github.com/pie-framework/pie-elements/commit/709cdeaf53b19e44aab3be4250b01e8c50dcc645))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [4.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.2.0...@pie-element/drag-in-the-blank-configure@4.2.1) (2022-10-31)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# [4.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.9...@pie-element/drag-in-the-blank-configure@4.2.0) (2022-10-17)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
* update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* 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))
|
|
113
|
+
* update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
|
|
114
|
+
* **drag-in-the-blank:** add pie-api config PD-23 ([38d7fd5](https://github.com/pie-framework/pie-elements/commit/38d7fd58622bc0e9335c46351ff220b09ab08db6))
|
|
115
|
+
* **drag-in-the-blank:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2095 ([35462df](https://github.com/pie-framework/pie-elements/commit/35462df9cd6f70c9e4d730a133734b6d4932abd3))
|
|
116
|
+
* **drag-in-the-blank:** updated snapshot PD-2095 ([53033c2](https://github.com/pie-framework/pie-elements/commit/53033c28156278737bc2fc77a787cbc6db6fecd2))
|
|
117
|
+
* enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
|
|
118
|
+
* **drag-in-the-blank:** add uploadSoundSupport property PD-23-updated ([d8c826d](https://github.com/pie-framework/pie-elements/commit/d8c826d51d5090bdf38b9a3b8bfeeca71bc40e1b))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## [4.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.8...@pie-element/drag-in-the-blank-configure@4.1.9) (2022-09-29)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## [4.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.7...@pie-element/drag-in-the-blank-configure@4.1.8) (2022-09-14)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
## [4.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.6...@pie-element/drag-in-the-blank-configure@4.1.7) (2022-08-31)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## [4.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.5...@pie-element/drag-in-the-blank-configure@4.1.6) (2022-08-16)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
## [4.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.4...@pie-element/drag-in-the-blank-configure@4.1.5) (2022-08-08)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
## [4.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.3...@pie-element/drag-in-the-blank-configure@4.1.4) (2022-08-02)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Bug Fixes
|
|
168
|
+
|
|
169
|
+
* tests ([11adb8a](https://github.com/pie-framework/pie-elements/commit/11adb8a0d878203b3c1754686026ccb973fa9a34))
|
|
170
|
+
* **drag-in-the-blank:** add back audio and video buttons in response template toolbar ([ebbd2bd](https://github.com/pie-framework/pie-elements/commit/ebbd2bd8c8e8fc696ae393e486577b0c3afa7d8e))
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## [4.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.2...@pie-element/drag-in-the-blank-configure@4.1.3) (2022-07-22)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
## [4.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.1...@pie-element/drag-in-the-blank-configure@4.1.2) (2022-07-20)
|
|
185
|
+
|
|
186
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
## [4.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.1.0...@pie-element/drag-in-the-blank-configure@4.1.1) (2022-07-19)
|
|
193
|
+
|
|
194
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
# [4.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@4.0.0...@pie-element/drag-in-the-blank-configure@4.1.0) (2022-06-28)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Bug Fixes
|
|
204
|
+
|
|
205
|
+
* tests ([7cb326c](https://github.com/pie-framework/pie-elements/commit/7cb326c70ba5c71c10017b238c2a32fa8a8c7bca))
|
|
206
|
+
* **drag-in-the-blank:** set default value for minChoices in validation message ([cbc9b73](https://github.com/pie-framework/pie-elements/commit/cbc9b7340668fe7b27682688f26df71941a4cf23))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Features
|
|
210
|
+
|
|
211
|
+
* **drag-in-the-blank:** add generate validation message, tooltip and error messages PD-1709 ([d0f4c46](https://github.com/pie-framework/pie-elements/commit/d0f4c46eb7bbd4eaa22ea21495905dd052b87541))
|
|
212
|
+
* **drag-in-the-blank:** ui/ux validation ([4676876](https://github.com/pie-framework/pie-elements/commit/4676876293981f519831640e0e39b5d9f32aa2aa))
|
|
213
|
+
* **inline-dropdown, drag-in-the-blank, explicit-constructed-response:** set config default for maxRespponseAreas ([a9e9dc5](https://github.com/pie-framework/pie-elements/commit/a9e9dc5ff43199c946f4226790d924ab5d8674ed))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
# [4.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.25...@pie-element/drag-in-the-blank-configure@4.0.0) (2022-06-28)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### chore
|
|
223
|
+
|
|
224
|
+
* Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### BREAKING CHANGES
|
|
228
|
+
|
|
229
|
+
* Image percent buttons were removed from toolbar.
|
|
230
|
+
New properties maxImageWidth and maxImageHeight were added.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
## [3.6.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.24...@pie-element/drag-in-the-blank-configure@3.6.25) (2022-06-13)
|
|
237
|
+
|
|
238
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## [3.6.24](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.23...@pie-element/drag-in-the-blank-configure@3.6.24) (2022-05-30)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
## [3.6.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.22...@pie-element/drag-in-the-blank-configure@3.6.23) (2022-05-16)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
## [3.6.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.21...@pie-element/drag-in-the-blank-configure@3.6.22) (2022-05-09)
|
|
261
|
+
|
|
262
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
## [3.6.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.20...@pie-element/drag-in-the-blank-configure@3.6.21) (2022-05-03)
|
|
269
|
+
|
|
270
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
## [3.6.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.19...@pie-element/drag-in-the-blank-configure@3.6.20) (2022-04-12)
|
|
277
|
+
|
|
278
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
## [3.6.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.18...@pie-element/drag-in-the-blank-configure@3.6.19) (2022-03-28)
|
|
285
|
+
|
|
286
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
## [3.6.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.17...@pie-element/drag-in-the-blank-configure@3.6.18) (2022-03-22)
|
|
293
|
+
|
|
294
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
## [3.6.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.16...@pie-element/drag-in-the-blank-configure@3.6.17) (2022-03-08)
|
|
301
|
+
|
|
302
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
## [3.6.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.15...@pie-element/drag-in-the-blank-configure@3.6.16) (2022-03-08)
|
|
309
|
+
|
|
310
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## [3.6.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.14...@pie-element/drag-in-the-blank-configure@3.6.15) (2022-02-21)
|
|
317
|
+
|
|
318
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
## [3.6.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.13...@pie-element/drag-in-the-blank-configure@3.6.14) (2022-02-04)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
## [3.6.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.12...@pie-element/drag-in-the-blank-configure@3.6.13) (2022-01-24)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### Bug Fixes
|
|
336
|
+
|
|
337
|
+
* **drag-in-the-blank:** fix validation behavior PD-1404 ([02f3f5c](https://github.com/pie-framework/pie-elements/commit/02f3f5ca82b03d54e055a3d746027e8b5ac66790))
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
## [3.6.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.11...@pie-element/drag-in-the-blank-configure@3.6.12) (2022-01-10)
|
|
344
|
+
|
|
345
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
## [3.6.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.10...@pie-element/drag-in-the-blank-configure@3.6.11) (2021-12-23)
|
|
352
|
+
|
|
353
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
## [3.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.8...@pie-element/drag-in-the-blank-configure@3.6.9) (2021-12-13)
|
|
360
|
+
|
|
361
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## [3.6.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.5...@pie-element/drag-in-the-blank-configure@3.6.6) (2021-11-29)
|
|
368
|
+
|
|
369
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
## [3.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.4...@pie-element/drag-in-the-blank-configure@3.6.5) (2021-10-04)
|
|
376
|
+
|
|
377
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
## [3.6.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.3...@pie-element/drag-in-the-blank-configure@3.6.4) (2021-09-20)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### Bug Fixes
|
|
387
|
+
|
|
388
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
389
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
390
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
## [3.6.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.2...@pie-element/drag-in-the-blank-configure@3.6.3) (2021-08-05)
|
|
397
|
+
|
|
398
|
+
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
## [3.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.6.0...@pie-element/drag-in-the-blank-configure@3.6.2) (2021-08-05)
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
### Bug Fixes
|
|
408
|
+
|
|
409
|
+
* force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
# [3.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.5.4...@pie-element/drag-in-the-blank-configure@3.6.0) (2021-06-29)
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
### Features
|
|
419
|
+
|
|
420
|
+
* **drag-in-the-blank:** don't allow identical answer choices PD-192 ([#606](https://github.com/pie-framework/pie-elements/issues/606)) ([2847859](https://github.com/pie-framework/pie-elements/commit/28478599876dfed60deb81712e3cc914a903ae99))
|
|
421
|
+
* remove audio and video buttons from various fields of various items PD-1180 ([#601](https://github.com/pie-framework/pie-elements/issues/601)) ([8766b25](https://github.com/pie-framework/pie-elements/commit/8766b25690f5dde6c3e896860d63e205bf3c831b))
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
6
427
|
## [3.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/drag-in-the-blank-configure@3.5.3...@pie-element/drag-in-the-blank-configure@3.5.4) (2021-04-07)
|
|
7
428
|
|
|
8
429
|
**Note:** Version bump only for package @pie-element/drag-in-the-blank-configure
|
package/configure/lib/choice.js
CHANGED
|
@@ -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"] = exports.
|
|
8
|
+
exports.tileSource = exports["default"] = exports.BlankContent = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -38,27 +38,40 @@ GripIcon.propTypes = {
|
|
|
38
38
|
var BlankContent = (0, _styles.withStyles)(function (theme) {
|
|
39
39
|
return {
|
|
40
40
|
choice: {
|
|
41
|
-
border: "solid 0px ".concat(theme.palette.primary.main)
|
|
42
|
-
},
|
|
43
|
-
disabled: {}
|
|
44
|
-
};
|
|
45
|
-
})(function (props) {
|
|
46
|
-
var connectDragSource = props.connectDragSource,
|
|
47
|
-
choice = props.choice,
|
|
48
|
-
onClick = props.onClick,
|
|
49
|
-
onRemoveChoice = props.onRemoveChoice;
|
|
50
|
-
return connectDragSource( /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
-
style: {
|
|
52
41
|
display: 'inline-flex',
|
|
53
42
|
minWidth: '178px',
|
|
54
43
|
minHeight: '36px',
|
|
55
44
|
background: '#FFF',
|
|
56
|
-
border: '1px solid #C0C3CF',
|
|
57
45
|
boxSizing: 'border-box',
|
|
58
46
|
borderRadius: '3px',
|
|
59
47
|
overflow: 'hidden',
|
|
60
48
|
position: 'relative',
|
|
61
|
-
padding: '8px 35px 8px 35px'
|
|
49
|
+
padding: '8px 35px 8px 35px',
|
|
50
|
+
cursor: 'grab'
|
|
51
|
+
},
|
|
52
|
+
deleteIcon: {
|
|
53
|
+
position: 'absolute',
|
|
54
|
+
top: '6px',
|
|
55
|
+
right: '0',
|
|
56
|
+
color: '#9B9B9B',
|
|
57
|
+
zIndex: 2,
|
|
58
|
+
'& :hover': {
|
|
59
|
+
cursor: 'pointer',
|
|
60
|
+
color: '#000000'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
})(function (props) {
|
|
65
|
+
var classes = props.classes,
|
|
66
|
+
connectDragSource = props.connectDragSource,
|
|
67
|
+
choice = props.choice,
|
|
68
|
+
onClick = props.onClick,
|
|
69
|
+
onRemoveChoice = props.onRemoveChoice,
|
|
70
|
+
error = props.error;
|
|
71
|
+
return connectDragSource( /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
className: classes.choice,
|
|
73
|
+
style: {
|
|
74
|
+
border: "1px solid ".concat(error ? 'red' : '#C0C3CF')
|
|
62
75
|
},
|
|
63
76
|
onClick: onClick
|
|
64
77
|
}, /*#__PURE__*/_react["default"].createElement(GripIcon, {
|
|
@@ -74,13 +87,7 @@ var BlankContent = (0, _styles.withStyles)(function (theme) {
|
|
|
74
87
|
__html: choice.value
|
|
75
88
|
}
|
|
76
89
|
}), /*#__PURE__*/_react["default"].createElement(_Delete["default"], {
|
|
77
|
-
|
|
78
|
-
position: 'absolute',
|
|
79
|
-
top: '6px',
|
|
80
|
-
right: '0',
|
|
81
|
-
color: '#9B9B9B',
|
|
82
|
-
zIndex: 2
|
|
83
|
-
},
|
|
90
|
+
className: classes.deleteIcon,
|
|
84
91
|
onClick: function onClick(e) {
|
|
85
92
|
e.preventDefault();
|
|
86
93
|
e.stopPropagation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/choice.jsx"],"names":["GripIcon","style","margin","propTypes","PropTypes","object","BlankContent","theme","choice","
|
|
1
|
+
{"version":3,"sources":["../src/choice.jsx"],"names":["GripIcon","style","margin","propTypes","PropTypes","object","BlankContent","theme","choice","display","minWidth","minHeight","background","boxSizing","borderRadius","overflow","position","padding","cursor","deleteIcon","top","right","color","zIndex","props","classes","connectDragSource","onClick","onRemoveChoice","error","border","left","__html","value","e","preventDefault","stopPropagation","tileSource","canDrag","alert","disabled","beginDrag","id","targetId","instanceId","connect","monitor","dragSource","isDragging"],"mappings":"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","sourcesContent":["import React from 'react';\nimport MoreVert from '@material-ui/icons/MoreVert';\nimport Delete from '@material-ui/icons/Delete';\nimport { DragSource } from 'react-dnd';\nimport { withStyles } from '@material-ui/core/styles';\nimport { choiceIsEmpty } from './markupUtils';\nimport PropTypes from 'prop-types';\n\nconst GripIcon = ({ style }) => {\n return (\n <span style={style}>\n <MoreVert style={{ margin: '0 -16px' }} />\n <MoreVert />\n </span>\n );\n};\n\nGripIcon.propTypes = {\n style: PropTypes.object,\n};\n\nexport const BlankContent = withStyles((theme) => ({\n choice: {\n display: 'inline-flex',\n minWidth: '178px',\n minHeight: '36px',\n background: '#FFF',\n boxSizing: 'border-box',\n borderRadius: '3px',\n overflow: 'hidden',\n position: 'relative',\n padding: '8px 35px 8px 35px',\n cursor: 'grab',\n },\n deleteIcon: {\n position: 'absolute',\n top: '6px',\n right: '0',\n color: '#9B9B9B',\n zIndex: 2,\n\n '& :hover': {\n cursor: 'pointer',\n color: '#000000',\n },\n },\n}))((props) => {\n const { classes, connectDragSource, choice, onClick, onRemoveChoice, error } = props;\n\n return connectDragSource(\n <div className={classes.choice} style={{ border: `1px solid ${error ? 'red' : '#C0C3CF'}` }} onClick={onClick}>\n <GripIcon\n style={{\n position: 'absolute',\n top: '6px',\n left: '15px',\n color: '#9B9B9B',\n zIndex: 2,\n }}\n />\n\n <span dangerouslySetInnerHTML={{ __html: choice.value }} />\n\n <Delete\n className={classes.deleteIcon}\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n\n onRemoveChoice(e);\n }}\n />\n </div>,\n );\n});\n\nexport const tileSource = {\n canDrag(props) {\n if (choiceIsEmpty(props.choice)) {\n alert('You need to define a value for an answer choice before it can be associated with a response area.');\n return false;\n }\n\n return !props.disabled;\n },\n beginDrag(props) {\n return {\n id: props.targetId,\n value: props.choice,\n instanceId: props.instanceId,\n };\n },\n};\n\nexport default DragSource('drag-in-the-blank-choice', tileSource, (connect, monitor) => ({\n connectDragSource: connect.dragSource(),\n isDragging: monitor.isDragging(),\n}))(BlankContent);\n"],"file":"choice.js"}
|