@pie-element/match 12.1.1-next.1 → 12.1.1-next.101

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 (213) hide show
  1. package/CHANGELOG.json +1462 -0
  2. package/CHANGELOG.md +2327 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +892 -0
  6. package/configure/CHANGELOG.md +2030 -0
  7. package/configure/lib/add-row.js +40 -0
  8. package/configure/lib/add-row.js.map +1 -0
  9. package/configure/lib/answer-config-block.js +288 -0
  10. package/configure/lib/answer-config-block.js.map +1 -0
  11. package/configure/lib/common.js +31 -0
  12. package/configure/lib/common.js.map +1 -0
  13. package/configure/lib/configure.js +410 -0
  14. package/configure/lib/configure.js.map +1 -0
  15. package/configure/lib/defaults.js +201 -0
  16. package/configure/lib/defaults.js.map +1 -0
  17. package/configure/lib/general-config-block.js +144 -0
  18. package/configure/lib/general-config-block.js.map +1 -0
  19. package/configure/lib/index.js +156 -0
  20. package/configure/lib/index.js.map +1 -0
  21. package/configure/lib/row.js +321 -0
  22. package/configure/lib/row.js.map +1 -0
  23. package/configure/lib/utils.js +12 -0
  24. package/configure/lib/utils.js.map +1 -0
  25. package/configure/package.json +29 -0
  26. package/configure/utils.js +19 -0
  27. package/controller/CHANGELOG.json +502 -0
  28. package/controller/CHANGELOG.md +1359 -0
  29. package/controller/lib/defaults.js +25 -0
  30. package/controller/lib/defaults.js.map +1 -0
  31. package/controller/lib/index.js +424 -0
  32. package/controller/lib/index.js.map +1 -0
  33. package/controller/package.json +24 -0
  34. package/docs/config-schema.json +2929 -0
  35. package/docs/config-schema.json.md +2162 -0
  36. package/docs/demo/config.js +8 -0
  37. package/docs/demo/generate.js +49 -0
  38. package/docs/demo/index.html +1 -0
  39. package/docs/demo/session.js +11 -0
  40. package/docs/pie-schema.json +1530 -0
  41. package/docs/pie-schema.json.md +907 -0
  42. package/lib/answer-grid.js +166 -0
  43. package/lib/answer-grid.js.map +1 -0
  44. package/lib/index.js +86 -0
  45. package/lib/index.js.map +1 -0
  46. package/lib/main.js +163 -0
  47. package/lib/main.js.map +1 -0
  48. package/package.json +21 -60
  49. package/dist/author/add-row.d.ts +0 -17
  50. package/dist/author/add-row.js +0 -24
  51. package/dist/author/answer-config-block.d.ts +0 -36
  52. package/dist/author/answer-config-block.js +0 -176
  53. package/dist/author/common.d.ts +0 -22
  54. package/dist/author/configure.d.ts +0 -48
  55. package/dist/author/configure.js +0 -259
  56. package/dist/author/defaults.d.ts +0 -203
  57. package/dist/author/defaults.js +0 -151
  58. package/dist/author/general-config-block.d.ts +0 -22
  59. package/dist/author/general-config-block.js +0 -93
  60. package/dist/author/index.d.ts +0 -44
  61. package/dist/author/index.js +0 -78
  62. package/dist/author/row.d.ts +0 -51
  63. package/dist/author/row.js +0 -204
  64. package/dist/author/utils.d.ts +0 -10
  65. package/dist/author/utils.js +0 -10
  66. package/dist/controller/defaults.d.ts +0 -27
  67. package/dist/controller/defaults.js +0 -25
  68. package/dist/controller/index.d.ts +0 -29
  69. package/dist/controller/index.js +0 -156
  70. package/dist/delivery/answer-grid.d.ts +0 -28
  71. package/dist/delivery/answer-grid.js +0 -99
  72. package/dist/delivery/index.d.ts +0 -21
  73. package/dist/delivery/index.js +0 -51
  74. package/dist/delivery/main.d.ts +0 -26
  75. package/dist/delivery/main.js +0 -112
  76. package/dist/index.d.ts +0 -1
  77. package/dist/index.iife.d.ts +0 -8
  78. package/dist/index.iife.js +0 -148
  79. package/dist/index.js +0 -2
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
@@ -1,203 +0,0 @@
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;
@@ -1,151 +0,0 @@
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 };
@@ -1,22 +0,0 @@
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;
@@ -1,93 +0,0 @@
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 };
@@ -1,44 +0,0 @@
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
- }
@@ -1,78 +0,0 @@
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 };
@@ -1,51 +0,0 @@
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;