@pie-element/number-line 13.1.1 → 13.1.2-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 (381) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +11 -0
  4. package/dist/author/arrows.d.ts +28 -0
  5. package/dist/author/arrows.js +69 -0
  6. package/dist/author/card-bar.d.ts +20 -0
  7. package/dist/author/card-bar.js +41 -0
  8. package/dist/author/defaults.d.ts +178 -0
  9. package/dist/author/defaults.js +144 -0
  10. package/dist/author/domain.d.ts +15 -0
  11. package/dist/author/domain.js +54 -0
  12. package/dist/author/index.d.ts +23 -0
  13. package/dist/author/index.js +89 -0
  14. package/dist/author/main.d.ts +44 -0
  15. package/dist/author/main.js +485 -0
  16. package/dist/author/number-text-field.d.ts +13 -0
  17. package/dist/author/number-text-field.js +13 -0
  18. package/dist/author/point-config.d.ts +25 -0
  19. package/dist/author/point-config.js +69 -0
  20. package/dist/author/size.d.ts +24 -0
  21. package/dist/author/size.js +48 -0
  22. package/dist/author/ticks.d.ts +22 -0
  23. package/dist/author/ticks.js +115 -0
  24. package/dist/author/utils.d.ts +9 -0
  25. package/dist/author/utils.js +4 -0
  26. package/dist/browser/_baseSet-ycZx94p7.js +8672 -0
  27. package/dist/browser/_baseSet-ycZx94p7.js.map +1 -0
  28. package/dist/browser/author/index.js +40436 -0
  29. package/dist/browser/author/index.js.map +1 -0
  30. package/dist/browser/controller/index.js +823 -0
  31. package/dist/browser/controller/index.js.map +1 -0
  32. package/dist/browser/delivery/index.js +2 -0
  33. package/dist/browser/delivery-Dh8QdqpO.js +17950 -0
  34. package/dist/browser/delivery-Dh8QdqpO.js.map +1 -0
  35. package/dist/browser/number-line.css +2 -0
  36. package/dist/browser/uniqWith-CKN50xMI.js +17886 -0
  37. package/dist/browser/uniqWith-CKN50xMI.js.map +1 -0
  38. package/dist/controller/defaults.d.ts +58 -0
  39. package/dist/controller/defaults.js +50 -0
  40. package/dist/controller/index.d.ts +33 -0
  41. package/dist/controller/index.js +170 -0
  42. package/dist/controller/tickUtils.d.ts +20 -0
  43. package/dist/controller/tickUtils.js +254 -0
  44. package/dist/controller/utils.d.ts +9 -0
  45. package/dist/controller/utils.js +68 -0
  46. package/dist/delivery/data-converter.d.ts +64 -0
  47. package/dist/delivery/data-converter.js +70 -0
  48. package/dist/delivery/draggable/index.d.ts +33 -0
  49. package/dist/delivery/draggable/index.js +39 -0
  50. package/dist/delivery/index.d.ts +35 -0
  51. package/dist/delivery/index.js +109 -0
  52. package/dist/delivery/number-line/colors.d.ts +11 -0
  53. package/dist/delivery/number-line/colors.js +5 -0
  54. package/dist/delivery/number-line/feedback.d.ts +19 -0
  55. package/dist/delivery/number-line/feedback.js +57 -0
  56. package/dist/delivery/number-line/graph/arrow.d.ts +30 -0
  57. package/dist/delivery/number-line/graph/arrow.js +27 -0
  58. package/dist/delivery/number-line/graph/elements/base.d.ts +16 -0
  59. package/dist/delivery/number-line/graph/elements/base.js +11 -0
  60. package/dist/delivery/number-line/graph/elements/builder.d.ts +33 -0
  61. package/dist/delivery/number-line/graph/elements/builder.js +30 -0
  62. package/dist/delivery/number-line/graph/elements/line.d.ts +51 -0
  63. package/dist/delivery/number-line/graph/elements/line.js +189 -0
  64. package/dist/delivery/number-line/graph/elements/point.d.ts +43 -0
  65. package/dist/delivery/number-line/graph/elements/point.js +127 -0
  66. package/dist/delivery/number-line/graph/elements/ray.d.ts +43 -0
  67. package/dist/delivery/number-line/graph/elements/ray.js +130 -0
  68. package/dist/delivery/number-line/graph/index.d.ts +59 -0
  69. package/dist/delivery/number-line/graph/index.js +196 -0
  70. package/dist/delivery/number-line/graph/line.d.ts +46 -0
  71. package/dist/delivery/number-line/graph/line.js +27 -0
  72. package/dist/delivery/number-line/graph/stacks.d.ts +10 -0
  73. package/dist/delivery/number-line/graph/stacks.js +40 -0
  74. package/dist/delivery/number-line/graph/tick-utils.d.ts +73 -0
  75. package/dist/delivery/number-line/graph/tick-utils.js +297 -0
  76. package/dist/delivery/number-line/graph/ticks.d.ts +46 -0
  77. package/dist/delivery/number-line/graph/ticks.js +115 -0
  78. package/dist/delivery/number-line/index.d.ts +35 -0
  79. package/dist/delivery/number-line/index.js +218 -0
  80. package/dist/delivery/number-line/point-chooser/button.d.ts +31 -0
  81. package/dist/delivery/number-line/point-chooser/button.js +36 -0
  82. package/dist/delivery/number-line/point-chooser/img.d.ts +10 -0
  83. package/dist/delivery/number-line/point-chooser/img.js +4 -0
  84. package/dist/delivery/number-line/point-chooser/index.d.ts +37 -0
  85. package/dist/delivery/number-line/point-chooser/index.js +154 -0
  86. package/dist/delivery/number-line/point-chooser/styles.d.ts +192 -0
  87. package/dist/delivery/number-line/transitions/fade.d.ts +34 -0
  88. package/dist/delivery/number-line/transitions/fade.js +75 -0
  89. package/dist/delivery/number-line/transitions/index.d.ts +10 -0
  90. package/dist/index.d.ts +1 -0
  91. package/dist/index.iife.d.ts +8 -0
  92. package/dist/index.iife.js +201 -0
  93. package/dist/index.js +2 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +8 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +19 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +15 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +6 -0
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  233. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  234. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  235. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  236. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  237. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  238. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
  239. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  240. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  241. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  242. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  243. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  244. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  245. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  246. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
  247. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
  248. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
  249. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  250. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  251. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  252. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  253. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  254. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  255. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  256. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  257. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  258. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js +9 -0
  259. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  260. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  261. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  262. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js +9 -0
  263. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  264. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  265. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +14 -0
  266. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  267. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  268. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  269. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  270. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  271. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  272. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +8 -0
  273. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/negate.js +17 -0
  274. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
  275. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js +9 -0
  276. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js +16 -0
  277. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
  278. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  279. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  280. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
  281. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
  282. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  283. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +8 -0
  284. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  285. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +7 -0
  286. package/package.json +78 -16
  287. package/CHANGELOG.json +0 -1247
  288. package/CHANGELOG.md +0 -2435
  289. package/LICENSE.md +0 -5
  290. package/README.md +0 -28
  291. package/configure/CHANGELOG.json +0 -827
  292. package/configure/CHANGELOG.md +0 -2082
  293. package/configure/lib/arrows.js +0 -89
  294. package/configure/lib/arrows.js.map +0 -1
  295. package/configure/lib/card-bar.js +0 -57
  296. package/configure/lib/card-bar.js.map +0 -1
  297. package/configure/lib/defaults.js +0 -177
  298. package/configure/lib/defaults.js.map +0 -1
  299. package/configure/lib/domain.js +0 -87
  300. package/configure/lib/domain.js.map +0 -1
  301. package/configure/lib/index.js +0 -176
  302. package/configure/lib/index.js.map +0 -1
  303. package/configure/lib/main.js +0 -815
  304. package/configure/lib/main.js.map +0 -1
  305. package/configure/lib/number-text-field.js +0 -26
  306. package/configure/lib/number-text-field.js.map +0 -1
  307. package/configure/lib/point-config.js +0 -84
  308. package/configure/lib/point-config.js.map +0 -1
  309. package/configure/lib/size.js +0 -66
  310. package/configure/lib/size.js.map +0 -1
  311. package/configure/lib/ticks.js +0 -234
  312. package/configure/lib/ticks.js.map +0 -1
  313. package/configure/lib/utils.js +0 -12
  314. package/configure/lib/utils.js.map +0 -1
  315. package/configure/package.json +0 -20
  316. package/controller/CHANGELOG.json +0 -332
  317. package/controller/CHANGELOG.md +0 -1360
  318. package/controller/lib/defaults.js +0 -56
  319. package/controller/lib/defaults.js.map +0 -1
  320. package/controller/lib/index.js +0 -430
  321. package/controller/lib/index.js.map +0 -1
  322. package/controller/lib/tickUtils.js +0 -294
  323. package/controller/lib/tickUtils.js.map +0 -1
  324. package/controller/lib/utils.js +0 -168
  325. package/controller/lib/utils.js.map +0 -1
  326. package/controller/package.json +0 -20
  327. package/demo.gif +0 -0
  328. package/docs/config-schema.json +0 -2532
  329. package/docs/config-schema.json.md +0 -1844
  330. package/docs/demo/config.js +0 -8
  331. package/docs/demo/generate.js +0 -39
  332. package/docs/demo/index.html +0 -1
  333. package/docs/pie-schema.json +0 -2461
  334. package/docs/pie-schema.json.md +0 -1228
  335. package/docs/schemas/config.json +0 -256
  336. package/lib/data-converter.js +0 -96
  337. package/lib/data-converter.js.map +0 -1
  338. package/lib/draggable/index.js +0 -114
  339. package/lib/draggable/index.js.map +0 -1
  340. package/lib/index.js +0 -196
  341. package/lib/index.js.map +0 -1
  342. package/lib/number-line/colors.js +0 -11
  343. package/lib/number-line/colors.js.map +0 -1
  344. package/lib/number-line/feedback.js +0 -92
  345. package/lib/number-line/feedback.js.map +0 -1
  346. package/lib/number-line/graph/arrow.js +0 -44
  347. package/lib/number-line/graph/arrow.js.map +0 -1
  348. package/lib/number-line/graph/elements/base.js +0 -20
  349. package/lib/number-line/graph/elements/base.js.map +0 -1
  350. package/lib/number-line/graph/elements/builder.js +0 -37
  351. package/lib/number-line/graph/elements/builder.js.map +0 -1
  352. package/lib/number-line/graph/elements/line.js +0 -259
  353. package/lib/number-line/graph/elements/line.js.map +0 -1
  354. package/lib/number-line/graph/elements/point.js +0 -204
  355. package/lib/number-line/graph/elements/point.js.map +0 -1
  356. package/lib/number-line/graph/elements/ray.js +0 -190
  357. package/lib/number-line/graph/elements/ray.js.map +0 -1
  358. package/lib/number-line/graph/index.js +0 -262
  359. package/lib/number-line/graph/index.js.map +0 -1
  360. package/lib/number-line/graph/line.js +0 -38
  361. package/lib/number-line/graph/line.js.map +0 -1
  362. package/lib/number-line/graph/stacks.js +0 -78
  363. package/lib/number-line/graph/stacks.js.map +0 -1
  364. package/lib/number-line/graph/tick-utils.js +0 -347
  365. package/lib/number-line/graph/tick-utils.js.map +0 -1
  366. package/lib/number-line/graph/ticks.js +0 -188
  367. package/lib/number-line/graph/ticks.js.map +0 -1
  368. package/lib/number-line/index.js +0 -384
  369. package/lib/number-line/index.js.map +0 -1
  370. package/lib/number-line/point-chooser/button.js +0 -49
  371. package/lib/number-line/point-chooser/button.js.map +0 -1
  372. package/lib/number-line/point-chooser/img.js +0 -8
  373. package/lib/number-line/point-chooser/img.js.map +0 -1
  374. package/lib/number-line/point-chooser/index.js +0 -197
  375. package/lib/number-line/point-chooser/index.js.map +0 -1
  376. package/lib/number-line/point-chooser/styles.js +0 -77
  377. package/lib/number-line/point-chooser/styles.js.map +0 -1
  378. package/lib/number-line/transitions/fade.js +0 -88
  379. package/lib/number-line/transitions/fade.js.map +0 -1
  380. package/lib/number-line/transitions/index.js +0 -14
  381. package/lib/number-line/transitions/index.js.map +0 -1
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.Arrows = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
- var _styles = require("@mui/material/styles");
12
- var _configUi = require("@pie-lib/config-ui");
13
- const FlexRow = (0, _styles.styled)('div')({
14
- display: 'flex',
15
- alignItems: 'center',
16
- gap: '10px'
17
- });
18
- const ArrowsContainer = (0, _styles.styled)('div')(({
19
- theme
20
- }) => ({
21
- paddingTop: theme.spacing(2),
22
- display: 'flex',
23
- gap: theme.spacing(2),
24
- alignItems: 'center',
25
- '& > *': {
26
- flexShrink: 0
27
- },
28
- '& label': {
29
- whiteSpace: 'nowrap',
30
- overflow: 'visible',
31
- textOverflow: 'clip'
32
- },
33
- '& .MuiFormControlLabel-root': {
34
- margin: 0,
35
- marginRight: 0
36
- },
37
- '& .MuiFormControlLabel-label': {
38
- whiteSpace: 'nowrap',
39
- overflow: 'visible',
40
- textOverflow: 'clip',
41
- maxWidth: 'none',
42
- width: 'auto',
43
- flexShrink: 0
44
- }
45
- }));
46
- class Arrows extends _react.default.Component {
47
- constructor(props) {
48
- super(props);
49
- this.change = (key, event, value) => {
50
- const update = {
51
- ...this.props.arrows,
52
- [key]: value
53
- };
54
- this.props.onChange(update);
55
- };
56
- this.changeLeft = this.change.bind(this, 'left');
57
- this.changeRight = this.change.bind(this, 'right');
58
- }
59
- render() {
60
- const {
61
- arrows
62
- } = this.props;
63
- return /*#__PURE__*/_react.default.createElement(FlexRow, null, /*#__PURE__*/_react.default.createElement("label", null, "Arrows"), /*#__PURE__*/_react.default.createElement(ArrowsContainer, null, /*#__PURE__*/_react.default.createElement(_configUi.InputCheckbox, {
64
- label: 'Left',
65
- checked: arrows.left,
66
- onChange: this.changeLeft
67
- }), /*#__PURE__*/_react.default.createElement(_configUi.InputCheckbox, {
68
- label: 'Right',
69
- checked: arrows.right,
70
- onChange: this.changeRight
71
- })));
72
- }
73
- }
74
- exports.Arrows = Arrows;
75
- (0, _defineProperty2.default)(Arrows, "propTypes", {
76
- arrows: _propTypes.default.shape({
77
- left: _propTypes.default.bool,
78
- right: _propTypes.default.bool
79
- }).isRequired,
80
- onChange: _propTypes.default.func
81
- });
82
- (0, _defineProperty2.default)(Arrows, "defaultProps", {
83
- arrows: {
84
- left: true,
85
- right: true
86
- }
87
- });
88
- var _default = exports.default = Arrows;
89
- //# sourceMappingURL=arrows.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrows.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_configUi","FlexRow","styled","display","alignItems","gap","ArrowsContainer","theme","paddingTop","spacing","flexShrink","whiteSpace","overflow","textOverflow","margin","marginRight","maxWidth","width","Arrows","React","Component","constructor","props","change","key","event","value","update","arrows","onChange","changeLeft","bind","changeRight","render","default","createElement","InputCheckbox","label","checked","left","right","exports","_defineProperty2","PropTypes","shape","bool","isRequired","func","_default"],"sources":["../src/arrows.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { InputCheckbox } from '@pie-lib/config-ui';\n\nconst FlexRow = styled('div')({\n display: 'flex',\n alignItems: 'center',\n gap: '10px',\n});\n\nconst ArrowsContainer = styled('div')(({ theme }) => ({\n paddingTop: theme.spacing(2),\n display: 'flex',\n gap: theme.spacing(2),\n alignItems: 'center',\n '& > *': {\n flexShrink: 0,\n },\n '& label': {\n whiteSpace: 'nowrap',\n overflow: 'visible',\n textOverflow: 'clip',\n },\n '& .MuiFormControlLabel-root': {\n margin: 0,\n marginRight: 0,\n },\n '& .MuiFormControlLabel-label': {\n whiteSpace: 'nowrap',\n overflow: 'visible',\n textOverflow: 'clip',\n maxWidth: 'none',\n width: 'auto',\n flexShrink: 0,\n },\n}));\n\nexport class Arrows extends React.Component {\n static propTypes = {\n arrows: PropTypes.shape({ left: PropTypes.bool, right: PropTypes.bool }).isRequired,\n onChange: PropTypes.func,\n };\n static defaultProps = {\n arrows: { left: true, right: true },\n };\n\n constructor(props) {\n super(props);\n\n this.change = (key, event, value) => {\n const update = { ...this.props.arrows, [key]: value };\n this.props.onChange(update);\n };\n this.changeLeft = this.change.bind(this, 'left');\n this.changeRight = this.change.bind(this, 'right');\n }\n\n render() {\n const { arrows } = this.props;\n return (\n <FlexRow>\n <label>Arrows</label>\n <ArrowsContainer>\n <InputCheckbox label={'Left'} checked={arrows.left} onChange={this.changeLeft} />\n <InputCheckbox\n label={'Right'}\n checked={arrows.right}\n onChange={this.changeRight}\n />\n </ArrowsContainer>\n </FlexRow>\n );\n }\n}\n\nexport default Arrows;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAEA,MAAMI,OAAO,GAAG,IAAAC,cAAM,EAAC,KAAK,CAAC,CAAC;EAC5BC,OAAO,EAAE,MAAM;EACfC,UAAU,EAAE,QAAQ;EACpBC,GAAG,EAAE;AACP,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAG,IAAAJ,cAAM,EAAC,KAAK,CAAC,CAAC,CAAC;EAAEK;AAAM,CAAC,MAAM;EACpDC,UAAU,EAAED,KAAK,CAACE,OAAO,CAAC,CAAC,CAAC;EAC5BN,OAAO,EAAE,MAAM;EACfE,GAAG,EAAEE,KAAK,CAACE,OAAO,CAAC,CAAC,CAAC;EACrBL,UAAU,EAAE,QAAQ;EACpB,OAAO,EAAE;IACPM,UAAU,EAAE;EACd,CAAC;EACD,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,QAAQ,EAAE,SAAS;IACnBC,YAAY,EAAE;EAChB,CAAC;EACD,6BAA6B,EAAE;IAC7BC,MAAM,EAAE,CAAC;IACTC,WAAW,EAAE;EACf,CAAC;EACD,8BAA8B,EAAE;IAC9BJ,UAAU,EAAE,QAAQ;IACpBC,QAAQ,EAAE,SAAS;IACnB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AACY,KAAM;MACtBX,QAAQ,EAAE,IAAI,CAACG;IAAY,CAC5B,CACc,CACV,CAAC;EAEd;AACF;AAACS,OAAA,CAAAvB,MAAA,GAAAA,MAAA;AAAA,IAAAwB,gBAAA,CAAAR,OAAA,EApCYhB,MAAM,eACE;EACjBU,MAAM,EAAEe,kBAAS,CAACC,KAAK,CAAC;IAAEL,IAAI,EAAEI,kBAAS,CAACE,IAAI;IAAEL,KAAK,EAAEG,kBAAS,CAACE;EAAK,CAAC,CAAC,CAACC,UAAU;EACnFjB,QAAQ,EAAEc,kBAAS,CAACI;AACtB,CAAC;AAAA,IAAAL,gBAAA,CAAAR,OAAA,EAJUhB,MAAM,kBAKK;EACpBU,MAAM,EAAE;IAAEW,IAAI,EAAE,IAAI;IAAEC,KAAK,EAAE;EAAK;AACpC,CAAC;AAAA,IAAAQ,QAAA,GAAAP,OAAA,CAAAP,OAAA,GA+BYhB,MAAM","ignoreList":[]}
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _styles = require("@mui/material/styles");
9
- var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
10
- var _HelpOutline = _interopRequireDefault(require("@mui/icons-material/HelpOutline"));
11
- var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
- var _react = _interopRequireDefault(require("react"));
14
- var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
15
- const CardBarContainer = (0, _styles.styled)('div')({
16
- display: 'flex',
17
- justifyContent: 'space-between'
18
- });
19
- const FlexContainer = (0, _styles.styled)('div')({
20
- display: 'flex',
21
- alignItems: 'center'
22
- });
23
- const StyledIconButton = (0, _styles.styled)(_IconButton.default)({
24
- margin: 0,
25
- padding: 0
26
- });
27
- const CardBar = props => {
28
- const {
29
- header,
30
- children,
31
- mini,
32
- info
33
- } = props;
34
- return /*#__PURE__*/_react.default.createElement(CardBarContainer, null, /*#__PURE__*/_react.default.createElement(FlexContainer, null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
35
- variant: mini ? 'subheading' : 'h5'
36
- }, header), info), children && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
37
- title: children,
38
- slotProps: {
39
- tooltip: {
40
- sx: theme => ({
41
- fontSize: theme.typography.fontSize - 2
42
- })
43
- }
44
- }
45
- }, /*#__PURE__*/_react.default.createElement(StyledIconButton, {
46
- "aria-label": "Delete",
47
- size: "large"
48
- }, /*#__PURE__*/_react.default.createElement(_HelpOutline.default, null))));
49
- };
50
- CardBar.propTypes = {
51
- mini: _propTypes.default.bool,
52
- header: _propTypes.default.string,
53
- children: _propTypes.default.node,
54
- info: _propTypes.default.any
55
- };
56
- var _default = exports.default = CardBar;
57
- //# sourceMappingURL=card-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-bar.js","names":["_styles","require","_Tooltip","_interopRequireDefault","_HelpOutline","_IconButton","_propTypes","_react","_Typography","CardBarContainer","styled","display","justifyContent","FlexContainer","alignItems","StyledIconButton","IconButton","margin","padding","CardBar","props","header","children","mini","info","default","createElement","variant","title","slotProps","tooltip","sx","theme","fontSize","typography","size","propTypes","PropTypes","bool","string","node","any","_default","exports"],"sources":["../src/card-bar.jsx"],"sourcesContent":["import { styled } from '@mui/material/styles';\nimport Tooltip from '@mui/material/Tooltip';\nimport HelpIcon from '@mui/icons-material/HelpOutline';\nimport IconButton from '@mui/material/IconButton';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport Typography from '@mui/material/Typography';\n\nconst CardBarContainer = styled('div')({\n display: 'flex',\n justifyContent: 'space-between',\n});\n\nconst FlexContainer = styled('div')({\n display: 'flex',\n alignItems: 'center',\n});\n\nconst StyledIconButton = styled(IconButton)({\n margin: 0,\n padding: 0,\n});\n\nconst CardBar = (props) => {\n const { header, children, mini, info } = props;\n\n return (\n <CardBarContainer>\n <FlexContainer>\n <Typography variant={mini ? 'subheading' : 'h5'}>{header}</Typography>\n {info}\n </FlexContainer>\n {children && (\n <Tooltip\n title={children}\n slotProps={{\n tooltip: {\n sx: (theme) => ({\n fontSize: theme.typography.fontSize - 2,\n }),\n },\n }}\n >\n <StyledIconButton aria-label=\"Delete\" size=\"large\">\n <HelpIcon />\n </StyledIconButton>\n </Tooltip>\n )}\n </CardBarContainer>\n );\n};\n\nCardBar.propTypes = {\n mini: PropTypes.bool,\n header: PropTypes.string,\n children: PropTypes.node,\n info: PropTypes.any,\n};\n\nexport default CardBar;\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,UAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,WAAA,GAAAL,sBAAA,CAAAF,OAAA;AAEA,MAAMQ,gBAAgB,GAAG,IAAAC,cAAM,EAAC,KAAK,CAAC,CAAC;EACrCC,OAAO,EAAE,MAAM;EACfC,cAAc,EAAE;AAClB,CAAC,CAAC;AAEF,MAAMC,aAAa,GAAG,IAAAH,cAAM,EAAC,KAAK,CAAC,CAAC;EAClCC,OAAO,EAAE,MAAM;EACfG,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,MAAMC,gBAAgB,GAAG,IAAAL,cAAM,EAACM,mBAAU,CAAC,CAAC;EAC1CC,MAAM,EAAE,CAAC;EACTC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,MAAMC,OAAO,GAAIC,KAAK,IAAK;EACzB,MAAM;IAAEC,MAAM;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAK,CAAC,GAAGJ,KAAK;EAE9C,oBACEb,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACjB,gBAAgB,qBACfF,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACb,aAAa,qBACZN,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAAClB,WAAA,CAAAiB,OAAU;IAACE,OAAO,EAAEJ,IAAI,GAAG,YAAY,GAAG;EAAK,GAAEF,MAAmB,CAAC,EACrEG,IACY,CAAC,EACfF,QAAQ,iBACPf,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACxB,QAAA,CAAAuB,OAAO;IACNG,KAAK,EAAEN,QAAS;IAChBO,SAAS,EAAE;MACTC,OAAO,EAAE;QACPC,EAAE,EAAGC,KAAK,KAAM;UACdC,QAAQ,EAAED,KAAK,CAACE,UAAU,CAACD,QAAQ,GAAG;QACxC,CAAC;MACH;IACF;EAAE,gBAEF1B,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACX,gBAAgB;IAAC,cAAW,QAAQ;IAACoB,IAAI,EAAC;EAAO,gBAChD5B,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACtB,YAAA,CAAAqB,OAAQ,MAAE,CACK,CACX,CAEK,CAAC;AAEvB,CAAC;AAEDN,OAAO,CAACiB,SAAS,GAAG;EAClBb,IAAI,EAAEc,kBAAS,CAACC,IAAI;EACpBjB,MAAM,EAAEgB,kBAAS,CAACE,MAAM;EACxBjB,QAAQ,EAAEe,kBAAS,CAACG,IAAI;EACxBhB,IAAI,EAAEa,kBAAS,CAACI;AAClB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlB,OAAA,GAEaN,OAAO","ignoreList":[]}
@@ -1,177 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.model = exports.configuration = void 0;
7
- const model = exports.model = {
8
- correctResponse: [],
9
- feedback: {
10
- correct: {
11
- default: 'Correct',
12
- type: 'none'
13
- },
14
- incorrect: {
15
- default: 'Incorrect',
16
- type: 'none'
17
- },
18
- partial: {
19
- default: 'Nearly',
20
- type: 'none'
21
- }
22
- },
23
- graph: {
24
- arrows: {
25
- left: true,
26
- right: true
27
- },
28
- availableTypes: {
29
- PF: true
30
- },
31
- domain: {
32
- min: -1,
33
- max: 1
34
- },
35
- exhibitOnly: false,
36
- initialElements: [],
37
- initialType: 'PF',
38
- maxNumberOfPoints: 1,
39
- ticks: {
40
- minor: 0.125,
41
- major: 0.5,
42
- tickIntervalType: 'Decimal'
43
- },
44
- title: '',
45
- width: 500
46
- },
47
- prompt: '',
48
- promptEnabled: true,
49
- rationale: '',
50
- rationaleEnabled: true,
51
- teacherInstructions: '',
52
- teacherInstructionsEnabled: true,
53
- toolbarEditorPosition: 'bottom',
54
- widthEnabled: true
55
- };
56
- const configuration = exports.configuration = {
57
- baseInputConfiguration: {
58
- h3: {
59
- disabled: true
60
- },
61
- audio: {
62
- disabled: false
63
- },
64
- video: {
65
- disabled: false
66
- },
67
- image: {
68
- disabled: false
69
- },
70
- textAlign: {
71
- disabled: true
72
- },
73
- showParagraphs: {
74
- disabled: false
75
- }
76
- },
77
- instruction: {
78
- settings: false,
79
- enabled: true,
80
- label: 'Number line questions involve plotting points or other objects. To create one, first set up the number line, then select the plotting tools students will be offered and use them to define the correct answer.'
81
- },
82
- prompt: {
83
- settings: true,
84
- label: 'Item Stem',
85
- required: false,
86
- inputConfiguration: {
87
- audio: {
88
- disabled: false
89
- },
90
- video: {
91
- disabled: false
92
- },
93
- image: {
94
- disabled: false
95
- }
96
- }
97
- },
98
- rationale: {
99
- settings: true,
100
- label: 'Rationale',
101
- required: false,
102
- inputConfiguration: {
103
- audio: {
104
- disabled: false
105
- },
106
- video: {
107
- disabled: false
108
- },
109
- image: {
110
- disabled: false
111
- }
112
- }
113
- },
114
- teacherInstructions: {
115
- settings: true,
116
- label: 'Teacher Instructions',
117
- required: false,
118
- inputConfiguration: {
119
- audio: {
120
- disabled: false
121
- },
122
- video: {
123
- disabled: false
124
- },
125
- image: {
126
- disabled: false
127
- }
128
- }
129
- },
130
- title: {
131
- label: 'Title',
132
- settings: true,
133
- enabled: true,
134
- inputConfiguration: {
135
- audio: {
136
- disabled: false
137
- },
138
- video: {
139
- disabled: false
140
- },
141
- image: {
142
- disabled: false
143
- }
144
- }
145
- },
146
- numberLineDimensions: {
147
- settings: true,
148
- label: 'Width',
149
- enabled: true,
150
- min: 200,
151
- max: 800,
152
- step: 20
153
- },
154
- mathMlOptions: {
155
- mmlOutput: false,
156
- mmlEditing: false
157
- },
158
- language: {
159
- settings: false,
160
- label: 'Specify Language',
161
- enabled: false
162
- },
163
- languageChoices: {
164
- label: 'Language Choices',
165
- options: []
166
- },
167
- spellCheck: {
168
- label: 'Spellcheck',
169
- settings: false,
170
- enabled: true
171
- },
172
- maxMaxElements: 20,
173
- hidePointConfigButtons: false,
174
- availableTools: ['PF', 'LFF', 'LEF', 'LFE', 'LEE', 'RFN', 'RFP', 'REN', 'REP'],
175
- settingsPanelDisabled: false
176
- };
177
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.js","names":["model","exports","correctResponse","feedback","correct","default","type","incorrect","partial","graph","arrows","left","right","availableTypes","PF","domain","min","max","exhibitOnly","initialElements","initialType","maxNumberOfPoints","ticks","minor","major","tickIntervalType","title","width","prompt","promptEnabled","rationale","rationaleEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition","widthEnabled","configuration","baseInputConfiguration","h3","disabled","audio","video","image","textAlign","showParagraphs","instruction","settings","enabled","label","required","inputConfiguration","numberLineDimensions","step","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options","spellCheck","maxMaxElements","hidePointConfigButtons","availableTools","settingsPanelDisabled"],"sources":["../src/defaults.js"],"sourcesContent":["export const model = {\n correctResponse: [],\n feedback: {\n correct: { default: 'Correct', type: 'none' },\n incorrect: { default: 'Incorrect', type: 'none' },\n partial: { default: 'Nearly', type: 'none' },\n },\n graph: {\n arrows: { left: true, right: true },\n availableTypes: {\n PF: true,\n },\n domain: { min: -1, max: 1 },\n exhibitOnly: false,\n initialElements: [],\n initialType: 'PF',\n maxNumberOfPoints: 1,\n ticks: { minor: 0.125, major: 0.5, tickIntervalType: 'Decimal' },\n title: '',\n width: 500,\n },\n prompt: '',\n promptEnabled: true,\n rationale: '',\n rationaleEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n widthEnabled: true,\n};\n\nexport const configuration = {\n baseInputConfiguration: {\n h3: { disabled: true },\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n textAlign: { disabled: true },\n showParagraphs: { disabled: false },\n },\n instruction: {\n settings: false,\n enabled: true,\n label:\n 'Number line questions involve plotting points or other objects. To create one, first set up the number line, then select the plotting tools students will be offered and use them to define the correct answer.',\n },\n prompt: {\n settings: true,\n label: 'Item Stem',\n required: false,\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n required: false,\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n required: false,\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n title: {\n label: 'Title',\n settings: true,\n enabled: true,\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n numberLineDimensions: {\n settings: true,\n label: 'Width',\n enabled: true,\n min: 200,\n max: 800,\n step: 20,\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n maxMaxElements: 20,\n hidePointConfigButtons: false,\n availableTools: ['PF', 'LFF', 'LEF', 'LFE', 'LEE', 'RFN', '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ACLsB,KAAK,EAAE,OAAO;IACdF,QAAQ,EAAE,IAAI;IACdC,OAAO,EAAE,IAAI;IACbG,kBAAkB,EAAE;MAClBV,KAAK,EAAE;QAAED,QAAQ,EAAE;MAAM,CAAC;MAC1BE,KAAK,EAAE;QAAEF,QAAQ,EAAE;MAAM,CAAC;MAC1BG,KAAK,EAAE;QAAEH,QAAQ,EAAE;MAAM;IAC3B;EACF,CAAC;EACDY,oBAAoB,EAAE;IACpBL,QAAQ,EAAE,IAAI;IACdE,KAAK,EAAE,OAAO;IACdD,OAAO,EAAE,IAAI;IACb/B,GAAG,EAAE,GAAG;IACRC,GAAG,EAAE,GAAG;IACRmC,IAAI,EAAE;EACR,CAAC;EACDC,aAAa,EAAE;IACbC,SAAS,EAAE,KAAK;IAChBC,UAAU,EAAE;EACd,CAAC;EACDC,QAAQ,EAAE;IACRV,QAAQ,EAAE,KAAK;IACfE,KAAK,EAAE,kBAAkB;IACzBD,OAAO,EAAE;EACX,CAAC;EACDU,eAAe,EAAE;IACfT,KAAK,EAAE,kBAAkB;IACzBU,OAAO,EAAE;EACX,CAAC;EACDC,UAAU,EAAE;IACVX,KAAK,EAAE,YAAY;IACnBF,QAAQ,EAAE,KAAK;IACfC,OAAO,EAAE;EACX,CAAC;EACDa,cAAc,EAAE,EAAE;EAClBC,sBAAsB,EAAE,KAAK;EAC7BC,cAAc,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;EAC9EC,qBAAqB,EAAE;AACzB,CAAC","ignoreList":[]}
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.Domain = void 0;
8
- var _numberTextField = _interopRequireDefault(require("./number-text-field"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _styles = require("@mui/material/styles");
12
- const DOMAIN_BEGIN = 'domainBegin';
13
- const DOMAIN_END = 'domainEnd';
14
- const DisplayFlex = (0, _styles.styled)('div')({
15
- display: 'flex',
16
- gap: '20px'
17
- });
18
- const FlexRow = (0, _styles.styled)('div')({
19
- display: 'flex',
20
- alignItems: 'center',
21
- gap: '10px',
22
- '.MuiInputBase-input': {
23
- padding: '16.5px 14px !important'
24
- }
25
- });
26
- const sort = domain => {
27
- if (domain.min <= domain.max) {
28
- return domain;
29
- }
30
- return {
31
- min: domain.max,
32
- max: domain.min
33
- };
34
- };
35
- class Domain extends _react.default.Component {
36
- constructor(props) {
37
- super(props);
38
- this.changeMin = this.change.bind(this, 'min');
39
- this.changeMax = this.change.bind(this, 'max');
40
- }
41
- change(key, event, value) {
42
- const {
43
- onChange
44
- } = this.props;
45
- let update;
46
- //Added condition when min and max is same, then it should not update the value
47
- if (key === 'min' && value === this.props.domain.max || key === 'max' && value === this.props.domain.min) {
48
- update = {
49
- ...this.props.domain
50
- };
51
- } else {
52
- update = {
53
- ...this.props.domain,
54
- [key]: value
55
- };
56
- }
57
- onChange(sort(update));
58
- }
59
- render() {
60
- const {
61
- domain
62
- } = this.props;
63
- return /*#__PURE__*/_react.default.createElement(DisplayFlex, null, /*#__PURE__*/_react.default.createElement(FlexRow, null, /*#__PURE__*/_react.default.createElement("label", null, "Min Value"), /*#__PURE__*/_react.default.createElement(_numberTextField.default, {
64
- min: -100000,
65
- max: 99999,
66
- value: domain.min,
67
- name: DOMAIN_BEGIN,
68
- onChange: this.changeMin
69
- })), /*#__PURE__*/_react.default.createElement(FlexRow, null, /*#__PURE__*/_react.default.createElement("label", null, "Max Value"), /*#__PURE__*/_react.default.createElement(_numberTextField.default, {
70
- min: -99999,
71
- max: 100000,
72
- value: domain.max,
73
- name: DOMAIN_END,
74
- onChange: this.changeMax
75
- })));
76
- }
77
- }
78
- exports.Domain = Domain;
79
- Domain.propTypes = {
80
- domain: _propTypes.default.shape({
81
- min: _propTypes.default.number,
82
- max: _propTypes.default.number
83
- }),
84
- onChange: _propTypes.default.func.isRequired
85
- };
86
- var _default = exports.default = Domain;
87
- //# sourceMappingURL=domain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain.js","names":["_numberTextField","_interopRequireDefault","require","_propTypes","_react","_styles","DOMAIN_BEGIN","DOMAIN_END","DisplayFlex","styled","display","gap","FlexRow","alignItems","padding","sort","domain","min","max","Domain","React","Component","constructor","props","changeMin","change","bind","changeMax","key","event","value","onChange","update","render","default","createElement","name","exports","propTypes","PropTypes","shape","number","func","isRequired","_default"],"sources":["../src/domain.jsx"],"sourcesContent":["import NumberTextField from './number-text-field';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\n\nconst DOMAIN_BEGIN = 'domainBegin';\nconst DOMAIN_END = 'domainEnd';\n\nconst DisplayFlex = styled('div')({\n display: 'flex',\n gap: '20px',\n});\n\nconst FlexRow = styled('div')({\n display: 'flex',\n alignItems: 'center',\n gap: '10px',\n\n '.MuiInputBase-input': {\n padding: '16.5px 14px !important',\n },\n});\n\nconst sort = (domain) => {\n if (domain.min <= domain.max) {\n return domain;\n }\n return { min: domain.max, max: domain.min };\n};\n\nexport class Domain extends React.Component {\n constructor(props) {\n super(props);\n\n this.changeMin = this.change.bind(this, 'min');\n this.changeMax = this.change.bind(this, 'max');\n }\n\n change(key, event, value) {\n const { onChange } = this.props;\n let update;\n //Added condition when min and max is same, then it should not update the value\n if ((key === 'min' && value === this.props.domain.max) || (key === 'max' && value === this.props.domain.min)) {\n update = { ...this.props.domain };\n } else {\n update = { ...this.props.domain, [key]: value };\n }\n onChange(sort(update));\n }\n\n render() {\n const { domain } = this.props;\n\n return (\n <DisplayFlex>\n <FlexRow>\n <label>Min Value</label>\n <NumberTextField min={-100000} max={99999} value={domain.min} name={DOMAIN_BEGIN} onChange={this.changeMin} />\n </FlexRow>\n <FlexRow>\n <label>Max Value</label>\n <NumberTextField min={-99999} max={100000} value={domain.max} name={DOMAIN_END} onChange={this.changeMax} />\n </FlexRow>\n </DisplayFlex>\n );\n }\n}\nDomain.propTypes = {\n domain: PropTypes.shape({ min: PropTypes.number, max: PropTypes.number }),\n onChange: PropTypes.func.isRequired,\n};\n\nexport default Domain;\n"],"mappings":";;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,MAAMI,YAAY,GAAG,aAAa;AAClC,MAAMC,UAAU,GAAG,WAAW;AAE9B,MAAMC,WAAW,GAAG,IAAAC,cAAM,EAAC,KAAK,CAAC,CAAC;EAChCC,OAAO,EAAE,MAAM;EACfC,GAAG,EAAE;AACP,CAAC,CAAC;AAEF,MAAMC,OAAO,GAAG,IAAAH,cAAM,EAAC,KAAK,CAAC,CAAC;EAC5BC,OAAO,EAAE,MAAM;EACfG,UAAU,EAAE,QAAQ;EACpBF,GAAG,EAAE,MAAM;EAEX,qBAAqB,EAAE;IACrBG,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,MAAMC,IAAI,GAAIC,MAAM,IAAK;EACvB,IAAIA,MAAM,CAACC,GAAG,IAAID,MAAM,CAACE,GAAG,EAAE;IAC5B,OAAOF,MAAM;EACf;EACA,OAAO;IAAEC,GAAG,EAAED,MAAM,CAACE,GAAG;IAAEA,GAAG,EAAEF,MAAM,CAACC;EAAI,CAAC;AAC7C,CAAC;AAEM,MAAME,MAAM,SAASC,cAAK,CAACC,SAAS,CAAC;EAC1CC,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,SAAS,GAAG,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;IAC9C,IAAI,CA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A,CAAA8B,OAAA,CAAAC,aAAA,gBAAO,WAAgB,CAAC,eACxB/B,MAAA,CAAA8B,OAAA,CAAAC,aAAA,CAACnC,gBAAA,CAAAkC,OAAe;MAACjB,GAAG,EAAE,CAAC,KAAM;MAACC,GAAG,EAAE,MAAO;MAACY,KAAK,EAAEd,MAAM,CAACE,GAAI;MAACkB,IAAI,EAAE7B,UAAW;MAACwB,QAAQ,EAAE,IAAI,CAACJ;IAAU,CAAE,CACpG,CACE,CAAC;EAElB;AACF;AAACU,OAAA,CAAAlB,MAAA,GAAAA,MAAA;AACDA,MAAM,CAACmB,SAAS,GAAG;EACjBtB,MAAM,EAAEuB,kBAAS,CAACC,KAAK,CAAC;IAAEvB,GAAG,EAAEsB,kBAAS,CAACE,MAAM;IAAEvB,GAAG,EAAEqB,kBAAS,CAACE;EAAO,CAAC,CAAC;EACzEV,QAAQ,EAAEQ,kBAAS,CAACG,IAAI,CAACC;AAC3B,CAAC;AAAC,IAAAC,QAAA,GAAAP,OAAA,CAAAH,OAAA,GAEaf,MAAM","ignoreList":[]}
@@ -1,176 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _main = _interopRequireDefault(require("./main"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _client = require("react-dom/client");
12
- var _pieConfigureEvents = require("@pie-framework/pie-configure-events");
13
- var defaults = _interopRequireWildcard(require("./defaults"));
14
- var math = _interopRequireWildcard(require("mathjs"));
15
- var _lodashEs = require("lodash-es");
16
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
- // this function is duplicated in controller; at some point, use the same shared function
18
- const updateTicks = model => {
19
- const {
20
- graph: {
21
- domain,
22
- labelStep,
23
- ticks = {}
24
- } = {}
25
- } = model;
26
- const {
27
- minor,
28
- major
29
- } = ticks;
30
- if (domain) {
31
- domain.min = Number((domain.min || 0).toFixed(2));
32
- domain.max = Number((domain.max || 0).toFixed(2));
33
- }
34
- if (labelStep && typeof labelStep === 'string' && labelStep.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
35
- model.graph.fraction = true;
36
- ticks.tickIntervalType = 'Fraction';
37
-
38
- // update the ticks frequency and label value to match the label step if needed
39
- const step = math.evaluate(labelStep);
40
- if (step !== major) {
41
- ticks.major = step;
42
- ticks.minor = step / (major / minor);
43
- }
44
- }
45
- return model;
46
- };
47
- class NumberLine extends HTMLElement {
48
- constructor() {
49
- super();
50
- (0, _defineProperty2.default)(this, "resetModelAfterConfigurationIsSet", () => {
51
- // In environments that use pie-player-components, model is set before configuration.
52
- // This is the reason why sometimes the model gets altered non-reversible
53
- // (altered using default configuration instead of client configuration, because at that point client configuration was not set yet)
54
- // Therefore, in such environments, we will make sure to keep a modelCopy (initialised in set model) and use it to reset
55
- // the model in set configuration (resetModelAfterConfigurationIsSet) if set configuration is ever called
56
- const pieAuthors = document.querySelectorAll('pie-author');
57
- this.hasPlayerAsParent = Array.from(pieAuthors).some(author => author.contains(this));
58
- if (this.hasPlayerAsParent) {
59
- if (this._modelCopy) {
60
- this._model = this._modelCopy;
61
- } else {
62
- delete this._modelCopy;
63
- }
64
- }
65
- });
66
- (0, _defineProperty2.default)(this, "onChange", o => {
67
- this._model = {
68
- ...this._model,
69
- ...o
70
- };
71
- this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(this._model));
72
- this._rerender();
73
- });
74
- (0, _defineProperty2.default)(this, "onConfigurationChanged", config => {
75
- this._configuration = config;
76
- this._render();
77
- });
78
- this._root = null;
79
- this._model = NumberLine.createDefaultModel();
80
- this._configuration = defaults.configuration;
81
- }
82
- set model(m) {
83
- this._model = NumberLine.createDefaultModel(m);
84
- this._modelCopy = (0, _lodashEs.cloneDeep)(this._model);
85
- this._rerender();
86
- }
87
- set configuration(c) {
88
- const newConfiguration = {
89
- ...defaults.configuration,
90
- ...c
91
- };
92
- this._configuration = newConfiguration;
93
- this.resetModelAfterConfigurationIsSet();
94
-
95
- // if language:enabled is true, then the corresponding default item model should include a language value;
96
- // if it is false, then the language field should be omitted from the item model.
97
- // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,
98
- // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).
99
- if (newConfiguration?.language?.enabled) {
100
- if (newConfiguration?.languageChoices?.options?.length) {
101
- this._model.language = newConfiguration?.languageChoices.options[0].value;
102
- }
103
- } else if (newConfiguration.language.settings && this._model.language) {
104
- this._configuration.language.enabled = true;
105
- if (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) {
106
- this._configuration.languageChoices.options = [];
107
- }
108
-
109
- // check if the language is already included in the languageChoices.options array
110
- // and if not, then add it.
111
- if (!this._configuration.languageChoices.options.find(option => option.value === this._model.language)) {
112
- this._configuration.languageChoices.options.push({
113
- value: this._model.language,
114
- label: this._model.language
115
- });
116
- }
117
- } else {
118
- delete this._model.language;
119
- }
120
- this._rerender();
121
- }
122
- insertImage(handler) {
123
- this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
124
- }
125
- onDeleteImage(src, done) {
126
- this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
127
- }
128
- insertSound(handler) {
129
- this.dispatchEvent(new _pieConfigureEvents.InsertSoundEvent(handler));
130
- }
131
- onDeleteSound(src, done) {
132
- this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
133
- }
134
- _rerender() {
135
- let element = /*#__PURE__*/_react.default.createElement(_main.default, {
136
- model: this._model,
137
- configuration: this._configuration,
138
- onChange: this.onChange,
139
- onConfigurationChanged: this.onConfigurationChanged,
140
- imageSupport: {
141
- add: this.insertImage.bind(this),
142
- delete: this.onDeleteImage.bind(this)
143
- },
144
- uploadSoundSupport: {
145
- add: this.insertSound.bind(this),
146
- delete: this.onDeleteSound.bind(this)
147
- }
148
- });
149
- if (!this._root) {
150
- this._root = (0, _client.createRoot)(this);
151
- }
152
- this._root.render(element);
153
- }
154
- disconnectedCallback() {
155
- if (this._root) {
156
- this._root.unmount();
157
- }
158
- }
159
- }
160
- exports.default = NumberLine;
161
- (0, _defineProperty2.default)(NumberLine, "createDefaultModel", (model = {}) => {
162
- const c = defaults.configuration;
163
- let language = model.language || '';
164
- if (!language && c.language && c.language.enabled) {
165
- if (c.languageChoices?.options?.length) {
166
- language = c.languageChoices.options[0].value;
167
- }
168
- }
169
- const normalizedModel = {
170
- ...defaults.model,
171
- ...model,
172
- language
173
- };
174
- return updateTicks(normalizedModel);
175
- });
176
- //# sourceMappingURL=index.js.map