@pie-element/graphing 10.1.2-next.0 → 10.1.2-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/author/configure.js +46 -46
  2. package/dist/author/correct-response.js +86 -87
  3. package/dist/author/graphing-config.js +60 -60
  4. package/dist/author/index.js +19 -19
  5. package/dist/author/utils.js +1 -1
  6. package/dist/browser/author/index.js +1280 -4426
  7. package/dist/browser/author/index.js.map +1 -1
  8. package/dist/browser/{container-Bg6U_CJ-.js → container-DaIvr1Vu.js} +13429 -14293
  9. package/dist/browser/container-DaIvr1Vu.js.map +1 -0
  10. package/dist/browser/controller/index.js +126 -153
  11. package/dist/browser/controller/index.js.map +1 -1
  12. package/dist/browser/delivery/index.js +26 -26
  13. package/dist/browser/delivery/index.js.map +1 -1
  14. package/dist/browser/dist-BrN2xZtM.js +547 -0
  15. package/dist/browser/dist-BrN2xZtM.js.map +1 -0
  16. package/dist/controller/index.d.ts +1 -1
  17. package/dist/controller/index.js +56 -58
  18. package/dist/controller/utils.d.ts +14 -14
  19. package/dist/controller/utils.js +1 -4
  20. package/dist/index.iife.js +105 -103
  21. package/dist/runtime-support.d.ts +12 -0
  22. package/dist/runtime-support.js +12 -0
  23. package/package.json +14 -10
  24. package/dist/browser/container-Bg6U_CJ-.js.map +0 -1
  25. package/dist/browser/dist-eInAO7us.js +0 -1468
  26. package/dist/browser/dist-eInAO7us.js.map +0 -1
  27. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js +0 -29
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js +0 -7
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +0 -12
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js +0 -11
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
@@ -1,56 +1,56 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
2
- import { applyConstraints as t, filterPlotableMarks as n, getGridValues as r, getLabelValues as i } from "./utils.js";
3
- import * as a from "react";
4
- import o from "prop-types";
5
- import { styled as s } from "@mui/material/styles";
6
- import { GraphContainer as c, GridSetup as l } from "@pie-lib/graphing";
7
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
1
+ import { applyConstraints as e, filterPlotableMarks as t, getGridValues as n, getLabelValues as r } from "./utils.js";
2
+ import * as i from "react";
3
+ import a from "prop-types";
4
+ import { styled as o } from "@mui/material/styles";
5
+ import { GraphContainer as s, GridSetup as c } from "@pie-lib/graphing";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ import { isEqual as d } from "@pie-element/shared-lodash";
8
8
  import { AlertDialog as f } from "@pie-lib/config-ui";
9
9
  import { MenuItem as p, OutlinedInput as m, Select as h, Typography as g } from "@mui/material";
10
10
  //#region src/author/graphing-config.tsx
