@pie-element/inline-dropdown 10.1.1-next.0 → 10.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 (247) hide show
  1. package/CHANGELOG.json +1082 -0
  2. package/CHANGELOG.md +2181 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +647 -0
  6. package/configure/CHANGELOG.md +1938 -0
  7. package/configure/lib/defaults.js +192 -0
  8. package/configure/lib/defaults.js.map +1 -0
  9. package/configure/lib/index.js +139 -0
  10. package/configure/lib/index.js.map +1 -0
  11. package/configure/lib/inline-dropdown-toolbar.js +462 -0
  12. package/configure/lib/inline-dropdown-toolbar.js.map +1 -0
  13. package/configure/lib/main.js +612 -0
  14. package/configure/lib/main.js.map +1 -0
  15. package/configure/lib/markupUtils.js +50 -0
  16. package/configure/lib/markupUtils.js.map +1 -0
  17. package/configure/lib/response-area.js +48 -0
  18. package/configure/lib/response-area.js.map +1 -0
  19. package/configure/lib/utils.js +22 -0
  20. package/configure/lib/utils.js.map +1 -0
  21. package/configure/package.json +24 -0
  22. package/controller/CHANGELOG.json +467 -0
  23. package/controller/CHANGELOG.md +1279 -0
  24. package/controller/lib/defaults.js +25 -0
  25. package/controller/lib/defaults.js.map +1 -0
  26. package/controller/lib/index.js +295 -0
  27. package/controller/lib/index.js.map +1 -0
  28. package/controller/lib/utils.js +32 -0
  29. package/controller/lib/utils.js.map +1 -0
  30. package/controller/package.json +16 -0
  31. package/docs/config-schema.json +2854 -0
  32. package/docs/config-schema.json.md +2106 -0
  33. package/docs/demo/config.js +8 -0
  34. package/docs/demo/generate.js +76 -0
  35. package/docs/demo/index.html +1 -0
  36. package/docs/demo/session.js +11 -0
  37. package/docs/pie-schema.json +1152 -0
  38. package/docs/pie-schema.json.md +814 -0
  39. package/lib/index.js +86 -0
  40. package/lib/index.js.map +1 -0
  41. package/lib/inline-dropdown.js +176 -0
  42. package/lib/inline-dropdown.js.map +1 -0
  43. package/package.json +20 -57
  44. package/dist/author/defaults.d.ts +0 -194
  45. package/dist/author/defaults.js +0 -130
  46. package/dist/author/index.d.ts +0 -43
  47. package/dist/author/index.js +0 -83
  48. package/dist/author/inline-dropdown-toolbar.d.ts +0 -48
  49. package/dist/author/inline-dropdown-toolbar.js +0 -269
  50. package/dist/author/main.d.ts +0 -49
  51. package/dist/author/main.js +0 -384
  52. package/dist/author/markupUtils.d.ts +0 -12
  53. package/dist/author/markupUtils.js +0 -23
  54. package/dist/author/response-area.d.ts +0 -20
  55. package/dist/author/response-area.js +0 -32
  56. package/dist/author/utils.d.ts +0 -10
  57. package/dist/author/utils.js +0 -10
  58. package/dist/controller/defaults.d.ts +0 -27
  59. package/dist/controller/defaults.js +0 -21
  60. package/dist/controller/index.d.ts +0 -54
  61. package/dist/controller/index.js +0 -126
  62. package/dist/controller/utils.d.ts +0 -12
  63. package/dist/controller/utils.js +0 -13
  64. package/dist/delivery/index.d.ts +0 -20
  65. package/dist/delivery/index.js +0 -60
  66. package/dist/delivery/inline-dropdown.d.ts +0 -38
  67. package/dist/delivery/inline-dropdown.js +0 -109
  68. package/dist/index.d.ts +0 -1
  69. package/dist/index.iife.d.ts +0 -8
  70. package/dist/index.iife.js +0 -148
  71. package/dist/index.js +0 -2
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +0 -8
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +0 -6
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +0 -11
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +0 -5
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +0 -8
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +0 -6
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +0 -6
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +0 -26
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +0 -11
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +0 -11
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +0 -12
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +0 -8
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +0 -8
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castFunction.js +0 -7
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +0 -12
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +0 -11
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +0 -16
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +0 -18
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +0 -7
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +0 -9
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/forEach.js +0 -10
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +0 -8
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  233. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  234. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  235. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  236. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  237. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.js +0 -6
  238. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  239. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  240. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +0 -10
  241. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +0 -9
  242. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  243. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +0 -10
  244. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +0 -12
  245. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  246. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  247. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
