@everymatrix/casino-page-nd 1.59.3 → 1.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/components/{CasinoCalendar-Ckt1PYIP.js → CasinoCalendar-Bm8jJ1Mr.js} +965 -943
  2. package/components/CasinoCalendar-DBpyNdzX.cjs +19 -0
  3. package/components/{CasinoCalendar-DNaLXH6n.js → CasinoCalendar-DttQUJ_p.js} +665 -643
  4. package/components/{CasinoCalendarDailyDetails-DOhd-4ZT.js → CasinoCalendarDailyDetails-BRtEBxYn.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-EinwK-x0.cjs → CasinoCalendarDailyDetails-Cjdo10t8.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-BdhBt4HO.js → CasinoCalendarDailyDetails-DesTWpk5.js} +48 -48
  7. package/components/{CasinoCalendarDailyItem-254MG7d4.js → CasinoCalendarDailyItem-B4jvb1pM.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-CEbe-dts.cjs → CasinoCalendarDailyItem-D0zUyBnz.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-I0d1EuRW.js → CasinoCalendarDailyItem-D7jrZ_LJ.js} +41 -41
  10. package/components/{CasinoCollectionsProviders-BFdX7p1F.js → CasinoCollectionsProviders-CYGBqFuD.js} +53 -53
  11. package/components/{CasinoCollectionsProviders-2w-n1gbT.js → CasinoCollectionsProviders-LsjiLvS-.js} +55 -55
  12. package/components/{CasinoCollectionsProviders-CHGsk2qn.cjs → CasinoCollectionsProviders-NvzBTvSZ.cjs} +1 -1
  13. package/components/{CasinoFavoritesSectionNd-nruLGUaT.js → CasinoFavoritesSectionNd-Bcx-VF4R.js} +84 -84
  14. package/components/{CasinoFavoritesSectionNd-QWuxI4Ja.js → CasinoFavoritesSectionNd-Dk3bzQ5K.js} +84 -84
  15. package/components/{CasinoFavoritesSectionNd-CoYaMBQX.cjs → CasinoFavoritesSectionNd-Dp06xpQZ.cjs} +1 -1
  16. package/components/{CasinoFilter-DT_mfIxJ.js → CasinoFilter-DBAa4rgv.js} +229 -230
  17. package/components/{CasinoFilter-Cf6wLS_J.js → CasinoFilter-DC7UpKxg.js} +243 -242
  18. package/components/CasinoFilter-DVMmkZnS.cjs +1 -0
  19. package/components/{CasinoGameThumbnailNd-CwoyWTa2.js → CasinoGameThumbnailNd-BjpLrkZ8.js} +67 -67
  20. package/components/{CasinoGameThumbnailNd-Fy7NLY4j.cjs → CasinoGameThumbnailNd-D1Y5lxzn.cjs} +1 -1
  21. package/components/{CasinoGameThumbnailNd-DZjo0VYB.js → CasinoGameThumbnailNd-DHdA3PXP.js} +67 -67
  22. package/components/{CasinoGamesCategorySectionNd-B86oMJjm.js → CasinoGamesCategorySectionNd-Dby9gxzi.js} +107 -107
  23. package/components/{CasinoGamesCategorySectionNd-BxLmSQtR.cjs → CasinoGamesCategorySectionNd-DmxhlONv.cjs} +1 -1
  24. package/components/{CasinoGamesCategorySectionNd-BTVn5agP.js → CasinoGamesCategorySectionNd-JY01iUVQ.js} +109 -109
  25. package/components/{CasinoJackpotBanner-W78-HVH9.cjs → CasinoJackpotBanner-BgpQokE3.cjs} +1 -1
  26. package/components/{CasinoJackpotBanner-Dt56Ssbv.js → CasinoJackpotBanner-C2j1yUXk.js} +74 -74
  27. package/components/{CasinoJackpotBanner-QjY0RFqn.js → CasinoJackpotBanner-CFJR1YWM.js} +69 -69
  28. package/components/{CasinoLastPlayedSectionNd-BqtNQwY-.js → CasinoLastPlayedSectionNd-BFMur79L.js} +40 -40
  29. package/components/{CasinoLastPlayedSectionNd-BnTasC4g.js → CasinoLastPlayedSectionNd-CNiGSO9P.js} +40 -40
  30. package/components/{CasinoLastPlayedSectionNd-B7yenokB.cjs → CasinoLastPlayedSectionNd-CvbF0yIj.cjs} +1 -1
  31. package/components/{CasinoMostPlayedSectionNd-C3ewkKP7.js → CasinoMostPlayedSectionNd-C95S8Ddy.js} +49 -49
  32. package/components/{CasinoMostPlayedSectionNd-D70lN__h.cjs → CasinoMostPlayedSectionNd-Cd8_9RZg.cjs} +1 -1
  33. package/components/{CasinoMostPlayedSectionNd-DivIY78K.js → CasinoMostPlayedSectionNd-Dvdde-rL.js} +49 -49
  34. package/components/{CasinoMyGamesNd-CblDfiAR.js → CasinoMyGamesNd-CRzgBDL1.js} +43 -43
  35. package/components/{CasinoMyGamesNd-CccM6O4n.cjs → CasinoMyGamesNd-CkZEUp1h.cjs} +1 -1
  36. package/components/{CasinoMyGamesNd-Cp8ptFSX.js → CasinoMyGamesNd-CtKKovMF.js} +42 -42
  37. package/components/{CasinoPageNd-DqAwcZKa.js → CasinoPageNd-0WxZJ5DA.js} +96 -96
  38. package/components/{CasinoPageNd-DfBI0YV9.cjs → CasinoPageNd-DUtUw9e5.cjs} +1 -1
  39. package/components/{CasinoPageNd-D6Vtzz_h.js → CasinoPageNd-D_2id8YE.js} +108 -108
  40. package/components/{CasinoRandomGame-CH4DPGtX.cjs → CasinoRandomGame-C1nrrW2N.cjs} +1 -1
  41. package/components/{CasinoRandomGame-FAQztl67.js → CasinoRandomGame-D3B5tI8S.js} +60 -60
  42. package/components/{CasinoRandomGame-CTVNBAys.js → CasinoRandomGame-DfLR0r0i.js} +62 -62
  43. package/components/{CasinoSearchNd-inwkJVwN.js → CasinoSearchNd-CDcFq9eq.js} +53 -53
  44. package/components/{CasinoSearchNd-B667_x_c.js → CasinoSearchNd-CmiMENnc.js} +53 -53
  45. package/components/{CasinoSearchNd-BSk2vZgq.cjs → CasinoSearchNd-HvFyptlR.cjs} +1 -1
  46. package/components/{CasinoSort-D-E5cV7V.js → CasinoSort-BU6PWDpY.js} +111 -110
  47. package/components/{CasinoSort-jHGGKT4T.js → CasinoSort-DX5EmYm_.js} +103 -104
  48. package/components/{CasinoSort-CD6jHMIw.cjs → CasinoSort-DcG0TUN4.cjs} +1 -1
  49. package/components/{CasinoWinners-BnSu5nnB.js → CasinoWinners-BOa69aMH.js} +166 -166
  50. package/components/{CasinoWinners-BpeW82lE.js → CasinoWinners-CYRn98z1.js} +143 -143
  51. package/components/{CasinoWinners-DM9Vf73b.cjs → CasinoWinners-DwOZC8ON.cjs} +1 -1
  52. package/components/{GeneralAnimationLoading-vwMxZgQG.cjs → GeneralAnimationLoading-B40sJaX7.cjs} +1 -1
  53. package/components/{GeneralAnimationLoading-Bl-AgLq7.js → GeneralAnimationLoading-CXZNRm34.js} +16 -16
  54. package/components/{GeneralAnimationLoading-oiUh9Rwe.js → GeneralAnimationLoading-D0rjnOL3.js} +16 -16
  55. package/es2015/casino-page-nd.cjs +1 -1
  56. package/es2015/casino-page-nd.js +1 -1
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/{casino-play-random-game-Dm8A9dTR.js → casino-play-random-game-BW66Civ1.js} +2 -2
  60. package/stencil/{casino-play-random-game-CLSQBVzD.js → casino-play-random-game-Bk7toWLj.js} +2 -2
  61. package/stencil/{casino-play-random-game-CdZKN03s.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
  62. package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
  63. package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
  64. package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
  65. package/stencil/index-b2193545-BDVBrmNo.js +503 -0
  66. package/stencil/index-b2193545-CY979_sp.js +519 -0
  67. package/stencil/index-b2193545-DPplmtxO.cjs +1 -0
  68. package/stencil/{ui-skeleton-Bz6cw7xJ.js → ui-skeleton-BpUWeWAr.js} +6 -6
  69. package/stencil/ui-skeleton-D2GYc4Vd.cjs +1 -0
  70. package/stencil/ui-skeleton-ea659b95-CaDtZrvR.js +152 -0
  71. package/stencil/ui-skeleton-ea659b95-CvOjl779.cjs +73 -0
  72. package/stencil/ui-skeleton-ea659b95-DmKUoob8.js +152 -0
  73. package/stencil/{ui-skeleton-DDYD_XHU.js → ui-skeleton-sAoxznwb.js} +12 -12
  74. package/components/CasinoCalendar-DEC4kbu7.cjs +0 -19
  75. package/components/CasinoFilter-DkRFodLT.cjs +0 -1
  76. package/stencil/index-ab3202d6-C1hgKWrC.cjs +0 -1
  77. package/stencil/index-ab3202d6-OPh7hJp9.js +0 -575
  78. package/stencil/index-ab3202d6-hGs51skN.js +0 -559
  79. package/stencil/index-ae04a8b1-BhaHMrLE.js +0 -516
  80. package/stencil/index-ae04a8b1-Dn3cponN.js +0 -532
  81. package/stencil/index-ae04a8b1-jEvGbYrB.cjs +0 -1
  82. package/stencil/ui-skeleton-D9k-xWaS.cjs +0 -1
  83. package/stencil/ui-skeleton-a642cced-Bg6oYmhk.js +0 -122
  84. package/stencil/ui-skeleton-a642cced-CVw8zpGJ.cjs +0 -1
  85. package/stencil/ui-skeleton-a642cced-MvzXi5-c.js +0 -122
@@ -1,122 +0,0 @@
1
- import { r as o, h as r } from "./index-ae04a8b1-Dn3cponN.js";
2
- const n = ".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
3
- constructor(e) {
4
- o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
5
- }
6
- handleStructureChange(e, t) {
7
- t !== e && this.handleStructure(e);
8
- }
9
- updateStyles() {
10
- this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
11
- }
12
- handleStructure(e) {
13
- switch (e) {
14
- case "logo":
15
- return this.renderLogo();
16
- case "image":
17
- return this.renderImage();
18
- case "title":
19
- return this.renderTitle();
20
- case "text":
21
- return this.renderText();
22
- case "rectangle":
23
- return this.renderRectangle();
24
- case "circle":
25
- return this.renderCircle();
26
- }
27
- }
28
- renderLogo() {
29
- const e = {
30
- width: `${this.width}`,
31
- height: `${this.height}`,
32
- "background-color": `${this.color}`,
33
- "border-radius": `${this.borderRadius}px`,
34
- "margin-bottom": `${this.marginBottom}px`,
35
- "margin-top": `${this.marginTop}px`,
36
- "margin-left": `${this.marginLeft}px`,
37
- "margin-right": `${this.marginRight}px`
38
- };
39
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Logo " + (this.animation ? "Skeleton" : "") }));
40
- }
41
- renderImage() {
42
- const e = {
43
- width: `${this.width}`,
44
- height: `${this.height}`,
45
- "background-color": `${this.color}`,
46
- "border-radius": `${this.borderRadius}px`,
47
- "margin-bottom": `${this.marginBottom}px`,
48
- "margin-top": `${this.marginTop}px`,
49
- "margin-left": `${this.marginLeft}px`,
50
- "margin-right": `${this.marginRight}px`
51
- };
52
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Image " + (this.animation ? "Skeleton" : "") }));
53
- }
54
- renderTitle() {
55
- const e = {
56
- width: `${this.width}`,
57
- height: `${this.height}`,
58
- "background-color": `${this.color}`,
59
- "border-radius": `${this.borderRadius}px`,
60
- "margin-bottom": `${this.marginBottom}px`,
61
- "margin-top": `${this.marginTop}px`,
62
- "margin-left": `${this.marginLeft}px`,
63
- "margin-right": `${this.marginRight}px`
64
- };
65
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Title " + (this.animation ? "Skeleton" : "") }));
66
- }
67
- renderText() {
68
- const e = {
69
- width: `${this.width}`,
70
- height: `${this.height}`,
71
- "background-color": `${this.color}`,
72
- "border-radius": `${this.borderRadius}px`,
73
- "margin-bottom": `${this.marginBottom}px`,
74
- "margin-top": `${this.marginTop}px`,
75
- "margin-left": `${this.marginLeft}px`,
76
- "margin-right": `${this.marginRight}px`
77
- };
78
- return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((t, i) => r("div", { style: e, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
79
- }
80
- renderRectangle() {
81
- const e = {
82
- width: `${this.width}`,
83
- height: `${this.height}`,
84
- "background-color": `${this.color}`,
85
- "border-radius": `${this.borderRadius}px`,
86
- "margin-bottom": `${this.marginBottom}px`,
87
- "margin-top": `${this.marginTop}px`,
88
- "margin-left": `${this.marginLeft}px`,
89
- "margin-right": `${this.marginRight}px`
90
- };
91
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
92
- }
93
- renderCircle() {
94
- const e = {
95
- width: `${this.size}`,
96
- height: `${this.size}`,
97
- "background-color": `${this.color}`,
98
- "margin-bottom": `${this.marginBottom}px`,
99
- "margin-top": `${this.marginTop}px`,
100
- "margin-left": `${this.marginLeft}px`,
101
- "margin-right": `${this.marginRight}px`
102
- };
103
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Circle " + (this.animation ? "Skeleton" : "") }));
104
- }
105
- componentDidLoad() {
106
- this.updateStyles();
107
- }
108
- render() {
109
- return this.handleStructure(this.structure);
110
- }
111
- static get watchers() {
112
- return {
113
- structure: ["handleStructureChange"],
114
- primaryColor: ["updateStyles"],
115
- secondaryColor: ["updateStyles"]
116
- };
117
- }
118
- };
119
- a.style = s;
120
- export {
121
- a as U
122
- };
@@ -1 +0,0 @@
1
- "use strict";const r=require("./index-ae04a8b1-jEvGbYrB.cjs"),n=".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,i=class{constructor(e){r.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}updateStyles(){this.primaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color",this.primaryColor),this.secondaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color",this.secondaryColor)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle()}}renderLogo(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return Array.from({length:this.rows>0?this.rows:1}).map((t,o)=>r.h("div",{style:e,key:o,class:"Text "+(this.animation?"Skeleton":"")}))}renderRectangle(){const e={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){const e={width:`${this.size}`,height:`${this.size}`,"background-color":`${this.color}`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:t=>this.skeletonContainer=t},r.h("div",{style:e,class:"Circle "+(this.animation?"Skeleton":"")}))}componentDidLoad(){this.updateStyles()}render(){return this.handleStructure(this.structure)}static get watchers(){return{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}}};i.style=s;exports.UiSkeleton=i;
@@ -1,122 +0,0 @@
1
- import { r as o, h as r } from "./index-ae04a8b1-BhaHMrLE.js";
2
- const n = ".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
3
- constructor(e) {
4
- o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
5
- }
6
- handleStructureChange(e, t) {
7
- t !== e && this.handleStructure(e);
8
- }
9
- updateStyles() {
10
- this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
11
- }
12
- handleStructure(e) {
13
- switch (e) {
14
- case "logo":
15
- return this.renderLogo();
16
- case "image":
17
- return this.renderImage();
18
- case "title":
19
- return this.renderTitle();
20
- case "text":
21
- return this.renderText();
22
- case "rectangle":
23
- return this.renderRectangle();
24
- case "circle":
25
- return this.renderCircle();
26
- }
27
- }
28
- renderLogo() {
29
- const e = {
30
- width: `${this.width}`,
31
- height: `${this.height}`,
32
- "background-color": `${this.color}`,
33
- "border-radius": `${this.borderRadius}px`,
34
- "margin-bottom": `${this.marginBottom}px`,
35
- "margin-top": `${this.marginTop}px`,
36
- "margin-left": `${this.marginLeft}px`,
37
- "margin-right": `${this.marginRight}px`
38
- };
39
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Logo " + (this.animation ? "Skeleton" : "") }));
40
- }
41
- renderImage() {
42
- const e = {
43
- width: `${this.width}`,
44
- height: `${this.height}`,
45
- "background-color": `${this.color}`,
46
- "border-radius": `${this.borderRadius}px`,
47
- "margin-bottom": `${this.marginBottom}px`,
48
- "margin-top": `${this.marginTop}px`,
49
- "margin-left": `${this.marginLeft}px`,
50
- "margin-right": `${this.marginRight}px`
51
- };
52
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Image " + (this.animation ? "Skeleton" : "") }));
53
- }
54
- renderTitle() {
55
- const e = {
56
- width: `${this.width}`,
57
- height: `${this.height}`,
58
- "background-color": `${this.color}`,
59
- "border-radius": `${this.borderRadius}px`,
60
- "margin-bottom": `${this.marginBottom}px`,
61
- "margin-top": `${this.marginTop}px`,
62
- "margin-left": `${this.marginLeft}px`,
63
- "margin-right": `${this.marginRight}px`
64
- };
65
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Title " + (this.animation ? "Skeleton" : "") }));
66
- }
67
- renderText() {
68
- const e = {
69
- width: `${this.width}`,
70
- height: `${this.height}`,
71
- "background-color": `${this.color}`,
72
- "border-radius": `${this.borderRadius}px`,
73
- "margin-bottom": `${this.marginBottom}px`,
74
- "margin-top": `${this.marginTop}px`,
75
- "margin-left": `${this.marginLeft}px`,
76
- "margin-right": `${this.marginRight}px`
77
- };
78
- return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((t, i) => r("div", { style: e, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
79
- }
80
- renderRectangle() {
81
- const e = {
82
- width: `${this.width}`,
83
- height: `${this.height}`,
84
- "background-color": `${this.color}`,
85
- "border-radius": `${this.borderRadius}px`,
86
- "margin-bottom": `${this.marginBottom}px`,
87
- "margin-top": `${this.marginTop}px`,
88
- "margin-left": `${this.marginLeft}px`,
89
- "margin-right": `${this.marginRight}px`
90
- };
91
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
92
- }
93
- renderCircle() {
94
- const e = {
95
- width: `${this.size}`,
96
- height: `${this.size}`,
97
- "background-color": `${this.color}`,
98
- "margin-bottom": `${this.marginBottom}px`,
99
- "margin-top": `${this.marginTop}px`,
100
- "margin-left": `${this.marginLeft}px`,
101
- "margin-right": `${this.marginRight}px`
102
- };
103
- return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Circle " + (this.animation ? "Skeleton" : "") }));
104
- }
105
- componentDidLoad() {
106
- this.updateStyles();
107
- }
108
- render() {
109
- return this.handleStructure(this.structure);
110
- }
111
- static get watchers() {
112
- return {
113
- structure: ["handleStructureChange"],
114
- primaryColor: ["updateStyles"],
115
- secondaryColor: ["updateStyles"]
116
- };
117
- }
118
- };
119
- a.style = s;
120
- export {
121
- a as U
122
- };