@pie-element/complex-rubric 5.3.4-next.3 → 6.0.0-beta.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 (145) hide show
  1. package/configure/lib/defaults.js +52 -24
  2. package/configure/lib/defaults.js.map +1 -1
  3. package/configure/lib/index.js +103 -194
  4. package/configure/lib/index.js.map +1 -1
  5. package/configure/lib/main.js +140 -199
  6. package/configure/lib/main.js.map +1 -1
  7. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
  8. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +2491 -0
  9. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
  10. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
  11. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +2333 -0
  12. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +429 -0
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +181 -0
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +157 -0
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +455 -0
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +206 -0
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +451 -0
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +275 -0
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +233 -0
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +87 -0
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +24 -0
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +1571 -0
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +18 -0
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +158 -0
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +11 -0
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +14 -0
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +1628 -0
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +1202 -0
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +117 -0
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +861 -0
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +614 -0
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +54 -0
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +123 -0
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +248 -0
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +83 -0
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +32 -0
  57. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
  58. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +2774 -0
  59. package/configure/node_modules/@pie-element/rubric/README.md +3 -0
  60. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
  61. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +2541 -0
  62. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +67 -0
  63. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
  64. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +135 -0
  65. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
  66. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +103 -0
  67. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
  68. package/configure/node_modules/@pie-element/rubric/configure/package.json +24 -0
  69. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +178 -0
  70. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +42 -0
  71. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +139 -0
  72. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +87 -0
  73. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
  74. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +1564 -0
  75. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +15 -0
  76. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +1 -0
  77. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +46 -0
  78. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
  79. package/configure/node_modules/@pie-element/rubric/controller/package.json +12 -0
  80. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +33 -0
  81. package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +8 -0
  82. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +41 -0
  83. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +712 -0
  84. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +532 -0
  85. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
  86. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
  87. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
  88. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +391 -0
  89. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +281 -0
  90. package/configure/node_modules/@pie-element/rubric/lib/index.js +52 -0
  91. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
  92. package/configure/node_modules/@pie-element/rubric/lib/main.js +210 -0
  93. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
  94. package/configure/node_modules/@pie-element/rubric/lib/print.js +71 -0
  95. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
  96. package/configure/node_modules/@pie-element/rubric/package.json +30 -0
  97. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +2641 -0
  98. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +49 -0
  99. package/configure/node_modules/@pie-element/rubric/src/index.js +48 -0
  100. package/configure/node_modules/@pie-element/rubric/src/main.jsx +226 -0
  101. package/configure/node_modules/@pie-element/rubric/src/print.js +74 -0
  102. package/configure/node_modules/clsx/clsx.d.ts +6 -0
  103. package/configure/node_modules/clsx/dist/clsx.js +1 -0
  104. package/configure/node_modules/clsx/dist/clsx.m.js +1 -0
  105. package/configure/node_modules/clsx/dist/clsx.min.js +1 -0
  106. package/configure/node_modules/clsx/license +9 -0
  107. package/configure/node_modules/clsx/package.json +37 -0
  108. package/configure/node_modules/clsx/readme.md +88 -0
  109. package/configure/package.json +12 -9
  110. package/configure/src/__tests__/index.test.js +30 -5
  111. package/configure/src/__tests__/main.test.jsx +39 -23
  112. package/configure/src/index.js +13 -6
  113. package/configure/src/main.jsx +16 -15
  114. package/controller/lib/defaults.js +11 -15
  115. package/controller/lib/defaults.js.map +1 -1
  116. package/controller/lib/index.js +117 -180
  117. package/controller/lib/index.js.map +1 -1
  118. package/controller/lib/utils.js +1 -3
  119. package/controller/lib/utils.js.map +1 -1
  120. package/controller/package.json +1 -1
  121. package/lib/index.js +113 -204
  122. package/lib/index.js.map +1 -1
  123. package/lib/print.js +96 -190
  124. package/lib/print.js.map +1 -1
  125. package/package.json +10 -14
  126. package/src/__tests__/index.test.js +25 -7
  127. package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +0 -193
  128. package/esm/configure.js +0 -15856
  129. package/esm/configure.js.map +0 -1
  130. package/esm/controller.js +0 -281
  131. package/esm/controller.js.map +0 -1
  132. package/esm/element.js +0 -179
  133. package/esm/element.js.map +0 -1
  134. package/esm/package.json +0 -3
  135. package/esm/print.js +0 -163
  136. package/esm/print.js.map +0 -1
  137. package/module/configure.js +0 -1
  138. package/module/controller.js +0 -262
  139. package/module/demo.js +0 -221
  140. package/module/element.js +0 -1
  141. package/module/index.html +0 -21
  142. package/module/manifest.json +0 -22
  143. package/module/print-demo.js +0 -259
  144. package/module/print.html +0 -18
  145. package/module/print.js +0 -1
