@webwriter/quiz 1.0.3 → 1.0.5
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/LICENSE +6 -6
- package/custom.d.ts +175 -175
- package/dist/widgets/webwriter-choice-item.js +58 -13
- package/dist/widgets/webwriter-choice.js +64 -19
- package/dist/widgets/webwriter-cloze-gap.js +59 -14
- package/dist/widgets/webwriter-cloze.js +56 -11
- package/dist/widgets/webwriter-mark.js +56 -11
- package/dist/widgets/webwriter-order-item.js +56 -11
- package/dist/widgets/webwriter-order.js +226 -1685
- package/dist/widgets/webwriter-pairing.js +59 -14
- package/dist/widgets/webwriter-quiz.js +67 -22
- package/dist/widgets/webwriter-speech.js +66 -20
- package/dist/widgets/webwriter-task.js +534 -308
- package/dist/widgets/webwriter-text.js +60 -14
- package/package.json +200 -200
- package/src/lib/combobox.ts +455 -455
- package/src/snippets/choice.html +7 -7
- package/src/snippets/cloze.html +3 -3
- package/src/snippets/mark.html +3 -3
- package/src/snippets/order.html +7 -7
- package/src/snippets/pairing.html +9 -9
- package/src/snippets/speech.html +3 -3
- package/src/snippets/text.html +3 -3
- package/src/snippets/wordsearch.html +3 -3
- package/src/widgets/webwriter-choice-item.ts +250 -250
- package/src/widgets/webwriter-choice.ts +309 -309
- package/src/widgets/webwriter-cloze-gap.ts +216 -216
- package/src/widgets/webwriter-cloze.ts +135 -135
- package/src/widgets/webwriter-mark.ts +434 -434
- package/src/widgets/webwriter-order-item.ts +436 -444
- package/src/widgets/webwriter-order.ts +279 -272
- package/src/widgets/webwriter-pairing-item.ts +155 -155
- package/src/widgets/webwriter-pairing.ts +187 -187
- package/src/widgets/webwriter-quiz.ts +280 -280
- package/src/widgets/webwriter-speech.ts +267 -267
- package/src/widgets/webwriter-task-explainer.ts +37 -37
- package/src/widgets/webwriter-task-hint.ts +16 -16
- package/src/widgets/webwriter-task-prompt.ts +17 -17
- package/src/widgets/webwriter-task.ts +543 -543
- package/src/widgets/webwriter-text.ts +130 -130
- package/tsconfig.json +6 -6
|
@@ -1687,7 +1687,7 @@ var icon_styles_default = i`
|
|
|
1687
1687
|
}
|
|
1688
1688
|
`;
|
|
1689
1689
|
|
|
1690
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1690
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
|
|
1691
1691
|
var __defProp3 = Object.defineProperty;
|
|
1692
1692
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
1693
1693
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -1714,8 +1714,26 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
1714
1714
|
__defProp3(target, key, result);
|
|
1715
1715
|
return result;
|
|
1716
1716
|
};
|
|
1717
|
+
var __accessCheck3 = (obj, member, msg) => {
|
|
1718
|
+
if (!member.has(obj))
|
|
1719
|
+
throw TypeError("Cannot " + msg);
|
|
1720
|
+
};
|
|
1721
|
+
var __privateGet3 = (obj, member, getter) => {
|
|
1722
|
+
__accessCheck3(obj, member, "read from private field");
|
|
1723
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
1724
|
+
};
|
|
1725
|
+
var __privateAdd3 = (obj, member, value) => {
|
|
1726
|
+
if (member.has(obj))
|
|
1727
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1728
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1729
|
+
};
|
|
1730
|
+
var __privateSet3 = (obj, member, value, setter) => {
|
|
1731
|
+
__accessCheck3(obj, member, "write to private field");
|
|
1732
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
1733
|
+
return value;
|
|
1734
|
+
};
|
|
1717
1735
|
|
|
1718
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1736
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
|
|
1719
1737
|
function watch(propertyName, options) {
|
|
1720
1738
|
const resolvedOptions = __spreadValues({
|
|
1721
1739
|
waitUntilFirstUpdate: false
|
|
@@ -1758,10 +1776,13 @@ var component_styles_default = i`
|
|
|
1758
1776
|
}
|
|
1759
1777
|
`;
|
|
1760
1778
|
|
|
1761
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1779
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
|
|
1780
|
+
var _hasRecordedInitialProperties;
|
|
1762
1781
|
var ShoelaceElement = class extends h3 {
|
|
1763
1782
|
constructor() {
|
|
1764
1783
|
super();
|
|
1784
|
+
__privateAdd3(this, _hasRecordedInitialProperties, false);
|
|
1785
|
+
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
1765
1786
|
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1766
1787
|
this.constructor.define(name, component);
|
|
1767
1788
|
});
|
|
@@ -1803,8 +1824,30 @@ var ShoelaceElement = class extends h3 {
|
|
|
1803
1824
|
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1804
1825
|
);
|
|
1805
1826
|
}
|
|
1827
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1828
|
+
if (!__privateGet3(this, _hasRecordedInitialProperties)) {
|
|
1829
|
+
this.constructor.elementProperties.forEach(
|
|
1830
|
+
(obj, prop) => {
|
|
1831
|
+
if (obj.reflect && this[prop] != null) {
|
|
1832
|
+
this.initialReflectedProperties.set(prop, this[prop]);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
);
|
|
1836
|
+
__privateSet3(this, _hasRecordedInitialProperties, true);
|
|
1837
|
+
}
|
|
1838
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1839
|
+
}
|
|
1840
|
+
willUpdate(changedProperties) {
|
|
1841
|
+
super.willUpdate(changedProperties);
|
|
1842
|
+
this.initialReflectedProperties.forEach((value, prop) => {
|
|
1843
|
+
if (changedProperties.has(prop) && this[prop] == null) {
|
|
1844
|
+
this[prop] = value;
|
|
1845
|
+
}
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1806
1848
|
};
|
|
1807
|
-
|
|
1849
|
+
_hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
|
|
1850
|
+
ShoelaceElement.version = "2.17.1";
|
|
1808
1851
|
ShoelaceElement.dependencies = {};
|
|
1809
1852
|
__decorateClass([
|
|
1810
1853
|
n5()
|
|
@@ -1817,7 +1860,7 @@ __decorateClass([
|
|
|
1817
1860
|
var { I: et3 } = si;
|
|
1818
1861
|
var nt = (o5, t5) => void 0 === t5 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t5;
|
|
1819
1862
|
|
|
1820
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1863
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
|
|
1821
1864
|
var CACHEABLE_ERROR = Symbol();
|
|
1822
1865
|
var RETRYABLE_ERROR = Symbol();
|
|
1823
1866
|
var parser;
|
|
@@ -1838,11 +1881,6 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
1838
1881
|
this.svg = ke`<svg part="svg">
|
|
1839
1882
|
<use part="use" href="${url}"></use>
|
|
1840
1883
|
</svg>`;
|
|
1841
|
-
await this.updateComplete;
|
|
1842
|
-
const svg = this.shadowRoot.querySelector("[part='svg']");
|
|
1843
|
-
if (typeof library2.mutator === "function") {
|
|
1844
|
-
library2.mutator(svg);
|
|
1845
|
-
}
|
|
1846
1884
|
return this.svg;
|
|
1847
1885
|
}
|
|
1848
1886
|
try {
|
|
@@ -1932,6 +1970,13 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
1932
1970
|
}
|
|
1933
1971
|
if (nt(svg)) {
|
|
1934
1972
|
this.svg = svg;
|
|
1973
|
+
if (library2) {
|
|
1974
|
+
await this.updateComplete;
|
|
1975
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
1976
|
+
if (typeof library2.mutator === "function" && shadowSVG) {
|
|
1977
|
+
library2.mutator(shadowSVG);
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1935
1980
|
return;
|
|
1936
1981
|
}
|
|
1937
1982
|
switch (svg) {
|
|
@@ -2030,7 +2075,7 @@ var Se3 = Ee(Se);
|
|
|
2030
2075
|
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
2031
2076
|
var to = (t5) => t5 ?? D;
|
|
2032
2077
|
|
|
2033
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2078
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
|
|
2034
2079
|
var SlIconButton = class extends ShoelaceElement {
|
|
2035
2080
|
constructor() {
|
|
2036
2081
|
super(...arguments);
|