@everymatrix/casino-tournaments-controller 1.68.0 → 1.69.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/components/{CasinoTournamentsController-CtQ0SbZ1.js → CasinoTournamentsController-CaMHo7kl.js} +2 -2
  2. package/components/{CasinoTournamentsController-Dv0w6uxv.js → CasinoTournamentsController-y6OeVi_0.js} +2 -2
  3. package/components/{CasinoTournamentsController-C99E3MCm.cjs → CasinoTournamentsController-zsk3O21R.cjs} +1 -1
  4. package/components/{CasinoTournamentsFilterController-CA_x2Klb.js → CasinoTournamentsFilterController-DGfXf5iR.js} +1 -1
  5. package/components/{CasinoTournamentsFilterController-D8z30hIO.cjs → CasinoTournamentsFilterController-DRZyX7t3.cjs} +1 -1
  6. package/components/{CasinoTournamentsFilterController-ZPodzMjS.js → CasinoTournamentsFilterController-r5txIEL7.js} +1 -1
  7. package/components/{CasinoTournamentsListController-CMsPWeSH.cjs → CasinoTournamentsListController-CdebSgGr.cjs} +2 -2
  8. package/components/{CasinoTournamentsListController-CWtG_Kjm.js → CasinoTournamentsListController-DQvY1Nrw.js} +2 -2
  9. package/components/{CasinoTournamentsListController-BYjVebPq.js → CasinoTournamentsListController-QkjB8Zv-.js} +2 -2
  10. package/components/{CasinoTournamentsThumbnail-zXFGDGG1.cjs → CasinoTournamentsThumbnail-BXN8s1iu.cjs} +1 -1
  11. package/components/{CasinoTournamentsThumbnail-DIFGhQrc.js → CasinoTournamentsThumbnail-CH1SJZtx.js} +3 -3
  12. package/components/{CasinoTournamentsThumbnail-Dtfyse7r.js → CasinoTournamentsThumbnail-D5UPkHRq.js} +3 -3
  13. package/components/{CasinoTournamentsThumbnailController-Cjehrx7D.cjs → CasinoTournamentsThumbnailController-1ycu14aJ.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailController-DChZllZ4.js → CasinoTournamentsThumbnailController-BpBOuBi8.js} +5 -5
  15. package/components/{CasinoTournamentsThumbnailController-cPtKiglf.js → CasinoTournamentsThumbnailController-RxkwztbY.js} +5 -5
  16. package/components/{CasinoTournamentsThumbnailDuration-CRqfmGfU.js → CasinoTournamentsThumbnailDuration-B3K5lXXl.js} +1 -1
  17. package/components/{CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs → CasinoTournamentsThumbnailDuration-BACly0SB.cjs} +1 -1
  18. package/components/{CasinoTournamentsThumbnailDuration-DFTngt18.js → CasinoTournamentsThumbnailDuration-DE6I4FMw.js} +1 -1
  19. package/components/{CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js → CasinoTournamentsThumbnailGamesSlider-0L_GQTmy.js} +1 -1
  20. package/components/{CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs → CasinoTournamentsThumbnailGamesSlider-CaE29vQX.cjs} +1 -1
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js → CasinoTournamentsThumbnailGamesSlider-Drh3pWO3.js} +1 -1
  22. package/components/{CasinoTournamentsThumbnailPrizes-C1nsvr3R.js → CasinoTournamentsThumbnailPrizes-BOSdIYd-.js} +1 -1
  23. package/components/{CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs → CasinoTournamentsThumbnailPrizes-Cmc8a2K9.cjs} +1 -1
  24. package/components/{CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js → CasinoTournamentsThumbnailPrizes-hSslNjvi.js} +1 -1
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{index-97d17652-D5_8Vwfn.cjs → index-97d17652-CjAagVjG.cjs} +1 -1
  30. package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-D1-6d0Bk.js} +1 -1
  31. package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-IdX2D3yt.js} +1 -1
  32. package/stencil/{index-b2193545-CFn9dM-v.js → index-b2193545-B0DvEfNA.js} +1 -1
  33. package/stencil/{index-b2193545-BOMvxBzV.js → index-b2193545-B7UKA_2g.js} +1 -1
  34. package/stencil/{index-b2193545-DPygl1Qn.cjs → index-b2193545-CD-WYnv3.cjs} +1 -1
  35. package/stencil/{ui-image-DE8MJHCZ.cjs → ui-image-Bfgzybc8.cjs} +1 -1
  36. package/stencil/{ui-image-3hy4ZvUC.js → ui-image-DMMaNQyp.js} +2 -2
  37. package/stencil/{ui-image-D0wxuPze.js → ui-image-IRAtD-6W.js} +2 -2
  38. package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-C2NxBIqB.js} +1 -1
  39. package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-CSbk4a-_.js} +1 -1
  40. package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DtQlRvK7.cjs} +1 -1
  41. package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-BjVQzUTV.js} +63 -43
  42. package/stencil/{ui-skeleton-1cb75d00-B-R8GbLJ.js → ui-image_2-CaETIZEN.js} +63 -41
  43. package/stencil/ui-image_2-gOIKmeIr.cjs +73 -0
  44. package/stencil/{ui-skeleton-1cb75d00-Dy30RNE6.js → ui-skeleton-161699c3-CTNclVRw.js} +61 -41
  45. package/stencil/ui-skeleton-161699c3-DJ_yCEN0.cjs +73 -0
  46. package/stencil/{ui-image_2-B56t6kXT.js → ui-skeleton-161699c3-mmBDKvtl.js} +61 -43
  47. package/stencil/{ui-skeleton-se83zfWh.cjs → ui-skeleton-9_sHWZmN.cjs} +1 -1
  48. package/stencil/{ui-skeleton-CVBjRUvi.js → ui-skeleton-B2gC9kOp.js} +3 -3
  49. package/stencil/{ui-skeleton-RkXNxPG1.js → ui-skeleton-DxwGOcon.js} +3 -3
  50. package/stencil/ui-image_2-YkYxLKu7.cjs +0 -73
  51. package/stencil/ui-skeleton-1cb75d00-BTnhspbc.cjs +0 -73
