@everymatrix/player-profile-info-cu 1.69.0 → 1.77.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/components/{PlayerProfileInfoCu-Coej3PNd.js → PlayerProfileInfoCu-Bi36b5UG.js} +2194 -1630
- package/components/{PlayerProfileInfoCu-BMMP9Dny.js → PlayerProfileInfoCu-DfclhNQ2.js} +2235 -1671
- package/components/PlayerProfileInfoCu-DqX5ktKj.cjs +21 -0
- package/es2015/player-profile-info-cu.cjs +1 -1
- package/es2015/player-profile-info-cu.js +1 -1
- package/esnext/player-profile-info-cu.js +1 -1
- package/package.json +3 -2
- package/stencil/index-b2193545-BeKKnKhR.js +519 -0
- package/stencil/index-b2193545-HC0t7mHa.js +503 -0
- package/stencil/index-b2193545-YW9b062G.cjs +1 -0
- package/stencil/ui-skeleton-BL4789dS.cjs +1 -0
- package/stencil/ui-skeleton-Ca5rz3Hv.js +29 -0
- package/stencil/{ui-skeleton-161699c3-B-ERXqP4.js → ui-skeleton-ae35c6f2-BDBUiN3S.js} +12 -29
- package/stencil/{ui-skeleton-161699c3-D-YZ_9qb.js → ui-skeleton-ae35c6f2-Cn0ZM_hs.js} +12 -29
- package/stencil/ui-skeleton-ae35c6f2-xLf3HyeB.cjs +55 -0
- package/stencil/ui-skeleton-hI4GeaLk.js +11 -0
- package/components/PlayerProfileInfoCu-BlUl55wx.cjs +0 -16
- package/stencil/index-b2193545-B88IRP_c.cjs +0 -1
- package/stencil/index-b2193545-C38bdAS5.js +0 -519
- package/stencil/index-b2193545-ChvjzzO4.js +0 -503
- package/stencil/ui-skeleton-161699c3-D2nKbw7j.cjs +0 -73
- package/stencil/ui-skeleton-BsggWRv8.cjs +0 -1
- package/stencil/ui-skeleton-CLiq9IiY.js +0 -29
- package/stencil/ui-skeleton-DIhls8et.js +0 -11
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
const
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-BeKKnKhR.js";
|
|
2
|
+
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
3
3
|
constructor(e) {
|
|
4
|
-
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
5
|
width: this.handleStylingProps(this.width),
|
|
6
6
|
height: this.handleStylingProps(this.height),
|
|
7
7
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
8
|
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
9
|
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
10
|
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
11
|
-
marginRight: this.handleStylingProps(this.marginRight)
|
|
12
|
-
|
|
11
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
12
|
+
size: this.handleStylingProps(this.size)
|
|
13
|
+
}, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
|
|
13
14
|
}
|
|
14
|
-
handleStructureChange(e,
|
|
15
|
-
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
16
17
|
}
|
|
17
18
|
handleStylingProps(e) {
|
|
18
19
|
switch (typeof e) {
|
|
@@ -54,7 +55,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
54
55
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
55
56
|
}
|
|
56
57
|
renderText() {
|
|
57
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e,
|
|
58
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
58
59
|
}
|
|
59
60
|
renderRectangle() {
|
|
60
61
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
@@ -75,9 +76,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
75
76
|
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
76
77
|
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
77
78
|
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
78
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
79
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
80
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
81
79
|
}
|
|
82
80
|
`;
|
|
83
81
|
break;
|
|
@@ -91,9 +89,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
91
89
|
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
92
90
|
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
93
91
|
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
94
|
-
--emw-skeleton-image-background: ${this.color};
|
|
95
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
96
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
97
92
|
}
|
|
98
93
|
`;
|
|
99
94
|
break;
|
|
@@ -107,9 +102,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
107
102
|
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
108
103
|
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
109
104
|
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
110
|
-
--emw-skeleton-title-background: ${this.color};
|
|
111
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
112
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
113
105
|
}
|
|
114
106
|
`;
|
|
115
107
|
break;
|
|
@@ -123,9 +115,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
123
115
|
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
124
116
|
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
125
117
|
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
126
|
-
--emw-skeleton-text-background: ${this.color};
|
|
127
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
128
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
129
118
|
}
|
|
130
119
|
`;
|
|
131
120
|
break;
|
|
@@ -139,26 +128,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
139
128
|
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
140
129
|
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
141
130
|
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
142
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
143
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
144
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
145
131
|
}
|
|
146
132
|
`;
|
|
147
133
|
break;
|
|
148
134
|
case "circle":
|
|
149
135
|
e = `
|
|
150
136
|
:host {
|
|
151
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
152
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
153
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
154
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
155
138
|
}
|
|
156
139
|
`;
|
|
157
140
|
break;
|
|
158
141
|
default:
|
|
159
142
|
e = "";
|
|
160
143
|
}
|
|
161
|
-
return t(
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
162
145
|
}
|
|
163
146
|
static get watchers() {
|
|
164
147
|
return {
|
|
@@ -166,7 +149,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
166
149
|
};
|
|
167
150
|
}
|
|
168
151
|
};
|
|
169
|
-
l.style =
|
|
152
|
+
l.style = a;
|
|
170
153
|
export {
|
|
171
154
|
l as U
|
|
172
155
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
const
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-HC0t7mHa.js";
|
|
2
|
+
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
3
3
|
constructor(e) {
|
|
4
|
-
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
5
|
width: this.handleStylingProps(this.width),
|
|
6
6
|
height: this.handleStylingProps(this.height),
|
|
7
7
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
8
|
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
9
|
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
10
|
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
11
|
-
marginRight: this.handleStylingProps(this.marginRight)
|
|
12
|
-
|
|
11
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
12
|
+
size: this.handleStylingProps(this.size)
|
|
13
|
+
}, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
|
|
13
14
|
}
|
|
14
|
-
handleStructureChange(e,
|
|
15
|
-
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
16
17
|
}
|
|
17
18
|
handleStylingProps(e) {
|
|
18
19
|
switch (typeof e) {
|
|
@@ -54,7 +55,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
54
55
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
55
56
|
}
|
|
56
57
|
renderText() {
|
|
57
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e,
|
|
58
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
58
59
|
}
|
|
59
60
|
renderRectangle() {
|
|
60
61
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
@@ -75,9 +76,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
75
76
|
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
76
77
|
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
77
78
|
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
78
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
79
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
80
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
81
79
|
}
|
|
82
80
|
`;
|
|
83
81
|
break;
|
|
@@ -91,9 +89,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
91
89
|
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
92
90
|
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
93
91
|
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
94
|
-
--emw-skeleton-image-background: ${this.color};
|
|
95
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
96
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
97
92
|
}
|
|
98
93
|
`;
|
|
99
94
|
break;
|
|
@@ -107,9 +102,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
107
102
|
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
108
103
|
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
109
104
|
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
110
|
-
--emw-skeleton-title-background: ${this.color};
|
|
111
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
112
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
113
105
|
}
|
|
114
106
|
`;
|
|
115
107
|
break;
|
|
@@ -123,9 +115,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
123
115
|
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
124
116
|
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
125
117
|
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
126
|
-
--emw-skeleton-text-background: ${this.color};
|
|
127
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
128
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
129
118
|
}
|
|
130
119
|
`;
|
|
131
120
|
break;
|
|
@@ -139,26 +128,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
139
128
|
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
140
129
|
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
141
130
|
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
142
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
143
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
144
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
145
131
|
}
|
|
146
132
|
`;
|
|
147
133
|
break;
|
|
148
134
|
case "circle":
|
|
149
135
|
e = `
|
|
150
136
|
:host {
|
|
151
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
152
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
153
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
154
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
155
138
|
}
|
|
156
139
|
`;
|
|
157
140
|
break;
|
|
158
141
|
default:
|
|
159
142
|
e = "";
|
|
160
143
|
}
|
|
161
|
-
return t(
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
162
145
|
}
|
|
163
146
|
static get watchers() {
|
|
164
147
|
return {
|
|
@@ -166,7 +149,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
166
149
|
};
|
|
167
150
|
}
|
|
168
151
|
};
|
|
169
|
-
l.style =
|
|
152
|
+
l.style = a;
|
|
170
153
|
export {
|
|
171
154
|
l as U
|
|
172
155
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";const t=require("./index-b2193545-YW9b062G.cjs"),r=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",s=r,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
2
|
+
:host {
|
|
3
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
4
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
5
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
6
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
7
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
8
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
9
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
10
|
+
}
|
|
11
|
+
`;break;case"image":e=`
|
|
12
|
+
:host {
|
|
13
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
14
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
15
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
16
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
17
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
18
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
19
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
20
|
+
}
|
|
21
|
+
`;break;case"title":e=`
|
|
22
|
+
:host {
|
|
23
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
24
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
25
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
26
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
27
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
28
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
29
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
30
|
+
}
|
|
31
|
+
`;break;case"text":e=`
|
|
32
|
+
:host {
|
|
33
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
34
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
35
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
36
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
37
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
38
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
39
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
40
|
+
}
|
|
41
|
+
`;break;case"rectangle":e=`
|
|
42
|
+
:host {
|
|
43
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
44
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
45
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
46
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
47
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
48
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
49
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
50
|
+
}
|
|
51
|
+
`;break;case"circle":e=`
|
|
52
|
+
:host {
|
|
53
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
54
|
+
}
|
|
55
|
+
`;break;default:e=""}return t.h(t.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=s;exports.UiSkeleton=n;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as e, p as o } from "./index-b2193545-HC0t7mHa.js";
|
|
2
|
+
import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
3
|
+
import { U as g } from "./ui-skeleton-ae35c6f2-Cn0ZM_hs.js";
|
|
4
|
+
var i = () => {
|
|
5
|
+
const r = import.meta.url, t = {};
|
|
6
|
+
return r !== "" && (t.resourcesUrl = new URL(".", r).href), o(t);
|
|
7
|
+
};
|
|
8
|
+
i().then(async (r) => (await a(), e([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1] }, null, { structure: ["handleStructureChange"] }]]]], r)));
|
|
9
|
+
export {
|
|
10
|
+
g as ui_skeleton
|
|
11
|
+
};
|