@pie-element/charting 12.1.1-next.11 → 12.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 (228) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/charting-config.d.ts +30 -0
  4. package/dist/author/charting-config.js +126 -0
  5. package/dist/author/configure.d.ts +29 -0
  6. package/dist/author/configure.js +205 -0
  7. package/dist/author/correct-response.d.ts +27 -0
  8. package/dist/author/correct-response.js +116 -0
  9. package/dist/author/defaults.d.ts +229 -0
  10. package/dist/author/defaults.js +186 -0
  11. package/dist/author/index.d.ts +51 -0
  12. package/dist/author/index.js +74 -0
  13. package/dist/author/utils.d.ts +42 -0
  14. package/dist/author/utils.js +244 -0
  15. package/dist/browser/_baseSet-Cse6EM9A.js +1015 -0
  16. package/dist/browser/_baseSet-Cse6EM9A.js.map +1 -0
  17. package/dist/browser/author/index.js +1242 -0
  18. package/dist/browser/author/index.js.map +1 -0
  19. package/dist/browser/chart-Dghjf6JQ.js +62980 -0
  20. package/dist/browser/chart-Dghjf6JQ.js.map +1 -0
  21. package/dist/browser/charting.css +2 -0
  22. package/dist/browser/controller/index.js +233 -0
  23. package/dist/browser/controller/index.js.map +1 -0
  24. package/dist/browser/delivery/index.js +517 -0
  25. package/dist/browser/delivery/index.js.map +1 -0
  26. package/dist/charting.css +2 -0
  27. package/dist/controller/defaults.d.ts +44 -0
  28. package/dist/controller/defaults.js +33 -0
  29. package/dist/controller/index.d.ts +28 -0
  30. package/dist/controller/index.js +155 -0
  31. package/dist/delivery/index.d.ts +21 -0
  32. package/dist/delivery/index.js +46 -0
  33. package/dist/delivery/main.d.ts +23 -0
  34. package/dist/delivery/main.js +128 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.iife.d.ts +8 -0
  37. package/dist/index.iife.js +397 -0
  38. package/dist/index.js +2 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  190. package/package.json +81 -20
  191. package/CHANGELOG.json +0 -487
  192. package/CHANGELOG.md +0 -1991
  193. package/LICENSE.md +0 -5
  194. package/README.md +0 -1
  195. package/configure/CHANGELOG.json +0 -292
  196. package/configure/CHANGELOG.md +0 -1758
  197. package/configure/lib/charting-config.js +0 -192
  198. package/configure/lib/charting-config.js.map +0 -1
  199. package/configure/lib/configure.js +0 -312
  200. package/configure/lib/configure.js.map +0 -1
  201. package/configure/lib/correct-response.js +0 -244
  202. package/configure/lib/correct-response.js.map +0 -1
  203. package/configure/lib/defaults.js +0 -233
  204. package/configure/lib/defaults.js.map +0 -1
  205. package/configure/lib/index.js +0 -120
  206. package/configure/lib/index.js.map +0 -1
  207. package/configure/lib/utils.js +0 -80
  208. package/configure/lib/utils.js.map +0 -1
  209. package/configure/package.json +0 -29
  210. package/controller/CHANGELOG.json +0 -262
  211. package/controller/CHANGELOG.md +0 -1208
  212. package/controller/lib/defaults.js +0 -42
  213. package/controller/lib/defaults.js.map +0 -1
  214. package/controller/lib/index.js +0 -434
  215. package/controller/lib/index.js.map +0 -1
  216. package/controller/package.json +0 -24
  217. package/docs/config-schema.json +0 -2440
  218. package/docs/config-schema.json.md +0 -1802
  219. package/docs/demo/config.js +0 -8
  220. package/docs/demo/generate.js +0 -63
  221. package/docs/demo/index.html +0 -1
  222. package/docs/demo/session.js +0 -26
  223. package/docs/pie-schema.json +0 -1731
  224. package/docs/pie-schema.json.md +0 -945
  225. package/lib/index.js +0 -78
  226. package/lib/index.js.map +0 -1
  227. package/lib/main.js +0 -167
  228. package/lib/main.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_client","_pieConfigureEvents","_debug","_configure","_defaults","_mathRendering","log","debug","GraphLinesConfigure","HTMLElement","constructor","_root","_model","createDefaultModel","_configuration","defaultValues","configuration","model","m","_render","c","newConfiguration","language","enabled","languageChoices","options","length","value","settings","find","option","push","label","onModelChanged","dispatchEvent","ModelUpdatedEvent","onConfigurationChanged","config","insertImage","handler","InsertImageEvent","onDeleteImage","src","done","DeleteImageEvent","insertSound","InsertSoundEvent","onDeleteSound","DeleteSoundEvent","el","React","createElement","Configure","bind","imageSupport","add","delete","uploadSoundSupport","createRoot","render","queueMicrotask","renderMath","disconnectedCallback","unmount","exports","default","_defineProperty2"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport {\n ModelUpdatedEvent,\n DeleteImageEvent,\n InsertImageEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n} from '@pie-framework/pie-configure-events';\nimport debug from 'debug';\nimport Configure from './configure';\nimport defaultValues from './defaults';\nimport { renderMath } from '@pie-lib/math-rendering';\n\nconst log = debug('pie-elements:graphing:configure');\n\nexport default class GraphLinesConfigure extends HTMLElement {\n static createDefaultModel = (model = {}) => ({ ...defaultValues.model, ...model });\n\n constructor() {\n super();\n this._root = null;\n this._model = GraphLinesConfigure.createDefaultModel();\n this._configuration = defaultValues.configuration;\n }\n\n set model(m) {\n this._model = GraphLinesConfigure.createDefaultModel(m);\n this._render();\n }\n\n set configuration(c) {\n const newConfiguration = {\n ...defaultValues.configuration,\n ...c,\n };\n\n this._configuration = newConfiguration;\n\n // if language:enabled is true, then the corresponding default item model should include a language value;\n // if it is false, then the language field should be omitted from the item model.\n // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,\n // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).\n if (newConfiguration?.language?.enabled) {\n if (newConfiguration?.languageChoices?.options?.length) {\n this._model.language = newConfiguration?.languageChoices.options[0].value;\n }\n } else if (newConfiguration.language.settings && this._model.language) {\n this._configuration.language.enabled = true;\n\n if (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) {\n this._configuration.languageChoices.options = [];\n }\n\n // check if the language is already included in the languageChoices.options array\n // and if not, then add it.\n if (!this._configuration.languageChoices.options.find((option) => option.value === this._model.language)) {\n this._configuration.languageChoices.options.push({\n value: this._model.language,\n label: this._model.language,\n });\n }\n } else {\n delete this._model.language;\n }\n\n this._render();\n }\n\n onModelChanged(model) {\n this._model = model;\n this._render();\n\n log('[onModelChanged]: ', this._model);\n\n this.dispatchEvent(new ModelUpdatedEvent(this._model));\n }\n\n onConfigurationChanged(config) {\n this._configuration = config;\n this._render();\n }\n\n insertImage(handler) {\n this.dispatchEvent(new InsertImageEvent(handler));\n }\n\n onDeleteImage(src, done) {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n }\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n _render() {\n if (this._model) {\n const el = React.createElement(Configure, {\n onModelChanged: this.onModelChanged.bind(this),\n onConfigurationChanged: this.onConfigurationChanged.bind(this),\n model: this._model,\n configuration: this._configuration,\n imageSupport: {\n add: this.insertImage.bind(this),\n delete: this.onDeleteImage.bind(this),\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n queueMicrotask(() => {\n renderMath(this);\n });\n }\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAOA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAEA,MAAMO,GAAG,GAAG,IAAAC,cAAK,EAAC,iCAAiC,CAAC;AAErC,MAAMC,mBAAmB,SAASC,WAAW,CAAC;EAG3DC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,KAAK,GAAG,IAAI;IACjB,IAAI,CAACC,MAAM,GAAGJ,mBAAmB,CAACK,kBAAkB,CAAC,CA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true
