@everymatrix/casino-my-games 1.69.0 → 1.69.2

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.
Files changed (41) hide show
  1. package/components/{CasinoFavoritesSection-BIU2Qa-B.cjs → CasinoFavoritesSection-BfziHlNF.cjs} +1 -1
  2. package/components/{CasinoFavoritesSection-cSl8mNcR.js → CasinoFavoritesSection-CMimy5Mu.js} +1 -1
  3. package/components/{CasinoFavoritesSection-Brfm2Y2R.js → CasinoFavoritesSection-DxVZhPsi.js} +1 -1
  4. package/components/{CasinoFilter-XO078DAr.cjs → CasinoFilter-2ebzVum2.cjs} +1 -1
  5. package/components/{CasinoFilter-BlgGJyYd.js → CasinoFilter-DVqcGl05.js} +1 -1
  6. package/components/{CasinoFilter-B0vfx0QK.js → CasinoFilter-rE4PqniS.js} +1 -1
  7. package/components/{CasinoGameThumbnail-CFfPR0_O.js → CasinoGameThumbnail-BHx9nmW2.js} +3 -3
  8. package/components/{CasinoGameThumbnail-C4OKw0-j.js → CasinoGameThumbnail-BuY7CEVt.js} +3 -3
  9. package/components/{CasinoGameThumbnail-CI1bUZRt.cjs → CasinoGameThumbnail-UCXwyGTe.cjs} +1 -1
  10. package/components/{CasinoGamesCategorySection-Cx8NRDlQ.js → CasinoGamesCategorySection-BAD2TEYt.js} +6 -6
  11. package/components/{CasinoGamesCategorySection-BLazwqWp.js → CasinoGamesCategorySection-D9rIODnO.js} +6 -6
  12. package/components/{CasinoGamesCategorySection-DpNSxEyS.cjs → CasinoGamesCategorySection-mitV7yMf.cjs} +1 -1
  13. package/components/{CasinoLastPlayedSection-V6eV3PL1.js → CasinoLastPlayedSection-CajcP0a4.js} +2 -2
  14. package/components/{CasinoLastPlayedSection-yxQyHMit.js → CasinoLastPlayedSection-DwEHrmMS.js} +2 -2
  15. package/components/{CasinoLastPlayedSection-CXGw1-KB.cjs → CasinoLastPlayedSection-sSKODtW7.cjs} +1 -1
  16. package/components/{CasinoMostPlayedSection-BnfUe9hn.js → CasinoMostPlayedSection-CIrHr2Fs.js} +2 -2
  17. package/components/{CasinoMostPlayedSection-SckK48k2.js → CasinoMostPlayedSection-DgMylWvY.js} +2 -2
  18. package/components/{CasinoMostPlayedSection-CYsBtB6_.cjs → CasinoMostPlayedSection-_zbkwJqz.cjs} +1 -1
  19. package/components/{CasinoMyGames-BWWCPuiR.js → CasinoMyGames-4E5EjNYs.js} +5 -5
  20. package/components/{CasinoMyGames-ufabYg4S.cjs → CasinoMyGames-CNBT_84y.cjs} +1 -1
  21. package/components/{CasinoMyGames-Ruj6Dbky.js → CasinoMyGames-DzipfSI4.js} +5 -5
  22. package/components/{CasinoSort-CtmGeHzN.cjs → CasinoSort-B-w_LYZC.cjs} +1 -1
  23. package/components/{CasinoSort-BIQuZQ8V.js → CasinoSort-Bwu6cvBl.js} +1 -1
  24. package/components/{CasinoSort-DcEIaFXM.js → CasinoSort-Cg0Un6xQ.js} +1 -1
  25. package/es2015/casino-my-games.cjs +1 -1
  26. package/es2015/casino-my-games.js +1 -1
  27. package/esnext/casino-my-games.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{index-97d17652-D5_8Vwfn.cjs → index-97d17652-CjAagVjG.cjs} +1 -1
  30. package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-D1-6d0Bk.js} +1 -1
  31. package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-IdX2D3yt.js} +1 -1
  32. package/stencil/{ui-image-CmwNU-jf.js → ui-image-C6J6vPTv.js} +2 -2
  33. package/stencil/{ui-image-CMb1eK44.cjs → ui-image-CpMjzwxS.cjs} +1 -1
  34. package/stencil/{ui-image-CQQDA5b0.js → ui-image-DT3VkYPr.js} +2 -2
  35. package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-C2NxBIqB.js} +1 -1
  36. package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-CSbk4a-_.js} +1 -1
  37. package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DtQlRvK7.cjs} +1 -1
  38. package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-BjVQzUTV.js} +63 -43
  39. package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-CaETIZEN.js} +63 -43
  40. package/stencil/ui-image_2-gOIKmeIr.cjs +73 -0
  41. package/stencil/ui-image_2-YkYxLKu7.cjs +0 -73
