@pie-element/graphing 10.1.2-next.5 → 10.1.2-next.6
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/configure.js +3 -3
- package/dist/author/correct-response.js +70 -69
- package/dist/author/graphing-config.js +1 -1
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +5 -2
- package/dist/author/utils.js +1 -1
- package/dist/browser/author/index.js +95 -92
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{container-CTkqz7Oi.js → container-y2dbRhO3.js} +22208 -24144
- package/dist/browser/container-y2dbRhO3.js.map +1 -0
- package/dist/browser/controller/index.js +3 -3
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +26 -9
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{dist-B7TYAggd.js → dist-Bqo4KUUX.js} +2 -2
- package/dist/browser/dist-Bqo4KUUX.js.map +1 -0
- package/dist/controller/utils.js +2 -2
- package/dist/delivery/index.d.ts +3 -0
- package/dist/delivery/index.js +25 -7
- package/dist/delivery/main.js +1 -1
- package/dist/index.iife.js +114 -118
- package/package.json +13 -8
- package/dist/browser/container-CTkqz7Oi.js.map +0 -1
- package/dist/browser/dist-B7TYAggd.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e, N as t, R as n, _ as r, h as i, p as a, u as o, v as s } from "../dist-
|
|
2
|
-
import { $ as c, A as l, B as u, C as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, N as b, Q as x, R as S, S as C, U as w, V as T, W as E, X as D, Y as O, Z as k, _ as A, a as ee, at as j, b as M, c as te, ct as N, d as ne, dt as P, et as F, f as re, ft as I, g as ie, gt as L, h as ae, ht as oe, i as R, it as z, j as se, k as ce, l as le, lt as B, m as ue, mt as de, n as fe, nt as V, ot as pe, p as me, pt as he, q as H, r as ge, rt as U, s as _e, st as ve, t as ye, u as be, ut as xe, v as Se, w as Ce, x as W, y as we } from "../container-
|
|
1
|
+
import { D as e, N as t, R as n, _ as r, h as i, p as a, u as o, v as s } from "../dist-Bqo4KUUX.js";
|
|
2
|
+
import { $ as c, A as l, B as u, C as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, N as b, Q as x, R as S, S as C, U as w, V as T, W as E, X as D, Y as O, Z as k, _ as A, a as ee, at as j, b as M, c as te, ct as N, d as ne, dt as P, et as F, f as re, ft as I, g as ie, gt as L, h as ae, ht as oe, i as R, it as z, j as se, k as ce, l as le, lt as B, m as ue, mt as de, n as fe, nt as V, ot as pe, p as me, pt as he, q as H, r as ge, rt as U, s as _e, st as ve, t as ye, u as be, ut as xe, v as Se, w as Ce, x as W, y as we } from "../container-y2dbRhO3.js";
|
|
3
3
|
import * as G from "react";
|
|
4
4
|
import K, { Component as Te, createElement as Ee } from "react";
|
|
5
5
|
import { createRoot as De } from "react-dom/client";
|
|
@@ -1848,7 +1848,7 @@ var yn = Object.defineProperty, bn = (e, t) => {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
};
|
|
1850
1850
|
//#endregion
|
|
1851
|
-
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.
|
|
1851
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1852
1852
|
function Dn() {
|
|
1853
1853
|
return Dn = Object.assign ? Object.assign.bind() : function(e) {
|
|
1854
1854
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -1859,7 +1859,7 @@ function Dn() {
|
|
|
1859
1859
|
}, Dn.apply(null, arguments);
|
|
1860
1860
|
}
|
|
1861
1861
|
//#endregion
|
|
1862
|
-
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.
|
|
1862
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1863
1863
|
function On(e, t) {
|
|
1864
1864
|
if (e == null) return {};
|
|
1865
1865
|
var n = {};
|
|
@@ -1870,14 +1870,14 @@ function On(e, t) {
|
|
|
1870
1870
|
return n;
|
|
1871
1871
|
}
|
|
1872
1872
|
//#endregion
|
|
1873
|
-
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.
|
|
1873
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
1874
1874
|
function kn(e, t) {
|
|
1875
1875
|
return kn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1876
1876
|
return e.__proto__ = t, e;
|
|
1877
1877
|
}, kn(e, t);
|
|
1878
1878
|
}
|
|
1879
1879
|
//#endregion
|
|
1880
|
-
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.
|
|
1880
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1881
1881
|
function An(e, t) {
|
|
1882
1882
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, kn(e, t);
|
|
1883
1883
|
}
|
|
@@ -2270,9 +2270,9 @@ var dr = ur()(function(e) {
|
|
|
2270
2270
|
dr.displayName = "Measure", dr.propTypes.children = Q.default.func;
|
|
2271
2271
|
//#endregion
|
|
2272
2272
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
2273
|
-
var fr = z("div")((
|
|
2274
|
-
backgroundColor:
|
|
2275
|
-
border: `2px solid ${
|
|
2273
|
+
var fr = z("div")(() => ({
|
|
2274
|
+
backgroundColor: V.white(),
|
|
2275
|
+
border: `2px solid ${V.border()}`,
|
|
2276
2276
|
display: "flex",
|
|
2277
2277
|
flexDirection: "column",
|
|
2278
2278
|
justifyContent: "flex-start",
|
|
@@ -2792,17 +2792,17 @@ var Di = (e) => {
|
|
|
2792
2792
|
step: 1,
|
|
2793
2793
|
labelStep: 0
|
|
2794
2794
|
};
|
|
2795
|
+
}, r = {
|
|
2796
|
+
...c,
|
|
2797
|
+
...e ? { labelStep: 1 } : n("range")
|
|
2798
|
+
}, i = {
|
|
2799
|
+
...t,
|
|
2800
|
+
...e ? { labelStep: 1 } : n("domain")
|
|
2795
2801
|
};
|
|
2796
2802
|
o({
|
|
2797
2803
|
includeAxes: e,
|
|
2798
|
-
range:
|
|
2799
|
-
|
|
2800
|
-
...e ? { labelStep: 1 } : n("range")
|
|
2801
|
-
},
|
|
2802
|
-
domain: {
|
|
2803
|
-
...t,
|
|
2804
|
-
...e ? { labelStep: 1 } : n("domain")
|
|
2805
|
-
}
|
|
2804
|
+
range: r,
|
|
2805
|
+
domain: i
|
|
2806
2806
|
});
|
|
2807
2807
|
}, T = (e) => {
|
|
2808
2808
|
o({
|
|
@@ -3439,68 +3439,68 @@ var Oi = [
|
|
|
3439
3439
|
})
|
|
3440
3440
|
] });
|
|
3441
3441
|
}
|
|
3442
|
-
}, Wi = E(/*#__PURE__*/ q("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Gi =
|
|
3442
|
+
}, Wi = E(/*#__PURE__*/ q("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Gi = z("div")({ color: V.text() }), Ki = z("div")(({ theme: e }) => ({
|
|
3443
3443
|
margin: `${e.spacing(2.5)} 0`,
|
|
3444
3444
|
cursor: "pointer",
|
|
3445
|
-
background:
|
|
3445
|
+
background: V.backgroundDark(),
|
|
3446
3446
|
padding: e.spacing(1.5),
|
|
3447
3447
|
width: "fit-content",
|
|
3448
3448
|
borderRadius: "4px",
|
|
3449
|
-
"&:hover": { background:
|
|
3450
|
-
})),
|
|
3449
|
+
"&:hover": { background: V.dropdownBackground() }
|
|
3450
|
+
})), qi = z("div")(({ theme: e }) => ({
|
|
3451
3451
|
marginTop: e.spacing(1),
|
|
3452
3452
|
display: "flex",
|
|
3453
3453
|
flexWrap: "wrap"
|
|
3454
|
-
})),
|
|
3454
|
+
})), Ji = z("div")(({ theme: e }) => ({
|
|
3455
3455
|
cursor: "pointer",
|
|
3456
3456
|
margin: e.spacing(1),
|
|
3457
3457
|
padding: e.spacing(1),
|
|
3458
|
-
border: `2px solid ${
|
|
3458
|
+
border: `2px solid ${V.background()}`,
|
|
3459
3459
|
textTransform: "capitalize",
|
|
3460
|
-
"&:hover": { color:
|
|
3461
|
-
})),
|
|
3462
|
-
background:
|
|
3463
|
-
border: `2px solid ${
|
|
3464
|
-
}),
|
|
3460
|
+
"&:hover": { color: V.text() }
|
|
3461
|
+
})), Yi = z(Ji)({
|
|
3462
|
+
background: V.dropdownBackground(),
|
|
3463
|
+
border: `2px solid ${V.border()}`
|
|
3464
|
+
}), Xi = z("div")(({ theme: e }) => ({
|
|
3465
3465
|
display: "flex",
|
|
3466
3466
|
alignItems: "center",
|
|
3467
3467
|
marginTop: e.spacing(2.5)
|
|
3468
|
-
})),
|
|
3468
|
+
})), Zi = z("div")(() => ({
|
|
3469
3469
|
marginLeft: "6px",
|
|
3470
|
-
color:
|
|
3470
|
+
color: V.borderGray(),
|
|
3471
3471
|
"&:hover": {
|
|
3472
3472
|
cursor: "pointer",
|
|
3473
|
-
color:
|
|
3473
|
+
color: V.text()
|
|
3474
3474
|
}
|
|
3475
|
-
})),
|
|
3475
|
+
})), Qi = z("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), $i = z(({ className: e, ...t }) => /* @__PURE__ */ q(jt, {
|
|
3476
3476
|
...t,
|
|
3477
3477
|
classes: { tooltip: e }
|
|
3478
3478
|
}))(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
3479
3479
|
fontSize: e.typography.fontSize - 2,
|
|
3480
3480
|
whiteSpace: "pre",
|
|
3481
3481
|
maxWidth: "500px"
|
|
3482
|
-
} })),
|
|
3482
|
+
} })), ea = z(W)(({ theme: e }) => ({
|
|
3483
3483
|
marginTop: e.spacing(1.5),
|
|
3484
3484
|
marginBottom: e.spacing(1)
|
|
3485
|
-
})),
|
|
3485
|
+
})), ta = z("div")({
|
|
3486
3486
|
display: "flex",
|
|
3487
3487
|
alignItems: "center",
|
|
3488
3488
|
justifyContent: "space-between"
|
|
3489
|
-
}),
|
|
3489
|
+
}), na = z("div")({
|
|
3490
3490
|
display: "flex",
|
|
3491
3491
|
alignItems: "center",
|
|
3492
3492
|
width: "300px"
|
|
3493
|
-
}),
|
|
3493
|
+
}), ra = z(Se)(({ theme: e }) => ({
|
|
3494
3494
|
marginLeft: e.spacing(1),
|
|
3495
3495
|
textTransform: "uppercase",
|
|
3496
|
-
color:
|
|
3497
|
-
})),
|
|
3496
|
+
color: V.text()
|
|
3497
|
+
})), ia = z(A)({ textTransform: "uppercase" }), aa = z("div")(({ theme: e }) => ({
|
|
3498
3498
|
fontSize: e.typography.fontSize - 2,
|
|
3499
3499
|
color: e.palette.error.main,
|
|
3500
3500
|
marginTop: e.spacing(1)
|
|
3501
|
-
})),
|
|
3501
|
+
})), oa = ({ availableTools: e, defaultTool: t, hasErrors: n, toolbarTools: r, toggleToolBarTool: i, onDefaultToolChange: a }) => {
|
|
3502
3502
|
let o = e || [], s = o.includes("label"), c = (r || []).filter((e) => e !== "label");
|
|
3503
|
-
return s && (o = [...o.filter((e) => e !== "label"), "label"]), /* @__PURE__ */ J(
|
|
3503
|
+
return s && (o = [...o.filter((e) => e !== "label"), "label"]), /* @__PURE__ */ J(Gi, { children: [/* @__PURE__ */ J(ta, { children: [/* @__PURE__ */ q("span", { children: "GRAPHING TOOLS" }), c.length > 0 && /* @__PURE__ */ J(na, { children: [/* @__PURE__ */ q("span", { children: "Default graphing tool:" }), /* @__PURE__ */ q(ra, {
|
|
3504
3504
|
variant: "standard",
|
|
3505
3505
|
onChange: a,
|
|
3506
3506
|
value: t,
|
|
@@ -3509,17 +3509,17 @@ var Oi = [
|
|
|
3509
3509
|
enter: 225,
|
|
3510
3510
|
exit: 195
|
|
3511
3511
|
} },
|
|
3512
|
-
children: c.map((e, t) => /* @__PURE__ */ q(
|
|
3512
|
+
children: c.map((e, t) => /* @__PURE__ */ q(ia, {
|
|
3513
3513
|
value: e,
|
|
3514
3514
|
children: e
|
|
3515
3515
|
}, t))
|
|
3516
|
-
})] })] }), /* @__PURE__ */ q(
|
|
3516
|
+
})] })] }), /* @__PURE__ */ q(qi, { children: o.map((e) => /* @__PURE__ */ q(r.find((t) => t === e) ? Yi : Ji, {
|
|
3517
3517
|
style: { ...n && e !== "label" && { color: "red" } },
|
|
3518
3518
|
onClick: () => i(e),
|
|
3519
3519
|
children: e.toUpperCase()
|
|
3520
3520
|
}, e)) })] });
|
|
3521
3521
|
};
|
|
3522
|
-
|
|
3522
|
+
oa.propTypes = {
|
|
3523
3523
|
toolbarTools: Q.default.arrayOf(Q.default.string),
|
|
3524
3524
|
toggleToolBarTool: Q.default.func,
|
|
3525
3525
|
availableTools: Q.default.array,
|
|
@@ -3527,7 +3527,7 @@ ca.propTypes = {
|
|
|
3527
3527
|
hasErrors: Q.default.number,
|
|
3528
3528
|
onDefaultToolChange: Q.default.func
|
|
3529
3529
|
};
|
|
3530
|
-
var
|
|
3530
|
+
var sa = class extends G.Component {
|
|
3531
3531
|
static propTypes = {
|
|
3532
3532
|
availableTools: Q.default.array,
|
|
3533
3533
|
errors: Q.default.object,
|
|
@@ -3646,12 +3646,12 @@ var la = class extends G.Component {
|
|
|
3646
3646
|
variant: "h6",
|
|
3647
3647
|
children: "Define Tool Set and Correct Response"
|
|
3648
3648
|
}),
|
|
3649
|
-
/* @__PURE__ */ q(
|
|
3649
|
+
/* @__PURE__ */ q(ea, {
|
|
3650
3650
|
component: "div",
|
|
3651
3651
|
variant: "body1",
|
|
3652
3652
|
children: "Use this interface to choose which graphing tools students will be able to use, and to define the correct answer"
|
|
3653
3653
|
}),
|
|
3654
|
-
/* @__PURE__ */ q(
|
|
3654
|
+
/* @__PURE__ */ q(oa, {
|
|
3655
3655
|
availableTools: e,
|
|
3656
3656
|
defaultTool: u,
|
|
3657
3657
|
hasErrors: !!b,
|
|
@@ -3659,13 +3659,13 @@ var la = class extends G.Component {
|
|
|
3659
3659
|
toggleToolBarTool: this.toggleToolBarTool,
|
|
3660
3660
|
toolbarTools: v
|
|
3661
3661
|
}),
|
|
3662
|
-
b && /* @__PURE__ */ q(
|
|
3662
|
+
b && /* @__PURE__ */ q(aa, { children: b }),
|
|
3663
3663
|
Object.entries(o || {}).map(([e, t]) => {
|
|
3664
3664
|
let { marks: n = [], name: a } = t || {};
|
|
3665
3665
|
return /* @__PURE__ */ J(G.Fragment, { children: [
|
|
3666
|
-
/* @__PURE__ */ J(
|
|
3667
|
-
/* @__PURE__ */ q(
|
|
3668
|
-
e === "correctAnswer" && /* @__PURE__ */ q(
|
|
3666
|
+
/* @__PURE__ */ J(Xi, { children: [
|
|
3667
|
+
/* @__PURE__ */ q(Qi, { children: a }),
|
|
3668
|
+
e === "correctAnswer" && /* @__PURE__ */ q($i, {
|
|
3669
3669
|
disableFocusListener: !0,
|
|
3670
3670
|
disableTouchListener: !0,
|
|
3671
3671
|
placement: "right",
|
|
@@ -3679,7 +3679,7 @@ var la = class extends G.Component {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
})
|
|
3681
3681
|
}),
|
|
3682
|
-
e !== "correctAnswer" && /* @__PURE__ */ q(
|
|
3682
|
+
e !== "correctAnswer" && /* @__PURE__ */ q(Zi, {
|
|
3683
3683
|
onClick: () => this.deleteAlternateResponse(e, t),
|
|
3684
3684
|
children: /* @__PURE__ */ q(C, {})
|
|
3685
3685
|
})
|
|
@@ -3710,10 +3710,10 @@ var la = class extends G.Component {
|
|
|
3710
3710
|
removeIncompleteTool: i,
|
|
3711
3711
|
limitLabeling: !0
|
|
3712
3712
|
}),
|
|
3713
|
-
y[e] && /* @__PURE__ */ q(
|
|
3713
|
+
y[e] && /* @__PURE__ */ q(aa, { children: y[e] })
|
|
3714
3714
|
] }, `correct-response-graph-${a}`);
|
|
3715
3715
|
}),
|
|
3716
|
-
/* @__PURE__ */ q(
|
|
3716
|
+
/* @__PURE__ */ q(Ki, {
|
|
3717
3717
|
onClick: this.addAlternateResponse,
|
|
3718
3718
|
children: "ADD ALTERNATE"
|
|
3719
3719
|
}),
|
|
@@ -3726,15 +3726,15 @@ var la = class extends G.Component {
|
|
|
3726
3726
|
})
|
|
3727
3727
|
] });
|
|
3728
3728
|
}
|
|
3729
|
-
}, { Panel:
|
|
3729
|
+
}, { Panel: ca, toggle: $, radio: la, checkboxes: ua, textField: da, dropdown: fa } = Kr, pa = (0, zt.default)("@pie-element:graphing:configure"), ma = z(ii)(({ theme: e }) => ({
|
|
3730
3730
|
width: "100%",
|
|
3731
3731
|
paddingTop: e.spacing(2),
|
|
3732
3732
|
marginBottom: e.spacing(2)
|
|
3733
|
-
})),
|
|
3733
|
+
})), ha = z(W)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), ga = z("div")(({ theme: e }) => ({
|
|
3734
3734
|
fontSize: e.typography.fontSize - 2,
|
|
3735
3735
|
color: e.palette.error.main,
|
|
3736
3736
|
paddingTop: e.spacing(1)
|
|
3737
|
-
})),
|
|
3737
|
+
})), _a = class extends K.Component {
|
|
3738
3738
|
static propTypes = {
|
|
3739
3739
|
onModelChanged: Q.default.func,
|
|
3740
3740
|
onConfigurationChanged: Q.default.func,
|
|
@@ -3788,14 +3788,14 @@ var la = class extends G.Component {
|
|
|
3788
3788
|
};
|
|
3789
3789
|
render() {
|
|
3790
3790
|
let { model: e, configuration: t, onConfigurationChanged: n, onModelChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { arrows: o = {}, authoring: s = {}, availableTools: c = [], baseInputConfiguration: l = {}, coordinatesOnHover: u = {}, contentDimensions: d = {}, gridConfigurations: f = [], graphDimensions: p = {}, instruction: m = {}, labels: h = {}, padding: g = {}, prompt: _ = {}, rationale: v = {}, scoringType: y = {}, settingsPanelDisabled: b, spellCheck: x = {}, studentInstructions: S = {}, teacherInstructions: C = {}, title: w = {}, maxImageWidth: T = {}, maxImageHeight: E = {}, withRubric: D = {}, language: O = {}, languageChoices: k = {}, mathMlOptions: A = {}, removeIncompleteTool: ee = !1 } = t || {}, { errors: j = {}, extraCSSRules: M, labelsEnabled: te, dimensionsEnabled: N, promptEnabled: ne, rationaleEnabled: P, spellCheckEnabled: F, teacherInstructionsEnabled: re, titleEnabled: I } = e || {}, { prompt: ie, rationale: L, teacherInstructions: ae } = j || {};
|
|
3791
|
-
|
|
3791
|
+
pa("[render] model", e);
|
|
3792
3792
|
let oe = T && T.prompt, R = E && E.prompt, z = {
|
|
3793
3793
|
top: h.top,
|
|
3794
3794
|
right: h.right,
|
|
3795
3795
|
bottom: h.bottom,
|
|
3796
3796
|
left: h.left
|
|
3797
3797
|
}, se = {
|
|
3798
|
-
arrows: o.settings &&
|
|
3798
|
+
arrows: o.settings && ua(o.label, {
|
|
3799
3799
|
left: o.left,
|
|
3800
3800
|
right: o.right,
|
|
3801
3801
|
up: o.up,
|
|
@@ -3805,7 +3805,7 @@ var la = class extends G.Component {
|
|
|
3805
3805
|
padding: g.settings && $(g.label),
|
|
3806
3806
|
labelsEnabled: h.settings && $(h.label),
|
|
3807
3807
|
"language.enabled": O.settings && $(O.label, !0),
|
|
3808
|
-
language: O.settings && O.enabled &&
|
|
3808
|
+
language: O.settings && O.enabled && fa(k.label, k.options),
|
|
3809
3809
|
dimensionsEnabled: p.settings && $(p.label),
|
|
3810
3810
|
coordinatesOnHover: u.settings && $(u.label)
|
|
3811
3811
|
}, ce = {
|
|
@@ -3815,9 +3815,9 @@ var la = class extends G.Component {
|
|
|
3815
3815
|
promptEnabled: _.settings && $(_.label),
|
|
3816
3816
|
rationaleEnabled: v.settings && $(v.label),
|
|
3817
3817
|
spellCheckEnabled: x.settings && $(x.label),
|
|
3818
|
-
scoringType: y.settings &&
|
|
3818
|
+
scoringType: y.settings && la(y.label, ["dichotomous", "partial scoring"]),
|
|
3819
3819
|
rubricEnabled: D?.settings && $(D?.label),
|
|
3820
|
-
instruction: m.settings &&
|
|
3820
|
+
instruction: m.settings && da(m.label)
|
|
3821
3821
|
}, le = (e = {}) => ({
|
|
3822
3822
|
...l,
|
|
3823
3823
|
...e
|
|
@@ -3826,7 +3826,7 @@ var la = class extends G.Component {
|
|
|
3826
3826
|
extraCSSRules: M,
|
|
3827
3827
|
dimensions: d,
|
|
3828
3828
|
hideSettings: b,
|
|
3829
|
-
settings: /* @__PURE__ */ q(
|
|
3829
|
+
settings: /* @__PURE__ */ q(ca, {
|
|
3830
3830
|
model: e,
|
|
3831
3831
|
configuration: t,
|
|
3832
3832
|
onChangeModel: r,
|
|
@@ -3837,12 +3837,12 @@ var la = class extends G.Component {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
}),
|
|
3839
3839
|
children: [
|
|
3840
|
-
/* @__PURE__ */ q(
|
|
3840
|
+
/* @__PURE__ */ q(ha, {
|
|
3841
3841
|
component: "div",
|
|
3842
3842
|
variant: "body1",
|
|
3843
3843
|
children: m?.label || ""
|
|
3844
3844
|
}),
|
|
3845
|
-
re && /* @__PURE__ */ J(
|
|
3845
|
+
re && /* @__PURE__ */ J(ma, {
|
|
3846
3846
|
label: C.label,
|
|
3847
3847
|
children: [/* @__PURE__ */ q(_e, {
|
|
3848
3848
|
markup: e.teacherInstructions || "",
|
|
@@ -3857,9 +3857,9 @@ var la = class extends G.Component {
|
|
|
3857
3857
|
uploadSoundSupport: a,
|
|
3858
3858
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3859
3859
|
mathMlOptions: A
|
|
3860
|
-
}), ae && /* @__PURE__ */ q(
|
|
3860
|
+
}), ae && /* @__PURE__ */ q(ga, { children: ae })]
|
|
3861
3861
|
}),
|
|
3862
|
-
ne && /* @__PURE__ */ J(
|
|
3862
|
+
ne && /* @__PURE__ */ J(ma, {
|
|
3863
3863
|
label: _.label,
|
|
3864
3864
|
children: [/* @__PURE__ */ q(_e, {
|
|
3865
3865
|
markup: e.prompt,
|
|
@@ -3875,7 +3875,7 @@ var la = class extends G.Component {
|
|
|
3875
3875
|
uploadSoundSupport: a,
|
|
3876
3876
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3877
3877
|
mathMlOptions: A
|
|
3878
|
-
}), ie && /* @__PURE__ */ q(
|
|
3878
|
+
}), ie && /* @__PURE__ */ q(ga, { children: ie })]
|
|
3879
3879
|
}),
|
|
3880
3880
|
/* @__PURE__ */ q(Ui, {
|
|
3881
3881
|
authoring: s,
|
|
@@ -3892,7 +3892,7 @@ var la = class extends G.Component {
|
|
|
3892
3892
|
mathMlOptions: A,
|
|
3893
3893
|
removeIncompleteTool: ee
|
|
3894
3894
|
}),
|
|
3895
|
-
/* @__PURE__ */ q(
|
|
3895
|
+
/* @__PURE__ */ q(sa, {
|
|
3896
3896
|
availableTools: c,
|
|
3897
3897
|
errors: j,
|
|
3898
3898
|
model: e,
|
|
@@ -3900,7 +3900,7 @@ var la = class extends G.Component {
|
|
|
3900
3900
|
mathMlOptions: A,
|
|
3901
3901
|
removeIncompleteTool: ee
|
|
3902
3902
|
}),
|
|
3903
|
-
P && /* @__PURE__ */ J(
|
|
3903
|
+
P && /* @__PURE__ */ J(ma, {
|
|
3904
3904
|
label: v.label || "Rationale",
|
|
3905
3905
|
children: [/* @__PURE__ */ q(_e, {
|
|
3906
3906
|
markup: e.rationale || "",
|
|
@@ -3914,12 +3914,12 @@ var la = class extends G.Component {
|
|
|
3914
3914
|
uploadSoundSupport: a,
|
|
3915
3915
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3916
3916
|
mathMlOptions: A
|
|
3917
|
-
}), L && /* @__PURE__ */ q(
|
|
3917
|
+
}), L && /* @__PURE__ */ q(ga, { children: L })]
|
|
3918
3918
|
})
|
|
3919
3919
|
]
|
|
3920
3920
|
});
|
|
3921
3921
|
}
|
|
3922
|
-
},
|
|
3922
|
+
}, va = class e extends CustomEvent {
|
|
3923
3923
|
static {
|
|
3924
3924
|
this.TYPE = "model.updated";
|
|
3925
3925
|
}
|
|
@@ -3932,7 +3932,7 @@ var la = class extends G.Component {
|
|
|
3932
3932
|
}
|
|
3933
3933
|
}), this.update = t, this.reset = n;
|
|
3934
3934
|
}
|
|
3935
|
-
},
|
|
3935
|
+
}, ya = class e extends CustomEvent {
|
|
3936
3936
|
static {
|
|
3937
3937
|
this.TYPE = "delete.image";
|
|
3938
3938
|
}
|
|
@@ -3945,7 +3945,7 @@ var la = class extends G.Component {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
}), this.src = t, this.done = n;
|
|
3947
3947
|
}
|
|
3948
|
-
},
|
|
3948
|
+
}, ba = class e extends CustomEvent {
|
|
3949
3949
|
static {
|
|
3950
3950
|
this.TYPE = "insert.image";
|
|
3951
3951
|
}
|
|
@@ -3955,7 +3955,7 @@ var la = class extends G.Component {
|
|
|
3955
3955
|
detail: t
|
|
3956
3956
|
}), this.handler = t;
|
|
3957
3957
|
}
|
|
3958
|
-
},
|
|
3958
|
+
}, xa = class e extends CustomEvent {
|
|
3959
3959
|
static {
|
|
3960
3960
|
this.TYPE = "delete.sound";
|
|
3961
3961
|
}
|
|
@@ -3968,7 +3968,7 @@ var la = class extends G.Component {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}), this.src = t, this.done = n;
|
|
3970
3970
|
}
|
|
3971
|
-
},
|
|
3971
|
+
}, Sa = class e extends CustomEvent {
|
|
3972
3972
|
static {
|
|
3973
3973
|
this.TYPE = "insert.sound";
|
|
3974
3974
|
}
|
|
@@ -3978,7 +3978,7 @@ var la = class extends G.Component {
|
|
|
3978
3978
|
detail: t
|
|
3979
3979
|
}), this.handler = t;
|
|
3980
3980
|
}
|
|
3981
|
-
},
|
|
3981
|
+
}, Ca = [
|
|
3982
3982
|
"circle",
|
|
3983
3983
|
"line",
|
|
3984
3984
|
"label",
|
|
@@ -3989,7 +3989,7 @@ var la = class extends G.Component {
|
|
|
3989
3989
|
"segment",
|
|
3990
3990
|
"sine",
|
|
3991
3991
|
"vector"
|
|
3992
|
-
],
|
|
3992
|
+
], wa = {
|
|
3993
3993
|
model: {
|
|
3994
3994
|
answers: { correctAnswer: {
|
|
3995
3995
|
name: "Correct Answer",
|
|
@@ -4036,7 +4036,7 @@ var la = class extends G.Component {
|
|
|
4036
4036
|
teacherInstructionsEnabled: !0,
|
|
4037
4037
|
title: "",
|
|
4038
4038
|
titleEnabled: !0,
|
|
4039
|
-
toolbarTools:
|
|
4039
|
+
toolbarTools: Ca
|
|
4040
4040
|
},
|
|
4041
4041
|
configuration: {
|
|
4042
4042
|
baseInputConfiguration: {
|
|
@@ -4048,7 +4048,7 @@ var la = class extends G.Component {
|
|
|
4048
4048
|
showParagraphs: { disabled: !1 },
|
|
4049
4049
|
separateParagraphs: { disabled: !0 }
|
|
4050
4050
|
},
|
|
4051
|
-
availableTools:
|
|
4051
|
+
availableTools: Ca,
|
|
4052
4052
|
authoring: {
|
|
4053
4053
|
settings: !1,
|
|
4054
4054
|
label: "Customize Grid Setup",
|
|
@@ -4389,17 +4389,17 @@ var la = class extends G.Component {
|
|
|
4389
4389
|
},
|
|
4390
4390
|
removeIncompleteTool: !1
|
|
4391
4391
|
}
|
|
4392
|
-
},
|
|
4392
|
+
}, Ta = (0, zt.default)("pie-elements:graphing:configure"), Ea = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), Da = class t extends HTMLElement {
|
|
4393
4393
|
static createDefaultModel = (e = {}) => {
|
|
4394
4394
|
let t = {
|
|
4395
|
-
...
|
|
4395
|
+
...wa.model,
|
|
4396
4396
|
...e
|
|
4397
4397
|
}, { answers: n = {}, domain: r = {}, defaultTool: i, graph: a = {}, range: o = {}, standardGrid: s, toolbarTools: c } = t, l = (c || []).filter((e) => e !== "label"), u = i || l.length && l[0] || "";
|
|
4398
4398
|
return {
|
|
4399
4399
|
...t,
|
|
4400
4400
|
answers: n && n.correctAnswer && {
|
|
4401
4401
|
correctAnswer: n.correctAnswer,
|
|
4402
|
-
...
|
|
4402
|
+
...Ea(n)
|
|
4403
4403
|
} || n,
|
|
4404
4404
|
defaultTool: u,
|
|
4405
4405
|
range: s && {
|
|
@@ -4416,7 +4416,7 @@ var la = class extends G.Component {
|
|
|
4416
4416
|
};
|
|
4417
4417
|
};
|
|
4418
4418
|
constructor() {
|
|
4419
|
-
super(), this._root = null, this._model = t.createDefaultModel(), this._configuration =
|
|
4419
|
+
super(), this._root = null, this._model = t.createDefaultModel(), this._configuration = wa.configuration;
|
|
4420
4420
|
}
|
|
4421
4421
|
set model(n) {
|
|
4422
4422
|
this._model = t.createDefaultModel(n), this._modelCopy = e(this._model), this._render();
|
|
@@ -4427,31 +4427,31 @@ var la = class extends G.Component {
|
|
|
4427
4427
|
};
|
|
4428
4428
|
set configuration(e) {
|
|
4429
4429
|
this._configuration = {
|
|
4430
|
-
...
|
|
4430
|
+
...wa.configuration,
|
|
4431
4431
|
...e
|
|
4432
4432
|
}, this.resetModelAfterConfigurationIsSet(), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
|
|
4433
4433
|
}
|
|
4434
4434
|
onModelChanged = (e) => {
|
|
4435
|
-
this._model = e, this._render(),
|
|
4435
|
+
this._model = e, this._render(), Ta("[onModelChanged]: ", this._model), this.dispatchEvent(new va(this._model));
|
|
4436
4436
|
};
|
|
4437
4437
|
onConfigurationChanged = (e) => {
|
|
4438
4438
|
this._configuration = e, this._render();
|
|
4439
4439
|
};
|
|
4440
4440
|
insertImage = (e) => {
|
|
4441
|
-
this.dispatchEvent(new
|
|
4441
|
+
this.dispatchEvent(new ba(e));
|
|
4442
4442
|
};
|
|
4443
4443
|
onDeleteImage = (e, t) => {
|
|
4444
|
-
this.dispatchEvent(new
|
|
4444
|
+
this.dispatchEvent(new ya(e, t));
|
|
4445
4445
|
};
|
|
4446
4446
|
insertSound(e) {
|
|
4447
|
-
this.dispatchEvent(new
|
|
4447
|
+
this.dispatchEvent(new Sa(e));
|
|
4448
4448
|
}
|
|
4449
4449
|
onDeleteSound(e, t) {
|
|
4450
|
-
this.dispatchEvent(new
|
|
4450
|
+
this.dispatchEvent(new xa(e, t));
|
|
4451
4451
|
}
|
|
4452
4452
|
_render() {
|
|
4453
4453
|
if (this._model) {
|
|
4454
|
-
let e = K.createElement(
|
|
4454
|
+
let e = K.createElement(_a, {
|
|
4455
4455
|
onModelChanged: this.onModelChanged,
|
|
4456
4456
|
onConfigurationChanged: this.onConfigurationChanged,
|
|
4457
4457
|
model: this._model,
|
|
@@ -4470,11 +4470,14 @@ var la = class extends G.Component {
|
|
|
4470
4470
|
});
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
|
+
connectedCallback() {
|
|
4474
|
+
this._render();
|
|
4475
|
+
}
|
|
4473
4476
|
disconnectedCallback() {
|
|
4474
|
-
this._root
|
|
4477
|
+
this._root &&= (this._root.unmount(), null);
|
|
4475
4478
|
}
|
|
4476
4479
|
};
|
|
4477
4480
|
//#endregion
|
|
4478
|
-
export {
|
|
4481
|
+
export { Da as default };
|
|
4479
4482
|
|
|
4480
4483
|
//# sourceMappingURL=index.js.map
|