smoothly 0.3.49 → 0.3.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/smoothly-accordion_53.cjs.entry.js +7 -2
- package/dist/collection/components/icon/index.js +7 -2
- package/dist/custom-elements/index.js +7 -2
- package/dist/esm/smoothly-accordion_53.entry.js +7 -2
- package/dist/smoothly/{p-fcaa551d.entry.js → p-f160727f.entry.js} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/icon/index.d.ts +1 -1
- package/package.json +4 -1
|
@@ -20879,7 +20879,12 @@ const SmoothlyIcon = class {
|
|
|
20879
20879
|
}
|
|
20880
20880
|
async loadDocument() {
|
|
20881
20881
|
if (this.name)
|
|
20882
|
-
|
|
20882
|
+
try {
|
|
20883
|
+
this.document = await Listenable.Icon.load(this.name);
|
|
20884
|
+
}
|
|
20885
|
+
catch (error) {
|
|
20886
|
+
console.log(error);
|
|
20887
|
+
}
|
|
20883
20888
|
}
|
|
20884
20889
|
async componentWillLoad() {
|
|
20885
20890
|
await this.loadDocument();
|
|
@@ -20891,7 +20896,7 @@ const SmoothlyIcon = class {
|
|
|
20891
20896
|
.replace(` width="512" height="512"`, "")
|
|
20892
20897
|
.replace(/(<title>)[\w\d\s-]*(<\/title>)/, `<title>${this.toolTip || ""}</title>`)
|
|
20893
20898
|
.replace(/stroke:#000;/gi, "")
|
|
20894
|
-
: undefined
|
|
20899
|
+
: `<img src="undefined.jpg"/>`,
|
|
20895
20900
|
};
|
|
20896
20901
|
}
|
|
20897
20902
|
__stencil_render() {
|
|
@@ -10,7 +10,12 @@ export class SmoothlyIcon {
|
|
|
10
10
|
}
|
|
11
11
|
async loadDocument() {
|
|
12
12
|
if (this.name)
|
|
13
|
-
|
|
13
|
+
try {
|
|
14
|
+
this.document = await Icon.load(this.name);
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
console.log(error);
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
async componentWillLoad() {
|
|
16
21
|
await this.loadDocument();
|
|
@@ -22,7 +27,7 @@ export class SmoothlyIcon {
|
|
|
22
27
|
.replace(` width="512" height="512"`, "")
|
|
23
28
|
.replace(/(<title>)[\w\d\s-]*(<\/title>)/, `<title>${this.toolTip || ""}</title>`)
|
|
24
29
|
.replace(/stroke:#000;/gi, "")
|
|
25
|
-
: undefined
|
|
30
|
+
: `<img src="undefined.jpg"/>`,
|
|
26
31
|
};
|
|
27
32
|
}
|
|
28
33
|
render() {
|
|
@@ -46649,7 +46649,12 @@ const SmoothlyIcon$1 = class extends HTMLElement {
|
|
|
46649
46649
|
}
|
|
46650
46650
|
async loadDocument() {
|
|
46651
46651
|
if (this.name)
|
|
46652
|
-
|
|
46652
|
+
try {
|
|
46653
|
+
this.document = await Icon.load(this.name);
|
|
46654
|
+
}
|
|
46655
|
+
catch (error) {
|
|
46656
|
+
console.log(error);
|
|
46657
|
+
}
|
|
46653
46658
|
}
|
|
46654
46659
|
async componentWillLoad() {
|
|
46655
46660
|
await this.loadDocument();
|
|
@@ -46661,7 +46666,7 @@ const SmoothlyIcon$1 = class extends HTMLElement {
|
|
|
46661
46666
|
.replace(` width="512" height="512"`, "")
|
|
46662
46667
|
.replace(/(<title>)[\w\d\s-]*(<\/title>)/, `<title>${this.toolTip || ""}</title>`)
|
|
46663
46668
|
.replace(/stroke:#000;/gi, "")
|
|
46664
|
-
: undefined
|
|
46669
|
+
: `<img src="undefined.jpg"/>`,
|
|
46665
46670
|
};
|
|
46666
46671
|
}
|
|
46667
46672
|
__stencil_render() {
|
|
@@ -20875,7 +20875,12 @@ const SmoothlyIcon = class {
|
|
|
20875
20875
|
}
|
|
20876
20876
|
async loadDocument() {
|
|
20877
20877
|
if (this.name)
|
|
20878
|
-
|
|
20878
|
+
try {
|
|
20879
|
+
this.document = await Icon.load(this.name);
|
|
20880
|
+
}
|
|
20881
|
+
catch (error) {
|
|
20882
|
+
console.log(error);
|
|
20883
|
+
}
|
|
20879
20884
|
}
|
|
20880
20885
|
async componentWillLoad() {
|
|
20881
20886
|
await this.loadDocument();
|
|
@@ -20887,7 +20892,7 @@ const SmoothlyIcon = class {
|
|
|
20887
20892
|
.replace(` width="512" height="512"`, "")
|
|
20888
20893
|
.replace(/(<title>)[\w\d\s-]*(<\/title>)/, `<title>${this.toolTip || ""}</title>`)
|
|
20889
20894
|
.replace(/stroke:#000;/gi, "")
|
|
20890
|
-
: undefined
|
|
20895
|
+
: `<img src="undefined.jpg"/>`,
|
|
20891
20896
|
};
|
|
20892
20897
|
}
|
|
20893
20898
|
__stencil_render() {
|