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