@pie-element/ebsr 6.6.3-next.1075 → 6.6.3-next.1082

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 (442) hide show
  1. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +1677 -0
  2. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +1695 -0
  3. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +5 -0
  4. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +12 -0
  5. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +44 -0
  6. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +1 -0
  7. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +86 -0
  8. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +1 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +164 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +1 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +398 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +54 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +185 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +75 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +178 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +46 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +145 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +216 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +1 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +139 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +1 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +131 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +1 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +179 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +1 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +101 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +1 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +24 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +1 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +105 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +1 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +87 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +1 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +79 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +1 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +364 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +265 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +41 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +77 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +130 -0
  52. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +412 -0
  54. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +43 -0
  56. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +1 -0
  57. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +56 -0
  58. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +1 -0
  59. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +106 -0
  60. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +1 -0
  61. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +198 -0
  62. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +1 -0
  63. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +180 -0
  64. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +1 -0
  65. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +84 -0
  66. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +1 -0
  67. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +30 -0
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +43 -0
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +63 -0
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +103 -0
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +319 -0
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +30 -0
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +116 -0
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +54 -0
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +98 -0
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +23 -0
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +88 -0
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +58 -0
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +72 -0
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +96 -0
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +122 -0
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +64 -0
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +4 -0
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +60 -0
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +31 -0
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +64 -0
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +276 -0
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +196 -0
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +18 -0
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +52 -0
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +75 -0
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +297 -0
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +20 -0
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +31 -0
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +51 -0
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +121 -0
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +94 -0
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +36 -0
  99. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +547 -0
  100. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +524 -0
  101. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +5 -0
  102. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +64 -0
  103. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +86 -0
  104. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +1 -0
  105. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +155 -0
  106. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +1 -0
  107. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +65 -0
  108. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +1 -0
  109. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +36 -0
  110. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  111. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +65 -0
  112. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +75 -0
  113. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +60 -0
  114. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +3327 -0
  115. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +1676 -0
  116. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +5 -0
  117. package/configure/node_modules/@pie-lib/editable-html/README.md +45 -0
  118. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +16 -0
  119. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +837 -0
  120. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +1 -0
  121. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +224 -0
  122. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +1 -0
  123. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +16 -0
  124. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +1 -0
  125. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js +70 -0
  126. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js.map +1 -0
  127. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +261 -0
  128. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +1 -0
  129. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +362 -0
  130. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +1 -0
  131. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +393 -0
  132. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +1 -0
  133. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +78 -0
  134. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +1 -0
  135. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +221 -0
  136. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +1 -0
  137. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +135 -0
  138. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +1 -0
  139. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +141 -0
  140. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +1 -0
  141. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +204 -0
  142. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +1 -0
  143. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +347 -0
  144. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +1 -0
  145. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +339 -0
  146. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +1 -0
  147. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +434 -0
  148. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +1 -0
  149. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +99 -0
  150. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +1 -0
  151. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +93 -0
  152. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +1 -0
  153. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +251 -0
  154. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -0
  155. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +97 -0
  156. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +1 -0
  157. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +54 -0
  158. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -0
  159. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +93 -0
  160. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +1 -0
  161. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +288 -0
  162. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +1 -0
  163. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +70 -0
  164. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +1 -0
  165. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +110 -0
  166. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +1 -0
  167. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +69 -0
  168. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +1 -0
  169. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +497 -0
  170. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +1 -0
  171. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +158 -0
  172. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +1 -0
  173. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +132 -0
  174. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +1 -0
  175. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +50 -0
  176. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +1 -0
  177. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +263 -0
  178. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -0
  179. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +32 -0
  180. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +1 -0
  181. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +161 -0
  182. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +1 -0
  183. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +346 -0
  184. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +1 -0
  185. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +62 -0
  186. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +1 -0
  187. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +428 -0
  188. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +1 -0
  189. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +9 -0
  190. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +1 -0
  191. package/configure/node_modules/@pie-lib/editable-html/package.json +51 -0
  192. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +59 -0
  193. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +24 -0
  194. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +83 -0
  195. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +27 -0
  196. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +25 -0
  197. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +151 -0
  198. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +15 -0
  199. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +26 -0
  200. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +30 -0
  201. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +29 -0
  202. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +40 -0
  203. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +23 -0
  204. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +96 -0
  205. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +29 -0
  206. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +40 -0
  207. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +24 -0
  208. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +12 -0
  209. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +3 -0
  210. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +67 -0
  211. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +42 -0
  212. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +724 -0
  213. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +145 -0
  214. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +8 -0
  215. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +27 -0
  216. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popover.js +45 -0
  217. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +237 -0
  218. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +444 -0
  219. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +318 -0
  220. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +32 -0
  221. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +182 -0
  222. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +93 -0
  223. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +115 -0
  224. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +175 -0
  225. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +283 -0
  226. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +284 -0
  227. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +372 -0
  228. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +53 -0
  229. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +43 -0
  230. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +187 -0
  231. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +78 -0
  232. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +45 -0
  233. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +68 -0
  234. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +259 -0
  235. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +63 -0
  236. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +77 -0
  237. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +59 -0
  238. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +437 -0
  239. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +104 -0
  240. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +111 -0
  241. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +36 -0
  242. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +225 -0
  243. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +21 -0
  244. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +97 -0
  245. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +323 -0
  246. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +32 -0
  247. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +385 -0
  248. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +1 -0
  249. package/configure/node_modules/@pie-lib/editable-html/static.json +1 -0
  250. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +1547 -0
  251. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +765 -0
  252. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +5 -0
  253. package/configure/node_modules/@pie-lib/math-input/README.md +27 -0
  254. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +129 -0
  255. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +1 -0
  256. package/configure/node_modules/@pie-lib/math-input/lib/index.js +80 -0
  257. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +1 -0
  258. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +440 -0
  259. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +1 -0
  260. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +34 -0
  261. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +1 -0
  262. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +41 -0
  263. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +1 -0
  264. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +17 -0
  265. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +1 -0
  266. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +46 -0
  267. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +1 -0
  268. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +43 -0
  269. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +1 -0
  270. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +53 -0
  271. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +1 -0
  272. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +16 -0
  273. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +1 -0
  274. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +35 -0
  275. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +1 -0
  276. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +31 -0
  277. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +1 -0
  278. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +165 -0
  279. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +1 -0
  280. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +295 -0
  281. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +1 -0
  282. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +54 -0
  283. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +1 -0
  284. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +32 -0
  285. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +1 -0
  286. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +23 -0
  287. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +1 -0
  288. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +23 -0
  289. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +1 -0
  290. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +69 -0
  291. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +1 -0
  292. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +23 -0
  293. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +1 -0
  294. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +17 -0
  295. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +1 -0
  296. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +45 -0
  297. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +1 -0
  298. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +23 -0
  299. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +1 -0
  300. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +53 -0
  301. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +1 -0
  302. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +130 -0
  303. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +1 -0
  304. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +29 -0
  305. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +1 -0
  306. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +206 -0
  307. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +1 -0
  308. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +23 -0
  309. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +1 -0
  310. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +24 -0
  311. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +1 -0
  312. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +257 -0
  313. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +1 -0
  314. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +224 -0
  315. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +1 -0
  316. package/configure/node_modules/@pie-lib/math-input/package.json +26 -0
  317. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +56 -0
  318. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +27 -0
  319. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +367 -0
  320. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +17 -0
  321. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +32 -0
  322. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +5 -0
  323. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +27 -0
  324. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +35 -0
  325. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +40 -0
  326. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +3 -0
  327. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +27 -0
  328. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +23 -0
  329. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +140 -0
  330. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +379 -0
  331. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +21 -0
  332. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +22 -0
  333. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +15 -0
  334. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +15 -0
  335. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +60 -0
  336. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +8 -0
  337. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +9 -0
  338. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +36 -0
  339. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +15 -0
  340. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +15 -0
  341. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +71 -0
  342. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +19 -0
  343. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +128 -0
  344. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +11 -0
  345. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +4 -0
  346. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +163 -0
  347. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +145 -0
  348. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  349. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +457 -0
  350. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  351. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  352. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  353. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  354. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  355. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  356. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  357. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  358. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  359. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  360. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  361. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +281 -0
  362. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  363. package/configure/node_modules/@pie-lib/math-rendering/package.json +19 -0
  364. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  365. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  366. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  367. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  368. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  369. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  370. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  371. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  372. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  373. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  374. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +235 -0
  375. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +862 -0
  376. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +639 -0
  377. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +5 -0
  378. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +53 -0
  379. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +1 -0
  380. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +483 -0
  381. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +1 -0
  382. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +280 -0
  383. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +1 -0
  384. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +173 -0
  385. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +1 -0
  386. package/configure/node_modules/@pie-lib/math-toolbar/package.json +37 -0
  387. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +39 -0
  388. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +388 -0
  389. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +202 -0
  390. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +107 -0
  391. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  392. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +626 -0
  393. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  394. package/configure/node_modules/@pie-lib/render-ui/README.md +33 -0
  395. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  396. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  397. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  398. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  399. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  400. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  401. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  402. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  403. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  404. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  405. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  406. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  407. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  408. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  409. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  410. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  411. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  412. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  413. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  414. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  415. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  416. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  417. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  418. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  419. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  420. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  421. package/configure/node_modules/@pie-lib/render-ui/package.json +30 -0
  422. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  423. package/configure/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  424. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  425. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  426. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  427. package/configure/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  428. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  429. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  430. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  431. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  432. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  433. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  434. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  435. package/configure/package.json +1 -1
  436. package/lib/index.js +2 -2
  437. package/lib/index.js.map +1 -1
  438. package/lib/print.js +2 -2
  439. package/lib/print.js.map +1 -1
  440. package/package.json +2 -2
  441. package/src/index.js +2 -2
  442. package/src/print.js +2 -2
