@everymatrix/casino-tournaments-controller 1.69.0 → 1.69.3
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/{CasinoTournamentsController-CtQ0SbZ1.js → CasinoTournamentsController-BZwjbrSZ.js} +2 -2
- package/components/{CasinoTournamentsController-C99E3MCm.cjs → CasinoTournamentsController-DAlc6v5q.cjs} +1 -1
- package/components/{CasinoTournamentsController-Dv0w6uxv.js → CasinoTournamentsController-p7gjjT1w.js} +2 -2
- package/components/{CasinoTournamentsFilterController-ZPodzMjS.js → CasinoTournamentsFilterController-BI_0hGFs.js} +1 -1
- package/components/{CasinoTournamentsFilterController-D8z30hIO.cjs → CasinoTournamentsFilterController-Bv5gIhxj.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-CA_x2Klb.js → CasinoTournamentsFilterController-Z_1NYZzY.js} +1 -1
- package/components/{CasinoTournamentsListController-CMsPWeSH.cjs → CasinoTournamentsListController--z4a7-nE.cjs} +2 -2
- package/components/{CasinoTournamentsListController-CWtG_Kjm.js → CasinoTournamentsListController-BToJ8qHl.js} +2 -2
- package/components/{CasinoTournamentsListController-BYjVebPq.js → CasinoTournamentsListController-cgtk4TWs.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-DIFGhQrc.js → CasinoTournamentsThumbnail-BC0jFANl.js} +3 -3
- package/components/{CasinoTournamentsThumbnail-zXFGDGG1.cjs → CasinoTournamentsThumbnail-BQHugN2I.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-Dtfyse7r.js → CasinoTournamentsThumbnail-CwzOc7jo.js} +3 -3
- package/components/CasinoTournamentsThumbnailController-BKtxzWkD.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailController-DChZllZ4.js → CasinoTournamentsThumbnailController-CbpgocJ9.js} +449 -430
- package/components/{CasinoTournamentsThumbnailController-cPtKiglf.js → CasinoTournamentsThumbnailController-DUB-VRSp.js} +441 -422
- package/components/{CasinoTournamentsThumbnailDuration-DFTngt18.js → CasinoTournamentsThumbnailDuration-B-V7VghJ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CRqfmGfU.js → CasinoTournamentsThumbnailDuration-BexSQUbu.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs → CasinoTournamentsThumbnailDuration-Db9uPVxy.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js → CasinoTournamentsThumbnailGamesSlider-CnnMVGGJ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js → CasinoTournamentsThumbnailGamesSlider-DXxNltWN.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs → CasinoTournamentsThumbnailGamesSlider-DYYLrAzR.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-C1nsvr3R.js → CasinoTournamentsThumbnailPrizes-AaQiBGg6.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs → CasinoTournamentsThumbnailPrizes-DrpShjGg.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js → CasinoTournamentsThumbnailPrizes-XmtkuFg5.js} +1 -1
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-B0NIExnR.js} +1 -1
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-D6HPqRtr.js} +1 -1
- package/stencil/{index-97d17652-D5_8Vwfn.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
- package/stencil/{index-b2193545-CFn9dM-v.js → index-b2193545-BS7xFIk4.js} +1 -1
- package/stencil/{index-b2193545-DPygl1Qn.cjs → index-b2193545-BTdVi7--.cjs} +1 -1
- package/stencil/{index-b2193545-BOMvxBzV.js → index-b2193545-rfNAj6ri.js} +1 -1
- package/stencil/ui-image-B374V2Sk.js +7 -0
- package/stencil/ui-image-BBrwf8a4.cjs +1 -0
- package/stencil/ui-image-CQSJVNNX.js +25 -0
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
- package/stencil/ui-image_2-DbQ7SENq.js +157 -0
- package/stencil/ui-image_2-L-CYescb.js +157 -0
- package/stencil/ui-skeleton-B0BB970e.cjs +1 -0
- package/stencil/ui-skeleton-D8L-WY77.js +29 -0
- package/stencil/ui-skeleton-DSebcnN1.js +11 -0
- package/stencil/ui-skeleton-ae35c6f2-BH4D8vHD.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-CcPx4a2P.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-DDiK5zGt.cjs +55 -0
- package/components/CasinoTournamentsThumbnailController-Cjehrx7D.cjs +0 -1
- package/stencil/ui-image-3hy4ZvUC.js +0 -25
- package/stencil/ui-image-D0wxuPze.js +0 -7
- package/stencil/ui-image-DE8MJHCZ.cjs +0 -1
- package/stencil/ui-image_2-B56t6kXT.js +0 -154
- package/stencil/ui-image_2-BncuYpLi.js +0 -154
- package/stencil/ui-image_2-YkYxLKu7.cjs +0 -73
- package/stencil/ui-skeleton-1cb75d00-B-R8GbLJ.js +0 -152
- package/stencil/ui-skeleton-1cb75d00-BTnhspbc.cjs +0 -73
- package/stencil/ui-skeleton-1cb75d00-Dy30RNE6.js +0 -152
- package/stencil/ui-skeleton-CVBjRUvi.js +0 -29
- package/stencil/ui-skeleton-RkXNxPG1.js +0 -11
- package/stencil/ui-skeleton-se83zfWh.cjs +0 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-c0NIgcTj.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-97d17652-D6HPqRtr.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
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.stylingValue = {
|
|
6
|
+
width: this.handleStylingProps(this.width),
|
|
7
|
+
height: this.handleStylingProps(this.height),
|
|
8
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
9
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
10
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
11
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
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%";
|
|
15
|
+
}
|
|
16
|
+
handleStructureChange(e, i) {
|
|
17
|
+
i !== e && this.handleStructure(e);
|
|
18
|
+
}
|
|
19
|
+
handleStylingProps(e) {
|
|
20
|
+
switch (typeof e) {
|
|
21
|
+
case "number":
|
|
22
|
+
return e === 0 ? 0 : `${e}px`;
|
|
23
|
+
case "undefined":
|
|
24
|
+
return "unset";
|
|
25
|
+
case "string":
|
|
26
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
27
|
+
default:
|
|
28
|
+
return "unset";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
handleStructure(e) {
|
|
32
|
+
switch (e) {
|
|
33
|
+
case "logo":
|
|
34
|
+
return this.renderLogo();
|
|
35
|
+
case "image":
|
|
36
|
+
return this.renderImage();
|
|
37
|
+
case "title":
|
|
38
|
+
return this.renderTitle();
|
|
39
|
+
case "text":
|
|
40
|
+
return this.renderText();
|
|
41
|
+
case "rectangle":
|
|
42
|
+
return this.renderRectangle();
|
|
43
|
+
case "circle":
|
|
44
|
+
return this.renderCircle();
|
|
45
|
+
default:
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
renderLogo() {
|
|
50
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
51
|
+
}
|
|
52
|
+
renderImage() {
|
|
53
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
54
|
+
}
|
|
55
|
+
renderTitle() {
|
|
56
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
57
|
+
}
|
|
58
|
+
renderText() {
|
|
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" : "") })));
|
|
60
|
+
}
|
|
61
|
+
renderRectangle() {
|
|
62
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
63
|
+
}
|
|
64
|
+
renderCircle() {
|
|
65
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
let e = "";
|
|
69
|
+
switch (this.structure) {
|
|
70
|
+
case "logo":
|
|
71
|
+
e = `
|
|
72
|
+
:host {
|
|
73
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
74
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
75
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
76
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
77
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
78
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
79
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
break;
|
|
83
|
+
case "image":
|
|
84
|
+
e = `
|
|
85
|
+
:host {
|
|
86
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
87
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
88
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
89
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
90
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
91
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
92
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "title":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
100
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
101
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
102
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
103
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
104
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
105
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
break;
|
|
109
|
+
case "text":
|
|
110
|
+
e = `
|
|
111
|
+
:host {
|
|
112
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
113
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
114
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
115
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
116
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
117
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
118
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
break;
|
|
122
|
+
case "rectangle":
|
|
123
|
+
e = `
|
|
124
|
+
:host {
|
|
125
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
126
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
127
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
128
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
129
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
130
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
131
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
break;
|
|
135
|
+
case "circle":
|
|
136
|
+
e = `
|
|
137
|
+
:host {
|
|
138
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
e = "";
|
|
144
|
+
}
|
|
145
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
146
|
+
}
|
|
147
|
+
static get watchers() {
|
|
148
|
+
return {
|
|
149
|
+
structure: ["handleStructureChange"]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
l.style = a;
|
|
154
|
+
export {
|
|
155
|
+
m as ui_image,
|
|
156
|
+
l as ui_skeleton
|
|
157
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.stylingValue = {
|
|
6
|
+
width: this.handleStylingProps(this.width),
|
|
7
|
+
height: this.handleStylingProps(this.height),
|
|
8
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
9
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
10
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
11
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
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%";
|
|
15
|
+
}
|
|
16
|
+
handleStructureChange(e, i) {
|
|
17
|
+
i !== e && this.handleStructure(e);
|
|
18
|
+
}
|
|
19
|
+
handleStylingProps(e) {
|
|
20
|
+
switch (typeof e) {
|
|
21
|
+
case "number":
|
|
22
|
+
return e === 0 ? 0 : `${e}px`;
|
|
23
|
+
case "undefined":
|
|
24
|
+
return "unset";
|
|
25
|
+
case "string":
|
|
26
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
27
|
+
default:
|
|
28
|
+
return "unset";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
handleStructure(e) {
|
|
32
|
+
switch (e) {
|
|
33
|
+
case "logo":
|
|
34
|
+
return this.renderLogo();
|
|
35
|
+
case "image":
|
|
36
|
+
return this.renderImage();
|
|
37
|
+
case "title":
|
|
38
|
+
return this.renderTitle();
|
|
39
|
+
case "text":
|
|
40
|
+
return this.renderText();
|
|
41
|
+
case "rectangle":
|
|
42
|
+
return this.renderRectangle();
|
|
43
|
+
case "circle":
|
|
44
|
+
return this.renderCircle();
|
|
45
|
+
default:
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
renderLogo() {
|
|
50
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
51
|
+
}
|
|
52
|
+
renderImage() {
|
|
53
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
54
|
+
}
|
|
55
|
+
renderTitle() {
|
|
56
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
57
|
+
}
|
|
58
|
+
renderText() {
|
|
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" : "") })));
|
|
60
|
+
}
|
|
61
|
+
renderRectangle() {
|
|
62
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
63
|
+
}
|
|
64
|
+
renderCircle() {
|
|
65
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
let e = "";
|
|
69
|
+
switch (this.structure) {
|
|
70
|
+
case "logo":
|
|
71
|
+
e = `
|
|
72
|
+
:host {
|
|
73
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
74
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
75
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
76
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
77
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
78
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
79
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
break;
|
|
83
|
+
case "image":
|
|
84
|
+
e = `
|
|
85
|
+
:host {
|
|
86
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
87
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
88
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
89
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
90
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
91
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
92
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "title":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
100
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
101
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
102
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
103
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
104
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
105
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
break;
|
|
109
|
+
case "text":
|
|
110
|
+
e = `
|
|
111
|
+
:host {
|
|
112
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
113
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
114
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
115
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
116
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
117
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
118
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
break;
|
|
122
|
+
case "rectangle":
|
|
123
|
+
e = `
|
|
124
|
+
:host {
|
|
125
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
126
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
127
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
128
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
129
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
130
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
131
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
break;
|
|
135
|
+
case "circle":
|
|
136
|
+
e = `
|
|
137
|
+
:host {
|
|
138
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
e = "";
|
|
144
|
+
}
|
|
145
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
146
|
+
}
|
|
147
|
+
static get watchers() {
|
|
148
|
+
return {
|
|
149
|
+
structure: ["handleStructureChange"]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
l.style = a;
|
|
154
|
+
export {
|
|
155
|
+
m as ui_image,
|
|
156
|
+
l as ui_skeleton
|
|
157
|
+
};
|
|
@@ -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-BTdVi7--.cjs"),p=require("./app-globals-0f993ce5-DgOnOgxM.cjs"),g=require("./ui-skeleton-ae35c6f2-DDiK5zGt.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-B0BB970e.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$1(),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;
|
|
@@ -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-rfNAj6ri.js";
|
|
18
|
+
import { a as h } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
|
19
|
+
import { U as k } from "./ui-skeleton-ae35c6f2-CcPx4a2P.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-BS7xFIk4.js";
|
|
2
|
+
import { a } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
|
3
|
+
import { U as g } from "./ui-skeleton-ae35c6f2-BH4D8vHD.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,155 @@
|
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-BS7xFIk4.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
|
+
constructor(e) {
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
|
+
width: this.handleStylingProps(this.width),
|
|
6
|
+
height: this.handleStylingProps(this.height),
|
|
7
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
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%";
|
|
14
|
+
}
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
17
|
+
}
|
|
18
|
+
handleStylingProps(e) {
|
|
19
|
+
switch (typeof e) {
|
|
20
|
+
case "number":
|
|
21
|
+
return e === 0 ? 0 : `${e}px`;
|
|
22
|
+
case "undefined":
|
|
23
|
+
return "unset";
|
|
24
|
+
case "string":
|
|
25
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
26
|
+
default:
|
|
27
|
+
return "unset";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
handleStructure(e) {
|
|
31
|
+
switch (e) {
|
|
32
|
+
case "logo":
|
|
33
|
+
return this.renderLogo();
|
|
34
|
+
case "image":
|
|
35
|
+
return this.renderImage();
|
|
36
|
+
case "title":
|
|
37
|
+
return this.renderTitle();
|
|
38
|
+
case "text":
|
|
39
|
+
return this.renderText();
|
|
40
|
+
case "rectangle":
|
|
41
|
+
return this.renderRectangle();
|
|
42
|
+
case "circle":
|
|
43
|
+
return this.renderCircle();
|
|
44
|
+
default:
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
renderLogo() {
|
|
49
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
50
|
+
}
|
|
51
|
+
renderImage() {
|
|
52
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
53
|
+
}
|
|
54
|
+
renderTitle() {
|
|
55
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
56
|
+
}
|
|
57
|
+
renderText() {
|
|
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" : "") })));
|
|
59
|
+
}
|
|
60
|
+
renderRectangle() {
|
|
61
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
62
|
+
}
|
|
63
|
+
renderCircle() {
|
|
64
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
let e = "";
|
|
68
|
+
switch (this.structure) {
|
|
69
|
+
case "logo":
|
|
70
|
+
e = `
|
|
71
|
+
:host {
|
|
72
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
73
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
74
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
75
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
76
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
77
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
78
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
break;
|
|
82
|
+
case "image":
|
|
83
|
+
e = `
|
|
84
|
+
:host {
|
|
85
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
86
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
87
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
88
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
89
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
90
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
91
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
break;
|
|
95
|
+
case "title":
|
|
96
|
+
e = `
|
|
97
|
+
:host {
|
|
98
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
99
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
100
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
101
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
102
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
103
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
104
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
break;
|
|
108
|
+
case "text":
|
|
109
|
+
e = `
|
|
110
|
+
:host {
|
|
111
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
112
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
113
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
114
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
115
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
116
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
117
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
break;
|
|
121
|
+
case "rectangle":
|
|
122
|
+
e = `
|
|
123
|
+
:host {
|
|
124
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
125
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
126
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
127
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
128
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
129
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
130
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
break;
|
|
134
|
+
case "circle":
|
|
135
|
+
e = `
|
|
136
|
+
:host {
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
140
|
+
break;
|
|
141
|
+
default:
|
|
142
|
+
e = "";
|
|
143
|
+
}
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
145
|
+
}
|
|
146
|
+
static get watchers() {
|
|
147
|
+
return {
|
|
148
|
+
structure: ["handleStructureChange"]
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
l.style = a;
|
|
153
|
+
export {
|
|
154
|
+
l as U
|
|
155
|
+
};
|