@pie-element/number-line 13.1.0-next.28 → 13.1.1-next.1

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 (367) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +11 -0
  2. package/dist/author/arrows.d.ts +28 -0
  3. package/dist/author/arrows.js +69 -0
  4. package/dist/author/card-bar.d.ts +20 -0
  5. package/dist/author/card-bar.js +41 -0
  6. package/dist/author/defaults.d.ts +178 -0
  7. package/dist/author/defaults.js +144 -0
  8. package/dist/author/domain.d.ts +15 -0
  9. package/dist/author/domain.js +54 -0
  10. package/dist/author/index.d.ts +23 -0
  11. package/dist/author/index.js +89 -0
  12. package/dist/author/main.d.ts +44 -0
  13. package/dist/author/main.js +485 -0
  14. package/dist/author/number-text-field.d.ts +13 -0
  15. package/dist/author/number-text-field.js +13 -0
  16. package/dist/author/point-config.d.ts +25 -0
  17. package/dist/author/point-config.js +69 -0
  18. package/dist/author/size.d.ts +24 -0
  19. package/dist/author/size.js +48 -0
  20. package/dist/author/ticks.d.ts +22 -0
  21. package/dist/author/ticks.js +115 -0
  22. package/dist/author/utils.d.ts +9 -0
  23. package/dist/author/utils.js +4 -0
  24. package/dist/controller/defaults.d.ts +58 -0
  25. package/dist/controller/defaults.js +50 -0
  26. package/dist/controller/index.d.ts +33 -0
  27. package/dist/controller/index.js +170 -0
  28. package/dist/controller/tickUtils.d.ts +20 -0
  29. package/dist/controller/tickUtils.js +254 -0
  30. package/dist/controller/utils.d.ts +9 -0
  31. package/dist/controller/utils.js +68 -0
  32. package/dist/delivery/data-converter.d.ts +64 -0
  33. package/dist/delivery/data-converter.js +70 -0
  34. package/dist/delivery/draggable/index.d.ts +33 -0
  35. package/dist/delivery/draggable/index.js +39 -0
  36. package/dist/delivery/index.d.ts +35 -0
  37. package/dist/delivery/index.js +109 -0
  38. package/dist/delivery/number-line/colors.d.ts +11 -0
  39. package/dist/delivery/number-line/colors.js +5 -0
  40. package/dist/delivery/number-line/feedback.d.ts +19 -0
  41. package/dist/delivery/number-line/feedback.js +57 -0
  42. package/dist/delivery/number-line/graph/arrow.d.ts +30 -0
  43. package/dist/delivery/number-line/graph/arrow.js +27 -0
  44. package/dist/delivery/number-line/graph/elements/base.d.ts +16 -0
  45. package/dist/delivery/number-line/graph/elements/base.js +11 -0
  46. package/dist/delivery/number-line/graph/elements/builder.d.ts +33 -0
  47. package/dist/delivery/number-line/graph/elements/builder.js +30 -0
  48. package/dist/delivery/number-line/graph/elements/line.d.ts +51 -0
  49. package/dist/delivery/number-line/graph/elements/line.js +189 -0
  50. package/dist/delivery/number-line/graph/elements/point.d.ts +43 -0
  51. package/dist/delivery/number-line/graph/elements/point.js +127 -0
  52. package/dist/delivery/number-line/graph/elements/ray.d.ts +43 -0
  53. package/dist/delivery/number-line/graph/elements/ray.js +130 -0
  54. package/dist/delivery/number-line/graph/index.d.ts +59 -0
  55. package/dist/delivery/number-line/graph/index.js +196 -0
  56. package/dist/delivery/number-line/graph/line.d.ts +46 -0
  57. package/dist/delivery/number-line/graph/line.js +27 -0
  58. package/dist/delivery/number-line/graph/stacks.d.ts +10 -0
  59. package/dist/delivery/number-line/graph/stacks.js +40 -0
  60. package/dist/delivery/number-line/graph/tick-utils.d.ts +73 -0
  61. package/dist/delivery/number-line/graph/tick-utils.js +297 -0
  62. package/dist/delivery/number-line/graph/ticks.d.ts +46 -0
  63. package/dist/delivery/number-line/graph/ticks.js +115 -0
  64. package/dist/delivery/number-line/index.d.ts +35 -0
  65. package/dist/delivery/number-line/index.js +218 -0
  66. package/dist/delivery/number-line/point-chooser/button.d.ts +31 -0
  67. package/dist/delivery/number-line/point-chooser/button.js +36 -0
  68. package/dist/delivery/number-line/point-chooser/img.d.ts +10 -0
  69. package/dist/delivery/number-line/point-chooser/img.js +4 -0
  70. package/dist/delivery/number-line/point-chooser/index.d.ts +37 -0
  71. package/dist/delivery/number-line/point-chooser/index.js +154 -0
  72. package/dist/delivery/number-line/point-chooser/styles.d.ts +192 -0
  73. package/dist/delivery/number-line/transitions/fade.d.ts +34 -0
  74. package/dist/delivery/number-line/transitions/fade.js +75 -0
  75. package/dist/delivery/number-line/transitions/index.d.ts +10 -0
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.iife.d.ts +8 -0
  78. package/dist/index.iife.js +201 -0
  79. package/dist/index.js +2 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +8 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +19 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +15 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +6 -0
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
  233. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
  234. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
  235. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  236. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  237. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  238. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  239. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  240. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  241. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  242. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  243. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  244. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js +9 -0
  245. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  246. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  247. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  248. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js +9 -0
  249. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  250. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  251. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +14 -0
  252. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  253. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  254. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  255. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  256. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  257. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  258. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +8 -0
  259. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/negate.js +17 -0
  260. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
  261. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js +9 -0
  262. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js +16 -0
  263. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
  264. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  265. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  266. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
  267. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
  268. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  269. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +8 -0
  270. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  271. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +7 -0
  272. package/package.json +54 -16
  273. package/CHANGELOG.json +0 -1247
  274. package/CHANGELOG.md +0 -2423
  275. package/LICENSE.md +0 -5
  276. package/README.md +0 -28
  277. package/configure/CHANGELOG.json +0 -827
  278. package/configure/CHANGELOG.md +0 -2070
  279. package/configure/lib/arrows.js +0 -89
  280. package/configure/lib/arrows.js.map +0 -1
  281. package/configure/lib/card-bar.js +0 -57
  282. package/configure/lib/card-bar.js.map +0 -1
  283. package/configure/lib/defaults.js +0 -177
  284. package/configure/lib/defaults.js.map +0 -1
  285. package/configure/lib/domain.js +0 -87
  286. package/configure/lib/domain.js.map +0 -1
  287. package/configure/lib/index.js +0 -176
  288. package/configure/lib/index.js.map +0 -1
  289. package/configure/lib/main.js +0 -815
  290. package/configure/lib/main.js.map +0 -1
  291. package/configure/lib/number-text-field.js +0 -26
  292. package/configure/lib/number-text-field.js.map +0 -1
  293. package/configure/lib/point-config.js +0 -84
  294. package/configure/lib/point-config.js.map +0 -1
  295. package/configure/lib/size.js +0 -66
  296. package/configure/lib/size.js.map +0 -1
  297. package/configure/lib/ticks.js +0 -234
  298. package/configure/lib/ticks.js.map +0 -1
  299. package/configure/lib/utils.js +0 -12
  300. package/configure/lib/utils.js.map +0 -1
  301. package/configure/package.json +0 -20
  302. package/controller/CHANGELOG.json +0 -332
  303. package/controller/CHANGELOG.md +0 -1349
  304. package/controller/lib/defaults.js +0 -56
  305. package/controller/lib/defaults.js.map +0 -1
  306. package/controller/lib/index.js +0 -430
  307. package/controller/lib/index.js.map +0 -1
  308. package/controller/lib/tickUtils.js +0 -294
  309. package/controller/lib/tickUtils.js.map +0 -1
  310. package/controller/lib/utils.js +0 -168
  311. package/controller/lib/utils.js.map +0 -1
  312. package/controller/package.json +0 -20
  313. package/demo.gif +0 -0
  314. package/docs/config-schema.json +0 -2532
  315. package/docs/config-schema.json.md +0 -1844
  316. package/docs/demo/config.js +0 -8
  317. package/docs/demo/generate.js +0 -39
  318. package/docs/demo/index.html +0 -1
  319. package/docs/pie-schema.json +0 -2461
  320. package/docs/pie-schema.json.md +0 -1228
  321. package/docs/schemas/config.json +0 -256
  322. package/lib/data-converter.js +0 -96
  323. package/lib/data-converter.js.map +0 -1
  324. package/lib/draggable/index.js +0 -114
  325. package/lib/draggable/index.js.map +0 -1
  326. package/lib/index.js +0 -196
  327. package/lib/index.js.map +0 -1
  328. package/lib/number-line/colors.js +0 -11
  329. package/lib/number-line/colors.js.map +0 -1
  330. package/lib/number-line/feedback.js +0 -92
  331. package/lib/number-line/feedback.js.map +0 -1
  332. package/lib/number-line/graph/arrow.js +0 -44
  333. package/lib/number-line/graph/arrow.js.map +0 -1
  334. package/lib/number-line/graph/elements/base.js +0 -20
  335. package/lib/number-line/graph/elements/base.js.map +0 -1
  336. package/lib/number-line/graph/elements/builder.js +0 -37
  337. package/lib/number-line/graph/elements/builder.js.map +0 -1
  338. package/lib/number-line/graph/elements/line.js +0 -259
  339. package/lib/number-line/graph/elements/line.js.map +0 -1
  340. package/lib/number-line/graph/elements/point.js +0 -204
  341. package/lib/number-line/graph/elements/point.js.map +0 -1
  342. package/lib/number-line/graph/elements/ray.js +0 -190
  343. package/lib/number-line/graph/elements/ray.js.map +0 -1
  344. package/lib/number-line/graph/index.js +0 -262
  345. package/lib/number-line/graph/index.js.map +0 -1
  346. package/lib/number-line/graph/line.js +0 -38
  347. package/lib/number-line/graph/line.js.map +0 -1
  348. package/lib/number-line/graph/stacks.js +0 -78
  349. package/lib/number-line/graph/stacks.js.map +0 -1
  350. package/lib/number-line/graph/tick-utils.js +0 -347
  351. package/lib/number-line/graph/tick-utils.js.map +0 -1
  352. package/lib/number-line/graph/ticks.js +0 -188
  353. package/lib/number-line/graph/ticks.js.map +0 -1
  354. package/lib/number-line/index.js +0 -384
  355. package/lib/number-line/index.js.map +0 -1
  356. package/lib/number-line/point-chooser/button.js +0 -49
  357. package/lib/number-line/point-chooser/button.js.map +0 -1
  358. package/lib/number-line/point-chooser/img.js +0 -8
  359. package/lib/number-line/point-chooser/img.js.map +0 -1
  360. package/lib/number-line/point-chooser/index.js +0 -197
  361. package/lib/number-line/point-chooser/index.js.map +0 -1
  362. package/lib/number-line/point-chooser/styles.js +0 -77
  363. package/lib/number-line/point-chooser/styles.js.map +0 -1
  364. package/lib/number-line/transitions/fade.js +0 -88
  365. package/lib/number-line/transitions/fade.js.map +0 -1
  366. package/lib/number-line/transitions/index.js +0 -14
  367. package/lib/number-line/transitions/index.js.map +0 -1
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/configure/src/main.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare const toPointType: (response: any) => string;
12
+ export declare class Main extends React.Component {
13
+ static propTypes: {
14
+ model: PropTypes.Validator<object>;
15
+ configuration: PropTypes.Validator<object>;
16
+ onConfigurationChanged: PropTypes.Validator<(...args: any[]) => any>;
17
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
18
+ imageSupport: PropTypes.Validator<object>;
19
+ uploadSoundSupport: PropTypes.Validator<object>;
20
+ };
21
+ constructor(props: any);
22
+ componentDidMount(): void;
23
+ graphChange: any;
24
+ changeSize: ({ width, height }: {
25
+ width: any;
26
+ height: any;
27
+ }) => any;
28
+ getAdjustedHeight: any;
29
+ changeMaxNoOfPoints: any;
30
+ changeGraphTitle: (title: any) => any;
31
+ changeTicks: any;
32
+ reloadTicksData: any;
33
+ updateMajorValue: any;
34
+ changeArrows: (arrows: any) => any;
35
+ setDefaults: any;
36
+ moveCorrectResponse: any;
37
+ availableTypesChange: any;
38
+ deleteCorrectResponse: any;
39
+ addCorrectResponse: any;
40
+ clearCorrectResponse: any;
41
+ undoCorrectResponse: any;
42
+ render(): React.JSX.Element;
43
+ }
44
+ export default Main;
@@ -0,0 +1,485 @@
1
+ import { data_converter_exports as e } from "../delivery/data-converter.js";
2
+ import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
3
+ import { generateMajorValuesForMinor as n, generateMinorValues as r, getMinorLimits as i, snapElements as a } from "../delivery/number-line/graph/tick-utils.js";
4
+ import o from "../delivery/number-line/index.js";
5
+ import s from "./number-text-field.js";
6
+ import c from "./card-bar.js";
7
+ import ee from "./size.js";
8
+ import l from "./domain.js";
9
+ import te from "./arrows.js";
10
+ import ne from "./point-config.js";
11
+ import re from "./ticks.js";
12
+ import { model as u } from "./defaults.js";
13
+ import { generateValidationMessage as ie } from "./utils.js";
14
+ import d from "react";
15
+ import { styled as f } from "@mui/material/styles";
16
+ import p from "prop-types";
17
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
18
+ import * as g from "mathjs";
19
+ import { AlertDialog as _, FormSection as v, InputContainer as y, layout as ae, settings as b } from "@pie-lib/config-ui";
20
+ import x from "@pie-lib/editable-html-tip-tap";
21
+ import oe from "@mui/material/Tooltip";
22
+ import S from "@mui/material/Typography";
23
+ import se from "@mui/icons-material/Info";
24
+ //#region src/author/main.tsx
25
+ var C = (e) => ({
26
+ ...e,
27
+ feedback: void 0,
28
+ prompt: void 0,
29
+ teacherInstructions: void 0,
30
+ graph: {
31
+ ...e.graph,
32
+ title: void 0,
33
+ disabled: !0
34
+ },
35
+ correctResponse: void 0
36
+ }), { lineIsSwitched: w, switchGraphLine: T, toGraphFormat: ce, toSessionFormat: E } = e, { Panel: le, toggle: D } = b, O = {}, k = {}, A = {}, ue = f(s)({
37
+ width: "150px",
38
+ ".MuiInputBase-input": { padding: "16.5px 14px" }
39
+ }), de = f("div")(({ theme: e }) => ({
40
+ display: "flex",
41
+ flexWrap: "wrap",
42
+ "& > *": { paddingRight: e.spacing(2) }
43
+ })), fe = f("div")(({ theme: e }) => ({ margin: `${e.spacing(2.5)} 0` })), j = f(y)(({ theme: e }) => ({
44
+ paddingTop: e.spacing(2),
45
+ marginBottom: e.spacing(2),
46
+ width: "100%"
47
+ })), pe = f(v)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), M = f("div")(({ theme: e }) => ({
48
+ fontSize: e.typography.fontSize - 2,
49
+ color: e.palette.error.main,
50
+ paddingTop: e.spacing(1)
51
+ })), me = f("div")({
52
+ display: "flex",
53
+ alignItems: "center",
54
+ gap: "10px"
55
+ }), he = f(v)({
56
+ display: "flex",
57
+ alignItems: "center",
58
+ gap: "10px"
59
+ }), ge = f(S)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), N = (e) => {
60
+ function t(e) {
61
+ return e.pointType ? e.direction ? `${e.pointType[0]}${e.direction[0]}` : e.pointType[0] : `${e.leftPoint[0]}${e.rightPoint[0]}`;
62
+ }
63
+ return `${e.type[0]}${t(e)}`.toUpperCase();
64
+ }, P = class extends d.Component {
65
+ static propTypes = {
66
+ model: p.object.isRequired,
67
+ configuration: p.object.isRequired,
68
+ onConfigurationChanged: p.func.isRequired,
69
+ onChange: p.func.isRequired,
70
+ imageSupport: p.object.isRequired,
71
+ uploadSoundSupport: p.object.isRequired
72
+ };
73
+ constructor(e) {
74
+ super(e);
75
+ let { model: { graph: { availableTypes: t, maxNumberOfPoints: n } } } = e, r = this.getAdjustedHeight(t, n);
76
+ this.state = {
77
+ dialog: {
78
+ open: !1,
79
+ text: ""
80
+ },
81
+ correctAnswerDialog: {
82
+ open: !1,
83
+ text: ""
84
+ }
85
+ }, this.graphChange({ height: r });
86
+ }
87
+ componentDidMount() {
88
+ let { configuration: e, model: t, onChange: n } = this.props, { title: r } = e || {}, { titleEnabled: i } = t || {}, a = i ?? r.enabled;
89
+ n && n({
90
+ ...t,
91
+ titleEnabled: a
92
+ });
93
+ }
94
+ graphChange = (e) => {
95
+ let { model: t, onChange: n } = this.props, r = {
96
+ ...t.graph,
97
+ ...e
98
+ }, i = [];
99
+ t.correctResponse.forEach((e, t) => {
100
+ (e.domainPosition < r.domain.min || e.domainPosition > r.domain.max || e.size && (e.domainPosition + e.size < r.domain.min || e.domainPosition + e.size > r.domain.max)) && i.push(t);
101
+ }), i.length > 0 && this.setState({ correctAnswerDialog: {
102
+ open: !0,
103
+ text: "This\nchange would make it impossible for students to plot one or more elements in the current\ncorrect answer. If you proceed, all such elements will be removed from the correct\nanswer.",
104
+ indices: i,
105
+ graph: t.graph
106
+ } }), r = this.reloadTicksData(r), n({ graph: r });
107
+ };
108
+ changeSize = ({ width: e, height: t }) => this.graphChange({
109
+ width: e,
110
+ height: t
111
+ });
112
+ getAdjustedHeight = (e, t) => {
113
+ let n = !0;
114
+ return Object.entries(e || {}).forEach(([e, t]) => {
115
+ if (e !== "PF" && t) {
116
+ n = !1;
117
+ return;
118
+ }
119
+ }), t && (t === 1 || n) ? 100 : 50 + (t || 20) * 25;
120
+ };
121
+ changeMaxNoOfPoints = (e, t) => {
122
+ if (t = Math.floor(t), this.props.model.correctResponse.length > t) {
123
+ this.setState({ dialog: {
124
+ open: !0,
125
+ text: "To use this value, you must first remove one or more elements from the correct answers."
126
+ } });
127
+ return;
128
+ }
129
+ let { model: { graph: { availableTypes: n } } } = this.props, r = this.getAdjustedHeight(n, t);
130
+ this.graphChange({
131
+ maxNumberOfPoints: t,
132
+ height: r
133
+ });
134
+ };
135
+ changeGraphTitle = (e) => this.graphChange({ title: e });
136
+ changeTicks = (e) => {
137
+ let { model: t, onChange: n } = this.props, { ticks: r } = e, i = a(t.graph.domain, r, t.correctResponse), o = t.graph.initialElements ? a(t.graph.domain, r, t.graph.initialElements) : [];
138
+ n({
139
+ graph: {
140
+ ...this.updateMajorValue({
141
+ ...t.graph,
142
+ ticks: r
143
+ }),
144
+ initialElements: o
145
+ },
146
+ correctResponse: i
147
+ });
148
+ };
149
+ reloadTicksData = (e) => {
150
+ let { domain: t, ticks: n, width: a } = e;
151
+ if (n.tickIntervalType || (n.minor > .5 ? n.tickIntervalType = "Integer" : n.tickIntervalType = "Decimal"), O = i(t, a), O.min >= 1) n.tickIntervalType = "Integer", n.minor = n.minor < 1 ? g.number(g.ceil(O.min)) : n.minor >= g.number(g.ceil(O.min)) && n.minor <= g.number(g.floor(O.max)) ? n.minor : g.number(g.ceil(O.min)), n.integerTick = n.minor, k = {
152
+ decimal: [],
153
+ fraction: []
154
+ }, n.fractionTick = "0", n.decimalTick = 0;
155
+ else if (O.min >= 0 && O.max < 1) {
156
+ n.tickIntervalType === "Integer" && (n.tickIntervalType = "Fraction"), k = r(O);
157
+ let e = g.number(g.fraction(k.fraction[0])), t = g.number(g.fraction(k.fraction[k.fraction.length - 1]));
158
+ if (n.minor < e || n.minor > t) switch (n.tickIntervalType) {
159
+ case "Fraction":
160
+ n.minor = g.number(g.fraction(k.fraction[k.fraction.length - 1])), n.fractionTick = k.fraction[k.fraction.length - 1], n.decimalTick = k.decimal[0];
161
+ break;
162
+ case "Decimal":
163
+ case "Integer": n.minor = k.decimal[k.decimal.length - 1], n.decimalTick = k.decimal[k.decimal.length - 1], n.fractionTick = k.fraction[0];
164
+ }
165
+ else switch (n.tickIntervalType) {
166
+ case "Fraction":
167
+ let e = g.fraction(g.number(n.minor));
168
+ n.fractionTick = e.n + "/" + e.d, n.decimalTick = n.decimalTick ? n.decimalTick : k.decimal[0];
169
+ break;
170
+ case "Decimal":
171
+ case "Integer": n.decimalTick = n.minor, n.fractionTick = n.fractionTick ? n.fractionTick : k.fraction[0];
172
+ }
173
+ n.integerTick = 1;
174
+ } else if (O.min < 1 && O.max >= 1) if (k = r(O), n.minor >= O.min && n.minor <= O.max) switch (n.tickIntervalType) {
175
+ case "Integer":
176
+ n.integerTick = n.minor, n.decimalTick = O.min > .5 ? 0 : k.decimal[0], n.fractionTick = O.min > .5 ? "0" : k.fraction[0];
177
+ break;
178
+ case "Decimal":
179
+ n.integerTick = 1, n.decimalTick = n.minor, n.fractionTick = k.fraction[0];
180
+ break;
181
+ case "Fraction":
182
+ n.integerTick = 1, n.decimalTick = k.decimal[0];
183
+ let e = g.fraction(g.number(n.minor));
184
+ n.fractionTick = e.n + "/" + e.d;
185
+ }
186
+ else switch (O.min > .5 && (n.tickIntervalType = "Integer"), n.tickIntervalType) {
187
+ case "Integer":
188
+ n.minor = g.number(g.ceil(O.min)), n.integerTick = n.minor, n.decimalTick = O.min > .5 ? 0 : k.decimal[0], n.fractionTick = O.min > .5 ? "0" : k.fraction[0];
189
+ break;
190
+ case "Decimal":
191
+ n.minor = k.decimal[0], n.integerTick = 1, n.decimalTick = n.minor, n.fractionTick = k.fraction[0];
192
+ break;
193
+ case "Fraction": n.minor = g.number(g.fraction(k.fraction[0])), n.integerTick = 1, n.decimalTick = k.decimal[0], n.fractionTick = k.fraction[0];
194
+ }
195
+ return this.updateMajorValue({
196
+ ...e,
197
+ ticks: n
198
+ });
199
+ };
200
+ updateMajorValue = (e) => {
201
+ let { domain: t, ticks: r, width: i } = e;
202
+ if (A = n(r.minor, t, i), A.decimal.indexOf(r.major) === -1) {
203
+ let e = 0;
204
+ e = r.tickIntervalType === "Integer" && A.decimal.length > 4 ? 4 : A.decimal.length - 1, r.major = A.decimal[e];
205
+ }
206
+ return e.fraction = r.tickIntervalType === "Fraction" && r.major < 1, {
207
+ ...e,
208
+ ticks: r
209
+ };
210
+ };
211
+ changeArrows = (e) => this.graphChange({ arrows: e });
212
+ setDefaults = () => {
213
+ let { graph: { availableTypes: e, maxNumberOfPoints: n } } = u, r = this.getAdjustedHeight(e, n), i = {
214
+ ...t(u.graph),
215
+ height: r
216
+ };
217
+ this.props.onChange({ graph: i });
218
+ };
219
+ moveCorrectResponse = (e, t, n) => {
220
+ t.position = n;
221
+ let { onChange: r, model: i } = this.props, a = E(t.type === "line" && w(t) ? T(t) : t), o = [...i.correctResponse];
222
+ o[e] = a, r({ correctResponse: o });
223
+ };
224
+ availableTypesChange = (e) => {
225
+ let { model: t, onChange: n } = this.props, { correctResponse: r, graph: { maxNumberOfPoints: i } } = t;
226
+ new Set(r.map(N)).forEach((t) => {
227
+ e[t] = !0;
228
+ });
229
+ let a = this.getAdjustedHeight(e, i);
230
+ n({ graph: {
231
+ ...t.graph,
232
+ availableTypes: e,
233
+ height: a
234
+ } });
235
+ };
236
+ deleteCorrectResponse = (e) => {
237
+ let { model: t, onChange: n } = this.props;
238
+ n({ correctResponse: t.correctResponse.filter((t, n) => !e.some((e) => e === n)) });
239
+ };
240
+ addCorrectResponse = (e) => {
241
+ let { model: t, onChange: n } = this.props, r = [...t.correctResponse];
242
+ r.push(E(e)), n({ correctResponse: r });
243
+ };
244
+ clearCorrectResponse = () => {
245
+ let { onChange: e } = this.props;
246
+ e({ correctResponse: [] });
247
+ };
248
+ undoCorrectResponse = () => {
249
+ let { model: e, onChange: t } = this.props, n = [...e.correctResponse];
250
+ n.pop(), t({ correctResponse: n });
251
+ };
252
+ render() {
253
+ let { model: e, onChange: n, configuration: r, onConfigurationChanged: i, uploadSoundSupport: a, imageSupport: s } = this.props, { baseInputConfiguration: u = {}, contentDimensions: f = {}, instruction: p = {}, teacherInstructions: g = {}, title: y = {}, prompt: b = {}, rationale: S = {}, spellCheck: w = {}, mathMlOptions: T = {}, numberLineDimensions: E = {}, maxMaxElements: N = 20, hidePointConfigButtons: P = !1, availableTools: F = ["PF"], settingsPanelDisabled: I = !1 } = r || {}, { errors: L = {}, extraCSSRules: _e, spellCheckEnabled: R, toolbarEditorPosition: z, teacherInstructionsEnabled: ve, titleEnabled: ye, promptEnabled: be, rationaleEnabled: xe } = e || {}, { graph: B } = e;
254
+ B = this.reloadTicksData(B);
255
+ let { dialog: V, correctAnswerDialog: H } = this.state, { correctResponseError: U, domainError: W, maxError: G, pointsError: K, prompt: q, rationale: J, teacherInstructions: Y, widthError: X } = L || {}, Se = ie(), Ce = t(e.correctResponse || []).map(ce), Z = t(e);
256
+ Z.disabled = !0;
257
+ let Q = { position: z === "top" ? "top" : "bottom" }, we = {
258
+ teacherInstructionsEnabled: g.settings && D(g.label),
259
+ titleEnabled: y.settings && D(y.label),
260
+ promptEnabled: b.settings && D(b.label),
261
+ rationaleEnabled: S.settings && D(S.label),
262
+ spellCheckEnabled: w.settings && D(w.label)
263
+ }, $ = (e = {}) => ({
264
+ ...u,
265
+ ...e
266
+ });
267
+ return /* @__PURE__ */ h(ae.ConfigLayout, {
268
+ extraCSSRules: _e,
269
+ dimensions: f,
270
+ hideSettings: I,
271
+ settings: /* @__PURE__ */ m(le, {
272
+ model: e,
273
+ configuration: r,
274
+ onChangeModel: n,
275
+ onChangeConfiguration: i,
276
+ groups: { Properties: we }
277
+ }),
278
+ children: [
279
+ /* @__PURE__ */ m(ge, {
280
+ component: "div",
281
+ type: "body1",
282
+ children: p.label
283
+ }),
284
+ ve && /* @__PURE__ */ h(j, {
285
+ label: g.label,
286
+ children: [/* @__PURE__ */ m(x, {
287
+ markup: e.teacherInstructions || "",
288
+ onChange: (e) => n({ teacherInstructions: e }),
289
+ nonEmpty: !1,
290
+ disableUnderline: !0,
291
+ error: Y,
292
+ toolbarOpts: Q,
293
+ pluginProps: $(g?.inputConfiguration),
294
+ spellCheck: R,
295
+ imageSupport: s,
296
+ uploadSoundSupport: a,
297
+ languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
298
+ mathMlOptions: T
299
+ }), Y && /* @__PURE__ */ m(M, { children: Y })]
300
+ }),
301
+ be && /* @__PURE__ */ h(j, {
302
+ label: b.label,
303
+ children: [/* @__PURE__ */ m(x, {
304
+ markup: e.prompt || "",
305
+ onChange: (e) => n({ prompt: e }),
306
+ nonEmpty: !1,
307
+ disableUnderline: !0,
308
+ error: q,
309
+ toolbarOpts: Q,
310
+ pluginProps: $(b?.inputConfiguration),
311
+ spellCheck: R,
312
+ imageSupport: s,
313
+ uploadSoundSupport: a,
314
+ languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
315
+ mathMlOptions: T
316
+ }), q && /* @__PURE__ */ m(M, { children: q })]
317
+ }),
318
+ /* @__PURE__ */ m(c, {
319
+ header: "Set Up Number Line",
320
+ info: /* @__PURE__ */ m(oe, {
321
+ disableFocusListener: !0,
322
+ disableTouchListener: !0,
323
+ placement: "right",
324
+ title: Se,
325
+ slotProps: { tooltip: { sx: (e) => ({
326
+ fontSize: e.typography.fontSize - 2,
327
+ whiteSpace: "pre",
328
+ maxWidth: "500px"
329
+ }) } },
330
+ children: /* @__PURE__ */ m(se, {
331
+ fontSize: "small",
332
+ color: "primary",
333
+ style: { marginLeft: "8px" }
334
+ })
335
+ }),
336
+ children: "Set up the number line by entering the domain and number of tick marks to display. Labels on the number line can be edited or removed by clicking on the label."
337
+ }),
338
+ /* @__PURE__ */ m(de, { children: /* @__PURE__ */ m(l, {
339
+ domain: B.domain,
340
+ errors: L,
341
+ onChange: (e) => this.graphChange({ domain: e })
342
+ }) }),
343
+ G && /* @__PURE__ */ m(M, { children: G }),
344
+ W && /* @__PURE__ */ m(M, { children: W }),
345
+ /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(v, { children: /* @__PURE__ */ m(re, {
346
+ ticks: B.ticks,
347
+ minorLimits: O,
348
+ minorValues: k,
349
+ majorValues: A,
350
+ onChange: this.changeTicks
351
+ }) }) }),
352
+ /* @__PURE__ */ h(me, { children: [
353
+ e.widthEnabled && /* @__PURE__ */ m(ee, {
354
+ size: B,
355
+ min: E.min,
356
+ max: E.max,
357
+ step: E.step,
358
+ onChange: this.changeSize
359
+ }),
360
+ /* @__PURE__ */ m("div", {}),
361
+ /* @__PURE__ */ m(te, {
362
+ arrows: B.arrows,
363
+ onChange: this.changeArrows
364
+ })
365
+ ] }),
366
+ X && /* @__PURE__ */ m(M, { children: X }),
367
+ /* @__PURE__ */ m(o, {
368
+ onMoveElement: () => {},
369
+ onDeleteElements: () => {},
370
+ onAddElement: () => {},
371
+ onClearElements: () => {},
372
+ onUndoElement: () => {},
373
+ minWidth: E.min,
374
+ maxWidth: E.max,
375
+ maxHeight: 70,
376
+ model: C(Z)
377
+ }),
378
+ ye && /* @__PURE__ */ m(pe, {
379
+ label: y?.label || "Title",
380
+ children: /* @__PURE__ */ m(x, {
381
+ markup: B.title || "",
382
+ onChange: this.changeGraphTitle,
383
+ toolbarOpts: Q,
384
+ activePlugins: [
385
+ "bold",
386
+ "html",
387
+ "italic",
388
+ "underline",
389
+ "strikethrough",
390
+ "image",
391
+ "math",
392
+ "languageCharacters",
393
+ "responseArea"
394
+ ],
395
+ pluginProps: $(y?.inputConfiguration),
396
+ spellCheck: R,
397
+ imageSupport: s,
398
+ uploadSoundSupport: a,
399
+ languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
400
+ mathMlOptions: T
401
+ })
402
+ }),
403
+ !B.exhibitOnly && /* @__PURE__ */ h(d.Fragment, { children: [
404
+ /* @__PURE__ */ h(c, {
405
+ header: "Define Tool Set and Correct Response",
406
+ children: ["Select answer type and place it on the number line. Intersecting points, line segments and/or rays will appear above the number line. ", /* @__PURE__ */ m("i", { children: "Note: A maximum of 20 points, line segments or rays may be plotted." })]
407
+ }),
408
+ /* @__PURE__ */ m(c, {
409
+ header: "Available Tools",
410
+ mini: !0,
411
+ children: "Click on the input options to be displayed to the students. All inputs will display by default."
412
+ }),
413
+ /* @__PURE__ */ m(fe, { children: /* @__PURE__ */ m(ne, {
414
+ onSelectionChange: this.availableTypesChange,
415
+ selection: B.availableTypes,
416
+ availableTools: F,
417
+ hideButtons: P
418
+ }) }),
419
+ /* @__PURE__ */ h(he, { children: [
420
+ /* @__PURE__ */ m("label", { children: "Max No of Elements" }),
421
+ /* @__PURE__ */ m(ue, {
422
+ min: 1,
423
+ max: N,
424
+ onlyIntegersAllowed: !0,
425
+ value: B.maxNumberOfPoints,
426
+ onChange: this.changeMaxNoOfPoints
427
+ }),
428
+ K && /* @__PURE__ */ m(M, { children: K })
429
+ ] }),
430
+ /* @__PURE__ */ m("label", { children: "Correct Answer" }),
431
+ /* @__PURE__ */ m(o, {
432
+ onMoveElement: this.moveCorrectResponse,
433
+ onDeleteElements: this.deleteCorrectResponse,
434
+ onAddElement: this.addCorrectResponse,
435
+ onClearElements: this.clearCorrectResponse,
436
+ onUndoElement: this.undoCorrectResponse,
437
+ minWidth: E.min,
438
+ maxWidth: E.max,
439
+ answer: Ce,
440
+ model: C(e)
441
+ }),
442
+ U && /* @__PURE__ */ m(M, { children: U })
443
+ ] }),
444
+ /* @__PURE__ */ m(_, {
445
+ open: V.open,
446
+ title: "Warning",
447
+ text: V.text,
448
+ onConfirm: () => this.setState({ dialog: { open: !1 } })
449
+ }),
450
+ /* @__PURE__ */ m(_, {
451
+ open: H.open,
452
+ title: "Warning",
453
+ text: H.text,
454
+ onConfirm: () => {
455
+ let e = this.state.correctAnswerDialog.indices;
456
+ e && e.length > 0 && this.deleteCorrectResponse(e), this.setState({ correctAnswerDialog: { open: !1 } });
457
+ },
458
+ onClose: () => {
459
+ let e = this.state.correctAnswerDialog.graph;
460
+ n({ graph: e }), this.setState({ correctAnswerDialog: { open: !1 } });
461
+ },
462
+ onConfirmText: "OK",
463
+ onCloseText: "Cancel"
464
+ }),
465
+ xe && /* @__PURE__ */ h(j, {
466
+ label: S.label || "Rationale",
467
+ children: [/* @__PURE__ */ m(x, {
468
+ markup: e.rationale || "",
469
+ onChange: (e) => n({ rationale: e }),
470
+ error: J,
471
+ toolbarOpts: Q,
472
+ spellCheck: R,
473
+ pluginProps: $(S?.inputConfiguration),
474
+ imageSupport: s,
475
+ uploadSoundSupport: a,
476
+ languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
477
+ mathMlOptions: T
478
+ }), J && /* @__PURE__ */ m(M, { children: J })]
479
+ })
480
+ ]
481
+ });
482
+ }
483
+ };
484
+ //#endregion
485
+ export { P as default };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/configure/src/number-text-field.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ declare const MiniField: any;
11
+ declare const NumberTextField: (props: any) => React.JSX.Element;
12
+ export { MiniField };
13
+ export default NumberTextField;
@@ -0,0 +1,13 @@
1
+ import "react";
2
+ import { styled as e } from "@mui/material/styles";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import { NumberTextField as n } from "@pie-lib/config-ui";
5
+ //#region src/author/number-text-field.tsx
6
+ var r = e(n)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
7
+ e(n)({ maxWidth: "100px" });
8
+ var i = (e) => /* @__PURE__ */ t(r, {
9
+ ...e,
10
+ variant: "outlined"
11
+ });
12
+ //#endregion
13
+ export { i as default };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/configure/src/point-config.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare class PointConfig extends React.Component {
12
+ static propTypes: {
13
+ onSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
14
+ selection: PropTypes.Requireable<object>;
15
+ availableTools: PropTypes.Requireable<any[]>;
16
+ hideButtons: PropTypes.Requireable<boolean>;
17
+ };
18
+ constructor(props: any);
19
+ toggle(point: any): void;
20
+ toggleAll(value: any): void;
21
+ _propsUpdate(selection: any): void;
22
+ active(point: any): boolean;
23
+ render(): React.JSX.Element;
24
+ }
25
+ export default PointConfig;
@@ -0,0 +1,69 @@
1
+ import { point_chooser_exports as e } from "../delivery/number-line/point-chooser/index.js";
2
+ import t from "react";
3
+ import { styled as n } from "@mui/material/styles";
4
+ import r from "prop-types";
5
+ import i from "@mui/material/Button";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ //#region src/author/point-config.tsx
8
+ var { Point: s } = e, c = n("div")(({ theme: e }) => ({
9
+ paddingTop: e.spacing(2.5),
10
+ "& > :first-child": { marginRight: e.spacing(1) }
11
+ })), l = class e extends t.Component {
12
+ static propTypes = {
13
+ onSelectionChange: r.func,
14
+ selection: r.object,
15
+ availableTools: r.array,
16
+ hideButtons: r.bool
17
+ };
18
+ constructor(e) {
19
+ super(e);
20
+ }
21
+ toggle(e) {
22
+ let t = { ...this.props.selection };
23
+ t[e] = !t[e], this._propsUpdate(t);
24
+ }
25
+ toggleAll(t) {
26
+ let n = [...e.types].reduce((e, n) => (e[n] = t, e), {});
27
+ this._propsUpdate(n);
28
+ }
29
+ _propsUpdate(e) {
30
+ this.props.onSelectionChange(e);
31
+ }
32
+ active(e) {
33
+ return this.props.selection[e] === !0;
34
+ }
35
+ render() {
36
+ let { availableTools: e, hideButtons: t = !1 } = this.props;
37
+ return /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("div", { children: (e || []).map((e) => /* @__PURE__ */ a(s, {
38
+ iconKey: e.toLowerCase(),
39
+ onClick: this.toggle.bind(this, e),
40
+ active: this.active(e)
41
+ }, e.toLowerCase())) }), /* @__PURE__ */ o(c, {
42
+ hidden: t,
43
+ children: [/* @__PURE__ */ a(i, {
44
+ variant: "outlined",
45
+ size: "small",
46
+ onClick: this.toggleAll.bind(this, !0),
47
+ children: "Select All"
48
+ }), /* @__PURE__ */ a(i, {
49
+ variant: "outlined",
50
+ size: "small",
51
+ onClick: this.toggleAll.bind(this, !1),
52
+ children: "None"
53
+ })]
54
+ })] });
55
+ }
56
+ };
57
+ l.types = [
58
+ "PF",
59
+ "LFF",
60
+ "LEF",
61
+ "LFE",
62
+ "LEE",
63
+ "RFN",
64
+ "RFP",
65
+ "REN",
66
+ "REP"
67
+ ];
68
+ //#endregion
69
+ export { l as default };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/configure/src/size.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare const Size: {
12
+ (props: any): React.JSX.Element;
13
+ propTypes: {
14
+ size: PropTypes.Requireable<PropTypes.InferProps<{
15
+ width: PropTypes.Requireable<number>;
16
+ height: PropTypes.Requireable<number>;
17
+ }>>;
18
+ min: PropTypes.Requireable<number>;
19
+ max: PropTypes.Requireable<number>;
20
+ step: PropTypes.Requireable<number>;
21
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
22
+ };
23
+ };
24
+ export default Size;