@everymatrix/casino-page-nd 1.75.0 → 1.76.0

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-BVD-g7V2.js → CasinoCalendar-DWprq3Up.js} +1012 -991
  2. package/components/CasinoCalendar-dCsBOCh4.cjs +19 -0
  3. package/components/{CasinoCalendar-CDNIjQ8T.js → CasinoCalendar-mfSLB8Ze.js} +856 -835
  4. package/components/{CasinoCalendarDailyDetails-BEUNC6Xh.cjs → CasinoCalendarDailyDetails-3C8wq3Kf.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-D_IsmUxa.js → CasinoCalendarDailyDetails-Cm0lICEn.js} +38 -38
  6. package/components/{CasinoCalendarDailyDetails-Dun4o4bY.js → CasinoCalendarDailyDetails-DvqRVPua.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-SgYp_4Zc.js → CasinoCalendarDailyItem-CZlYfyPq.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-r4x7VnIJ.cjs → CasinoCalendarDailyItem-C_FN646X.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-lgiTsDmQ.js → CasinoCalendarDailyItem-CzzCu3b9.js} +34 -34
  10. package/components/{CasinoCollectionsProviders-Cfp1fpOk.js → CasinoCollectionsProviders-CWyeNZSU.js} +45 -45
  11. package/components/{CasinoCollectionsProviders-GH5hTDgu.js → CasinoCollectionsProviders-LcGduY03.js} +67 -67
  12. package/components/{CasinoCollectionsProviders-DI8Ie4pa.cjs → CasinoCollectionsProviders-qWvxMAY4.cjs} +1 -1
  13. package/components/{CasinoFavoritesSectionNd-BzY-Mtdp.cjs → CasinoFavoritesSectionNd-BIfrHNCv.cjs} +1 -1
  14. package/components/{CasinoFavoritesSectionNd-Lv9Hbd67.js → CasinoFavoritesSectionNd-BO5Gv4XQ.js} +14 -14
  15. package/components/{CasinoFavoritesSectionNd-BR7oOoVZ.js → CasinoFavoritesSectionNd-D7PT7RRj.js} +14 -14
  16. package/components/{CasinoFilter-idsuQa6E.js → CasinoFilter-BxbFkTPB.js} +244 -245
  17. package/components/{CasinoFilter-DUp1Zmmm.js → CasinoFilter-CKKGIb12.js} +225 -224
  18. package/components/CasinoFilter-DaDCgGyI.cjs +1 -0
  19. package/components/{CasinoGameThumbnailNd-C33yCVXc.js → CasinoGameThumbnailNd-BQ1wqZ-e.js} +65 -67
  20. package/components/CasinoGameThumbnailNd-CmRsAJDi.cjs +30 -0
  21. package/components/{CasinoGameThumbnailNd-CxAL5LP2.js → CasinoGameThumbnailNd-Dcordt0f.js} +65 -67
  22. package/components/{CasinoGamesCategorySectionNd-DB97IVzG.js → CasinoGamesCategorySectionNd-BGZ-ePsT.js} +167 -167
  23. package/components/{CasinoGamesCategorySectionNd-wkSdhFLy.cjs → CasinoGamesCategorySectionNd-BWwBc-gL.cjs} +1 -1
  24. package/components/{CasinoGamesCategorySectionNd-iW8xVo8B.js → CasinoGamesCategorySectionNd-CKAJcNzR.js} +160 -160
  25. package/components/{CasinoJackpotBanner-ClvtHhmd.cjs → CasinoJackpotBanner-B96gNAcA.cjs} +1 -1
  26. package/components/{CasinoJackpotBanner-Da0QCFOu.js → CasinoJackpotBanner-BWmZP7BL.js} +83 -83
  27. package/components/{CasinoJackpotBanner-BAVC4_Yz.js → CasinoJackpotBanner-DqIZizFB.js} +89 -89
  28. package/components/{CasinoLastPlayedSectionNd-BTMGK-OG.cjs → CasinoLastPlayedSectionNd-BgOVZqPi.cjs} +1 -1
  29. package/components/{CasinoLastPlayedSectionNd-B7ILz7Tr.js → CasinoLastPlayedSectionNd-BmLauasH.js} +40 -40
  30. package/components/{CasinoLastPlayedSectionNd-Br6Qozif.js → CasinoLastPlayedSectionNd-D5fz5x-v.js} +40 -40
  31. package/components/{CasinoMostPlayedSectionNd-CzTAA-j5.js → CasinoMostPlayedSectionNd-CDSQQPLi.js} +46 -46
  32. package/components/{CasinoMostPlayedSectionNd-Ddr8HXvD.js → CasinoMostPlayedSectionNd-DxpDBvyi.js} +46 -46
  33. package/components/{CasinoMostPlayedSectionNd-DKanuBTP.cjs → CasinoMostPlayedSectionNd-Scrl1-r0.cjs} +1 -1
  34. package/components/{CasinoMyGamesNd-VhA9CIHu.js → CasinoMyGamesNd-B0RMhNOQ.js} +31 -31
  35. package/components/{CasinoMyGamesNd-ByT7FAHN.cjs → CasinoMyGamesNd-C5_wy8U9.cjs} +1 -1
  36. package/components/{CasinoMyGamesNd-DWshTl9h.js → CasinoMyGamesNd-DyvlKH0N.js} +33 -33
  37. package/components/{CasinoPageNd-NDK161u7.js → CasinoPageNd-BBnA0Inr.js} +1888 -1896
  38. package/components/CasinoPageNd-C6XEbbie.cjs +1 -0
  39. package/components/{CasinoPageNd-BYDy_uIx.js → CasinoPageNd-CdikoQYm.js} +1860 -1868
  40. package/components/{CasinoRandomGame-3uoEGw78.cjs → CasinoRandomGame-BXQZCC2U.cjs} +1 -1
  41. package/components/{CasinoRandomGame-9Yw_xC5j.js → CasinoRandomGame-DgwvXr3L.js} +59 -59
  42. package/components/{CasinoRandomGame-DpKfvMwV.js → CasinoRandomGame-_9lAMA2P.js} +58 -58
  43. package/components/{CasinoSearchNd-BZFZIldj.js → CasinoSearchNd-C7QNS9Ai.js} +53 -53
  44. package/components/{CasinoSearchNd-sbnm8-s3.cjs → CasinoSearchNd-C893ijmJ.cjs} +1 -1
  45. package/components/{CasinoSearchNd-DhC_9kHZ.js → CasinoSearchNd-DQ2c9d3i.js} +35 -35
  46. package/components/{CasinoSort-CUCsGytJ.js → CasinoSort-BNREfqiL.js} +111 -112
  47. package/components/{CasinoSort-DEzzINXT.cjs → CasinoSort-CKm8hNbY.cjs} +1 -1
  48. package/components/{CasinoSort-BYQvNOsF.js → CasinoSort-D187w5tA.js} +103 -102
  49. package/components/{CasinoWinners-COmepRdG.cjs → CasinoWinners-433auKih.cjs} +1 -1
  50. package/components/{CasinoWinners-CQf5gEvU.js → CasinoWinners-C4hnivSF.js} +150 -150
  51. package/components/{CasinoWinners-Dr5wYAG5.js → CasinoWinners-CfPd4kzY.js} +144 -144
  52. package/components/{GeneralAnimationLoading-CBPC5I1a.js → GeneralAnimationLoading-CuOjTz53.js} +16 -16
  53. package/components/{GeneralAnimationLoading-DTUTIYre.cjs → GeneralAnimationLoading-DRvkLtzi.cjs} +1 -1
  54. package/components/{GeneralAnimationLoading-CKgGhHlf.js → GeneralAnimationLoading-DnAbjVes.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/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  60. package/stencil/{app-globals-0f993ce5-DfNOCk8l.js → app-globals-0f993ce5-Cgk0KVAu.js} +1 -3
  61. package/stencil/{casino-play-random-game-Cchj3hDo.js → casino-play-random-game-BkPr2CWQ.js} +2 -2
  62. package/stencil/{casino-play-random-game-CWyr5H4d.cjs → casino-play-random-game-CIgnME2D.cjs} +1 -1
  63. package/stencil/{casino-play-random-game-CNwOj3DJ.js → casino-play-random-game-CNkwfnjq.js} +2 -2
  64. package/stencil/{casino-play-random-game_2-DVELgSp-.cjs → casino-play-random-game_2-BJVoDn1D.cjs} +2 -2
  65. package/stencil/{casino-play-random-game_2-BoSB4X57.js → casino-play-random-game_2-Cr07t-U3.js} +2 -2
  66. package/stencil/{casino-play-random-game_2-BBqDze0C.js → casino-play-random-game_2-rMFQqRp8.js} +2 -2
  67. package/stencil/index-328e660d-Cex2hzsG.js +576 -0
  68. package/stencil/index-328e660d-Dti9H7_B.js +560 -0
  69. package/stencil/index-328e660d-MaaYKutI.cjs +1 -0
  70. package/stencil/index-97d17652--F7PvMq9.js +542 -0
  71. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  72. package/stencil/index-97d17652-CCFHkzJw.js +558 -0
  73. package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-5q4WODJu.cjs} +1 -1
  74. package/stencil/{ui-image-I_uR7pAI.js → ui-image-CfZf6HBq.js} +2 -2
  75. package/stencil/{ui-image-BAqS-hS6.js → ui-image-CtfMdADr.js} +2 -2
  76. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  77. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  78. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  79. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
  80. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  81. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
  82. package/components/CasinoCalendar-B4OJuO_L.cjs +0 -19
  83. package/components/CasinoFilter-BX1QlpN6.cjs +0 -1
  84. package/components/CasinoGameThumbnailNd-DbHe7zqB.cjs +0 -30
  85. package/components/CasinoPageNd-wY819W24.cjs +0 -1
  86. package/stencil/app-globals-0f993ce5-4b17CI_n.cjs +0 -1
  87. package/stencil/index-328e660d-04xW6326.cjs +0 -1
  88. package/stencil/index-328e660d-BUOKdOvn.js +0 -576
  89. package/stencil/index-328e660d-O5RXzgXA.js +0 -560
  90. package/stencil/index-97d17652-BD-QREJe.js +0 -558
  91. package/stencil/index-97d17652-DJqGt8q2.js +0 -542
  92. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
  93. package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
  94. package/stencil/index-b2193545-D_cUvAA-.js +0 -519
  95. package/stencil/index-b2193545-kN0z2MLt.js +0 -503
  96. package/stencil/ui-skeleton-5mt1L8pA.cjs +0 -1
  97. package/stencil/ui-skeleton-C0GZ2ncD.js +0 -29
  98. package/stencil/ui-skeleton-CYeeBz0Q.js +0 -11
  99. package/stencil/ui-skeleton-ae35c6f2-BSwiS43c.js +0 -155
  100. package/stencil/ui-skeleton-ae35c6f2-BmKf7IvD.js +0 -155
  101. package/stencil/ui-skeleton-ae35c6f2-CQ3pH6qH.cjs +0 -55
