@everymatrix/cashier-page 1.28.2 → 1.28.4
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/cashier-page.js +108 -106
- package/dist/cashier-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CashierPage.svelte +23 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-page",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "1bfc13085b6829695a52b1569af671db1c024e41"
|
|
39
39
|
}
|
package/src/CashierPage.svelte
CHANGED
|
@@ -163,11 +163,15 @@
|
|
|
163
163
|
if (e.data.type == 'ShowSessionError') {
|
|
164
164
|
errorMessage = e.data.error
|
|
165
165
|
}
|
|
166
|
+
if (e.data.type === 'ToggleDisableActionOnPage') {
|
|
167
|
+
isProcessingTxn = e.data.disable
|
|
168
|
+
}
|
|
166
169
|
}
|
|
167
170
|
|
|
168
171
|
</script>
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
{#if isProcessingTxn}
|
|
173
|
+
<div class="DisablePage"></div>
|
|
174
|
+
{/if}
|
|
171
175
|
<div class={showMethodDetailsPage ? "CashierPageWidget BothSections" : "CashierPageWidget"} bind:this={customStylingContainer}>
|
|
172
176
|
{#if lang}
|
|
173
177
|
<div class="Header">{ $_(`header.${type.toLowerCase()}`)}</div>
|
|
@@ -234,9 +238,20 @@
|
|
|
234
238
|
@mixin container-height {
|
|
235
239
|
height: calc(100% - 44px);
|
|
236
240
|
overflow: auto;
|
|
237
|
-
padding: 7px 12px 12px 12px;
|
|
241
|
+
padding: var(--emw--spacing-x-small, 7px) var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);
|
|
238
242
|
box-sizing: border-box;
|
|
239
243
|
}
|
|
244
|
+
.DisablePage {
|
|
245
|
+
container-type: inline-size;
|
|
246
|
+
container-name: confirm-modal;
|
|
247
|
+
position: absolute;
|
|
248
|
+
width: 100%;
|
|
249
|
+
height: 100%;
|
|
250
|
+
z-index: 100;
|
|
251
|
+
top: 0;
|
|
252
|
+
left: 0;
|
|
253
|
+
background-color: transparent;
|
|
254
|
+
}
|
|
240
255
|
.CashierPageWidget {
|
|
241
256
|
container-type: inline-size;
|
|
242
257
|
container-name: deposit-page;
|
|
@@ -258,10 +273,10 @@
|
|
|
258
273
|
width: 50%;
|
|
259
274
|
display: flex;
|
|
260
275
|
margin: auto;
|
|
261
|
-
padding: 15px 0;
|
|
276
|
+
padding: var(--emw--spacing-medium, 15px) 0;
|
|
262
277
|
font-size: var(--emw--font-size-small, 14px);
|
|
263
278
|
font-weight: bold;
|
|
264
|
-
color: var(--
|
|
279
|
+
color: var(--mmw--color-grey-10, #111);
|
|
265
280
|
line-height: var(--emw--font-size-small, 14px);
|
|
266
281
|
}
|
|
267
282
|
.CashierPage {
|
|
@@ -277,7 +292,7 @@
|
|
|
277
292
|
&::-webkit-scrollbar {
|
|
278
293
|
border-right: 1px solid var(--emw--color-gray-100, #E0E0E0 );
|
|
279
294
|
}
|
|
280
|
-
}
|
|
295
|
+
}
|
|
281
296
|
cashier-method-details {
|
|
282
297
|
width: 0;
|
|
283
298
|
}
|
|
@@ -312,10 +327,10 @@
|
|
|
312
327
|
background: transparent;
|
|
313
328
|
}
|
|
314
329
|
::-webkit-scrollbar-thumb {
|
|
315
|
-
background: var(--
|
|
330
|
+
background: var(--mmw--color-grey-105, #E8E9EB);
|
|
316
331
|
}
|
|
317
332
|
::-webkit-scrollbar-thumb:hover {
|
|
318
|
-
background: var(--
|
|
333
|
+
background: var(--mmw--color-grey-290, #666);
|
|
319
334
|
}
|
|
320
335
|
|
|
321
336
|
</style>
|