@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,87 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.filteredDefaultPlugins = exports.addOrRemoveScaleColumn = void 0;
7
- var _editableHtmlTipTap = require("@pie-lib/editable-html-tip-tap");
8
- var _modals = require("./modals");
9
- const filteredDefaultPlugins = exports.filteredDefaultPlugins = (_editableHtmlTipTap.DEFAULT_PLUGINS || []).filter(p => p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list');
10
- const addOrRemoveScaleColumn = (scales, excludeZeroType) => {
11
- if (!scales || !scales.length) {
12
- return [];
13
- }
14
- return scales.reduce((acc, scale) => {
15
- let {
16
- scorePointsLabels,
17
- traits
18
- } = scale || {};
19
- if (scorePointsLabels.length < 1) {
20
- return acc;
21
- }
22
- switch (excludeZeroType) {
23
- case _modals.excludeZeroTypes.remove0:
24
- {
25
- // removes column 0
26
- scorePointsLabels = scorePointsLabels.slice(1);
27
- traits = traits.map(({
28
- scorePointsDescriptors,
29
- ...trait
30
- }) => ({
31
- ...trait,
32
- scorePointsDescriptors: scorePointsDescriptors.slice(1)
33
- }));
34
- break;
35
- }
36
- case _modals.excludeZeroTypes.add0:
37
- {
38
- // adds empty column at start
39
- scorePointsLabels = ['', ...scorePointsLabels];
40
- traits = traits.map(({
41
- scorePointsDescriptors,
42
- ...trait
43
- }) => ({
44
- ...trait,
45
- scorePointsDescriptors: ['', ...scorePointsDescriptors]
46
- }));
47
- break;
48
- }
49
- case _modals.excludeZeroTypes.shiftLeft:
50
- {
51
- // removes last column
52
- scorePointsLabels = scorePointsLabels.slice(0, -1);
53
- traits = traits.map(({
54
- scorePointsDescriptors,
55
- ...trait
56
- }) => ({
57
- ...trait,
58
- scorePointsDescriptors: scorePointsDescriptors.slice(0, -1)
59
- }));
60
- break;
61
- }
62
- case _modals.excludeZeroTypes.shiftRight:
63
- {
64
- // adds empty column at end
65
- scorePointsLabels = [...scorePointsLabels, ''];
66
- traits = traits.map(({
67
- scorePointsDescriptors,
68
- ...trait
69
- }) => ({
70
- ...trait,
71
- scorePointsDescriptors: [...scorePointsDescriptors, '']
72
- }));
73
- break;
74
- }
75
- default:
76
- break;
77
- }
78
- acc.push({
79
- ...scale,
80
- scorePointsLabels,
81
- traits
82
- });
83
- return acc;
84
- }, []);
85
- };
86
- exports.addOrRemoveScaleColumn = addOrRemoveScaleColumn;
87
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","names":["_editableHtmlTipTap","require","_modals","filteredDefaultPlugins","exports","DEFAULT_PLUGINS","filter","p","addOrRemoveScaleColumn","scales","excludeZeroType","length","reduce","acc","scale","scorePointsLabels","traits","excludeZeroTypes","remove0","slice","map","scorePointsDescriptors","trait","add0","shiftLeft","shiftRight","push"],"sources":["../src/utils.js"],"sourcesContent":["import { DEFAULT_PLUGINS } from '@pie-lib/editable-html-tip-tap';\nimport { excludeZeroTypes } from './modals';\n\nexport const filteredDefaultPlugins = (DEFAULT_PLUGINS || []).filter(\n (p) => p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list',\n);\n\nexport const addOrRemoveScaleColumn = (scales, excludeZeroType) => {\n if (!scales || !scales.length) {\n return [];\n }\n\n return scales.reduce((acc, scale) => {\n let { scorePointsLabels, traits } = scale || {};\n\n if (scorePointsLabels.length < 1) {\n return acc;\n }\n\n switch (excludeZeroType) {\n case excludeZeroTypes.remove0: {\n // removes column 0\n scorePointsLabels = scorePointsLabels.slice(1);\n traits = traits.map(({ scorePointsDescriptors, ...trait }) => ({\n ...trait,\n scorePointsDescriptors: scorePointsDescriptors.slice(1),\n }));\n\n break;\n }\n\n case excludeZeroTypes.add0: {\n // adds empty column at start\n scorePointsLabels = ['', ...scorePointsLabels];\n traits = traits.map(({ scorePointsDescriptors, ...trait }) => ({\n ...trait,\n scorePointsDescriptors: ['', ...scorePointsDescriptors],\n }));\n\n break;\n }\n\n case excludeZeroTypes.shiftLeft: {\n // removes last column\n scorePointsLabels = scorePointsLabels.slice(0, -1);\n traits = traits.map(({ scorePointsDescriptors, ...trait }) => ({\n ...trait,\n scorePointsDescriptors: scorePointsDescriptors.slice(0, -1),\n }));\n\n break;\n }\n\n case excludeZeroTypes.shiftRight: {\n // adds empty column at end\n scorePointsLabels = [...scorePointsLabels, ''];\n traits = traits.map(({ scorePointsDescriptors, ...trait }) => ({\n ...trait,\n scorePointsDescriptors: [...scorePointsDescriptors, ''],\n }));\n\n break;\n }\n\n default:\n break;\n }\n\n acc.push({ ...scale, scorePointsLabels, traits });\n\n return acc;\n }, []);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEO,MAAME,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,CAACE,mCAAe,IAAI,EAAE,EAAEC,MAAM,CACjEC,CAAC,IAAKA,CAAC,KAAK,OAAO,IAAIA,CAAC,KAAK,eAAe,IAAIA,CAAC,KAAK,eACzD,CAAC;AAEM,MAAMC,sBAAsB,GAAGA,CAACC,MAAM,EAAEC,eAAe,KAAK;EACjE,IAAI,CAACD,MAAM,IAAI,CAACA,MAAM,CAACE,MAAM,EAAE;IAC7B,OAAO,EAAE;EACX;EAEA,OAAOF,MAAM,CAACG,MAAM,CAAC,CAACC,GAAG,EAAEC,KAAK,KAAK;IACnC,IAAI;MAAEC,iBAAiB;MAAEC;IAAO,CAAC,GAAGF,KAAK,IAAI,CAAC,CAAC;IAE/C,IAAIC,iBAAiB,CAACJ,MAAM,GAAG,CAAC,EAAE;MAChC,OAAOE,GAAG;IACZ;IAEA,QAAQH,eAAe;MACrB,KAAKO,wBAAgB,CAACC,OAAO;QAAE;UAC7B;UACAH,iBAAiB,GAAGA,iBAAiB,CAACI,KAAK,CAAC,CAAC,CAAC;UAC9CH,MAAM,GAAGA,MAAM,CAACI,GAAG,CAAC,CAAC;YAAEC,sBAAsB;YAAE,GAAGC;UAAM,CAAC,MAAM;YAC7D,GAAGA,KAAK;YACRD,sBAAsB,EAAEA,sBAAsB,CAACF,KAAK,CAAC,CAAC;UACxD,CAAC,CAAC,CAAC;UAEH;QACF;MAEA,KAAKF,wBAAgB,CAACM,IAAI;QAAE;UAC1B;UACAR,iBAAiB,GAAG,CAAC,EAAE,EAAE,GAAGA,iBAAiB,CAAC;UAC9CC,MAAM,GAAGA,MAAM,CAACI,GAAG,CAAC,CAAC;YAAEC,sBAAsB;YAAE,GAAGC;UAAM,CAAC,MAAM;YAC7D,GAAGA,KAAK;YACRD,sBAAsB,EAAE,CAAC,EAAE,EAAE,GAAGA,sBAAsB;UACxD,CAAC,CAAC,CAAC;UAEH;QACF;MAEA,KAAKJ,wBAAgB,CAACO,SAAS;QAAE;UAC/B;UACAT,iBAAiB,GAAGA,iBAAiB,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;UAClDH,MAAM,GAAGA,MAAM,CAACI,GAAG,CAAC,CAAC;YAAEC,sBAAsB;YAAE,GAAGC;UAAM,CAAC,MAAM;YAC7D,GAAGA,KAAK;YACRD,sBAAsB,EAAEA,sBAAsB,CAACF,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;UAC5D,CAAC,CAAC,CAAC;UAEH;QACF;MAEA,KAAKF,wBAAgB,CAACQ,UAAU;QAAE;UAChC;UACAV,iBAAiB,GAAG,CAAC,GAAGA,iBAAiB,EAAE,EAAE,CAAC;UAC9CC,MAAM,GAAGA,MAAM,CAACI,GAAG,CAAC,CAAC;YAAEC,sBAAsB;YAAE,GAAGC;UAAM,CAAC,MAAM;YAC7D,GAAGA,KAAK;YACRD,sBAAsB,EAAE,CAAC,GAAGA,sBAAsB,EAAE,EAAE;UACxD,CAAC,CAAC,CAAC;UAEH;QACF;MAEA;QACE;IACJ;IAEAR,GAAG,CAACa,IAAI,CAAC;MAAE,GAAGZ,KAAK;MAAEC,iBAAiB;MAAEC;IAAO,CAAC,CAAC;IAEjD,OAAOH,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAACT,OAAA,CAAAI,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -1,24 +0,0 @@
1
- {
2
- "name": "@pie-element/multi-trait-rubric-configure",
3
- "version": "7.1.1",
4
- "private": true,
5
- "main": "lib/index.js",
6
- "module": "src/index.js",
7
- "dependencies": {
8
- "@dnd-kit/core": "6.3.1",
9
- "@emotion/react": "^11.14.0",
10
- "@emotion/style": "^0.8.0",
11
- "@mui/icons-material": "^7.3.4",
12
- "@mui/material": "^7.3.4",
13
- "@pie-framework/pie-configure-events": "^1.3.0",
14
- "@pie-lib/config-ui": "13.0.4",
15
- "@pie-lib/drag": "4.0.2",
16
- "@pie-lib/editable-html-tip-tap": "2.1.2",
17
- "@pie-lib/render-ui": "6.1.0",
18
- "debug": "^4.1.1",
19
- "lodash-es": "^4.17.23",
20
- "prop-types": "^15.6.2",
21
- "react": "18.3.1",
22
- "react-dom": "18.3.1"
23
- }
24
- }
@@ -1 +0,0 @@
1
- []