@@ -0,0 +1,429 @@
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 _editableHtml = _interopRequireDefault(require("@pie-lib/editable-html"));
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 _utils = require("./utils");
16
+ var _colors = require("@mui/material/colors");
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
+ '& .editable-label': {
31
+ textAlign: 'left',
32
+ flex: 1,
33
+ border: 'none',
34
+ '& div': {
35
+ padding: 0,
36
+ border: 'none'
37
+ },
38
+ '& > div': {
39
+ borderLeft: greyBorder,
40
+ borderRadius: 0,
41
+ padding: Padding
42
+ }
43
+ },
44
+ '& .editable-level': {
45
+ background: theme.palette.common.white,
46
+ width: '60%'
47
+ },
48
+ '& .underlined-editable-level': {
49
+ background: theme.palette.common.white,
50
+ width: '100%',
51
+ '& div': {
52
+ padding: 0,
53
+ border: 'none'
54
+ },
55
+ '& > div': {
56
+ borderBottom: greyBorder,
57
+ borderRadius: 0,
58
+ padding: Padding
59
+ }
60
+ },
61
+ '& .expanded-input-prompt': {
62
+ border: 'none',
63
+ margin: '10px',
64
+ marginTop: 0
65
+ }
66
+ }));
67
+ const StyledButton = (0, _styles.styled)('div')(({
68
+ theme
69
+ }) => ({
70
+ fontSize: theme.typography.fontSize + 2,
71
+ textAlign: 'right',
72
+ display: 'flex',
73
+ flexDirection: 'row',
74
+ alignItems: 'flex-start',
75
+ padding: `${theme.spacing(1.5)} ${theme.spacing(2)}`,
76
+ width: '114px',
77
+ background: _renderUi.color.secondaryBackground(),
78
+ borderRadius: '4px',
79
+ justifyContent: 'space-around',
80
+ color: _renderUi.color.text(),
81
+ cursor: 'pointer'
82
+ }));
83
+ const MultiTraitButton = ({
84
+ children,
85
+ onClick
86
+ }) => /*#__PURE__*/_react.default.createElement(StyledButton, {
87
+ onClick: onClick
88
+ }, /*#__PURE__*/_react.default.createElement("strong", null, "+"), /*#__PURE__*/_react.default.createElement("div", null, children));
89
+ exports.MultiTraitButton = MultiTraitButton;
90
+ const PrimaryBlock = exports.PrimaryBlock = (0, _styles.styled)('div')(({
91
+ theme
92
+ }) => ({
93
+ width: `${PrimaryBlockWidth}px`,
94
+ minWidth: `${PrimaryBlockWidth}px`,
95
+ position: 'relative',
96
+ padding: '0 10px',
97
+ boxSizing: 'border-box'
98
+ }));
99
+ const Block = exports.Block = (0, _styles.styled)('div')(({
100
+ theme
101
+ }) => ({
102
+ width: `${BlockWidth}px`,
103
+ minWidth: `${BlockWidth}px`,
104
+ '& ul, ol': {
105
+ marginBlockStart: 0,
106
+ paddingInlineStart: theme.spacing(2)
107
+ }
108
+ }));
109
+ const StyledSecondaryBlock = (0, _styles.styled)('div')(({
110
+ theme
111
+ }) => ({
112
+ display: 'flex',
113
+ overflowX: 'hidden',
114
+ alignItems: 'flex-end',
115
+ // this is needed to show the editor toolbar!!!
116
+ paddingBottom: '30px'
117
+ }));
118
+ const SecondaryBlock = ({
119
+ children,
120
+ setRef,
121
+ width
122
+ }) => /*#__PURE__*/_react.default.createElement(StyledSecondaryBlock, {
123
+ style: {
124
+ width: width
125
+ },
126
+ ref: setRef
127
+ }, children);
128
+ exports.SecondaryBlock = SecondaryBlock;
129
+ const Row = ({
130
+ children,
131
+ height
132
+ }) => /*#__PURE__*/_react.default.createElement("div", {
133
+ style: {
134
+ display: 'flex',
135
+ height
136
+ }
137
+ }, children);
138
+ exports.Row = Row;
139
+ const ScorePointBoxWrapper = (0, _styles.styled)('div')({
140
+ padding: '0 10px'
141
+ });
142
+ const ScorePointBox = (0, _styles.styled)('div')({
143
+ display: 'flex',
144
+ borderRadius: '4px',
145
+ background: 'white',
146
+ flexDirection: 'row',
147
+ alignItems: 'center',
148
+ justifyContent: 'space-between',
149
+ border: greyBorder
150
+ });
151
+ const ScorePointBoxDisabled = (0, _styles.styled)('div')({
152
+ display: 'flex',
153
+ borderRadius: '4px',
154
+ background: 'none',
155
+ flexDirection: 'row',
156
+ alignItems: 'center',
157
+ justifyContent: 'center',
158
+ border: '0'
159
+ });
160
+ const SubLabel = (0, _styles.styled)('div')({
161
+ width: '24px',
162
+ textAlign: 'center'
163
+ });
164
+ const ScorePoint = ({
165
+ error = '',
166
+ scorePointsValue,
167
+ scoreDescriptor,
168
+ pluginProps,
169
+ onChange,
170
+ showScorePointLabels,
171
+ alignToRight,
172
+ spellCheck,
173
+ uploadSoundSupport,
174
+ imageSupport = {},
175
+ mathMlOptions = {}
176
+ }) => {
177
+ const ScorePointBoxComponent = showScorePointLabels ? ScorePointBox : ScorePointBoxDisabled;
178
+ 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(_editableHtml.default, {
179
+ className: "editable-label",
180
+ error: error,
181
+ markup: scoreDescriptor,
182
+ placeholder: " Enter Label",
183
+ onChange: onChange,
184
+ pluginProps: pluginProps,
185
+ activePlugins: _utils.filteredDefaultPlugins,
186
+ spellCheck: spellCheck,
187
+ toolbarOpts: alignToRight ? {
188
+ alignment: 'right'
189
+ } : {},
190
+ uploadSoundSupport: uploadSoundSupport,
191
+ languageCharactersProps: [{
192
+ language: 'spanish'
193
+ }, {
194
+ language: 'special'
195
+ }],
196
+ mathMlOptions: mathMlOptions,
197
+ imageSupport: imageSupport,
198
+ slateEditorExtraStyles: {
199
+ fontFamily: 'Cerebri'
200
+ }
201
+ }) : null)));
202
+ };
203
+ exports.ScorePoint = ScorePoint;
204
+ const StyledBootstrapInput = (0, _styles.styled)(_InputBase.default)(({
205
+ theme
206
+ }) => ({
207
+ '&.MuiInputBase-root': {
208
+ background: theme.palette.common.white,
209
+ marginTop: theme.spacing(1),
210
+ 'label + &': {
211
+ width: '80px'
212
+ }
213
+ },
214
+ '& .MuiInputBase-input': {
215
+ borderRadius: '4px',
216
+ position: 'relative',
217
+ border: greyBorder,
218
+ fontSize: theme.typography.fontSize,
219
+ fontFamily: 'Cerebri Sans',
220
+ padding: `${theme.spacing(1)} ${theme.spacing(1.5)}`,
221
+ '&:focus': {
222
+ borderRadius: '4px'
223
+ }
224
+ }
225
+ }));
226
+ const createMaxScoreOptions = maxMaxPoints => Array.from({
227
+ length: maxMaxPoints
228
+ }, (_, i) => i + 1);
229
+ const MaxPointsPicker = ({
230
+ maxPoints,
231
+ onChange,
232
+ maxMaxPoints
233
+ }) => /*#__PURE__*/_react.default.createElement(_renderUi.InputContainer, {
234
+ label: "Max Points"
235
+ }, /*#__PURE__*/_react.default.createElement(_Select.default, {
236
+ value: maxPoints,
237
+ onChange: onChange,
238
+ input: /*#__PURE__*/_react.default.createElement(StyledBootstrapInput, null),
239
+ MenuProps: {
240
+ transitionDuration: {
241
+ enter: 225,
242
+ exit: 195
243
+ }
244
+ }
245
+ }, createMaxScoreOptions(maxMaxPoints).map(maxScore => /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
246
+ key: `menu-item-${maxScore}`,
247
+ value: maxScore
248
+ }, maxScore))));
249
+ exports.MaxPointsPicker = MaxPointsPicker;
250
+ const SimpleInputWrapper = (0, _styles.styled)('div')(({
251
+ theme
252
+ }) => ({
253
+ display: 'flex',
254
+ justifyContent: 'space-between',
255
+ alignItems: 'center',
256
+ margin: `${theme.spacing(1.5)} 0`
257
+ }));
258
+ const SimpleInput = ({
259
+ markup,
260
+ onChange,
261
+ pluginProps,
262
+ label,
263
+ spellCheck,
264
+ uploadSoundSupport,
265
+ mathMlOptions = {},
266
+ imageSupport = {}
267
+ }) => /*#__PURE__*/_react.default.createElement(GlobalStyles, null, /*#__PURE__*/_react.default.createElement(SimpleInputWrapper, null, label && /*#__PURE__*/_react.default.createElement("div", null, label), /*#__PURE__*/_react.default.createElement(_editableHtml.default, {
268
+ className: "editable-level",
269
+ markup: markup,
270
+ onChange: onChange,
271
+ placeholder: "Trait Label",
272
+ pluginProps: pluginProps,
273
+ activePlugins: _utils.filteredDefaultPlugins,
274
+ spellCheck: spellCheck,
275
+ uploadSoundSupport: uploadSoundSupport,
276
+ languageCharactersProps: [{
277
+ language: 'spanish'
278
+ }, {
279
+ language: 'special'
280
+ }],
281
+ mathMlOptions: mathMlOptions,
282
+ imageSupport: imageSupport,
283
+ slateEditorExtraStyles: {
284
+ fontFamily: 'Cerebri'
285
+ }
286
+ })));
287
+ exports.SimpleInput = SimpleInput;
288
+ const UnderlinedInputWrapper = (0, _styles.styled)('div')({
289
+ width: '100%',
290
+ display: 'flex',
291
+ justifyContent: 'center',
292
+ alignItems: 'center'
293
+ });
294
+ const UnderlinedInput = ({
295
+ error,
296
+ markup,
297
+ onChange,
298
+ pluginProps,
299
+ label,
300
+ placeholder,
301
+ spellCheck,
302
+ uploadSoundSupport,
303
+ imageSupport = {},
304
+ mathMlOptions = {}
305
+ }) => /*#__PURE__*/_react.default.createElement(GlobalStyles, null, /*#__PURE__*/_react.default.createElement(UnderlinedInputWrapper, null, label && /*#__PURE__*/_react.default.createElement("div", null, label), /*#__PURE__*/_react.default.createElement(_editableHtml.default, {
306
+ className: "underlined-editable-level",
307
+ error: error,
308
+ markup: markup,
309
+ onChange: onChange,
310
+ placeholder: placeholder,
311
+ pluginProps: pluginProps,
312
+ activePlugins: _utils.filteredDefaultPlugins,
313
+ spellCheck: spellCheck,
314
+ uploadSoundSupport: uploadSoundSupport,
315
+ languageCharactersProps: [{
316
+ language: 'spanish'
317
+ }, {
318
+ language: 'special'
319
+ }],
320
+ mathMlOptions: mathMlOptions,
321
+ imageSupport: imageSupport,
322
+ slateEditorExtraStyles: {
323
+ fontFamily: 'Cerebri'
324
+ }
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(_editableHtml.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
+ slateEditorExtraStyles: {
359
+ fontFamily: 'Cerebri',
360
+ height: InputHeight,
361
+ padding: 0
362
+ }
363
+ }));
364
+ exports.ExpandedInput = ExpandedInput;
365
+ const ScaleSettings = exports.ScaleSettings = (0, _styles.styled)('div')(({
366
+ theme
367
+ }) => ({
368
+ display: 'flex',
369
+ justifyContent: 'space-between',
370
+ alignItems: 'flex-end',
371
+ paddingBottom: '18px',
372
+ gap: theme.spacing(0.25)
373
+ }));
374
+ const StyledArrow = (0, _styles.styled)('div')(({
375
+ theme
376
+ }) => ({
377
+ position: 'absolute',
378
+ zIndex: 10,
379
+ cursor: 'pointer',
380
+ right: 0,
381
+ alignItems: 'flex-start',
382
+ justifyContent: 'center',
383
+ background: `linear-gradient(to left, ${theme.palette.common.white}, ${_renderUi.color.background()})`,
384
+ boxSizing: 'border-box'
385
+ }));
386
+ const StyledInnerGrey = (0, _styles.styled)('div')(({
387
+ theme
388
+ }) => ({
389
+ position: 'absolute',
390
+ zIndex: 11,
391
+ cursor: 'pointer',
392
+ right: 0,
393
+ alignItems: 'flex-start',
394
+ justifyContent: 'center',
395
+ background: `linear-gradient(to left, ${theme.palette.common.white}, ${_renderUi.color.background()})`,
396
+ boxSizing: 'border-box',
397
+ '& svg': {
398
+ position: 'absolute',
399
+ bottom: '-24px'
400
+ }
401
+ }));
402
+ const Arrow = ({
403
+ children,
404
+ show,
405
+ width,
406
+ onClick,
407
+ left,
408
+ showLevelTagInput
409
+ }) => /*#__PURE__*/_react.default.createElement(StyledArrow, {
410
+ style: {
411
+ height: '-webkit-fill-available',
412
+ display: show ? 'flex' : 'none',
413
+ width: width,
414
+ left: left,
415
+ background: left ? `linear-gradient(to right, white, ${_renderUi.color.background()})` : undefined
416
+ },
417
+ onClick: onClick
418
+ }, /*#__PURE__*/_react.default.createElement(StyledInnerGrey, {
419
+ style: {
420
+ display: show ? 'flex' : 'none',
421
+ width: width,
422
+ height: showLevelTagInput ? HeaderHeightLarge : HeaderHeight,
423
+ left: 0,
424
+ background: left ? `linear-gradient(to right, ${_renderUi.color.secondaryBackground()}, ${_renderUi.color.background()})` : undefined
425
+ },
426
+ onClick: onClick
427
+ }, children));
428
+ exports.Arrow = Arrow;
429
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","names":["_react","_interopRequireDefault","require","_styles","_editableHtml","_Select","_MenuItem","_InputBase","_renderUi","_utils","_colors","InputHeight","BlockWidth","exports","PrimaryBlockWidth","DragHandleSpace","HeaderHeight","HeaderHeightLarge","greyBorder","grey","Padding","GlobalStyles","styled","theme","textAlign","flex","border","padding","borderLeft","borderRadius","background","palette","common","white","width","borderBottom","margin","marginTop","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","paddingBottom","SecondaryBlock","setRef","style","ref","Row","height","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","slateEditorExtraStyles","fontFamily","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","autoWidthToolbar","ScaleSettings","gap","StyledArrow","zIndex","right","StyledInnerGrey","bottom","Arrow","show","left","showLevelTagInput","undefined"],"sources":["../src/common.jsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\nimport EditableHtml from '@pie-lib/editable-html';\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 { filteredDefaultPlugins } from './utils';\nimport { grey } from '@mui/material/colors';\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 '& .editable-label': {\n textAlign: 'left',\n flex: 1,\n border: 'none',\n\n '& div': {\n padding: 0,\n border: 'none',\n },\n\n '& > div': {\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\n '& div': {\n padding: 0,\n border: 'none',\n },\n\n '& > div': {\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 },\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')(({ theme }) => ({\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')(({ theme }) => ({\n display: 'flex',\n overflowX: '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 slateEditorExtraStyles={{ fontFamily: 'Cerebri' }}\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 slateEditorExtraStyles={{ fontFamily: 'Cerebri' }}\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 slateEditorExtraStyles={{ fontFamily: 'Cerebri' }}\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 slateEditorExtraStyles={{\n fontFamily: 'Cerebri',\n height: InputHeight,\n padding: 0\n }}\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;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBA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G,UAAU,EAAE0G,IAAI,GAAG,oCAAoC3F,eAAK,CAACf,UAAU,CAAC,CAAC,GAAG,GAAG4G;EACjF,CAAE;EACFtF,OAAO,EAAEA;AAAQ,gBAEjBpD,MAAA,CAAAqD,OAAA,CAAAC,aAAA,CAAC8E,eAAe;EACdjE,KAAK,EAAE;IACL1B,OAAO,EAAE8F,IAAI,GAAG,MAAM,GAAG,MAAM;IAC/BrG,KAAK,EAAEA,KAAK;IACZoC,MAAM,EAAEmE,iBAAiB,GAAGxH,iBAAiB,GAAGD,YAAY;IAC5DwH,IAAI,EAAE,CAAC;IACP1G,UAAU,EAAE0G,IAAI,GACZ,6BAA6B3F,eAAK,CAACC,mBAAmB,CAAC,CAAC,KAAKD,eAAK,CAACf,UAAU,CAAC,CAAC,GAAG,GAClF4G;EACN,CAAE;EACFtF,OAAO,EAAEA;AAAQ,GAEhBD,QACc,CACN,CACd;AAACtC,OAAA,CAAAyH,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -0,0 +1,181 @@
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
+ audio: {
22
+ disabled: false
23
+ },
24
+ video: {
25
+ disabled: false
26
+ },
27
+ image: {
28
+ disabled: false
29
+ },
30
+ textAlign: {
31
+ disabled: true
32
+ },
33
+ showParagraphs: {
34
+ disabled: false
35
+ },
36
+ separateParagraphs: {
37
+ disabled: true
38
+ }
39
+ },
40
+ expandedInput: {
41
+ inputConfiguration: {
42
+ math: {
43
+ disabled: true
44
+ },
45
+ audio: {
46
+ disabled: false
47
+ },
48
+ video: {
49
+ disabled: false
50
+ },
51
+ image: {
52
+ disabled: false
53
+ }
54
+ }
55
+ },
56
+ labelInput: {
57
+ inputConfiguration: {
58
+ math: {
59
+ disabled: true
60
+ },
61
+ audio: {
62
+ disabled: true
63
+ },
64
+ video: {
65
+ disabled: true
66
+ },
67
+ image: {
68
+ disabled: true
69
+ }
70
+ }
71
+ },
72
+ excludeZeroDialogBoxContent: {
73
+ title: 'Exclude 0 (Zero) from Score Point Values.',
74
+ text: `<div>
75
+ You are about to exclude 0 from score point values.
76
+ <br/>
77
+ Some of the existing data has to be changed.
78
+ <br/>
79
+ Please choose if you want to:
80
+ <ul>
81
+ <li>
82
+ shift Labels and Descriptions to the left
83
+ </li>
84
+ <li>
85
+ remove 0 column with its Label and Description
86
+ </li>
87
+ </ul>
88
+ </div>`
89
+ },
90
+ includeZeroDialogBoxContent: {
91
+ title: 'Include 0 (Zero) in Score Point Values.',
92
+ text: `<div>
93
+ You are about to include 0 in score point values.
94
+ <br/>
95
+ Some of the existing data has to be changed.
96
+ <br/>
97
+ Please choose if you want to:
98
+ <ul>
99
+ <li>
100
+ shift Labels and Descriptions to the right
101
+ </li>
102
+ <li>
103
+ add 0 column with empty Label and Descriptions
104
+ </li>
105
+ </ul>
106
+ </div>`
107
+ },
108
+ deleteScaleDialogBoxContent: {
109
+ title: 'Delete Scale',
110
+ text: 'Are you sure you want to delete this scale?'
111
+ },
112
+ maxPointsDialogBoxContent: {
113
+ title: 'Decreasing Max Points.',
114
+ text: ` You are about to decrease max score point value.
115
+ <br/>
116
+ All the Labels and Descriptions for scores above Max Point will be deleted.`
117
+ },
118
+ settingsPanelDisabled: false,
119
+ spellCheck: {
120
+ label: 'Spellcheck',
121
+ settings: false,
122
+ enabled: true
123
+ },
124
+ showExcludeZero: {
125
+ settings: true,
126
+ label: 'Exclude Zero'
127
+ },
128
+ showScorePointLabels: {
129
+ settings: true,
130
+ label: 'Show Score Point Labels'
131
+ },
132
+ showDescription: {
133
+ settings: true,
134
+ label: 'Show Description'
135
+ },
136
+ showVisibleToStudent: {
137
+ settings: true,
138
+ label: 'Visible to Student'
139
+ },
140
+ showHalfScoring: {
141
+ settings: true,
142
+ label: 'Half Scoring'
143
+ },
144
+ // commenting this in order to use the dynamic width if the width was not set by the client (PD-3203)
145
+ // width: '900px',
146
+ // these should not be set to true (should not be used) for now
147
+ showStandards: {
148
+ settings: false,
149
+ label: 'Show Standards'
150
+ },
151
+ showLevelTagInput: {
152
+ settings: false,
153
+ label: 'Show Level Tag Input',
154
+ enabled: false
155
+ },
156
+ dragAndDrop: {
157
+ settings: true,
158
+ label: 'Enable Drag and Drop',
159
+ enabled: false
160
+ },
161
+ showMaxPoint: {
162
+ settings: true,
163
+ label: 'Show Max Points Dropdown'
164
+ },
165
+ addScale: {
166
+ settings: true,
167
+ label: 'Add Scale Available'
168
+ },
169
+ minNoOfTraits: 1,
170
+ maxNoOfTraits: 10,
171
+ minNoOfScales: 1,
172
+ maxNoOfScales: 10,
173
+ defaultTraitLabel: 'Trait',
174
+ mathMlOptions: {
175
+ mmlOutput: false,
176
+ mmlEditing: false
177
+ },
178
+ maxMaxPoints: 10
179
+ }
180
+ };
181
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","names":["model","addScaleEnabled","description","excludeZero","halfScoring","maxPointsEnabled","pointLabels","scales","standards","visibleToStudent","configuration","baseInputConfiguration","audio","disabled","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 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: {\n mmlOutput: false,\n mmlEditing: false,\n },\n maxMaxPoints: 10,\n },\n};\n"],"mappings":";;;;;;iCAAe;EACbA,KAAK,EAAE;IACLC,eAAe,EAAE,IAAI;IACrBC,WAAW,EAAE,KAAK;IAClBC,WAAW,EAAE,KAAK;IAClBC,WAAW,EAAE,KAAK;IAClBC,gBAAgB,EAAE,IAAI;IACtBC,WAAW,EAAE,IAAI;IACjBC,MAAM,EAAE,EAAE;IACVC,SAAS,EAAE,KAAK;IAChBC,gBAAgB,EAAE;EACpB,CAAC;EACDC,aAAa,EAAE;IACbC,sBAAsB,EAAE;MACtBC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAM,CAAC;MAC1BC,KAAK,EAAE;QAAED,QAAQ,EAAE;MAAM,CAAC;MAC1BE,KAAK,EAAE;QAAEF,QAAQ,EAAE;MAAM,CAAC;MAC1BG,SAAS,EAAE;QAAEH,QAAQ,EAAE;MAAK,CAAC;MAC7BI,cAAc,EAAE;QAAEJ,QAAQ,EAAE;MAAM,CAAC;MACnCK,kBAAkB,EAAE;QAAEL,QAAQ,EAAE;MAAK;IACvC,CAAC;IACDM,aAAa,EAAE;MACbC,kBAAkB,EAAE;QAClBC,IAAI,EAAE;UAAER,Q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