@pie-element/graphing-solution-set 0.1.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 (217) hide show
  1. package/dist/author/configure.d.ts +27 -0
  2. package/dist/author/configure.d.ts.map +1 -0
  3. package/dist/author/configure.js +190 -0
  4. package/dist/author/correct-response.d.ts +34 -0
  5. package/dist/author/correct-response.d.ts.map +1 -0
  6. package/dist/author/correct-response.js +206 -0
  7. package/dist/author/defaults.d.ts +239 -0
  8. package/dist/author/defaults.d.ts.map +1 -0
  9. package/dist/author/defaults.js +339 -0
  10. package/dist/author/graphing-config.d.ts +34 -0
  11. package/dist/author/graphing-config.d.ts.map +1 -0
  12. package/dist/author/graphing-config.js +238 -0
  13. package/dist/author/index.d.ts +63 -0
  14. package/dist/author/index.d.ts.map +1 -0
  15. package/dist/author/index.js +87 -0
  16. package/dist/author/utils.d.ts +47 -0
  17. package/dist/author/utils.d.ts.map +1 -0
  18. package/dist/author/utils.js +474 -0
  19. package/dist/controller/defaults.d.ts +65 -0
  20. package/dist/controller/defaults.d.ts.map +1 -0
  21. package/dist/controller/defaults.js +54 -0
  22. package/dist/controller/index.d.ts +25 -0
  23. package/dist/controller/index.d.ts.map +1 -0
  24. package/dist/controller/index.js +112 -0
  25. package/dist/controller/utils.d.ts +21 -0
  26. package/dist/controller/utils.d.ts.map +1 -0
  27. package/dist/controller/utils.js +42 -0
  28. package/dist/delivery/index.d.ts +23 -0
  29. package/dist/delivery/index.d.ts.map +1 -0
  30. package/dist/delivery/index.js +62 -0
  31. package/dist/delivery/main.d.ts +32 -0
  32. package/dist/delivery/main.d.ts.map +1 -0
  33. package/dist/delivery/main.js +198 -0
  34. package/dist/delivery/utils.d.ts +13 -0
  35. package/dist/delivery/utils.d.ts.map +1 -0
  36. package/dist/delivery/utils.js +220 -0
  37. package/dist/graphing-solution-set.css +2 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.iife.d.ts +9 -0
  41. package/dist/index.iife.d.ts.map +1 -0
  42. package/dist/index.iife.js +373 -0
  43. package/dist/index.js +2 -0
  44. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
  45. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
  46. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
  47. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
  48. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
  49. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
  50. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
  51. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
  52. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
  53. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
  54. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
  55. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
  56. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
  57. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
  58. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
  59. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.js +7 -0
  60. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  61. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  62. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
  63. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
  64. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
  65. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
  66. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
  67. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
  68. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
  69. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
  70. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
  71. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
  72. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.js +23 -0
  73. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.js +7 -0
  74. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +13 -0
  75. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  76. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
  77. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.js +9 -0
  78. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
  79. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  81. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
  82. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.js +6 -0
  83. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
  84. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
  85. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  86. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
  87. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
  88. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
  89. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js +22 -0
  90. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
  91. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
  92. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
  93. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUniq.js +27 -0
  95. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
  96. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
  97. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  98. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
  99. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
  100. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
  101. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
  102. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  103. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
  105. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
  106. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  107. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
  108. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createSet.js +9 -0
  109. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
  110. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
  111. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
  112. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
  113. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
  114. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
  115. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  116. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
  118. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
  119. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
  120. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
  121. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  122. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
  123. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
  124. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
  125. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
  126. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
  127. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
  128. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
  129. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
  131. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
  132. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +10 -0
  133. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
  134. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
  135. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
  136. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
  137. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
  138. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
  139. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
  140. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
  141. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
  142. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
  143. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
  144. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  145. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
  146. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
  147. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
  148. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
  149. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
  150. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
  151. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
  152. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  153. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
  154. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
  155. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
  156. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
  157. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
  158. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
  159. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
  160. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
  161. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
  162. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
  163. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
  164. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
  165. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
  166. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
  167. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
  168. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.js +7 -0
  169. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
  170. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
  171. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
  172. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
  173. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
  174. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/differenceWith.js +12 -0
  175. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
  176. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
  177. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
  178. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
  179. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
  180. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  181. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
  182. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
  183. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +7 -0
  184. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
  185. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
  186. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
  187. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
  188. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
  189. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
  190. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
  191. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
  193. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
  194. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/last.js +7 -0
  195. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
  196. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/noop.js +4 -0
  197. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/set.js +7 -0
  198. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
  199. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
  200. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
  201. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniq.js +7 -0
  202. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniqWith.js +7 -0
  203. package/package.json +70 -0
  204. package/src/author/configure.tsx +266 -0
  205. package/src/author/correct-response.tsx +408 -0
  206. package/src/author/defaults.tsx +366 -0
  207. package/src/author/graphing-config.tsx +318 -0
  208. package/src/author/index.ts +176 -0
  209. package/src/author/utils.ts +577 -0
  210. package/src/controller/defaults.ts +72 -0
  211. package/src/controller/index.ts +313 -0
  212. package/src/controller/utils.ts +195 -0
  213. package/src/delivery/index.ts +159 -0
  214. package/src/delivery/main.tsx +361 -0
  215. package/src/delivery/utils.ts +465 -0
  216. package/src/index.iife.ts +16 -0
  217. package/src/index.ts +1 -0
