@doenet/doenetml 0.6.0-alpha4 → 0.6.0-alpha5
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/{ActionButtonGroup-31bfb1b3.js → ActionButtonGroup-cce60f98.js} +15 -16
- package/dist/{ToggleButton-0de1d1ad.js → ToggleButton-67a72bb5.js} +7 -8
- package/dist/alert-33a70a3d.js +12 -0
- package/dist/{angle-6303c120.js → angle-27255fe0.js} +4 -7
- package/dist/{answer-b6e2b76b.js → answer-2afd88fa.js} +22 -24
- package/dist/{asList-f29800e2.js → asList-b1a434a8.js} +5 -7
- package/dist/blockQuote-8da178e1.js +22 -0
- package/dist/boolean-b742fe48.js +12 -0
- package/dist/{booleanInput-aa010bde.js → booleanInput-9a61bf21.js} +13 -15
- package/dist/booleanInput.css +1 -0
- package/dist/{button-11f3ce47.js → button-0f49bac0.js} +15 -18
- package/dist/c-f11cfb55.js +12 -0
- package/dist/callAction-45217748.js +12 -0
- package/dist/{cell-c960b90f.js → cell-0e133fa0.js} +5 -7
- package/dist/{chart-023bde15.js → chart-3fb05dec.js} +15 -17
- package/dist/{choiceInput-de46af5c.js → choiceInput-06f9fe0d.js} +42 -43
- package/dist/choiceInput.css +1 -0
- package/dist/{circle-f81b0ce2.js → circle-58b448e4.js} +4 -7
- package/dist/{cobwebPolyline-36398f33.js → cobwebPolyline-97c318ac.js} +4 -7
- package/dist/{codeEditor-fd87d345.js → codeEditor-a6457ef2.js} +19 -21
- package/dist/{codeViewer-c43574e8.js → codeViewer-861c4813.js} +7 -9
- package/dist/containerBlock-c729c3c7.js +22 -0
- package/dist/containerInline-5f5c3422.js +12 -0
- package/dist/{contentBrowser-a8846036.js → contentBrowser-df4ee62e.js} +14 -16
- package/dist/{contentPicker-5d94aee4.js → contentPicker-d3e4b364.js} +9 -11
- package/dist/{curve-3c32f52c.js → curve-17572fc3.js} +4 -7
- package/dist/doenetml.js +15 -18
- package/dist/ellipsis-28863ba2.js +12 -0
- package/dist/em-65a27a36.js +12 -0
- package/dist/{embed-d76b6d41.js → embed-b47e5ea5.js} +9 -11
- package/dist/{feedback-ba6007b5.js → feedback-3bbde9f2.js} +16 -18
- package/dist/{figure-dba5c46d.js → figure-7d10aba0.js} +3 -5
- package/dist/{footnote-2d1dd0b3.js → footnote-c70ce2c5.js} +7 -9
- package/dist/{graph-6d43a295.js → graph-d69449f2.js} +1 -3
- package/dist/{hint-49a1f4dd.js → hint-c8e96cfa.js} +19 -21
- package/dist/{image-08c5648a.js → image-19660806.js} +4 -6
- package/dist/{index-44cba13f.js → index-7481592c.js} +1 -1
- package/dist/{index-1fe56d63.js → index-7912373f.js} +89788 -88658
- package/dist/{index-89409889.js → index-9317ebc1.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/{label-c4255bb7.js → label-b9c6a62a.js} +19 -22
- package/dist/{legend-8a6252a7.js → legend-1fd4a6df.js} +8 -11
- package/dist/{line-d1d8ea00.js → line-d9273eb3.js} +17 -20
- package/dist/{lineSegment-15ae7c77.js → lineSegment-d8c96e17.js} +4 -7
- package/dist/{list-7404c656.js → list-f0b49f78.js} +11 -13
- package/dist/{lq-5ade7be1.js → lq-90e8a033.js} +1 -3
- package/dist/lsq-8cac08e0.js +9 -0
- package/dist/{math-f332495e.js → math-8f654445.js} +4 -7
- package/dist/{mathInput-dba9b45f.js → mathInput-dbd1ba40.js} +6 -9
- package/dist/mathInput.css +1 -0
- package/dist/{mathInputog-4d940ee5.js → mathInputog-6d84c7f3.js} +2 -3
- package/dist/{mathList-40fa12ed.js → mathList-b458bb31.js} +9 -11
- package/dist/{matrixInput-88797a87.js → matrixInput-f651b375.js} +6 -9
- package/dist/mdash-6806bcce.js +9 -0
- package/dist/nbsp-fcc79f6e.js +9 -0
- package/dist/ndash-c720354c.js +9 -0
- package/dist/{number-3bbc6035.js → number-79d34feb.js} +4 -7
- package/dist/{numberList-1327be8e.js → numberList-d50ce33a.js} +6 -8
- package/dist/{orbitalDiagram-19b6f7cc.js → orbitalDiagram-4b563b6b.js} +32 -34
- package/dist/{orbitalDiagramInput-3338fef1.js → orbitalDiagramInput-76732581.js} +11 -13
- package/dist/p-5232cada.js +22 -0
- package/dist/{paginatorControls-fa58eb04.js → paginatorControls-b70730d0.js} +4 -6
- package/dist/{pegboard-a1474de3.js → pegboard-79f9c901.js} +14 -17
- package/dist/{point-1a6406f1.js → point-d3f0e709.js} +4 -7
- package/dist/{polygon-beb8998f.js → polygon-451f6aab.js} +4 -7
- package/dist/{polyline-6909b72f.js → polyline-b8610944.js} +4 -7
- package/dist/pre-f5c6b49a.js +22 -0
- package/dist/q-ea153de6.js +14 -0
- package/dist/{ray-924469a6.js → ray-8ebc8e35.js} +19 -22
- package/dist/{ref-c04324bd.js → ref-3f4e54aa.js} +18 -20
- package/dist/{regionBetweenCurveXAxis-88c574b3.js → regionBetweenCurveXAxis-fa31ef83.js} +9 -12
- package/dist/{renderDoenetML-30a09380.js → renderDoenetML-5fbe5a5f.js} +4 -6
- package/dist/{row-9d0dd9b6.js → row-3a111c29.js} +5 -7
- package/dist/{rq-8871d38f.js → rq-be748d03.js} +3 -5
- package/dist/rsq-2ec34103.js +9 -0
- package/dist/{section-62b11261.js → section-5a53d600.js} +32 -34
- package/dist/{sideBySide-f4409af1.js → sideBySide-8b21239b.js} +7 -9
- package/dist/{slider-d2d21eec.js → slider-bc9bd636.js} +36 -38
- package/dist/{solution-24ca310d.js → solution-61675899.js} +26 -28
- package/dist/{spreadsheet-b22ce017.js → spreadsheet-8f61699e.js} +2 -2
- package/dist/spreadsheet.css +41 -0
- package/dist/sq-08ee83a3.js +14 -0
- package/dist/{subsetOfRealsInput-f1530700.js → subsetOfRealsInput-a151c105.js} +46 -48
- package/dist/{summaryStatistics-5328d69f.js → summaryStatistics-dc26ed99.js} +6 -8
- package/dist/{table-f0250db5.js → table-48b11b9c.js} +9 -11
- package/dist/{tabular-14305157.js → tabular-f3c4f0f4.js} +7 -9
- package/dist/tag-7ef067e8.js +17 -0
- package/dist/{text-7df7d444.js → text-bc66e68e.js} +50 -53
- package/dist/{textInput-abbe8a72.js → textInput-cb97b103.js} +28 -30
- package/dist/textList-4fa2b394.js +20 -0
- package/dist/{triggerSet-88520bfe.js → triggerSet-47fe087c.js} +7 -9
- package/dist/updateValue-2620a937.js +20 -0
- package/dist/{vector-3d487c1f.js → vector-1aaf00e9.js} +4 -7
- package/dist/{video-438560fd.js → video-7b44cfcf.js} +14 -16
- package/package.json +6 -9
- package/dist/alert-2f90cc72.js +0 -14
- package/dist/blockQuote-4be59e9a.js +0 -24
- package/dist/boolean-4cad6c61.js +0 -14
- package/dist/c-0431b8c4.js +0 -14
- package/dist/callAction-845e6eea.js +0 -14
- package/dist/containerBlock-69ae5478.js +0 -24
- package/dist/containerInline-8ec824bc.js +0 -14
- package/dist/doenetml.umd.cjs +0 -20897
- package/dist/ellipsis-fef08d11.js +0 -14
- package/dist/em-e6a08864.js +0 -14
- package/dist/lsq-734012bd.js +0 -11
- package/dist/mathInput-4ed993c7.js +0 -1
- package/dist/mdash-df0e40e7.js +0 -11
- package/dist/nbsp-ab2fca18.js +0 -11
- package/dist/ndash-3b71f713.js +0 -11
- package/dist/p-9d23a34a.js +0 -24
- package/dist/pre-df87553f.js +0 -24
- package/dist/q-146f150b.js +0 -16
- package/dist/rsq-7fff414a.js +0 -11
- package/dist/sq-140828b8.js +0 -16
- package/dist/style.css +0 -41
- package/dist/tag-cd067754.js +0 -19
- package/dist/textList-0afecfe3.js +0 -22
- package/dist/updateValue-b7933086.js +0 -22
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { u as R, d as x, e as S, h as p, j as l } from "./index-
|
|
1
|
+
import { u as R, d as x, e as S, h as p, j as l } from "./index-7912373f.js";
|
|
2
2
|
import F, { useContext as O, useRef as v, useEffect as L } from "react";
|
|
3
|
-
import { BoardContext as _, LINE_LAYER_OFFSET as y } from "./graph-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const G = F.memo(function h(m) {
|
|
8
|
-
let { name: j, id: o, SVs: e } = R(m);
|
|
3
|
+
import { BoardContext as _, LINE_LAYER_OFFSET as y } from "./graph-d69449f2.js";
|
|
4
|
+
const E = F.memo(function h(b) {
|
|
5
|
+
let { name: j, id: o, SVs: e } = R(b);
|
|
9
6
|
h.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
const t = O(_);
|
|
11
8
|
let n = v(null), r = v(null);
|
|
@@ -13,7 +10,7 @@ const G = F.memo(function h(m) {
|
|
|
13
10
|
L(() => () => {
|
|
14
11
|
r.current !== null && s();
|
|
15
12
|
}, []);
|
|
16
|
-
function
|
|
13
|
+
function g() {
|
|
17
14
|
if (!e.haveFunction || e.boundaryValues.length !== 2 || !e.boundaryValues.every(Number.isFinite))
|
|
18
15
|
return null;
|
|
19
16
|
let i = c === "dark" ? e.selectedStyle.fillColorDarkMode : e.selectedStyle.fillColor, u = {
|
|
@@ -44,16 +41,16 @@ const G = F.memo(function h(m) {
|
|
|
44
41
|
}
|
|
45
42
|
if (t) {
|
|
46
43
|
if (r.current === null)
|
|
47
|
-
r.current =
|
|
44
|
+
r.current = g();
|
|
48
45
|
else if (!e.haveFunction || e.boundaryValues.length !== 2 || !e.boundaryValues.every(Number.isFinite))
|
|
49
46
|
s();
|
|
50
47
|
else {
|
|
51
48
|
let i = p(e.fDefinition);
|
|
52
49
|
n.current.Y = i, r.current.visProp.visible = !e.hidden, r.current.visPropCalc.visible = !e.hidden;
|
|
53
|
-
let [u, a] = e.boundaryValues, [
|
|
50
|
+
let [u, a] = e.boundaryValues, [m, C] = e.boundaryValues.map(i);
|
|
54
51
|
r.current.curveLeft.coords.setCoordinates(JXG.COORDS_BY_USER, [
|
|
55
52
|
u,
|
|
56
|
-
|
|
53
|
+
m
|
|
57
54
|
]), r.current.curveRight.coords.setCoordinates(JXG.COORDS_BY_USER, [
|
|
58
55
|
a,
|
|
59
56
|
C
|
|
@@ -68,5 +65,5 @@ const G = F.memo(function h(m) {
|
|
|
68
65
|
return e.hidden ? null : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx("a", { name: o }) });
|
|
69
66
|
});
|
|
70
67
|
export {
|
|
71
|
-
|
|
68
|
+
E as default
|
|
72
69
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { u as n, j as s, V as u,
|
|
1
|
+
import { u as n, j as s, V as u, J as c } from "./index-7912373f.js";
|
|
2
2
|
import d, { useEffect as f } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const w = d.memo(function(o) {
|
|
6
|
-
let { name: g, id: i, SVs: t, children: m, actions: e, callAction: a } = n(o), r = (l) => {
|
|
3
|
+
const p = d.memo(function(o) {
|
|
4
|
+
let { name: g, id: i, SVs: t, children: h, actions: e, callAction: a } = n(o), r = (l) => {
|
|
7
5
|
e.recordVisibilityChange && a({
|
|
8
6
|
action: e.recordVisibilityChange,
|
|
9
7
|
args: { isVisible: l }
|
|
@@ -37,5 +35,5 @@ const w = d.memo(function(o) {
|
|
|
37
35
|
) });
|
|
38
36
|
});
|
|
39
37
|
export {
|
|
40
|
-
|
|
38
|
+
p as default
|
|
41
39
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { u as
|
|
1
|
+
import { u as n, j as o } from "./index-7912373f.js";
|
|
2
2
|
import d from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const c = d.memo(function(i) {
|
|
6
|
-
let { name: m, id: r, SVs: e, children: l } = o(i);
|
|
3
|
+
const a = d.memo(function(i) {
|
|
4
|
+
let { name: m, id: r, SVs: e, children: l } = n(i);
|
|
7
5
|
if (e.hidden)
|
|
8
6
|
return null;
|
|
9
7
|
let t = {};
|
|
10
|
-
return e.valign !== null && (t.verticalAlign = e.valign), e.left !== "none" && (t.borderLeftStyle = "solid", e.left === "minor" ? t.borderLeftWidth = "thin" : e.left === "medium" ? t.borderLeftWidth = "medium" : t.borderLeftWidth = "thick"), /* @__PURE__ */
|
|
8
|
+
return e.valign !== null && (t.verticalAlign = e.valign), e.left !== "none" && (t.borderLeftStyle = "solid", e.left === "minor" ? t.borderLeftWidth = "thin" : e.left === "medium" ? t.borderLeftWidth = "medium" : t.borderLeftWidth = "thick"), /* @__PURE__ */ o.jsx("tr", { id: r, style: t, children: l });
|
|
11
9
|
});
|
|
12
10
|
export {
|
|
13
|
-
|
|
11
|
+
a as default
|
|
14
12
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { u as n, j as e } from "./index-
|
|
1
|
+
import { u as n, j as e } from "./index-7912373f.js";
|
|
2
2
|
import o from "react";
|
|
3
|
-
|
|
4
|
-
import "styled-components";
|
|
5
|
-
const f = o.memo(function(r) {
|
|
3
|
+
const m = o.memo(function(r) {
|
|
6
4
|
let { SVs: t } = n(r, !1);
|
|
7
5
|
return t.hidden ? null : /* @__PURE__ */ e.jsx(e.Fragment, { children: "”" });
|
|
8
6
|
});
|
|
9
7
|
export {
|
|
10
|
-
|
|
8
|
+
m as default
|
|
11
9
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { u as R, j as e, F as p,
|
|
1
|
+
import { u as R, j as e, F as p, K as B, N as w, V as f, f as S, a as A, b as V, c as T } from "./index-7912373f.js";
|
|
2
2
|
import _, { useEffect as F, useRef as L } from "react";
|
|
3
|
-
|
|
4
|
-
import "styled-components";
|
|
5
|
-
const W = _.memo(function(v) {
|
|
3
|
+
const G = _.memo(function(v) {
|
|
6
4
|
var g;
|
|
7
|
-
let { name:
|
|
5
|
+
let { name: N, id: t, SVs: i, children: l, actions: x, callAction: m } = R(v), b = (r) => {
|
|
8
6
|
m({
|
|
9
7
|
action: x.recordVisibilityChange,
|
|
10
8
|
args: { isVisible: r }
|
|
@@ -23,28 +21,28 @@ const W = _.memo(function(v) {
|
|
|
23
21
|
};
|
|
24
22
|
let j = () => m({
|
|
25
23
|
action: x.submitAllAnswers
|
|
26
|
-
}),
|
|
24
|
+
}), n;
|
|
27
25
|
if (i.titleChildName) {
|
|
28
26
|
for (let [r, h] of l.entries())
|
|
29
27
|
if (((g = h == null ? void 0 : h.props) == null ? void 0 : g.componentInstructions.componentName) === i.titleChildName) {
|
|
30
|
-
|
|
28
|
+
n = l[r], l.splice(r, 1);
|
|
31
29
|
break;
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
|
-
|
|
32
|
+
n ? n = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
35
33
|
i.titlePrefix,
|
|
36
|
-
|
|
37
|
-
] }) : i.inAList || (
|
|
38
|
-
let a = null, u =
|
|
39
|
-
i.collapsible && (i.open ?
|
|
34
|
+
n
|
|
35
|
+
] }) : i.inAList || (n = i.title);
|
|
36
|
+
let a = null, u = t + "_title";
|
|
37
|
+
i.collapsible && (i.open ? n = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
40
38
|
/* @__PURE__ */ e.jsx(p, { icon: B }),
|
|
41
39
|
" ",
|
|
42
|
-
|
|
40
|
+
n,
|
|
43
41
|
" (click to close)"
|
|
44
|
-
] }) :
|
|
42
|
+
] }) : n = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
45
43
|
/* @__PURE__ */ e.jsx(p, { icon: w }),
|
|
46
44
|
" ",
|
|
47
|
-
|
|
45
|
+
n,
|
|
48
46
|
" (click to open)"
|
|
49
47
|
] }));
|
|
50
48
|
let c = {};
|
|
@@ -53,22 +51,22 @@ const W = _.memo(function(v) {
|
|
|
53
51
|
marginBlockEnd: 0
|
|
54
52
|
}), i.level) {
|
|
55
53
|
case 0:
|
|
56
|
-
a = /* @__PURE__ */ e.jsx("h1", { id: u, style: c, children:
|
|
54
|
+
a = /* @__PURE__ */ e.jsx("h1", { id: u, style: c, children: n });
|
|
57
55
|
break;
|
|
58
56
|
case 1:
|
|
59
|
-
a = /* @__PURE__ */ e.jsx("h2", { id: u, style: c, children:
|
|
57
|
+
a = /* @__PURE__ */ e.jsx("h2", { id: u, style: c, children: n });
|
|
60
58
|
break;
|
|
61
59
|
case 2:
|
|
62
|
-
a = /* @__PURE__ */ e.jsx("h3", { id: u, style: c, children:
|
|
60
|
+
a = /* @__PURE__ */ e.jsx("h3", { id: u, style: c, children: n });
|
|
63
61
|
break;
|
|
64
62
|
case 3:
|
|
65
|
-
a = /* @__PURE__ */ e.jsx("h4", { id: u, style: c, children:
|
|
63
|
+
a = /* @__PURE__ */ e.jsx("h4", { id: u, style: c, children: n });
|
|
66
64
|
break;
|
|
67
65
|
case 4:
|
|
68
|
-
a = /* @__PURE__ */ e.jsx("h5", { id: u, style: c, children:
|
|
66
|
+
a = /* @__PURE__ */ e.jsx("h5", { id: u, style: c, children: n });
|
|
69
67
|
break;
|
|
70
68
|
default:
|
|
71
|
-
a = /* @__PURE__ */ e.jsx("h6", { id: u, style: c, children:
|
|
69
|
+
a = /* @__PURE__ */ e.jsx("h6", { id: u, style: c, children: n });
|
|
72
70
|
break;
|
|
73
71
|
}
|
|
74
72
|
let s = null;
|
|
@@ -87,7 +85,7 @@ const W = _.memo(function(v) {
|
|
|
87
85
|
if (i.showCorrectness || (h = i.submitLabelNoCorrectness), s = /* @__PURE__ */ e.jsxs(
|
|
88
86
|
"button",
|
|
89
87
|
{
|
|
90
|
-
id:
|
|
88
|
+
id: t + "_submit",
|
|
91
89
|
tabIndex: "0",
|
|
92
90
|
style: r,
|
|
93
91
|
onClick: j,
|
|
@@ -102,22 +100,22 @@ const W = _.memo(function(v) {
|
|
|
102
100
|
}
|
|
103
101
|
), i.showCorrectness) {
|
|
104
102
|
if (o.current === "correct")
|
|
105
|
-
r.backgroundColor = "var(--mainGreen)", s = /* @__PURE__ */ e.jsxs("span", { id:
|
|
103
|
+
r.backgroundColor = "var(--mainGreen)", s = /* @__PURE__ */ e.jsxs("span", { id: t + "_correct", style: r, children: [
|
|
106
104
|
/* @__PURE__ */ e.jsx(p, { icon: A }),
|
|
107
105
|
" Correct"
|
|
108
106
|
] });
|
|
109
107
|
else if (o.current === "incorrect")
|
|
110
|
-
r.backgroundColor = "var(--mainRed)", s = /* @__PURE__ */ e.jsxs("span", { id:
|
|
108
|
+
r.backgroundColor = "var(--mainRed)", s = /* @__PURE__ */ e.jsxs("span", { id: t + "_incorrect", style: r, children: [
|
|
111
109
|
/* @__PURE__ */ e.jsx(p, { icon: V }),
|
|
112
110
|
" Incorrect"
|
|
113
111
|
] });
|
|
114
112
|
else if (o.current === "partialcorrect") {
|
|
115
113
|
r.backgroundColor = "var(--mainYellow)";
|
|
116
114
|
let C = `${Math.round(i.creditAchieved * 100)}% Correct`;
|
|
117
|
-
s = /* @__PURE__ */ e.jsx("span", { id:
|
|
115
|
+
s = /* @__PURE__ */ e.jsx("span", { id: t + "_partial", style: r, children: C });
|
|
118
116
|
}
|
|
119
117
|
} else
|
|
120
|
-
o.current !== "unvalidated" && (r.backgroundColor = "var(--mainPurple)", s = /* @__PURE__ */ e.jsxs("span", { id:
|
|
118
|
+
o.current !== "unvalidated" && (r.backgroundColor = "var(--mainPurple)", s = /* @__PURE__ */ e.jsxs("span", { id: t + "_saved", style: r, children: [
|
|
121
119
|
/* @__PURE__ */ e.jsx(p, { icon: T }),
|
|
122
120
|
" Response Saved"
|
|
123
121
|
] }));
|
|
@@ -125,7 +123,7 @@ const W = _.memo(function(v) {
|
|
|
125
123
|
}
|
|
126
124
|
i.asList && (l = /* @__PURE__ */ e.jsx("ol", { children: l.map((r) => /* @__PURE__ */ e.jsx("li", { children: r })) }));
|
|
127
125
|
let d = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
128
|
-
/* @__PURE__ */ e.jsx("a", { name:
|
|
126
|
+
/* @__PURE__ */ e.jsx("a", { name: t }),
|
|
129
127
|
a,
|
|
130
128
|
l,
|
|
131
129
|
s
|
|
@@ -159,7 +157,7 @@ const W = _.memo(function(v) {
|
|
|
159
157
|
action: i.open ? x.closeSection : x.revealSection
|
|
160
158
|
}),
|
|
161
159
|
children: [
|
|
162
|
-
/* @__PURE__ */ e.jsx("a", { name:
|
|
160
|
+
/* @__PURE__ */ e.jsx("a", { name: t }),
|
|
163
161
|
a
|
|
164
162
|
]
|
|
165
163
|
}
|
|
@@ -189,7 +187,7 @@ const W = _.memo(function(v) {
|
|
|
189
187
|
borderTopRightRadius: "var(--mainBorderRadius)"
|
|
190
188
|
},
|
|
191
189
|
children: [
|
|
192
|
-
/* @__PURE__ */ e.jsx("a", { name:
|
|
190
|
+
/* @__PURE__ */ e.jsx("a", { name: t }),
|
|
193
191
|
a
|
|
194
192
|
]
|
|
195
193
|
}
|
|
@@ -208,7 +206,7 @@ const W = _.memo(function(v) {
|
|
|
208
206
|
{
|
|
209
207
|
partialVisibility: !0,
|
|
210
208
|
onChange: b,
|
|
211
|
-
children: /* @__PURE__ */ e.jsxs("aside", { id:
|
|
209
|
+
children: /* @__PURE__ */ e.jsxs("aside", { id: t, style: { margin: "12px 0" }, children: [
|
|
212
210
|
" ",
|
|
213
211
|
d,
|
|
214
212
|
" "
|
|
@@ -221,7 +219,7 @@ const W = _.memo(function(v) {
|
|
|
221
219
|
{
|
|
222
220
|
partialVisibility: !0,
|
|
223
221
|
onChange: b,
|
|
224
|
-
children: /* @__PURE__ */ e.jsxs("article", { id:
|
|
222
|
+
children: /* @__PURE__ */ e.jsxs("article", { id: t, style: { margin: "12px 0" }, children: [
|
|
225
223
|
" ",
|
|
226
224
|
d,
|
|
227
225
|
" "
|
|
@@ -234,7 +232,7 @@ const W = _.memo(function(v) {
|
|
|
234
232
|
{
|
|
235
233
|
partialVisibility: !0,
|
|
236
234
|
onChange: b,
|
|
237
|
-
children: /* @__PURE__ */ e.jsxs("div", { id:
|
|
235
|
+
children: /* @__PURE__ */ e.jsxs("div", { id: t, style: { margin: "12px 0" }, children: [
|
|
238
236
|
" ",
|
|
239
237
|
d,
|
|
240
238
|
" "
|
|
@@ -249,7 +247,7 @@ const W = _.memo(function(v) {
|
|
|
249
247
|
{
|
|
250
248
|
partialVisibility: !0,
|
|
251
249
|
onChange: b,
|
|
252
|
-
children: /* @__PURE__ */ e.jsxs("section", { id:
|
|
250
|
+
children: /* @__PURE__ */ e.jsxs("section", { id: t, style: { margin: "12px 0" }, children: [
|
|
253
251
|
" ",
|
|
254
252
|
d,
|
|
255
253
|
" "
|
|
@@ -259,5 +257,5 @@ const W = _.memo(function(v) {
|
|
|
259
257
|
}
|
|
260
258
|
});
|
|
261
259
|
export {
|
|
262
|
-
|
|
260
|
+
G as default
|
|
263
261
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { u as y, j as t, V as x } from "./index-
|
|
1
|
+
import { u as y, j as t, V as x } from "./index-7912373f.js";
|
|
2
2
|
import V, { useEffect as b } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const W = V.memo(function(g) {
|
|
6
|
-
let { name: C, id: n, SVs: i, children: s, actions: r, callAction: a } = y(g), m = (e) => {
|
|
3
|
+
const w = V.memo(function(g) {
|
|
4
|
+
let { name: C, id: n, SVs: i, children: s, actions: r, callAction: a } = y(g), c = (e) => {
|
|
7
5
|
a({
|
|
8
6
|
action: r.recordVisibilityChange,
|
|
9
7
|
args: { isVisible: e }
|
|
@@ -17,9 +15,9 @@ const W = V.memo(function(g) {
|
|
|
17
15
|
}, []), i.hidden)
|
|
18
16
|
return null;
|
|
19
17
|
let l = [];
|
|
20
|
-
const
|
|
18
|
+
const m = i.margins[0], f = i.margins[1], u = s.length;
|
|
21
19
|
for (let [e, d] of s.entries()) {
|
|
22
|
-
let p = i.widths[e], o =
|
|
20
|
+
let p = i.widths[e], o = m, h = f;
|
|
23
21
|
e > 0 && (o += i.gapWidth / 2), e < u - 1 && (h += i.gapWidth / 2), l.push(
|
|
24
22
|
/* @__PURE__ */ t.jsx(
|
|
25
23
|
"span",
|
|
@@ -35,7 +33,7 @@ const W = V.memo(function(g) {
|
|
|
35
33
|
)
|
|
36
34
|
);
|
|
37
35
|
}
|
|
38
|
-
return /* @__PURE__ */ t.jsx(x, { partialVisibility: !0, onChange:
|
|
36
|
+
return /* @__PURE__ */ t.jsx(x, { partialVisibility: !0, onChange: c, children: /* @__PURE__ */ t.jsxs(
|
|
39
37
|
"div",
|
|
40
38
|
{
|
|
41
39
|
id: n,
|
|
@@ -48,5 +46,5 @@ const W = V.memo(function(g) {
|
|
|
48
46
|
) });
|
|
49
47
|
});
|
|
50
48
|
export {
|
|
51
|
-
|
|
49
|
+
w as default
|
|
52
50
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { u as ne, R as re, r as se, j as l, E, M as H, C as ie } from "./index-
|
|
1
|
+
import { u as ne, R as re, r as se, j as l, s as D, G as E, M as H, C as ie } from "./index-7912373f.js";
|
|
2
2
|
import ue, { useRef as K, useState as B, useEffect as J } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { A as q } from "./ActionButtonGroup-31bfb1b3.js";
|
|
5
|
-
import "react-dom";
|
|
3
|
+
import { A as q } from "./ActionButtonGroup-cce60f98.js";
|
|
6
4
|
let I = (a, u) => ie.round_numbers_to_decimals(a, u).tree;
|
|
7
5
|
const Q = D.div`
|
|
8
6
|
width: fit-content;
|
|
@@ -50,17 +48,17 @@ const Q = D.div`
|
|
|
50
48
|
user-select: none;
|
|
51
49
|
`;
|
|
52
50
|
function S(a, u, b, t) {
|
|
53
|
-
let e, s = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)),
|
|
54
|
-
s === 0 && (
|
|
55
|
-
let O = 5 -
|
|
51
|
+
let e, s = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), m = Math.round(Math.log(s) / Math.log(10));
|
|
52
|
+
s === 0 && (m = 1);
|
|
53
|
+
let O = 5 - m;
|
|
56
54
|
if (a.length === 0) {
|
|
57
55
|
let r = [
|
|
58
56
|
I(t.firstItem, O),
|
|
59
57
|
I(t.lastItem, O)
|
|
60
58
|
], n = Math.min(t.numItems, 100), c = Math.floor(t.numItems / n);
|
|
61
|
-
for (let
|
|
59
|
+
for (let h = 1; h < n; h++)
|
|
62
60
|
r.push(
|
|
63
|
-
I(t.from + t.step *
|
|
61
|
+
I(t.from + t.step * h * c, O)
|
|
64
62
|
);
|
|
65
63
|
e = F(r);
|
|
66
64
|
} else {
|
|
@@ -70,9 +68,9 @@ function S(a, u, b, t) {
|
|
|
70
68
|
const M = t.numItems;
|
|
71
69
|
if (t.width.size > e * M)
|
|
72
70
|
if (a.length === 0) {
|
|
73
|
-
let r = [], n = [], c = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)),
|
|
74
|
-
c === 0 && (
|
|
75
|
-
let v = 5 -
|
|
71
|
+
let r = [], n = [], c = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), h = Math.round(Math.log(c) / Math.log(10));
|
|
72
|
+
c === 0 && (h = 1);
|
|
73
|
+
let v = 5 - h;
|
|
76
74
|
for (let p = 0; p < t.numItems; p++) {
|
|
77
75
|
let w = I(
|
|
78
76
|
t.from + t.step * p,
|
|
@@ -105,10 +103,10 @@ function S(a, u, b, t) {
|
|
|
105
103
|
} else if (t.width.size < e * M) {
|
|
106
104
|
let r, n;
|
|
107
105
|
if (a.length === 0) {
|
|
108
|
-
let c = Math.floor(t.width.size / e),
|
|
106
|
+
let c = Math.floor(t.width.size / e), h = t.lastItem - t.firstItem, v = h / (c + 1), p = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), w = Math.round(Math.log(p) / Math.log(10)), $ = 1 - w, f = Math.max(
|
|
109
107
|
I(v, $),
|
|
110
108
|
10 ** -$
|
|
111
|
-
), j = Math.floor(
|
|
109
|
+
), j = Math.floor(h / f) + 1, y = 5 - w;
|
|
112
110
|
n = [...Array(j).keys()].map(
|
|
113
111
|
(A) => t.from + f * A
|
|
114
112
|
), r = n.map(
|
|
@@ -118,11 +116,11 @@ function S(a, u, b, t) {
|
|
|
118
116
|
let c = Math.max(
|
|
119
117
|
2,
|
|
120
118
|
Math.floor(t.width.size / e)
|
|
121
|
-
),
|
|
119
|
+
), h = Math.ceil(
|
|
122
120
|
(t.numItems - 1) / (c - 1) - 1e-10
|
|
123
|
-
), v = Math.floor((t.numItems - 1) /
|
|
121
|
+
), v = Math.floor((t.numItems - 1) / h + 1e-10) + 1;
|
|
124
122
|
r = [...Array(v).keys()].map(
|
|
125
|
-
(f) => Math.round(
|
|
123
|
+
(f) => Math.round(h * f)
|
|
126
124
|
);
|
|
127
125
|
let p = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), $ = 2 - Math.round(Math.log(p) / Math.log(10));
|
|
128
126
|
n = r.map(
|
|
@@ -130,8 +128,8 @@ function S(a, u, b, t) {
|
|
|
130
128
|
);
|
|
131
129
|
}
|
|
132
130
|
return [
|
|
133
|
-
r.map((c,
|
|
134
|
-
r.map((c,
|
|
131
|
+
r.map((c, h) => /* @__PURE__ */ l.jsx(T, { x: `${c * u}px` }, n[h])),
|
|
132
|
+
r.map((c, h) => /* @__PURE__ */ l.jsx(k, { x: `${c * u}px`, children: n[h] }, n[h]))
|
|
135
133
|
];
|
|
136
134
|
} else
|
|
137
135
|
return [
|
|
@@ -149,23 +147,23 @@ function ee(a, u, b) {
|
|
|
149
147
|
const e = Object.keys(a).length;
|
|
150
148
|
if (b.width.size > t * e)
|
|
151
149
|
return [
|
|
152
|
-
a.map((s,
|
|
153
|
-
a.map((s,
|
|
150
|
+
a.map((s, m) => /* @__PURE__ */ l.jsx(T, { x: `${m * u}px` }, s)),
|
|
151
|
+
a.map((s, m) => /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s }, s))
|
|
154
152
|
];
|
|
155
153
|
if (b.width.size < t)
|
|
156
154
|
return [
|
|
157
|
-
a.map((s,
|
|
158
|
-
a.map((s,
|
|
159
|
-
if (
|
|
160
|
-
return /* @__PURE__ */ l.jsx(k, { x: `${
|
|
161
|
-
if (
|
|
162
|
-
return /* @__PURE__ */ l.jsx(k, { x: `${
|
|
155
|
+
a.map((s, m) => m == 0 ? /* @__PURE__ */ l.jsx(T, { x: `${m * u}px` }, s) : ""),
|
|
156
|
+
a.map((s, m) => {
|
|
157
|
+
if (m == 0)
|
|
158
|
+
return /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s }, s);
|
|
159
|
+
if (m == 2)
|
|
160
|
+
return /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: "..." }, s);
|
|
163
161
|
})
|
|
164
162
|
];
|
|
165
163
|
if (b.width.size < t * e)
|
|
166
164
|
return [
|
|
167
|
-
a.map((s,
|
|
168
|
-
a.map((s,
|
|
165
|
+
a.map((s, m) => /* @__PURE__ */ l.jsx(T, { x: `${m * u}px` }, s)),
|
|
166
|
+
a.map((s, m) => m == 0 || e === m + 1 ? /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s }, s) : /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s.length < 3 ? s : s.substr(0, 3) + "..." }, s))
|
|
169
167
|
];
|
|
170
168
|
}
|
|
171
169
|
function te(a, u, b) {
|
|
@@ -178,10 +176,10 @@ function N(a, u, b) {
|
|
|
178
176
|
), e;
|
|
179
177
|
return u.length === 0 ? e = b.from + b.step * t : e = u[t], [e, t];
|
|
180
178
|
}
|
|
181
|
-
const
|
|
182
|
-
let { name: b, id: t, SVs: e, actions: s, ignoreUpdate:
|
|
179
|
+
const he = ue.memo(function a(u) {
|
|
180
|
+
let { name: b, id: t, SVs: e, actions: s, ignoreUpdate: m, rendererName: O, callAction: M } = ne(u);
|
|
183
181
|
a.baseStateVariable = "index";
|
|
184
|
-
const r = K(null), n = re(se(O)), [c,
|
|
182
|
+
const r = K(null), n = re(se(O)), [c, h] = B(0), v = K(!1), [p, w] = B(0), $ = e.type === "text" ? 0 : e.firstItem;
|
|
185
183
|
let f = e.width.size / (e.numItems - 1);
|
|
186
184
|
const [j, y] = B(0);
|
|
187
185
|
if (J(() => {
|
|
@@ -190,7 +188,7 @@ const de = ue.memo(function a(u) {
|
|
|
190
188
|
w(x.left);
|
|
191
189
|
}
|
|
192
190
|
}, []), J(() => {
|
|
193
|
-
!v.current && !
|
|
191
|
+
!v.current && !m && (y(e.index), e.type !== "text" ? h(e.index / (e.numItems - 1) * e.width.size) : h(e.index * f));
|
|
194
192
|
}, [e.index]), e.hidden)
|
|
195
193
|
return null;
|
|
196
194
|
if (e.disabled) {
|
|
@@ -251,7 +249,7 @@ const de = ue.memo(function a(u) {
|
|
|
251
249
|
);
|
|
252
250
|
}
|
|
253
251
|
function A(x) {
|
|
254
|
-
if (v.current = !0, document.addEventListener("mousemove", W), document.addEventListener("mouseup", V),
|
|
252
|
+
if (v.current = !0, document.addEventListener("mousemove", W), document.addEventListener("mouseup", V), h(x.nativeEvent.clientX - p), e.type !== "text") {
|
|
255
253
|
let i = te(
|
|
256
254
|
x.nativeEvent.clientX - p,
|
|
257
255
|
f,
|
|
@@ -287,7 +285,7 @@ const de = ue.memo(function a(u) {
|
|
|
287
285
|
f,
|
|
288
286
|
$
|
|
289
287
|
), o = N(d, e.items, e);
|
|
290
|
-
y(o[1]),
|
|
288
|
+
y(o[1]), h(o[1] * f), n((g) => {
|
|
291
289
|
let z = { ...g };
|
|
292
290
|
return z.ignoreUpdate = !0, z;
|
|
293
291
|
}), M({
|
|
@@ -297,7 +295,7 @@ const de = ue.memo(function a(u) {
|
|
|
297
295
|
});
|
|
298
296
|
} else {
|
|
299
297
|
let i = Math.round((x.clientX - p) / f);
|
|
300
|
-
i = Math.max(0, Math.min(e.numItems - 1, i)), y(i),
|
|
298
|
+
i = Math.max(0, Math.min(e.numItems - 1, i)), y(i), h(i * f), n((d) => {
|
|
301
299
|
let o = { ...d };
|
|
302
300
|
return o.ignoreUpdate = !0, o;
|
|
303
301
|
}), M({
|
|
@@ -309,7 +307,7 @@ const de = ue.memo(function a(u) {
|
|
|
309
307
|
}
|
|
310
308
|
function W(x) {
|
|
311
309
|
if (v.current)
|
|
312
|
-
if (
|
|
310
|
+
if (h(
|
|
313
311
|
Math.max(0, Math.min(e.width.size, x.clientX - p))
|
|
314
312
|
), e.type !== "text") {
|
|
315
313
|
let i = te(
|
|
@@ -434,5 +432,5 @@ const de = ue.memo(function a(u) {
|
|
|
434
432
|
);
|
|
435
433
|
});
|
|
436
434
|
export {
|
|
437
|
-
|
|
435
|
+
he as default
|
|
438
436
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { u as g, j as e, V as y, F as c,
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const S = R.span`
|
|
1
|
+
import { u as g, j as e, V as y, s as h, F as c, O as u } from "./index-7912373f.js";
|
|
2
|
+
import k, { useEffect as R } from "react";
|
|
3
|
+
const S = h.span`
|
|
6
4
|
// display: block;
|
|
7
5
|
// margin: SVs.open ? 12px 4px 0px 4px : 12px 4px 12px 4px;
|
|
8
6
|
// padding: 6px;
|
|
@@ -17,24 +15,24 @@ const S = R.span`
|
|
|
17
15
|
outline: 2px solid var(--canvastext);
|
|
18
16
|
outline-offset: 2px;
|
|
19
17
|
}
|
|
20
|
-
`,
|
|
21
|
-
let { name: V, id:
|
|
22
|
-
|
|
18
|
+
`, B = k.memo(function(b) {
|
|
19
|
+
let { name: V, id: s, SVs: o, children: m, actions: i, callAction: n } = g(b), f = (t) => {
|
|
20
|
+
n({
|
|
23
21
|
action: i.recordVisibilityChange,
|
|
24
|
-
args: { isVisible:
|
|
22
|
+
args: { isVisible: t }
|
|
25
23
|
});
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
R(() => () => {
|
|
26
|
+
n({
|
|
29
27
|
action: i.recordVisibilityChange,
|
|
30
28
|
args: { isVisible: !1 }
|
|
31
29
|
});
|
|
32
30
|
}, []);
|
|
33
|
-
let
|
|
31
|
+
let p = "open";
|
|
34
32
|
if (o.hidden)
|
|
35
33
|
return null;
|
|
36
|
-
let
|
|
37
|
-
return o.open ? (
|
|
34
|
+
let a, d = null, x = { display: "none" }, r, l;
|
|
35
|
+
return o.open ? (a = /* @__PURE__ */ e.jsx(c, { icon: u }), p = "close", d = m, x = {
|
|
38
36
|
display: "block",
|
|
39
37
|
margin: "0px 4px 12px 4px",
|
|
40
38
|
padding: "6px",
|
|
@@ -43,25 +41,25 @@ const S = R.span`
|
|
|
43
41
|
borderBottomLeftRadius: "5px",
|
|
44
42
|
borderBottomRightRadius: "5px",
|
|
45
43
|
backgroundColor: "var(--canvas)"
|
|
46
|
-
},
|
|
47
|
-
|
|
44
|
+
}, l = (t) => {
|
|
45
|
+
t.key === "Enter" && n({
|
|
48
46
|
action: i.closeSolution
|
|
49
47
|
});
|
|
50
48
|
}, o.canBeClosed ? r = () => {
|
|
51
|
-
|
|
49
|
+
n({
|
|
52
50
|
action: i.closeSolution
|
|
53
51
|
});
|
|
54
52
|
} : r = () => {
|
|
55
|
-
}) : (
|
|
56
|
-
|
|
53
|
+
}) : (a = /* @__PURE__ */ e.jsx(c, { icon: u, rotation: 90 }), r = () => {
|
|
54
|
+
n({
|
|
57
55
|
action: i.revealSolution
|
|
58
56
|
});
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
}, l = (t) => {
|
|
58
|
+
t.key === "Enter" && n({
|
|
61
59
|
action: i.revealSolution
|
|
62
60
|
});
|
|
63
|
-
}), /* @__PURE__ */ e.jsx(y, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ e.jsxs("aside", { id:
|
|
64
|
-
/* @__PURE__ */ e.jsx("a", { name:
|
|
61
|
+
}), /* @__PURE__ */ e.jsx(y, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ e.jsxs("aside", { id: s, style: { margin: "12px 0" }, children: [
|
|
62
|
+
/* @__PURE__ */ e.jsx("a", { name: s }),
|
|
65
63
|
/* @__PURE__ */ e.jsxs(
|
|
66
64
|
S,
|
|
67
65
|
{
|
|
@@ -78,17 +76,17 @@ const S = R.span`
|
|
|
78
76
|
cursor: "pointer"
|
|
79
77
|
},
|
|
80
78
|
tabIndex: "0",
|
|
81
|
-
id:
|
|
79
|
+
id: s + "_button",
|
|
82
80
|
onClick: r,
|
|
83
|
-
onKeyDown:
|
|
81
|
+
onKeyDown: l,
|
|
84
82
|
children: [
|
|
85
|
-
|
|
83
|
+
a,
|
|
86
84
|
" ",
|
|
87
85
|
o.sectionName,
|
|
88
86
|
" ",
|
|
89
87
|
o.message,
|
|
90
88
|
" (click to ",
|
|
91
|
-
|
|
89
|
+
p,
|
|
92
90
|
")"
|
|
93
91
|
]
|
|
94
92
|
}
|
|
@@ -97,5 +95,5 @@ const S = R.span`
|
|
|
97
95
|
] }) });
|
|
98
96
|
});
|
|
99
97
|
export {
|
|
100
|
-
|
|
98
|
+
B as default
|
|
101
99
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./spreadsheet.css";
|
|
2
|
+
import { z as By, p as UP, Q as pY, A as tj, S as kv, u as mY, j as $v, V as gY, T as bY } from "./index-7912373f.js";
|
|
2
3
|
import zt, { useEffect as wY } from "react";
|
|
3
4
|
import rj from "react-dom";
|
|
4
5
|
import { s as zP } from "./css-ab4d83ca.js";
|
|
5
|
-
import "styled-components";
|
|
6
6
|
var Av = function(e) {
|
|
7
7
|
return e && e.Math == Math && e;
|
|
8
8
|
}, pt = (
|