@@ -1,12 +1,32 @@
1
- import { U as h } from "./ui-image-b7b48fe5-V9vp4faA.js";
2
- import { r as o, h as t, H as i } from "./index-97d17652-BEnqZAxL.js";
3
- 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, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
1
+ import { U as m } from "./ui-image-b7b48fe5-C2NxBIqB.js";
2
+ import { r as i, h as t, H as o } from "./index-97d17652-IdX2D3yt.js";
3
+ 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, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, l = class {
4
4
  constructor(e) {
5
- 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
+ i(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
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%", this.color = "#c2c2c2", this.primaryColor = "#c2c2c2", this.secondaryColor = "#ffffff";
6
14
  }
7
15
  handleStructureChange(e, r) {
8
16
  r !== e && this.handleStructure(e);
9
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
+ }
10
30
  handleStructure(e) {
11
31
  switch (e) {
12
32
  case "logo":
@@ -49,13 +69,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
49
69
  case "logo":
50
70
  e = `
51
71
  :host {
52
- --emw-skeleton-logo-width: ${this.width};
53
- --emw-skeleton-logo-height: ${this.height};
54
- --emw-skeleton-logo-border-radius: ${this.borderRadius}px;
55
- --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
56
- --emw-skeleton-logo-margin-top: ${this.marginTop}px;
57
- --emw-skeleton-logo-margin-left: ${this.marginLeft}px;
58
- --emw-skeleton-logo-margin-right: ${this.marginRight}px;
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};
59
79
  --emw-skeleton-logo-background: ${this.color};
60
80
  --emw-skeleton-primary-color: ${this.primaryColor};
61
81
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -65,13 +85,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
65
85
  case "image":
66
86
  e = `
67
87
  :host {
68
- --emw-skeleton-image-width: ${this.width};
69
- --emw-skeleton-image-height: ${this.height};
70
- --emw-skeleton-image-border-radius: ${this.borderRadius}px;
71
- --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
72
- --emw-skeleton-image-margin-top: ${this.marginTop}px;
73
- --emw-skeleton-image-margin-left: ${this.marginLeft}px;
74
- --emw-skeleton-image-margin-right: ${this.marginRight}px;
88
+ --emw-skeleton-image-width: ${this.stylingValue.width};
89
+ --emw-skeleton-image-height: ${this.stylingValue.height};
90
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
91
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
92
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
93
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
94
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
75
95
  --emw-skeleton-image-background: ${this.color};
76
96
  --emw-skeleton-primary-color: ${this.primaryColor};
77
97
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -81,13 +101,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
81
101
  case "title":
82
102
  e = `
83
103
  :host {
84
- --emw-skeleton-title-width: ${this.width};
85
- --emw-skeleton-title-height: ${this.height};
86
- --emw-skeleton-title-border-radius: ${this.borderRadius}px;
87
- --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
88
- --emw-skeleton-title-margin-top: ${this.marginTop}px;
89
- --emw-skeleton-title-margin-left: ${this.marginLeft}px;
90
- --emw-skeleton-title-margin-right: ${this.marginRight}px;
104
+ --emw-skeleton-title-width: ${this.stylingValue.width};
105
+ --emw-skeleton-title-height: ${this.stylingValue.height};
106
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
107
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
108
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
109
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
110
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
91
111
  --emw-skeleton-title-background: ${this.color};
92
112
  --emw-skeleton-primary-color: ${this.primaryColor};
93
113
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -97,13 +117,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
97
117
  case "text":
98
118
  e = `
99
119
  :host {
100
- --emw-skeleton-text-width: ${this.width};
101
- --emw-skeleton-text-height: ${this.height};
102
- --emw-skeleton-text-border-radius: ${this.borderRadius}px;
103
- --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
104
- --emw-skeleton-text-margin-top: ${this.marginTop}px;
105
- --emw-skeleton-text-margin-left: ${this.marginLeft}px;
106
- --emw-skeleton-text-margin-right: ${this.marginRight}px;
120
+ --emw-skeleton-text-width: ${this.stylingValue.width};
121
+ --emw-skeleton-text-height: ${this.stylingValue.height};
122
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
123
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
124
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
125
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
126
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
107
127
  --emw-skeleton-text-background: ${this.color};
108
128
  --emw-skeleton-primary-color: ${this.primaryColor};
109
129
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -113,13 +133,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
113
133
  case "rectangle":
114
134
  e = `
115
135
  :host {
116
- --emw-skeleton-rectangle-width: ${this.width};
117
- --emw-skeleton-rectangle-height: ${this.height};
118
- --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
119
- --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
120
- --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
121
- --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
122
- --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
136
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
137
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
138
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
139
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
140
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
141
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
142
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
123
143
  --emw-skeleton-rectangle-background: ${this.color};
124
144
  --emw-skeleton-primary-color: ${this.primaryColor};
125
145
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -139,7 +159,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
139
159
  default:
140
160
  e = "";
141
161
  }
142
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
162
+ return t(o, { key: "5c185b76c438d20d4ad88bc48d94ff5628410bb7" }, t("style", { key: "de95e60a5955d5b2af83710423fe40329c187f7e" }, e), this.handleStructure(this.structure));
143
163
  }
144
164
  static get watchers() {
145
165
  return {
@@ -147,8 +167,8 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
147
167
  };
148
168
  }
149
169
  };
150
- a.style = s;
170
+ l.style = s;
151
171
  export {
152
- h as ui_image,
153
- a as ui_skeleton
172
+ m as ui_image,
173
+ l as ui_skeleton
154
174
  };
@@ -1,12 +1,32 @@
1
- import { U as h } from "./ui-image-b7b48fe5-Cf9Vq5pI.js";
2
- import { r as o, h as t, H as i } from "./index-97d17652-WK_DbPS4.js";
3
- 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, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
1
+ import { U as m } from "./ui-image-b7b48fe5-CSbk4a-_.js";
2
+ import { r as i, h as t, H as o } from "./index-97d17652-D1-6d0Bk.js";
3
+ 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, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, l = class {
4
4
  constructor(e) {
5
- 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
+ i(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
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%", this.color = "#c2c2c2", this.primaryColor = "#c2c2c2", this.secondaryColor = "#ffffff";
6
14
  }
7
15
  handleStructureChange(e, r) {
8
16
  r !== e && this.handleStructure(e);
9
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
+ }
10
30
  handleStructure(e) {
11
31
  switch (e) {
12
32
  case "logo":
@@ -49,13 +69,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
49
69
  case "logo":
50
70
  e = `
51
71
  :host {
52
- --emw-skeleton-logo-width: ${this.width};
53
- --emw-skeleton-logo-height: ${this.height};
54
- --emw-skeleton-logo-border-radius: ${this.borderRadius}px;
55
- --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
56
- --emw-skeleton-logo-margin-top: ${this.marginTop}px;
57
- --emw-skeleton-logo-margin-left: ${this.marginLeft}px;
58
- --emw-skeleton-logo-margin-right: ${this.marginRight}px;
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};
59
79
  --emw-skeleton-logo-background: ${this.color};
60
80
  --emw-skeleton-primary-color: ${this.primaryColor};
61
81
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -65,13 +85,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
65
85
  case "image":
66
86
  e = `
67
87
  :host {
68
- --emw-skeleton-image-width: ${this.width};
69
- --emw-skeleton-image-height: ${this.height};
70
- --emw-skeleton-image-border-radius: ${this.borderRadius}px;
71
- --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
72
- --emw-skeleton-image-margin-top: ${this.marginTop}px;
73
- --emw-skeleton-image-margin-left: ${this.marginLeft}px;
74
- --emw-skeleton-image-margin-right: ${this.marginRight}px;
88
+ --emw-skeleton-image-width: ${this.stylingValue.width};
89
+ --emw-skeleton-image-height: ${this.stylingValue.height};
90
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
91
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
92
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
93
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
94
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
75
95
  --emw-skeleton-image-background: ${this.color};
76
96
  --emw-skeleton-primary-color: ${this.primaryColor};
77
97
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -81,13 +101,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
81
101
  case "title":
82
102
  e = `
83
103
  :host {
84
- --emw-skeleton-title-width: ${this.width};
85
- --emw-skeleton-title-height: ${this.height};
86
- --emw-skeleton-title-border-radius: ${this.borderRadius}px;
87
- --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
88
- --emw-skeleton-title-margin-top: ${this.marginTop}px;
89
- --emw-skeleton-title-margin-left: ${this.marginLeft}px;
90
- --emw-skeleton-title-margin-right: ${this.marginRight}px;
104
+ --emw-skeleton-title-width: ${this.stylingValue.width};
105
+ --emw-skeleton-title-height: ${this.stylingValue.height};
106
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
107
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
108
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
109
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
110
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
91
111
  --emw-skeleton-title-background: ${this.color};
92
112
  --emw-skeleton-primary-color: ${this.primaryColor};
93
113
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -97,13 +117,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
97
117
  case "text":
98
118
  e = `
99
119
  :host {
100
- --emw-skeleton-text-width: ${this.width};
101
- --emw-skeleton-text-height: ${this.height};
102
- --emw-skeleton-text-border-radius: ${this.borderRadius}px;
103
- --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
104
- --emw-skeleton-text-margin-top: ${this.marginTop}px;
105
- --emw-skeleton-text-margin-left: ${this.marginLeft}px;
106
- --emw-skeleton-text-margin-right: ${this.marginRight}px;
120
+ --emw-skeleton-text-width: ${this.stylingValue.width};
121
+ --emw-skeleton-text-height: ${this.stylingValue.height};
122
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
123
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
124
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
125
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
126
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
107
127
  --emw-skeleton-text-background: ${this.color};
108
128
  --emw-skeleton-primary-color: ${this.primaryColor};
109
129
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -113,13 +133,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
113
133
  case "rectangle":
114
134
  e = `
115
135
  :host {
116
- --emw-skeleton-rectangle-width: ${this.width};
117
- --emw-skeleton-rectangle-height: ${this.height};
118
- --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
119
- --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
120
- --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
121
- --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
122
- --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
136
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
137
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
138
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
139
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
140
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
141
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
142
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
123
143
  --emw-skeleton-rectangle-background: ${this.color};
124
144
  --emw-skeleton-primary-color: ${this.primaryColor};
125
145
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -139,7 +159,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
139
159
  default:
140
160
  e = "";
141
161
  }
142
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
162
+ return t(o, { key: "5c185b76c438d20d4ad88bc48d94ff5628410bb7" }, t("style", { key: "de95e60a5955d5b2af83710423fe40329c187f7e" }, e), this.handleStructure(this.structure));
143
163
  }
144
164
  static get watchers() {
145
165
  return {
@@ -147,8 +167,8 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
147
167
  };
148
168
  }
149
169
  };
150
- a.style = s;
170
+ l.style = s;
151
171
  export {
152
- h as ui_image,
153
- a as ui_skeleton
172
+ m as ui_image,
173
+ l as ui_skeleton
154
174
  };
@@ -0,0 +1,73 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ui-image-b7b48fe5-DtQlRvK7.cjs"),t=require("./index-97d17652-CjAagVjG.cjs"),n=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,r=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
+ :host {
3
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
4
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
5
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
+ --emw-skeleton-logo-background: ${this.color};
11
+ --emw-skeleton-primary-color: ${this.primaryColor};
12
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
13
+ }
14
+ `;break;case"image":e=`
15
+ :host {
16
+ --emw-skeleton-image-width: ${this.stylingValue.width};
17
+ --emw-skeleton-image-height: ${this.stylingValue.height};
18
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
19
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
20
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
21
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
22
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
23
+ --emw-skeleton-image-background: ${this.color};
24
+ --emw-skeleton-primary-color: ${this.primaryColor};
25
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
26
+ }
27
+ `;break;case"title":e=`
28
+ :host {
29
+ --emw-skeleton-title-width: ${this.stylingValue.width};
30
+ --emw-skeleton-title-height: ${this.stylingValue.height};
31
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
32
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
33
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
34
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
35
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
36
+ --emw-skeleton-title-background: ${this.color};
37
+ --emw-skeleton-primary-color: ${this.primaryColor};
38
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
39
+ }
40
+ `;break;case"text":e=`
41
+ :host {
42
+ --emw-skeleton-text-width: ${this.stylingValue.width};
43
+ --emw-skeleton-text-height: ${this.stylingValue.height};
44
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
45
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
46
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
47
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
48
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
49
+ --emw-skeleton-text-background: ${this.color};
50
+ --emw-skeleton-primary-color: ${this.primaryColor};
51
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
52
+ }
53
+ `;break;case"rectangle":e=`
54
+ :host {
55
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
56
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
57
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
58
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
59
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
60
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
61
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
62
+ --emw-skeleton-rectangle-background: ${this.color};
63
+ --emw-skeleton-primary-color: ${this.primaryColor};
64
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
65
+ }
66
+ `;break;case"circle":e=`
67
+ :host {
68
+ --emw-skeleton-circle-size: ${this.size};
69
+ --emw-skeleton-circle-background: ${this.color};
70
+ --emw-skeleton-primary-color: ${this.primaryColor};
71
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
72
+ }
73
+ `;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=s;exports.ui_image=o.UiImage;exports.ui_skeleton=r;
@@ -1,73 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./ui-image-b7b48fe5-DCck2kk1.cjs"),t=require("./index-97d17652-D5_8Vwfn.cjs"),n=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,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:"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:"3bb792a149db7fe732d5cbfa092cdb4d6ca0689e"},t.h("style",{key:"a4607599b60659f385ae2660513e38b383739674"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=s;exports.ui_image=i.UiImage;exports.ui_skeleton=o;