@pie-element/match 12.1.1 → 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/add-row.d.ts +17 -0
  4. package/dist/author/add-row.js +24 -0
  5. package/dist/author/answer-config-block.d.ts +36 -0
  6. package/dist/author/answer-config-block.js +176 -0
  7. package/dist/author/common.d.ts +22 -0
  8. package/dist/author/configure.d.ts +48 -0
  9. package/dist/author/configure.js +259 -0
  10. package/dist/author/defaults.d.ts +203 -0
  11. package/dist/author/defaults.js +151 -0
  12. package/dist/author/general-config-block.d.ts +22 -0
  13. package/dist/author/general-config-block.js +93 -0
  14. package/dist/author/index.d.ts +44 -0
  15. package/dist/author/index.js +78 -0
  16. package/dist/author/row.d.ts +51 -0
  17. package/dist/author/row.js +204 -0
  18. package/dist/author/utils.d.ts +10 -0
  19. package/dist/author/utils.js +10 -0
  20. package/dist/browser/Typography-CbSskKxx.js +9217 -0
  21. package/dist/browser/Typography-CbSskKxx.js.map +1 -0
  22. package/dist/browser/author/index.js +42080 -0
  23. package/dist/browser/author/index.js.map +1 -0
  24. package/dist/browser/browser-kkT1XVKw.js +210 -0
  25. package/dist/browser/browser-kkT1XVKw.js.map +1 -0
  26. package/dist/browser/controller/index.js +267 -0
  27. package/dist/browser/controller/index.js.map +1 -0
  28. package/dist/browser/delivery/index.js +1984 -0
  29. package/dist/browser/delivery/index.js.map +1 -0
  30. package/dist/browser/isEqual-xtQxYITi.js +856 -0
  31. package/dist/browser/isEqual-xtQxYITi.js.map +1 -0
  32. package/dist/browser/match.css +2 -0
  33. package/dist/controller/defaults.d.ts +27 -0
  34. package/dist/controller/defaults.js +25 -0
  35. package/dist/controller/index.d.ts +29 -0
  36. package/dist/controller/index.js +156 -0
  37. package/dist/delivery/answer-grid.d.ts +28 -0
  38. package/dist/delivery/answer-grid.js +99 -0
  39. package/dist/delivery/index.d.ts +21 -0
  40. package/dist/delivery/index.js +51 -0
  41. package/dist/delivery/main.d.ts +26 -0
  42. package/dist/delivery/main.js +112 -0
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.iife.d.ts +8 -0
  45. package/dist/index.iife.js +148 -0
  46. package/dist/index.js +2 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -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/_hashClear.js +7 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  181. package/package.json +82 -19
  182. package/CHANGELOG.json +0 -1462
  183. package/CHANGELOG.md +0 -2331
  184. package/LICENSE.md +0 -5
  185. package/README.md +0 -1
  186. package/configure/CHANGELOG.json +0 -892
  187. package/configure/CHANGELOG.md +0 -2034
  188. package/configure/lib/add-row.js +0 -40
  189. package/configure/lib/add-row.js.map +0 -1
  190. package/configure/lib/answer-config-block.js +0 -288
  191. package/configure/lib/answer-config-block.js.map +0 -1
  192. package/configure/lib/common.js +0 -31
  193. package/configure/lib/common.js.map +0 -1
  194. package/configure/lib/configure.js +0 -410
  195. package/configure/lib/configure.js.map +0 -1
  196. package/configure/lib/defaults.js +0 -201
  197. package/configure/lib/defaults.js.map +0 -1
  198. package/configure/lib/general-config-block.js +0 -144
  199. package/configure/lib/general-config-block.js.map +0 -1
  200. package/configure/lib/index.js +0 -152
  201. package/configure/lib/index.js.map +0 -1
  202. package/configure/lib/row.js +0 -321
  203. package/configure/lib/row.js.map +0 -1
  204. package/configure/lib/utils.js +0 -12
  205. package/configure/lib/utils.js.map +0 -1
  206. package/configure/package.json +0 -29
  207. package/configure/utils.js +0 -19
  208. package/controller/CHANGELOG.json +0 -502
  209. package/controller/CHANGELOG.md +0 -1363
  210. package/controller/lib/defaults.js +0 -25
  211. package/controller/lib/defaults.js.map +0 -1
  212. package/controller/lib/index.js +0 -424
  213. package/controller/lib/index.js.map +0 -1
  214. package/controller/package.json +0 -24
  215. package/docs/config-schema.json +0 -2929
  216. package/docs/config-schema.json.md +0 -2162
  217. package/docs/demo/config.js +0 -8
  218. package/docs/demo/generate.js +0 -49
  219. package/docs/demo/index.html +0 -1
  220. package/docs/demo/session.js +0 -11
  221. package/docs/pie-schema.json +0 -1530
  222. package/docs/pie-schema.json.md +0 -907
  223. package/lib/answer-grid.js +0 -166
  224. package/lib/answer-grid.js.map +0 -1
  225. package/lib/index.js +0 -85
  226. package/lib/index.js.map +0 -1
  227. package/lib/main.js +0 -163
  228. package/lib/main.js.map +0 -1
