@pie-element/complex-rubric 2.10.1-next.11 → 2.10.1-next.12

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.
Files changed (115) hide show
  1. package/configure/package.json +2 -2
  2. package/controller/package.json +1 -1
  3. package/module/configure.js +233613 -0
  4. package/module/controller.js +379 -0
  5. package/module/demo.js +221 -0
  6. package/module/element.js +231245 -0
  7. package/module/index.html +21 -0
  8. package/module/manifest.json +14 -0
  9. package/module/print-demo.js +259 -0
  10. package/module/print.html +18 -0
  11. package/module/print.js +231217 -0
  12. package/package.json +4 -4
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +0 -1
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +0 -1383
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +0 -5
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +0 -55
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +0 -1
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +0 -1270
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +0 -584
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +0 -1
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +0 -143
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +0 -1
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +0 -204
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +0 -1
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +0 -602
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +0 -1
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +0 -361
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +0 -1
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +0 -556
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +0 -1
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +0 -380
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +0 -1
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +0 -296
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +0 -1
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +0 -14
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +0 -1
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +0 -18
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +0 -1
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +0 -544
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +0 -94
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +0 -1
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +0 -215
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +0 -1
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +0 -13
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +0 -1
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +0 -15
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +0 -803
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +0 -602
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +0 -8
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +0 -180
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +0 -1
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +0 -6
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +0 -531
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +0 -374
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +0 -85
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +0 -1
  57. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +0 -161
  58. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +0 -1
  59. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +0 -330
  60. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +0 -1
  61. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +0 -103
  62. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +0 -1
  63. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +0 -24
  64. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +0 -257
  65. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +0 -1640
  66. package/configure/node_modules/@pie-element/rubric/LICENSE.md +0 -5
  67. package/configure/node_modules/@pie-element/rubric/README.md +0 -3
  68. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +0 -197
  69. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +0 -1471
  70. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +0 -59
  71. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +0 -1
  72. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +0 -194
  73. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +0 -1
  74. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +0 -160
  75. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +0 -1
  76. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +0 -555
  77. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +0 -1
  78. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +0 -24
  79. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +0 -1
  80. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +0 -172
  81. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +0 -1
  82. package/configure/node_modules/@pie-element/rubric/configure/package.json +0 -17
  83. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +0 -173
  84. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +0 -39
  85. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +0 -127
  86. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +0 -87
  87. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +0 -427
  88. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +0 -9
  89. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +0 -94
  90. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +0 -17
  91. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +0 -536
  92. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +0 -51
  93. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +0 -1
  94. package/configure/node_modules/@pie-element/rubric/controller/package.json +0 -13
  95. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +0 -31
  96. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +0 -42
  97. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +0 -382
  98. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +0 -292
  99. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +0 -8
  100. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +0 -8
  101. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +0 -2
  102. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +0 -226
  103. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +0 -161
  104. package/configure/node_modules/@pie-element/rubric/lib/index.js +0 -88
  105. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +0 -1
  106. package/configure/node_modules/@pie-element/rubric/lib/main.js +0 -187
  107. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +0 -1
  108. package/configure/node_modules/@pie-element/rubric/lib/print.js +0 -114
  109. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +0 -1
  110. package/configure/node_modules/@pie-element/rubric/package.json +0 -26
  111. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -23003
  112. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +0 -50
  113. package/configure/node_modules/@pie-element/rubric/src/index.js +0 -34
  114. package/configure/node_modules/@pie-element/rubric/src/main.jsx +0 -136
  115. package/configure/node_modules/@pie-element/rubric/src/print.js +0 -63
