@everymatrix/casino-lobby 1.58.1 → 1.59.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-BWZKTjt3.js → CasinoCalendar-BYTytQgJ.js} +836 -833
- package/components/{CasinoCalendar-CEPKCmvL.js → CasinoCalendar-CI-C6zUY.js} +850 -847
- package/components/{CasinoCalendar-YzaZrGBf.cjs → CasinoCalendar-DqS7aKva.cjs} +6 -6
- package/components/{CasinoCalendarDailyDetails-C4rdfT96.js → CasinoCalendarDailyDetails-DQB9Y3_Q.js} +1 -1
- package/components/{CasinoCalendarDailyDetails-CneP-8H4.cjs → CasinoCalendarDailyDetails-DUQWFLJJ.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-BZxw5rrd.js → CasinoCalendarDailyDetails-Xi-Uo8v-.js} +1 -1
- package/components/{CasinoCalendarDailyItem-yxm1jout.cjs → CasinoCalendarDailyItem-CVt2FFo1.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-B3mEEjHA.js → CasinoCalendarDailyItem-CjRZKnnD.js} +1 -1
- package/components/{CasinoCalendarDailyItem-DAH0pKrw.js → CasinoCalendarDailyItem-DC91__VM.js} +1 -1
- package/components/{CasinoCategoriesSlider-t9Ea10Xr.js → CasinoCategoriesSlider-BeqGvJrA.js} +2 -2
- package/components/{CasinoCategoriesSlider-Dd33-jys.js → CasinoCategoriesSlider-Cvb-krxJ.js} +2 -2
- package/components/{CasinoCategoriesSlider-DozoHOzF.cjs → CasinoCategoriesSlider-DZpvR9sw.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-bmfbt1iI.js → CasinoCollectionsProviders-BMyAx20Y.js} +111 -108
- package/components/{CasinoCollectionsProviders-DAgGlzwM.js → CasinoCollectionsProviders-B_4F6cIK.js} +106 -103
- package/components/{CasinoCollectionsProviders-CBiEhbus.cjs → CasinoCollectionsProviders-FGrPURo4.cjs} +1 -1
- package/components/{CasinoFavoritesSection-B9pa_5wC.js → CasinoFavoritesSection-BZmf5I3g.js} +2 -2
- package/components/{CasinoFavoritesSection-n_i25VDL.cjs → CasinoFavoritesSection-CBb3Eo8J.cjs} +1 -1
- package/components/{CasinoFavoritesSection-Dm0Ylorq.js → CasinoFavoritesSection-Dmko0_Ik.js} +2 -2
- package/components/{CasinoFilter-BaCM2CFg.js → CasinoFilter-BHLJqOwW.js} +3 -3
- package/components/{CasinoFilter-B7H_n_MD.cjs → CasinoFilter-Bg-VilMd.cjs} +1 -1
- package/components/{CasinoFilter-BTP1X8zp.js → CasinoFilter-Dt8GhenI.js} +3 -3
- package/components/{CasinoGamePage-jh3dkrf4.js → CasinoGamePage-5moXxd0d.js} +1 -1
- package/components/{CasinoGamePage-CIvFWln2.cjs → CasinoGamePage-BmgERtPr.cjs} +1 -1
- package/components/{CasinoGamePage-DSk7OmI2.js → CasinoGamePage-D_TzJsC-.js} +1 -1
- package/components/CasinoGameThumbnail-DSjNVacg.js +1850 -0
- package/components/CasinoGameThumbnail-DqBpfUwf.js +1866 -0
- package/components/CasinoGameThumbnail-OrvrYv4V.cjs +38 -0
- package/components/{CasinoGamesCategorySection-dyyrntic.js → CasinoGamesCategorySection-Ce43OSOZ.js} +296 -291
- package/components/{CasinoGamesCategorySection-BBfNK7Mo.cjs → CasinoGamesCategorySection-DEh7yuGp.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-BU3JMFcx.js → CasinoGamesCategorySection-d8QOFywW.js} +402 -397
- package/components/CasinoJackpotBanner-B_CnR3Kj.cjs +1 -0
- package/components/{CasinoJackpotBanner-BvW5shKI.js → CasinoJackpotBanner-Dxq2Y_-S.js} +186 -181
- package/components/{CasinoJackpotBanner-7unbFH4I.js → CasinoJackpotBanner-UQaC63Zv.js} +157 -152
- package/components/{CasinoLastPlayedSection-BtSsd68j.js → CasinoLastPlayedSection-BVANPPTi.js} +2 -2
- package/components/{CasinoLastPlayedSection--cJ8dS0F.js → CasinoLastPlayedSection-Bmr8n1pA.js} +2 -2
- package/components/{CasinoLastPlayedSection-YmqYIIYS.cjs → CasinoLastPlayedSection-CyL83M3y.cjs} +1 -1
- package/components/{CasinoLobby-DeH-xQqX.js → CasinoLobby-CWzN0imw.js} +5 -5
- package/components/{CasinoLobby-CeVVWOXC.js → CasinoLobby-DUI1Ki3q.js} +5 -5
- package/components/{CasinoLobby-BVvKIwXf.cjs → CasinoLobby-os94WdnE.cjs} +1 -1
- package/components/{CasinoModal-88yfZulM.js → CasinoModal-BaV1FE12.js} +1 -1
- package/components/{CasinoModal-D9_hs2c9.js → CasinoModal-Bn6r73ff.js} +1 -1
- package/components/{CasinoModal-Ce5Pthg0.cjs → CasinoModal-DWbCqr0p.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-BldCqqK1.js → CasinoMostPlayedSection-B4SHGVp4.js} +2 -2
- package/components/{CasinoMostPlayedSection-CvX-e31F.js → CasinoMostPlayedSection-CD00UC6r.js} +2 -2
- package/components/{CasinoMostPlayedSection-DI5TANog.cjs → CasinoMostPlayedSection-y-GWnOes.cjs} +1 -1
- package/components/{CasinoMyGames-CJm9ApZ8.js → CasinoMyGames-BBsq56wQ.js} +4 -4
- package/components/{CasinoMyGames-DQEE59aC.cjs → CasinoMyGames-DKu8rYmc.cjs} +1 -1
- package/components/{CasinoMyGames-CNSxKFTG.js → CasinoMyGames-DRCL87dq.js} +4 -4
- package/components/CasinoPage-BJ2hLXJb.js +3755 -0
- package/components/CasinoPage-CXAKd3oS.cjs +1 -0
- package/components/{CasinoPage-BHr38lT6.js → CasinoPage-DXP80Vgm.js} +1494 -1448
- package/components/{CasinoRandomGame-CjLDPmJh.cjs → CasinoRandomGame-BO7BqLXA.cjs} +1 -1
- package/components/{CasinoRandomGame-CaLII6na.js → CasinoRandomGame-CsA5xgwc.js} +1 -1
- package/components/{CasinoRandomGame-8kMXdgrA.js → CasinoRandomGame-DLzqJj4x.js} +1 -1
- package/components/{CasinoSearch-Cf4ivtxM.cjs → CasinoSearch-CxFbGTdy.cjs} +1 -1
- package/components/{CasinoSearch-eN8ZAKdn.js → CasinoSearch-CzUqsTgU.js} +3 -3
- package/components/{CasinoSearch-ISBqoS_l.js → CasinoSearch-atJ6AGYa.js} +3 -3
- package/components/{CasinoSlider-BqOuFEE1.cjs → CasinoSlider-CgiDJzPs.cjs} +1 -1
- package/components/{CasinoSlider-DLY4ZBJR.js → CasinoSlider-DjqwMakd.js} +1 -1
- package/components/{CasinoSlider-DTLHID6G.js → CasinoSlider-zHVThApL.js} +1 -1
- package/components/{CasinoSort-BpUmCYRy.cjs → CasinoSort-23PYwtO1.cjs} +1 -1
- package/components/{CasinoSort-BNFUwAYT.js → CasinoSort-B3A_Ar_A.js} +1 -1
- package/components/{CasinoSort-DKL_qMEQ.js → CasinoSort-DtUIrmuZ.js} +1 -1
- package/components/{CasinoWinners-BoSyqMDy.js → CasinoWinners-CF_PptIS.js} +117 -114
- package/components/{CasinoWinners-Czg0Gq3N.js → CasinoWinners-Gb2w2dXe.js} +118 -115
- package/components/{CasinoWinners-DRdsN9K_.cjs → CasinoWinners-KEY7dD3z.cjs} +1 -1
- package/components/{GeneralAnimationLoading-DL8bFxE7.js → GeneralAnimationLoading-8TvNjXay.js} +1 -1
- package/components/{GeneralAnimationLoading-CVr2zyUi.cjs → GeneralAnimationLoading-B-6s0l9d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-swHQRr7H.js → GeneralAnimationLoading-Bbxdne1m.js} +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/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/{casino-play-random-game-NcJEjFWA.js → casino-play-random-game-CLSQBVzD.js} +19 -17
- package/stencil/{casino-play-random-game-DjdZ0XM0.cjs → casino-play-random-game-CdZKN03s.cjs} +2 -2
- package/stencil/{casino-play-random-game-BOnTgUqC.js → casino-play-random-game-Dm8A9dTR.js} +20 -18
- package/stencil/index-ab3202d6-C1hgKWrC.cjs +1 -0
- package/stencil/{index-510a6ba4-1RrL4Z6e.js → index-ab3202d6-OPh7hJp9.js} +120 -109
- package/stencil/{index-510a6ba4-CNr-xCZE.js → index-ab3202d6-hGs51skN.js} +121 -110
- package/stencil/index-ae04a8b1-BhaHMrLE.js +516 -0
- package/stencil/index-ae04a8b1-Dn3cponN.js +532 -0
- package/stencil/index-ae04a8b1-jEvGbYrB.cjs +1 -0
- package/stencil/ui-skeleton-Bz6cw7xJ.js +11 -0
- package/stencil/ui-skeleton-D9k-xWaS.cjs +1 -0
- package/stencil/ui-skeleton-DDYD_XHU.js +29 -0
- package/stencil/ui-skeleton-a642cced-Bg6oYmhk.js +122 -0
- package/stencil/ui-skeleton-a642cced-CVw8zpGJ.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-MvzXi5-c.js +122 -0
- package/components/CasinoGameThumbnail-BXCu7VY7.js +0 -1834
- package/components/CasinoGameThumbnail-Mnpd_s_M.js +0 -1850
- package/components/CasinoGameThumbnail-uCJn0tBq.cjs +0 -38
- package/components/CasinoJackpotBanner-RjyciaDJ.cjs +0 -1
- package/components/CasinoPage-CSLjFVQe.cjs +0 -1
- package/components/CasinoPage-Dic62p8t.js +0 -3709
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-510a6ba4-eEczisTR.cjs +0 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { r as o, h as r } from "./index-ae04a8b1-Dn3cponN.js";
|
|
2
|
+
const n = ".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, t) {
|
|
7
|
+
t !== e && this.handleStructure(e);
|
|
8
|
+
}
|
|
9
|
+
updateStyles() {
|
|
10
|
+
this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
|
|
11
|
+
}
|
|
12
|
+
handleStructure(e) {
|
|
13
|
+
switch (e) {
|
|
14
|
+
case "logo":
|
|
15
|
+
return this.renderLogo();
|
|
16
|
+
case "image":
|
|
17
|
+
return this.renderImage();
|
|
18
|
+
case "title":
|
|
19
|
+
return this.renderTitle();
|
|
20
|
+
case "text":
|
|
21
|
+
return this.renderText();
|
|
22
|
+
case "rectangle":
|
|
23
|
+
return this.renderRectangle();
|
|
24
|
+
case "circle":
|
|
25
|
+
return this.renderCircle();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
renderLogo() {
|
|
29
|
+
const e = {
|
|
30
|
+
width: `${this.width}`,
|
|
31
|
+
height: `${this.height}`,
|
|
32
|
+
"background-color": `${this.color}`,
|
|
33
|
+
"border-radius": `${this.borderRadius}px`,
|
|
34
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
35
|
+
"margin-top": `${this.marginTop}px`,
|
|
36
|
+
"margin-left": `${this.marginLeft}px`,
|
|
37
|
+
"margin-right": `${this.marginRight}px`
|
|
38
|
+
};
|
|
39
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
40
|
+
}
|
|
41
|
+
renderImage() {
|
|
42
|
+
const e = {
|
|
43
|
+
width: `${this.width}`,
|
|
44
|
+
height: `${this.height}`,
|
|
45
|
+
"background-color": `${this.color}`,
|
|
46
|
+
"border-radius": `${this.borderRadius}px`,
|
|
47
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
48
|
+
"margin-top": `${this.marginTop}px`,
|
|
49
|
+
"margin-left": `${this.marginLeft}px`,
|
|
50
|
+
"margin-right": `${this.marginRight}px`
|
|
51
|
+
};
|
|
52
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Image " + (this.animation ? "Skeleton" : "") }));
|
|
53
|
+
}
|
|
54
|
+
renderTitle() {
|
|
55
|
+
const e = {
|
|
56
|
+
width: `${this.width}`,
|
|
57
|
+
height: `${this.height}`,
|
|
58
|
+
"background-color": `${this.color}`,
|
|
59
|
+
"border-radius": `${this.borderRadius}px`,
|
|
60
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
61
|
+
"margin-top": `${this.marginTop}px`,
|
|
62
|
+
"margin-left": `${this.marginLeft}px`,
|
|
63
|
+
"margin-right": `${this.marginRight}px`
|
|
64
|
+
};
|
|
65
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
66
|
+
}
|
|
67
|
+
renderText() {
|
|
68
|
+
const e = {
|
|
69
|
+
width: `${this.width}`,
|
|
70
|
+
height: `${this.height}`,
|
|
71
|
+
"background-color": `${this.color}`,
|
|
72
|
+
"border-radius": `${this.borderRadius}px`,
|
|
73
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
74
|
+
"margin-top": `${this.marginTop}px`,
|
|
75
|
+
"margin-left": `${this.marginLeft}px`,
|
|
76
|
+
"margin-right": `${this.marginRight}px`
|
|
77
|
+
};
|
|
78
|
+
return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((t, i) => r("div", { style: e, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
|
|
79
|
+
}
|
|
80
|
+
renderRectangle() {
|
|
81
|
+
const e = {
|
|
82
|
+
width: `${this.width}`,
|
|
83
|
+
height: `${this.height}`,
|
|
84
|
+
"background-color": `${this.color}`,
|
|
85
|
+
"border-radius": `${this.borderRadius}px`,
|
|
86
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
87
|
+
"margin-top": `${this.marginTop}px`,
|
|
88
|
+
"margin-left": `${this.marginLeft}px`,
|
|
89
|
+
"margin-right": `${this.marginRight}px`
|
|
90
|
+
};
|
|
91
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
92
|
+
}
|
|
93
|
+
renderCircle() {
|
|
94
|
+
const e = {
|
|
95
|
+
width: `${this.size}`,
|
|
96
|
+
height: `${this.size}`,
|
|
97
|
+
"background-color": `${this.color}`,
|
|
98
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
99
|
+
"margin-top": `${this.marginTop}px`,
|
|
100
|
+
"margin-left": `${this.marginLeft}px`,
|
|
101
|
+
"margin-right": `${this.marginRight}px`
|
|
102
|
+
};
|
|
103
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
104
|
+
}
|
|
105
|
+
componentDidLoad() {
|
|
106
|
+
this.updateStyles();
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
return this.handleStructure(this.structure);
|
|
110
|
+
}
|
|
111
|
+
static get watchers() {
|
|
112
|
+
return {
|
|
113
|
+
structure: ["handleStructureChange"],
|
|
114
|
+
primaryColor: ["updateStyles"],
|
|
115
|
+
secondaryColor: ["updateStyles"]
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
a.style = s;
|
|
120
|
+
export {
|
|
121
|
+
a as U
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index-ae04a8b1-jEvGbYrB.cjs"),n=".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,i=class{constructor(e){r.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,t){t!==e&&this.handleStructure(e)}updateStyles(){this.primaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color",this.primaryColor),this.secondaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color",this.secondaryColor)}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()}}renderLogo(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return Array.from({length:this.rows>0?this.rows:1}).map((t,o)=>r.h("div",{style:e,key:o,class:"Text "+(this.animation?"Skeleton":"")}))}renderRectangle(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){const e={width:`${this.size}`,height:`${this.size}`,"background-color":`${this.color}`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Circle "+(this.animation?"Skeleton":"")}))}componentDidLoad(){this.updateStyles()}render(){return this.handleStructure(this.structure)}static get watchers(){return{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}}};i.style=s;exports.UiSkeleton=i;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { r as o, h as r } from "./index-ae04a8b1-BhaHMrLE.js";
|
|
2
|
+
const n = ".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, t) {
|
|
7
|
+
t !== e && this.handleStructure(e);
|
|
8
|
+
}
|
|
9
|
+
updateStyles() {
|
|
10
|
+
this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
|
|
11
|
+
}
|
|
12
|
+
handleStructure(e) {
|
|
13
|
+
switch (e) {
|
|
14
|
+
case "logo":
|
|
15
|
+
return this.renderLogo();
|
|
16
|
+
case "image":
|
|
17
|
+
return this.renderImage();
|
|
18
|
+
case "title":
|
|
19
|
+
return this.renderTitle();
|
|
20
|
+
case "text":
|
|
21
|
+
return this.renderText();
|
|
22
|
+
case "rectangle":
|
|
23
|
+
return this.renderRectangle();
|
|
24
|
+
case "circle":
|
|
25
|
+
return this.renderCircle();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
renderLogo() {
|
|
29
|
+
const e = {
|
|
30
|
+
width: `${this.width}`,
|
|
31
|
+
height: `${this.height}`,
|
|
32
|
+
"background-color": `${this.color}`,
|
|
33
|
+
"border-radius": `${this.borderRadius}px`,
|
|
34
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
35
|
+
"margin-top": `${this.marginTop}px`,
|
|
36
|
+
"margin-left": `${this.marginLeft}px`,
|
|
37
|
+
"margin-right": `${this.marginRight}px`
|
|
38
|
+
};
|
|
39
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
40
|
+
}
|
|
41
|
+
renderImage() {
|
|
42
|
+
const e = {
|
|
43
|
+
width: `${this.width}`,
|
|
44
|
+
height: `${this.height}`,
|
|
45
|
+
"background-color": `${this.color}`,
|
|
46
|
+
"border-radius": `${this.borderRadius}px`,
|
|
47
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
48
|
+
"margin-top": `${this.marginTop}px`,
|
|
49
|
+
"margin-left": `${this.marginLeft}px`,
|
|
50
|
+
"margin-right": `${this.marginRight}px`
|
|
51
|
+
};
|
|
52
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Image " + (this.animation ? "Skeleton" : "") }));
|
|
53
|
+
}
|
|
54
|
+
renderTitle() {
|
|
55
|
+
const e = {
|
|
56
|
+
width: `${this.width}`,
|
|
57
|
+
height: `${this.height}`,
|
|
58
|
+
"background-color": `${this.color}`,
|
|
59
|
+
"border-radius": `${this.borderRadius}px`,
|
|
60
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
61
|
+
"margin-top": `${this.marginTop}px`,
|
|
62
|
+
"margin-left": `${this.marginLeft}px`,
|
|
63
|
+
"margin-right": `${this.marginRight}px`
|
|
64
|
+
};
|
|
65
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
66
|
+
}
|
|
67
|
+
renderText() {
|
|
68
|
+
const e = {
|
|
69
|
+
width: `${this.width}`,
|
|
70
|
+
height: `${this.height}`,
|
|
71
|
+
"background-color": `${this.color}`,
|
|
72
|
+
"border-radius": `${this.borderRadius}px`,
|
|
73
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
74
|
+
"margin-top": `${this.marginTop}px`,
|
|
75
|
+
"margin-left": `${this.marginLeft}px`,
|
|
76
|
+
"margin-right": `${this.marginRight}px`
|
|
77
|
+
};
|
|
78
|
+
return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((t, i) => r("div", { style: e, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
|
|
79
|
+
}
|
|
80
|
+
renderRectangle() {
|
|
81
|
+
const e = {
|
|
82
|
+
width: `${this.width}`,
|
|
83
|
+
height: `${this.height}`,
|
|
84
|
+
"background-color": `${this.color}`,
|
|
85
|
+
"border-radius": `${this.borderRadius}px`,
|
|
86
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
87
|
+
"margin-top": `${this.marginTop}px`,
|
|
88
|
+
"margin-left": `${this.marginLeft}px`,
|
|
89
|
+
"margin-right": `${this.marginRight}px`
|
|
90
|
+
};
|
|
91
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
92
|
+
}
|
|
93
|
+
renderCircle() {
|
|
94
|
+
const e = {
|
|
95
|
+
width: `${this.size}`,
|
|
96
|
+
height: `${this.size}`,
|
|
97
|
+
"background-color": `${this.color}`,
|
|
98
|
+
"margin-bottom": `${this.marginBottom}px`,
|
|
99
|
+
"margin-top": `${this.marginTop}px`,
|
|
100
|
+
"margin-left": `${this.marginLeft}px`,
|
|
101
|
+
"margin-right": `${this.marginRight}px`
|
|
102
|
+
};
|
|
103
|
+
return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
104
|
+
}
|
|
105
|
+
componentDidLoad() {
|
|
106
|
+
this.updateStyles();
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
return this.handleStructure(this.structure);
|
|
110
|
+
}
|
|
111
|
+
static get watchers() {
|
|
112
|
+
return {
|
|
113
|
+
structure: ["handleStructureChange"],
|
|
114
|
+
primaryColor: ["updateStyles"],
|
|
115
|
+
secondaryColor: ["updateStyles"]
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
a.style = s;
|
|
120
|
+
export {
|
|
121
|
+
a as U
|
|
122
|
+
};
|