@everymatrix/casino-lobby 1.69.2 → 1.70.0
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/{CasinoCalendar-DrLPDYIr.cjs → CasinoCalendar-AXQVreyU.cjs} +1 -1
- package/components/{CasinoCalendar-DOfDQHu3.js → CasinoCalendar-DhXVMCwY.js} +2 -2
- package/components/{CasinoCalendar-BjjkTxx6.js → CasinoCalendar-DvsJjQR1.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-BNWdX1Yw.js → CasinoCalendarDailyDetails-3oURZ5eN.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-BWMsrbx4.cjs → CasinoCalendarDailyDetails-CwCMdOjj.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-46jne5Ly.js → CasinoCalendarDailyDetails-vDlTL1Mz.js} +2 -2
- package/components/{CasinoCalendarDailyItem-COwrXZRR.js → CasinoCalendarDailyItem-AfCjN4cZ.js} +2 -2
- package/components/{CasinoCalendarDailyItem-CxcUZChi.cjs → CasinoCalendarDailyItem-B_wuJUTQ.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-3Khz0pd5.js → CasinoCalendarDailyItem-C73xrNhc.js} +2 -2
- package/components/{CasinoCategoriesSlider-B8t20tw7.js → CasinoCategoriesSlider-CyDPRdsd.js} +2 -2
- package/components/{CasinoCategoriesSlider-CCEVuENG.cjs → CasinoCategoriesSlider-DwkYkIgL.cjs} +1 -1
- package/components/{CasinoCategoriesSlider-Ck0ueoGK.js → CasinoCategoriesSlider-wQphiOTZ.js} +2 -2
- package/components/{CasinoCollectionsProviders-CwbjjU6i.cjs → CasinoCollectionsProviders-BeXo3fMU.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-CIvTRhUf.js → CasinoCollectionsProviders-DdKrem8d.js} +1 -1
- package/components/{CasinoCollectionsProviders-Dih9hnT3.js → CasinoCollectionsProviders-y8DOcY5N.js} +1 -1
- package/components/{CasinoFavoritesSection-dhKxffg_.js → CasinoFavoritesSection-1S2Lz3SW.js} +2 -2
- package/components/{CasinoFavoritesSection-BQS119jC.js → CasinoFavoritesSection-CnbnFYOu.js} +2 -2
- package/components/{CasinoFavoritesSection-CyAnsnkN.cjs → CasinoFavoritesSection-DQujG-Lp.cjs} +1 -1
- package/components/{CasinoFilter-D4VPDUWx.js → CasinoFilter-BpDGbk8K.js} +1 -1
- package/components/{CasinoFilter-CcCJbCfA.js → CasinoFilter-Cse_ikkf.js} +1 -1
- package/components/{CasinoFilter-DXFEC6l-.cjs → CasinoFilter-_UA3RCLF.cjs} +1 -1
- package/components/{CasinoGameThumbnail-CSYTuL3q.cjs → CasinoGameThumbnail-BMHMTqRz.cjs} +1 -1
- package/components/{CasinoGameThumbnail-D9OSEFLa.js → CasinoGameThumbnail-IDaFl1Xu.js} +2 -2
- package/components/{CasinoGameThumbnail-CD9Y-Kes.js → CasinoGameThumbnail-w3iktaO3.js} +2 -2
- package/components/{CasinoGamesCategorySection-BYxCfY_8.cjs → CasinoGamesCategorySection-7SaTNcrq.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-Ccjhzhxa.js → CasinoGamesCategorySection-CXpdNAsb.js} +5 -5
- package/components/{CasinoGamesCategorySection-s1T_3zyN.js → CasinoGamesCategorySection-DBwkLn0s.js} +5 -5
- package/components/{CasinoJackpotBanner-CKrSEjNi.js → CasinoJackpotBanner-BdsQyC0k.js} +2 -2
- package/components/{CasinoJackpotBanner-2UfD0tDz.js → CasinoJackpotBanner-C-kNRiwQ.js} +2 -2
- package/components/{CasinoJackpotBanner-CvfB8gqN.cjs → CasinoJackpotBanner-Drezj591.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-C9VbXxqx.cjs → CasinoLastPlayedSection-B1jO-mOv.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-Dm9-OLK5.js → CasinoLastPlayedSection-B2mAuumq.js} +2 -2
- package/components/{CasinoLastPlayedSection-DWgubnP_.js → CasinoLastPlayedSection-BTbqG2PY.js} +2 -2
- package/components/{CasinoLobby-DSS9hR10.js → CasinoLobby-B9wH9ODi.js} +3 -3
- package/components/{CasinoLobby-DMZgnVxt.cjs → CasinoLobby-DZJ49SFm.cjs} +1 -1
- package/components/{CasinoLobby-4tnJwnwA.js → CasinoLobby-Pkj77WT7.js} +3 -3
- package/components/{CasinoMostPlayedSection-fxmeylJx.js → CasinoMostPlayedSection-B6pGhulE.js} +2 -2
- package/components/{CasinoMostPlayedSection-x4tPR-uP.js → CasinoMostPlayedSection-BVOuvFg1.js} +2 -2
- package/components/{CasinoMostPlayedSection-DzpYwX91.cjs → CasinoMostPlayedSection-BxyvkBdO.cjs} +1 -1
- package/components/{CasinoMyGames-Dh6KaRY1.js → CasinoMyGames-CHFQjUsl.js} +4 -4
- package/components/{CasinoMyGames-bOpAtxEX.cjs → CasinoMyGames-DgK12Kjb.cjs} +1 -1
- package/components/{CasinoMyGames-ZJ5e6-pk.js → CasinoMyGames-j_rSFYAE.js} +4 -4
- package/components/{CasinoPage-DYjanSJf.js → CasinoPage-CRbyYPXJ.js} +11 -11
- package/components/{CasinoPage-WO9bhLC2.js → CasinoPage-DGeCLgVG.js} +11 -11
- package/components/{CasinoPage-eb-xX2RS.cjs → CasinoPage-DQ1ECUsI.cjs} +1 -1
- package/components/{CasinoRandomGame-8HEmRUI7.js → CasinoRandomGame-CVuu5ndq.js} +1 -1
- package/components/{CasinoRandomGame-C5UxEaLW.cjs → CasinoRandomGame-D5chJotN.cjs} +1 -1
- package/components/{CasinoRandomGame-BTQUztvQ.js → CasinoRandomGame-JXGClzjo.js} +1 -1
- package/components/{CasinoSearch-C0_R93FM.js → CasinoSearch-BI_uT3Jw.js} +3 -3
- package/components/{CasinoSearch-DIHUWOTk.js → CasinoSearch-CjrWH3EK.js} +3 -3
- package/components/{CasinoSearch-CBw5lbyQ.cjs → CasinoSearch-DZearjM7.cjs} +1 -1
- package/components/{CasinoSlider-CG8FgZq3.js → CasinoSlider-CfPkPPxf.js} +1 -1
- package/components/{CasinoSlider-MkBuCdwX.js → CasinoSlider-CkpttSpp.js} +1 -1
- package/components/{CasinoSlider-CJOeDAIp.cjs → CasinoSlider-DuMX9oX9.cjs} +1 -1
- package/components/{CasinoSort-w4g8wQhY.cjs → CasinoSort-CC01PnsE.cjs} +1 -1
- package/components/{CasinoSort-BLx7QRjl.js → CasinoSort-CCMi6HF8.js} +1 -1
- package/components/{CasinoSort-AaAX3kvI.js → CasinoSort-CqxfyCdK.js} +1 -1
- package/components/{CasinoWinners-o9CqgDkB.js → CasinoWinners-1QrrbKud.js} +2 -2
- package/components/{CasinoWinners-Vkw9_w80.js → CasinoWinners-Ds56SsB_.js} +2 -2
- package/components/{CasinoWinners-czo8V_8p.cjs → CasinoWinners-HiCSUdE4.cjs} +1 -1
- package/components/{GeneralAnimationLoading-BwJIsAdP.js → GeneralAnimationLoading-CqQ45vZj.js} +1 -1
- package/components/{GeneralAnimationLoading-I4YXBUve.js → GeneralAnimationLoading-OUo50Aas.js} +1 -1
- package/components/{GeneralAnimationLoading-_--9Ai_e.cjs → GeneralAnimationLoading-TrHgy3kz.cjs} +1 -1
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-IdX2D3yt.js → index-97d17652-B0NIExnR.js} +1 -1
- package/stencil/{index-97d17652-D1-6d0Bk.js → index-97d17652-D6HPqRtr.js} +1 -1
- package/stencil/{index-97d17652-CjAagVjG.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
- package/stencil/{index-b2193545-CeGUFmMF.cjs → index-b2193545-DVT8jgVo.cjs} +1 -1
- package/stencil/{index-b2193545-DWTOspXW.js → index-b2193545-Dxw-xjac.js} +1 -1
- package/stencil/{index-b2193545-Be-aVZj0.js → index-b2193545-TbRClz6K.js} +1 -1
- package/stencil/ui-image-2AZlMiHS.js +7 -0
- package/stencil/ui-image-BGKMDvh6.js +25 -0
- package/stencil/ui-image-D8iqM9v9.cjs +1 -0
- package/stencil/{ui-image-b7b48fe5-CSbk4a-_.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DtQlRvK7.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-C2NxBIqB.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
- package/stencil/{ui-image_2-BjVQzUTV.js → ui-image_2-DbQ7SENq.js} +13 -30
- package/stencil/{ui-image_2-CaETIZEN.js → ui-image_2-L-CYescb.js} +13 -30
- package/stencil/ui-skeleton-CSMUbPcJ.js +29 -0
- package/stencil/ui-skeleton-CiszU04_.js +11 -0
- package/stencil/ui-skeleton-DcmFcn7k.cjs +1 -0
- package/stencil/{ui-skeleton-161699c3-C8TDQr7b.js → ui-skeleton-ae35c6f2-9hZ7WFQc.js} +12 -29
- package/stencil/ui-skeleton-ae35c6f2-D1Tb0H8D.cjs +55 -0
- package/stencil/{ui-skeleton-161699c3-Bv6d6tD_.js → ui-skeleton-ae35c6f2-DDHvWmVB.js} +12 -29
- package/stencil/ui-image-CFxudyi7.cjs +0 -1
- package/stencil/ui-image-CaNQyRPV.js +0 -25
- package/stencil/ui-image-ChBO-svA.js +0 -7
- package/stencil/ui-image_2-gOIKmeIr.cjs +0 -73
- package/stencil/ui-skeleton-161699c3-C0Kl5CvZ.cjs +0 -73
- package/stencil/ui-skeleton-BDWZ8ELm.js +0 -11
- package/stencil/ui-skeleton-DJUh90Sp.js +0 -29
- package/stencil/ui-skeleton-DW9HAqES.cjs +0 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-b7b48fe5-
|
|
2
|
-
import { r
|
|
3
|
-
const
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-BXmf73Ou.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-97d17652-B0NIExnR.js";
|
|
3
|
+
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 {
|
|
4
4
|
constructor(e) {
|
|
5
|
-
|
|
5
|
+
r(this, e), this.stylingValue = {
|
|
6
6
|
width: this.handleStylingProps(this.width),
|
|
7
7
|
height: this.handleStylingProps(this.height),
|
|
8
8
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
9
9
|
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
10
10
|
marginTop: this.handleStylingProps(this.marginTop),
|
|
11
11
|
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
12
|
-
marginRight: this.handleStylingProps(this.marginRight)
|
|
13
|
-
|
|
12
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
13
|
+
size: this.handleStylingProps(this.size)
|
|
14
|
+
}, 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%";
|
|
14
15
|
}
|
|
15
|
-
handleStructureChange(e,
|
|
16
|
-
|
|
16
|
+
handleStructureChange(e, i) {
|
|
17
|
+
i !== e && this.handleStructure(e);
|
|
17
18
|
}
|
|
18
19
|
handleStylingProps(e) {
|
|
19
20
|
switch (typeof e) {
|
|
@@ -55,7 +56,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
55
56
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
56
57
|
}
|
|
57
58
|
renderText() {
|
|
58
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e,
|
|
59
|
+
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" : "") })));
|
|
59
60
|
}
|
|
60
61
|
renderRectangle() {
|
|
61
62
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
@@ -76,9 +77,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
76
77
|
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
77
78
|
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
78
79
|
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
79
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
80
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
81
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
82
80
|
}
|
|
83
81
|
`;
|
|
84
82
|
break;
|
|
@@ -92,9 +90,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
92
90
|
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
93
91
|
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
94
92
|
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
95
|
-
--emw-skeleton-image-background: ${this.color};
|
|
96
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
97
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
98
93
|
}
|
|
99
94
|
`;
|
|
100
95
|
break;
|
|
@@ -108,9 +103,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
108
103
|
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
109
104
|
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
110
105
|
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
111
|
-
--emw-skeleton-title-background: ${this.color};
|
|
112
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
113
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
114
106
|
}
|
|
115
107
|
`;
|
|
116
108
|
break;
|
|
@@ -124,9 +116,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
124
116
|
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
125
117
|
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
126
118
|
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
127
|
-
--emw-skeleton-text-background: ${this.color};
|
|
128
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
129
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
130
119
|
}
|
|
131
120
|
`;
|
|
132
121
|
break;
|
|
@@ -140,26 +129,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
140
129
|
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
141
130
|
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
142
131
|
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
143
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
144
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
145
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
146
132
|
}
|
|
147
133
|
`;
|
|
148
134
|
break;
|
|
149
135
|
case "circle":
|
|
150
136
|
e = `
|
|
151
137
|
:host {
|
|
152
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
153
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
154
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
155
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
138
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
156
139
|
}
|
|
157
140
|
`;
|
|
158
141
|
break;
|
|
159
142
|
default:
|
|
160
143
|
e = "";
|
|
161
144
|
}
|
|
162
|
-
return t(
|
|
145
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
163
146
|
}
|
|
164
147
|
static get watchers() {
|
|
165
148
|
return {
|
|
@@ -167,7 +150,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
167
150
|
};
|
|
168
151
|
}
|
|
169
152
|
};
|
|
170
|
-
l.style =
|
|
153
|
+
l.style = a;
|
|
171
154
|
export {
|
|
172
155
|
m as ui_image,
|
|
173
156
|
l as ui_skeleton
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var n = (t, e, o) => new Promise((m, s) => {
|
|
2
|
+
var u = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
a(o.next(r));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
s(i);
|
|
7
|
+
}
|
|
8
|
+
}, g = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
a(o.throw(r));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
s(i);
|
|
13
|
+
}
|
|
14
|
+
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(u, g);
|
|
15
|
+
a((o = o.apply(t, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as p, p as l } from "./index-b2193545-TbRClz6K.js";
|
|
18
|
+
import { b as h } from "./app-globals-0f993ce5-DfNOCk8l.js";
|
|
19
|
+
import { U as k } from "./ui-skeleton-ae35c6f2-DDHvWmVB.js";
|
|
20
|
+
var c = () => {
|
|
21
|
+
const t = import.meta.url, e = {};
|
|
22
|
+
return t !== "" && (e.resourcesUrl = new URL(".", t).href), l(e);
|
|
23
|
+
};
|
|
24
|
+
c().then((t) => n(void 0, null, function* () {
|
|
25
|
+
return yield h(), p([["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"] }]]]], t);
|
|
26
|
+
}));
|
|
27
|
+
export {
|
|
28
|
+
k as ui_skeleton
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as e, p as o } from "./index-b2193545-Dxw-xjac.js";
|
|
2
|
+
import { b as a } from "./app-globals-0f993ce5-DfNOCk8l.js";
|
|
3
|
+
import { U as g } from "./ui-skeleton-ae35c6f2-9hZ7WFQc.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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=(t,r,n)=>new Promise((l,s)=>{var m=e=>{try{i(n.next(e))}catch(o){s(o)}},d=e=>{try{i(n.throw(e))}catch(o){s(o)}},i=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);i((n=n.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-b2193545-DVT8jgVo.cjs"),p=require("./app-globals-0f993ce5-4b17CI_n.cjs"),g=require("./ui-skeleton-ae35c6f2-D1Tb0H8D.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-DcmFcn7k.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),c.promiseResolve(r)};f().then(t=>u(exports,null,function*(){return yield p.globalScripts$2(),c.bootstrapLazy([["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"]}]]]],t)}));exports.ui_skeleton=g.UiSkeleton;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
const
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-Dxw-xjac.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-DVT8jgVo.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;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
const
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-TbRClz6K.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 +0,0 @@
|
|
|
1
|
-
"use strict";var s=(r,t,i)=>new Promise((l,c)=>{var d=e=>{try{o(i.next(e))}catch(n){c(n)}},m=e=>{try{o(i.throw(e))}catch(n){c(n)}},o=e=>e.done?l(e.value):Promise.resolve(e.value).then(d,m);o((i=i.apply(r,t)).next())});const u=require("./index-97d17652-CjAagVjG.cjs"),g=require("./app-globals-0f993ce5-4b17CI_n.cjs");var a=typeof document!="undefined"?document.currentScript:null,h=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-image-CFxudyi7.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};h().then(r=>s(exports,null,function*(){return yield g.globalScripts$1(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[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],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var n = (t, o, a) => new Promise((m, s) => {
|
|
2
|
-
var c = (r) => {
|
|
3
|
-
try {
|
|
4
|
-
e(a.next(r));
|
|
5
|
-
} catch (i) {
|
|
6
|
-
s(i);
|
|
7
|
-
}
|
|
8
|
-
}, l = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
e(a.throw(r));
|
|
11
|
-
} catch (i) {
|
|
12
|
-
s(i);
|
|
13
|
-
}
|
|
14
|
-
}, e = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(c, l);
|
|
15
|
-
e((a = a.apply(t, o)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as u, p as d } from "./index-97d17652-IdX2D3yt.js";
|
|
18
|
-
import { a as g } from "./app-globals-0f993ce5-DfNOCk8l.js";
|
|
19
|
-
var h = () => {
|
|
20
|
-
const t = import.meta.url, o = {};
|
|
21
|
-
return t !== "" && (o.resourcesUrl = new URL(".", t).href), d(o);
|
|
22
|
-
};
|
|
23
|
-
h().then((t) => n(void 0, null, function* () {
|
|
24
|
-
return yield g(), u([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [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], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], t);
|
|
25
|
-
}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { b as o, p as a } from "./index-97d17652-D1-6d0Bk.js";
|
|
2
|
-
import { a as e } from "./app-globals-0f993ce5-DfNOCk8l.js";
|
|
3
|
-
var i = () => {
|
|
4
|
-
const r = import.meta.url, t = {};
|
|
5
|
-
return r !== "" && (t.resourcesUrl = new URL(".", r).href), a(t);
|
|
6
|
-
};
|
|
7
|
-
i().then(async (r) => (await e(), o([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [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], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ui-image-b7b48fe5-DtQlRvK7.cjs"),t=require("./index-97d17652-CjAagVjG.cjs"),n=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);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, inherit)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,r=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)},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%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}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
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
11
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
12
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
13
|
-
}
|
|
14
|
-
`;break;case"image":e=`
|
|
15
|
-
:host {
|
|
16
|
-
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
17
|
-
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
18
|
-
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
19
|
-
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
20
|
-
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
21
|
-
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
22
|
-
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
23
|
-
--emw-skeleton-image-background: ${this.color};
|
|
24
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
25
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
26
|
-
}
|
|
27
|
-
`;break;case"title":e=`
|
|
28
|
-
:host {
|
|
29
|
-
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
30
|
-
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
31
|
-
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
32
|
-
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
33
|
-
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
34
|
-
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
35
|
-
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
36
|
-
--emw-skeleton-title-background: ${this.color};
|
|
37
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
38
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
39
|
-
}
|
|
40
|
-
`;break;case"text":e=`
|
|
41
|
-
:host {
|
|
42
|
-
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
43
|
-
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
44
|
-
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
45
|
-
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
46
|
-
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
47
|
-
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
48
|
-
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
49
|
-
--emw-skeleton-text-background: ${this.color};
|
|
50
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
51
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
52
|
-
}
|
|
53
|
-
`;break;case"rectangle":e=`
|
|
54
|
-
:host {
|
|
55
|
-
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
56
|
-
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
57
|
-
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
58
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
59
|
-
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
60
|
-
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
61
|
-
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
62
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
63
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
64
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
65
|
-
}
|
|
66
|
-
`;break;case"circle":e=`
|
|
67
|
-
:host {
|
|
68
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
69
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
70
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
71
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
72
|
-
}
|
|
73
|
-
`;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=s;exports.ui_image=o.UiImage;exports.ui_skeleton=r;
|