@pie-element/graphing 3.5.1-next.99 → 3.5.4-next.1008
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 +185 -0
- package/configure/CHANGELOG.md +171 -0
- package/configure/lib/configure.js +108 -47
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/correct-response.js +203 -46
- package/configure/lib/correct-response.js.map +1 -1
- package/configure/lib/defaults.js +49 -7
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/graphing-config.js +162 -183
- package/configure/lib/graphing-config.js.map +1 -1
- package/configure/lib/index.js +36 -19
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/utils.js +94 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +4 -4
- package/controller/CHANGELOG.md +59 -0
- package/controller/lib/defaults.js +9 -1
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +38 -23
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +8 -6
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +282 -0
- package/docs/config-schema.json.md +213 -1
- package/docs/demo/generate.js +7 -1
- package/docs/pie-schema.json +211 -3
- package/docs/pie-schema.json.md +150 -2
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/main.js +13 -19
- package/lib/main.js.map +1 -1
- package/lib/utils.js +3 -1
- package/lib/utils.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,191 @@
|
|
|
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
|
+
## [3.7.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.14...@pie-element/graphing@3.7.15) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.7.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.13...@pie-element/graphing@3.7.14) (2022-03-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.7.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.12...@pie-element/graphing@3.7.13) (2022-03-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [3.7.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.11...@pie-element/graphing@3.7.12) (2022-03-08)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [3.7.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.10...@pie-element/graphing@3.7.11) (2022-02-21)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [3.7.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.9...@pie-element/graphing@3.7.10) (2022-02-04)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [3.7.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.8...@pie-element/graphing@3.7.9) (2022-01-24)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **graphing:** no correctness indicator if correct response is authored PD-1500 ([f03b8c1](https://github.com/pie-framework/pie-elements/commit/f03b8c15919a4fa3bb3eb91d56fd4b7d45508e83))
|
|
60
|
+
* use preview prompt for prompt, rationale and teacher instructions to fix table rendering PD-1456 ([f330601](https://github.com/pie-framework/pie-elements/commit/f3306019a2d1c8ce3e2783823dfe9ef0a0394e4f))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## [3.7.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.7...@pie-element/graphing@3.7.8) (2022-01-10)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## [3.7.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.6...@pie-element/graphing@3.7.7) (2021-12-23)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## [3.7.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.4...@pie-element/graphing@3.7.5) (2021-12-13)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [3.7.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.7.1...@pie-element/graphing@3.7.2) (2021-11-29)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## [3.7.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.6.3...@pie-element/graphing@3.7.1) (2021-11-11)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# [3.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.5.3...@pie-element/graphing@3.7.0) (2021-11-11)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Bug Fixes
|
|
110
|
+
|
|
111
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
112
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
113
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Features
|
|
117
|
+
|
|
118
|
+
* **graphing:** BREAKING CHANGE - update model and config schemas. Change model arrows prop and add arrows in config PD-483 ([fb1c27b](https://github.com/pie-framework/pie-elements/commit/fb1c27bcc25632c15d228d14483835d919e2d357))
|
|
119
|
+
* **graphing:** control over displaying graph arrows PD-483 ([6f98639](https://github.com/pie-framework/pie-elements/commit/6f98639b4bcce0e7ce75f28435c6fe1c8db8a4d4))
|
|
120
|
+
* **graphing:** Displayed point coordinates on hover PD-188 \n BREAKING CHANGE: Added coordinatesOnHover property to the model ([124cc2d](https://github.com/pie-framework/pie-elements/commit/124cc2de418fbdd1825c6c39eee550875a3e24af))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## [3.6.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.6.2...@pie-element/graphing@3.6.3) (2021-10-04)
|
|
128
|
+
|
|
129
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## [3.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.6.1...@pie-element/graphing@3.6.2) (2021-09-20)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
141
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
142
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## [3.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.6.0...@pie-element/graphing@3.6.1) (2021-09-01)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @pie-element/graphing
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# [3.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.5.3...@pie-element/graphing@3.6.0) (2021-08-05)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Features
|
|
160
|
+
|
|
161
|
+
* **graphing:** BREAKING CHANGE - update model and config schemas. Change model arrows prop and add arrows in config PD-483 ([fb1c27b](https://github.com/pie-framework/pie-elements/commit/fb1c27bcc25632c15d228d14483835d919e2d357))
|
|
162
|
+
* **graphing:** control over displaying graph arrows PD-483 ([6f98639](https://github.com/pie-framework/pie-elements/commit/6f98639b4bcce0e7ce75f28435c6fe1c8db8a4d4))
|
|
163
|
+
* **graphing:** Displayed point coordinates on hover PD-188 \n BREAKING CHANGE: Added coordinatesOnHover property to the model ([124cc2d](https://github.com/pie-framework/pie-elements/commit/124cc2de418fbdd1825c6c39eee550875a3e24af))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## [3.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.5.1...@pie-element/graphing@3.5.3) (2021-08-05)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
* force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## [3.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.5.0...@pie-element/graphing@3.5.1) (2021-06-29)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Bug Fixes
|
|
184
|
+
|
|
185
|
+
* Removed excess white space at the beginning of all items - PD-1184 ([#602](https://github.com/pie-framework/pie-elements/issues/602)) ([25b9f72](https://github.com/pie-framework/pie-elements/commit/25b9f72d2fe73bd46ea1a5c3611ff82eef3efb84))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
6
191
|
# [3.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing@3.4.18...@pie-element/graphing@3.5.0) (2021-04-07)
|
|
7
192
|
|
|
8
193
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,177 @@
|
|
|
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
|
+
## [3.3.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.14...@pie-element/graphing-configure@3.3.15) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.3.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.13...@pie-element/graphing-configure@3.3.14) (2022-03-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.3.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.12...@pie-element/graphing-configure@3.3.13) (2022-03-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [3.3.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.11...@pie-element/graphing-configure@3.3.12) (2022-03-08)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [3.3.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.10...@pie-element/graphing-configure@3.3.11) (2022-02-21)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [3.3.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.9...@pie-element/graphing-configure@3.3.10) (2022-02-04)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [3.3.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.8...@pie-element/graphing-configure@3.3.9) (2022-01-24)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **graphing:** no correctness indicator if correct response is authored PD-1500 ([f03b8c1](https://github.com/pie-framework/pie-elements/commit/f03b8c15919a4fa3bb3eb91d56fd4b7d45508e83))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## [3.3.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.7...@pie-element/graphing-configure@3.3.8) (2022-01-10)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## [3.3.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.6...@pie-element/graphing-configure@3.3.7) (2021-12-23)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## [3.3.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.4...@pie-element/graphing-configure@3.3.5) (2021-12-13)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## [3.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.1...@pie-element/graphing-configure@3.3.2) (2021-11-29)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [3.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.2.2...@pie-element/graphing-configure@3.3.1) (2021-11-11)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# [3.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.1.27...@pie-element/graphing-configure@3.3.0) (2021-11-11)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
111
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
112
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
* **graphing:** control over displaying graph arrows PD-483 ([6f98639](https://github.com/pie-framework/pie-elements/commit/6f98639b4bcce0e7ce75f28435c6fe1c8db8a4d4))
|
|
118
|
+
* **graphing:** Displayed point coordinates on hover PD-188 \n BREAKING CHANGE: Added coordinatesOnHover property to the model ([124cc2d](https://github.com/pie-framework/pie-elements/commit/124cc2de418fbdd1825c6c39eee550875a3e24af))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## [3.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.2.1...@pie-element/graphing-configure@3.2.2) (2021-10-04)
|
|
126
|
+
|
|
127
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## [3.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.2.0...@pie-element/graphing-configure@3.2.1) (2021-09-20)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
139
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
140
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
# [3.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.1.27...@pie-element/graphing-configure@3.2.0) (2021-08-05)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Features
|
|
150
|
+
|
|
151
|
+
* **graphing:** control over displaying graph arrows PD-483 ([6f98639](https://github.com/pie-framework/pie-elements/commit/6f98639b4bcce0e7ce75f28435c6fe1c8db8a4d4))
|
|
152
|
+
* **graphing:** Displayed point coordinates on hover PD-188 \n BREAKING CHANGE: Added coordinatesOnHover property to the model ([124cc2d](https://github.com/pie-framework/pie-elements/commit/124cc2de418fbdd1825c6c39eee550875a3e24af))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [3.1.27](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.1.25...@pie-element/graphing-configure@3.1.27) (2021-08-05)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## [3.1.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.1.24...@pie-element/graphing-configure@3.1.25) (2021-06-29)
|
|
170
|
+
|
|
171
|
+
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
6
177
|
## [3.1.24](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.1.23...@pie-element/graphing-configure@3.1.24) (2021-04-07)
|
|
7
178
|
|
|
8
179
|
**Note:** Version bump only for package @pie-element/graphing-configure
|
|
@@ -39,17 +39,18 @@ var _graphingConfig = _interopRequireDefault(require("./graphing-config"));
|
|
|
39
39
|
|
|
40
40
|
var _correctResponse = _interopRequireDefault(require("./correct-response"));
|
|
41
41
|
|
|
42
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
42
|
+
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; }
|
|
43
43
|
|
|
44
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
44
|
+
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; }
|
|
45
45
|
|
|
46
46
|
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); }; }
|
|
47
47
|
|
|
48
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
48
|
+
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; } }
|
|
49
49
|
|
|
50
50
|
var Panel = _configUi.settings.Panel,
|
|
51
51
|
toggle = _configUi.settings.toggle,
|
|
52
|
-
radio = _configUi.settings.radio
|
|
52
|
+
radio = _configUi.settings.radio,
|
|
53
|
+
checkboxes = _configUi.settings.checkboxes;
|
|
53
54
|
var log = (0, _debug["default"])('@pie-element:graphing:configure');
|
|
54
55
|
|
|
55
56
|
var styles = function styles(theme) {
|
|
@@ -119,46 +120,91 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
(0, _createClass2["default"])(Configure, [{
|
|
122
|
-
key: "
|
|
123
|
-
value: function
|
|
123
|
+
key: "componentDidMount",
|
|
124
|
+
value: function componentDidMount() {
|
|
125
|
+
// This is used for offering support for old models which have the property arrows: boolean
|
|
126
|
+
// Same thing is set in the controller: packages/graphing/controller/src/index.js - model
|
|
124
127
|
var _this$props4 = this.props,
|
|
125
|
-
classes = _this$props4.classes,
|
|
126
|
-
model = _this$props4.model,
|
|
127
|
-
configuration = _this$props4.configuration,
|
|
128
|
-
onConfigurationChanged = _this$props4.onConfigurationChanged,
|
|
129
128
|
onModelChanged = _this$props4.onModelChanged,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
129
|
+
model = _this$props4.model;
|
|
130
|
+
|
|
131
|
+
var _ref = model || {},
|
|
132
|
+
arrows = _ref.arrows;
|
|
133
|
+
|
|
134
|
+
if (typeof arrows === 'boolean') {
|
|
135
|
+
if (arrows) {
|
|
136
|
+
arrows = {
|
|
137
|
+
left: true,
|
|
138
|
+
right: true,
|
|
139
|
+
up: true,
|
|
140
|
+
down: true
|
|
141
|
+
};
|
|
142
|
+
} else {
|
|
143
|
+
arrows = {
|
|
144
|
+
left: false,
|
|
145
|
+
right: false,
|
|
146
|
+
up: false,
|
|
147
|
+
down: false
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
|
|
152
|
+
arrows: arrows
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}, {
|
|
157
|
+
key: "render",
|
|
158
|
+
value: function render() {
|
|
159
|
+
var _this$props5 = this.props,
|
|
160
|
+
classes = _this$props5.classes,
|
|
161
|
+
model = _this$props5.model,
|
|
162
|
+
configuration = _this$props5.configuration,
|
|
163
|
+
onConfigurationChanged = _this$props5.onConfigurationChanged,
|
|
164
|
+
onModelChanged = _this$props5.onModelChanged,
|
|
165
|
+
imageSupport = _this$props5.imageSupport;
|
|
166
|
+
|
|
167
|
+
var _ref2 = configuration || {},
|
|
168
|
+
_ref2$arrows = _ref2.arrows,
|
|
169
|
+
arrows = _ref2$arrows === void 0 ? {} : _ref2$arrows,
|
|
170
|
+
_ref2$authoring = _ref2.authoring,
|
|
171
|
+
authoring = _ref2$authoring === void 0 ? {} : _ref2$authoring,
|
|
172
|
+
_ref2$coordinatesOnHo = _ref2.coordinatesOnHover,
|
|
173
|
+
coordinatesOnHover = _ref2$coordinatesOnHo === void 0 ? {} : _ref2$coordinatesOnHo,
|
|
174
|
+
_ref2$graphDimensions = _ref2.graphDimensions,
|
|
175
|
+
graphDimensions = _ref2$graphDimensions === void 0 ? {} : _ref2$graphDimensions,
|
|
176
|
+
_ref2$labels = _ref2.labels,
|
|
177
|
+
labels = _ref2$labels === void 0 ? {} : _ref2$labels,
|
|
178
|
+
_ref2$padding = _ref2.padding,
|
|
179
|
+
padding = _ref2$padding === void 0 ? {} : _ref2$padding,
|
|
180
|
+
_ref2$prompt = _ref2.prompt,
|
|
181
|
+
prompt = _ref2$prompt === void 0 ? {} : _ref2$prompt,
|
|
182
|
+
_ref2$title = _ref2.title,
|
|
183
|
+
title = _ref2$title === void 0 ? {} : _ref2$title,
|
|
184
|
+
_ref2$rationale = _ref2.rationale,
|
|
185
|
+
rationale = _ref2$rationale === void 0 ? {} : _ref2$rationale,
|
|
186
|
+
_ref2$scoringType = _ref2.scoringType,
|
|
187
|
+
scoringType = _ref2$scoringType === void 0 ? {} : _ref2$scoringType,
|
|
188
|
+
_ref2$spellCheck = _ref2.spellCheck,
|
|
189
|
+
spellCheck = _ref2$spellCheck === void 0 ? {} : _ref2$spellCheck,
|
|
190
|
+
_ref2$studentInstruct = _ref2.studentInstructions,
|
|
191
|
+
studentInstructions = _ref2$studentInstruct === void 0 ? {} : _ref2$studentInstruct,
|
|
192
|
+
_ref2$teacherInstruct = _ref2.teacherInstructions,
|
|
193
|
+
teacherInstructions = _ref2$teacherInstruct === void 0 ? {} : _ref2$teacherInstruct,
|
|
194
|
+
_ref2$maxImageWidth = _ref2.maxImageWidth,
|
|
195
|
+
maxImageWidth = _ref2$maxImageWidth === void 0 ? {} : _ref2$maxImageWidth,
|
|
196
|
+
_ref2$maxImageHeight = _ref2.maxImageHeight,
|
|
197
|
+
maxImageHeight = _ref2$maxImageHeight === void 0 ? {} : _ref2$maxImageHeight;
|
|
198
|
+
|
|
199
|
+
var _ref3 = model || {},
|
|
200
|
+
teacherInstructionsEnabled = _ref3.teacherInstructionsEnabled,
|
|
201
|
+
promptEnabled = _ref3.promptEnabled,
|
|
202
|
+
rationaleEnabled = _ref3.rationaleEnabled,
|
|
203
|
+
spellCheckEnabled = _ref3.spellCheckEnabled;
|
|
154
204
|
|
|
155
205
|
log('[render] model', model);
|
|
156
|
-
|
|
157
|
-
var
|
|
158
|
-
teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled,
|
|
159
|
-
promptEnabled = _ref2.promptEnabled,
|
|
160
|
-
rationaleEnabled = _ref2.rationaleEnabled;
|
|
161
|
-
|
|
206
|
+
var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
207
|
+
var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
162
208
|
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
163
209
|
settings: /*#__PURE__*/_react["default"].createElement(Panel, {
|
|
164
210
|
model: model,
|
|
@@ -167,10 +213,16 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
167
213
|
onChangeConfiguration: onConfigurationChanged,
|
|
168
214
|
groups: {
|
|
169
215
|
'Item Type': {
|
|
170
|
-
arrows: arrows.settings &&
|
|
216
|
+
arrows: arrows.settings && checkboxes(arrows.label, {
|
|
217
|
+
left: arrows.left,
|
|
218
|
+
right: arrows.right,
|
|
219
|
+
up: arrows.up,
|
|
220
|
+
down: arrows.down
|
|
221
|
+
}),
|
|
171
222
|
'title.enabled': title.settings && toggle(title.label, true),
|
|
172
223
|
padding: padding.settings && toggle(padding.label),
|
|
173
|
-
labels: labels.settings && toggle(labels.label)
|
|
224
|
+
labels: labels.settings && toggle(labels.label),
|
|
225
|
+
coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label)
|
|
174
226
|
},
|
|
175
227
|
Properties: {
|
|
176
228
|
'authoring.enabled': authoring.settings && toggle(authoring.label, true),
|
|
@@ -178,6 +230,7 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
178
230
|
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
179
231
|
promptEnabled: prompt.settings && toggle(prompt.label),
|
|
180
232
|
rationaleEnabled: rationale.settings && toggle(rationale.label),
|
|
233
|
+
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
181
234
|
scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring'])
|
|
182
235
|
}
|
|
183
236
|
}
|
|
@@ -195,7 +248,10 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
195
248
|
markup: model.teacherInstructions || '',
|
|
196
249
|
onChange: this.onTeacherInstructionsChange,
|
|
197
250
|
imageSupport: imageSupport,
|
|
198
|
-
nonEmpty: false
|
|
251
|
+
nonEmpty: false,
|
|
252
|
+
spellCheck: spellCheckEnabled,
|
|
253
|
+
maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
|
|
254
|
+
maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight
|
|
199
255
|
})), promptEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
200
256
|
label: prompt.label,
|
|
201
257
|
className: classes.promptHolder
|
|
@@ -205,7 +261,10 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
205
261
|
onChange: this.onPromptChange,
|
|
206
262
|
imageSupport: imageSupport,
|
|
207
263
|
nonEmpty: false,
|
|
208
|
-
|
|
264
|
+
spellCheck: spellCheckEnabled,
|
|
265
|
+
disableUnderline: true,
|
|
266
|
+
maxImageWidth: defaultImageMaxWidth,
|
|
267
|
+
maxImageHeight: defaultImageMaxHeight
|
|
209
268
|
})), rationaleEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
210
269
|
label: rationale.label || 'Rationale',
|
|
211
270
|
className: classes.promptHolder
|
|
@@ -213,14 +272,16 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
213
272
|
className: classes.prompt,
|
|
214
273
|
markup: model.rationale || '',
|
|
215
274
|
onChange: this.onRationaleChange,
|
|
216
|
-
imageSupport: imageSupport
|
|
275
|
+
imageSupport: imageSupport,
|
|
276
|
+
spellCheck: spellCheckEnabled,
|
|
277
|
+
maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
|
|
278
|
+
maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight
|
|
217
279
|
})), /*#__PURE__*/_react["default"].createElement(_graphingConfig["default"], {
|
|
218
280
|
authoringEnabled: authoring && authoring.enabled,
|
|
219
|
-
|
|
281
|
+
graphDimensions: graphDimensions,
|
|
220
282
|
model: model,
|
|
221
283
|
onChange: this.props.onModelChanged
|
|
222
284
|
}), /*#__PURE__*/_react["default"].createElement(_correctResponse["default"], {
|
|
223
|
-
config: config,
|
|
224
285
|
model: model,
|
|
225
286
|
onChange: this.props.onModelChanged
|
|
226
287
|
})));
|