@pie-element/complex-rubric 3.7.8-next.77 → 3.7.8-next.81
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/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/CHANGELOG.md +402 -676
- package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/configure/CHANGELOG.md +366 -574
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +584 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +152 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/configure/lib/index.js +89 -63
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +546 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +361 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +556 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +380 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +296 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +118 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +18 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/controller/CHANGELOG.md +172 -165
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/controller/lib/defaults.js +8 -5
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +215 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +13 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +15 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +1628 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +1202 -0
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/docs/demo/config.js +2 -2
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +117 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +861 -0
- package/configure/node_modules/@pie-element/{rubric/docs/config-schema.json.md → multi-trait-rubric/docs/pie-schema.json.md} +284 -202
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/lib/index.js +27 -30
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +164 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +330 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +103 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
- package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/package.json +10 -12
- package/configure/package.json +5 -5
- package/module/configure.js +1 -1
- package/module/element.js +1 -1
- package/module/manifest.json +4 -4
- package/module/print.js +1 -1
- package/package.json +4 -4
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +0 -257
- package/configure/node_modules/@pie-element/rubric/README.md +0 -3
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +0 -197
- package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +0 -68
- package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +0 -162
- package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +0 -573
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +0 -24
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +0 -172
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/package.json +0 -17
- package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +0 -167
- package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +0 -42
- package/configure/node_modules/@pie-element/rubric/configure/src/index.js +0 -129
- package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +0 -89
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +0 -449
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +0 -9
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +0 -94
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +0 -17
- package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +0 -59
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/controller/package.json +0 -13
- package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +0 -33
- package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +0 -8
- package/configure/node_modules/@pie-element/rubric/controller/src/index.js +0 -41
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +0 -712
- package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +0 -8
- package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +0 -2
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +0 -391
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +0 -281
- package/configure/node_modules/@pie-element/rubric/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/lib/main.js +0 -270
- package/configure/node_modules/@pie-element/rubric/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/lib/print.js +0 -114
- package/configure/node_modules/@pie-element/rubric/lib/print.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/module/configure.js +0 -42661
- package/configure/node_modules/@pie-element/rubric/module/controller.js +0 -113
- package/configure/node_modules/@pie-element/rubric/module/demo.js +0 -33
- package/configure/node_modules/@pie-element/rubric/module/element.js +0 -7980
- package/configure/node_modules/@pie-element/rubric/module/index.html +0 -21
- package/configure/node_modules/@pie-element/rubric/module/manifest.json +0 -14
- package/configure/node_modules/@pie-element/rubric/module/print-demo.js +0 -71
- package/configure/node_modules/@pie-element/rubric/module/print.html +0 -18
- package/configure/node_modules/@pie-element/rubric/module/print.js +0 -7993
- package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -1815
- package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +0 -49
- package/configure/node_modules/@pie-element/rubric/src/index.js +0 -37
- package/configure/node_modules/@pie-element/rubric/src/main.jsx +0 -196
- package/configure/node_modules/@pie-element/rubric/src/print.js +0 -63
- /package/configure/node_modules/@pie-element/{rubric → multi-trait-rubric}/LICENSE.md +0 -0
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "3.7.8-next.
|
|
4
|
+
"version": "3.7.8-next.81+aba6dbf2c",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "^4.6.8-next.
|
|
11
|
-
"@pie-element/rubric": "^4.9.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.6.8-next.74",
|
|
11
|
+
"@pie-element/rubric": "^4.9.8-next.81+aba6dbf2c",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "aba6dbf2c98da164149a881616df5e7b8e29b2f2",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "feat",
|
|
4
|
-
"scope": null,
|
|
5
|
-
"subject": "rubric interaction",
|
|
6
|
-
"merge": null,
|
|
7
|
-
"header": "feat: rubric interaction",
|
|
8
|
-
"body": null,
|
|
9
|
-
"footer": null,
|
|
10
|
-
"notes": [],
|
|
11
|
-
"hash": "3cc2b6c45f137939c38681c82fb60724c6b4955c",
|
|
12
|
-
"gitTags": "",
|
|
13
|
-
"committerDate": "2019-05-29 17:32:36 -0400",
|
|
14
|
-
"isTagged": true,
|
|
15
|
-
"tag": "@pie-element/rubric@1.1.0"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "chore",
|
|
19
|
-
"scope": "version",
|
|
20
|
-
"subject": "bumped the versions",
|
|
21
|
-
"merge": null,
|
|
22
|
-
"header": "chore(version): bumped the versions",
|
|
23
|
-
"body": null,
|
|
24
|
-
"footer": null,
|
|
25
|
-
"notes": [],
|
|
26
|
-
"hash": "12b141d884c66a15d23c8cbb34be820a422d7332",
|
|
27
|
-
"gitTags": " (origin/feat/mask-markup-elements)",
|
|
28
|
-
"committerDate": "2019-06-06 01:15:50 +0300",
|
|
29
|
-
"isTagged": true,
|
|
30
|
-
"tag": "@pie-element/rubric@1.1.1"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "chore",
|
|
34
|
-
"scope": "merge",
|
|
35
|
-
"subject": "merged develop into master",
|
|
36
|
-
"merge": null,
|
|
37
|
-
"header": "chore(merge): merged develop into master",
|
|
38
|
-
"body": null,
|
|
39
|
-
"footer": null,
|
|
40
|
-
"notes": [],
|
|
41
|
-
"hash": "3bb9f402d900f3a0349537dfd01ce558c526cb55",
|
|
42
|
-
"gitTags": " (develop)",
|
|
43
|
-
"committerDate": "2019-06-07 23:29:44 +0300",
|
|
44
|
-
"isTagged": true,
|
|
45
|
-
"tag": "@pie-element/rubric@1.1.2"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "fix",
|
|
49
|
-
"scope": null,
|
|
50
|
-
"subject": "exlude zeros handled in renderiing",
|
|
51
|
-
"merge": null,
|
|
52
|
-
"header": "fix: exlude zeros handled in renderiing",
|
|
53
|
-
"body": null,
|
|
54
|
-
"footer": null,
|
|
55
|
-
"notes": [],
|
|
56
|
-
"hash": "ca8b34e67483c6e320077a6ca186f00f4852531e",
|
|
57
|
-
"gitTags": " (origin/ch2903/rubric-exclude-zeros-checkbox-not-functional)",
|
|
58
|
-
"committerDate": "2019-07-23 16:53:50 -0400",
|
|
59
|
-
"isTagged": true,
|
|
60
|
-
"tag": "@pie-element/rubric@1.1.8"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "fix",
|
|
64
|
-
"scope": "rubric",
|
|
65
|
-
"subject": "fix exclude zeroes number of points",
|
|
66
|
-
"merge": null,
|
|
67
|
-
"header": "fix(rubric): fix exclude zeroes number of points",
|
|
68
|
-
"body": null,
|
|
69
|
-
"footer": null,
|
|
70
|
-
"notes": [],
|
|
71
|
-
"hash": "96237349c9c4559a431dbeedff35c6cd50271046",
|
|
72
|
-
"gitTags": " (origin/fix/rubric-exclude-zeroes)",
|
|
73
|
-
"committerDate": "2019-08-13 17:06:51 +0300",
|
|
74
|
-
"isTagged": true,
|
|
75
|
-
"tag": "@pie-element/rubric@1.1.11"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"type": "fix",
|
|
79
|
-
"scope": "elements",
|
|
80
|
-
"subject": "version bumped the editable-html packages [ch1738]",
|
|
81
|
-
"merge": null,
|
|
82
|
-
"header": "fix(elements): version bumped the editable-html packages [ch1738]",
|
|
83
|
-
"body": null,
|
|
84
|
-
"footer": null,
|
|
85
|
-
"notes": [],
|
|
86
|
-
"hash": "949222a6a3af39cf8b81a885a81e5c6f3c6a28a0",
|
|
87
|
-
"gitTags": "",
|
|
88
|
-
"committerDate": "2019-08-08 08:40:11 +0300",
|
|
89
|
-
"isTagged": true,
|
|
90
|
-
"tag": "@pie-element/rubric@1.1.11"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"type": "fix",
|
|
94
|
-
"scope": "math-rendering",
|
|
95
|
-
"subject": "updated all dependent packages [ch3365]",
|
|
96
|
-
"merge": null,
|
|
97
|
-
"header": "fix(math-rendering): updated all dependent packages [ch3365]",
|
|
98
|
-
"body": null,
|
|
99
|
-
"footer": null,
|
|
100
|
-
"notes": [],
|
|
101
|
-
"hash": "7cbf25ac92040a16621d5699e232c38575f6c36c",
|
|
102
|
-
"gitTags": "",
|
|
103
|
-
"committerDate": "2019-08-16 23:04:42 +0300",
|
|
104
|
-
"isTagged": true,
|
|
105
|
-
"tag": "@pie-element/rubric@1.1.12"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "fix",
|
|
109
|
-
"scope": "math-rendering",
|
|
110
|
-
"subject": "updated all dependent packages for math rendering and for editable-html [ch3365], [ch1530]",
|
|
111
|
-
"merge": null,
|
|
112
|
-
"header": "fix(math-rendering): updated all dependent packages for math rendering and for editable-html [ch3365], [ch1530]",
|
|
113
|
-
"body": null,
|
|
114
|
-
"footer": null,
|
|
115
|
-
"notes": [],
|
|
116
|
-
"hash": "33e3287a735cec9aed893f697a1933ff0c077042",
|
|
117
|
-
"gitTags": "",
|
|
118
|
-
"committerDate": "2019-08-19 19:37:56 +0300",
|
|
119
|
-
"isTagged": true,
|
|
120
|
-
"tag": "@pie-element/rubric@1.1.13"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "feat",
|
|
124
|
-
"scope": null,
|
|
125
|
-
"subject": "PIE-200 - partialScoring - NEEDS VERIFICATION",
|
|
126
|
-
"merge": null,
|
|
127
|
-
"header": "feat: PIE-200 - partialScoring - NEEDS VERIFICATION",
|
|
128
|
-
"body": null,
|
|
129
|
-
"footer": null,
|
|
130
|
-
"notes": [],
|
|
131
|
-
"hash": "30e396948f87c82a7b0d65d80a7f6ab7d68c2f76",
|
|
132
|
-
"gitTags": "",
|
|
133
|
-
"committerDate": "2019-12-06 12:22:22 +0000",
|
|
134
|
-
"isTagged": true,
|
|
135
|
-
"tag": "@pie-element/rubric@1.2.0"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "fix",
|
|
139
|
-
"scope": null,
|
|
140
|
-
"subject": "bump ui versions",
|
|
141
|
-
"merge": null,
|
|
142
|
-
"header": "fix: bump ui versions",
|
|
143
|
-
"body": null,
|
|
144
|
-
"footer": null,
|
|
145
|
-
"notes": [],
|
|
146
|
-
"hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
|
|
147
|
-
"gitTags": "",
|
|
148
|
-
"committerDate": "2020-03-31 19:25:13 +0100",
|
|
149
|
-
"isTagged": true,
|
|
150
|
-
"tag": "@pie-element/rubric@1.3.0"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "fix",
|
|
154
|
-
"scope": null,
|
|
155
|
-
"subject": "bump lib and ui versions",
|
|
156
|
-
"merge": null,
|
|
157
|
-
"header": "fix: bump lib and ui versions",
|
|
158
|
-
"body": null,
|
|
159
|
-
"footer": null,
|
|
160
|
-
"notes": [],
|
|
161
|
-
"hash": "a882cbf4580098ce0e12c51cf6ad2879817e17e7",
|
|
162
|
-
"gitTags": "",
|
|
163
|
-
"committerDate": "2020-04-10 17:13:24 +0100",
|
|
164
|
-
"isTagged": true,
|
|
165
|
-
"tag": "@pie-element/rubric@1.4.1"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"type": "fix",
|
|
169
|
-
"scope": null,
|
|
170
|
-
"subject": "bump all packages to avoid tag conflict",
|
|
171
|
-
"merge": null,
|
|
172
|
-
"header": "fix: bump all packages to avoid tag conflict",
|
|
173
|
-
"body": null,
|
|
174
|
-
"footer": null,
|
|
175
|
-
"notes": [],
|
|
176
|
-
"hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
|
|
177
|
-
"gitTags": "",
|
|
178
|
-
"committerDate": "2020-04-10 20:01:37 +0100",
|
|
179
|
-
"isTagged": true,
|
|
180
|
-
"tag": "@pie-element/rubric@1.4.1"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"type": "fix",
|
|
184
|
-
"scope": null,
|
|
185
|
-
"subject": "bump version to avoid tag conflict",
|
|
186
|
-
"merge": null,
|
|
187
|
-
"header": "fix: bump version to avoid tag conflict",
|
|
188
|
-
"body": null,
|
|
189
|
-
"footer": null,
|
|
190
|
-
"notes": [],
|
|
191
|
-
"hash": "4d55f6d203f496420e2ed2fa32c0851406036c53",
|
|
192
|
-
"gitTags": "",
|
|
193
|
-
"committerDate": "2020-04-10 17:39:16 +0100",
|
|
194
|
-
"isTagged": true,
|
|
195
|
-
"tag": "@pie-element/rubric@1.4.1"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"type": "fix",
|
|
199
|
-
"scope": null,
|
|
200
|
-
"subject": "bump ui/lib versions",
|
|
201
|
-
"merge": null,
|
|
202
|
-
"header": "fix: bump ui/lib versions",
|
|
203
|
-
"body": null,
|
|
204
|
-
"footer": null,
|
|
205
|
-
"notes": [],
|
|
206
|
-
"hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
|
|
207
|
-
"gitTags": "",
|
|
208
|
-
"committerDate": "2020-04-14 15:36:44 +0100",
|
|
209
|
-
"isTagged": true,
|
|
210
|
-
"tag": "@pie-element/rubric@1.4.3"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"type": "fix",
|
|
214
|
-
"scope": null,
|
|
215
|
-
"subject": "bump ui/lib versions",
|
|
216
|
-
"merge": null,
|
|
217
|
-
"header": "fix: bump ui/lib versions",
|
|
218
|
-
"body": null,
|
|
219
|
-
"footer": null,
|
|
220
|
-
"notes": [],
|
|
221
|
-
"hash": "45f0da6e3e01f33aff6059cb13d571554690348b",
|
|
222
|
-
"gitTags": "",
|
|
223
|
-
"committerDate": "2020-04-28 14:57:57 +0100",
|
|
224
|
-
"isTagged": true,
|
|
225
|
-
"tag": "@pie-element/rubric@1.4.4"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"type": "fix",
|
|
229
|
-
"scope": null,
|
|
230
|
-
"subject": "update ui/lib versions",
|
|
231
|
-
"merge": null,
|
|
232
|
-
"header": "fix: update ui/lib versions",
|
|
233
|
-
"body": null,
|
|
234
|
-
"footer": null,
|
|
235
|
-
"notes": [],
|
|
236
|
-
"hash": "0226b0bc0869d468ba3e5986bc469e020f4f12a6",
|
|
237
|
-
"gitTags": "",
|
|
238
|
-
"committerDate": "2020-04-28 14:20:37 +0100",
|
|
239
|
-
"isTagged": true,
|
|
240
|
-
"tag": "@pie-element/rubric@1.4.4"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"type": "fix",
|
|
244
|
-
"scope": null,
|
|
245
|
-
"subject": "ui+libs update",
|
|
246
|
-
"merge": null,
|
|
247
|
-
"header": "fix: ui+libs update",
|
|
248
|
-
"body": null,
|
|
249
|
-
"footer": null,
|
|
250
|
-
"notes": [],
|
|
251
|
-
"hash": "6127de27006a7835d1dd7a9c4c5f13de950aa06d",
|
|
252
|
-
"gitTags": "",
|
|
253
|
-
"committerDate": "2020-04-27 19:52:07 +0100",
|
|
254
|
-
"isTagged": true,
|
|
255
|
-
"tag": "@pie-element/rubric@1.4.4"
|
|
256
|
-
}
|
|
257
|
-
]
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "feat",
|
|
4
|
-
"scope": null,
|
|
5
|
-
"subject": "rubric interaction",
|
|
6
|
-
"merge": null,
|
|
7
|
-
"header": "feat: rubric interaction",
|
|
8
|
-
"body": null,
|
|
9
|
-
"footer": null,
|
|
10
|
-
"notes": [],
|
|
11
|
-
"hash": "3cc2b6c45f137939c38681c82fb60724c6b4955c",
|
|
12
|
-
"gitTags": "",
|
|
13
|
-
"committerDate": "2019-05-29 17:32:36 -0400",
|
|
14
|
-
"isTagged": true,
|
|
15
|
-
"tag": "@pie-element/rubric-configure@1.1.0"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "fix",
|
|
19
|
-
"scope": null,
|
|
20
|
-
"subject": "exlude zeros handled in renderiing",
|
|
21
|
-
"merge": null,
|
|
22
|
-
"header": "fix: exlude zeros handled in renderiing",
|
|
23
|
-
"body": null,
|
|
24
|
-
"footer": null,
|
|
25
|
-
"notes": [],
|
|
26
|
-
"hash": "ca8b34e67483c6e320077a6ca186f00f4852531e",
|
|
27
|
-
"gitTags": " (origin/ch2903/rubric-exclude-zeros-checkbox-not-functional)",
|
|
28
|
-
"committerDate": "2019-07-23 16:53:50 -0400",
|
|
29
|
-
"isTagged": true,
|
|
30
|
-
"tag": "@pie-element/rubric-configure@1.1.4"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "fix",
|
|
34
|
-
"scope": "elements",
|
|
35
|
-
"subject": "version bumped the editable-html packages [ch1738]",
|
|
36
|
-
"merge": null,
|
|
37
|
-
"header": "fix(elements): version bumped the editable-html packages [ch1738]",
|
|
38
|
-
"body": null,
|
|
39
|
-
"footer": null,
|
|
40
|
-
"notes": [],
|
|
41
|
-
"hash": "949222a6a3af39cf8b81a885a81e5c6f3c6a28a0",
|
|
42
|
-
"gitTags": "",
|
|
43
|
-
"committerDate": "2019-08-08 08:40:11 +0300",
|
|
44
|
-
"isTagged": true,
|
|
45
|
-
"tag": "@pie-element/rubric-configure@1.1.7"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "fix",
|
|
49
|
-
"scope": "math-rendering",
|
|
50
|
-
"subject": "updated all dependent packages [ch3365]",
|
|
51
|
-
"merge": null,
|
|
52
|
-
"header": "fix(math-rendering): updated all dependent packages [ch3365]",
|
|
53
|
-
"body": null,
|
|
54
|
-
"footer": null,
|
|
55
|
-
"notes": [],
|
|
56
|
-
"hash": "7cbf25ac92040a16621d5699e232c38575f6c36c",
|
|
57
|
-
"gitTags": "",
|
|
58
|
-
"committerDate": "2019-08-16 23:04:42 +0300",
|
|
59
|
-
"isTagged": true,
|
|
60
|
-
"tag": "@pie-element/rubric-configure@1.1.8"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "fix",
|
|
64
|
-
"scope": "math-rendering",
|
|
65
|
-
"subject": "updated all dependent packages for math rendering and for editable-html [ch3365], [ch1530]",
|
|
66
|
-
"merge": null,
|
|
67
|
-
"header": "fix(math-rendering): updated all dependent packages for math rendering and for editable-html [ch3365], [ch1530]",
|
|
68
|
-
"body": null,
|
|
69
|
-
"footer": null,
|
|
70
|
-
"notes": [],
|
|
71
|
-
"hash": "33e3287a735cec9aed893f697a1933ff0c077042",
|
|
72
|
-
"gitTags": "",
|
|
73
|
-
"committerDate": "2019-08-19 19:37:56 +0300",
|
|
74
|
-
"isTagged": true,
|
|
75
|
-
"tag": "@pie-element/rubric-configure@1.1.9"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"type": "fix",
|
|
79
|
-
"scope": null,
|
|
80
|
-
"subject": "PIE-198 - remove maxPoints from rubric - redundant",
|
|
81
|
-
"merge": null,
|
|
82
|
-
"header": "fix: PIE-198 - remove maxPoints from rubric - redundant",
|
|
83
|
-
"body": null,
|
|
84
|
-
"footer": null,
|
|
85
|
-
"notes": [],
|
|
86
|
-
"hash": "3ac9a1bb2b4faa38ac0e3dedbc1c43998697b1ab",
|
|
87
|
-
"gitTags": "",
|
|
88
|
-
"committerDate": "2019-11-28 09:49:32 +0000",
|
|
89
|
-
"isTagged": true,
|
|
90
|
-
"tag": "@pie-element/rubric-configure@1.1.16"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"type": "fix",
|
|
94
|
-
"scope": null,
|
|
95
|
-
"subject": "bump ui versions",
|
|
96
|
-
"merge": null,
|
|
97
|
-
"header": "fix: bump ui versions",
|
|
98
|
-
"body": null,
|
|
99
|
-
"footer": null,
|
|
100
|
-
"notes": [],
|
|
101
|
-
"hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
|
|
102
|
-
"gitTags": "",
|
|
103
|
-
"committerDate": "2020-03-31 19:25:13 +0100",
|
|
104
|
-
"isTagged": true,
|
|
105
|
-
"tag": "@pie-element/rubric-configure@1.2.0"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "fix",
|
|
109
|
-
"scope": null,
|
|
110
|
-
"subject": "bump lib and ui versions",
|
|
111
|
-
"merge": null,
|
|
112
|
-
"header": "fix: bump lib and ui versions",
|
|
113
|
-
"body": null,
|
|
114
|
-
"footer": null,
|
|
115
|
-
"notes": [],
|
|
116
|
-
"hash": "a882cbf4580098ce0e12c51cf6ad2879817e17e7",
|
|
117
|
-
"gitTags": "",
|
|
118
|
-
"committerDate": "2020-04-10 17:13:24 +0100",
|
|
119
|
-
"isTagged": true,
|
|
120
|
-
"tag": "@pie-element/rubric-configure@1.2.1"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "fix",
|
|
124
|
-
"scope": null,
|
|
125
|
-
"subject": "bump all packages to avoid tag conflict",
|
|
126
|
-
"merge": null,
|
|
127
|
-
"header": "fix: bump all packages to avoid tag conflict",
|
|
128
|
-
"body": null,
|
|
129
|
-
"footer": null,
|
|
130
|
-
"notes": [],
|
|
131
|
-
"hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
|
|
132
|
-
"gitTags": "",
|
|
133
|
-
"committerDate": "2020-04-10 20:01:37 +0100",
|
|
134
|
-
"isTagged": true,
|
|
135
|
-
"tag": "@pie-element/rubric-configure@1.2.1"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "fix",
|
|
139
|
-
"scope": null,
|
|
140
|
-
"subject": "bump ui/lib versions",
|
|
141
|
-
"merge": null,
|
|
142
|
-
"header": "fix: bump ui/lib versions",
|
|
143
|
-
"body": null,
|
|
144
|
-
"footer": null,
|
|
145
|
-
"notes": [],
|
|
146
|
-
"hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
|
|
147
|
-
"gitTags": "",
|
|
148
|
-
"committerDate": "2020-04-14 15:36:44 +0100",
|
|
149
|
-
"isTagged": true,
|
|
150
|
-
"tag": "@pie-element/rubric-configure@1.2.3"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "fix",
|
|
154
|
-
"scope": null,
|
|
155
|
-
"subject": "bump ui/lib versions",
|
|
156
|
-
"merge": null,
|
|
157
|
-
"header": "fix: bump ui/lib versions",
|
|
158
|
-
"body": null,
|
|
159
|
-
"footer": null,
|
|
160
|
-
"notes": [],
|
|
161
|
-
"hash": "45f0da6e3e01f33aff6059cb13d571554690348b",
|
|
162
|
-
"gitTags": "",
|
|
163
|
-
"committerDate": "2020-04-28 14:57:57 +0100",
|
|
164
|
-
"isTagged": true,
|
|
165
|
-
"tag": "@pie-element/rubric-configure@1.2.4"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"type": "fix",
|
|
169
|
-
"scope": null,
|
|
170
|
-
"subject": "update ui/lib versions",
|
|
171
|
-
"merge": null,
|
|
172
|
-
"header": "fix: update ui/lib versions",
|
|
173
|
-
"body": null,
|
|
174
|
-
"footer": null,
|
|
175
|
-
"notes": [],
|
|
176
|
-
"hash": "0226b0bc0869d468ba3e5986bc469e020f4f12a6",
|
|
177
|
-
"gitTags": "",
|
|
178
|
-
"committerDate": "2020-04-28 14:20:37 +0100",
|
|
179
|
-
"isTagged": true,
|
|
180
|
-
"tag": "@pie-element/rubric-configure@1.2.4"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"type": "fix",
|
|
184
|
-
"scope": null,
|
|
185
|
-
"subject": "ui+libs update",
|
|
186
|
-
"merge": null,
|
|
187
|
-
"header": "fix: ui+libs update",
|
|
188
|
-
"body": null,
|
|
189
|
-
"footer": null,
|
|
190
|
-
"notes": [],
|
|
191
|
-
"hash": "6127de27006a7835d1dd7a9c4c5f13de950aa06d",
|
|
192
|
-
"gitTags": "",
|
|
193
|
-
"committerDate": "2020-04-27 19:52:07 +0100",
|
|
194
|
-
"isTagged": true,
|
|
195
|
-
"tag": "@pie-element/rubric-configure@1.2.4"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
model: {
|
|
9
|
-
points: ['', '', '', ''],
|
|
10
|
-
sampleAnswers: [null, null, null, null],
|
|
11
|
-
maxPoints: 3,
|
|
12
|
-
excludeZero: false,
|
|
13
|
-
excludeZeroEnabled: true,
|
|
14
|
-
maxPointsEnabled: true
|
|
15
|
-
},
|
|
16
|
-
configuration: {
|
|
17
|
-
baseInputConfiguration: {
|
|
18
|
-
audio: {
|
|
19
|
-
disabled: false
|
|
20
|
-
},
|
|
21
|
-
video: {
|
|
22
|
-
disabled: false
|
|
23
|
-
},
|
|
24
|
-
image: {
|
|
25
|
-
disabled: false
|
|
26
|
-
},
|
|
27
|
-
textAlign: {
|
|
28
|
-
disabled: true
|
|
29
|
-
},
|
|
30
|
-
showParagraphs: {
|
|
31
|
-
disabled: false
|
|
32
|
-
},
|
|
33
|
-
separateParagraphs: {
|
|
34
|
-
disabled: true
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
rubriclessInstruction: {
|
|
38
|
-
inputConfiguration: {
|
|
39
|
-
audio: {
|
|
40
|
-
disabled: false
|
|
41
|
-
},
|
|
42
|
-
video: {
|
|
43
|
-
disabled: false
|
|
44
|
-
},
|
|
45
|
-
image: {
|
|
46
|
-
disabled: false
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
showExcludeZero: {
|
|
51
|
-
settings: true,
|
|
52
|
-
label: 'Ability to exclude zero'
|
|
53
|
-
},
|
|
54
|
-
showMaxPoint: {
|
|
55
|
-
settings: true,
|
|
56
|
-
label: 'Show max points dropdown'
|
|
57
|
-
},
|
|
58
|
-
settingsPanelDisabled: false,
|
|
59
|
-
// width: '500px'
|
|
60
|
-
mathMlOptions: {
|
|
61
|
-
mmlOutput: false,
|
|
62
|
-
mmlEditing: false
|
|
63
|
-
},
|
|
64
|
-
maxMaxPoints: 9
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
exports["default"] = _default;
|
|
68
|
-
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","points","sampleAnswers","maxPoints","excludeZero","excludeZeroEnabled","maxPointsEnabled","configuration","baseInputConfiguration","audio","disabled","video","image","textAlign","showParagraphs","separateParagraphs","rubriclessInstruction","inputConfiguration","showExcludeZero","settings","label","showMaxPoint","settingsPanelDisabled","mathMlOptions","mmlOutput","mmlEditing","maxMaxPoints"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,CADH;AAELC,IAAAA,aAAa,EAAE,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAFV;AAGLC,IAAAA,SAAS,EAAE,CAHN;AAILC,IAAAA,WAAW,EAAE,KAJR;AAKLC,IAAAA,kBAAkB,EAAE,IALf;AAMLC,IAAAA,gBAAgB,EAAE;AANb,GADM;AASbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,sBAAsB,EAAE;AACtBC,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ,OADe;AAEtBC,MAAAA,KAAK,EAAE;AAAED,QAAAA,QAAQ,EAAE;AAAZ,OAFe;AAGtBE,MAAAA,KAAK,EAAE;AAAEF,QAAAA,QAAQ,EAAE;AAAZ,OAHe;AAItBG,MAAAA,SAAS,EAAE;AAAEH,QAAAA,QAAQ,EAAE;AAAZ,OAJW;AAKtBI,MAAAA,cAAc,EAAE;AAAEJ,QAAAA,QAAQ,EAAE;AAAZ,OALM;AAMtBK,MAAAA,kBAAkB,EAAE;AAAEL,QAAAA,QAAQ,EAAE;AAAZ;AANE,KADX;AASbM,IAAAA,qBAAqB,EAAE;AACrBC,MAAAA,kBAAkB,EAAE;AAClBR,QAAAA,KAAK,EAAE;AAAEC,UAAAA,QAAQ,EAAE;AAAZ,SADW;AAElBC,QAAAA,KAAK,EAAE;AAAED,UAAAA,QAAQ,EAAE;AAAZ,SAFW;AAGlBE,QAAAA,KAAK,EAAE;AAAEF,UAAAA,QAAQ,EAAE;AAAZ;AAHW;AADC,KATV;AAgBbQ,IAAAA,eAAe,EAAE;AACfC,MAAAA,QAAQ,EAAE,IADK;AAEfC,MAAAA,KAAK,EAAE;AAFQ,KAhBJ;AAoBbC,IAAAA,YAAY,EAAE;AACZF,MAAAA,QAAQ,EAAE,IADE;AAEZC,MAAAA,KAAK,EAAE;AAFK,KApBD;AAwBbE,IAAAA,qBAAqB,EAAE,KAxBV;AAyBb;AACAC,IAAAA,aAAa,EAAE;AACbC,MAAAA,SAAS,EAAE,KADE;AAEbC,MAAAA,UAAU,EAAE;AAFC,KA1BF;AA8BbC,IAAAA,YAAY,EAAE;AA9BD;AATF,C","sourcesContent":["export default {\n model: {\n points: ['', '', '', ''],\n sampleAnswers: [null, null, null, null],\n maxPoints: 3,\n excludeZero: false,\n excludeZeroEnabled: true,\n maxPointsEnabled: true,\n },\n configuration: {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n textAlign: { disabled: true },\n showParagraphs: { disabled: false },\n separateParagraphs: { disabled: true },\n },\n rubriclessInstruction: {\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n // width: '500px'\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n maxMaxPoints: 9,\n },\n};\n"],"file":"defaults.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["modelWithDefaults","m","defaults","model","configurationWithDefaults","c","configuration","RubricElement","nextModel","currentModel","_model","validatedModel","maxPoints","excludeZero","points","sampleAnswers","howManyPointsShouldHave","howManyPointsDoesItHave","length","excludeZeroChanged","maxPointsChanged","i","push","slice","_configuration","onModelChanged","_render","debug","log","bind","onConfigurationChanged","updateModelAccordingToReceivedProps","dispatchEvent","ModelUpdatedEvent","handler","InsertImageEvent","src","done","DeleteImageEvent","element","React","createElement","Main","imageSupport","add","insertImage","onDeleteImage","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,CAAD;AAAA,yCAAaC,qBAASC,KAAtB,GAAgCF,CAAhC;AAAA,CAA1B;;AAEA,IAAMG,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACC,CAAD;AAAA,yCAAaH,qBAASI,aAAtB,GAAwCD,CAAxC;AAAA,CAAlC;;IAEqBE,a;;;;;AACnB,2BAAc;AAAA;;AAAA;AACZ;AADY,4HASwB,UAACC,SAAD,EAAe;AACnD,UAAMC,YAAY,qBAAQ,MAAKC,MAAb,CAAlB;;AAEA,UAAI,CAACF,SAAL,EAAgB;AACd,eAAOC,YAAP;AACD;;AAED,UAAME,cAAc,qBAAQH,SAAR,CAApB,CAPmD,CASnD;;;AACA,UAAIG,cAAc,CAACC,SAAf,KAA6B,CAAjC,EAAoC;AAClCD,QAAAA,cAAc,CAACE,WAAf,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DeleteImageEvent } from '@pie-framework/pie-configure-events';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport debug from 'debug';\n\nimport Main from './main';\nimport defaults from './defaults';\n\nconst modelWithDefaults = (m) => ({ ...defaults.model, ...m });\n\nconst configurationWithDefaults = (c) => ({ ...defaults.configuration, ...c });\n\nexport default class RubricElement extends HTMLElement {\n constructor() {\n super();\n debug.log('constructor called');\n this._model = modelWithDefaults();\n this._configuration = configurationWithDefaults();\n this.onModelChanged = this.onModelChanged.bind(this);\n this.onConfigurationChanged = this.onConfigurationChanged.bind(this);\n }\n\n updateModelAccordingToReceivedProps = (nextModel) => {\n const currentModel = { ...this._model };\n\n if (!nextModel) {\n return currentModel;\n }\n\n const validatedModel = { ...nextModel };\n\n // excludeZero should be false and disabled when maxPoints is 1\n if (validatedModel.maxPoints === 1) {\n validatedModel.excludeZero = false;\n }\n\n const { maxPoints, excludeZero } = validatedModel || {};\n\n validatedModel.points = validatedModel.points ? [...validatedModel.points] : [];\n validatedModel.sampleAnswers = validatedModel.sampleAnswers ? [...validatedModel.sampleAnswers] : [];\n\n const howManyPointsShouldHave = excludeZero ? maxPoints : maxPoints + 1;\n const howManyPointsDoesItHave = validatedModel.points.length;\n\n const excludeZeroChanged = currentModel?.excludeZero !== nextModel?.excludeZero;\n const maxPointsChanged = currentModel?.maxPoints !== nextModel?.maxPoints;\n\n if (howManyPointsDoesItHave < howManyPointsShouldHave) {\n if (excludeZeroChanged && !excludeZero) {\n validatedModel.points = ['', ...validatedModel.points];\n validatedModel.sampleAnswers = [null, ...validatedModel.sampleAnswers];\n }\n\n if (maxPointsChanged) {\n for (let i = 0; i < howManyPointsShouldHave - howManyPointsDoesItHave; i++) {\n validatedModel.points.push('');\n validatedModel.sampleAnswers.push(null);\n }\n }\n } else if (howManyPointsDoesItHave > howManyPointsShouldHave) {\n if (excludeZeroChanged && excludeZero) {\n validatedModel.points = validatedModel.points.slice(1);\n validatedModel.sampleAnswers = validatedModel.sampleAnswers.slice(1);\n }\n\n if (maxPointsChanged) {\n validatedModel.points = validatedModel.points.slice(0, howManyPointsShouldHave);\n validatedModel.sampleAnswers = validatedModel.sampleAnswers.slice(0, howManyPointsShouldHave);\n }\n }\n\n return validatedModel;\n };\n\n set model(m) {\n this._model = this.updateModelAccordingToReceivedProps(modelWithDefaults(m));\n this._render();\n }\n\n set configuration(c) {\n this._configuration = configurationWithDefaults(c);\n this._render();\n }\n\n onModelChanged(m) {\n this._model = this.updateModelAccordingToReceivedProps(m);\n this._render();\n this.dispatchEvent(new ModelUpdatedEvent(this._model, false));\n }\n\n onConfigurationChanged = (c) => {\n this._configuration = configurationWithDefaults(c);\n\n if (this._model) {\n this.onModelChanged(this._model);\n }\n\n this._render();\n };\n\n insertImage(handler) {\n this.dispatchEvent(new InsertImageEvent(handler));\n }\n\n onDeleteImage(src, done) {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n }\n\n connectedCallback() {\n this._render();\n }\n\n _render() {\n if (this._model) {\n let element = React.createElement(Main, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n imageSupport: {\n add: this.insertImage.bind(this),\n delete: this.onDeleteImage.bind(this),\n },\n });\n\n ReactDOM.render(element, this);\n }\n }\n}\n"],"file":"index.js"}
|