@@ -0,0 +1,7 @@
1
+ import e from "./_baseToString.js";
2
+ //#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js
3
+ function t(t) {
4
+ return t == null ? "" : e(t);
5
+ }
6
+ //#endregion
7
+ export { t as default };
@@ -0,0 +1,7 @@
1
+ import e from "./_baseUniq.js";
2
+ //#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniq.js
3
+ function t(t) {
4
+ return t && t.length ? e(t) : [];
5
+ }
6
+ //#endregion
7
+ export { t as default };
@@ -0,0 +1,7 @@
1
+ import e from "./_baseUniq.js";
2
+ //#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniqWith.js
3
+ function t(t, n) {
4
+ return n = typeof n == "function" ? n : void 0, t && t.length ? e(t, void 0, n) : [];
5
+ }
6
+ //#endregion
7
+ export { t as default };
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@pie-element/graphing-solution-set",
3
+ "version": "0.1.0",
4
+ "description": "",
5
+ "dependencies": {
6
+ "@emotion/react": "^11.14.0",
7
+ "@emotion/style": "^0.8.0",
8
+ "@mui/icons-material": "^7.3.4",
9
+ "@mui/material": "^7.3.4",
10
+ "@pie-lib/config-ui": "0.1.0",
11
+ "@pie-lib/correct-answer-toggle": "0.1.0",
12
+ "@pie-lib/graphing-solution-set": "0.1.0",
13
+ "@pie-lib/render-ui": "0.1.0",
14
+ "classnames": "^2.2.5",
15
+ "debug": "^4.1.1",
16
+ "@pie-lib/editable-html-tip-tap": "0.1.0",
17
+ "@pie-element/shared-configure-events": "0.1.0",
18
+ "@pie-element/shared-math-rendering-mathjax": "0.1.0",
19
+ "@pie-element/shared-player-events": "0.1.0",
20
+ "lodash-es": "^4.17.21",
21
+ "prop-types": "^15.6.1"
22
+ },
23
+ "peerDependencies": {
24
+ "react": "^18.0.0",
25
+ "react-dom": "^18.0.0"
26
+ },
27
+ "exports": {
28
+ ".": {
29
+ "development": "./src/index.ts",
30
+ "types": "./dist/index.d.ts",
31
+ "default": "./dist/index.js"
32
+ },
33
+ "./delivery": {
34
+ "development": "./src/delivery/index.ts",
35
+ "types": "./dist/delivery/index.d.ts",
36
+ "default": "./dist/delivery/index.js"
37
+ },
38
+ "./author": {
39
+ "development": "./src/author/index.ts",
40
+ "types": "./dist/author/index.d.ts",
41
+ "default": "./dist/author/index.js"
42
+ },
43
+ "./controller": {
44
+ "development": "./src/controller/index.ts",
45
+ "types": "./dist/controller/index.d.ts",
46
+ "default": "./dist/controller/index.js"
47
+ }
48
+ },
49
+ "type": "module",
50
+ "main": "./dist/index.js",
51
+ "types": "./dist/index.d.ts",
52
+ "files": [
53
+ "dist",
54
+ "src"
55
+ ],
56
+ "sideEffects": false,
57
+ "devDependencies": {
58
+ "vite": "^8.0.1",
59
+ "typescript": "^5.9.3",
60
+ "@vitejs/plugin-react": "^6.0.1",
61
+ "@types/react": "^18.2.0",
62
+ "@types/react-dom": "^18.2.0"
63
+ },
64
+ "scripts": {
65
+ "build": "bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
66
+ "dev": "bun x vite",
67
+ "demo": "bun x vite --mode demo",
68
+ "test": "bun x vitest run"
69
+ }
70
+ }
@@ -0,0 +1,266 @@
1
+ // @ts-nocheck
2
+ /**
3
+ * @synced-from pie-elements/packages/graphing-solution-set/configure/src/configure.jsx
4
+ * @auto-generated
5
+ *
6
+ * This file is automatically synced from pie-elements and converted to TypeScript.
7
+ * Manual edits will be overwritten on next sync.
8
+ * To make changes, edit the upstream JavaScript file and run sync again.
9
+ */
10
+
11
+ import React from 'react';
12
+ import { styled } from '@mui/material/styles';
13
+
14
+ import { settings, layout, InputContainer } from '@pie-lib/config-ui';
15
+ import PropTypes from 'prop-types';
16
+ import debug from 'debug';
17
+ import Typography from '@mui/material/Typography';
18
+ import EditableHtml from '@pie-lib/editable-html-tip-tap';
19
+ import GraphingConfig from './graphing-config.js';
20
+ import CorrectResponse from './correct-response.js';
21
+
22
+ const { Panel, toggle, radio, checkboxes, textField, dropdown } = settings;
23
+ const log = debug('@pie-element:graphing-solution-set:configure');
24
+
25
+ const StyledInputContainer: any = styled(InputContainer)(({ theme }) => ({
26
+ width: '100%',
27
+ paddingTop: theme.spacing(2),
28
+ marginBottom: theme.spacing(2),
29
+ marginTop: theme.spacing(2),
30
+ }));
31
+
32
+ const Description: any = styled(Typography)(({ theme }) => ({
33
+ marginBottom: theme.spacing(2.5),
34
+ }));
35
+
36
+ export class Configure extends React.Component {
37
+ static propTypes = {
38
+ onModelChanged: PropTypes.func,
39
+ onConfigurationChanged: PropTypes.func,
40
+ imageSupport: PropTypes.object,
41
+ uploadSoundSupport: PropTypes.object,
42
+ model: PropTypes.object.isRequired,
43
+ configuration: PropTypes.object.isRequired,
44
+ };
45
+
46
+ /*
47
+ * Triggered when configure component is mounted
48
+ * */
49
+ componentDidMount() {
50
+ const { configuration, onModelChanged, model } = this.props;
51
+ const { title, graphDimensions } = configuration || {};
52
+ let { arrows, titleEnabled: showTitle, dimensionsEnabled: showDimensions } = model || {};
53
+ // This is used for offering support for old models which have the property arrows: boolean
54
+ // Same thing is set in the controller: packages/graphing/controller/src/index.js - model
55
+ if (typeof arrows === 'boolean') {
56
+ if (arrows) {
57
+ arrows = { left: true, right: true, up: true, down: true };
58
+ } else {
59
+ arrows = { left: false, right: false, up: false, down: false };
60
+ }
61
+ }
62
+ const titleEnabled = showTitle === undefined || showTitle === null ? title.enabled : showTitle;
63
+ const dimensionsEnabled =
64
+ showDimensions === undefined || showDimensions === null ? graphDimensions.enabled : showDimensions;
65
+ onModelChanged && onModelChanged({ ...model, arrows, titleEnabled, dimensionsEnabled });
66
+ }
67
+
68
+ /*
69
+ * Triggered when the rationale is changed
70
+ * @param {string} rationale - The new rationale
71
+ * */
72
+ onRationaleChange: any = (rationale) => {
73
+ const { onModelChanged, model } = this.props;
74
+ onModelChanged({ ...model, rationale });
75
+ };
76
+
77
+ /*
78
+ * Triggered when the prompt is changed
79
+ * @param {string} prompt - The new prompt
80
+ * */
81
+ onPromptChange: any = (prompt) => {
82
+ const { onModelChanged, model } = this.props;
83
+ onModelChanged({ ...model, prompt });
84
+ };
85
+
86
+ /*
87
+ * Triggered when the teacher instructions are changed
88
+ * @param {string} teacherInstructions - The new teacher instructions
89
+ * */
90
+ onTeacherInstructionsChange: any = (teacherInstructions) => {
91
+ const { onModelChanged, model } = this.props;
92
+ onModelChanged({ ...model, teacherInstructions });
93
+ };
94
+
95
+ /*
96
+ * Render the component
97
+ * */
98
+ render() {
99
+ const { model, configuration, onConfigurationChanged, onModelChanged, imageSupport, uploadSoundSupport } =
100
+ this.props;
101
+ const {
102
+ arrows = {},
103
+ authoring = {},
104
+ coordinatesOnHover = {},
105
+ contentDimensions = {},
106
+ gridConfigurations = [],
107
+ graphDimensions = {},
108
+ instruction = {},
109
+ labels = {},
110
+ padding = {},
111
+ prompt = {},
112
+ rationale = {},
113
+ scoringType = {},
114
+ settingsPanelDisabled,
115
+ spellCheck = {},
116
+ studentInstructions = {},
117
+ teacherInstructions = {},
118
+ title = {},
119
+ maxImageWidth = {},
120
+ maxImageHeight = {},
121
+ withRubric = {},
122
+ language = {},
123
+ languageChoices = {},
124
+ mathMlOptions = {},
125
+ } = configuration || {};
126
+ const {
127
+ errors = {},
128
+ extraCSSRules,
129
+ labelsEnabled,
130
+ dimensionsEnabled,
131
+ promptEnabled,
132
+ rationaleEnabled,
133
+ spellCheckEnabled,
134
+ teacherInstructionsEnabled,
135
+ titleEnabled,
136
+ } = model || {};
137
+ const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
138
+ const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
139
+ const labelsPlaceholders = {
140
+ top: labels.top,
141
+ right: labels.right,
142
+ bottom: labels.bottom,
143
+ left: labels.left,
144
+ };
145
+ const panelItemType = {
146
+ arrows:
147
+ arrows.settings &&
148
+ checkboxes(arrows.label, {
149
+ left: arrows.left,
150
+ right: arrows.right,
151
+ up: arrows.up,
152
+ down: arrows.down,
153
+ }),
154
+ titleEnabled: title.settings && toggle(title.label),
155
+ padding: padding.settings && toggle(padding.label),
156
+ labelsEnabled: labels.settings && toggle(labels.label),
157
+ 'language.enabled': language.settings && toggle(language.label, true),
158
+ language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),
159
+ dimensionsEnabled: graphDimensions.settings && toggle(graphDimensions.label),
160
+ coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label),
161
+ };
162
+ const panelProperties = {
163
+ 'authoring.enabled': authoring.settings && toggle(authoring.label, true),
164
+ teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
165
+ studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
166
+ promptEnabled: prompt.settings && toggle(prompt.label),
167
+ rationaleEnabled: rationale.settings && toggle(rationale.label),
168
+ spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
169
+ scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),
170
+ rubricEnabled: withRubric?.settings && toggle(withRubric?.label),
171
+ instruction: instruction.settings && textField(instruction.label),
172
+ };
173
+ return (
174
+ <layout.ConfigLayout
175
+ extraCSSRules={extraCSSRules}
176
+ dimensions={contentDimensions}
177
+ hideSettings={settingsPanelDisabled}
178
+ settings={
179
+ <Panel
180
+ model={model}
181
+ configuration={configuration}
182
+ onChangeModel={onModelChanged}
183
+ onChangeConfiguration={onConfigurationChanged}
184
+ groups={{
185
+ Settings: panelItemType,
186
+ Properties: panelProperties,
187
+ }}
188
+ />
189
+ }
190
+ >
191
+ <Description component="div" variant="body1">
192
+ {instruction?.label || ''}
193
+ </Description>
194
+ {teacherInstructionsEnabled && (
195
+ <StyledInputContainer label={teacherInstructions.label}>
196
+ <EditableHtml
197
+ markup={model.teacherInstructions || ''}
198
+ onChange={this.onTeacherInstructionsChange}
199
+ imageSupport={imageSupport}
200
+ nonEmpty={false}
201
+ spellCheck={spellCheckEnabled}
202
+ maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}
203
+ maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}
204
+ uploadSoundSupport={uploadSoundSupport}
205
+ languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
206
+ mathMlOptions={mathMlOptions}
207
+ />
208
+ </StyledInputContainer>
209
+ )}
210
+ {promptEnabled && (
211
+ <StyledInputContainer label={prompt.label}>
212
+ <EditableHtml
213
+ markup={model.prompt}
214
+ onChange={this.onPromptChange}
215
+ imageSupport={imageSupport}
216
+ nonEmpty={false}
217
+ spellCheck={spellCheckEnabled}
218
+ disableUnderline
219
+ maxImageWidth={defaultImageMaxWidth}
220
+ maxImageHeight={defaultImageMaxHeight}
221
+ uploadSoundSupport={uploadSoundSupport}
222
+ languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
223
+ mathMlOptions={mathMlOptions}
224
+ />
225
+ </StyledInputContainer>
226
+ )}
227
+ <GraphingConfig
228
+ authoring={authoring}
229
+ gridConfigurations={gridConfigurations}
230
+ graphDimensions={graphDimensions}
231
+ labelsPlaceholders={labelsPlaceholders}
232
+ model={model}
233
+ showLabels={labelsEnabled}
234
+ dimensionsEnabled={dimensionsEnabled}
235
+ showTitle={titleEnabled}
236
+ titlePlaceholder={title.placeholder}
237
+ onChange={this.props.onModelChanged}
238
+ mathMlOptions={mathMlOptions}
239
+ />
240
+ <CorrectResponse
241
+ errors={errors}
242
+ model={model}
243
+ onChange={this.props.onModelChanged}
244
+ mathMlOptions={mathMlOptions}
245
+ />
246
+ {rationaleEnabled && (
247
+ <StyledInputContainer label={rationale.label || 'Rationale'}>
248
+ <EditableHtml
249
+ markup={model.rationale || ''}
250
+ onChange={this.onRationaleChange}
251
+ imageSupport={imageSupport}
252
+ spellCheck={spellCheckEnabled}
253
+ maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}
254
+ maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}
255
+ uploadSoundSupport={uploadSoundSupport}
256
+ languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
257
+ mathMlOptions={mathMlOptions}
258
+ />
259
+ </StyledInputContainer>
260
+ )}
261
+ </layout.ConfigLayout>
262
+ );
263
+ }
264
+ }
265
+
266
+ export default Configure;