@@ -1,155 +0,0 @@
1
- import { r, h as t, H as n } from "./index-b2193545-D_cUvAA-.js";
2
- const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
3
- constructor(e) {
4
- r(this, e), this.stylingValue = {
5
- width: this.handleStylingProps(this.width),
6
- height: this.handleStylingProps(this.height),
7
- borderRadius: this.handleStylingProps(this.borderRadius),
8
- marginBottom: this.handleStylingProps(this.marginBottom),
9
- marginTop: this.handleStylingProps(this.marginTop),
10
- marginLeft: this.handleStylingProps(this.marginLeft),
11
- marginRight: this.handleStylingProps(this.marginRight),
12
- size: this.handleStylingProps(this.size)
13
- }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
14
- }
15
- handleStructureChange(e, i) {
16
- i !== e && this.handleStructure(e);
17
- }
18
- handleStylingProps(e) {
19
- switch (typeof e) {
20
- case "number":
21
- return e === 0 ? 0 : `${e}px`;
22
- case "undefined":
23
- return "unset";
24
- case "string":
25
- return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
26
- default:
27
- return "unset";
28
- }
29
- }
30
- handleStructure(e) {
31
- switch (e) {
32
- case "logo":
33
- return this.renderLogo();
34
- case "image":
35
- return this.renderImage();
36
- case "title":
37
- return this.renderTitle();
38
- case "text":
39
- return this.renderText();
40
- case "rectangle":
41
- return this.renderRectangle();
42
- case "circle":
43
- return this.renderCircle();
44
- default:
45
- return null;
46
- }
47
- }
48
- renderLogo() {
49
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
50
- }
51
- renderImage() {
52
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
53
- }
54
- renderTitle() {
55
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
56
- }
57
- renderText() {
58
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
59
- }
60
- renderRectangle() {
61
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
62
- }
63
- renderCircle() {
64
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
65
- }
66
- render() {
67
- let e = "";
68
- switch (this.structure) {
69
- case "logo":
70
- e = `
71
- :host {
72
- --emw-skeleton-logo-width: ${this.stylingValue.width};
73
- --emw-skeleton-logo-height: ${this.stylingValue.height};
74
- --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
75
- --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
76
- --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
77
- --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
78
- --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
79
- }
80
- `;
81
- break;
82
- case "image":
83
- e = `
84
- :host {
85
- --emw-skeleton-image-width: ${this.stylingValue.width};
86
- --emw-skeleton-image-height: ${this.stylingValue.height};
87
- --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
88
- --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
89
- --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
90
- --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
91
- --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
92
- }
93
- `;
94
- break;
95
- case "title":
96
- e = `
97
- :host {
98
- --emw-skeleton-title-width: ${this.stylingValue.width};
99
- --emw-skeleton-title-height: ${this.stylingValue.height};
100
- --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
101
- --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
102
- --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
103
- --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
104
- --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
105
- }
106
- `;
107
- break;
108
- case "text":
109
- e = `
110
- :host {
111
- --emw-skeleton-text-width: ${this.stylingValue.width};
112
- --emw-skeleton-text-height: ${this.stylingValue.height};
113
- --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
114
- --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
115
- --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
116
- --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
117
- --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
118
- }
119
- `;
120
- break;
121
- case "rectangle":
122
- e = `
123
- :host {
124
- --emw-skeleton-rectangle-width: ${this.stylingValue.width};
125
- --emw-skeleton-rectangle-height: ${this.stylingValue.height};
126
- --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
127
- --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
128
- --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
129
- --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
130
- --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
131
- }
132
- `;
133
- break;
134
- case "circle":
135
- e = `
136
- :host {
137
- --emw-skeleton-circle-size: ${this.stylingValue.size};
138
- }
139
- `;
140
- break;
141
- default:
142
- e = "";
143
- }
144
- return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
145
- }
146
- static get watchers() {
147
- return {
148
- structure: ["handleStructureChange"]
149
- };
150
- }
151
- };
152
- l.style = a;
153
- export {
154
- l as U
155
- };
@@ -1,155 +0,0 @@
1
- import { r, h as t, H as n } from "./index-b2193545-kN0z2MLt.js";
2
- const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
3
- constructor(e) {
4
- r(this, e), this.stylingValue = {
5
- width: this.handleStylingProps(this.width),
6
- height: this.handleStylingProps(this.height),
7
- borderRadius: this.handleStylingProps(this.borderRadius),
8
- marginBottom: this.handleStylingProps(this.marginBottom),
9
- marginTop: this.handleStylingProps(this.marginTop),
10
- marginLeft: this.handleStylingProps(this.marginLeft),
11
- marginRight: this.handleStylingProps(this.marginRight),
12
- size: this.handleStylingProps(this.size)
13
- }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
14
- }
15
- handleStructureChange(e, i) {
16
- i !== e && this.handleStructure(e);
17
- }
18
- handleStylingProps(e) {
19
- switch (typeof e) {
20
- case "number":
21
- return e === 0 ? 0 : `${e}px`;
22
- case "undefined":
23
- return "unset";
24
- case "string":
25
- return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
26
- default:
27
- return "unset";
28
- }
29
- }
30
- handleStructure(e) {
31
- switch (e) {
32
- case "logo":
33
- return this.renderLogo();
34
- case "image":
35
- return this.renderImage();
36
- case "title":
37
- return this.renderTitle();
38
- case "text":
39
- return this.renderText();
40
- case "rectangle":
41
- return this.renderRectangle();
42
- case "circle":
43
- return this.renderCircle();
44
- default:
45
- return null;
46
- }
47
- }
48
- renderLogo() {
49
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
50
- }
51
- renderImage() {
52
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
53
- }
54
- renderTitle() {
55
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
56
- }
57
- renderText() {
58
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
59
- }
60
- renderRectangle() {
61
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
62
- }
63
- renderCircle() {
64
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
65
- }
66
- render() {
67
- let e = "";
68
- switch (this.structure) {
69
- case "logo":
70
- e = `
71
- :host {
72
- --emw-skeleton-logo-width: ${this.stylingValue.width};
73
- --emw-skeleton-logo-height: ${this.stylingValue.height};
74
- --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
75
- --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
76
- --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
77
- --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
78
- --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
79
- }
80
- `;
81
- break;
82
- case "image":
83
- e = `
84
- :host {
85
- --emw-skeleton-image-width: ${this.stylingValue.width};
86
- --emw-skeleton-image-height: ${this.stylingValue.height};
87
- --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
88
- --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
89
- --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
90
- --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
91
- --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
92
- }
93
- `;
94
- break;
95
- case "title":
96
- e = `
97
- :host {
98
- --emw-skeleton-title-width: ${this.stylingValue.width};
99
- --emw-skeleton-title-height: ${this.stylingValue.height};
100
- --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
101
- --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
102
- --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
103
- --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
104
- --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
105
- }
106
- `;
107
- break;
108
- case "text":
109
- e = `
110
- :host {
111
- --emw-skeleton-text-width: ${this.stylingValue.width};
112
- --emw-skeleton-text-height: ${this.stylingValue.height};
113
- --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
114
- --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
115
- --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
116
- --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
117
- --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
118
- }
119
- `;
120
- break;
121
- case "rectangle":
122
- e = `
123
- :host {
124
- --emw-skeleton-rectangle-width: ${this.stylingValue.width};
125
- --emw-skeleton-rectangle-height: ${this.stylingValue.height};
126
- --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
127
- --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
128
- --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
129
- --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
130
- --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
131
- }
132
- `;
133
- break;
134
- case "circle":
135
- e = `
136
- :host {
137
- --emw-skeleton-circle-size: ${this.stylingValue.size};
138
- }
139
- `;
140
- break;
141
- default:
142
- e = "";
143
- }
144
- return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
145
- }
146
- static get watchers() {
147
- return {
148
- structure: ["handleStructureChange"]
149
- };
150
- }
151
- };
152
- l.style = a;
153
- export {
154
- l as U
155
- };
@@ -1,55 +0,0 @@
1
- "use strict";const t=require("./index-b2193545-3zPNeE9v.cjs"),r=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",s=r,n=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),size:this.handleStylingProps(this.size)},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%"}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
- }
11
- `;break;case"image":e=`
12
- :host {
13
- --emw-skeleton-image-width: ${this.stylingValue.width};
14
- --emw-skeleton-image-height: ${this.stylingValue.height};
15
- --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
16
- --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
17
- --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
18
- --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
19
- --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
20
- }
21
- `;break;case"title":e=`
22
- :host {
23
- --emw-skeleton-title-width: ${this.stylingValue.width};
24
- --emw-skeleton-title-height: ${this.stylingValue.height};
25
- --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
26
- --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
27
- --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
28
- --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
29
- --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
30
- }
31
- `;break;case"text":e=`
32
- :host {
33
- --emw-skeleton-text-width: ${this.stylingValue.width};
34
- --emw-skeleton-text-height: ${this.stylingValue.height};
35
- --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
36
- --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
37
- --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
38
- --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
39
- --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
40
- }
41
- `;break;case"rectangle":e=`
42
- :host {
43
- --emw-skeleton-rectangle-width: ${this.stylingValue.width};
44
- --emw-skeleton-rectangle-height: ${this.stylingValue.height};
45
- --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
46
- --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
47
- --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
48
- --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
49
- --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
50
- }
51
- `;break;case"circle":e=`
52
- :host {
53
- --emw-skeleton-circle-size: ${this.stylingValue.size};
54
- }
55
- `;break;default:e=""}return t.h(t.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=s;exports.UiSkeleton=n;