@@ -0,0 +1,440 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.KeyPad = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
15
+
16
+ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
17
+
18
+ var _styles = require("@material-ui/core/styles");
19
+
20
+ var _classnames = _interopRequireDefault(require("classnames"));
21
+
22
+ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
23
+
24
+ var _green = _interopRequireDefault(require("@material-ui/core/colors/green"));
25
+
26
+ var _keysLayout = require("./keys-layout");
27
+
28
+ var mq = _interopRequireWildcard(require("../mq"));
29
+
30
+ var _keys = require("../keys");
31
+
32
+ var _debug = _interopRequireDefault(require("debug"));
33
+
34
+ var _lodash = _interopRequireDefault(require("lodash"));
35
+
36
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
+
38
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
+
40
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
41
+
42
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
43
+
44
+ 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; }
45
+
46
+ 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) { _defineProperty(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; }
47
+
48
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
49
+
50
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
51
+
52
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
53
+
54
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
55
+
56
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
57
+
58
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
59
+
60
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
61
+
62
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
63
+
64
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
65
+
66
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
67
+
68
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
69
+
70
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
71
+
72
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
73
+
74
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
75
+
76
+ 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; } }
77
+
78
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
79
+
80
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
81
+
82
+ var log = (0, _debug["default"])('pie-lib:math-inline:keypad');
83
+ var LatexButton = (0, _styles.withStyles)(function (theme) {
84
+ return {
85
+ root: {
86
+ textTransform: 'none',
87
+ padding: 0,
88
+ margin: 0,
89
+ fontSize: '110% !important'
90
+ },
91
+ latexButton: {
92
+ pointerEvents: 'none',
93
+ textTransform: 'none !important',
94
+ '& .mq-scaled.mq-sqrt-prefix': {
95
+ transform: 'scale(1, 0.9) !important'
96
+ },
97
+ '& .mq-sup-only .mq-sup': {
98
+ marginBottom: '0.9px !important'
99
+ },
100
+ '& .mq-empty': {
101
+ backgroundColor: "".concat((0, _colorManipulator.fade)(theme.palette.secondary.main, 0.4), " !important")
102
+ },
103
+ '& .mq-overline .mq-overline-inner': {
104
+ borderTop: '2px solid black'
105
+ },
106
+ '& .mq-overarrow': {
107
+ width: '30px',
108
+ marginTop: '0 !important',
109
+ borderTop: '2px solid black',
110
+ '&.mq-arrow-both': {
111
+ '& *': {
112
+ lineHeight: '1 !important'
113
+ },
114
+ '&:before': {
115
+ fontSize: '80%',
116
+ left: 'calc(-13%)',
117
+ top: '-0.25em'
118
+ },
119
+ '&:after': {
120
+ fontSize: '80% !important',
121
+ right: 'calc(-13%) !important',
122
+ top: '-1.5em'
123
+ },
124
+ '&.mq-empty:before': {
125
+ fontSize: '80%',
126
+ left: 'calc(-13%)',
127
+ top: '-0.25em'
128
+ },
129
+ '&.mq-empty:after': {
130
+ fontSize: '80%',
131
+ right: 'calc(-13%)',
132
+ top: '-0.25em'
133
+ },
134
+ '&.mq-empty': {
135
+ minHeight: '1.4em'
136
+ }
137
+ },
138
+ '&.mq-arrow-right:before': {
139
+ fontSize: '80%',
140
+ right: 'calc(-13%)',
141
+ top: '-0.25em'
142
+ },
143
+ '& .mq-overarrow-inner': {
144
+ border: 'none !important'
145
+ },
146
+ '& .mq-overarrow-inner .mq-overarrow-inner-right': {
147
+ display: 'none !important'
148
+ }
149
+ },
150
+ '& .mq-root-block': {
151
+ padding: '5px'
152
+ },
153
+ '& .mq-overarrow.mq-arrow-both.mq-empty:after': {
154
+ right: '-6px',
155
+ fontSize: '80% !important',
156
+ top: '-3px'
157
+ },
158
+ '& .mq-overarrow.mq-arrow-right.mq-empty:before': {
159
+ right: '-5px',
160
+ fontSize: '80% !important',
161
+ top: '-3px'
162
+ },
163
+ '& .mq-overarrow.mq-arrow-both.mq-empty:before': {
164
+ left: '-6px',
165
+ fontSize: '80% !important',
166
+ top: '-3px'
167
+ },
168
+ '& .mq-longdiv-inner': {
169
+ borderTop: '1px solid !important',
170
+ paddingTop: '1.5px !important'
171
+ },
172
+ '& .mq-parallelogram': {
173
+ lineHeight: 0.85
174
+ },
175
+ '& .mq-overarc': {
176
+ borderTop: '2px solid black !important',
177
+ '& .mq-overline-inner': {
178
+ borderTop: 'none !important',
179
+ paddingTop: '0 !important'
180
+ }
181
+ }
182
+ },
183
+ parallelButton: {
184
+ fontStyle: 'italic'
185
+ },
186
+ leftRightArrowButton: {
187
+ '& .mq-overarrow.mq-arrow-both': {
188
+ '& .mq-overline-inner': {
189
+ borderTop: 'none !important',
190
+ paddingTop: '0 !important'
191
+ },
192
+ '&:after': {
193
+ top: '-1.64em !important'
194
+ }
195
+ }
196
+ }
197
+ };
198
+ })(function (props) {
199
+ var buttonClass;
200
+
201
+ if (props.latex === '\\parallel') {
202
+ buttonClass = (0, _classnames["default"])(props.classes.latexButton, props.mqClassName, props.classes.parallelButton);
203
+ } else if (props.latex === '\\overleftrightarrow{\\overline{}}') {
204
+ buttonClass = (0, _classnames["default"])(props.classes.latexButton, props.mqClassName, props.classes.leftRightArrowButton);
205
+ } else {
206
+ buttonClass = (0, _classnames["default"])(props.classes.latexButton, props.mqClassName);
207
+ }
208
+
209
+ try {
210
+ var MQ = MathQuill.getInterface(2);
211
+ var span = document.createElement('span');
212
+ span.innerHTML = '';
213
+ var mathField = MQ.StaticMath(span);
214
+ mathField.parseLatex(props.latex);
215
+ mathField.latex(props.latex);
216
+ } catch (e) {
217
+ // received latex has errors - do not create button
218
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
219
+ }
220
+
221
+ return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
222
+ className: (0, _classnames["default"])(props.classes.root, props.className),
223
+ onClick: props.onClick
224
+ }, /*#__PURE__*/_react["default"].createElement(mq.Static, {
225
+ className: buttonClass,
226
+ latex: props.latex
227
+ }));
228
+ });
229
+
230
+ var createCustomLayout = function createCustomLayout(layoutObj) {
231
+ if (layoutObj) {
232
+ return {
233
+ gridTemplateColumns: "repeat(".concat(layoutObj.columns, ", minmax(min-content, 150px))"),
234
+ gridTemplateRows: "repeat(".concat(layoutObj.rows, ", minmax(40px, 60px))"),
235
+ gridAutoFlow: 'initial'
236
+ };
237
+ }
238
+
239
+ return {};
240
+ };
241
+
242
+ var KeyPad = /*#__PURE__*/function (_React$Component) {
243
+ _inherits(KeyPad, _React$Component);
244
+
245
+ var _super = _createSuper(KeyPad);
246
+
247
+ function KeyPad() {
248
+ var _this;
249
+
250
+ _classCallCheck(this, KeyPad);
251
+
252
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
253
+ args[_key] = arguments[_key];
254
+ }
255
+
256
+ _this = _super.call.apply(_super, [this].concat(args));
257
+
258
+ _defineProperty(_assertThisInitialized(_this), "buttonClick", function (key) {
259
+ log('[buttonClick]', key);
260
+ var onPress = _this.props.onPress;
261
+ onPress(key);
262
+ });
263
+
264
+ _defineProperty(_assertThisInitialized(_this), "flowKeys", function (base, extras) {
265
+ var transposed = [].concat(_toConsumableArray((0, _keysLayout.sortKeys)(base)), _toConsumableArray((0, _keysLayout.sortKeys)(extras)));
266
+ return _lodash["default"].flatten(transposed);
267
+ });
268
+
269
+ _defineProperty(_assertThisInitialized(_this), "keyIsNotAllowed", function (key) {
270
+ var noDecimal = _this.props.noDecimal;
271
+
272
+ if ((key.write === '.' && key.label === '.' || key.write === ',' && key.label === ',') && noDecimal) {
273
+ return true;
274
+ }
275
+
276
+ return false;
277
+ });
278
+
279
+ return _this;
280
+ }
281
+
282
+ _createClass(KeyPad, [{
283
+ key: "render",
284
+ value: function render() {
285
+ var _this2 = this;
286
+
287
+ var _this$props = this.props,
288
+ classes = _this$props.classes,
289
+ className = _this$props.className,
290
+ baseSet = _this$props.baseSet,
291
+ additionalKeys = _this$props.additionalKeys,
292
+ layoutForKeyPad = _this$props.layoutForKeyPad,
293
+ onFocus = _this$props.onFocus,
294
+ mode = _this$props.mode;
295
+ var noBaseSet = ['non-negative-integers', 'integers', 'decimals', 'fractions', 'item-authoring', 'language'];
296
+ var keysWithoutBaseSet = noBaseSet.includes(mode);
297
+ var allKeys = keysWithoutBaseSet ? this.flowKeys([], additionalKeys || []) : this.flowKeys(baseSet, additionalKeys || []); //, ...sortKeys(additionalKeys)];
298
+
299
+ var shift = allKeys.length % 5 ? 1 : 0;
300
+
301
+ var style = _objectSpread({
302
+ gridTemplateColumns: "repeat(".concat(Math.floor(allKeys.length / 5) + shift, ", minmax(min-content, 150px))")
303
+ }, createCustomLayout(layoutForKeyPad));
304
+
305
+ return /*#__PURE__*/_react["default"].createElement("div", {
306
+ className: (0, _classnames["default"])(classes.keys, className, classes[mode]),
307
+ style: style,
308
+ onFocus: onFocus
309
+ }, allKeys.map(function (k, index) {
310
+ var onClick = _this2.buttonClick.bind(_this2, k);
311
+
312
+ if (!k) {
313
+ return /*#__PURE__*/_react["default"].createElement("span", {
314
+ key: "empty-".concat(index)
315
+ });
316
+ }
317
+
318
+ var common = _objectSpread({
319
+ onClick: onClick,
320
+ className: (0, _classnames["default"])(classes.labelButton, !keysWithoutBaseSet && classes[k.category], classes[k.extraClass], k.label === ',' && classes.comma, k.label === '.' && classes.dot),
321
+ disabled: _this2.keyIsNotAllowed(k),
322
+ key: "".concat(k.label || k.latex || k.command, "-").concat(index)
323
+ }, k.actions || {});
324
+
325
+ if (k.latex) {
326
+ return /*#__PURE__*/_react["default"].createElement(LatexButton, _extends({
327
+ latex: k.latex
328
+ }, common, {
329
+ className: classes.latexButton
330
+ }));
331
+ }
332
+
333
+ if (k.label) {
334
+ return /*#__PURE__*/_react["default"].createElement(_Button["default"], common, k.label);
335
+ } else {
336
+ var Icon = k.icon ? k.icon : 'div';
337
+ return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
338
+ tabIndex: '-1'
339
+ }, common), /*#__PURE__*/_react["default"].createElement(Icon, {
340
+ className: classes.icon
341
+ }));
342
+ }
343
+ }));
344
+ }
345
+ }]);
346
+
347
+ return KeyPad;
348
+ }(_react["default"].Component);
349
+
350
+ exports.KeyPad = KeyPad;
351
+
352
+ _defineProperty(KeyPad, "propTypes", {
353
+ classes: _propTypes["default"].object.isRequired,
354
+ className: _propTypes["default"].string,
355
+ baseSet: _propTypes["default"].array,
356
+ additionalKeys: _propTypes["default"].array,
357
+ layoutForKeyPad: _propTypes["default"].object,
358
+ onPress: _propTypes["default"].func.isRequired,
359
+ onFocus: _propTypes["default"].func,
360
+ noDecimal: _propTypes["default"].bool,
361
+ mode: _propTypes["default"].string
362
+ });
363
+
364
+ _defineProperty(KeyPad, "defaultProps", {
365
+ baseSet: _keys.baseSet,
366
+ noDecimal: false
367
+ });
368
+
369
+ var styles = function styles(theme) {
370
+ return {
371
+ keys: {
372
+ '& *': {
373
+ fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
374
+ },
375
+ width: '100%',
376
+ display: 'grid',
377
+ gridTemplateRows: 'repeat(5, minmax(40px, 60px))',
378
+ gridRowGap: '0px',
379
+ gridColumnGap: '0px',
380
+ gridAutoFlow: 'column'
381
+ },
382
+ character: {
383
+ textTransform: 'initial !important'
384
+ },
385
+ holder: {
386
+ position: 'relative',
387
+ width: '100%',
388
+ height: '100%',
389
+ backgroundColor: '#cef',
390
+ borderRadius: 0,
391
+ padding: "".concat(theme.spacing.unit, "px 0 ").concat(theme.spacing.unit, "px 0")
392
+ },
393
+ labelButton: {
394
+ minWidth: 'auto',
395
+ fontSize: '140% !important',
396
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette.primary.light, 0.5),
397
+ '&:hover': {
398
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette.primary.light, 0.7)
399
+ },
400
+ borderRadius: 0
401
+ },
402
+ latexButton: {
403
+ minWidth: 'auto',
404
+ borderRadius: 0,
405
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette.primary.light, 0.5),
406
+ '&:hover': {
407
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette.primary.light, 0.7)
408
+ }
409
+ },
410
+ base: {},
411
+ operators: {
412
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette.secondary.light, 0.5),
413
+ '&:hover': {
414
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette.secondary.light, 0.7)
415
+ }
416
+ },
417
+ comparison: {
418
+ backgroundColor: (0, _colorManipulator.lighten)(_green["default"][500], 0.5),
419
+ '&:hover': {
420
+ backgroundColor: (0, _colorManipulator.lighten)(_green["default"][500], 0.7)
421
+ }
422
+ },
423
+ comma: {
424
+ fontSize: '200% !important',
425
+ lineHeight: '100%'
426
+ },
427
+ dot: {
428
+ fontSize: '200% !important',
429
+ lineHeight: '100%'
430
+ },
431
+ icon: {
432
+ height: '30px'
433
+ }
434
+ };
435
+ };
436
+
437
+ var _default = (0, _styles.withStyles)(styles)(KeyPad);
438
+
439
+ exports["default"] = _default;
440
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/keypad/index.jsx"],"names":["log","LatexButton","theme","root","textTransform","padding","margin","fontSize","latexButton","pointerEvents","transform","marginBottom","backgroundColor","palette","secondary","main","borderTop","width","marginTop","lineHeight","left","top","right","minHeight","border","display","paddingTop","parallelButton","fontStyle","leftRightArrowButton","props","buttonClass","latex","classes","mqClassName","MQ","MathQuill","getInterface","span","document","createElement","innerHTML","mathField","StaticMath","parseLatex","e","className","onClick","createCustomLayout","layoutObj","gridTemplateColumns","columns","gridTemplateRows","rows","gridAutoFlow","KeyPad","key","onPress","base","extras","transposed","_","flatten","noDecimal","write","label","baseSet","additionalKeys","layoutForKeyPad","onFocus","mode","noBaseSet","keysWithoutBaseSet","includes","allKeys","flowKeys","shift","length","style","Math","floor","keys","map","k","index","buttonClick","bind","common","labelButton","category","extraClass","comma","dot","disabled","keyIsNotAllowed","command","actions","Icon","icon","React","Component","PropTypes","object","isRequired","string","array","func","bool","styles","fontFamily","gridRowGap","gridColumnGap","character","holder","position","height","borderRadius","spacing","unit","minWidth","primary","light","operators","comparison","green"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,GAAG,GAA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,QAAAA,eAAe,EAAE,+BAAQgH,kBAAM,GAAN,CAAR,EAAoB,GAApB;AADR;AAFD,KA/CW;AAqDvBjC,IAAAA,KAAK,EAAE;AACLpF,MAAAA,QAAQ,EAAE,iBADL;AAELY,MAAAA,UAAU,EAAE;AAFP,KArDgB;AAyDvByE,IAAAA,GAAG,EAAE;AACHrF,MAAAA,QAAQ,EAAE,iBADP;AAEHY,MAAAA,UAAU,EAAE;AAFT,KAzDkB;AA6DvB+E,IAAAA,IAAI,EAAE;AACJiB,MAAAA,MAAM,EAAE;AADJ;AA7DiB,GAAL;AAAA,CAApB;;eAkEe,wBAAWP,MAAX,EAAmBrD,MAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@material-ui/core/Button';\nimport IconButton from '@material-ui/core/IconButton';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { lighten, fade } from '@material-ui/core/styles/colorManipulator';\nimport green from '@material-ui/core/colors/green';\nimport { sortKeys } from './keys-layout';\nimport * as mq from '../mq';\nimport { baseSet } from '../keys';\nimport debug from 'debug';\nimport _ from 'lodash';\n\nconst log = debug('pie-lib:math-inline:keypad');\n\nconst LatexButton = withStyles(theme => ({\n root: {\n textTransform: 'none',\n padding: 0,\n margin: 0,\n fontSize: '110% !important'\n },\n latexButton: {\n pointerEvents: 'none',\n textTransform: 'none !important',\n '& .mq-scaled.mq-sqrt-prefix': {\n transform: 'scale(1, 0.9) !important'\n },\n '& .mq-sup-only .mq-sup': {\n marginBottom: '0.9px !important'\n },\n '& .mq-empty': {\n backgroundColor: `${fade(theme.palette.secondary.main, 0.4)} !important`\n },\n '& .mq-overline .mq-overline-inner': {\n borderTop: '2px solid black'\n },\n '& .mq-overarrow': {\n width: '30px',\n marginTop: '0 !important',\n borderTop: '2px solid black',\n '&.mq-arrow-both': {\n '& *': {\n lineHeight: '1 !important'\n },\n '&:before': {\n fontSize: '80%',\n left: 'calc(-13%)',\n top: '-0.25em'\n },\n '&:after': {\n fontSize: '80% !important',\n right: 'calc(-13%) !important',\n top: '-1.5em'\n },\n '&.mq-empty:before': {\n fontSize: '80%',\n left: 'calc(-13%)',\n top: '-0.25em'\n },\n '&.mq-empty:after': {\n fontSize: '80%',\n right: 'calc(-13%)',\n top: '-0.25em'\n },\n '&.mq-empty': {\n minHeight: '1.4em'\n }\n },\n '&.mq-arrow-right:before': {\n fontSize: '80%',\n right: 'calc(-13%)',\n top: '-0.25em'\n },\n '& .mq-overarrow-inner': {\n border: 'none !important'\n },\n '& .mq-overarrow-inner .mq-overarrow-inner-right': {\n display: 'none !important'\n }\n },\n '& .mq-root-block': {\n padding: '5px'\n },\n '& .mq-overarrow.mq-arrow-both.mq-empty:after': {\n right: '-6px',\n fontSize: '80% !important',\n top: '-3px'\n },\n '& .mq-overarrow.mq-arrow-right.mq-empty:before': {\n right: '-5px',\n fontSize: '80% !important',\n top: '-3px'\n },\n '& .mq-overarrow.mq-arrow-both.mq-empty:before': {\n left: '-6px',\n fontSize: '80% !important',\n top: '-3px'\n },\n '& .mq-longdiv-inner': {\n borderTop: '1px solid !important',\n paddingTop: '1.5px !important'\n },\n '& .mq-parallelogram': {\n lineHeight: 0.85\n },\n '& .mq-overarc': {\n borderTop: '2px solid black !important',\n '& .mq-overline-inner': {\n borderTop: 'none !important',\n paddingTop: '0 !important'\n }\n }\n },\n parallelButton: {\n fontStyle: 'italic'\n },\n leftRightArrowButton: {\n '& .mq-overarrow.mq-arrow-both': {\n '& .mq-overline-inner': {\n borderTop: 'none !important',\n paddingTop: '0 !important'\n },\n '&:after': {\n top: '-1.64em !important'\n }\n }\n }\n}))(props => {\n let buttonClass;\n\n if (props.latex === '\\\\parallel') {\n buttonClass = classNames(\n props.classes.latexButton,\n props.mqClassName,\n props.classes.parallelButton\n );\n } else if (props.latex === '\\\\overleftrightarrow{\\\\overline{}}') {\n buttonClass = classNames(\n props.classes.latexButton,\n props.mqClassName,\n props.classes.leftRightArrowButton\n );\n } else {\n buttonClass = classNames(props.classes.latexButton, props.mqClassName);\n }\n\n try {\n const MQ = MathQuill.getInterface(2);\n const span = document.createElement('span');\n span.innerHTML = '';\n const mathField = MQ.StaticMath(span);\n\n mathField.parseLatex(props.latex);\n mathField.latex(props.latex);\n } catch (e) {\n // received latex has errors - do not create button\n return <></>;\n }\n\n return (\n <Button className={classNames(props.classes.root, props.className)} onClick={props.onClick}>\n <mq.Static className={buttonClass} latex={props.latex} />\n </Button>\n );\n});\n\nconst createCustomLayout = layoutObj => {\n if (layoutObj) {\n return {\n gridTemplateColumns: `repeat(${layoutObj.columns}, minmax(min-content, 150px))`,\n gridTemplateRows: `repeat(${layoutObj.rows}, minmax(40px, 60px))`,\n gridAutoFlow: 'initial'\n };\n }\n\n return {};\n};\n\nexport class KeyPad extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n baseSet: PropTypes.array,\n additionalKeys: PropTypes.array,\n layoutForKeyPad: PropTypes.object,\n onPress: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n noDecimal: PropTypes.bool,\n mode: PropTypes.string\n };\n static defaultProps = {\n baseSet: baseSet,\n noDecimal: false\n };\n\n buttonClick = key => {\n log('[buttonClick]', key);\n const { onPress } = this.props;\n onPress(key);\n };\n\n flowKeys = (base, extras) => {\n const transposed = [...sortKeys(base), ...sortKeys(extras)];\n return _.flatten(transposed);\n };\n\n keyIsNotAllowed = key => {\n const { noDecimal } = this.props;\n\n if (\n ((key.write === '.' && key.label === '.') || (key.write === ',' && key.label === ',')) &&\n noDecimal\n ) {\n return true;\n }\n\n return false;\n };\n\n render() {\n const {\n classes,\n className,\n baseSet,\n additionalKeys,\n layoutForKeyPad,\n onFocus,\n mode\n } = this.props;\n\n const noBaseSet = [\n 'non-negative-integers',\n 'integers',\n 'decimals',\n 'fractions',\n 'item-authoring',\n 'language'\n ];\n\n const keysWithoutBaseSet = noBaseSet.includes(mode);\n const allKeys = keysWithoutBaseSet\n ? this.flowKeys([], additionalKeys || [])\n : this.flowKeys(baseSet, additionalKeys || []); //, ...sortKeys(additionalKeys)];\n\n const shift = allKeys.length % 5 ? 1 : 0;\n const style = {\n gridTemplateColumns: `repeat(${Math.floor(allKeys.length / 5) +\n shift}, minmax(min-content, 150px))`,\n ...createCustomLayout(layoutForKeyPad)\n };\n return (\n <div\n className={classNames(classes.keys, className, classes[mode])}\n style={style}\n onFocus={onFocus}\n >\n {allKeys.map((k, index) => {\n const onClick = this.buttonClick.bind(this, k);\n\n if (!k) {\n return <span key={`empty-${index}`} />;\n }\n\n const common = {\n onClick,\n className: classNames(\n classes.labelButton,\n !keysWithoutBaseSet && classes[k.category],\n classes[k.extraClass],\n k.label === ',' && classes.comma,\n k.label === '.' && classes.dot\n ),\n disabled: this.keyIsNotAllowed(k),\n key: `${k.label || k.latex || k.command}-${index}`,\n ...(k.actions || {})\n };\n\n if (k.latex) {\n return <LatexButton latex={k.latex} {...common} className={classes.latexButton} />;\n }\n\n if (k.label) {\n return <Button {...common}>{k.label}</Button>;\n } else {\n const Icon = k.icon ? k.icon : 'div';\n\n return (\n <IconButton tabIndex={'-1'} {...common}>\n <Icon className={classes.icon} />\n </IconButton>\n );\n }\n })}\n </div>\n );\n }\n}\n\nconst styles = theme => ({\n keys: {\n '& *': {\n fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'\n },\n width: '100%',\n display: 'grid',\n gridTemplateRows: 'repeat(5, minmax(40px, 60px))',\n gridRowGap: '0px',\n gridColumnGap: '0px',\n gridAutoFlow: 'column'\n },\n character: {\n textTransform: 'initial !important'\n },\n holder: {\n position: 'relative',\n width: '100%',\n height: '100%',\n backgroundColor: '#cef',\n borderRadius: 0,\n padding: `${theme.spacing.unit}px 0 ${theme.spacing.unit}px 0`\n },\n labelButton: {\n minWidth: 'auto',\n fontSize: '140% !important',\n backgroundColor: lighten(theme.palette.primary.light, 0.5),\n '&:hover': {\n backgroundColor: lighten(theme.palette.primary.light, 0.7)\n },\n borderRadius: 0\n },\n latexButton: {\n minWidth: 'auto',\n borderRadius: 0,\n backgroundColor: lighten(theme.palette.primary.light, 0.5),\n '&:hover': {\n backgroundColor: lighten(theme.palette.primary.light, 0.7)\n }\n },\n base: {},\n operators: {\n backgroundColor: lighten(theme.palette.secondary.light, 0.5),\n '&:hover': {\n backgroundColor: lighten(theme.palette.secondary.light, 0.7)\n }\n },\n comparison: {\n backgroundColor: lighten(green[500], 0.5),\n '&:hover': {\n backgroundColor: lighten(green[500], 0.7)\n }\n },\n comma: {\n fontSize: '200% !important',\n lineHeight: '100%'\n },\n dot: {\n fontSize: '200% !important',\n lineHeight: '100%'\n },\n icon: {\n height: '30px'\n }\n});\n\nexport default withStyles(styles)(KeyPad);\n"],"file":"index.js"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.sortKeys = void 0;
9
+
10
+ var _ = _interopRequireWildcard(require("lodash"));
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ /**
17
+ * Sort additional keys.
18
+ *
19
+ * Expects an array of rows.
20
+ * @param {} keys
21
+ */
22
+ var sortKeys = function sortKeys(keys) {
23
+ // add any missing rows
24
+ _.times(5 - keys.length, function () {
25
+ keys.push([]);
26
+ });
27
+
28
+ var out = _.zip.apply(null, keys);
29
+
30
+ return out;
31
+ };
32
+
33
+ exports.sortKeys = sortKeys;
34
+ //# sourceMappingURL=keys-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/keypad/keys-layout.js"],"names":["sortKeys","keys","_","times","length","push","out","zip","apply"],"mappings":";;;;;;;;;AAAA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAAAC,IAAI,EAAI;AAC9B;AACAC,EAAAA,CAAC,CAACC,KAAF,CAAQ,IAAIF,IAAI,CAACG,MAAjB,EAAyB,YAAM;AAC7BH,IAAAA,IAAI,CAACI,IAAL,CAAU,EAAV;AACD,GAFD;;AAIA,MAAMC,GAAG,GAAGJ,CAAC,CAACK,GAAF,CAAMC,KAAN,CAAY,IAAZ,EAAkBP,IAAlB,CAAZ;;AACA,SAAOK,GAAP;AACD,CARM","sourcesContent":["import * as _ from 'lodash';\n\n/**\n * Sort additional keys.\n *\n * Expects an array of rows.\n * @param {} keys\n */\nexport const sortKeys = keys => {\n // add any missing rows\n _.times(5 - keys.length, () => {\n keys.push([]);\n });\n\n const out = _.zip.apply(null, keys);\n return out;\n};\n"],"file":"keys-layout.js"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.plus = exports.multiply = exports.minus = exports.equals = exports.divide = void 0;
7
+
8
+ var _chars = require("./chars");
9
+
10
+ var _utils = require("./utils");
11
+
12
+ var set = (0, _utils.mkSet)('operators');
13
+ var equals = set({
14
+ write: '=',
15
+ label: '='
16
+ });
17
+ exports.equals = equals;
18
+ var plus = set({
19
+ write: '+',
20
+ label: '+'
21
+ });
22
+ exports.plus = plus;
23
+ var minus = set({
24
+ write: '−',
25
+ label: '−'
26
+ });
27
+ exports.minus = minus;
28
+ var divide = set({
29
+ name: 'divide',
30
+ label: _chars.DIVIDE,
31
+ command: '\\divide',
32
+ otherNotation: '\\div'
33
+ });
34
+ exports.divide = divide;
35
+ var multiply = set({
36
+ name: 'multiply',
37
+ label: _chars.MULTIPLY,
38
+ command: '\\times'
39
+ });
40
+ exports.multiply = multiply;
41
+ //# sourceMappingURL=basic-operators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/keys/basic-operators.js"],"names":["set","equals","write","label","plus","minus","divide","name","DIVIDE","command","otherNotation","multiply","MULTIPLY"],"mappings":";;;;;;;AAAA;;AACA;;AAEA,IAAMA,GAAG,GAAG,kBAAM,WAAN,CAAZ;AAEO,IAAMC,MAAM,GAAGD,GAAG,CAAC;AACxBE,EAAAA,KAAK,EAAE,GADiB;AAExBC,EAAAA,KAAK,EAAE;AAFiB,CAAD,CAAlB;;AAKA,IAAMC,IAAI,GAAGJ,GAAG,CAAC;AACtBE,EAAAA,KAAK,EAAE,GADe;AAEtBC,EAAAA,KAAK,EAAE;AAFe,CAAD,CAAhB;;AAKA,IAAME,KAAK,GAAGL,GAAG,CAAC;AACvBE,EAAAA,KAAK,EAAE,GADgB;AAEvBC,EAAAA,KAAK,EAAE;AAFgB,CAAD,CAAjB;;AAKA,IAAMG,MAAM,GAAGN,GAAG,CAAC;AACxBO,EAAAA,IAAI,EAAE,QADkB;AAExBJ,EAAAA,KAAK,EAAEK,aAFiB;AAGxBC,EAAAA,OAAO,EAAE,UAHe;AAIxBC,EAAAA,aAAa,EAAE;AAJS,CAAD,CAAlB;;AAOA,IAAMC,QAAQ,GAAGX,GAAG,CAAC;AAC1BO,EAAAA,IAAI,EAAE,UADoB;AAE1BJ,EAAAA,KAAK,EAAES,eAFmB;AAG1BH,EAAAA,OAAO,EAAE;AAHiB,CAAD,CAApB","sourcesContent":["import { DIVIDE, MULTIPLY } from './chars';\nimport { mkSet } from './utils';\n\nconst set = mkSet('operators');\n\nexport const equals = set({\n write: '=',\n label: '='\n});\n\nexport const plus = set({\n write: '+',\n label: '+'\n});\n\nexport const minus = set({\n write: '−',\n label: '−'\n});\n\nexport const divide = set({\n name: 'divide',\n label: DIVIDE,\n command: '\\\\divide',\n otherNotation: '\\\\div'\n});\n\nexport const multiply = set({\n name: 'multiply',\n label: MULTIPLY,\n command: '\\\\times'\n});\n"],"file":"basic-operators.js"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RIGHT_ARROW = exports.MULTIPLY = exports.LEFT_ARROW = exports.DIVIDE = exports.DELETE = void 0;
7
+ var DELETE = "\u232B";
8
+ exports.DELETE = DELETE;
9
+ var LEFT_ARROW = '◀';
10
+ exports.LEFT_ARROW = LEFT_ARROW;
11
+ var RIGHT_ARROW = '▶';
12
+ exports.RIGHT_ARROW = RIGHT_ARROW;
13
+ var DIVIDE = "\xF7";
14
+ exports.DIVIDE = DIVIDE;
15
+ var MULTIPLY = "\xD7";
16
+ exports.MULTIPLY = MULTIPLY;
17
+ //# sourceMappingURL=chars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/keys/chars.js"],"names":["DELETE","LEFT_ARROW","RIGHT_ARROW","DIVIDE","MULTIPLY"],"mappings":";;;;;;AAAO,IAAMA,MAAM,GAAG,QAAf;;AACA,IAAMC,UAAU,GAAG,GAAnB;;AACA,IAAMC,WAAW,GAAG,GAApB;;AACA,IAAMC,MAAM,GAAG,MAAf;;AACA,IAAMC,QAAQ,GAAG,MAAjB","sourcesContent":["export const DELETE = '\\u232B';\nexport const LEFT_ARROW = '◀';\nexport const RIGHT_ARROW = '▶';\nexport const DIVIDE = '\\u00F7';\nexport const MULTIPLY = '\\u00D7';\n"],"file":"chars.js"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.lessThanEqual = exports.lessThan = exports.greaterThanEqual = exports.greaterThan = void 0;
7
+
8
+ 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; }
9
+
10
+ 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) { _defineProperty(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; }
11
+
12
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+
14
+ var set = function set(o) {
15
+ return _objectSpread(_objectSpread({}, o), {}, {
16
+ category: 'comparison'
17
+ });
18
+ };
19
+
20
+ var lessThan = set({
21
+ name: 'Less than',
22
+ latex: '<',
23
+ command: '\\lt'
24
+ });
25
+ exports.lessThan = lessThan;
26
+ var greaterThan = set({
27
+ name: 'Greater than',
28
+ latex: '>',
29
+ command: '\\gt'
30
+ });
31
+ exports.greaterThan = greaterThan;
32
+ var lessThanEqual = set({
33
+ name: 'Less than or equal',
34
+ latex: '\\le',
35
+ symbol: '<=',
36
+ command: '\\le'
37
+ });
38
+ exports.lessThanEqual = lessThanEqual;
39
+ var greaterThanEqual = set({
40
+ name: 'Greater than or equal',
41
+ symbol: '>=',
42
+ command: '\\ge',
43
+ latex: '\\ge'
44
+ });
45
+ exports.greaterThanEqual = greaterThanEqual;
46
+ //# sourceMappingURL=comparison.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/keys/comparison.js"],"names":["set","o","category","lessThan","name","latex","command","greaterThan","lessThanEqual","symbol","greaterThanEqual"],"mappings":";;;;;;;;;;;;;AAAA,IAAMA,GAAG,GAAG,SAANA,GAAM,CAAAC,CAAC;AAAA,yCAAUA,CAAV;AAAaC,IAAAA,QAAQ,EAAE;AAAvB;AAAA,CAAb;;AAEO,IAAMC,QAAQ,GAAGH,GAAG,CAAC;AAC1BI,EAAAA,IAAI,EAAE,WADoB;AAE1BC,EAAAA,KAAK,EAAE,GAFmB;AAG1BC,EAAAA,OAAO,EAAE;AAHiB,CAAD,CAApB;;AAMA,IAAMC,WAAW,GAAGP,GAAG,CAAC;AAC7BI,EAAAA,IAAI,EAAE,cADuB;AAE7BC,EAAAA,KAAK,EAAE,GAFsB;AAG7BC,EAAAA,OAAO,EAAE;AAHoB,CAAD,CAAvB;;AAMA,IAAME,aAAa,GAAGR,GAAG,CAAC;AAC/BI,EAAAA,IAAI,EAAE,oBADyB;AAE/BC,EAAAA,KAAK,EAAE,MAFwB;AAG/BI,EAAAA,MAAM,EAAE,IAHuB;AAI/BH,EAAAA,OAAO,EAAE;AAJsB,CAAD,CAAzB;;AAOA,IAAMI,gBAAgB,GAAGV,GAAG,CAAC;AAClCI,EAAAA,IAAI,EAAE,uBAD4B;AAElCK,EAAAA,MAAM,EAAE,IAF0B;AAGlCH,EAAAA,OAAO,EAAE,MAHyB;AAIlCD,EAAAA,KAAK,EAAE;AAJ2B,CAAD,CAA5B","sourcesContent":["const set = o => ({ ...o, category: 'comparison' });\n\nexport const lessThan = set({\n name: 'Less than',\n latex: '<',\n command: '\\\\lt'\n});\n\nexport const greaterThan = set({\n name: 'Greater than',\n latex: '>',\n command: '\\\\gt'\n});\n\nexport const lessThanEqual = set({\n name: 'Less than or equal',\n latex: '\\\\le',\n symbol: '<=',\n command: '\\\\le'\n});\n\nexport const greaterThanEqual = set({\n name: 'Greater than or equal',\n symbol: '>=',\n command: '\\\\ge',\n latex: '\\\\ge'\n});\n"],"file":"comparison.js"}