@@ -0,0 +1,73 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ui-image-b7b48fe5-DtQlRvK7.cjs"),t=require("./index-97d17652-CjAagVjG.cjs"),n=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,r=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
+ :host {
3
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
4
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
5
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
+ --emw-skeleton-logo-background: ${this.color};
11
+ --emw-skeleton-primary-color: ${this.primaryColor};
12
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
13
+ }
14
+ `;break;case"image":e=`
15
+ :host {
16
+ --emw-skeleton-image-width: ${this.stylingValue.width};
17
+ --emw-skeleton-image-height: ${this.stylingValue.height};
18
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
19
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
20
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
21
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
22
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
23
+ --emw-skeleton-image-background: ${this.color};
24
+ --emw-skeleton-primary-color: ${this.primaryColor};
25
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
26
+ }
27
+ `;break;case"title":e=`
28
+ :host {
29
+ --emw-skeleton-title-width: ${this.stylingValue.width};
30
+ --emw-skeleton-title-height: ${this.stylingValue.height};
31
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
32
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
33
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
34
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
35
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
36
+ --emw-skeleton-title-background: ${this.color};
37
+ --emw-skeleton-primary-color: ${this.primaryColor};
38
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
39
+ }
40
+ `;break;case"text":e=`
41
+ :host {
42
+ --emw-skeleton-text-width: ${this.stylingValue.width};
43
+ --emw-skeleton-text-height: ${this.stylingValue.height};
44
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
45
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
46
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
47
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
48
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
49
+ --emw-skeleton-text-background: ${this.color};
50
+ --emw-skeleton-primary-color: ${this.primaryColor};
51
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
52
+ }
53
+ `;break;case"rectangle":e=`
54
+ :host {
55
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
56
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
57
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
58
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
59
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
60
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
61
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
62
+ --emw-skeleton-rectangle-background: ${this.color};
63
+ --emw-skeleton-primary-color: ${this.primaryColor};
64
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
65
+ }
66
+ `;break;case"circle":e=`
67
+ :host {
68
+ --emw-skeleton-circle-size: ${this.size};
69
+ --emw-skeleton-circle-background: ${this.color};
70
+ --emw-skeleton-primary-color: ${this.primaryColor};
71
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
72
+ }
73
+ `;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=s;exports.ui_image=o.UiImage;exports.ui_skeleton=r;
@@ -1,11 +1,31 @@
1
- import { r as o, h as t, H as i } from "./index-b2193545-BOMvxBzV.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 {
1
+ import { r as i, h as t, H as o } from "./index-b2193545-B7UKA_2g.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, l = class {
3
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;
4
+ i(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
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%", this.color = "#c2c2c2", this.primaryColor = "#c2c2c2", this.secondaryColor = "#ffffff";
5
13
  }
6
14
  handleStructureChange(e, r) {
7
15
  r !== e && this.handleStructure(e);
8
16
  }
17
+ handleStylingProps(e) {
18
+ switch (typeof e) {
19
+ case "number":
20
+ return e === 0 ? 0 : `${e}px`;
21
+ case "undefined":
22
+ return "unset";
23
+ case "string":
24
+ return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
25
+ default:
26
+ return "unset";
27
+ }
28
+ }
9
29
  handleStructure(e) {
10
30
  switch (e) {
11
31
  case "logo":
@@ -48,13 +68,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
48
68
  case "logo":
49
69
  e = `
