@everymatrix/casino-games-category-section 1.69.0 → 1.69.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoGameThumbnail-Bq9mpgLt.js → CasinoGameThumbnail-CM6lSgs_.js} +1 -1
- package/components/{CasinoGameThumbnail-BaX6mLdw.js → CasinoGameThumbnail-D6fiSbF8.js} +1 -1
- package/components/{CasinoGameThumbnail-CYDuVrC6.cjs → CasinoGameThumbnail-DqZvCtMQ.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-BJT-wv-i.js → CasinoGamesCategorySection-Bfe8nZSN.js} +2 -2
- package/components/{CasinoGamesCategorySection-DjyhCitA.js → CasinoGamesCategorySection-BtCpeF-u.js} +2 -2
- package/components/{CasinoGamesCategorySection-BCeh01vB.cjs → CasinoGamesCategorySection-OW19PRqL.cjs} +1 -1
- package/es2015/casino-games-category-section.cjs +1 -1
- package/es2015/casino-games-category-section.js +1 -1
- package/esnext/casino-games-category-section.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-B0NIExnR.js} +1 -1
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-D6HPqRtr.js} +1 -1
- package/stencil/{index-97d17652-D5_8Vwfn.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
- package/stencil/ui-image-BY8ZO6br.js +7 -0
- package/stencil/ui-image-DJSOH8ZL.cjs +1 -0
- package/stencil/ui-image-DfVgiF6v.js +25 -0
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
- package/stencil/ui-image_2-DbQ7SENq.js +157 -0
- package/stencil/ui-image_2-L-CYescb.js +157 -0
- package/stencil/ui-image-CMb1eK44.cjs +0 -1
- package/stencil/ui-image-CQQDA5b0.js +0 -25
- package/stencil/ui-image-CmwNU-jf.js +0 -7
- package/stencil/ui-image_2-B56t6kXT.js +0 -154
- package/stencil/ui-image_2-BncuYpLi.js +0 -154
- package/stencil/ui-image_2-YkYxLKu7.cjs +0 -73
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { b as e, p as a } from "./index-97d17652-D6HPqRtr.js";
|
|
2
|
+
import { g as i } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
3
|
+
var o = () => {
|
|
4
|
+
const t = import.meta.url, r = {};
|
|
5
|
+
return t !== "" && (r.resourcesUrl = new URL(".", t).href), a(r);
|
|
6
|
+
};
|
|
7
|
+
o().then(async (t) => (await i(), e([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [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] }, null, { structure: ["handleStructureChange"] }]]]], t)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var l=e=>{try{n(i.next(e))}catch(a){s(a)}},m=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(l,m);n((i=i.apply(t,r)).next())});const u=require("./index-97d17652-DNpK20ur.cjs"),g=require("./app-globals-0f993ce5-sCt45RkC.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-DJSOH8ZL.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield g.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[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]},null,{structure:["handleStructureChange"]}]]]],t)}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var n = (r, e, a) => new Promise((m, s) => {
|
|
2
|
+
var g = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
i(a.next(t));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
s(o);
|
|
7
|
+
}
|
|
8
|
+
}, u = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
i(a.throw(t));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
s(o);
|
|
13
|
+
}
|
|
14
|
+
}, i = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(g, u);
|
|
15
|
+
i((a = a.apply(r, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as c, p as l } from "./index-97d17652-B0NIExnR.js";
|
|
18
|
+
import { g as d } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
+
var h = () => {
|
|
20
|
+
const r = import.meta.url, e = {};
|
|
21
|
+
return r !== "" && (e.resourcesUrl = new URL(".", r).href), l(e);
|
|
22
|
+
};
|
|
23
|
+
h().then((r) => n(void 0, null, function* () {
|
|
24
|
+
return yield d(), c([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [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] }, null, { structure: ["handleStructureChange"] }]]]], r);
|
|
25
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as s, H as n, g as a } from "./index-97d17652-
|
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-B0NIExnR.js";
|
|
2
2
|
const d = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = d, h = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./index-97d17652-
|
|
1
|
+
"use strict";const i=require("./index-97d17652-DNpK20ur.cjs"),r=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",d=r,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=d;exports.UiImage=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as s, H as n, g as a } from "./index-97d17652-
|
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-D6HPqRtr.js";
|
|
2
2
|
const d = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = d, h = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-b7b48fe5-DaWM2RbJ.cjs"),t=require("./index-97d17652-DNpK20ur.cjs"),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,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=a;exports.ui_image=r.UiImage;exports.ui_skeleton=n;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-c0NIgcTj.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-97d17652-D6HPqRtr.js";
|
|
3
|
+
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 {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.stylingValue = {
|
|
6
|
+
width: this.handleStylingProps(this.width),
|
|
7
|
+
height: this.handleStylingProps(this.height),
|
|
8
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
9
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
10
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
11
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
12
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
13
|
+
size: this.handleStylingProps(this.size)
|
|
14
|
+
}, 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%";
|
|
15
|
+
}
|
|
16
|
+
handleStructureChange(e, i) {
|
|
17
|
+
i !== e && this.handleStructure(e);
|
|
18
|
+
}
|
|
19
|
+
handleStylingProps(e) {
|
|
20
|
+
switch (typeof e) {
|
|
21
|
+
case "number":
|
|
22
|
+
return e === 0 ? 0 : `${e}px`;
|
|
23
|
+
case "undefined":
|
|
24
|
+
return "unset";
|
|
25
|
+
case "string":
|
|
26
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
27
|
+
default:
|
|
28
|
+
return "unset";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
handleStructure(e) {
|
|
32
|
+
switch (e) {
|
|
33
|
+
case "logo":
|
|
34
|
+
return this.renderLogo();
|
|
35
|
+
case "image":
|
|
36
|
+
return this.renderImage();
|
|
37
|
+
case "title":
|
|
38
|
+
return this.renderTitle();
|
|
39
|
+
case "text":
|
|
40
|
+
return this.renderText();
|
|
41
|
+
case "rectangle":
|
|
42
|
+
return this.renderRectangle();
|
|
43
|
+
case "circle":
|
|
44
|
+
return this.renderCircle();
|
|
45
|
+
default:
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
renderLogo() {
|
|
50
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
51
|
+
}
|
|
52
|
+
renderImage() {
|
|
53
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
54
|
+
}
|
|
55
|
+
renderTitle() {
|
|
56
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
57
|
+
}
|
|
58
|
+
renderText() {
|
|
59
|
+
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" : "") })));
|
|
60
|
+
}
|
|
61
|
+
renderRectangle() {
|
|
62
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
63
|
+
}
|
|
64
|
+
renderCircle() {
|
|
65
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
let e = "";
|
|
69
|
+
switch (this.structure) {
|
|
70
|
+
case "logo":
|
|
71
|
+
e = `
|
|
72
|
+
:host {
|
|
73
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
74
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
75
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
76
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
77
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
78
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
79
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
break;
|
|
83
|
+
case "image":
|
|
84
|
+
e = `
|
|
85
|
+
:host {
|
|
86
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
87
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
88
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
89
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
90
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
91
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
92
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "title":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
100
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
101
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
102
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
103
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
104
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
105
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
break;
|
|
109
|
+
case "text":
|
|
110
|
+
e = `
|
|
111
|
+
:host {
|
|
112
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
113
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
114
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
115
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
116
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
117
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
118
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
break;
|
|
122
|
+
case "rectangle":
|
|
123
|
+
e = `
|
|
124
|
+
:host {
|
|
125
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
126
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
127
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
128
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
129
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
130
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
131
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
break;
|
|
135
|
+
case "circle":
|
|
136
|
+
e = `
|
|
137
|
+
:host {
|
|
138
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
e = "";
|
|
144
|
+
}
|
|
145
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
146
|
+
}
|
|
147
|
+
static get watchers() {
|
|
148
|
+
return {
|
|
149
|
+
structure: ["handleStructureChange"]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
l.style = a;
|
|
154
|
+
export {
|
|
155
|
+
m as ui_image,
|
|
156
|
+
l as ui_skeleton
|
|
157
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-BXmf73Ou.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-97d17652-B0NIExnR.js";
|
|
3
|
+
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 {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.stylingValue = {
|
|
6
|
+
width: this.handleStylingProps(this.width),
|
|
7
|
+
height: this.handleStylingProps(this.height),
|
|
8
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
9
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
10
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
11
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
12
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
13
|
+
size: this.handleStylingProps(this.size)
|
|
14
|
+
}, 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%";
|
|
15
|
+
}
|
|
16
|
+
handleStructureChange(e, i) {
|
|
17
|
+
i !== e && this.handleStructure(e);
|
|
18
|
+
}
|
|
19
|
+
handleStylingProps(e) {
|
|
20
|
+
switch (typeof e) {
|
|
21
|
+
case "number":
|
|
22
|
+
return e === 0 ? 0 : `${e}px`;
|
|
23
|
+
case "undefined":
|
|
24
|
+
return "unset";
|
|
25
|
+
case "string":
|
|
26
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
27
|
+
default:
|
|
28
|
+
return "unset";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
handleStructure(e) {
|
|
32
|
+
switch (e) {
|
|
33
|
+
case "logo":
|
|
34
|
+
return this.renderLogo();
|
|
35
|
+
case "image":
|
|
36
|
+
return this.renderImage();
|
|
37
|
+
case "title":
|
|
38
|
+
return this.renderTitle();
|
|
39
|
+
case "text":
|
|
40
|
+
return this.renderText();
|
|
41
|
+
case "rectangle":
|
|
42
|
+
return this.renderRectangle();
|
|
43
|
+
case "circle":
|
|
44
|
+
return this.renderCircle();
|
|
45
|
+
default:
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
renderLogo() {
|
|
50
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
51
|
+
}
|
|
52
|
+
renderImage() {
|
|
53
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
54
|
+
}
|
|
55
|
+
renderTitle() {
|
|
56
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
57
|
+
}
|
|
58
|
+
renderText() {
|
|
59
|
+
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" : "") })));
|
|
60
|
+
}
|
|
61
|
+
renderRectangle() {
|
|
62
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
63
|
+
}
|
|
64
|
+
renderCircle() {
|
|
65
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
let e = "";
|
|
69
|
+
switch (this.structure) {
|
|
70
|
+
case "logo":
|
|
71
|
+
e = `
|
|
72
|
+
:host {
|
|
73
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
74
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
75
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
76
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
77
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
78
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
79
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
break;
|
|
83
|
+
case "image":
|
|
84
|
+
e = `
|
|
85
|
+
:host {
|
|
86
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
87
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
88
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
89
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
90
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
91
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
92
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "title":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
100
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
101
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
102
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
103
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
104
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
105
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
break;
|
|
109
|
+
case "text":
|
|
110
|
+
e = `
|
|
111
|
+
:host {
|
|
112
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
113
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
114
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
115
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
116
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
117
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
118
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
break;
|
|
122
|
+
case "rectangle":
|
|
123
|
+
e = `
|
|
124
|
+
:host {
|
|
125
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
126
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
127
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
128
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
129
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
130
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
131
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
break;
|
|
135
|
+
case "circle":
|
|
136
|
+
e = `
|
|
137
|
+
:host {
|
|
138
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
e = "";
|
|
144
|
+
}
|
|
145
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
146
|
+
}
|
|
147
|
+
static get watchers() {
|
|
148
|
+
return {
|
|
149
|
+
structure: ["handleStructureChange"]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
l.style = a;
|
|
154
|
+
export {
|
|
155
|
+
m as ui_image,
|
|
156
|
+
l as ui_skeleton
|
|
157
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=(r,t,i)=>new Promise((l,c)=>{var d=e=>{try{o(i.next(e))}catch(n){c(n)}},m=e=>{try{o(i.throw(e))}catch(n){c(n)}},o=e=>e.done?l(e.value):Promise.resolve(e.value).then(d,m);o((i=i.apply(r,t)).next())});const u=require("./index-97d17652-D5_8Vwfn.cjs"),g=require("./app-globals-0f993ce5-sCt45RkC.cjs");var a=typeof document!="undefined"?document.currentScript:null,h=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-image-CMb1eK44.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};h().then(r=>s(exports,null,function*(){return yield g.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[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)}));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var n = (t, o, e) => new Promise((m, s) => {
|
|
2
|
-
var c = (r) => {
|
|
3
|
-
try {
|
|
4
|
-
a(e.next(r));
|
|
5
|
-
} catch (i) {
|
|
6
|
-
s(i);
|
|
7
|
-
}
|
|
8
|
-
}, l = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
a(e.throw(r));
|
|
11
|
-
} catch (i) {
|
|
12
|
-
s(i);
|
|
13
|
-
}
|
|
14
|
-
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(c, l);
|
|
15
|
-
a((e = e.apply(t, o)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as g, p as u } from "./index-97d17652-BEnqZAxL.js";
|
|
18
|
-
import { g as d } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
-
var h = () => {
|
|
20
|
-
const t = import.meta.url, o = {};
|
|
21
|
-
return t !== "" && (o.resourcesUrl = new URL(".", t).href), u(o);
|
|
22
|
-
};
|
|
23
|
-
h().then((t) => n(void 0, null, function* () {
|
|
24
|
-
return yield d(), g([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [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"] }]]]], t);
|
|
25
|
-
}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { b as o, p as e } from "./index-97d17652-WK_DbPS4.js";
|
|
2
|
-
import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
3
|
-
var i = () => {
|
|
4
|
-
const r = import.meta.url, t = {};
|
|
5
|
-
return r !== "" && (t.resourcesUrl = new URL(".", r).href), e(t);
|
|
6
|
-
};
|
|
7
|
-
i().then(async (r) => (await a(), o([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [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)));
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { U as h } from "./ui-image-b7b48fe5-V9vp4faA.js";
|
|
2
|
-
import { r as o, h as t, H as i } from "./index-97d17652-BEnqZAxL.js";
|
|
3
|
-
const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
|
|
4
|
-
constructor(e) {
|
|
5
|
-
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
|
6
|
-
}
|
|
7
|
-
handleStructureChange(e, r) {
|
|
8
|
-
r !== e && this.handleStructure(e);
|
|
9
|
-
}
|
|
10
|
-
handleStructure(e) {
|
|
11
|
-
switch (e) {
|
|
12
|
-
case "logo":
|
|
13
|
-
return this.renderLogo();
|
|
14
|
-
case "image":
|
|
15
|
-
return this.renderImage();
|
|
16
|
-
case "title":
|
|
17
|
-
return this.renderTitle();
|
|
18
|
-
case "text":
|
|
19
|
-
return this.renderText();
|
|
20
|
-
case "rectangle":
|
|
21
|
-
return this.renderRectangle();
|
|
22
|
-
case "circle":
|
|
23
|
-
return this.renderCircle();
|
|
24
|
-
default:
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
renderLogo() {
|
|
29
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
30
|
-
}
|
|
31
|
-
renderImage() {
|
|
32
|
-
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
33
|
-
}
|
|
34
|
-
renderTitle() {
|
|
35
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
36
|
-
}
|
|
37
|
-
renderText() {
|
|
38
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
39
|
-
}
|
|
40
|
-
renderRectangle() {
|
|
41
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
42
|
-
}
|
|
43
|
-
renderCircle() {
|
|
44
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
let e = "";
|
|
48
|
-
switch (this.structure) {
|
|
49
|
-
case "logo":
|
|
50
|
-
e = `
|
|
51
|
-
:host {
|
|
52
|
-
--emw-skeleton-logo-width: ${this.width};
|
|
53
|
-
--emw-skeleton-logo-height: ${this.height};
|
|
54
|
-
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
55
|
-
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
56
|
-
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
57
|
-
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
58
|
-
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
59
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
60
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
61
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
break;
|
|
65
|
-
case "image":
|
|
66
|
-
e = `
|
|
67
|
-
:host {
|
|
68
|
-
--emw-skeleton-image-width: ${this.width};
|
|
69
|
-
--emw-skeleton-image-height: ${this.height};
|
|
70
|
-
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
71
|
-
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
72
|
-
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
73
|
-
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
74
|
-
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
75
|
-
--emw-skeleton-image-background: ${this.color};
|
|
76
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
77
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
break;
|
|
81
|
-
case "title":
|
|
82
|
-
e = `
|
|
83
|
-
:host {
|
|
84
|
-
--emw-skeleton-title-width: ${this.width};
|
|
85
|
-
--emw-skeleton-title-height: ${this.height};
|
|
86
|
-
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
87
|
-
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
88
|
-
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
89
|
-
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
90
|
-
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
91
|
-
--emw-skeleton-title-background: ${this.color};
|
|
92
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
93
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
94
|
-
}
|
|
95
|
-
`;
|
|
96
|
-
break;
|
|
97
|
-
case "text":
|
|
98
|
-
e = `
|
|
99
|
-
:host {
|
|
100
|
-
--emw-skeleton-text-width: ${this.width};
|
|
101
|
-
--emw-skeleton-text-height: ${this.height};
|
|
102
|
-
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
103
|
-
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
104
|
-
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
105
|
-
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
106
|
-
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
107
|
-
--emw-skeleton-text-background: ${this.color};
|
|
108
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
109
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
110
|
-
}
|
|
111
|
-
`;
|
|
112
|
-
break;
|
|
113
|
-
case "rectangle":
|
|
114
|
-
e = `
|
|
115
|
-
:host {
|
|
116
|
-
--emw-skeleton-rectangle-width: ${this.width};
|
|
117
|
-
--emw-skeleton-rectangle-height: ${this.height};
|
|
118
|
-
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
119
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
120
|
-
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
121
|
-
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
122
|
-
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
123
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
124
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
125
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
126
|
-
}
|
|
127
|
-
`;
|
|
128
|
-
break;
|
|
129
|
-
case "circle":
|
|
130
|
-
e = `
|
|
131
|
-
:host {
|
|
132
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
133
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
134
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
135
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
136
|
-
}
|
|
137
|
-
`;
|
|
138
|
-
break;
|
|
139
|
-
default:
|
|
140
|
-
e = "";
|
|
141
|
-
}
|
|
142
|
-
return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
|
|
143
|
-
}
|
|
144
|
-
static get watchers() {
|
|
145
|
-
return {
|
|
146
|
-
structure: ["handleStructureChange"]
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
a.style = s;
|
|
151
|
-
export {
|
|
152
|
-
h as ui_image,
|
|
153
|
-
a as ui_skeleton
|
|
154
|
-
};
|