@pie-element/select-text 14.1.0-next.20261023051841 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +24 -14
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/author/index.js +24 -14
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/print/index.js +1 -1
- package/dist/browser/print/index.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 +16 -16
|
@@ -192,7 +192,7 @@ var S = (e) => ({
|
|
|
192
192
|
return s < r ? o.tokensError = `There should be at least ${r} tokens defined.` : i !== void 0 && s > i && (o.tokensError = `No more than ${i} tokens should be defined.`), c < 1 ? o.selectionsError = "There should be at least 1 token selected." : a !== void 0 && c > a && (o.selectionsError = `No more than ${a} tokens should be selected.`), o;
|
|
193
193
|
}, O = Object.freeze({
|
|
194
194
|
name: "@pie-element/select-text",
|
|
195
|
-
version: "14.1.0
|
|
195
|
+
version: "14.1.0"
|
|
196
196
|
});
|
|
197
197
|
//#endregion
|
|
198
198
|
export { T as createCorrectResponseSession, x as createDefaultModel, g as getCorrectness, y as getLogTrace, v as getPartialScore, w as model, C as normalize, S as normalizeSession, b as outcome, O as piePackage, D as validate };
|
|
@@ -14106,6 +14106,12 @@ var zy = (e) => e ? {
|
|
|
14106
14106
|
children: s.map((e, t) => {
|
|
14107
14107
|
let n = this.buttonClick.bind(this, e);
|
|
14108
14108
|
if (!e) return /* @__PURE__ */ U("span", {}, `empty-${t}`);
|
|
14109
|
+
if (!(e.label || e.latex || e.icon || e.command || e.keystroke || e.write || e.type || e.actions || e.extraProps)) return /* @__PURE__ */ U(Vy, {
|
|
14110
|
+
disabled: !0,
|
|
14111
|
+
"aria-hidden": "true",
|
|
14112
|
+
tabIndex: -1,
|
|
14113
|
+
category: o ? void 0 : e.category
|
|
14114
|
+
}, `placeholder-${t}`);
|
|
14109
14115
|
let r = {
|
|
14110
14116
|
onClick: n,
|
|
14111
14117
|
disabled: this.keyIsNotAllowed(e),
|
|
@@ -23255,24 +23261,27 @@ var Zy = (e) => String(e || "").replace(/-/g, "_"), Qy = (e) => e && e.attrs &&
|
|
|
23255
23261
|
}
|
|
23256
23262
|
},
|
|
23257
23263
|
"& span[data-prime=\"true\"]": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
|
|
23258
|
-
})), yb = C(pe)({
|
|
23259
|
-
|
|
23260
|
-
width: "25%",
|
|
23264
|
+
})), yb = C(pe)(({ theme: e }) => ({
|
|
23265
|
+
width: "fit-content",
|
|
23261
23266
|
minWidth: "100px",
|
|
23262
|
-
|
|
23263
|
-
|
|
23264
|
-
|
|
23265
|
-
|
|
23267
|
+
maxWidth: "150px",
|
|
23268
|
+
marginLeft: e.spacing(2),
|
|
23269
|
+
marginTop: e.spacing(.5),
|
|
23270
|
+
marginBottom: e.spacing(.5),
|
|
23271
|
+
marginRight: e.spacing(2),
|
|
23266
23272
|
"& label": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" },
|
|
23267
23273
|
"& div": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
|
|
23268
|
-
}), bb = C(je)(() => ({ backgroundColor: "transparent" })), xb = C("div")(({ theme: e, error: t }) => ({
|
|
23269
|
-
|
|
23270
|
-
|
|
23274
|
+
})), bb = C(je)(() => ({ backgroundColor: "transparent" })), xb = C("div")(({ theme: e, error: t, controlledKeypadMode: n }) => ({
|
|
23275
|
+
...n ? {
|
|
23276
|
+
flex: 1,
|
|
23277
|
+
minWidth: 0
|
|
23278
|
+
} : {
|
|
23279
|
+
width: "100%",
|
|
23280
|
+
minWidth: "500px",
|
|
23281
|
+
maxWidth: "900px"
|
|
23282
|
+
},
|
|
23271
23283
|
minHeight: "30px",
|
|
23272
|
-
width: "100%",
|
|
23273
23284
|
display: "flex",
|
|
23274
|
-
marginTop: e.spacing(1),
|
|
23275
|
-
marginBottom: e.spacing(1),
|
|
23276
23285
|
...t && { border: "2px solid red" },
|
|
23277
23286
|
"& .mq-sqrt-prefix .mq-scaled": { verticalAlign: "middle !important" }
|
|
23278
23287
|
})), Sb = C(jy.Input)(({ controlledKeypadMode: e }) => ({
|
|
@@ -23460,6 +23469,7 @@ var Zy = (e) => String(e || "").replace(/-/g, "_"), Qy = (e) => e && e.attrs &&
|
|
|
23460
23469
|
})]
|
|
23461
23470
|
}), /* @__PURE__ */ U(xb, {
|
|
23462
23471
|
error: m,
|
|
23472
|
+
controlledKeypadMode: a,
|
|
23463
23473
|
children: /* @__PURE__ */ U(Sb, {
|
|
23464
23474
|
onFocus: () => {
|
|
23465
23475
|
f && f(), this.updateDisable(!1);
|
|
@@ -29014,7 +29024,7 @@ var zT = ut, BT = zT.default, VT = BT && typeof BT == "object" ? BT : zT, HT = R
|
|
|
29014
29024
|
}
|
|
29015
29025
|
}, yE = Object.freeze({
|
|
29016
29026
|
name: "@pie-element/select-text",
|
|
29017
|
-
version: "14.1.0
|
|
29027
|
+
version: "14.1.0"
|
|
29018
29028
|
});
|
|
29019
29029
|
//#endregion
|
|
29020
29030
|
export { vE as default, yE as piePackage };
|