50
70
  :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;
71
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
72
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
73
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
74
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
75
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
76
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
77
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
58
78
  --emw-skeleton-logo-background: ${this.color};
59
79
  --emw-skeleton-primary-color: ${this.primaryColor};
60
80
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -64,13 +84,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
64
84
  case "image":
65
85
  e = `
66
86
  :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;
87
+ --emw-skeleton-image-width: ${this.stylingValue.width};
88
+ --emw-skeleton-image-height: ${this.stylingValue.height};
89
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
90
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
91
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
92
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
93
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
74
94
  --emw-skeleton-image-background: ${this.color};
75
95
  --emw-skeleton-primary-color: ${this.primaryColor};
76
96
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -80,13 +100,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
80
100
  case "title":
81
101
  e = `
82
102
  :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;
103
+ --emw-skeleton-title-width: ${this.stylingValue.width};
104
+ --emw-skeleton-title-height: ${this.stylingValue.height};
105
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
106
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
107
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
108
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
109
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
90
110
  --emw-skeleton-title-background: ${this.color};
91
111
  --emw-skeleton-primary-color: ${this.primaryColor};
92
112
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -96,13 +116,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
96
116
  case "text":
97
117
  e = `
98
118
  :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;
119
+ --emw-skeleton-text-width: ${this.stylingValue.width};
120
+ --emw-skeleton-text-height: ${this.stylingValue.height};
121
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
122
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
123
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
124
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
125
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
106
126
  --emw-skeleton-text-background: ${this.color};
107
127
  --emw-skeleton-primary-color: ${this.primaryColor};
108
128
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -112,13 +132,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
112
132
  case "rectangle":
113
133
  e = `
114
134
  :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;
135
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
136
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
137
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
138
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
139
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
140
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
141
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
122
142
  --emw-skeleton-rectangle-background: ${this.color};
123
143
  --emw-skeleton-primary-color: ${this.primaryColor};
124
144
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -138,7 +158,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
138
158
  default:
139
159
  e = "";
140
160
  }
141
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
161
+ return t(o, { key: "5c185b76c438d20d4ad88bc48d94ff5628410bb7" }, t("style", { key: "de95e60a5955d5b2af83710423fe40329c187f7e" }, e), this.handleStructure(this.structure));
142
162
  }
143
163
  static get watchers() {
144
164
  return {
@@ -146,7 +166,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
146
166
  };
147
167
  }
148
168
  };
149
- a.style = s;
169
+ l.style = s;
150
170
  export {
151
- a as U
171
+ l as U
152
172
  };
