@pie-element/ebsr 6.6.2 → 6.6.3-next.1016

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 (735) hide show
  1. package/CHANGELOG.md +169 -0
  2. package/configure/CHANGELOG.md +169 -0
  3. package/configure/lib/defaults.js +29 -12
  4. package/configure/lib/defaults.js.map +1 -1
  5. package/configure/lib/index.js +30 -23
  6. package/configure/lib/index.js.map +1 -1
  7. package/configure/lib/main.js +70 -43
  8. package/configure/lib/main.js.map +1 -1
  9. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +1793 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +1334 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +104 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +198 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +599 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +768 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +18 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +305 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +36 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +353 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +277 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +52 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +338 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +274 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +298 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +157 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +151 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +97 -0
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +254 -0
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  56. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  57. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +35 -0
  58. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  59. package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +843 -0
  60. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/controller.js +17399 -17113
  61. package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +77 -0
  62. package/configure/node_modules/@pie-element/multiple-choice/module/element.js +2019 -0
  63. package/configure/node_modules/@pie-element/multiple-choice/module/index.html +21 -0
  64. package/configure/node_modules/@pie-element/multiple-choice/module/manifest.json +14 -0
  65. package/configure/node_modules/@pie-element/multiple-choice/module/print-demo.js +115 -0
  66. package/configure/node_modules/@pie-element/multiple-choice/module/print.html +18 -0
  67. package/configure/node_modules/@pie-element/multiple-choice/module/print.js +1983 -0
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +1677 -0
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +1645 -0
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +5 -0
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +12 -0
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +44 -0
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +1 -0
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +86 -0
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +1 -0
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +180 -0
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +1 -0
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +409 -0
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +1 -0
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +54 -0
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +1 -0
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +196 -0
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +1 -0
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +75 -0
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +1 -0
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +189 -0
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +1 -0
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +46 -0
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +1 -0
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +156 -0
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +1 -0
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +216 -0
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +1 -0
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +152 -0
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +1 -0
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +131 -0
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +1 -0
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +191 -0
  99. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +1 -0
  100. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +113 -0
  101. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +1 -0
  102. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +24 -0
  103. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +1 -0
  104. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +115 -0
  105. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +1 -0
  106. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +99 -0
  107. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +1 -0
  108. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +79 -0
  109. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +1 -0
  110. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +370 -0
  111. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +1 -0
  112. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +278 -0
  113. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +1 -0
  114. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +41 -0
  115. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +1 -0
  116. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +77 -0
  117. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +1 -0
  118. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +140 -0
  119. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +1 -0
  120. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +426 -0
  121. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +1 -0
  122. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +43 -0
  123. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +1 -0
  124. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +56 -0
  125. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +1 -0
  126. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +117 -0
  127. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +1 -0
  128. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +210 -0
  129. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +1 -0
  130. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +192 -0
  131. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +1 -0
  132. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +95 -0
  133. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +1 -0
  134. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  135. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/CHANGELOG.md +449 -0
  136. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  137. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  138. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  139. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  140. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  141. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  142. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  143. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  144. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  145. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  146. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  147. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/render-math.js +276 -0
  148. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  149. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/package.json +19 -0
  150. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  151. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  152. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  153. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  154. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  155. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  156. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  157. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  158. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  159. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  160. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/render-math.js +230 -0
  161. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  162. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/CHANGELOG.md +618 -0
  163. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  164. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/README.md +33 -0
  165. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  166. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  167. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  168. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  169. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  170. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  171. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  172. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  173. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  174. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  175. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  176. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  177. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  178. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  179. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  180. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  181. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  182. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  183. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  184. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  185. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  186. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  187. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  188. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  189. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  190. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  191. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/package.json +30 -0
  192. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  193. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  194. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  195. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  196. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  197. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  198. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  199. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  200. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  201. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  202. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  203. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  204. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  205. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +30 -0
  206. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +43 -0
  207. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +63 -0
  208. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +103 -0
  209. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +315 -0
  210. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +30 -0
  211. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +116 -0
  212. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +54 -0
  213. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +98 -0
  214. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +23 -0
  215. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +88 -0
  216. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +58 -0
  217. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +72 -0
  218. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +96 -0
  219. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +122 -0
  220. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +64 -0
  221. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +4 -0
  222. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +60 -0
  223. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +31 -0
  224. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +64 -0
  225. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +279 -0
  226. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +196 -0
  227. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +18 -0
  228. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +52 -0
  229. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +75 -0
  230. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +297 -0
  231. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +20 -0
  232. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +31 -0
  233. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +51 -0
  234. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +121 -0
  235. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +94 -0
  236. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +36 -0
  237. package/configure/node_modules/@pie-element/multiple-choice/package.json +34 -0
  238. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +547 -0
  239. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +516 -0
  240. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +5 -0
  241. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +64 -0
  242. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +86 -0
  243. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +1 -0
  244. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +155 -0
  245. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +1 -0
  246. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +65 -0
  247. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +1 -0
  248. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  249. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/CHANGELOG.md +449 -0
  250. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  251. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  252. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  253. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  254. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  255. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  256. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  257. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  258. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  259. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  260. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  261. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/render-math.js +276 -0
  262. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  263. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/package.json +19 -0
  264. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  265. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  266. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  267. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  268. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  269. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  270. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  271. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  272. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  273. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  274. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/render-math.js +230 -0
  275. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  276. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/CHANGELOG.md +618 -0
  277. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  278. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/README.md +33 -0
  279. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  280. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  281. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  282. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  283. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  284. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  285. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  286. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  287. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  288. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  289. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  290. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  291. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  292. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  293. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  294. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  295. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  296. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  297. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  298. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  299. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  300. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  301. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  302. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  303. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  304. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  305. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/package.json +30 -0
  306. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  307. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  308. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  309. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  310. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  311. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  312. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  313. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  314. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  315. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  316. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  317. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  318. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  319. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +36 -0
  320. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  321. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +65 -0
  322. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +75 -0
  323. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +60 -0
  324. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +3327 -0
  325. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +1616 -0
  326. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +5 -0
  327. package/configure/node_modules/@pie-lib/editable-html/README.md +45 -0
  328. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +16 -0
  329. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +752 -0
  330. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +1 -0
  331. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +236 -0
  332. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +1 -0
  333. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +16 -0
  334. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +1 -0
  335. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +250 -0
  336. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +1 -0
  337. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +143 -0
  338. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +1 -0
  339. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +219 -0
  340. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +1 -0
  341. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +139 -0
  342. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +1 -0
  343. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +135 -0
  344. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +1 -0
  345. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +204 -0
  346. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +1 -0
  347. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +347 -0
  348. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +1 -0
  349. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +344 -0
  350. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +1 -0
  351. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +449 -0
  352. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +1 -0
  353. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +109 -0
  354. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +1 -0
  355. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +106 -0
  356. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +1 -0
  357. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +264 -0
  358. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -0
  359. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +97 -0
  360. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +1 -0
  361. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +54 -0
  362. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -0
  363. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +93 -0
  364. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +1 -0
  365. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +288 -0
  366. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +1 -0
  367. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +70 -0
  368. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +1 -0
  369. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +110 -0
  370. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +1 -0
  371. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +69 -0
  372. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +1 -0
  373. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +497 -0
  374. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +1 -0
  375. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +169 -0
  376. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +1 -0
  377. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +132 -0
  378. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +1 -0
  379. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +50 -0
  380. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +1 -0
  381. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +275 -0
  382. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -0
  383. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +32 -0
  384. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +1 -0
  385. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +179 -0
  386. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +1 -0
  387. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +358 -0
  388. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +1 -0
  389. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +62 -0
  390. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +1 -0
  391. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +411 -0
  392. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +1 -0
  393. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +9 -0
  394. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +1 -0
  395. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  396. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/CHANGELOG.md +449 -0
  397. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  398. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  399. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  400. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  401. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  402. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  403. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  404. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  405. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  406. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  407. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  408. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/render-math.js +276 -0
  409. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  410. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/package.json +19 -0
  411. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  412. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  413. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  414. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  415. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  416. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  417. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  418. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  419. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  420. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  421. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/render-math.js +230 -0
  422. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  423. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/CHANGELOG.md +618 -0
  424. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  425. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/README.md +33 -0
  426. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  427. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  428. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  429. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  430. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  431. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  432. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  433. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  434. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  435. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  436. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  437. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  438. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  439. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  440. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  441. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  442. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  443. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  444. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  445. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  446. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  447. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  448. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  449. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  450. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  451. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  452. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/package.json +30 -0
  453. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  454. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  455. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  456. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  457. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  458. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  459. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  460. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  461. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  462. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  463. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  464. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  465. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  466. package/configure/node_modules/@pie-lib/editable-html/package.json +51 -0
  467. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +59 -0
  468. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +24 -0
  469. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +83 -0
  470. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +27 -0
  471. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +25 -0
  472. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +151 -0
  473. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +15 -0
  474. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +26 -0
  475. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +30 -0
  476. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +29 -0
  477. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +40 -0
  478. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +23 -0
  479. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +96 -0
  480. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +29 -0
  481. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +40 -0
  482. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +24 -0
  483. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +12 -0
  484. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +3 -0
  485. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +67 -0
  486. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +42 -0
  487. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +641 -0
  488. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +145 -0
  489. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +8 -0
  490. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +27 -0
  491. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +166 -0
  492. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +62 -0
  493. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +180 -0
  494. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +93 -0
  495. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +112 -0
  496. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +175 -0
  497. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +283 -0
  498. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +284 -0
  499. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +372 -0
  500. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +53 -0
  501. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +43 -0
  502. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +187 -0
  503. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +78 -0
  504. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +45 -0
  505. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +68 -0
  506. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +259 -0
  507. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +63 -0
  508. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +77 -0
  509. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +59 -0
  510. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +437 -0
  511. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +104 -0
  512. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +111 -0
  513. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +36 -0
  514. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +225 -0
  515. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +21 -0
  516. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +97 -0
  517. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +316 -0
  518. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +32 -0
  519. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +376 -0
  520. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +1 -0
  521. package/configure/node_modules/@pie-lib/editable-html/static.json +1 -0
  522. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +1547 -0
  523. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +757 -0
  524. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +5 -0
  525. package/configure/node_modules/@pie-lib/math-input/README.md +27 -0
  526. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +126 -0
  527. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +1 -0
  528. package/configure/node_modules/@pie-lib/math-input/lib/index.js +80 -0
  529. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +1 -0
  530. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +417 -0
  531. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +1 -0
  532. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +34 -0
  533. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +1 -0
  534. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +41 -0
  535. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +1 -0
  536. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +17 -0
  537. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +1 -0
  538. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +46 -0
  539. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +1 -0
  540. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +43 -0
  541. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +1 -0
  542. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +53 -0
  543. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +1 -0
  544. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +16 -0
  545. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +1 -0
  546. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +35 -0
  547. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +1 -0
  548. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +31 -0
  549. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +1 -0
  550. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +165 -0
  551. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +1 -0
  552. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +295 -0
  553. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +1 -0
  554. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +54 -0
  555. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +1 -0
  556. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +32 -0
  557. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +1 -0
  558. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +23 -0
  559. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +1 -0
  560. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +23 -0
  561. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +1 -0
  562. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +69 -0
  563. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +1 -0
  564. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +23 -0
  565. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +1 -0
  566. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +17 -0
  567. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +1 -0
  568. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +45 -0
  569. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +1 -0
  570. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +23 -0
  571. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +1 -0
  572. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +53 -0
  573. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +1 -0
  574. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +130 -0
  575. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +1 -0
  576. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +29 -0
  577. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +1 -0
  578. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +206 -0
  579. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +1 -0
  580. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +23 -0
  581. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +1 -0
  582. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +24 -0
  583. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +1 -0
  584. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +257 -0
  585. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +1 -0
  586. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +224 -0
  587. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +1 -0
  588. package/configure/node_modules/@pie-lib/math-input/package.json +26 -0
  589. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +54 -0
  590. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +27 -0
  591. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +335 -0
  592. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +17 -0
  593. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +32 -0
  594. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +5 -0
  595. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +27 -0
  596. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +35 -0
  597. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +40 -0
  598. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +3 -0
  599. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +27 -0
  600. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +23 -0
  601. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +140 -0
  602. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +379 -0
  603. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +21 -0
  604. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +22 -0
  605. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +15 -0
  606. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +15 -0
  607. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +60 -0
  608. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +8 -0
  609. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +9 -0
  610. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +36 -0
  611. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +15 -0
  612. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +15 -0
  613. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +71 -0
  614. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +19 -0
  615. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +128 -0
  616. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +11 -0
  617. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +4 -0
  618. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +163 -0
  619. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +145 -0
  620. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  621. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +427 -0
  622. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  623. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  624. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  625. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  626. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  627. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  628. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  629. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  630. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  631. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  632. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  633. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +275 -0
  634. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  635. package/configure/node_modules/@pie-lib/math-rendering/package.json +19 -0
  636. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  637. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  638. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  639. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  640. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  641. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  642. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  643. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  644. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  645. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  646. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +234 -0
  647. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +862 -0
  648. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +631 -0
  649. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +5 -0
  650. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +53 -0
  651. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +1 -0
  652. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +463 -0
  653. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +1 -0
  654. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +271 -0
  655. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +1 -0
  656. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +173 -0
  657. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +1 -0
  658. package/configure/node_modules/@pie-lib/math-toolbar/package.json +37 -0
  659. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +39 -0
  660. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +373 -0
  661. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +193 -0
  662. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +107 -0
  663. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  664. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +602 -0
  665. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  666. package/configure/node_modules/@pie-lib/render-ui/README.md +33 -0
  667. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  668. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  669. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  670. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  671. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  672. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  673. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  674. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  675. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  676. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  677. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  678. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  679. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  680. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  681. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  682. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  683. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  684. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  685. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  686. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  687. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  688. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  689. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  690. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  691. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  692. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  693. package/configure/node_modules/@pie-lib/render-ui/package.json +30 -0
  694. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  695. package/configure/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  696. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  697. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  698. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  699. package/configure/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  700. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  701. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  702. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  703. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  704. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  705. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  706. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  707. package/configure/package.json +3 -3
  708. package/configure/src/__tests__/__snapshots__/index.test.js.snap +12 -4
  709. package/configure/src/__tests__/index.test.js +4 -2
  710. package/configure/src/defaults.js +27 -11
  711. package/configure/src/index.js +14 -35
  712. package/configure/src/main.jsx +69 -35
  713. package/controller/CHANGELOG.md +25 -0
  714. package/controller/lib/index.js +113 -23
  715. package/controller/lib/index.js.map +1 -1
  716. package/controller/package.json +1 -1
  717. package/controller/src/index.js +62 -5
  718. package/docs/config-schema.json +311 -3
  719. package/docs/config-schema.json.md +243 -7
  720. package/docs/demo/config.js +1 -1
  721. package/docs/pie-schema.json +139 -1
  722. package/docs/pie-schema.json.md +106 -2
  723. package/lib/index.js +10 -7
  724. package/lib/index.js.map +1 -1
  725. package/lib/print.js +243 -0
  726. package/lib/print.js.map +1 -0
  727. package/package.json +8 -4
  728. package/src/index.js +4 -0
  729. package/src/print.js +181 -0
  730. package/docs/demo/pie.manifest.json +0 -11
  731. package/module/configure.js +0 -1546
  732. package/module/demo.js +0 -79
  733. package/module/element.js +0 -1326
  734. package/module/index.html +0 -16
  735. package/module/manifest.json +0 -10
