@pie-element/charting 12.1.1-next.1 → 12.1.1-next.11

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 (215) hide show
  1. package/CHANGELOG.json +487 -0
  2. package/CHANGELOG.md +1991 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +292 -0
  6. package/configure/CHANGELOG.md +1758 -0
  7. package/configure/lib/charting-config.js +192 -0
  8. package/configure/lib/charting-config.js.map +1 -0
  9. package/configure/lib/configure.js +312 -0
  10. package/configure/lib/configure.js.map +1 -0
  11. package/configure/lib/correct-response.js +244 -0
  12. package/configure/lib/correct-response.js.map +1 -0
  13. package/configure/lib/defaults.js +233 -0
  14. package/configure/lib/defaults.js.map +1 -0
  15. package/configure/lib/index.js +120 -0
  16. package/configure/lib/index.js.map +1 -0
  17. package/configure/lib/utils.js +80 -0
  18. package/configure/lib/utils.js.map +1 -0
  19. package/configure/package.json +29 -0
  20. package/controller/CHANGELOG.json +262 -0
  21. package/controller/CHANGELOG.md +1208 -0
  22. package/controller/lib/defaults.js +42 -0
  23. package/controller/lib/defaults.js.map +1 -0
  24. package/controller/lib/index.js +434 -0
  25. package/controller/lib/index.js.map +1 -0
  26. package/controller/package.json +24 -0
  27. package/docs/config-schema.json +2440 -0
  28. package/docs/config-schema.json.md +1802 -0
  29. package/docs/demo/config.js +8 -0
  30. package/docs/demo/generate.js +63 -0
  31. package/docs/demo/index.html +1 -0
  32. package/docs/demo/session.js +26 -0
  33. package/docs/pie-schema.json +1731 -0
  34. package/docs/pie-schema.json.md +945 -0
  35. package/lib/index.js +78 -0
  36. package/lib/index.js.map +1 -0
  37. package/lib/main.js +167 -0
  38. package/lib/main.js.map +1 -0
  39. package/package.json +20 -57
  40. package/dist/author/charting-config.d.ts +0 -30
  41. package/dist/author/charting-config.js +0 -126
  42. package/dist/author/configure.d.ts +0 -29
  43. package/dist/author/configure.js +0 -205
  44. package/dist/author/correct-response.d.ts +0 -27
  45. package/dist/author/correct-response.js +0 -116
  46. package/dist/author/defaults.d.ts +0 -229
  47. package/dist/author/defaults.js +0 -186
  48. package/dist/author/index.d.ts +0 -51
  49. package/dist/author/index.js +0 -74
  50. package/dist/author/utils.d.ts +0 -42
  51. package/dist/author/utils.js +0 -244
  52. package/dist/charting.css +0 -2
  53. package/dist/controller/defaults.d.ts +0 -44
  54. package/dist/controller/defaults.js +0 -33
  55. package/dist/controller/index.d.ts +0 -28
  56. package/dist/controller/index.js +0 -155
  57. package/dist/delivery/index.d.ts +0 -21
  58. package/dist/delivery/index.js +0 -46
  59. package/dist/delivery/main.d.ts +0 -23
  60. package/dist/delivery/main.js +0 -128
  61. package/dist/index.d.ts +0 -1
  62. package/dist/index.iife.d.ts +0 -8
  63. package/dist/index.iife.js +0 -368
  64. package/dist/index.js +0 -2
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +0 -6
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +0 -10
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +0 -13
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +0 -9
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +0 -18
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +0 -7
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +0 -8
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +0 -8
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
@@ -1,186 +0,0 @@
1
- //#region src/author/defaults.ts
2
- var e = {
3
- model: {
4
- addCategoryEnabled: !0,
5
- changeAddCategoryEnabled: !1,
6
- changeEditableEnabled: !1,
7
- changeInteractiveEnabled: !1,
8
- chartType: "lineCross",
9
- correctAnswer: {},
10
- data: [],
11
- domain: {},
12
- graph: {
13
- width: 480,
14
- height: 480
15
- },
16
- prompt: "",
17
- promptEnabled: !0,
18
- range: {
19
- label: "",
20
- max: 1,
21
- min: 0,
22
- labelStep: 1
23
- },
24
- rationale: "",
25
- rationaleEnabled: !0,
26
- scoringType: "all or nothing",
27
- studentInstructionsEnabled: !0,
28
- studentNewCategoryDefaultLabel: "New Category",
29
- teacherInstructions: "",
30
- teacherInstructionsEnabled: !0,
31
- title: ""
32
- },
33
- configuration: {
34
- baseInputConfiguration: {
35
- h3: { disabled: !0 },
36
- audio: { disabled: !1 },
37
- video: { disabled: !1 },
38
- image: { disabled: !1 },
39
- textAlign: { disabled: !0 },
40
- showParagraphs: { disabled: !1 },
41
- separateParagraphs: { disabled: !0 }
42
- },
43
- spellCheck: {
44
- label: "Spellcheck",
45
- settings: !1,
46
- enabled: !0
47
- },
48
- chartDimensions: {
49
- settings: !1,
50
- label: "Chart Dimensions",
51
- showInConfigPanel: !0,
52
- width: {
53
- min: 50,
54
- max: 700,
55
- step: 20
56
- },
57
- height: {
58
- min: 400,
59
- max: 700,
60
- step: 20
61
- }
62
- },
63
- authorNewCategoryDefaults: {
64
- settings: !1,
65
- label: "Category",
66
- interactive: !0,
67
- editable: !1
68
- },
69
- availableChartTypes: {
70
- bar: "Bar Chart",
71
- histogram: "Histogram",
72
- lineDot: "Line Chart ●",
73
- lineCross: "Line Chart x",
74
- dotPlot: "Dot/Line Plot ⬤",
75
- linePlot: "Dot/Line Plot X"
76
- },
77
- chartTypeLabel: "ChartType",
78
- studentNewCategoryDefaultLabel: {
79
- settings: !1,
80
- label: "Category"
81
- },
82
- prompt: {
83
- settings: !0,
84
- label: "Item Stem",
85
- required: !1,
86
- inputConfiguration: {
87
- audio: { disabled: !1 },
88
- video: { disabled: !1 },
89
- image: { disabled: !1 }
90
- }
91
- },
92
- rationale: {
93
- settings: !0,
94
- label: "Rationale",
95
- required: !1,
96
- inputConfiguration: {
97
- audio: { disabled: !1 },
98
- video: { disabled: !1 },
99
- image: { disabled: !1 }
100
- }
101
- },
102
- scoringType: {
103
- settings: !1,
104
- label: "Scoring Type"
105
- },
106
- settingsPanelDisabled: !1,
107
- studentInstructions: {
108
- settings: !1,
109
- label: "Student Instructions"
110
- },
111
- teacherInstructions: {
112
- settings: !0,
113
- label: "Teacher Instructions",
114
- required: !1,
115
- inputConfiguration: {
116
- audio: { disabled: !1 },
117
- video: { disabled: !1 },
118
- image: { disabled: !1 }
119
- }
120
- },
121
- title: {
122
- settings: !1,
123
- label: "Chart Title"
124
- },
125
- instruction: {
126
- settings: !1,
127
- label: "This item type provides various types of interactive charts. Depending upon how an item is configured,\n students can change the heights of bars (or other similar chart elements) created by the author; relabel bars\n created by the author; and/or add new bars, label them, and set their heights."
128
- },
129
- titlePlaceholder: {
130
- settings: !1,
131
- label: "Click here to add a title"
132
- },
133
- labelsPlaceholders: {
134
- left: "Click here to add a label for this axis",
135
- right: "",
136
- top: "",
137
- bottom: "Click here to add a label for this axis"
138
- },
139
- maxImageWidth: {
140
- teacherInstructions: 300,
141
- prompt: 300,
142
- rationale: 300
143
- },
144
- maxImageHeight: {
145
- teacherInstructions: 300,
146
- prompt: 300,
147
- rationale: 300
148
- },
149
- withRubric: {
150
- settings: !1,
151
- label: "Add Rubric"
152
- },
153
- language: {
154
- settings: !1,
155
- label: "Specify Language",
156
- enabled: !1
157
- },
158
- languageChoices: {
159
- label: "Language Choices",
160
- options: []
161
- },
162
- chartingOptions: {
163
- changeInteractive: {
164
- settings: !1,
165
- authoringLabel: "Student can set value",
166
- settingsLabel: "Allow non-interactive categories"
167
- },
168
- changeEditable: {
169
- settings: !1,
170
- authoringLabel: "Student can edit name",
171
- settingsLabel: "Allow editable category names"
172
- },
173
- addCategory: {
174
- settings: !1,
175
- authoringLabel: "Student can add categories",
176
- settingsLabel: "Allow changes to whether students can add categories"
177
- },
178
- mathMlOptions: {
179
- mmlOutput: !1,
180
- mmlEditing: !1
181
- }
182
- }
183
- }
184
- };
185
- //#endregion
186
- export { e as default };
@@ -1,51 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/charting/configure/src/index.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- export default class GraphLinesConfigure extends HTMLElement {
10
- static createDefaultModel: (model?: {}) => {
11
- addCategoryEnabled: boolean;
12
- changeAddCategoryEnabled: boolean;
13
- changeEditableEnabled: boolean;
14
- changeInteractiveEnabled: boolean;
15
- chartType: string;
16
- correctAnswer: {};
17
- data: never[];
18
- domain: {};
19
- graph: {
20
- width: number;
21
- height: number;
22
- };
23
- prompt: string;
24
- promptEnabled: boolean;
25
- range: {
26
- label: string;
27
- max: number;
28
- min: number;
29
- labelStep: number;
30
- };
31
- rationale: string;
32
- rationaleEnabled: boolean;
33
- scoringType: string;
34
- studentInstructionsEnabled: boolean;
35
- studentNewCategoryDefaultLabel: string;
36
- teacherInstructions: string;
37
- teacherInstructionsEnabled: boolean;
38
- title: string;
39
- };
40
- constructor();
41
- set model(m: any);
42
- set configuration(c: any);
43
- onModelChanged(model: any): void;
44
- onConfigurationChanged(config: any): void;
45
- insertImage(handler: any): void;
46
- onDeleteImage(src: any, done: any): void;
47
- insertSound(handler: any): void;
48
- onDeleteSound(src: any, done: any): void;
49
- _render(): void;
50
- disconnectedCallback(): void;
51
- }
@@ -1,74 +0,0 @@
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 { DeleteImageEvent as o, DeleteSoundEvent as s, InsertImageEvent as c, InsertSoundEvent as l, ModelUpdatedEvent as u } from "@pie-element/shared-configure-events";
8
- //#region src/author/index.ts
9
- var d = a("pie-elements:graphing:configure"), f = class a extends HTMLElement {
10
- static createDefaultModel = (e = {}) => ({
11
- ...t.model,
12
- ...e
13
- });
14
- constructor() {
15
- super(), this._root = null, this._model = a.createDefaultModel(), this._configuration = t.configuration;
16
- }
17
- set model(e) {
18
- this._model = a.createDefaultModel(e), this._render();
19
- }
20
- set configuration(e) {
21
- let n = {
22
- ...t.configuration,
23
- ...e
24
- };
25
- this._configuration = n, n?.language?.enabled ? n?.languageChoices?.options?.length && (this._model.language = n?.languageChoices.options[0].value) : n.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
26
- value: this._model.language,
27
- label: this._model.language
28
- })) : delete this._model.language, this._render();
29
- }
30
- onModelChanged(e) {
31
- this._model = e, this._render(), d("[onModelChanged]: ", this._model), this.dispatchEvent(new u(this._model));
32
- }
33
- onConfigurationChanged(e) {
34
- this._configuration = e, this._render();
35
- }
36
- insertImage(e) {
37
- this.dispatchEvent(new c(e));
38
- }
39
- onDeleteImage(e, t) {
40
- this.dispatchEvent(new o(e, t));
41
- }
42
- insertSound(e) {
43
- this.dispatchEvent(new l(e));
44
- }
45
- onDeleteSound(e, t) {
46
- this.dispatchEvent(new s(e, t));
47
- }
48
- _render() {
49
- if (this._model) {
50
- let t = n.createElement(e, {
51
- onModelChanged: this.onModelChanged.bind(this),
52
- onConfigurationChanged: this.onConfigurationChanged.bind(this),
53
- model: this._model,
54
- configuration: this._configuration,
55
- imageSupport: {
56
- add: this.insertImage.bind(this),
57
- delete: this.onDeleteImage.bind(this)
58
- },
59
- uploadSoundSupport: {
60
- add: this.insertSound.bind(this),
61
- delete: this.onDeleteSound.bind(this)
62
- }
63
- });
64
- this._root ||= r(this), this._root.render(t), queueMicrotask(() => {
65
- i(this);
66
- });
67
- }
68
- }
69
- disconnectedCallback() {
70
- this._root && this._root.unmount();
71
- }
72
- };
73
- //#endregion
74
- export { f as default };
@@ -1,42 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/charting/configure/src/utils.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- export declare const VALID_LABEL_VALUES: {
10
- 0.01: number[];
11
- 0.02: number[];
12
- 0.04: number[];
13
- 0.05: number[];
14
- 0.0625: number[];
15
- 0.1: number[];
16
- 0.125: number[];
17
- 0.2: number[];
18
- 0.25: number[];
19
- 0.5: number[];
20
- 1: number[];
21
- 2: number[];
22
- 3: number[];
23
- 4: number[];
24
- 5: number[];
25
- 8: number[];
26
- 10: number[];
27
- 12: number[];
28
- 15: number[];
29
- 20: number[];
30
- 40: number[];
31
- 50: number[];
32
- 64: number[];
33
- 100: number[];
34
- 500: number[];
35
- 1000: number[];
36
- };
37
- export declare const getGridValues: (axis: any, size: any, prefferedValues?: boolean) => number[];
38
- export declare const getLabelValues: (value: any) => any;
39
- export declare const applyConstraints: (axis: any, size: any, oldGridValues: any, oldLabelValues: any) => {
40
- gridValues: number[];
41
- labelValues: any;
42
- };
@@ -1,244 +0,0 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
2
- //#region src/author/utils.ts
3
- var t = [
4
- .01,
5
- .02,
6
- .04,
7
- .05,
8
- .0625,
9
- .1,
10
- .125,
11
- .2,
12
- .25,
13
- .5,
14
- 1,
15
- 2,
16
- 3,
17
- 4,
18
- 5,
19
- 8,
20
- 10,
21
- 12,
22
- 15,
23
- 20,
24
- 40,
25
- 50,
26
- 64,
27
- 100,
28
- 500,
29
- 1e3
30
- ], n = [
31
- .01,
32
- .02,
33
- .05,
34
- .1,
35
- .2,
36
- .25,
37
- .5,
38
- 1,
39
- 2,
40
- 5,
41
- 10,
42
- 20,
43
- 50,
44
- 100,
45
- 500,
46
- 1e3
47
- ], r = {
48
- .01: [
49
- 0,
50
- .01,
51
- .02,
52
- .04,
53
- .05,
54
- .1
55
- ],
56
- .02: [
57
- 0,
58
- .02,
59
- .04,
60
- .1
61
- ],
62
- .04: [
63
- 0,
64
- .04,
65
- .08,
66
- .16,
67
- .2
68
- ],
69
- .05: [
70
- 0,
71
- .05,
72
- .1,
73
- .2,
74
- .25
75
- ],
76
- .0625: [
77
- 0,
78
- .0625,
79
- .125,
80
- .25,
81
- .5
82
- ],
83
- .1: [
84
- 0,
85
- .1,
86
- .2,
87
- .4,
88
- .5,
89
- 1
90
- ],
91
- .125: [
92
- 0,
93
- .125,
94
- .25,
95
- .5,
96
- 1
97
- ],
98
- .2: [
99
- 0,
100
- .2,
101
- .5,
102
- .1
103
- ],
104
- .25: [
105
- 0,
106
- .25,
107
- .5,
108
- 1,
109
- 2
110
- ],
111
- .5: [
112
- 0,
113
- .5,
114
- 1,
115
- 2
116
- ],
117
- 1: [
118
- 0,
119
- 1,
120
- 2,
121
- 4,
122
- 5,
123
- 10
124
- ],
125
- 2: [
126
- 0,
127
- 2,
128
- 4,
129
- 8,
130
- 10
131
- ],
132
- 3: [
133
- 0,
134
- 3,
135
- 6,
136
- 12,
137
- 15
138
- ],
139
- 4: [
140
- 0,
141
- 4,
142
- 8,
143
- 16,
144
- 20
145
- ],
146
- 5: [
147
- 0,
148
- 5,
149
- 10,
150
- 20,
151
- 25
152
- ],
153
- 8: [
154
- 0,
155
- 8,
156
- 16,
157
- 32,
158
- 40,
159
- 64
160
- ],
161
- 10: [
162
- 0,
163
- 10,
164
- 20,
165
- 40,
166
- 50,
167
- 100
168
- ],
169
- 12: [
170
- 0,
171
- 12,
172
- 24
173
- ],
174
- 15: [
175
- 0,
176
- 15,
177
- 30,
178
- 60
179
- ],
180
- 20: [
181
- 0,
182
- 20,
183
- 40,
184
- 80,
185
- 100
186
- ],
187
- 40: [
188
- 0,
189
- 40,
190
- 80,
191
- 160,
192
- 200
193
- ],
194
- 50: [
195
- 0,
196
- 50,
197
- 100,
198
- 200,
199
- 250
200
- ],
201
- 64: [
202
- 0,
203
- 64,
204
- 128
205
- ],
206
- 100: [
207
- 0,
208
- 100,
209
- 200,
210
- 400,
211
- 500
212
- ],
213
- 500: [
214
- 0,
215
- 500,
216
- 1e3,
217
- 2500
218
- ],
219
- 1e3: [
220
- 0,
221
- 1e3,
222
- 2e3,
223
- 4e3,
224
- 5e3
225
- ]
226
- }, i = (e, r, i = !1) => {
227
- let a = 10 * (e.max - e.min) / r, o = a * 10, s = i && !n.includes(e.step) && t.includes(e.step);
228
- return (!i || s ? t : n).filter((e) => e >= a && e <= o);
229
- }, a = (e) => r[e] || [], o = (t, n, r, o) => {
230
- let s = i(t, n), c = a(t.step || 1);
231
- if (!e(r, s) && !s.includes(t.step)) {
232
- let e = i(t, n, !0)[0] || 1;
233
- return t.step = e, c = a(e), c.includes(t.labelStep) || (t.labelStep = e), {
234
- gridValues: s,
235
- labelValues: c
236
- };
237
- }
238
- return !e(o, c) && !c.includes(t.labelStep) && (t.labelStep = t.step), {
239
- gridValues: s,
240
- labelValues: c
241
- };
242
- };
243
- //#endregion
244
- export { o as applyConstraints, i as getGridValues, a as getLabelValues };