5
- });
6
- exports.getLabelValues = exports.getGridValues = exports.applyConstraints = exports.VALID_LABEL_VALUES = void 0;
7
- var _lodashEs = require("lodash-es");
8
- // this file is almost duplicated from graphing/configure/src/utils.js; the same logic must be used in charting
9
-
10
- const VALID_GRID_VALUES = [0.01, 0.02, 0.04, 0.05, 0.0625, 0.1, 0.125, 0.2, 0.25, 0.5, 1, 2, 3, 4, 5, 8, 10, 12, 15, 20, 40, 50, 64, 100, 500, 1000];
11
-
12
- // same as VALID_GRID_VALUES but next values are excluded: 0.04, 0.0625, 0.125, 3, 4, 8, 12, 15, 40, 64
13
- const PREFERRED_VALID_GRID_VALUES = [0.01, 0.02, 0.05, 0.1, 0.2, 0.25, 0.5, 1, 2, 5, 10, 20, 50, 100, 500, 1000];
14
- const VALID_LABEL_VALUES = exports.VALID_LABEL_VALUES = {
15
- 0.01: [0, 0.01, 0.02, 0.04, 0.05, 0.1],
16
- 0.02: [0, 0.02, 0.04, 0.1],
17
- 0.04: [0, 0.04, 0.08, 0.16, 0.2],
18
- 0.05: [0, 0.05, 0.1, 0.2, 0.25],
19
- 0.0625: [0, 0.0625, 0.125, 0.25, 0.5],
20
- 0.1: [0, 0.1, 0.2, 0.4, 0.5, 1],
21
- 0.125: [0, 0.125, 0.25, 0.5, 1],
22
- 0.2: [0, 0.2, 0.5, 0.1],
23
- 0.25: [0, 0.25, 0.5, 1, 2],
24
- 0.5: [0, 0.5, 1, 2],
25
- 1: [0, 1, 2, 4, 5, 10],
26
- 2: [0, 2, 4, 8, 10],
27
- 3: [0, 3, 6, 12, 15],
28
- 4: [0, 4, 8, 16, 20],
29
- 5: [0, 5, 10, 20, 25],
30
- 8: [0, 8, 16, 32, 40, 64],
31
- 10: [0, 10, 20, 40, 50, 100],
32
- 12: [0, 12, 24],
33
- 15: [0, 15, 30, 60],
34
- 20: [0, 20, 40, 80, 100],
35
- 40: [0, 40, 80, 160, 200],
36
- 50: [0, 50, 100, 200, 250],
37
- 64: [0, 64, 128],
38
- 100: [0, 100, 200, 400, 500],
39
- 500: [0, 500, 1000, 2500],
40
- 1000: [0, 1000, 2000, 4000, 5000]
41
- };
42
- const getGridValues = (axis, size, prefferedValues = false) => {
43
- const minValue = 10 * (axis.max - axis.min) / size;
44
- const maxValue = minValue * 10;
45
-
46
- // if preferred values should be used enforce all values to be used if the axis step
47
- // is included in all supported values and not included in preferred values
48
- const useAllValues = prefferedValues && !PREFERRED_VALID_GRID_VALUES.includes(axis.step) && VALID_GRID_VALUES.includes(axis.step);
49
- const values = !prefferedValues || useAllValues ? VALID_GRID_VALUES : PREFERRED_VALID_GRID_VALUES;
50
- return values.filter(value => value >= minValue && value <= maxValue);
51
- };
52
- exports.getGridValues = getGridValues;
53
- const getLabelValues = value => VALID_LABEL_VALUES[value] || [];
54
- exports.getLabelValues = getLabelValues;
55
- const applyConstraints = (axis, size, oldGridValues, oldLabelValues) => {
56
- const gridValues = getGridValues(axis, size);
57
- let labelValues = getLabelValues(axis.step || 1);
58
- if (!(0, _lodashEs.isEqual)(oldGridValues, gridValues) && !gridValues.includes(axis.step)) {
59
- const preferredValues = getGridValues(axis, size, true);
60
- const lowestValue = preferredValues[0] || 1;
61
- axis.step = lowestValue;
62
- labelValues = getLabelValues(lowestValue);
63
- if (!labelValues.includes(axis.labelStep)) {
64
- axis.labelStep = lowestValue;
65
- }
66
- return {
67
- gridValues,
68
- labelValues
69
- };
70
- }
71
- if (!(0, _lodashEs.isEqual)(oldLabelValues, labelValues) && !labelValues.includes(axis.labelStep)) {
72
- axis.labelStep = axis.step;
73
- }
74
- return {
75
- gridValues,
76
- labelValues
77
- };
78
- };
79
- exports.applyConstraints = applyConstraints;
80
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","names":["_lodashEs","require","VALID_GRID_VALUES","PREFERRED_VALID_GRID_VALUES","VALID_LABEL_VALUES","exports","getGridValues","axis","size","prefferedValues","minValue","max","min","maxValue","useAllValues","includes","step","values","filter","value","getLabelValues","applyConstraints","oldGridValues","oldLabelValues","gridValues","labelValues","isEqual","preferredValues","lowestValue","labelStep"],"sources":["../src/utils.js"],"sourcesContent":["// this file is almost duplicated from graphing/configure/src/utils.js; the same logic must be used in charting\nimport { isEqual } from 'lodash-es';\n\nconst VALID_GRID_VALUES = [\n 0.01, 0.02, 0.04, 0.05, 0.0625, 0.1, 0.125, 0.2, 0.25, 0.5, 1, 2, 3, 4, 5, 8, 10, 12, 15, 20, 40, 50, 64, 100, 500,\n 1000,\n];\n\n// same as VALID_GRID_VALUES but next values are excluded: 0.04, 0.0625, 0.125, 3, 4, 8, 12, 15, 40, 64\nconst PREFERRED_VALID_GRID_VALUES = [0.01, 0.02, 0.05, 0.1, 0.2, 0.25, 0.5, 1, 2, 5, 10, 20, 50, 100, 500, 1000];\n\nexport const VALID_LABEL_VALUES = {\n 0.01: [0, 0.01, 0.02, 0.04, 0.05, 0.1],\n 0.02: [0, 0.02, 0.04, 0.1],\n 0.04: [0, 0.04, 0.08, 0.16, 0.2],\n 0.05: [0, 0.05, 0.1, 0.2, 0.25],\n 0.0625: [0, 0.0625, 0.125, 0.25, 0.5],\n 0.1: [0, 0.1, 0.2, 0.4, 0.5, 1],\n 0.125: [0, 0.125, 0.25, 0.5, 1],\n 0.2: [0, 0.2, 0.5, 0.1],\n 0.25: [0, 0.25, 0.5, 1, 2],\n 0.5: [0, 0.5, 1, 2],\n 1: [0, 1, 2, 4, 5, 10],\n 2: [0, 2, 4, 8, 10],\n 3: [0, 3, 6, 12, 15],\n 4: [0, 4, 8, 16, 20],\n 5: [0, 5, 10, 20, 25],\n 8: [0, 8, 16, 32, 40, 64],\n 10: [0, 10, 20, 40, 50, 100],\n 12: [0, 12, 24],\n 15: [0, 15, 30, 60],\n 20: [0, 20, 40, 80, 100],\n 40: [0, 40, 80, 160, 200],\n 50: [0, 50, 100, 200, 250],\n 64: [0, 64, 128],\n 100: [0, 100, 200, 400, 500],\n 500: [0, 500, 1000, 2500],\n 1000: [0, 1000, 2000, 4000, 5000],\n};\n\nexport const getGridValues = (axis, size, prefferedValues = false) => {\n const minValue = (10 * (axis.max - axis.min)) / size;\n const maxValue = minValue * 10;\n\n // if preferred values should be used enforce all values to be used if the axis step\n // is included in all supported values and not included in preferred values\n const useAllValues =\n prefferedValues && !PREFERRED_VALID_GRID_VALUES.includes(axis.step) && VALID_GRID_VALUES.includes(axis.step);\n const values = !prefferedValues || useAllValues ? VALID_GRID_VALUES : PREFERRED_VALID_GRID_VALUES;\n\n return values.filter((value) => value >= minValue && value <= maxValue);\n};\n\nexport const getLabelValues = (value) => VALID_LABEL_VALUES[value] || [];\n\nexport const applyConstraints = (axis, size, oldGridValues, oldLabelValues) => {\n const gridValues = getGridValues(axis, size);\n let labelValues = getLabelValues(axis.step || 1);\n\n if (!isEqual(oldGridValues, gridValues) && !gridValues.includes(axis.step)) {\n const preferredValues = getGridValues(axis, size, true);\n const lowestValue = preferredValues[0] || 1;\n\n axis.step = lowestValue;\n labelValues = getLabelValues(lowestValue);\n\n if (!labelValues.includes(axis.labelStep)) {\n axis.labelStep = lowestValue;\n }\n\n return { gridValues, labelValues };\n }\n\n if (!isEqual(oldLabelValues, labelValues) && !labelValues.includes(axis.labelStep)) {\n axis.labelStep = axis.step;\n }\n\n return { gridValues, labelValues };\n};\n"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AADA;;AAGA,MAAMC,iBAAiB,GAAG,CACxB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAClH,IAAI,CACL;;AAED;AACA,MAAMC,2BAA2B,GAAG,CAAC,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AAGY,WAAW;IACvBH,WAAW,GAAGL,cAAc,CAACQ,WAAW,CAAC;IAEzC,IAAI,CAACH,WAAW,CAACV,QAAQ,CAACR,IAAI,CAACsB,SAAS,CAAC,EAAE;MACzCtB,IAAI,CAACsB,SAAS,GAAGD,WAAW;IAC9B;IAEA,OAAO;MAAEJ,UAAU;MAAEC;IAAY,CAAC;EACpC;EAEA,IAAI,CAAC,IAAAC,iBAAO,EAACH,cAAc,EAAEE,WAAW,CAAC,IAAI,CAACA,WAAW,CAACV,QAAQ,CAACR,IAAI,CAACsB,SAAS,CAAC,EAAE;IAClFtB,IAAI,CAACsB,SAAS,GAAGtB,IAAI,CAACS,IAAI;EAC5B;EAEA,OAAO;IAAEQ,UAAU;IAAEC;EAAY,CAAC;AACpC,CAAC;AAACpB,OAAA,CAAAgB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- {
2
- "name": "@pie-element/charting-configure",
3
- "private": true,
4
- "version": "11.1.0",
5
- "description": "",
6
- "main": "lib/index.js",
7
- "module": "src/index.js",
8
- "author": "",
9
- "dependencies": {
10
- "@emotion/react": "^11.14.0",
11
- "@emotion/style": "^0.8.0",
12
- "@mui/icons-material": "^7.3.4",
13
- "@mui/material": "^7.3.4",
14
- "@pie-framework/pie-configure-events": "^1.3.0",
15
- "@pie-lib/charting": "7.0.5",
16
- "@pie-lib/config-ui": "13.0.5",
17
- "@pie-lib/editable-html-tip-tap": "2.1.3",
18
- "@pie-lib/math-rendering": "5.0.2",
19
- "@pie-lib/render-ui": "6.1.1",
20
- "debug": "^4.1.1",
21
- "prop-types": "^15.8.1",
22
- "react": "18.3.1",
23
- "react-dom": "18.3.1"
24
- },
25
- "scripts": {
26
- "test": "./node_modules/.bin/jest"
27
- },
28
- "license": "ISC"
29
- }
@@ -1,262 +0,0 @@
1
- [
2
- {
3
- "type": "feat",
4
- "scope": null,
5
- "subject": "Send corrected answer when 'evaluate' or 'view' mode is enabled.",
6
- "merge": null,
7
- "header": "feat: Send corrected answer when 'evaluate' or 'view' mode is enabled.",
8
- "body": null,
9
- "footer": null,
10
- "notes": [],
11
- "hash": "d540568da38713034f2855606de503a040115c9c",
12
- "gitTags": "",
13
- "committerDate": "2019-08-12 10:58:28 +0300",
14
- "isTagged": true,
15
- "tag": "@pie-element/charting-controller@0.1.0"
16
- },
17
- {
18
- "type": "feat",
19
- "scope": "charting",
20
- "subject": "Updated Scoring.",
21
- "merge": null,
22
- "header": "feat(charting): Updated Scoring.",
23
- "body": "Continued adding tests.",
24
- "footer": null,
25
- "notes": [],
26
- "hash": "e2ccf0425b185a9b1f44ae8df2c974c383005bc8",
27
- "gitTags": "",
28
- "committerDate": "2019-08-08 16:53:16 +0300",
29
- "isTagged": true,
30
- "tag": "@pie-element/charting-controller@0.1.0"
31
- },
32
- {
33
- "type": "feat",
34
- "scope": "charting",
35
- "subject": "Scoring.",
36
- "merge": null,
37
- "header": "feat(charting): Scoring.",
38
- "body": "Started adding tests.",
39
- "footer": null,
40
- "notes": [],
41
- "hash": "b3b97e3e2edabbbd48de090842bfdbd20754e94f",
42
- "gitTags": "",
43
- "committerDate": "2019-08-08 11:35:16 +0300",
44
- "isTagged": true,
45
- "tag": "@pie-element/charting-controller@0.1.0"
46
- },
47
- {
48
- "type": "feat",
49
- "scope": "charting",
50
- "subject": "Scoring.",
51
- "merge": null,
52
- "header": "feat(charting): Scoring.",
53
- "body": "WIP",
54
- "footer": null,
55
- "notes": [],
56
- "hash": "6088c4281444d6d81a5c38b53c706cb00cc4ea9a",
57
- "gitTags": "",
58
- "committerDate": "2019-08-06 18:08:57 +0300",
59
- "isTagged": true,
60
- "tag": "@pie-element/charting-controller@0.1.0"
61
- },
62
- {
63
- "type": "feat",
64
- "scope": "charting",
65
- "subject": "Added charting package and started implementation (render charts, select chart type, define correct answer). (WIP)",
66
- "merge": null,
67
- "header": "feat(charting): Added charting package and started implementation (render charts, select chart type, define correct answer). (WIP)",
68
- "body": null,
69
- "footer": null,
70
- "notes": [],
71
- "hash": "75efd7237627399be24ba6b4a559b41b0455c6a1",
72
- "gitTags": "",
73
- "committerDate": "2019-08-05 17:42:06 +0300",
74
- "isTagged": true,
75
- "tag": "@pie-element/charting-controller@0.1.0"
76
- },
77
- {
78
- "type": "feat",
79
- "scope": null,
80
- "subject": "Session null/empty check",
81
- "merge": null,
82
- "header": "feat: Session null/empty check",
83
- "body": "Check for each interaction if: has outcome function, outcome function returns { score: 0, empty: true } if session null/empty/undefined, everywhere where session is used we handle if session is null/empty/undefined and test each function that uses session. [categorize + fixed not partial scoring, charting, drag-in-the-blank]",
84
- "footer": null,
85
- "notes": [],
86
- "hash": "33569a4a262083f112162ddf1401189818156112",
87
- "gitTags": "",
88
- "committerDate": "2019-08-22 10:53:14 +0300",
89
- "isTagged": true,
90
- "tag": "@pie-element/charting-controller@0.2.0"
91
- },
92
- {
93
- "type": "feat",
94
- "scope": null,
95
- "subject": "Moved rationale, teacherInstructions and student instructions enabled flag in model because it's needed in controller.",
96
- "merge": null,
97
- "header": "feat: Moved rationale, teacherInstructions and student instructions enabled flag in model because it's needed in controller.",
98
- "body": null,
99
- "footer": "BREAKING CHANGE: `enabled` property from `configuration.rationale.enabled` moved to `model.rationaleEnabled`. Same applies to teacherInstructions/studentInstructions.",
100
- "notes": [
101
- {
102
- "title": "BREAKING CHANGE",
103
- "text": "`enabled` property from `configuration.rationale.enabled` moved to `model.rationaleEnabled`. Same applies to teacherInstructions/studentInstructions."
104
- }
105
- ],
106
- "hash": "ddf464b394ae125f961da80e5c6d3b12030c9ac2",
107
- "gitTags": "",
108
- "committerDate": "2019-09-16 19:13:51 +0300",
109
- "isTagged": true,
110
- "tag": "@pie-element/charting-controller@1.0.0"
111
- },
112
- {
113
- "type": "feat",
114
- "scope": "charting",
115
- "subject": "model based prompt",
116
- "merge": null,
117
- "header": "feat(charting): model based prompt",
118
- "body": null,
119
- "footer": null,
120
- "notes": [],
121
- "hash": "e6485312a2cd78e8dd3ce99145d93302af3b6010",
122
- "gitTags": "",
123
- "committerDate": "2019-09-24 16:16:43 +0300",
124
- "isTagged": true,
125
- "tag": "@pie-element/charting-controller@1.1.0"
126
- },
127
- {
128
- "type": "fix",
129
- "scope": null,
130
- "subject": "ch2766 fix unresolved promise (#366)",
131
- "merge": null,
132
- "header": "fix: ch2766 fix unresolved promise (#366)",
133
- "body": "* fix: resolve null when instructor is not role\n\n* chore: typo\n\n* chore: correct response resolve, match interaction\n\n* chore: correct response unresolved\n\n* chore: categorize resolve correct response\n\n* fix: createCorrectResponseSession unresolved promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: ch2776 resolve createCorrectResponse promise",
134
- "footer": "* fix: Fixed createCorrectResponseSession and added tests for it. (#365)",
135
- "notes": [],
136
- "hash": "9057b7fd08e4f5b07e953a5acd053e1945df57f2",
137
- "gitTags": " (origin/develop, origin/HEAD)",
138
- "committerDate": "2019-10-16 15:50:55 -0400",
139
- "isTagged": true,
140
- "tag": "@pie-element/charting-controller@2.0.1"
141
- },
142
- {
143
- "type": "fix",
144
- "scope": null,
145
- "subject": "define teacherInstructions",
146
- "merge": null,
147
- "header": "fix: define teacherInstructions",
148
- "body": null,
149
- "footer": null,
150
- "notes": [],
151
- "hash": "99855c18816c5795c1c2d09bda544681b3fe9a22",
152
- "gitTags": "",
153
- "committerDate": "2019-11-13 07:59:58 +0200",
154
- "isTagged": true,
155
- "tag": "@pie-element/charting-controller@2.0.3"
156
- },
157
- {
158
- "type": "feat",
159
- "scope": null,
160
- "subject": "PIE-200 - add partialScoring",
161
- "merge": null,
162
- "header": "feat: PIE-200 - add partialScoring",
163
- "body": null,
164
- "footer": null,
165
- "notes": [],
166
- "hash": "9b52d16caa1f7e8098af43b0e8f352ce08ce3be3",
167
- "gitTags": "",
168
- "committerDate": "2019-12-06 12:21:53 +0000",
169
- "isTagged": true,
170
- "tag": "@pie-element/charting-controller@2.1.0"
171
- },
172
- {
173
- "type": "fix",
174
- "scope": null,
175
- "subject": "ch3979: use correctAnswer in evaluate mode (Partial credit scoring is not working for Charting items)",
176
- "merge": null,
177
- "header": "fix: ch3979: use correctAnswer in evaluate mode (Partial credit scoring is not working for Charting items)",
178
- "body": null,
179
- "footer": null,
180
- "notes": [],
181
- "hash": "a2d21caddc4b9305d50161f932629d99a780870b",
182
- "gitTags": "",
183
- "committerDate": "2020-02-12 09:58:21 +0200",
184
- "isTagged": true,
185
- "tag": "@pie-element/charting-controller@2.1.4"
186
- },
187
- {
188
- "type": "fix",
189
- "scope": null,
190
- "subject": "bump ui versions",
191
- "merge": null,
192
- "header": "fix: bump ui versions",
193
- "body": null,
194
- "footer": null,
195
- "notes": [],
196
- "hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
197
- "gitTags": "",
198
- "committerDate": "2020-03-31 19:25:13 +0100",
199
- "isTagged": true,
200
- "tag": "@pie-element/charting-controller@2.2.0"
201
- },
202
- {
203
- "type": "fix",
204
- "scope": null,
205
- "subject": "bump lib and ui versions",
206
- "merge": null,
207
- "header": "fix: bump lib and ui versions",
208
- "body": null,
209
- "footer": null,
210
- "notes": [],
211
- "hash": "a882cbf4580098ce0e12c51cf6ad2879817e17e7",
212
- "gitTags": "",
213
- "committerDate": "2020-04-10 17:13:24 +0100",
214
- "isTagged": true,
215
- "tag": "@pie-element/charting-controller@2.2.1"
216
- },
217
- {
218
- "type": "fix",
219
- "scope": null,
220
- "subject": "ch3979: Partial credit scoring is not working for Charting items (updated accordingly to pie-lib/controller-utils)",
221
- "merge": null,
222
- "header": "fix: ch3979: Partial credit scoring is not working for Charting items (updated accordingly to pie-lib/controller-utils)",
223
- "body": null,
224
- "footer": null,
225
- "notes": [],
226
- "hash": "9c650b9580512a301ac8cd86106664f4f8e6d21d",
227
- "gitTags": "",
228
- "committerDate": "2020-04-07 11:49:41 +0300",
229
- "isTagged": true,
230
- "tag": "@pie-element/charting-controller@2.2.1"
231
- },
232
- {
233
- "type": "fix",
234
- "scope": null,
235
- "subject": "bump all packages to avoid tag conflict",
236
- "merge": null,
237
- "header": "fix: bump all packages to avoid tag conflict",
238
- "body": null,
239
- "footer": null,
240
- "notes": [],
241
- "hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
242
- "gitTags": "",
243
- "committerDate": "2020-04-10 20:01:37 +0100",
244
- "isTagged": true,
245
- "tag": "@pie-element/charting-controller@2.2.1"
246
- },
247
- {
248
- "type": "fix",
249
- "scope": null,
250
- "subject": "bump ui/lib versions",
251
- "merge": null,
252
- "header": "fix: bump ui/lib versions",
253
- "body": null,
254
- "footer": null,
255
- "notes": [],
256
- "hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
257
- "gitTags": "",
258
- "committerDate": "2020-04-14 15:36:44 +0100",
259
- "isTagged": true,
260
- "tag": "@pie-element/charting-controller@2.2.3"
261
- }
262
- ]