@citolab/qti-components 10.0.0-next.13 → 10.0.0-next.15
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/cdn/index.global.js +1 -1
- package/cdn/index.js +522 -435
- package/dist/base.d.ts +4 -4
- package/dist/base.js +1 -1
- package/dist/{chunk-PHRHLDQB.js → chunk-32PI7KWX.js} +2 -2
- package/dist/{chunk-MDBNEEPH.js → chunk-5AJZGRWI.js} +8 -3
- package/dist/chunk-5AJZGRWI.js.map +1 -0
- package/dist/{chunk-LFVPS7KB.js → chunk-DAOLVUTR.js} +2 -2
- package/dist/{chunk-K4WLYVDT.js → chunk-F553IZPL.js} +2 -2
- package/dist/{chunk-HOGJ5ZNW.js → chunk-G2EIC7H2.js} +221 -107
- package/dist/chunk-G2EIC7H2.js.map +1 -0
- package/dist/{chunk-EIBGCCXH.js → chunk-HT3LSWXL.js} +2 -2
- package/dist/{chunk-WUIA4OOX.js → chunk-IM5AKPIJ.js} +34 -6
- package/dist/chunk-IM5AKPIJ.js.map +1 -0
- package/dist/{chunk-FLAD6SC6.js → chunk-IWNRQVNW.js} +2 -2
- package/dist/{chunk-TLAVOBEM.js → chunk-LORYM4U2.js} +120 -1
- package/dist/chunk-LORYM4U2.js.map +1 -0
- package/dist/{chunk-Y5DZTCDP.js → chunk-MIQZBDTB.js} +225 -258
- package/dist/chunk-MIQZBDTB.js.map +1 -0
- package/dist/{chunk-AKX4YMWU.js → chunk-QT7WQXCS.js} +237 -95
- package/dist/chunk-QT7WQXCS.js.map +1 -0
- package/dist/chunk-RNLSNH4N.js +7 -0
- package/dist/chunk-RNLSNH4N.js.map +1 -0
- package/dist/{chunk-H3GITIPE.js → chunk-URYYGVTA.js} +23 -7
- package/dist/chunk-URYYGVTA.js.map +1 -0
- package/dist/{chunk-G6LTYTJR.js → chunk-WIUPAUJV.js} +2 -2
- package/dist/{chunk-PYHKCIYN.js → chunk-XY5DHYIH.js} +4 -4
- package/dist/{config.context.d-BniMHSBB.d.ts → config.context.d-CCqlJXpE.d.ts} +2 -1
- package/dist/corrections.d.ts +8 -8
- package/dist/corrections.js +9 -9
- package/dist/elements.d.ts +84 -14
- package/dist/elements.js +4 -4
- package/dist/index.d.ts +9 -9
- package/dist/index.js +15 -15
- package/dist/interactions.d.ts +17 -5
- package/dist/interactions.js +3 -3
- package/dist/item.css +132 -18
- package/dist/item.d.ts +4 -4
- package/dist/item.js +5 -5
- package/dist/loader.d.ts +2 -2
- package/dist/loader.js +2 -2
- package/dist/processing.d.ts +8 -4
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +291 -115
- package/dist/{qti-feedback.d-DbzPSJuK.d.ts → qti-feedback.d-GAqMqAt6.d.ts} +7 -0
- package/dist/{qti-item.d-BqWYBdV2.d.ts → qti-item.d-pFcNk0th.d.ts} +1 -1
- package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
- package/dist/{qti-test.d-B6AGSQlk.d.ts → qti-test.d-BjhVQnQy.d.ts} +31 -5
- package/dist/{qti-text-entry-interaction.d-B44Z3qUG.d.ts → qti-text-entry-interaction.d-DECzpIzi.d.ts} +50 -14
- package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-Bb9vnLzP.d.ts} +1 -0
- package/dist/{record.d-C6m0Y4xr.d.ts → record.d-CljDLwRz.d.ts} +1 -1
- package/dist/test.d.ts +6 -6
- package/dist/test.js +6 -6
- package/dist/transformers.d.ts +1 -1
- package/dist/transformers.js +1 -1
- package/package.json +11 -11
- package/dist/chunk-AKX4YMWU.js.map +0 -1
- package/dist/chunk-DVLSXMXD.js +0 -7
- package/dist/chunk-DVLSXMXD.js.map +0 -1
- package/dist/chunk-H3GITIPE.js.map +0 -1
- package/dist/chunk-HOGJ5ZNW.js.map +0 -1
- package/dist/chunk-MDBNEEPH.js.map +0 -1
- package/dist/chunk-TLAVOBEM.js.map +0 -1
- package/dist/chunk-WUIA4OOX.js.map +0 -1
- package/dist/chunk-Y5DZTCDP.js.map +0 -1
- /package/dist/{chunk-PHRHLDQB.js.map → chunk-32PI7KWX.js.map} +0 -0
- /package/dist/{chunk-LFVPS7KB.js.map → chunk-DAOLVUTR.js.map} +0 -0
- /package/dist/{chunk-K4WLYVDT.js.map → chunk-F553IZPL.js.map} +0 -0
- /package/dist/{chunk-EIBGCCXH.js.map → chunk-HT3LSWXL.js.map} +0 -0
- /package/dist/{chunk-FLAD6SC6.js.map → chunk-IWNRQVNW.js.map} +0 -0
- /package/dist/{chunk-G6LTYTJR.js.map → chunk-WIUPAUJV.js.map} +0 -0
- /package/dist/{chunk-PYHKCIYN.js.map → chunk-XY5DHYIH.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
responseAttributeConverter,
|
|
18
18
|
serializeResponseAttribute,
|
|
19
19
|
validationMessage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IM5AKPIJ.js";
|
|
21
21
|
|
|
22
22
|
// ../interactions/core/dist/elements/qti-associable-hotspot/qti-associable-hotspot.js
|
|
23
23
|
import { LitElement, html } from "lit";
|
|
@@ -633,9 +633,15 @@ var styles = css7`
|
|
|
633
633
|
* An option row: one line, clipped, with its text centred against the row's min-height. All four
|
|
634
634
|
* were in the theme, set on this host from the document — which is also why the 'display: block'
|
|
635
635
|
* this file declared never took effect.
|
|
636
|
+
*
|
|
637
|
+
* Block-level flex, not inline-flex. The rows are stacked by being full-width, but inline-level
|
|
638
|
+
* rows still sit on ONE line in the menu's max-content pass, and the menu is a shrink-to-fit
|
|
639
|
+
* popover: it came out as wide as all options side by side (measured: rows "vind" + "vindt" gave
|
|
640
|
+
* a 107px menu under a 76px field). Block rows each start their own line, so the menu is as wide
|
|
641
|
+
* as its widest row, or the field it anchors to.
|
|
636
642
|
*/
|
|
637
643
|
:host {
|
|
638
|
-
display:
|
|
644
|
+
display: flex;
|
|
639
645
|
align-items: center;
|
|
640
646
|
white-space: nowrap;
|
|
641
647
|
overflow: hidden;
|
|
@@ -1287,22 +1293,22 @@ var [Observable, Subscriber] = (() => {
|
|
|
1287
1293
|
const AsyncFromSyncIteratorPrototype = {
|
|
1288
1294
|
next(...args) {
|
|
1289
1295
|
const O = this;
|
|
1290
|
-
const
|
|
1291
|
-
if (!
|
|
1296
|
+
const state16 = privateState.get(O);
|
|
1297
|
+
if (!state16?.syncIteratorRecord)
|
|
1292
1298
|
throw new TypeError(
|
|
1293
1299
|
"AsyncFromSyncIteratorPrototype.next called on invalid object"
|
|
1294
1300
|
);
|
|
1295
|
-
const { syncIteratorRecord } =
|
|
1301
|
+
const { syncIteratorRecord } = state16;
|
|
1296
1302
|
return pTry(() => syncIteratorRecord.next(...args));
|
|
1297
1303
|
},
|
|
1298
1304
|
return(...args) {
|
|
1299
1305
|
const O = this;
|
|
1300
|
-
const
|
|
1301
|
-
if (!
|
|
1306
|
+
const state16 = privateState.get(O);
|
|
1307
|
+
if (!state16?.syncIteratorRecord)
|
|
1302
1308
|
throw new TypeError(
|
|
1303
1309
|
"AsyncFromSyncIteratorPrototype.return called on invalid object"
|
|
1304
1310
|
);
|
|
1305
|
-
const { syncIteratorRecord } =
|
|
1311
|
+
const { syncIteratorRecord } = state16;
|
|
1306
1312
|
return pTry(() => {
|
|
1307
1313
|
if (!syncIteratorRecord.return) return { value: void 0, done: true };
|
|
1308
1314
|
return syncIteratorRecord.return(...args);
|
|
@@ -1310,12 +1316,12 @@ var [Observable, Subscriber] = (() => {
|
|
|
1310
1316
|
},
|
|
1311
1317
|
throw(...args) {
|
|
1312
1318
|
const O = this;
|
|
1313
|
-
const
|
|
1314
|
-
if (!
|
|
1319
|
+
const state16 = privateState.get(O);
|
|
1320
|
+
if (!state16?.syncIteratorRecord)
|
|
1315
1321
|
throw new TypeError(
|
|
1316
1322
|
"AsyncFromSyncIteratorPrototype.throw called on invalid object"
|
|
1317
1323
|
);
|
|
1318
|
-
const { syncIteratorRecord } =
|
|
1324
|
+
const { syncIteratorRecord } = state16;
|
|
1319
1325
|
return pTry(() => {
|
|
1320
1326
|
if (!syncIteratorRecord.throw) {
|
|
1321
1327
|
syncIteratorRecord.return();
|
|
@@ -1381,11 +1387,11 @@ var [Observable, Subscriber] = (() => {
|
|
|
1381
1387
|
}
|
|
1382
1388
|
}
|
|
1383
1389
|
function closeASubscription(subscriber, reason) {
|
|
1384
|
-
const
|
|
1385
|
-
if (!
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
for (const teardown of
|
|
1390
|
+
const state16 = privateState.get(subscriber);
|
|
1391
|
+
if (!state16?.active) return;
|
|
1392
|
+
state16.active = false;
|
|
1393
|
+
state16.subscriptionController.abort(reason);
|
|
1394
|
+
for (const teardown of state16.teardowns.reverse()) {
|
|
1389
1395
|
if (isBrowserContext() && !isDocumentFullyActive(document)) return;
|
|
1390
1396
|
try {
|
|
1391
1397
|
teardown();
|
|
@@ -1466,10 +1472,10 @@ var [Observable, Subscriber] = (() => {
|
|
|
1466
1472
|
if (!(this instanceof Subscriber2))
|
|
1467
1473
|
throw new TypeError("illegal invocation");
|
|
1468
1474
|
if (!arguments.length) throw new TypeError("too few arguments");
|
|
1469
|
-
const
|
|
1470
|
-
if (!
|
|
1475
|
+
const state16 = privateState.get(this);
|
|
1476
|
+
if (!state16?.active) return;
|
|
1471
1477
|
if (isBrowserContext() && !isDocumentFullyActive(document)) return;
|
|
1472
|
-
const internalObservers = new Set(
|
|
1478
|
+
const internalObservers = new Set(state16.observers);
|
|
1473
1479
|
for (const observer of internalObservers) {
|
|
1474
1480
|
observer.next(value);
|
|
1475
1481
|
}
|
|
@@ -1479,14 +1485,14 @@ var [Observable, Subscriber] = (() => {
|
|
|
1479
1485
|
if (!(this instanceof Subscriber2))
|
|
1480
1486
|
throw new TypeError("illegal invocation");
|
|
1481
1487
|
if (!arguments.length) throw new TypeError("too few arguments");
|
|
1482
|
-
const
|
|
1483
|
-
if (!
|
|
1488
|
+
const state16 = privateState.get(this);
|
|
1489
|
+
if (!state16?.active) {
|
|
1484
1490
|
reportError(error);
|
|
1485
1491
|
return;
|
|
1486
1492
|
}
|
|
1487
1493
|
if (isBrowserContext() && !isDocumentFullyActive(document)) return;
|
|
1488
1494
|
closeASubscription(this, error);
|
|
1489
|
-
const internalObservers = new Set(
|
|
1495
|
+
const internalObservers = new Set(state16.observers);
|
|
1490
1496
|
for (const observer of internalObservers) {
|
|
1491
1497
|
observer.error(error);
|
|
1492
1498
|
}
|
|
@@ -1495,11 +1501,11 @@ var [Observable, Subscriber] = (() => {
|
|
|
1495
1501
|
complete() {
|
|
1496
1502
|
if (!(this instanceof Subscriber2))
|
|
1497
1503
|
throw new TypeError("illegal invocation");
|
|
1498
|
-
const
|
|
1499
|
-
if (!
|
|
1504
|
+
const state16 = privateState.get(this);
|
|
1505
|
+
if (!state16?.active) return;
|
|
1500
1506
|
if (isBrowserContext() && !isDocumentFullyActive(document)) return;
|
|
1501
1507
|
closeASubscription(this);
|
|
1502
|
-
const internalObservers = new Set(
|
|
1508
|
+
const internalObservers = new Set(state16.observers);
|
|
1503
1509
|
for (const observer of internalObservers) {
|
|
1504
1510
|
observer.complete();
|
|
1505
1511
|
}
|
|
@@ -1512,9 +1518,9 @@ var [Observable, Subscriber] = (() => {
|
|
|
1512
1518
|
throw new TypeError(`Parameter 1 is not of type 'Function'`);
|
|
1513
1519
|
}
|
|
1514
1520
|
if (isBrowserContext() && !isDocumentFullyActive(document)) return;
|
|
1515
|
-
const
|
|
1516
|
-
if (
|
|
1517
|
-
|
|
1521
|
+
const state16 = privateState.get(this);
|
|
1522
|
+
if (state16?.active)
|
|
1523
|
+
state16.teardowns.push(teardown);
|
|
1518
1524
|
else teardown();
|
|
1519
1525
|
}
|
|
1520
1526
|
get active() {
|
|
@@ -2698,17 +2704,17 @@ function isDraggableDisabled(target) {
|
|
|
2698
2704
|
return internals?.states?.has("disabled") ?? false;
|
|
2699
2705
|
}
|
|
2700
2706
|
var internalsOf = (el) => el?.internals;
|
|
2701
|
-
function setDragChipState(el,
|
|
2707
|
+
function setDragChipState(el, state16, on) {
|
|
2702
2708
|
const states = internalsOf(el)?.states;
|
|
2703
2709
|
if (!states)
|
|
2704
2710
|
return;
|
|
2705
2711
|
if (on)
|
|
2706
|
-
states.add(
|
|
2712
|
+
states.add(state16);
|
|
2707
2713
|
else
|
|
2708
|
-
states.delete(
|
|
2714
|
+
states.delete(state16);
|
|
2709
2715
|
}
|
|
2710
|
-
function hasDragChipState(el,
|
|
2711
|
-
return internalsOf(el)?.states?.has(
|
|
2716
|
+
function hasDragChipState(el, state16) {
|
|
2717
|
+
return internalsOf(el)?.states?.has(state16) ?? false;
|
|
2712
2718
|
}
|
|
2713
2719
|
function clearDragChipStates(el) {
|
|
2714
2720
|
setDragChipState(el, "dragging", false);
|
|
@@ -3558,14 +3564,14 @@ var DragDropCoreMixin = (superClass, draggablesSelector, droppablesSelector, dra
|
|
|
3558
3564
|
returnAnchorItems: []
|
|
3559
3565
|
};
|
|
3560
3566
|
}
|
|
3561
|
-
setInternalsState(
|
|
3567
|
+
setInternalsState(state16, enabled) {
|
|
3562
3568
|
const internals = this._internals;
|
|
3563
3569
|
if (!internals?.states)
|
|
3564
3570
|
return;
|
|
3565
3571
|
if (enabled) {
|
|
3566
|
-
internals.states.add(
|
|
3572
|
+
internals.states.add(state16);
|
|
3567
3573
|
} else {
|
|
3568
|
-
internals.states.delete(
|
|
3574
|
+
internals.states.delete(state16);
|
|
3569
3575
|
}
|
|
3570
3576
|
}
|
|
3571
3577
|
cleanup() {
|
|
@@ -3698,8 +3704,7 @@ var DragDropSlottedMixin = (superClass, draggablesSelector, droppablesSelector,
|
|
|
3698
3704
|
constructor() {
|
|
3699
3705
|
super(...arguments);
|
|
3700
3706
|
this.minAssociations = 1;
|
|
3701
|
-
this.
|
|
3702
|
-
this._maxAssociationsDefaultApplied = false;
|
|
3707
|
+
this.maxAssociations = 0;
|
|
3703
3708
|
this._response = [];
|
|
3704
3709
|
this._dragDrop = { dragsByTarget: {}, countByTarget: {}, nodesByTarget: {} };
|
|
3705
3710
|
this.#placement = /* @__PURE__ */ new WeakMap();
|
|
@@ -3713,22 +3718,6 @@ var DragDropSlottedMixin = (superClass, draggablesSelector, droppablesSelector,
|
|
|
3713
3718
|
this._enableFlipAnimations = true;
|
|
3714
3719
|
this._pendingResponse = void 0;
|
|
3715
3720
|
}
|
|
3716
|
-
get maxAssociations() {
|
|
3717
|
-
if (!this._maxAssociationsDefaultApplied) {
|
|
3718
|
-
this._maxAssociationsDefaultApplied = true;
|
|
3719
|
-
const tagName = this.tagName?.toLowerCase() || "";
|
|
3720
|
-
const isGapMatchInteraction = tagName === "qti-graphic-gap-match-interaction" || tagName === "qti-gap-match-interaction";
|
|
3721
|
-
if (isGapMatchInteraction && !this.hasAttribute("max-associations") && this._maxAssociations === 0) {
|
|
3722
|
-
this._maxAssociations = 1;
|
|
3723
|
-
}
|
|
3724
|
-
}
|
|
3725
|
-
return this._maxAssociations;
|
|
3726
|
-
}
|
|
3727
|
-
set maxAssociations(value) {
|
|
3728
|
-
const oldValue = this._maxAssociations;
|
|
3729
|
-
this._maxAssociations = value;
|
|
3730
|
-
this.requestUpdate("maxAssociations", oldValue);
|
|
3731
|
-
}
|
|
3732
3721
|
/**
|
|
3733
3722
|
* The one place that reads placement out of the DOM.
|
|
3734
3723
|
*
|
|
@@ -4204,7 +4193,7 @@ var DragDropSlottedMixin = (superClass, draggablesSelector, droppablesSelector,
|
|
|
4204
4193
|
}
|
|
4205
4194
|
checkAllMaxAssociations() {
|
|
4206
4195
|
const totalAssociations = this.totalAssociationsFromState();
|
|
4207
|
-
const disableAtMax = this.resolveDisableAfterMaxReached({ defaultWhenUnset:
|
|
4196
|
+
const disableAtMax = this.resolveDisableAfterMaxReached({ defaultWhenUnset: false });
|
|
4208
4197
|
const maxReached = this.maxAssociations > 0 && totalAssociations >= this.maxAssociations;
|
|
4209
4198
|
this.trackedDroppables.forEach((droppable) => {
|
|
4210
4199
|
const isDragSource = droppable.hasAttribute("data-drag-source");
|
|
@@ -4286,7 +4275,7 @@ var DragDropSlottedMixin = (superClass, draggablesSelector, droppablesSelector,
|
|
|
4286
4275
|
], DragDropSlottedElement.prototype, "minAssociations", void 0);
|
|
4287
4276
|
__decorate11([
|
|
4288
4277
|
property11({ type: Number, reflect: true, attribute: "max-associations" })
|
|
4289
|
-
], DragDropSlottedElement.prototype, "maxAssociations",
|
|
4278
|
+
], DragDropSlottedElement.prototype, "maxAssociations", void 0);
|
|
4290
4279
|
__decorate11([
|
|
4291
4280
|
provide({ context: dragDropContext })
|
|
4292
4281
|
], DragDropSlottedElement.prototype, "_dragDrop", void 0);
|
|
@@ -5767,8 +5756,9 @@ __decorate16([
|
|
|
5767
5756
|
], QtiCustomInteraction.prototype, "_errorMessage", void 0);
|
|
5768
5757
|
|
|
5769
5758
|
// ../interactions/end-attempt-interaction/dist/qti-end-attempt-interaction.js
|
|
5759
|
+
import { consume as consume5 } from "@lit/context";
|
|
5770
5760
|
import { html as html14, LitElement as LitElement11 } from "lit";
|
|
5771
|
-
import { property as property16 } from "lit/decorators.js";
|
|
5761
|
+
import { property as property16, state as state7 } from "lit/decorators.js";
|
|
5772
5762
|
|
|
5773
5763
|
// ../interactions/end-attempt-interaction/dist/qti-end-attempt-interaction.styles.js
|
|
5774
5764
|
var qti_end_attempt_interaction_styles_default = [boxSizing];
|
|
@@ -5790,14 +5780,29 @@ var QtiEndAttemptInteraction = class extends LitElement11 {
|
|
|
5790
5780
|
static {
|
|
5791
5781
|
this.styles = qti_end_attempt_interaction_styles_default;
|
|
5792
5782
|
}
|
|
5783
|
+
/** The item says no attempt can end here: it is locked, shown for reading, or an adaptive item that is done. */
|
|
5784
|
+
get #closedByItem() {
|
|
5785
|
+
const context = this._itemContext;
|
|
5786
|
+
if (!context)
|
|
5787
|
+
return false;
|
|
5788
|
+
if (context.disabled || context.readonly)
|
|
5789
|
+
return true;
|
|
5790
|
+
const adaptive = this.closest("qti-assessment-item")?.getAttribute("adaptive") === "true";
|
|
5791
|
+
const completionStatus = context.variables?.find((v) => v.identifier === "completionStatus")?.value;
|
|
5792
|
+
return adaptive && completionStatus === "completed";
|
|
5793
|
+
}
|
|
5793
5794
|
render() {
|
|
5794
|
-
return html14`<button ?disabled=${this.disabled} part="button" @click=${this.endAttempt}
|
|
5795
|
+
return html14`<button ?disabled=${this.disabled || this.#closedByItem} part="button" @click=${this.endAttempt}>
|
|
5796
|
+
${this.title}
|
|
5797
|
+
</button>`;
|
|
5795
5798
|
}
|
|
5796
5799
|
endAttempt(_) {
|
|
5800
|
+
if (this.disabled || this.#closedByItem)
|
|
5801
|
+
return;
|
|
5797
5802
|
this.dispatchEvent(new CustomEvent("end-attempt", {
|
|
5798
5803
|
bubbles: true,
|
|
5799
5804
|
composed: true,
|
|
5800
|
-
detail: { responseIdentifier: this.responseIdentifier, countAttempt: this.countAttempt
|
|
5805
|
+
detail: { responseIdentifier: this.responseIdentifier, countAttempt: this.countAttempt !== "false" }
|
|
5801
5806
|
}));
|
|
5802
5807
|
}
|
|
5803
5808
|
};
|
|
@@ -5807,6 +5812,10 @@ __decorate17([
|
|
|
5807
5812
|
__decorate17([
|
|
5808
5813
|
property16({ reflect: true, type: Boolean })
|
|
5809
5814
|
], QtiEndAttemptInteraction.prototype, "disabled", void 0);
|
|
5815
|
+
__decorate17([
|
|
5816
|
+
consume5({ context: itemContext, subscribe: true }),
|
|
5817
|
+
state7()
|
|
5818
|
+
], QtiEndAttemptInteraction.prototype, "_itemContext", void 0);
|
|
5810
5819
|
__decorate17([
|
|
5811
5820
|
property16({ type: String, attribute: "count-attempt" })
|
|
5812
5821
|
], QtiEndAttemptInteraction.prototype, "countAttempt", void 0);
|
|
@@ -5817,7 +5826,7 @@ __decorate17([
|
|
|
5817
5826
|
// ../interactions/extended-text-interaction/dist/qti-extended-text-interaction.js
|
|
5818
5827
|
import { html as html15 } from "lit";
|
|
5819
5828
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5820
|
-
import { property as property17, state as
|
|
5829
|
+
import { property as property17, state as state8 } from "lit/decorators.js";
|
|
5821
5830
|
|
|
5822
5831
|
// ../interactions/extended-text-interaction/dist/qti-extended-text-interaction.styles.js
|
|
5823
5832
|
import { css as css14 } from "lit";
|
|
@@ -6002,7 +6011,7 @@ var QtiExtendedTextInteraction = class extends Interaction {
|
|
|
6002
6011
|
}
|
|
6003
6012
|
};
|
|
6004
6013
|
__decorate18([
|
|
6005
|
-
|
|
6014
|
+
state8()
|
|
6006
6015
|
], QtiExtendedTextInteraction.prototype, "_rows", void 0);
|
|
6007
6016
|
__decorate18([
|
|
6008
6017
|
property17({ type: Number, attribute: "expected-length" })
|
|
@@ -6098,6 +6107,10 @@ var qti_gap_match_interaction_styles_default = [
|
|
|
6098
6107
|
|
|
6099
6108
|
// ../interactions/gap-match-interaction/dist/qti-gap-match-interaction.js
|
|
6100
6109
|
var QtiGapMatchInteraction = class extends DragDropSlottedSortableMixin(DragDropSlottedMixin(Interaction, "qti-gap-text", "qti-gap", `slot[part~='drags']`), '[qti-draggable="true"]') {
|
|
6110
|
+
constructor() {
|
|
6111
|
+
super(...arguments);
|
|
6112
|
+
this.maxAssociations = 1;
|
|
6113
|
+
}
|
|
6101
6114
|
static {
|
|
6102
6115
|
this.styles = qti_gap_match_interaction_styles_default;
|
|
6103
6116
|
}
|
|
@@ -6111,7 +6124,7 @@ var QtiGapMatchInteraction = class extends DragDropSlottedSortableMixin(DragDrop
|
|
|
6111
6124
|
|
|
6112
6125
|
// ../interactions/graphic-associate-interaction/dist/qti-graphic-associate-interaction.js
|
|
6113
6126
|
import { html as html17, nothing as nothing2, svg } from "lit";
|
|
6114
|
-
import { property as property18, queryAssignedElements, state as
|
|
6127
|
+
import { property as property18, queryAssignedElements, state as state9 } from "lit/decorators.js";
|
|
6115
6128
|
import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
|
|
6116
6129
|
import { repeat as repeat5 } from "lit/directives/repeat.js";
|
|
6117
6130
|
|
|
@@ -6482,16 +6495,16 @@ var QtiGraphicAssociateInteraction = class extends Interaction {
|
|
|
6482
6495
|
}
|
|
6483
6496
|
};
|
|
6484
6497
|
__decorate19([
|
|
6485
|
-
|
|
6498
|
+
state9()
|
|
6486
6499
|
], QtiGraphicAssociateInteraction.prototype, "startCoord", void 0);
|
|
6487
6500
|
__decorate19([
|
|
6488
|
-
|
|
6501
|
+
state9()
|
|
6489
6502
|
], QtiGraphicAssociateInteraction.prototype, "mouseCoord", void 0);
|
|
6490
6503
|
__decorate19([
|
|
6491
6504
|
queryAssignedElements({ selector: "img" })
|
|
6492
6505
|
], QtiGraphicAssociateInteraction.prototype, "grImage", void 0);
|
|
6493
6506
|
__decorate19([
|
|
6494
|
-
|
|
6507
|
+
state9()
|
|
6495
6508
|
], QtiGraphicAssociateInteraction.prototype, "_response", void 0);
|
|
6496
6509
|
__decorate19([
|
|
6497
6510
|
property18({
|
|
@@ -6504,7 +6517,7 @@ __decorate19([
|
|
|
6504
6517
|
|
|
6505
6518
|
// ../interactions/graphic-gap-match-interaction/dist/qti-graphic-gap-match-interaction.js
|
|
6506
6519
|
import { html as html18 } from "lit";
|
|
6507
|
-
import { state as
|
|
6520
|
+
import { state as state10 } from "lit/decorators.js";
|
|
6508
6521
|
|
|
6509
6522
|
// ../interactions/graphic-gap-match-interaction/dist/qti-graphic-gap-match-interaction.styles.js
|
|
6510
6523
|
import { css as css17 } from "lit";
|
|
@@ -6610,6 +6623,7 @@ var SlottedBase2 = DragDropSlottedMixin(Interaction, "qti-gap-img, qti-gap-text"
|
|
|
6610
6623
|
var QtiGraphicGapMatchInteraction = class extends DragDropSlottedSortableMixin(SlottedBase2, '[qti-draggable="true"]') {
|
|
6611
6624
|
constructor() {
|
|
6612
6625
|
super(...arguments);
|
|
6626
|
+
this.maxAssociations = 1;
|
|
6613
6627
|
this.autoSizeDropzones = false;
|
|
6614
6628
|
this._graphicScale = 1;
|
|
6615
6629
|
this.#graphicObserver = null;
|
|
@@ -6713,7 +6727,7 @@ var QtiGraphicGapMatchInteraction = class extends DragDropSlottedSortableMixin(S
|
|
|
6713
6727
|
}
|
|
6714
6728
|
};
|
|
6715
6729
|
__decorate20([
|
|
6716
|
-
|
|
6730
|
+
state10()
|
|
6717
6731
|
], QtiGraphicGapMatchInteraction.prototype, "_graphicScale", void 0);
|
|
6718
6732
|
|
|
6719
6733
|
// ../interactions/graphic-order-interaction/dist/qti-graphic-order-interaction.js
|
|
@@ -7000,6 +7014,8 @@ var QtiHotspotInteraction = class extends ChoicesMixin(Interaction, "qti-hotspot
|
|
|
7000
7014
|
}
|
|
7001
7015
|
async #positionHotspot(hotspot) {
|
|
7002
7016
|
const img = this.querySelector("img");
|
|
7017
|
+
if (!img)
|
|
7018
|
+
return;
|
|
7003
7019
|
const coords = hotspot.getAttribute("coords");
|
|
7004
7020
|
const shape = hotspot.getAttribute("shape");
|
|
7005
7021
|
const coordsNumber = coords.split(",").map((s) => parseInt(s));
|
|
@@ -7050,8 +7066,9 @@ var QtiHottextInteraction = class extends ChoicesMixin(Interaction, "qti-hottext
|
|
|
7050
7066
|
|
|
7051
7067
|
// ../interactions/inline-choice-interaction/dist/qti-inline-choice-interaction.js
|
|
7052
7068
|
import { html as html22 } from "lit";
|
|
7053
|
-
import { property as property20, state as
|
|
7054
|
-
import {
|
|
7069
|
+
import { property as property20, state as state11 } from "lit/decorators.js";
|
|
7070
|
+
import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
|
|
7071
|
+
import { consume as consume6 } from "@lit/context";
|
|
7055
7072
|
|
|
7056
7073
|
// ../interactions/core/dist/mixins/menu-auto-size/menu-auto-size.mixin.js
|
|
7057
7074
|
var MenuAutoSizeMixin = (superClass, menuSelector = "[part='menu']", triggerSelector = "[part='trigger']", customProperty = "--qti-inline-choice-width") => {
|
|
@@ -7176,7 +7193,7 @@ var MenuAutoSizeMixin = (superClass, menuSelector = "[part='menu']", triggerSele
|
|
|
7176
7193
|
if (!menu)
|
|
7177
7194
|
return widest;
|
|
7178
7195
|
const menuStyle = getComputedStyle(menu);
|
|
7179
|
-
return widest + parseFloat(menuStyle.paddingLeft) + parseFloat(menuStyle.paddingRight)
|
|
7196
|
+
return widest + parseFloat(menuStyle.paddingLeft) + parseFloat(menuStyle.paddingRight);
|
|
7180
7197
|
});
|
|
7181
7198
|
}
|
|
7182
7199
|
/**
|
|
@@ -7338,7 +7355,13 @@ var own = css21`
|
|
|
7338
7355
|
vertical-align: baseline;
|
|
7339
7356
|
}
|
|
7340
7357
|
|
|
7358
|
+
/*
|
|
7359
|
+
* min-height: 1lh — one line of the trigger's own line-height. An empty value (data-prompt="")
|
|
7360
|
+
* is an empty span, which has no line box and collapsed the field to the chevron's height
|
|
7361
|
+
* (measured: 20px empty vs 28px with text). Now the field is a line tall either way.
|
|
7362
|
+
*/
|
|
7341
7363
|
[part='value'] {
|
|
7364
|
+
min-height: 1lh;
|
|
7342
7365
|
min-width: 0;
|
|
7343
7366
|
overflow: hidden;
|
|
7344
7367
|
text-overflow: ellipsis;
|
|
@@ -7346,6 +7369,18 @@ var own = css21`
|
|
|
7346
7369
|
text-align: left;
|
|
7347
7370
|
}
|
|
7348
7371
|
|
|
7372
|
+
/*
|
|
7373
|
+
* A zero-width space before the value and the option text, so an empty one (data-prompt="") still
|
|
7374
|
+
* has a line box and therefore a text baseline. Without it the inline-grid trigger has no baseline
|
|
7375
|
+
* and the browser sits its bottom edge on the sentence's baseline: the empty field rode high and
|
|
7376
|
+
* made the line taller (measured: paragraph 39px empty vs 32.5px answered). No width, not
|
|
7377
|
+
* selectable, and the empty alt text keeps it out of the accessible name.
|
|
7378
|
+
*/
|
|
7379
|
+
[part='value']::before,
|
|
7380
|
+
[part='option-content']::before {
|
|
7381
|
+
content: '\\200B' / '';
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7349
7384
|
/* ── Chevron icon ─────────────────────────────────────────────────────────────
|
|
7350
7385
|
Rendered as a CSS mask so the theme controls its colour via color:.
|
|
7351
7386
|
The span in the template is empty; this CSS provides the visual.
|
|
@@ -7396,7 +7431,26 @@ var own = css21`
|
|
|
7396
7431
|
text-overflow: ellipsis;
|
|
7397
7432
|
}
|
|
7398
7433
|
|
|
7434
|
+
/* The empty prompt row while nothing is chosen (see renderMenu). The rule above sets display, which
|
|
7435
|
+
beats the UA's [hidden] rule, so hidden has to be restated here. */
|
|
7436
|
+
button[part~='option'][hidden] {
|
|
7437
|
+
display: none;
|
|
7438
|
+
}
|
|
7439
|
+
|
|
7440
|
+
/* The clear row's x glyph: a mask like the chevron, so the theme colours it with color:. */
|
|
7441
|
+
[part='clear-icon'] {
|
|
7442
|
+
display: inline-block;
|
|
7443
|
+
width: 1em;
|
|
7444
|
+
height: 1em;
|
|
7445
|
+
vertical-align: middle;
|
|
7446
|
+
background-color: currentColor;
|
|
7447
|
+
mask: var(--qti-times-mask) no-repeat center / contain;
|
|
7448
|
+
-webkit-mask: var(--qti-times-mask) no-repeat center / contain;
|
|
7449
|
+
}
|
|
7450
|
+
|
|
7451
|
+
/* min-height: 1lh, so an empty prompt row is as tall as the other rows — see [part='value']. */
|
|
7399
7452
|
[part='option-content'] {
|
|
7453
|
+
min-height: 1lh;
|
|
7400
7454
|
flex: 1 1 auto;
|
|
7401
7455
|
min-width: 0;
|
|
7402
7456
|
overflow: hidden;
|
|
@@ -7555,8 +7609,20 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
|
|
|
7555
7609
|
</button>
|
|
7556
7610
|
`;
|
|
7557
7611
|
}
|
|
7558
|
-
/**
|
|
7612
|
+
/**
|
|
7613
|
+
* The popover listbox. Its first row is the prompt — the way back to "nothing chosen", as the
|
|
7614
|
+
* spec's figure of an open dropdown shows it. With an empty prompt there is nothing to read, so:
|
|
7615
|
+
* while nothing is chosen the row is hidden (it would read as an empty option, and there is
|
|
7616
|
+
* nothing to clear), and once something is chosen it is a clear button — an x glyph named by
|
|
7617
|
+
* `data-clear-label`. Either way selecting it does the same: `#selectValue('')`.
|
|
7618
|
+
*/
|
|
7559
7619
|
renderMenu() {
|
|
7620
|
+
const prompt = this.options[0];
|
|
7621
|
+
const promptEmpty = this.#promptIsEmpty();
|
|
7622
|
+
const nothingChosen = prompt?.selected ?? true;
|
|
7623
|
+
const hidden = promptEmpty && nothingChosen;
|
|
7624
|
+
const clear = promptEmpty && !nothingChosen;
|
|
7625
|
+
const parts = ["option", "option-prompt", prompt?.selected ? "option-selected" : "", clear ? "option-clear" : ""].filter(Boolean).join(" ");
|
|
7560
7626
|
return html22`
|
|
7561
7627
|
<div
|
|
7562
7628
|
id="${this._menuId}"
|
|
@@ -7567,13 +7633,17 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
|
|
|
7567
7633
|
@keydown=${this.#onCustomMenuKeyDown}
|
|
7568
7634
|
>
|
|
7569
7635
|
<button
|
|
7570
|
-
part="${
|
|
7636
|
+
part="${parts}"
|
|
7571
7637
|
type="button"
|
|
7572
7638
|
role="option"
|
|
7573
|
-
|
|
7639
|
+
?hidden=${hidden}
|
|
7640
|
+
aria-label=${ifDefined3(clear ? this.dataClearLabel || "Clear" : void 0)}
|
|
7641
|
+
aria-selected="${prompt?.selected ? "true" : "false"}"
|
|
7574
7642
|
@click=${() => this.#selectValue("")}
|
|
7575
7643
|
>
|
|
7576
|
-
<span part="option-content"
|
|
7644
|
+
<span part="option-content"
|
|
7645
|
+
>${clear ? html22`<span part="clear-icon" aria-hidden="true"></span>` : prompt?.content}</span
|
|
7646
|
+
>
|
|
7577
7647
|
</button>
|
|
7578
7648
|
<slot @slotchange=${this.#onChoicesSlotChange}></slot>
|
|
7579
7649
|
</div>
|
|
@@ -7621,12 +7691,29 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
|
|
|
7621
7691
|
this.#syncSlottedChoices();
|
|
7622
7692
|
}
|
|
7623
7693
|
}
|
|
7694
|
+
/** True when the prompt row has no text of its own (`data-prompt=""`). */
|
|
7695
|
+
#promptIsEmpty() {
|
|
7696
|
+
const content = this.options[0]?.content;
|
|
7697
|
+
return typeof content === "string" && content.trim() === "";
|
|
7698
|
+
}
|
|
7699
|
+
/**
|
|
7700
|
+
* Leaves the prompt row out of the width measurement when the prompt is empty. That row is hidden
|
|
7701
|
+
* while nothing is chosen (measures 0) and a clear glyph once something is (measures a glyph), so
|
|
7702
|
+
* counting it would let the closed field change width on the first choice. Its text is empty
|
|
7703
|
+
* either way, so it has nothing to contribute.
|
|
7704
|
+
*/
|
|
7705
|
+
menuAutoSizeRows() {
|
|
7706
|
+
const rows = super.menuAutoSizeRows();
|
|
7707
|
+
if (!this.#promptIsEmpty())
|
|
7708
|
+
return rows;
|
|
7709
|
+
return rows.filter((row) => !row.matches('button[part~="option-prompt"]'));
|
|
7710
|
+
}
|
|
7624
7711
|
#selectedOption() {
|
|
7625
7712
|
return this.options.find((option) => option.selected) ?? this.options[0];
|
|
7626
7713
|
}
|
|
7627
7714
|
#updateOptions() {
|
|
7628
7715
|
const choices = Array.from(this.querySelectorAll("qti-inline-choice"));
|
|
7629
|
-
const prompt = this.dataPrompt
|
|
7716
|
+
const prompt = this.dataPrompt ?? this.configContext?.inlineChoicePrompt ?? "select";
|
|
7630
7717
|
const pendingValue = this._pendingResponse;
|
|
7631
7718
|
const currentlySelectedValue = pendingValue !== void 0 ? pendingValue ?? "" : this.options.find((o) => o.selected)?.value ?? "";
|
|
7632
7719
|
const nextOptions = [
|
|
@@ -7666,7 +7753,8 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
|
|
|
7666
7753
|
return !Array.from(this.classList).some((c) => c.startsWith("qti-input-width-"));
|
|
7667
7754
|
}
|
|
7668
7755
|
/**
|
|
7669
|
-
* The chevron sits in the trigger and not in the menu, so the menu never
|
|
7756
|
+
* The chevron (and the gap before it) sits in the trigger and not in the menu, so the menu never
|
|
7757
|
+
* measures it.
|
|
7670
7758
|
*
|
|
7671
7759
|
* `offsetWidth`, NOT `getBoundingClientRect().width`: the icon rotates when the menu opens, and a
|
|
7672
7760
|
* client rect reports the TRANSFORMED box — so a chevron caught mid-rotation measures wider than
|
|
@@ -7676,7 +7764,11 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
|
|
|
7676
7764
|
*/
|
|
7677
7765
|
menuAutoSizeExtraWidth() {
|
|
7678
7766
|
const icon = this.renderRoot.querySelector('span[part~="dropdown-icon"]');
|
|
7679
|
-
|
|
7767
|
+
if (!icon)
|
|
7768
|
+
return 0;
|
|
7769
|
+
const trigger = this.renderRoot.querySelector('button[part="trigger"]');
|
|
7770
|
+
const gap = trigger ? parseFloat(getComputedStyle(trigger).columnGap) || 0 : 0;
|
|
7771
|
+
return icon.offsetWidth + gap;
|
|
7680
7772
|
}
|
|
7681
7773
|
validate() {
|
|
7682
7774
|
const selectedOption = this.options.find((option) => option.selected);
|
|
@@ -7792,24 +7884,27 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
|
|
|
7792
7884
|
}
|
|
7793
7885
|
}
|
|
7794
7886
|
#allMenuOptions() {
|
|
7795
|
-
const promptOption = this.renderRoot.querySelector('button[part~="option"]');
|
|
7887
|
+
const promptOption = this.renderRoot.querySelector('button[part~="option"]:not([hidden])');
|
|
7796
7888
|
const slottedChoices = Array.from(this.querySelectorAll("qti-inline-choice"));
|
|
7797
7889
|
return [...promptOption ? [promptOption] : [], ...slottedChoices];
|
|
7798
7890
|
}
|
|
7799
7891
|
};
|
|
7800
7892
|
__decorate22([
|
|
7801
|
-
|
|
7893
|
+
state11()
|
|
7802
7894
|
], QtiInlineChoiceInteraction.prototype, "options", void 0);
|
|
7803
7895
|
__decorate22([
|
|
7804
|
-
|
|
7896
|
+
state11()
|
|
7805
7897
|
], QtiInlineChoiceInteraction.prototype, "_dropdownOpen", void 0);
|
|
7806
7898
|
__decorate22([
|
|
7807
|
-
|
|
7899
|
+
consume6({ context: configContext, subscribe: true }),
|
|
7808
7900
|
property20({ attribute: false })
|
|
7809
7901
|
], QtiInlineChoiceInteraction.prototype, "configContext", void 0);
|
|
7810
7902
|
__decorate22([
|
|
7811
7903
|
property20({ type: String, attribute: "data-prompt" })
|
|
7812
7904
|
], QtiInlineChoiceInteraction.prototype, "dataPrompt", void 0);
|
|
7905
|
+
__decorate22([
|
|
7906
|
+
property20({ type: String, attribute: "data-clear-label" })
|
|
7907
|
+
], QtiInlineChoiceInteraction.prototype, "dataClearLabel", void 0);
|
|
7813
7908
|
__decorate22([
|
|
7814
7909
|
watch("dataPrompt", { waitUntilFirstUpdate: true })
|
|
7815
7910
|
], QtiInlineChoiceInteraction.prototype, "_handleDataPromptChange", void 0);
|
|
@@ -7836,7 +7931,7 @@ __decorate22([
|
|
|
7836
7931
|
|
|
7837
7932
|
// ../interactions/match-interaction/dist/qti-match-interaction.js
|
|
7838
7933
|
import { html as html23, nothing as nothing3 } from "lit";
|
|
7839
|
-
import { property as property21, state as
|
|
7934
|
+
import { property as property21, state as state12 } from "lit/decorators.js";
|
|
7840
7935
|
|
|
7841
7936
|
// ../interactions/match-interaction/dist/qti-match-interaction.styles.js
|
|
7842
7937
|
import { css as css22 } from "lit";
|
|
@@ -8016,6 +8111,20 @@ var qti_match_interaction_tabular_styles_default = [
|
|
|
8016
8111
|
display: contents;
|
|
8017
8112
|
}
|
|
8018
8113
|
|
|
8114
|
+
/*
|
|
8115
|
+
* qti-header-hidden (vocabulary §1.2.8.2): "Do not display the top row of the table where the
|
|
8116
|
+
* column headers are displayed." The whole row goes, the top-left cell with it.
|
|
8117
|
+
*/
|
|
8118
|
+
:host(.qti-match-tabular.qti-header-hidden) [part='grid'] {
|
|
8119
|
+
grid-template-rows: repeat(var(--qti-match-rows, 1), auto);
|
|
8120
|
+
}
|
|
8121
|
+
:host(.qti-match-tabular.qti-header-hidden) :is([part='corner'], [part='cols-wrap']) {
|
|
8122
|
+
display: none;
|
|
8123
|
+
}
|
|
8124
|
+
:host(.qti-match-tabular.qti-header-hidden) :is([part='rows-wrap'], [part='checkbox-grid']) {
|
|
8125
|
+
grid-row: 1 / -1;
|
|
8126
|
+
}
|
|
8127
|
+
|
|
8019
8128
|
/*
|
|
8020
8129
|
* The radio/checkbox box centres its own mark. qti-simple-choice.styles.ts does the same for
|
|
8021
8130
|
* the non-tabular control; here the cells are plain spans in this shadow root, so the rule
|
|
@@ -8045,6 +8154,8 @@ var QtiMatchInteraction = class extends DragDropSlottedSortableMixin(DragDropSlo
|
|
|
8045
8154
|
constructor() {
|
|
8046
8155
|
super(...arguments);
|
|
8047
8156
|
this.autoSizeDropzones = false;
|
|
8157
|
+
this.maxAssociations = 1;
|
|
8158
|
+
this.minAssociations = 0;
|
|
8048
8159
|
this.lastCheckedRadio = null;
|
|
8049
8160
|
this.class = "";
|
|
8050
8161
|
this._response = [];
|
|
@@ -8196,7 +8307,7 @@ var QtiMatchInteraction = class extends DragDropSlottedSortableMixin(DragDropSlo
|
|
|
8196
8307
|
role="grid"
|
|
8197
8308
|
style="--qti-match-rows: ${this.sourceChoices.length}; --qti-match-cols: ${this.targetChoices.length};"
|
|
8198
8309
|
>
|
|
8199
|
-
<div part="corner"
|
|
8310
|
+
<div part="corner">${this.dataFirstColumnHeader ?? nothing3}</div>
|
|
8200
8311
|
<div part="cols-wrap" role="row"><slot name="match-cols" part="c-header"></slot></div>
|
|
8201
8312
|
<div part="rows-wrap"><slot name="match-rows" part="r-header"></slot></div>
|
|
8202
8313
|
<div part="checkbox-grid">
|
|
@@ -8249,7 +8360,10 @@ __decorate23([
|
|
|
8249
8360
|
property21({ type: String })
|
|
8250
8361
|
], QtiMatchInteraction.prototype, "class", void 0);
|
|
8251
8362
|
__decorate23([
|
|
8252
|
-
|
|
8363
|
+
property21({ type: String, attribute: "data-first-column-header" })
|
|
8364
|
+
], QtiMatchInteraction.prototype, "dataFirstColumnHeader", void 0);
|
|
8365
|
+
__decorate23([
|
|
8366
|
+
state12()
|
|
8253
8367
|
], QtiMatchInteraction.prototype, "_response", void 0);
|
|
8254
8368
|
__decorate23([
|
|
8255
8369
|
property21({ type: String, attribute: "response-identifier" })
|
|
@@ -8329,7 +8443,7 @@ var QtiMediaInteraction = class extends Interaction {
|
|
|
8329
8443
|
// ../interactions/order-interaction/dist/qti-order-interaction.js
|
|
8330
8444
|
import { html as html25 } from "lit";
|
|
8331
8445
|
import { repeat as repeat6 } from "lit/directives/repeat.js";
|
|
8332
|
-
import { property as property22, state as
|
|
8446
|
+
import { property as property22, state as state13 } from "lit/decorators.js";
|
|
8333
8447
|
|
|
8334
8448
|
// ../interactions/order-interaction/dist/qti-order-interaction.styles.js
|
|
8335
8449
|
import { css as css25 } from "lit";
|
|
@@ -8611,7 +8725,7 @@ var QtiOrderInteraction = class extends DragDropSlottedSortableMixin(SlottedBase
|
|
|
8611
8725
|
}
|
|
8612
8726
|
};
|
|
8613
8727
|
__decorate24([
|
|
8614
|
-
|
|
8728
|
+
state13()
|
|
8615
8729
|
], QtiOrderInteraction.prototype, "nrChoices", void 0);
|
|
8616
8730
|
__decorate24([
|
|
8617
8731
|
property22({ type: String })
|
|
@@ -8619,8 +8733,8 @@ __decorate24([
|
|
|
8619
8733
|
|
|
8620
8734
|
// ../interactions/portable-custom-interaction/dist/qti-portable-custom-interaction.js
|
|
8621
8735
|
import { css as css27, html as html26 } from "lit";
|
|
8622
|
-
import { property as property23, state as
|
|
8623
|
-
import { consume as
|
|
8736
|
+
import { property as property23, state as state14 } from "lit/decorators.js";
|
|
8737
|
+
import { consume as consume7 } from "@lit/context";
|
|
8624
8738
|
|
|
8625
8739
|
// ../qti-theme/dist/native-css.js
|
|
8626
8740
|
var native_css_default = "@layer qti-base {\n/* https://www.imsglobal.org/sites/default/files/spec/qti/v3/guide/img/qti3p0.css */\n/* ============================\n QTI 3 shared css\n 1. Display\n 2. Special Flex styles\n 3. Margin\n 4. Padding\n 5. Horizontal Alignment styles\n 6. Vertical Alignment styles\n 7. Height\n 8. Width\n 9. Text-Indent\n 10. List Style\n 11. Layout\n 12. Other QTI 3 presentation utilities\n ============================ */\n\n/* ==========\n Display css\n =========== */\n\n.qti-display-inline {\n display: inline;\n}\n\n.qti-display-inline-block {\n display: inline-block;\n}\n\n.qti-display-block {\n display: block;\n}\n\n.qti-display-flex {\n display: flex;\n}\n\n.qti-display-inline-flex {\n display: inline-flex;\n}\n\n.qti-display-grid {\n display: grid;\n}\n\n.qti-display-inline-grid {\n display: inline-grid;\n}\n\n.qti-display-table {\n display: table;\n}\n\n.qti-display-table-cell {\n display: table-cell;\n}\n\n.qti-display-table-row {\n display: table-row;\n}\n\n.qti-display-list-item {\n display: list-item;\n}\n\n.qti-display-inherit {\n display: inherit;\n}\n\n/* \n * hidden to screen readers and sighted\n */\n.qti-hidden {\n display: none;\n}\n\n/*\n * visible to screen readers, hidden to sighted\n */\n.qti-visually-hidden {\n position: fixed !important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n height: 1px;\n width: 1px;\n border: 0;\n margin: -1px;\n}\n\n/* =============================\n Special flex styles\n ============================= */\n\n.qti-flex-direction-column {\n flex-direction: column;\n}\n\n.qti-flex-direction-row {\n flex-direction: row;\n}\n\n.qti-flex-grow-1 {\n flex-grow: 1;\n}\n\n.qti-flex-grow-0 {\n flex-grow: 0;\n}\n\n/* =========\n Margin css\n ========== */\n\n/**\n * For margin Top and Bottom and Left and Right\n */\n.qti-margin-0 {\n margin: 0 !important;\n}\n\n.qti-margin-1 {\n margin: 0.25rem !important;\n}\n\n.qti-margin-2 {\n margin: 0.5rem !important;\n}\n\n.qti-margin-3 {\n margin: 1rem !important;\n}\n\n.qti-margin-4 {\n margin: 1.5rem !important;\n}\n\n.qti-margin-5 {\n margin: 3rem !important;\n}\n\n.qti-margin-auto {\n margin: auto !important;\n}\n\n/*\n For margin Left and Right\n */\n.qti-margin-x-0 {\n margin-right: 0 !important;\n margin-left: 0 !important;\n}\n\n.qti-margin-x-1 {\n margin-right: 0.25rem !important;\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-x-2 {\n margin-right: 0.5rem !important;\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-x-3 {\n margin-right: 1rem !important;\n margin-left: 1rem !important;\n}\n\n.qti-margin-x-4 {\n margin-right: 1.5rem !important;\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-x-5 {\n margin-right: 3rem !important;\n margin-left: 3rem !important;\n}\n\n.qti-margin-x-auto {\n margin-right: auto !important;\n margin-left: auto !important;\n}\n\n/*\n For margin Top and Bottom\n */\n.qti-margin-y-0 {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n}\n\n.qti-margin-y-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-y-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-y-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-y-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-y-5 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-y-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n/*\n For margin Top\n */\n.qti-margin-t-0 {\n margin-top: 0 !important;\n}\n\n.qti-margin-t-1 {\n margin-top: 0.25rem !important;\n}\n\n.qti-margin-t-2 {\n margin-top: 0.5rem !important;\n}\n\n.qti-margin-t-3 {\n margin-top: 1rem !important;\n}\n\n.qti-margin-t-4 {\n margin-top: 1.5rem !important;\n}\n\n.qti-margin-t-5 {\n margin-top: 3rem !important;\n}\n\n.qti-margin-t-auto {\n margin-top: auto !important;\n}\n\n/* \n For margin Bottom\n */\n.qti-margin-b-0 {\n margin-bottom: 0 !important;\n}\n\n.qti-margin-b-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-b-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-b-3 {\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-b-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-b-5 {\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-b-auto {\n margin-bottom: auto !important;\n}\n\n/*\n For margin Start LTR\n */\n.qti-margin-s-0 {\n margin-left: 0 !important;\n}\n\n.qti-margin-s-1 {\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-s-2 {\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-s-3 {\n margin-left: 1rem !important;\n}\n\n.qti-margin-s-4 {\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-s-5 {\n margin-left: 3rem !important;\n}\n\n.qti-margin-s-auto {\n margin-left: auto !important;\n}\n\n/* \n For margin End LTR\n */\n.qti-margin-e-0 {\n margin-right: 0 !important;\n}\n\n.qti-margin-e-1 {\n margin-right: 0.25rem !important;\n}\n\n.qti-margin-e-2 {\n margin-right: 0.5rem !important;\n}\n\n.qti-margin-e-3 {\n margin-right: 1rem !important;\n}\n\n.qti-margin-e-4 {\n margin-right: 1.5rem !important;\n}\n\n.qti-margin-e-5 {\n margin-right: 3rem !important;\n}\n\n.qti-margin-e-auto {\n margin-right: auto !important;\n}\n\n/* =========\n Padding css\n ========== */\n\n/*\n For padding Top and Bottom and Left and Right\n */\n.qti-padding-0 {\n padding: 0 !important;\n}\n\n.qti-padding-1 {\n padding: 0.25rem !important;\n}\n\n.qti-padding-2 {\n padding: 0.5rem !important;\n}\n\n.qti-padding-3 {\n padding: 1rem !important;\n}\n\n.qti-padding-4 {\n padding: 1.5rem !important;\n}\n\n.qti-padding-5 {\n padding: 3rem !important;\n}\n\n/*\n For padding Left and Right\n */\n.qti-padding-x-0 {\n padding-right: 0 !important;\n padding-left: 0 !important;\n}\n\n.qti-padding-x-1 {\n padding-right: 0.25rem !important;\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-x-2 {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-x-3 {\n padding-right: 1rem !important;\n padding-left: 1rem !important;\n}\n\n.qti-padding-x-4 {\n padding-right: 1.5rem !important;\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-x-5 {\n padding-right: 3rem !important;\n padding-left: 3rem !important;\n}\n\n/*\n For padding Top and Bottom\n */\n.qti-padding-y-0 {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.qti-padding-y-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-y-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-y-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-y-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-y-5 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Top\n */\n.qti-padding-t-0 {\n padding-top: 0 !important;\n}\n\n.qti-padding-t-1 {\n padding-top: 0.25rem !important;\n}\n\n.qti-padding-t-2 {\n padding-top: 0.5rem !important;\n}\n\n.qti-padding-t-3 {\n padding-top: 1rem !important;\n}\n\n.qti-padding-t-4 {\n padding-top: 1.5rem !important;\n}\n\n.qti-padding-t-5 {\n padding-top: 3rem !important;\n}\n\n/*\n For padding Bottom\n */\n.qti-padding-b-0 {\n padding-bottom: 0 !important;\n}\n\n.qti-padding-b-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-b-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-b-3 {\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-b-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-b-5 {\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Start LTR\n */\n.qti-padding-s-0 {\n padding-left: 0 !important;\n}\n\n.qti-padding-s-1 {\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-s-2 {\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-s-3 {\n padding-left: 1rem !important;\n}\n\n.qti-padding-s-4 {\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-s-5 {\n padding-left: 3rem !important;\n}\n\n/*\n For padding End LTR\n */\n.qti-padding-e-0 {\n padding-right: 0 !important;\n}\n\n.qti-padding-e-1 {\n padding-right: 0.25rem !important;\n}\n\n.qti-padding-e-2 {\n padding-right: 0.5rem !important;\n}\n\n.qti-padding-e-3 {\n padding-right: 1rem !important;\n}\n\n.qti-padding-e-4 {\n padding-right: 1.5rem !important;\n}\n\n.qti-padding-e-5 {\n padding-right: 3rem !important;\n}\n\n/* ====================\n Horizontal alignment\n ==================== */\n\n.qti-align-left {\n text-align: left;\n}\n\n.qti-align-center {\n text-align: center;\n}\n\n.qti-align-right {\n text-align: right;\n}\n\n/* ==================\n Vertical alignment\n ================== */\n\n.qti-valign-top {\n vertical-align: top;\n}\n\n.qti-valign-middle {\n vertical-align: middle;\n}\n\n.qti-valign-baseline {\n vertical-align: baseline;\n}\n\n.qti-valign-bottom {\n vertical-align: bottom;\n}\n\n/* =============\n Height styles\n ============= */\n\n.qti-height-0 {\n height: 0;\n}\n\n.qti-height-px {\n height: 1px;\n}\n\n.qti-height-0p5 {\n height: 0.125rem;\n}\n\n.qti-height-1 {\n height: 0.25rem;\n}\n\n.qti-height-1p5 {\n height: 0.375rem;\n}\n\n.qti-height-2 {\n height: 0.5rem;\n}\n\n.qti-height-2p5 {\n height: 0.625rem;\n}\n\n.qti-height-3 {\n height: 0.75rem;\n}\n\n.qti-height-3p5 {\n height: 0.875rem;\n}\n\n.qti-height-4 {\n height: 1rem;\n}\n\n.qti-height-5 {\n height: 1.25rem;\n}\n\n.qti-height-6 {\n height: 1.5rem;\n}\n\n.qti-height-7 {\n height: 1.75rem;\n}\n\n.qti-height-8 {\n height: 2rem;\n}\n\n.qti-height-9 {\n height: 2.25rem;\n}\n\n.qti-height-10 {\n height: 2.5rem;\n}\n\n.qti-height-11 {\n height: 2.75rem;\n}\n\n.qti-height-12 {\n height: 3rem;\n}\n\n.qti-height-14 {\n height: 3.5rem;\n}\n\n.qti-height-16 {\n height: 4rem;\n}\n\n.qti-height-20 {\n height: 5rem;\n}\n\n.qti-height-24 {\n height: 6rem;\n}\n\n.qti-height-28 {\n height: 7rem;\n}\n\n.qti-height-32 {\n height: 8rem;\n}\n\n.qti-height-36 {\n height: 9rem;\n}\n\n.qti-height-40 {\n height: 10rem;\n}\n\n.qti-height-44 {\n height: 11rem;\n}\n\n.qti-height-48 {\n height: 12rem;\n}\n\n.qti-height-52 {\n height: 13rem;\n}\n\n.qti-height-56 {\n height: 14rem;\n}\n\n.qti-height-60 {\n height: 15rem;\n}\n\n.qti-height-64 {\n height: 16rem;\n}\n\n.qti-height-72 {\n height: 18rem;\n}\n\n.qti-height-80 {\n height: 20rem;\n}\n\n.qti-height-96 {\n height: 24rem;\n}\n\n.qti-height-1-2 {\n height: 50%;\n}\n\n.qti-height-1-3 {\n height: 33.3333%;\n}\n\n.qti-height-2-3 {\n height: 66.6667%;\n}\n\n.qti-height-1-4 {\n height: 25%;\n}\n\n.qti-height-2-4 {\n height: 50%;\n}\n\n.qti-height-3-4 {\n height: 75%;\n}\n\n.qti-height-1-5 {\n height: 20%;\n}\n\n.qti-height-2-5 {\n height: 40%;\n}\n\n.qti-height-3-5 {\n height: 60%;\n}\n\n.qti-height-4-5 {\n height: 80%;\n}\n\n.qti-height-1-6 {\n height: 16.6667%;\n}\n\n.qti-height-2-6 {\n height: 33.3333%;\n}\n\n.qti-height-3-6 {\n height: 50%;\n}\n\n.qti-height-4-6 {\n height: 66.6667%;\n}\n\n.qti-height-5-6 {\n height: 83.3333%;\n}\n\n.qti-height-auto {\n height: auto;\n}\n\n.qti-height-full {\n height: 100%;\n}\n\n/* ============\n Width styles\n ============ */\n\n.qti-width-0 {\n width: 0;\n}\n\n.qti-width-px {\n width: 1px;\n}\n\n.qti-width-0p5 {\n width: 0.125rem;\n}\n\n.qti-width-1 {\n width: 0.25rem;\n}\n\n.qti-width-1p5 {\n width: 0.375rem;\n}\n\n.qti-width-2 {\n width: 0.5rem;\n}\n\n.qti-width-2p5 {\n width: 0.625rem;\n}\n\n.qti-width-3 {\n width: 0.75rem;\n}\n\n.qti-width-3p5 {\n width: 0.875rem;\n}\n\n.qti-width-4 {\n width: 1rem;\n}\n\n.qti-width-5 {\n width: 1.25rem;\n}\n\n.qti-width-6 {\n width: 1.5rem;\n}\n\n.qti-width-7 {\n width: 1.75rem;\n}\n\n.qti-width-8 {\n width: 2rem;\n}\n\n.qti-width-9 {\n width: 2.25rem;\n}\n\n.qti-width-10 {\n width: 2.5rem;\n}\n\n.qti-width-11 {\n width: 2.75rem;\n}\n\n.qti-width-12 {\n width: 3rem;\n}\n\n.qti-width-14 {\n width: 3.5rem;\n}\n\n.qti-width-16 {\n width: 4rem;\n}\n\n.qti-width-20 {\n width: 5rem;\n}\n\n.qti-width-24 {\n width: 6rem;\n}\n\n.qti-width-28 {\n width: 7rem;\n}\n\n.qti-width-32 {\n width: 8rem;\n}\n\n.qti-width-36 {\n width: 9rem;\n}\n\n.qti-width-40 {\n width: 10rem;\n}\n\n.qti-width-44 {\n width: 11rem;\n}\n\n.qti-width-48 {\n width: 12rem;\n}\n\n.qti-width-52 {\n width: 13rem;\n}\n\n.qti-width-56 {\n width: 14rem;\n}\n\n.qti-width-60 {\n width: 15rem;\n}\n\n.qti-width-64 {\n width: 16rem;\n}\n\n.qti-width-72 {\n width: 18rem;\n}\n\n.qti-width-80 {\n width: 20rem;\n}\n\n.qti-width-96 {\n width: 24rem;\n}\n\n.qti-width-auto {\n width: auto;\n}\n\n.qti-width-1-2 {\n width: 50%;\n}\n\n.qti-width-1-3 {\n width: 33.3333%;\n}\n\n.qti-width-2-3 {\n width: 66.6667%;\n}\n\n.qti-width-1-4 {\n width: 25%;\n}\n\n.qti-width-2-4 {\n width: 50%;\n}\n\n.qti-width-3-4 {\n width: 75%;\n}\n\n.qti-width-1-5 {\n width: 20%;\n}\n\n.qti-width-2-5 {\n width: 40%;\n}\n\n.qti-width-3-5 {\n width: 60%;\n}\n\n.qti-width-4-5 {\n width: 80%;\n}\n\n.qti-width-1-6 {\n width: 16.6667%;\n}\n\n.qti-width-2-6 {\n width: 33.3333%;\n}\n\n.qti-width-3-6 {\n width: 50%;\n}\n\n.qti-width-4-6 {\n width: 66.6667%;\n}\n\n.qti-width-5-6 {\n width: 83.3333%;\n}\n\n.qti-width-1-12 {\n width: 8.3333%;\n}\n\n.qti-width-2-12 {\n width: 16.6667%;\n}\n\n.qti-width-3-12 {\n width: 25%;\n}\n\n.qti-width-4-12 {\n width: 33.3333%;\n}\n\n.qti-width-5-12 {\n width: 41.6667%;\n}\n\n.qti-width-6-12 {\n width: 50%;\n}\n\n.qti-width-7-12 {\n width: 58.3333%;\n}\n\n.qti-width-8-12 {\n width: 66.6667%;\n}\n\n.qti-width-9-12 {\n width: 75%;\n}\n\n.qti-width-10-12 {\n width: 83.3333%;\n}\n\n.qti-width-11-12 {\n width: 91.6667%;\n}\n\n.qti-width-full,\n.qti-fullwidth {\n width: 100%;\n}\n\n/* ==================\n Text Indent styles\n ================== */\n\n.qti-text-indent-0 {\n text-indent: 0;\n}\n\n.qti-text-indent-px {\n text-indent: 1px;\n}\n\n.qti-text-indent-0p5 {\n text-indent: 0.125rem;\n}\n\n.qti-text-indent-1 {\n text-indent: 0.25rem;\n}\n\n.qti-text-indent-1p5 {\n text-indent: 0.375rem;\n}\n\n.qti-text-indent-2 {\n text-indent: 0.5rem;\n}\n\n.qti-text-indent-2p5 {\n text-indent: 0.625rem;\n}\n\n.qti-text-indent-3 {\n text-indent: 0.75rem;\n}\n\n.qti-text-indent-3p5 {\n text-indent: 0.875rem;\n}\n\n.qti-text-indent-4 {\n text-indent: 1rem;\n}\n\n.qti-text-indent-5 {\n text-indent: 1.25rem;\n}\n\n.qti-text-indent-6 {\n text-indent: 1.5rem;\n}\n\n.qti-text-indent-7 {\n text-indent: 1.75rem;\n}\n\n.qti-text-indent-8 {\n text-indent: 2rem;\n}\n\n.qti-text-indent-12 {\n text-indent: 3rem;\n}\n\n.qti-text-indent-16 {\n text-indent: 4rem;\n}\n\n.qti-text-indent-20 {\n text-indent: 5rem;\n}\n\n.qti-text-indent-24 {\n text-indent: 6rem;\n}\n\n.qti-text-indent-28 {\n text-indent: 7rem;\n}\n\n.qti-text-indent-32 {\n text-indent: 8rem;\n}\n\n/* =================\n List Style styles\n ================= */\n\n.qti-list-style-type-none {\n list-style-type: none;\n}\n\n.qti-list-style-type-disc {\n list-style-type: disc;\n}\n\n.qti-list-style-type-circle {\n list-style-type: circle;\n}\n\n.qti-list-style-type-square {\n list-style-type: square;\n}\n\n.qti-list-style-type-decimal {\n list-style-type: decimal;\n}\n\n.qti-list-style-type-decimal-leading-zero {\n list-style-type: decimal-leading-zero;\n}\n\n.qti-list-style-type-lower-alpha {\n list-style-type: lower-alpha;\n}\n\n.qti-list-style-type-upper-alpha {\n list-style-type: upper-alpha;\n}\n\n.qti-list-style-type-lower-roman {\n list-style-type: lower-roman;\n}\n\n.qti-list-style-type-upper-roman {\n list-style-type: upper-roman;\n}\n\n.qti-list-style-type-lower-latin {\n list-style-type: lower-latin;\n}\n\n.qti-list-style-type-upper-latin {\n list-style-type: upper-latin;\n}\n\n.qti-list-style-type-lower-greek {\n list-style-type: lower-greek;\n}\n\n.qti-list-style-type-arabic-indic {\n list-style-type: arabic-indic;\n}\n\n.qti-list-style-type-armenian {\n list-style-type: armenian;\n}\n\n.qti-list-style-type-lower-armenian {\n list-style-type: lower-armenian;\n}\n\n.qti-list-style-type-upper-armenian {\n list-style-type: upper-armenian;\n}\n\n.qti-list-style-type-bengali {\n list-style-type: bengali;\n}\n\n.qti-list-style-type-cambodian {\n list-style-type: cambodian;\n}\n\n.qti-list-style-type-simp-chinese-formal {\n list-style-type: simp-chinese-formal;\n}\n\n.qti-list-style-type-simp-chinese-informal {\n list-style-type: simp-chinese-informal;\n}\n\n.qti-list-style-type-trad-chinese-formal {\n list-style-type: trad-chinese-formal;\n}\n\n.qti-list-style-type-trad-chinese-informal {\n list-style-type: trad-chinese-informal;\n}\n\n.qti-list-style-type-cjk-ideographic {\n list-style-type: cjk-ideographic;\n}\n\n.qti-list-style-type-cjk-heavenly-stem {\n list-style-type: cjk-heavenly-stem;\n}\n\n.qti-list-style-type-cjk-earthly-branch {\n list-style-type: cjk-earthly-branch;\n}\n\n.qti-list-style-type-devanagari {\n list-style-type: devanagari;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-er {\n list-style-type: ethiopic-halehame-ti-er;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-et {\n list-style-type: ethiopic-halehame-ti-et;\n}\n\n.qti-list-style-type-ethiopic-halehame-am {\n list-style-type: ethiopic-halehame-am;\n}\n\n.qti-list-style-type-ethiopic-halehame {\n list-style-type: ethiopic-halehame;\n}\n\n.qti-list-style-type-georgian {\n list-style-type: georgian;\n}\n\n.qti-list-style-type-gujarati {\n list-style-type: gujarati;\n}\n\n.qti-list-style-type-gurmukhi {\n list-style-type: gurmukhi;\n}\n\n.qti-list-style-type-hangul {\n list-style-type: hangul;\n}\n\n.qti-list-style-type-hangul-consonant {\n list-style-type: hangul-consonant;\n}\n\n.qti-list-style-type-hebrew {\n list-style-type: hebrew;\n}\n\n.qti-list-style-type-hiragana {\n list-style-type: hiragana;\n}\n\n.qti-list-style-type-hiragana-iroha {\n list-style-type: hiragana-iroha;\n}\n\n.qti-list-style-type-khmer {\n list-style-type: khmer;\n}\n\n.qti-list-style-type-korean-hangul-formal {\n list-style-type: korean-hangul-formal;\n}\n\n.qti-list-style-type-korean-hanja-formal {\n list-style-type: korean-hanja-formal;\n}\n\n.qti-list-style-type-korean-hanja-informal {\n list-style-type: korean-hanja-informal;\n}\n\n.qti-list-style-type-lao {\n list-style-type: lao;\n}\n\n.qti-list-style-type-malayalam {\n list-style-type: malayalam;\n}\n\n.qti-list-style-type-mongolian {\n list-style-type: mongolian;\n}\n\n.qti-list-style-type-myanmar {\n list-style-type: myanmar;\n}\n\n.qti-list-style-type-oriya {\n list-style-type: oriya;\n}\n\n.qti-list-style-type-persian {\n list-style-type: persian;\n}\n\n.qti-list-style-type-thai {\n list-style-type: thai;\n}\n\n.qti-list-style-type-tibetan {\n list-style-type: tibetan;\n}\n\n.qti-list-style-type-telugu {\n list-style-type: telugu;\n}\n\n.qti-list-style-type-urdu {\n list-style-type: urdu;\n}\n\n/* =========================\n Other QTI 3 Presentation Utilities\n ========================= */\n\n.qti-bordered {\n border: 1px solid var(--table-border-color);\n}\n\n.qti-underline {\n text-decoration: underline;\n text-decoration-color: var(--foreground);\n}\n\n.qti-italic {\n font-style: italic;\n}\n\n.qti-well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: var(--well-bg);\n border: var(--well-border);\n border-radius: 4px;\n box-shadow: var(--well-box-shadow);\n}\n\n/* Set writing-mode to vertical-rl \n Typical for CJK vertical text */\n.qti-writing-mode-vertical-rl {\n writing-mode: vertical-rl;\n}\n\n/* Set writing-mode to vertical-lr\n Typical for Mongolian vertical text */\n.qti-writing-mode-vertical-lr {\n writing-mode: vertical-lr;\n}\n\n/* Set writing-mode to horizontal-tb \n Browser default */\n.qti-writing-mode-horizontal-tb {\n writing-mode: horizontal-tb;\n}\n\n/* Float an element left */\n.qti-float-left {\n float: left;\n}\n\n/* Float an element right */\n.qti-float-right {\n float: right;\n}\n\n/* Remove a float */\n.qti-float-none {\n float: none;\n}\n\n/* Clearfix Hack to apply to a container of \n floated content that overflows the container. */\n.qti-float-clearfix::after {\n content: '';\n clear: both;\n display: table;\n}\n\n.qti-float-clear-left\n .qti-float-clear-right\n .qti-float-clear-both\n \n /* Set text-orientation to upright */\n .qti-text-orientation-upright {\n text-orientation: upright;\n}\n}\n\n@layer qti-base {\n\n.qti-layout-row {\n /* The columns stack when the row is narrow, not the viewport: an item in a side-by-side player or a\n * narrow pane collapses too. The row is the container, so it is never shrink-to-fit (width: 100%). */\n container-type: inline-size;\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n gap: 2.1276595745%;\n}\n\n.qti-layout-row [class*='qti-layout-col']:not(:empty) {\n box-sizing: border-box;\n}\n\n.qti-layout-row > [class*='qti-layout-col'] > :first-child {\n margin-block-start: 0; /* a heading or paragraph that opens a column starts at the column's top edge */\n}\n\n.qti-layout-row [class*='qti-layout-col']:empty {\n width: 0;\n overflow: hidden; /* to fully collapse if there\u2019s padding or borders */\n}\n\n.qti-layout-col1 {\n width: 6.3829787234%;\n}\n\n.qti-layout-col2 {\n width: 14.8936170213%;\n}\n\n.qti-layout-col3 {\n width: 23.4042553191%;\n}\n\n.qti-layout-col4 {\n width: 31.914893617%;\n}\n\n.qti-layout-col5 {\n width: 40.4255319149%;\n}\n\n.qti-layout-col6 {\n width: 48.9361702128%;\n}\n\n.qti-layout-col7 {\n width: 57.4468085106%;\n}\n\n.qti-layout-col8 {\n width: 65.9574468085%;\n}\n\n.qti-layout-col9 {\n width: 74.4680851064%;\n}\n\n.qti-layout-col10 {\n width: 82.9787234043%;\n}\n\n.qti-layout-col11 {\n width: 91.4893617021%;\n}\n\n.qti-layout-col12 {\n width: 100%;\n}\n\n.qti-layout-offset1 {\n margin-left: 8.5106382979%;\n}\n\n.qti-layout-offset2 {\n margin-left: 17.0212765957%;\n}\n\n.qti-layout-offset3 {\n margin-left: 25.5319148936%;\n}\n\n.qti-layout-offset4 {\n margin-left: 34.0425531915%;\n}\n\n.qti-layout-offset5 {\n margin-left: 42.5531914894%;\n}\n\n.qti-layout-offset6 {\n margin-left: 51.0638297872%;\n}\n\n.qti-layout-offset7 {\n margin-left: 59.5744680851%;\n}\n\n.qti-layout-offset8 {\n margin-left: 68.085106383%;\n}\n\n.qti-layout-offset9 {\n margin-left: 76.5957446809%;\n}\n\n.qti-layout-offset10 {\n margin-left: 85.1063829787%;\n}\n\n.qti-layout-offset11 {\n margin-left: 93.6170212766%;\n}\n\n@container (width <= 767px) {\n [class*='qti-layout-col'] {\n width: 100%;\n }\n}\n}\n";
|
|
@@ -8890,18 +9004,18 @@ var QtiPortableCustomInteraction = class extends Interaction {
|
|
|
8890
9004
|
this.#pciCustomValidityMessage = pciCustomValidity;
|
|
8891
9005
|
}
|
|
8892
9006
|
const stateRaw = data?.params?.state;
|
|
8893
|
-
let
|
|
9007
|
+
let state16;
|
|
8894
9008
|
if (stateRaw === void 0) {
|
|
8895
|
-
|
|
9009
|
+
state16 = void 0;
|
|
8896
9010
|
} else if (stateRaw === null) {
|
|
8897
|
-
|
|
9011
|
+
state16 = null;
|
|
8898
9012
|
} else if (typeof stateRaw === "string") {
|
|
8899
|
-
|
|
9013
|
+
state16 = stateRaw;
|
|
8900
9014
|
} else {
|
|
8901
9015
|
try {
|
|
8902
|
-
|
|
9016
|
+
state16 = `__qti_json__::${JSON.stringify(stateRaw)}`;
|
|
8903
9017
|
} catch {
|
|
8904
|
-
|
|
9018
|
+
state16 = null;
|
|
8905
9019
|
}
|
|
8906
9020
|
}
|
|
8907
9021
|
if (converted === null) {
|
|
@@ -8909,13 +9023,13 @@ var QtiPortableCustomInteraction = class extends Interaction {
|
|
|
8909
9023
|
const emptyResponse = cardinality === "record" ? null : cardinality === "single" ? "" : [];
|
|
8910
9024
|
this.response = emptyResponse;
|
|
8911
9025
|
this.validate();
|
|
8912
|
-
this.saveResponse(emptyResponse,
|
|
9026
|
+
this.saveResponse(emptyResponse, state16);
|
|
8913
9027
|
break;
|
|
8914
9028
|
}
|
|
8915
9029
|
const response = converted;
|
|
8916
9030
|
this.response = response;
|
|
8917
9031
|
this.validate();
|
|
8918
|
-
this.saveResponse(response,
|
|
9032
|
+
this.saveResponse(response, state16);
|
|
8919
9033
|
break;
|
|
8920
9034
|
}
|
|
8921
9035
|
case "error":
|
|
@@ -10451,15 +10565,15 @@ __decorate25([
|
|
|
10451
10565
|
property23({ type: String, attribute: "data-status" })
|
|
10452
10566
|
], QtiPortableCustomInteraction.prototype, "status", void 0);
|
|
10453
10567
|
__decorate25([
|
|
10454
|
-
|
|
10568
|
+
state14()
|
|
10455
10569
|
], QtiPortableCustomInteraction.prototype, "_errorMessage", void 0);
|
|
10456
10570
|
__decorate25([
|
|
10457
|
-
|
|
10458
|
-
|
|
10571
|
+
consume7({ context: itemContext, subscribe: true }),
|
|
10572
|
+
state14()
|
|
10459
10573
|
], QtiPortableCustomInteraction.prototype, "context", void 0);
|
|
10460
10574
|
__decorate25([
|
|
10461
|
-
|
|
10462
|
-
|
|
10575
|
+
consume7({ context: qtiContext, subscribe: true }),
|
|
10576
|
+
state14()
|
|
10463
10577
|
], QtiPortableCustomInteraction.prototype, "qtiContext", void 0);
|
|
10464
10578
|
__decorate25([
|
|
10465
10579
|
property23({ attribute: "response", reflect: false, converter: responseAttributeConverter({ emptyAs: null }) })
|
|
@@ -10558,7 +10672,7 @@ var QtiPositionObjectStage = class extends LitElement13 {
|
|
|
10558
10672
|
|
|
10559
10673
|
// ../interactions/select-point-interaction/dist/qti-select-point-interaction.js
|
|
10560
10674
|
import { html as html29, nothing as nothing4 } from "lit";
|
|
10561
|
-
import { property as property24, state as
|
|
10675
|
+
import { property as property24, state as state15 } from "lit/decorators.js";
|
|
10562
10676
|
import { repeat as repeat7 } from "lit/directives/repeat.js";
|
|
10563
10677
|
import { styleMap } from "lit/directives/style-map.js";
|
|
10564
10678
|
|
|
@@ -10859,7 +10973,7 @@ __decorate26([
|
|
|
10859
10973
|
property24({ attribute: "area-mappings" })
|
|
10860
10974
|
], QtiSelectPointInteraction.prototype, "areaMappings", void 0);
|
|
10861
10975
|
__decorate26([
|
|
10862
|
-
|
|
10976
|
+
state15()
|
|
10863
10977
|
], QtiSelectPointInteraction.prototype, "_areaEntries", void 0);
|
|
10864
10978
|
__decorate26([
|
|
10865
10979
|
watch("areaMappings")
|
|
@@ -11104,7 +11218,7 @@ __decorate27([
|
|
|
11104
11218
|
// ../interactions/text-entry-interaction/dist/qti-text-entry-interaction.js
|
|
11105
11219
|
import { html as html31 } from "lit";
|
|
11106
11220
|
import { property as property26, query as query3 } from "lit/decorators.js";
|
|
11107
|
-
import { ifDefined as
|
|
11221
|
+
import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
|
|
11108
11222
|
import { createRef } from "lit/directives/ref.js";
|
|
11109
11223
|
|
|
11110
11224
|
// ../interactions/text-entry-interaction/dist/qti-text-entry-interaction.styles.js
|
|
@@ -11279,9 +11393,9 @@ var QtiTextEntryInteraction = class extends Interaction {
|
|
|
11279
11393
|
@keyup="${this.textChanged}"
|
|
11280
11394
|
@change="${this.textChanged}"
|
|
11281
11395
|
type="${this.patternMask == "[0-9]*" ? "number" : "text"}"
|
|
11282
|
-
placeholder="${
|
|
11396
|
+
placeholder="${ifDefined4(this.placeholderText ? this.placeholderText : void 0)}"
|
|
11283
11397
|
.value="${this.response}"
|
|
11284
|
-
pattern="${
|
|
11398
|
+
pattern="${ifDefined4(this.patternMask ? this.patternMask : void 0)}"
|
|
11285
11399
|
maxlength=${1e3}
|
|
11286
11400
|
?disabled="${this.disabled}"
|
|
11287
11401
|
?readonly="${this.readonly}"
|
|
@@ -12061,4 +12175,4 @@ export {
|
|
|
12061
12175
|
elements31 as elements21,
|
|
12062
12176
|
qtiInteractionElements
|
|
12063
12177
|
};
|
|
12064
|
-
//# sourceMappingURL=chunk-
|
|
12178
|
+
//# sourceMappingURL=chunk-G2EIC7H2.js.map
|