@webwriter/quiz 1.0.3 → 1.0.4
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 +64 -19
- 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 +444 -444
- package/src/widgets/webwriter-order.ts +272 -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);
|
|
@@ -1662,7 +1662,7 @@ var component_styles_default = i`
|
|
|
1662
1662
|
}
|
|
1663
1663
|
`;
|
|
1664
1664
|
|
|
1665
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1665
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
|
|
1666
1666
|
var __defProp3 = Object.defineProperty;
|
|
1667
1667
|
var __defProps = Object.defineProperties;
|
|
1668
1668
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
@@ -1692,11 +1692,32 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
1692
1692
|
__defProp3(target, key, result);
|
|
1693
1693
|
return result;
|
|
1694
1694
|
};
|
|
1695
|
+
var __accessCheck3 = (obj, member, msg) => {
|
|
1696
|
+
if (!member.has(obj))
|
|
1697
|
+
throw TypeError("Cannot " + msg);
|
|
1698
|
+
};
|
|
1699
|
+
var __privateGet3 = (obj, member, getter) => {
|
|
1700
|
+
__accessCheck3(obj, member, "read from private field");
|
|
1701
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
1702
|
+
};
|
|
1703
|
+
var __privateAdd3 = (obj, member, value) => {
|
|
1704
|
+
if (member.has(obj))
|
|
1705
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1706
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1707
|
+
};
|
|
1708
|
+
var __privateSet3 = (obj, member, value, setter) => {
|
|
1709
|
+
__accessCheck3(obj, member, "write to private field");
|
|
1710
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
1711
|
+
return value;
|
|
1712
|
+
};
|
|
1695
1713
|
|
|
1696
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1714
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
|
|
1715
|
+
var _hasRecordedInitialProperties;
|
|
1697
1716
|
var ShoelaceElement = class extends h3 {
|
|
1698
1717
|
constructor() {
|
|
1699
1718
|
super();
|
|
1719
|
+
__privateAdd3(this, _hasRecordedInitialProperties, false);
|
|
1720
|
+
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
1700
1721
|
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1701
1722
|
this.constructor.define(name, component);
|
|
1702
1723
|
});
|
|
@@ -1738,8 +1759,30 @@ var ShoelaceElement = class extends h3 {
|
|
|
1738
1759
|
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1739
1760
|
);
|
|
1740
1761
|
}
|
|
1762
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1763
|
+
if (!__privateGet3(this, _hasRecordedInitialProperties)) {
|
|
1764
|
+
this.constructor.elementProperties.forEach(
|
|
1765
|
+
(obj, prop) => {
|
|
1766
|
+
if (obj.reflect && this[prop] != null) {
|
|
1767
|
+
this.initialReflectedProperties.set(prop, this[prop]);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
);
|
|
1771
|
+
__privateSet3(this, _hasRecordedInitialProperties, true);
|
|
1772
|
+
}
|
|
1773
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1774
|
+
}
|
|
1775
|
+
willUpdate(changedProperties) {
|
|
1776
|
+
super.willUpdate(changedProperties);
|
|
1777
|
+
this.initialReflectedProperties.forEach((value, prop) => {
|
|
1778
|
+
if (changedProperties.has(prop) && this[prop] == null) {
|
|
1779
|
+
this[prop] = value;
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1741
1783
|
};
|
|
1742
|
-
|
|
1784
|
+
_hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
|
|
1785
|
+
ShoelaceElement.version = "2.17.1";
|
|
1743
1786
|
ShoelaceElement.dependencies = {};
|
|
1744
1787
|
__decorateClass([
|
|
1745
1788
|
n5()
|
|
@@ -1748,7 +1791,7 @@ __decorateClass([
|
|
|
1748
1791
|
n5()
|
|
1749
1792
|
], ShoelaceElement.prototype, "lang", 2);
|
|
1750
1793
|
|
|
1751
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1794
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R2T2D3TO.js
|
|
1752
1795
|
var SlSpinner = class extends ShoelaceElement {
|
|
1753
1796
|
constructor() {
|
|
1754
1797
|
super(...arguments);
|
|
@@ -1765,7 +1808,7 @@ var SlSpinner = class extends ShoelaceElement {
|
|
|
1765
1808
|
};
|
|
1766
1809
|
SlSpinner.styles = [component_styles_default, spinner_styles_default];
|
|
1767
1810
|
|
|
1768
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1811
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
|
|
1769
1812
|
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
1770
1813
|
var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
1771
1814
|
var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
@@ -2882,7 +2925,7 @@ var icon_styles_default = i`
|
|
|
2882
2925
|
}
|
|
2883
2926
|
`;
|
|
2884
2927
|
|
|
2885
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2928
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
|
|
2886
2929
|
function watch(propertyName, options) {
|
|
2887
2930
|
const resolvedOptions = __spreadValues({
|
|
2888
2931
|
waitUntilFirstUpdate: false
|
|
@@ -2915,7 +2958,7 @@ var rt = (o6) => void 0 === o6.strings;
|
|
|
2915
2958
|
var ht = {};
|
|
2916
2959
|
var dt = (o6, t5 = ht) => o6._$AH = t5;
|
|
2917
2960
|
|
|
2918
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2961
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
|
|
2919
2962
|
var CACHEABLE_ERROR = Symbol();
|
|
2920
2963
|
var RETRYABLE_ERROR = Symbol();
|
|
2921
2964
|
var parser;
|
|
@@ -2936,11 +2979,6 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
2936
2979
|
this.svg = ke`<svg part="svg">
|
|
2937
2980
|
<use part="use" href="${url}"></use>
|
|
2938
2981
|
</svg>`;
|
|
2939
|
-
await this.updateComplete;
|
|
2940
|
-
const svg = this.shadowRoot.querySelector("[part='svg']");
|
|
2941
|
-
if (typeof library2.mutator === "function") {
|
|
2942
|
-
library2.mutator(svg);
|
|
2943
|
-
}
|
|
2944
2982
|
return this.svg;
|
|
2945
2983
|
}
|
|
2946
2984
|
try {
|
|
@@ -3030,6 +3068,13 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
3030
3068
|
}
|
|
3031
3069
|
if (nt(svg)) {
|
|
3032
3070
|
this.svg = svg;
|
|
3071
|
+
if (library2) {
|
|
3072
|
+
await this.updateComplete;
|
|
3073
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
3074
|
+
if (typeof library2.mutator === "function" && shadowSVG) {
|
|
3075
|
+
library2.mutator(shadowSVG);
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3033
3078
|
return;
|
|
3034
3079
|
}
|
|
3035
3080
|
switch (svg) {
|
|
@@ -3148,7 +3193,7 @@ var Se3 = Ee(Se);
|
|
|
3148
3193
|
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
3149
3194
|
var to = (t5) => t5 ?? D;
|
|
3150
3195
|
|
|
3151
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3196
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OEHLR4TU.js
|
|
3152
3197
|
var SlButton = class extends ShoelaceElement {
|
|
3153
3198
|
constructor() {
|
|
3154
3199
|
super(...arguments);
|
|
@@ -3297,7 +3342,7 @@ var SlButton = class extends ShoelaceElement {
|
|
|
3297
3342
|
title=${this.title}
|
|
3298
3343
|
name=${to(isLink ? void 0 : this.name)}
|
|
3299
3344
|
value=${to(isLink ? void 0 : this.value)}
|
|
3300
|
-
href=${to(isLink ? this.href : void 0)}
|
|
3345
|
+
href=${to(isLink && !this.disabled ? this.href : void 0)}
|
|
3301
3346
|
target=${to(isLink ? this.target : void 0)}
|
|
3302
3347
|
download=${to(isLink ? this.download : void 0)}
|
|
3303
3348
|
rel=${to(isLink ? this.rel : void 0)}
|
|
@@ -3520,7 +3565,7 @@ var radio_styles_default = i`
|
|
|
3520
3565
|
}
|
|
3521
3566
|
`;
|
|
3522
3567
|
|
|
3523
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3568
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.N5H7JIU3.js
|
|
3524
3569
|
var SlRadio = class extends ShoelaceElement {
|
|
3525
3570
|
constructor() {
|
|
3526
3571
|
super();
|
|
@@ -3829,7 +3874,7 @@ var Ft = e6(class extends i3 {
|
|
|
3829
3874
|
}
|
|
3830
3875
|
});
|
|
3831
3876
|
|
|
3832
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3877
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CX3DZWHK.js
|
|
3833
3878
|
var SlCheckbox = class extends ShoelaceElement {
|
|
3834
3879
|
constructor() {
|
|
3835
3880
|
super(...arguments);
|
|
@@ -4076,7 +4121,7 @@ var radio_button_styles_default = i`
|
|
|
4076
4121
|
}
|
|
4077
4122
|
`;
|
|
4078
4123
|
|
|
4079
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
4124
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZHOD7CUD.js
|
|
4080
4125
|
var SlRadioButton = class extends ShoelaceElement {
|
|
4081
4126
|
constructor() {
|
|
4082
4127
|
super(...arguments);
|
|
@@ -4231,7 +4276,7 @@ var button_group_styles_default = i`
|
|
|
4231
4276
|
}
|
|
4232
4277
|
`;
|
|
4233
4278
|
|
|
4234
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
4279
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RBPP5PLA.js
|
|
4235
4280
|
var SlButtonGroup = class extends ShoelaceElement {
|
|
4236
4281
|
constructor() {
|
|
4237
4282
|
super(...arguments);
|
|
@@ -4304,7 +4349,7 @@ function findButton(el) {
|
|
|
4304
4349
|
return (_a4 = el.closest(selector)) != null ? _a4 : el.querySelector(selector);
|
|
4305
4350
|
}
|
|
4306
4351
|
|
|
4307
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
4352
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XISPCK6C.js
|
|
4308
4353
|
var SlRadioGroup = class extends ShoelaceElement {
|
|
4309
4354
|
constructor() {
|
|
4310
4355
|
super(...arguments);
|
|
@@ -1641,7 +1641,7 @@ var component_styles_default = i`
|
|
|
1641
1641
|
}
|
|
1642
1642
|
`;
|
|
1643
1643
|
|
|
1644
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1644
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
|
|
1645
1645
|
var __defProp3 = Object.defineProperty;
|
|
1646
1646
|
var __defProps = Object.defineProperties;
|
|
1647
1647
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
@@ -1671,11 +1671,32 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
1671
1671
|
__defProp3(target, key, result);
|
|
1672
1672
|
return result;
|
|
1673
1673
|
};
|
|
1674
|
+
var __accessCheck3 = (obj, member, msg) => {
|
|
1675
|
+
if (!member.has(obj))
|
|
1676
|
+
throw TypeError("Cannot " + msg);
|
|
1677
|
+
};
|
|
1678
|
+
var __privateGet3 = (obj, member, getter) => {
|
|
1679
|
+
__accessCheck3(obj, member, "read from private field");
|
|
1680
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
1681
|
+
};
|
|
1682
|
+
var __privateAdd3 = (obj, member, value) => {
|
|
1683
|
+
if (member.has(obj))
|
|
1684
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1685
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1686
|
+
};
|
|
1687
|
+
var __privateSet3 = (obj, member, value, setter) => {
|
|
1688
|
+
__accessCheck3(obj, member, "write to private field");
|
|
1689
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
1690
|
+
return value;
|
|
1691
|
+
};
|
|
1674
1692
|
|
|
1675
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1693
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
|
|
1694
|
+
var _hasRecordedInitialProperties;
|
|
1676
1695
|
var ShoelaceElement = class extends h3 {
|
|
1677
1696
|
constructor() {
|
|
1678
1697
|
super();
|
|
1698
|
+
__privateAdd3(this, _hasRecordedInitialProperties, false);
|
|
1699
|
+
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
1679
1700
|
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1680
1701
|
this.constructor.define(name, component);
|
|
1681
1702
|
});
|
|
@@ -1717,8 +1738,30 @@ var ShoelaceElement = class extends h3 {
|
|
|
1717
1738
|
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1718
1739
|
);
|
|
1719
1740
|
}
|
|
1741
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1742
|
+
if (!__privateGet3(this, _hasRecordedInitialProperties)) {
|
|
1743
|
+
this.constructor.elementProperties.forEach(
|
|
1744
|
+
(obj, prop) => {
|
|
1745
|
+
if (obj.reflect && this[prop] != null) {
|
|
1746
|
+
this.initialReflectedProperties.set(prop, this[prop]);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
);
|
|
1750
|
+
__privateSet3(this, _hasRecordedInitialProperties, true);
|
|
1751
|
+
}
|
|
1752
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1753
|
+
}
|
|
1754
|
+
willUpdate(changedProperties) {
|
|
1755
|
+
super.willUpdate(changedProperties);
|
|
1756
|
+
this.initialReflectedProperties.forEach((value, prop) => {
|
|
1757
|
+
if (changedProperties.has(prop) && this[prop] == null) {
|
|
1758
|
+
this[prop] = value;
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1720
1762
|
};
|
|
1721
|
-
|
|
1763
|
+
_hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
|
|
1764
|
+
ShoelaceElement.version = "2.17.1";
|
|
1722
1765
|
ShoelaceElement.dependencies = {};
|
|
1723
1766
|
__decorateClass([
|
|
1724
1767
|
n5()
|
|
@@ -1727,7 +1770,7 @@ __decorateClass([
|
|
|
1727
1770
|
n5()
|
|
1728
1771
|
], ShoelaceElement.prototype, "lang", 2);
|
|
1729
1772
|
|
|
1730
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1773
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R2T2D3TO.js
|
|
1731
1774
|
var SlSpinner = class extends ShoelaceElement {
|
|
1732
1775
|
constructor() {
|
|
1733
1776
|
super(...arguments);
|
|
@@ -1744,7 +1787,7 @@ var SlSpinner = class extends ShoelaceElement {
|
|
|
1744
1787
|
};
|
|
1745
1788
|
SlSpinner.styles = [component_styles_default, spinner_styles_default];
|
|
1746
1789
|
|
|
1747
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1790
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
|
|
1748
1791
|
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
1749
1792
|
var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
1750
1793
|
var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
@@ -2861,7 +2904,7 @@ var icon_styles_default = i`
|
|
|
2861
2904
|
}
|
|
2862
2905
|
`;
|
|
2863
2906
|
|
|
2864
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2907
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
|
|
2865
2908
|
function watch(propertyName, options) {
|
|
2866
2909
|
const resolvedOptions = __spreadValues({
|
|
2867
2910
|
waitUntilFirstUpdate: false
|
|
@@ -2891,7 +2934,7 @@ function watch(propertyName, options) {
|
|
|
2891
2934
|
var { I: et3 } = si;
|
|
2892
2935
|
var nt = (o5, t5) => void 0 === t5 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t5;
|
|
2893
2936
|
|
|
2894
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2937
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
|
|
2895
2938
|
var CACHEABLE_ERROR = Symbol();
|
|
2896
2939
|
var RETRYABLE_ERROR = Symbol();
|
|
2897
2940
|
var parser;
|
|
@@ -2912,11 +2955,6 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
2912
2955
|
this.svg = ke`<svg part="svg">
|
|
2913
2956
|
<use part="use" href="${url}"></use>
|
|
2914
2957
|
</svg>`;
|
|
2915
|
-
await this.updateComplete;
|
|
2916
|
-
const svg = this.shadowRoot.querySelector("[part='svg']");
|
|
2917
|
-
if (typeof library2.mutator === "function") {
|
|
2918
|
-
library2.mutator(svg);
|
|
2919
|
-
}
|
|
2920
2958
|
return this.svg;
|
|
2921
2959
|
}
|
|
2922
2960
|
try {
|
|
@@ -3006,6 +3044,13 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
3006
3044
|
}
|
|
3007
3045
|
if (nt(svg)) {
|
|
3008
3046
|
this.svg = svg;
|
|
3047
|
+
if (library2) {
|
|
3048
|
+
await this.updateComplete;
|
|
3049
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
3050
|
+
if (typeof library2.mutator === "function" && shadowSVG) {
|
|
3051
|
+
library2.mutator(shadowSVG);
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3009
3054
|
return;
|
|
3010
3055
|
}
|
|
3011
3056
|
switch (svg) {
|
|
@@ -3124,7 +3169,7 @@ var Se3 = Ee(Se);
|
|
|
3124
3169
|
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
3125
3170
|
var to = (t5) => t5 ?? D;
|
|
3126
3171
|
|
|
3127
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3172
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OEHLR4TU.js
|
|
3128
3173
|
var SlButton = class extends ShoelaceElement {
|
|
3129
3174
|
constructor() {
|
|
3130
3175
|
super(...arguments);
|
|
@@ -3273,7 +3318,7 @@ var SlButton = class extends ShoelaceElement {
|
|
|
3273
3318
|
title=${this.title}
|
|
3274
3319
|
name=${to(isLink ? void 0 : this.name)}
|
|
3275
3320
|
value=${to(isLink ? void 0 : this.value)}
|
|
3276
|
-
href=${to(isLink ? this.href : void 0)}
|
|
3321
|
+
href=${to(isLink && !this.disabled ? this.href : void 0)}
|
|
3277
3322
|
target=${to(isLink ? this.target : void 0)}
|
|
3278
3323
|
download=${to(isLink ? this.download : void 0)}
|
|
3279
3324
|
rel=${to(isLink ? this.rel : void 0)}
|