@pie-element/venn-classification 0.1.6-next.20261012213240 → 0.1.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/index.js +3 -1
- package/dist/author/index.js.map +1 -1
- package/dist/browser/{VennClassification-CaHr-K1i.js → VennClassification-zXkGR2UM.js} +125 -123
- package/dist/browser/{VennClassification-CaHr-K1i.js.map → VennClassification-zXkGR2UM.js.map} +1 -1
- package/dist/browser/author/index.js +34 -31
- package/dist/browser/controller/index.js +2 -2
- package/dist/browser/{editor-runtime/controller--P8AQebj.js → controller-DUk5lzSD.js} +6 -2
- package/dist/browser/{controller--P8AQebj.js.map → controller-DUk5lzSD.js.map} +1 -1
- package/dist/browser/delivery/index.js +7 -4
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/{VennClassification-CaHr-K1i.js → VennClassification-zXkGR2UM.js} +125 -123
- package/dist/browser/editor-runtime/{VennClassification-CaHr-K1i.js.map → VennClassification-zXkGR2UM.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +188 -185
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +2 -2
- package/dist/browser/{controller--P8AQebj.js → editor-runtime/controller-DUk5lzSD.js} +6 -2
- package/dist/browser/editor-runtime/{controller--P8AQebj.js.map → controller-DUk5lzSD.js.map} +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +7 -4
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-DVFde9An.js → mathjax-CptWnMbQ-B0cEPTr0.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-DVFde9An.js.map → mathjax-CptWnMbQ-B0cEPTr0.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-DVFde9An.js → mathjax-CptWnMbQ-B0cEPTr0.js} +2 -2
- package/dist/browser/{mathjax-CptWnMbQ-DVFde9An.js.map → mathjax-CptWnMbQ-B0cEPTr0.js.map} +1 -1
- package/dist/delivery/index.js +25 -23
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.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/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, _ as S, b as C, c as w, d as ee, f as T, g as E, h as te, j as D, k as O, l as ne, m as re, n as ie, p as ae, q as k, t as oe, u as se, v as ce, w as le, x as ue, y as A, z as de } from "../VennClassification-
|
|
2
|
-
import { _ as fe,
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, _ as S, b as C, c as w, d as ee, f as T, g as E, h as te, j as D, k as O, l as ne, m as re, n as ie, p as ae, q as k, t as oe, u as se, v as ce, w as le, x as ue, y as A, z as de } from "../VennClassification-zXkGR2UM.js";
|
|
2
|
+
import { _ as fe, b as pe, g as me, h as he, i as ge, m as _e, n as ve, v as ye, y as be } from "../controller-DUk5lzSD.js";
|
|
3
3
|
//#region ../../shared/configure-events/dist/index.js
|
|
4
4
|
var xe = class e extends CustomEvent {
|
|
5
5
|
static {
|
|
@@ -17508,11 +17508,11 @@ function JS(e, t) {
|
|
|
17508
17508
|
o(t, !0), ce(e, qS);
|
|
17509
17509
|
let n = ne(t, "circles", 7), c = ne(t, "regionLabels", 23, () => ({})), l = ne(t, "value", 7), u = ne(t, "onchange", 7), m = y(() => me(n()?.length || 0));
|
|
17510
17510
|
function h(e) {
|
|
17511
|
-
let t =
|
|
17512
|
-
return r && r.trim().length > 0 ? r :
|
|
17511
|
+
let t = be(e), r = c()?.[t];
|
|
17512
|
+
return r && r.trim().length > 0 ? r : he(n() || [], e);
|
|
17513
17513
|
}
|
|
17514
17514
|
function _(e) {
|
|
17515
|
-
return
|
|
17515
|
+
return pe(e, l());
|
|
17516
17516
|
}
|
|
17517
17517
|
var v = {
|
|
17518
17518
|
get circles() {
|
|
@@ -17540,7 +17540,7 @@ function JS(e, t) {
|
|
|
17540
17540
|
u(e), s();
|
|
17541
17541
|
}
|
|
17542
17542
|
}, b = KS();
|
|
17543
|
-
return C(b, 21, () => f(m), (e) =>
|
|
17543
|
+
return C(b, 21, () => f(m), (e) => be(e), (e, t) => {
|
|
17544
17544
|
var n = GS();
|
|
17545
17545
|
let o;
|
|
17546
17546
|
var s = a(n), c = d(s, !0), l = d(g(s, 2), !0);
|
|
@@ -17549,7 +17549,7 @@ function JS(e, t) {
|
|
|
17549
17549
|
}, [
|
|
17550
17550
|
() => _(f(t)),
|
|
17551
17551
|
() => _(f(t)),
|
|
17552
|
-
() =>
|
|
17552
|
+
() => be(f(t)) || "—",
|
|
17553
17553
|
() => h(f(t))
|
|
17554
17554
|
]), D("click", n, () => u()(f(t))), r(e, n);
|
|
17555
17555
|
}), k(b), r(e, b), x(v);
|
|
@@ -17568,7 +17568,7 @@ var YS = O("<div class=\"field-group svelte-13ppn6m\"><div class=\"field-header
|
|
|
17568
17568
|
};
|
|
17569
17569
|
function uC(e, n) {
|
|
17570
17570
|
o(n, !0), ce(e, lC);
|
|
17571
|
-
let l = ne(n, "model", 7), u = ne(n, "configuration", 7), m = y(() => De(
|
|
17571
|
+
let l = ne(n, "model", 7), u = ne(n, "configuration", 7), m = y(() => De(_e.configuration, u())), v = [{
|
|
17572
17572
|
label: "Partial credit per tile",
|
|
17573
17573
|
value: "partialPerTile"
|
|
17574
17574
|
}, {
|
|
@@ -17579,7 +17579,7 @@ function uC(e, n) {
|
|
|
17579
17579
|
n.$$host.model = e, n.$$host.dispatchEvent(new xe(e));
|
|
17580
17580
|
}
|
|
17581
17581
|
function w() {
|
|
17582
|
-
return
|
|
17582
|
+
return ge(l() || void 0);
|
|
17583
17583
|
}
|
|
17584
17584
|
function O(e) {
|
|
17585
17585
|
S({
|
|
@@ -17608,7 +17608,7 @@ function uC(e, n) {
|
|
|
17608
17608
|
let t = w().tiles.slice();
|
|
17609
17609
|
t.splice(e, 1), O({ tiles: t });
|
|
17610
17610
|
}
|
|
17611
|
-
function
|
|
17611
|
+
function pe(e, t) {
|
|
17612
17612
|
let n = w(), r = e + t;
|
|
17613
17613
|
if (r < 0 || r >= n.tiles.length) return;
|
|
17614
17614
|
let i = n.tiles.slice();
|
|
@@ -17652,7 +17652,7 @@ function uC(e, n) {
|
|
|
17652
17652
|
function je(e, t) {
|
|
17653
17653
|
O({ tiles: w().tiles.map((n, r) => r === e ? {
|
|
17654
17654
|
...n,
|
|
17655
|
-
correctRegion:
|
|
17655
|
+
correctRegion: ye(t)
|
|
17656
17656
|
} : n) });
|
|
17657
17657
|
}
|
|
17658
17658
|
function Me(e, t) {
|
|
@@ -17662,7 +17662,7 @@ function uC(e, n) {
|
|
|
17662
17662
|
let j = y(w), Ne = y(() => me(f(j).circles?.length || 0)), Pe = y(() => {
|
|
17663
17663
|
let e = /* @__PURE__ */ new Set();
|
|
17664
17664
|
return f(j).tiles.filter((t) => e.has(t.id) ? !1 : (e.add(t.id), !0));
|
|
17665
|
-
}), Fe = y(() =>
|
|
17665
|
+
}), Fe = y(() => ve({
|
|
17666
17666
|
...f(j),
|
|
17667
17667
|
tiles: f(Pe)
|
|
17668
17668
|
})), Ie = y(() => ({
|
|
@@ -17805,14 +17805,14 @@ function uC(e, n) {
|
|
|
17805
17805
|
}), k(S), k(x);
|
|
17806
17806
|
var w = g(x, 2), ne = a(w), ce = g(a(ne), 2);
|
|
17807
17807
|
k(ne);
|
|
17808
|
-
var
|
|
17808
|
+
var me = g(ne, 2), ge = (e) => {
|
|
17809
17809
|
r(e, ZS());
|
|
17810
17810
|
};
|
|
17811
|
-
_(
|
|
17812
|
-
f(j).tiles.length === 0 && e(
|
|
17811
|
+
_(me, (e) => {
|
|
17812
|
+
f(j).tiles.length === 0 && e(ge);
|
|
17813
17813
|
});
|
|
17814
|
-
var
|
|
17815
|
-
C(
|
|
17814
|
+
var _e = g(me, 2);
|
|
17815
|
+
C(_e, 21, () => f(j).tiles, ue, (e, t, n) => {
|
|
17816
17816
|
var i = $S(), o = a(i), s = a(o), c = a(s), l = g(a(c), 2);
|
|
17817
17817
|
T(l), k(c);
|
|
17818
17818
|
var u = g(c, 2), m = g(a(u), 2);
|
|
@@ -17846,19 +17846,19 @@ function uC(e, n) {
|
|
|
17846
17846
|
onchange: (e) => je(n, e)
|
|
17847
17847
|
}), k(re), k(i), p(() => {
|
|
17848
17848
|
te(l, f(t).id), te(m, f(t).label), te(v, f(t).imageUrl ?? ""), te(x, f(t).imageAlt ?? ""), O.disabled = n === f(j).tiles.length - 1;
|
|
17849
|
-
}), D("input", l, (e) => Ee(n, e.currentTarget.value)), D("input", m, (e) => Se(n, e.currentTarget.value)), D("input", v, (e) => Ce(n, e.currentTarget.value)), D("input", x, (e) => we(n, e.currentTarget.value)), D("click", E, () =>
|
|
17850
|
-
}), k(
|
|
17851
|
-
var
|
|
17852
|
-
C(g(a(
|
|
17853
|
-
let n = y(() =>
|
|
17849
|
+
}), D("input", l, (e) => Ee(n, e.currentTarget.value)), D("input", m, (e) => Se(n, e.currentTarget.value)), D("input", v, (e) => Ce(n, e.currentTarget.value)), D("input", x, (e) => we(n, e.currentTarget.value)), D("click", E, () => pe(n, -1)), D("click", O, () => pe(n, 1)), D("click", ne, () => de(n)), r(e, i);
|
|
17850
|
+
}), k(_e), k(w);
|
|
17851
|
+
var ve = g(w, 2);
|
|
17852
|
+
C(g(a(ve), 4), 17, () => f(Ne), (e) => be(e), (e, t) => {
|
|
17853
|
+
let n = y(() => be(f(t))), o = y(() => he(f(j).circles || [], f(t)));
|
|
17854
17854
|
var s = eC(), c = a(s), l = d(c, !0), u = g(c, 2);
|
|
17855
17855
|
T(u), k(s), p(() => {
|
|
17856
17856
|
i(l, f(n) || "(outside)"), ae(u, "placeholder", f(o)), te(u, f(j).regionLabels?.[f(n)] ?? "");
|
|
17857
17857
|
}), D("input", u, (e) => Me(f(n), e.currentTarget.value)), r(e, s);
|
|
17858
|
-
}), k(
|
|
17859
|
-
var
|
|
17860
|
-
ae(
|
|
17861
|
-
var xe = g(
|
|
17858
|
+
}), k(ve), k(s);
|
|
17859
|
+
var ye = g(s, 2);
|
|
17860
|
+
ae(ye, "aria-valuemin", 260);
|
|
17861
|
+
var xe = g(ye, 2), De = g(a(xe), 4), Oe = a(De), ke = g(a(Oe));
|
|
17862
17862
|
k(Oe);
|
|
17863
17863
|
var Ae = g(Oe, 2), Pe = g(a(Ae));
|
|
17864
17864
|
k(Ae);
|
|
@@ -17897,14 +17897,14 @@ function uC(e, n) {
|
|
|
17897
17897
|
var m = d(g(o, 4), !0);
|
|
17898
17898
|
k(n), p((e, t) => {
|
|
17899
17899
|
i(u, ` ${e ?? ""}`), i(m, t);
|
|
17900
|
-
}, [() => ie(f(t).label) || (f(t).imageAlt ?? "").trim() || f(t).id, () =>
|
|
17900
|
+
}, [() => ie(f(t).label) || (f(t).imageAlt ?? "").trim() || f(t).id, () => fe(f(j), f(t).correctRegion)]), r(e, n);
|
|
17901
17901
|
}), k(n), r(e, t);
|
|
17902
17902
|
};
|
|
17903
17903
|
_(Ye, (e) => {
|
|
17904
17904
|
f(j).tiles.length > 0 && e(Xe);
|
|
17905
17905
|
}), k(xe), k(o), se(o, (e) => t(Le, e), () => f(Le)), p((e, t) => {
|
|
17906
|
-
l = E(s, "", l, { width: f(He) }), ae(
|
|
17907
|
-
}, [() => f(Ve) ?? (f(Re) > 0 ? Math.floor((f(Re) - 6) / 2) : 260), () => f(j).circles.map((e) => e.label).join(", ")]), D("click", ce, A), D("pointerdown",
|
|
17906
|
+
l = E(s, "", l, { width: f(He) }), ae(ye, "aria-valuemax", f(Re) > 0 ? f(Re) - 200 - 6 : 360), ae(ye, "aria-valuenow", e), i(ke, ` ${t ?? ""}`), i(Pe, ` ${f(j).scoringPolicy === "allOrNothing" ? "All or nothing" : "Partial per tile"}`), i(Be, ` ${f(j).tiles.length ?? ""}`);
|
|
17907
|
+
}, [() => f(Ve) ?? (f(Re) > 0 ? Math.floor((f(Re) - 6) / 2) : 260), () => f(j).circles.map((e) => e.label).join(", ")]), D("click", ce, A), D("pointerdown", ye, Ue), D("keydown", ye, We), ee(o, "clientWidth", (e) => t(Re, e)), r(e, o);
|
|
17908
17908
|
},
|
|
17909
17909
|
$$slots: {
|
|
17910
17910
|
settings: !0,
|
|
@@ -17925,8 +17925,11 @@ e([
|
|
|
17925
17925
|
}, [], []);
|
|
17926
17926
|
//#endregion
|
|
17927
17927
|
//#region src/author/index.ts
|
|
17928
|
-
var dC = uC.element
|
|
17928
|
+
var dC = uC.element, fC = Object.freeze({
|
|
17929
|
+
name: "@pie-element/venn-classification",
|
|
17930
|
+
version: "0.1.6"
|
|
17931
|
+
});
|
|
17929
17932
|
//#endregion
|
|
17930
|
-
export { dC as default };
|
|
17933
|
+
export { dC as default, fC as piePackage };
|
|
17931
17934
|
|
|
17932
17935
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t,
|
|
2
|
-
export {
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "../controller-DUk5lzSD.js";
|
|
2
|
+
export { h as SUPPORTED_CIRCLE_COUNTS, u as buildPreviewSession, s as composeRegionLabel, p as createCorrectResponseSession, c as createDefaultModel, t as effectiveScoringPolicy, o as enumerateRegions, d as getCorrectnessMap, e as getRegionLabel, m as getTileCorrectness, r as isComplete, l as model, _ as normalizeRegion, g as normalizeSession, i as outcome, a as piePackage, v as regionKey, n as regionsEqual, f as validate };
|
|
@@ -2067,7 +2067,11 @@ function Ee(e) {
|
|
|
2067
2067
|
completed: !0
|
|
2068
2068
|
};
|
|
2069
2069
|
}
|
|
2070
|
+
var De = Object.freeze({
|
|
2071
|
+
name: "@pie-element/venn-classification",
|
|
2072
|
+
version: "0.1.6"
|
|
2073
|
+
});
|
|
2070
2074
|
//#endregion
|
|
2071
|
-
export {
|
|
2075
|
+
export { fe as S, me as _, be as a, Y as b, _e as c, Se as d, De as f, pe as g, X as h, $ as i, Ce as l, Z as m, Ee as n, ye as o, Te as p, we as r, ve as s, Q as t, ge as u, J as v, K as x, q as y };
|
|
2072
2076
|
|
|
2073
|
-
//# sourceMappingURL=controller
|
|
2077
|
+
//# sourceMappingURL=controller-DUk5lzSD.js.map
|