@everymatrix/casino-lobby 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.
Files changed (101) hide show
  1. package/components/{CasinoCalendar-DopuyFlO.cjs → CasinoCalendar-AXQVreyU.cjs} +1 -1
  2. package/components/{CasinoCalendar-B6uiocPT.js → CasinoCalendar-DhXVMCwY.js} +2 -2
  3. package/components/{CasinoCalendar-YTX3d_xR.js → CasinoCalendar-DvsJjQR1.js} +2 -2
  4. package/components/{CasinoCalendarDailyDetails-BUfFLbLi.js → CasinoCalendarDailyDetails-3oURZ5eN.js} +2 -2
  5. package/components/{CasinoCalendarDailyDetails-YEnViudD.cjs → CasinoCalendarDailyDetails-CwCMdOjj.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-BBk7ltH0.js → CasinoCalendarDailyDetails-vDlTL1Mz.js} +2 -2
  7. package/components/{CasinoCalendarDailyItem-CoS5mSdC.js → CasinoCalendarDailyItem-AfCjN4cZ.js} +2 -2
  8. package/components/{CasinoCalendarDailyItem-02T11Hoc.cjs → CasinoCalendarDailyItem-B_wuJUTQ.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-CmyuLjLN.js → CasinoCalendarDailyItem-C73xrNhc.js} +2 -2
  10. package/components/{CasinoCategoriesSlider-Pe0_bkzG.js → CasinoCategoriesSlider-CyDPRdsd.js} +2 -2
  11. package/components/{CasinoCategoriesSlider-B3XVkoHt.cjs → CasinoCategoriesSlider-DwkYkIgL.cjs} +1 -1
  12. package/components/{CasinoCategoriesSlider-CODS6otl.js → CasinoCategoriesSlider-wQphiOTZ.js} +2 -2
  13. package/components/{CasinoCollectionsProviders-Dmoc_iWB.cjs → CasinoCollectionsProviders-BeXo3fMU.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-Cp2-ybfy.js → CasinoCollectionsProviders-DdKrem8d.js} +1 -1
  15. package/components/{CasinoCollectionsProviders-DIb0EgZX.js → CasinoCollectionsProviders-y8DOcY5N.js} +1 -1
  16. package/components/{CasinoFavoritesSection-D62F6LkA.js → CasinoFavoritesSection-1S2Lz3SW.js} +2 -2
  17. package/components/{CasinoFavoritesSection-v5Nzok_w.js → CasinoFavoritesSection-CnbnFYOu.js} +2 -2
  18. package/components/{CasinoFavoritesSection-AbDiuIbR.cjs → CasinoFavoritesSection-DQujG-Lp.cjs} +1 -1
  19. package/components/{CasinoFilter-BnS5pRno.js → CasinoFilter-BpDGbk8K.js} +1 -1
  20. package/components/{CasinoFilter-C7tklnuL.js → CasinoFilter-Cse_ikkf.js} +1 -1
  21. package/components/{CasinoFilter-IiM3HeFb.cjs → CasinoFilter-_UA3RCLF.cjs} +1 -1
  22. package/components/{CasinoGameThumbnail-DatKA9w3.cjs → CasinoGameThumbnail-BMHMTqRz.cjs} +1 -1
  23. package/components/{CasinoGameThumbnail-BTP_aUWZ.js → CasinoGameThumbnail-IDaFl1Xu.js} +2 -2
  24. package/components/{CasinoGameThumbnail-CGn0oGiJ.js → CasinoGameThumbnail-w3iktaO3.js} +2 -2
  25. package/components/{CasinoGamesCategorySection-BPKGXDin.cjs → CasinoGamesCategorySection-7SaTNcrq.cjs} +1 -1
  26. package/components/{CasinoGamesCategorySection-B_hC0xh8.js → CasinoGamesCategorySection-CXpdNAsb.js} +5 -5
  27. package/components/{CasinoGamesCategorySection-CulWG5wp.js → CasinoGamesCategorySection-DBwkLn0s.js} +5 -5
  28. package/components/{CasinoJackpotBanner-wFZ1ASTd.js → CasinoJackpotBanner-BdsQyC0k.js} +2 -2
  29. package/components/{CasinoJackpotBanner-D6YKp4Tx.js → CasinoJackpotBanner-C-kNRiwQ.js} +2 -2
  30. package/components/{CasinoJackpotBanner-CEbk68FA.cjs → CasinoJackpotBanner-Drezj591.cjs} +1 -1
  31. package/components/{CasinoLastPlayedSection-C8iC5pfH.cjs → CasinoLastPlayedSection-B1jO-mOv.cjs} +1 -1
  32. package/components/{CasinoLastPlayedSection-C_lqu4Wt.js → CasinoLastPlayedSection-B2mAuumq.js} +2 -2
  33. package/components/{CasinoLastPlayedSection-CxzPWXWp.js → CasinoLastPlayedSection-BTbqG2PY.js} +2 -2
  34. package/components/{CasinoLobby-D9_of6Id.js → CasinoLobby-B9wH9ODi.js} +3 -3
  35. package/components/{CasinoLobby-DOsDfgLg.cjs → CasinoLobby-DZJ49SFm.cjs} +1 -1
  36. package/components/{CasinoLobby-DNDWujJj.js → CasinoLobby-Pkj77WT7.js} +3 -3
  37. package/components/{CasinoMostPlayedSection-BVF4uJ7K.js → CasinoMostPlayedSection-B6pGhulE.js} +2 -2
  38. package/components/{CasinoMostPlayedSection-B0q8loO7.js → CasinoMostPlayedSection-BVOuvFg1.js} +2 -2
  39. package/components/{CasinoMostPlayedSection-BQ1LAnE7.cjs → CasinoMostPlayedSection-BxyvkBdO.cjs} +1 -1
  40. package/components/{CasinoMyGames-C2Nk9R9W.js → CasinoMyGames-CHFQjUsl.js} +4 -4
  41. package/components/{CasinoMyGames-De4Ckz-L.cjs → CasinoMyGames-DgK12Kjb.cjs} +1 -1
  42. package/components/{CasinoMyGames-Cb9-clIx.js → CasinoMyGames-j_rSFYAE.js} +4 -4
  43. package/components/{CasinoPage-aHOqPZuY.js → CasinoPage-CRbyYPXJ.js} +510 -481
  44. package/components/{CasinoPage-KygmO0jD.js → CasinoPage-DGeCLgVG.js} +496 -467
  45. package/components/CasinoPage-DQ1ECUsI.cjs +1 -0
  46. package/components/{CasinoRandomGame-BtfzVdwA.js → CasinoRandomGame-CVuu5ndq.js} +1 -1
  47. package/components/{CasinoRandomGame-DHN-OaVS.cjs → CasinoRandomGame-D5chJotN.cjs} +1 -1
  48. package/components/{CasinoRandomGame-Dry-RK41.js → CasinoRandomGame-JXGClzjo.js} +1 -1
  49. package/components/{CasinoSearch-C5AF1XD-.js → CasinoSearch-BI_uT3Jw.js} +3 -3
  50. package/components/{CasinoSearch-Dt8C7J32.js → CasinoSearch-CjrWH3EK.js} +3 -3
  51. package/components/{CasinoSearch-DoPVMjDl.cjs → CasinoSearch-DZearjM7.cjs} +1 -1
  52. package/components/{CasinoSlider-DJY7zkan.js → CasinoSlider-CfPkPPxf.js} +1 -1
  53. package/components/{CasinoSlider-y7n91-8S.js → CasinoSlider-CkpttSpp.js} +1 -1
  54. package/components/{CasinoSlider-Bc1BSPzf.cjs → CasinoSlider-DuMX9oX9.cjs} +1 -1
  55. package/components/{CasinoSort-IoRU5VHT.cjs → CasinoSort-CC01PnsE.cjs} +1 -1
  56. package/components/{CasinoSort-CVAsNHcz.js → CasinoSort-CCMi6HF8.js} +1 -1
  57. package/components/{CasinoSort-UUmo-IzI.js → CasinoSort-CqxfyCdK.js} +1 -1
  58. package/components/{CasinoWinners-TNnIEh1H.js → CasinoWinners-1QrrbKud.js} +2 -2
  59. package/components/{CasinoWinners-Ci2ibhP2.js → CasinoWinners-Ds56SsB_.js} +2 -2
  60. package/components/{CasinoWinners-ChkkpF6l.cjs → CasinoWinners-HiCSUdE4.cjs} +1 -1
  61. package/components/{GeneralAnimationLoading-COhtogq_.js → GeneralAnimationLoading-CqQ45vZj.js} +1 -1
  62. package/components/{GeneralAnimationLoading-aT7wz_tJ.js → GeneralAnimationLoading-OUo50Aas.js} +1 -1
  63. package/components/{GeneralAnimationLoading-D9DHpL0u.cjs → GeneralAnimationLoading-TrHgy3kz.cjs} +1 -1
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-B0NIExnR.js} +1 -1
  69. package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-D6HPqRtr.js} +1 -1
  70. package/stencil/{index-97d17652-D5_8Vwfn.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
  71. package/stencil/{index-b2193545-nJb2J-aJ.cjs → index-b2193545-DVT8jgVo.cjs} +1 -1
  72. package/stencil/{index-b2193545-LYFajSbf.js → index-b2193545-Dxw-xjac.js} +1 -1
  73. package/stencil/{index-b2193545-60VR4wV3.js → index-b2193545-TbRClz6K.js} +1 -1
  74. package/stencil/ui-image-2AZlMiHS.js +7 -0
  75. package/stencil/ui-image-BGKMDvh6.js +25 -0
  76. package/stencil/ui-image-D8iqM9v9.cjs +1 -0
  77. package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
  78. package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
  79. package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
  80. package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
  81. package/stencil/ui-image_2-DbQ7SENq.js +157 -0
  82. package/stencil/ui-image_2-L-CYescb.js +157 -0
  83. package/stencil/ui-skeleton-CSMUbPcJ.js +29 -0
  84. package/stencil/ui-skeleton-CiszU04_.js +11 -0
  85. package/stencil/ui-skeleton-DcmFcn7k.cjs +1 -0
  86. package/stencil/ui-skeleton-ae35c6f2-9hZ7WFQc.js +155 -0
  87. package/stencil/ui-skeleton-ae35c6f2-D1Tb0H8D.cjs +55 -0
  88. package/stencil/ui-skeleton-ae35c6f2-DDHvWmVB.js +155 -0
  89. package/components/CasinoPage-BHd65y7Q.cjs +0 -1
  90. package/stencil/ui-image-DLXwOzO2.cjs +0 -1
  91. package/stencil/ui-image-YGEFo8L0.js +0 -25
  92. package/stencil/ui-image-w38Eao2h.js +0 -7
  93. package/stencil/ui-image_2-B56t6kXT.js +0 -154
  94. package/stencil/ui-image_2-BncuYpLi.js +0 -154
  95. package/stencil/ui-image_2-YkYxLKu7.cjs +0 -73
  96. package/stencil/ui-skeleton-1cb75d00-BWUmrSx4.js +0 -152
  97. package/stencil/ui-skeleton-1cb75d00-C9ZtbYpX.cjs +0 -73
  98. package/stencil/ui-skeleton-1cb75d00-D5AevndQ.js +0 -152
  99. package/stencil/ui-skeleton-CDhNSEbX.js +0 -29
  100. package/stencil/ui-skeleton-CUmVjhrn.cjs +0 -1
  101. package/stencil/ui-skeleton-D5ACyLBl.js +0 -11
@@ -1,154 +0,0 @@
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 {
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;
6
- }
7
- handleStructureChange(e, r) {
8
- r !== e && this.handleStructure(e);
9
- }
10
- handleStructure(e) {
11
- switch (e) {
12
- case "logo":
13
- return this.renderLogo();
14
- case "image":
15
- return this.renderImage();
16
- case "title":
17
- return this.renderTitle();
18
- case "text":
19
- return this.renderText();
20
- case "rectangle":
21
- return this.renderRectangle();
22
- case "circle":
23
- return this.renderCircle();
24
- default:
25
- return null;
26
- }
27
- }
28
- renderLogo() {
29
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
30
- }
31
- renderImage() {
32
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
33
- }
34
- renderTitle() {
35
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
36
- }
37
- renderText() {
38
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
39
- }
40
- renderRectangle() {
41
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
42
- }
43
- renderCircle() {
44
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
45
- }
46
- render() {
47
- let e = "";
48
- switch (this.structure) {
49
- case "logo":
50
- e = `
51
- :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;
59
- --emw-skeleton-logo-background: ${this.color};
60
- --emw-skeleton-primary-color: ${this.primaryColor};
61
- --emw-skeleton-secondary-color: ${this.secondaryColor};
62
- }
63
- `;
64
- break;
65
- case "image":
66
- e = `
67
- :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;
75
- --emw-skeleton-image-background: ${this.color};
76
- --emw-skeleton-primary-color: ${this.primaryColor};
77
- --emw-skeleton-secondary-color: ${this.secondaryColor};
78
- }
79
- `;
80
- break;
81
- case "title":
82
- e = `
83
- :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;
91
- --emw-skeleton-title-background: ${this.color};
92
- --emw-skeleton-primary-color: ${this.primaryColor};
93
- --emw-skeleton-secondary-color: ${this.secondaryColor};
94
- }
95
- `;
96
- break;
97
- case "text":
98
- e = `
99
- :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;
107
- --emw-skeleton-text-background: ${this.color};
108
- --emw-skeleton-primary-color: ${this.primaryColor};
109
- --emw-skeleton-secondary-color: ${this.secondaryColor};
110
- }
111
- `;
112
- break;
113
- case "rectangle":
114
- e = `
115
- :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;
123
- --emw-skeleton-rectangle-background: ${this.color};
124
- --emw-skeleton-primary-color: ${this.primaryColor};
125
- --emw-skeleton-secondary-color: ${this.secondaryColor};
126
- }
127
- `;
128
- break;
129
- case "circle":
130
- e = `
131
- :host {
132
- --emw-skeleton-circle-size: ${this.size};
133
- --emw-skeleton-circle-background: ${this.color};
134
- --emw-skeleton-primary-color: ${this.primaryColor};
135
- --emw-skeleton-secondary-color: ${this.secondaryColor};
136
- }
137
- `;
138
- break;
139
- default:
140
- e = "";
141
- }
142
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
143
- }
144
- static get watchers() {
145
- return {
146
- structure: ["handleStructureChange"]
147
- };
148
- }
149
- };
150
- a.style = s;
151
- export {
152
- h as ui_image,
153
- a as ui_skeleton
154
- };
@@ -1,154 +0,0 @@
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 {
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;
6
- }
7
- handleStructureChange(e, r) {
8
- r !== e && this.handleStructure(e);
9
- }
10
- handleStructure(e) {
11
- switch (e) {
12
- case "logo":
13
- return this.renderLogo();
14
- case "image":
15
- return this.renderImage();
16
- case "title":
17
- return this.renderTitle();
18
- case "text":
19
- return this.renderText();
20
- case "rectangle":
21
- return this.renderRectangle();
22
- case "circle":
23
- return this.renderCircle();
24
- default:
25
- return null;
26
- }
27
- }
28
- renderLogo() {
29
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
30
- }
31
- renderImage() {
32
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
33
- }
34
- renderTitle() {
35
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
36
- }
37
- renderText() {
38
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
39
- }
40
- renderRectangle() {
41
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
42
- }
43
- renderCircle() {
44
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
45
- }
46
- render() {
47
- let e = "";
48
- switch (this.structure) {
49
- case "logo":
50
- e = `
51
- :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;
59
- --emw-skeleton-logo-background: ${this.color};
60
- --emw-skeleton-primary-color: ${this.primaryColor};
61
- --emw-skeleton-secondary-color: ${this.secondaryColor};
62
- }
63
- `;
64
- break;
65
- case "image":
66
- e = `
67
- :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;
75
- --emw-skeleton-image-background: ${this.color};
76
- --emw-skeleton-primary-color: ${this.primaryColor};
77
- --emw-skeleton-secondary-color: ${this.secondaryColor};
78
- }
79
- `;
80
- break;
81
- case "title":
82
- e = `
83
- :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;
91
- --emw-skeleton-title-background: ${this.color};
92
- --emw-skeleton-primary-color: ${this.primaryColor};
93
- --emw-skeleton-secondary-color: ${this.secondaryColor};
94
- }
95
- `;
96
- break;
97
- case "text":
98
- e = `
99
- :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;
107
- --emw-skeleton-text-background: ${this.color};
108
- --emw-skeleton-primary-color: ${this.primaryColor};
109
- --emw-skeleton-secondary-color: ${this.secondaryColor};
110
- }
111
- `;
112
- break;
113
- case "rectangle":
114
- e = `
115
- :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;
123
- --emw-skeleton-rectangle-background: ${this.color};
124
- --emw-skeleton-primary-color: ${this.primaryColor};
125
- --emw-skeleton-secondary-color: ${this.secondaryColor};
126
- }
127
- `;
128
- break;
129
- case "circle":
130
- e = `
131
- :host {
132
- --emw-skeleton-circle-size: ${this.size};
133
- --emw-skeleton-circle-background: ${this.color};
134
- --emw-skeleton-primary-color: ${this.primaryColor};
135
- --emw-skeleton-secondary-color: ${this.secondaryColor};
136
- }
137
- `;
138
- break;
139
- default:
140
- e = "";
141
- }
142
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
143
- }
144
- static get watchers() {
145
- return {
146
- structure: ["handleStructureChange"]
147
- };
148
- }
149
- };
150
- a.style = s;
151
- export {
152
- h as ui_image,
153
- a as ui_skeleton
154
- };
@@ -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;
@@ -1,152 +0,0 @@
1
- import { r as o, h as t, H as i } from "./index-b2193545-LYFajSbf.js";
2
- const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 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 {
3
- constructor(e) {
4
- o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
5
- }
6
- handleStructureChange(e, r) {
7
- r !== e && this.handleStructure(e);
8
- }
9
- handleStructure(e) {
10
- switch (e) {
11
- case "logo":
12
- return this.renderLogo();
13
- case "image":
14
- return this.renderImage();
15
- case "title":
16
- return this.renderTitle();
17
- case "text":
18
- return this.renderText();
19
- case "rectangle":
20
- return this.renderRectangle();
21
- case "circle":
22
- return this.renderCircle();
23
- default:
24
- return null;
25
- }
26
- }
27
- renderLogo() {
28
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
29
- }
30
- renderImage() {
31
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
32
- }
33
- renderTitle() {
34
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
35
- }
36
- renderText() {
37
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
38
- }
39
- renderRectangle() {
40
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
41
- }
42
- renderCircle() {
43
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
44
- }
45
- render() {
46
- let e = "";
47
- switch (this.structure) {
48
- case "logo":
49
- e = `
50
- :host {
51
- --emw-skeleton-logo-width: ${this.width};
52
- --emw-skeleton-logo-height: ${this.height};
53
- --emw-skeleton-logo-border-radius: ${this.borderRadius}px;
54
- --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
55
- --emw-skeleton-logo-margin-top: ${this.marginTop}px;
56
- --emw-skeleton-logo-margin-left: ${this.marginLeft}px;
57
- --emw-skeleton-logo-margin-right: ${this.marginRight}px;
58
- --emw-skeleton-logo-background: ${this.color};
59
- --emw-skeleton-primary-color: ${this.primaryColor};
60
- --emw-skeleton-secondary-color: ${this.secondaryColor};
61
- }
62
- `;
63
- break;
64
- case "image":
65
- e = `
66
- :host {
67
- --emw-skeleton-image-width: ${this.width};
68
- --emw-skeleton-image-height: ${this.height};
69
- --emw-skeleton-image-border-radius: ${this.borderRadius}px;
70
- --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
71
- --emw-skeleton-image-margin-top: ${this.marginTop}px;
72
- --emw-skeleton-image-margin-left: ${this.marginLeft}px;
73
- --emw-skeleton-image-margin-right: ${this.marginRight}px;
74
- --emw-skeleton-image-background: ${this.color};
75
- --emw-skeleton-primary-color: ${this.primaryColor};
76
- --emw-skeleton-secondary-color: ${this.secondaryColor};
77
- }
78
- `;
79
- break;
80
- case "title":
81
- e = `
82
- :host {
83
- --emw-skeleton-title-width: ${this.width};
84
- --emw-skeleton-title-height: ${this.height};
85
- --emw-skeleton-title-border-radius: ${this.borderRadius}px;
86
- --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
87
- --emw-skeleton-title-margin-top: ${this.marginTop}px;
88
- --emw-skeleton-title-margin-left: ${this.marginLeft}px;
89
- --emw-skeleton-title-margin-right: ${this.marginRight}px;
90
- --emw-skeleton-title-background: ${this.color};
91
- --emw-skeleton-primary-color: ${this.primaryColor};
92
- --emw-skeleton-secondary-color: ${this.secondaryColor};
93
- }
94
- `;
95
- break;
96
- case "text":
97
- e = `
98
- :host {
99
- --emw-skeleton-text-width: ${this.width};
100
- --emw-skeleton-text-height: ${this.height};
101
- --emw-skeleton-text-border-radius: ${this.borderRadius}px;
102
- --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
103
- --emw-skeleton-text-margin-top: ${this.marginTop}px;
104
- --emw-skeleton-text-margin-left: ${this.marginLeft}px;
105
- --emw-skeleton-text-margin-right: ${this.marginRight}px;
106
- --emw-skeleton-text-background: ${this.color};
107
- --emw-skeleton-primary-color: ${this.primaryColor};
108
- --emw-skeleton-secondary-color: ${this.secondaryColor};
109
- }
110
- `;
111
- break;
112
- case "rectangle":
113
- e = `
114
- :host {
115
- --emw-skeleton-rectangle-width: ${this.width};
116
- --emw-skeleton-rectangle-height: ${this.height};
117
- --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
118
- --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
119
- --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
120
- --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
121
- --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
122
- --emw-skeleton-rectangle-background: ${this.color};
123
- --emw-skeleton-primary-color: ${this.primaryColor};
124
- --emw-skeleton-secondary-color: ${this.secondaryColor};
125
- }
126
- `;
127
- break;
128
- case "circle":
129
- e = `
130
- :host {
131
- --emw-skeleton-circle-size: ${this.size};
132
- --emw-skeleton-circle-background: ${this.color};
133
- --emw-skeleton-primary-color: ${this.primaryColor};
134
- --emw-skeleton-secondary-color: ${this.secondaryColor};
135
- }
136
- `;
137
- break;
138
- default:
139
- e = "";
140
- }
141
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
142
- }
143
- static get watchers() {
144
- return {
145
- structure: ["handleStructureChange"]
146
- };
147
- }
148
- };
149
- a.style = s;
150
- export {
151
- a as U
152
- };
@@ -1,73 +0,0 @@
1
- "use strict";const t=require("./index-b2193545-nJb2J-aJ.cjs"),i=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 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))}}",n=i,o=class{constructor(e){t.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"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=n;exports.UiSkeleton=o;