package/lib/index.js CHANGED
@@ -5,9 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = exports.isSessionComplete = void 0;
9
-
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
8
+ exports.isSessionComplete = exports["default"] = void 0;
11
9
 
12
10
  var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
13
11
 
@@ -15,6 +13,8 @@ var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/w
15
13
 
16
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
15
 
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
18
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
19
19
 
20
20
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
@@ -31,13 +31,13 @@ var _get = _interopRequireDefault(require("lodash/get"));
31
31
 
32
32
  var _debug = _interopRequireDefault(require("debug"));
33
33
 
34
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
34
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
35
35
 
36
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
36
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37
37
 
38
38
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
39
39
 
40
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
40
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
41
 
42
42
  var SESSION_CHANGED = _piePlayerEvents.SessionChangedEvent.TYPE;
43
43
  var MC_TAG_NAME = 'ebsr-multiple-choice';
@@ -53,7 +53,7 @@ var EbsrMC = /*#__PURE__*/function (_MultipleChoice) {
53
53
  return _super.apply(this, arguments);
54
54
  }
55
55
 
56
- return EbsrMC;
56
+ return (0, _createClass2["default"])(EbsrMC);
57
57
  }(_multipleChoice["default"]);
58
58
 
59
59
  var defineMultipleChoice = function defineMultipleChoice() {
@@ -125,6 +125,9 @@ var Ebsr = /*#__PURE__*/function (_HTMLElement) {
125
125
  }
126
126
  }, {
127
127
  key: "session",
128
+ get: function get() {
129
+ return this._session;
130
+ },
128
131
  set: function set(s) {
129
132
  var _this3 = this;
130
133
 
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.js"],"names":["SESSION_CHANGED","SessionChangedEvent","TYPE","MC_TAG_NAME","log","EbsrMC","MultipleChoice","defineMultipleChoice","customElements","get","define","isNonEmptyArray","a","Array","isArray","length","isSessionComplete","session","b","Ebsr","e","target","preventDefault","stopImmediatePropagation","id","getAttribute","key","toUpperCase","update","_model","dispatchSessionChanged","srcElement","_session","m","whenDefined","then","setPartModel","partA","partB","s","setPartSession","part","mode","model","keyMode","choicePrefix","value","partSession","complete","dispatchEvent","tagName","toLowerCase","querySelector","_render","addEventListener","onSessionUpdated","removeEventListener","innerHTML","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;AACA,IAAMA,eAAe,GAAGC,qCAAoBC,IAA5C;AACA,IAAMC,WAAW,GAAG,sBAApB;AACA,IAAMC,GAAG,GAAG,uBAAM,mBAAN,CAAZ;;IAEMC,M;;;;;;;;;;;EAAeC,0B;;AAErB,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB,GAAM;AACjC,MAAI,CAACC,cAAc,CAACC,GAAf,CAAmBN,WAAnB,CAAL,EAAsC;AACpCK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ACF;;;WAED,gCAAuBqB,WAAvB,EAAoCrB,GAApC,EAAyC;AACvC,WAAKM,QAAL,CAAcc,KAAd,mCACK,KAAKd,QAAL,CAAcc,KADnB,4CAEGpB,GAFH,EAESqB,WAFT;AAKA3C,MAAAA,GAAG,CAAC,8BAAD,EAAiC,KAAK4B,QAAtC,CAAH;AACA,UAAMgB,QAAQ,GAAGhC,iBAAiB,CAAC,KAAKgB,QAAN,CAAlC;AACA,WAAKiB,aAAL,CACE,IAAIhD,oCAAJ,CAAwB,KAAKiD,OAAL,CAAaC,WAAb,EAAxB,EAAoDH,QAApD,CADF;AAGD;;;SAED,eAAY;AACV,aAAO,KAAKI,aAAL,WAAsBjD,WAAtB,QAAP;AACD;;;SAED,eAAY;AACV,aAAO,KAAKiD,aAAL,WAAsBjD,WAAtB,QAAP;AACD;;;WAED,6BAAoB;AAClB,WAAKkD,OAAL;;AACA,WAAKC,gBAAL,CAAsBtD,eAAtB,EAAuC,KAAKuD,gBAA5C;AACD;;;WAED,gCAAuB;AACrB,WAAKC,mBAAL,CAAyBxD,eAAzB,EAA0C,KAAKuD,gBAA/C;AACD;;;WAED,mBAAU;AACR,WAAKE,SAAL,qCAEOtD,WAFP,yBAE+BA,WAF/B,yBAGOA,WAHP,yBAG+BA,WAH/B;AAMD;;;kDAtG+BuD,W","sourcesContent":["import { SessionChangedEvent } from '@pie-framework/pie-player-events';\nimport MultipleChoice from '@pie-element/multiple-choice';\nimport get from 'lodash/get';\nimport debug from 'debug';\nconst SESSION_CHANGED = SessionChangedEvent.TYPE;\nconst MC_TAG_NAME = 'ebsr-multiple-choice';\nconst log = debug('pie-elements:ebsr');\n\nclass EbsrMC extends MultipleChoice {}\n\nconst defineMultipleChoice = () => {\n if (!customElements.get(MC_TAG_NAME)) {\n customElements.define(MC_TAG_NAME, EbsrMC);\n }\n};\n\ndefineMultipleChoice();\n\nconst isNonEmptyArray = (a) => Array.isArray(a) && a.length > 0;\n\nexport const isSessionComplete = (session) => {\n const a = get(session, 'value.partA.value');\n const b = get(session, 'value.partB.value');\n\n return isNonEmptyArray(a) && isNonEmptyArray(b);\n};\n\nexport default class Ebsr extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = {};\n }\n\n onSessionUpdated = (e) => {\n if (e.target === this) {\n return;\n }\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n const id = e.target.getAttribute('id');\n\n if (id) {\n const key = `part${id.toUpperCase()}`;\n\n if (e.update) {\n this._model[key] = e.update;\n }\n //TODO: accessing a private property here. The session event should contain the update in future to prevent this.\n this.dispatchSessionChanged(e.srcElement._session, key);\n }\n };\n\n set model(m) {\n this._model = m;\n\n customElements.whenDefined(MC_TAG_NAME).then(() => {\n this.setPartModel(this.partA, 'partA');\n this.setPartModel(this.partB, 'partB');\n });\n }\n\n set session(s) {\n this._session = s;\n\n customElements.whenDefined(MC_TAG_NAME).then(() => {\n this.setPartSession(this.partA, 'partA');\n this.setPartSession(this.partB, 'partB');\n });\n }\n\n setPartModel(part, key) {\n if (this._model && this._model[key]) {\n const { mode } = this._model;\n\n part.model = {\n ...this._model[key],\n mode,\n keyMode: this._model[key].choicePrefix,\n };\n }\n }\n\n setPartSession(part, key) {\n if (this._session && this._model) {\n const { value } = this._session;\n part.session = value && value[key] ? value[key] : { id: key };\n }\n }\n\n dispatchSessionChanged(partSession, key) {\n this._session.value = {\n ...this._session.value,\n [key]: partSession,\n };\n\n log('[onSessionChanged] session: ', this._session);\n const complete = isSessionComplete(this._session);\n this.dispatchEvent(\n new SessionChangedEvent(this.tagName.toLowerCase(), complete)\n );\n }\n\n get partA() {\n return this.querySelector(`${MC_TAG_NAME}#a`);\n }\n\n get partB() {\n return this.querySelector(`${MC_TAG_NAME}#b`);\n }\n\n connectedCallback() {\n this._render();\n this.addEventListener(SESSION_CHANGED, this.onSessionUpdated);\n }\n\n disconnectedCallback() {\n this.removeEventListener(SESSION_CHANGED, this.onSessionUpdated);\n }\n\n _render() {\n this.innerHTML = `\n <div>\n <${MC_TAG_NAME} id=\"a\"></${MC_TAG_NAME}>\n <${MC_TAG_NAME} id=\"b\"></${MC_TAG_NAME}>\n </div>\n `;\n }\n}\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.js"],"names":["SESSION_CHANGED","SessionChangedEvent","TYPE","MC_TAG_NAME","log","EbsrMC","MultipleChoice","defineMultipleChoice","customElements","get","define","isNonEmptyArray","a","Array","isArray","length","isSessionComplete","session","b","Ebsr","e","target","preventDefault","stopImmediatePropagation","id","getAttribute","key","toUpperCase","update","_model","dispatchSessionChanged","srcElement","_session","m","whenDefined","then","setPartModel","partA","partB","s","setPartSession","part","mode","model","keyMode","choicePrefix","value","partSession","complete","dispatchEvent","tagName","toLowerCase","querySelector","_render","addEventListener","onSessionUpdated","removeEventListener","innerHTML","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;AACA,IAAMA,eAAe,GAAGC,qCAAoBC,IAA5C;AACA,IAAMC,WAAW,GAAG,sBAApB;AACA,IAAMC,GAAG,GAAG,uBAAM,mBAAN,CAAZ;;IAEMC,M;;;;;;;;;;;EAAeC,0B;;AAErB,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB,GAAM;AACjC,MAAI,CAACC,cAAc,CAACC,GAAf,CAAmBN,WAAnB,CAAL,EAAsC;AACpCK,IAAAA,cAAc,CAACE,MAAf,CAAsBP,WAAtB,EAAmCE,MAAnC;AACD;AACF,CAJD;;AAMAE,oBAAoB;;AAEpB,IAAMI,eAAe,GAAG,SAAlBA,eAAkB,CAACC,CAAD;AAAA,SAAOC,KAAK,CAACC,OAAN,CAAcF,CAAd,KAAoBA,CAAC,CAACG,MAAF,GAAW,CAAtC;AAAA,CAAxB;;AAEO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,OAAD,EAAa;AAC5C,MAAML,CAAC,GAAG,qBAAIK,OAAJ,EAAa,mBAAb,CAAV;AACA,MAAMC,CAAC,GAAG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C,WAAb,EAAxB,EAAoDH,QAApD,CADF;AAGD;;;SAED,eAAY;AACV,aAAO,KAAKI,aAAL,WAAsBjD,WAAtB,QAAP;AACD;;;SAED,eAAY;AACV,aAAO,KAAKiD,aAAL,WAAsBjD,WAAtB,QAAP;AACD;;;WAED,6BAAoB;AAClB,WAAKkD,OAAL;;AACA,WAAKC,gBAAL,CAAsBtD,eAAtB,EAAuC,KAAKuD,gBAA5C;AACD;;;WAED,gCAAuB;AACrB,WAAKC,mBAAL,CAAyBxD,eAAzB,EAA0C,KAAKuD,gBAA/C;AACD;;;WAED,mBAAU;AACR,WAAKE,SAAL,qCAEOtD,WAFP,yBAE+BA,WAF/B,yBAGOA,WAHP,yBAG+BA,WAH/B;AAMD;;;kDA1G+BuD,W","sourcesContent":["import { SessionChangedEvent } from '@pie-framework/pie-player-events';\nimport MultipleChoice from '@pie-element/multiple-choice';\nimport get from 'lodash/get';\nimport debug from 'debug';\nconst SESSION_CHANGED = SessionChangedEvent.TYPE;\nconst MC_TAG_NAME = 'ebsr-multiple-choice';\nconst log = debug('pie-elements:ebsr');\n\nclass EbsrMC extends MultipleChoice {}\n\nconst defineMultipleChoice = () => {\n if (!customElements.get(MC_TAG_NAME)) {\n customElements.define(MC_TAG_NAME, EbsrMC);\n }\n};\n\ndefineMultipleChoice();\n\nconst isNonEmptyArray = (a) => Array.isArray(a) && a.length > 0;\n\nexport const isSessionComplete = (session) => {\n const a = get(session, 'value.partA.value');\n const b = get(session, 'value.partB.value');\n\n return isNonEmptyArray(a) && isNonEmptyArray(b);\n};\n\nexport default class Ebsr extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = {};\n }\n\n onSessionUpdated = (e) => {\n if (e.target === this) {\n return;\n }\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n const id = e.target.getAttribute('id');\n\n if (id) {\n const key = `part${id.toUpperCase()}`;\n\n if (e.update) {\n this._model[key] = e.update;\n }\n //TODO: accessing a private property here. The session event should contain the update in future to prevent this.\n this.dispatchSessionChanged(e.srcElement._session, key);\n }\n };\n\n set model(m) {\n this._model = m;\n\n customElements.whenDefined(MC_TAG_NAME).then(() => {\n this.setPartModel(this.partA, 'partA');\n this.setPartModel(this.partB, 'partB');\n });\n }\n\n set session(s) {\n this._session = s;\n\n customElements.whenDefined(MC_TAG_NAME).then(() => {\n this.setPartSession(this.partA, 'partA');\n this.setPartSession(this.partB, 'partB');\n });\n }\n\n get session() {\n return this._session;\n }\n\n setPartModel(part, key) {\n if (this._model && this._model[key]) {\n const { mode } = this._model;\n\n part.model = {\n ...this._model[key],\n mode,\n keyMode: this._model[key].choicePrefix,\n };\n }\n }\n\n setPartSession(part, key) {\n if (this._session && this._model) {\n const { value } = this._session;\n part.session = value && value[key] ? value[key] : { id: key };\n }\n }\n\n dispatchSessionChanged(partSession, key) {\n this._session.value = {\n ...this._session.value,\n [key]: partSession,\n };\n\n log('[onSessionChanged] session: ', this._session);\n const complete = isSessionComplete(this._session);\n this.dispatchEvent(\n new SessionChangedEvent(this.tagName.toLowerCase(), complete)\n );\n }\n\n get partA() {\n return this.querySelector(`${MC_TAG_NAME}#a`);\n }\n\n get partB() {\n return this.querySelector(`${MC_TAG_NAME}#b`);\n }\n\n connectedCallback() {\n this._render();\n this.addEventListener(SESSION_CHANGED, this.onSessionUpdated);\n }\n\n disconnectedCallback() {\n this.removeEventListener(SESSION_CHANGED, this.onSessionUpdated);\n }\n\n _render() {\n this.innerHTML = `\n <div>\n <${MC_TAG_NAME} id=\"a\"></${MC_TAG_NAME}>\n <${MC_TAG_NAME} id=\"b\"></${MC_TAG_NAME}>\n </div>\n `;\n }\n}\n"],"file":"index.js"}
package/lib/print.js ADDED
@@ -0,0 +1,243 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.isSessionComplete = exports["default"] = void 0;
9
+
10
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
11
+
12
+ var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
13
+
14
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
19
+
20
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
21
+
22
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
23
+
24
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
25
+
26
+ var _react = _interopRequireDefault(require("react"));
27
+
28
+ var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
29
+
30
+ var _multipleChoice = _interopRequireDefault(require("@pie-element/multiple-choice"));
31
+
32
+ var _debug = _interopRequireDefault(require("debug"));
33
+
34
+ var _get = _interopRequireDefault(require("lodash/get"));
35
+
36
+ var _piePlayerEvents = require("@pie-framework/pie-player-events");
37
+
38
+ 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; }
39
+
40
+ 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; }
41
+
42
+ 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); }; }
43
+
44
+ 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; } }
45
+
46
+ var MC_TAG_NAME = 'ebsr-multiple-choice';
47
+ var SESSION_CHANGED = _piePlayerEvents.SessionChangedEvent.TYPE;
48
+ var log = (0, _debug["default"])('pie-element:ebsr:print');
49
+ /**
50
+ * Live in same package as main element - so we can access some of the shared comps!
51
+ *
52
+ * - update pslb to build print if src/print.js is there
53
+ * - update demo el
54
+ * - get configure/controller building
55
+ */
56
+
57
+ var preparePrintModel = function preparePrintModel(model, opts) {
58
+ var instr = opts.role === 'instructor';
59
+ model.prompt = model.promptEnabled !== false ? model.prompt : undefined;
60
+ model.teacherInstructions = instr && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;
61
+ model.showTeacherInstructions = instr;
62
+ model.alwaysShowCorrect = instr;
63
+ model.mode = instr ? 'evaluate' : 'gather';
64
+ model.disabled = true;
65
+ model.animationsDisabled = true;
66
+ model.lockChoiceOrder = true;
67
+ model.choicesLayout = model.choicesLayout || 'vertical';
68
+ var choices = (0, _cloneDeep["default"])(model.choices);
69
+ model.choices = choices.map(function (c) {
70
+ c.rationale = instr && model.rationaleEnabled !== false ? c.rationale : undefined;
71
+ c.hideTick = instr;
72
+ c.feedback = undefined;
73
+ return c;
74
+ });
75
+ model.keyMode = model.choicePrefix || 'letters';
76
+ return model;
77
+ };
78
+
79
+ var EbsrMC = /*#__PURE__*/function (_MultipleChoice) {
80
+ (0, _inherits2["default"])(EbsrMC, _MultipleChoice);
81
+
82
+ var _super = _createSuper(EbsrMC);
83
+
84
+ function EbsrMC() {
85
+ (0, _classCallCheck2["default"])(this, EbsrMC);
86
+ return _super.apply(this, arguments);
87
+ }
88
+
89
+ return (0, _createClass2["default"])(EbsrMC);
90
+ }(_multipleChoice["default"]);
91
+
92
+ var defineMultipleChoice = function defineMultipleChoice() {
93
+ if (!customElements.get(MC_TAG_NAME)) {
94
+ customElements.define(MC_TAG_NAME, EbsrMC);
95
+ }
96
+ };
97
+
98
+ defineMultipleChoice();
99
+
100
+ var isNonEmptyArray = function isNonEmptyArray(a) {
101
+ return Array.isArray(a) && a.length > 0;
102
+ };
103
+
104
+ var isSessionComplete = function isSessionComplete(session) {
105
+ var a = (0, _get["default"])(session, 'value.partA.value');
106
+ var b = (0, _get["default"])(session, 'value.partB.value');
107
+ return isNonEmptyArray(a) && isNonEmptyArray(b);
108
+ };
109
+
110
+ exports.isSessionComplete = isSessionComplete;
111
+
112
+ var Ebsr = /*#__PURE__*/function (_HTMLElement) {
113
+ (0, _inherits2["default"])(Ebsr, _HTMLElement);
114
+
115
+ var _super2 = _createSuper(Ebsr);
116
+
117
+ function Ebsr() {
118
+ var _this;
119
+
120
+ (0, _classCallCheck2["default"])(this, Ebsr);
121
+ _this = _super2.call(this);
122
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSessionUpdated", function (e) {
123
+ if (e.target === (0, _assertThisInitialized2["default"])(_this)) {
124
+ return;
125
+ }
126
+
127
+ e.preventDefault();
128
+ e.stopImmediatePropagation();
129
+ var id = e.target.getAttribute('id');
130
+
131
+ if (id) {
132
+ var key = "part".concat(id.toUpperCase());
133
+
134
+ if (e.update) {
135
+ _this._model[key] = e.update;
136
+ } //TODO: accessing a private property here. The session event should contain the update in future to prevent this.
137
+
138
+
139
+ _this.dispatchSessionChanged(e.srcElement._session, key);
140
+ }
141
+ });
142
+ _this._model = {};
143
+ _this._session = {};
144
+ _this._options = null;
145
+ return _this;
146
+ }
147
+
148
+ (0, _createClass2["default"])(Ebsr, [{
149
+ key: "model",
150
+ set: function set(m) {
151
+ var _this2 = this;
152
+
153
+ this._model = m;
154
+ customElements.whenDefined(MC_TAG_NAME).then(function () {
155
+ _this2.setPartModel(_this2.partA, 'partA');
156
+
157
+ _this2.setPartModel(_this2.partB, 'partB');
158
+ });
159
+ }
160
+ }, {
161
+ key: "session",
162
+ set: function set(s) {
163
+ var _this3 = this;
164
+
165
+ this._session = s;
166
+ customElements.whenDefined(MC_TAG_NAME).then(function () {
167
+ _this3.setPartSession(_this3.partA, 'partA');
168
+
169
+ _this3.setPartSession(_this3.partB, 'partB');
170
+ });
171
+ }
172
+ }, {
173
+ key: "setPartModel",
174
+ value: function setPartModel(part, key) {
175
+ if (this._model && this._model[key]) {
176
+ part.model = _objectSpread(_objectSpread({}, preparePrintModel(this._model[key], this._options)), {}, {
177
+ keyMode: this._model[key].choicePrefix
178
+ });
179
+
180
+ if (!part._session) {
181
+ // for print, "set session" is not called,
182
+ // but ebsr needs sessions in order to render the elements,
183
+ // so we set it here it was not set already
184
+ part.session = {};
185
+ }
186
+ }
187
+ }
188
+ }, {
189
+ key: "options",
190
+ set: function set(o) {
191
+ this._options = o;
192
+ }
193
+ }, {
194
+ key: "setPartSession",
195
+ value: function setPartSession(part, key) {
196
+ if (this._session && this._model) {
197
+ var value = this._session.value;
198
+ part.session = value && value[key] ? value[key] : {
199
+ id: key
200
+ };
201
+ }
202
+ }
203
+ }, {
204
+ key: "dispatchSessionChanged",
205
+ value: function dispatchSessionChanged(partSession, key) {
206
+ this._session.value = _objectSpread(_objectSpread({}, this._session.value), {}, (0, _defineProperty2["default"])({}, key, partSession));
207
+ log('[onSessionChanged] session: ', this._session);
208
+ var complete = isSessionComplete(this._session);
209
+ this.dispatchEvent(new _piePlayerEvents.SessionChangedEvent(this.tagName.toLowerCase(), complete));
210
+ }
211
+ }, {
212
+ key: "partA",
213
+ get: function get() {
214
+ return this.querySelector("".concat(MC_TAG_NAME, "#a"));
215
+ }
216
+ }, {
217
+ key: "partB",
218
+ get: function get() {
219
+ return this.querySelector("".concat(MC_TAG_NAME, "#b"));
220
+ }
221
+ }, {
222
+ key: "connectedCallback",
223
+ value: function connectedCallback() {
224
+ this._render();
225
+
226
+ this.addEventListener(SESSION_CHANGED, this.onSessionUpdated);
227
+ }
228
+ }, {
229
+ key: "disconnectedCallback",
230
+ value: function disconnectedCallback() {
231
+ this.removeEventListener(SESSION_CHANGED, this.onSessionUpdated);
232
+ }
233
+ }, {
234
+ key: "_render",
235
+ value: function _render() {
236
+ this.innerHTML = "\n <div>\n <".concat(MC_TAG_NAME, " id=\"a\"></").concat(MC_TAG_NAME, ">\n <").concat(MC_TAG_NAME, " id=\"b\"></").concat(MC_TAG_NAME, ">\n </div>\n ");
237
+ }
238
+ }]);
239
+ return Ebsr;
240
+ }( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(HTMLElement));
241
+
242
+ exports["default"] = Ebsr;
243
+ //# sourceMappingURL=print.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/print.js"],"names":["MC_TAG_NAME","SESSION_CHANGED","SessionChangedEvent","TYPE","log","preparePrintModel","model","opts","instr","role","prompt","promptEnabled","undefined","teacherInstructions","teacherInstructionsEnabled","showTeacherInstructions","alwaysShowCorrect","mode","disabled","animationsDisabled","lockChoiceOrder","choicesLayout","choices","map","c","rationale","rationaleEnabled","hideTick","feedback","keyMode","choicePrefix","EbsrMC","MultipleChoice","defineMultipleChoice","customElements","get","define","isNonEmptyArray","a","Array","isArray","length","isSessionComplete","session","b","Ebsr","e","target","preventDefault","stopImmediatePropagation","id","getAttribute","key","toUpperCase","update","_model","dispatchSessionChanged","srcElement","_session","_options","m","whenDefined","then","setPartModel","partA","partB","s","setPartSession","part","o","value","partSession","complete","dispatchEvent","tagName","toLowerCase","querySelector","_render","addEventListener","onSessionUpdated","removeEventListener","innerHTML","HTMLElement"],"mappings":";;;;;;;;;;;;;;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AACrB,WAAKC,mBAAL,CAAyB/E,eAAzB,EAA0C,KAAK8E,gBAA/C;AACD;;;WAED,mBAAU;AACR,WAAKE,SAAL,qCAEOjF,WAFP,yBAE+BA,WAF/B,yBAGOA,WAHP,yBAG+BA,WAH/B;AAMD;;;kDAhH+BkF,W","sourcesContent":["import React from 'react';\nimport cloneDeep from 'lodash/cloneDeep';\nimport MultipleChoice from '@pie-element/multiple-choice';\nimport debug from 'debug';\nimport get from 'lodash/get';\n\nimport {SessionChangedEvent} from '@pie-framework/pie-player-events';\nconst MC_TAG_NAME = 'ebsr-multiple-choice';\nconst SESSION_CHANGED = SessionChangedEvent.TYPE;\n\nconst log = debug('pie-element:ebsr:print');\n\n/**\n * Live in same package as main element - so we can access some of the shared comps!\n *\n * - update pslb to build print if src/print.js is there\n * - update demo el\n * - get configure/controller building\n */\n\nconst preparePrintModel = (model, opts) => {\n const instr = opts.role === 'instructor';\n\n model.prompt = model.promptEnabled !== false ? model.prompt : undefined;\n model.teacherInstructions = instr && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;\n model.showTeacherInstructions = instr;\n model.alwaysShowCorrect = instr;\n model.mode = instr ? 'evaluate' : 'gather';\n\n model.disabled = true;\n model.animationsDisabled = true;\n model.lockChoiceOrder = true;\n model.choicesLayout = model.choicesLayout || 'vertical';\n\n const choices = cloneDeep(model.choices);\n\n model.choices = choices.map((c) => {\n c.rationale = instr && model.rationaleEnabled !== false ? c.rationale : undefined;\n c.hideTick = instr;\n c.feedback = undefined;\n return c;\n });\n\n model.keyMode = model.choicePrefix || 'letters';\n\n return model;\n};\n\nclass EbsrMC extends MultipleChoice {}\n\nconst defineMultipleChoice = () => {\n if (!customElements.get(MC_TAG_NAME)) {\n customElements.define(MC_TAG_NAME, EbsrMC);\n }\n};\n\ndefineMultipleChoice();\n\nconst isNonEmptyArray = (a) => Array.isArray(a) && a.length > 0;\n\nexport const isSessionComplete = (session) => {\n const a = get(session, 'value.partA.value');\n const b = get(session, 'value.partB.value');\n\n return isNonEmptyArray(a) && isNonEmptyArray(b);\n};\n\nexport default class Ebsr extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = {};\n this._options = null;\n }\n\n onSessionUpdated = (e) => {\n if (e.target === this) {\n return;\n }\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n const id = e.target.getAttribute('id');\n\n if (id) {\n const key = `part${id.toUpperCase()}`;\n\n if (e.update) {\n this._model[key] = e.update;\n }\n //TODO: accessing a private property here. The session event should contain the update in future to prevent this.\n this.dispatchSessionChanged(e.srcElement._session, key);\n }\n };\n\n set model(m) {\n this._model = m;\n\n customElements.whenDefined(MC_TAG_NAME).then(() => {\n this.setPartModel(this.partA, 'partA');\n this.setPartModel(this.partB, 'partB');\n });\n }\n\n set session(s) {\n this._session = s;\n\n customElements.whenDefined(MC_TAG_NAME).then(() => {\n this.setPartSession(this.partA, 'partA');\n this.setPartSession(this.partB, 'partB');\n });\n }\n\n setPartModel(part, key) {\n if (this._model && this._model[key]) {\n\n part.model = {\n ...preparePrintModel(this._model[key], this._options),\n keyMode: this._model[key].choicePrefix,\n };\n\n if (!part._session) {\n // for print, \"set session\" is not called,\n // but ebsr needs sessions in order to render the elements,\n // so we set it here it was not set already\n part.session = {};\n }\n }\n }\n\n set options(o) {\n this._options = o;\n }\n\n setPartSession(part, key) {\n if (this._session && this._model) {\n const { value } = this._session;\n part.session = value && value[key] ? value[key] : { id: key };\n }\n }\n\n dispatchSessionChanged(partSession, key) {\n this._session.value = {\n ...this._session.value,\n [key]: partSession,\n };\n\n log('[onSessionChanged] session: ', this._session);\n const complete = isSessionComplete(this._session);\n this.dispatchEvent(\n new SessionChangedEvent(this.tagName.toLowerCase(), complete)\n );\n }\n\n get partA() {\n return this.querySelector(`${MC_TAG_NAME}#a`);\n }\n\n get partB() {\n return this.querySelector(`${MC_TAG_NAME}#b`);\n }\n\n connectedCallback() {\n this._render();\n this.addEventListener(SESSION_CHANGED, this.onSessionUpdated);\n }\n\n disconnectedCallback() {\n this.removeEventListener(SESSION_CHANGED, this.onSessionUpdated);\n }\n\n _render() {\n this.innerHTML = `\n <div>\n <${MC_TAG_NAME} id=\"a\"></${MC_TAG_NAME}>\n <${MC_TAG_NAME} id=\"b\"></${MC_TAG_NAME}>\n </div>\n `;\n }\n}\n"],"file":"print.js"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "6.6.2",
3
+ "version": "6.6.3-next.1016+1dc291af4",
4
4
  "description": "",
