@pie-element/multi-trait-rubric 8.1.0-next.28 → 8.1.1-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.
- package/dist/author/common.d.ts +90 -0
- package/dist/author/common.js +275 -0
- package/dist/author/defaults.d.ts +153 -0
- package/dist/author/defaults.js +113 -0
- package/dist/author/index.d.ts +22 -0
- package/dist/author/index.js +89 -0
- package/dist/author/main.d.ts +43 -0
- package/dist/author/main.js +249 -0
- package/dist/author/modals.d.ts +94 -0
- package/dist/author/modals.js +171 -0
- package/dist/author/scale.d.ts +46 -0
- package/dist/author/scale.js +280 -0
- package/dist/author/trait.d.ts +70 -0
- package/dist/author/trait.js +202 -0
- package/dist/author/traitsHeader.d.ts +28 -0
- package/dist/author/traitsHeader.js +172 -0
- package/dist/author/utils.d.ts +10 -0
- package/dist/author/utils.js +41 -0
- package/dist/controller/defaults.d.ts +20 -0
- package/dist/controller/defaults.js +14 -0
- package/dist/controller/index.d.ts +26 -0
- package/dist/controller/index.js +57 -0
- package/dist/controller/utils.d.ts +9 -0
- package/dist/controller/utils.js +4 -0
- package/dist/delivery/index.d.ts +17 -0
- package/dist/delivery/index.js +37 -0
- package/dist/delivery/main.d.ts +15 -0
- package/dist/delivery/main.js +95 -0
- package/dist/delivery/scale.d.ts +17 -0
- package/dist/delivery/scale.js +175 -0
- package/dist/delivery/trait.d.ts +27 -0
- package/dist/delivery/trait.js +44 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +145 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/package.json +58 -16
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -1572
- package/LICENSE.md +0 -5
- package/README.md +0 -55
- package/configure/CHANGELOG.json +0 -1
- package/configure/CHANGELOG.md +0 -1467
- package/configure/lib/common.js +0 -424
- package/configure/lib/common.js.map +0 -1
- package/configure/lib/defaults.js +0 -184
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -157
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -454
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/modals.js +0 -206
- package/configure/lib/modals.js.map +0 -1
- package/configure/lib/scale.js +0 -478
- package/configure/lib/scale.js.map +0 -1
- package/configure/lib/trait.js +0 -275
- package/configure/lib/trait.js.map +0 -1
- package/configure/lib/traitsHeader.js +0 -235
- package/configure/lib/traitsHeader.js.map +0 -1
- package/configure/lib/utils.js +0 -87
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -24
- package/controller/CHANGELOG.json +0 -1
- package/controller/CHANGELOG.md +0 -903
- package/controller/lib/defaults.js +0 -18
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -158
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/utils.js +0 -11
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -14
- package/docs/config-schema.json +0 -1628
- package/docs/config-schema.json.md +0 -1202
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -117
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -6
- package/docs/pie-schema.json +0 -861
- package/docs/pie-schema.json.md +0 -614
- package/lib/index.js +0 -54
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -123
- package/lib/main.js.map +0 -1
- package/lib/scale.js +0 -248
- package/lib/scale.js.map +0 -1
- package/lib/trait.js +0 -83
- package/lib/trait.js.map +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { Block as e, HeaderHeight as t, HeaderHeightLarge as n, MaxPointsPicker as r, ScaleSettings as i, ScorePoint as a, SecondaryBlock as o, SimpleInput as s } from "./common.js";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import l from "prop-types";
|
|
4
|
+
import { styled as u } from "@mui/material/styles";
|
|
5
|
+
import * as d from "@pie-lib/render-ui";
|
|
6
|
+
import { InlineMenu as f, color as p } from "@pie-lib/render-ui";
|
|
7
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
import g from "@mui/material/IconButton";
|
|
9
|
+
import _ from "@mui/material/MenuItem";
|
|
10
|
+
import v from "@mui/icons-material/MoreVert";
|
|
11
|
+
//#region src/author/traitsHeader.tsx
|
|
12
|
+
function y(e) {
|
|
13
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
14
|
+
}
|
|
15
|
+
function b(e, t) {
|
|
16
|
+
return !e || y(e) ? e : y(e.default) ? e.default : t && y(e[t]) ? e[t] : t && y(e[t]?.default) ? e[t].default : e;
|
|
17
|
+
}
|
|
18
|
+
var x = b(f, "InlineMenu") || b(w.InlineMenu, "InlineMenu"), S = d, C = S.default, w = C && typeof C == "object" ? C : S, T = u("div")({
|
|
19
|
+
width: "140px",
|
|
20
|
+
border: "none",
|
|
21
|
+
padding: "10px 0",
|
|
22
|
+
display: "flex",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
justifyContent: "space-around"
|
|
25
|
+
}), E = u("div")(({ height: e, theme: t }) => ({
|
|
26
|
+
background: p.secondaryBackground(),
|
|
27
|
+
borderRadius: "4px",
|
|
28
|
+
position: "relative",
|
|
29
|
+
marginBottom: t.spacing(2),
|
|
30
|
+
display: "flex",
|
|
31
|
+
height: e
|
|
32
|
+
})), D = u("div")(({ theme: e }) => ({
|
|
33
|
+
width: "200px",
|
|
34
|
+
minWidth: "200px",
|
|
35
|
+
position: "relative",
|
|
36
|
+
padding: "0 10px",
|
|
37
|
+
boxSizing: "border-box",
|
|
38
|
+
paddingTop: e.spacing(1.5),
|
|
39
|
+
alignSelf: "center"
|
|
40
|
+
})), O = u("div")(({ theme: e }) => ({
|
|
41
|
+
position: "absolute",
|
|
42
|
+
fontSize: e.typography.fontSize - 2,
|
|
43
|
+
color: e.palette.error.main,
|
|
44
|
+
paddingTop: e.spacing(.5)
|
|
45
|
+
})), k = class extends c.Component {
|
|
46
|
+
static propTypes = {
|
|
47
|
+
maxPointsEnabled: l.bool,
|
|
48
|
+
spellCheck: l.bool,
|
|
49
|
+
errors: l.object
|
|
50
|
+
};
|
|
51
|
+
state = { anchorEl: null };
|
|
52
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
53
|
+
e.currentPosition !== this.props.currentPosition && this.scrollToPosition(e.currentPosition);
|
|
54
|
+
}
|
|
55
|
+
onScorePointLabelChange = ({ scorePointLabel: e, value: t }) => {
|
|
56
|
+
let { scorePointsLabels: n, onScaleChange: r } = this.props;
|
|
57
|
+
t < 0 || t >= n.length || (n[t] = e, r({ scorePointsLabels: n }));
|
|
58
|
+
};
|
|
59
|
+
handleClick = (e) => this.setState({ anchorEl: e.currentTarget });
|
|
60
|
+
handleClose = () => this.setState({ anchorEl: null });
|
|
61
|
+
scrollToPosition = (e) => {
|
|
62
|
+
this.secondaryBlock && this.secondaryBlock.scrollTo({ left: e });
|
|
63
|
+
};
|
|
64
|
+
openMenu = () => {
|
|
65
|
+
this.props.showDeleteScaleModal(), this.handleClose();
|
|
66
|
+
};
|
|
67
|
+
render() {
|
|
68
|
+
let { scorePointsValues: c, scorePointsLabels: l, traitLabel: u, currentPosition: d, showStandards: f, onTraitLabelChange: p, showDescription: y, showLevelTagInput: b, maxPoints: S, updateMaxPointsFieldValue: C, scaleIndex: w, showScorePointLabels: k, secondaryBlockWidth: A, setSecondaryBlockRef: j, spellCheck: M, uploadSoundSupport: N, maxPointsEnabled: P, mathMlOptions: F = {}, errors: I = {}, maxMaxPoints: L, labelPluginProps: R = {}, imageSupport: z = {} } = this.props, { anchorEl: B } = this.state;
|
|
69
|
+
return /* @__PURE__ */ h(E, {
|
|
70
|
+
height: b ? n : t,
|
|
71
|
+
children: [/* @__PURE__ */ h(D, { children: [b && /* @__PURE__ */ m(s, {
|
|
72
|
+
markup: u || "Trait",
|
|
73
|
+
onChange: p,
|
|
74
|
+
pluginProps: R,
|
|
75
|
+
spellCheck: M,
|
|
76
|
+
label: "Level Label",
|
|
77
|
+
uploadSoundSupport: N,
|
|
78
|
+
mathMlOptions: F,
|
|
79
|
+
imageSupport: z
|
|
80
|
+
}), /* @__PURE__ */ h(i, { children: [
|
|
81
|
+
/* @__PURE__ */ h("div", { children: ["Scale ", w + 1] }),
|
|
82
|
+
P && /* @__PURE__ */ m(r, {
|
|
83
|
+
maxPoints: S,
|
|
84
|
+
maxMaxPoints: L,
|
|
85
|
+
onChange: C
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m(g, {
|
|
88
|
+
"aria-label": "more",
|
|
89
|
+
"aria-controls": "long-menu",
|
|
90
|
+
"aria-haspopup": "true",
|
|
91
|
+
onClick: this.handleClick,
|
|
92
|
+
size: "large",
|
|
93
|
+
children: /* @__PURE__ */ m(v, {})
|
|
94
|
+
}), /* @__PURE__ */ m(x, {
|
|
95
|
+
id: "long-menu",
|
|
96
|
+
anchorEl: B,
|
|
97
|
+
keepMounted: !0,
|
|
98
|
+
open: !!B,
|
|
99
|
+
onClose: this.handleClose,
|
|
100
|
+
transitionDuration: {
|
|
101
|
+
enter: 225,
|
|
102
|
+
exit: 195
|
|
103
|
+
},
|
|
104
|
+
children: ["Remove Scale"].map((e) => /* @__PURE__ */ m(_, {
|
|
105
|
+
onClick: this.openMenu,
|
|
106
|
+
children: e
|
|
107
|
+
}, e))
|
|
108
|
+
})] })
|
|
109
|
+
] })] }), /* @__PURE__ */ h(o, {
|
|
110
|
+
setRef: (e) => {
|
|
111
|
+
e && (this.secondaryBlock = e, j(e));
|
|
112
|
+
},
|
|
113
|
+
width: `${A}px`,
|
|
114
|
+
children: [
|
|
115
|
+
f && /* @__PURE__ */ m(e, { children: /* @__PURE__ */ m(T, { children: "Standard(s)" }) }),
|
|
116
|
+
y && /* @__PURE__ */ m(e, { children: /* @__PURE__ */ m(T, { children: "Description" }) }),
|
|
117
|
+
c.map((t, n) => {
|
|
118
|
+
let r = A - 216 * n + d - 128, i = c.length - n - 1, o, s;
|
|
119
|
+
try {
|
|
120
|
+
o = l[i] || "", s = I[i] || "";
|
|
121
|
+
} catch {
|
|
122
|
+
o = "";
|
|
123
|
+
}
|
|
124
|
+
return /* @__PURE__ */ h(e, { children: [/* @__PURE__ */ m(a, {
|
|
125
|
+
scorePointsValue: t,
|
|
126
|
+
error: s,
|
|
127
|
+
scoreDescriptor: o,
|
|
128
|
+
pluginProps: R,
|
|
129
|
+
showScorePointLabels: k,
|
|
130
|
+
onChange: (e) => this.onScorePointLabelChange({
|
|
131
|
+
scorePointLabel: e,
|
|
132
|
+
value: i
|
|
133
|
+
}),
|
|
134
|
+
alignToRight: r < 296 && t < S,
|
|
135
|
+
spellCheck: M,
|
|
136
|
+
uploadSoundSupport: N,
|
|
137
|
+
mathMlOptions: F,
|
|
138
|
+
imageSupport: z
|
|
139
|
+
}), s && /* @__PURE__ */ m(O, { children: s })] }, `secondary-block-part-${n}`);
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
k.propTypes = {
|
|
147
|
+
onTraitLabelChange: l.func,
|
|
148
|
+
onScaleChange: l.func,
|
|
149
|
+
scorePointsValues: l.arrayOf(l.number),
|
|
150
|
+
scorePointsLabels: l.arrayOf(l.string),
|
|
151
|
+
traitLabel: l.string,
|
|
152
|
+
showStandards: l.bool,
|
|
153
|
+
showLevelTagInput: l.bool,
|
|
154
|
+
showDescription: l.bool,
|
|
155
|
+
maxPoints: l.number,
|
|
156
|
+
updateMaxPointsFieldValue: l.func,
|
|
157
|
+
scaleIndex: l.number,
|
|
158
|
+
currentPosition: l.number,
|
|
159
|
+
secondaryBlockWidth: l.number,
|
|
160
|
+
showDeleteScaleModal: l.func,
|
|
161
|
+
showScorePointLabels: l.bool,
|
|
162
|
+
setSecondaryBlockRef: l.func,
|
|
163
|
+
uploadSoundSupport: l.object,
|
|
164
|
+
maxMaxPoints: l.number,
|
|
165
|
+
labelPluginProps: l.object,
|
|
166
|
+
imageSupport: l.shape({
|
|
167
|
+
add: l.func.isRequired,
|
|
168
|
+
delete: l.func.isRequired
|
|
169
|
+
})
|
|
170
|
+
};
|
|
171
|
+
//#endregion
|
|
172
|
+
export { k as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/configure/src/utils.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const filteredDefaultPlugins: string[];
|
|
10
|
+
export declare const addOrRemoveScaleColumn: (scales: any, excludeZeroType: any) => any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { excludeZeroTypes as e } from "./modals.js";
|
|
2
|
+
import { DEFAULT_PLUGINS as t } from "@pie-lib/editable-html-tip-tap";
|
|
3
|
+
//#region src/author/utils.ts
|
|
4
|
+
var n = (t || []).filter((e) => e !== "table" && e !== "bulleted-list" && e !== "numbered-list"), r = (t, n) => !t || !t.length ? [] : t.reduce((t, r) => {
|
|
5
|
+
let { scorePointsLabels: i, traits: a } = r || {};
|
|
6
|
+
if (i.length < 1) return t;
|
|
7
|
+
switch (n) {
|
|
8
|
+
case e.remove0:
|
|
9
|
+
i = i.slice(1), a = a.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
10
|
+
...t,
|
|
11
|
+
scorePointsDescriptors: e.slice(1)
|
|
12
|
+
}));
|
|
13
|
+
break;
|
|
14
|
+
case e.add0:
|
|
15
|
+
i = ["", ...i], a = a.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
16
|
+
...t,
|
|
17
|
+
scorePointsDescriptors: ["", ...e]
|
|
18
|
+
}));
|
|
19
|
+
break;
|
|
20
|
+
case e.shiftLeft:
|
|
21
|
+
i = i.slice(0, -1), a = a.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
22
|
+
...t,
|
|
23
|
+
scorePointsDescriptors: e.slice(0, -1)
|
|
24
|
+
}));
|
|
25
|
+
break;
|
|
26
|
+
case e.shiftRight:
|
|
27
|
+
i = [...i, ""], a = a.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
28
|
+
...t,
|
|
29
|
+
scorePointsDescriptors: [...e, ""]
|
|
30
|
+
}));
|
|
31
|
+
break;
|
|
32
|
+
default: break;
|
|
33
|
+
}
|
|
34
|
+
return t.push({
|
|
35
|
+
...r,
|
|
36
|
+
scorePointsLabels: i,
|
|
37
|
+
traits: a
|
|
38
|
+
}), t;
|
|
39
|
+
}, []);
|
|
40
|
+
//#endregion
|
|
41
|
+
export { r as addOrRemoveScaleColumn, n as filteredDefaultPlugins };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/controller/src/defaults.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: {
|
|
10
|
+
addScaleEnabled: boolean;
|
|
11
|
+
description: boolean;
|
|
12
|
+
excludeZero: boolean;
|
|
13
|
+
halfScoring: boolean;
|
|
14
|
+
maxPointsEnabled: boolean;
|
|
15
|
+
pointLabels: boolean;
|
|
16
|
+
scales: never[];
|
|
17
|
+
standards: boolean;
|
|
18
|
+
visibleToStudent: boolean;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/controller/defaults.ts
|
|
2
|
+
var e = {
|
|
3
|
+
addScaleEnabled: !0,
|
|
4
|
+
description: !1,
|
|
5
|
+
excludeZero: !1,
|
|
6
|
+
halfScoring: !1,
|
|
7
|
+
maxPointsEnabled: !0,
|
|
8
|
+
pointLabels: !0,
|
|
9
|
+
scales: [],
|
|
10
|
+
standards: !1,
|
|
11
|
+
visibleToStudent: !0
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/controller/src/index.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createDefaultModel(model?: {}): Promise<unknown>;
|
|
10
|
+
export declare const normalize: (question: any) => any;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param {*} question
|
|
14
|
+
* @param {*} session
|
|
15
|
+
* @param {*} env
|
|
16
|
+
*/
|
|
17
|
+
export declare function model(question: any, session: any, env: any): Promise<any>;
|
|
18
|
+
export declare const getScore: () => number;
|
|
19
|
+
/**
|
|
20
|
+
* @param {Object} model - the main model
|
|
21
|
+
* @param {*} session
|
|
22
|
+
* @param {Object} env
|
|
23
|
+
*/
|
|
24
|
+
export declare function outcome(): Promise<unknown>;
|
|
25
|
+
export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
|
|
26
|
+
export declare const validate: (model: any, config: any) => {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import e from "./defaults.js";
|
|
2
|
+
import { markupToText as t } from "./utils.js";
|
|
3
|
+
//#region src/controller/index.ts
|
|
4
|
+
function n(t = {}) {
|
|
5
|
+
return new Promise((n) => n({
|
|
6
|
+
...e,
|
|
7
|
+
...t
|
|
8
|
+
}));
|
|
9
|
+
}
|
|
10
|
+
var r = (t) => ({
|
|
11
|
+
...e,
|
|
12
|
+
...t
|
|
13
|
+
});
|
|
14
|
+
async function i(e, t, n) {
|
|
15
|
+
let i = r(e);
|
|
16
|
+
!n.role || n.role === "student" ? i.visible = i.visibleToStudent : i.visible = !0;
|
|
17
|
+
let { scales: a, excludeZero: o } = i || {}, s = (a || []).map((e) => ({
|
|
18
|
+
...e,
|
|
19
|
+
excludeZero: o
|
|
20
|
+
}));
|
|
21
|
+
return {
|
|
22
|
+
...i,
|
|
23
|
+
scales: s
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
var a = () => 0;
|
|
27
|
+
function o() {
|
|
28
|
+
return new Promise((e) => e({
|
|
29
|
+
score: 0,
|
|
30
|
+
empty: !0
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
var s = (e, t) => new Promise((e) => {
|
|
34
|
+
t.mode !== "evaluate" && t.role === "instructor" ? e({ id: "1" }) : e(null);
|
|
35
|
+
}), c = (e, n) => {
|
|
36
|
+
let { scales: r, description: i = !1, pointLabels: a = !1 } = e, o = {}, s = {}, c = {};
|
|
37
|
+
return (r || []).forEach((e, n) => {
|
|
38
|
+
let { traits: r = [] } = e, { scorePointsLabels: o = [] } = e, l = {}, u = {};
|
|
39
|
+
a && o.forEach((e, n) => {
|
|
40
|
+
!e || e === "<div></div>" ? u[n] = "Points labels should not be empty." : o.slice(n + 1).some((n) => t(n) === t(e)) && (u[n] = "Points labels should be unique.");
|
|
41
|
+
}), Object.keys(u).length > 0 && (c[n] = u), r.forEach((e, n) => {
|
|
42
|
+
if (!e.name || e.name === "<div></div>" ? l[n] = { name: "Trait names should not be empty." } : r.slice(n + 1).some((n) => t(n.name) === t(e.name)) && (l[n] = { name: "Trait names should be unique." }), i && (!e.description || e.description === "<div></div>")) l[n] = {
|
|
43
|
+
...l[n],
|
|
44
|
+
description: "Trait description should not be empty"
|
|
45
|
+
};
|
|
46
|
+
else {
|
|
47
|
+
let a = r.slice(n + 1).some((n) => t(n.description) === t(e.description));
|
|
48
|
+
i && a && (l[n] = {
|
|
49
|
+
...l[n],
|
|
50
|
+
description: "Trait descriptions should be unique."
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}), Object.keys(l).length > 0 && (s[n] = l);
|
|
54
|
+
}), Object.keys(s).length > 0 && (o.traitsErrors = s), Object.keys(c).length > 0 && (o.scorePointsErrors = c), o;
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { s as createCorrectResponseSession, n as createDefaultModel, a as getScore, i as model, r as normalize, o as outcome, c as validate };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/controller/src/utils.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const markupToText: (s: any) => any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/src/index.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export default class MultiTraitRubric extends HTMLElement {
|
|
10
|
+
constructor();
|
|
11
|
+
set model(s: any);
|
|
12
|
+
set session(s: any);
|
|
13
|
+
get session(): any;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
_render(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import e from "./main.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import { createRoot as n } from "react-dom/client";
|
|
4
|
+
import { ModelSetEvent as r } from "@pie-element/shared-player-events";
|
|
5
|
+
import { renderMath as i } from "@pie-element/shared-math-rendering-mathjax";
|
|
6
|
+
//#region src/delivery/index.ts
|
|
7
|
+
var a = class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(), this._model = {}, this._session = null, this._root = null;
|
|
10
|
+
}
|
|
11
|
+
set model(e) {
|
|
12
|
+
this._model = e, this.dispatchEvent(new r(this.tagName.toLowerCase(), this._session, !!this._model)), this._render();
|
|
13
|
+
}
|
|
14
|
+
set session(e) {
|
|
15
|
+
this._session = e;
|
|
16
|
+
}
|
|
17
|
+
get session() {
|
|
18
|
+
return this._session;
|
|
19
|
+
}
|
|
20
|
+
connectedCallback() {
|
|
21
|
+
this._render();
|
|
22
|
+
}
|
|
23
|
+
_render() {
|
|
24
|
+
let r = t.createElement(e, {
|
|
25
|
+
model: this._model,
|
|
26
|
+
session: this._session
|
|
27
|
+
});
|
|
28
|
+
this._root ||= n(this), this._root.render(r), queueMicrotask(() => {
|
|
29
|
+
i(this);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
disconnectedCallback() {
|
|
33
|
+
this._root && this._root.unmount();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/src/main.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
declare class Main extends React.Component {
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
toggleRubric(): void;
|
|
13
|
+
render(): React.JSX.Element | null;
|
|
14
|
+
}
|
|
15
|
+
export default Main;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import e from "./scale.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import * as r from "@pie-lib/render-ui";
|
|
5
|
+
import { UiLayout as i, color as a } from "@pie-lib/render-ui";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import c from "@mui/material/Link";
|
|
8
|
+
import l from "@mui/material/Collapse";
|
|
9
|
+
//#region src/delivery/main.tsx
|
|
10
|
+
function u(e) {
|
|
11
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
12
|
+
}
|
|
13
|
+
function d(e, t) {
|
|
14
|
+
return !e || u(e) ? e : u(e.default) ? e.default : t && u(e[t]) ? e[t] : t && u(e[t]?.default) ? e[t].default : e;
|
|
15
|
+
}
|
|
16
|
+
var f = d(i, "UiLayout") || d(h.UiLayout, "UiLayout"), p = r, m = p.default, h = m && typeof m == "object" ? m : p, g = class extends t.Component {
|
|
17
|
+
constructor(e) {
|
|
18
|
+
super(e), this.state = {
|
|
19
|
+
rubricOpen: !1,
|
|
20
|
+
linkPrefix: "Show"
|
|
21
|
+
}, this.toggleRubric = this.toggleRubric.bind(this);
|
|
22
|
+
}
|
|
23
|
+
toggleRubric() {
|
|
24
|
+
this.setState({ rubricOpen: !this.state.rubricOpen }), this.setState({ linkPrefix: this.state.rubricOpen ? "Show" : "Hide" });
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
let { model: t } = this.props, { animationsDisabled: n } = this.props, { extraCSSRules: r, halfScoring: i, scales: u, visible: d, pointLabels: p, description: m, standards: h, arrowsDisabled: g } = t || {};
|
|
28
|
+
if (n ||= t.animationsDisabled, !u || !d) return null;
|
|
29
|
+
let _ = /* @__PURE__ */ s(f, {
|
|
30
|
+
extraCSSRules: r,
|
|
31
|
+
style: {
|
|
32
|
+
fontFamily: "Cerebri Sans",
|
|
33
|
+
color: a.text(),
|
|
34
|
+
backgroundColor: a.background()
|
|
35
|
+
},
|
|
36
|
+
children: [i ? /* @__PURE__ */ o("div", {
|
|
37
|
+
style: { marginBottom: "16px" },
|
|
38
|
+
children: "* Half-point or in-between scores are permitted under this rubric."
|
|
39
|
+
}) : null, u.map((t, n) => /* @__PURE__ */ o(e, {
|
|
40
|
+
scale: t,
|
|
41
|
+
scaleIndex: n,
|
|
42
|
+
showPointsLabels: p,
|
|
43
|
+
showDescription: m,
|
|
44
|
+
showStandards: h,
|
|
45
|
+
arrowsDisabled: g
|
|
46
|
+
}, `scale_${n}`))]
|
|
47
|
+
});
|
|
48
|
+
return n ? _ : /* @__PURE__ */ s(f, {
|
|
49
|
+
extraCSSRules: r,
|
|
50
|
+
style: {
|
|
51
|
+
color: a.text(),
|
|
52
|
+
backgroundColor: a.background()
|
|
53
|
+
},
|
|
54
|
+
children: [/* @__PURE__ */ s(c, {
|
|
55
|
+
style: { backgroundColor: a.background() },
|
|
56
|
+
href: this.dudUrl,
|
|
57
|
+
onClick: this.toggleRubric,
|
|
58
|
+
children: [this.state.linkPrefix, " Rubric"]
|
|
59
|
+
}), /* @__PURE__ */ o(l, {
|
|
60
|
+
style: { marginTop: "16px" },
|
|
61
|
+
in: this.state.rubricOpen,
|
|
62
|
+
timeout: {
|
|
63
|
+
enter: 225,
|
|
64
|
+
exit: 195
|
|
65
|
+
},
|
|
66
|
+
children: _
|
|
67
|
+
})]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
g.propTypes = {
|
|
72
|
+
model: n.shape({
|
|
73
|
+
halfScoring: n.bool,
|
|
74
|
+
scales: n.arrayOf(n.shape({
|
|
75
|
+
excludeZero: n.bool,
|
|
76
|
+
maxPoints: n.number,
|
|
77
|
+
scorePointsLabels: n.arrayOf(n.string),
|
|
78
|
+
traitLabel: n.string,
|
|
79
|
+
traits: n.arrayOf(n.shape({
|
|
80
|
+
name: n.string,
|
|
81
|
+
description: n.string,
|
|
82
|
+
scorePointsDescriptors: n.arrayOf(n.string),
|
|
83
|
+
standards: n.arrayOf(n.string)
|
|
84
|
+
}))
|
|
85
|
+
})),
|
|
86
|
+
visible: n.bool,
|
|
87
|
+
pointLabels: n.bool,
|
|
88
|
+
description: n.bool,
|
|
89
|
+
standards: n.bool,
|
|
90
|
+
animationsDisabled: n.bool
|
|
91
|
+
}),
|
|
92
|
+
animationsDisabled: n.bool
|
|
93
|
+
};
|
|
94
|
+
//#endregion
|
|
95
|
+
export { g as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/src/scale.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
declare class Scale extends React.Component {
|
|
11
|
+
state: {};
|
|
12
|
+
componentDidMount(): void;
|
|
13
|
+
scrollLeft: any;
|
|
14
|
+
scrollRight: any;
|
|
15
|
+
render(): React.JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export default Scale;
|