@pie-element/multi-trait-rubric 8.1.1-next.0 → 8.1.1-next.29

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 (202) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +1580 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +55 -0
  5. package/configure/CHANGELOG.json +1 -0
  6. package/configure/CHANGELOG.md +1475 -0
  7. package/configure/lib/common.js +424 -0
  8. package/configure/lib/common.js.map +1 -0
  9. package/configure/lib/defaults.js +184 -0
  10. package/configure/lib/defaults.js.map +1 -0
  11. package/configure/lib/index.js +157 -0
  12. package/configure/lib/index.js.map +1 -0
  13. package/configure/lib/main.js +454 -0
  14. package/configure/lib/main.js.map +1 -0
  15. package/configure/lib/modals.js +206 -0
  16. package/configure/lib/modals.js.map +1 -0
  17. package/configure/lib/scale.js +478 -0
  18. package/configure/lib/scale.js.map +1 -0
  19. package/configure/lib/trait.js +275 -0
  20. package/configure/lib/trait.js.map +1 -0
  21. package/configure/lib/traitsHeader.js +235 -0
  22. package/configure/lib/traitsHeader.js.map +1 -0
  23. package/configure/lib/utils.js +87 -0
  24. package/configure/lib/utils.js.map +1 -0
  25. package/configure/package.json +24 -0
  26. package/controller/CHANGELOG.json +1 -0
  27. package/controller/CHANGELOG.md +907 -0
  28. package/controller/lib/defaults.js +18 -0
  29. package/controller/lib/defaults.js.map +1 -0
  30. package/controller/lib/index.js +158 -0
  31. package/controller/lib/index.js.map +1 -0
  32. package/controller/lib/utils.js +11 -0
  33. package/controller/lib/utils.js.map +1 -0
  34. package/controller/package.json +14 -0
  35. package/docs/config-schema.json +1628 -0
  36. package/docs/config-schema.json.md +1202 -0
  37. package/docs/demo/config.js +8 -0
  38. package/docs/demo/generate.js +117 -0
  39. package/docs/demo/index.html +1 -0
  40. package/docs/demo/session.js +6 -0
  41. package/docs/pie-schema.json +861 -0
  42. package/docs/pie-schema.json.md +614 -0
  43. package/lib/index.js +54 -0
  44. package/lib/index.js.map +1 -0
  45. package/lib/main.js +123 -0
  46. package/lib/main.js.map +1 -0
  47. package/lib/scale.js +248 -0
  48. package/lib/scale.js.map +1 -0
  49. package/lib/trait.js +83 -0
  50. package/lib/trait.js.map +1 -0
  51. package/package.json +15 -57
  52. package/dist/author/common.d.ts +0 -90
  53. package/dist/author/common.js +0 -275
  54. package/dist/author/defaults.d.ts +0 -153
  55. package/dist/author/defaults.js +0 -113
  56. package/dist/author/index.d.ts +0 -22
  57. package/dist/author/index.js +0 -89
  58. package/dist/author/main.d.ts +0 -43
  59. package/dist/author/main.js +0 -249
  60. package/dist/author/modals.d.ts +0 -94
  61. package/dist/author/modals.js +0 -171
  62. package/dist/author/scale.d.ts +0 -46
  63. package/dist/author/scale.js +0 -280
  64. package/dist/author/trait.d.ts +0 -70
  65. package/dist/author/trait.js +0 -202
  66. package/dist/author/traitsHeader.d.ts +0 -28
  67. package/dist/author/traitsHeader.js +0 -172
  68. package/dist/author/utils.d.ts +0 -10
  69. package/dist/author/utils.js +0 -41
  70. package/dist/controller/defaults.d.ts +0 -20
  71. package/dist/controller/defaults.js +0 -14
  72. package/dist/controller/index.d.ts +0 -26
  73. package/dist/controller/index.js +0 -57
  74. package/dist/controller/utils.d.ts +0 -9
  75. package/dist/controller/utils.js +0 -4
  76. package/dist/delivery/index.d.ts +0 -17
  77. package/dist/delivery/index.js +0 -37
  78. package/dist/delivery/main.d.ts +0 -15
  79. package/dist/delivery/main.js +0 -95
  80. package/dist/delivery/scale.d.ts +0 -17
  81. package/dist/delivery/scale.js +0 -175
  82. package/dist/delivery/trait.d.ts +0 -27
  83. package/dist/delivery/trait.js +0 -44
  84. package/dist/index.d.ts +0 -1
  85. package/dist/index.iife.d.ts +0 -8
  86. package/dist/index.iife.js +0 -145
  87. package/dist/index.js +0 -2
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.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/_baseTimes.js +0 -7
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  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/_freeGlobal.js +0 -4
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +0 -50
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +0 -7
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
@@ -1,90 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/multi-trait-rubric/configure/src/common.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
- export declare const BlockWidth = 200;
11
- export declare const PrimaryBlockWidth = 200;
12
- export declare const DragHandleSpace = 32;
13
- export declare const HeaderHeight = "100px";
14
- export declare const HeaderHeightLarge = "160px";
15
- export declare const MultiTraitButton: ({ children, onClick }: {
16
- children: any;
17
- onClick: any;
18
- }) => React.JSX.Element;
19
- export declare const PrimaryBlock: any;
20
- export declare const Block: any;
21
- export declare const SecondaryBlock: ({ children, setRef, width }: {
22
- children: any;
23
- setRef: any;
24
- width: any;
25
- }) => React.JSX.Element;
26
- export declare const Row: ({ children, height }: {
27
- children: any;
28
- height: any;
29
- }) => React.JSX.Element;
30
- export declare const ScorePoint: ({ error, scorePointsValue, scoreDescriptor, pluginProps, onChange, showScorePointLabels, alignToRight, spellCheck, uploadSoundSupport, imageSupport, mathMlOptions, }: {
31
- error?: string | undefined;
32
- scorePointsValue: any;
33
- scoreDescriptor: any;
34
- pluginProps: any;
35
- onChange: any;
36
- showScorePointLabels: any;
37
- alignToRight: any;
38
- spellCheck: any;
39
- uploadSoundSupport: any;
40
- imageSupport?: {} | undefined;
41
- mathMlOptions?: {} | undefined;
42
- }) => React.JSX.Element;
43
- export declare const MaxPointsPicker: ({ maxPoints, onChange, maxMaxPoints }: {
44
- maxPoints: any;
45
- onChange: any;
46
- maxMaxPoints: any;
47
- }) => React.JSX.Element;
48
- export declare const SimpleInput: ({ markup, onChange, pluginProps, label, spellCheck, uploadSoundSupport, mathMlOptions, imageSupport, }: {
49
- markup: any;
50
- onChange: any;
51
- pluginProps: any;
52
- label: any;
53
- spellCheck: any;
54
- uploadSoundSupport: any;
55
- mathMlOptions?: {} | undefined;
56
- imageSupport?: {} | undefined;
57
- }) => React.JSX.Element;
58
- export declare const UnderlinedInput: ({ error, markup, onChange, pluginProps, label, placeholder, spellCheck, uploadSoundSupport, imageSupport, mathMlOptions, }: {
59
- error: any;
60
- markup: any;
61
- onChange: any;
62
- pluginProps: any;
63
- label: any;
64
- placeholder: any;
65
- spellCheck: any;
66
- uploadSoundSupport: any;
67
- imageSupport?: {} | undefined;
68
- mathMlOptions?: {} | undefined;
69
- }) => React.JSX.Element;
70
- export declare const ExpandedInput: ({ error, markup, onChange, pluginProps, placeholder, alignToRight, spellCheck, uploadSoundSupport, mathMlOptions, imageSupport, }: {
71
- error: any;
72
- markup: any;
73
- onChange: any;
74
- pluginProps: any;
75
- placeholder: any;
76
- alignToRight: any;
77
- spellCheck: any;
78
- uploadSoundSupport: any;
79
- mathMlOptions?: {} | undefined;
80
- imageSupport?: {} | undefined;
81
- }) => React.JSX.Element;
82
- export declare const ScaleSettings: any;
83
- export declare const Arrow: ({ children, show, width, onClick, left, showLevelTagInput }: {
84
- children: any;
85
- show: any;
86
- width: any;
87
- onClick: any;
88
- left: any;
89
- showLevelTagInput: any;
90
- }) => React.JSX.Element;
@@ -1,275 +0,0 @@
1
- import { filteredDefaultPlugins as e } from "./utils.js";
2
- import "react";
3
- import { styled as t } from "@mui/material/styles";
4
- import * as n from "@pie-lib/render-ui";
5
- import { InputContainer as r, color as i } from "@pie-lib/render-ui";
6
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
- import s from "@mui/material/MenuItem";
8
- import c from "@pie-lib/editable-html-tip-tap";
9
- import l from "@mui/material/Select";
10
- import u from "@mui/material/InputBase";
11
- import { grey as d } from "@mui/material/colors";
12
- //#region src/author/common.tsx
13
- function f(e) {
14
- return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
15
- }
16
- function p(e, t) {
17
- return !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;
18
- }
19
- var m = p(r, "InputContainer") || p(_.InputContainer, "InputContainer"), h = n, g = h.default, _ = g && typeof g == "object" ? g : h, v = "120px", y = "100px", b = "160px", x = `solid 1px ${d[400]}`, S = "8px 4px", C = t("div")(({ theme: e }) => ({
20
- fontFamily: "Cerebri",
21
- "& .editable-label": {
22
- textAlign: "left",
23
- flex: 1,
24
- border: "none",
25
- "& div:not(.tiptap)": {
26
- padding: 0,
27
- border: "none"
28
- },
29
- "& > div:first-of-type": {
30
- borderLeft: x,
31
- borderRadius: 0,
32
- padding: S
33
- }
34
- },
35
- "& .editable-level": {
36
- background: e.palette.common.white,
37
- width: "60%"
38
- },
39
- "& .underlined-editable-level": {
40
- background: e.palette.common.white,
41
- width: "100%",
42
- padding: 0,
43
- border: "none",
44
- "& > div:first-of-type": {
45
- borderBottom: x,
46
- borderRadius: 0,
47
- padding: S
48
- }
49
- },
50
- "& .expanded-input-prompt": {
51
- border: "none",
52
- margin: "10px",
53
- marginTop: 0,
54
- "& > div:first-of-type": {
55
- border: x,
56
- borderRadius: "4px",
57
- padding: S
58
- },
59
- "& .tiptap": {
60
- fontFamily: "Cerebri",
61
- height: v,
62
- padding: 0
63
- }
64
- }
65
- })), w = t("div")(({ theme: e }) => ({
66
- fontSize: e.typography.fontSize + 2,
67
- textAlign: "right",
68
- display: "flex",
69
- flexDirection: "row",
70
- alignItems: "flex-start",
71
- padding: `${e.spacing(1.5)} ${e.spacing(2)}`,
72
- width: "114px",
73
- background: i.secondaryBackground(),
74
- borderRadius: "4px",
75
- justifyContent: "space-around",
76
- color: i.text(),
77
- cursor: "pointer"
78
- })), T = ({ children: e, onClick: t }) => /* @__PURE__ */ o(w, {
79
- onClick: t,
80
- children: [/* @__PURE__ */ a("strong", { children: "+" }), /* @__PURE__ */ a("div", { children: e })]
81
- }), E = t("div")({
82
- width: "200px",
83
- minWidth: "200px",
84
- position: "relative",
85
- padding: "0 10px",
86
- boxSizing: "border-box"
87
- }), D = t("div")(({ theme: e }) => ({
88
- width: "200px",
89
- minWidth: "200px",
90
- "& ul, ol": {
91
- marginBlockStart: 0,
92
- paddingInlineStart: e.spacing(2)
93
- }
94
- })), O = t("div")({
95
- display: "flex",
96
- overflowX: "hidden",
97
- overflowY: "hidden",
98
- alignItems: "flex-end",
99
- paddingBottom: "30px"
100
- }), k = ({ children: e, setRef: t, width: n }) => /* @__PURE__ */ a(O, {
101
- style: { width: n },
102
- ref: t,
103
- children: e
104
- }), A = (({ children: e, height: t }) => /* @__PURE__ */ a("div", {
105
- style: {
106
- display: "flex",
107
- height: t
108
- },
109
- children: e
110
- })), j = t("div")({ padding: "0 10px" }), M = t("div")({
111
- display: "flex",
112
- borderRadius: "4px",
113
- background: "white",
114
- flexDirection: "row",
115
- alignItems: "center",
116
- justifyContent: "space-between",
117
- border: x
118
- }), N = t("div")({
119
- display: "flex",
120
- borderRadius: "4px",
121
- background: "none",
122
- flexDirection: "row",
123
- alignItems: "center",
124
- justifyContent: "center",
125
- border: "0"
126
- }), P = t("div")({
127
- width: "24px",
128
- textAlign: "center"
129
- }), F = ({ error: t = "", scorePointsValue: n, scoreDescriptor: r, pluginProps: i, onChange: s, showScorePointLabels: l, alignToRight: u, spellCheck: d, uploadSoundSupport: f, imageSupport: p = {}, mathMlOptions: m = {} }) => /* @__PURE__ */ a(C, { children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ o(l ? M : N, { children: [/* @__PURE__ */ a(P, { children: n }), l ? /* @__PURE__ */ a(c, {
130
- className: "editable-label",
131
- error: t,
132
- markup: r,
133
- placeholder: " Enter Label",
134
- onChange: s,
135
- pluginProps: i,
136
- activePlugins: e,
137
- spellCheck: d,
138
- toolbarOpts: u ? { alignment: "right" } : {},
139
- uploadSoundSupport: f,
140
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
141
- mathMlOptions: m,
142
- imageSupport: p,
143
- autoWidthToolbar: !0
144
- }) : null] }) }) }), I = t(u)(({ theme: e }) => ({
145
- "&.MuiInputBase-root": {
146
- background: e.palette.common.white,
147
- marginTop: e.spacing(1),
148
- "label + &": { width: "80px" }
149
- },
150
- "& .MuiInputBase-input": {
151
- borderRadius: "4px",
152
- position: "relative",
153
- border: x,
154
- fontSize: e.typography.fontSize,
155
- fontFamily: "Cerebri Sans",
156
- padding: `${e.spacing(1)} ${e.spacing(1.5)}`,
157
- "&:focus": { borderRadius: "4px" }
158
- }
159
- })), L = (e) => Array.from({ length: e }, (e, t) => t + 1), R = ({ maxPoints: e, onChange: t, maxMaxPoints: n }) => /* @__PURE__ */ a(m, {
160
- label: "Max Points",
161
- children: /* @__PURE__ */ a(l, {
162
- value: e,
163
- onChange: t,
164
- input: /* @__PURE__ */ a(I, {}),
165
- MenuProps: { transitionDuration: {
166
- enter: 225,
167
- exit: 195
168
- } },
169
- children: L(n).map((e) => /* @__PURE__ */ a(s, {
170
- value: e,
171
- children: e
172
- }, `menu-item-${e}`))
173
- })
174
- }), z = t("div")(({ theme: e }) => ({
175
- display: "flex",
176
- justifyContent: "space-between",
177
- alignItems: "center",
178
- margin: `${e.spacing(1.5)} 0`
179
- })), B = ({ markup: t, onChange: n, pluginProps: r, label: i, spellCheck: s, uploadSoundSupport: l, mathMlOptions: u = {}, imageSupport: d = {} }) => /* @__PURE__ */ a(C, { children: /* @__PURE__ */ o(z, { children: [i && /* @__PURE__ */ a("div", { children: i }), /* @__PURE__ */ a(c, {
180
- className: "editable-level",
181
- markup: t,
182
- onChange: n,
183
- placeholder: "Trait Label",
184
- pluginProps: r,
185
- activePlugins: e,
186
- spellCheck: s,
187
- uploadSoundSupport: l,
188
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
189
- mathMlOptions: u,
190
- imageSupport: d,
191
- autoWidthToolbar: !0
192
- })] }) }), V = t("div")({
193
- width: "100%",
194
- display: "flex",
195
- justifyContent: "center",
196
- alignItems: "center"
197
- }), H = ({ error: t, markup: n, onChange: r, pluginProps: i, label: s, placeholder: l, spellCheck: u, uploadSoundSupport: d, imageSupport: f = {}, mathMlOptions: p = {} }) => /* @__PURE__ */ a(C, { children: /* @__PURE__ */ o(V, { children: [s && /* @__PURE__ */ a("div", { children: s }), /* @__PURE__ */ a(c, {
198
- className: "underlined-editable-level",
199
- error: t,
200
- markup: n,
201
- onChange: r,
202
- placeholder: l,
203
- pluginProps: i,
204
- activePlugins: e,
205
- spellCheck: u,
206
- uploadSoundSupport: d,
207
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
208
- mathMlOptions: p,
209
- imageSupport: f,
210
- autoWidthToolbar: !0
211
- })] }) }), U = ({ error: e, markup: t, onChange: n, pluginProps: r, placeholder: i, alignToRight: o, spellCheck: s, uploadSoundSupport: l, mathMlOptions: u = {}, imageSupport: d = {} }) => /* @__PURE__ */ a(C, { children: /* @__PURE__ */ a(c, {
212
- className: "expanded-input-prompt",
213
- error: e,
214
- markup: t,
215
- onChange: n,
216
- placeholder: i,
217
- pluginProps: r,
218
- toolbarOpts: o ? { alignment: "right" } : {},
219
- spellCheck: s,
220
- uploadSoundSupport: l,
221
- languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
222
- autoWidthToolbar: !0,
223
- mathMlOptions: u,
224
- imageSupport: d
225
- }) }), W = t("div")(({ theme: e }) => ({
226
- display: "flex",
227
- justifyContent: "space-between",
228
- alignItems: "flex-end",
229
- paddingBottom: "18px",
230
- gap: e.spacing(.25)
231
- })), G = t("div")(({ theme: e }) => ({
232
- position: "absolute",
233
- zIndex: 10,
234
- cursor: "pointer",
235
- right: 0,
236
- alignItems: "flex-start",
237
- justifyContent: "center",
238
- background: `linear-gradient(to left, ${e.palette.common.white}, ${i.background()})`,
239
- boxSizing: "border-box"
240
- })), K = t("div")(({ theme: e }) => ({
241
- position: "absolute",
242
- zIndex: 11,
243
- cursor: "pointer",
244
- right: 0,
245
- alignItems: "flex-start",
246
- justifyContent: "center",
247
- background: `linear-gradient(to left, ${e.palette.common.white}, ${i.background()})`,
248
- boxSizing: "border-box",
249
- "& svg": {
250
- position: "absolute",
251
- bottom: "-24px"
252
- }
253
- })), q = ({ children: e, show: t, width: n, onClick: r, left: o, showLevelTagInput: s }) => /* @__PURE__ */ a(G, {
254
- style: {
255
- height: "-webkit-fill-available",
256
- display: t ? "flex" : "none",
257
- width: n,
258
- left: o,
259
- background: o ? `linear-gradient(to right, white, ${i.background()})` : void 0
260
- },
261
- onClick: r,
262
- children: /* @__PURE__ */ a(K, {
263
- style: {
264
- display: t ? "flex" : "none",
265
- width: n,
266
- height: s ? b : y,
267
- left: 0,
268
- background: o ? `linear-gradient(to right, ${i.secondaryBackground()}, ${i.background()})` : void 0
269
- },
270
- onClick: r,
271
- children: e
272
- })
273
- });
274
- //#endregion
275
- export { q as Arrow, D as Block, U as ExpandedInput, y as HeaderHeight, b as HeaderHeightLarge, R as MaxPointsPicker, T as MultiTraitButton, E as PrimaryBlock, A as Row, W as ScaleSettings, F as ScorePoint, k as SecondaryBlock, B as SimpleInput, H as UnderlinedInput };
@@ -1,153 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/multi-trait-rubric/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
- declare const _default: {
10
- model: {
11
- addScaleEnabled: boolean;
12
- description: boolean;
13
- excludeZero: boolean;
14
- halfScoring: boolean;
15
- maxPointsEnabled: boolean;
16
- pointLabels: boolean;
17
- scales: never[];
18
- standards: boolean;
19
- visibleToStudent: boolean;
20
- };
21
- configuration: {
22
- baseInputConfiguration: {
23
- h3: {
24
- disabled: boolean;
25
- };
26
- audio: {
27
- disabled: boolean;
28
- };
29
- video: {
30
- disabled: boolean;
31
- };
32
- image: {
33
- disabled: boolean;
34
- };
35
- textAlign: {
36
- disabled: boolean;
37
- };
38
- showParagraphs: {
39
- disabled: boolean;
40
- };
41
- separateParagraphs: {
42
- disabled: boolean;
43
- };
44
- };
45
- expandedInput: {
46
- inputConfiguration: {
47
- math: {
48
- disabled: boolean;
49
- };
50
- audio: {
51
- disabled: boolean;
52
- };
53
- video: {
54
- disabled: boolean;
55
- };
56
- image: {
57
- disabled: boolean;
58
- };
59
- };
60
- };
61
- labelInput: {
62
- inputConfiguration: {
63
- math: {
64
- disabled: boolean;
65
- };
66
- audio: {
67
- disabled: boolean;
68
- };
69
- video: {
70
- disabled: boolean;
71
- };
72
- image: {
73
- disabled: boolean;
74
- };
75
- };
76
- };
77
- excludeZeroDialogBoxContent: {
78
- title: string;
79
- text: string;
80
- };
81
- includeZeroDialogBoxContent: {
82
- title: string;
83
- text: string;
84
- };
85
- deleteScaleDialogBoxContent: {
86
- title: string;
87
- text: string;
88
- };
89
- maxPointsDialogBoxContent: {
90
- title: string;
91
- text: string;
92
- };
93
- settingsPanelDisabled: boolean;
94
- spellCheck: {
95
- label: string;
96
- settings: boolean;
97
- enabled: boolean;
98
- };
99
- showExcludeZero: {
100
- settings: boolean;
101
- label: string;
102
- };
103
- showScorePointLabels: {
104
- settings: boolean;
105
- label: string;
106
- };
107
- showDescription: {
108
- settings: boolean;
109
- label: string;
110
- };
111
- showVisibleToStudent: {
112
- settings: boolean;
113
- label: string;
114
- };
115
- showHalfScoring: {
116
- settings: boolean;
117
- label: string;
118
- };
119
- showStandards: {
120
- settings: boolean;
121
- label: string;
122
- };
123
- showLevelTagInput: {
124
- settings: boolean;
125
- label: string;
126
- enabled: boolean;
127
- };
128
- dragAndDrop: {
129
- settings: boolean;
130
- label: string;
131
- enabled: boolean;
132
- };
133
- showMaxPoint: {
134
- settings: boolean;
135
- label: string;
136
- };
137
- addScale: {
138
- settings: boolean;
139
- label: string;
140
- };
141
- minNoOfTraits: number;
142
- maxNoOfTraits: number;
143
- minNoOfScales: number;
144
- maxNoOfScales: number;
145
- defaultTraitLabel: string;
146
- mathMlOptions: {
147
- mmlOutput: boolean;
148
- mmlEditing: boolean;
149
- };
150
- maxMaxPoints: number;
151
- };
152
- };
153
- export default _default;
@@ -1,113 +0,0 @@
1
- //#region src/author/defaults.tsx
2
- var e = {
3
- model: {
4
- addScaleEnabled: !0,
5
- description: !1,
6
- excludeZero: !1,
7
- halfScoring: !1,
8
- maxPointsEnabled: !0,
9
- pointLabels: !0,
10
- scales: [],
11
- standards: !1,
12
- visibleToStudent: !0
13
- },
14
- configuration: {
15
- baseInputConfiguration: {
16
- h3: { disabled: !0 },
17
- audio: { disabled: !1 },
18
- video: { disabled: !1 },
19
- image: { disabled: !1 },
20
- textAlign: { disabled: !0 },
21
- showParagraphs: { disabled: !1 },
22
- separateParagraphs: { disabled: !0 }
23
- },
24
- expandedInput: { inputConfiguration: {
25
- math: { disabled: !0 },
26
- audio: { disabled: !1 },
27
- video: { disabled: !1 },
28
- image: { disabled: !1 }
29
- } },
30
- labelInput: { inputConfiguration: {
31
- math: { disabled: !0 },
32
- audio: { disabled: !0 },
33
- video: { disabled: !0 },
34
- image: { disabled: !0 }
35
- } },
36
- excludeZeroDialogBoxContent: {
37
- title: "Exclude 0 (Zero) from Score Point Values.",
38
- text: "<div>\n You are about to exclude 0 from score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the left\n </li>\n <li>\n remove 0 column with its Label and Description\n </li>\n </ul>\n </div>"
39
- },
40
- includeZeroDialogBoxContent: {
41
- title: "Include 0 (Zero) in Score Point Values.",
42
- text: "<div>\n You are about to include 0 in score point values.\n <br/>\n Some of the existing data has to be changed.\n <br/>\n Please choose if you want to:\n <ul>\n <li>\n shift Labels and Descriptions to the right\n </li>\n <li>\n add 0 column with empty Label and Descriptions\n </li>\n </ul>\n </div>"
43
- },
44
- deleteScaleDialogBoxContent: {
45
- title: "Delete Scale",
46
- text: "Are you sure you want to delete this scale?"
47
- },
48
- maxPointsDialogBoxContent: {
49
- title: "Decreasing Max Points.",
50
- text: " You are about to decrease max score point value.\n <br/>\n All the Labels and Descriptions for scores above Max Point will be deleted."
51
- },
52
- settingsPanelDisabled: !1,
53
- spellCheck: {
54
- label: "Spellcheck",
55
- settings: !1,
56
- enabled: !0
57
- },
58
- showExcludeZero: {
59
- settings: !0,
60
- label: "Exclude Zero"
61
- },
62
- showScorePointLabels: {
63
- settings: !0,
64
- label: "Show Score Point Labels"
65
- },
66
- showDescription: {
67
- settings: !0,
68
- label: "Show Description"
69
- },
70
- showVisibleToStudent: {
71
- settings: !0,
72
- label: "Visible to Student"
73
- },
74
- showHalfScoring: {
75
- settings: !0,
76
- label: "Half Scoring"
77
- },
78
- showStandards: {
79
- settings: !1,
80
- label: "Show Standards"
81
- },
82
- showLevelTagInput: {
83
- settings: !1,
84
- label: "Show Level Tag Input",
85
- enabled: !1
86
- },
87
- dragAndDrop: {
88
- settings: !0,
89
- label: "Enable Drag and Drop",
90
- enabled: !1
91
- },
92
- showMaxPoint: {
93
- settings: !0,
94
- label: "Show Max Points Dropdown"
95
- },
96
- addScale: {
97
- settings: !0,
98
- label: "Add Scale Available"
99
- },
100
- minNoOfTraits: 1,
101
- maxNoOfTraits: 10,
102
- minNoOfScales: 1,
103
- maxNoOfScales: 10,
104
- defaultTraitLabel: "Trait",
105
- mathMlOptions: {
106
- mmlOutput: !1,
107
- mmlEditing: !1
108
- },
109
- maxMaxPoints: 10
110
- }
111
- };
112
- //#endregion
113
- export { e as default };
@@ -1,22 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/multi-trait-rubric/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 MultiTraitRubricElement extends HTMLElement {
10
- constructor();
11
- updateModelAccordingToReceivedProps: any;
12
- set model(m: any);
13
- set configuration(c: any);
14
- onModelChanged: any;
15
- onConfigurationChanged: any;
16
- insertSound(handler: any): void;
17
- onDeleteSound(src: any, done: any): void;
18
- insertImage(handler: any): void;
19
- onDeleteImage(src: any, done: any): void;
20
- _render(): void;
21
- disconnectedCallback(): void;
22
- }