@pie-element/complex-rubric 8.0.5 → 8.0.6-next.20261016234357
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/browser/author/index.js +396 -396
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/{delivery-eZHoGXAp.js → delivery-BnHxvBNO.js} +133 -133
- package/dist/browser/{delivery-eZHoGXAp.js.map → delivery-BnHxvBNO.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +391 -391
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{delivery-vKkTjgx9.js → delivery-Bkswcpxm.js} +133 -133
- package/dist/browser/editor-runtime/{delivery-vKkTjgx9.js.map → delivery-Bkswcpxm.js.map} +1 -1
- package/dist/browser/editor-runtime/es-BkpdVdfR.js +10 -0
- package/dist/browser/editor-runtime/es-BkpdVdfR.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +3 -3
- package/dist/browser/editor-runtime/{private-tags-CNhT1Zvh.js → private-tags-2FwEvwyH.js} +4747 -4464
- package/dist/browser/editor-runtime/private-tags-2FwEvwyH.js.map +1 -0
- package/dist/browser/es-BkpdVdfR.js +10 -0
- package/dist/browser/es-BkpdVdfR.js.map +1 -0
- package/dist/browser/print/index.js +3 -3
- package/dist/browser/{private-tags-CfVJZ3PT.js → private-tags-D1wknPkj.js} +4747 -4464
- package/dist/browser/private-tags-D1wknPkj.js.map +1 -0
- package/dist/index.iife.js +32 -32
- package/dist/private-tags.js +1 -1
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/module/print.js +7099 -6806
- package/module/print.js.map +1 -1
- package/package.json +11 -11
- package/dist/browser/editor-runtime/private-tags-CNhT1Zvh.js.map +0 -1
- package/dist/browser/private-tags-CfVJZ3PT.js.map +0 -1
|
@@ -140,7 +140,7 @@ var f = (e, t) => new Promise((e) => {
|
|
|
140
140
|
return s;
|
|
141
141
|
}, g = Object.freeze({
|
|
142
142
|
name: "@pie-element/complex-rubric",
|
|
143
|
-
version: "8.0.
|
|
143
|
+
version: "8.0.6-next.20261016234357"
|
|
144
144
|
});
|
|
145
145
|
//#endregion
|
|
146
146
|
export { f as createCorrectResponseSession, s as createDefaultModel, u as getScore, l as model, c as normalize, d as outcome, g as piePackage, h as validate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, a as t, i as n, n as r } from "../private-tags-
|
|
2
|
-
import { n as i, t as a } from "../delivery-
|
|
1
|
+
import { A as e, a as t, i as n, n as r } from "../private-tags-2FwEvwyH.js";
|
|
2
|
+
import { n as i, t as a } from "../delivery-Bkswcpxm.js";
|
|
3
3
|
//#region src/delivery/index.ts
|
|
4
4
|
var o = n, s = r, c = class extends i {}, l = class extends a {};
|
|
5
5
|
customElements.get(o) || customElements.define(o, c), customElements.get(s) || customElements.define(s, l);
|
|
@@ -92,7 +92,7 @@ var u = class extends HTMLElement {
|
|
|
92
92
|
}
|
|
93
93
|
}, d = Object.freeze({
|
|
94
94
|
name: "@pie-element/complex-rubric",
|
|
95
|
-
version: "8.0.
|
|
95
|
+
version: "8.0.6-next.20261016234357"
|
|
96
96
|
});
|
|
97
97
|
//#endregion
|
|
98
98
|
export { u as default, d as piePackage };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { h as e } from "./speech-worker-CTpOB9m5-pwCKeQ9c.js";
|
|
2
|
-
import { $ as t, A as n, At as r, B as i, Dt as a, E as o, H as s, Nt as c, Ot as l, St as u, T as d, Tt as f, V as p,
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { createRoot as
|
|
2
|
+
import { $ as t, A as n, At as r, B as i, Dt as a, E as o, H as s, Nt as c, Ot as l, St as u, T as d, Tt as f, V as p, c as m, dt as h, et as g, ft as _, gt as v, j as y, kt as ee, l as b, o as te, ot as x, s as ne, tt as re, u as S, x as C, yt as ie } from "./private-tags-2FwEvwyH.js";
|
|
3
|
+
import * as w from "react";
|
|
4
|
+
import T from "react";
|
|
5
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
6
|
+
import { createRoot as O } from "react-dom/client";
|
|
7
7
|
//#region ../rubric/dist/delivery/main.js
|
|
8
|
-
var
|
|
9
|
-
function
|
|
8
|
+
var k = /* @__PURE__ */ e(c(), 1);
|
|
9
|
+
function A(e) {
|
|
10
10
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return !e ||
|
|
12
|
+
function j(e, t) {
|
|
13
|
+
return !e || A(e) ? e : A(e.default) ? e.default : t && A(e[t]) ? e[t] : t && A(e[t]?.default) ? e[t].default : e;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var M = S, N = M.default, ae = N && typeof N == "object" ? N : M, oe = j(C, "UiLayout") || j(ae.UiLayout, "UiLayout"), { translator: P } = b, se = v(oe)({
|
|
16
16
|
color: p.text(),
|
|
17
17
|
backgroundColor: p.background(),
|
|
18
18
|
"&:not(.MathJax) table": { borderCollapse: "collapse" },
|
|
@@ -25,24 +25,24 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
25
25
|
marginTop: 0,
|
|
26
26
|
lineHeight: "normal"
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), F = v(re)({
|
|
29
29
|
display: "flex",
|
|
30
30
|
flexDirection: "column",
|
|
31
31
|
alignItems: "flex-start",
|
|
32
32
|
padding: "12px 0px"
|
|
33
|
-
}),
|
|
33
|
+
}), I = v("div")({ color: p.text() }), ce = v("h3")({
|
|
34
34
|
color: p.text(),
|
|
35
35
|
fontSize: "16px",
|
|
36
36
|
fontWeight: "700",
|
|
37
37
|
margin: 0,
|
|
38
38
|
paddingBottom: "6px"
|
|
39
|
-
}),
|
|
39
|
+
}), le = v("h4")({
|
|
40
40
|
color: p.text(),
|
|
41
41
|
fontSize: "16px",
|
|
42
42
|
fontWeight: "normal",
|
|
43
43
|
margin: 0,
|
|
44
44
|
paddingBottom: "6px"
|
|
45
|
-
}),
|
|
45
|
+
}), ue = v("button")(({ theme: e }) => ({
|
|
46
46
|
display: "flex",
|
|
47
47
|
alignItems: "center",
|
|
48
48
|
width: "100%",
|
|
@@ -58,12 +58,12 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
58
58
|
color: p.tertiary(),
|
|
59
59
|
margin: 0,
|
|
60
60
|
minHeight: 24
|
|
61
|
-
})),
|
|
61
|
+
})), de = v("span")({
|
|
62
62
|
display: "inline-flex",
|
|
63
63
|
transition: "transform 0.2s",
|
|
64
64
|
marginLeft: 2,
|
|
65
65
|
alignSelf: "center"
|
|
66
|
-
}), L =
|
|
66
|
+
}), L = v("h2")({
|
|
67
67
|
position: "absolute",
|
|
68
68
|
width: "1px",
|
|
69
69
|
height: "1px",
|
|
@@ -73,20 +73,20 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
73
73
|
clip: "rect(0,0,0,0)",
|
|
74
74
|
border: 0,
|
|
75
75
|
whiteSpace: "nowrap"
|
|
76
|
-
}), R =
|
|
77
|
-
excludeZero:
|
|
78
|
-
points:
|
|
79
|
-
sampleAnswers:
|
|
80
|
-
animationsDisabled:
|
|
81
|
-
}), z = class extends
|
|
76
|
+
}), R = k.default.shape({
|
|
77
|
+
excludeZero: k.default.bool,
|
|
78
|
+
points: k.default.arrayOf(k.default.string),
|
|
79
|
+
sampleAnswers: k.default.arrayOf(k.default.string),
|
|
80
|
+
animationsDisabled: k.default.bool
|
|
81
|
+
}), z = class extends T.Component {
|
|
82
82
|
dudUrl = "javascript:;";
|
|
83
83
|
idPrefix = n("rubric");
|
|
84
84
|
constructor(e) {
|
|
85
85
|
super(e), this.state = { rubricOpen: !1 }, this.toggleRubric = this.toggleRubric.bind(this);
|
|
86
86
|
}
|
|
87
87
|
static propTypes = {
|
|
88
|
-
model:
|
|
89
|
-
animationsDisabled:
|
|
88
|
+
model: k.default.object.isRequired,
|
|
89
|
+
animationsDisabled: k.default.bool,
|
|
90
90
|
value: R
|
|
91
91
|
};
|
|
92
92
|
toggleRubric() {
|
|
@@ -96,22 +96,22 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
96
96
|
render() {
|
|
97
97
|
let { model: e, value: t } = this.props, { animationsDisabled: n } = this.props;
|
|
98
98
|
if (n ||= t.animationsDisabled, t && t.points) {
|
|
99
|
-
let { extraCSSRules: r } = e || {}, { points: a, sampleAnswers: o } = t, c = /* @__PURE__ */
|
|
99
|
+
let { extraCSSRules: r } = e || {}, { points: a, sampleAnswers: o } = t, c = /* @__PURE__ */ E(g, { children: a.slice(0).reverse().map((e, n) => {
|
|
100
100
|
n = a.length - n - 1;
|
|
101
101
|
let r = t.excludeZero ? n + 1 : n;
|
|
102
|
-
return /* @__PURE__ */ T
|
|
102
|
+
return /* @__PURE__ */ D(T.Fragment, { children: [/* @__PURE__ */ D(F, { children: [/* @__PURE__ */ E(ce, { children: r === 1 ? `${r} PT` : `${r} PTS` }), /* @__PURE__ */ E(I, { dangerouslySetInnerHTML: { __html: i(e) } })] }, `P${n}`), o && o[n] && /* @__PURE__ */ D(F, { children: [/* @__PURE__ */ E(le, { children: "Sample Answer" }), /* @__PURE__ */ E(I, { dangerouslySetInnerHTML: { __html: i(o[n]) } })] }, `S${n}`)] }, n);
|
|
103
103
|
}) });
|
|
104
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ D(se, {
|
|
105
105
|
extraCSSRules: r,
|
|
106
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ E(L, { children: P.t("rubric.rubric", { lng: t.language }) }), n ? c : /* @__PURE__ */ D(T.Fragment, { children: [/* @__PURE__ */ D(ue, {
|
|
107
107
|
type: "button",
|
|
108
108
|
id: `${this.idPrefix}-toggle`,
|
|
109
109
|
"aria-expanded": this.state.rubricOpen,
|
|
110
110
|
"aria-controls": `${this.idPrefix}-content`,
|
|
111
111
|
onClick: this.toggleRubric,
|
|
112
|
-
children: [
|
|
112
|
+
children: [P.t(this.state.rubricOpen ? "rubric.hideRubric" : "rubric.showRubric", { lng: t.language }), /* @__PURE__ */ E(de, {
|
|
113
113
|
"aria-hidden": "true",
|
|
114
|
-
children: this.state.rubricOpen ? /* @__PURE__ */
|
|
114
|
+
children: this.state.rubricOpen ? /* @__PURE__ */ E("svg", {
|
|
115
115
|
width: "20",
|
|
116
116
|
height: "20",
|
|
117
117
|
viewBox: "0 0 24 24",
|
|
@@ -120,8 +120,8 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
120
120
|
strokeWidth: "2",
|
|
121
121
|
strokeLinecap: "round",
|
|
122
122
|
strokeLinejoin: "round",
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
}) : /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ E("polyline", { points: "18 15 12 9 6 15" })
|
|
124
|
+
}) : /* @__PURE__ */ E("svg", {
|
|
125
125
|
width: "20",
|
|
126
126
|
height: "20",
|
|
127
127
|
viewBox: "0 0 24 24",
|
|
@@ -130,10 +130,10 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
130
130
|
strokeWidth: "2",
|
|
131
131
|
strokeLinecap: "round",
|
|
132
132
|
strokeLinejoin: "round",
|
|
133
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ E("polyline", { points: "6 9 12 15 18 9" })
|
|
134
134
|
})
|
|
135
135
|
})]
|
|
136
|
-
}), /* @__PURE__ */
|
|
136
|
+
}), /* @__PURE__ */ E(s, {
|
|
137
137
|
id: `${this.idPrefix}-content`,
|
|
138
138
|
in: this.state.rubricOpen,
|
|
139
139
|
timeout: {
|
|
@@ -145,7 +145,7 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
145
145
|
});
|
|
146
146
|
} else return null;
|
|
147
147
|
}
|
|
148
|
-
}, B = /* @__PURE__ */ e(
|
|
148
|
+
}, B = /* @__PURE__ */ e(y(), 1), V = class extends HTMLElement {
|
|
149
149
|
constructor() {
|
|
150
150
|
super(), B.log("constructor called"), this.onModelChanged = this.onModelChanged.bind(this), this._root = null, this._mathObserver = null, this._mathRenderPending = !1;
|
|
151
151
|
}
|
|
@@ -180,25 +180,25 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
180
180
|
_render() {
|
|
181
181
|
if (this._model) {
|
|
182
182
|
this._initMathObserver();
|
|
183
|
-
let e =
|
|
184
|
-
this._root ||=
|
|
183
|
+
let e = T.createElement(z, { value: this._model });
|
|
184
|
+
this._root ||= O(this), this._root.render(e);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
disconnectedCallback() {
|
|
188
188
|
this._disconnectMathObserver(), this._root &&= (this._root.unmount(), null);
|
|
189
189
|
}
|
|
190
|
-
}, H =
|
|
190
|
+
}, H = v("td")({
|
|
191
191
|
color: p.primaryDark(),
|
|
192
192
|
verticalAlign: "middle"
|
|
193
|
-
}), fe =
|
|
193
|
+
}), fe = v("div")({
|
|
194
194
|
color: p.secondaryBackground(),
|
|
195
195
|
textAlign: "center"
|
|
196
196
|
}), U = (e) => {
|
|
197
197
|
let { trait: t, traitIndex: n, scaleIndex: r, showStandards: a, showDescription: o, scorePointsValues: s } = e, { name: c, standards: l, scorePointsDescriptors: u, description: d } = t || {};
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
a ? /* @__PURE__ */
|
|
201
|
-
o ? /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ D("tr", { children: [
|
|
199
|
+
/* @__PURE__ */ E(H, { children: /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: i(c) } }) }),
|
|
200
|
+
a ? /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: i(l.join(",")) } }) }) : null,
|
|
201
|
+
o ? /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: i(d) } }) }) : null,
|
|
202
202
|
s && s.map((e, t) => {
|
|
203
203
|
let n;
|
|
204
204
|
try {
|
|
@@ -206,32 +206,32 @@ var A = b, j = A.default, se = j && typeof j == "object" ? j : A, ce = k(m, "UiL
|
|
|
206
206
|
} catch {
|
|
207
207
|
n = "";
|
|
208
208
|
}
|
|
209
|
-
return /* @__PURE__ */
|
|
209
|
+
return /* @__PURE__ */ E("td", { children: n ? /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: i(n) } }) : /* @__PURE__ */ E(fe, { dangerouslySetInnerHTML: { __html: "No Description" } }) }, `table-cell-${t}`);
|
|
210
210
|
})
|
|
211
211
|
] }, `scale-${r}-trait-${n}`);
|
|
212
212
|
};
|
|
213
213
|
U.propTypes = {
|
|
214
|
-
showStandards:
|
|
215
|
-
showDescription:
|
|
216
|
-
scorePointsValues:
|
|
217
|
-
scaleIndex:
|
|
218
|
-
traitIndex:
|
|
219
|
-
trait:
|
|
220
|
-
name:
|
|
221
|
-
standards:
|
|
222
|
-
scorePointsDescriptors:
|
|
223
|
-
description:
|
|
214
|
+
showStandards: k.default.bool,
|
|
215
|
+
showDescription: k.default.bool,
|
|
216
|
+
scorePointsValues: k.default.arrayOf(k.default.number),
|
|
217
|
+
scaleIndex: k.default.number,
|
|
218
|
+
traitIndex: k.default.number,
|
|
219
|
+
trait: k.default.shape({
|
|
220
|
+
name: k.default.string,
|
|
221
|
+
standards: k.default.arrayOf(k.default.string),
|
|
222
|
+
scorePointsDescriptors: k.default.arrayOf(k.default.string),
|
|
223
|
+
description: k.default.string
|
|
224
224
|
})
|
|
225
225
|
};
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region ../multi-trait-rubric/dist/delivery/scale.js
|
|
228
|
-
var pe =
|
|
228
|
+
var pe = v("div")({
|
|
229
229
|
display: "flex",
|
|
230
230
|
position: "relative"
|
|
231
|
-
}), me =
|
|
231
|
+
}), me = v("div")({
|
|
232
232
|
width: "100%",
|
|
233
233
|
overflow: "auto"
|
|
234
|
-
}), he =
|
|
234
|
+
}), he = v("table")(({ theme: e }) => ({
|
|
235
235
|
borderSpacing: 0,
|
|
236
236
|
marginBottom: e.spacing(2),
|
|
237
237
|
borderRadius: "4px",
|
|
@@ -255,12 +255,12 @@ var pe = y("div")({
|
|
|
255
255
|
padding: `${e.spacing(2)} ${e.spacing(1)}`,
|
|
256
256
|
verticalAlign: "top"
|
|
257
257
|
}
|
|
258
|
-
})), ge =
|
|
258
|
+
})), ge = v("table")({ "& td": {
|
|
259
259
|
border: 0,
|
|
260
260
|
padding: 0,
|
|
261
261
|
textAlign: "center",
|
|
262
262
|
minWidth: "200px"
|
|
263
|
-
} }), _e =
|
|
263
|
+
} }), _e = v("div")({ marginBottom: "4px" }), ve = v("td")({ fontWeight: "normal" }), W = ({ show: e, onClick: t, extraStyles: n, children: r }) => /* @__PURE__ */ E("div", {
|
|
264
264
|
style: {
|
|
265
265
|
height: "calc(100% - 1px)",
|
|
266
266
|
top: "1px",
|
|
@@ -277,12 +277,12 @@ var pe = y("div")({
|
|
|
277
277
|
children: r
|
|
278
278
|
});
|
|
279
279
|
W.propTypes = {
|
|
280
|
-
show:
|
|
281
|
-
onClick:
|
|
282
|
-
extraStyles:
|
|
283
|
-
children:
|
|
280
|
+
show: k.default.bool,
|
|
281
|
+
onClick: k.default.func,
|
|
282
|
+
extraStyles: k.default.object,
|
|
283
|
+
children: k.default.object
|
|
284
284
|
};
|
|
285
|
-
var G = class extends
|
|
285
|
+
var G = class extends T.Component {
|
|
286
286
|
state = {};
|
|
287
287
|
componentDidMount() {
|
|
288
288
|
this.tableWrapper && this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth && this.setState({ showRight: !0 });
|
|
@@ -301,7 +301,7 @@ var G = class extends C.Component {
|
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
303
|
render() {
|
|
304
|
-
let { showRight: e, showLeft: t } = this.state, { scale: n, scaleIndex: r, showDescription: a, showPointsLabels: o, showStandards: s, arrowsDisabled: c } = this.props, { excludeZero: l, maxPoints: u, traitLabel: d, traits: f, scorePointsLabels:
|
|
304
|
+
let { showRight: e, showLeft: t } = this.state, { scale: n, scaleIndex: r, showDescription: a, showPointsLabels: o, showStandards: s, arrowsDisabled: c } = this.props, { excludeZero: l, maxPoints: u, traitLabel: d, traits: f, scorePointsLabels: h } = n || {}, g = [], _, v, y;
|
|
305
305
|
try {
|
|
306
306
|
for (let e = u; +(e >= l); --e) g.push(e);
|
|
307
307
|
let { traitStandards: e, traitDescriptions: t } = f.reduce((e, t) => ({
|
|
@@ -311,21 +311,21 @@ var G = class extends C.Component {
|
|
|
311
311
|
traitStandards: [],
|
|
312
312
|
traitDescriptions: []
|
|
313
313
|
});
|
|
314
|
-
_ = a && t.length, v = o &&
|
|
314
|
+
_ = a && t.length, v = o && h.length, y = s && e.length;
|
|
315
315
|
} catch {
|
|
316
316
|
_ = !1, v = !1, y = !1;
|
|
317
317
|
}
|
|
318
|
-
return /* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ D(pe, { children: [
|
|
319
|
+
/* @__PURE__ */ E(W, {
|
|
320
320
|
show: t && !c,
|
|
321
321
|
onClick: this.scrollLeft,
|
|
322
322
|
extraStyles: {
|
|
323
323
|
left: 0,
|
|
324
324
|
background: `linear-gradient(to right, white, ${p.background()})`
|
|
325
325
|
},
|
|
326
|
-
children: /* @__PURE__ */
|
|
326
|
+
children: /* @__PURE__ */ E(m, {})
|
|
327
327
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ D(me, {
|
|
329
329
|
ref: (e) => {
|
|
330
330
|
this.tableWrapper = e;
|
|
331
331
|
},
|
|
@@ -335,20 +335,20 @@ var G = class extends C.Component {
|
|
|
335
335
|
showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0
|
|
336
336
|
});
|
|
337
337
|
},
|
|
338
|
-
children: [c && (e || t) ? /* @__PURE__ */
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
-
y ? /* @__PURE__ */
|
|
341
|
-
_ ? /* @__PURE__ */
|
|
338
|
+
children: [c && (e || t) ? /* @__PURE__ */ E("div", { children: "The item is too large to fit in print mode." }) : null, /* @__PURE__ */ D(he, { children: [/* @__PURE__ */ E("thead", { children: /* @__PURE__ */ D("tr", { children: [
|
|
339
|
+
/* @__PURE__ */ E("th", { children: /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: i(d) } }) }),
|
|
340
|
+
y ? /* @__PURE__ */ E("th", { children: /* @__PURE__ */ E("div", { children: "Standard(s)" }) }) : null,
|
|
341
|
+
_ ? /* @__PURE__ */ E("th", { children: /* @__PURE__ */ E("div", { children: "Description" }) }) : null,
|
|
342
342
|
g && g.map((e, t) => {
|
|
343
343
|
let n = "";
|
|
344
344
|
try {
|
|
345
|
-
n =
|
|
345
|
+
n = h[g.length - t - 1] || "";
|
|
346
346
|
} catch {
|
|
347
347
|
n = "";
|
|
348
348
|
}
|
|
349
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ E("th", { children: /* @__PURE__ */ E(ge, { children: /* @__PURE__ */ D("thead", { children: [v ? /* @__PURE__ */ E("tr", { children: /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E(_e, { dangerouslySetInnerHTML: { __html: i(n) } }) }) }) : null, /* @__PURE__ */ E("tr", { children: /* @__PURE__ */ E(ve, { children: e === 1 ? `${e} point` : `${e} points` }) })] }) }) }, `table-header-${t}`);
|
|
350
350
|
})
|
|
351
|
-
] }) }), /* @__PURE__ */
|
|
351
|
+
] }) }), /* @__PURE__ */ E("tbody", { children: f && f.map((e, t) => /* @__PURE__ */ E(U, {
|
|
352
352
|
trait: e,
|
|
353
353
|
traitIndex: t,
|
|
354
354
|
showDescription: !!_,
|
|
@@ -358,36 +358,36 @@ var G = class extends C.Component {
|
|
|
358
358
|
excludeZero: l
|
|
359
359
|
}, `trait_${r}_${t}`)) })] }, `scale-${r}`)]
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ E(W, {
|
|
362
362
|
show: e && !c,
|
|
363
363
|
onClick: this.scrollRight,
|
|
364
364
|
extraStyles: {
|
|
365
365
|
right: 0,
|
|
366
366
|
background: `linear-gradient(to left, white, ${p.background()})`
|
|
367
367
|
},
|
|
368
|
-
children: /* @__PURE__ */
|
|
368
|
+
children: /* @__PURE__ */ E(ne, {})
|
|
369
369
|
})
|
|
370
370
|
] });
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
G.propTypes = {
|
|
374
|
-
scaleIndex:
|
|
375
|
-
scale:
|
|
376
|
-
excludeZero:
|
|
377
|
-
maxPoints:
|
|
378
|
-
scorePointsLabels:
|
|
379
|
-
traitLabel:
|
|
380
|
-
traits:
|
|
381
|
-
name:
|
|
382
|
-
standards:
|
|
383
|
-
scorePointsDescriptors:
|
|
384
|
-
description:
|
|
374
|
+
scaleIndex: k.default.number,
|
|
375
|
+
scale: k.default.shape({
|
|
376
|
+
excludeZero: k.default.bool,
|
|
377
|
+
maxPoints: k.default.number,
|
|
378
|
+
scorePointsLabels: k.default.arrayOf(k.default.string),
|
|
379
|
+
traitLabel: k.default.string,
|
|
380
|
+
traits: k.default.arrayOf(k.default.shape({
|
|
381
|
+
name: k.default.string,
|
|
382
|
+
standards: k.default.arrayOf(k.default.string),
|
|
383
|
+
scorePointsDescriptors: k.default.arrayOf(k.default.string),
|
|
384
|
+
description: k.default.string
|
|
385
385
|
}))
|
|
386
386
|
}),
|
|
387
|
-
showPointsLabels:
|
|
388
|
-
showDescription:
|
|
389
|
-
showStandards:
|
|
390
|
-
arrowsDisabled:
|
|
387
|
+
showPointsLabels: k.default.bool,
|
|
388
|
+
showDescription: k.default.bool,
|
|
389
|
+
showStandards: k.default.bool,
|
|
390
|
+
arrowsDisabled: k.default.bool
|
|
391
391
|
};
|
|
392
392
|
//#endregion
|
|
393
393
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+cb46ce523248780c/node_modules/@mui/material/esm/Link/linkClasses.js
|
|
@@ -427,7 +427,7 @@ var be = a("MuiLink", [
|
|
|
427
427
|
r === "button" && "button",
|
|
428
428
|
i && "focusVisible"
|
|
429
429
|
] }, ye, n);
|
|
430
|
-
}, Ce =
|
|
430
|
+
}, Ce = v(te, {
|
|
431
431
|
name: "MuiLink",
|
|
432
432
|
slot: "Root",
|
|
433
433
|
overridesResolver: (e, n) => {
|
|
@@ -438,7 +438,7 @@ var be = a("MuiLink", [
|
|
|
438
438
|
r.component === "button" && n.button
|
|
439
439
|
];
|
|
440
440
|
}
|
|
441
|
-
})(
|
|
441
|
+
})(_(({ theme: e }) => ({ variants: [
|
|
442
442
|
{
|
|
443
443
|
props: { underline: "none" },
|
|
444
444
|
style: { textDecoration: "none" }
|
|
@@ -465,7 +465,7 @@ var be = a("MuiLink", [
|
|
|
465
465
|
props: ({ underline: e, ownerState: t }) => e === "always" && t.color === "inherit",
|
|
466
466
|
style: e.colorSpace ? { textDecorationColor: e.alpha("currentColor", .4) } : null
|
|
467
467
|
},
|
|
468
|
-
...Object.entries(e.palette).filter(
|
|
468
|
+
...Object.entries(e.palette).filter(d()).map(([t]) => ({
|
|
469
469
|
props: {
|
|
470
470
|
underline: "always",
|
|
471
471
|
color: t
|
|
@@ -513,14 +513,14 @@ var be = a("MuiLink", [
|
|
|
513
513
|
[`&.${be.focusVisible}`]: { outline: "auto" }
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
] }))), we = /*#__PURE__*/
|
|
517
|
-
let n =
|
|
516
|
+
] }))), we = /*#__PURE__*/ w.forwardRef(function(e, t) {
|
|
517
|
+
let n = h({
|
|
518
518
|
props: e,
|
|
519
519
|
name: "MuiLink"
|
|
520
|
-
}), r =
|
|
521
|
-
x(e.target) ||
|
|
520
|
+
}), r = ie(), { className: i, color: a = "primary", component: o = "a", onBlur: s, onFocus: c, TypographyClasses: l, underline: u = "always", variant: d = "inherit", sx: f, ...p } = n, [m, g] = w.useState(!1), _ = (e) => {
|
|
521
|
+
x(e.target) || g(!1), s && s(e);
|
|
522
522
|
}, v = (e) => {
|
|
523
|
-
x(e.target) &&
|
|
523
|
+
x(e.target) && g(!0), c && c(e);
|
|
524
524
|
}, y = {
|
|
525
525
|
...n,
|
|
526
526
|
color: a,
|
|
@@ -529,9 +529,9 @@ var be = a("MuiLink", [
|
|
|
529
529
|
underline: u,
|
|
530
530
|
variant: d
|
|
531
531
|
};
|
|
532
|
-
return /*#__PURE__*/
|
|
532
|
+
return /*#__PURE__*/ E(Ce, {
|
|
533
533
|
color: a,
|
|
534
|
-
className:
|
|
534
|
+
className: ee(Se(y).root, i),
|
|
535
535
|
classes: l,
|
|
536
536
|
component: o,
|
|
537
537
|
onBlur: _,
|
|
@@ -549,14 +549,14 @@ var be = a("MuiLink", [
|
|
|
549
549
|
}) }
|
|
550
550
|
}
|
|
551
551
|
});
|
|
552
|
-
}), { translator: Te } =
|
|
552
|
+
}), { translator: Te } = b;
|
|
553
553
|
function q(e) {
|
|
554
554
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
555
555
|
}
|
|
556
556
|
function J(e, t) {
|
|
557
557
|
return !e || q(e) ? e : q(e.default) ? e.default : t && q(e[t]) ? e[t] : t && q(e[t]?.default) ? e[t].default : e;
|
|
558
558
|
}
|
|
559
|
-
var Y =
|
|
559
|
+
var Y = S, X = Y.default, Z = X && typeof X == "object" ? X : Y, Q = J(C, "UiLayout") || J(Z.UiLayout, "UiLayout"), $ = class extends T.Component {
|
|
560
560
|
constructor(e) {
|
|
561
561
|
super(e), this.state = { rubricOpen: !1 }, this.toggleRubric = this.toggleRubric.bind(this);
|
|
562
562
|
}
|
|
@@ -566,17 +566,17 @@ var Y = b, X = Y.default, Z = X && typeof X == "object" ? X : Y, Q = J(m, "UiLay
|
|
|
566
566
|
render() {
|
|
567
567
|
let { model: e } = this.props, { animationsDisabled: t } = this.props, { extraCSSRules: n, halfScoring: r, scales: i, visible: a, pointLabels: o, description: c, standards: l, arrowsDisabled: u } = e || {};
|
|
568
568
|
if (t ||= e.animationsDisabled, !i || !a) return null;
|
|
569
|
-
let d = /* @__PURE__ */
|
|
569
|
+
let d = /* @__PURE__ */ D(Q, {
|
|
570
570
|
extraCSSRules: n,
|
|
571
571
|
style: {
|
|
572
572
|
fontFamily: "Cerebri Sans",
|
|
573
573
|
color: p.text(),
|
|
574
574
|
backgroundColor: p.background()
|
|
575
575
|
},
|
|
576
|
-
children: [r ? /* @__PURE__ */
|
|
576
|
+
children: [r ? /* @__PURE__ */ E("div", {
|
|
577
577
|
style: { marginBottom: "16px" },
|
|
578
578
|
children: "* Half-point or in-between scores are permitted under this rubric."
|
|
579
|
-
}) : null, i.map((e, t) => /* @__PURE__ */
|
|
579
|
+
}) : null, i.map((e, t) => /* @__PURE__ */ E(G, {
|
|
580
580
|
scale: e,
|
|
581
581
|
scaleIndex: t,
|
|
582
582
|
showPointsLabels: o,
|
|
@@ -585,13 +585,13 @@ var Y = b, X = Y.default, Z = X && typeof X == "object" ? X : Y, Q = J(m, "UiLay
|
|
|
585
585
|
arrowsDisabled: u
|
|
586
586
|
}, `scale_${t}`))]
|
|
587
587
|
});
|
|
588
|
-
return t ? d : /* @__PURE__ */
|
|
588
|
+
return t ? d : /* @__PURE__ */ D(Q, {
|
|
589
589
|
extraCSSRules: n,
|
|
590
590
|
style: {
|
|
591
591
|
color: p.text(),
|
|
592
592
|
backgroundColor: p.background()
|
|
593
593
|
},
|
|
594
|
-
children: [/* @__PURE__ */
|
|
594
|
+
children: [/* @__PURE__ */ E(we, {
|
|
595
595
|
component: "button",
|
|
596
596
|
type: "button",
|
|
597
597
|
"aria-expanded": this.state.rubricOpen,
|
|
@@ -601,7 +601,7 @@ var Y = b, X = Y.default, Z = X && typeof X == "object" ? X : Y, Q = J(m, "UiLay
|
|
|
601
601
|
},
|
|
602
602
|
onClick: this.toggleRubric,
|
|
603
603
|
children: Te.t(this.state.rubricOpen ? "rubric.hideRubric" : "rubric.showRubric", { lng: e.language })
|
|
604
|
-
}), /* @__PURE__ */
|
|
604
|
+
}), /* @__PURE__ */ E(s, {
|
|
605
605
|
style: { marginTop: "16px" },
|
|
606
606
|
in: this.state.rubricOpen,
|
|
607
607
|
timeout: {
|
|
@@ -614,27 +614,27 @@ var Y = b, X = Y.default, Z = X && typeof X == "object" ? X : Y, Q = J(m, "UiLay
|
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
$.propTypes = {
|
|
617
|
-
model:
|
|
618
|
-
halfScoring:
|
|
619
|
-
scales:
|
|
620
|
-
excludeZero:
|
|
621
|
-
maxPoints:
|
|
622
|
-
scorePointsLabels:
|
|
623
|
-
traitLabel:
|
|
624
|
-
traits:
|
|
625
|
-
name:
|
|
626
|
-
description:
|
|
627
|
-
scorePointsDescriptors:
|
|
628
|
-
standards:
|
|
617
|
+
model: k.default.shape({
|
|
618
|
+
halfScoring: k.default.bool,
|
|
619
|
+
scales: k.default.arrayOf(k.default.shape({
|
|
620
|
+
excludeZero: k.default.bool,
|
|
621
|
+
maxPoints: k.default.number,
|
|
622
|
+
scorePointsLabels: k.default.arrayOf(k.default.string),
|
|
623
|
+
traitLabel: k.default.string,
|
|
624
|
+
traits: k.default.arrayOf(k.default.shape({
|
|
625
|
+
name: k.default.string,
|
|
626
|
+
description: k.default.string,
|
|
627
|
+
scorePointsDescriptors: k.default.arrayOf(k.default.string),
|
|
628
|
+
standards: k.default.arrayOf(k.default.string)
|
|
629
629
|
}))
|
|
630
630
|
})),
|
|
631
|
-
visible:
|
|
632
|
-
pointLabels:
|
|
633
|
-
description:
|
|
634
|
-
standards:
|
|
635
|
-
animationsDisabled:
|
|
631
|
+
visible: k.default.bool,
|
|
632
|
+
pointLabels: k.default.bool,
|
|
633
|
+
description: k.default.bool,
|
|
634
|
+
standards: k.default.bool,
|
|
635
|
+
animationsDisabled: k.default.bool
|
|
636
636
|
}),
|
|
637
|
-
animationsDisabled:
|
|
637
|
+
animationsDisabled: k.default.bool
|
|
638
638
|
};
|
|
639
639
|
//#endregion
|
|
640
640
|
//#region ../../shared/player-events/dist/index.js
|
|
@@ -708,11 +708,11 @@ var De = class extends HTMLElement {
|
|
|
708
708
|
}
|
|
709
709
|
_render() {
|
|
710
710
|
this._initMathObserver();
|
|
711
|
-
let e =
|
|
711
|
+
let e = T.createElement($, {
|
|
712
712
|
model: this._model,
|
|
713
713
|
session: this._session
|
|
714
714
|
});
|
|
715
|
-
this._root ||=
|
|
715
|
+
this._root ||= O(this), this._root.render(e);
|
|
716
716
|
}
|
|
717
717
|
disconnectedCallback() {
|
|
718
718
|
this._disconnectMathObserver(), this._root &&= (this._root.unmount(), null);
|
|
@@ -721,4 +721,4 @@ var De = class extends HTMLElement {
|
|
|
721
721
|
//#endregion
|
|
722
722
|
export { V as n, De as t };
|
|
723
723
|
|
|
724
|
-
//# sourceMappingURL=delivery-
|
|
724
|
+
//# sourceMappingURL=delivery-Bkswcpxm.js.map
|