@doenet/doenetml 0.6.0-alpha3 → 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-f9a56616.js → ActionButtonGroup-cce60f98.js} +15 -16
- package/dist/{ToggleButton-8da16cc2.js → ToggleButton-67a72bb5.js} +7 -8
- package/dist/alert-33a70a3d.js +12 -0
- package/dist/{angle-40d0f6e5.js → angle-27255fe0.js} +4 -7
- package/dist/{answer-5f1c4979.js → answer-2afd88fa.js} +22 -24
- package/dist/{asList-c80d2031.js → asList-b1a434a8.js} +5 -7
- package/dist/blockQuote-8da178e1.js +22 -0
- package/dist/boolean-b742fe48.js +12 -0
- package/dist/{booleanInput-45df7ed1.js → booleanInput-9a61bf21.js} +13 -15
- package/dist/booleanInput.css +1 -0
- package/dist/{button-9c4d0fd2.js → button-0f49bac0.js} +15 -18
- package/dist/c-f11cfb55.js +12 -0
- package/dist/callAction-45217748.js +12 -0
- package/dist/{cell-fcd153d3.js → cell-0e133fa0.js} +5 -7
- package/dist/{chart-3891d729.js → chart-3fb05dec.js} +15 -17
- package/dist/{choiceInput-8b419109.js → choiceInput-06f9fe0d.js} +42 -43
- package/dist/choiceInput.css +1 -0
- package/dist/{circle-4ade8a0f.js → circle-58b448e4.js} +4 -7
- package/dist/{cobwebPolyline-18a1467d.js → cobwebPolyline-97c318ac.js} +4 -7
- package/dist/{codeEditor-af9a5cf1.js → codeEditor-a6457ef2.js} +19 -21
- package/dist/{codeViewer-df817eee.js → codeViewer-861c4813.js} +7 -9
- package/dist/containerBlock-c729c3c7.js +22 -0
- package/dist/containerInline-5f5c3422.js +12 -0
- package/dist/{contentBrowser-470db41c.js → contentBrowser-df4ee62e.js} +14 -16
- package/dist/{contentPicker-ecce4a79.js → contentPicker-d3e4b364.js} +9 -11
- package/dist/{curve-a6592419.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-9bc2c461.js → embed-b47e5ea5.js} +9 -11
- package/dist/{feedback-a590c58f.js → feedback-3bbde9f2.js} +16 -18
- package/dist/{figure-a5ce1591.js → figure-7d10aba0.js} +3 -5
- package/dist/{footnote-5396cb55.js → footnote-c70ce2c5.js} +7 -9
- package/dist/{graph-102e9613.js → graph-d69449f2.js} +1 -3
- package/dist/{hint-5886a633.js → hint-c8e96cfa.js} +19 -21
- package/dist/{image-8e043789.js → image-19660806.js} +4 -6
- package/dist/{index-d3e0f79a.js → index-7481592c.js} +1 -1
- package/dist/{index-85d4fdb6.js → index-7912373f.js} +89797 -88659
- package/dist/{index-7998d090.js → index-9317ebc1.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/{label-cdd6d4a5.js → label-b9c6a62a.js} +19 -22
- package/dist/{legend-52744e3c.js → legend-1fd4a6df.js} +8 -11
- package/dist/{line-c3fbafa6.js → line-d9273eb3.js} +17 -20
- package/dist/{lineSegment-ef21d787.js → lineSegment-d8c96e17.js} +4 -7
- package/dist/{list-4aecfe4d.js → list-f0b49f78.js} +11 -13
- package/dist/{lq-3b39cf5b.js → lq-90e8a033.js} +1 -3
- package/dist/lsq-8cac08e0.js +9 -0
- package/dist/{math-4beb47d1.js → math-8f654445.js} +4 -7
- package/dist/{mathInput-a8cc60be.js → mathInput-dbd1ba40.js} +6 -9
- package/dist/mathInput.css +1 -0
- package/dist/{mathInputog-1303492b.js → mathInputog-6d84c7f3.js} +2 -3
- package/dist/{mathList-dcb3e340.js → mathList-b458bb31.js} +9 -11
- package/dist/{matrixInput-f4bdc517.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-6f1f3643.js → number-79d34feb.js} +4 -7
- package/dist/{numberList-a696789a.js → numberList-d50ce33a.js} +6 -8
- package/dist/{orbitalDiagram-b00c95a2.js → orbitalDiagram-4b563b6b.js} +32 -34
- package/dist/{orbitalDiagramInput-59420ea8.js → orbitalDiagramInput-76732581.js} +11 -13
- package/dist/p-5232cada.js +22 -0
- package/dist/{paginatorControls-f758f5a8.js → paginatorControls-b70730d0.js} +4 -6
- package/dist/{pegboard-9795cd51.js → pegboard-79f9c901.js} +14 -17
- package/dist/{point-545ffb65.js → point-d3f0e709.js} +4 -7
- package/dist/{polygon-fc4843a1.js → polygon-451f6aab.js} +4 -7
- package/dist/{polyline-7551a56f.js → polyline-b8610944.js} +4 -7
- package/dist/pre-f5c6b49a.js +22 -0
- package/dist/q-ea153de6.js +14 -0
- package/dist/{ray-782ed614.js → ray-8ebc8e35.js} +19 -22
- package/dist/{ref-08765c0f.js → ref-3f4e54aa.js} +18 -20
- package/dist/{regionBetweenCurveXAxis-fb8a3c9c.js → regionBetweenCurveXAxis-fa31ef83.js} +9 -12
- package/dist/{renderDoenetML-3a37978d.js → renderDoenetML-5fbe5a5f.js} +4 -6
- package/dist/{row-6e13f678.js → row-3a111c29.js} +5 -7
- package/dist/{rq-e36238a4.js → rq-be748d03.js} +3 -5
- package/dist/rsq-2ec34103.js +9 -0
- package/dist/{section-4746da87.js → section-5a53d600.js} +32 -34
- package/dist/{sideBySide-247e2dc5.js → sideBySide-8b21239b.js} +7 -9
- package/dist/{slider-e55a8838.js → slider-bc9bd636.js} +36 -38
- package/dist/{solution-ed56d868.js → solution-61675899.js} +26 -28
- package/dist/{spreadsheet-5cf21f01.js → spreadsheet-8f61699e.js} +10214 -10214
- package/dist/spreadsheet.css +41 -0
- package/dist/sq-08ee83a3.js +14 -0
- package/dist/{subsetOfRealsInput-e55e5c2b.js → subsetOfRealsInput-a151c105.js} +46 -48
- package/dist/{summaryStatistics-42f1a384.js → summaryStatistics-dc26ed99.js} +6 -8
- package/dist/{table-d99a11f9.js → table-48b11b9c.js} +9 -11
- package/dist/{tabular-398150dd.js → tabular-f3c4f0f4.js} +7 -9
- package/dist/tag-7ef067e8.js +17 -0
- package/dist/{text-00615612.js → text-bc66e68e.js} +50 -53
- package/dist/{textInput-26b3e2e2.js → textInput-cb97b103.js} +28 -30
- package/dist/textList-4fa2b394.js +20 -0
- package/dist/{triggerSet-d62aa283.js → triggerSet-47fe087c.js} +7 -9
- package/dist/updateValue-2620a937.js +20 -0
- package/dist/{vector-9d0a33ff.js → vector-1aaf00e9.js} +4 -7
- package/dist/{video-e7fd83ab.js → video-7b44cfcf.js} +14 -16
- package/package.json +6 -9
- package/dist/alert-e14bfd03.js +0 -14
- package/dist/blockQuote-71c980cc.js +0 -24
- package/dist/boolean-5855f758.js +0 -14
- package/dist/c-18bd5f9e.js +0 -14
- package/dist/callAction-13bd9520.js +0 -14
- package/dist/containerBlock-4624186b.js +0 -24
- package/dist/containerInline-44e4a079.js +0 -14
- package/dist/doenetml.umd.cjs +0 -20897
- package/dist/ellipsis-b157c3ba.js +0 -14
- package/dist/em-f951d01a.js +0 -14
- package/dist/lsq-5ad1e572.js +0 -11
- package/dist/mathInput-4ed993c7.js +0 -1
- package/dist/mdash-e8d37006.js +0 -11
- package/dist/nbsp-0a9573c6.js +0 -11
- package/dist/ndash-cb0f855e.js +0 -11
- package/dist/p-bbad4c3a.js +0 -24
- package/dist/pre-976f6d04.js +0 -24
- package/dist/q-138ac8a8.js +0 -16
- package/dist/rsq-5d347142.js +0 -11
- package/dist/sq-9b3da9df.js +0 -16
- package/dist/style.css +0 -41
- package/dist/tag-499e57c1.js +0 -19
- package/dist/textList-34576ab3.js +0 -22
- package/dist/updateValue-59710b32.js +0 -22
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import r, { ThemeProvider as f } from "styled-components";
|
|
1
|
+
import { s as r, j as l, L as f } from "./index-7912373f.js";
|
|
2
|
+
import i from "react";
|
|
4
3
|
const v = r.div`
|
|
5
4
|
/* margin-left: 3px; */
|
|
6
5
|
display: ${(e) => e.vertical ? "static" : "flex"};
|
|
@@ -30,22 +29,22 @@ const v = r.div`
|
|
|
30
29
|
border: "1px solid var(--mainGray)",
|
|
31
30
|
outlineOffset: "-6px"
|
|
32
31
|
}, g = (e) => {
|
|
33
|
-
let c = e.vertical ? "first_vert" : "first",
|
|
32
|
+
let c = e.vertical ? "first_vert" : "first", s = e.vertical ? "last_vert" : "last", a = e.width ? "no_overflow" : "overflow", t = i.Children.toArray(e.children);
|
|
34
33
|
t.length > 1 && (t = [
|
|
35
|
-
|
|
34
|
+
i.cloneElement(t[0], { num: c, overflow: a })
|
|
36
35
|
].concat(
|
|
37
|
-
t.slice(1, -1).map((m) =>
|
|
36
|
+
t.slice(1, -1).map((m) => i.cloneElement(m, { overflow: a }))
|
|
38
37
|
).concat(
|
|
39
|
-
|
|
40
|
-
num:
|
|
41
|
-
overflow:
|
|
38
|
+
i.cloneElement(t[t.length - 1], {
|
|
39
|
+
num: s,
|
|
40
|
+
overflow: a
|
|
42
41
|
})
|
|
43
42
|
));
|
|
44
|
-
const
|
|
45
|
-
var o = "",
|
|
46
|
-
return e.label && (o = e.label, e.verticalLabel && (
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
43
|
+
const d = e.label ? "static" : "none";
|
|
44
|
+
var o = "", n = "flex", x = "center";
|
|
45
|
+
return e.label && (o = e.label, e.verticalLabel && (n = "static")), /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsxs(p, { align: n, alignItems: x, width: e.width, children: [
|
|
46
|
+
/* @__PURE__ */ l.jsx(h, { labelVisible: d, align: n, children: o }),
|
|
47
|
+
/* @__PURE__ */ l.jsx(v, { vertical: e.vertical, children: /* @__PURE__ */ l.jsx(
|
|
49
48
|
f,
|
|
50
49
|
{
|
|
51
50
|
theme: e.vertical ? b : u,
|
|
@@ -53,7 +52,7 @@ const v = r.div`
|
|
|
53
52
|
}
|
|
54
53
|
) })
|
|
55
54
|
] }) });
|
|
56
|
-
},
|
|
55
|
+
}, j = g;
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
j as A
|
|
59
58
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { j as i, M as m } from "./index-
|
|
2
|
-
import { useState as
|
|
3
|
-
|
|
4
|
-
const u = g.button`
|
|
1
|
+
import { s, j as i, M as m } from "./index-7912373f.js";
|
|
2
|
+
import { useState as f, useEffect as g } from "react";
|
|
3
|
+
const u = s.button`
|
|
5
4
|
margin: ${(e) => e.theme.margin};
|
|
6
5
|
height: 24px;
|
|
7
6
|
border: ${(e) => e.alert ? "2px solid var(--mainRed)" : e.disabled ? "2px solid var(--mainGray)" : "2px solid var(--mainBlue)"};
|
|
@@ -33,11 +32,11 @@ u.defaultProps = {
|
|
|
33
32
|
padding: "0px 10px 0px 10px"
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
|
-
function
|
|
37
|
-
const [r, c] =
|
|
35
|
+
function y(e) {
|
|
36
|
+
const [r, c] = f(
|
|
38
37
|
e.isSelected ? e.isSelected : !1
|
|
39
38
|
), v = e.label ? "static" : "none", n = e.vertical ? "static" : "flex", x = e.alert ? e.alert : null, o = e.disabled ? e.disabled : null;
|
|
40
|
-
|
|
39
|
+
g(() => {
|
|
41
40
|
c(e.isSelected);
|
|
42
41
|
}, [e.isSelected]);
|
|
43
42
|
var a = {
|
|
@@ -84,5 +83,5 @@ function B(e) {
|
|
|
84
83
|
] }) });
|
|
85
84
|
}
|
|
86
85
|
export {
|
|
87
|
-
|
|
86
|
+
y as T
|
|
88
87
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { u as o, j as r } from "./index-7912373f.js";
|
|
2
|
+
import a from "react";
|
|
3
|
+
const d = a.memo(function(t) {
|
|
4
|
+
let { name: l, id: e, SVs: n, children: s } = o(t);
|
|
5
|
+
return n.hidden ? null : /* @__PURE__ */ r.jsxs("strong", { id: e, children: [
|
|
6
|
+
/* @__PURE__ */ r.jsx("a", { name: e }),
|
|
7
|
+
s
|
|
8
|
+
] });
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
d as default
|
|
12
|
+
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as R, j as i, M as x } from "./index-
|
|
1
|
+
import { u as R, j as i, M as x } from "./index-7912373f.js";
|
|
2
2
|
import y, { useContext as C, useRef as o, useEffect as j } from "react";
|
|
3
|
-
import { BoardContext as v, LINE_LAYER_OFFSET as f } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const X = y.memo(function(b) {
|
|
3
|
+
import { BoardContext as v, LINE_LAYER_OFFSET as f } from "./graph-d69449f2.js";
|
|
4
|
+
const J = y.memo(function(b) {
|
|
8
5
|
let { name: O, id: m, SVs: e } = R(b);
|
|
9
6
|
const l = C(v);
|
|
10
7
|
let u = o(null), s = o(null), c = o(null), r = o(null), h = o(null);
|
|
@@ -96,5 +93,5 @@ const X = y.memo(function(b) {
|
|
|
96
93
|
] });
|
|
97
94
|
});
|
|
98
95
|
export {
|
|
99
|
-
|
|
96
|
+
J as default
|
|
100
97
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { u as g, j as e, F as a, f as C, a as j, b as k, c as y } from "./index-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const s = v.button`
|
|
1
|
+
import { u as g, j as e, F as a, f as C, a as j, b as k, c as y, s as A } from "./index-7912373f.js";
|
|
2
|
+
import v from "react";
|
|
3
|
+
const o = A.button`
|
|
6
4
|
position: relative;
|
|
7
5
|
height: 24px;
|
|
8
6
|
display: inline-block;
|
|
@@ -18,11 +16,11 @@ const s = v.button`
|
|
|
18
16
|
background-color: var(--lightBlue);
|
|
19
17
|
color: black;
|
|
20
18
|
}
|
|
21
|
-
`,
|
|
22
|
-
let { name: L, id:
|
|
19
|
+
`, R = v.memo(function(x) {
|
|
20
|
+
let { name: L, id: s, SVs: t, actions: d, children: h, callAction: m } = g(x);
|
|
23
21
|
if (t.hidden)
|
|
24
22
|
return null;
|
|
25
|
-
let
|
|
23
|
+
let u = t.disabled, l = () => m({
|
|
26
24
|
action: d.submitAnswer
|
|
27
25
|
});
|
|
28
26
|
t.submitAllAnswersAtAncestor && (l = () => m({
|
|
@@ -45,17 +43,17 @@ const s = v.button`
|
|
|
45
43
|
cursor: "pointer",
|
|
46
44
|
padding: "1px 6px 1px 6px"
|
|
47
45
|
};
|
|
48
|
-
|
|
46
|
+
u && (r.backgroundColor = getComputedStyle(
|
|
49
47
|
document.documentElement
|
|
50
48
|
).getPropertyValue("--mainGray"));
|
|
51
|
-
let
|
|
52
|
-
t.showCorrectness || (
|
|
49
|
+
let p = t.submitLabel;
|
|
50
|
+
t.showCorrectness || (p = t.submitLabelNoCorrectness);
|
|
53
51
|
let n = /* @__PURE__ */ e.jsxs(
|
|
54
|
-
|
|
52
|
+
o,
|
|
55
53
|
{
|
|
56
|
-
id:
|
|
54
|
+
id: s + "_submit",
|
|
57
55
|
tabIndex: "0",
|
|
58
|
-
disabled:
|
|
56
|
+
disabled: u,
|
|
59
57
|
style: r,
|
|
60
58
|
onClick: l,
|
|
61
59
|
onKeyPress: (f) => {
|
|
@@ -73,7 +71,7 @@ const s = v.button`
|
|
|
73
71
|
}
|
|
74
72
|
),
|
|
75
73
|
" ",
|
|
76
|
-
|
|
74
|
+
p
|
|
77
75
|
]
|
|
78
76
|
}
|
|
79
77
|
);
|
|
@@ -81,24 +79,24 @@ const s = v.button`
|
|
|
81
79
|
if (i === "correct")
|
|
82
80
|
r.backgroundColor = getComputedStyle(
|
|
83
81
|
document.documentElement
|
|
84
|
-
).getPropertyValue("--mainGreen"), n = /* @__PURE__ */ e.jsxs(
|
|
82
|
+
).getPropertyValue("--mainGreen"), n = /* @__PURE__ */ e.jsxs(o, { id: s + "_correct", style: r, children: [
|
|
85
83
|
/* @__PURE__ */ e.jsx(a, { icon: j }),
|
|
86
84
|
" Correct"
|
|
87
85
|
] });
|
|
88
86
|
else if (i === "incorrect")
|
|
89
87
|
r.backgroundColor = getComputedStyle(
|
|
90
88
|
document.documentElement
|
|
91
|
-
).getPropertyValue("--mainRed"), n = /* @__PURE__ */ e.jsxs(
|
|
89
|
+
).getPropertyValue("--mainRed"), n = /* @__PURE__ */ e.jsxs(o, { id: s + "_incorrect", style: r, children: [
|
|
92
90
|
/* @__PURE__ */ e.jsx(a, { icon: k }),
|
|
93
91
|
" Incorrect"
|
|
94
92
|
] });
|
|
95
93
|
else if (i === "partialcorrect") {
|
|
96
94
|
r.backgroundColor = "#efab34";
|
|
97
95
|
let b = `${Math.round(t.creditAchieved * 100)}% Correct`;
|
|
98
|
-
n = /* @__PURE__ */ e.jsx(
|
|
96
|
+
n = /* @__PURE__ */ e.jsx(o, { id: s + "_partial", style: r, children: b });
|
|
99
97
|
}
|
|
100
98
|
} else
|
|
101
|
-
i !== "unvalidated" && (r.backgroundColor = "rgb(74, 3, 217)", n = /* @__PURE__ */ e.jsxs(
|
|
99
|
+
i !== "unvalidated" && (r.backgroundColor = "rgb(74, 3, 217)", n = /* @__PURE__ */ e.jsxs(o, { id: s + "_saved", style: r, children: [
|
|
102
100
|
/* @__PURE__ */ e.jsx(a, { icon: y }),
|
|
103
101
|
" Response Saved"
|
|
104
102
|
] }));
|
|
@@ -115,17 +113,17 @@ const s = v.button`
|
|
|
115
113
|
t.numAttemptsLeft,
|
|
116
114
|
" attempts remaining)"
|
|
117
115
|
] })
|
|
118
|
-
] })), /* @__PURE__ */ e.jsxs("span", { id:
|
|
119
|
-
/* @__PURE__ */ e.jsx("a", { name:
|
|
116
|
+
] })), /* @__PURE__ */ e.jsxs("span", { id: s, style: { marginBottom: "4px" }, children: [
|
|
117
|
+
/* @__PURE__ */ e.jsx("a", { name: s }),
|
|
120
118
|
c,
|
|
121
119
|
n
|
|
122
120
|
] });
|
|
123
121
|
} else
|
|
124
|
-
return /* @__PURE__ */ e.jsxs("span", { id:
|
|
125
|
-
/* @__PURE__ */ e.jsx("a", { name:
|
|
122
|
+
return /* @__PURE__ */ e.jsxs("span", { id: s, style: { marginBottom: "4px" }, children: [
|
|
123
|
+
/* @__PURE__ */ e.jsx("a", { name: s }),
|
|
126
124
|
c
|
|
127
125
|
] });
|
|
128
126
|
});
|
|
129
127
|
export {
|
|
130
|
-
|
|
128
|
+
R as default
|
|
131
129
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { u, j as r } from "./index-
|
|
1
|
+
import { u, j as r } from "./index-7912373f.js";
|
|
2
2
|
import n from "react";
|
|
3
|
-
|
|
4
|
-
import "styled-components";
|
|
5
|
-
const h = n.memo(function(s) {
|
|
3
|
+
const x = n.memo(function(s) {
|
|
6
4
|
let { name: d, id: e, SVs: i, children: t } = u(s);
|
|
7
5
|
if (i.hidden)
|
|
8
6
|
return null;
|
|
9
7
|
if (t.length === 0)
|
|
10
8
|
return /* @__PURE__ */ r.jsx(n.Fragment, {}, e);
|
|
11
|
-
let
|
|
9
|
+
let a = t.slice(1).reduce((m, o) => [...m, ", ", o], [t[0]]);
|
|
12
10
|
return /* @__PURE__ */ r.jsxs(n.Fragment, { children: [
|
|
13
11
|
/* @__PURE__ */ r.jsx("a", { name: e }),
|
|
14
|
-
|
|
12
|
+
a
|
|
15
13
|
] }, e);
|
|
16
14
|
});
|
|
17
15
|
export {
|
|
18
|
-
|
|
16
|
+
x as default
|
|
19
17
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { u as c, j as e, V as u } from "./index-7912373f.js";
|
|
2
|
+
import d, { useEffect as f } from "react";
|
|
3
|
+
const g = d.memo(function(r) {
|
|
4
|
+
let { name: h, id: t, SVs: s, children: a, actions: i, callAction: n } = c(r), o = (l) => {
|
|
5
|
+
i.recordVisibilityChange && n({
|
|
6
|
+
action: i.recordVisibilityChange,
|
|
7
|
+
args: { isVisible: l }
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
return f(() => () => {
|
|
11
|
+
i.recordVisibilityChange && n({
|
|
12
|
+
action: i.recordVisibilityChange,
|
|
13
|
+
args: { isVisible: !1 }
|
|
14
|
+
});
|
|
15
|
+
}, []), s.hidden ? null : /* @__PURE__ */ e.jsx(u, { partialVisibility: !0, onChange: o, children: /* @__PURE__ */ e.jsxs("blockquote", { id: t, children: [
|
|
16
|
+
/* @__PURE__ */ e.jsx("a", { name: t }),
|
|
17
|
+
a
|
|
18
|
+
] }) });
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
g as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { u as a, j as e } from "./index-7912373f.js";
|
|
2
|
+
import o from "react";
|
|
3
|
+
const u = o.memo(function(r) {
|
|
4
|
+
let { name: l, id: n, SVs: t } = a(r, !1);
|
|
5
|
+
return t.hidden ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6
|
+
/* @__PURE__ */ e.jsx("a", { name: n }),
|
|
7
|
+
/* @__PURE__ */ e.jsx("span", { id: n, children: t.text })
|
|
8
|
+
] });
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
u as default
|
|
12
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import ke from "
|
|
5
|
-
import { BoardContext as je } from "./graph-
|
|
6
|
-
|
|
7
|
-
import "./css-ab4d83ca.js";
|
|
8
|
-
const _ = ke.button`
|
|
1
|
+
import "./booleanInput.css";
|
|
2
|
+
import { u as ue, R as de, r as fe, C as Q, g as Z, j as r, F as N, f as pe, a as me, b as he, c as xe, s as be, M as ge } from "./index-7912373f.js";
|
|
3
|
+
import ee, { useState as ve, useRef as l, useContext as Ce, useEffect as ye } from "react";
|
|
4
|
+
import { T as ke } from "./ToggleButton-67a72bb5.js";
|
|
5
|
+
import { BoardContext as je } from "./graph-d69449f2.js";
|
|
6
|
+
const _ = be.button`
|
|
9
7
|
position: relative;
|
|
10
8
|
width: 24px;
|
|
11
9
|
height: 24px;
|
|
@@ -24,17 +22,17 @@ const _ = ke.button`
|
|
|
24
22
|
background-color: var(--lightBlue);
|
|
25
23
|
color: black;
|
|
26
24
|
}
|
|
27
|
-
`,
|
|
25
|
+
`, Be = ee.memo(function T(Y) {
|
|
28
26
|
let { name: Ae, id: f, SVs: e, actions: g, ignoreUpdate: te, rendererName: re, callAction: v } = ue(Y);
|
|
29
27
|
T.baseStateVariable = "value", T.ignoreActionsWithoutCore = (n) => n === "moveInput";
|
|
30
|
-
const [C, H] =
|
|
28
|
+
const [C, H] = ve(e.value);
|
|
31
29
|
let W = l(null);
|
|
32
30
|
W.current = C;
|
|
33
31
|
const ne = de(fe(re));
|
|
34
32
|
let R = l(null), t = l(null), S = l(null), P = l(null);
|
|
35
|
-
const a =
|
|
33
|
+
const a = Ce(je);
|
|
36
34
|
let k = l(!1), V = l(!1), p = l(!1), m = l(null), h = l(null), z = l(null), X = l(null), E = l(!1), j = l(!1);
|
|
37
|
-
E.current = e.fixed, j.current = !e.draggable || e.fixLocation || e.fixed,
|
|
35
|
+
E.current = e.fixed, j.current = !e.draggable || e.fixLocation || e.fixed, ye(() => () => {
|
|
38
36
|
t.current !== null && ie();
|
|
39
37
|
}, []), !te && R.current !== e.value ? (H(e.value), R.current = e.value) : R.current = null;
|
|
40
38
|
function w(n) {
|
|
@@ -261,9 +259,9 @@ const _ = ke.button`
|
|
|
261
259
|
] }));
|
|
262
260
|
}
|
|
263
261
|
let L, y = e.label;
|
|
264
|
-
if (e.labelHasLatex && (y = /* @__PURE__ */ r.jsx(
|
|
262
|
+
if (e.labelHasLatex && (y = /* @__PURE__ */ r.jsx(ge, { hideUntilTypeset: "first", inline: !0, dynamic: !0, children: y })), e.asToggleButton)
|
|
265
263
|
L = /* @__PURE__ */ r.jsx(
|
|
266
|
-
|
|
264
|
+
ke,
|
|
267
265
|
{
|
|
268
266
|
id: B,
|
|
269
267
|
isSelected: C,
|
|
@@ -300,5 +298,5 @@ const _ = ke.button`
|
|
|
300
298
|
] });
|
|
301
299
|
});
|
|
302
300
|
export {
|
|
303
|
-
|
|
301
|
+
Be as default
|
|
304
302
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.container{position:relative;padding-left:24px;margin-bottom:4px;margin-right:2px;margin-left:4px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container-disabled{cursor:not-allowed}.container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{position:absolute;top:0;left:0;height:18px;width:18px;background-color:var(--mainGray);border-style:solid;border-color:var(--canvastext);border-radius:var(--mainBorderRadius);border-width:2px;box-sizing:content-box}.checkmark-disabled{background-color:var(--mainGray);border-color:var(--mainGray)}.container:hover input~.checkmark{background-color:var(--lightBlue)}.container:hover input~.checkmark-disabled{background-color:var(--mainGray)}.container input:checked~.checkmark{background-color:var(--mainBlue)}.container:focus-within input~.checkmark{outline:2px solid var(--canvastext);outline-offset:2px}.checkmark:after{content:"";position:absolute;display:none}.container input:checked~.checkmark:after{display:block}.container .checkmark:after{left:5px;top:1px;width:5px;height:10px;border:solid var(--canvas);border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { u as q, C as U, g as Y, j as _, B as I } from "./index-
|
|
1
|
+
import { u as q, C as U, g as Y, j as _, B as I } from "./index-7912373f.js";
|
|
2
2
|
import K, { useRef as c, useContext as Q, useEffect as Z } from "react";
|
|
3
|
-
import { BoardContext as $ } from "./graph-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const ce = K.memo(function E(M) {
|
|
8
|
-
let { name: ee, id: b, SVs: t, actions: m, callAction: p } = q(M, !1);
|
|
3
|
+
import { BoardContext as $ } from "./graph-d69449f2.js";
|
|
4
|
+
const oe = K.memo(function E(M) {
|
|
5
|
+
let { name: ee, id: b, SVs: t, actions: m, callAction: x } = q(M, !1);
|
|
9
6
|
E.ignoreActionsWithoutCore = (o) => o === "moveButton";
|
|
10
7
|
let e = c(null), v = c(null), y = c(null);
|
|
11
8
|
const i = Q($);
|
|
12
|
-
let
|
|
9
|
+
let p = c(!1), B = c(!1), a = c(!1), s = c(null), l = c(null), D = c(null), P = c(null), R = c(!1), X = c(!1);
|
|
13
10
|
R.current = t.fixed, X.current = !t.draggable || t.fixLocation || t.fixed;
|
|
14
11
|
let C = t.label ? t.label : "Button";
|
|
15
12
|
Z(() => () => {
|
|
@@ -42,15 +39,15 @@ const ce = K.memo(function E(M) {
|
|
|
42
39
|
o.anchorx = f, o.anchory = h, y.current = [f, h];
|
|
43
40
|
let u = i.create(
|
|
44
41
|
"button",
|
|
45
|
-
[0, 0, C, () =>
|
|
42
|
+
[0, 0, C, () => x({ action: m[t.clickAction] })],
|
|
46
43
|
o
|
|
47
44
|
);
|
|
48
45
|
u.isDraggable = !X.current, u.on("down", function(n) {
|
|
49
|
-
|
|
46
|
+
p.current = [n.x, n.y], B.current = [...r.coords.scrCoords], a.current = !1;
|
|
50
47
|
}), u.on("hit", function(n) {
|
|
51
48
|
a.current = !1;
|
|
52
49
|
}), u.on("up", function(n) {
|
|
53
|
-
a.current && (
|
|
50
|
+
a.current && (x({
|
|
54
51
|
action: m.moveButton,
|
|
55
52
|
args: {
|
|
56
53
|
x: s.current,
|
|
@@ -58,7 +55,7 @@ const ce = K.memo(function E(M) {
|
|
|
58
55
|
}
|
|
59
56
|
}), a.current = !1);
|
|
60
57
|
}), u.on("keyfocusout", function(n) {
|
|
61
|
-
a.current && (
|
|
58
|
+
a.current && (x({
|
|
62
59
|
action: m.moveButton,
|
|
63
60
|
args: {
|
|
64
61
|
x: s.current,
|
|
@@ -67,7 +64,7 @@ const ce = K.memo(function E(M) {
|
|
|
67
64
|
}), a.current = !1);
|
|
68
65
|
}), u.on("drag", function(n) {
|
|
69
66
|
let d = n.type === "pointermove";
|
|
70
|
-
(!d || Math.abs(n.x -
|
|
67
|
+
(!d || Math.abs(n.x - p.current[0]) > 0.1 || Math.abs(n.y - p.current[1]) > 0.1) && (a.current = !0);
|
|
71
68
|
let [j, F, J, k] = i.getBoundingBox(), G = u.size[0] / i.unitX, w = u.size[1] / i.unitY, O = y.current[0], S = y.current[1], g = 0;
|
|
72
69
|
O === "middle" ? g = -G / 2 : O === "right" && (g = -G);
|
|
73
70
|
let A = 0;
|
|
@@ -75,7 +72,7 @@ const ce = K.memo(function E(M) {
|
|
|
75
72
|
let T = j + 0.04 * (J - j) - g - G, z = J - 0.04 * (J - j) - g, V = k + 0.04 * (F - k) - A - w, W = F - 0.04 * (F - k) - A;
|
|
76
73
|
if (d) {
|
|
77
74
|
var N = i.origin.scrCoords;
|
|
78
|
-
s.current = (B.current[1] + n.x -
|
|
75
|
+
s.current = (B.current[1] + n.x - p.current[0] - N[1]) / i.unitX, l.current = (N[2] - (B.current[2] + n.y - p.current[1])) / i.unitY;
|
|
79
76
|
} else
|
|
80
77
|
s.current = r.X() + u.relativeCoords.usrCoords[1], l.current = r.Y() + u.relativeCoords.usrCoords[2];
|
|
81
78
|
s.current = Math.min(
|
|
@@ -84,7 +81,7 @@ const ce = K.memo(function E(M) {
|
|
|
84
81
|
), l.current = Math.min(
|
|
85
82
|
W,
|
|
86
83
|
Math.max(V, l.current)
|
|
87
|
-
),
|
|
84
|
+
), x({
|
|
88
85
|
action: m.moveButton,
|
|
89
86
|
args: {
|
|
90
87
|
x: s.current,
|
|
@@ -97,7 +94,7 @@ const ce = K.memo(function E(M) {
|
|
|
97
94
|
D.current
|
|
98
95
|
);
|
|
99
96
|
}), u.on("keydown", function(n) {
|
|
100
|
-
n.key === "Enter" && a.current && (
|
|
97
|
+
n.key === "Enter" && a.current && (x({
|
|
101
98
|
action: m.moveButton,
|
|
102
99
|
args: {
|
|
103
100
|
x: s.current,
|
|
@@ -155,7 +152,7 @@ const ce = K.memo(function E(M) {
|
|
|
155
152
|
I,
|
|
156
153
|
{
|
|
157
154
|
id: b + "_button",
|
|
158
|
-
onClick: () =>
|
|
155
|
+
onClick: () => x({ action: m[t.clickAction] }),
|
|
159
156
|
disabled: t.disabled,
|
|
160
157
|
value: C,
|
|
161
158
|
valueHasLatex: t.labelHasLatex
|
|
@@ -164,5 +161,5 @@ const ce = K.memo(function E(M) {
|
|
|
164
161
|
] });
|
|
165
162
|
});
|
|
166
163
|
export {
|
|
167
|
-
|
|
164
|
+
oe as default
|
|
168
165
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { u as o, j as n } from "./index-7912373f.js";
|
|
2
|
+
import a from "react";
|
|
3
|
+
const l = a.memo(function(r) {
|
|
4
|
+
let { name: m, id: e, SVs: t, children: s } = o(r);
|
|
5
|
+
return t.hidden ? null : /* @__PURE__ */ n.jsxs("code", { id: e, style: { margin: "12px 0" }, children: [
|
|
6
|
+
/* @__PURE__ */ n.jsx("a", { name: e }),
|
|
7
|
+
s
|
|
8
|
+
] });
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { u as o, j as e, B as s } from "./index-7912373f.js";
|
|
2
|
+
import c from "react";
|
|
3
|
+
const m = c.memo(function(n) {
|
|
4
|
+
let { name: l, SVs: t, actions: i, callAction: a } = o(n);
|
|
5
|
+
return t.hidden ? null : /* @__PURE__ */ e.jsxs("div", { style: { margin: "12px 0", display: "inline-block" }, children: [
|
|
6
|
+
/* @__PURE__ */ e.jsx("a", { name: l }),
|
|
7
|
+
/* @__PURE__ */ e.jsx(s, { id: l + "_button", onClick: () => a({ action: i.callAction }), disabled: t.disabled, value: t.label })
|
|
8
|
+
] });
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
m as default
|
|
12
|
+
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { u as d, j as
|
|
1
|
+
import { u as d, j as l } from "./index-7912373f.js";
|
|
2
2
|
import s from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const c = s.memo(function(l) {
|
|
6
|
-
let { name: h, id: o, SVs: t, children: n } = d(l);
|
|
3
|
+
const a = s.memo(function(r) {
|
|
4
|
+
let { name: m, id: o, SVs: t, children: n } = d(r);
|
|
7
5
|
if (t.hidden)
|
|
8
6
|
return null;
|
|
9
7
|
let e = { style: { padding: "3px 10px" } };
|
|
10
8
|
t.colSpan !== 1 && (e.colSpan = t.colSpan), t.halign !== null && (e.style.textAlign = t.halign), t.bottom !== "none" && (e.style.borderBottomStyle = "solid", t.bottom === "minor" ? e.style.borderBottomWidth = "thin" : t.bottom === "medium" ? e.style.borderBottomWidth = "medium" : e.style.borderBottomWidth = "thick"), t.right !== "none" && (e.style.borderRightStyle = "solid", t.right === "minor" ? e.style.borderRightWidth = "thin" : t.right === "medium" ? e.style.borderRightWidth = "medium" : e.style.borderRightWidth = "thick");
|
|
11
9
|
let i = n;
|
|
12
|
-
return i.length === 0 && (i = t.text), t.inHeader ? /* @__PURE__ */
|
|
10
|
+
return i.length === 0 && (i = t.text), t.inHeader ? /* @__PURE__ */ l.jsx("th", { id: o, ...e, children: i }) : /* @__PURE__ */ l.jsx("td", { id: o, ...e, children: i });
|
|
13
11
|
});
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
a as default
|
|
16
14
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { u as x, j as i, V as h } from "./index-
|
|
1
|
+
import { u as x, j as i, V as h } from "./index-7912373f.js";
|
|
2
2
|
import y, { useEffect as c, createContext as b } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const j = b(), I = y.memo(function(r) {
|
|
6
|
-
let { name: l, id: a, SVs: e, actions: s, callAction: m } = x(r), f = (n) => {
|
|
3
|
+
const V = b(), F = y.memo(function(r) {
|
|
4
|
+
let { name: l, id: t, SVs: e, actions: s, callAction: m } = x(r), f = (n) => {
|
|
7
5
|
m({
|
|
8
6
|
action: s.recordVisibilityChange,
|
|
9
7
|
args: { isVisible: n }
|
|
@@ -17,31 +15,31 @@ const j = b(), I = y.memo(function(r) {
|
|
|
17
15
|
}, []), c(() => {
|
|
18
16
|
if (e.dataFrame !== null) {
|
|
19
17
|
let n;
|
|
20
|
-
e.colInd !== null ? n = [e.colInd] : n = e.dataFrame.columnTypes.map((
|
|
18
|
+
e.colInd !== null ? n = [e.colInd] : n = e.dataFrame.columnTypes.map((a, p) => a === "number" ? p : null).filter((a) => a !== null);
|
|
21
19
|
let u = [];
|
|
22
|
-
for (let
|
|
20
|
+
for (let a of n)
|
|
23
21
|
e.type === "box" ? u.push({
|
|
24
|
-
y: d(e.dataFrame.data,
|
|
22
|
+
y: d(e.dataFrame.data, a),
|
|
25
23
|
type: "box",
|
|
26
|
-
name: e.dataFrame.columnNames[
|
|
24
|
+
name: e.dataFrame.columnNames[a]
|
|
27
25
|
}) : u.push({
|
|
28
|
-
x: d(e.dataFrame.data,
|
|
26
|
+
x: d(e.dataFrame.data, a),
|
|
29
27
|
type: "histogram",
|
|
30
|
-
name: e.dataFrame.columnNames[
|
|
28
|
+
name: e.dataFrame.columnNames[a]
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
31
|
}, []), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
34
|
-
/* @__PURE__ */ i.jsx("a", { name:
|
|
35
|
-
/* @__PURE__ */ i.jsx(h, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ i.jsx("div", { id:
|
|
32
|
+
/* @__PURE__ */ i.jsx("a", { name: t }),
|
|
33
|
+
/* @__PURE__ */ i.jsx(h, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ i.jsx("div", { id: t }) })
|
|
36
34
|
] });
|
|
37
35
|
});
|
|
38
36
|
function d(o, r) {
|
|
39
37
|
let l = [];
|
|
40
|
-
for (let
|
|
41
|
-
|
|
38
|
+
for (let t of o)
|
|
39
|
+
t[r] !== null && l.push(t[r]);
|
|
42
40
|
return l;
|
|
43
41
|
}
|
|
44
42
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
V as BoardContext,
|
|
44
|
+
F as default
|
|
47
45
|
};
|