@everymatrix/cashier-page-nd 1.69.80
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/CashierCarousel-BRCPA28j.js +5469 -0
- package/components/CashierCarousel-BrO7Jjq7.cjs +23 -0
- package/components/CashierCarousel-DIW7ewty.js +5432 -0
- package/components/CashierError-2l9bXeE4.js +438 -0
- package/components/CashierError-CDQHYcyq.cjs +1 -0
- package/components/CashierError-CaZfsv_b.js +438 -0
- package/components/CashierHeader-BIvpeMbT.js +397 -0
- package/components/CashierHeader-CRdaTXXF.js +397 -0
- package/components/CashierHeader-CYloyBeJ.cjs +1 -0
- package/components/CashierIframeRedirect-CYbcbdD6.js +398 -0
- package/components/CashierIframeRedirect-Cdt_4X-f.js +398 -0
- package/components/CashierIframeRedirect-DHwRIV5D.cjs +1 -0
- package/components/CashierMethodDetails-CmHvEe-1.js +8998 -0
- package/components/CashierMethodDetails-Crc38ib5.js +8977 -0
- package/components/CashierMethodDetails-DdksHLNn.cjs +85 -0
- package/components/CashierMethodsList-BXhWqHwQ.js +733 -0
- package/components/CashierMethodsList-CXLOO8AC.cjs +1 -0
- package/components/CashierMethodsList-CiYrKrpc.js +745 -0
- package/components/CashierModal-8fVxVksu.cjs +1 -0
- package/components/CashierModal-Bf-5kofx.js +268 -0
- package/components/CashierModal-DYVVV-kg.js +268 -0
- package/components/CashierNotifications-BW_5BkiD.js +129 -0
- package/components/CashierNotifications-C3_w1GoO.js +129 -0
- package/components/CashierNotifications-DPPdTfhe.cjs +1 -0
- package/components/CashierPage-CD1jfPWY.js +2724 -0
- package/components/CashierPage-CwhswjBN.cjs +1 -0
- package/components/CashierPage-EE5oS0EE.js +2724 -0
- package/components/CashierReceiptPage-Cdpi_dhQ.js +1720 -0
- package/components/CashierReceiptPage-CtcB2_3R.cjs +26 -0
- package/components/CashierReceiptPage-DcrR4cFI.js +1724 -0
- package/components/CashierSessionExpirationModal-BAazKpCR.cjs +2 -0
- package/components/CashierSessionExpirationModal-BuRX5Ibg.js +1184 -0
- package/components/CashierSessionExpirationModal-DbZJRvvF.js +1184 -0
- package/components/CashierSpinner-CmkhBExd.cjs +1 -0
- package/components/CashierSpinner-DTePmdlJ.js +78 -0
- package/components/CashierSpinner-DsjTlCAT.js +78 -0
- package/components/CashierTransactionHistory-BW7qdJ8o.js +1305 -0
- package/components/CashierTransactionHistory-DGxSVtrZ.js +1305 -0
- package/components/CashierTransactionHistory-Dz-EIYCr.cjs +1 -0
- package/components/CashierVerifications-BPvYz1I1.js +597 -0
- package/components/CashierVerifications-CkX6-wMt.cjs +1 -0
- package/components/CashierVerifications-Dzg3GMUR.js +601 -0
- package/components/TxnStatusIcon-CacWIjyU.js +142 -0
- package/components/TxnStatusIcon-CluG8nB2.cjs +1 -0
- package/components/TxnStatusIcon-DEE4mf59.js +142 -0
- package/components/TxnTypeIcons-CCHGRfM4.js +101 -0
- package/components/TxnTypeIcons-Dwq4VQE8.js +101 -0
- package/components/TxnTypeIcons-DzkNiw5U.cjs +1 -0
- package/es2015/cashier-page.cjs +1 -0
- package/es2015/cashier-page.js +16 -0
- package/esnext/cashier-page.js +14 -0
- package/package.json +26 -0
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/ui-image-BWJXFWH1.js +25 -0
- package/stencil/ui-image-ByEXiBzx.cjs +1 -0
- package/stencil/ui-image-DIEeZy5u.js +7 -0
- package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +39 -0
- package/stencil/ui-image-b7b48fe5-D6iig_uN.js +39 -0
- package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +1 -0
- package/stencil/ui-image_2-Bm97-wkj.js +157 -0
- package/stencil/ui-image_2-DdFjzzNO.cjs +55 -0
- package/stencil/ui-image_2-qO3reSlr.js +157 -0
- package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
- package/stencil/ui-skeleton-9boHSjtG.js +29 -0
- package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
- package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
- package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-BoSqyMpB.js";
|
|
2
|
+
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
|
+
width: this.handleStylingProps(this.width),
|
|
6
|
+
height: this.handleStylingProps(this.height),
|
|
7
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
11
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
12
|
+
size: this.handleStylingProps(this.size)
|
|
13
|
+
}, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
|
|
14
|
+
}
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
17
|
+
}
|
|
18
|
+
handleStylingProps(e) {
|
|
19
|
+
switch (typeof e) {
|
|
20
|
+
case "number":
|
|
21
|
+
return e === 0 ? 0 : `${e}px`;
|
|
22
|
+
case "undefined":
|
|
23
|
+
return "unset";
|
|
24
|
+
case "string":
|
|
25
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
26
|
+
default:
|
|
27
|
+
return "unset";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
handleStructure(e) {
|
|
31
|
+
switch (e) {
|
|
32
|
+
case "logo":
|
|
33
|
+
return this.renderLogo();
|
|
34
|
+
case "image":
|
|
35
|
+
return this.renderImage();
|
|
36
|
+
case "title":
|
|
37
|
+
return this.renderTitle();
|
|
38
|
+
case "text":
|
|
39
|
+
return this.renderText();
|
|
40
|
+
case "rectangle":
|
|
41
|
+
return this.renderRectangle();
|
|
42
|
+
case "circle":
|
|
43
|
+
return this.renderCircle();
|
|
44
|
+
default:
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
renderLogo() {
|
|
49
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
50
|
+
}
|
|
51
|
+
renderImage() {
|
|
52
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
53
|
+
}
|
|
54
|
+
renderTitle() {
|
|
55
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
56
|
+
}
|
|
57
|
+
renderText() {
|
|
58
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
59
|
+
}
|
|
60
|
+
renderRectangle() {
|
|
61
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
62
|
+
}
|
|
63
|
+
renderCircle() {
|
|
64
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
let e = "";
|
|
68
|
+
switch (this.structure) {
|
|
69
|
+
case "logo":
|
|
70
|
+
e = `
|
|
71
|
+
:host {
|
|
72
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
73
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
74
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
75
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
76
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
77
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
78
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
break;
|
|
82
|
+
case "image":
|
|
83
|
+
e = `
|
|
84
|
+
:host {
|
|
85
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
86
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
87
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
88
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
89
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
90
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
91
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
break;
|
|
95
|
+
case "title":
|
|
96
|
+
e = `
|
|
97
|
+
:host {
|
|
98
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
99
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
100
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
101
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
102
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
103
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
104
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
break;
|
|
108
|
+
case "text":
|
|
109
|
+
e = `
|
|
110
|
+
:host {
|
|
111
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
112
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
113
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
114
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
115
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
116
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
117
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
break;
|
|
121
|
+
case "rectangle":
|
|
122
|
+
e = `
|
|
123
|
+
:host {
|
|
124
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
125
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
126
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
127
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
128
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
129
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
130
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
break;
|
|
134
|
+
case "circle":
|
|
135
|
+
e = `
|
|
136
|
+
:host {
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
140
|
+
break;
|
|
141
|
+
default:
|
|
142
|
+
e = "";
|
|
143
|
+
}
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
145
|
+
}
|
|
146
|
+
static get watchers() {
|
|
147
|
+
return {
|
|
148
|
+
structure: ["handleStructureChange"]
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
l.style = a;
|
|
153
|
+
export {
|
|
154
|
+
l as U
|
|
155
|
+
};
|