@@ -0,0 +1,73 @@
1
+ "use strict";const t=require("./index-b2193545-CD-WYnv3.cjs"),o=":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=o,i=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}handleStructureChange(e,r){r!==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,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.stylingValue.width};
4
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
5
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
+ --emw-skeleton-logo-background: ${this.color};
11
+ --emw-skeleton-primary-color: ${this.primaryColor};
12
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
13
+ }
14
+ `;break;case"image":e=`
15
+ :host {
16
+ --emw-skeleton-image-width: ${this.stylingValue.width};
17
+ --emw-skeleton-image-height: ${this.stylingValue.height};
18
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
19
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
20
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
21
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
22
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
23
+ --emw-skeleton-image-background: ${this.color};
24
+ --emw-skeleton-primary-color: ${this.primaryColor};
25
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
26
+ }
27
+ `;break;case"title":e=`
28
+ :host {
29
+ --emw-skeleton-title-width: ${this.stylingValue.width};
30
+ --emw-skeleton-title-height: ${this.stylingValue.height};
31
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
32
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
33
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
34
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
35
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
36
+ --emw-skeleton-title-background: ${this.color};
37
+ --emw-skeleton-primary-color: ${this.primaryColor};
38
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
39
+ }
40
+ `;break;case"text":e=`
41
+ :host {
42
+ --emw-skeleton-text-width: ${this.stylingValue.width};
43
+ --emw-skeleton-text-height: ${this.stylingValue.height};
44
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
45
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
46
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
47
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
48
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
49
+ --emw-skeleton-text-background: ${this.color};
50
+ --emw-skeleton-primary-color: ${this.primaryColor};
51
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
52
+ }
53
+ `;break;case"rectangle":e=`
54
+ :host {
55
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
56
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
57
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
58
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
59
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
60
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
61
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
62
+ --emw-skeleton-rectangle-background: ${this.color};
63
+ --emw-skeleton-primary-color: ${this.primaryColor};
64
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
65
+ }
66
+ `;break;case"circle":e=`
67
+ :host {
68
+ --emw-skeleton-circle-size: ${this.size};
69
+ --emw-skeleton-circle-background: ${this.color};
70
+ --emw-skeleton-primary-color: ${this.primaryColor};
71
+ --emw-skeleton-secondary-color: ${this.secondaryColor};
72
+ }
73
+ `;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};i.style=n;exports.UiSkeleton=i;
@@ -1,12 +1,31 @@
1
- import { U as h } from "./ui-image-b7b48fe5-V9vp4faA.js";
2
- import { r as o, h as t, H as i } from "./index-97d17652-BEnqZAxL.js";
3
- const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
1
+ import { r as i, h as t, H as o } from "./index-b2193545-B0DvEfNA.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, l = class {
4
3
  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;
4
+ i(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
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%", this.color = "#c2c2c2", this.primaryColor = "#c2c2c2", this.secondaryColor = "#ffffff";
6
13
  }
7
14
  handleStructureChange(e, r) {
8
15
  r !== e && this.handleStructure(e);
9
16
  }
17
+ handleStylingProps(e) {
18
+ switch (typeof e) {
19
+ case "number":
20
+ return e === 0 ? 0 : `${e}px`;
21
+ case "undefined":
22
+ return "unset";
23
+ case "string":
24
+ return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
25
+ default:
26
+ return "unset";
27
+ }
28
+ }
10
29
  handleStructure(e) {
11
30
  switch (e) {
12
31
  case "logo":
@@ -49,13 +68,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
49
68
  case "logo":
50
69
  e = `
51
70
  :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;
71
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
72
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
73
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
74
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
75
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
76
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
77
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
59
78
  --emw-skeleton-logo-background: ${this.color};
60
79
  --emw-skeleton-primary-color: ${this.primaryColor};
61
80
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -65,13 +84,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
65
84
  case "image":
66
85
  e = `
67
86
  :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;
87
+ --emw-skeleton-image-width: ${this.stylingValue.width};
88
+ --emw-skeleton-image-height: ${this.stylingValue.height};
89
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
90
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
91
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
92
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
93
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
75
94
  --emw-skeleton-image-background: ${this.color};
76
95
  --emw-skeleton-primary-color: ${this.primaryColor};
77
96
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -81,13 +100,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
81
100
  case "title":
82
101
  e = `
83
102
  :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;
103
+ --emw-skeleton-title-width: ${this.stylingValue.width};
104
+ --emw-skeleton-title-height: ${this.stylingValue.height};
105
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
106
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
107
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
108
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
109
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
91
110
  --emw-skeleton-title-background: ${this.color};