@@ -1,536 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [2.9.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.8.1...@pie-element/rubric-controller@2.9.0) (2024-04-22)
7
-
8
-
9
- ### Features
10
-
11
- * update pie-lib/pie-toolbox PD-2449 ([2a0b40a](https://github.com/pie-framework/pie-elements/commit/2a0b40a826f0338b5eda2e8301f79870be3d0073))
12
-
13
-
14
-
15
-
16
-
17
- ## [2.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.8.0...@pie-element/rubric-controller@2.8.1) (2024-04-22)
18
-
19
-
20
- ### Bug Fixes
21
-
22
- * update pie-lib/pie-toolbox PD-3644, PD-3673 ([5e28ce0](https://github.com/pie-framework/pie-elements/commit/5e28ce0dab4a7ecd93ef7bba45ddb20f768b450b))
23
-
24
-
25
-
26
-
27
-
28
- # [2.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.7.1...@pie-element/rubric-controller@2.8.0) (2024-04-18)
29
-
30
-
31
- ### Features
32
-
33
- * update pie-lib/pie-toolbox SC-30530, SC-30682, PD-3607, PD-3655 ([f08bccf](https://github.com/pie-framework/pie-elements/commit/f08bccf86fcb430e75e410116b000b3affc252c0))
34
-
35
-
36
-
37
-
38
-
39
- ## [2.7.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.7.0...@pie-element/rubric-controller@2.7.1) (2024-04-01)
40
-
41
- **Note:** Version bump only for package @pie-element/rubric-controller
42
-
43
-
44
-
45
-
46
-
47
- # [2.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.6.0...@pie-element/rubric-controller@2.7.0) (2024-04-01)
48
-
49
-
50
- ### Features
51
-
52
- * **inline-dropdown:** upgrade pie-toolbox PD-2465 ([828d1c1](https://github.com/pie-framework/pie-elements/commit/828d1c1bc9e9221c1e141baaa8f89a4929ad0eb9))
53
-
54
-
55
-
56
-
57
-
58
- # [2.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.5.4...@pie-element/rubric-controller@2.6.0) (2024-04-01)
59
-
60
-
61
- ### Features
62
-
63
- * update pie-lib/pie-toolbox PD-3567, PD-3426 ([2a706d7](https://github.com/pie-framework/pie-elements/commit/2a706d799bb000c60b7a77a790de9dc66345ebf5))
64
-
65
-
66
-
67
-
68
-
69
- ## [2.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.5.3...@pie-element/rubric-controller@2.5.4) (2024-03-28)
70
-
71
-
72
- ### Bug Fixes
73
-
74
- * update pie-lib/pie-toolbox PD-3603 ([8fc82ab](https://github.com/pie-framework/pie-elements/commit/8fc82ab19baf45aecb40e4b364a7c307a9840130))
75
-
76
-
77
-
78
-
79
-
80
- ## [2.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.5.2...@pie-element/rubric-controller@2.5.3) (2024-03-27)
81
-
82
-
83
- ### Bug Fixes
84
-
85
- * add back changes for PD-1870, that were reverted in previous version ([0cad3b8](https://github.com/pie-framework/pie-elements/commit/0cad3b8f29a123e34098b865190e57b92fbf5ecc))
86
-
87
-
88
-
89
-
90
-
91
- ## [2.5.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.5.1...@pie-element/rubric-controller@2.5.2) (2024-03-27)
92
-
93
-
94
- ### Bug Fixes
95
-
96
- * revert changes made for PD-1870, we'll add them back later ([3e7e73e](https://github.com/pie-framework/pie-elements/commit/3e7e73ecc31de0ae16c59163bad95b6d7a02bb37))
97
-
98
-
99
-
100
-
101
-
102
- ## [2.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.5.0...@pie-element/rubric-controller@2.5.1) (2024-03-26)
103
-
104
- **Note:** Version bump only for package @pie-element/rubric-controller
105
-
106
-
107
-
108
-
109
-
110
- # [2.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.4.0...@pie-element/rubric-controller@2.5.0) (2024-03-20)
111
-
112
-
113
- ### Bug Fixes
114
-
115
- * updated pie-lib/pie-toolbox SC-28500 ([a8e4e6a](https://github.com/pie-framework/pie-elements/commit/a8e4e6ab27584435ce7ac3e964ccac2747402777))
116
-
117
-
118
- ### Features
119
-
120
- * updated pie-lib/pie-toolbox SC-27890 and reverted once again math-rendering-accessible ([fd312e1](https://github.com/pie-framework/pie-elements/commit/fd312e1336999893025231946649496d290883e4))
121
- * use math-rendering-accessible everywhere PD-1870 ([d52e660](https://github.com/pie-framework/pie-elements/commit/d52e6607ad8847d704bd9cb9b7e3107c130f0500))
122
-
123
-
124
-
125
-
126
-
127
- # [2.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.3.2...@pie-element/rubric-controller@2.4.0) (2024-03-15)
128
-
129
-
130
- ### Features
131
-
132
- * update pie-lib/pie-toolbox SC-27890,PD-2461 ([13d94fa](https://github.com/pie-framework/pie-elements/commit/13d94faaf0cf9cf923bbc64587cdd4202154ea33))
133
-
134
-
135
-
136
-
137
-
138
- ## [2.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.3.1...@pie-element/rubric-controller@2.3.2) (2024-03-13)
139
-
140
-
141
- ### Bug Fixes
142
-
143
- * update pie-lib/pie-toolbox PD-3549 ([b5d7d13](https://github.com/pie-framework/pie-elements/commit/b5d7d1352169cc67eaedcd56898a5806b0a8812a))
144
-
145
-
146
-
147
-
148
-
149
- ## [2.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.3.0...@pie-element/rubric-controller@2.3.1) (2024-03-12)
150
-
151
-
152
- ### Bug Fixes
153
-
154
- * update pie-lib/pie-toolbox PD-3509, PD-3465 ([b1745aa](https://github.com/pie-framework/pie-elements/commit/b1745aa981722b5561aab1f4495ac81ac7bc4155))
155
-
156
-
157
-
158
-
159
-
160
- # [2.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.2.2...@pie-element/rubric-controller@2.3.0) (2024-03-04)
161
-
162
-
163
- ### Features
164
-
165
- * update pie-lib/pie-toolbox version PD-1870 and PD-3501 ([8df1d8d](https://github.com/pie-framework/pie-elements/commit/8df1d8d281a0d6023d5a9c0e6fdd29fea71b6ac1))
166
-
167
-
168
-
169
-
170
-
171
- ## [2.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.2.1...@pie-element/rubric-controller@2.2.2) (2024-02-20)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * update pie-lib/pie-toolbox PD-3372, PD-3385, PD-3439 ([a79d800](https://github.com/pie-framework/pie-elements/commit/a79d800bb69af0d175793bc737282100168c4c60))
177
- * update pie-lib/pie-toolbox PD-3455 ([4ff9971](https://github.com/pie-framework/pie-elements/commit/4ff9971e65b680aea180c94f9e85cab7249af2fb))
178
-
179
-
180
-
181
-
182
-
183
- ## [2.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.2.0...@pie-element/rubric-controller@2.2.1) (2024-02-14)
184
-
185
-
186
- ### Bug Fixes
187
-
188
- * pie-lib/pie-toolbox with slate updates ([a8f8707](https://github.com/pie-framework/pie-elements/commit/a8f8707b2c197c2b40fb6632cee0ba4c27aa9aa4))
189
- * update pie-lib/pie-toolbox ([cec328c](https://github.com/pie-framework/pie-elements/commit/cec328caf5b69d9fee00473c502aed62d6e27462))
190
-
191
-
192
-
193
-
194
-
195
- # [2.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.9...@pie-element/rubric-controller@2.2.0) (2024-02-09)
196
-
197
-
198
- ### Features
199
-
200
- * update pie-toolbox version SC-28868 ([5745f50](https://github.com/pie-framework/pie-elements/commit/5745f502c89d730e72d4cdb83e96c9465a81ae19))
201
-
202
-
203
-
204
-
205
-
206
- ## [2.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.8...@pie-element/rubric-controller@2.1.9) (2024-02-07)
207
-
208
-
209
- ### Bug Fixes
210
-
211
- * update pie-toolbox version PD-3423 ([053ad69](https://github.com/pie-framework/pie-elements/commit/053ad690619980bce68b1b44e51975fcf91054ec))
212
-
213
-
214
-
215
-
216
-
217
- ## [2.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.7...@pie-element/rubric-controller@2.1.8) (2024-01-29)
218
-
219
-
220
- ### Bug Fixes
221
-
222
- * **rubric, complex-rubric:** fix validation for simple rubric exclude zero PD-3407 ([7b62d85](https://github.com/pie-framework/pie-elements/commit/7b62d85c04822794b0b2d17b62cf9fb75fbcda21))
223
-
224
-
225
-
226
-
227
-
228
- ## [2.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.6...@pie-element/rubric-controller@2.1.7) (2024-01-24)
229
-
230
-
231
- ### Bug Fixes
232
-
233
- * update to pie-lib/pie-toolbox 1.5.7 PD-3404 ([eae668d](https://github.com/pie-framework/pie-elements/commit/eae668d980ef4731af5eceb3e70329b7621a232b))
234
-
235
-
236
-
237
-
238
-
239
- ## [2.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.5...@pie-element/rubric-controller@2.1.6) (2024-01-24)
240
-
241
-
242
- ### Bug Fixes
243
-
244
- * update to pie-lib/pie-toolbox 1.5.6 to fix issue introduced by fix for PD-3392 ([8d0a33f](https://github.com/pie-framework/pie-elements/commit/8d0a33f51a5ebe442eb824749cb419bf23c44d28))
245
-
246
-
247
-
248
-
249
-
250
- ## [2.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.4...@pie-element/rubric-controller@2.1.5) (2024-01-23)
251
-
252
-
253
- ### Bug Fixes
254
-
255
- * update to pie-lib/pie-toolbox 1.5.4 for PD-3387, PD-3384, PD-3383, PD-3392 ([2278f9a](https://github.com/pie-framework/pie-elements/commit/2278f9a3fdf1bc89ab590f240d926a857339179e))
256
- * update to pie-lib/pie-toolbox 1.5.5 for PD-3392 ([d4286e0](https://github.com/pie-framework/pie-elements/commit/d4286e08a060a73e6de098f87173baaaa88cc997))
257
-
258
-
259
-
260
-
261
-
262
- ## [2.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.3...@pie-element/rubric-controller@2.1.4) (2024-01-15)
263
-
264
-
265
- ### Bug Fixes
266
-
267
- * update pie-lib/pie-toolbox PD-3366, PD-3367, PD-3381 ([8c9d35f](https://github.com/pie-framework/pie-elements/commit/8c9d35ff6f0dad1a161d6a2dba203a169169e562))
268
-
269
-
270
-
271
-
272
-
273
- ## [2.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.2...@pie-element/rubric-controller@2.1.3) (2024-01-08)
274
-
275
-
276
- ### Bug Fixes
277
-
278
- * update pie-lib/pie-toolbox PD-2068, PD-2060 ([b63f783](https://github.com/pie-framework/pie-elements/commit/b63f78371452e265f31f721dcfa5f8ba9789089c))
279
- * update pie-lib/pie-toolbox PD-3352 ([c40c326](https://github.com/pie-framework/pie-elements/commit/c40c326209315b57ce8da802b8e00616256e3bd6))
280
- * update pie-lib/pie-toolbox SC-27396, SC-27398 ([658a553](https://github.com/pie-framework/pie-elements/commit/658a55358181271b508f7d550467eefadcd71544))
281
-
282
-
283
-
284
-
285
-
286
- ## [2.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.1...@pie-element/rubric-controller@2.1.2) (2024-01-08)
287
-
288
-
289
- ### Bug Fixes
290
-
291
- * update pie-lib/pie-toolbox PD-3352,PD-3348, PD-3296 ([48b1952](https://github.com/pie-framework/pie-elements/commit/48b1952831835ead598b692abb3d492ec9adb564))
292
-
293
-
294
-
295
-
296
-
297
- ## [2.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.1.0...@pie-element/rubric-controller@2.1.1) (2024-01-04)
298
-
299
-
300
- ### Bug Fixes
301
-
302
- * update pie-lib/pie-toolbox PD-2068, PD-2060 ([e918850](https://github.com/pie-framework/pie-elements/commit/e9188502ffeaefe41bf0f23895d4bb2daf839364))
303
- * update pie-lib/pie-toolbox PD-3037 ([b2f689a](https://github.com/pie-framework/pie-elements/commit/b2f689a416c2c39d7ed423a22db02dd32415ba82))
304
-
305
-
306
-
307
-
308
-
309
- # [2.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.0.3...@pie-element/rubric-controller@2.1.0) (2023-12-19)
310
-
311
-
312
- ### Bug Fixes
313
-
314
- * update pie-lib/pie-toolbox PD-2068 ([34eccd5](https://github.com/pie-framework/pie-elements/commit/34eccd52c44259eddf3e2b816b00b82f83bc2bf8))
315
- * **complex-rubric:** add comments, delete logs PD-3260 ([e3991c6](https://github.com/pie-framework/pie-elements/commit/e3991c6c09a2b1f4815d3b2216b32f073e5cbf3c))
316
-
317
-
318
- ### Features
319
-
320
- * update pie-lib/pie-toolbox PD-2555 ([86d4fd9](https://github.com/pie-framework/pie-elements/commit/86d4fd909180dd1fcbc446bd8b29c23af21a1c69))
321
- * update pie-lib/pie-toolbox PD-3307, PD-2067, PD-3271, PD-3041, PD-2068 ([2eabcbd](https://github.com/pie-framework/pie-elements/commit/2eabcbd036e318bb24552f4140ca7384ad865951))
322
-
323
-
324
-
325
-
326
-
327
- ## [2.0.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.0.2...@pie-element/rubric-controller@2.0.3) (2023-11-27)
328
-
329
-
330
- ### Bug Fixes
331
-
332
- * update pie-lib ([74283d7](https://github.com/pie-framework/pie-elements/commit/74283d71b12ab9c82875ce995368e5e39f4face6))
333
-
334
-
335
-
336
-
337
-
338
- ## [2.0.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.0.1...@pie-element/rubric-controller@2.0.2) (2023-11-27)
339
-
340
-
341
- ### Bug Fixes
342
-
343
- * update pie-lib/pie-toolbox PD-597 ([1ec84aa](https://github.com/pie-framework/pie-elements/commit/1ec84aadae515088ef65b99f780a5e5dca516f99))
344
- * update pie-libs PD-2996 ([cd092c6](https://github.com/pie-framework/pie-elements/commit/cd092c6b5c4db91645394cd23febc1f9a07f46f9))
345
-
346
-
347
-
348
-
349
-
350
- ## [2.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@2.0.0...@pie-element/rubric-controller@2.0.1) (2023-11-09)
351
-
352
-
353
- ### Bug Fixes
354
-
355
- * update pie-lib/pie-toolbox PD-3221, PD-3249, PD-2765 ([9de1563](https://github.com/pie-framework/pie-elements/commit/9de1563d636983c3ddceee0279c0709d396d4f96))
356
-
357
-
358
-
359
-
360
-
361
- # [2.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.12...@pie-element/rubric-controller@2.0.0) (2023-11-07)
362
-
363
-
364
- ### Bug Fixes
365
-
366
- * update pie-lib version to fix imports for pie-lib/pie-toolbox/editable-html ([a90cbf6](https://github.com/pie-framework/pie-elements/commit/a90cbf6be81824e7266df23c2dc49b259337c1b6))
367
- * update pie-lib/pie-toolbox version ([212cbfa](https://github.com/pie-framework/pie-elements/commit/212cbfad27b29f0b1b2a3706ba82f6fb59147001))
368
- * update pie-lib/pie-toolbox version ([b791e10](https://github.com/pie-framework/pie-elements/commit/b791e10857928766e2d73c6aa80b3fb50fd1afac))
369
- * update pie-lib/pie-toolbox version ([7f64f9f](https://github.com/pie-framework/pie-elements/commit/7f64f9f2b874fd08bd8f6f05c1c4292c34ac6338))
370
-
371
-
372
- ### Code Refactoring
373
-
374
- * replaced all pie-lib packages with the new pie-toolbox package that contains all of them. ([073d7e5](https://github.com/pie-framework/pie-elements/commit/073d7e5175f7a73069f09d2ceda799682acce494))
375
-
376
-
377
- ### BREAKING CHANGES
378
-
379
- * using pie-lib/pie-toolbox now, instead of any other pie-lib package.
380
-
381
-
382
-
383
-
384
-
385
- ## [1.2.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.11...@pie-element/rubric-controller@1.2.12) (2023-07-06)
386
-
387
-
388
- ### Bug Fixes
389
-
390
- * updated editable-html dependent packages for PD-2150 ([ffa6297](https://github.com/pie-framework/pie-elements/commit/ffa62977a9e329c1e12ea1dfcb2af4ba4c993bca))
391
-
392
-
393
-
394
-
395
-
396
- ## [1.2.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.10...@pie-element/rubric-controller@1.2.11) (2023-04-25)
397
-
398
-
399
- ### Bug Fixes
400
-
401
- * update pie-libs PD-2762 ([7ac4313](https://github.com/pie-framework/pie-elements/commit/7ac431346b822fe3bbb0d13375f044f6ce1f426b))
402
-
403
-
404
-
405
-
406
-
407
- ## [1.2.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.9...@pie-element/rubric-controller@1.2.10) (2023-03-30)
408
-
409
-
410
- ### Bug Fixes
411
-
412
- * revert adding pie-lib/rubric and remove its usage from controller ([2e58a35](https://github.com/pie-framework/pie-elements/commit/2e58a35e3490f4c002c82206eec3b74b215f3e57))
413
-
414
-
415
-
416
-
417
-
418
- ## [1.2.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.8...@pie-element/rubric-controller@1.2.9) (2023-03-30)
419
-
420
-
421
- ### Bug Fixes
422
-
423
- * add dependencies ([4156132](https://github.com/pie-framework/pie-elements/commit/415613209380f7bc613b1ae7908586bbe43e32bf))
424
-
425
-
426
-
427
-
428
-
429
- ## [1.2.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.7...@pie-element/rubric-controller@1.2.8) (2022-12-07)
430
-
431
- **Note:** Version bump only for package @pie-element/rubric-controller
432
-
433
-
434
-
435
-
436
-
437
- ## [1.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.2...@pie-element/rubric-controller@1.2.4) (2021-11-11)
438
-
439
- **Note:** Version bump only for package @pie-element/rubric-controller
440
-
441
-
442
-
443
-
444
-
445
- ## [1.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.2...@pie-element/rubric-controller@1.2.3) (2021-11-11)
446
-
447
- **Note:** Version bump only for package @pie-element/rubric-controller
448
-
449
-
450
-
451
-
452
-
453
- ## [1.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.2.0...@pie-element/rubric-controller@1.2.2) (2021-08-05)
454
-
455
-
456
- ### Bug Fixes
457
-
458
- * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
459
-
460
-
461
-
462
-
463
-
464
- # [1.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.1.8...@pie-element/rubric-controller@1.2.0) (2021-06-29)
465
-
466
-
467
- ### Features
468
-
469
- * **rubric:** Added sample answers to the model - PD-621 ([#559](https://github.com/pie-framework/pie-elements/issues/559)) ([d436b47](https://github.com/pie-framework/pie-elements/commit/d436b47b1cb8dd7cfbd82dbd2de4dd5eab36905c))
470
-
471
-
472
-
473
-
474
-
475
- ## [1.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.1.6...@pie-element/rubric-controller@1.1.8) (2021-03-03)
476
-
477
- **Note:** Version bump only for package @pie-element/rubric-controller
478
-
479
-
480
-
481
-
482
-
483
- ## [1.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.1.4...@pie-element/rubric-controller@1.1.6) (2021-03-03)
484
-
485
- **Note:** Version bump only for package @pie-element/rubric-controller
486
-
487
-
488
-
489
-
490
-
491
- ## [1.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.1.3...@pie-element/rubric-controller@1.1.4) (2020-05-25)
492
-
493
- **Note:** Version bump only for package @pie-element/rubric-controller
494
-
495
-
496
-
497
-
498
-
499
- ## [1.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.1.2...@pie-element/rubric-controller@1.1.3) (2020-05-25)
500
-
501
- **Note:** Version bump only for package @pie-element/rubric-controller
502
-
503
-
504
-
505
-
506
-
507
- ## [1.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.1.1...@pie-element/rubric-controller@1.1.2) (2020-04-14)
508
-
509
- **Note:** Version bump only for package @pie-element/rubric-controller
510
-
511
-
512
-
513
-
514
-
515
- ## [1.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.0.2...@pie-element/rubric-controller@1.1.1) (2020-04-10)
516
-
517
-
518
- ### Bug Fixes
519
-
520
- * bump all packages to avoid tag conflict ([d9ec9a8](https://github.com/pie-framework/pie-elements/commit/d9ec9a8))
521
-
522
-
523
-
524
-
525
-
526
- ## [1.0.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-controller@1.0.1...@pie-element/rubric-controller@1.0.2) (2019-06-17)
527
-
528
- **Note:** Version bump only for package @pie-element/rubric-controller
529
-
530
-
531
-
532
-
533
-
534
- ## 1.0.1 (2019-05-31)
535
-
536
- **Note:** Version bump only for package @pie-element/rubric-controller
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.model = model;
7
- exports.validate = validate;
8
-
9
- function model(model, session, env) {
10
- return new Promise(function (resolve) {
11
- var modelResult = !model ? {} : model;
12
- resolve(env && env.role && env.role === 'instructor' ? modelResult : {});
13
- });
14
- }
15
-
16
- function markupToText(s) {
17
- return (s || '').replace(/(<([^>]+)>)/ig, '');
18
- } // IMPORTANT! If you make any changes to this function, please make sure you also update complex-rubric/controller/validateSimpleRubric function!“.
19
-
20
-
21
- function validate(model, config) {
22
- var points = model.points,
23
- excludeZero = model.excludeZero;
24
- var errors = {};
25
- var pointsDescriptorsErrors = {};
26
- (points || []).forEach(function (point, index) {
27
- if (index === 0 && excludeZero) {
28
- // if excludeZero is true, the 0 point is not displayed, so it should not be validated
29
- return;
30
- }
31
-
32
- if (!point || point === '<div></div>') {
33
- pointsDescriptorsErrors[index] = 'Points descriptors cannot be empty.';
34
- } else {
35
- var identicalPointDescr = points.slice(index + 1).some(function (p) {
36
- return markupToText(p) === markupToText(point);
37
- });
38
-
39
- if (identicalPointDescr) {
40
- pointsDescriptorsErrors[index] = 'Points descriptors should be unique.';
41
- }
42
- }
43
- });
44
-
45
- if (Object.keys(pointsDescriptorsErrors).length > 0) {
46
- errors.pointsDescriptorsErrors = pointsDescriptorsErrors;
47
- }
48
-
49
- return errors;
50
- }
51
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.js"],"names":["model","session","env","Promise","resolve","modelResult","role","markupToText","s","replace","validate","config","points","excludeZero","errors","pointsDescriptorsErrors","forEach","point","index","identicalPointDescr","slice","some","p","Object","keys","length"],"mappings":";;;;;;;;AAAO,SAASA,KAAT,CAAeA,KAAf,EAAsBC,OAAtB,EAA+BC,GAA/B,EAAoC;AACzC,SAAO,IAAIC,OAAJ,CAAY,UAACC,OAAD,EAAa;AAC9B,QAAMC,WAAW,GAAG,CAACL,KAAD,GAAS,EAAT,GAAcA,KAAlC;AACAI,IAAAA,OAAO,CAACF,GAAG,IAAIA,GAAG,CAACI,IAAX,IAAmBJ,GAAG,CAACI,IAAJ,KAAa,YAAhC,GAA+CD,WAA/C,GAA6D,EAA9D,CAAP;AACD,GAHM,CAAP;AAID;;AAGD,SAASE,YAAT,CAAsBC,CAAtB,EAAyB;AACvB,SAAO,CAACA,CAAC,IAAI,EAAN,EAAUC,OAAV,CAAkB,eAAlB,EAAmC,EAAnC,CAAP;AACD,C,CAGD;;;AACO,SAASC,QAAT,CAAkBV,KAAlB,EAAyBW,MAAzB,EAAiC;AACtC,MAAQC,MAAR,GAAgCZ,KAAhC,CAAQY,MAAR;AAAA,MAAgBC,WAAhB,GAAgCb,KAAhC,CAAgBa,WAAhB;AACA,MAAMC,MAAM,GAAG,EAAf;AACA,MAAMC,uBAAuB,GAAG,EAAhC;AAEA,GAACH,MAAM,IAAI,EAAX,EAAeI,OAAf,CAAuB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACvC,QAAIA,KAAK,KAAK,CAAV,IAAeL,WAAnB,EAAgC;AAC9B;AACA;AACD;;AAED,QAAI,CAACI,KAAD,IAAUA,KAAK,KAAK,aAAxB,EAAuC;AACrCF,MAAAA,uBAAuB,CAACG,KAAD,CAAvB,GAAiC,qCAAjC;AACD,KAFD,MAEO;AACL,UAAMC,mBAAmB,GAAGP,MAAM,CAACQ,KAAP,CAAaF,KAAK,GAAG,CAArB,EAAwBG,IAAxB,CAA6B,UAAAC,CAAC;AAAA,eAAIf,YAAY,CAACe,CAAD,CAAZ,KAAoBf,YAAY,CAACU,KAAD,CAApC;AAAA,OAA9B,CAA5B;;AAEA,UAAIE,mBAAJ,EAAyB;AACvBJ,QAAAA,uBAAuB,CAACG,KAAD,CAAvB,GAAiC,sCAAjC;AACD;AACF;AACF,GAfD;;AAiBA,MAAIK,MAAM,CAACC,IAAP,CAAYT,uBAAZ,EAAqCU,MAArC,GAA8C,CAAlD,EAAqD;AACnDX,IAAAA,MAAM,CAACC,uBAAP,GAAiCA,uBAAjC;AACD;;AAED,SAAOD,MAAP;AACD","sourcesContent":["export function model(model, session, env) {\n return new Promise((resolve) => {\n const modelResult = !model ? {} : model;\n resolve(env && env.role && env.role === 'instructor' ? modelResult : {});\n });\n}\n\n\nfunction markupToText(s) {\n return (s || '').replace(/(<([^>]+)>)/ig, '');\n}\n\n\n// IMPORTANT! If you make any changes to this function, please make sure you also update complex-rubric/controller/validateSimpleRubric function!“.\nexport function validate(model, config) {\n const { points, excludeZero } = model;\n const errors = {};\n const pointsDescriptorsErrors = {};\n\n (points || []).forEach((point, index) => {\n if (index === 0 && excludeZero) {\n // if excludeZero is true, the 0 point is not displayed, so it should not be validated\n return;\n }\n\n if (!point || point === '<div></div>') {\n pointsDescriptorsErrors[index] = 'Points descriptors cannot be empty.';\n } else {\n const identicalPointDescr = points.slice(index + 1).some(p => markupToText(p) === markupToText(point));\n\n if (identicalPointDescr) {\n pointsDescriptorsErrors[index] = 'Points descriptors should be unique.';\n }\n }\n });\n\n if (Object.keys(pointsDescriptorsErrors).length > 0) {\n errors.pointsDescriptorsErrors = pointsDescriptorsErrors;\n }\n\n return errors;\n}\n"],"file":"index.js"}
@@ -1,13 +0,0 @@
1
- {
2
- "name": "@pie-element/rubric-controller",
3
- "private": true,
4
- "version": "2.9.0",
5
- "main": "lib/index.js",
6
- "scripts": {
7
- "test": "./node_modules/.bin/jest"
8
- },
9
- "dependencies": {
10
- "@pie-lib/pie-toolbox": "1.16.1-next.28",
11
- "lodash": "^4.17.15"
12
- }
13
- }
@@ -1,31 +0,0 @@
1
- import { model } from '../index';
2
-
3
- describe('rubric model', () => {
4
- let state = {
5
- points: ['nothing right', 'a teeny bit right', 'mostly right', 'bingo'],
6
- sampleAnswers: [null, 'just right', 'not left', null],
7
- maxPoints: 4,
8
- excludeZero: false,
9
- };
10
-
11
- let session = {};
12
- let env, result;
13
-
14
- it('returns no model for gather', async () => {
15
- env = { mode: 'gather' };
16
- result = await model(state, session, env);
17
- expect(result).toEqual({});
18
- });
19
-
20
- it('returns no model for student role', async () => {
21
- env = { mode: 'gather', role: 'student' };
22
- result = await model(state, session, env);
23
- expect(result).toEqual({});
24
- });
25
-
26
- it('returns model for instructor role', async () => {
27
- env = { mode: 'gather', role: 'instructor' };
28
- result = await model(state, session, env);
29
- expect(result).toEqual(state);
30
- });
31
- });
@@ -1,42 +0,0 @@
1
- export function model(model, session, env) {
2
- return new Promise((resolve) => {
3
- const modelResult = !model ? {} : model;
4
- resolve(env && env.role && env.role === 'instructor' ? modelResult : {});
5
- });
6
- }
7
-
8
-
9
- function markupToText(s) {
10
- return (s || '').replace(/(<([^>]+)>)/ig, '');
11
- }
12
-
13
-
14
- // IMPORTANT! If you make any changes to this function, please make sure you also update complex-rubric/controller/validateSimpleRubric function!“.
15
- export function validate(model, config) {
16
- const { points, excludeZero } = model;
17
- const errors = {};
18
- const pointsDescriptorsErrors = {};
19
-
20
- (points || []).forEach((point, index) => {
21
- if (index === 0 && excludeZero) {
22
- // if excludeZero is true, the 0 point is not displayed, so it should not be validated
23
- return;
24
- }
25
-
26
- if (!point || point === '<div></div>') {
27
- pointsDescriptorsErrors[index] = 'Points descriptors cannot be empty.';
28
- } else {
29
- const identicalPointDescr = points.slice(index + 1).some(p => markupToText(p) === markupToText(point));
30
-
31
- if (identicalPointDescr) {
32
- pointsDescriptorsErrors[index] = 'Points descriptors should be unique.';
33
- }
34
- }
35
- });
36
-
37
- if (Object.keys(pointsDescriptorsErrors).length > 0) {
38
- errors.pointsDescriptorsErrors = pointsDescriptorsErrors;
39
- }
40
-
41
- return errors;
42
- }