@citolab/qti-components 10.0.0-next.2 → 10.0.0-next.3
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 +158 -158
- package/dist/{chunk-2KP5UU5A.js → chunk-D3BYGEQU.js} +2 -2
- package/dist/{chunk-3ZNECUPV.js → chunk-OQDBARD5.js} +2 -2
- package/dist/{chunk-K3VKQ6QF.js → chunk-SIE3E4FG.js} +269 -177
- package/dist/chunk-SIE3E4FG.js.map +1 -0
- package/dist/corrections.d.ts +1 -1
- package/dist/corrections.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/qti-components-jsx.d.ts +99 -2
- package/dist/{qti-test.d-DkpBNcsv.d.ts → qti-test.d-86TlaMlI.d.ts} +40 -1
- package/dist/test.d.ts +2 -2
- package/dist/test.js +4 -2
- package/package.json +2 -2
- package/dist/chunk-K3VKQ6QF.js.map +0 -1
- /package/dist/{chunk-2KP5UU5A.js.map → chunk-D3BYGEQU.js.map} +0 -0
- /package/dist/{chunk-3ZNECUPV.js.map → chunk-OQDBARD5.js.map} +0 -0
|
@@ -636,18 +636,18 @@ var EvalAstFactory = class {
|
|
|
636
636
|
}
|
|
637
637
|
const value = this.right.evaluate(scope);
|
|
638
638
|
let receiver = void 0;
|
|
639
|
-
let
|
|
639
|
+
let property22;
|
|
640
640
|
if (this.left.type === "Getter") {
|
|
641
641
|
receiver = this.left.receiver.evaluate(scope);
|
|
642
|
-
|
|
642
|
+
property22 = this.left.name;
|
|
643
643
|
} else if (this.left.type === "Index") {
|
|
644
644
|
receiver = this.left.receiver.evaluate(scope);
|
|
645
|
-
|
|
645
|
+
property22 = this.left.argument.evaluate(scope);
|
|
646
646
|
} else if (this.left.type === "ID") {
|
|
647
647
|
receiver = scope;
|
|
648
|
-
|
|
648
|
+
property22 = this.left.value;
|
|
649
649
|
}
|
|
650
|
-
return receiver === void 0 ? void 0 : receiver[
|
|
650
|
+
return receiver === void 0 ? void 0 : receiver[property22] = value;
|
|
651
651
|
}
|
|
652
652
|
return f(this.left.evaluate(scope), this.right.evaluate(scope));
|
|
653
653
|
},
|
|
@@ -1495,6 +1495,9 @@ __decorate5([
|
|
|
1495
1495
|
property5({ type: Boolean, converter: stringToBooleanConverter3, attribute: "validate-responses" })
|
|
1496
1496
|
], QtiItemSessionControl.prototype, "validateResponses", void 0);
|
|
1497
1497
|
|
|
1498
|
+
// ../qti-test/dist/components/qti-number-presented/qti-number-presented.js
|
|
1499
|
+
import { consume as consume4 } from "@lit/context";
|
|
1500
|
+
|
|
1498
1501
|
// ../qti-test/dist/internal/item-ref-selection.js
|
|
1499
1502
|
var categoryList = (value) => value?.split(/\s+/).filter(Boolean) ?? [];
|
|
1500
1503
|
var selectionFrom = (element) => ({
|
|
@@ -1520,6 +1523,43 @@ var selectItemRefs = (testElement, { sectionIdentifier, includeCategories, exclu
|
|
|
1520
1523
|
});
|
|
1521
1524
|
};
|
|
1522
1525
|
|
|
1526
|
+
// ../qti-test/dist/components/qti-number-presented/qti-number-presented.js
|
|
1527
|
+
var __decorate6 = function(decorators, target, key, desc) {
|
|
1528
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1529
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1530
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1531
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1532
|
+
};
|
|
1533
|
+
var QtiNumberPresented = class extends QtiExpression {
|
|
1534
|
+
#connectedTest = null;
|
|
1535
|
+
constructor() {
|
|
1536
|
+
super();
|
|
1537
|
+
listenPublic2(this, "cito-test-loaded", (e) => this.#connectedTest = e.detail);
|
|
1538
|
+
}
|
|
1539
|
+
/** The test this expression is in: handed over by a test harness, or found up the tree in a real document. */
|
|
1540
|
+
get #testElement() {
|
|
1541
|
+
return this.#connectedTest ?? this.closest("qti-assessment-test");
|
|
1542
|
+
}
|
|
1543
|
+
getResult() {
|
|
1544
|
+
const testElement = this.#testElement;
|
|
1545
|
+
if (!testElement) {
|
|
1546
|
+
console.warn("qti-number-presented: no enclosing qti-assessment-test, nothing to count");
|
|
1547
|
+
return 0;
|
|
1548
|
+
}
|
|
1549
|
+
const presented = new Set((this._testContext?.items ?? []).filter((item) => {
|
|
1550
|
+
const status = item.variables?.find((v) => v.identifier === "completionStatus")?.value;
|
|
1551
|
+
return status != null && status !== "not_attempted";
|
|
1552
|
+
}).map((item) => item.identifier));
|
|
1553
|
+
return selectItemRefs(testElement, selectionFrom(this)).filter((itemRef) => presented.has(itemRef.identifier)).length;
|
|
1554
|
+
}
|
|
1555
|
+
calculate() {
|
|
1556
|
+
return this.getResult();
|
|
1557
|
+
}
|
|
1558
|
+
};
|
|
1559
|
+
__decorate6([
|
|
1560
|
+
consume4({ context: testContext, subscribe: true })
|
|
1561
|
+
], QtiNumberPresented.prototype, "_testContext", void 0);
|
|
1562
|
+
|
|
1523
1563
|
// ../qti-test/dist/components/qti-number-selected/qti-number-selected.js
|
|
1524
1564
|
var QtiNumberSelected = class extends QtiExpression {
|
|
1525
1565
|
#connectedTest = null;
|
|
@@ -1604,7 +1644,18 @@ var QtiOutcomeProcessingProcessor = class {
|
|
|
1604
1644
|
|
|
1605
1645
|
// ../qti-test/dist/components/qti-test-feedback/qti-test-feedback.js
|
|
1606
1646
|
import { css as css4, html as html7 } from "lit";
|
|
1647
|
+
import { property as property6 } from "lit/decorators.js";
|
|
1648
|
+
var __decorate7 = function(decorators, target, key, desc) {
|
|
1649
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1650
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1651
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1652
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1653
|
+
};
|
|
1607
1654
|
var QtiTestFeedback = class extends QtiModalFeedback {
|
|
1655
|
+
constructor() {
|
|
1656
|
+
super(...arguments);
|
|
1657
|
+
this.access = "atEnd";
|
|
1658
|
+
}
|
|
1608
1659
|
static {
|
|
1609
1660
|
this.styles = css4`
|
|
1610
1661
|
:host {
|
|
@@ -1612,15 +1663,26 @@ var QtiTestFeedback = class extends QtiModalFeedback {
|
|
|
1612
1663
|
}
|
|
1613
1664
|
`;
|
|
1614
1665
|
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Whether this feedback applies for a value of its `outcome-identifier`: with `show-hide="show"`
|
|
1668
|
+
* when the value is (or, for a container, holds) its `identifier`; with `hide` when it is not.
|
|
1669
|
+
*/
|
|
1670
|
+
matches(value) {
|
|
1671
|
+
const found = Array.isArray(value) ? value.includes(this.identifier) : value != null && value === this.identifier;
|
|
1672
|
+
return this.showHide === "hide" ? !found : found;
|
|
1673
|
+
}
|
|
1615
1674
|
render() {
|
|
1616
1675
|
return html7``;
|
|
1617
1676
|
}
|
|
1618
1677
|
};
|
|
1678
|
+
__decorate7([
|
|
1679
|
+
property6({ type: String })
|
|
1680
|
+
], QtiTestFeedback.prototype, "access", void 0);
|
|
1619
1681
|
|
|
1620
1682
|
// ../qti-test/dist/components/qti-test-part/qti-test-part.js
|
|
1621
1683
|
import { html as html8, LitElement as LitElement8 } from "lit";
|
|
1622
|
-
import { property as
|
|
1623
|
-
var
|
|
1684
|
+
import { property as property7 } from "lit/decorators.js";
|
|
1685
|
+
var __decorate8 = function(decorators, target, key, desc) {
|
|
1624
1686
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1625
1687
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1626
1688
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1656,22 +1718,22 @@ var QtiTestPart = class extends LitElement8 {
|
|
|
1656
1718
|
return html8` <slot></slot>`;
|
|
1657
1719
|
}
|
|
1658
1720
|
};
|
|
1659
|
-
|
|
1660
|
-
|
|
1721
|
+
__decorate8([
|
|
1722
|
+
property7({ type: String })
|
|
1661
1723
|
], QtiTestPart.prototype, "identifier", void 0);
|
|
1662
|
-
|
|
1663
|
-
|
|
1724
|
+
__decorate8([
|
|
1725
|
+
property7({ type: String })
|
|
1664
1726
|
], QtiTestPart.prototype, "class", void 0);
|
|
1665
|
-
|
|
1666
|
-
|
|
1727
|
+
__decorate8([
|
|
1728
|
+
property7({ type: String, attribute: "navigation-mode" })
|
|
1667
1729
|
], QtiTestPart.prototype, "navigationMode", void 0);
|
|
1668
|
-
|
|
1669
|
-
|
|
1730
|
+
__decorate8([
|
|
1731
|
+
property7({ type: String, attribute: "submission-mode" })
|
|
1670
1732
|
], QtiTestPart.prototype, "submissionMode", void 0);
|
|
1671
1733
|
|
|
1672
1734
|
// ../qti-test/dist/components/qti-test-variables/qti-test-variables.js
|
|
1673
|
-
import { consume as
|
|
1674
|
-
var
|
|
1735
|
+
import { consume as consume5 } from "@lit/context";
|
|
1736
|
+
var __decorate9 = function(decorators, target, key, desc) {
|
|
1675
1737
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1676
1738
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1677
1739
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1712,8 +1774,8 @@ var QtiTestVariables = class extends QtiExpression {
|
|
|
1712
1774
|
return this.getResult();
|
|
1713
1775
|
}
|
|
1714
1776
|
};
|
|
1715
|
-
|
|
1716
|
-
|
|
1777
|
+
__decorate9([
|
|
1778
|
+
consume5({ context: testContext, subscribe: true })
|
|
1717
1779
|
], QtiTestVariables.prototype, "_testContext", void 0);
|
|
1718
1780
|
var QtiTestVariablesExpression = class {
|
|
1719
1781
|
constructor(testContext2, itemVariable, includedItems) {
|
|
@@ -1750,7 +1812,7 @@ import { html as html9, LitElement as LitElement10 } from "lit";
|
|
|
1750
1812
|
import { state as state2 } from "lit/decorators.js";
|
|
1751
1813
|
|
|
1752
1814
|
// ../qti-test/dist/mixins/test-navigation.mixin.js
|
|
1753
|
-
import { property as
|
|
1815
|
+
import { property as property8 } from "lit/decorators.js";
|
|
1754
1816
|
|
|
1755
1817
|
// ../qti-test/dist/internal/item-sequencing.js
|
|
1756
1818
|
var SECTION = "qti-assessment-section";
|
|
@@ -1843,7 +1905,7 @@ function preConditionsPass(itemRef, from) {
|
|
|
1843
1905
|
}
|
|
1844
1906
|
|
|
1845
1907
|
// ../qti-test/dist/mixins/test-navigation.mixin.js
|
|
1846
|
-
var
|
|
1908
|
+
var __decorate10 = function(decorators, target, key, desc) {
|
|
1847
1909
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1848
1910
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1849
1911
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2351,17 +2413,17 @@ var TestNavigationMixin = (superClass) => {
|
|
|
2351
2413
|
});
|
|
2352
2414
|
}
|
|
2353
2415
|
}
|
|
2354
|
-
|
|
2355
|
-
|
|
2416
|
+
__decorate10([
|
|
2417
|
+
property8({ type: String })
|
|
2356
2418
|
], TestNavigationClass.prototype, "navigate", void 0);
|
|
2357
|
-
|
|
2358
|
-
|
|
2419
|
+
__decorate10([
|
|
2420
|
+
property8({ type: Number })
|
|
2359
2421
|
], TestNavigationClass.prototype, "requestTimeout", void 0);
|
|
2360
|
-
|
|
2361
|
-
|
|
2422
|
+
__decorate10([
|
|
2423
|
+
property8({ attribute: false })
|
|
2362
2424
|
], TestNavigationClass.prototype, "postLoadTransformCallback", void 0);
|
|
2363
|
-
|
|
2364
|
-
|
|
2425
|
+
__decorate10([
|
|
2426
|
+
property8({ attribute: false })
|
|
2365
2427
|
], TestNavigationClass.prototype, "postLoadTestTransformCallback", void 0);
|
|
2366
2428
|
return TestNavigationClass;
|
|
2367
2429
|
};
|
|
@@ -2417,8 +2479,8 @@ var TestViewMixin = (superClass) => {
|
|
|
2417
2479
|
// ../qti-test/dist/mixins/test-base.js
|
|
2418
2480
|
import { provide } from "@lit/context";
|
|
2419
2481
|
import { LitElement as LitElement9 } from "lit";
|
|
2420
|
-
import { property as
|
|
2421
|
-
var
|
|
2482
|
+
import { property as property9 } from "lit/decorators.js";
|
|
2483
|
+
var __decorate11 = function(decorators, target, key, desc) {
|
|
2422
2484
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2423
2485
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2424
2486
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2444,6 +2506,8 @@ var TestBaseMixin = (superClass) => {
|
|
|
2444
2506
|
} else {
|
|
2445
2507
|
const newVariables = [...assessmentItem.variables];
|
|
2446
2508
|
for (const variable of itemContext.variables) {
|
|
2509
|
+
if (variable.identifier === "completionStatus" && variable.value === "not_attempted")
|
|
2510
|
+
continue;
|
|
2447
2511
|
const currentVariable = newVariables.find((v) => v.identifier === variable.identifier);
|
|
2448
2512
|
if (currentVariable) {
|
|
2449
2513
|
currentVariable.value = variable.value;
|
|
@@ -2452,6 +2516,7 @@ var TestBaseMixin = (superClass) => {
|
|
|
2452
2516
|
}
|
|
2453
2517
|
}
|
|
2454
2518
|
assessmentItem.variables = newVariables;
|
|
2519
|
+
this.#leaveNotAttempted(identifier, newVariables.find((v) => v.identifier === "completionStatus")?.value);
|
|
2455
2520
|
if (itemContext.state) {
|
|
2456
2521
|
assessmentItem.state = itemContext.state;
|
|
2457
2522
|
}
|
|
@@ -2558,13 +2623,29 @@ var TestBaseMixin = (superClass) => {
|
|
|
2558
2623
|
};
|
|
2559
2624
|
this.dispatchEvent(new CustomEvent("qti-test-context-updated", { detail: this.testContext, bubbles: false, composed: false }));
|
|
2560
2625
|
}
|
|
2626
|
+
/** Write the presented item's own status over a `not_attempted` the test context still holds for it. */
|
|
2627
|
+
#leaveNotAttempted(identifier, status) {
|
|
2628
|
+
if (typeof status !== "string" || status === "not_attempted")
|
|
2629
|
+
return;
|
|
2630
|
+
const item = this.testContext.items.find((i) => i.identifier === identifier);
|
|
2631
|
+
const current = item?.variables.find((v) => v.identifier === "completionStatus");
|
|
2632
|
+
if (current?.value !== "not_attempted")
|
|
2633
|
+
return;
|
|
2634
|
+
this.testContext = {
|
|
2635
|
+
...this.testContext,
|
|
2636
|
+
items: this.testContext.items.map((i) => i.identifier !== identifier ? i : {
|
|
2637
|
+
...i,
|
|
2638
|
+
variables: i.variables.map((v) => v.identifier === "completionStatus" ? { ...v, value: status } : v)
|
|
2639
|
+
})
|
|
2640
|
+
};
|
|
2641
|
+
}
|
|
2561
2642
|
}
|
|
2562
|
-
|
|
2563
|
-
|
|
2643
|
+
__decorate11([
|
|
2644
|
+
property9({ attribute: false, type: Object }),
|
|
2564
2645
|
provide({ context: testContext })
|
|
2565
2646
|
], TestBaseClass.prototype, "testContext", void 0);
|
|
2566
|
-
|
|
2567
|
-
|
|
2647
|
+
__decorate11([
|
|
2648
|
+
property9({ attribute: false, type: Object }),
|
|
2568
2649
|
provide({ context: sessionContext })
|
|
2569
2650
|
], TestBaseClass.prototype, "sessionContext", void 0);
|
|
2570
2651
|
return TestBaseClass;
|
|
@@ -2706,6 +2787,15 @@ var TestProcessingMixin = (superClass) => {
|
|
|
2706
2787
|
outcomeProcessor?.process();
|
|
2707
2788
|
return true;
|
|
2708
2789
|
}
|
|
2790
|
+
/**
|
|
2791
|
+
* The `qti-test-feedback` elements that apply now, read from the test outcomes: run
|
|
2792
|
+
* `outcomeProcessing()` first. `access` narrows them to the end of the test (`atEnd`) or to
|
|
2793
|
+
* while it runs (`during`); without it, both.
|
|
2794
|
+
*/
|
|
2795
|
+
getTestFeedback(access) {
|
|
2796
|
+
const feedback = Array.from((this._testElement ?? this).querySelectorAll("qti-test-feedback") ?? []);
|
|
2797
|
+
return feedback.filter((fb) => (!access || fb.access === access) && fb.matches(this.getOutcome(fb.outcomeIdentifier)?.value));
|
|
2798
|
+
}
|
|
2709
2799
|
/* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
|
|
2710
2800
|
updateOutcomeVariable(identifier, value) {
|
|
2711
2801
|
const outcomeVariable = this.getOutcome(identifier);
|
|
@@ -2737,7 +2827,7 @@ var TestProcessingMixin = (superClass) => {
|
|
|
2737
2827
|
};
|
|
2738
2828
|
|
|
2739
2829
|
// ../qti-test/dist/components/qti-test/qti-test.js
|
|
2740
|
-
var
|
|
2830
|
+
var __decorate12 = function(decorators, target, key, desc) {
|
|
2741
2831
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2742
2832
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2743
2833
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2771,17 +2861,17 @@ var QtiTest = class extends TestNavigationMixin(TestViewMixin(TestProcessingMixi
|
|
|
2771
2861
|
return html9`<slot></slot>`;
|
|
2772
2862
|
}
|
|
2773
2863
|
};
|
|
2774
|
-
|
|
2864
|
+
__decorate12([
|
|
2775
2865
|
state2(),
|
|
2776
2866
|
provide2({ context: configContext })
|
|
2777
2867
|
], QtiTest.prototype, "configContext", void 0);
|
|
2778
|
-
|
|
2868
|
+
__decorate12([
|
|
2779
2869
|
state2(),
|
|
2780
2870
|
provide2({ context: qtiContext })
|
|
2781
2871
|
], QtiTest.prototype, "qtiContext", void 0);
|
|
2782
2872
|
|
|
2783
2873
|
// ../qti-test/dist/components/test-check-item/test-check-item.js
|
|
2784
|
-
import { consume as
|
|
2874
|
+
import { consume as consume6 } from "@lit/context";
|
|
2785
2875
|
import { css as css6, html as html10, LitElement as LitElement11 } from "lit";
|
|
2786
2876
|
|
|
2787
2877
|
// ../qti-test/dist/components/styles.js
|
|
@@ -2824,7 +2914,7 @@ var ind = css5`
|
|
|
2824
2914
|
`;
|
|
2825
2915
|
|
|
2826
2916
|
// ../qti-test/dist/components/test-check-item/test-check-item.js
|
|
2827
|
-
var
|
|
2917
|
+
var __decorate13 = function(decorators, target, key, desc) {
|
|
2828
2918
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2829
2919
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2830
2920
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2864,16 +2954,16 @@ var TestCheckItem = class extends LitElement11 {
|
|
|
2864
2954
|
return html10` <slot></slot> `;
|
|
2865
2955
|
}
|
|
2866
2956
|
};
|
|
2867
|
-
|
|
2868
|
-
|
|
2957
|
+
__decorate13([
|
|
2958
|
+
consume6({ context: testHostContext, subscribe: true })
|
|
2869
2959
|
], TestCheckItem.prototype, "testHost", void 0);
|
|
2870
2960
|
|
|
2871
2961
|
// ../qti-test/dist/components/test-container/test-container.js
|
|
2872
|
-
import { consume as
|
|
2962
|
+
import { consume as consume7 } from "@lit/context";
|
|
2873
2963
|
import { LitElement as LitElement12, html as html11 } from "lit";
|
|
2874
|
-
import { property as
|
|
2964
|
+
import { property as property10, state as state3 } from "lit/decorators.js";
|
|
2875
2965
|
import { until } from "lit/directives/until.js";
|
|
2876
|
-
var
|
|
2966
|
+
var __decorate14 = function(decorators, target, key, desc) {
|
|
2877
2967
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2878
2968
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2879
2969
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2979,37 +3069,37 @@ var TestContainer = class extends LitElement12 {
|
|
|
2979
3069
|
`;
|
|
2980
3070
|
}
|
|
2981
3071
|
};
|
|
2982
|
-
|
|
2983
|
-
|
|
3072
|
+
__decorate14([
|
|
3073
|
+
property10({ attribute: false })
|
|
2984
3074
|
], TestContainer.prototype, "customElementRegistry", void 0);
|
|
2985
|
-
|
|
2986
|
-
|
|
3075
|
+
__decorate14([
|
|
3076
|
+
property10({ type: String, attribute: "test-url" })
|
|
2987
3077
|
], TestContainer.prototype, "testURL", void 0);
|
|
2988
|
-
|
|
3078
|
+
__decorate14([
|
|
2989
3079
|
state3()
|
|
2990
3080
|
], TestContainer.prototype, "testDoc", void 0);
|
|
2991
|
-
|
|
3081
|
+
__decorate14([
|
|
2992
3082
|
state3()
|
|
2993
3083
|
], TestContainer.prototype, "testXML", void 0);
|
|
2994
|
-
|
|
2995
|
-
|
|
3084
|
+
__decorate14([
|
|
3085
|
+
consume7({ context: testHostContext, subscribe: true })
|
|
2996
3086
|
], TestContainer.prototype, "testHost", void 0);
|
|
2997
|
-
|
|
3087
|
+
__decorate14([
|
|
2998
3088
|
state3(),
|
|
2999
|
-
|
|
3089
|
+
consume7({ context: qtiContext, subscribe: true })
|
|
3000
3090
|
], TestContainer.prototype, "qtiContext", void 0);
|
|
3001
|
-
|
|
3091
|
+
__decorate14([
|
|
3002
3092
|
watch("testURL", { waitUntilFirstUpdate: true })
|
|
3003
3093
|
], TestContainer.prototype, "handleTestURLChange", null);
|
|
3004
|
-
|
|
3094
|
+
__decorate14([
|
|
3005
3095
|
watch("testXML", { waitUntilFirstUpdate: true })
|
|
3006
3096
|
], TestContainer.prototype, "handleTestXMLChange", null);
|
|
3007
3097
|
|
|
3008
3098
|
// ../qti-test/dist/components/test-end-attempt/test-end-attempt.js
|
|
3009
3099
|
import { css as css7, html as html12, LitElement as LitElement13 } from "lit";
|
|
3010
|
-
import { property as
|
|
3011
|
-
import { consume as
|
|
3012
|
-
var
|
|
3100
|
+
import { property as property11 } from "lit/decorators.js";
|
|
3101
|
+
import { consume as consume8 } from "@lit/context";
|
|
3102
|
+
var __decorate15 = function(decorators, target, key, desc) {
|
|
3013
3103
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3014
3104
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3015
3105
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3085,21 +3175,21 @@ var TestEndAttempt = class extends LitElement13 {
|
|
|
3085
3175
|
return html12` <slot></slot> `;
|
|
3086
3176
|
}
|
|
3087
3177
|
};
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3178
|
+
__decorate15([
|
|
3179
|
+
consume8({ context: computedContext, subscribe: true }),
|
|
3180
|
+
property11({ attribute: false })
|
|
3091
3181
|
], TestEndAttempt.prototype, "computedContext", void 0);
|
|
3092
|
-
|
|
3093
|
-
|
|
3182
|
+
__decorate15([
|
|
3183
|
+
property11({ type: Boolean, reflect: true, attribute: "disabled" })
|
|
3094
3184
|
], TestEndAttempt.prototype, "_internalDisabled", void 0);
|
|
3095
|
-
|
|
3185
|
+
__decorate15([
|
|
3096
3186
|
watch("computedContext")
|
|
3097
3187
|
], TestEndAttempt.prototype, "_handleTestElementChange", null);
|
|
3098
3188
|
|
|
3099
3189
|
// ../qti-test/dist/components/test-item-link/test-item-link.js
|
|
3100
3190
|
import { css as css8, html as html13, LitElement as LitElement14 } from "lit";
|
|
3101
|
-
import { property as
|
|
3102
|
-
var
|
|
3191
|
+
import { property as property12 } from "lit/decorators.js";
|
|
3192
|
+
var __decorate16 = function(decorators, target, key, desc) {
|
|
3103
3193
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3104
3194
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3105
3195
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3134,16 +3224,16 @@ var TestItemLink = class extends LitElement14 {
|
|
|
3134
3224
|
return html13` <slot></slot> `;
|
|
3135
3225
|
}
|
|
3136
3226
|
};
|
|
3137
|
-
|
|
3138
|
-
|
|
3227
|
+
__decorate16([
|
|
3228
|
+
property12({ type: String, attribute: "item-id" })
|
|
3139
3229
|
], TestItemLink.prototype, "itemId", void 0);
|
|
3140
3230
|
|
|
3141
3231
|
// ../qti-test/dist/components/test-item-to-speech/test-item-to-speech.js
|
|
3142
3232
|
import { html as html14, LitElement as LitElement15, css as css9 } from "lit";
|
|
3143
|
-
import { consume as
|
|
3144
|
-
import { property as
|
|
3233
|
+
import { consume as consume9, provide as provide3, createContext as createContext2 } from "@lit/context";
|
|
3234
|
+
import { property as property13, state as state4 } from "lit/decorators.js";
|
|
3145
3235
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3146
|
-
var
|
|
3236
|
+
var __decorate17 = function(decorators, target, key, desc) {
|
|
3147
3237
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3148
3238
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3149
3239
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3243,11 +3333,11 @@ var TtsButtonBase = class extends LitElement15 {
|
|
|
3243
3333
|
this.#internals.states.add("picking");
|
|
3244
3334
|
}
|
|
3245
3335
|
};
|
|
3246
|
-
|
|
3247
|
-
|
|
3336
|
+
__decorate17([
|
|
3337
|
+
property13({ type: String })
|
|
3248
3338
|
], TtsButtonBase.prototype, "label", void 0);
|
|
3249
|
-
|
|
3250
|
-
|
|
3339
|
+
__decorate17([
|
|
3340
|
+
consume9({ context: ttsContext, subscribe: true })
|
|
3251
3341
|
], TtsButtonBase.prototype, "_tts", void 0);
|
|
3252
3342
|
var TestItemToSpeech = class extends LitElement15 {
|
|
3253
3343
|
static {
|
|
@@ -3841,16 +3931,16 @@ var TestItemToSpeech = class extends LitElement15 {
|
|
|
3841
3931
|
}
|
|
3842
3932
|
}
|
|
3843
3933
|
};
|
|
3844
|
-
|
|
3845
|
-
|
|
3934
|
+
__decorate17([
|
|
3935
|
+
property13({ type: String })
|
|
3846
3936
|
], TestItemToSpeech.prototype, "language", void 0);
|
|
3847
|
-
|
|
3848
|
-
|
|
3937
|
+
__decorate17([
|
|
3938
|
+
consume9({ context: sessionContext, subscribe: true })
|
|
3849
3939
|
], TestItemToSpeech.prototype, "_sessionContext", void 0);
|
|
3850
|
-
|
|
3851
|
-
|
|
3940
|
+
__decorate17([
|
|
3941
|
+
consume9({ context: testHostContext, subscribe: true })
|
|
3852
3942
|
], TestItemToSpeech.prototype, "testHost", void 0);
|
|
3853
|
-
|
|
3943
|
+
__decorate17([
|
|
3854
3944
|
state4(),
|
|
3855
3945
|
provide3({ context: ttsContext })
|
|
3856
3946
|
], TestItemToSpeech.prototype, "_ttsContext", void 0);
|
|
@@ -3874,8 +3964,8 @@ var TestTtsPlay = class extends TtsButtonBase {
|
|
|
3874
3964
|
`;
|
|
3875
3965
|
}
|
|
3876
3966
|
};
|
|
3877
|
-
|
|
3878
|
-
|
|
3967
|
+
__decorate17([
|
|
3968
|
+
property13({ type: String, attribute: "pause-label" })
|
|
3879
3969
|
], TestTtsPlay.prototype, "pauseLabel", void 0);
|
|
3880
3970
|
var TestTtsPause = class extends TtsButtonBase {
|
|
3881
3971
|
render() {
|
|
@@ -3963,10 +4053,10 @@ var TestTtsPick = class extends TtsButtonBase {
|
|
|
3963
4053
|
};
|
|
3964
4054
|
|
|
3965
4055
|
// ../qti-test/dist/components/test-navigation/test-navigation.js
|
|
3966
|
-
import { ContextConsumer, consume as
|
|
4056
|
+
import { ContextConsumer, consume as consume10, provide as provide4 } from "@lit/context";
|
|
3967
4057
|
import { html as html15, LitElement as LitElement16 } from "lit";
|
|
3968
|
-
import { property as
|
|
3969
|
-
var
|
|
4058
|
+
import { property as property14, state as state5 } from "lit/decorators.js";
|
|
4059
|
+
var __decorate18 = function(decorators, target, key, desc) {
|
|
3970
4060
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3971
4061
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3972
4062
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4484,37 +4574,37 @@ var TestNavigation = class extends LitElement16 {
|
|
|
4484
4574
|
return Number.isNaN(parsed) ? null : parsed;
|
|
4485
4575
|
}
|
|
4486
4576
|
};
|
|
4487
|
-
|
|
4488
|
-
|
|
4577
|
+
__decorate18([
|
|
4578
|
+
property14({ type: String })
|
|
4489
4579
|
], TestNavigation.prototype, "identifier", void 0);
|
|
4490
|
-
|
|
4580
|
+
__decorate18([
|
|
4491
4581
|
state5()
|
|
4492
4582
|
], TestNavigation.prototype, "initContext", void 0);
|
|
4493
|
-
|
|
4583
|
+
__decorate18([
|
|
4494
4584
|
state5(),
|
|
4495
|
-
|
|
4585
|
+
consume10({ context: configContext, subscribe: true })
|
|
4496
4586
|
], TestNavigation.prototype, "configContext", void 0);
|
|
4497
|
-
|
|
4587
|
+
__decorate18([
|
|
4498
4588
|
state5(),
|
|
4499
|
-
|
|
4589
|
+
consume10({ context: testContext, subscribe: true })
|
|
4500
4590
|
], TestNavigation.prototype, "_testContext", void 0);
|
|
4501
|
-
|
|
4591
|
+
__decorate18([
|
|
4502
4592
|
state5(),
|
|
4503
|
-
|
|
4593
|
+
consume10({ context: sessionContext, subscribe: true })
|
|
4504
4594
|
], TestNavigation.prototype, "_sessionContext", void 0);
|
|
4505
|
-
|
|
4595
|
+
__decorate18([
|
|
4506
4596
|
state5(),
|
|
4507
4597
|
provide4({ context: computedContext })
|
|
4508
4598
|
], TestNavigation.prototype, "computedContext", void 0);
|
|
4509
|
-
|
|
4510
|
-
|
|
4599
|
+
__decorate18([
|
|
4600
|
+
property14({ type: Boolean, attribute: "auto-score-items" })
|
|
4511
4601
|
], TestNavigation.prototype, "autoScoreItems", void 0);
|
|
4512
4602
|
|
|
4513
4603
|
// ../qti-test/dist/components/test-next/test-next.js
|
|
4514
4604
|
import { css as css10, html as html16, LitElement as LitElement17 } from "lit";
|
|
4515
|
-
import { property as
|
|
4516
|
-
import { consume as
|
|
4517
|
-
var
|
|
4605
|
+
import { property as property15 } from "lit/decorators.js";
|
|
4606
|
+
import { consume as consume11 } from "@lit/context";
|
|
4607
|
+
var __decorate19 = function(decorators, target, key, desc) {
|
|
4518
4608
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4519
4609
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4520
4610
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4587,20 +4677,20 @@ var TestNext = class extends LitElement17 {
|
|
|
4587
4677
|
return html16`<slot></slot>`;
|
|
4588
4678
|
}
|
|
4589
4679
|
};
|
|
4590
|
-
|
|
4591
|
-
|
|
4680
|
+
__decorate19([
|
|
4681
|
+
property15({ type: Boolean, reflect: true, attribute: "disabled" })
|
|
4592
4682
|
], TestNext.prototype, "_internalDisabled", void 0);
|
|
4593
|
-
|
|
4594
|
-
|
|
4683
|
+
__decorate19([
|
|
4684
|
+
consume11({ context: computedContext, subscribe: true })
|
|
4595
4685
|
], TestNext.prototype, "computedContext", void 0);
|
|
4596
|
-
|
|
4686
|
+
__decorate19([
|
|
4597
4687
|
watch("computedContext")
|
|
4598
4688
|
], TestNext.prototype, "_handleTestElementChange", null);
|
|
4599
4689
|
|
|
4600
4690
|
// ../qti-test/dist/components/test-paging-buttons-stamp/test-paging-buttons-stamp.js
|
|
4601
4691
|
import { html as html17, LitElement as LitElement18 } from "lit";
|
|
4602
|
-
import { consume as
|
|
4603
|
-
var
|
|
4692
|
+
import { consume as consume12 } from "@lit/context";
|
|
4693
|
+
var __decorate20 = function(decorators, target, key, desc) {
|
|
4604
4694
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4605
4695
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4606
4696
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4628,15 +4718,15 @@ var TestPagingButtonsStamp = class extends LitElement18 {
|
|
|
4628
4718
|
return html17` ${items.map((item) => this.myTemplate({ item, view: this.computedContext.view }))} `;
|
|
4629
4719
|
}
|
|
4630
4720
|
};
|
|
4631
|
-
|
|
4632
|
-
|
|
4721
|
+
__decorate20([
|
|
4722
|
+
consume12({ context: computedContext, subscribe: true })
|
|
4633
4723
|
], TestPagingButtonsStamp.prototype, "computedContext", void 0);
|
|
4634
4724
|
|
|
4635
4725
|
// ../qti-test/dist/components/test-prev/test-prev.js
|
|
4636
4726
|
import { css as css11, html as html18, LitElement as LitElement19 } from "lit";
|
|
4637
|
-
import { property as
|
|
4638
|
-
import { consume as
|
|
4639
|
-
var
|
|
4727
|
+
import { property as property16 } from "lit/decorators.js";
|
|
4728
|
+
import { consume as consume13 } from "@lit/context";
|
|
4729
|
+
var __decorate21 = function(decorators, target, key, desc) {
|
|
4640
4730
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4641
4731
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4642
4732
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4696,21 +4786,21 @@ var TestPrev = class extends LitElement19 {
|
|
|
4696
4786
|
return html18`<slot></slot>`;
|
|
4697
4787
|
}
|
|
4698
4788
|
};
|
|
4699
|
-
|
|
4700
|
-
|
|
4789
|
+
__decorate21([
|
|
4790
|
+
property16({ type: Boolean, reflect: true, attribute: "disabled" })
|
|
4701
4791
|
], TestPrev.prototype, "_internalDisabled", void 0);
|
|
4702
|
-
|
|
4703
|
-
|
|
4792
|
+
__decorate21([
|
|
4793
|
+
consume13({ context: computedContext, subscribe: true })
|
|
4704
4794
|
], TestPrev.prototype, "computedContext", void 0);
|
|
4705
|
-
|
|
4795
|
+
__decorate21([
|
|
4706
4796
|
watch("computedContext")
|
|
4707
4797
|
], TestPrev.prototype, "_handleTestElementChange", null);
|
|
4708
4798
|
|
|
4709
4799
|
// ../qti-test/dist/components/test-print-context/test-print-context.js
|
|
4710
4800
|
import { html as html19, LitElement as LitElement20 } from "lit";
|
|
4711
|
-
import { consume as
|
|
4801
|
+
import { consume as consume14 } from "@lit/context";
|
|
4712
4802
|
import { state as state6 } from "lit/decorators.js";
|
|
4713
|
-
var
|
|
4803
|
+
var __decorate22 = function(decorators, target, key, desc) {
|
|
4714
4804
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4715
4805
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4716
4806
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4721,15 +4811,15 @@ var TestPrintContext = class extends LitElement20 {
|
|
|
4721
4811
|
return html19` <small><pre>${JSON.stringify(this.computedContext, null, 2)}</pre></small> `;
|
|
4722
4812
|
}
|
|
4723
4813
|
};
|
|
4724
|
-
|
|
4814
|
+
__decorate22([
|
|
4725
4815
|
state6(),
|
|
4726
|
-
|
|
4816
|
+
consume14({ context: computedContext, subscribe: true })
|
|
4727
4817
|
], TestPrintContext.prototype, "computedContext", void 0);
|
|
4728
4818
|
|
|
4729
4819
|
// ../qti-test/dist/components/test-print-item-variables/test-print-item-variables.js
|
|
4730
4820
|
import { html as html20, css as css12, LitElement as LitElement21 } from "lit";
|
|
4731
|
-
import { consume as
|
|
4732
|
-
var
|
|
4821
|
+
import { consume as consume15 } from "@lit/context";
|
|
4822
|
+
var __decorate23 = function(decorators, target, key, desc) {
|
|
4733
4823
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4734
4824
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4735
4825
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4801,15 +4891,15 @@ var TestPrintVariables = class extends LitElement21 {
|
|
|
4801
4891
|
`;
|
|
4802
4892
|
}
|
|
4803
4893
|
};
|
|
4804
|
-
|
|
4805
|
-
|
|
4894
|
+
__decorate23([
|
|
4895
|
+
consume15({ context: computedContext, subscribe: true })
|
|
4806
4896
|
], TestPrintVariables.prototype, "computedContext", void 0);
|
|
4807
4897
|
|
|
4808
4898
|
// ../qti-test/dist/components/test-scoring-buttons/test-scoring-buttons.js
|
|
4809
4899
|
import { html as html21, LitElement as LitElement22, nothing as nothing3 } from "lit";
|
|
4810
|
-
import { consume as
|
|
4811
|
-
import { property as
|
|
4812
|
-
var
|
|
4900
|
+
import { consume as consume16 } from "@lit/context";
|
|
4901
|
+
import { property as property17 } from "lit/decorators.js";
|
|
4902
|
+
var __decorate24 = function(decorators, target, key, desc) {
|
|
4813
4903
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4814
4904
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4815
4905
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4865,21 +4955,21 @@ var TestScoringButtons = class extends LitElement22 {
|
|
|
4865
4955
|
});
|
|
4866
4956
|
}
|
|
4867
4957
|
};
|
|
4868
|
-
|
|
4869
|
-
|
|
4958
|
+
__decorate24([
|
|
4959
|
+
property17({ type: String, attribute: "view" })
|
|
4870
4960
|
], TestScoringButtons.prototype, "view", void 0);
|
|
4871
|
-
|
|
4872
|
-
|
|
4961
|
+
__decorate24([
|
|
4962
|
+
property17({ type: Boolean })
|
|
4873
4963
|
], TestScoringButtons.prototype, "disabled", void 0);
|
|
4874
|
-
|
|
4875
|
-
|
|
4964
|
+
__decorate24([
|
|
4965
|
+
consume16({ context: computedContext, subscribe: true })
|
|
4876
4966
|
], TestScoringButtons.prototype, "computedContext", void 0);
|
|
4877
4967
|
|
|
4878
4968
|
// ../qti-test/dist/components/test-scoring-feedback/test-scoring-feedback.js
|
|
4879
|
-
import { consume as
|
|
4969
|
+
import { consume as consume17 } from "@lit/context";
|
|
4880
4970
|
import { html as html22, LitElement as LitElement23 } from "lit";
|
|
4881
|
-
import { property as
|
|
4882
|
-
var
|
|
4971
|
+
import { property as property18 } from "lit/decorators.js";
|
|
4972
|
+
var __decorate25 = function(decorators, target, key, desc) {
|
|
4883
4973
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4884
4974
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4885
4975
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4918,17 +5008,17 @@ var TestScoringFeedback = class extends LitElement23 {
|
|
|
4918
5008
|
return html22`<div>${feedbackText()}</div>`;
|
|
4919
5009
|
}
|
|
4920
5010
|
};
|
|
4921
|
-
|
|
4922
|
-
|
|
5011
|
+
__decorate25([
|
|
5012
|
+
consume17({ context: computedContext, subscribe: true })
|
|
4923
5013
|
], TestScoringFeedback.prototype, "computedContext", void 0);
|
|
4924
|
-
|
|
4925
|
-
|
|
5014
|
+
__decorate25([
|
|
5015
|
+
property18({ type: String, attribute: "view" })
|
|
4926
5016
|
], TestScoringFeedback.prototype, "view", void 0);
|
|
4927
5017
|
|
|
4928
5018
|
// ../qti-test/dist/components/test-section-buttons-stamp/test-section-buttons-stamp.js
|
|
4929
5019
|
import { html as html23, LitElement as LitElement24 } from "lit";
|
|
4930
|
-
import { consume as
|
|
4931
|
-
var
|
|
5020
|
+
import { consume as consume18 } from "@lit/context";
|
|
5021
|
+
var __decorate26 = function(decorators, target, key, desc) {
|
|
4932
5022
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4933
5023
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4934
5024
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4956,14 +5046,14 @@ var TestSectionButtonsStamp = class extends LitElement24 {
|
|
|
4956
5046
|
return html23` ${sections.map((item) => this.myTemplate({ item }))} `;
|
|
4957
5047
|
}
|
|
4958
5048
|
};
|
|
4959
|
-
|
|
4960
|
-
|
|
5049
|
+
__decorate26([
|
|
5050
|
+
consume18({ context: computedContext, subscribe: true })
|
|
4961
5051
|
], TestSectionButtonsStamp.prototype, "computedContext", void 0);
|
|
4962
5052
|
|
|
4963
5053
|
// ../qti-test/dist/components/test-section-link/test-section-link.js
|
|
4964
5054
|
import { css as css13, html as html24, LitElement as LitElement25 } from "lit";
|
|
4965
|
-
import { property as
|
|
4966
|
-
var
|
|
5055
|
+
import { property as property19 } from "lit/decorators.js";
|
|
5056
|
+
var __decorate27 = function(decorators, target, key, desc) {
|
|
4967
5057
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4968
5058
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4969
5059
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4998,15 +5088,15 @@ var TestSectionLink = class extends LitElement25 {
|
|
|
4998
5088
|
return html24` <slot></slot> `;
|
|
4999
5089
|
}
|
|
5000
5090
|
};
|
|
5001
|
-
|
|
5002
|
-
|
|
5091
|
+
__decorate27([
|
|
5092
|
+
property19({ type: String, attribute: "section-id" })
|
|
5003
5093
|
], TestSectionLink.prototype, "sectionId", void 0);
|
|
5004
5094
|
|
|
5005
5095
|
// ../qti-test/dist/components/test-stamp/test-stamp.js
|
|
5006
5096
|
import { html as html25, LitElement as LitElement26, nothing as nothing4 } from "lit";
|
|
5007
|
-
import { property as
|
|
5008
|
-
import { consume as
|
|
5009
|
-
var
|
|
5097
|
+
import { property as property20, state as state7 } from "lit/decorators.js";
|
|
5098
|
+
import { consume as consume19 } from "@lit/context";
|
|
5099
|
+
var __decorate28 = function(decorators, target, key, desc) {
|
|
5010
5100
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5011
5101
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5012
5102
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5079,22 +5169,22 @@ var TestStamp = class extends LitElement26 {
|
|
|
5079
5169
|
${this.myTemplate ? this.myTemplate(this.stampContext) : nothing4}`;
|
|
5080
5170
|
}
|
|
5081
5171
|
};
|
|
5082
|
-
|
|
5083
|
-
|
|
5172
|
+
__decorate28([
|
|
5173
|
+
property20({ type: Boolean, reflect: true })
|
|
5084
5174
|
], TestStamp.prototype, "debug", void 0);
|
|
5085
|
-
|
|
5175
|
+
__decorate28([
|
|
5086
5176
|
state7(),
|
|
5087
|
-
|
|
5177
|
+
consume19({ context: computedContext, subscribe: true })
|
|
5088
5178
|
], TestStamp.prototype, "computedContext", void 0);
|
|
5089
|
-
|
|
5179
|
+
__decorate28([
|
|
5090
5180
|
state7()
|
|
5091
5181
|
], TestStamp.prototype, "stampContext", void 0);
|
|
5092
5182
|
|
|
5093
5183
|
// ../qti-test/dist/components/test-view-toggle/test-view.js
|
|
5094
5184
|
import { html as html26, LitElement as LitElement27 } from "lit";
|
|
5095
|
-
import { property as
|
|
5096
|
-
import { consume as
|
|
5097
|
-
var
|
|
5185
|
+
import { property as property21, state as state8 } from "lit/decorators.js";
|
|
5186
|
+
import { consume as consume20 } from "@lit/context";
|
|
5187
|
+
var __decorate29 = function(decorators, target, key, desc) {
|
|
5098
5188
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5099
5189
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5100
5190
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5145,26 +5235,26 @@ var TestView = class extends LitElement27 {
|
|
|
5145
5235
|
}
|
|
5146
5236
|
};
|
|
5147
5237
|
_a = TestView;
|
|
5148
|
-
|
|
5149
|
-
|
|
5238
|
+
__decorate29([
|
|
5239
|
+
consume20({ context: sessionContext, subscribe: true })
|
|
5150
5240
|
], TestView.prototype, "sessionContext", void 0);
|
|
5151
|
-
|
|
5152
|
-
|
|
5241
|
+
__decorate29([
|
|
5242
|
+
property21({ type: String })
|
|
5153
5243
|
], TestView.prototype, "label", void 0);
|
|
5154
|
-
|
|
5155
|
-
|
|
5244
|
+
__decorate29([
|
|
5245
|
+
property21({ type: String, attribute: "view-options" })
|
|
5156
5246
|
], TestView.prototype, "viewOptions", void 0);
|
|
5157
|
-
|
|
5247
|
+
__decorate29([
|
|
5158
5248
|
watch("viewOptions", { waitUntilFirstUpdate: true })
|
|
5159
5249
|
], TestView.prototype, "_handleViewOptionsChange", void 0);
|
|
5160
|
-
|
|
5250
|
+
__decorate29([
|
|
5161
5251
|
state8()
|
|
5162
5252
|
], TestView.prototype, "_viewOptions", void 0);
|
|
5163
5253
|
|
|
5164
5254
|
// ../qti-test/dist/components/test-view-toggle/test-view-toggle.js
|
|
5165
|
-
import { consume as
|
|
5255
|
+
import { consume as consume21 } from "@lit/context";
|
|
5166
5256
|
import { html as html27, LitElement as LitElement28, nothing as nothing5 } from "lit";
|
|
5167
|
-
var
|
|
5257
|
+
var __decorate30 = function(decorators, target, key, desc) {
|
|
5168
5258
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5169
5259
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5170
5260
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5201,8 +5291,8 @@ var TestViewToggle = class extends LitElement28 {
|
|
|
5201
5291
|
}) : nothing5}`;
|
|
5202
5292
|
}
|
|
5203
5293
|
};
|
|
5204
|
-
|
|
5205
|
-
|
|
5294
|
+
__decorate30([
|
|
5295
|
+
consume21({ context: sessionContext, subscribe: true })
|
|
5206
5296
|
], TestViewToggle.prototype, "sessionContext", void 0);
|
|
5207
5297
|
|
|
5208
5298
|
// ../qti-test/dist/elements.js
|
|
@@ -5212,6 +5302,7 @@ var qtiTestElements = [
|
|
|
5212
5302
|
{ tag: "qti-assessment-test", ctor: QtiAssessmentTest },
|
|
5213
5303
|
{ tag: "qti-branch-rule", ctor: QtiBranchRule },
|
|
5214
5304
|
{ tag: "qti-item-session-control", ctor: QtiItemSessionControl },
|
|
5305
|
+
{ tag: "qti-number-presented", ctor: QtiNumberPresented },
|
|
5215
5306
|
{ tag: "qti-number-selected", ctor: QtiNumberSelected },
|
|
5216
5307
|
{ tag: "qti-outcome-processing", ctor: QtiOutcomeProcessing },
|
|
5217
5308
|
{ tag: "qti-pre-condition", ctor: QtiPreCondition },
|
|
@@ -5252,6 +5343,7 @@ export {
|
|
|
5252
5343
|
QtiAssessmentTest,
|
|
5253
5344
|
QtiBranchRule,
|
|
5254
5345
|
QtiItemSessionControl,
|
|
5346
|
+
QtiNumberPresented,
|
|
5255
5347
|
QtiNumberSelected,
|
|
5256
5348
|
QtiPreCondition,
|
|
5257
5349
|
QtiOutcomeProcessing,
|
|
@@ -5302,4 +5394,4 @@ export {
|
|
|
5302
5394
|
* Portions Copyright (c) 2013, the Dart project authors.
|
|
5303
5395
|
*)
|
|
5304
5396
|
*/
|
|
5305
|
-
//# sourceMappingURL=chunk-
|
|
5397
|
+
//# sourceMappingURL=chunk-SIE3E4FG.js.map
|