@pie-element/complex-rubric 3.8.4-next.9 → 5.0.1-esmbeta.0

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 (1046) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/configure/CHANGELOG.md +16 -0
  3. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
  4. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +2472 -0
  5. package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +5 -0
  6. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
  7. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
  8. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +2314 -0
  9. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +584 -0
  10. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
  11. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +152 -0
  12. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +223 -0
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +546 -0
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +361 -0
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +556 -0
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +380 -0
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +296 -0
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +118 -0
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +21 -0
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +1555 -0
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +19 -0
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +215 -0
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +13 -0
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +14 -0
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +1628 -0
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +1202 -0
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +117 -0
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +861 -0
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +614 -0
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/configure.css +847 -0
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/configure.js +5058 -0
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/configure.js.map +1 -0
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/controller.css +847 -0
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/controller.js +176 -0
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/controller.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/element.css +847 -0
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/element.js +858 -0
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/esm/element.js.map +1 -0
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +91 -0
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +164 -0
  57. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
  58. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +330 -0
  59. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
  60. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +103 -0
  61. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
  62. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
  63. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
  64. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
  65. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
  66. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
  67. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
  68. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
  69. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
  70. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
  71. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
  72. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  73. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
  74. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  75. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
  76. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  77. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
  78. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
  79. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
  80. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  81. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
  82. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  83. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
  84. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  85. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  86. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  87. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
  88. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  89. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
  90. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  91. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  92. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  93. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  94. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  95. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
  96. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  97. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
  98. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
  99. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
  100. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  101. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/package.json +40 -0
  102. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
  103. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
  104. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
  105. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
  106. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
  107. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
  108. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
  109. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
  110. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
  111. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
  112. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
  113. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
  114. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
  115. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
  116. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
  117. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
  118. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
  119. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
  120. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
  121. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
  122. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/color.js +121 -0
  123. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
  124. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
  125. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
  126. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
  127. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/index.js +35 -0
  128. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  129. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
  130. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
  131. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
  132. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  133. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  134. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
  135. package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
  136. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +42 -0
  137. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
  138. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +2755 -0
  139. package/configure/node_modules/@pie-element/rubric/LICENSE.md +5 -0
  140. package/configure/node_modules/@pie-element/rubric/README.md +3 -0
  141. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
  142. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +2522 -0
  143. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +68 -0
  144. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
  145. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +197 -0
  146. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
  147. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +162 -0
  148. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
  149. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +573 -0
  150. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +1 -0
  151. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +24 -0
  152. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +1 -0
  153. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +172 -0
  154. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +1 -0
  155. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/CHANGELOG.json +32 -0
  156. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/CHANGELOG.md +2198 -0
  157. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/NEXT.CHANGELOG.json +1 -0
  158. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/esm/index.js +3808 -0
  159. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/esm/index.js.map +1 -0
  160. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +75 -0
  161. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +1 -0
  162. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js +99 -0
  163. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +1 -0
  164. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +164 -0
  165. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +1 -0
  166. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +445 -0
  167. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +1 -0
  168. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js +54 -0
  169. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +1 -0
  170. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +195 -0
  171. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +1 -0
  172. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +75 -0
  173. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +1 -0
  174. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +189 -0
  175. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +1 -0
  176. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/form-section.js +46 -0
  177. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/form-section.js.map +1 -0
  178. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/help.js +147 -0
  179. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/help.js.map +1 -0
  180. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/index.js +216 -0
  181. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/index.js.map +1 -0
  182. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/input.js +139 -0
  183. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/input.js.map +1 -0
  184. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/inputs.js +139 -0
  185. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/inputs.js.map +1 -0
  186. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/langs.js +179 -0
  187. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/langs.js.map +1 -0
  188. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +143 -0
  189. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +1 -0
  190. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js +24 -0
  191. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +1 -0
  192. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +191 -0
  193. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +1 -0
  194. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +86 -0
  195. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +1 -0
  196. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +79 -0
  197. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +1 -0
  198. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +458 -0
  199. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +1 -0
  200. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js +267 -0
  201. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +1 -0
  202. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +49 -0
  203. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +1 -0
  204. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +77 -0
  205. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +1 -0
  206. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js +143 -0
  207. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +1 -0
  208. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js +463 -0
  209. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +1 -0
  210. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +53 -0
  211. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +1 -0
  212. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +74 -0
  213. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +1 -0
  214. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js +110 -0
  215. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +1 -0
  216. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +198 -0
  217. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +1 -0
  218. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js +180 -0
  219. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +1 -0
  220. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +84 -0
  221. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +1 -0
  222. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/package.json +40 -0
  223. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/langs.test.jsx.snap +32 -0
  224. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/settings-panel.test.js.snap +115 -0
  225. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/two-choice.test.js.snap +171 -0
  226. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/choice-utils.test.js +12 -0
  227. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/langs.test.jsx +37 -0
  228. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/number-text-field.test.jsx +148 -0
  229. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/settings-panel.test.js +204 -0
  230. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/two-choice.test.js +24 -0
  231. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +56 -0
  232. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/checkbox.jsx +73 -0
  233. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/feedback-menu.test.jsx.snap +51 -0
  234. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/index.test.jsx.snap +519 -0
  235. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/feedback-menu.test.jsx +10 -0
  236. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/index.test.jsx +92 -0
  237. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +90 -0
  238. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +365 -0
  239. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-utils.js +30 -0
  240. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-config.test.jsx.snap +27 -0
  241. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-selector.test.jsx.snap +38 -0
  242. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-config.test.jsx +71 -0
  243. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-selector.test.jsx +60 -0
  244. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +122 -0
  245. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +52 -0
  246. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +112 -0
  247. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/form-section.jsx +23 -0
  248. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/help.jsx +87 -0
  249. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/index.js +55 -0
  250. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/input.jsx +72 -0
  251. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/inputs.jsx +98 -0
  252. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/langs.jsx +111 -0
  253. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/__snapshots__/config.layout.test.jsx.snap +59 -0
  254. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/config.layout.test.jsx +42 -0
  255. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/layout-content.test.jsx +3 -0
  256. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +75 -0
  257. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/index.js +4 -0
  258. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +118 -0
  259. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +35 -0
  260. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +64 -0
  261. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +337 -0
  262. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +202 -0
  263. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +22 -0
  264. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +52 -0
  265. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/index.js +83 -0
  266. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +328 -0
  267. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +24 -0
  268. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +49 -0
  269. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +47 -0
  270. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/__snapshots__/index.test.jsx.snap +170 -0
  271. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/index.test.jsx +62 -0
  272. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +119 -0
  273. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/two-choice.jsx +94 -0
  274. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +36 -0
  275. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/CHANGELOG.json +1 -0
  276. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/CHANGELOG.md +709 -0
  277. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/NEXT.CHANGELOG.json +1 -0
  278. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/esm/index.js +525 -0
  279. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/esm/index.js.map +1 -0
  280. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/choice.js +129 -0
  281. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/choice.js.map +1 -0
  282. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js +35 -0
  283. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js.map +1 -0
  284. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-type.js +15 -0
  285. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-type.js.map +1 -0
  286. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js +82 -0
  287. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js.map +1 -0
  288. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/ica-dp.js +37 -0
  289. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/ica-dp.js.map +1 -0
  290. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/index.js +89 -0
  291. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/index.js.map +1 -0
  292. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js +37 -0
  293. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js.map +1 -0
  294. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/placeholder.js +153 -0
  295. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/placeholder.js.map +1 -0
  296. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/preview-component.js +194 -0
  297. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/preview-component.js.map +1 -0
  298. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/swap.js +25 -0
  299. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/swap.js.map +1 -0
  300. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/uid-context.js +40 -0
  301. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/uid-context.js.map +1 -0
  302. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js +59 -0
  303. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js.map +1 -0
  304. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/package.json +34 -0
  305. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/__tests__/__snapshots__/placeholder.test.jsx.snap +68 -0
  306. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/__tests__/placeholder.test.jsx +48 -0
  307. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/__tests__/uid-context.test.jsx +21 -0
  308. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/choice.jsx +76 -0
  309. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/drag-in-the-blank-dp.jsx +19 -0
  310. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/drag-type.js +7 -0
  311. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/droppable-placeholder.jsx +38 -0
  312. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/ica-dp.jsx +23 -0
  313. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/index.js +23 -0
  314. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/match-list-dp.jsx +23 -0
  315. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/placeholder.jsx +145 -0
  316. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/preview-component.jsx +153 -0
  317. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/swap.js +14 -0
  318. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/uid-context.js +13 -0
  319. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/with-drag-context.js +32 -0
  320. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +32 -0
  321. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +2224 -0
  322. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/NEXT.CHANGELOG.json +1 -0
  323. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/esm/index.js +9998 -0
  324. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/esm/index.js.map +1 -0
  325. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js +25 -0
  326. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js.map +1 -0
  327. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/constants.js +16 -0
  328. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/constants.js.map +1 -0
  329. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/editor.js +1356 -0
  330. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +1 -0
  331. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/index.js +269 -0
  332. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +1 -0
  333. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +16 -0
  334. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +1 -0
  335. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js +73 -0
  336. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js.map +1 -0
  337. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +305 -0
  338. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +1 -0
  339. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +381 -0
  340. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +1 -0
  341. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js +37 -0
  342. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js.map +1 -0
  343. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js +397 -0
  344. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js.map +1 -0
  345. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js +114 -0
  346. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js.map +1 -0
  347. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js +38 -0
  348. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js.map +1 -0
  349. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js +80 -0
  350. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js.map +1 -0
  351. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js +129 -0
  352. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js.map +1 -0
  353. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +419 -0
  354. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +1 -0
  355. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +177 -0
  356. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +1 -0
  357. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +263 -0
  358. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +1 -0
  359. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +161 -0
  360. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +1 -0
  361. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +402 -0
  362. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +1 -0
  363. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +334 -0
  364. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +1 -0
  365. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +454 -0
  366. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +1 -0
  367. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +387 -0
  368. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +1 -0
  369. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +709 -0
  370. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +1 -0
  371. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +101 -0
  372. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +1 -0
  373. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +93 -0
  374. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +1 -0
  375. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js +46 -0
  376. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js.map +1 -0
  377. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +289 -0
  378. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -0
  379. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +97 -0
  380. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +1 -0
  381. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +57 -0
  382. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -0
  383. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +95 -0
  384. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +1 -0
  385. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +341 -0
  386. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +1 -0
  387. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +75 -0
  388. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +1 -0
  389. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js +130 -0
  390. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js.map +1 -0
  391. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +125 -0
  392. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +1 -0
  393. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js +133 -0
  394. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js.map +1 -0
  395. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +69 -0
  396. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +1 -0
  397. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +483 -0
  398. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +1 -0
  399. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +187 -0
  400. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +1 -0
  401. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js +226 -0
  402. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js.map +1 -0
  403. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js +34 -0
  404. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js.map +1 -0
  405. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +229 -0
  406. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +1 -0
  407. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +53 -0
  408. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +1 -0
  409. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +286 -0
  410. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -0
  411. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +34 -0
  412. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +1 -0
  413. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +194 -0
  414. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +1 -0
  415. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +376 -0
  416. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +1 -0
  417. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +62 -0
  418. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +1 -0
  419. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +677 -0
  420. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +1 -0
  421. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/shared/alert-dialog.js +75 -0
  422. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/theme.js +9 -0
  423. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +1 -0
  424. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/package.json +60 -0
  425. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/__tests__/editor.test.jsx +363 -0
  426. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/__tests__/serialization.test.js +291 -0
  427. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/__tests__/utils.js +36 -0
  428. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/block-tags.js +17 -0
  429. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/constants.js +7 -0
  430. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +1197 -0
  431. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/index.jsx +162 -0
  432. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +8 -0
  433. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +27 -0
  434. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popper.js +48 -0
  435. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +284 -0
  436. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +447 -0
  437. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/css/icons/index.jsx +17 -0
  438. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/css/index.jsx +346 -0
  439. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/customPlugin/index.jsx +85 -0
  440. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/html/icons/index.jsx +19 -0
  441. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/html/index.jsx +72 -0
  442. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/component.test.jsx.snap +51 -0
  443. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar-logic.test.jsx.snap +27 -0
  444. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar.test.jsx.snap +44 -0
  445. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/component.test.jsx +41 -0
  446. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar-logic.test.jsx +42 -0
  447. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar.test.jsx +11 -0
  448. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/index.test.js +95 -0
  449. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/insert-image-handler.test.js +113 -0
  450. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/mock-change.js +15 -0
  451. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/alt-dialog.jsx +82 -0
  452. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +343 -0
  453. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +100 -0
  454. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +227 -0
  455. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +117 -0
  456. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +360 -0
  457. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/list/__tests__/index.test.js +54 -0
  458. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +305 -0
  459. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/__snapshots__/index.test.jsx.snap +48 -0
  460. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/index.test.jsx +245 -0
  461. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +379 -0
  462. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/__tests__/index.test.js +75 -0
  463. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +325 -0
  464. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +624 -0
  465. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +56 -0
  466. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +43 -0
  467. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/rendering/index.js +31 -0
  468. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +215 -0
  469. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +76 -0
  470. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +48 -0
  471. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +71 -0
  472. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +299 -0
  473. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +70 -0
  474. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/math-templated/index.jsx +104 -0
  475. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +90 -0
  476. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/CustomTablePlugin.js +113 -0
  477. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/__snapshots__/table-toolbar.test.jsx.snap +44 -0
  478. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/index.test.jsx +401 -0
  479. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/table-toolbar.test.jsx +42 -0
  480. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +53 -0
  481. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +427 -0
  482. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +136 -0
  483. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/icons/index.jsx +139 -0
  484. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/index.jsx +23 -0
  485. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/default-toolbar.test.jsx.snap +923 -0
  486. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/editor-and-toolbar.test.jsx.snap +20 -0
  487. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar-buttons.test.jsx.snap +36 -0
  488. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar.test.jsx.snap +46 -0
  489. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/default-toolbar.test.jsx +94 -0
  490. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/editor-and-toolbar.test.jsx +37 -0
  491. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar-buttons.test.jsx +51 -0
  492. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar.test.jsx +106 -0
  493. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +206 -0
  494. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +38 -0
  495. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +257 -0
  496. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +23 -0
  497. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +138 -0
  498. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +338 -0
  499. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +31 -0
  500. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +621 -0
  501. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/theme.js +1 -0
  502. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
  503. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
  504. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
  505. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
  506. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
  507. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
  508. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
  509. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
  510. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
  511. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
  512. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
  513. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
  514. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
  515. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
  516. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
  517. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
  518. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
  519. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
  520. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
  521. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
  522. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
  523. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
  524. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
  525. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
  526. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
  527. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
  528. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
  529. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
  530. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
  531. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/package.json +35 -0
  532. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
  533. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
  534. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
  535. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
  536. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
  537. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
  538. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
  539. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
  540. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
  541. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
  542. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
  543. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
  544. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
  545. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +17 -0
  546. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +1077 -0
  547. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/NEXT.CHANGELOG.json +1 -0
  548. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/esm/index.js +2134 -0
  549. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/esm/index.js.map +1 -0
  550. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +124 -0
  551. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +1 -0
  552. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/index.js +76 -0
  553. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/index.js.map +1 -0
  554. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +512 -0
  555. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +1 -0
  556. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +34 -0
  557. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +1 -0
  558. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +41 -0
  559. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +1 -0
  560. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +17 -0
  561. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +1 -0
  562. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +49 -0
  563. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +1 -0
  564. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +43 -0
  565. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +1 -0
  566. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +53 -0
  567. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +1 -0
  568. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +17 -0
  569. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +1 -0
  570. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +36 -0
  571. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +1 -0
  572. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +34 -0
  573. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +1 -0
  574. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +169 -0
  575. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +1 -0
  576. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +295 -0
  577. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +1 -0
  578. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +54 -0
  579. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +1 -0
  580. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +32 -0
  581. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +1 -0
  582. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +23 -0
  583. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +1 -0
  584. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +23 -0
  585. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +1 -0
  586. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +74 -0
  587. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +1 -0
  588. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +25 -0
  589. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +1 -0
  590. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +18 -0
  591. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +1 -0
  592. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +47 -0
  593. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +1 -0
  594. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +23 -0
  595. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +1 -0
  596. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +53 -0
  597. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +1 -0
  598. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +120 -0
  599. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +1 -0
  600. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +29 -0
  601. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +1 -0
  602. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/math-input.js +192 -0
  603. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +1 -0
  604. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js +110 -0
  605. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js.map +1 -0
  606. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +23 -0
  607. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +1 -0
  608. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +32 -0
  609. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +1 -0
  610. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +247 -0
  611. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +1 -0
  612. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +356 -0
  613. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +1 -0
  614. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/shared/constants.js +16 -0
  615. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js +23 -0
  616. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js.map +1 -0
  617. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/package.json +35 -0
  618. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/__tests__/__snapshots__/math-input-test.jsx.snap +152 -0
  619. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/__tests__/math-input-test.jsx +85 -0
  620. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +69 -0
  621. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/index.jsx +18 -0
  622. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +193 -0
  623. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/index.test.jsx +24 -0
  624. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/keys-layout.test.js +15 -0
  625. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +450 -0
  626. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +17 -0
  627. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/__tests__/utils.test.js +57 -0
  628. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +32 -0
  629. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +5 -0
  630. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +28 -0
  631. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +35 -0
  632. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +40 -0
  633. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +3 -0
  634. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +28 -0
  635. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +26 -0
  636. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +144 -0
  637. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +367 -0
  638. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/index.js +21 -0
  639. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/log.js +22 -0
  640. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +15 -0
  641. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +15 -0
  642. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +65 -0
  643. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +8 -0
  644. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +10 -0
  645. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +38 -0
  646. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +15 -0
  647. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +15 -0
  648. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +71 -0
  649. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +19 -0
  650. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +128 -0
  651. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/__snapshots__/input.test.jsx.snap +9 -0
  652. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/input.test.jsx +92 -0
  653. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/static.test.jsx +57 -0
  654. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/common-mq-styles.js +105 -0
  655. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +11 -0
  656. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/index.js +5 -0
  657. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +176 -0
  658. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +285 -0
  659. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/updateSpans.js +15 -0
  660. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
  661. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
  662. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
  663. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
  664. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
  665. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
  666. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  667. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
  668. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
  669. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
  670. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  671. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  672. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  673. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
  674. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  675. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
  676. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  677. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
  678. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  679. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
  680. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
  681. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
  682. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
  683. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
  684. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
  685. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
  686. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
  687. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
  688. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  689. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  690. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  691. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
  692. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +17 -0
  693. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +940 -0
  694. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/NEXT.CHANGELOG.json +1 -0
  695. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/esm/index.js +1410 -0
  696. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/esm/index.js.map +1 -0
  697. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +68 -0
  698. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +1 -0
  699. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +575 -0
  700. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +1 -0
  701. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +287 -0
  702. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +1 -0
  703. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +240 -0
  704. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +1 -0
  705. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js +21 -0
  706. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js.map +1 -0
  707. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/package.json +46 -0
  708. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/editor-and-pad.test.js.snap +31 -0
  709. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/index.test.js.snap +30 -0
  710. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/math-preview.test.js.snap +23 -0
  711. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/editor-and-pad.test.js +25 -0
  712. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/index.test.js +28 -0
  713. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/math-preview.test.js +31 -0
  714. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +47 -0
  715. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +499 -0
  716. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +224 -0
  717. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +179 -0
  718. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/utils.js +11 -0
  719. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
  720. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
  721. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
  722. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
  723. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
  724. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
  725. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
  726. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
  727. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
  728. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
  729. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  730. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
  731. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  732. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
  733. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  734. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
  735. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
  736. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
  737. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  738. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
  739. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  740. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
  741. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  742. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  743. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  744. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
  745. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  746. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
  747. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  748. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  749. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  750. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  751. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  752. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
  753. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  754. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
  755. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
  756. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
  757. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  758. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/package.json +40 -0
  759. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
  760. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
  761. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
  762. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
  763. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
  764. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
  765. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
  766. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
  767. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
  768. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
  769. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
  770. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
  771. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
  772. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
  773. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
  774. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
  775. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
  776. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
  777. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
  778. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
  779. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/color.js +121 -0
  780. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
  781. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
  782. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
  783. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
  784. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/index.js +35 -0
  785. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  786. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
  787. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
  788. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
  789. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  790. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  791. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
  792. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
  793. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
  794. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
  795. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
  796. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
  797. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
  798. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
  799. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
  800. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
  801. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
  802. package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
  803. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/Readme.md +1 -0
  804. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +287 -0
  805. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +1 -0
  806. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +264 -0
  807. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +1 -0
  808. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +282 -0
  809. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +1 -0
  810. package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/package.json +21 -0
  811. package/configure/node_modules/@pie-element/rubric/configure/package.json +20 -0
  812. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +178 -0
  813. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +42 -0
  814. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +129 -0
  815. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +89 -0
  816. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +449 -0
  817. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +9 -0
  818. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +94 -0
  819. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
  820. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +1548 -0
  821. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +16 -0
  822. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +1 -0
  823. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +59 -0
  824. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
  825. package/configure/node_modules/@pie-element/rubric/controller/package.json +12 -0
  826. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +33 -0
  827. package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +8 -0
  828. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +41 -0
  829. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +712 -0
  830. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +532 -0
  831. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
  832. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
  833. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
  834. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +391 -0
  835. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +281 -0
  836. package/configure/node_modules/@pie-element/rubric/esm/configure.css +847 -0
  837. package/configure/node_modules/@pie-element/rubric/esm/configure.js +12334 -0
  838. package/configure/node_modules/@pie-element/rubric/esm/configure.js.map +1 -0
  839. package/configure/node_modules/@pie-element/rubric/esm/controller.css +847 -0
  840. package/configure/node_modules/@pie-element/rubric/esm/controller.js +68 -0
  841. package/configure/node_modules/@pie-element/rubric/esm/controller.js.map +1 -0
  842. package/configure/node_modules/@pie-element/rubric/esm/element.css +847 -0
  843. package/configure/node_modules/@pie-element/rubric/esm/element.js +263 -0
  844. package/configure/node_modules/@pie-element/rubric/esm/element.js.map +1 -0
  845. package/configure/node_modules/@pie-element/rubric/esm/print.css +847 -0
  846. package/configure/node_modules/@pie-element/rubric/esm/print.js +298 -0
  847. package/configure/node_modules/@pie-element/rubric/esm/print.js.map +1 -0
  848. package/configure/node_modules/@pie-element/rubric/lib/index.js +94 -0
  849. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
  850. package/configure/node_modules/@pie-element/rubric/lib/main.js +270 -0
  851. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
  852. package/configure/node_modules/@pie-element/rubric/lib/print.js +114 -0
  853. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
  854. package/configure/node_modules/@pie-element/rubric/module/configure.js +1 -0
  855. package/configure/node_modules/@pie-element/rubric/module/controller.js +113 -0
  856. package/configure/node_modules/@pie-element/rubric/module/demo.js +33 -0
  857. package/configure/node_modules/@pie-element/rubric/module/element.js +1 -0
  858. package/configure/node_modules/@pie-element/rubric/module/index.html +21 -0
  859. package/configure/node_modules/@pie-element/rubric/module/manifest.json +10 -0
  860. package/configure/node_modules/@pie-element/rubric/module/print-demo.js +71 -0
  861. package/configure/node_modules/@pie-element/rubric/module/print.html +18 -0
  862. package/configure/node_modules/@pie-element/rubric/module/print.js +1 -0
  863. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
  864. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
  865. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
  866. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
  867. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
  868. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
  869. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
  870. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
  871. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
  872. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
  873. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  874. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
  875. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  876. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
  877. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  878. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
  879. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
  880. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
  881. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  882. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
  883. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  884. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
  885. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  886. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  887. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  888. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
  889. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  890. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
  891. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  892. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  893. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  894. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  895. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  896. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
  897. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  898. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
  899. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
  900. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
  901. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  902. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/package.json +40 -0
  903. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
  904. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
  905. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
  906. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
  907. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
  908. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
  909. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
  910. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
  911. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
  912. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
  913. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
  914. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
  915. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
  916. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
  917. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
  918. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
  919. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
  920. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
  921. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
  922. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
  923. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/color.js +121 -0
  924. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
  925. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
  926. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
  927. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
  928. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/index.js +35 -0
  929. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  930. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
  931. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
  932. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
  933. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  934. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  935. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
  936. package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
  937. package/configure/node_modules/@pie-element/rubric/package.json +45 -0
  938. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +1815 -0
  939. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +49 -0
  940. package/configure/node_modules/@pie-element/rubric/src/index.js +37 -0
  941. package/configure/node_modules/@pie-element/rubric/src/main.jsx +219 -0
  942. package/configure/node_modules/@pie-element/rubric/src/print.js +63 -0
  943. package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
  944. package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
  945. package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
  946. package/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
  947. package/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
  948. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
  949. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
  950. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
  951. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
  952. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
  953. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
  954. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
  955. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
  956. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
  957. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
  958. package/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
  959. package/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
  960. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
  961. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
  962. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
  963. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
  964. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
  965. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
  966. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
  967. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
  968. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
  969. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
  970. package/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
  971. package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
  972. package/configure/node_modules/@pie-lib/icons/package.json +35 -0
  973. package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
  974. package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
  975. package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
  976. package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
  977. package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
  978. package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
  979. package/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
  980. package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
  981. package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
  982. package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
  983. package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
  984. package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
  985. package/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
  986. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
  987. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
  988. package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
  989. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
  990. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
  991. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
  992. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  993. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
  994. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
  995. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
  996. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  997. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  998. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  999. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
  1000. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  1001. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
  1002. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  1003. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
  1004. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  1005. package/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
  1006. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
  1007. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
  1008. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
  1009. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
  1010. package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
  1011. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
  1012. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
  1013. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
  1014. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  1015. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  1016. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  1017. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
  1018. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
  1019. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
  1020. package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
  1021. package/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
  1022. package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
  1023. package/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
  1024. package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
  1025. package/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
  1026. package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
  1027. package/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
  1028. package/configure/package.json +6 -6
  1029. package/controller/CHANGELOG.md +16 -0
  1030. package/controller/package.json +1 -1
  1031. package/esm/configure.js +42455 -0
  1032. package/esm/configure.js.map +1 -0
  1033. package/esm/controller.js +281 -0
  1034. package/esm/controller.js.map +1 -0
  1035. package/esm/element.js +179 -0
  1036. package/esm/element.js.map +1 -0
  1037. package/esm/package.json +4 -0
  1038. package/esm/print.js +163 -0
  1039. package/esm/print.js.map +1 -0
  1040. package/module/configure.js +1 -1
  1041. package/module/element.js +1 -1
  1042. package/module/index.html +1 -1
  1043. package/module/manifest.json +1 -1
  1044. package/module/print.html +1 -1
  1045. package/module/print.js +1 -1
  1046. package/package.json +24 -6
