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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/common.d.ts +90 -0
  4. package/dist/author/common.js +275 -0
  5. package/dist/author/defaults.d.ts +153 -0
  6. package/dist/author/defaults.js +113 -0
  7. package/dist/author/index.d.ts +22 -0
  8. package/dist/author/index.js +89 -0
  9. package/dist/author/main.d.ts +43 -0
  10. package/dist/author/main.js +249 -0
  11. package/dist/author/modals.d.ts +94 -0
  12. package/dist/author/modals.js +171 -0
  13. package/dist/author/scale.d.ts +46 -0
  14. package/dist/author/scale.js +280 -0
  15. package/dist/author/trait.d.ts +70 -0
  16. package/dist/author/trait.js +202 -0
  17. package/dist/author/traitsHeader.d.ts +28 -0
  18. package/dist/author/traitsHeader.js +172 -0
  19. package/dist/author/utils.d.ts +10 -0
  20. package/dist/author/utils.js +41 -0
  21. package/dist/browser/Typography-CdgSBeUZ.js +8984 -0
  22. package/dist/browser/Typography-CdgSBeUZ.js.map +1 -0
  23. package/dist/browser/author/index.js +42899 -0
  24. package/dist/browser/author/index.js.map +1 -0
  25. package/dist/browser/controller/index.js +70 -0
  26. package/dist/browser/controller/index.js.map +1 -0
  27. package/dist/browser/delivery/index.js +523 -0
  28. package/dist/browser/delivery/index.js.map +1 -0
  29. package/dist/browser/multi-trait-rubric.css +2 -0
  30. package/dist/controller/defaults.d.ts +20 -0
  31. package/dist/controller/defaults.js +14 -0
  32. package/dist/controller/index.d.ts +26 -0
  33. package/dist/controller/index.js +57 -0
  34. package/dist/controller/utils.d.ts +9 -0
  35. package/dist/controller/utils.js +4 -0
  36. package/dist/delivery/index.d.ts +17 -0
  37. package/dist/delivery/index.js +37 -0
  38. package/dist/delivery/main.d.ts +15 -0
  39. package/dist/delivery/main.js +95 -0
  40. package/dist/delivery/scale.d.ts +17 -0
  41. package/dist/delivery/scale.js +175 -0
  42. package/dist/delivery/trait.d.ts +27 -0
  43. package/dist/delivery/trait.js +44 -0
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.iife.d.ts +8 -0
  46. package/dist/index.iife.js +145 -0
  47. package/dist/index.js +2 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  163. package/package.json +80 -14
  164. package/CHANGELOG.json +0 -1
  165. package/CHANGELOG.md +0 -1584
  166. package/LICENSE.md +0 -5
  167. package/README.md +0 -55
  168. package/configure/CHANGELOG.json +0 -1
  169. package/configure/CHANGELOG.md +0 -1479
  170. package/configure/lib/common.js +0 -424
  171. package/configure/lib/common.js.map +0 -1
  172. package/configure/lib/defaults.js +0 -184
  173. package/configure/lib/defaults.js.map +0 -1
  174. package/configure/lib/index.js +0 -157
  175. package/configure/lib/index.js.map +0 -1
  176. package/configure/lib/main.js +0 -454
  177. package/configure/lib/main.js.map +0 -1
  178. package/configure/lib/modals.js +0 -206
  179. package/configure/lib/modals.js.map +0 -1
  180. package/configure/lib/scale.js +0 -478
  181. package/configure/lib/scale.js.map +0 -1
  182. package/configure/lib/trait.js +0 -275
  183. package/configure/lib/trait.js.map +0 -1
  184. package/configure/lib/traitsHeader.js +0 -235
  185. package/configure/lib/traitsHeader.js.map +0 -1
  186. package/configure/lib/utils.js +0 -87
  187. package/configure/lib/utils.js.map +0 -1
  188. package/configure/package.json +0 -24
  189. package/controller/CHANGELOG.json +0 -1
  190. package/controller/CHANGELOG.md +0 -911
  191. package/controller/lib/defaults.js +0 -18
  192. package/controller/lib/defaults.js.map +0 -1
  193. package/controller/lib/index.js +0 -158
  194. package/controller/lib/index.js.map +0 -1
  195. package/controller/lib/utils.js +0 -11
  196. package/controller/lib/utils.js.map +0 -1
  197. package/controller/package.json +0 -14
  198. package/docs/config-schema.json +0 -1628
  199. package/docs/config-schema.json.md +0 -1202
  200. package/docs/demo/config.js +0 -8
  201. package/docs/demo/generate.js +0 -117
  202. package/docs/demo/index.html +0 -1
  203. package/docs/demo/session.js +0 -6
  204. package/docs/pie-schema.json +0 -861
  205. package/docs/pie-schema.json.md +0 -614
  206. package/lib/index.js +0 -54
  207. package/lib/index.js.map +0 -1
  208. package/lib/main.js +0 -123
  209. package/lib/main.js.map +0 -1
  210. package/lib/scale.js +0 -248
  211. package/lib/scale.js.map +0 -1
  212. package/lib/trait.js +0 -83
  213. package/lib/trait.js.map +0 -1