11
- var _ = s("div")(({ theme: e }) => ({
11
+ var _ = o("div")(({ theme: e }) => ({
12
12
  display: "flex",
13
13
  flexWrap: "wrap",
14
14
  marginBottom: e.spacing(2.5)
15
- })), v = s("div")(({ theme: e }) => ({
15
+ })), v = o("div")(({ theme: e }) => ({
16
16
  display: "flex",
17
17
  flexDirection: "column",
18
18
  marginRight: e.spacing(3),
19
19
  marginBottom: e.spacing(2.5)
20
- })), y = s("div")({
20
+ })), y = o("div")({
21
21
  display: "flex",
22
22
  flexDirection: "column"
23
- }), b = s(g)(({ theme: e }) => ({
23
+ }), b = o(g)(({ theme: e }) => ({
24
24
  marginTop: e.spacing(1.5),
25
25
  marginBottom: e.spacing(1)
26
- })), x = s("div")(({ theme: e }) => ({
26
+ })), x = o("div")(({ theme: e }) => ({
27
27
  display: "flex",
28
28
  flexWrap: "wrap",
29
29
  alignItems: "center",
30
30
  width: "100%",
31
31
  marginBottom: e.spacing(2.5)
32
- })), S = s(g)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), C = s(h)({ flex: "1" }), w = class extends a.Component {
32
+ })), S = o(g)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), C = o(h)({ flex: "1" }), w = class extends i.Component {
33
33
  static propTypes = {
34
- availableTools: o.array,
35
- authoring: o.object,
36
- dimensionsEnabled: o.bool,
37
- graphDimensions: o.object,
38
- gridConfigurations: o.array,
39
- labelsPlaceholders: o.object,
40
- model: o.object.isRequired,
41
- onChange: o.func.isRequired,
42
- showLabels: o.bool,
43
- showTitle: o.bool,
44
- titlePlaceholder: o.string
34
+ availableTools: a.array,
35
+ authoring: a.object,
36
+ dimensionsEnabled: a.bool,
37
+ graphDimensions: a.object,
38
+ gridConfigurations: a.array,
39
+ labelsPlaceholders: a.object,
40
+ model: a.object.isRequired,
41
+ onChange: a.func.isRequired,
42
+ showLabels: a.bool,
43
+ showTitle: a.bool,
44
+ titlePlaceholder: a.string
45
45
  };
46
46
  constructor(e) {
47
47
  super(e);
48
- let { domain: t, range: n, graph: a } = e.model || {}, o = {
49
- domain: r(t, a.width, !0),
50
- range: r(n, a.height, !0)
48
+ let { domain: t, range: i, graph: a } = e.model || {}, o = {
49
+ domain: n(t, a.width, !0),
50
+ range: n(i, a.height, !0)
51
51
  }, s = {
52
- domain: i(t.step),
53
- range: i(n.step)
52
+ domain: r(t.step),
53
+ range: r(i.step)
54
54
  };
55
55
  this.state = {
56
56
  gridValues: o,
@@ -58,7 +58,7 @@ var _ = s("div")(({ theme: e }) => ({
58
58
  showPixelGuides: !1,
59
59
  dialog: { isOpened: !1 },
60
60
  domain: { ...t },
61
- range: { ...n }
61
+ range: { ...i }
62
62
  };
63
63
  }
64
64
  changeBackgroundMarks = (e) => {
@@ -82,34 +82,34 @@ var _ = s("div")(({ theme: e }) => ({
82
82
  title: e
83
83
  });
84
84
  };
85
- onConfigChange = (r, i) => {
86
- let { model: a, onChange: o } = this.props, { defaultGridConfiguration: s = 0 } = a, { gridValues: c, labelValues: l, domain: u, range: d } = this.state, f = {
87
- ...a,
88
- ...r
85
+ onConfigChange = (n, r) => {
86
+ let { model: i, onChange: a } = this.props, { defaultGridConfiguration: o = 0 } = i, { gridValues: s, labelValues: c, domain: l, range: u } = this.state, f = {
87
+ ...i,
88
+ ...n
89
89
  }, { answers: p, domain: m, includeAxes: h, graph: g, range: _, standardGrid: v } = f, y = {
90
90
  domain: [],
91
91
  range: []
92
92
  }, b = {
93
93
  domain: [],
94
94
  range: []
95
- }, x = i >= 0 ? i : s;
95
+ }, x = r >= 0 ? r : o;
96
96
  if (h) {
97
- let e = t(m, g.width, c.domain, l.domain);
98
- y.domain = e.gridValues || [], b.domain = e.labelValues || [];
97
+ let t = e(m, g.width, s.domain, c.domain);
98
+ y.domain = t.gridValues || [], b.domain = t.labelValues || [];
99
99
  }
100
100
  if (v) y.range = y.domain, b.range = b.domain, _.step = m.step, _.labelStep = m.labelStep;
101
101
  else if (h) {
102
- let e = t(_, g.height, c.range, l.range);
103
- y.range = e.gridValues || [], b.range = e.labelValues || [];
102
+ let t = e(_, g.height, s.range, c.range);
103
+ y.range = t.gridValues || [], b.range = t.labelValues || [];
104
104
  }
105
- let S = n(m, _, p);
106
- if (!e(p, S)) {
105
+ let S = t(m, _, p);
106
+ if (!d(p, S)) {
107
107
  this.setState({ dialog: {
108
108
  isOpened: !0,
109
- onClose: () => this.setState({ dialog: { isOpened: !1 } }, o({
110
- ...a,
111
- domain: u,
112
- range: d
109
+ onClose: () => this.setState({ dialog: { isOpened: !1 } }, a({
110
+ ...i,
111
+ domain: l,
112
+ range: u
113
113
  })),
114
114
  onConfirm: () => {
115
115
  this.setState({
@@ -118,7 +118,7 @@ var _ = s("div")(({ theme: e }) => ({
118
118
  dialog: { isOpened: !1 },
119
119
  domain: { ...m },
120
120
  range: { ..._ }
121
- }, o({
121
+ }, a({
122
122
  ...f,
123
123
  answers: S,
124
124
  defaultGridConfiguration: x
@@ -132,7 +132,7 @@ var _ = s("div")(({ theme: e }) => ({
132
132
  labelValues: b,
133
133
  domain: { ...m },
134
134
  range: { ..._ }
135
- }), o({
135
+ }), a({
136
136
  ...f,
137
137
  defaultGridConfiguration: x
138
138
  });
@@ -146,13 +146,13 @@ var _ = s("div")(({ theme: e }) => ({
146
146
  this.onConfigChange(t?.[n] || {}, n);
147
147
  };
148
148
  render() {
149
- let { authoring: e = {}, availableTools: t = [], gridConfigurations: n = [], graphDimensions: r = {}, labelsPlaceholders: i, model: a, showLabels: o, dimensionsEnabled: s, showTitle: h, titlePlaceholder: w, mathMlOptions: T = {}, removeIncompleteTool: E } = this.props, { arrows: D, backgroundMarks: O, coordinatesOnHover: k, defaultGridConfiguration: A, domain: j, includeAxes: M, labels: N, range: P, standardGrid: F, title: I } = a || {}, L = (a || {}).graph || {}, { min: R, max: z, step: B } = r || {}, { dialog: V = {}, gridValues: H, labelValues: U, showPixelGuides: W } = this.state, G = {
149
+ let { authoring: e = {}, availableTools: t = [], gridConfigurations: n = [], graphDimensions: r = {}, labelsPlaceholders: i, model: a, showLabels: o, dimensionsEnabled: d, showTitle: h, titlePlaceholder: w, mathMlOptions: T = {}, removeIncompleteTool: E } = this.props, { arrows: D, backgroundMarks: O, coordinatesOnHover: k, defaultGridConfiguration: A, domain: j, includeAxes: M, labels: N, range: P, standardGrid: F, title: I } = a || {}, L = (a || {}).graph || {}, { min: R, max: z, step: B } = r || {}, { dialog: V = {}, gridValues: H, labelValues: U, showPixelGuides: W } = this.state, G = {
150
150
  min: Math.max(150, R),
151
151
  max: Math.min(800, z),
152
152
  step: B >= 1 ? Math.min(200, B) : 20
153
153
  }, K = {
154
154
  axisLabel: e.axisLabel,
155
- dimensionsEnabled: s,
155
+ dimensionsEnabled: d,
156
156
  includeAxesEnabled: e.includeAxesEnabled,
157
157
  labelStep: e.labelStep,
158
158
  min: e.min,
@@ -160,13 +160,13 @@ var _ = s("div")(({ theme: e }) => ({
160
160
  standardGridEnabled: e.standardGridEnabled,
161
161
  step: e.step
162
162
  }, q = e.enabled && Object.values(K).some((e) => typeof e == "object" ? e.enabled : e);
163
- return /* @__PURE__ */ d(_, { children: [
164
- /* @__PURE__ */ d(v, { children: [n && n.length ? /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(S, {
163
+ return /* @__PURE__ */ u(_, { children: [
164
+ /* @__PURE__ */ u(v, { children: [n && n.length ? /* @__PURE__ */ u(x, { children: [/* @__PURE__ */ l(S, {
165
165
  component: "div",
166
166
  variant: "h6",
167
167
  children: "Grid Configuration"
168
- }), /* @__PURE__ */ u(C, {
169
- input: /* @__PURE__ */ u(m, {}),
168
+ }), /* @__PURE__ */ l(C, {
169
+ input: /* @__PURE__ */ l(m, {}),
170
170
  displayEmpty: !0,
171
171
  onChange: this.changeGridConfiguration,
172
172
  value: A,
@@ -174,11 +174,11 @@ var _ = s("div")(({ theme: e }) => ({
174
174
  enter: 225,
175
175
  exit: 195
176
176
  } },
177
- children: (n || []).map((e, t) => /* @__PURE__ */ u(p, {
177
+ children: (n || []).map((e, t) => /* @__PURE__ */ l(p, {
178
178
  value: t,
179
179
  children: e.label
180
180
  }, t))
181
- })] }) : null, q && /* @__PURE__ */ u(l, {
181
+ })] }) : null, q && /* @__PURE__ */ l(c, {
182
182
  displayedFields: K,
183
183
  domain: j,
184
184
  gridValues: H,
@@ -191,18 +191,18 @@ var _ = s("div")(({ theme: e }) => ({
191
191
  onChange: this.onConfigChange,
192
192
  onChangeView: this.onChangeView
193
193
  })] }),
194
- /* @__PURE__ */ d(y, { children: [
195
- /* @__PURE__ */ u(g, {
194
+ /* @__PURE__ */ u(y, { children: [
195
+ /* @__PURE__ */ l(g, {
196
196
  component: "div",
197
197
  variant: "h6",
198
198
  children: "Define Graph Attributes"
199
199
  }),
200
- /* @__PURE__ */ u(b, {
200
+ /* @__PURE__ */ l(b, {
201
201
  component: "div",
202
202
  variant: "body1",
203
203
  children: "Use this interface to add/edit a title and/or labels, and to set background shapes"
204
204
  }),
205
- /* @__PURE__ */ u(c, {
205
+ /* @__PURE__ */ l(s, {
206
206
  axesSettings: { includeArrows: D },
207
207
  backgroundMarks: [],
208
208
  coordinatesOnHover: k,
@@ -230,7 +230,7 @@ var _ = s("div")(({ theme: e }) => ({
230
230
  removeIncompleteTool: E
231
231
  }, "graphing-config")
232
232
  ] }, "graph"),
233
- /* @__PURE__ */ u(f, {
233
+ /* @__PURE__ */ l(f, {
234
234
  open: V.isOpened,
235
235
  title: "Warning",
236
236
  text: "This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.",
@@ -1,20 +1,20 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
- import t from "./configure.js";
3
- import n from "./defaults.js";
4
- import r from "react";
5
- import { createRoot as i } from "react-dom/client";
6
- import { renderMath as a } from "@pie-element/shared-math-rendering-mathjax";
7
- import o from "debug";
1
+ import e from "./configure.js";
2
+ import t from "./defaults.js";
3
+ import n from "react";
4
+ import { createRoot as r } from "react-dom/client";
5
+ import { renderMath as i } from "@pie-element/shared-math-rendering-mathjax";
6
+ import a from "debug";
7
+ import { cloneDeep as o } from "@pie-element/shared-lodash";
8
8
  import { DeleteImageEvent as s, DeleteSoundEvent as c, InsertImageEvent as l, InsertSoundEvent as u, ModelUpdatedEvent as d } from "@pie-element/shared-configure-events";
9
9
  //#region src/author/index.ts
10
- var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), m = class o extends HTMLElement {
10
+ var f = a("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), m = class a extends HTMLElement {
11
11
  static createDefaultModel = (e = {}) => {
12
- let t = {
13
- ...n.model,
12
+ let n = {
13
+ ...t.model,
14
14
  ...e
15
- }, { answers: r = {}, domain: i = {}, defaultTool: a, graph: o = {}, range: s = {}, standardGrid: c, toolbarTools: l } = t, u = (l || []).filter((e) => e !== "label"), d = a || u.length && u[0] || "";
15
+ }, { answers: r = {}, domain: i = {}, defaultTool: a, graph: o = {}, range: s = {}, standardGrid: c, toolbarTools: l } = n, u = (l || []).filter((e) => e !== "label"), d = a || u.length && u[0] || "";
16
16
  return {
17
- ...t,
17
+ ...n,
18
18
  answers: r && r.correctAnswer && {
19
19
  correctAnswer: r.correctAnswer,
20
20
  ...p(r)
@@ -34,10 +34,10 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
34
34
  };
35
35
  };
36
36
  constructor() {
37
- super(), this._root = null, this._model = o.createDefaultModel(), this._configuration = n.configuration;
37
+ super(), this._root = null, this._model = a.createDefaultModel(), this._configuration = t.configuration;
38
38
  }
39
- set model(t) {
40
- this._model = o.createDefaultModel(t), this._modelCopy = e(this._model), this._render();
39
+ set model(e) {
40
+ this._model = a.createDefaultModel(e), this._modelCopy = o(this._model), this._render();
41
41
  }
42
42
  resetModelAfterConfigurationIsSet = () => {
43
43
  let e = document.querySelectorAll("pie-author");
@@ -45,7 +45,7 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
45
45
  };
46
46
  set configuration(e) {
47
47
  this._configuration = {
48
- ...n.configuration,
48
+ ...t.configuration,
49
49
  ...e
50
50
  }, this.resetModelAfterConfigurationIsSet(), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
51
51
  }
@@ -69,7 +69,7 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
69
69
  }
70
70
  _render() {
71
71
  if (this._model) {
72
- let e = r.createElement(t, {
72
+ let t = n.createElement(e, {
73
73
  onModelChanged: this.onModelChanged,
74
74
  onConfigurationChanged: this.onConfigurationChanged,
75
75
  model: this._model,
@@ -83,8 +83,8 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
83
83
  delete: this.onDeleteSound.bind(this)
84
84
  }
85
85
  });
86
- this._root ||= i(this), this._root.render(e), queueMicrotask(() => {
87
- a(this);
86
+ this._root ||= r(this), this._root.render(t), queueMicrotask(() => {
87
+ i(this);
88
88
  });
89
89
  }
90
90
  }
@@ -1,4 +1,4 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
1
+ import { isEqual as e } from "@pie-element/shared-lodash";
2
2
  //#region src/author/utils.ts
3
3
  var t = [
4
4
  .01,