5
5
  "repository": "pie-framework/pie-elements",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-element/multiple-choice": "^5.9.2",
10
+ "@pie-element/multiple-choice": "^6.3.2",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "classnames": "^2.2.5",
13
13
  "debug": "^4.1.1",
@@ -15,10 +15,14 @@
15
15
  },
16
16
  "author": "pie framework developers",
17
17
  "license": "ISC",
18
- "gitHead": "c4ade45496a17fa2a49e6fe44f6bc500ea17580f",
18
+ "gitHead": "1dc291af490cf91cc86a6a7c8d0eb0fdf184232b",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },
22
22
  "main": "lib/index.js",
23
- "module": "src/index.js"
23
+ "module": "src/index.js",
24
+ "exports": {
25
+ ".": "./src/index.js",
26
+ "./print": "./src/print.js"
27
+ }
24
28
  }
package/src/index.js CHANGED
@@ -71,6 +71,10 @@ export default class Ebsr extends HTMLElement {
71
71
  });
72
72
  }
73
73
 
74
+ get session() {
75
+ return this._session;
76
+ }
77
+
74
78
  setPartModel(part, key) {
75
79
  if (this._model && this._model[key]) {
76
80
  const { mode } = this._model;
package/src/print.js ADDED
@@ -0,0 +1,181 @@
1
+ import React from 'react';
2
+ import cloneDeep from 'lodash/cloneDeep';
3
+ import MultipleChoice from '@pie-element/multiple-choice';
4
+ import debug from 'debug';
5
+ import get from 'lodash/get';
6
+
7
+ import {SessionChangedEvent} from '@pie-framework/pie-player-events';
8
+ const MC_TAG_NAME = 'ebsr-multiple-choice';
9
+ const SESSION_CHANGED = SessionChangedEvent.TYPE;
10
+
11
+ const log = debug('pie-element:ebsr:print');
12
+
13
+ /**
14
+ * Live in same package as main element - so we can access some of the shared comps!
15
+ *
16
+ * - update pslb to build print if src/print.js is there
17
+ * - update demo el
18
+ * - get configure/controller building
19
+ */
20
+
21
+ const preparePrintModel = (model, opts) => {
22
+ const instr = opts.role === 'instructor';
23
+
24
+ model.prompt = model.promptEnabled !== false ? model.prompt : undefined;
25
+ model.teacherInstructions = instr && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;
26
+ model.showTeacherInstructions = instr;
27
+ model.alwaysShowCorrect = instr;
28
+ model.mode = instr ? 'evaluate' : 'gather';
29
+
30
+ model.disabled = true;
31
+ model.animationsDisabled = true;
32
+ model.lockChoiceOrder = true;
33
+ model.choicesLayout = model.choicesLayout || 'vertical';
34
+
35
+ const choices = cloneDeep(model.choices);
36
+
37
+ model.choices = choices.map((c) => {
38
+ c.rationale = instr && model.rationaleEnabled !== false ? c.rationale : undefined;
39
+ c.hideTick = instr;
40
+ c.feedback = undefined;
41
+ return c;
42
+ });
43
+
44
+ model.keyMode = model.choicePrefix || 'letters';
45
+
46
+ return model;
47
+ };
48
+
49
+ class EbsrMC extends MultipleChoice {}
50
+
51
+ const defineMultipleChoice = () => {
52
+ if (!customElements.get(MC_TAG_NAME)) {
53
+ customElements.define(MC_TAG_NAME, EbsrMC);
54
+ }
55
+ };
56
+
57
+ defineMultipleChoice();
58
+
59
+ const isNonEmptyArray = (a) => Array.isArray(a) && a.length > 0;
60
+
61
+ export const isSessionComplete = (session) => {
62
+ const a = get(session, 'value.partA.value');
63
+ const b = get(session, 'value.partB.value');
64
+
65
+ return isNonEmptyArray(a) && isNonEmptyArray(b);
66
+ };
67
+
68
+ export default class Ebsr extends HTMLElement {
69
+ constructor() {
70
+ super();
71
+ this._model = {};
72
+ this._session = {};
73
+ this._options = null;
74
+ }
75
+
76
+ onSessionUpdated = (e) => {
77
+ if (e.target === this) {
78
+ return;
79
+ }
80
+
81
+ e.preventDefault();
82
+ e.stopImmediatePropagation();
83
+
84
+ const id = e.target.getAttribute('id');
85
+
86
+ if (id) {
87
+ const key = `part${id.toUpperCase()}`;
88
+
89
+ if (e.update) {
90
+ this._model[key] = e.update;
91
+ }
92
+ //TODO: accessing a private property here. The session event should contain the update in future to prevent this.
93
+ this.dispatchSessionChanged(e.srcElement._session, key);
94
+ }
95
+ };
96
+
97
+ set model(m) {
98
+ this._model = m;
99
+
100
+ customElements.whenDefined(MC_TAG_NAME).then(() => {
101
+ this.setPartModel(this.partA, 'partA');
102
+ this.setPartModel(this.partB, 'partB');
103
+ });
104
+ }
105
+
106
+ set session(s) {
107
+ this._session = s;
108
+
109
+ customElements.whenDefined(MC_TAG_NAME).then(() => {
110
+ this.setPartSession(this.partA, 'partA');
111
+ this.setPartSession(this.partB, 'partB');
112
+ });
113
+ }
114
+
115
+ setPartModel(part, key) {
116
+ if (this._model && this._model[key]) {
117
+
118
+ part.model = {
119
+ ...preparePrintModel(this._model[key], this._options),
120
+ keyMode: this._model[key].choicePrefix,
121
+ };
122
+
123
+ if (!part._session) {
124
+ // for print, "set session" is not called,
125
+ // but ebsr needs sessions in order to render the elements,
126
+ // so we set it here it was not set already
127
+ part.session = {};
128
+ }
129
+ }
130
+ }
131
+
132
+ set options(o) {
133
+ this._options = o;
134
+ }
135
+
136
+ setPartSession(part, key) {
137
+ if (this._session && this._model) {
138
+ const { value } = this._session;
139
+ part.session = value && value[key] ? value[key] : { id: key };
140
+ }
141
+ }
142
+
143
+ dispatchSessionChanged(partSession, key) {
144
+ this._session.value = {
145
+ ...this._session.value,
146
+ [key]: partSession,
147
+ };
148
+
149
+ log('[onSessionChanged] session: ', this._session);
150
+ const complete = isSessionComplete(this._session);
151
+ this.dispatchEvent(
152
+ new SessionChangedEvent(this.tagName.toLowerCase(), complete)
153
+ );
154
+ }
155
+
156
+ get partA() {
157
+ return this.querySelector(`${MC_TAG_NAME}#a`);
158
+ }
159
+
160
+ get partB() {
161
+ return this.querySelector(`${MC_TAG_NAME}#b`);
162
+ }
163
+
164
+ connectedCallback() {
165
+ this._render();
166
+ this.addEventListener(SESSION_CHANGED, this.onSessionUpdated);
167
+ }
168
+
169
+ disconnectedCallback() {
170
+ this.removeEventListener(SESSION_CHANGED, this.onSessionUpdated);
171
+ }
172
+
173
+ _render() {
174
+ this.innerHTML = `
175
+ <div>
176
+ <${MC_TAG_NAME} id="a"></${MC_TAG_NAME}>
177
+ <${MC_TAG_NAME} id="b"></${MC_TAG_NAME}>
178
+ </div>
179
+ `;
180
+ }
181
+ }
@@ -1,11 +0,0 @@
1
- {
2
- "hash": "400757472",
3
- "info": [
4
- {
5
- "pie": "@pie-element/ebsr",
6
- "version": {
7
- "requested": "latest"
8
- }
9
- }
10
- ]
11
- }