@@ -0,0 +1,203 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/match/configure/src/defaults.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
+ /** NOTE: teacherInstructions, studentInstructions, rationale & scoringType
10
+ * functionalities are not defined yet - the value for those can belong to
11
+ * model or to configuration
12
+ */
13
+ declare const _default: {
14
+ model: {
15
+ choiceMode: string;
16
+ feedbackEnabled: boolean;
17
+ headers: string[];
18
+ layout: number;
19
+ lockChoiceOrder: boolean;
20
+ partialScoring: boolean;
21
+ prompt: string;
22
+ promptEnabled: boolean;
23
+ rationale: string;
24
+ rationaleEnabled: boolean;
25
+ rows: never[];
26
+ scoringType: string;
27
+ studentInstructionsEnabled: boolean;
28
+ teacherInstructions: string;
29
+ teacherInstructionsEnabled: boolean;
30
+ toolbarEditorPosition: string;
31
+ };
32
+ configuration: {
33
+ baseInputConfiguration: {
34
+ h3: {
35
+ disabled: boolean;
36
+ };
37
+ audio: {
38
+ disabled: boolean;
39
+ };
40
+ video: {
41
+ disabled: boolean;
42
+ };
43
+ image: {
44
+ disabled: boolean;
45
+ };
46
+ textAlign: {
47
+ disabled: boolean;
48
+ };
49
+ showParagraphs: {
50
+ disabled: boolean;
51
+ };
52
+ separateParagraphs: {
53
+ disabled: boolean;
54
+ };
55
+ };
56
+ rows: {
57
+ inputConfiguration: {
58
+ audio: {
59
+ disabled: boolean;
60
+ };
61
+ video: {
62
+ disabled: boolean;
63
+ };
64
+ image: {
65
+ disabled: boolean;
66
+ };
67
+ };
68
+ };
69
+ feedback: {
70
+ settings: boolean;
71
+ label: string;
72
+ enabled: boolean;
73
+ };
74
+ headers: {
75
+ settings: boolean;
76
+ inputConfiguration: {
77
+ audio: {
78
+ disabled: boolean;
79
+ };
80
+ video: {
81
+ disabled: boolean;
82
+ };
83
+ image: {
84
+ disabled: boolean;
85
+ };
86
+ };
87
+ };
88
+ layout: {
89
+ settings: boolean;
90
+ label: string;
91
+ };
92
+ lockChoiceOrder: {
93
+ settings: boolean;
94
+ label: string;
95
+ };
96
+ partialScoring: {
97
+ settings: boolean;
98
+ label: string;
99
+ };
100
+ choiceMode: {
101
+ settings: boolean;
102
+ label: string;
103
+ };
104
+ prompt: {
105
+ settings: boolean;
106
+ label: string;
107
+ inputConfiguration: {
108
+ audio: {
109
+ disabled: boolean;
110
+ };
111
+ video: {
112
+ disabled: boolean;
113
+ };
114
+ image: {
115
+ disabled: boolean;
116
+ };
117
+ };
118
+ required: boolean;
119
+ };
120
+ rationale: {
121
+ settings: boolean;
122
+ label: string;
123
+ inputConfiguration: {
124
+ audio: {
125
+ disabled: boolean;
126
+ };
127
+ video: {
128
+ disabled: boolean;
129
+ };
130
+ image: {
131
+ disabled: boolean;
132
+ };
133
+ };
134
+ required: boolean;
135
+ };
136
+ settingsPanelDisabled: boolean;
137
+ spellCheck: {
138
+ label: string;
139
+ settings: boolean;
140
+ enabled: boolean;
141
+ };
142
+ scoringType: {
143
+ settings: boolean;
144
+ label: string;
145
+ };
146
+ studentInstructions: {
147
+ settings: boolean;
148
+ label: string;
149
+ };
150
+ teacherInstructions: {
151
+ settings: boolean;
152
+ label: string;
153
+ inputConfiguration: {
154
+ audio: {
155
+ disabled: boolean;
156
+ };
157
+ video: {
158
+ disabled: boolean;
159
+ };
160
+ image: {
161
+ disabled: boolean;
162
+ };
163
+ };
164
+ required: boolean;
165
+ };
166
+ maxImageWidth: {
167
+ teacherInstructions: number;
168
+ prompt: number;
169
+ rationale: number;
170
+ rowTitles: number;
171
+ };
172
+ maxImageHeight: {
173
+ teacherInstructions: number;
174
+ prompt: number;
175
+ rationale: number;
176
+ rowTitles: number;
177
+ };
178
+ withRubric: {
179
+ settings: boolean;
180
+ label: string;
181
+ };
182
+ minQuestions: number;
183
+ maxQuestions: number;
184
+ maxLengthQuestionsHeading: number;
185
+ maxAnswers: number;
186
+ maxLengthAnswers: number;
187
+ maxLengthFirstColumnHeading: number;
188
+ mathMlOptions: {
189
+ mmlOutput: boolean;
190
+ mmlEditing: boolean;
191
+ };
192
+ language: {
193
+ settings: boolean;
194
+ label: string;
195
+ enabled: boolean;
196
+ };
197
+ languageChoices: {
198
+ label: string;
199
+ options: never[];
200
+ };
201
+ };
202
+ };
203
+ export default _default;
@@ -0,0 +1,151 @@
1
+ //#region src/author/defaults.ts
2
+ var e = {
3
+ model: {
4
+ choiceMode: "radio",
5
+ feedbackEnabled: !1,
6
+ headers: [
7
+ "Column 1",
8
+ "Column 2",
9
+ "Column 3"
10
+ ],
11
+ layout: 3,
12
+ lockChoiceOrder: !0,
13
+ partialScoring: !1,
14
+ prompt: "",
15
+ promptEnabled: !0,
16
+ rationale: "",
17
+ rationaleEnabled: !0,
18
+ rows: [],
19
+ scoringType: "auto",
20
+ studentInstructionsEnabled: !0,
21
+ teacherInstructions: "",
22
+ teacherInstructionsEnabled: !0,
23
+ toolbarEditorPosition: "bottom"
24
+ },
25
+ configuration: {
26
+ baseInputConfiguration: {
27
+ h3: { disabled: !0 },
28
+ audio: { disabled: !1 },
29
+ video: { disabled: !1 },
30
+ image: { disabled: !1 },
31
+ textAlign: { disabled: !0 },
32
+ showParagraphs: { disabled: !1 },
33
+ separateParagraphs: { disabled: !0 }
34
+ },
35
+ rows: { inputConfiguration: {
36
+ audio: { disabled: !0 },
37
+ video: { disabled: !0 },
38
+ image: { disabled: !1 }
39
+ } },
40
+ feedback: {
41
+ settings: !0,
42
+ label: "Feedback",
43
+ enabled: !0
44
+ },
45
+ headers: {
46
+ settings: !0,
47
+ inputConfiguration: {
48
+ audio: { disabled: !0 },
49
+ video: { disabled: !0 },
50
+ image: { disabled: !1 }
51
+ }
52
+ },
53
+ layout: {
54
+ settings: !0,
55
+ label: "Layout"
56
+ },
57
+ lockChoiceOrder: {
58
+ settings: !1,
59
+ label: "Lock Choice Order"
60
+ },
61
+ partialScoring: {
62
+ settings: !1,
63
+ label: "Allow Partial Scoring"
64
+ },
65
+ choiceMode: {
66
+ settings: !0,
67
+ label: "Response Type"
68
+ },
69
+ prompt: {
70
+ settings: !0,
71
+ label: "Prompt",
72
+ inputConfiguration: {
73
+ audio: { disabled: !1 },
74
+ video: { disabled: !1 },
75
+ image: { disabled: !1 }
76
+ },
77
+ required: !1
78
+ },
79
+ rationale: {
80
+ settings: !0,
81
+ label: "Rationale",
82
+ inputConfiguration: {
83
+ audio: { disabled: !1 },
84
+ video: { disabled: !1 },
85
+ image: { disabled: !1 }
86
+ },
87
+ required: !1
88
+ },
89
+ settingsPanelDisabled: !1,
90
+ spellCheck: {
91
+ label: "Spellcheck",
92
+ settings: !1,
93
+ enabled: !0
94
+ },
95
+ scoringType: {
96
+ settings: !1,
97
+ label: "Scoring Type"
98
+ },
99
+ studentInstructions: {
100
+ settings: !1,
101
+ label: "Student Instructions"
102
+ },
103
+ teacherInstructions: {
104
+ settings: !0,
105
+ label: "Teacher Instructions",
106
+ inputConfiguration: {
107
+ audio: { disabled: !1 },
108
+ video: { disabled: !1 },
109
+ image: { disabled: !1 }
110
+ },
111
+ required: !1
112
+ },
113
+ maxImageWidth: {
114
+ teacherInstructions: 300,
115
+ prompt: 300,
116
+ rationale: 300,
117
+ rowTitles: 300
118
+ },
119
+ maxImageHeight: {
120
+ teacherInstructions: 300,
121
+ prompt: 300,
122
+ rationale: 300,
123
+ rowTitles: 150
124
+ },
125
+ withRubric: {
126
+ settings: !1,
127
+ label: "Add Rubric"
128
+ },
129
+ minQuestions: 2,
130
+ maxQuestions: 5,
131
+ maxLengthQuestionsHeading: 100,
132
+ maxAnswers: 5,
133
+ maxLengthAnswers: 100,
134
+ maxLengthFirstColumnHeading: 100,
135
+ mathMlOptions: {
136
+ mmlOutput: !1,
137
+ mmlEditing: !1
138
+ },
139
+ language: {
140
+ settings: !1,
141
+ label: "Specify Language",
142
+ enabled: !1
143
+ },
144
+ languageChoices: {
145
+ label: "Language Choices",
146
+ options: []
147
+ }
148
+ }
149
+ };
150
+ //#endregion
151
+ export { e as default };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/match/configure/src/general-config-block.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import * as React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare class GeneralConfigBlock extends React.Component {
12
+ static propTypes: {
13
+ model: PropTypes.Validator<object>;
14
+ configuration: PropTypes.Validator<object>;
15
+ onResponseTypeChange: PropTypes.Validator<(...args: any[]) => any>;
16
+ onLayoutChange: PropTypes.Validator<(...args: any[]) => any>;
17
+ };
18
+ onChangeResponseType: (name: any) => (event: any) => void;
19
+ onChangeColumns: any;
20
+ render(): React.JSX.Element;
21
+ }
22
+ export default GeneralConfigBlock;
@@ -0,0 +1,93 @@
1
+ import { generateValidationMessage as e } from "./utils.js";
2
+ import * as t from "react";
3
+ import n from "prop-types";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import a from "@mui/material/Typography";
6
+ import { styled as o } from "@mui/material/styles";
7
+ import { InputContainer as s, NumberTextField as c } from "@pie-lib/config-ui";
8
+ import l from "@mui/material/Select";
9
+ import u from "@mui/material/MenuItem";
10
+ import d from "@mui/icons-material/Info";
11
+ import f from "@mui/material/Tooltip";
12
+ //#region src/author/general-config-block.tsx
13
+ var p = o("div")(({ theme: e }) => ({
14
+ marginTop: e.spacing(2),
15
+ display: "flex"
16
+ })), m = o("div")({ flex: 1 }), h = o(c)({ flexDirection: "unset" }), g = o("div")(({ theme: e }) => ({
17
+ paddingTop: e.spacing(1),
18
+ paddingBottom: e.spacing(2),
19
+ ".select-input-container": { minWidth: "65%" }
20
+ })), _ = o("div")({
21
+ display: "flex",
22
+ alignItems: "center"
23
+ }), v = o(a)(({ theme: e }) => ({
24
+ fontSize: e.typography.fontSize + 2,
25
+ marginRight: e.spacing(1)
26
+ })), y = o(f)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
27
+ fontSize: e.typography.fontSize - 2,
28
+ whiteSpace: "pre",
29
+ maxWidth: "500px"
30
+ } })), b = class extends t.Component {
31
+ static propTypes = {
32
+ model: n.object.isRequired,
33
+ configuration: n.object.isRequired,
34
+ onResponseTypeChange: n.func.isRequired,
35
+ onLayoutChange: n.func.isRequired
36
+ };
37
+ onChangeResponseType = (e) => (t) => {
38
+ let { model: n, onResponseTypeChange: r } = this.props, i = { ...n };
39
+ i[e] = t.target.value, r(i[e]);
40
+ };
41
+ onChangeColumns = (e, t) => {
42
+ let { model: n, onLayoutChange: r } = this.props, i = { ...n };
43
+ i[e] = t, r(i[e]);
44
+ };
45
+ render() {
46
+ let { model: n, configuration: a } = this.props, { layout: o = {}, choiceMode: c = {}, maxAnswers: f } = a || {}, b = e(n, a);
47
+ return /* @__PURE__ */ i(t.Fragment, { children: [/* @__PURE__ */ i(_, { children: [/* @__PURE__ */ r(v, {
48
+ component: "div",
49
+ children: "Define questions"
50
+ }), /* @__PURE__ */ r(y, {
51
+ disableFocusListener: !0,
52
+ disableTouchListener: !0,
53
+ placement: "right",
54
+ title: b,
55
+ children: /* @__PURE__ */ r(d, {
56
+ fontSize: "small",
57
+ color: "primary"
58
+ })
59
+ })] }), /* @__PURE__ */ i(p, { children: [/* @__PURE__ */ r(m, { children: o.settings && /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(s, {
60
+ label: o.label,
61
+ className: "input-container",
62
+ children: /* @__PURE__ */ r(h, {
63
+ type: "number",
64
+ min: 3,
65
+ max: f || 10,
66
+ value: n.layout,
67
+ onChange: (e, t) => this.onChangeColumns("layout", t),
68
+ suffix: "Columns"
69
+ })
70
+ }) }) }), /* @__PURE__ */ r(m, { children: c.settings && /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(s, {
71
+ label: c.label,
72
+ className: "select-input-container",
73
+ children: /* @__PURE__ */ i(l, {
74
+ variant: "standard",
75
+ onChange: this.onChangeResponseType("choiceMode"),
76
+ value: n.choiceMode,
77
+ MenuProps: { transitionDuration: {
78
+ enter: 225,
79
+ exit: 195
80
+ } },
81
+ children: [/* @__PURE__ */ r(u, {
82
+ value: "radio",
83
+ children: "Radio - One Answer"
84
+ }), /* @__PURE__ */ r(u, {
85
+ value: "checkbox",
86
+ children: "Checkbox - Multiple Answers"
87
+ })]
88
+ })
89
+ }) }) })] })] });
90
+ }
91
+ };
92
+ //#endregion
93
+ export { b as default };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/match/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 MatchConfigure extends HTMLElement {
10
+ static createDefaultModel: (model?: {}) => {
11
+ choiceMode: string;
12
+ feedbackEnabled: boolean;
13
+ headers: string[];
14
+ layout: number;
15
+ lockChoiceOrder: boolean;
16
+ partialScoring: boolean;
17
+ prompt: string;
18
+ promptEnabled: boolean;
19
+ rationale: string;
20
+ rationaleEnabled: boolean;
21
+ rows: never[];
22
+ scoringType: string;
23
+ studentInstructionsEnabled: boolean;
24
+ teacherInstructions: string;
25
+ teacherInstructionsEnabled: boolean;
26
+ toolbarEditorPosition: string;
27
+ };
28
+ constructor();
29
+ set model(m: any);
30
+ resetModelAfterConfigurationIsSet: any;
31
+ set configuration(c: any);
32
+ onModelChanged(model: any): void;
33
+ onConfigurationChanged(config: any): void;
34
+ /**
35
+ *
36
+ * @param {done, progress, file} handler
37
+ */
38
+ insertImage(handler: any): void;
39
+ onDeleteImage(src: any, done: any): void;
40
+ insertSound(handler: any): void;
41
+ onDeleteSound(src: any, done: any): void;
42
+ _render(): void;
43
+ disconnectedCallback(): void;
44
+ }
@@ -0,0 +1,78 @@
1
+ import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
+ import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js";
3
+ import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js";
4
+ import r from "./configure.js";
5
+ import i from "./defaults.js";
6
+ import a from "react";
7
+ import { createRoot as o } from "react-dom/client";
8
+ import s from "debug";
9
+ import { DeleteImageEvent as c, DeleteSoundEvent as l, InsertImageEvent as u, InsertSoundEvent as d, ModelUpdatedEvent as f } from "@pie-element/shared-configure-events";
10
+ //#region src/author/index.ts
11
+ var p = s("pie-elements:match:configure"), m = class s extends HTMLElement {
12
+ static createDefaultModel = (e = {}) => ({
13
+ ...i.model,
14
+ ...e
15
+ });
16
+ constructor() {
17
+ super(), this._root = null, this._model = s.createDefaultModel(), this._configuration = i.configuration;
18
+ }
19
+ set model(t) {
20
+ this._model = s.createDefaultModel(t), this._modelCopy = e(this._model), this._render();
21
+ }
22
+ resetModelAfterConfigurationIsSet = () => {
23
+ let e = document.querySelectorAll("pie-author");
24
+ this.hasPlayerAsParent = Array.from(e).some((e) => e.contains(this)), this.hasPlayerAsParent && (this._modelCopy ? this._model = this._modelCopy : delete this._modelCopy);
25
+ };
26
+ set configuration(e) {
27
+ let r = {
28
+ ...i.configuration,
29
+ ...e
30
+ };
31
+ this._configuration = r, this.resetModelAfterConfigurationIsSet(), r?.language?.enabled ? r?.languageChoices?.options?.length && (this._model.language = r?.languageChoices.options[0].value) : r.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({
32
+ value: this._model.language,
33
+ label: this._model.language
34
+ })) : delete this._model.language, t(e?.rows?.inputConfiguration) && (n(this._configuration.rows, "inputConfiguration.image.disabled", !this._model?.enableImages), n(this._configuration.rows, "inputConfiguration.video.disabled", !0), n(this._configuration.rows, "inputConfiguration.audio.disabled", !0)), this._render();
35
+ }
36
+ onModelChanged(e) {
37
+ this._model = e, p("[onModelChanged]: ", this._model), this._render(), this.dispatchEvent(new f(this._model));
38
+ }
39
+ onConfigurationChanged(e) {
40
+ this._configuration = e, this._render();
41
+ }
42
+ insertImage(e) {
43
+ this.dispatchEvent(new u(e));
44
+ }
45
+ onDeleteImage(e, t) {
46
+ this.dispatchEvent(new c(e, t));
47
+ }
48
+ insertSound(e) {
49
+ this.dispatchEvent(new d(e));
50
+ }
51
+ onDeleteSound(e, t) {
52
+ this.dispatchEvent(new l(e, t));
53
+ }
54
+ _render() {
55
+ if (this._model) {
56
+ let e = a.createElement(r, {
57
+ onModelChanged: this.onModelChanged.bind(this),
58
+ onConfigurationChanged: this.onConfigurationChanged.bind(this),
59
+ model: this._model,
60
+ configuration: this._configuration,
61
+ imageSupport: {
62
+ add: this.insertImage.bind(this),
63
+ delete: this.onDeleteImage.bind(this)
64
+ },
65
+ uploadSoundSupport: {
66
+ add: this.insertSound.bind(this),
67
+ delete: this.onDeleteSound.bind(this)
68
+ }
69
+ });
70
+ this._root ||= o(this), this._root.render(e);
71
+ }
72
+ }
73
+ disconnectedCallback() {
74
+ this._root && this._root.unmount();
75
+ }
76
+ };
77
+ //#endregion
78
+ export { m as default };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/match/configure/src/row.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare let canDrag: boolean;
12
+ export declare class Row extends React.Component {
13
+ static propTypes: {
14
+ model: PropTypes.Validator<object>;
15
+ row: PropTypes.Validator<object>;
16
+ idx: PropTypes.Validator<number>;
17
+ maxImageWidth: PropTypes.Requireable<object>;
18
+ maxImageHeight: PropTypes.Requireable<object>;
19
+ onDeleteRow: PropTypes.Validator<(...args: any[]) => any>;
20
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
21
+ imageSupport: PropTypes.Requireable<PropTypes.InferProps<{
22
+ add: PropTypes.Validator<(...args: any[]) => any>;
23
+ delete: PropTypes.Validator<(...args: any[]) => any>;
24
+ }>>;
25
+ uploadSoundSupport: PropTypes.Requireable<PropTypes.InferProps<{
26
+ add: PropTypes.Validator<(...args: any[]) => any>;
27
+ delete: PropTypes.Validator<(...args: any[]) => any>;
28
+ }>>;
29
+ inputConfiguration: PropTypes.Requireable<object>;
30
+ toolbarOpts: PropTypes.Requireable<object>;
31
+ error: PropTypes.Requireable<string>;
32
+ spellCheck: PropTypes.Requireable<boolean>;
33
+ minQuestions: PropTypes.Requireable<number>;
34
+ };
35
+ static defaultProps: {};
36
+ state: {
37
+ dialog: {
38
+ open: boolean;
39
+ text: string;
40
+ };
41
+ };
42
+ componentDidMount(): void;
43
+ onRowTitleChange: (rowIndex: any) => (value: any) => void;
44
+ onRowValueChange: (rowIndex: any, rowValueIndex: any) => (event: any) => void;
45
+ onDeleteRow: (idx: any) => () => void;
46
+ onMouseDownOnHandle: any;
47
+ onMouseUpOnHandle: any;
48
+ render(): React.JSX.Element;
49
+ }
50
+ declare function DraggableRow(props: any): React.JSX.Element;
51
+ export default DraggableRow;