@pie-element/number-line 13.1.0-next.19 → 13.1.1-next.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 (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 +59 -21
  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,5 @@
1
+ import { color as e } from "@pie-lib/render-ui";
2
+ //#region src/delivery/number-line/colors.ts
3
+ var t = e.primaryDark(), n = e.correct(), r = e.incorrect();
4
+ //#endregion
5
+ export { n as correct, r as incorrect, t as selected };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/feedback.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 PropTypes from 'prop-types';
10
+ import React from 'react';
11
+ declare const Feedback: {
12
+ (props: any): React.JSX.Element;
13
+ propTypes: {
14
+ width: PropTypes.Requireable<number>;
15
+ message: PropTypes.Requireable<string>;
16
+ type: PropTypes.Requireable<string>;
17
+ };
18
+ };
19
+ export default Feedback;
@@ -0,0 +1,57 @@
1
+ import { useRef as e } from "react";
2
+ import { styled as t } from "@mui/material/styles";
3
+ import n from "prop-types";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { color as a } from "@pie-lib/render-ui";
6
+ import { CSSTransition as o, TransitionGroup as s } from "react-transition-group";
7
+ import { Correct as c, Incorrect as l, NothingSubmitted as u, PartiallyCorrect as d, ShowRationale as f } from "@pie-lib/icons";
8
+ //#region src/delivery/number-line/feedback.tsx
9
+ var p = (e) => {
10
+ switch (e) {
11
+ case "unanswered": return u;
12
+ case "correct": return c;
13
+ case "incorrect": return l;
14
+ case "partial": return d;
15
+ case "info": return f;
16
+ default: return;
17
+ }
18
+ }, m = t("div")(({ $type: e }) => ({
19
+ marginTop: "10px",
20
+ backgroundColor: "#dddddd",
21
+ padding: "10px",
22
+ display: "flex",
23
+ alignItems: "center",
24
+ ...e === "correct" && { backgroundColor: a.correct() },
25
+ ...e === "incorrect" && { backgroundColor: a.incorrect() },
26
+ "& svg": { height: "30px" },
27
+ "& h1": {
28
+ padding: "0px",
29
+ margin: "0px"
30
+ }
31
+ })), h = t("span")({
32
+ paddingLeft: "5px",
33
+ userSelect: "none"
34
+ }), g = (t) => {
35
+ let { type: n, width: a, message: c } = t, l = p(n), u = e(null);
36
+ return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(o, {
37
+ classNames: "fb",
38
+ timeout: 300,
39
+ nodeRef: u,
40
+ children: /* @__PURE__ */ i(m, {
41
+ ref: u,
42
+ $type: n,
43
+ style: { width: a },
44
+ children: [/* @__PURE__ */ r(l, {
45
+ iconSet: "emoji",
46
+ shape: "square"
47
+ }), /* @__PURE__ */ r(h, { dangerouslySetInnerHTML: { __html: c } })]
48
+ }, "panel")
49
+ }, "fb") });
50
+ };
51
+ g.propTypes = {
52
+ width: n.number,
53
+ message: n.string,
54
+ type: n.string
55
+ };
56
+ //#endregion
57
+ export { g as default };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/graph/arrow.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 function Arrow({ x, y, direction, className }: {
12
+ x: any;
13
+ y: any;
14
+ direction: any;
15
+ className: any;
16
+ }): React.JSX.Element;
17
+ export declare namespace Arrow {
18
+ var propTypes: {
19
+ y: PropTypes.Requireable<number>;
20
+ x: PropTypes.Requireable<number>;
21
+ direction: PropTypes.Requireable<string>;
22
+ className: PropTypes.Requireable<string>;
23
+ };
24
+ var defaultProps: {
25
+ y: number;
26
+ x: number;
27
+ direction: string;
28
+ };
29
+ }
30
+ export default Arrow;
@@ -0,0 +1,27 @@
1
+ import "react";
2
+ import { styled as e } from "@mui/material/styles";
3
+ import t from "prop-types";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import { color as r } from "@pie-lib/render-ui";
6
+ //#region src/delivery/number-line/graph/arrow.tsx
7
+ var i = e("path")({ fill: r.primary() });
8
+ function a({ x: e, y: t, direction: r, className: a }) {
9
+ let o = `translate(${e || 0},${t})`;
10
+ return r && r === "right" && (o += " rotate(180)"), /* @__PURE__ */ n(i, {
11
+ d: "m 0,0 8,-5 0,10 -8,-5",
12
+ transform: o,
13
+ className: a
14
+ });
15
+ }
16
+ a.propTypes = {
17
+ y: t.number,
18
+ x: t.number,
19
+ direction: t.oneOf(["left", "right"]),
20
+ className: t.string
21
+ }, a.defaultProps = {
22
+ y: 0,
23
+ x: 0,
24
+ direction: "left"
25
+ };
26
+ //#endregion
27
+ export { a as default };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/graph/elements/base.js
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 PropTypes from 'prop-types';
10
+ export declare const basePropTypes: () => {
11
+ interval: PropTypes.Validator<number>;
12
+ domain: PropTypes.Requireable<PropTypes.InferProps<{
13
+ min: PropTypes.Validator<number>;
14
+ max: PropTypes.Validator<number>;
15
+ }>>;
16
+ };
@@ -0,0 +1,11 @@
1
+ import e from "prop-types";
2
+ //#region src/delivery/number-line/graph/elements/base.ts
3
+ var t = () => ({
4
+ interval: e.number.isRequired,
5
+ domain: e.shape({
6
+ min: e.number.isRequired,
7
+ max: e.number.isRequired
8
+ })
9
+ });
10
+ //#endregion
11
+ export { t as basePropTypes };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/graph/elements/builder.js
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
+ export declare function buildElementModel(position: any, elementType: any, domain: any, interval: any): {
10
+ position: any;
11
+ type: string;
12
+ pointType: string;
13
+ leftPoint?: undefined;
14
+ rightPoint?: undefined;
15
+ direction?: undefined;
16
+ } | {
17
+ type: string;
18
+ leftPoint: string;
19
+ rightPoint: string;
20
+ position: {
21
+ left: any;
22
+ right: any;
23
+ };
24
+ pointType?: undefined;
25
+ direction?: undefined;
26
+ } | {
27
+ type: string;
28
+ direction: string;
29
+ pointType: string;
30
+ position: any;
31
+ leftPoint?: undefined;
32
+ rightPoint?: undefined;
33
+ } | undefined;
@@ -0,0 +1,30 @@
1
+ //#region src/delivery/number-line/graph/elements/builder.ts
2
+ function e(e, t, n, r) {
3
+ if (t.startsWith("p")) return {
4
+ position: e,
5
+ type: "point",
6
+ pointType: t.endsWith("e") ? "empty" : "full"
7
+ };
8
+ if (t.startsWith("l")) {
9
+ let i = e + r <= n.max ? e : e - r, a = i + r;
10
+ return {
11
+ type: "line",
12
+ leftPoint: t.charAt(1) === "e" ? "empty" : "full",
13
+ rightPoint: t.charAt(2) === "e" ? "empty" : "full",
14
+ position: {
15
+ left: i,
16
+ right: a
17
+ }
18
+ };
19
+ } else if (t.startsWith("r")) {
20
+ let n = t.charAt(1) === "f";
21
+ return {
22
+ type: "ray",
23
+ direction: t.charAt(2) === "p" ? "positive" : "negative",
24
+ pointType: n ? "full" : "empty",
25
+ position: e
26
+ };
27
+ }
28
+ }
29
+ //#endregion
30
+ export { e as buildElementModel };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/graph/elements/line.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 class Line extends React.Component {
12
+ static propTypes: {
13
+ empty: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
14
+ left: PropTypes.Validator<boolean>;
15
+ right: PropTypes.Validator<boolean>;
16
+ }>>>;
17
+ position: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
18
+ left: PropTypes.Validator<number>;
19
+ right: PropTypes.Validator<number>;
20
+ }>>>;
21
+ y: PropTypes.Requireable<number>;
22
+ selected: PropTypes.Requireable<boolean>;
23
+ disabled: PropTypes.Requireable<boolean>;
24
+ correct: PropTypes.Requireable<boolean>;
25
+ onMoveLine: PropTypes.Validator<(...args: any[]) => any>;
26
+ onToggleSelect: PropTypes.Validator<(...args: any[]) => any>;
27
+ onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
28
+ onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
29
+ interval: PropTypes.Validator<number>;
30
+ domain: PropTypes.Requireable<PropTypes.InferProps<{
31
+ min: PropTypes.Validator<number>;
32
+ max: PropTypes.Validator<number>;
33
+ }>>;
34
+ };
35
+ static defaultProps: {
36
+ selected: boolean;
37
+ y: number;
38
+ disabled: boolean;
39
+ correct: undefined;
40
+ };
41
+ static contextTypes: {
42
+ xScale: PropTypes.Validator<(...args: any[]) => any>;
43
+ snapValue: PropTypes.Validator<(...args: any[]) => any>;
44
+ };
45
+ constructor(props: any);
46
+ UNSAFE_componentWillReceiveProps(nextProps: any): void;
47
+ onDrag(side: any, p: any): void;
48
+ onMove(side: any, d: any): void;
49
+ render(): React.JSX.Element;
50
+ }
51
+ export default Line;
@@ -0,0 +1,189 @@
1
+ import e from "../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
2
+ import t from "../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js";
3
+ import { Draggable as n } from "../../../draggable/index.js";
4
+ import r from "./point.js";
5
+ import { basePropTypes as i } from "./base.js";
6
+ import a from "react";
7
+ import { styled as o } from "@mui/material/styles";
8
+ import s from "prop-types";
9
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
+ import { color as u } from "@pie-lib/render-ui";
11
+ //#region src/delivery/number-line/graph/elements/line.tsx
12
+ var d = "150ms", f = o("g")(({ $disabled: e, $selected: t, $correct: n }) => ({
13
+ "& .line-handle": {
14
+ stroke: u.primary(),
15
+ cursor: "pointer",
16
+ strokeWidth: "5px",
17
+ transition: `opacity ${d} linear,
18
+ stroke-width ${d} linear,
19
+ stroke ${d} linear`
20
+ },
21
+ "&.dnd-kit-dragging": {
22
+ opacity: .6,
23
+ "& .line-handle": {
24
+ opacity: 1,
25
+ strokeWidth: "12px"
26
+ }
27
+ },
28
+ ...e && {
29
+ cursor: "not-allowed",
30
+ opacity: .8
31
+ },
32
+ ...t && { "& .line-handle": { stroke: u.primaryDark() } },
33
+ ...n === !0 && { "& .line-handle": {
34
+ cursor: "inherit",
35
+ stroke: u.correct()
36
+ } },
37
+ ...n === !1 && { "& .line-handle": {
38
+ cursor: "inherit",
39
+ stroke: u.incorrect()
40
+ } }
41
+ })), p = class extends a.Component {
42
+ static propTypes = {
43
+ ...i(),
44
+ empty: s.shape({
45
+ left: s.bool.isRequired,
46
+ right: s.bool.isRequired
47
+ }).isRequired,
48
+ position: s.shape({
49
+ left: s.number.isRequired,
50
+ right: s.number.isRequired
51
+ }).isRequired,
52
+ y: s.number,
53
+ selected: s.bool,
54
+ disabled: s.bool,
55
+ correct: s.bool,
56
+ onMoveLine: s.func.isRequired,
57
+ onToggleSelect: s.func.isRequired,
58
+ onDragStart: s.func,
59
+ onDragStop: s.func
60
+ };
61
+ static defaultProps = {
62
+ selected: !1,
63
+ y: 0,
64
+ disabled: !1,
65
+ correct: void 0
66
+ };
67
+ static contextTypes = {
68
+ xScale: s.func.isRequired,
69
+ snapValue: s.func.isRequired
70
+ };
71
+ constructor(e) {
72
+ super(e), this.state = {
73
+ left: null,
74
+ right: null
75
+ };
76
+ }
77
+ UNSAFE_componentWillReceiveProps(e) {
78
+ if (e) {
79
+ let { position: t } = e;
80
+ this.setState({
81
+ left: t.left,
82
+ right: t.right
83
+ });
84
+ }
85
+ }
86
+ onDrag(e, t) {
87
+ let { domain: n } = this.props;
88
+ if (t >= n.min && t <= n.max) {
89
+ let n = {};
90
+ n[e] = t, this.setState(n);
91
+ }
92
+ }
93
+ onMove(e, t) {
94
+ let { position: n } = this.props, r = {
95
+ left: n.left,
96
+ right: n.right
97
+ };
98
+ r[e] = t, this.props.onMoveLine(r);
99
+ }
100
+ render() {
101
+ let { interval: i, empty: a, position: o, domain: s, y: u, selected: d, disabled: p, correct: m } = this.props, { xScale: h } = this.context, { onDrag: g, onMove: _ } = this, v = _.bind(this, "left"), y = _.bind(this, "right"), b = g.bind(this, "left"), x = g.bind(this, "right"), S = t(this.state.left) ? this.state.left : o.left, C = t(this.state.right) ? this.state.right : o.right, w = h(i) - h(0), T = (e) => e.nativeEvent.preventDefault(), E = () => {
102
+ this.props.onToggleSelect();
103
+ }, D = () => {
104
+ this.props.onToggleSelect();
105
+ }, O = (t) => {
106
+ if (Math.abs(t) < w / 10) {
107
+ this.props.onToggleSelect();
108
+ return;
109
+ }
110
+ let n = h.invert(t + h(0)), r = {
111
+ left: o.left + n,
112
+ right: o.right + n
113
+ };
114
+ e(r, this.props.position) || this.props.onMoveLine(r);
115
+ }, k = {
116
+ left: (s.min - o.left) / i * w,
117
+ right: (s.max - o.right) / i * w
118
+ }, A = {
119
+ interval: i,
120
+ selected: d,
121
+ disabled: p,
122
+ correct: m
123
+ };
124
+ return /* @__PURE__ */ c(n, {
125
+ id: `line-${o.left}-${o.right}-${u}`,
126
+ disabled: p,
127
+ grid: [w],
128
+ bounds: k,
129
+ onMouseDown: T,
130
+ onDragEnd: O,
131
+ children: ({ setNodeRef: e, attributes: t, listeners: n, translateX: i, isDragging: g, onMouseDown: _ }) => /* @__PURE__ */ c(f, {
132
+ ref: e,
133
+ $disabled: p,
134
+ $selected: d,
135
+ $correct: m,
136
+ className: g ? "dnd-kit-dragging" : void 0,
137
+ onMouseDown: _,
138
+ ...t,
139
+ children: /* @__PURE__ */ l("g", {
140
+ transform: `translate(${i}, ${u})`,
141
+ children: [
142
+ /* @__PURE__ */ c("rect", {
143
+ x: h(S),
144
+ width: Math.abs(h(C) - h(S)),
145
+ fill: "red",
146
+ fillOpacity: "0.0",
147
+ y: "-8",
148
+ height: 16,
149
+ onClick: D
150
+ }),
151
+ /* @__PURE__ */ c("line", {
152
+ className: "line-handle",
153
+ x1: h(S),
154
+ x2: h(C),
155
+ onClick: E,
156
+ ...n
157
+ }),
158
+ /* @__PURE__ */ c(r, {
159
+ ...A,
160
+ empty: a.left,
161
+ bounds: {
162
+ left: s.min - o.left,
163
+ right: s.max - o.left
164
+ },
165
+ position: o.left,
166
+ onDrag: b,
167
+ onMove: v,
168
+ onClick: D
169
+ }),
170
+ /* @__PURE__ */ c(r, {
171
+ ...A,
172
+ empty: a.right,
173
+ bounds: {
174
+ left: s.min - o.right,
175
+ right: s.max - o.right
176
+ },
177
+ position: o.right,
178
+ onDrag: x,
179
+ onMove: y,
180
+ onClick: D
181
+ })
182
+ ]
183
+ })
184
+ })
185
+ });
186
+ }
187
+ };
188
+ //#endregion
189
+ export { p as default };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/graph/elements/point.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 class Point extends React.Component {
12
+ static defaultProps: {
13
+ y: number;
14
+ selected: boolean;
15
+ empty: boolean;
16
+ disabled: boolean;
17
+ correct: undefined;
18
+ };
19
+ static propTypes: {
20
+ interval: PropTypes.Validator<number>;
21
+ position: PropTypes.Validator<number>;
22
+ bounds: PropTypes.Requireable<PropTypes.InferProps<{
23
+ left: PropTypes.Validator<number>;
24
+ right: PropTypes.Validator<number>;
25
+ }>>;
26
+ selected: PropTypes.Requireable<boolean>;
27
+ disabled: PropTypes.Requireable<boolean>;
28
+ correct: PropTypes.Requireable<boolean>;
29
+ empty: PropTypes.Requireable<boolean>;
30
+ y: PropTypes.Requireable<number>;
31
+ onMove: PropTypes.Validator<(...args: any[]) => any>;
32
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ onDrag: PropTypes.Requireable<(...args: any[]) => any>;
34
+ onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
35
+ onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
36
+ };
37
+ static contextTypes: {
38
+ xScale: PropTypes.Validator<(...args: any[]) => any>;
39
+ snapValue: PropTypes.Validator<(...args: any[]) => any>;
40
+ };
41
+ render(): React.JSX.Element;
42
+ }
43
+ export default Point;
@@ -0,0 +1,127 @@
1
+ import { Draggable as e } from "../../../draggable/index.js";
2
+ import t from "react";
3
+ import { styled as n } from "@mui/material/styles";
4
+ import r from "prop-types";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { color as o } from "@pie-lib/render-ui";
7
+ //#region src/delivery/number-line/graph/elements/point.tsx
8
+ var s = "150ms", c = n("circle")(({ $selected: e, $disabled: t, $correct: n, $empty: r }) => ({
9
+ cursor: "pointer",
10
+ transition: `r ${s} linear,
11
+ opacity ${s} linear,
12
+ fill ${s} linear,
13
+ stroke ${s} linear`,
14
+ stroke: o.primary(),
15
+ fill: o.primary(),
16
+ "&.dnd-kit-dragging": {
17
+ opacity: .25,
18
+ r: "10px"
19
+ },
20
+ "&:hover": { stroke: o.primaryDark() },
21
+ ...e && { stroke: o.primaryDark() },
22
+ ...t && {
23
+ cursor: "not-allowed",
24
+ opacity: .8
25
+ },
26
+ ...n === !0 && {
27
+ cursor: "inherit",
28
+ stroke: o.correct(),
29
+ fill: o.correct()
30
+ },
31
+ ...n === !1 && {
32
+ cursor: "inherit",
33
+ stroke: o.incorrect(),
34
+ fill: o.incorrect()
35
+ },
36
+ ...r && { fill: "white" }
37
+ })), l = class extends t.Component {
38
+ static defaultProps = {
39
+ y: 0,
40
+ selected: !1,
41
+ empty: !1,
42
+ disabled: !1,
43
+ correct: void 0
44
+ };
45
+ static propTypes = {
46
+ interval: r.number.isRequired,
47
+ position: r.number.isRequired,
48
+ bounds: r.shape({
49
+ left: r.number.isRequired,
50
+ right: r.number.isRequired
51
+ }),
52
+ selected: r.bool,
53
+ disabled: r.bool,
54
+ correct: r.bool,
55
+ empty: r.bool,
56
+ y: r.number,
57
+ onMove: r.func.isRequired,
58
+ onClick: r.func,
59
+ onDrag: r.func,
60
+ onDragStop: r.func,
61
+ onDragStart: r.func
62
+ };
63
+ static contextTypes = {
64
+ xScale: r.func.isRequired,
65
+ snapValue: r.func.isRequired
66
+ };
67
+ render() {
68
+ let { onDragStop: t, onDragStart: n, onDrag: r, onClick: s, onMove: l, interval: u, y: d, bounds: f, selected: p, position: m, disabled: h, correct: g, empty: _ } = this.props, { snapValue: v, xScale: y } = this.context, b = y(u) - y(0), x = (e) => {
69
+ let t = e + y(0);
70
+ return v(m + y.invert(t));
71
+ }, S = f ? {
72
+ left: f.left / u * b,
73
+ right: f.right / u * b
74
+ } : null;
75
+ return /* @__PURE__ */ i(e, {
76
+ id: `point-${m}-${d}`,
77
+ disabled: h,
78
+ grid: [b],
79
+ bounds: S,
80
+ onMouseDown: (e) => e.nativeEvent.preventDefault(),
81
+ onDragStart: () => {
82
+ n && n();
83
+ },
84
+ onDragMove: (e) => {
85
+ let t = x(e);
86
+ r && r(t);
87
+ },
88
+ onDragEnd: (e) => {
89
+ if (t && t(), Math.abs(e) < b / 10) {
90
+ s && s();
91
+ return;
92
+ }
93
+ l(x(e));
94
+ },
95
+ children: ({ setNodeRef: e, attributes: t, listeners: n, translateX: r, isDragging: s, onMouseDown: l }) => /* @__PURE__ */ a("g", {
96
+ ref: e,
97
+ onMouseDown: l,
98
+ transform: `translate(${r}, 0)`,
99
+ ...t,
100
+ ...n,
101
+ children: [/* @__PURE__ */ i("circle", {
102
+ r: "20",
103
+ strokeWidth: "3",
104
+ style: {
105
+ fill: "transparent",
106
+ pointerEvents: "visibleStroke"
107
+ },
108
+ cx: y(m),
109
+ cy: d,
110
+ stroke: p ? o.primaryDark() : "none"
111
+ }), /* @__PURE__ */ i(c, {
112
+ r: "5",
113
+ strokeWidth: "3",
114
+ cx: y(m),
115
+ cy: d,
116
+ $selected: p,
117
+ $disabled: h,
118
+ $correct: g,
119
+ $empty: _,
120
+ className: s ? "dnd-kit-dragging" : void 0
121
+ })]
122
+ })
123
+ });
124
+ }
125
+ };
126
+ //#endregion
127
+ export { l as default };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/number-line/src/number-line/graph/elements/ray.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 class Ray extends React.Component {
12
+ static propTypes: {
13
+ width: PropTypes.Validator<number>;
14
+ selected: PropTypes.Requireable<boolean>;
15
+ disabled: PropTypes.Requireable<boolean>;
16
+ empty: PropTypes.Requireable<boolean>;
17
+ direction: PropTypes.Requireable<string>;
18
+ y: PropTypes.Requireable<number>;
19
+ position: PropTypes.Validator<number>;
20
+ onMove: PropTypes.Validator<(...args: any[]) => any>;
21
+ onToggleSelect: PropTypes.Validator<(...args: any[]) => any>;
22
+ interval: PropTypes.Validator<number>;
23
+ domain: PropTypes.Requireable<PropTypes.InferProps<{
24
+ min: PropTypes.Validator<number>;
25
+ max: PropTypes.Validator<number>;
26
+ }>>;
27
+ };
28
+ static defaultProps: {
29
+ selected: boolean;
30
+ direction: string;
31
+ y: number;
32
+ disabled: boolean;
33
+ };
34
+ static contextTypes: {
35
+ xScale: PropTypes.Validator<(...args: any[]) => any>;
36
+ snapValue: PropTypes.Validator<(...args: any[]) => any>;
37
+ };
38
+ constructor(props: any);
39
+ drag(p: any): void;
40
+ stopDrag(): void;
41
+ render(): React.JSX.Element;
42
+ }
43
+ export default Ray;