92
111
  --emw-skeleton-primary-color: ${this.primaryColor};
93
112
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -97,13 +116,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
97
116
  case "text":
98
117
  e = `
99
118
  :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;
119
+ --emw-skeleton-text-width: ${this.stylingValue.width};
120
+ --emw-skeleton-text-height: ${this.stylingValue.height};
121
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
122
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
123
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
124
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
125
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
107
126
  --emw-skeleton-text-background: ${this.color};
108
127
  --emw-skeleton-primary-color: ${this.primaryColor};
109
128
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -113,13 +132,13 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
113
132
  case "rectangle":
114
133
  e = `
115
134
  :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;
135
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
136
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
137
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
138
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
139
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
140
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
141
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
123
142
  --emw-skeleton-rectangle-background: ${this.color};
124
143
  --emw-skeleton-primary-color: ${this.primaryColor};
125
144
  --emw-skeleton-secondary-color: ${this.secondaryColor};
@@ -139,7 +158,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
139
158
  default:
140
159
  e = "";
141
160
  }
142
- return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
161
+ return t(o, { key: "5c185b76c438d20d4ad88bc48d94ff5628410bb7" }, t("style", { key: "de95e60a5955d5b2af83710423fe40329c187f7e" }, e), this.handleStructure(this.structure));
143
162
  }
144
163
  static get watchers() {
145
164
  return {
@@ -147,8 +166,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
147
166
  };
148
167
  }
149
168
  };
150
- a.style = s;
169
+ l.style = s;
151
170
  export {
152
- h as ui_image,
153
- a as ui_skeleton
171
+ l as U
154
172
  };
@@ -1 +1 @@
1
- "use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-DPygl1Qn.cjs"),p=require("./app-globals-0f993ce5-DgOnOgxM.cjs"),g=require("./ui-skeleton-1cb75d00-BTnhspbc.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-se83zfWh.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts$1(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
1
+ "use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-CD-WYnv3.cjs"),p=require("./app-globals-0f993ce5-DgOnOgxM.cjs"),g=require("./ui-skeleton-161699c3-DJ_yCEN0.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-9_sHWZmN.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts$1(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
@@ -14,15 +14,15 @@ var n = (o, t, a) => new Promise((m, s) => {
14
14
  }, e = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l, u);
15
15
  e((a = a.apply(o, t)).next());
16
16
  });
17
- import { b as p, p as c } from "./index-b2193545-BOMvxBzV.js";
17
+ import { b as p, p as c } from "./index-b2193545-B7UKA_2g.js";
18
18
  import { a as g } from "./app-globals-0f993ce5-B6nNHmA4.js";
19
- import { U as R } from "./ui-skeleton-1cb75d00-Dy30RNE6.js";
19
+ import { U as R } from "./ui-skeleton-161699c3-CTNclVRw.js";
20
20
  var h = () => {
21
21
  const o = import.meta.url, t = {};
22
22
  return o !== "" && (t.resourcesUrl = new URL(".", o).href), c(t);
23
23
  };
24
24
  h().then((o) => n(void 0, null, function* () {
25
- return yield g(), p([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], o);
25
+ return yield g(), p([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], o);
26
26
  }));
27
27
  export {
28
28
  R as ui_skeleton
@@ -1,11 +1,11 @@
1
- import { b as t, p as a } from "./index-b2193545-CFn9dM-v.js";
1
+ import { b as t, p as a } from "./index-b2193545-B0DvEfNA.js";
2
2
  import { a as e } from "./app-globals-0f993ce5-B6nNHmA4.js";
3
- import { U as u } from "./ui-skeleton-1cb75d00-B-R8GbLJ.js";
3
+ import { U as u } from "./ui-skeleton-161699c3-mmBDKvtl.js";
4
4
  var i = () => {
5
5
  const r = import.meta.url, o = {};
6
6
  return r !== "" && (o.resourcesUrl = new URL(".", r).href), a(o);
7
7
  };
8
- i().then(async (r) => (await e(), t([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
8
+ i().then(async (r) => (await e(), t([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
9
9
  export {
10
10
  u as ui_skeleton
11
11
  };