@@ -0,0 +1,3808 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, withStyles as withStyles$1 } from '@material-ui/core';
5
+ import { withStyles } from '@material-ui/core/styles';
6
+ import EditableHTML from '@pie-lib/editable-html';
7
+ import { color, InputContainer, AppendCSSRules } from '@pie-lib/render-ui';
8
+ export { InputContainer } from '@pie-lib/render-ui';
9
+ import FormControlLabel from '@material-ui/core/FormControlLabel';
10
+ import Radio$1 from '@material-ui/core/Radio';
11
+ import classNames from 'classnames';
12
+ import ExpansionPanel from '@material-ui/core/ExpansionPanel';
13
+ import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
14
+ import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
15
+ import Typography from '@material-ui/core/Typography';
16
+ import require$$3 from '@material-ui/core/SvgIcon';
17
+ import merge from 'lodash/merge';
18
+ import Checkbox$2 from '@material-ui/core/Checkbox';
19
+ import Switch from '@material-ui/core/Switch';
20
+ import MaterialInput from '@material-ui/core/Input';
21
+ import InputLabel from '@material-ui/core/InputLabel';
22
+ import Select from '@material-ui/core/Select';
23
+ import MenuItem from '@material-ui/core/MenuItem';
24
+ import FormControl from '@material-ui/core/FormControl';
25
+ import debug from 'debug';
26
+ import MuiTabs from '@material-ui/core/Tabs';
27
+ import MuiTab from '@material-ui/core/Tab';
28
+ import grey from '@material-ui/core/colors/grey';
29
+ import Dialog$1 from '@material-ui/core/Dialog';
30
+ import DialogTitle$1 from '@material-ui/core/DialogTitle';
31
+ import DialogContentText$1 from '@material-ui/core/DialogContentText';
32
+ import DialogContent$1 from '@material-ui/core/DialogContent';
33
+ import DialogActions$1 from '@material-ui/core/DialogActions';
34
+ import Button$1 from '@material-ui/core/Button';
35
+ import IconButton from '@material-ui/core/IconButton';
36
+ import TextField$1 from '@material-ui/core/TextField';
37
+ import isFinite from 'lodash/isFinite';
38
+ import InputAdornment from '@material-ui/core/InputAdornment';
39
+ import * as math from 'mathjs';
40
+ import uniq from 'lodash/uniq';
41
+ import Chip from '@material-ui/core/Chip';
42
+ import Menu from '@material-ui/core/Menu';
43
+ import Measure, { withContentRect } from 'react-measure';
44
+ import includes from 'lodash/includes';
45
+ import get from 'lodash/get';
46
+ import set from 'lodash/set';
47
+
48
+ const AlertDialog = ({
49
+ text,
50
+ title,
51
+ onClose,
52
+ onConfirm,
53
+ open,
54
+ onCloseText,
55
+ onConfirmText,
56
+ classes
57
+ }) => /*#__PURE__*/React__default.createElement(Dialog, {
58
+ open: open,
59
+ onClose: onClose
60
+ }, title && /*#__PURE__*/React__default.createElement(DialogTitle, {
61
+ className: classes.heading
62
+ }, title), text && /*#__PURE__*/React__default.createElement(DialogContent, null, /*#__PURE__*/React__default.createElement(DialogContentText, {
63
+ className: classes.subheading
64
+ }, text)), /*#__PURE__*/React__default.createElement(DialogActions, null, onClose && /*#__PURE__*/React__default.createElement(Button, {
65
+ onClick: onClose,
66
+ color: "primary"
67
+ }, onCloseText), onConfirm && /*#__PURE__*/React__default.createElement(Button, {
68
+ autoFocus: true,
69
+ onClick: onConfirm,
70
+ color: "primary"
71
+ }, onConfirmText)));
72
+
73
+ AlertDialog.defaultProps = {
74
+ onCloseText: 'CANCEL',
75
+ onConfirmText: 'OK'
76
+ };
77
+ AlertDialog.propTypes = {
78
+ text: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
79
+ title: PropTypes.string,
80
+ onClose: PropTypes.func,
81
+ onConfirm: PropTypes.func,
82
+ open: PropTypes.bool,
83
+ onConfirmText: PropTypes.string,
84
+ onCloseText: PropTypes.string,
85
+ classes: PropTypes.object
86
+ };
87
+
88
+ const styles$b = () => ({
89
+ heading: {
90
+ '& h2': {
91
+ fontSize: 'max(1.25rem, 18px)'
92
+ }
93
+ },
94
+ subheading: {
95
+ fontSize: 'max(1rem, 14px)'
96
+ }
97
+ });
98
+
99
+ var alertDialog = withStyles(styles$b)(AlertDialog);
100
+
101
+ function _extends() {
102
+ _extends = Object.assign || function (target) {
103
+ for (var i = 1; i < arguments.length; i++) {
104
+ var source = arguments[i];
105
+
106
+ for (var key in source) {
107
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
108
+ target[key] = source[key];
109
+ }
110
+ }
111
+ }
112
+
113
+ return target;
114
+ };
115
+
116
+ return _extends.apply(this, arguments);
117
+ }
118
+
119
+ function _objectWithoutPropertiesLoose(source, excluded) {
120
+ if (source == null) return {};
121
+ var target = {};
122
+ var sourceKeys = Object.keys(source);
123
+ var key, i;
124
+
125
+ for (i = 0; i < sourceKeys.length; i++) {
126
+ key = sourceKeys[i];
127
+ if (excluded.indexOf(key) >= 0) continue;
128
+ target[key] = source[key];
129
+ }
130
+
131
+ return target;
132
+ }
133
+
134
+ var RadioWithLabel = withStyles({
135
+ label: {
136
+ left: '-5px',
137
+ position: 'relative'
138
+ },
139
+ customColor: {
140
+ color: `${color.tertiary()} !important`
141
+ }
142
+ })(({
143
+ label,
144
+ value,
145
+ checked,
146
+ onChange,
147
+ classes
148
+ }) => /*#__PURE__*/React__default.createElement(FormControlLabel, {
149
+ value: value,
150
+ classes: {
151
+ label: classes.label
152
+ },
153
+ control: /*#__PURE__*/React__default.createElement(Radio$1, {
154
+ className: classes.customColor,
155
+ checked: checked,
156
+ onChange: onChange
157
+ }),
158
+ label: label
159
+ }));
160
+
161
+ const styles$a = theme => ({
162
+ radioLabel: {
163
+ fontSize: theme.typography.fontSize - 2
164
+ },
165
+ choice: {
166
+ display: 'flex',
167
+ alignItems: 'center'
168
+ },
169
+ choiceHolder: {
170
+ display: 'flex',
171
+ alignItems: 'center'
172
+ }
173
+ });
174
+
175
+ const Group$1 = props => {
176
+ const {
177
+ feedbackLabels,
178
+ value,
179
+ classes,
180
+ className,
181
+ onChange,
182
+ keys
183
+ } = props;
184
+ return /*#__PURE__*/React__default.createElement("div", {
185
+ className: classNames(classes.choiceHolder, className)
186
+ }, keys.map(key => {
187
+ return /*#__PURE__*/React__default.createElement("div", {
188
+ className: classes.choice,
189
+ key: key
190
+ }, /*#__PURE__*/React__default.createElement(RadioWithLabel, {
191
+ value: key,
192
+ checked: value === key,
193
+ classes: {
194
+ label: classes.radioLabel
195
+ },
196
+ onChange: e => onChange(e.currentTarget.value),
197
+ label: feedbackLabels[key]
198
+ }));
199
+ }));
200
+ };
201
+
202
+ Group$1.propTypes = {
203
+ className: PropTypes.string,
204
+ feedbackLabels: PropTypes.object.isRequired,
205
+ value: PropTypes.string.isRequired,
206
+ classes: PropTypes.object.isRequired,
207
+ keys: PropTypes.arrayOf(PropTypes.string),
208
+ onChange: PropTypes.func
209
+ };
210
+ var Group$2 = withStyles(styles$a)(Group$1);
211
+
212
+ const feedbackLabels = {
213
+ default: 'Simple Feedback',
214
+ none: 'No Feedback',
215
+ custom: 'Customized Feedback'
216
+ };
217
+
218
+ const holder = (theme, extras) => _extends({
219
+ marginTop: '0px',
220
+ background: theme.palette.grey[300],
221
+ padding: theme.spacing.unit,
222
+ marginBottom: theme.spacing.unit * 2,
223
+ borderRadius: '4px'
224
+ }, extras);
225
+
226
+ const style$1 = theme => ({
227
+ feedbackSelector: {
228
+ marginBottom: theme.spacing.unit
229
+ },
230
+ label: {
231
+ cursor: 'pointer'
232
+ },
233
+ inputContainerLabel: {
234
+ transform: 'translateY(-20%)'
235
+ },
236
+ feedbackInputContainer: {
237
+ paddingBottom: 0
238
+ },
239
+ customHolder: holder(theme, {
240
+ background: theme.palette.grey[300],
241
+ padding: 0
242
+ }),
243
+ defaultHolder: holder(theme, {
244
+ fontFamily: theme.typography.fontFamily,
245
+ padding: theme.spacing.unit * 2,
246
+ cursor: 'default'
247
+ }),
248
+ editor: {
249
+ fontFamily: theme.typography.fontFamily
250
+ },
251
+ group: {
252
+ paddingTop: theme.spacing.unit
253
+ }
254
+ });
255
+
256
+ const FeedbackType = {
257
+ type: PropTypes.oneOf(['default', 'custom', 'none']),
258
+ default: PropTypes.string,
259
+ custom: PropTypes.string
260
+ };
261
+ class FeedbackSelector extends React__default.Component {
262
+ constructor(...args) {
263
+ super(...args);
264
+
265
+ this.changeType = type => {
266
+ const {
267
+ onChange,
268
+ feedback
269
+ } = this.props;
270
+ onChange(_extends({}, feedback, {
271
+ type
272
+ }));
273
+ };
274
+
275
+ this.changeCustom = custom => {
276
+ const {
277
+ onChange,
278
+ feedback
279
+ } = this.props;
280
+ onChange(_extends({}, feedback, {
281
+ type: 'custom',
282
+ custom
283
+ }));
284
+ };
285
+ }
286
+
287
+ render() {
288
+ const {
289
+ keys,
290
+ classes,
291
+ label,
292
+ feedback,
293
+ toolbarOpts,
294
+ mathMlOptions = {}
295
+ } = this.props;
296
+ const feedbackKeys = keys || Object.keys(feedbackLabels);
297
+ return /*#__PURE__*/React__default.createElement("div", {
298
+ className: classes.feedbackSelector
299
+ }, /*#__PURE__*/React__default.createElement(InputContainer, {
300
+ label: label,
301
+ className: classes.feedbackInputContainer,
302
+ extraClasses: {
303
+ label: classes.inputContainerLabel
304
+ }
305
+ }, /*#__PURE__*/React__default.createElement(Group$2, {
306
+ className: classes.group,
307
+ keys: feedbackKeys,
308
+ label: label,
309
+ value: feedback.type,
310
+ onChange: this.changeType,
311
+ feedbackLabels: feedbackLabels
312
+ })), feedback.type === 'custom' && /*#__PURE__*/React__default.createElement("div", {
313
+ className: classes.customHolder
314
+ }, /*#__PURE__*/React__default.createElement(EditableHTML, {
315
+ className: classes.editor,
316
+ onChange: this.changeCustom,
317
+ markup: feedback.custom || '',
318
+ toolbarOpts: toolbarOpts,
319
+ languageCharactersProps: [{
320
+ language: 'spanish'
321
+ }, {
322
+ language: 'special'
323
+ }],
324
+ mathMlOptions: mathMlOptions
325
+ })), feedback.type === 'default' && /*#__PURE__*/React__default.createElement("div", {
326
+ className: classes.defaultHolder
327
+ }, " ", feedback.default));
328
+ }
329
+
330
+ }
331
+ FeedbackSelector.propTypes = {
332
+ keys: PropTypes.arrayOf(PropTypes.string),
333
+ classes: PropTypes.object.isRequired,
334
+ label: PropTypes.string.isRequired,
335
+ feedback: PropTypes.shape(FeedbackType).isRequired,
336
+ onChange: PropTypes.func.isRequired,
337
+ toolbarOpts: PropTypes.object
338
+ };
339
+ var FeedbackSelector$1 = withStyles(style$1)(FeedbackSelector);
340
+
341
+ function getDefaultExportFromCjs (x) {
342
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
343
+ }
344
+
345
+ var ExpandMore = {};
346
+
347
+ var interopRequireDefault = {exports: {}};
348
+
349
+ var hasRequiredInteropRequireDefault;
350
+
351
+ function requireInteropRequireDefault () {
352
+ if (hasRequiredInteropRequireDefault) return interopRequireDefault.exports;
353
+ hasRequiredInteropRequireDefault = 1;
354
+ (function (module) {
355
+ function _interopRequireDefault(obj) {
356
+ return obj && obj.__esModule ? obj : {
357
+ "default": obj
358
+ };
359
+ }
360
+
361
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
362
+ } (interopRequireDefault));
363
+ return interopRequireDefault.exports;
364
+ }
365
+
366
+ var createSvgIcon = {};
367
+
368
+ var pure = {};
369
+
370
+ var shouldUpdate = {};
371
+
372
+ var inheritsLoose = {exports: {}};
373
+
374
+ var setPrototypeOf = {exports: {}};
375
+
376
+ var hasRequiredSetPrototypeOf;
377
+
378
+ function requireSetPrototypeOf () {
379
+ if (hasRequiredSetPrototypeOf) return setPrototypeOf.exports;
380
+ hasRequiredSetPrototypeOf = 1;
381
+ (function (module) {
382
+ function _setPrototypeOf(o, p) {
383
+ module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
384
+ o.__proto__ = p;
385
+ return o;
386
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
387
+ return _setPrototypeOf(o, p);
388
+ }
389
+
390
+ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
391
+ } (setPrototypeOf));
392
+ return setPrototypeOf.exports;
393
+ }
394
+
395
+ var hasRequiredInheritsLoose;
396
+
397
+ function requireInheritsLoose () {
398
+ if (hasRequiredInheritsLoose) return inheritsLoose.exports;
399
+ hasRequiredInheritsLoose = 1;
400
+ (function (module) {
401
+ var setPrototypeOf = requireSetPrototypeOf();
402
+
403
+ function _inheritsLoose(subClass, superClass) {
404
+ subClass.prototype = Object.create(superClass.prototype);
405
+ subClass.prototype.constructor = subClass;
406
+ setPrototypeOf(subClass, superClass);
407
+ }
408
+
409
+ module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
410
+ } (inheritsLoose));
411
+ return inheritsLoose.exports;
412
+ }
413
+
414
+ var setDisplayName = {};
415
+
416
+ var setStatic = {};
417
+
418
+ var hasRequiredSetStatic;
419
+
420
+ function requireSetStatic () {
421
+ if (hasRequiredSetStatic) return setStatic;
422
+ hasRequiredSetStatic = 1;
423
+
424
+ setStatic.__esModule = true;
425
+ setStatic.default = void 0;
426
+
427
+ var setStatic$1 = function setStatic(key, value) {
428
+ return function (BaseComponent) {
429
+ /* eslint-disable no-param-reassign */
430
+ BaseComponent[key] = value;
431
+ /* eslint-enable no-param-reassign */
432
+
433
+ return BaseComponent;
434
+ };
435
+ };
436
+
437
+ var _default = setStatic$1;
438
+ setStatic.default = _default;
439
+ return setStatic;
440
+ }
441
+
442
+ var hasRequiredSetDisplayName;
443
+
444
+ function requireSetDisplayName () {
445
+ if (hasRequiredSetDisplayName) return setDisplayName;
446
+ hasRequiredSetDisplayName = 1;
447
+
448
+ var _interopRequireDefault = requireInteropRequireDefault();
449
+
450
+ setDisplayName.__esModule = true;
451
+ setDisplayName.default = void 0;
452
+
453
+ var _setStatic = _interopRequireDefault(requireSetStatic());
454
+
455
+ var setDisplayName$1 = function setDisplayName(displayName) {
456
+ return (0, _setStatic.default)('displayName', displayName);
457
+ };
458
+
459
+ var _default = setDisplayName$1;
460
+ setDisplayName.default = _default;
461
+ return setDisplayName;
462
+ }
463
+
464
+ var wrapDisplayName = {};
465
+
466
+ var getDisplayName = {};
467
+
468
+ var hasRequiredGetDisplayName;
469
+
470
+ function requireGetDisplayName () {
471
+ if (hasRequiredGetDisplayName) return getDisplayName;
472
+ hasRequiredGetDisplayName = 1;
473
+
474
+ getDisplayName.__esModule = true;
475
+ getDisplayName.default = void 0;
476
+
477
+ var getDisplayName$1 = function getDisplayName(Component) {
478
+ if (typeof Component === 'string') {
479
+ return Component;
480
+ }
481
+
482
+ if (!Component) {
483
+ return undefined;
484
+ }
485
+
486
+ return Component.displayName || Component.name || 'Component';
487
+ };
488
+
489
+ var _default = getDisplayName$1;
490
+ getDisplayName.default = _default;
491
+ return getDisplayName;
492
+ }
493
+
494
+ var hasRequiredWrapDisplayName;
495
+
496
+ function requireWrapDisplayName () {
497
+ if (hasRequiredWrapDisplayName) return wrapDisplayName;
498
+ hasRequiredWrapDisplayName = 1;
499
+
500
+ var _interopRequireDefault = requireInteropRequireDefault();
501
+
502
+ wrapDisplayName.__esModule = true;
503
+ wrapDisplayName.default = void 0;
504
+
505
+ var _getDisplayName = _interopRequireDefault(requireGetDisplayName());
506
+
507
+ var wrapDisplayName$1 = function wrapDisplayName(BaseComponent, hocName) {
508
+ return hocName + "(" + (0, _getDisplayName.default)(BaseComponent) + ")";
509
+ };
510
+
511
+ var _default = wrapDisplayName$1;
512
+ wrapDisplayName.default = _default;
513
+ return wrapDisplayName;
514
+ }
515
+
516
+ var hasRequiredShouldUpdate;
517
+
518
+ function requireShouldUpdate () {
519
+ if (hasRequiredShouldUpdate) return shouldUpdate;
520
+ hasRequiredShouldUpdate = 1;
521
+
522
+ var _interopRequireDefault = requireInteropRequireDefault();
523
+
524
+ shouldUpdate.__esModule = true;
525
+ shouldUpdate.default = void 0;
526
+
527
+ var _inheritsLoose2 = _interopRequireDefault(requireInheritsLoose());
528
+
529
+ var _react = React__default;
530
+
531
+ var _setDisplayName = _interopRequireDefault(requireSetDisplayName());
532
+
533
+ var _wrapDisplayName = _interopRequireDefault(requireWrapDisplayName());
534
+
535
+ var shouldUpdate$1 = function shouldUpdate(test) {
536
+ return function (BaseComponent) {
537
+ var factory = (0, _react.createFactory)(BaseComponent);
538
+
539
+ var ShouldUpdate =
540
+ /*#__PURE__*/
541
+ function (_Component) {
542
+ (0, _inheritsLoose2.default)(ShouldUpdate, _Component);
543
+
544
+ function ShouldUpdate() {
545
+ return _Component.apply(this, arguments) || this;
546
+ }
547
+
548
+ var _proto = ShouldUpdate.prototype;
549
+
550
+ _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
551
+ return test(this.props, nextProps);
552
+ };
553
+
554
+ _proto.render = function render() {
555
+ return factory(this.props);
556
+ };
557
+
558
+ return ShouldUpdate;
559
+ }(_react.Component);
560
+
561
+ if (process.env.NODE_ENV !== 'production') {
562
+ return (0, _setDisplayName.default)((0, _wrapDisplayName.default)(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
563
+ }
564
+
565
+ return ShouldUpdate;
566
+ };
567
+ };
568
+
569
+ var _default = shouldUpdate$1;
570
+ shouldUpdate.default = _default;
571
+ return shouldUpdate;
572
+ }
573
+
574
+ var shallowEqual = {};
575
+
576
+ /**
577
+ * Copyright (c) 2013-present, Facebook, Inc.
578
+ *
579
+ * This source code is licensed under the MIT license found in the
580
+ * LICENSE file in the root directory of this source tree.
581
+ *
582
+ * @typechecks
583
+ *
584
+ */
585
+
586
+ var shallowEqual_1;
587
+ var hasRequiredShallowEqual$1;
588
+
589
+ function requireShallowEqual$1 () {
590
+ if (hasRequiredShallowEqual$1) return shallowEqual_1;
591
+ hasRequiredShallowEqual$1 = 1;
592
+
593
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
594
+
595
+ /**
596
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
597
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
598
+ */
599
+ function is(x, y) {
600
+ // SameValue algorithm
601
+ if (x === y) {
602
+ // Steps 1-5, 7-10
603
+ // Steps 6.b-6.e: +0 != -0
604
+ // Added the nonzero y check to make Flow happy, but it is redundant
605
+ return x !== 0 || y !== 0 || 1 / x === 1 / y;
606
+ } else {
607
+ // Step 6.a: NaN == NaN
608
+ return x !== x && y !== y;
609
+ }
610
+ }
611
+
612
+ /**
613
+ * Performs equality by iterating through keys on an object and returning false
614
+ * when any key has values which are not strictly equal between the arguments.
615
+ * Returns true when the values of all keys are strictly equal.
616
+ */
617
+ function shallowEqual(objA, objB) {
618
+ if (is(objA, objB)) {
619
+ return true;
620
+ }
621
+
622
+ if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
623
+ return false;
624
+ }
625
+
626
+ var keysA = Object.keys(objA);
627
+ var keysB = Object.keys(objB);
628
+
629
+ if (keysA.length !== keysB.length) {
630
+ return false;
631
+ }
632
+
633
+ // Test for A's keys different from B.
634
+ for (var i = 0; i < keysA.length; i++) {
635
+ if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
636
+ return false;
637
+ }
638
+ }
639
+
640
+ return true;
641
+ }
642
+
643
+ shallowEqual_1 = shallowEqual;
644
+ return shallowEqual_1;
645
+ }
646
+
647
+ var hasRequiredShallowEqual;
648
+
649
+ function requireShallowEqual () {
650
+ if (hasRequiredShallowEqual) return shallowEqual;
651
+ hasRequiredShallowEqual = 1;
652
+
653
+ var _interopRequireDefault = requireInteropRequireDefault();
654
+
655
+ shallowEqual.__esModule = true;
656
+ shallowEqual.default = void 0;
657
+
658
+ var _shallowEqual = _interopRequireDefault(requireShallowEqual$1());
659
+
660
+ var _default = _shallowEqual.default;
661
+ shallowEqual.default = _default;
662
+ return shallowEqual;
663
+ }
664
+
665
+ var hasRequiredPure;
666
+
667
+ function requirePure () {
668
+ if (hasRequiredPure) return pure;
669
+ hasRequiredPure = 1;
670
+
671
+ var _interopRequireDefault = requireInteropRequireDefault();
672
+
673
+ pure.__esModule = true;
674
+ pure.default = void 0;
675
+
676
+ var _shouldUpdate = _interopRequireDefault(requireShouldUpdate());
677
+
678
+ var _shallowEqual = _interopRequireDefault(requireShallowEqual());
679
+
680
+ var _setDisplayName = _interopRequireDefault(requireSetDisplayName());
681
+
682
+ var _wrapDisplayName = _interopRequireDefault(requireWrapDisplayName());
683
+
684
+ var pure$1 = function pure(BaseComponent) {
685
+ var hoc = (0, _shouldUpdate.default)(function (props, nextProps) {
686
+ return !(0, _shallowEqual.default)(props, nextProps);
687
+ });
688
+
689
+ if (process.env.NODE_ENV !== 'production') {
690
+ return (0, _setDisplayName.default)((0, _wrapDisplayName.default)(BaseComponent, 'pure'))(hoc(BaseComponent));
691
+ }
692
+
693
+ return hoc(BaseComponent);
694
+ };
695
+
696
+ var _default = pure$1;
697
+ pure.default = _default;
698
+ return pure;
699
+ }
700
+
701
+ var hasRequiredCreateSvgIcon;
702
+
703
+ function requireCreateSvgIcon () {
704
+ if (hasRequiredCreateSvgIcon) return createSvgIcon;
705
+ hasRequiredCreateSvgIcon = 1;
706
+
707
+ var _interopRequireDefault = requireInteropRequireDefault();
708
+
709
+ Object.defineProperty(createSvgIcon, "__esModule", {
710
+ value: true
711
+ });
712
+ createSvgIcon.default = void 0;
713
+
714
+ var _react = _interopRequireDefault(React__default);
715
+
716
+ var _pure = _interopRequireDefault(requirePure());
717
+
718
+ var _SvgIcon = _interopRequireDefault(require$$3);
719
+
720
+ function createSvgIcon$1(path, displayName) {
721
+ var Icon = function Icon(props) {
722
+ return _react.default.createElement(_SvgIcon.default, props, path);
723
+ };
724
+
725
+ Icon.displayName = "".concat(displayName, "Icon");
726
+ Icon = (0, _pure.default)(Icon);
727
+ Icon.muiName = 'SvgIcon';
728
+ return Icon;
729
+ }
730
+ var _default = createSvgIcon$1;
731
+ createSvgIcon.default = _default;
732
+ return createSvgIcon;
733
+ }
734
+
735
+ var hasRequiredExpandMore;
736
+
737
+ function requireExpandMore () {
738
+ if (hasRequiredExpandMore) return ExpandMore;
739
+ hasRequiredExpandMore = 1;
740
+
741
+ var _interopRequireDefault = requireInteropRequireDefault();
742
+
743
+ Object.defineProperty(ExpandMore, "__esModule", {
744
+ value: true
745
+ });
746
+ ExpandMore.default = void 0;
747
+
748
+ var _react = _interopRequireDefault(React__default);
749
+
750
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
751
+
752
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
753
+ d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
754
+ }), _react.default.createElement("path", {
755
+ fill: "none",
756
+ d: "M0 0h24v24H0z"
757
+ })), 'ExpandMore');
758
+
759
+ ExpandMore.default = _default;
760
+ return ExpandMore;
761
+ }
762
+
763
+ var ExpandMoreExports = /*@__PURE__*/ requireExpandMore();
764
+ var ExpandMoreIcon = /*@__PURE__*/getDefaultExportFromCjs(ExpandMoreExports);
765
+
766
+ const style = {
767
+ feedbackContainer: {
768
+ display: 'flex',
769
+ flex: 1,
770
+ flexDirection: 'column'
771
+ },
772
+ panelDetails: {
773
+ paddingTop: 0,
774
+ paddingBottom: 0
775
+ }
776
+ };
777
+ const buildDefaults = input => {
778
+ return merge({}, {
779
+ correct: {
780
+ type: 'default',
781
+ default: 'Correct'
782
+ },
783
+ incorrect: {
784
+ type: 'default',
785
+ default: 'Incorrect'
786
+ },
787
+ partial: {
788
+ type: 'default',
789
+ default: 'Nearly'
790
+ }
791
+ }, input);
792
+ };
793
+ class FeedbackConfig extends React__default.Component {
794
+ constructor(...args) {
795
+ super(...args);
796
+ this.onCorrectChange = this.onChange.bind(this, 'correct');
797
+ this.onIncorrectChange = this.onChange.bind(this, 'incorrect');
798
+ this.onPartialChange = this.onChange.bind(this, 'partial');
799
+ }
800
+
801
+ onChange(key, config) {
802
+ const {
803
+ feedback,
804
+ onChange
805
+ } = this.props;
806
+
807
+ const update = _extends({}, feedback, {
808
+ [key]: config
809
+ });
810
+
811
+ onChange(update);
812
+ }
813
+
814
+ render() {
815
+ const {
816
+ classes,
817
+ className,
818
+ allowPartial,
819
+ feedback,
820
+ toolbarOpts
821
+ } = this.props;
822
+ return /*#__PURE__*/React__default.createElement("div", {
823
+ className: className
824
+ }, /*#__PURE__*/React__default.createElement(ExpansionPanel, null, /*#__PURE__*/React__default.createElement(ExpansionPanelSummary, {
825
+ expandIcon: /*#__PURE__*/React__default.createElement(ExpandMoreIcon, null)
826
+ }, /*#__PURE__*/React__default.createElement(Typography, {
827
+ className: classes.heading
828
+ }, "Feedback")), /*#__PURE__*/React__default.createElement(ExpansionPanelDetails, {
829
+ className: classes.panelDetails
830
+ }, /*#__PURE__*/React__default.createElement("div", {
831
+ className: classes.feedbackContainer
832
+ }, /*#__PURE__*/React__default.createElement(FeedbackSelector$1, {
833
+ label: "If correct, show",
834
+ feedback: feedback.correct,
835
+ onChange: this.onCorrectChange,
836
+ toolbarOpts: toolbarOpts
837
+ }), allowPartial && /*#__PURE__*/React__default.createElement(FeedbackSelector$1, {
838
+ label: "If partially correct, show",
839
+ feedback: feedback.partial,
840
+ onChange: this.onPartialChange,
841
+ toolbarOpts: toolbarOpts
842
+ }), /*#__PURE__*/React__default.createElement(FeedbackSelector$1, {
843
+ label: "If incorrect, show",
844
+ feedback: feedback.incorrect,
845
+ onChange: this.onIncorrectChange,
846
+ toolbarOpts: toolbarOpts
847
+ })))));
848
+ }
849
+
850
+ }
851
+ FeedbackConfig.propTypes = {
852
+ allowPartial: PropTypes.bool,
853
+ className: PropTypes.string,
854
+ feedback: PropTypes.shape({
855
+ correct: PropTypes.shape(FeedbackType),
856
+ incorrect: PropTypes.shape(FeedbackType),
857
+ partial: PropTypes.shape(FeedbackType)
858
+ }),
859
+ onChange: PropTypes.func.isRequired,
860
+ classes: PropTypes.object.isRequired,
861
+ toolbarOpts: PropTypes.object
862
+ };
863
+ FeedbackConfig.defaultProps = {
864
+ allowPartial: true,
865
+ feedback: buildDefaults()
866
+ };
867
+ var index$4 = withStyles(style)(FeedbackConfig);
868
+
869
+ const InputTypes = {
870
+ classes: PropTypes.object.isRequired,
871
+ className: PropTypes.string,
872
+ label: PropTypes.string,
873
+ checked: PropTypes.bool,
874
+ onChange: PropTypes.func,
875
+ disabled: PropTypes.bool,
876
+ error: PropTypes.string
877
+ };
878
+
879
+ const RawInputSwitch = ({
880
+ classes,
881
+ className,
882
+ label,
883
+ checked,
884
+ onChange
885
+ }) => {
886
+ return /*#__PURE__*/React__default.createElement(InputContainer, {
887
+ className: className,
888
+ label: label
889
+ }, /*#__PURE__*/React__default.createElement(Switch, {
890
+ className: classes.switchRoot,
891
+ checked: checked,
892
+ onChange: onChange,
893
+ "aria-label": label
894
+ }));
895
+ };
896
+
897
+ RawInputSwitch.propTypes = _extends({}, InputTypes);
898
+ const InputSwitch = withStyles({
899
+ switchRoot: {
900
+ justifyContent: 'inherit',
901
+ transform: 'translate(-20%, 20%)'
902
+ }
903
+ })(RawInputSwitch);
904
+
905
+ const RawInputCheckbox = props => {
906
+ const {
907
+ classes,
908
+ className,
909
+ label,
910
+ checked,
911
+ onChange,
912
+ disabled,
913
+ error
914
+ } = props;
915
+ return /*#__PURE__*/React__default.createElement(InputContainer, {
916
+ className: className,
917
+ label: label
918
+ }, /*#__PURE__*/React__default.createElement(Checkbox$2, {
919
+ className: classNames(classes.checkboxRoot, classes.customColor, error && classes.error),
920
+ disabled: disabled,
921
+ checked: checked,
922
+ onChange: onChange,
923
+ "aria-label": label
924
+ }));
925
+ };
926
+
927
+ RawInputCheckbox.propTypes = _extends({}, InputTypes);
928
+
929
+ const RawInputRadio = props => {
930
+ const {
931
+ classes,
932
+ className,
933
+ label,
934
+ checked,
935
+ onChange,
936
+ disabled,
937
+ error
938
+ } = props;
939
+ return /*#__PURE__*/React__default.createElement(InputContainer, {
940
+ className: className,
941
+ label: label
942
+ }, /*#__PURE__*/React__default.createElement(Radio$1, {
943
+ className: classNames(classes.radioRoot, classes.customColor, error && classes.error),
944
+ disabled: disabled,
945
+ checked: checked,
946
+ onChange: onChange,
947
+ "aria-label": label
948
+ }));
949
+ };
950
+
951
+ RawInputRadio.propTypes = _extends({}, InputTypes);
952
+ const InputCheckbox = withStyles(theme => ({
953
+ checkboxRoot: {
954
+ transform: 'translate(-25%, 20%)'
955
+ },
956
+ error: {
957
+ color: theme.palette.error.main
958
+ },
959
+ customColor: {
960
+ color: `${color.tertiary()} !important`
961
+ }
962
+ }))(RawInputCheckbox);
963
+ const InputRadio = withStyles(theme => ({
964
+ radioRoot: {
965
+ transform: 'translate(-20%, 20%)'
966
+ },
967
+ error: {
968
+ color: theme.palette.error.main
969
+ },
970
+ customColor: {
971
+ color: `${color.tertiary()} !important`
972
+ }
973
+ }))(RawInputRadio);
974
+
975
+ const log$3 = debug('pie-elements:config-ui:langs');
976
+
977
+ const styles$9 = theme => ({
978
+ root: {
979
+ flexDirection: 'column',
980
+ alignItems: 'start',
981
+ display: 'flex',
982
+ position: 'relative',
983
+ paddingTop: '0px',
984
+ paddingRight: '0px'
985
+ },
986
+ formControl: {
987
+ position: 'initial'
988
+ },
989
+ inputLabel: {
990
+ paddingBottom: theme.spacing.unit
991
+ }
992
+ });
993
+
994
+ class RawLangs extends React__default.Component {
995
+ constructor(props) {
996
+ super(props);
997
+
998
+ this.choose = event => {
999
+ log$3('[choose] event: ', event);
1000
+
1001
+ if (this.props.onChange) {
1002
+ this.props.onChange(event.target.value);
1003
+ }
1004
+ };
1005
+
1006
+ this.uid = props.uid || (Math.random() * 10000).toFixed();
1007
+ }
1008
+
1009
+ render() {
1010
+ let {
1011
+ langs,
1012
+ selected,
1013
+ label,
1014
+ classes
1015
+ } = this.props;
1016
+ log$3('[render] selected:', selected);
1017
+ return /*#__PURE__*/React__default.createElement("div", {
1018
+ className: classes.root
1019
+ }, /*#__PURE__*/React__default.createElement(FormControl, {
1020
+ className: classes.formControl
1021
+ }, /*#__PURE__*/React__default.createElement(InputLabel, {
1022
+ className: classes.inputLabel,
1023
+ htmlFor: this.uid
1024
+ }, label), /*#__PURE__*/React__default.createElement(Select, {
1025
+ value: selected,
1026
+ onChange: this.choose,
1027
+ input: /*#__PURE__*/React__default.createElement(MaterialInput, {
1028
+ id: this.uid
1029
+ })
1030
+ }, langs.map((l, index) => /*#__PURE__*/React__default.createElement(MenuItem, {
1031
+ key: index,
1032
+ value: l
1033
+ }, l)))));
1034
+ }
1035
+
1036
+ }
1037
+ RawLangs.propTypes = {
1038
+ onChange: PropTypes.func,
1039
+ langs: PropTypes.array,
1040
+ selected: PropTypes.string,
1041
+ label: PropTypes.string,
1042
+ classes: PropTypes.object.isRequired,
1043
+ uid: PropTypes.string
1044
+ };
1045
+ const Langs = withStyles(styles$9, {
1046
+ name: 'Langs'
1047
+ })(RawLangs);
1048
+ const LanguageControls = withStyles({
1049
+ languageControls: {
1050
+ display: 'grid',
1051
+ gridAutoFlow: 'column',
1052
+ gridAutoColumns: '1fr',
1053
+ gridGap: '8px'
1054
+ }
1055
+ })(({
1056
+ classes,
1057
+ langs,
1058
+ activeLang,
1059
+ defaultLang,
1060
+ onActiveLangChange,
1061
+ onDefaultLangChange,
1062
+ className
1063
+ }) => {
1064
+ const names = classNames(classes.languageControls, className);
1065
+ return /*#__PURE__*/React__default.createElement("div", {
1066
+ className: names
1067
+ }, /*#__PURE__*/React__default.createElement(Langs, {
1068
+ label: "Choose language to edit",
1069
+ langs: langs,
1070
+ selected: activeLang,
1071
+ onChange: l => onActiveLangChange(l)
1072
+ }), /*#__PURE__*/React__default.createElement(Langs, {
1073
+ label: "Default language",
1074
+ langs: langs,
1075
+ selected: defaultLang,
1076
+ onChange: l => onDefaultLangChange(l)
1077
+ }));
1078
+ });
1079
+ LanguageControls.propTypes = {
1080
+ langs: PropTypes.array,
1081
+ activeLang: PropTypes.string.isRequired,
1082
+ defaultLang: PropTypes.string.isRequired,
1083
+ onActiveLangChange: PropTypes.func.isRequired,
1084
+ onDefaultLangChange: PropTypes.func.isRequired
1085
+ };
1086
+
1087
+ class Tabs extends React__default.Component {
1088
+ constructor(props) {
1089
+ super(props);
1090
+
1091
+ this.handleChange = (event, value) => {
1092
+ this.setState({
1093
+ value
1094
+ });
1095
+ };
1096
+
1097
+ this.state = {
1098
+ value: 0
1099
+ };
1100
+ }
1101
+
1102
+ render() {
1103
+ const {
1104
+ value
1105
+ } = this.state;
1106
+ const {
1107
+ children,
1108
+ className,
1109
+ contentClassName,
1110
+ contentStyle = {},
1111
+ classes
1112
+ } = this.props;
1113
+ const tabClasses = {
1114
+ root: classes.tabRoot
1115
+ };
1116
+ return /*#__PURE__*/React__default.createElement("div", {
1117
+ className: className
1118
+ }, /*#__PURE__*/React__default.createElement(MuiTabs, {
1119
+ indicatorColor: "primary",
1120
+ value: value,
1121
+ onChange: this.handleChange
1122
+ }, React__default.Children.map(children, (c, index) => c && c.props.title ? /*#__PURE__*/React__default.createElement(MuiTab, {
1123
+ classes: tabClasses,
1124
+ key: index,
1125
+ label: c.props.title
1126
+ }) : null)), /*#__PURE__*/React__default.createElement("div", {
1127
+ className: contentClassName,
1128
+ style: contentStyle
1129
+ }, children[value]));
1130
+ }
1131
+
1132
+ }
1133
+ Tabs.propTypes = {
1134
+ classes: PropTypes.object,
1135
+ className: PropTypes.string,
1136
+ contentClassName: PropTypes.string,
1137
+ contentStyle: PropTypes.object,
1138
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
1139
+ };
1140
+ var Tabs$1 = withStyles$1(() => ({
1141
+ tabRoot: {}
1142
+ }))(Tabs);
1143
+
1144
+ const Checkbox = ({
1145
+ mini,
1146
+ checked,
1147
+ onChange,
1148
+ value,
1149
+ label,
1150
+ classes,
1151
+ error
1152
+ }) => /*#__PURE__*/React__default.createElement(FormControlLabel, {
1153
+ className: classNames(classes.mini),
1154
+ classes: {
1155
+ label: classNames(classes.label, {
1156
+ [classes.miniLabel]: mini
1157
+ })
1158
+ },
1159
+ control: /*#__PURE__*/React__default.createElement(Checkbox$2, {
1160
+ checked: checked,
1161
+ onChange: onChange,
1162
+ value: value,
1163
+ className: classNames(classes.customColor, {
1164
+ [classes.miniCheckbox]: mini,
1165
+ [classes.error]: error
1166
+ })
1167
+ }),
1168
+ label: label
1169
+ });
1170
+
1171
+ Checkbox.propTypes = {
1172
+ mini: PropTypes.bool,
1173
+ classes: PropTypes.object.isRequired,
1174
+ checked: PropTypes.bool.isRequired,
1175
+ onChange: PropTypes.func.isRequired,
1176
+ value: PropTypes.string,
1177
+ label: PropTypes.string.isRequired
1178
+ };
1179
+ Checkbox.defaultProps = {
1180
+ value: '',
1181
+ mini: false
1182
+ };
1183
+ var Checkbox$1 = withStyles(theme => ({
1184
+ label: {
1185
+ fontSize: theme.typography.fontSize - 1,
1186
+ transform: 'translate(-4%, 2%)',
1187
+ color: 'rgba(0,0,0,1.0)'
1188
+ },
1189
+ miniCheckbox: {
1190
+ margin: 0,
1191
+ padding: 0,
1192
+ width: theme.spacing.unit * 3,
1193
+ height: theme.spacing.unit * 3
1194
+ },
1195
+ miniLabel: {
1196
+ marginLeft: theme.spacing.unit,
1197
+ color: grey[700],
1198
+ fontSize: theme.typography.fontSize - 3
1199
+ },
1200
+ mini: {
1201
+ margin: 0,
1202
+ marginLeft: 0,
1203
+ padding: 0
1204
+ },
1205
+ error: {
1206
+ color: theme.palette.error.main
1207
+ },
1208
+ customColor: {
1209
+ color: `${color.tertiary()} !important`
1210
+ }
1211
+ }))(Checkbox);
1212
+
1213
+ const styles$8 = theme => ({
1214
+ formSection: {
1215
+ marginTop: theme.spacing.unit * 2,
1216
+ marginBottom: theme.spacing.unit * 2
1217
+ },
1218
+ label: {
1219
+ marginBottom: theme.spacing.unit
1220
+ }
1221
+ });
1222
+
1223
+ var formSection = withStyles(styles$8)(({
1224
+ className,
1225
+ classes,
1226
+ label,
1227
+ children,
1228
+ labelExtraStyle
1229
+ }) => /*#__PURE__*/React__default.createElement("div", {
1230
+ className: classNames(classes.formSection, className)
1231
+ }, /*#__PURE__*/React__default.createElement(Typography, {
1232
+ className: classes.label,
1233
+ type: "subheading",
1234
+ style: labelExtraStyle
1235
+ }, label), children));
1236
+
1237
+ var Help$1 = {};
1238
+
1239
+ var hasRequiredHelp;
1240
+
1241
+ function requireHelp () {
1242
+ if (hasRequiredHelp) return Help$1;
1243
+ hasRequiredHelp = 1;
1244
+
1245
+ var _interopRequireDefault = requireInteropRequireDefault();
1246
+
1247
+ Object.defineProperty(Help$1, "__esModule", {
1248
+ value: true
1249
+ });
1250
+ Help$1.default = void 0;
1251
+
1252
+ var _react = _interopRequireDefault(React__default);
1253
+
1254
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
1255
+
1256
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
1257
+ fill: "none",
1258
+ d: "M0 0h24v24H0z"
1259
+ }), _react.default.createElement("path", {
1260
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"
1261
+ })), 'Help');
1262
+
1263
+ Help$1.default = _default;
1264
+ return Help$1;
1265
+ }
1266
+
1267
+ var HelpExports = /*@__PURE__*/ requireHelp();
1268
+ var HelpIcon = /*@__PURE__*/getDefaultExportFromCjs(HelpExports);
1269
+
1270
+ const RawHelpButton = ({
1271
+ onClick,
1272
+ classes
1273
+ }) => /*#__PURE__*/React__default.createElement(IconButton, {
1274
+ classes: {
1275
+ label: classes.icon
1276
+ },
1277
+ onClick: onClick
1278
+ }, /*#__PURE__*/React__default.createElement(HelpIcon, null));
1279
+
1280
+ RawHelpButton.propTypes = {
1281
+ onClick: PropTypes.func,
1282
+ classes: PropTypes.object.isRequired
1283
+ };
1284
+ const HelpButton = withStyles(theme => ({
1285
+ icon: {
1286
+ '&:hover': {
1287
+ color: theme.palette.grey[300]
1288
+ }
1289
+ }
1290
+ }))(RawHelpButton);
1291
+ const HelpDialog = ({
1292
+ open,
1293
+ onClose,
1294
+ children,
1295
+ title
1296
+ }) => /*#__PURE__*/React__default.createElement(Dialog$1, {
1297
+ open: open,
1298
+ onRequestClose: onClose
1299
+ }, /*#__PURE__*/React__default.createElement(DialogTitle$1, null, title), /*#__PURE__*/React__default.createElement(DialogContent$1, null, /*#__PURE__*/React__default.createElement(DialogContentText$1, null, children)), /*#__PURE__*/React__default.createElement(DialogActions$1, null, /*#__PURE__*/React__default.createElement(Button$1, {
1300
+ onClick: onClose,
1301
+ color: "primary"
1302
+ }, "OK")));
1303
+ HelpDialog.propTypes = {
1304
+ open: PropTypes.bool,
1305
+ onClose: PropTypes.func,
1306
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
1307
+ title: PropTypes.string.isRequired
1308
+ };
1309
+
1310
+ class Help extends React__default.Component {
1311
+ constructor(props) {
1312
+ super(props);
1313
+ this.state = {
1314
+ open: false
1315
+ };
1316
+ }
1317
+
1318
+ render() {
1319
+ const {
1320
+ children,
1321
+ title
1322
+ } = this.props;
1323
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(HelpButton, {
1324
+ color: "accent",
1325
+ onClick: () => this.setState({
1326
+ open: true
1327
+ })
1328
+ }), /*#__PURE__*/React__default.createElement(HelpDialog, {
1329
+ open: this.state.open,
1330
+ title: title,
1331
+ onClose: () => this.setState({
1332
+ open: false
1333
+ })
1334
+ }, children));
1335
+ }
1336
+
1337
+ }
1338
+
1339
+ Help.propTypes = {
1340
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
1341
+ title: PropTypes.string
1342
+ };
1343
+
1344
+ const _excluded$1 = ["label", "type", "noModelUpdateOnError"];
1345
+ class Input extends React.Component {
1346
+ constructor(props) {
1347
+ super(props);
1348
+
1349
+ this.onChange = event => {
1350
+ const {
1351
+ type,
1352
+ onChange,
1353
+ error
1354
+ } = this.props;
1355
+ const value = event.target.value;
1356
+
1357
+ if (error(value, type)) {
1358
+ this.setState({
1359
+ error: true,
1360
+ value: event.target.value
1361
+ });
1362
+ } else {
1363
+ this.setState({
1364
+ error: false,
1365
+ value: event.target.value
1366
+ });
1367
+ onChange(event);
1368
+ }
1369
+ };
1370
+
1371
+ this.state = {
1372
+ value: props.value
1373
+ };
1374
+ }
1375
+
1376
+ UNSAFE_componentWillReceiveProps(newProps) {
1377
+ this.setState({
1378
+ value: newProps.value
1379
+ });
1380
+ }
1381
+
1382
+ render() {
1383
+ const _this$props = this.props,
1384
+ {
1385
+ label,
1386
+ type
1387
+ } = _this$props,
1388
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded$1);
1389
+
1390
+ const {
1391
+ value,
1392
+ error
1393
+ } = this.state;
1394
+ return label ? /*#__PURE__*/React.createElement(InputContainer, {
1395
+ label: label
1396
+ }, /*#__PURE__*/React.createElement(MaterialInput, _extends({
1397
+ type: type
1398
+ }, rest, {
1399
+ value: value,
1400
+ onChange: this.onChange,
1401
+ error: error
1402
+ }))) : /*#__PURE__*/React.createElement(MaterialInput, _extends({
1403
+ type: type
1404
+ }, rest, {
1405
+ value: value,
1406
+ onChange: this.onChange,
1407
+ error: error
1408
+ }));
1409
+ }
1410
+
1411
+ }
1412
+ Input.propTypes = {
1413
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1414
+ onChange: PropTypes.func.isRequired,
1415
+ label: PropTypes.string,
1416
+ type: PropTypes.string.isRequired,
1417
+ error: PropTypes.func,
1418
+ noModelUpdateOnError: PropTypes.bool
1419
+ };
1420
+ Input.defaultProps = {
1421
+ type: 'text',
1422
+ error: (value, type) => type === 'number' ? !value || isNaN(value) : !value,
1423
+ noModelUpdateOnError: false
1424
+ };
1425
+
1426
+ const log$2 = debug('@pie-lib:config-ui:number-text-field');
1427
+
1428
+ const styles$7 = theme => ({
1429
+ root: {
1430
+ marginRight: theme.spacing.unit,
1431
+ '& label': {
1432
+ width: 'max-content'
1433
+ }
1434
+ }
1435
+ });
1436
+
1437
+ const fallbackNumber$1 = (min, max) => {
1438
+ if (!isFinite(min) && !isFinite(max)) {
1439
+ return 0;
1440
+ }
1441
+
1442
+ if (!isFinite(min) && isFinite(max)) {
1443
+ return max;
1444
+ }
1445
+
1446
+ if (isFinite(min)) {
1447
+ return min;
1448
+ }
1449
+ };
1450
+
1451
+ class NumberTextField extends React__default.Component {
1452
+ constructor(props) {
1453
+ super(props);
1454
+
1455
+ this.onBlur = event => {
1456
+ const value = event.target.value;
1457
+ const rawNumber = parseFloat(value);
1458
+ log$2('rawNumber: ', rawNumber);
1459
+ const number = this.clamp(rawNumber);
1460
+ log$2('number: ', number);
1461
+
1462
+ if (number !== this.state.value) {
1463
+ log$2('trigger update...');
1464
+ this.setState({
1465
+ value: number.toString()
1466
+ }, () => {
1467
+ this.props.onChange(event, number);
1468
+ });
1469
+ }
1470
+ };
1471
+
1472
+ this.errorMessage = () => {
1473
+ const {
1474
+ min,
1475
+ max
1476
+ } = this.props;
1477
+
1478
+ if (min && max) {
1479
+ return `The value must be between ${min} and ${max}`;
1480
+ }
1481
+
1482
+ if (min) {
1483
+ return `The value must be greater than ${min}`;
1484
+ }
1485
+
1486
+ if (max) {
1487
+ return `The value must be less than ${max}`;
1488
+ }
1489
+ };
1490
+
1491
+ this.getError = () => {
1492
+ const {
1493
+ value
1494
+ } = this.state;
1495
+ const float = parseFloat(value);
1496
+ const clamped = this.clamp(float);
1497
+
1498
+ if (clamped !== float) {
1499
+ return this.errorMessage();
1500
+ }
1501
+ };
1502
+
1503
+ const _value = this.clamp(props.value);
1504
+
1505
+ this.state = {
1506
+ value: _value
1507
+ };
1508
+
1509
+ if (_value !== props.value) {
1510
+ this.props.onChange({}, _value);
1511
+ }
1512
+
1513
+ this.onChange = this.onChange.bind(this);
1514
+ }
1515
+
1516
+ UNSAFE_componentWillReceiveProps(props) {
1517
+ const value = this.clamp(props.value, props.min, props.max);
1518
+ this.setState({
1519
+ value
1520
+ });
1521
+ }
1522
+
1523
+ clamp(value, min = this.props.min, max = this.props.max) {
1524
+ if (!isFinite(value)) {
1525
+ return fallbackNumber$1(min, max);
1526
+ }
1527
+
1528
+ if (isFinite(max)) {
1529
+ value = Math.min(value, max);
1530
+ }
1531
+
1532
+ if (isFinite(min)) {
1533
+ value = Math.max(value, min);
1534
+ }
1535
+
1536
+ return value;
1537
+ }
1538
+ /**
1539
+ * on Blur (this can be triggered by pressing Enter, see below)
1540
+ * we check the entered value and reset it if needed
1541
+ */
1542
+
1543
+
1544
+ onChange(event) {
1545
+ const value = event.target.value;
1546
+ this.setState({
1547
+ value
1548
+ });
1549
+ }
1550
+
1551
+ render() {
1552
+ const {
1553
+ className,
1554
+ classes,
1555
+ label,
1556
+ disabled,
1557
+ suffix,
1558
+ min,
1559
+ max,
1560
+ inputClassName,
1561
+ disableUnderline,
1562
+ showErrorWhenOutsideRange,
1563
+ variant
1564
+ } = this.props;
1565
+ const names = classNames(classes.root, className);
1566
+ const error = showErrorWhenOutsideRange && this.getError();
1567
+ return /*#__PURE__*/React__default.createElement(TextField$1, {
1568
+ variant: variant || 'standard',
1569
+ inputRef: ref => {
1570
+ this.inputRef = ref;
1571
+ },
1572
+ disabled: disabled,
1573
+ label: label,
1574
+ value: this.state.value,
1575
+ error: !!error,
1576
+ helperText: error,
1577
+ onChange: this.onChange,
1578
+ onBlur: this.onBlur,
1579
+ onKeyPress: e => {
1580
+ // once the Enter key is pressed, we force input blur
1581
+ if (e.key === 'Enter' && this.inputRef) {
1582
+ this.inputRef.blur();
1583
+ }
1584
+ },
1585
+ type: "number",
1586
+ className: names,
1587
+ InputLabelProps: {
1588
+ shrink: true
1589
+ },
1590
+ InputProps: {
1591
+ endAdornment: suffix && /*#__PURE__*/React__default.createElement(InputAdornment, {
1592
+ position: "end"
1593
+ }, suffix),
1594
+ className: inputClassName,
1595
+ disableUnderline: disableUnderline
1596
+ },
1597
+ inputProps: {
1598
+ min,
1599
+ max
1600
+ },
1601
+ margin: "normal"
1602
+ });
1603
+ }
1604
+
1605
+ }
1606
+ NumberTextField.propTypes = {
1607
+ disabled: PropTypes.bool,
1608
+ classes: PropTypes.object.isRequired,
1609
+ className: PropTypes.string,
1610
+ inputClassName: PropTypes.string,
1611
+ onChange: PropTypes.func.isRequired,
1612
+ value: PropTypes.number,
1613
+ min: PropTypes.number,
1614
+ max: PropTypes.number,
1615
+ label: PropTypes.string,
1616
+ suffix: PropTypes.string,
1617
+ showErrorWhenOutsideRange: PropTypes.bool,
1618
+ disableUnderline: PropTypes.bool,
1619
+ variant: PropTypes.string
1620
+ };
1621
+ NumberTextField.defaultProps = {
1622
+ showErrorWhenOutsideRange: false
1623
+ };
1624
+ var NumberTextField$1 = withStyles(styles$7)(NumberTextField);
1625
+
1626
+ var Remove$1 = {};
1627
+
1628
+ var hasRequiredRemove;
1629
+
1630
+ function requireRemove () {
1631
+ if (hasRequiredRemove) return Remove$1;
1632
+ hasRequiredRemove = 1;
1633
+
1634
+ var _interopRequireDefault = requireInteropRequireDefault();
1635
+
1636
+ Object.defineProperty(Remove$1, "__esModule", {
1637
+ value: true
1638
+ });
1639
+ Remove$1.default = void 0;
1640
+
1641
+ var _react = _interopRequireDefault(React__default);
1642
+
1643
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
1644
+
1645
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
1646
+ d: "M19 13H5v-2h14v2z"
1647
+ }), _react.default.createElement("path", {
1648
+ fill: "none",
1649
+ d: "M0 0h24v24H0z"
1650
+ })), 'Remove');
1651
+
1652
+ Remove$1.default = _default;
1653
+ return Remove$1;
1654
+ }
1655
+
1656
+ var RemoveExports = /*@__PURE__*/ requireRemove();
1657
+ var Remove = /*@__PURE__*/getDefaultExportFromCjs(RemoveExports);
1658
+
1659
+ var Add$1 = {};
1660
+
1661
+ var hasRequiredAdd;
1662
+
1663
+ function requireAdd () {
1664
+ if (hasRequiredAdd) return Add$1;
1665
+ hasRequiredAdd = 1;
1666
+
1667
+ var _interopRequireDefault = requireInteropRequireDefault();
1668
+
1669
+ Object.defineProperty(Add$1, "__esModule", {
1670
+ value: true
1671
+ });
1672
+ Add$1.default = void 0;
1673
+
1674
+ var _react = _interopRequireDefault(React__default);
1675
+
1676
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
1677
+
1678
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
1679
+ d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
1680
+ }), _react.default.createElement("path", {
1681
+ fill: "none",
1682
+ d: "M0 0h24v24H0z"
1683
+ })), 'Add');
1684
+
1685
+ Add$1.default = _default;
1686
+ return Add$1;
1687
+ }
1688
+
1689
+ var AddExports = /*@__PURE__*/ requireAdd();
1690
+ var Add = /*@__PURE__*/getDefaultExportFromCjs(AddExports);
1691
+
1692
+ const styles$6 = () => ({
1693
+ input: {
1694
+ '& input[type=number]': {
1695
+ '-moz-appearance': 'textfield'
1696
+ },
1697
+ '& input[type=number]::-webkit-outer-spin-button': {
1698
+ '-webkit-appearance': 'none',
1699
+ margin: 0
1700
+ },
1701
+ '& input[type=number]::-webkit-inner-spin-button': {
1702
+ '-webkit-appearance': 'none',
1703
+ margin: 0
1704
+ }
1705
+ },
1706
+ iconButton: {
1707
+ padding: '2px'
1708
+ }
1709
+ });
1710
+
1711
+ const fallbackNumber = (min, max) => {
1712
+ if (!isFinite(min) && !isFinite(max)) {
1713
+ return 0;
1714
+ }
1715
+
1716
+ if (!isFinite(min) && isFinite(max)) {
1717
+ return max;
1718
+ }
1719
+
1720
+ if (isFinite(min)) {
1721
+ return min;
1722
+ }
1723
+ };
1724
+
1725
+ class NumberTextFieldCustom extends React__default.Component {
1726
+ constructor(props) {
1727
+ super(props);
1728
+
1729
+ this.normalizeValueAndIndex = (customValues, number, min, max) => {
1730
+ const {
1731
+ type
1732
+ } = this.props;
1733
+ const value = this.clamp(number, min, max);
1734
+ const currentIndex = (customValues || []).findIndex(val => val === value);
1735
+
1736
+ if ((customValues || []).length > 0 && currentIndex === -1) {
1737
+ const closestValue = type === 'text' ? this.getClosestFractionValue(customValues, value) : this.getClosestValue(customValues, value);
1738
+ return {
1739
+ value: closestValue.value,
1740
+ currentIndex: closestValue.index
1741
+ };
1742
+ }
1743
+
1744
+ return {
1745
+ value,
1746
+ currentIndex
1747
+ };
1748
+ };
1749
+
1750
+ this.getClosestValue = (customValues, number) => customValues.reduce((closest, value, index) => Math.abs(value - number) < Math.abs(closest.value - number) ? {
1751
+ value,
1752
+ index
1753
+ } : closest, {
1754
+ value: customValues[0],
1755
+ index: 0
1756
+ });
1757
+
1758
+ this.getClosestFractionValue = (customValues, number) => customValues.reduce((closest, value, index) => Math.abs(math.number(math.fraction(value)) - math.number(math.fraction(number))) < Math.abs(math.number(math.fraction(closest.value)) - math.number(math.fraction(number))) ? {
1759
+ value,
1760
+ index
1761
+ } : closest, {
1762
+ value: customValues[0],
1763
+ index: 0
1764
+ });
1765
+
1766
+ this.getValidFraction = value => {
1767
+ if (this.isPositiveInteger(value.trim())) {
1768
+ return value.trim();
1769
+ }
1770
+
1771
+ if (value.trim() === '' || value.trim().split('/').length !== 2) {
1772
+ return false;
1773
+ }
1774
+
1775
+ let [numerator, denominator] = value.trim().split('/');
1776
+
1777
+ if (isNaN(numerator) || isNaN(denominator)) {
1778
+ return false;
1779
+ }
1780
+
1781
+ numerator = parseFloat(numerator);
1782
+ denominator = parseFloat(denominator);
1783
+
1784
+ if (!Number.isInteger(numerator) || !Number.isInteger(denominator)) {
1785
+ return false;
1786
+ }
1787
+
1788
+ if (numerator < 0 || denominator < 1) {
1789
+ return false;
1790
+ }
1791
+
1792
+ return numerator + '/' + denominator;
1793
+ };
1794
+
1795
+ this.isPositiveInteger = n => {
1796
+ return n >>> 0 === parseFloat(n);
1797
+ };
1798
+
1799
+ this.onBlur = event => {
1800
+ const {
1801
+ customValues,
1802
+ onlyIntegersAllowed,
1803
+ type
1804
+ } = this.props;
1805
+ let {
1806
+ value
1807
+ } = event.target;
1808
+
1809
+ if (type === 'text') {
1810
+ let tempValue = this.getValidFraction(value);
1811
+
1812
+ if (tempValue) {
1813
+ value = tempValue;
1814
+ } else {
1815
+ value = this.props.value;
1816
+ }
1817
+ }
1818
+
1819
+ let rawNumber = onlyIntegersAllowed ? Math.round(parseFloat(value)) : parseFloat(value);
1820
+
1821
+ if (type === 'text') {
1822
+ rawNumber = value.trim();
1823
+ }
1824
+
1825
+ const {
1826
+ value: number,
1827
+ currentIndex
1828
+ } = this.normalizeValueAndIndex(customValues, rawNumber);
1829
+ this.setState({
1830
+ value: number.toString(),
1831
+ currentIndex
1832
+ }, () => this.props.onChange(event, number));
1833
+ };
1834
+
1835
+ const {
1836
+ value: _value,
1837
+ currentIndex: _currentIndex
1838
+ } = this.normalizeValueAndIndex(props.customValues, props.value);
1839
+ this.state = {
1840
+ value: _value,
1841
+ currentIndex: _currentIndex
1842
+ };
1843
+
1844
+ if (_value !== props.value) {
1845
+ this.props.onChange({}, _value);
1846
+ }
1847
+
1848
+ this.onChange = this.onChange.bind(this);
1849
+ }
1850
+
1851
+ UNSAFE_componentWillReceiveProps(props) {
1852
+ const {
1853
+ value,
1854
+ currentIndex
1855
+ } = this.normalizeValueAndIndex(props.customValues, props.value, props.min, props.max);
1856
+ this.setState({
1857
+ value,
1858
+ currentIndex
1859
+ });
1860
+ }
1861
+
1862
+ clamp(value, min = this.props.min, max = this.props.max) {
1863
+ const {
1864
+ customValues
1865
+ } = this.props;
1866
+
1867
+ if ((customValues || []).length > 0) {
1868
+ return value;
1869
+ }
1870
+
1871
+ if (!isFinite(value)) {
1872
+ return fallbackNumber(min, max);
1873
+ }
1874
+
1875
+ if (isFinite(max)) {
1876
+ value = Math.min(value, max);
1877
+ }
1878
+
1879
+ if (isFinite(min)) {
1880
+ value = Math.max(value, min);
1881
+ }
1882
+
1883
+ return value;
1884
+ }
1885
+
1886
+ onChange(event) {
1887
+ const {
1888
+ type
1889
+ } = this.props;
1890
+ const {
1891
+ value
1892
+ } = event.target;
1893
+
1894
+ if (type !== 'text' && typeof value === 'string' && value.trim() === '') {
1895
+ return;
1896
+ }
1897
+
1898
+ this.setState({
1899
+ value
1900
+ });
1901
+ }
1902
+
1903
+ changeValue(event, sign = 1, shouldUpdate = false) {
1904
+ event.preventDefault();
1905
+ const {
1906
+ customValues,
1907
+ step,
1908
+ onlyIntegersAllowed,
1909
+ onChange
1910
+ } = this.props;
1911
+ const {
1912
+ currentIndex,
1913
+ value
1914
+ } = this.state;
1915
+ const updatedIndex = currentIndex + sign * 1;
1916
+ let number;
1917
+
1918
+ if (customValues.length > 0) {
1919
+ if (updatedIndex < 0 || updatedIndex >= customValues.length) {
1920
+ return;
1921
+ }
1922
+
1923
+ number = customValues[updatedIndex];
1924
+ } else {
1925
+ const rawNumber = onlyIntegersAllowed ? parseInt(value) : parseFloat(value);
1926
+ const updatedValue = (rawNumber * 10000 + step * sign * 10000) / 10000;
1927
+ number = this.clamp(updatedValue);
1928
+ }
1929
+
1930
+ this.setState({
1931
+ value: number.toString(),
1932
+ currentIndex: updatedIndex
1933
+ }, () => {
1934
+ if (shouldUpdate) {
1935
+ onChange(event, number);
1936
+ }
1937
+ });
1938
+ }
1939
+
1940
+ render() {
1941
+ const {
1942
+ className,
1943
+ classes,
1944
+ label,
1945
+ disabled,
1946
+ error,
1947
+ min,
1948
+ max,
1949
+ customValues,
1950
+ inputClassName,
1951
+ disableUnderline,
1952
+ helperText,
1953
+ variant,
1954
+ textAlign,
1955
+ type = 'number'
1956
+ } = this.props;
1957
+ const {
1958
+ value
1959
+ } = this.state;
1960
+ const names = classNames(className, classes.input); //Logic to disable the increment and decrement buttons
1961
+
1962
+ let disabledStart = false;
1963
+ let disabledEnd = false;
1964
+
1965
+ if (customValues.length > 0) {
1966
+ disabledStart = value === customValues[0];
1967
+ disabledEnd = value === customValues[customValues.length - 1];
1968
+ } else if (isFinite(min) && isFinite(max)) {
1969
+ disabledStart = value === min;
1970
+ disabledEnd = value === max;
1971
+ }
1972
+
1973
+ return /*#__PURE__*/React__default.createElement(TextField$1, {
1974
+ variant: variant,
1975
+ inputRef: ref => this.inputRef = ref,
1976
+ disabled: disabled,
1977
+ label: label,
1978
+ value: value,
1979
+ error: error,
1980
+ helperText: helperText,
1981
+ onChange: this.onChange,
1982
+ onBlur: this.onBlur,
1983
+ onKeyPress: e => {
1984
+ // once the Enter key is pressed, we force input blur
1985
+ if (e.key === 'Enter' && this.inputRef) {
1986
+ this.inputRef.blur();
1987
+ }
1988
+ },
1989
+ onKeyDown: e => {
1990
+ if (e.key === 'ArrowUp') {
1991
+ this.changeValue(e);
1992
+ }
1993
+
1994
+ if (e.key === 'ArrowDown') {
1995
+ this.changeValue(e, -1);
1996
+ }
1997
+ },
1998
+ title: '',
1999
+ type: type,
2000
+ className: names,
2001
+ InputProps: {
2002
+ className: inputClassName,
2003
+ disableUnderline: disableUnderline,
2004
+ startAdornment: /*#__PURE__*/React__default.createElement(InputAdornment, {
2005
+ position: "start"
2006
+ }, /*#__PURE__*/React__default.createElement(IconButton, {
2007
+ className: classes.iconButton,
2008
+ disabled: disabled ? disabled : disabledStart,
2009
+ onClick: e => this.changeValue(e, -1, true)
2010
+ }, /*#__PURE__*/React__default.createElement(Remove, {
2011
+ fontSize: "small"
2012
+ }))),
2013
+ endAdornment: /*#__PURE__*/React__default.createElement(InputAdornment, {
2014
+ position: "end"
2015
+ }, /*#__PURE__*/React__default.createElement(IconButton, {
2016
+ className: classes.iconButton,
2017
+ disabled: disabled ? disabled : disabledEnd,
2018
+ onClick: e => this.changeValue(e, 1, true)
2019
+ }, /*#__PURE__*/React__default.createElement(Add, {
2020
+ fontSize: "small"
2021
+ })))
2022
+ },
2023
+ inputProps: {
2024
+ style: {
2025
+ textAlign
2026
+ },
2027
+ min,
2028
+ max
2029
+ }
2030
+ });
2031
+ }
2032
+
2033
+ }
2034
+ NumberTextFieldCustom.propTypes = {
2035
+ classes: PropTypes.object.isRequired,
2036
+ className: PropTypes.string,
2037
+ customValues: PropTypes.array,
2038
+ disabled: PropTypes.bool,
2039
+ error: PropTypes.bool,
2040
+ inputClassName: PropTypes.string,
2041
+ helperText: PropTypes.string,
2042
+ onChange: PropTypes.func.isRequired,
2043
+ onlyIntegersAllowed: PropTypes.bool,
2044
+ value: PropTypes.any,
2045
+ min: PropTypes.number,
2046
+ max: PropTypes.number,
2047
+ step: PropTypes.number,
2048
+ label: PropTypes.string,
2049
+ disableUnderline: PropTypes.bool,
2050
+ textAlign: PropTypes.string,
2051
+ variant: PropTypes.string,
2052
+ type: PropTypes.string
2053
+ };
2054
+ NumberTextFieldCustom.defaultProps = {
2055
+ step: 1,
2056
+ customValues: [],
2057
+ textAlign: 'center',
2058
+ variant: 'standard',
2059
+ onlyIntegersAllowed: false
2060
+ };
2061
+ var numberTextFieldCustom = withStyles(styles$6)(NumberTextFieldCustom);
2062
+
2063
+ const styles$5 = theme => ({
2064
+ group: {
2065
+ display: 'flex',
2066
+ flexWrap: 'wrap',
2067
+ paddingLeft: 0,
2068
+ marginTop: theme.spacing.unit
2069
+ },
2070
+ vertical: {
2071
+ flexDirection: 'column'
2072
+ }
2073
+ });
2074
+
2075
+ class RawNChoice extends React__default.Component {
2076
+ constructor(...args) {
2077
+ super(...args);
2078
+
2079
+ this.handleChange = event => {
2080
+ this.props.onChange(event.currentTarget.value);
2081
+ };
2082
+ }
2083
+
2084
+ render() {
2085
+ const {
2086
+ header,
2087
+ className,
2088
+ classes,
2089
+ customLabel,
2090
+ opts,
2091
+ value,
2092
+ direction
2093
+ } = this.props;
2094
+ const preppedOpts = opts.map(o => {
2095
+ return typeof o === 'string' ? {
2096
+ label: o,
2097
+ value: o
2098
+ } : o;
2099
+ });
2100
+ const LabelComponent = customLabel || RadioWithLabel;
2101
+ return /*#__PURE__*/React__default.createElement(InputContainer, {
2102
+ label: header,
2103
+ className: className
2104
+ }, /*#__PURE__*/React__default.createElement("div", {
2105
+ className: classNames(classes.group, classes[direction])
2106
+ }, preppedOpts.map((o, index) => /*#__PURE__*/React__default.createElement(LabelComponent, {
2107
+ value: o.value,
2108
+ key: index,
2109
+ checked: o.value === value,
2110
+ onChange: this.handleChange,
2111
+ label: o.label
2112
+ }))));
2113
+ }
2114
+
2115
+ }
2116
+
2117
+ RawNChoice.propTypes = {
2118
+ header: PropTypes.string.isRequired,
2119
+ className: PropTypes.string,
2120
+ customLabel: PropTypes.func,
2121
+ opts: PropTypes.array.isRequired,
2122
+ value: PropTypes.string,
2123
+ onChange: PropTypes.func.isRequired,
2124
+ direction: PropTypes.oneOf(['horizontal', 'vertical']),
2125
+ classes: PropTypes.object.isRequired
2126
+ };
2127
+ const NChoice = withStyles(styles$5)(RawNChoice);
2128
+ const labelValue$1 = PropTypes.shape({
2129
+ label: PropTypes.string,
2130
+ value: PropTypes.string
2131
+ });
2132
+
2133
+ class TwoChoice extends React__default.Component {
2134
+ render() {
2135
+ const {
2136
+ one,
2137
+ two,
2138
+ header,
2139
+ className,
2140
+ customLabel,
2141
+ value,
2142
+ onChange
2143
+ } = this.props;
2144
+ const opts = [one, two];
2145
+ return /*#__PURE__*/React__default.createElement(NChoice, {
2146
+ customLabel: customLabel,
2147
+ header: header,
2148
+ className: className,
2149
+ opts: opts,
2150
+ value: value,
2151
+ onChange: onChange
2152
+ });
2153
+ }
2154
+
2155
+ }
2156
+
2157
+ TwoChoice.propTypes = {
2158
+ header: PropTypes.string.isRequired,
2159
+ value: PropTypes.string.isRequired,
2160
+ onChange: PropTypes.func.isRequired,
2161
+ one: PropTypes.oneOfType([labelValue$1, PropTypes.string]),
2162
+ two: PropTypes.oneOfType([labelValue$1, PropTypes.string]),
2163
+ className: PropTypes.string,
2164
+ customLabel: PropTypes.func
2165
+ };
2166
+ var twoChoice = withStyles(styles$5)(TwoChoice);
2167
+
2168
+ const log$1 = debug('pie-elements:config-ui:mui-box');
2169
+ const MuiBox = withStyles(theme => {
2170
+ const light = theme.palette.type === 'light';
2171
+ const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
2172
+ log$1(theme.palette.primary[theme.palette.type || 'light']);
2173
+ return {
2174
+ muiBox: {
2175
+ paddingTop: theme.spacing.unit,
2176
+ paddingBottom: theme.spacing.unit,
2177
+ position: 'relative',
2178
+ '&:before': {
2179
+ left: 0,
2180
+ right: 0,
2181
+ bottom: 0,
2182
+ height: '1px',
2183
+ content: '""',
2184
+ position: 'absolute',
2185
+ transition: 'background-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
2186
+ pointerEvents: 'none',
2187
+ backgroundColor: bottomLineColor
2188
+ },
2189
+ '&:hover:before': {
2190
+ height: '2px'
2191
+ },
2192
+ '&:after': {
2193
+ left: 0,
2194
+ right: 0,
2195
+ bottom: 0,
2196
+ height: '2px',
2197
+ content: '""',
2198
+ position: 'absolute',
2199
+ transform: 'scaleX(0)',
2200
+ transition: 'transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms',
2201
+ pointerEvents: 'none',
2202
+ backgroundColor: theme.palette.primary[theme.palette.type] //'#304ffe'
2203
+
2204
+ }
2205
+ },
2206
+ focused: {
2207
+ '&:after': {
2208
+ transform: 'scaleX(1)'
2209
+ }
2210
+ }
2211
+ };
2212
+ })(({
2213
+ children,
2214
+ classes,
2215
+ focused
2216
+ }) => {
2217
+ const names = classNames(classes.muiBox, focused && classes.focused);
2218
+ return /*#__PURE__*/React__default.createElement("div", {
2219
+ className: names
2220
+ }, children);
2221
+ });
2222
+ MuiBox.propTypes = {
2223
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
2224
+ focused: PropTypes.bool.isRequired
2225
+ };
2226
+
2227
+ const ENTER = 13;
2228
+ const Tag = withStyles(() => ({
2229
+ tag: {
2230
+ padding: '0px',
2231
+ margin: '1px'
2232
+ }
2233
+ }))(({
2234
+ classes,
2235
+ label,
2236
+ onDelete
2237
+ }) => /*#__PURE__*/React__default.createElement(Chip, {
2238
+ className: classes.tag,
2239
+ label: label,
2240
+ onDelete: onDelete
2241
+ }));
2242
+ Tag.propTypes = {
2243
+ label: PropTypes.string.isRequired,
2244
+ onDelete: PropTypes.func.isRequired
2245
+ };
2246
+ class TagsInput extends React__default.Component {
2247
+ constructor(props) {
2248
+ super(props);
2249
+
2250
+ this.onFocus = () => {
2251
+ this.setState({
2252
+ focused: true
2253
+ });
2254
+ };
2255
+
2256
+ this.onBlur = () => {
2257
+ this.setState({
2258
+ focused: false
2259
+ });
2260
+ };
2261
+
2262
+ this.state = {
2263
+ value: '',
2264
+ focused: false
2265
+ };
2266
+
2267
+ this.onKeyDown = event => {
2268
+ if (event.keyCode === ENTER && this.state.value !== '') {
2269
+ const tag = this.state.value.trim();
2270
+ const newTags = uniq(this.props.tags.concat([tag]));
2271
+
2272
+ if (newTags.length !== this.props.tags.length) {
2273
+ this.props.onChange(newTags);
2274
+ this.setState({
2275
+ value: ''
2276
+ });
2277
+ }
2278
+ }
2279
+ };
2280
+
2281
+ this.onChange = event => {
2282
+ this.setState({
2283
+ value: event.target.value
2284
+ });
2285
+ };
2286
+
2287
+ this.deleteTag = tag => {
2288
+ const {
2289
+ tags
2290
+ } = this.props;
2291
+ const tagIndex = tags.indexOf(tag);
2292
+
2293
+ if (tagIndex !== -1) {
2294
+ tags.splice(tagIndex, 1);
2295
+ this.props.onChange(tags);
2296
+ this.input.focus();
2297
+ }
2298
+ };
2299
+ }
2300
+
2301
+ render() {
2302
+ const {
2303
+ classes,
2304
+ tags
2305
+ } = this.props;
2306
+ return /*#__PURE__*/React__default.createElement(MuiBox, {
2307
+ focused: this.state.focused
2308
+ }, /*#__PURE__*/React__default.createElement("div", {
2309
+ className: classes.tagsInput
2310
+ }, (tags || []).map((t, index) => /*#__PURE__*/React__default.createElement(Tag, {
2311
+ key: index,
2312
+ label: t,
2313
+ onDelete: () => this.deleteTag(t)
2314
+ })), /*#__PURE__*/React__default.createElement("input", {
2315
+ ref: r => this.input = r,
2316
+ onKeyDown: this.onKeyDown,
2317
+ onChange: this.onChange,
2318
+ className: classes.input,
2319
+ value: this.state.value,
2320
+ onFocus: this.onFocus,
2321
+ onBlur: this.onBlur,
2322
+ type: "text"
2323
+ })));
2324
+ }
2325
+
2326
+ }
2327
+ TagsInput.propTypes = {
2328
+ classes: PropTypes.object.isRequired,
2329
+ tags: PropTypes.arrayOf(PropTypes.string).isRequired,
2330
+ onChange: PropTypes.func.isRequired
2331
+ };
2332
+
2333
+ const styles$4 = theme => ({
2334
+ tagsInput: {
2335
+ border: `0px solid ${theme.palette.background.paper}`,
2336
+ display: 'flex',
2337
+ flexWrap: 'wrap'
2338
+ },
2339
+ input: {
2340
+ padding: '2px',
2341
+ margin: '1px',
2342
+ minWidth: '30px',
2343
+ width: '100%',
2344
+ flex: '1',
2345
+ border: `0px solid ${theme.palette.background.paper}`,
2346
+ height: '28px',
2347
+ fontSize: theme.typography.fontSize,
2348
+ fontFamily: theme.typography.fontFamily,
2349
+ outline: 'none',
2350
+ '&:focus': {
2351
+ outline: 'none'
2352
+ }
2353
+ }
2354
+ });
2355
+
2356
+ var index$3 = withStyles(styles$4)(TagsInput);
2357
+
2358
+ var Delete = {};
2359
+
2360
+ var hasRequiredDelete;
2361
+
2362
+ function requireDelete () {
2363
+ if (hasRequiredDelete) return Delete;
2364
+ hasRequiredDelete = 1;
2365
+
2366
+ var _interopRequireDefault = requireInteropRequireDefault();
2367
+
2368
+ Object.defineProperty(Delete, "__esModule", {
2369
+ value: true
2370
+ });
2371
+ Delete.default = void 0;
2372
+
2373
+ var _react = _interopRequireDefault(React__default);
2374
+
2375
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
2376
+
2377
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
2378
+ d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
2379
+ }), _react.default.createElement("path", {
2380
+ fill: "none",
2381
+ d: "M0 0h24v24H0z"
2382
+ })), 'Delete');
2383
+
2384
+ Delete.default = _default;
2385
+ return Delete;
2386
+ }
2387
+
2388
+ var DeleteExports = /*@__PURE__*/ requireDelete();
2389
+ var ActionDelete = /*@__PURE__*/getDefaultExportFromCjs(DeleteExports);
2390
+
2391
+ var SubdirectoryArrowRight = {};
2392
+
2393
+ var hasRequiredSubdirectoryArrowRight;
2394
+
2395
+ function requireSubdirectoryArrowRight () {
2396
+ if (hasRequiredSubdirectoryArrowRight) return SubdirectoryArrowRight;
2397
+ hasRequiredSubdirectoryArrowRight = 1;
2398
+
2399
+ var _interopRequireDefault = requireInteropRequireDefault();
2400
+
2401
+ Object.defineProperty(SubdirectoryArrowRight, "__esModule", {
2402
+ value: true
2403
+ });
2404
+ SubdirectoryArrowRight.default = void 0;
2405
+
2406
+ var _react = _interopRequireDefault(React__default);
2407
+
2408
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
2409
+
2410
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
2411
+ fill: "none",
2412
+ d: "M0 0h24v24H0V0z"
2413
+ }), _react.default.createElement("path", {
2414
+ d: "M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"
2415
+ })), 'SubdirectoryArrowRight');
2416
+
2417
+ SubdirectoryArrowRight.default = _default;
2418
+ return SubdirectoryArrowRight;
2419
+ }
2420
+
2421
+ var SubdirectoryArrowRightExports = /*@__PURE__*/ requireSubdirectoryArrowRight();
2422
+ var ArrowRight = /*@__PURE__*/getDefaultExportFromCjs(SubdirectoryArrowRightExports);
2423
+
2424
+ var Feedback$1 = {};
2425
+
2426
+ var hasRequiredFeedback;
2427
+
2428
+ function requireFeedback () {
2429
+ if (hasRequiredFeedback) return Feedback$1;
2430
+ hasRequiredFeedback = 1;
2431
+
2432
+ var _interopRequireDefault = requireInteropRequireDefault();
2433
+
2434
+ Object.defineProperty(Feedback$1, "__esModule", {
2435
+ value: true
2436
+ });
2437
+ Feedback$1.default = void 0;
2438
+
2439
+ var _react = _interopRequireDefault(React__default);
2440
+
2441
+ var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
2442
+
2443
+ var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
2444
+ fill: "none",
2445
+ d: "M0 0h24v24H0z"
2446
+ }), _react.default.createElement("path", {
2447
+ d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"
2448
+ })), 'Feedback');
2449
+
2450
+ Feedback$1.default = _default;
2451
+ return Feedback$1;
2452
+ }
2453
+
2454
+ var FeedbackExports = /*@__PURE__*/ requireFeedback();
2455
+ var ActionFeedback = /*@__PURE__*/getDefaultExportFromCjs(FeedbackExports);
2456
+
2457
+ class IconMenu extends React__default.Component {
2458
+ constructor(props) {
2459
+ super(props);
2460
+
2461
+ this.handleClick = event => {
2462
+ this.setState({
2463
+ open: true,
2464
+ anchorEl: event.currentTarget
2465
+ });
2466
+ };
2467
+
2468
+ this.handleRequestClose = () => {
2469
+ this.setState({
2470
+ open: false
2471
+ });
2472
+ };
2473
+
2474
+ this.state = {
2475
+ anchorEl: undefined,
2476
+ open: false
2477
+ };
2478
+ }
2479
+
2480
+ render() {
2481
+ const {
2482
+ opts,
2483
+ onClick
2484
+ } = this.props;
2485
+ const keys = Object.keys(opts);
2486
+
2487
+ const handleMenuClick = key => () => {
2488
+ onClick(key);
2489
+ this.handleRequestClose();
2490
+ };
2491
+
2492
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
2493
+ onClick: this.handleClick
2494
+ }, this.props.iconButtonElement), /*#__PURE__*/React__default.createElement(Menu, {
2495
+ id: "simple-menu",
2496
+ anchorEl: this.state.anchorEl,
2497
+ open: this.state.open,
2498
+ onClose: this.handleRequestClose
2499
+ }, keys.map((k, index) => /*#__PURE__*/React__default.createElement(MenuItem, {
2500
+ key: index,
2501
+ onClick: handleMenuClick(k)
2502
+ }, opts[k]))));
2503
+ }
2504
+
2505
+ }
2506
+ IconMenu.propTypes = {
2507
+ opts: PropTypes.object,
2508
+ onClick: PropTypes.func.isRequired,
2509
+ iconButtonElement: PropTypes.any
2510
+ };
2511
+ class FeedbackMenu extends React__default.Component {
2512
+ render() {
2513
+ const {
2514
+ value,
2515
+ onChange,
2516
+ classes
2517
+ } = this.props;
2518
+ const t = value && value.type;
2519
+ const iconColor = t === 'custom' || t === 'default' ? 'primary' : 'disabled';
2520
+ const tooltip = t === 'custom' ? 'Custom Feedback' : t === 'default' ? 'Default Feedback' : 'Feedback disabled';
2521
+ const icon = /*#__PURE__*/React__default.createElement(IconButton, {
2522
+ className: classes.icon,
2523
+ "aria-label": tooltip
2524
+ }, /*#__PURE__*/React__default.createElement(ActionFeedback, {
2525
+ color: iconColor
2526
+ }));
2527
+ return /*#__PURE__*/React__default.createElement(IconMenu, {
2528
+ iconButtonElement: icon,
2529
+ onClick: key => onChange(key),
2530
+ opts: {
2531
+ none: 'No Feedback',
2532
+ default: 'Default',
2533
+ custom: 'Custom'
2534
+ }
2535
+ });
2536
+ }
2537
+
2538
+ }
2539
+ FeedbackMenu.propTypes = {
2540
+ value: PropTypes.object,
2541
+ onChange: PropTypes.func.isRequired,
2542
+ classes: PropTypes.object.isRequired
2543
+ };
2544
+ FeedbackMenu.defaultProps = {
2545
+ classes: {}
2546
+ };
2547
+
2548
+ const EditableHtmlContainer = withStyles(theme => ({
2549
+ labelContainer: {},
2550
+ editorHolder: {
2551
+ marginTop: theme.spacing.unit * 2
2552
+ }
2553
+ }))(({
2554
+ label,
2555
+ classes,
2556
+ onChange,
2557
+ value,
2558
+ className,
2559
+ imageSupport,
2560
+ disableImageAlignmentButtons,
2561
+ disabled,
2562
+ spellCheck,
2563
+ nonEmpty,
2564
+ pluginOpts,
2565
+ toolbarOpts,
2566
+ error,
2567
+ maxImageWidth,
2568
+ maxImageHeight,
2569
+ uploadSoundSupport,
2570
+ mathMlOptions: _mathMlOptions = {}
2571
+ }) => {
2572
+ const names = classNames(classes.labelContainer, className);
2573
+ return /*#__PURE__*/React__default.createElement(InputContainer, {
2574
+ label: label,
2575
+ className: names
2576
+ }, /*#__PURE__*/React__default.createElement("div", {
2577
+ className: classes.editorHolder
2578
+ }, /*#__PURE__*/React__default.createElement(EditableHTML, {
2579
+ markup: value || '',
2580
+ disabled: disabled,
2581
+ spellCheck: spellCheck,
2582
+ nonEmpty: nonEmpty,
2583
+ onChange: onChange,
2584
+ imageSupport: imageSupport,
2585
+ disableImageAlignmentButtons: disableImageAlignmentButtons,
2586
+ className: classes.editor,
2587
+ pluginProps: pluginOpts || {},
2588
+ toolbarOpts: toolbarOpts,
2589
+ error: error,
2590
+ maxImageWidth: maxImageWidth,
2591
+ maxImageHeight: maxImageHeight,
2592
+ uploadSoundSupport: uploadSoundSupport,
2593
+ languageCharactersProps: [{
2594
+ language: 'spanish'
2595
+ }, {
2596
+ language: 'special'
2597
+ }],
2598
+ mathMlOptions: _mathMlOptions
2599
+ })));
2600
+ });
2601
+ const Feedback = withStyles(theme => ({
2602
+ text: {
2603
+ width: '100%'
2604
+ },
2605
+ feedbackContainer: {
2606
+ position: 'relative'
2607
+ },
2608
+ arrowIcon: {
2609
+ fill: theme.palette.grey[400],
2610
+ left: -56,
2611
+ position: 'absolute',
2612
+ top: 20
2613
+ }
2614
+ }))(({
2615
+ value,
2616
+ onChange,
2617
+ type,
2618
+ correct,
2619
+ classes,
2620
+ defaults,
2621
+ toolbarOpts,
2622
+ mathMlOptions: _mathMlOptions2 = {}
2623
+ }) => {
2624
+ if (!type || type === 'none') {
2625
+ return null;
2626
+ } else if (type === 'default') {
2627
+ return /*#__PURE__*/React__default.createElement("div", {
2628
+ className: classes.feedbackContainer
2629
+ }, /*#__PURE__*/React__default.createElement(ArrowRight, {
2630
+ className: classes.arrowIcon
2631
+ }), /*#__PURE__*/React__default.createElement(TextField$1, {
2632
+ className: classes.text,
2633
+ label: "Feedback Text",
2634
+ value: correct ? defaults.correct : defaults.incorrect
2635
+ }));
2636
+ } else {
2637
+ return /*#__PURE__*/React__default.createElement("div", {
2638
+ className: classes.feedbackContainer
2639
+ }, /*#__PURE__*/React__default.createElement(ArrowRight, {
2640
+ className: classes.arrowIcon
2641
+ }), /*#__PURE__*/React__default.createElement(EditableHtmlContainer, {
2642
+ className: classes.text,
2643
+ label: "Feedback Text",
2644
+ value: value,
2645
+ onChange: onChange,
2646
+ toolbarOpts: toolbarOpts,
2647
+ mathMlOptions: _mathMlOptions2
2648
+ }));
2649
+ }
2650
+ });
2651
+ class ChoiceConfiguration extends React__default.Component {
2652
+ constructor(...args) {
2653
+ super(...args);
2654
+
2655
+ this._changeFn = key => update => {
2656
+ const {
2657
+ data,
2658
+ onChange
2659
+ } = this.props;
2660
+
2661
+ if (onChange) {
2662
+ onChange(_extends({}, data, {
2663
+ [key]: update
2664
+ }));
2665
+ }
2666
+ };
2667
+
2668
+ this.onLabelChange = this._changeFn('label');
2669
+
2670
+ this.onCheckedChange = event => {
2671
+ const correct = event.target.checked;
2672
+ const {
2673
+ data,
2674
+ onChange
2675
+ } = this.props;
2676
+
2677
+ if (onChange) {
2678
+ onChange(_extends({}, data, {
2679
+ correct
2680
+ }));
2681
+ }
2682
+ };
2683
+
2684
+ this.onFeedbackValueChange = v => {
2685
+ const {
2686
+ data,
2687
+ onChange
2688
+ } = this.props;
2689
+
2690
+ if (data.feedback.type !== 'custom') {
2691
+ return;
2692
+ }
2693
+
2694
+ const fb = _extends({}, data.feedback, {
2695
+ value: v
2696
+ });
2697
+
2698
+ if (onChange) onChange(_extends({}, data, {
2699
+ feedback: fb
2700
+ }));
2701
+ };
2702
+
2703
+ this.onFeedbackTypeChange = t => {
2704
+ const {
2705
+ data,
2706
+ onChange
2707
+ } = this.props;
2708
+
2709
+ const fb = _extends({}, data.feedback, {
2710
+ type: t
2711
+ });
2712
+
2713
+ if (fb.type !== 'custom') {
2714
+ fb.value = undefined;
2715
+ }
2716
+
2717
+ if (onChange) onChange(_extends({}, data, {
2718
+ feedback: fb
2719
+ }));
2720
+ };
2721
+ }
2722
+
2723
+ render() {
2724
+ const {
2725
+ data,
2726
+ classes,
2727
+ mode,
2728
+ onDelete,
2729
+ defaultFeedback,
2730
+ index,
2731
+ className,
2732
+ noLabels,
2733
+ useLetterOrdering,
2734
+ imageSupport,
2735
+ disableImageAlignmentButtons,
2736
+ disabled,
2737
+ spellCheck,
2738
+ nonEmpty,
2739
+ allowFeedBack,
2740
+ allowDelete,
2741
+ pluginOpts,
2742
+ toolbarOpts,
2743
+ error,
2744
+ noCorrectAnswerError,
2745
+ uploadSoundSupport,
2746
+ maxImageWidth,
2747
+ maxImageHeight,
2748
+ mathMlOptions = {}
2749
+ } = this.props;
2750
+ const InputToggle = mode === 'checkbox' ? InputCheckbox : InputRadio;
2751
+ const names = classNames(classes.choiceConfiguration, className);
2752
+ return /*#__PURE__*/React__default.createElement("div", {
2753
+ className: names
2754
+ }, /*#__PURE__*/React__default.createElement("div", {
2755
+ className: classes.topRow
2756
+ }, index > 0 && /*#__PURE__*/React__default.createElement("span", {
2757
+ className: classes.index,
2758
+ type: "title"
2759
+ }, useLetterOrdering ? String.fromCharCode(96 + index).toUpperCase() : index), /*#__PURE__*/React__default.createElement(InputToggle, {
2760
+ className: classes.toggle,
2761
+ onChange: this.onCheckedChange,
2762
+ label: !noLabels ? 'Correct' : '',
2763
+ checked: !!data.correct,
2764
+ error: noCorrectAnswerError
2765
+ }), /*#__PURE__*/React__default.createElement("div", {
2766
+ className: classes.middleColumn
2767
+ }, /*#__PURE__*/React__default.createElement(EditableHtmlContainer, {
2768
+ className: classes.input,
2769
+ label: !noLabels ? 'Label' : '',
2770
+ value: data.label,
2771
+ onChange: this.onLabelChange,
2772
+ imageSupport: imageSupport,
2773
+ disableImageAlignmentButtons: disableImageAlignmentButtons,
2774
+ disabled: disabled,
2775
+ spellCheck: spellCheck,
2776
+ nonEmpty: nonEmpty,
2777
+ pluginOpts: pluginOpts,
2778
+ toolbarOpts: toolbarOpts,
2779
+ error: error,
2780
+ uploadSoundSupport: uploadSoundSupport,
2781
+ mathMlOptions: mathMlOptions,
2782
+ maxImageWidth: maxImageWidth,
2783
+ maxImageHeight: maxImageHeight
2784
+ }), error && /*#__PURE__*/React__default.createElement("div", {
2785
+ className: classes.errorText
2786
+ }, error), allowFeedBack && /*#__PURE__*/React__default.createElement(Feedback, _extends({}, data.feedback, {
2787
+ correct: data.correct,
2788
+ defaults: defaultFeedback,
2789
+ onChange: this.onFeedbackValueChange,
2790
+ toolbarOpts: toolbarOpts
2791
+ }))), allowFeedBack && /*#__PURE__*/React__default.createElement(InputContainer, {
2792
+ className: classes.feedback,
2793
+ label: !noLabels ? 'Feedback' : ''
2794
+ }, /*#__PURE__*/React__default.createElement(FeedbackMenu, {
2795
+ onChange: this.onFeedbackTypeChange,
2796
+ value: data.feedback,
2797
+ classes: {
2798
+ icon: classes.feedbackIcon
2799
+ }
2800
+ })), allowDelete && /*#__PURE__*/React__default.createElement(InputContainer, {
2801
+ className: classes.delete,
2802
+ label: !noLabels ? 'Delete' : ''
2803
+ }, /*#__PURE__*/React__default.createElement(IconButton, {
2804
+ "aria-label": "delete",
2805
+ className: classes.deleteIcon,
2806
+ onClick: onDelete
2807
+ }, /*#__PURE__*/React__default.createElement(ActionDelete, null)))));
2808
+ }
2809
+
2810
+ }
2811
+ ChoiceConfiguration.propTypes = {
2812
+ classes: PropTypes.object.isRequired,
2813
+ noLabels: PropTypes.bool,
2814
+ useLetterOrdering: PropTypes.bool,
2815
+ className: PropTypes.string,
2816
+ error: PropTypes.string,
2817
+ mode: PropTypes.oneOf(['checkbox', 'radio']),
2818
+ defaultFeedback: PropTypes.object.isRequired,
2819
+ disabled: PropTypes.bool,
2820
+ nonEmpty: PropTypes.bool,
2821
+ data: PropTypes.shape({
2822
+ label: PropTypes.string.isRequired,
2823
+ value: PropTypes.string.isRequired,
2824
+ correct: PropTypes.bool,
2825
+ feedback: PropTypes.shape({
2826
+ type: PropTypes.string,
2827
+ value: PropTypes.string
2828
+ })
2829
+ }),
2830
+ onDelete: PropTypes.func,
2831
+ onChange: PropTypes.func,
2832
+ index: PropTypes.number,
2833
+ imageSupport: PropTypes.shape({
2834
+ add: PropTypes.func.isRequired,
2835
+ delete: PropTypes.func.isRequired
2836
+ }),
2837
+ disableImageAlignmentButtons: PropTypes.bool,
2838
+ allowFeedBack: PropTypes.bool,
2839
+ allowDelete: PropTypes.bool,
2840
+ noCorrectAnswerError: PropTypes.string,
2841
+ spellCheck: PropTypes.bool,
2842
+ pluginOpts: PropTypes.object,
2843
+ toolbarOpts: PropTypes.object,
2844
+ uploadSoundSupport: PropTypes.object,
2845
+ maxImageWidth: PropTypes.number,
2846
+ maxImageHeight: PropTypes.number
2847
+ };
2848
+ ChoiceConfiguration.defaultProps = {
2849
+ index: -1,
2850
+ noLabels: false,
2851
+ useLetterOrdering: false,
2852
+ allowFeedBack: true,
2853
+ allowDelete: true
2854
+ };
2855
+
2856
+ const styles$3 = theme => ({
2857
+ index: {
2858
+ paddingRight: theme.spacing.unit,
2859
+ paddingTop: theme.spacing.unit * 3.5
2860
+ },
2861
+ choiceConfiguration: {},
2862
+ topRow: {
2863
+ display: 'flex'
2864
+ },
2865
+ value: {
2866
+ flex: '0.5',
2867
+ paddingRight: theme.spacing.unit
2868
+ },
2869
+ editorHolder: {
2870
+ marginTop: theme.spacing.unit * 2
2871
+ },
2872
+ toggle: {
2873
+ flex: '0 1 auto',
2874
+ paddingTop: theme.spacing.unit / 2,
2875
+ paddingBottom: 0,
2876
+ marginRight: 0,
2877
+ marginLeft: theme.spacing.unit
2878
+ },
2879
+ feedback: {
2880
+ flex: '0 1 auto',
2881
+ paddingTop: theme.spacing.unit * 2,
2882
+ paddingLeft: 0,
2883
+ marginLeft: 0,
2884
+ marginRight: theme.spacing.unit
2885
+ },
2886
+ feedbackIcon: {
2887
+ margin: 0,
2888
+ width: 'inherit'
2889
+ },
2890
+ deleteIcon: {
2891
+ margin: 0,
2892
+ width: 'inherit'
2893
+ },
2894
+ delete: {
2895
+ flex: '0 1 auto',
2896
+ paddingTop: theme.spacing.unit * 2,
2897
+ paddingLeft: 0,
2898
+ marginLeft: 0
2899
+ },
2900
+ middleColumn: {
2901
+ display: 'flex',
2902
+ flex: 1,
2903
+ flexDirection: 'column',
2904
+ marginRight: theme.spacing.unit
2905
+ },
2906
+ input: {
2907
+ marginRight: 0
2908
+ },
2909
+ errorText: {
2910
+ fontSize: theme.typography.fontSize - 2,
2911
+ color: theme.palette.error.main
2912
+ }
2913
+ });
2914
+
2915
+ var index$2 = withStyles(styles$3)(ChoiceConfiguration);
2916
+
2917
+ class RawLayoutContents extends React__default.Component {
2918
+ constructor(...args) {
2919
+ super(...args);
2920
+
2921
+ this.getConfiguration = () => {
2922
+ var _secondary$props, _secondary$props2, _secondary$props2$chi, _secondary$props2$chi2;
2923
+
2924
+ const {
2925
+ secondary
2926
+ } = this.props; // in config-layout, secondary can be: <SettingsBox>{settings}</SettingsBox>, settings, null
2927
+
2928
+ return (secondary == null ? void 0 : (_secondary$props = secondary.props) == null ? void 0 : _secondary$props.configuration) || (secondary == null ? void 0 : (_secondary$props2 = secondary.props) == null ? void 0 : (_secondary$props2$chi = _secondary$props2.children) == null ? void 0 : (_secondary$props2$chi2 = _secondary$props2$chi.props) == null ? void 0 : _secondary$props2$chi2.configuration) || undefined;
2929
+ };
2930
+ }
2931
+
2932
+ // // eslint-disable-next-line no-unused-vars
2933
+ // componentDidUpdate(prevProps, prevState, snapshot) {
2934
+ // const configuration = this.getConfiguration();
2935
+ // const { mode } = this.props;
2936
+ //
2937
+ // // promptHolder class is used to wrap up inputs:
2938
+ // // we don't want inputs to fill the entire scrollable container,
2939
+ // // but instead we want inputs to fit in the first view,
2940
+ // // so we calculate the maximum space inputs need
2941
+ // try {
2942
+ // if (
2943
+ // configuration?.maxWidth &&
2944
+ // getComputedStyle(document.documentElement).getPropertyValue('--pie-prompt-holder-max-width') !==
2945
+ // configuration?.maxWidth
2946
+ // ) {
2947
+ // document.documentElement.style.setProperty(
2948
+ // '--pie-prompt-holder-max-width',
2949
+ // mode === 'inline' ? `calc(${configuration.maxWidth} - 340px)` : configuration.maxWidth,
2950
+ // );
2951
+ // }
2952
+ // } catch (e) {
2953
+ // console.log(e.toString());
2954
+ // }
2955
+ // }
2956
+ render() {
2957
+ const {
2958
+ mode,
2959
+ secondary,
2960
+ children,
2961
+ classes,
2962
+ dimensions
2963
+ } = this.props;
2964
+ const {
2965
+ minHeight,
2966
+ minWidth,
2967
+ maxHeight,
2968
+ maxWidth
2969
+ } = dimensions || {};
2970
+ const configuration = this.getConfiguration();
2971
+ let hasSettingsPanel = Object.entries(configuration || {}).some(([, obj]) => !!(obj != null && obj.settings)); // ebsr has configuration.partA and configuration.partB
2972
+ // because we might have nested configuration for other item types as well, let's add this simple regex to check values for settings
2973
+
2974
+ if (!hasSettingsPanel) {
2975
+ try {
2976
+ var _JSON$stringify, _JSON$stringify$match;
2977
+
2978
+ hasSettingsPanel = (_JSON$stringify = JSON.stringify(configuration)) == null ? void 0 : (_JSON$stringify$match = _JSON$stringify.match(/settings":true/)) == null ? void 0 : _JSON$stringify$match.length;
2979
+ } catch (e) {
2980
+ // eslint-disable-next-line no-console
2981
+ console.log(e.toString());
2982
+ }
2983
+ }
2984
+
2985
+ return /*#__PURE__*/React__default.createElement("div", {
2986
+ className: classes.container,
2987
+ style: {
2988
+ minHeight,
2989
+ minWidth,
2990
+ maxHeight,
2991
+ maxWidth
2992
+ }
2993
+ }, mode === 'inline' && /*#__PURE__*/React__default.createElement("div", {
2994
+ className: classNames(classes.flow, classes.contentContainer)
2995
+ }, /*#__PURE__*/React__default.createElement("div", {
2996
+ className: classNames(classes.configContainer, 'design-container')
2997
+ }, children), hasSettingsPanel && /*#__PURE__*/React__default.createElement("div", {
2998
+ className: classNames(classes.settingsContainer, 'settings-container')
2999
+ }, secondary)), mode === 'tabbed' && hasSettingsPanel && /*#__PURE__*/React__default.createElement(Tabs$1, {
3000
+ onChange: this.onTabsChange,
3001
+ contentClassName: classes.contentContainer,
3002
+ indicatorColor: "primary"
3003
+ }, /*#__PURE__*/React__default.createElement("div", {
3004
+ title: "Design",
3005
+ className: "design-container"
3006
+ }, children), /*#__PURE__*/React__default.createElement("div", {
3007
+ title: "Settings",
3008
+ className: "settings-container"
3009
+ }, secondary)), mode === 'tabbed' && !hasSettingsPanel && /*#__PURE__*/React__default.createElement("div", {
3010
+ className: classNames(classes.contentContainer, 'design-container')
3011
+ }, children));
3012
+ }
3013
+
3014
+ }
3015
+
3016
+ RawLayoutContents.propTypes = {
3017
+ mode: PropTypes.oneOf(['tabbed', 'inline']),
3018
+ secondary: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
3019
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
3020
+ classes: PropTypes.object,
3021
+ dimensions: PropTypes.object
3022
+ };
3023
+
3024
+ const styles$2 = theme => ({
3025
+ flow: {
3026
+ display: 'flex',
3027
+ justifyContent: 'space-between'
3028
+ },
3029
+ container: {
3030
+ display: 'flex',
3031
+ flexDirection: 'column',
3032
+ position: 'relative'
3033
+ },
3034
+ contentContainer: {
3035
+ padding: `${theme.spacing.unit * 2}px 0`
3036
+ },
3037
+ configContainer: {
3038
+ flex: '1'
3039
+ },
3040
+ settingsContainer: {
3041
+ marginLeft: theme.spacing.unit * 2
3042
+ }
3043
+ });
3044
+
3045
+ var LayoutContents = withStyles$1(styles$2)(RawLayoutContents);
3046
+
3047
+ class SettingsBox extends React__default.Component {
3048
+ render() {
3049
+ const {
3050
+ classes,
3051
+ className,
3052
+ children
3053
+ } = this.props;
3054
+ return /*#__PURE__*/React__default.createElement("div", {
3055
+ className: classNames(classes.settingsBox, className)
3056
+ }, children);
3057
+ }
3058
+
3059
+ }
3060
+ SettingsBox.propTypes = {
3061
+ classes: PropTypes.object.isRequired,
3062
+ className: PropTypes.string,
3063
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
3064
+ };
3065
+ SettingsBox.defaultProps = {};
3066
+
3067
+ const styles$1 = theme => ({
3068
+ settingsBox: {
3069
+ backgroundColor: theme.palette.background.paper,
3070
+ border: `2px solid ${theme.palette.grey[200]}`,
3071
+ display: 'flex',
3072
+ flexDirection: 'column',
3073
+ justifyContent: 'flex-start',
3074
+ minWidth: '275px',
3075
+ maxWidth: '300px',
3076
+ padding: '20px 4px 4px 20px',
3077
+ zIndex: 99
3078
+ }
3079
+ });
3080
+
3081
+ var SettingsBox$1 = withStyles(styles$1)(SettingsBox);
3082
+
3083
+ const styles = {
3084
+ extraCSSRules: {}
3085
+ };
3086
+
3087
+ class MeasuredConfigLayout extends AppendCSSRules {
3088
+ constructor(...props) {
3089
+ super(...props);
3090
+
3091
+ this.onResize = contentRect => {
3092
+ const {
3093
+ bounds
3094
+ } = contentRect;
3095
+ const {
3096
+ sidePanelMinWidth,
3097
+ dimensions
3098
+ } = this.props;
3099
+ const {
3100
+ maxWidth
3101
+ } = dimensions || {};
3102
+ const layoutMode = bounds.width > sidePanelMinWidth && (maxWidth ? maxWidth > sidePanelMinWidth : true) ? 'inline' : 'tabbed';
3103
+ this.setState({
3104
+ layoutMode
3105
+ });
3106
+ };
3107
+
3108
+ this.state = {
3109
+ layoutMode: undefined
3110
+ };
3111
+ }
3112
+
3113
+ render() {
3114
+ return /*#__PURE__*/React__default.createElement(Measure, {
3115
+ bounds: true,
3116
+ onResize: this.onResize
3117
+ }, ({
3118
+ measureRef
3119
+ }) => {
3120
+ const {
3121
+ children,
3122
+ settings,
3123
+ hideSettings,
3124
+ dimensions,
3125
+ classes
3126
+ } = this.props;
3127
+ const {
3128
+ layoutMode
3129
+ } = this.state;
3130
+ const settingsPanel = layoutMode === 'inline' ? /*#__PURE__*/React__default.createElement(SettingsBox$1, {
3131
+ className: "settings-box"
3132
+ }, settings) : settings;
3133
+ const secondaryContent = hideSettings ? null : settingsPanel;
3134
+ const finalClass = classNames('main-container', classes.extraCSSRules);
3135
+ return /*#__PURE__*/React__default.createElement("div", {
3136
+ ref: measureRef,
3137
+ className: finalClass
3138
+ }, /*#__PURE__*/React__default.createElement(LayoutContents, {
3139
+ mode: layoutMode,
3140
+ secondary: secondaryContent,
3141
+ dimensions: dimensions
3142
+ }, children));
3143
+ });
3144
+ }
3145
+
3146
+ }
3147
+
3148
+ MeasuredConfigLayout.propTypes = {
3149
+ children: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.element), PropTypes.element]),
3150
+ className: PropTypes.string,
3151
+ classes: PropTypes.object,
3152
+ dimensions: PropTypes.object,
3153
+ settings: PropTypes.element,
3154
+ sidePanelMinWidth: PropTypes.number,
3155
+ hideSettings: PropTypes.bool
3156
+ };
3157
+ MeasuredConfigLayout.defaultProps = {
3158
+ sidePanelMinWidth: 1135,
3159
+ hideSettings: false,
3160
+ dimensions: {}
3161
+ };
3162
+ const ConfigLayout = withStyles(styles)(withContentRect('bounds')(MeasuredConfigLayout));
3163
+
3164
+ var index$1 = /*#__PURE__*/Object.freeze({
3165
+ __proto__: null,
3166
+ ConfigLayout: ConfigLayout,
3167
+ LayoutContents: LayoutContents
3168
+ });
3169
+
3170
+ /**
3171
+ * Add value to every model.choices.
3172
+ * @param {Object} model the model to normalize
3173
+ * @return {Object} the updated model
3174
+ */
3175
+
3176
+ const normalizeChoices = model => {
3177
+ const choices = model.choices.map((c, index) => {
3178
+ if (!c.value) {
3179
+ c.value = `${index}`;
3180
+ }
3181
+
3182
+ return c;
3183
+ });
3184
+ return _extends({}, model, {
3185
+ choices
3186
+ });
3187
+ };
3188
+ /**
3189
+ * Find the first available index.
3190
+ * @param {string[]} values
3191
+ * @param {number} index
3192
+ * @return {string}
3193
+ */
3194
+
3195
+ const firstAvailableIndex = (values, index) => {
3196
+ if (includes(values, `${index}`)) {
3197
+ return firstAvailableIndex(values, index + 1);
3198
+ } else {
3199
+ return `${index}`;
3200
+ }
3201
+ };
3202
+
3203
+ var choiceUtils = /*#__PURE__*/Object.freeze({
3204
+ __proto__: null,
3205
+ firstAvailableIndex: firstAvailableIndex,
3206
+ normalizeChoices: normalizeChoices
3207
+ });
3208
+
3209
+ const withStatefulModel = Component => {
3210
+ class Stateful extends React__default.Component {
3211
+ constructor(props) {
3212
+ super(props);
3213
+
3214
+ this.onChange = model => {
3215
+ this.setState({
3216
+ model
3217
+ }, () => {
3218
+ this.props.onChange(this.state.model);
3219
+ });
3220
+ };
3221
+
3222
+ this.state = {
3223
+ model: props.model
3224
+ };
3225
+ }
3226
+
3227
+ UNSAFE_componentWillReceiveProps(props) {
3228
+ this.setState({
3229
+ model: props.model
3230
+ });
3231
+ }
3232
+
3233
+ render() {
3234
+ return /*#__PURE__*/React__default.createElement(Component, {
3235
+ model: this.state.model,
3236
+ onChange: this.onChange
3237
+ });
3238
+ }
3239
+
3240
+ }
3241
+
3242
+ Stateful.propTypes = {
3243
+ model: PropTypes.object.isRequired,
3244
+ onChange: PropTypes.func.isRequired
3245
+ };
3246
+ return Stateful;
3247
+ };
3248
+
3249
+ const Toggle = withStyles(theme => ({
3250
+ toggle: {
3251
+ display: 'flex',
3252
+ width: '100%',
3253
+ justifyContent: 'space-between'
3254
+ },
3255
+ label: {
3256
+ color: 'rgba(0, 0, 0, 0.89)',
3257
+ fontSize: theme.typography.fontSize,
3258
+ paddingTop: theme.spacing.unit * 2
3259
+ },
3260
+ checkedThumb: {
3261
+ color: `${color.tertiary()} !important`
3262
+ },
3263
+ checkedBar: {
3264
+ backgroundColor: `${color.tertiaryLight()} !important`
3265
+ }
3266
+ }))(({
3267
+ checked,
3268
+ disabled,
3269
+ label,
3270
+ toggle,
3271
+ classes
3272
+ }) => /*#__PURE__*/React__default.createElement("div", {
3273
+ className: classes.toggle
3274
+ }, /*#__PURE__*/React__default.createElement(InputLabel, {
3275
+ className: classes.label
3276
+ }, label), /*#__PURE__*/React__default.createElement(Switch, {
3277
+ classes: {
3278
+ checked: classNames(classes.checkedThumb),
3279
+ bar: classNames({
3280
+ [classes.checkedBar]: checked
3281
+ })
3282
+ },
3283
+ checked: checked,
3284
+ disabled: disabled,
3285
+ onChange: e => toggle(e.target.checked)
3286
+ })));
3287
+ Toggle.propTypes = {
3288
+ checked: PropTypes.bool,
3289
+ label: PropTypes.string.isRequired,
3290
+ toggle: PropTypes.func.isRequired
3291
+ };
3292
+
3293
+ const DisplaySize = withStyles(theme => ({
3294
+ displaySize: {
3295
+ display: 'flex',
3296
+ paddingTop: theme.spacing.unit
3297
+ }
3298
+ }))(({
3299
+ size,
3300
+ label,
3301
+ classes,
3302
+ onChange
3303
+ }) => {
3304
+ const updateSize = (key, v) => {
3305
+ onChange(_extends({}, size, {
3306
+ [key]: v
3307
+ }));
3308
+ };
3309
+
3310
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Typography, null, label), /*#__PURE__*/React__default.createElement("div", {
3311
+ className: classes.displaySize
3312
+ }, /*#__PURE__*/React__default.createElement(NumberTextField$1, {
3313
+ label: "Width",
3314
+ type: "number",
3315
+ variant: "outlined",
3316
+ value: size.width,
3317
+ min: 150,
3318
+ max: 1000,
3319
+ onChange: (e, v) => updateSize('width', v)
3320
+ }), /*#__PURE__*/React__default.createElement(NumberTextField$1, {
3321
+ label: "Height",
3322
+ type: "number",
3323
+ variant: "outlined",
3324
+ min: 150,
3325
+ max: 1000,
3326
+ value: size.height,
3327
+ onChange: (e, v) => updateSize('height', v)
3328
+ })));
3329
+ });
3330
+ DisplaySize.propTypes = {
3331
+ size: PropTypes.shape({
3332
+ width: PropTypes.number.isRequired,
3333
+ height: PropTypes.number.isRequired
3334
+ }).isRequired,
3335
+ label: PropTypes.string.isRequired,
3336
+ onChange: PropTypes.func
3337
+ };
3338
+
3339
+ var SettingsRadioLabel = withStyles(theme => ({
3340
+ label: {
3341
+ color: 'rgba(0, 0, 0, 0.89)',
3342
+ fontSize: theme.typography.fontSize - 2,
3343
+ left: '-5px',
3344
+ position: 'relative'
3345
+ },
3346
+ customColor: {
3347
+ color: `${color.tertiary()} !important`
3348
+ }
3349
+ }))(({
3350
+ label,
3351
+ value,
3352
+ checked,
3353
+ onChange,
3354
+ classes
3355
+ }) => /*#__PURE__*/React__default.createElement(FormControlLabel, {
3356
+ value: value,
3357
+ classes: {
3358
+ label: classes.label
3359
+ },
3360
+ control: /*#__PURE__*/React__default.createElement(Radio$1, {
3361
+ className: classes.customColor,
3362
+ checked: checked,
3363
+ onChange: onChange
3364
+ }),
3365
+ label: label
3366
+ }));
3367
+
3368
+ const _excluded = ["isConfigProperty"];
3369
+ const log = debug('pie-lib:config-ui:settings:panel');
3370
+ const labelValue = {
3371
+ label: PropTypes.string,
3372
+ value: PropTypes.string
3373
+ };
3374
+ const baseTypes = {
3375
+ label: PropTypes.string,
3376
+ value: PropTypes.string,
3377
+ onChange: PropTypes.func
3378
+ };
3379
+
3380
+ const CheckboxChoice = ({
3381
+ label,
3382
+ value,
3383
+ onChange
3384
+ }) => {
3385
+ return /*#__PURE__*/React__default.createElement(Checkbox$1, {
3386
+ checked: value,
3387
+ label: label,
3388
+ onChange: event => {
3389
+ onChange(event.target.checked);
3390
+ }
3391
+ });
3392
+ };
3393
+
3394
+ CheckboxChoice.propTypes = {
3395
+ label: PropTypes.string,
3396
+ value: PropTypes.bool,
3397
+ onChange: PropTypes.func
3398
+ };
3399
+
3400
+ const Radio = ({
3401
+ classes,
3402
+ label,
3403
+ value,
3404
+ onChange,
3405
+ choices
3406
+ }) => {
3407
+ return /*#__PURE__*/React__default.createElement(NChoice, {
3408
+ className: classes.radioSettings,
3409
+ direction: "horizontal",
3410
+ customLabel: SettingsRadioLabel,
3411
+ value: value,
3412
+ header: label,
3413
+ opts: choices,
3414
+ onChange: onChange
3415
+ });
3416
+ };
3417
+
3418
+ Radio.propTypes = _extends({}, baseTypes, {
3419
+ choices: PropTypes.arrayOf(PropTypes.shape(labelValue))
3420
+ });
3421
+ const StyledRadio = withStyles(theme => ({
3422
+ radioSettings: {
3423
+ marginTop: theme.spacing.unit / 2,
3424
+ paddingBottom: theme.spacing.unit / 2,
3425
+ width: '100%',
3426
+ '& > label': {
3427
+ color: 'rgba(0, 0, 0, 0.89)',
3428
+ transform: 'translate(0, 10px) scale(1)',
3429
+ fontSize: '14px'
3430
+ },
3431
+ '& > div': {
3432
+ marginTop: theme.spacing.unit * 2.5
3433
+ }
3434
+ },
3435
+ label: {
3436
+ display: 'none'
3437
+ }
3438
+ }))(Radio);
3439
+ const Dropdown = withStyles(theme => ({
3440
+ label: {
3441
+ margin: 0,
3442
+ fontSize: theme.typography.fontSize
3443
+ },
3444
+ wrapper: {
3445
+ marginTop: theme.spacing.unit / 2,
3446
+ border: '2px solid lightgrey',
3447
+ borderRadius: '4px',
3448
+ padding: `0 ${theme.spacing.unit}px`
3449
+ }
3450
+ }))(({
3451
+ classes,
3452
+ label,
3453
+ value,
3454
+ onChange,
3455
+ choices: _choices = []
3456
+ }) => {
3457
+ const getItemLabel = l => typeof l === 'string' ? l : l.label;
3458
+
3459
+ const getItemValue = l => typeof l === 'string' ? l : l.value;
3460
+
3461
+ return /*#__PURE__*/React__default.createElement("div", null, label && /*#__PURE__*/React__default.createElement("p", {
3462
+ className: classes.label
3463
+ }, label), /*#__PURE__*/React__default.createElement(Select, {
3464
+ className: classes.wrapper,
3465
+ value: value || _choices && _choices[0],
3466
+ onChange: ({
3467
+ target
3468
+ }) => onChange(target.value),
3469
+ input: /*#__PURE__*/React__default.createElement(MaterialInput, {
3470
+ id: `dropdown-${label}`
3471
+ }),
3472
+ disableUnderline: true
3473
+ }, _choices.map((l, index) => /*#__PURE__*/React__default.createElement(MenuItem, {
3474
+ key: index,
3475
+ value: getItemValue(l)
3476
+ }, getItemLabel(l)))));
3477
+ });
3478
+ Dropdown.propTypes = _extends({}, baseTypes, {
3479
+ choices: PropTypes.arrayOf(PropTypes.string)
3480
+ });
3481
+ const TextField = withStyles(theme => ({
3482
+ field: {
3483
+ marginRight: theme.spacing.unit * 3,
3484
+ marginTop: theme.spacing.unit
3485
+ }
3486
+ }))(({
3487
+ classes,
3488
+ label
3489
+ }) => {
3490
+ return /*#__PURE__*/React__default.createElement(Typography, {
3491
+ className: classes.field
3492
+ }, label);
3493
+ });
3494
+ const NumberField = withStyles(theme => ({
3495
+ field: {
3496
+ width: '35%',
3497
+ marginRight: theme.spacing.unit * 3,
3498
+ marginTop: theme.spacing.unit
3499
+ },
3500
+ wrapper: {
3501
+ marginTop: theme.spacing.unit / 2,
3502
+ border: '2px solid lightgrey',
3503
+ borderRadius: '4px',
3504
+ padding: `0 ${theme.spacing.unit}px`
3505
+ }
3506
+ }))(({
3507
+ classes,
3508
+ label,
3509
+ value,
3510
+ onChange: _onChange = () => {},
3511
+ suffix,
3512
+ min,
3513
+ max
3514
+ }) => {
3515
+ return /*#__PURE__*/React__default.createElement(NumberTextField$1, {
3516
+ label: label || 'Label',
3517
+ value: value,
3518
+ max: max,
3519
+ min: min,
3520
+ onChange: (ev, value) => _onChange(value),
3521
+ suffix: suffix,
3522
+ className: classes.field,
3523
+ showErrorWhenOutsideRange: true,
3524
+ inputClassName: classes.wrapper,
3525
+ disableUnderline: true,
3526
+ classes: classes
3527
+ });
3528
+ });
3529
+ NumberField.propTypes = _extends({}, baseTypes, {
3530
+ classes: PropTypes.object,
3531
+ suffix: PropTypes.string,
3532
+ min: PropTypes.number,
3533
+ max: PropTypes.number,
3534
+ value: PropTypes.number
3535
+ });
3536
+ TextField.propTypes = _extends({}, baseTypes);
3537
+
3538
+ const ToggleWrapper = ({
3539
+ disabled,
3540
+ label,
3541
+ value,
3542
+ onChange
3543
+ }) => /*#__PURE__*/React__default.createElement(Toggle, {
3544
+ label: label,
3545
+ checked: !!value,
3546
+ disabled: !!disabled,
3547
+ toggle: onChange
3548
+ });
3549
+
3550
+ ToggleWrapper.propTypes = _extends({}, baseTypes, {
3551
+ value: PropTypes.bool
3552
+ });
3553
+ const tagMap = {
3554
+ toggle: ToggleWrapper,
3555
+ radio: StyledRadio,
3556
+ dropdown: Dropdown,
3557
+ numberField: NumberField,
3558
+ checkbox: CheckboxChoice,
3559
+ textField: TextField
3560
+ };
3561
+ const Group = withStyles(theme => ({
3562
+ group: {
3563
+ margin: `0 0 ${theme.spacing.unit * 2}px 0`
3564
+ },
3565
+ groupHeader: {
3566
+ color: '#495B8F',
3567
+ fontSize: theme.typography.fontSize + 2,
3568
+ fontWeight: 600,
3569
+ marginBottom: theme.spacing.unit
3570
+ },
3571
+ numberFields: {
3572
+ fontSize: theme.typography.fontSize,
3573
+ marginBottom: 0
3574
+ }
3575
+ }))(props => {
3576
+ const {
3577
+ classes,
3578
+ model,
3579
+ label,
3580
+ group,
3581
+ configuration,
3582
+ onChange
3583
+ } = props;
3584
+ /**
3585
+ * @param group - the group of settings
3586
+ * @param key - the key(or path) to be used to set or get from model or configuration
3587
+ * @param innerKey - the key(or path) to be used to get from the group (used only for numberField type)
3588
+ * @returns tag that corresponds to element type */
3589
+
3590
+ const getTag = (group, key, innerKey) => {
3591
+ const _get = get(group, innerKey || key),
3592
+ {
3593
+ isConfigProperty
3594
+ } = _get,
3595
+ properties = _objectWithoutPropertiesLoose(_get, _excluded);
3596
+
3597
+ const value = isConfigProperty ? get(configuration, key) : get(model, key);
3598
+
3599
+ const tagProps = _extends({}, properties, {
3600
+ key,
3601
+ value
3602
+ });
3603
+
3604
+ const Tag = tagMap[tagProps.type];
3605
+ return /*#__PURE__*/React__default.createElement(Tag, _extends({
3606
+ key: key
3607
+ }, tagProps, {
3608
+ onChange: v => onChange(key, v, isConfigProperty)
3609
+ }));
3610
+ };
3611
+
3612
+ const content = (group, key) => {
3613
+ const currentGroup = group[key];
3614
+
3615
+ if (!currentGroup) {
3616
+ return null;
3617
+ }
3618
+
3619
+ const {
3620
+ type,
3621
+ label,
3622
+ fields,
3623
+ choices
3624
+ } = currentGroup;
3625
+
3626
+ if (type === 'numberFields') {
3627
+ return /*#__PURE__*/React__default.createElement("div", {
3628
+ key: `numberField-${label}`
3629
+ }, /*#__PURE__*/React__default.createElement("p", {
3630
+ className: classes.numberFields
3631
+ }, label), Object.keys(fields).map(fieldKey => {
3632
+ return getTag(group, `${key}.${fieldKey}`, `${key}.fields.${fieldKey}`);
3633
+ }));
3634
+ }
3635
+
3636
+ if (type === 'checkboxes') {
3637
+ return /*#__PURE__*/React__default.createElement("div", {
3638
+ key: `checkbox-${label}`
3639
+ }, /*#__PURE__*/React__default.createElement("p", null, label), Object.keys(choices).map(choiceKey => {
3640
+ return getTag(group, `${key}.${choiceKey}`, `${key}.choices.${choiceKey}`);
3641
+ }));
3642
+ } // if type is toggle, radio, dropdown, numberField or numberText
3643
+
3644
+
3645
+ return getTag(group, key);
3646
+ };
3647
+
3648
+ return /*#__PURE__*/React__default.createElement("div", {
3649
+ className: classes.group
3650
+ }, /*#__PURE__*/React__default.createElement("div", {
3651
+ className: classes.groupHeader
3652
+ }, label), Object.keys(group).map(key => {
3653
+ return content(group, key);
3654
+ }));
3655
+ });
3656
+ class Panel extends React__default.Component {
3657
+ constructor(...args) {
3658
+ super(...args);
3659
+
3660
+ this.change = (key, value, isConfigProperty = false) => {
3661
+ log('[changeModel]', key, value);
3662
+ const {
3663
+ onChangeModel,
3664
+ onChangeConfiguration
3665
+ } = this.props;
3666
+
3667
+ const model = _extends({}, this.props.model);
3668
+
3669
+ const configuration = _extends({}, this.props.configuration);
3670
+
3671
+ if (isConfigProperty) {
3672
+ set(configuration, key, value);
3673
+ onChangeConfiguration(configuration, key);
3674
+ } else {
3675
+ set(model, key, value);
3676
+ onChangeModel(model, key);
3677
+ }
3678
+ };
3679
+ }
3680
+
3681
+ render() {
3682
+ const {
3683
+ groups,
3684
+ model,
3685
+ configuration,
3686
+ modal
3687
+ } = this.props;
3688
+ log('render:', model);
3689
+ const renderedGroups = Object.keys(groups || {}).map(group => {
3690
+ const showGroup = Object.entries(groups[group]).some(([, propVal]) => !!propVal);
3691
+
3692
+ if (showGroup) {
3693
+ return /*#__PURE__*/React__default.createElement(Group, {
3694
+ label: group,
3695
+ key: group,
3696
+ model: model,
3697
+ configuration: configuration,
3698
+ group: groups[group],
3699
+ onChange: this.change
3700
+ });
3701
+ }
3702
+
3703
+ return null;
3704
+ });
3705
+ return /*#__PURE__*/React__default.createElement("div", null, renderedGroups, modal);
3706
+ }
3707
+
3708
+ }
3709
+ Panel.propTypes = {
3710
+ model: PropTypes.object,
3711
+ configuration: PropTypes.object,
3712
+ groups: PropTypes.object,
3713
+ onChangeModel: PropTypes.func,
3714
+ onChangeConfiguration: PropTypes.func,
3715
+ modal: PropTypes.object
3716
+ };
3717
+ Panel.defaultProps = {
3718
+ onChangeModel: () => {},
3719
+ onChangeConfiguration: () => {}
3720
+ };
3721
+
3722
+ const textField = (label, isConfigProperty = true) => ({
3723
+ label,
3724
+ type: 'textField',
3725
+ isConfigProperty
3726
+ });
3727
+ const toggle = (label, isConfigProperty = false, disabled = false) => ({
3728
+ type: 'toggle',
3729
+ label,
3730
+ isConfigProperty,
3731
+ disabled
3732
+ });
3733
+
3734
+ const toChoice = opt => {
3735
+ if (typeof opt === 'string') {
3736
+ return {
3737
+ label: opt,
3738
+ value: opt
3739
+ };
3740
+ } else {
3741
+ return opt;
3742
+ }
3743
+ };
3744
+
3745
+ const radio = function radio() {
3746
+ const args = Array.prototype.slice.call(arguments);
3747
+ const [label, choices, isConfigProperty = false] = args;
3748
+ return {
3749
+ type: 'radio',
3750
+ label,
3751
+ choices: choices && choices.map(o => toChoice(o)),
3752
+ isConfigProperty
3753
+ };
3754
+ };
3755
+ const dropdown = (label, choices, isConfigProperty = false) => {
3756
+ return {
3757
+ type: 'dropdown',
3758
+ label,
3759
+ choices,
3760
+ isConfigProperty
3761
+ };
3762
+ };
3763
+ const numberField = (label, options, isConfigProperty = false) => _extends({}, options, {
3764
+ label,
3765
+ type: 'numberField',
3766
+ isConfigProperty
3767
+ });
3768
+ const numberFields = (label, fields, isConfigProperty = false) => {
3769
+ Object.keys(fields).map(key => {
3770
+ fields[key] = numberField(fields[key].label, fields[key], isConfigProperty);
3771
+ });
3772
+ return {
3773
+ type: 'numberFields',
3774
+ label,
3775
+ fields
3776
+ };
3777
+ };
3778
+ const checkbox = (label, settings, isConfigProperty = false) => _extends({}, settings, {
3779
+ label,
3780
+ type: 'checkbox',
3781
+ isConfigProperty
3782
+ });
3783
+ const checkboxes = (label, choices, isConfigProperty = false) => {
3784
+ Object.keys(choices).map(key => {
3785
+ choices[key] = checkbox(choices[key].label, choices[key], isConfigProperty);
3786
+ });
3787
+ return {
3788
+ type: 'checkboxes',
3789
+ label,
3790
+ choices
3791
+ };
3792
+ };
3793
+
3794
+ var index = /*#__PURE__*/Object.freeze({
3795
+ __proto__: null,
3796
+ Panel: Panel,
3797
+ checkbox: checkbox,
3798
+ checkboxes: checkboxes,
3799
+ dropdown: dropdown,
3800
+ numberField: numberField,
3801
+ numberFields: numberFields,
3802
+ radio: radio,
3803
+ textField: textField,
3804
+ toggle: toggle
3805
+ });
3806
+
3807
+ export { alertDialog as AlertDialog, Checkbox$1 as Checkbox, index$2 as ChoiceConfiguration, DisplaySize, index$4 as FeedbackConfig, FeedbackSelector$1 as FeedbackSelector, formSection as FormSection, Help, Input, InputCheckbox, InputRadio, InputSwitch, Langs, LanguageControls, MuiBox, NChoice, NumberTextField$1 as NumberTextField, numberTextFieldCustom as NumberTextFieldCustom, Tabs$1 as Tabs, index$3 as TagsInput, Toggle, twoChoice as TwoChoice, choiceUtils, buildDefaults as feedbackConfigDefaults, index$1 as layout, index as settings, withStatefulModel };
3808
+ //# sourceMappingURL=index.js.map