@everymatrix/casino-lobby 1.59.3 → 1.60.1
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-CI-C6zUY.js → CasinoCalendar-6ncpIgng.js} +718 -696
- package/components/CasinoCalendar-CkNAiTx8.cjs +22 -0
- package/components/{CasinoCalendar-BYTytQgJ.js → CasinoCalendar-Km8tdNHN.js} +712 -690
- package/components/{CasinoCalendarDailyDetails-Xi-Uo8v-.js → CasinoCalendarDailyDetails-CAbwFBvZ.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-DQB9Y3_Q.js → CasinoCalendarDailyDetails-CGaAU2gc.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-DUQWFLJJ.cjs → CasinoCalendarDailyDetails-CsEZhtVE.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DC91__VM.js → CasinoCalendarDailyItem-5aqnKIMr.js} +41 -41
- package/components/{CasinoCalendarDailyItem-CVt2FFo1.cjs → CasinoCalendarDailyItem-DSlC0F3s.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CjRZKnnD.js → CasinoCalendarDailyItem-D_MTrKed.js} +41 -41
- package/components/{CasinoCategoriesSlider-Cvb-krxJ.js → CasinoCategoriesSlider-DRIsr69C.js} +65 -65
- package/components/{CasinoCategoriesSlider-BeqGvJrA.js → CasinoCategoriesSlider-DYab11Z3.js} +66 -66
- package/components/CasinoCategoriesSlider-_X531XfJ.cjs +1 -0
- package/components/{CasinoCollectionsProviders-FGrPURo4.cjs → CasinoCollectionsProviders-B6occ8TF.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-BMyAx20Y.js → CasinoCollectionsProviders-B7d5LuGP.js} +73 -73
- package/components/{CasinoCollectionsProviders-B_4F6cIK.js → CasinoCollectionsProviders-pk8jpLQt.js} +71 -71
- package/components/{CasinoFavoritesSection-CBb3Eo8J.cjs → CasinoFavoritesSection-51a03OgV.cjs} +1 -1
- package/components/{CasinoFavoritesSection-Dmko0_Ik.js → CasinoFavoritesSection-a8e9F8Ga.js} +26 -26
- package/components/{CasinoFavoritesSection-BZmf5I3g.js → CasinoFavoritesSection-uCNlSq84.js} +26 -26
- package/components/{CasinoFilter-Dt8GhenI.js → CasinoFilter-BTof425X.js} +247 -246
- package/components/{CasinoFilter-BHLJqOwW.js → CasinoFilter-BWjq7W1e.js} +234 -235
- package/components/CasinoFilter-C2Q93qQz.cjs +1 -0
- package/components/{CasinoGamePage-D_TzJsC-.js → CasinoGamePage-Cp2CKRka.js} +742 -742
- package/components/{CasinoGamePage-BmgERtPr.cjs → CasinoGamePage-D2huRBJX.cjs} +6 -6
- package/components/{CasinoGamePage-5moXxd0d.js → CasinoGamePage-ssKF-ZD1.js} +741 -741
- package/components/{CasinoGameThumbnail-DSjNVacg.js → CasinoGameThumbnail-CrrXNmw1.js} +542 -510
- package/components/CasinoGameThumbnail-Dq26TPSU.cjs +38 -0
- package/components/{CasinoGameThumbnail-DqBpfUwf.js → CasinoGameThumbnail-GBvTkmL8.js} +476 -476
- package/components/{CasinoGamesCategorySection-Ce43OSOZ.js → CasinoGamesCategorySection-BGemjnwH.js} +247 -247
- package/components/{CasinoGamesCategorySection-d8QOFywW.js → CasinoGamesCategorySection-CHynVnZ8.js} +247 -247
- package/components/CasinoGamesCategorySection-CYKXSIYS.cjs +1 -0
- package/components/{CasinoJackpotBanner-Dxq2Y_-S.js → CasinoJackpotBanner-CuP8WP5Q.js} +74 -74
- package/components/{CasinoJackpotBanner-UQaC63Zv.js → CasinoJackpotBanner-Dl2rX6vI.js} +69 -69
- package/components/{CasinoJackpotBanner-B_CnR3Kj.cjs → CasinoJackpotBanner-DredUN6K.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CyL83M3y.cjs → CasinoLastPlayedSection-B64b2eJF.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-BVANPPTi.js → CasinoLastPlayedSection-BGk4k--h.js} +43 -43
- package/components/{CasinoLastPlayedSection-Bmr8n1pA.js → CasinoLastPlayedSection-CyKppEbZ.js} +43 -43
- package/components/{CasinoLobby-DUI1Ki3q.js → CasinoLobby-CN5AmC5K.js} +47 -47
- package/components/{CasinoLobby-os94WdnE.cjs → CasinoLobby-DddN7Gev.cjs} +1 -1
- package/components/{CasinoLobby-CWzN0imw.js → CasinoLobby-PcRgXAeR.js} +45 -45
- package/components/{CasinoModal-BaV1FE12.js → CasinoModal-B9Gmdwc0.js} +41 -41
- package/components/{CasinoModal-Bn6r73ff.js → CasinoModal-DLgyWFbs.js} +41 -41
- package/components/{CasinoModal-DWbCqr0p.cjs → CasinoModal-d1VUXUWj.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-B4SHGVp4.js → CasinoMostPlayedSection-C-D6CJKY.js} +50 -50
- package/components/{CasinoMostPlayedSection-y-GWnOes.cjs → CasinoMostPlayedSection-QIdWMIjm.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CD00UC6r.js → CasinoMostPlayedSection-qIiZdQQG.js} +50 -50
- package/components/{CasinoMyGames-BBsq56wQ.js → CasinoMyGames-DjXz5K51.js} +50 -50
- package/components/{CasinoMyGames-DKu8rYmc.cjs → CasinoMyGames-Dy1sj15h.cjs} +1 -1
- package/components/{CasinoMyGames-DRCL87dq.js → CasinoMyGames-Wpdq0oL6.js} +53 -53
- package/components/{CasinoPage-BJ2hLXJb.js → CasinoPage-D1fSPDEj.js} +93 -93
- package/components/{CasinoPage-DXP80Vgm.js → CasinoPage-DMCyJTE2.js} +85 -85
- package/components/{CasinoPage-CXAKd3oS.cjs → CasinoPage-DhSkte5y.cjs} +1 -1
- package/components/{CasinoRandomGame-BO7BqLXA.cjs → CasinoRandomGame-CBcSHzZL.cjs} +1 -1
- package/components/{CasinoRandomGame-CsA5xgwc.js → CasinoRandomGame-CfOiAKHl.js} +63 -63
- package/components/{CasinoRandomGame-DLzqJj4x.js → CasinoRandomGame-CqripZYr.js} +64 -64
- package/components/{CasinoSearch-CzUqsTgU.js → CasinoSearch-BgD0xvTa.js} +105 -104
- package/components/CasinoSearch-CRhnd9Yq.cjs +1 -0
- package/components/{CasinoSearch-atJ6AGYa.js → CasinoSearch-DOguc7Dt.js} +105 -104
- package/components/CasinoSlider---x4M_hm.js +803 -0
- package/components/CasinoSlider-BsszznrS.cjs +1 -0
- package/components/{CasinoSlider-DjqwMakd.js → CasinoSlider-PeKujgAE.js} +114 -114
- package/components/{CasinoSort-DtUIrmuZ.js → CasinoSort-BRC8Jmi_.js} +103 -104
- package/components/{CasinoSort-23PYwtO1.cjs → CasinoSort-C78a6veQ.cjs} +1 -1
- package/components/{CasinoSort-B3A_Ar_A.js → CasinoSort-xZsxfLYC.js} +111 -110
- package/components/{CasinoWinners-Gb2w2dXe.js → CasinoWinners-BEOhs5WG.js} +179 -179
- package/components/{CasinoWinners-KEY7dD3z.cjs → CasinoWinners-Cp1yMlzb.cjs} +1 -1
- package/components/{CasinoWinners-CF_PptIS.js → CasinoWinners-DD8ZyQkV.js} +162 -162
- package/components/{GeneralAnimationLoading-B-6s0l9d.cjs → GeneralAnimationLoading-Bl6_sP-d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-8TvNjXay.js → GeneralAnimationLoading-CURVDkRT.js} +16 -16
- package/components/{GeneralAnimationLoading-Bbxdne1m.js → GeneralAnimationLoading-uswxvfCW.js} +16 -16
- 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/{casino-play-random-game-Dm8A9dTR.js → casino-play-random-game-BW66Civ1.js} +2 -2
- package/stencil/{casino-play-random-game-CLSQBVzD.js → casino-play-random-game-Bk7toWLj.js} +2 -2
- package/stencil/{casino-play-random-game-CdZKN03s.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
- package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
- package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
- package/stencil/index-b2193545-BDVBrmNo.js +503 -0
- package/stencil/index-b2193545-CY979_sp.js +519 -0
- package/stencil/index-b2193545-DPplmtxO.cjs +1 -0
- package/stencil/{ui-skeleton-Bz6cw7xJ.js → ui-skeleton-BpUWeWAr.js} +6 -6
- package/stencil/ui-skeleton-D2GYc4Vd.cjs +1 -0
- package/stencil/ui-skeleton-ea659b95-CaDtZrvR.js +152 -0
- package/stencil/ui-skeleton-ea659b95-CvOjl779.cjs +73 -0
- package/stencil/ui-skeleton-ea659b95-DmKUoob8.js +152 -0
- package/stencil/{ui-skeleton-DDYD_XHU.js → ui-skeleton-sAoxznwb.js} +12 -12
- package/components/CasinoCalendar-DqS7aKva.cjs +0 -22
- package/components/CasinoCategoriesSlider-DZpvR9sw.cjs +0 -1
- package/components/CasinoFilter-Bg-VilMd.cjs +0 -1
- package/components/CasinoGameThumbnail-OrvrYv4V.cjs +0 -38
- package/components/CasinoGamesCategorySection-DEh7yuGp.cjs +0 -1
- package/components/CasinoSearch-CxFbGTdy.cjs +0 -1
- package/components/CasinoSlider-CgiDJzPs.cjs +0 -1
- package/components/CasinoSlider-zHVThApL.js +0 -803
- package/stencil/index-ab3202d6-C1hgKWrC.cjs +0 -1
- package/stencil/index-ab3202d6-OPh7hJp9.js +0 -575
- package/stencil/index-ab3202d6-hGs51skN.js +0 -559
- package/stencil/index-ae04a8b1-BhaHMrLE.js +0 -516
- package/stencil/index-ae04a8b1-Dn3cponN.js +0 -532
- package/stencil/index-ae04a8b1-jEvGbYrB.cjs +0 -1
- package/stencil/ui-skeleton-D9k-xWaS.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-Bg6oYmhk.js +0 -122
- package/stencil/ui-skeleton-a642cced-CVw8zpGJ.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-MvzXi5-c.js +0 -122
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { r as o, h as t, H as i } from "./index-b2193545-CY979_sp.js";
|
|
2
|
+
const 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, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, a = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
|
5
|
+
}
|
|
6
|
+
handleStructureChange(e, r) {
|
|
7
|
+
r !== e && this.handleStructure(e);
|
|
8
|
+
}
|
|
9
|
+
handleStructure(e) {
|
|
10
|
+
switch (e) {
|
|
11
|
+
case "logo":
|
|
12
|
+
return this.renderLogo();
|
|
13
|
+
case "image":
|
|
14
|
+
return this.renderImage();
|
|
15
|
+
case "title":
|
|
16
|
+
return this.renderTitle();
|
|
17
|
+
case "text":
|
|
18
|
+
return this.renderText();
|
|
19
|
+
case "rectangle":
|
|
20
|
+
return this.renderRectangle();
|
|
21
|
+
case "circle":
|
|
22
|
+
return this.renderCircle();
|
|
23
|
+
default:
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
renderLogo() {
|
|
28
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
29
|
+
}
|
|
30
|
+
renderImage() {
|
|
31
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Image " + (this.animation ? "Skeleton" : "") }));
|
|
32
|
+
}
|
|
33
|
+
renderTitle() {
|
|
34
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
35
|
+
}
|
|
36
|
+
renderText() {
|
|
37
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
38
|
+
}
|
|
39
|
+
renderRectangle() {
|
|
40
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
41
|
+
}
|
|
42
|
+
renderCircle() {
|
|
43
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
let e = "";
|
|
47
|
+
switch (this.structure) {
|
|
48
|
+
case "logo":
|
|
49
|
+
e = `
|
|
50
|
+
:host {
|
|
51
|
+
--emw-skeleton-logo-width: ${this.width};
|
|
52
|
+
--emw-skeleton-logo-height: ${this.height};
|
|
53
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
54
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
55
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
56
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
57
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
58
|
+
--emw-skeleton-logo-background: ${this.color};
|
|
59
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
60
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
break;
|
|
64
|
+
case "image":
|
|
65
|
+
e = `
|
|
66
|
+
:host {
|
|
67
|
+
--emw-skeleton-image-width: ${this.width};
|
|
68
|
+
--emw-skeleton-image-height: ${this.height};
|
|
69
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
70
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
71
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
72
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
73
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
74
|
+
--emw-skeleton-image-background: ${this.color};
|
|
75
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
76
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
break;
|
|
80
|
+
case "title":
|
|
81
|
+
e = `
|
|
82
|
+
:host {
|
|
83
|
+
--emw-skeleton-title-width: ${this.width};
|
|
84
|
+
--emw-skeleton-title-height: ${this.height};
|
|
85
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
86
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
87
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
88
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
89
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
90
|
+
--emw-skeleton-title-background: ${this.color};
|
|
91
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
92
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "text":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-text-width: ${this.width};
|
|
100
|
+
--emw-skeleton-text-height: ${this.height};
|
|
101
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
102
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
103
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
104
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
105
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
106
|
+
--emw-skeleton-text-background: ${this.color};
|
|
107
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
108
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
break;
|
|
112
|
+
case "rectangle":
|
|
113
|
+
e = `
|
|
114
|
+
:host {
|
|
115
|
+
--emw-skeleton-rectangle-width: ${this.width};
|
|
116
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
|
117
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
118
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
119
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
120
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
121
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
122
|
+
--emw-skeleton-rectangle-background: ${this.color};
|
|
123
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
124
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
break;
|
|
128
|
+
case "circle":
|
|
129
|
+
e = `
|
|
130
|
+
:host {
|
|
131
|
+
--emw-skeleton-circle-size: ${this.size};
|
|
132
|
+
--emw-skeleton-circle-background: ${this.color};
|
|
133
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
134
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
e = "";
|
|
140
|
+
}
|
|
141
|
+
return t(i, { key: "58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5" }, t("style", { key: "c72ac31d1c55fd5d18ec334629db45977a0f6124" }, e), this.handleStructure(this.structure));
|
|
142
|
+
}
|
|
143
|
+
static get watchers() {
|
|
144
|
+
return {
|
|
145
|
+
structure: ["handleStructureChange"]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
a.style = s;
|
|
150
|
+
export {
|
|
151
|
+
a as U
|
|
152
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";const t=require("./index-b2193545-DPplmtxO.cjs"),i=":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, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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))}}",n=i,o=class{constructor(e){t.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}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:"SkeletonContainer"},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,r)=>t.h("div",{key:r,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.width};
|
|
4
|
+
--emw-skeleton-logo-height: ${this.height};
|
|
5
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
6
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
7
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
8
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
9
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
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.width};
|
|
17
|
+
--emw-skeleton-image-height: ${this.height};
|
|
18
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
19
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
20
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
21
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
22
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
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.width};
|
|
30
|
+
--emw-skeleton-title-height: ${this.height};
|
|
31
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
32
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
33
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
34
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
35
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
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.width};
|
|
43
|
+
--emw-skeleton-text-height: ${this.height};
|
|
44
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
45
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
46
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
47
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
48
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
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.width};
|
|
56
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
|
57
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
58
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
59
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
60
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
61
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
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:"58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5"},t.h("style",{key:"c72ac31d1c55fd5d18ec334629db45977a0f6124"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=n;exports.UiSkeleton=o;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { r as o, h as t, H as i } from "./index-b2193545-BDVBrmNo.js";
|
|
2
|
+
const 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, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, a = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
|
5
|
+
}
|
|
6
|
+
handleStructureChange(e, r) {
|
|
7
|
+
r !== e && this.handleStructure(e);
|
|
8
|
+
}
|
|
9
|
+
handleStructure(e) {
|
|
10
|
+
switch (e) {
|
|
11
|
+
case "logo":
|
|
12
|
+
return this.renderLogo();
|
|
13
|
+
case "image":
|
|
14
|
+
return this.renderImage();
|
|
15
|
+
case "title":
|
|
16
|
+
return this.renderTitle();
|
|
17
|
+
case "text":
|
|
18
|
+
return this.renderText();
|
|
19
|
+
case "rectangle":
|
|
20
|
+
return this.renderRectangle();
|
|
21
|
+
case "circle":
|
|
22
|
+
return this.renderCircle();
|
|
23
|
+
default:
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
renderLogo() {
|
|
28
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
29
|
+
}
|
|
30
|
+
renderImage() {
|
|
31
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Image " + (this.animation ? "Skeleton" : "") }));
|
|
32
|
+
}
|
|
33
|
+
renderTitle() {
|
|
34
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
35
|
+
}
|
|
36
|
+
renderText() {
|
|
37
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
38
|
+
}
|
|
39
|
+
renderRectangle() {
|
|
40
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
41
|
+
}
|
|
42
|
+
renderCircle() {
|
|
43
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
let e = "";
|
|
47
|
+
switch (this.structure) {
|
|
48
|
+
case "logo":
|
|
49
|
+
e = `
|
|
50
|
+
:host {
|
|
51
|
+
--emw-skeleton-logo-width: ${this.width};
|
|
52
|
+
--emw-skeleton-logo-height: ${this.height};
|
|
53
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
54
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
55
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
56
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
57
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
58
|
+
--emw-skeleton-logo-background: ${this.color};
|
|
59
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
60
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
break;
|
|
64
|
+
case "image":
|
|
65
|
+
e = `
|
|
66
|
+
:host {
|
|
67
|
+
--emw-skeleton-image-width: ${this.width};
|
|
68
|
+
--emw-skeleton-image-height: ${this.height};
|
|
69
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
70
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
71
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
72
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
73
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
74
|
+
--emw-skeleton-image-background: ${this.color};
|
|
75
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
76
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
break;
|
|
80
|
+
case "title":
|
|
81
|
+
e = `
|
|
82
|
+
:host {
|
|
83
|
+
--emw-skeleton-title-width: ${this.width};
|
|
84
|
+
--emw-skeleton-title-height: ${this.height};
|
|
85
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
86
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
87
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
88
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
89
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
90
|
+
--emw-skeleton-title-background: ${this.color};
|
|
91
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
92
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "text":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-text-width: ${this.width};
|
|
100
|
+
--emw-skeleton-text-height: ${this.height};
|
|
101
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
102
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
103
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
104
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
105
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
106
|
+
--emw-skeleton-text-background: ${this.color};
|
|
107
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
108
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
break;
|
|
112
|
+
case "rectangle":
|
|
113
|
+
e = `
|
|
114
|
+
:host {
|
|
115
|
+
--emw-skeleton-rectangle-width: ${this.width};
|
|
116
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
|
117
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
118
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
119
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
120
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
121
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
122
|
+
--emw-skeleton-rectangle-background: ${this.color};
|
|
123
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
124
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
break;
|
|
128
|
+
case "circle":
|
|
129
|
+
e = `
|
|
130
|
+
:host {
|
|
131
|
+
--emw-skeleton-circle-size: ${this.size};
|
|
132
|
+
--emw-skeleton-circle-background: ${this.color};
|
|
133
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
134
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
e = "";
|
|
140
|
+
}
|
|
141
|
+
return t(i, { key: "58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5" }, t("style", { key: "c72ac31d1c55fd5d18ec334629db45977a0f6124" }, e), this.handleStructure(this.structure));
|
|
142
|
+
}
|
|
143
|
+
static get watchers() {
|
|
144
|
+
return {
|
|
145
|
+
structure: ["handleStructureChange"]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
a.style = s;
|
|
150
|
+
export {
|
|
151
|
+
a as U
|
|
152
|
+
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var n = (o, t,
|
|
1
|
+
var n = (o, t, a) => new Promise((m, s) => {
|
|
2
2
|
var l = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
a
|
|
4
|
+
e(a.next(r));
|
|
5
5
|
} catch (i) {
|
|
6
6
|
s(i);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, u = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
a
|
|
10
|
+
e(a.throw(r));
|
|
11
11
|
} catch (i) {
|
|
12
12
|
s(i);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, e = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l, u);
|
|
15
|
+
e((a = a.apply(o, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as
|
|
17
|
+
import { b as p, p as c } from "./index-b2193545-CY979_sp.js";
|
|
18
18
|
import { a as g } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
|
-
import { U as
|
|
20
|
-
var
|
|
19
|
+
import { U as R } from "./ui-skeleton-ea659b95-CaDtZrvR.js";
|
|
20
|
+
var h = () => {
|
|
21
21
|
const o = import.meta.url, t = {};
|
|
22
22
|
return o !== "" && (t.resourcesUrl = new URL(".", o).href), c(t);
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
return yield g(),
|
|
24
|
+
h().then((o) => n(void 0, null, function* () {
|
|
25
|
+
return yield g(), p([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], o);
|
|
26
26
|
}));
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
R as ui_skeleton
|
|
29
29
|
};
|