@@ -1,384 +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/isEqual.js";
4
- import r from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.js";
5
- import i from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js";
6
- import a from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js";
7
- import { generateValidationMessage as o } from "./utils.js";
8
- import s from "./inline-dropdown-toolbar.js";
9
- import c from "./response-area.js";
10
- import l from "react";
11
- import { renderMath as u } from "@pie-element/shared-math-rendering-mathjax";
12
- import d from "react-dom";
13
- import f from "prop-types";
14
- import { color as p } from "@pie-lib/render-ui";
15
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
16
- import { styled as g } from "@mui/material/styles";
17
- import _, { ALL_PLUGINS as v, deleteInlineDropdownByIndex as y } from "@pie-lib/editable-html-tip-tap";
18
- import { AlertDialog as ee, InputContainer as b, layout as te, settings as x } from "@pie-lib/config-ui";
19
- import S from "@mui/material/Tooltip";
20
- import C from "@mui/material/Typography";
21
- import w from "@mui/material/Accordion";
22
- import ne from "@mui/material/AccordionSummary";
23
- import T from "@mui/material/AccordionDetails";
24
- import E from "@mui/icons-material/ExpandMore";
25
- import re from "@mui/icons-material/Info";
26
- //#region src/author/main.tsx
27
- var { toggle: D, Panel: ie, dropdown: ae } = x, O = g(b)(({ theme: e }) => ({
28
- width: "100%",
29
- paddingTop: e.spacing(2),
30
- marginBottom: e.spacing(2)
31
- })), oe = g(b)(({ theme: e }) => ({
32
- width: "100%",
33
- paddingTop: e.spacing(.5),
34
- marginBottom: e.spacing(2)
35
- })), k = g(C)(({ theme: e }) => ({
36
- fontSize: e.typography.fontSize + 2,
37
- marginRight: e.spacing(1)
38
- })), se = g("span")(({ theme: e }) => ({
39
- display: "flex",
40
- alignItems: "center",
41
- whiteSpace: "break-spaces",
42
- color: p.disabled(),
43
- padding: 0,
44
- fontSize: e.typography.fontSize - 2,
45
- lineHeight: 1
46
- })), A = g("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), j = g(T)({
47
- display: "block",
48
- paddingTop: 0,
49
- paddingBottom: 0
50
- }), M = g("div")(({ theme: e }) => ({
51
- display: "flex",
52
- alignItems: "center",
53
- marginBottom: e.spacing(1)
54
- })), N = g(S)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
55
- fontSize: e.typography.fontSize - 2,
56
- whiteSpace: "pre",
57
- maxWidth: "500px"
58
- } })), P = g("div")(({ theme: e }) => ({
59
- fontSize: e.typography.fontSize - 2,
60
- color: e.palette.error.main,
61
- paddingTop: e.spacing(1)
62
- })), F = (e) => {
63
- let t = document.createElement("div");
64
- return t.innerHTML = (e || "").trim(), t;
65
- }, I = class extends l.Component {
66
- static propTypes = {
67
- configuration: f.object.isRequired,
68
- model: f.object.isRequired,
69
- disableSidePanel: f.bool,
70
- onModelChanged: f.func.isRequired,
71
- onConfigurationChanged: f.func.isRequired,
72
- imageSupport: f.shape({
73
- add: f.func.isRequired,
74
- delete: f.func.isRequired
75
- }),
76
- uploadSoundSupport: f.shape({
77
- add: f.func.isRequired,
78
- delete: f.func.isRequired
79
- })
80
- };
81
- state = { warning: { open: !1 } };
82
- componentDidMount() {
83
- let { model: { choices: t } } = this.props;
84
- this.setState({ respAreaChoices: e(t) });
85
- }
86
- UNSAFE_componentWillReceiveProps(r) {
87
- let i = {};
88
- (!n(r.model.choices, this.props.model.choices) || !n(r.model.choices, this.state.respAreaChoices)) && (i.respAreaChoices = e(r.model.choices)), t(i) || this.setState(i);
89
- }
90
- componentDidUpdate() {
91
- u(d.findDOMNode(this));
92
- }
93
- onModelChange = (e) => {
94
- this.props.onModelChanged({
95
- ...this.props.model,
96
- ...e
97
- });
98
- };
99
- onPromptChanged = (e) => {
100
- this.onModelChange({ prompt: e });
101
- };
102
- onRationaleChanged = (e) => {
103
- this.onModelChange({ rationale: e });
104
- };
105
- onChoiceRationaleChanged = (e, t) => {
106
- let { model: n } = this.props, r = n.choices && n.choices[e] && n.choices[e].findIndex((e) => e.label === t.label && e.value === t.value);
107
- n.choices[e] && n.choices[e].splice(r, 1, t), this.onModelChange(n);
108
- };
109
- onTeacherInstructionsChanged = (e) => {
110
- this.onModelChange({ teacherInstructions: e });
111
- };
112
- onMarkupChanged = (e) => {
113
- this.onModelChange({ slateMarkup: e });
114
- };
115
- onCheck = (e, t) => {
116
- this.setState({ warning: {
117
- open: !0,
118
- text: "Response areas with under 2 options or with no correct answers will be discarded.",
119
- onClose: () => {
120
- this.setState({ warning: { open: !1 } }, t);
121
- },
122
- onConfirm: () => {
123
- this.setState({ warning: { open: !1 } }, e);
124
- }
125
- } });
126
- };
127
- validateResponseAreaClose = (e, t, n, r, i) => {
128
- let { respAreaChoices: a } = this.state, o = e.attrs.index, s = a[o] || [];
129
- if (!(s.length < 2 || !s.find((e) => e.correct))) {
130
- r();
131
- return;
132
- }
133
- n._holdInlineDropdownToolbarIndex = o, this.onCheck(() => {
134
- delete n._holdInlineDropdownToolbarIndex, y(n, o, t), r();
135
- }, i);
136
- };
137
- onChange = (t) => {
138
- let { respAreaChoices: n } = this.state, i = F(t), o = i.querySelectorAll("[data-type=\"inline_dropdown\"]"), s = {};
139
- o.forEach((e) => {
140
- s[e.dataset.index] = e.dataset.value || "";
141
- });
142
- let c = a(n, (e, t, i) => (r(s[i]) || (e[i] = n[i]), e), {}), l = {};
143
- o.forEach((e, t) => {
144
- let n = c[e.dataset.index];
145
- n && (l[t] = n), e.dataset.index = t;
146
- }), this.onModelChange({
147
- choices: e(l),
148
- slateMarkup: i.innerHTML
149
- });
150
- };
151
- onAddChoice = (t, n, r) => {
152
- let { respAreaChoices: a } = this.state, { maxResponseAreaChoices: o } = this.props.configuration, s = (e) => this.setState({ warning: {
153
- open: !0,
154
- text: e,
155
- onClose: void 0,
156
- onConfirm: () => {
157
- this.setState({ warning: { open: !1 } });
158
- }
159
- } });
160
- if (a[t] && a[t].length >= o) {
161
- s(`There are only ${o} answers allowed per choice.`);
162
- return;
163
- }
164
- if (a[t] || (a[t] = []), (a[t] || []).find((e, t) => e.label === n && t !== r)) {
165
- s("Duplicate answers are not allowed.");
166
- return;
167
- }
168
- if (r >= 0 && a[t]?.[r]) a[t][r].label = n;
169
- else {
170
- let e = a[t] && i(a[t].map((e) => parseInt(e.value)).filter((e) => !isNaN(e))) || 0;
171
- a[t].push({
172
- label: n,
173
- value: `${e + 1}`,
174
- correct: !1
175
- });
176
- }
177
- this.onModelChange({ choices: e(a) });
178
- };
179
- onRemoveChoice = (t, n) => {
180
- let { respAreaChoices: r } = this.state;
181
- r[t].splice(n, 1), this.onModelChange({ choices: e(r) });
182
- };
183
- onSelectChoice = (t, n) => {
184
- let { respAreaChoices: r } = this.state;
185
- r[t] = r[t].map((e, t) => ({
186
- ...e,
187
- correct: t === n
188
- })), this.onModelChange({ choices: e(r) });
189
- };
190
- render() {
191
- let { warning: e } = this.state, { model: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: u = {}, choiceRationale: d = {}, contentDimensions: f = {}, lockChoiceOrder: p = {}, maxResponseAreas: g, maxImageWidth: y = {}, maxImageHeight: b = {}, partialScoring: x = {}, prompt: S = {}, rationale: C = {}, settingsPanelDisabled: T, spellCheck: F = {}, teacherInstructions: I = {}, template: ce = {}, withRubric: L = {}, mathMlOptions: R = {}, language: z = {}, languageChoices: B = {}, responseAreaInputConfiguration: V = {} } = n || {}, { choiceRationaleEnabled: H, choices: U, errors: W, extraCSSRules: le, promptEnabled: ue, rationaleEnabled: de, spellCheckEnabled: G, teacherInstructionsEnabled: fe, toolbarEditorPosition: pe } = t || {}, { prompt: K, rationale: q, responseAreasError: J, responseAreaChoicesError: me, teacherInstructions: Y } = W || {}, X = y && y.prompt, Z = b && b.prompt, he = () => (Object.keys(U) || []).map((e, t) => /* @__PURE__ */ m(A, { children: /* @__PURE__ */ h(w, {
192
- slotProps: { transition: { timeout: {
193
- enter: 225,
194
- exit: 195
195
- } } },
196
- children: [/* @__PURE__ */ m(ne, {
197
- expandIcon: /* @__PURE__ */ m(E, {}),
198
- children: /* @__PURE__ */ m(k, {
199
- component: "div",
200
- children: `Rationale for response area #${t + 1}`
201
- })
202
- }), /* @__PURE__ */ m(j, { children: (U[e] || []).map((t) => /* @__PURE__ */ h(l.Fragment, { children: [/* @__PURE__ */ m(se, { dangerouslySetInnerHTML: { __html: `${C.label} for ${t.label} (${t.correct ? "correct" : "incorrect"})` } }), /* @__PURE__ */ m(oe, { children: /* @__PURE__ */ m(_, {
203
- markup: t.rationale || "",
204
- spellCheck: G,
205
- pluginProps: $(C?.inputConfiguration),
206
- onChange: (n) => this.onChoiceRationaleChanged(e, {
207
- ...t,
208
- rationale: n
209
- }),
210
- imageSupport: i,
211
- maxImageWidth: y && y.rationale || X,
212
- maxImageHeight: b && b.rationale || Z,
213
- uploadSoundSupport: a,
214
- mathMlOptions: R
215
- }) })] }, t.label)) })]
216
- }) }, e)), Q = { position: pe === "top" ? "top" : "bottom" }, ge = o(n), _e = {
217
- partialScoring: x.settings && D(x.label),
218
- lockChoiceOrder: p.settings && D(p.label),
219
- "language.enabled": z.settings && D(z.label, !0),
220
- language: z.settings && z.enabled && ae(B.label, B.options)
221
- }, ve = {
222
- teacherInstructionsEnabled: I.settings && D(I.label),
223
- rationaleEnabled: C.settings && D(C.label),
224
- choiceRationaleEnabled: d.settings && D(d.label),
225
- promptEnabled: S.settings && D(S.label),
226
- spellCheckEnabled: F.settings && D(F.label),
227
- rubricEnabled: L?.settings && D(L?.label)
228
- }, $ = (e = {}) => ({
229
- ...u,
230
- ...e
231
- });
232
- return /* @__PURE__ */ h(te.ConfigLayout, {
233
- extraCSSRules: {
234
- names: ["red", "blue"],
235
- rules: "\n .red {\n color: red !important;\n }\n\n .blue {\n color: blue !important;\n }\n "
236
- },
237
- dimensions: f,
238
- hideSettings: T,
239
- settings: /* @__PURE__ */ m(ie, {
240
- model: t,
241
- configuration: n,
242
- onChangeModel: (e) => this.onModelChange(e),
243
- onChangeConfiguration: (e) => r(e, !0),
244
- groups: {
245
- Settings: _e,
246
- Properties: ve
247
- }
248
- }),
249
- children: [
250
- fe && /* @__PURE__ */ h(O, {
251
- label: I.label,
252
- children: [/* @__PURE__ */ m(_, {
253
- markup: t.teacherInstructions || "",
254
- onChange: this.onTeacherInstructionsChanged,
255
- imageSupport: i,
256
- nonEmpty: !1,
257
- error: Y,
258
- toolbarOpts: Q,
259
- pluginProps: $(I?.inputConfiguration),
260
- spellCheck: G,
261
- maxImageWidth: y && y.teacherInstructions || X,
262
- maxImageHeight: b && b.teacherInstructions || Z,
263
- uploadSoundSupport: a,
264
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
265
- mathMlOptions: R
266
- }), Y && /* @__PURE__ */ m(P, { children: Y })]
267
- }),
268
- ue && /* @__PURE__ */ h(O, {
269
- label: S.label,
270
- children: [/* @__PURE__ */ m(_, {
271
- markup: t.prompt,
272
- onChange: this.onPromptChanged,
273
- imageSupport: i,
274
- nonEmpty: !1,
275
- disableUnderline: !0,
276
- error: K,
277
- toolbarOpts: Q,
278
- pluginProps: $(S?.inputConfiguration),
279
- spellCheck: G,
280
- maxImageWidth: X,
281
- maxImageHeight: Z,
282
- uploadSoundSupport: a,
283
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
284
- mathMlOptions: R
285
- }), K && /* @__PURE__ */ m(P, { children: K })]
286
- }),
287
- /* @__PURE__ */ h(M, { children: [/* @__PURE__ */ m(k, {
288
- component: "div",
289
- children: "Define Template, Choices, and Correct Responses"
290
- }), /* @__PURE__ */ m(N, {
291
- disableFocusListener: !0,
292
- disableTouchListener: !0,
293
- placement: "right",
294
- title: ge,
295
- children: /* @__PURE__ */ m(re, {
296
- fontSize: "small",
297
- color: "primary"
298
- })
299
- })] }),
300
- /* @__PURE__ */ m(c, {
301
- responseAreasError: J,
302
- responseAreaChoicesError: me,
303
- editableHtmlProps: {
304
- pluginProps: $(ce?.inputConfiguration),
305
- activePlugins: v,
306
- toolbarOpts: { position: "top" },
307
- extraCSSRules: {
308
- names: ["red", "blue"],
309
- rules: "\n .red {\n color: red !important;\n }\n\n .blue {\n color: blue !important;\n }\n "
310
- },
311
- responseAreaProps: {
312
- type: "inline-dropdown",
313
- options: { duplicates: !0 },
314
- maxResponseAreas: g,
315
- onToolbarCloseRequest: ([e, t], n, r, i) => {
316
- this.validateResponseAreaClose(e, t, n, r, i);
317
- },
318
- respAreaToolbar: (e, t, n) => {
319
- let [r, i] = e, { respAreaChoices: o } = this.state;
320
- return (e) => /* @__PURE__ */ m(s, {
321
- ...e,
322
- onAddChoice: this.onAddChoice,
323
- onRemoveChoice: (e) => this.onRemoveChoice(r.attrs.index, e),
324
- onSelectChoice: (e) => this.onSelectChoice(r.attrs.index, e),
325
- node: r,
326
- pos: i,
327
- editor: t,
328
- onToolbarDone: n,
329
- choices: o[r.attrs.index],
330
- spellCheck: G,
331
- uploadSoundSupport: a,
332
- mathMlOptions: R,
333
- baseInputConfiguration: u,
334
- responseAreaInputConfiguration: V
335
- });
336
- }
337
- },
338
- spellCheck: G,
339
- markup: t.slateMarkup || "",
340
- onChange: this.onChange,
341
- imageSupport: i,
342
- disableImageAlignmentButtons: !0,
343
- disabled: !1,
344
- highlightShape: !1,
345
- error: J,
346
- uploadSoundSupport: a,
347
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
348
- mathMlOptions: R
349
- }
350
- }),
351
- H && he(),
352
- de && /* @__PURE__ */ h(O, {
353
- label: C.label,
354
- children: [/* @__PURE__ */ m(_, {
355
- markup: t.rationale || "",
356
- onChange: this.onRationaleChanged,
357
- imageSupport: i,
358
- error: q,
359
- toolbarOpts: Q,
360
- pluginProps: $(C?.inputConfiguration),
361
- spellCheck: G,
362
- maxImageWidth: y && y.rationale || X,
363
- maxImageHeight: b && b.rationale || Z,
364
- uploadSoundSupport: a,
365
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
366
- mathMlOptions: R
367
- }), q && /* @__PURE__ */ m(P, { children: q })]
368
- }),
369
- /* @__PURE__ */ m(ee, {
370
- open: e.open,
371
- title: "Warning",
372
- text: e.text,
373
- onClose: e.onClose,
374
- onConfirm: e.onConfirm,
375
- disableAutoFocus: !0,
376
- disableEnforceFocus: !0,
377
- disableRestoreFocus: !0
378
- })
379
- ]
380
- });
381
- }
382
- };
383
- //#endregion
384
- export { I as default };
@@ -1,12 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/inline-dropdown/configure/src/markupUtils.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- export declare const removeUnwantedCharacters: (markup: any) => any;
10
- export declare const createElementFromHTML: (htmlString: any) => HTMLDivElement;
11
- export declare const processMarkup: (markup: any) => string;
12
- export declare const createSlateMarkup: (markup: any, choices: any) => any;
@@ -1,23 +0,0 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js";
2
- //#region src/author/markupUtils.tsx
3
- var t = "imes|riangle|an|heta|herefore", n = "throot|parallel|cong|approx|eq|e|sim", r = RegExp(`(\\t(?!${t}))|(\\n(?!${n}))|(\\\\t(?!${t}))|(\\\\n(?!${n}))`, "g"), i = (e) => e.replace(r, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), a = (e) => {
4
- let t = document.createElement("div");
5
- return t.innerHTML = e.trim(), t;
6
- }, o = (e) => {
7
- let t = a(i(e));
8
- return t.querySelectorAll("[data-type=\"inline_dropdown\"]").forEach((e) => {
9
- e.replaceWith(`{{${e.dataset.index}}}`);
10
- }), t.innerHTML;
11
- }, s = /\{\{(\d+)\}\}/g, c = (t, n) => {
12
- let r = i(t), a = (t) => {
13
- let r = n[t] && n[t].find((e) => e.correct);
14
- return (!r || !r.value) && (r = {
15
- id: "",
16
- value: "",
17
- label: ""
18
- }), `<span data-type="inline_dropdown" data-index="${t}" data-value="${e(r.label)}"></span>`;
19
- };
20
- return r.replace(s, (e, t) => a(t));
21
- };
22
- //#endregion
23
- export { c as createSlateMarkup, o as processMarkup };
@@ -1,20 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/inline-dropdown/configure/src/response-area.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
- declare class ResponseAreaComponent extends React.Component {
12
- static propTypes: {
13
- editableHtmlProps: PropTypes.Validator<object>;
14
- responseAreasError: PropTypes.Requireable<string>;
15
- responseAreaChoicesError: PropTypes.Requireable<string>;
16
- };
17
- componentDidMount(): void;
18
- render(): React.JSX.Element;
19
- }
20
- export default ResponseAreaComponent;
@@ -1,32 +0,0 @@
1
- import e from "react";
2
- import { renderMath as t } from "@pie-element/shared-math-rendering-mathjax";
3
- import n from "react-dom";
4
- import r from "prop-types";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { styled as o } from "@mui/material/styles";
7
- import s from "@pie-lib/editable-html-tip-tap";
8
- //#region src/author/response-area.tsx
9
- var c = o("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2.5) })), l = o("div")(({ theme: e }) => ({
10
- fontSize: e.typography.fontSize - 2,
11
- color: e.palette.error.main,
12
- paddingTop: e.spacing(1)
13
- })), u = class extends e.Component {
14
- static propTypes = {
15
- editableHtmlProps: r.object.isRequired,
16
- responseAreasError: r.string,
17
- responseAreaChoicesError: r.string
18
- };
19
- componentDidMount() {
20
- t(n.findDOMNode(this));
21
- }
22
- render() {
23
- let { editableHtmlProps: e, responseAreasError: t, responseAreaChoicesError: n } = this.props;
24
- return /* @__PURE__ */ a(c, { children: [
25
- /* @__PURE__ */ i(s, { ...e }),
26
- t && /* @__PURE__ */ i(l, { children: t }),
27
- n && /* @__PURE__ */ i(l, { children: n })
28
- ] });
29
- }
30
- };
31
- //#endregion
32
- export { u as default };
@@ -1,10 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/inline-dropdown/configure/src/utils.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- export declare const generateValidationMessage: (config: any) => string;
10
- export declare const getPluginProps: (props?: {}, baseInputConfiguration?: {}) => {};
@@ -1,10 +0,0 @@
1
- //#region src/author/utils.ts
2
- var e = (e) => {
3
- let { maxResponseAreas: t, maxResponseAreaChoices: n } = e;
4
- return "Validation requirements:" + ("\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined." + (n ? `\nThere should be at most ${n} choices defined per response area.` : ""));
5
- }, t = (e = {}, t = {}) => ({
6
- ...t,
7
- ...e
8
- });
9
- //#endregion
10
- export { e as generateValidationMessage, t as getPluginProps };
@@ -1,27 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/inline-dropdown/controller/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
- declare const _default: {
10
- alternateResponse: {};
11
- choiceRationaleEnabled: boolean;
12
- choices: {};
13
- disabled: boolean;
14
- displayType: string;
15
- markup: string;
16
- mode: string;
17
- prompt: string;
18
- promptEnabled: boolean;
19
- rationale: string;
20
- rationaleEnabled: boolean;
21
- shuffle: boolean;
22
- studentInstructionsEnabled: boolean;
23
- teacherInstructions: string;
24
- teacherInstructionsEnabled: boolean;
25
- toolbarEditorPosition: string;
26
- };
27
- export default _default;
@@ -1,21 +0,0 @@
1
- //#region src/controller/defaults.ts
2
- var e = {
3
- alternateResponse: {},
4
- choiceRationaleEnabled: !0,
5
- choices: {},
6
- disabled: !1,
7
- displayType: "block",
8
- markup: "",
9
- mode: "gather",
10
- prompt: "",
11
- promptEnabled: !0,
12
- rationale: "",
13
- rationaleEnabled: !0,
14
- shuffle: !0,
15
- studentInstructionsEnabled: !0,
16
- teacherInstructions: "",
17
- teacherInstructionsEnabled: !0,
18
- toolbarEditorPosition: "bottom"
19
- };
20
- //#endregion
21
- export { e as default };
@@ -1,54 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/inline-dropdown/controller/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 declare const normalize: (question: any) => any;
10
- /**
11
- *
12
- * @param {*} question
13
- * @param {*} session
14
- * @param {*} env
15
- * @param {*} updateSession - optional - a function that will set the properties passed into it on the session.
16
- */
17
- export declare function model(question: any, session: any, env: any, updateSession: any): Promise<{
18
- disabled: boolean;
19
- mode: any;
20
- prompt: any;
21
- displayType: any;
22
- markup: any;
23
- choices: any;
24
- feedback: {};
25
- responseCorrect: boolean | undefined;
26
- rationale: any;
27
- teacherInstructions: any;
28
- language: any;
29
- extraCSSRules: any;
30
- }>;
31
- export declare const getScore: (config: any, session: any) => number;
32
- /**
33
- * Generates detailed trace log for scoring evaluation
34
- * @param {Object} model - the question model
35
- * @param {Object} session - the student session
36
- * @param {Object} env - the environment
37
- * @returns {Array} traceLog - array of trace messages
38
- */
39
- export declare const getLogTrace: (model: any, session: any, env: any) => string[];
40
- /**
41
- *
42
- * The score is partial by default for checkbox mode, allOrNothing for radio mode.
43
- * To disable partial scoring for checkbox mode you either set model.partialScoring = false or env.partialScoring =
44
- * false. the value in `env` will override the value in `model`.
45
- * @param {Object} model - the main model
46
- * @param {boolean} model.partialScoring - is partial scoring enabled (if undefined set to to true)
47
- * @param {*} session
48
- * @param {Object} env
49
- * @param {boolean} env.partialScoring - is partial scoring enabled (if undefined default to true) This overrides
50
- * `model.partialScoring`.
51
- */
52
- export declare function outcome(model: any, session: any, env?: {}): Promise<unknown>;
53
- export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
54
- export declare const validate: (model?: {}, config?: {}) => {};