@everymatrix/pam-account-balance-modal 0.1.0 → 0.1.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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pam-account-balance-modal.cjs.js +1 -1
- package/dist/cjs/pam-account-balance-modal_2.cjs.entry.js +82 -54
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pam-account-balance-modal.js +1 -1
- package/dist/esm/pam-account-balance-modal_2.entry.js +82 -54
- package/dist/pam-account-balance-modal/p-e75d6a29.entry.js +1 -0
- package/dist/pam-account-balance-modal/pam-account-balance-modal.esm.js +1 -1
- package/package.json +1 -1
- package/dist/pam-account-balance-modal/p-d74c687e.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
10
10
|
await appGlobals.globalScripts();
|
11
|
-
return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
11
|
+
return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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"]}]]]], options);
|
12
12
|
};
|
13
13
|
|
14
14
|
exports.setNonce = index.setNonce;
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
19
19
|
|
20
20
|
patchBrowser().then(async (options) => {
|
21
21
|
await appGlobals.globalScripts();
|
22
|
-
return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
22
|
+
return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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"]}]]]], options);
|
23
23
|
});
|
24
24
|
|
25
25
|
exports.setNonce = index.setNonce;
|
@@ -11,26 +11,54 @@ const UiSkeletonStyle0 = uiSkeletonCss;
|
|
11
11
|
const UiSkeleton = class {
|
12
12
|
constructor(hostRef) {
|
13
13
|
index.registerInstance(this, hostRef);
|
14
|
+
this.stylingValue = {
|
15
|
+
width: this.handleStylingProps(this.width),
|
16
|
+
height: this.handleStylingProps(this.height),
|
17
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
18
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
19
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
20
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
21
|
+
marginRight: this.handleStylingProps(this.marginRight)
|
22
|
+
};
|
14
23
|
this.structure = undefined;
|
15
|
-
this.width =
|
16
|
-
this.height =
|
17
|
-
this.borderRadius =
|
18
|
-
this.marginBottom =
|
19
|
-
this.marginTop =
|
20
|
-
this.marginLeft =
|
21
|
-
this.marginRight =
|
24
|
+
this.width = 'unset';
|
25
|
+
this.height = 'unset';
|
26
|
+
this.borderRadius = 'unset';
|
27
|
+
this.marginBottom = 'unset';
|
28
|
+
this.marginTop = 'unset';
|
29
|
+
this.marginLeft = 'unset';
|
30
|
+
this.marginRight = 'unset';
|
22
31
|
this.animation = true;
|
23
|
-
this.rows =
|
24
|
-
this.size =
|
25
|
-
this.color =
|
26
|
-
this.primaryColor =
|
27
|
-
this.secondaryColor =
|
32
|
+
this.rows = 0;
|
33
|
+
this.size = '100%';
|
34
|
+
this.color = '#c2c2c2';
|
35
|
+
this.primaryColor = '#c2c2c2';
|
36
|
+
this.secondaryColor = '#ffffff';
|
28
37
|
}
|
29
38
|
handleStructureChange(newValue, oldValue) {
|
30
39
|
if (oldValue !== newValue) {
|
31
40
|
this.handleStructure(newValue);
|
32
41
|
}
|
33
42
|
}
|
43
|
+
handleStylingProps(value) {
|
44
|
+
switch (typeof value) {
|
45
|
+
case 'number':
|
46
|
+
return value === 0 ? 0 : `${value}px`;
|
47
|
+
case 'undefined':
|
48
|
+
return 'unset';
|
49
|
+
case 'string':
|
50
|
+
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
51
|
+
value.endsWith('px') ||
|
52
|
+
value.endsWith('%')) {
|
53
|
+
return value;
|
54
|
+
}
|
55
|
+
else {
|
56
|
+
return 'unset';
|
57
|
+
}
|
58
|
+
default:
|
59
|
+
return 'unset';
|
60
|
+
}
|
61
|
+
}
|
34
62
|
handleStructure(structure) {
|
35
63
|
switch (structure) {
|
36
64
|
case 'logo':
|
@@ -50,22 +78,22 @@ const UiSkeleton = class {
|
|
50
78
|
}
|
51
79
|
}
|
52
80
|
renderLogo() {
|
53
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
81
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
|
54
82
|
}
|
55
83
|
renderImage() {
|
56
|
-
return
|
84
|
+
return index.h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
|
57
85
|
}
|
58
86
|
renderTitle() {
|
59
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
87
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
|
60
88
|
}
|
61
89
|
renderText() {
|
62
|
-
return (index.h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { key: index$1, class:
|
90
|
+
return (index.h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { key: index$1, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
|
63
91
|
}
|
64
92
|
renderRectangle() {
|
65
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
93
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
|
66
94
|
}
|
67
95
|
renderCircle() {
|
68
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
96
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
|
69
97
|
}
|
70
98
|
render() {
|
71
99
|
let styleBlock = '';
|
@@ -73,13 +101,13 @@ const UiSkeleton = class {
|
|
73
101
|
case 'logo':
|
74
102
|
styleBlock = `
|
75
103
|
:host {
|
76
|
-
--emw-skeleton-logo-width: ${this.width};
|
77
|
-
--emw-skeleton-logo-height: ${this.height};
|
78
|
-
--emw-skeleton-logo-border-radius: ${this.borderRadius}
|
79
|
-
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}
|
80
|
-
--emw-skeleton-logo-margin-top: ${this.marginTop}
|
81
|
-
--emw-skeleton-logo-margin-left: ${this.marginLeft}
|
82
|
-
--emw-skeleton-logo-margin-right: ${this.marginRight}
|
104
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
105
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
106
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
107
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
108
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
109
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
110
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
83
111
|
--emw-skeleton-logo-background: ${this.color};
|
84
112
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
85
113
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -89,13 +117,13 @@ const UiSkeleton = class {
|
|
89
117
|
case 'image':
|
90
118
|
styleBlock = `
|
91
119
|
:host {
|
92
|
-
--emw-skeleton-image-width: ${this.width};
|
93
|
-
--emw-skeleton-image-height: ${this.height};
|
94
|
-
--emw-skeleton-image-border-radius: ${this.borderRadius}
|
95
|
-
--emw-skeleton-image-margin-bottom: ${this.marginBottom}
|
96
|
-
--emw-skeleton-image-margin-top: ${this.marginTop}
|
97
|
-
--emw-skeleton-image-margin-left: ${this.marginLeft}
|
98
|
-
--emw-skeleton-image-margin-right: ${this.marginRight}
|
120
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
121
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
122
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
123
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
124
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
125
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
126
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
99
127
|
--emw-skeleton-image-background: ${this.color};
|
100
128
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
101
129
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -105,13 +133,13 @@ const UiSkeleton = class {
|
|
105
133
|
case 'title':
|
106
134
|
styleBlock = `
|
107
135
|
:host {
|
108
|
-
--emw-skeleton-title-width: ${this.width};
|
109
|
-
--emw-skeleton-title-height: ${this.height};
|
110
|
-
--emw-skeleton-title-border-radius: ${this.borderRadius}
|
111
|
-
--emw-skeleton-title-margin-bottom: ${this.marginBottom}
|
112
|
-
--emw-skeleton-title-margin-top: ${this.marginTop}
|
113
|
-
--emw-skeleton-title-margin-left: ${this.marginLeft}
|
114
|
-
--emw-skeleton-title-margin-right: ${this.marginRight}
|
136
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
137
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
138
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
139
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
140
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
141
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
142
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
115
143
|
--emw-skeleton-title-background: ${this.color};
|
116
144
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
117
145
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -121,13 +149,13 @@ const UiSkeleton = class {
|
|
121
149
|
case 'text':
|
122
150
|
styleBlock = `
|
123
151
|
:host {
|
124
|
-
--emw-skeleton-text-width: ${this.width};
|
125
|
-
--emw-skeleton-text-height: ${this.height};
|
126
|
-
--emw-skeleton-text-border-radius: ${this.borderRadius}
|
127
|
-
--emw-skeleton-text-margin-bottom: ${this.marginBottom}
|
128
|
-
--emw-skeleton-text-margin-top: ${this.marginTop}
|
129
|
-
--emw-skeleton-text-margin-left: ${this.marginLeft}
|
130
|
-
--emw-skeleton-text-margin-right: ${this.marginRight}
|
152
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
153
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
154
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
155
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
156
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
157
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
158
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
131
159
|
--emw-skeleton-text-background: ${this.color};
|
132
160
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
133
161
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -137,13 +165,13 @@ const UiSkeleton = class {
|
|
137
165
|
case 'rectangle':
|
138
166
|
styleBlock = `
|
139
167
|
:host {
|
140
|
-
--emw-skeleton-rectangle-width: ${this.width};
|
141
|
-
--emw-skeleton-rectangle-height: ${this.height};
|
142
|
-
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}
|
143
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}
|
144
|
-
--emw-skeleton-rectangle-margin-top: ${this.marginTop}
|
145
|
-
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}
|
146
|
-
--emw-skeleton-rectangle-margin-right: ${this.marginRight}
|
168
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
169
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
170
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
171
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
172
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
173
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
174
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
147
175
|
--emw-skeleton-rectangle-background: ${this.color};
|
148
176
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
149
177
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -163,7 +191,7 @@ const UiSkeleton = class {
|
|
163
191
|
default:
|
164
192
|
styleBlock = '';
|
165
193
|
}
|
166
|
-
return (index.h(index.Host, { key: '
|
194
|
+
return (index.h(index.Host, { key: '5c185b76c438d20d4ad88bc48d94ff5628410bb7' }, index.h("style", { key: 'de95e60a5955d5b2af83710423fe40329c187f7e' }, styleBlock), this.handleStructure(this.structure)));
|
167
195
|
}
|
168
196
|
static get watchers() { return {
|
169
197
|
"structure": ["handleStructureChange"]
|
package/dist/esm/loader.js
CHANGED
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
7
7
|
await globalScripts();
|
8
|
-
return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
8
|
+
return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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"]}]]]], options);
|
9
9
|
};
|
10
10
|
|
11
11
|
export { defineCustomElements };
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
16
16
|
|
17
17
|
patchBrowser().then(async (options) => {
|
18
18
|
await globalScripts();
|
19
|
-
return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
19
|
+
return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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"]}]]]], options);
|
20
20
|
});
|
@@ -7,26 +7,54 @@ const UiSkeletonStyle0 = uiSkeletonCss;
|
|
7
7
|
const UiSkeleton = class {
|
8
8
|
constructor(hostRef) {
|
9
9
|
registerInstance(this, hostRef);
|
10
|
+
this.stylingValue = {
|
11
|
+
width: this.handleStylingProps(this.width),
|
12
|
+
height: this.handleStylingProps(this.height),
|
13
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
14
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
15
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
16
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
17
|
+
marginRight: this.handleStylingProps(this.marginRight)
|
18
|
+
};
|
10
19
|
this.structure = undefined;
|
11
|
-
this.width =
|
12
|
-
this.height =
|
13
|
-
this.borderRadius =
|
14
|
-
this.marginBottom =
|
15
|
-
this.marginTop =
|
16
|
-
this.marginLeft =
|
17
|
-
this.marginRight =
|
20
|
+
this.width = 'unset';
|
21
|
+
this.height = 'unset';
|
22
|
+
this.borderRadius = 'unset';
|
23
|
+
this.marginBottom = 'unset';
|
24
|
+
this.marginTop = 'unset';
|
25
|
+
this.marginLeft = 'unset';
|
26
|
+
this.marginRight = 'unset';
|
18
27
|
this.animation = true;
|
19
|
-
this.rows =
|
20
|
-
this.size =
|
21
|
-
this.color =
|
22
|
-
this.primaryColor =
|
23
|
-
this.secondaryColor =
|
28
|
+
this.rows = 0;
|
29
|
+
this.size = '100%';
|
30
|
+
this.color = '#c2c2c2';
|
31
|
+
this.primaryColor = '#c2c2c2';
|
32
|
+
this.secondaryColor = '#ffffff';
|
24
33
|
}
|
25
34
|
handleStructureChange(newValue, oldValue) {
|
26
35
|
if (oldValue !== newValue) {
|
27
36
|
this.handleStructure(newValue);
|
28
37
|
}
|
29
38
|
}
|
39
|
+
handleStylingProps(value) {
|
40
|
+
switch (typeof value) {
|
41
|
+
case 'number':
|
42
|
+
return value === 0 ? 0 : `${value}px`;
|
43
|
+
case 'undefined':
|
44
|
+
return 'unset';
|
45
|
+
case 'string':
|
46
|
+
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
47
|
+
value.endsWith('px') ||
|
48
|
+
value.endsWith('%')) {
|
49
|
+
return value;
|
50
|
+
}
|
51
|
+
else {
|
52
|
+
return 'unset';
|
53
|
+
}
|
54
|
+
default:
|
55
|
+
return 'unset';
|
56
|
+
}
|
57
|
+
}
|
30
58
|
handleStructure(structure) {
|
31
59
|
switch (structure) {
|
32
60
|
case 'logo':
|
@@ -46,22 +74,22 @@ const UiSkeleton = class {
|
|
46
74
|
}
|
47
75
|
}
|
48
76
|
renderLogo() {
|
49
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
77
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
|
50
78
|
}
|
51
79
|
renderImage() {
|
52
|
-
return
|
80
|
+
return h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
|
53
81
|
}
|
54
82
|
renderTitle() {
|
55
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
83
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
|
56
84
|
}
|
57
85
|
renderText() {
|
58
|
-
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class:
|
86
|
+
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
|
59
87
|
}
|
60
88
|
renderRectangle() {
|
61
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
89
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
|
62
90
|
}
|
63
91
|
renderCircle() {
|
64
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
92
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
|
65
93
|
}
|
66
94
|
render() {
|
67
95
|
let styleBlock = '';
|
@@ -69,13 +97,13 @@ const UiSkeleton = class {
|
|
69
97
|
case 'logo':
|
70
98
|
styleBlock = `
|
71
99
|
:host {
|
72
|
-
--emw-skeleton-logo-width: ${this.width};
|
73
|
-
--emw-skeleton-logo-height: ${this.height};
|
74
|
-
--emw-skeleton-logo-border-radius: ${this.borderRadius}
|
75
|
-
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}
|
76
|
-
--emw-skeleton-logo-margin-top: ${this.marginTop}
|
77
|
-
--emw-skeleton-logo-margin-left: ${this.marginLeft}
|
78
|
-
--emw-skeleton-logo-margin-right: ${this.marginRight}
|
100
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
101
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
102
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
103
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
104
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
105
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
106
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
79
107
|
--emw-skeleton-logo-background: ${this.color};
|
80
108
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
81
109
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -85,13 +113,13 @@ const UiSkeleton = class {
|
|
85
113
|
case 'image':
|
86
114
|
styleBlock = `
|
87
115
|
:host {
|
88
|
-
--emw-skeleton-image-width: ${this.width};
|
89
|
-
--emw-skeleton-image-height: ${this.height};
|
90
|
-
--emw-skeleton-image-border-radius: ${this.borderRadius}
|
91
|
-
--emw-skeleton-image-margin-bottom: ${this.marginBottom}
|
92
|
-
--emw-skeleton-image-margin-top: ${this.marginTop}
|
93
|
-
--emw-skeleton-image-margin-left: ${this.marginLeft}
|
94
|
-
--emw-skeleton-image-margin-right: ${this.marginRight}
|
116
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
117
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
118
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
119
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
120
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
121
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
122
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
95
123
|
--emw-skeleton-image-background: ${this.color};
|
96
124
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
97
125
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -101,13 +129,13 @@ const UiSkeleton = class {
|
|
101
129
|
case 'title':
|
102
130
|
styleBlock = `
|
103
131
|
:host {
|
104
|
-
--emw-skeleton-title-width: ${this.width};
|
105
|
-
--emw-skeleton-title-height: ${this.height};
|
106
|
-
--emw-skeleton-title-border-radius: ${this.borderRadius}
|
107
|
-
--emw-skeleton-title-margin-bottom: ${this.marginBottom}
|
108
|
-
--emw-skeleton-title-margin-top: ${this.marginTop}
|
109
|
-
--emw-skeleton-title-margin-left: ${this.marginLeft}
|
110
|
-
--emw-skeleton-title-margin-right: ${this.marginRight}
|
132
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
133
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
134
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
135
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
136
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
137
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
138
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
111
139
|
--emw-skeleton-title-background: ${this.color};
|
112
140
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
113
141
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -117,13 +145,13 @@ const UiSkeleton = class {
|
|
117
145
|
case 'text':
|
118
146
|
styleBlock = `
|
119
147
|
:host {
|
120
|
-
--emw-skeleton-text-width: ${this.width};
|
121
|
-
--emw-skeleton-text-height: ${this.height};
|
122
|
-
--emw-skeleton-text-border-radius: ${this.borderRadius}
|
123
|
-
--emw-skeleton-text-margin-bottom: ${this.marginBottom}
|
124
|
-
--emw-skeleton-text-margin-top: ${this.marginTop}
|
125
|
-
--emw-skeleton-text-margin-left: ${this.marginLeft}
|
126
|
-
--emw-skeleton-text-margin-right: ${this.marginRight}
|
148
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
149
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
150
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
151
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
152
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
153
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
154
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
127
155
|
--emw-skeleton-text-background: ${this.color};
|
128
156
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
129
157
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -133,13 +161,13 @@ const UiSkeleton = class {
|
|
133
161
|
case 'rectangle':
|
134
162
|
styleBlock = `
|
135
163
|
:host {
|
136
|
-
--emw-skeleton-rectangle-width: ${this.width};
|
137
|
-
--emw-skeleton-rectangle-height: ${this.height};
|
138
|
-
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}
|
139
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}
|
140
|
-
--emw-skeleton-rectangle-margin-top: ${this.marginTop}
|
141
|
-
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}
|
142
|
-
--emw-skeleton-rectangle-margin-right: ${this.marginRight}
|
164
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
165
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
166
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
167
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
168
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
169
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
170
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
143
171
|
--emw-skeleton-rectangle-background: ${this.color};
|
144
172
|
--emw-skeleton-primary-color: ${this.primaryColor};
|
145
173
|
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
@@ -159,7 +187,7 @@ const UiSkeleton = class {
|
|
159
187
|
default:
|
160
188
|
styleBlock = '';
|
161
189
|
}
|
162
|
-
return (h(Host, { key: '
|
190
|
+
return (h(Host, { key: '5c185b76c438d20d4ad88bc48d94ff5628410bb7' }, h("style", { key: 'de95e60a5955d5b2af83710423fe40329c187f7e' }, styleBlock), this.handleStructure(this.structure)));
|
163
191
|
}
|
164
192
|
static get watchers() { return {
|
165
193
|
"structure": ["handleStructureChange"]
|
@@ -0,0 +1 @@
|
|
1
|
+
export{P as pam_account_balance_modal}from"./p-b60c42bd.js";import{r as e,h as t,H as n}from"./p-86b371f2.js";const o=class{constructor(t){e(this,t),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,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"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("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(n,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=":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))}}";export{o as ui_skeleton}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as r,b as e}from"./p-86b371f2.js";export{s as setNonce}from"./p-86b371f2.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),r(n)})().then((async r=>(await n(),e([["p-
|
1
|
+
import{p as r,b as e}from"./p-86b371f2.js";export{s as setNonce}from"./p-86b371f2.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),r(n)})().then((async r=>(await n(),e([["p-e75d6a29",[[1,"pam-account-balance-modal",{userId:[513,"user-id"],session:[513],endpoint:[513],customLocaleIdentifier:[513,"custom-locale-identifier"],displayBalanceOption:[513,"display-balance-option"],totalCalculationMode:[513,"total-calculation-mode"],currencySeparator:[513,"currency-separator"],currencyDecimal:[513,"currency-decimal"],currencyPrecision:[513,"currency-precision"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isLoading:[32],isModalDisplayed:[32],isSplitWallet:[32],currentStream:[32],currency:[32],updateRealAmountState:[32],balances:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[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))));
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export{P as pam_account_balance_modal}from"./p-b60c42bd.js";import{r as e,h as t,H as n}from"./p-86b371f2.js";const o=class{constructor(t){e(this,t),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}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}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("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.width};\n --emw-skeleton-logo-height: ${this.height};\n --emw-skeleton-logo-border-radius: ${this.borderRadius}px;\n --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-logo-margin-top: ${this.marginTop}px;\n --emw-skeleton-logo-margin-left: ${this.marginLeft}px;\n --emw-skeleton-logo-margin-right: ${this.marginRight}px;\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.width};\n --emw-skeleton-image-height: ${this.height};\n --emw-skeleton-image-border-radius: ${this.borderRadius}px;\n --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-image-margin-top: ${this.marginTop}px;\n --emw-skeleton-image-margin-left: ${this.marginLeft}px;\n --emw-skeleton-image-margin-right: ${this.marginRight}px;\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.width};\n --emw-skeleton-title-height: ${this.height};\n --emw-skeleton-title-border-radius: ${this.borderRadius}px;\n --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-title-margin-top: ${this.marginTop}px;\n --emw-skeleton-title-margin-left: ${this.marginLeft}px;\n --emw-skeleton-title-margin-right: ${this.marginRight}px;\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.width};\n --emw-skeleton-text-height: ${this.height};\n --emw-skeleton-text-border-radius: ${this.borderRadius}px;\n --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-text-margin-top: ${this.marginTop}px;\n --emw-skeleton-text-margin-left: ${this.marginLeft}px;\n --emw-skeleton-text-margin-right: ${this.marginRight}px;\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.width};\n --emw-skeleton-rectangle-height: ${this.height};\n --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;\n --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;\n --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;\n --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(n,{key:"3bb792a149db7fe732d5cbfa092cdb4d6ca0689e"},t("style",{key:"a4607599b60659f385ae2660513e38b383739674"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=":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))}}";export{o as ui_skeleton}
|