@pie-element/number-line 5.10.0 → 5.10.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 +504 -0
- package/configure/CHANGELOG.md +429 -0
- package/configure/lib/arrows.js +3 -3
- package/configure/lib/arrows.js.map +1 -1
- package/configure/lib/card-bar.js +10 -3
- package/configure/lib/card-bar.js.map +1 -1
- package/configure/lib/defaults.js +21 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/domain.js +3 -3
- package/configure/lib/domain.js.map +1 -1
- package/configure/lib/index.js +61 -8
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/main.js +212 -92
- package/configure/lib/main.js.map +1 -1
- package/configure/lib/number-text-field.js +4 -4
- package/configure/lib/number-text-field.js.map +1 -1
- package/configure/lib/point-config.js +7 -4
- package/configure/lib/point-config.js.map +1 -1
- package/configure/lib/size.js +2 -2
- package/configure/lib/size.js.map +1 -1
- package/configure/lib/ticks.js +8 -4
- package/configure/lib/ticks.js.map +1 -1
- package/configure/lib/utils.js +14 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +4 -4
- package/controller/CHANGELOG.md +90 -0
- package/controller/lib/defaults.js +36 -23
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +179 -64
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +3 -3
- package/docs/config-schema.json +16 -0
- package/docs/config-schema.json.md +12 -0
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +22 -26
- package/docs/demo/index.html +1 -1
- package/docs/pie-schema.json +29 -13
- package/docs/pie-schema.json.md +23 -8
- package/lib/data-converter.js +1 -1
- package/lib/data-converter.js.map +1 -1
- package/lib/draggable/index.js +1 -1
- package/lib/draggable/index.js.map +1 -1
- package/lib/index.js +16 -5
- package/lib/index.js.map +1 -1
- package/lib/number-line/colors.js +1 -1
- package/lib/number-line/feedback.js.map +1 -1
- package/lib/number-line/graph/arrow.js.map +1 -1
- package/lib/number-line/graph/elements/base.js.map +1 -1
- package/lib/number-line/graph/elements/builder.js.map +1 -1
- package/lib/number-line/graph/elements/line.js +3 -3
- package/lib/number-line/graph/elements/line.js.map +1 -1
- package/lib/number-line/graph/elements/point.js +12 -4
- package/lib/number-line/graph/elements/point.js.map +1 -1
- package/lib/number-line/graph/elements/ray.js +12 -5
- package/lib/number-line/graph/elements/ray.js.map +1 -1
- package/lib/number-line/graph/index.js +6 -4
- package/lib/number-line/graph/index.js.map +1 -1
- package/lib/number-line/graph/line.js.map +1 -1
- package/lib/number-line/graph/stacks.js +1 -1
- package/lib/number-line/graph/stacks.js.map +1 -1
- package/lib/number-line/graph/tick-utils.js +14 -10
- package/lib/number-line/graph/tick-utils.js.map +1 -1
- package/lib/number-line/graph/ticks.js +58 -14
- package/lib/number-line/graph/ticks.js.map +1 -1
- package/lib/number-line/index.js +68 -45
- package/lib/number-line/index.js.map +1 -1
- package/lib/number-line/point-chooser/button.js.map +1 -1
- package/lib/number-line/point-chooser/index.js +1 -1
- package/lib/number-line/point-chooser/index.js.map +1 -1
- package/lib/number-line/point-chooser/styles.js +1 -1
- package/lib/number-line/point-chooser/styles.js.map +1 -1
- package/lib/number-line/transitions/fade.js.map +1 -1
- package/package.json +9 -8
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,435 @@
|
|
|
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
|
+
# [5.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.3.0...@pie-element/number-line-configure@5.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
|
+
# [5.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.2.5...@pie-element/number-line-configure@5.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
|
+
* **number-line:** added ConfigLayout wrapper for authoring side ([6b3c2ad](https://github.com/pie-framework/pie-elements/commit/6b3c2adc18d6f40f14927602299213081f52a6e0))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [5.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.2.4...@pie-element/number-line-configure@5.2.5) (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
|
+
## [5.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.2.3...@pie-element/number-line-configure@5.2.4) (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
|
+
## [5.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.2.2...@pie-element/number-line-configure@5.2.3) (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
|
+
## [5.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.2.1...@pie-element/number-line-configure@5.2.2) (2022-11-15)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [5.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.2.0...@pie-element/number-line-configure@5.2.1) (2022-10-31)
|
|
78
|
+
|
|
79
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# [5.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.10...@pie-element/number-line-configure@5.2.0) (2022-10-17)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Features
|
|
89
|
+
|
|
90
|
+
* enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
|
|
91
|
+
* update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
|
|
92
|
+
* **number-line:** add pie-api config PD-23 ([3c15653](https://github.com/pie-framework/pie-elements/commit/3c15653d208fcf7336388b84bb457293f0a03c35))
|
|
93
|
+
* **number-line:** add uploadSoundSupport property PD-23-updated ([97a4f02](https://github.com/pie-framework/pie-elements/commit/97a4f02541b6f769e9329830233ef88437f0218b))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## [5.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.9...@pie-element/number-line-configure@5.1.10) (2022-09-29)
|
|
100
|
+
|
|
101
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## [5.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.8...@pie-element/number-line-configure@5.1.9) (2022-09-14)
|
|
108
|
+
|
|
109
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
## [5.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.7...@pie-element/number-line-configure@5.1.8) (2022-09-13)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Bug Fixes
|
|
119
|
+
|
|
120
|
+
* **number-line:** adjust domain min and max values PD-1648 ([9d43265](https://github.com/pie-framework/pie-elements/commit/9d43265fe691b03eb30399fbf4227220a25b946b))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [5.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.6...@pie-element/number-line-configure@5.1.7) (2022-08-31)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## [5.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.5...@pie-element/number-line-configure@5.1.6) (2022-08-16)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## [5.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.4...@pie-element/number-line-configure@5.1.5) (2022-08-08)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## [5.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.3...@pie-element/number-line-configure@5.1.4) (2022-08-02)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [5.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.2...@pie-element/number-line-configure@5.1.3) (2022-07-22)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## [5.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.1...@pie-element/number-line-configure@5.1.2) (2022-07-20)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## [5.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.1.0...@pie-element/number-line-configure@5.1.1) (2022-07-19)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
# [5.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@5.0.0...@pie-element/number-line-configure@5.1.0) (2022-06-28)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Features
|
|
186
|
+
|
|
187
|
+
* **number-line:** ux/ui for validation PD-1748 ([ccfa5fe](https://github.com/pie-framework/pie-elements/commit/ccfa5fe9b39c4471a9769a943c117e35db4bfcc2))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
# [5.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.13...@pie-element/number-line-configure@5.0.0) (2022-06-28)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### chore
|
|
197
|
+
|
|
198
|
+
* Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### BREAKING CHANGES
|
|
202
|
+
|
|
203
|
+
* Image percent buttons were removed from toolbar.
|
|
204
|
+
New properties maxImageWidth and maxImageHeight were added.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## [4.9.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.12...@pie-element/number-line-configure@4.9.13) (2022-06-13)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## [4.9.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.11...@pie-element/number-line-configure@4.9.12) (2022-05-30)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## [4.9.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.10...@pie-element/number-line-configure@4.9.11) (2022-05-30)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## [4.9.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.9...@pie-element/number-line-configure@4.9.10) (2022-05-16)
|
|
235
|
+
|
|
236
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## [4.9.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.8...@pie-element/number-line-configure@4.9.9) (2022-05-09)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## [4.9.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.7...@pie-element/number-line-configure@4.9.8) (2022-05-03)
|
|
251
|
+
|
|
252
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## [4.9.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.6...@pie-element/number-line-configure@4.9.7) (2022-04-12)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
## [4.9.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.5...@pie-element/number-line-configure@4.9.6) (2022-03-28)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## [4.9.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.4...@pie-element/number-line-configure@4.9.5) (2022-03-22)
|
|
275
|
+
|
|
276
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
## [4.9.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.3...@pie-element/number-line-configure@4.9.4) (2022-03-08)
|
|
283
|
+
|
|
284
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## [4.9.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.2...@pie-element/number-line-configure@4.9.3) (2022-03-08)
|
|
291
|
+
|
|
292
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## [4.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.1...@pie-element/number-line-configure@4.9.2) (2022-02-21)
|
|
299
|
+
|
|
300
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## [4.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.9.0...@pie-element/number-line-configure@4.9.1) (2022-02-04)
|
|
307
|
+
|
|
308
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
# [4.9.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.14...@pie-element/number-line-configure@4.9.0) (2022-01-24)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### Bug Fixes
|
|
318
|
+
|
|
319
|
+
* **number-line:** Fixed 'You have not entered a response' issue in pits ([0618d5e](https://github.com/pie-framework/pie-elements/commit/0618d5eeadbf38aca04b0f4c7e3529c2b479ec6b))
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
### Features
|
|
323
|
+
|
|
324
|
+
* **number-line:** Added support for fractions PD-472 ([4f5f525](https://github.com/pie-framework/pie-elements/commit/4f5f525f1878fe70d32cfae0b79925fcc685031c))
|
|
325
|
+
* **number-line:** Refactoring ([1fb0bb8](https://github.com/pie-framework/pie-elements/commit/1fb0bb8b302efcabd06abd9c66272e9b4353dd02))
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## [4.8.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.13...@pie-element/number-line-configure@4.8.14) (2022-01-11)
|
|
332
|
+
|
|
333
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
## [4.8.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.12...@pie-element/number-line-configure@4.8.13) (2022-01-10)
|
|
340
|
+
|
|
341
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
## [4.8.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.11...@pie-element/number-line-configure@4.8.12) (2021-12-23)
|
|
348
|
+
|
|
349
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
## [4.8.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.9...@pie-element/number-line-configure@4.8.10) (2021-12-13)
|
|
356
|
+
|
|
357
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
## [4.8.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.6...@pie-element/number-line-configure@4.8.7) (2021-11-29)
|
|
364
|
+
|
|
365
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
## [4.8.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.5...@pie-element/number-line-configure@4.8.6) (2021-10-04)
|
|
372
|
+
|
|
373
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
## [4.8.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.4...@pie-element/number-line-configure@4.8.5) (2021-09-20)
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
### Bug Fixes
|
|
383
|
+
|
|
384
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
385
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
386
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
## [4.8.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.3...@pie-element/number-line-configure@4.8.4) (2021-09-01)
|
|
393
|
+
|
|
394
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
## [4.8.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.2...@pie-element/number-line-configure@4.8.3) (2021-08-05)
|
|
401
|
+
|
|
402
|
+
**Note:** Version bump only for package @pie-element/number-line-configure
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
## [4.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.8.0...@pie-element/number-line-configure@4.8.2) (2021-08-05)
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
### Bug Fixes
|
|
412
|
+
|
|
413
|
+
* force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
# [4.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.7.0...@pie-element/number-line-configure@4.8.0) (2021-06-29)
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
### Bug Fixes
|
|
423
|
+
|
|
424
|
+
* **number-line:** if feedback is not specified in the model, it is set to none PD-935 ([#580](https://github.com/pie-framework/pie-elements/issues/580)) ([d1246e1](https://github.com/pie-framework/pie-elements/commit/d1246e184b4678d4515409c0bab16bc0f6e826dc))
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
### Features
|
|
428
|
+
|
|
429
|
+
* **number-line:** Changed vertical space depending on max number of points - PD-1011 \n\n BREAKING CHANGE: Removed height from the model ([#605](https://github.com/pie-framework/pie-elements/issues/605)) ([eb3bf84](https://github.com/pie-framework/pie-elements/commit/eb3bf84474803bb648d61dbddb53fa137863eda7))
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
6
435
|
# [4.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-configure@4.6.23...@pie-element/number-line-configure@4.7.0) (2021-04-07)
|
|
7
436
|
|
|
8
437
|
|
package/configure/lib/arrows.js
CHANGED
|
@@ -31,13 +31,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
31
31
|
|
|
32
32
|
var _configUi = require("@pie-lib/config-ui");
|
|
33
33
|
|
|
34
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
+
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; }
|
|
35
35
|
|
|
36
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
36
|
+
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; }
|
|
37
37
|
|
|
38
38
|
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); }; }
|
|
39
39
|
|
|
40
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
40
|
+
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; } }
|
|
41
41
|
|
|
42
42
|
var Arrows = /*#__PURE__*/function (_React$Component) {
|
|
43
43
|
(0, _inherits2["default"])(Arrows, _React$Component);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/arrows.jsx"],"names":["Arrows","props","change","key","event","value","update","arrows","onChange","changeLeft","bind","changeRight","classes","className","checkbox","left","right","React","Component","PropTypes","object","isRequired","string","shape","bool","func","styles","theme","paddingTop","spacing","unit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,M;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/arrows.jsx"],"names":["Arrows","props","change","key","event","value","update","arrows","onChange","changeLeft","bind","changeRight","classes","className","checkbox","left","right","React","Component","PropTypes","object","isRequired","string","shape","bool","func","styles","theme","paddingTop","spacing","unit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,M;;;;;AAWX,kBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;;AAEA,UAAKC,MAAL,GAAc,UAACC,GAAD,EAAMC,KAAN,EAAaC,KAAb,EAAuB;AACnC,UAAMC,MAAM,mCAAQ,MAAKL,KAAL,CAAWM,MAAnB,4CAA4BJ,GAA5B,EAAkCE,KAAlC,EAAZ;;AACA,YAAKJ,KAAL,CAAWO,QAAX,CAAoBF,MAApB;AACD,KAHD;;AAIA,UAAKG,UAAL,GAAkB,MAAKP,MAAL,CAAYQ,IAAZ,iDAAuB,MAAvB,CAAlB;AACA,UAAKC,WAAL,GAAmB,MAAKT,MAAL,CAAYQ,IAAZ,iDAAuB,OAAvB,CAAnB;AARiB;AASlB;;;;WAED,kBAAS;AACP,wBAAuC,KAAKT,KAA5C;AAAA,UAAQW,OAAR,eAAQA,OAAR;AAAA,UAAiBC,SAAjB,eAAiBA,SAAjB;AAAA,UAA4BN,MAA5B,eAA4BA,MAA5B;AACA,0BACE;AAAK,QAAA,SAAS,EAAE,4BAAGK,OAAO,CAACL,MAAX,EAAmBM,SAAnB;AAAhB,sBACE,gCAAC,uBAAD;AAAe,QAAA,SAAS,EAAED,OAAO,CAACE,QAAlC;AAA4C,QAAA,KAAK,EAAE,MAAnD;AAA2D,QAAA,OAAO,EAAEP,MAAM,CAACQ,IAA3E;AAAiF,QAAA,QAAQ,EAAE,KAAKN;AAAhG,QADF,uBAGE,gCAAC,uBAAD;AACE,QAAA,SAAS,EAAEG,OAAO,CAACE,QADrB;AAEE,QAAA,KAAK,EAAE,OAFT;AAGE,QAAA,OAAO,EAAEP,MAAM,CAACS,KAHlB;AAIE,QAAA,QAAQ,EAAE,KAAKL;AAJjB,QAHF,CADF;AAYD;;;EApCyBM,kBAAMC,S;;;iCAArBlB,M,eACQ;AACjBY,EAAAA,OAAO,EAAEO,sBAAUC,MAAV,CAAiBC,UADT;AAEjBR,EAAAA,SAAS,EAAEM,sBAAUG,MAFJ;AAGjBf,EAAAA,MAAM,EAAEY,sBAAUI,KAAV,CAAgB;AAAER,IAAAA,IAAI,EAAEI,sBAAUK,IAAlB;AAAwBR,IAAAA,KAAK,EAAEG,sBAAUK;AAAzC,GAAhB,EAAiEH,UAHxD;AAIjBb,EAAAA,QAAQ,EAAEW,sBAAUM;AAJH,C;iCADRzB,M,kBAOW;AACpBO,EAAAA,MAAM,EAAE;AAAEQ,IAAAA,IAAI,EAAE,IAAR;AAAcC,IAAAA,KAAK,EAAE;AAArB;AADY,C;;AA+BxB,IAAMU,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBpB,IAAAA,MAAM,EAAE;AACNqB,MAAAA,UAAU,EAAED,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB;AAD3B;AADiB,GAAZ;AAAA,CAAf;;eAKe,wBAAWJ,MAAX,EAAmB1B,MAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport cn from 'classnames';\nimport { InputCheckbox } from '@pie-lib/config-ui';\n\nexport class Arrows extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n arrows: PropTypes.shape({ left: PropTypes.bool, right: PropTypes.bool }).isRequired,\n onChange: PropTypes.func,\n };\n static defaultProps = {\n arrows: { left: true, right: true },\n };\n\n constructor(props) {\n super(props);\n\n this.change = (key, event, value) => {\n const update = { ...this.props.arrows, [key]: value };\n this.props.onChange(update);\n };\n this.changeLeft = this.change.bind(this, 'left');\n this.changeRight = this.change.bind(this, 'right');\n }\n\n render() {\n const { classes, className, arrows } = this.props;\n return (\n <div className={cn(classes.arrows, className)}>\n <InputCheckbox className={classes.checkbox} label={'Left'} checked={arrows.left} onChange={this.changeLeft} />\n \n <InputCheckbox\n className={classes.checkbox}\n label={'Right'}\n checked={arrows.right}\n onChange={this.changeRight}\n />\n </div>\n );\n }\n}\nconst styles = (theme) => ({\n arrows: {\n paddingTop: theme.spacing.unit * 2,\n },\n});\nexport default withStyles(styles)(Arrows);\n"],"file":"arrows.js"}
|
|
@@ -25,12 +25,15 @@ var CardBar = function CardBar(props) {
|
|
|
25
25
|
var classes = props.classes,
|
|
26
26
|
header = props.header,
|
|
27
27
|
children = props.children,
|
|
28
|
-
mini = props.mini
|
|
28
|
+
mini = props.mini,
|
|
29
|
+
info = props.info;
|
|
29
30
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
31
|
className: classes.cardBar
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: classes.flexContainer
|
|
31
34
|
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
32
35
|
variant: mini ? 'subheading' : 'h5'
|
|
33
|
-
}, header), children && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
36
|
+
}, header), info), children && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
34
37
|
title: children,
|
|
35
38
|
classes: {
|
|
36
39
|
tooltip: classes.tooltip
|
|
@@ -61,7 +64,11 @@ var styles = function styles(theme) {
|
|
|
61
64
|
padding: 0
|
|
62
65
|
},
|
|
63
66
|
tooltip: {
|
|
64
|
-
fontSize:
|
|
67
|
+
fontSize: theme.typography.fontSize - 2
|
|
68
|
+
},
|
|
69
|
+
flexContainer: {
|
|
70
|
+
display: 'flex',
|
|
71
|
+
alignItems: 'center'
|
|
65
72
|
}
|
|
66
73
|
};
|
|
67
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/card-bar.jsx"],"names":["CardBar","props","classes","header","children","mini","cardBar","tooltip","button","propTypes","PropTypes","object","bool","string","node","styles","theme","display","justifyContent","paddingBottom","spacing","unit","paddingTop","margin","padding","fontSize"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA,IAAMA,OAAO,GAAG,SAAVA,OAAU,
|
|
1
|
+
{"version":3,"sources":["../src/card-bar.jsx"],"names":["CardBar","props","classes","header","children","mini","info","cardBar","flexContainer","tooltip","button","propTypes","PropTypes","object","bool","string","node","styles","theme","display","justifyContent","paddingBottom","spacing","unit","paddingTop","margin","padding","fontSize","typography","alignItems"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA,IAAMA,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAW;AACzB,MAAQC,OAAR,GAAkDD,KAAlD,CAAQC,OAAR;AAAA,MAAiBC,MAAjB,GAAkDF,KAAlD,CAAiBE,MAAjB;AAAA,MAAyBC,QAAzB,GAAkDH,KAAlD,CAAyBG,QAAzB;AAAA,MAAmCC,IAAnC,GAAkDJ,KAAlD,CAAmCI,IAAnC;AAAA,MAAyCC,IAAzC,GAAkDL,KAAlD,CAAyCK,IAAzC;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEJ,OAAO,CAACK;AAAxB,kBACE;AAAK,IAAA,SAAS,EAAEL,OAAO,CAACM;AAAxB,kBACE,gCAAC,sBAAD;AAAY,IAAA,OAAO,EAAEH,IAAI,GAAG,YAAH,GAAkB;AAA3C,KAAkDF,MAAlD,CADF,EAEGG,IAFH,CADF,EAMGF,QAAQ,iBACP,gCAAC,mBAAD;AAAS,IAAA,KAAK,EAAEA,QAAhB;AAA0B,IAAA,OAAO,EAAE;AAAEK,MAAAA,OAAO,EAAEP,OAAO,CAACO;AAAnB;AAAnC,kBACE,gCAAC,sBAAD;AAAY,kBAAW,QAAvB;AAAgC,IAAA,SAAS,EAAEP,OAAO,CAACQ;AAAnD,kBACE,gCAAC,uBAAD,OADF,CADF,CAPJ,CADF;AAgBD,CAnBD;;AAqBAV,OAAO,CAACW,SAAR,GAAoB;AAClBT,EAAAA,OAAO,EAAEU,sBAAUC,MADD;AAElBR,EAAAA,IAAI,EAAEO,sBAAUE,IAFE;AAGlBX,EAAAA,MAAM,EAAES,sBAAUG,MAHA;AAIlBX,EAAAA,QAAQ,EAAEQ,sBAAUI;AAJF,CAApB;;AAOA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBX,IAAAA,OAAO,EAAE;AACPY,MAAAA,OAAO,EAAE,MADF;AAEPC,MAAAA,cAAc,EAAE,eAFT;AAGPC,MAAAA,aAAa,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAH7B;AAIPC,MAAAA,UAAU,EAAEN,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAJ1B,KADgB;AAOzBb,IAAAA,MAAM,EAAE;AACNe,MAAAA,MAAM,EAAE,CADF;AAENC,MAAAA,OAAO,EAAE;AAFH,KAPiB;AAWzBjB,IAAAA,OAAO,EAAE;AACPkB,MAAAA,QAAQ,EAAET,KAAK,CAACU,UAAN,CAAiBD,QAAjB,GAA4B;AAD/B,KAXgB;AAczBnB,IAAAA,aAAa,EAAE;AACbW,MAAAA,OAAO,EAAE,MADI;AAEbU,MAAAA,UAAU,EAAE;AAFC;AAdU,GAAZ;AAAA,CAAf;;eAoBe,wBAAWZ,MAAX,EAAmBjB,OAAnB,C","sourcesContent":["import { withStyles } from '@material-ui/core/styles';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport HelpIcon from '@material-ui/icons/HelpOutline';\nimport IconButton from '@material-ui/core/IconButton';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport Typography from '@material-ui/core/Typography';\n\nconst CardBar = (props) => {\n const { classes, header, children, mini, info } = props;\n\n return (\n <div className={classes.cardBar}>\n <div className={classes.flexContainer}>\n <Typography variant={mini ? 'subheading' : 'h5'}>{header}</Typography>\n {info}\n </div>\n\n {children && (\n <Tooltip title={children} classes={{ tooltip: classes.tooltip }}>\n <IconButton aria-label=\"Delete\" className={classes.button}>\n <HelpIcon />\n </IconButton>\n </Tooltip>\n )}\n </div>\n );\n};\n\nCardBar.propTypes = {\n classes: PropTypes.object,\n mini: PropTypes.bool,\n header: PropTypes.string,\n children: PropTypes.node,\n};\n\nconst styles = (theme) => ({\n cardBar: {\n display: 'flex',\n justifyContent: 'space-between',\n paddingBottom: theme.spacing.unit * 2,\n paddingTop: theme.spacing.unit * 2,\n },\n button: {\n margin: 0,\n padding: 0,\n },\n tooltip: {\n fontSize: theme.typography.fontSize - 2,\n },\n flexContainer: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\nexport default withStyles(styles)(CardBar);\n"],"file":"card-bar.js"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.model = exports.configuration = void 0;
|
|
7
7
|
var model = {
|
|
8
8
|
correctResponse: [],
|
|
9
9
|
graph: {
|
|
@@ -21,9 +21,9 @@ var model = {
|
|
|
21
21
|
},
|
|
22
22
|
maxNumberOfPoints: 20,
|
|
23
23
|
width: 500,
|
|
24
|
-
height: 400,
|
|
25
24
|
initialType: 'PF',
|
|
26
25
|
exhibitOnly: false,
|
|
26
|
+
toolbarEditorPosition: 'bottom',
|
|
27
27
|
availableTypes: {
|
|
28
28
|
PF: true,
|
|
29
29
|
LFF: true,
|
|
@@ -36,6 +36,20 @@ var model = {
|
|
|
36
36
|
REP: true
|
|
37
37
|
},
|
|
38
38
|
initialElements: []
|
|
39
|
+
},
|
|
40
|
+
feedback: {
|
|
41
|
+
correct: {
|
|
42
|
+
"default": 'Correct',
|
|
43
|
+
type: 'none'
|
|
44
|
+
},
|
|
45
|
+
incorrect: {
|
|
46
|
+
"default": 'Incorrect',
|
|
47
|
+
type: 'none'
|
|
48
|
+
},
|
|
49
|
+
partial: {
|
|
50
|
+
"default": 'Nearly',
|
|
51
|
+
type: 'none'
|
|
52
|
+
}
|
|
39
53
|
}
|
|
40
54
|
};
|
|
41
55
|
exports.model = model;
|
|
@@ -43,6 +57,11 @@ var configuration = {
|
|
|
43
57
|
prompt: {
|
|
44
58
|
settings: true,
|
|
45
59
|
label: 'Prompt'
|
|
60
|
+
},
|
|
61
|
+
spellCheck: {
|
|
62
|
+
label: 'Spellcheck',
|
|
63
|
+
settings: false,
|
|
64
|
+
enabled: true
|
|
46
65
|
}
|
|
47
66
|
};
|
|
48
67
|
exports.configuration = configuration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","correctResponse","graph","domain","min","max","ticks","minor","major","arrows","left","right","maxNumberOfPoints","width","
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","correctResponse","graph","domain","min","max","ticks","minor","major","arrows","left","right","maxNumberOfPoints","width","initialType","exhibitOnly","toolbarEditorPosition","availableTypes","PF","LFF","LEF","LFE","LEE","RFN","RFP","REN","REP","initialElements","feedback","correct","type","incorrect","partial","configuration","prompt","settings","label","spellCheck","enabled"],"mappings":";;;;;;AAAO,IAAMA,KAAK,GAAG;AACnBC,EAAAA,eAAe,EAAE,EADE;AAEnBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE;AAAEC,MAAAA,GAAG,EAAE,CAAC,CAAR;AAAWC,MAAAA,GAAG,EAAE;AAAhB,KADH;AAELC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAE,CADF;AAELC,MAAAA,KAAK,EAAE;AAFF,KAFF;AAMLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,IAAI,EAAE,IADA;AAENC,MAAAA,KAAK,EAAE;AAFD,KANH;AAULC,IAAAA,iBAAiB,EAAE,EAVd;AAWLC,IAAAA,KAAK,EAAE,GAXF;AAYLC,IAAAA,WAAW,EAAE,IAZR;AAaLC,IAAAA,WAAW,EAAE,KAbR;AAcLC,IAAAA,qBAAqB,EAAE,QAdlB;AAeLC,IAAAA,cAAc,EAAE;AACdC,MAAAA,EAAE,EAAE,IADU;AAEdC,MAAAA,GAAG,EAAE,IAFS;AAGdC,MAAAA,GAAG,EAAE,IAHS;AAIdC,MAAAA,GAAG,EAAE,IAJS;AAKdC,MAAAA,GAAG,EAAE,IALS;AAMdC,MAAAA,GAAG,EAAE,IANS;AAOdC,MAAAA,GAAG,EAAE,IAPS;AAQdC,MAAAA,GAAG,EAAE,IARS;AASdC,MAAAA,GAAG,EAAE;AATS,KAfX;AA0BLC,IAAAA,eAAe,EAAE;AA1BZ,GAFY;AA8BnBC,EAAAA,QAAQ,EAAE;AACRC,IAAAA,OAAO,EAAE;AACP,iBAAS,SADF;AAEPC,MAAAA,IAAI,EAAE;AAFC,KADD;AAKRC,IAAAA,SAAS,EAAE;AACT,iBAAS,WADA;AAETD,MAAAA,IAAI,EAAE;AAFG,KALH;AASRE,IAAAA,OAAO,EAAE;AACP,iBAAS,QADF;AAEPF,MAAAA,IAAI,EAAE;AAFC;AATD;AA9BS,CAAd;;AA8CA,IAAMG,aAAa,GAAG;AAC3BC,EAAAA,MAAM,EAAE;AACNC,IAAAA,QAAQ,EAAE,IADJ;AAENC,IAAAA,KAAK,EAAE;AAFD,GADmB;AAK3BC,EAAAA,UAAU,EAAE;AACVD,IAAAA,KAAK,EAAE,YADG;AAEVD,IAAAA,QAAQ,EAAE,KAFA;AAGVG,IAAAA,OAAO,EAAE;AAHC;AALe,CAAtB","sourcesContent":["export const model = {\n correctResponse: [],\n graph: {\n domain: { min: -5, max: 5 },\n ticks: {\n minor: 1,\n major: 2,\n },\n arrows: {\n left: true,\n right: true,\n },\n maxNumberOfPoints: 20,\n width: 500,\n initialType: 'PF',\n exhibitOnly: false,\n toolbarEditorPosition: 'bottom',\n availableTypes: {\n PF: true,\n LFF: true,\n LEF: true,\n LFE: true,\n LEE: true,\n RFN: true,\n RFP: true,\n REN: true,\n REP: true,\n },\n initialElements: [],\n },\n feedback: {\n correct: {\n default: 'Correct',\n type: 'none',\n },\n incorrect: {\n default: 'Incorrect',\n type: 'none',\n },\n partial: {\n default: 'Nearly',\n type: 'none',\n },\n },\n};\n\nexport const configuration = {\n prompt: {\n settings: true,\n label: 'Prompt',\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/domain.js
CHANGED
|
@@ -27,13 +27,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
27
27
|
|
|
28
28
|
var _react = _interopRequireDefault(require("react"));
|
|
29
29
|
|
|
30
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
30
|
+
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; }
|
|
31
31
|
|
|
32
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
32
|
+
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; }
|
|
33
33
|
|
|
34
34
|
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); }; }
|
|
35
35
|
|
|
36
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
36
|
+
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; } }
|
|
37
37
|
|
|
38
38
|
var DOMAIN_BEGIN = 'domainBegin';
|
|
39
39
|
var DOMAIN_END = 'domainEnd';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/domain.jsx"],"names":["DOMAIN_BEGIN","DOMAIN_END","sort","domain","min","max","Domain","props","changeMin","change","bind","changeMax","key","event","value","onChange","update","React","Component","propTypes","PropTypes","shape","number","func","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG,aAArB;AACA,IAAMC,UAAU,GAAG,WAAnB;;AAEA,IAAMC,IAAI,GAAG,SAAPA,IAAO,
|
|
1
|
+
{"version":3,"sources":["../src/domain.jsx"],"names":["DOMAIN_BEGIN","DOMAIN_END","sort","domain","min","max","Domain","props","changeMin","change","bind","changeMax","key","event","value","onChange","update","React","Component","propTypes","PropTypes","shape","number","func","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG,aAArB;AACA,IAAMC,UAAU,GAAG,WAAnB;;AAEA,IAAMC,IAAI,GAAG,SAAPA,IAAO,CAACC,MAAD,EAAY;AACvB,MAAIA,MAAM,CAACC,GAAP,IAAcD,MAAM,CAACE,GAAzB,EAA8B;AAC5B,WAAOF,MAAP;AACD;;AAED,SAAO;AAAEC,IAAAA,GAAG,EAAED,MAAM,CAACE,GAAd;AAAmBA,IAAAA,GAAG,EAAEF,MAAM,CAACC;AAA/B,GAAP;AACD,CAND;;IAQaE,M;;;;;AACX,kBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AAEA,UAAKC,SAAL,GAAiB,MAAKC,MAAL,CAAYC,IAAZ,iDAAuB,KAAvB,CAAjB;AACA,UAAKC,SAAL,GAAiB,MAAKF,MAAL,CAAYC,IAAZ,iDAAuB,KAAvB,CAAjB;AAJiB;AAKlB;;;;WAED,gBAAOE,GAAP,EAAYC,KAAZ,EAAmBC,KAAnB,EAA0B;AACxB,UAAQC,QAAR,GAAqB,KAAKR,KAA1B,CAAQQ,QAAR;;AACA,UAAMC,MAAM,mCAAQ,KAAKT,KAAL,CAAWJ,MAAnB,4CAA4BS,GAA5B,EAAkCE,KAAlC,EAAZ;;AACAC,MAAAA,QAAQ,CAACb,IAAI,CAACc,MAAD,CAAL,CAAR;AACD;;;WAED,kBAAS;AACP,UAAQb,MAAR,GAAmB,KAAKI,KAAxB,CAAQJ,MAAR;AAEA,0BACE,0DAEE,gCAAC,0BAAD;AAAW,QAAA,KAAK,EAAC,SAAjB;AAA2B,QAAA,KAAK,EAAEA,MAAM,CAACC,GAAzC;AAA8C,QAAA,IAAI,EAAEJ,YAApD;AAAkE,QAAA,QAAQ,EAAE,KAAKQ;AAAjF,QAFF,eAGE,gCAAC,0BAAD;AAAW,QAAA,KAAK,EAAC,SAAjB;AAA2B,QAAA,KAAK,EAAEL,MAAM,CAACE,GAAzC;AAA8C,QAAA,IAAI,EAAEJ,UAApD;AAAgE,QAAA,QAAQ,EAAE,KAAKU;AAA/E,QAHF,CADF;AAOD;;;EAxByBM,kBAAMC,S;;;AA0BlCZ,MAAM,CAACa,SAAP,GAAmB;AACjBhB,EAAAA,MAAM,EAAEiB,sBAAUC,KAAV,CAAgB;AAAEjB,IAAAA,GAAG,EAAEgB,sBAAUE,MAAjB;AAAyBjB,IAAAA,GAAG,EAAEe,sBAAUE;AAAxC,GAAhB,CADS;AAEjBP,EAAAA,QAAQ,EAAEK,sBAAUG,IAAV,CAAeC;AAFR,CAAnB;eAIelB,M","sourcesContent":["import { MiniField } from './number-text-field';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nconst DOMAIN_BEGIN = 'domainBegin';\nconst DOMAIN_END = 'domainEnd';\n\nconst sort = (domain) => {\n if (domain.min <= domain.max) {\n return domain;\n }\n\n return { min: domain.max, max: domain.min };\n};\n\nexport class Domain extends React.Component {\n constructor(props) {\n super(props);\n\n this.changeMin = this.change.bind(this, 'min');\n this.changeMax = this.change.bind(this, 'max');\n }\n\n change(key, event, value) {\n const { onChange } = this.props;\n const update = { ...this.props.domain, [key]: value };\n onChange(sort(update));\n }\n\n render() {\n const { domain } = this.props;\n\n return (\n <div>\n {/* <Typography>Domain</Typography> */}\n <MiniField label=\"Minimum\" value={domain.min} name={DOMAIN_BEGIN} onChange={this.changeMin} />\n <MiniField label=\"Maximum\" value={domain.max} name={DOMAIN_END} onChange={this.changeMax} />\n </div>\n );\n }\n}\nDomain.propTypes = {\n domain: PropTypes.shape({ min: PropTypes.number, max: PropTypes.number }),\n onChange: PropTypes.func.isRequired,\n};\nexport default Domain;\n"],"file":"domain.js"}
|