@everymatrix/cashier-method-details 1.69.2 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/components/{CashierError-Cr_kHw7o.js → CashierError-C6QXNzfd.js} +1 -1
  2. package/components/{CashierError-CPr2CtwU.js → CashierError-DhiUewkk.js} +1 -1
  3. package/components/{CashierError-DVbWiIXC.cjs → CashierError-n2q4XPkO.cjs} +1 -1
  4. package/components/{CashierHeader-B1U_KaE6.cjs → CashierHeader-BdaaBhZY.cjs} +1 -1
  5. package/components/{CashierHeader-CKqAv1vl.js → CashierHeader-C4i2bq_7.js} +1 -1
  6. package/components/{CashierHeader-DmZHwWlI.js → CashierHeader-Cp4BzyxU.js} +1 -1
  7. package/components/{CashierIframeRedirect-Bxbt-jxd.js → CashierIframeRedirect-CJ5cpaT9.js} +2 -2
  8. package/components/{CashierIframeRedirect-D1UxsUxa.js → CashierIframeRedirect-C_ldAECX.js} +2 -2
  9. package/components/{CashierIframeRedirect-CVbgR46P.cjs → CashierIframeRedirect-DV48gPX5.cjs} +1 -1
  10. package/components/{CashierMethodDetails-Bt7xKdnx.js → CashierMethodDetails-BamcLs9c.js} +724 -734
  11. package/components/{CashierMethodDetails-NTOu26W1.js → CashierMethodDetails-DZQgDcSe.js} +719 -729
  12. package/components/{CashierMethodDetails-DRgOakIA.cjs → CashierMethodDetails-Dn67muUT.cjs} +4 -4
  13. package/components/{CashierReceiptPage-DvCvk4dP.js → CashierReceiptPage-B_Qhjxvi.js} +2 -2
  14. package/components/{CashierReceiptPage-AVOF-iSv.cjs → CashierReceiptPage-BpZTkerH.cjs} +1 -1
  15. package/components/{CashierReceiptPage-CJbJi34Q.js → CashierReceiptPage-ndMf281s.js} +2 -2
  16. package/es2015/cashier-method-details.cjs +1 -1
  17. package/es2015/cashier-method-details.js +1 -1
  18. package/esnext/cashier-method-details.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/{index-97d17652-IdX2D3yt.js → index-97d17652-B0NIExnR.js} +1 -1
  21. package/stencil/{index-97d17652-D1-6d0Bk.js → index-97d17652-D6HPqRtr.js} +1 -1
  22. package/stencil/{index-97d17652-CjAagVjG.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
  23. package/stencil/ui-image-BY8ZO6br.js +7 -0
  24. package/stencil/ui-image-DJSOH8ZL.cjs +1 -0
  25. package/stencil/ui-image-DfVgiF6v.js +25 -0
  26. package/stencil/{ui-image-b7b48fe5-C2NxBIqB.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
  27. package/stencil/{ui-image-b7b48fe5-DtQlRvK7.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
  28. package/stencil/{ui-image-b7b48fe5-CSbk4a-_.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
  29. package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
  30. package/stencil/{ui-image_2-BjVQzUTV.js → ui-image_2-DbQ7SENq.js} +13 -30
  31. package/stencil/{ui-image_2-CaETIZEN.js → ui-image_2-L-CYescb.js} +13 -30
  32. package/stencil/ui-image-C6J6vPTv.js +0 -7
  33. package/stencil/ui-image-CpMjzwxS.cjs +0 -1
  34. package/stencil/ui-image-DT3VkYPr.js +0 -25
  35. package/stencil/ui-image_2-gOIKmeIr.cjs +0 -73
@@ -1,73 +0,0 @@
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;