@@ -1,424 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.UnderlinedInput = exports.SimpleInput = exports.SecondaryBlock = exports.ScorePoint = exports.ScaleSettings = exports.Row = exports.PrimaryBlockWidth = exports.PrimaryBlock = exports.MultiTraitButton = exports.MaxPointsPicker = exports.HeaderHeightLarge = exports.HeaderHeight = exports.ExpandedInput = exports.DragHandleSpace = exports.BlockWidth = exports.Block = exports.Arrow = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _styles = require("@mui/material/styles");
10
- var _editableHtmlTipTap = _interopRequireDefault(require("@pie-lib/editable-html-tip-tap"));
11
- var _Select = _interopRequireDefault(require("@mui/material/Select"));
12
- var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
13
- var _InputBase = _interopRequireDefault(require("@mui/material/InputBase"));
14
- var _renderUi = require("@pie-lib/render-ui");
15
- var _colors = require("@mui/material/colors");
16
- var _utils = require("./utils");
17
- const InputHeight = '120px';
18
- const BlockWidth = exports.BlockWidth = 200;
19
- const PrimaryBlockWidth = exports.PrimaryBlockWidth = 200;
20
- const DragHandleSpace = exports.DragHandleSpace = 32;
21
- const HeaderHeight = exports.HeaderHeight = '100px';
22
- const HeaderHeightLarge = exports.HeaderHeightLarge = '160px';
23
- const greyBorder = `solid 1px ${_colors.grey[400]}`;
24
- const Padding = '8px 4px';
25
-
26
- // global styles for EditableHtml components
27
- const GlobalStyles = (0, _styles.styled)('div')(({
28
- theme
29
- }) => ({
30
- fontFamily: 'Cerebri',
31
- '& .editable-label': {
32
- textAlign: 'left',
33
- flex: 1,
34
- border: 'none',
35
- '& div:not(.tiptap)': {
36
- padding: 0,
37
- border: 'none'
38
- },
39
- '& > div:first-of-type': {
40
- borderLeft: greyBorder,
41
- borderRadius: 0,
42
- padding: Padding
43
- }
44
- },
45
- '& .editable-level': {
46
- background: theme.palette.common.white,
47
- width: '60%'
48
- },
49
- '& .underlined-editable-level': {
50
- background: theme.palette.common.white,
51
- width: '100%',
52
- padding: 0,
53
- border: 'none',
54
- '& > div:first-of-type': {
55
- borderBottom: greyBorder,
56
- borderRadius: 0,
57
- padding: Padding
58
- }
59
- },
60
- '& .expanded-input-prompt': {
61
- border: 'none',
62
- margin: '10px',
63
- marginTop: 0,
64
- '& > div:first-of-type': {
65
- border: greyBorder,
66
- borderRadius: '4px',
67
- padding: Padding
68
- },
69
- '& .tiptap': {
70
- fontFamily: 'Cerebri',
71
- height: InputHeight,
72
- padding: 0
73
- }
74
- }
75
- }));
76
- const StyledButton = (0, _styles.styled)('div')(({
77
- theme
78
- }) => ({
79
- fontSize: theme.typography.fontSize + 2,
80
- textAlign: 'right',
81
- display: 'flex',
82
- flexDirection: 'row',
83
- alignItems: 'flex-start',
84
- padding: `${theme.spacing(1.5)} ${theme.spacing(2)}`,
85
- width: '114px',
86
- background: _renderUi.color.secondaryBackground(),
87
- borderRadius: '4px',
88
- justifyContent: 'space-around',
89
- color: _renderUi.color.text(),
90
- cursor: 'pointer'
91
- }));
92
- const MultiTraitButton = ({
93
- children,
94
- onClick
95
- }) => /*#__PURE__*/_react.default.createElement(StyledButton, {
96
- onClick: onClick
97
- }, /*#__PURE__*/_react.default.createElement("strong", null, "+"), /*#__PURE__*/_react.default.createElement("div", null, children));
98
- exports.MultiTraitButton = MultiTraitButton;
99
- const PrimaryBlock = exports.PrimaryBlock = (0, _styles.styled)('div')({
100
- width: `${PrimaryBlockWidth}px`,
101
- minWidth: `${PrimaryBlockWidth}px`,
102
- position: 'relative',
103
- padding: '0 10px',
104
- boxSizing: 'border-box'
105
- });
106
- const Block = exports.Block = (0, _styles.styled)('div')(({
107
- theme
108
- }) => ({
109
- width: `${BlockWidth}px`,
110
- minWidth: `${BlockWidth}px`,
111
- '& ul, ol': {
112
- marginBlockStart: 0,
113
- paddingInlineStart: theme.spacing(2)
114
- }
115
- }));
116
- const StyledSecondaryBlock = (0, _styles.styled)('div')({
117
- display: 'flex',
118
- overflowX: 'hidden',
119
- overflowY: 'hidden',
120
- alignItems: 'flex-end',
121
- // this is needed to show the editor toolbar!!!
122
- paddingBottom: '30px'
123
- });
124
- const SecondaryBlock = ({
125
- children,
126
- setRef,
127
- width
128
- }) => /*#__PURE__*/_react.default.createElement(StyledSecondaryBlock, {
129
- style: {
130
- width: width
131
- },
132
- ref: setRef
133
- }, children);
134
- exports.SecondaryBlock = SecondaryBlock;
135
- const Row = ({
136
- children,
137
- height
138
- }) => /*#__PURE__*/_react.default.createElement("div", {
139
- style: {
140
- display: 'flex',
141
- height
142
- }
143
- }, children);
144
- exports.Row = Row;
145
- const ScorePointBoxWrapper = (0, _styles.styled)('div')({
146
- padding: '0 10px'
147
- });
148
- const ScorePointBox = (0, _styles.styled)('div')({
149
- display: 'flex',
150
- borderRadius: '4px',
151
- background: 'white',
152
- flexDirection: 'row',
153
- alignItems: 'center',
154
- justifyContent: 'space-between',
155
- border: greyBorder
156
- });
157
- const ScorePointBoxDisabled = (0, _styles.styled)('div')({
158
- display: 'flex',
159
- borderRadius: '4px',
160
- background: 'none',
161
- flexDirection: 'row',
162
- alignItems: 'center',
163
- justifyContent: 'center',
164
- border: '0'
165
- });
166
- const SubLabel = (0, _styles.styled)('div')({
167
- width: '24px',
168
- textAlign: 'center'
169
- });
170
- const ScorePoint = ({
171
- error = '',
172
- scorePointsValue,
173
- scoreDescriptor,
174
- pluginProps,
175
- onChange,
176
- showScorePointLabels,
177
- alignToRight,
178
- spellCheck,
179
- uploadSoundSupport,
180
- imageSupport = {},
181
- mathMlOptions = {}
182
- }) => {
183
- const ScorePointBoxComponent = showScorePointLabels ? ScorePointBox : ScorePointBoxDisabled;
184
- return /*#__PURE__*/_react.default.createElement(GlobalStyles, null, /*#__PURE__*/_react.default.createElement(ScorePointBoxWrapper, null, /*#__PURE__*/_react.default.createElement(ScorePointBoxComponent, null, /*#__PURE__*/_react.default.createElement(SubLabel, null, scorePointsValue), showScorePointLabels ? /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
185
- className: "editable-label",
186
- error: error,
187
- markup: scoreDescriptor,
188
- placeholder: " Enter Label",
189
- onChange: onChange,
190
- pluginProps: pluginProps,
191
- activePlugins: _utils.filteredDefaultPlugins,
192
- spellCheck: spellCheck,
193
- toolbarOpts: alignToRight ? {
194
- alignment: 'right'
195
- } : {},
196
- uploadSoundSupport: uploadSoundSupport,
197
- languageCharactersProps: [{
198
- language: 'spanish'
199
- }, {
200
- language: 'special'
201
- }],
202
- mathMlOptions: mathMlOptions,
203
- imageSupport: imageSupport,
204
- autoWidthToolbar: true
205
- }) : null)));
206
- };
207
- exports.ScorePoint = ScorePoint;
208
- const StyledBootstrapInput = (0, _styles.styled)(_InputBase.default)(({
209
- theme
210
- }) => ({
211
- '&.MuiInputBase-root': {
212
- background: theme.palette.common.white,
213
- marginTop: theme.spacing(1),
214
- 'label + &': {
215
- width: '80px'
216
- }
217
- },
218
- '& .MuiInputBase-input': {
219
- borderRadius: '4px',
220
- position: 'relative',
221
- border: greyBorder,
222
- fontSize: theme.typography.fontSize,
223
- fontFamily: 'Cerebri Sans',
224
- padding: `${theme.spacing(1)} ${theme.spacing(1.5)}`,
225
- '&:focus': {
226
- borderRadius: '4px'
227
- }
228
- }
229
- }));
230
- const createMaxScoreOptions = maxMaxPoints => Array.from({
231
- length: maxMaxPoints
232
- }, (_, i) => i + 1);
233
- const MaxPointsPicker = ({
234
- maxPoints,
235
- onChange,
236
- maxMaxPoints
237
- }) => /*#__PURE__*/_react.default.createElement(_renderUi.InputContainer, {
238
- label: "Max Points"
239
- }, /*#__PURE__*/_react.default.createElement(_Select.default, {
240
- value: maxPoints,
241
- onChange: onChange,
242
- input: /*#__PURE__*/_react.default.createElement(StyledBootstrapInput, null),
243
- MenuProps: {
244
- transitionDuration: {
245
- enter: 225,
246
- exit: 195
247
- }
248
- }
249
- }, createMaxScoreOptions(maxMaxPoints).map(maxScore => /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
250
- key: `menu-item-${maxScore}`,
251
- value: maxScore
252
- }, maxScore))));
253
- exports.MaxPointsPicker = MaxPointsPicker;
254
- const SimpleInputWrapper = (0, _styles.styled)('div')(({
255
- theme
256
- }) => ({
257
- display: 'flex',
258
- justifyContent: 'space-between',
259
- alignItems: 'center',
260
- margin: `${theme.spacing(1.5)} 0`
261
- }));
262
- const SimpleInput = ({
263
- markup,
264
- onChange,
265
- pluginProps,
266
- label,
267
- spellCheck,
268
- uploadSoundSupport,
269
- mathMlOptions = {},
270
- imageSupport = {}
271
- }) => /*#__PURE__*/_react.default.createElement(GlobalStyles, null, /*#__PURE__*/_react.default.createElement(SimpleInputWrapper, null, label && /*#__PURE__*/_react.default.createElement("div", null, label), /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
272
- className: "editable-level",
273
- markup: markup,
274
- onChange: onChange,
275
- placeholder: "Trait Label",
276
- pluginProps: pluginProps,
277
- activePlugins: _utils.filteredDefaultPlugins,
278
- spellCheck: spellCheck,
279
- uploadSoundSupport: uploadSoundSupport,
280
- languageCharactersProps: [{
281
- language: 'spanish'
282
- }, {
283
- language: 'special'
284
- }],
285
- mathMlOptions: mathMlOptions,
286
- imageSupport: imageSupport,
287
- autoWidthToolbar: true
288
- })));
289
- exports.SimpleInput = SimpleInput;
290
- const UnderlinedInputWrapper = (0, _styles.styled)('div')({
291
- width: '100%',
292
- display: 'flex',
293
- justifyContent: 'center',
294
- alignItems: 'center'
295
- });
296
- const UnderlinedInput = ({
297
- error,
298
- markup,
299
- onChange,
300
- pluginProps,
301
- label,
302
- placeholder,
303
- spellCheck,
304
- uploadSoundSupport,
305
- imageSupport = {},
306
- mathMlOptions = {}
307
- }) => /*#__PURE__*/_react.default.createElement(GlobalStyles, null, /*#__PURE__*/_react.default.createElement(UnderlinedInputWrapper, null, label && /*#__PURE__*/_react.default.createElement("div", null, label), /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
308
- className: "underlined-editable-level",
309
- error: error,
310
- markup: markup,
311
- onChange: onChange,
312
- placeholder: placeholder,
313
- pluginProps: pluginProps,
314
- activePlugins: _utils.filteredDefaultPlugins,
315
- spellCheck: spellCheck,
316
- uploadSoundSupport: uploadSoundSupport,
317
- languageCharactersProps: [{
318
- language: 'spanish'
319
- }, {
320
- language: 'special'
321
- }],
322
- mathMlOptions: mathMlOptions,
323
- imageSupport: imageSupport,
324
- autoWidthToolbar: true
325
- })));
326
- exports.UnderlinedInput = UnderlinedInput;
327
- const ExpandedInput = ({
328
- error,
329
- markup,
330
- onChange,
331
- pluginProps,
332
- placeholder,
333
- alignToRight,
334
- spellCheck,
335
- uploadSoundSupport,
336
- mathMlOptions = {},
337
- imageSupport = {}
338
- }) => /*#__PURE__*/_react.default.createElement(GlobalStyles, null, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
339
- className: "expanded-input-prompt",
340
- error: error,
341
- markup: markup,
342
- onChange: onChange,
343
- placeholder: placeholder,
344
- pluginProps: pluginProps,
345
- toolbarOpts: alignToRight ? {
346
- alignment: 'right'
347
- } : {},
348
- spellCheck: spellCheck,
349
- uploadSoundSupport: uploadSoundSupport,
350
- languageCharactersProps: [{
351
- language: 'spanish'
352
- }, {
353
- language: 'special'
354
- }],
355
- autoWidthToolbar: true,
356
- mathMlOptions: mathMlOptions,
357
- imageSupport: imageSupport
358
- }));
359
- exports.ExpandedInput = ExpandedInput;
360
- const ScaleSettings = exports.ScaleSettings = (0, _styles.styled)('div')(({
361
- theme
362
- }) => ({
363
- display: 'flex',
364
- justifyContent: 'space-between',
365
- alignItems: 'flex-end',
366
- paddingBottom: '18px',
367
- gap: theme.spacing(0.25)
368
- }));
369
- const StyledArrow = (0, _styles.styled)('div')(({
370
- theme
371
- }) => ({
372
- position: 'absolute',
373
- zIndex: 10,
374
- cursor: 'pointer',
375
- right: 0,
376
- alignItems: 'flex-start',
377
- justifyContent: 'center',
378
- background: `linear-gradient(to left, ${theme.palette.common.white}, ${_renderUi.color.background()})`,
379
- boxSizing: 'border-box'
380
- }));
381
- const StyledInnerGrey = (0, _styles.styled)('div')(({
382
- theme
383
- }) => ({
384
- position: 'absolute',
385
- zIndex: 11,
386
- cursor: 'pointer',
387
- right: 0,
388
- alignItems: 'flex-start',
389
- justifyContent: 'center',
390
- background: `linear-gradient(to left, ${theme.palette.common.white}, ${_renderUi.color.background()})`,
391
- boxSizing: 'border-box',
392
- '& svg': {
393
- position: 'absolute',
394
- bottom: '-24px'
395
- }
396
- }));
397
- const Arrow = ({
398
- children,
399
- show,
400
- width,
401
- onClick,
402
- left,
403
- showLevelTagInput
404
- }) => /*#__PURE__*/_react.default.createElement(StyledArrow, {
405
- style: {
406
- height: '-webkit-fill-available',
407
- display: show ? 'flex' : 'none',
408
- width: width,
409
- left: left,
410
- background: left ? `linear-gradient(to right, white, ${_renderUi.color.background()})` : undefined
411
- },
412
- onClick: onClick
413
- }, /*#__PURE__*/_react.default.createElement(StyledInnerGrey, {
414
- style: {
415
- display: show ? 'flex' : 'none',
416
- width: width,
417
- height: showLevelTagInput ? HeaderHeightLarge : HeaderHeight,
418
- left: 0,
419
- background: left ? `linear-gradient(to right, ${_renderUi.color.secondaryBackground()}, ${_renderUi.color.background()})` : undefined
420
- },
421
- onClick: onClick
422
- }, children));
423
- exports.Arrow = Arrow;
424
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","names":["_react","_interopRequireDefault","require","_styles","_editableHtmlTipTap","_Select","_MenuItem","_InputBase","_renderUi","_colors","_utils","InputHeight","BlockWidth","exports","PrimaryBlockWidth","DragHandleSpace","HeaderHeight","HeaderHeightLarge","greyBorder","grey","Padding","GlobalStyles","styled","theme","fontFamily","textAlign","flex","border","padding","borderLeft","borderRadius","background","palette","common","white","width","borderBottom","margin","marginTop","height","StyledButton","fontSize","typography","display","flexDirection","alignItems","spacing","color","secondaryBackground","justifyContent","text","cursor","MultiTraitButton","children","onClick","default","createElement","PrimaryBlock","minWidth","position","boxSizing","Block","marginBlockStart","paddingInlineStart","StyledSecondaryBlock","overflowX","overflowY","paddingBottom","SecondaryBlock","setRef","style","ref","Row","ScorePointBoxWrapper","ScorePointBox","ScorePointBoxDisabled","SubLabel","ScorePoint","error","scorePointsValue","scoreDescriptor","pluginProps","onChange","showScorePointLabels","alignToRight","spellCheck","uploadSoundSupport","imageSupport","mathMlOptions","ScorePointBoxComponent","className","markup","placeholder","activePlugins","filteredDefaultPlugins","toolbarOpts","alignment","languageCharactersProps","language","autoWidthToolbar","StyledBootstrapInput","InputBase","createMaxScoreOptions","maxMaxPoints","Array","from","length","_","i","MaxPointsPicker","maxPoints","InputContainer","label","value","input","MenuProps","transitionDuration","enter","exit","map","maxScore","key","SimpleInputWrapper","SimpleInput","UnderlinedInputWrapper","UnderlinedInput","ExpandedInput","ScaleSettings","gap","StyledArrow","zIndex","right","StyledInnerGrey","bottom","Arrow","show","left","showLevelTagInput","undefined"],"sources":["../src/common.jsx"],"sourcesContent":["import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport Select from '@mui/material/Select';\nimport MenuItem from '@mui/material/MenuItem';\nimport InputBase from '@mui/material/InputBase';\nimport { color, InputContainer } from '@pie-lib/render-ui';\nimport { grey } from '@mui/material/colors';\n\nimport { filteredDefaultPlugins } from './utils';\n\nconst InputHeight = '120px';\nexport const BlockWidth = 200;\nexport const PrimaryBlockWidth = 200;\nexport const DragHandleSpace = 32;\nexport const HeaderHeight = '100px';\nexport const HeaderHeightLarge = '160px';\nconst greyBorder = `solid 1px ${grey[400]}`;\nconst Padding = '8px 4px';\n\n// global styles for EditableHtml components\nconst GlobalStyles = styled('div')(({ theme }) => ({\n fontFamily: 'Cerebri',\n \n '& .editable-label': {\n textAlign: 'left',\n flex: 1,\n border: 'none',\n\n '& div:not(.tiptap)': {\n padding: 0,\n border: 'none',\n },\n\n '& > div:first-of-type': {\n borderLeft: greyBorder,\n borderRadius: 0,\n padding: Padding,\n },\n },\n\n '& .editable-level': {\n background: theme.palette.common.white,\n width: '60%',\n },\n\n '& .underlined-editable-level': {\n background: theme.palette.common.white,\n width: '100%',\n padding: 0,\n border: 'none',\n\n '& > div:first-of-type': {\n borderBottom: greyBorder,\n borderRadius: 0,\n padding: Padding,\n },\n },\n\n '& .expanded-input-prompt': {\n border: 'none',\n margin: '10px',\n marginTop: 0,\n '& > div:first-of-type': {\n border: greyBorder,\n borderRadius: '4px',\n padding: Padding,\n },\n\n '& .tiptap': {\n fontFamily: 'Cerebri',\n height: InputHeight,\n padding: 0\n }\n },\n}));\n\nconst StyledButton = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize + 2,\n textAlign: 'right',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'flex-start',\n padding: `${theme.spacing(1.5)} ${theme.spacing(2)}`,\n width: '114px',\n background: color.secondaryBackground(),\n borderRadius: '4px',\n justifyContent: 'space-around',\n color: color.text(),\n cursor: 'pointer',\n}));\n\nexport const MultiTraitButton = ({ children, onClick }) => (\n <StyledButton onClick={onClick}>\n <strong>+</strong>\n <div>{children}</div>\n </StyledButton>\n);\n\nexport const PrimaryBlock = styled('div')({\n width: `${PrimaryBlockWidth}px`,\n minWidth: `${PrimaryBlockWidth}px`,\n position: 'relative',\n padding: '0 10px',\n boxSizing: 'border-box',\n});\n\nexport const Block = styled('div')(({ theme }) => ({\n width: `${BlockWidth}px`,\n minWidth: `${BlockWidth}px`,\n '& ul, ol': {\n marginBlockStart: 0,\n paddingInlineStart: theme.spacing(2),\n },\n}));\n\nconst StyledSecondaryBlock = styled('div')({\n display: 'flex',\n overflowX: 'hidden',\n overflowY: 'hidden',\n alignItems: 'flex-end',\n // this is needed to show the editor toolbar!!!\n paddingBottom: '30px',\n});\n\nexport const SecondaryBlock = ({ children, setRef, width }) => (\n <StyledSecondaryBlock style={{ width: width }} ref={setRef}>\n {children}\n </StyledSecondaryBlock>\n);\n\nexport const Row = (({ children, height }) => (\n <div\n style={{\n display: 'flex',\n height,\n }}\n >\n {children}\n </div>\n));\n\nconst ScorePointBoxWrapper = styled('div')({\n padding: '0 10px',\n});\n\nconst ScorePointBox = styled('div')({\n display: 'flex',\n borderRadius: '4px',\n background: 'white',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n border: greyBorder,\n});\n\nconst ScorePointBoxDisabled = styled('div')({\n display: 'flex',\n borderRadius: '4px',\n background: 'none',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n border: '0',\n});\n\nconst SubLabel = styled('div')({\n width: '24px',\n textAlign: 'center',\n});\n\nexport const ScorePoint = ({\n error = '',\n scorePointsValue,\n scoreDescriptor,\n pluginProps,\n onChange,\n showScorePointLabels,\n alignToRight,\n spellCheck,\n uploadSoundSupport,\n imageSupport = {},\n mathMlOptions = {},\n}) => {\n const ScorePointBoxComponent = showScorePointLabels ? ScorePointBox : ScorePointBoxDisabled;\n\n return (\n <GlobalStyles>\n <ScorePointBoxWrapper>\n <ScorePointBoxComponent>\n <SubLabel>{scorePointsValue}</SubLabel>\n\n {showScorePointLabels ? (\n <EditableHtml\n className=\"editable-label\"\n error={error}\n markup={scoreDescriptor}\n placeholder=\" Enter Label\"\n onChange={onChange}\n pluginProps={pluginProps}\n activePlugins={filteredDefaultPlugins}\n spellCheck={spellCheck}\n toolbarOpts={alignToRight ? { alignment: 'right' } : {}}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n imageSupport={imageSupport}\n autoWidthToolbar\n />\n ) : null}\n </ScorePointBoxComponent>\n </ScorePointBoxWrapper>\n </GlobalStyles>\n );\n};\n\nconst StyledBootstrapInput = styled(InputBase)(({ theme }) => ({\n '&.MuiInputBase-root': {\n background: theme.palette.common.white,\n marginTop: theme.spacing(1),\n 'label + &': {\n width: '80px',\n },\n },\n '& .MuiInputBase-input': {\n borderRadius: '4px',\n position: 'relative',\n border: greyBorder,\n fontSize: theme.typography.fontSize,\n fontFamily: 'Cerebri Sans',\n padding: `${theme.spacing(1)} ${theme.spacing(1.5)}`,\n\n '&:focus': {\n borderRadius: '4px',\n },\n },\n}));\n\nconst createMaxScoreOptions = (maxMaxPoints) => Array.from({ length: maxMaxPoints }, (_, i) => i + 1);\n\nexport const MaxPointsPicker = ({ maxPoints, onChange, maxMaxPoints }) => (\n <InputContainer label=\"Max Points\">\n <Select\n value={maxPoints}\n onChange={onChange}\n input={<StyledBootstrapInput />}\n MenuProps={{\n transitionDuration: {\n enter: 225,\n exit: 195\n }\n }}\n >\n {createMaxScoreOptions(maxMaxPoints).map((maxScore) => (\n <MenuItem key={`menu-item-${maxScore}`} value={maxScore}>\n {maxScore}\n </MenuItem>\n ))}\n </Select>\n </InputContainer>\n);\n\nconst SimpleInputWrapper = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: `${theme.spacing(1.5)} 0`,\n}));\n\nexport const SimpleInput = ({\n markup,\n onChange,\n pluginProps,\n label,\n spellCheck,\n uploadSoundSupport,\n mathMlOptions = {},\n imageSupport = {},\n}) => (\n <GlobalStyles>\n <SimpleInputWrapper>\n {label && <div>{label}</div>}\n\n <EditableHtml\n className=\"editable-level\"\n markup={markup}\n onChange={onChange}\n placeholder=\"Trait Label\"\n pluginProps={pluginProps}\n activePlugins={filteredDefaultPlugins}\n spellCheck={spellCheck}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n imageSupport={imageSupport}\n autoWidthToolbar\n />\n </SimpleInputWrapper>\n </GlobalStyles>\n);\n\nconst UnderlinedInputWrapper = styled('div')({\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n});\n\nexport const UnderlinedInput = ({\n error,\n markup,\n onChange,\n pluginProps,\n label,\n placeholder,\n spellCheck,\n uploadSoundSupport,\n imageSupport = {},\n mathMlOptions = {},\n}) => (\n <GlobalStyles>\n <UnderlinedInputWrapper>\n {label && <div>{label}</div>}\n\n <EditableHtml\n className=\"underlined-editable-level\"\n error={error}\n markup={markup}\n onChange={onChange}\n placeholder={placeholder}\n pluginProps={pluginProps}\n activePlugins={filteredDefaultPlugins}\n spellCheck={spellCheck}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n imageSupport={imageSupport}\n autoWidthToolbar\n />\n </UnderlinedInputWrapper>\n </GlobalStyles>\n);\n\nexport const ExpandedInput = ({\n error,\n markup,\n onChange,\n pluginProps,\n placeholder,\n alignToRight,\n spellCheck,\n uploadSoundSupport,\n mathMlOptions = {},\n imageSupport = {},\n}) => (\n <GlobalStyles>\n <EditableHtml\n className=\"expanded-input-prompt\"\n error={error}\n markup={markup}\n onChange={onChange}\n placeholder={placeholder}\n pluginProps={pluginProps}\n toolbarOpts={alignToRight ? { alignment: 'right' } : {}}\n spellCheck={spellCheck}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n autoWidthToolbar\n mathMlOptions={mathMlOptions}\n imageSupport={imageSupport}\n />\n </GlobalStyles>\n);\n\nexport const ScaleSettings = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n paddingBottom: '18px',\n gap: theme.spacing(0.25),\n}));\n\nconst StyledArrow = styled('div')(({ theme }) => ({\n position: 'absolute',\n zIndex: 10,\n cursor: 'pointer',\n right: 0,\n alignItems: 'flex-start',\n justifyContent: 'center',\n background: `linear-gradient(to left, ${theme.palette.common.white}, ${color.background()})`,\n boxSizing: 'border-box',\n}));\n\nconst StyledInnerGrey = styled('div')(({ theme }) => ({\n position: 'absolute',\n zIndex: 11,\n cursor: 'pointer',\n right: 0,\n alignItems: 'flex-start',\n justifyContent: 'center',\n background: `linear-gradient(to left, ${theme.palette.common.white}, ${color.background()})`,\n boxSizing: 'border-box',\n '& svg': {\n position: 'absolute',\n bottom: '-24px',\n },\n}));\n\nexport const Arrow = ({ children, show, width, onClick, left, showLevelTagInput }) => (\n <StyledArrow\n style={{\n height: '-webkit-fill-available',\n display: show ? 'flex' : 'none',\n width: width,\n left: left,\n background: left ? `linear-gradient(to right, white, ${color.background()})` : undefined,\n }}\n onClick={onClick}\n >\n <StyledInnerGrey\n style={{\n display: show ? 'flex' : 'none',\n width: width,\n height: showLevelTagInput ? HeaderHeightLarge : HeaderHeight,\n left: 0,\n background: left\n ? `linear-gradient(to right, ${color.secondaryBackground()}, ${color.background()})`\n : undefined,\n }}\n onClick={onClick}\n >\n {children}\n </StyledInnerGrey>\n </StyledArrow>\n);\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,MAAMS,WAAW,GAAG,OAAO;AACpB,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,GAAG;AACtB,MAAME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EkG,iBAAiB,GAAGxH,iBAAiB,GAAGD,YAAY;IAC5DwH,IAAI,EAAE,CAAC;IACPzG,UAAU,EAAEyG,IAAI,GACZ,6BAA6BzF,eAAK,CAACC,mBAAmB,CAAC,CAAC,KAAKD,eAAK,CAAChB,UAAU,CAAC,CAAC,GAAG,GAClF2G;EACN,CAAE;EACFpF,OAAO,EAAEA;AAAQ,GAEhBD,QACc,CACN,CACd;AAACxC,OAAA,CAAAyH,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -1,184 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = exports.default = {
8
- model: {
9
- addScaleEnabled: true,
10
- description: false,
11
- excludeZero: false,
12
- halfScoring: false,
13
- maxPointsEnabled: true,
14
- pointLabels: true,
15
- scales: [],
16
- standards: false,
17
- visibleToStudent: true
18
- },
19
- configuration: {
20
- baseInputConfiguration: {
21
- h3: {
22
- disabled: true
23
- },
24
- audio: {
25
- disabled: false
26
- },
27
- video: {
28
- disabled: false
29
- },
30
- image: {
31
- disabled: false
32
- },
33
- textAlign: {
34
- disabled: true
35
- },
36
- showParagraphs: {
37
- disabled: false
38
- },
39
- separateParagraphs: {
40
- disabled: true
41
- }
42
- },
43
- expandedInput: {
44
- inputConfiguration: {
45
- math: {
46
- disabled: true
47
- },
48
- audio: {
49
- disabled: false
50
- },
51
- video: {
52
- disabled: false
53
- },
54
- image: {
55
- disabled: false
56
- }
57
- }
58
- },
59
- labelInput: {
60
- inputConfiguration: {
61
- math: {
62
- disabled: true
63
- },
64
- audio: {
65
- disabled: true
66
- },
67
- video: {
68
- disabled: true
69
- },
70
- image: {
71
- disabled: true
72
- }
73
- }
74
- },
75
- excludeZeroDialogBoxContent: {
76
- title: 'Exclude 0 (Zero) from Score Point Values.',
77
- text: `<div>
78
- You are about to exclude 0 from score point values.
79
- <br/>
80
- Some of the existing data has to be changed.
81
- <br/>
82
- Please choose if you want to:
83
- <ul>
84
- <li>
85
- shift Labels and Descriptions to the left
86
- </li>
87
- <li>
88
- remove 0 column with its Label and Description
89
- </li>
90
- </ul>
91
- </div>`
92
- },
93
- includeZeroDialogBoxContent: {
94
- title: 'Include 0 (Zero) in Score Point Values.',
95
- text: `<div>
96
- You are about to include 0 in score point values.
97
- <br/>
98
- Some of the existing data has to be changed.
99
- <br/>
100
- Please choose if you want to:
101
- <ul>
102
- <li>
103
- shift Labels and Descriptions to the right
104
- </li>
105
- <li>
106
- add 0 column with empty Label and Descriptions
107
- </li>
108
- </ul>
109
- </div>`
110
- },
111
- deleteScaleDialogBoxContent: {
112
- title: 'Delete Scale',
113
- text: 'Are you sure you want to delete this scale?'
114
- },
115
- maxPointsDialogBoxContent: {
116
- title: 'Decreasing Max Points.',
117
- text: ` You are about to decrease max score point value.
118
- <br/>
119
- All the Labels and Descriptions for scores above Max Point will be deleted.`
120
- },
121
- settingsPanelDisabled: false,
122
- spellCheck: {
123
- label: 'Spellcheck',
124
- settings: false,
125
- enabled: true
126
- },
127
- showExcludeZero: {
128
- settings: true,
129
- label: 'Exclude Zero'
130
- },
131
- showScorePointLabels: {
132
- settings: true,
133
- label: 'Show Score Point Labels'
134
- },
135
- showDescription: {
136
- settings: true,
137
- label: 'Show Description'
138
- },
139
- showVisibleToStudent: {
140
- settings: true,
141
- label: 'Visible to Student'
142
- },
143
- showHalfScoring: {
144
- settings: true,
145
- label: 'Half Scoring'
146
- },
147
- // commenting this in order to use the dynamic width if the width was not set by the client (PD-3203)
148
- // width: '900px',
149
- // these should not be set to true (should not be used) for now
150
- showStandards: {
151
- settings: false,
152
- label: 'Show Standards'
153
- },
154
- showLevelTagInput: {
155
- settings: false,
156
- label: 'Show Level Tag Input',
157
- enabled: false
158
- },
159
- dragAndDrop: {
160
- settings: true,
161
- label: 'Enable Drag and Drop',
162
- enabled: false
163
- },
164
- showMaxPoint: {
165
- settings: true,
166
- label: 'Show Max Points Dropdown'
167
- },
168
- addScale: {
169
- settings: true,
170
- label: 'Add Scale Available'
171
- },
172
- minNoOfTraits: 1,
173
- maxNoOfTraits: 10,
174
- minNoOfScales: 1,
175
- maxNoOfScales: 10,
176
- defaultTraitLabel: 'Trait',
177
- mathMlOptions: {
178
- mmlOutput: false,
179
- mmlEditing: false
180
- },
181
- maxMaxPoints: 10
182
- }
183
- };
184
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.js","names":["model","addScaleEnabled","description","excludeZero","halfScoring","maxPointsEnabled","pointLabels","scales","standards","visibleToStudent","configuration","baseInputConfiguration","h3","disabled","audio","video","image","textAlign","showParagraphs","separateParagraphs","expandedInput","inputConfiguration","math","labelInput","excludeZeroDialogBoxContent","title","text","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","settingsPanelDisabled","spellCheck","label","settings","enabled","showExcludeZero","showScorePointLabels","showDescription","showVisibleToStudent","showHalfScoring","showStandards","showLevelTagInput","dragAndDrop","showMaxPoint","addScale","minNoOfTraits","maxNoOfTraits","minNoOfScales","maxNoOfScales","defaultTraitLabel","mathMlOptions","mmlOutput","mmlEditing","maxMaxPoints"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n model: {\n addScaleEnabled: true,\n description: false,\n excludeZero: false,\n halfScoring: false,\n maxPointsEnabled: true,\n pointLabels: true,\n scales: [],\n standards: false,\n visibleToStudent: true,\n },\n configuration: {\n baseInputConfiguration: {\n h3: { disabled: true },\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n textAlign: { disabled: true },\n showParagraphs: { disabled: false },\n separateParagraphs: { disabled: true },\n },\n expandedInput: {\n inputConfiguration: {\n math: { disabled: true },\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n labelInput: {\n inputConfiguration: {\n math: { disabled: true },\n audio: { disabled: true },\n video: { disabled: true },\n image: { disabled: true },\n },\n },\n excludeZeroDialogBoxContent: {\n title: 'Exclude 0 (Zero) from Score Point Values.',\n 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>`,\n },\n includeZeroDialogBoxContent: {\n title: 'Include 0 (Zero) in Score Point Values.',\n 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>`,\n },\n deleteScaleDialogBoxContent: {\n title: 'Delete Scale',\n text: 'Are you sure you want to delete this scale?',\n },\n maxPointsDialogBoxContent: {\n title: 'Decreasing Max Points.',\n 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.`,\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n showExcludeZero: {\n settings: true,\n label: 'Exclude Zero',\n },\n showScorePointLabels: {\n settings: true,\n label: 'Show Score Point Labels',\n },\n showDescription: {\n settings: true,\n label: 'Show Description',\n },\n showVisibleToStudent: {\n settings: true,\n label: 'Visible to Student',\n },\n showHalfScoring: {\n settings: true,\n label: 'Half Scoring',\n },\n // commenting this in order to use the dynamic width if the width was not set by the client (PD-3203)\n // width: '900px',\n // these should not be set to true (should not be used) for now\n showStandards: {\n settings: false,\n label: 'Show Standards',\n },\n showLevelTagInput: {\n settings: false,\n label: 'Show Level Tag Input',\n enabled: false,\n },\n dragAndDrop: {\n settings: true,\n label: 'Enable Drag and Drop',\n enabled: false,\n },\n showMaxPoint: {\n settings: true,\n label: 'Show Max Points Dropdown',\n },\n addScale: {\n settings: true,\n label: 'Add Scale Available',\n },\n minNoOfTraits: 1,\n maxNoOfTraits: 10,\n minNoOfScales: 1,\n maxNoOfScales: 10,\n defaultTraitLabel: 'Trait',\n mathMlOptions: {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