@everymatrix/user-transaction-history 1.13.11

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 (67) hide show
  1. package/dist/cjs/index-206e75cb.js +1416 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/user-transaction-history.cjs.entry.js +333 -0
  5. package/dist/cjs/user-transaction-history.cjs.js +19 -0
  6. package/dist/collection/assets/filter.svg +4 -0
  7. package/dist/collection/assets/warning.svg +4 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/internal/filters.js +22 -0
  10. package/dist/collection/components/internal/loader.js +14 -0
  11. package/dist/collection/components/internal/page-size.js +7 -0
  12. package/dist/collection/components/internal/table.js +31 -0
  13. package/dist/collection/components/internal/transaction.js +14 -0
  14. package/dist/collection/components/user-transaction-history/user-transaction-history.css +406 -0
  15. package/dist/collection/components/user-transaction-history/user-transaction-history.js +357 -0
  16. package/dist/collection/contracts/translation.js +1 -0
  17. package/dist/collection/global/app.js +1 -0
  18. package/dist/collection/index.js +1 -0
  19. package/dist/collection/models/transactions-response.model.js +1 -0
  20. package/dist/collection/utils/currency.utils.js +18 -0
  21. package/dist/collection/utils/date.util.js +8 -0
  22. package/dist/collection/utils/locale.util.js +55 -0
  23. package/dist/components/index.d.ts +26 -0
  24. package/dist/components/index.js +1 -0
  25. package/dist/components/user-transaction-history.d.ts +11 -0
  26. package/dist/components/user-transaction-history.js +364 -0
  27. package/dist/esm/index-32e3ae05.js +1388 -0
  28. package/dist/esm/index.js +1 -0
  29. package/dist/esm/loader.js +17 -0
  30. package/dist/esm/polyfills/core-js.js +11 -0
  31. package/dist/esm/polyfills/css-shim.js +1 -0
  32. package/dist/esm/polyfills/dom.js +79 -0
  33. package/dist/esm/polyfills/es5-html-element.js +1 -0
  34. package/dist/esm/polyfills/index.js +34 -0
  35. package/dist/esm/polyfills/system.js +6 -0
  36. package/dist/esm/user-transaction-history.entry.js +329 -0
  37. package/dist/esm/user-transaction-history.js +17 -0
  38. package/dist/index.cjs.js +1 -0
  39. package/dist/index.js +1 -0
  40. package/dist/stencil.config.js +22 -0
  41. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/user-transaction-history/.stencil/packages/user-transaction-history/stencil.config.d.ts +2 -0
  42. package/dist/types/components/internal/filters.d.ts +8 -0
  43. package/dist/types/components/internal/loader.d.ts +2 -0
  44. package/dist/types/components/internal/page-size.d.ts +9 -0
  45. package/dist/types/components/internal/table.d.ts +7 -0
  46. package/dist/types/components/internal/transaction.d.ts +3 -0
  47. package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +40 -0
  48. package/dist/types/components.d.ts +53 -0
  49. package/dist/types/contracts/translation.d.ts +2 -0
  50. package/dist/types/global/app.d.ts +1 -0
  51. package/dist/types/index.d.ts +1 -0
  52. package/dist/types/models/transactions-response.model.d.ts +23 -0
  53. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  54. package/dist/types/utils/currency.utils.d.ts +4 -0
  55. package/dist/types/utils/date.util.d.ts +4 -0
  56. package/dist/types/utils/locale.util.d.ts +28 -0
  57. package/dist/user-transaction-history/index.esm.js +0 -0
  58. package/dist/user-transaction-history/p-10b5b959.js +1 -0
  59. package/dist/user-transaction-history/p-8e086032.entry.js +1 -0
  60. package/dist/user-transaction-history/user-transaction-history.esm.js +1 -0
  61. package/loader/cdn.js +3 -0
  62. package/loader/index.cjs.js +3 -0
  63. package/loader/index.d.ts +12 -0
  64. package/loader/index.es2017.js +3 -0
  65. package/loader/index.js +4 -0
  66. package/loader/package.json +10 -0
  67. package/package.json +19 -0
@@ -0,0 +1,406 @@
1
+ :host {
2
+ --activeButtonBackground: #7ec51e;
3
+ --activeButtonFont: #002149;
4
+ --hoverBackground: #ffffff;
5
+ --background: #e4e6e8;
6
+ --success: #7ac345;
7
+ --heightScrollableContainer: 400px;
8
+ --borderColor: #d3d3d3;
9
+ --borderColorButton: #c4c4c4;
10
+ --textColor: #002554;
11
+ --textColorHover: #7ac345;
12
+ --errorColor: #c23b21;
13
+ --loaderColor: #7ac345;
14
+ --headerTableBackground: #cdcdcd;
15
+ --borderTable: #dedede;
16
+ --shadowBorderTable: #f1f1f1;
17
+ --backgroundTable: #ffffff;
18
+ font-family: Roboto, Arial, sans-serif;
19
+ font-size: 14px;
20
+ color: var(--textColor);
21
+ display: block;
22
+ background-color: var(--background);
23
+ }
24
+ :host .wrapper {
25
+ height: 100%;
26
+ padding: 1rem;
27
+ }
28
+ :host .types {
29
+ display: flex;
30
+ width: 100%;
31
+ gap: 5px;
32
+ }
33
+ :host .transaction-type {
34
+ background: inherit;
35
+ font-weight: 600;
36
+ padding: 0.6rem 1.6rem;
37
+ border: 1px solid #6c757d;
38
+ cursor: pointer;
39
+ }
40
+ :host .transaction-type:hover {
41
+ color: var(--activeButtonBackground);
42
+ border-color: var(--activeButtonBackground);
43
+ background: var(--hoverBackground);
44
+ }
45
+ :host .clicked {
46
+ background-color: var(--activeButtonBackground);
47
+ border-color: var(--activeButtonBackground);
48
+ }
49
+ :host .types-mobile {
50
+ justify-content: center;
51
+ margin-bottom: 15px;
52
+ }
53
+ :host .types-desktop {
54
+ justify-content: flex-end;
55
+ margin-bottom: 3rem;
56
+ }
57
+ :host .page-size {
58
+ display: flex;
59
+ width: 100%;
60
+ justify-content: flex-end;
61
+ align-items: center;
62
+ }
63
+ :host .page-size button {
64
+ background: transparent;
65
+ border: none;
66
+ cursor: pointer;
67
+ margin: 0.4rem;
68
+ width: 2rem;
69
+ height: 2rem;
70
+ }
71
+ :host .page-size button:hover {
72
+ color: var(--textColorHover);
73
+ }
74
+ :host .page-size button.active {
75
+ background: var(--activeButtonBackground);
76
+ color: var(--textColor);
77
+ font-weight: 600;
78
+ border-radius: 0.4rem;
79
+ }
80
+ :host .period {
81
+ display: flex;
82
+ width: 100%;
83
+ align-items: flex-end;
84
+ justify-content: center;
85
+ gap: 10px;
86
+ background: #f0f0f0;
87
+ border-bottom: 2px solid #e9e9e9;
88
+ padding: 1.6rem 0 0;
89
+ margin-bottom: 4rem;
90
+ }
91
+ @media (max-width: 801px) {
92
+ :host .period {
93
+ margin-bottom: 0;
94
+ flex-direction: column;
95
+ align-items: stretch;
96
+ width: auto;
97
+ padding: 1.4rem 2.8rem;
98
+ box-shadow: 0 4px 5px 0 rgba(90, 90, 90, 0.24);
99
+ }
100
+ }
101
+ :host .period .range {
102
+ color: var(--errorColor);
103
+ }
104
+ :host .period .filter-btn {
105
+ height: 40px;
106
+ background: transparent;
107
+ border: 0.1rem solid var(--borderColorButton);
108
+ min-width: 12rem;
109
+ max-width: 17rem;
110
+ cursor: pointer;
111
+ }
112
+ @media (max-width: 801px) {
113
+ :host .period .filter-btn {
114
+ max-width: none;
115
+ min-width: none;
116
+ margin-top: 1rem;
117
+ }
118
+ }
119
+ :host .period .filter-btn:hover {
120
+ border: none;
121
+ background: var(--hoverBackground);
122
+ }
123
+ :host .period .duet-date__input {
124
+ padding: 7px 60px 7px 7px;
125
+ }
126
+ :host .period + button {
127
+ padding: 9px 15px;
128
+ }
129
+ :host .period-content {
130
+ display: flex;
131
+ flex-direction: row;
132
+ width: 100%;
133
+ justify-content: center;
134
+ align-items: flex-end;
135
+ margin: 0 auto 1.6rem;
136
+ }
137
+ @media (max-width: 801px) {
138
+ :host .period-content {
139
+ flex-direction: column;
140
+ align-items: stretch;
141
+ }
142
+ }
143
+ :host .period-content span {
144
+ height: 40px;
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ }
149
+ @media (max-width: 801px) {
150
+ :host .period-content span {
151
+ display: none;
152
+ }
153
+ }
154
+ :host .period-content .filter-btn {
155
+ margin-left: 60px;
156
+ }
157
+ @media (max-width: 801px) {
158
+ :host .period-content .filter-btn {
159
+ margin-left: 0;
160
+ }
161
+ }
162
+ :host .period-content .date-input {
163
+ padding: 0 4px;
164
+ }
165
+ @media (max-width: 801px) {
166
+ :host .period-content .date-input {
167
+ width: auto;
168
+ }
169
+ :host .period-content .date-input:first-child {
170
+ margin-bottom: 0.5rem;
171
+ }
172
+ }
173
+ :host .period-content .date-input label {
174
+ display: inline-block;
175
+ margin-bottom: 0.9rem;
176
+ }
177
+ :host .period-content .date-input input {
178
+ border: 0.1rem solid var(--borderColor);
179
+ box-sizing: border-box;
180
+ border-radius: 0.2rem;
181
+ }
182
+ :host .pagination {
183
+ display: flex;
184
+ width: 100%;
185
+ justify-content: center;
186
+ margin-top: 1.5rem;
187
+ }
188
+ :host .pagination button {
189
+ cursor: pointer;
190
+ border: none;
191
+ background-color: var(--activeButtonBackground);
192
+ color: #fff;
193
+ opacity: 0.5;
194
+ padding: 7px 12px;
195
+ }
196
+ :host .pagination button:hover {
197
+ opacity: 1;
198
+ }
199
+ :host .pagination button:focus {
200
+ opacity: 1;
201
+ }
202
+ :host button.active {
203
+ color: var(--activeButtonFont);
204
+ background-color: var(--activeButtonBackground);
205
+ }
206
+
207
+ .mobile-filter-button {
208
+ display: flex;
209
+ justify-content: center;
210
+ align-items: center;
211
+ width: 100%;
212
+ height: 2.8rem;
213
+ background: inherit;
214
+ border: 1px solid var(--borderColorButton);
215
+ }
216
+ .mobile-filter-button img {
217
+ height: 50%;
218
+ margin-right: 0.5rem;
219
+ }
220
+
221
+ .noData {
222
+ display: flex;
223
+ align-items: center;
224
+ box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);
225
+ padding: 1.1rem;
226
+ border-radius: 0.6rem;
227
+ }
228
+ .noData span {
229
+ margin-left: 0.5rem;
230
+ }
231
+
232
+ .table {
233
+ height: var(--heightScrollableContainer);
234
+ overflow-y: auto;
235
+ }
236
+ .table .mobile-table {
237
+ height: 100%;
238
+ }
239
+
240
+ .data-transaction {
241
+ border-bottom: 1px solid var(--borderColor);
242
+ background-color: var(--hoverBackground);
243
+ padding: 0 20px;
244
+ display: grid;
245
+ grid-template-columns: repeat(2, 1fr);
246
+ }
247
+ .data-transaction .text-style-status {
248
+ font-weight: 600;
249
+ }
250
+ .data-transaction .text-style-status .success {
251
+ color: var(--success);
252
+ }
253
+ .data-transaction .text-style-status .error {
254
+ color: var(--errorColor);
255
+ }
256
+ .data-transaction .text-style {
257
+ text-align: end;
258
+ }
259
+ .data-transaction .date {
260
+ font-size: 12px;
261
+ display: flex;
262
+ align-items: center;
263
+ }
264
+
265
+ .loader {
266
+ display: inline-block;
267
+ position: absolute;
268
+ width: 80px;
269
+ height: 80px;
270
+ top: calc(50% - 40px);
271
+ left: calc(50% - 40px);
272
+ z-index: 999;
273
+ }
274
+ .loader::before {
275
+ content: "";
276
+ position: fixed;
277
+ top: 0;
278
+ bottom: 0;
279
+ left: 0;
280
+ right: 0;
281
+ background-color: rgba(255, 255, 255, 0.6);
282
+ }
283
+ .loader div {
284
+ position: absolute;
285
+ width: 6px;
286
+ height: 6px;
287
+ background: var(--loaderColor);
288
+ border-radius: 50%;
289
+ animation: loader 1.2s linear infinite;
290
+ }
291
+ .loader div:nth-child(1) {
292
+ animation-delay: 0s;
293
+ top: 37px;
294
+ left: 66px;
295
+ }
296
+ .loader div:nth-child(2) {
297
+ animation-delay: -0.1s;
298
+ top: 22px;
299
+ left: 62px;
300
+ }
301
+ .loader div:nth-child(3) {
302
+ animation-delay: -0.2s;
303
+ top: 11px;
304
+ left: 52px;
305
+ }
306
+ .loader div:nth-child(4) {
307
+ animation-delay: -0.3s;
308
+ top: 7px;
309
+ left: 37px;
310
+ }
311
+ .loader div:nth-child(5) {
312
+ animation-delay: -0.4s;
313
+ top: 11px;
314
+ left: 22px;
315
+ }
316
+ .loader div:nth-child(6) {
317
+ animation-delay: -0.5s;
318
+ top: 22px;
319
+ left: 11px;
320
+ }
321
+ .loader div:nth-child(7) {
322
+ animation-delay: -0.6s;
323
+ top: 37px;
324
+ left: 7px;
325
+ }
326
+ .loader div:nth-child(8) {
327
+ animation-delay: -0.7s;
328
+ top: 52px;
329
+ left: 11px;
330
+ }
331
+ .loader div:nth-child(9) {
332
+ animation-delay: -0.8s;
333
+ top: 62px;
334
+ left: 22px;
335
+ }
336
+ .loader div:nth-child(10) {
337
+ animation-delay: -0.9s;
338
+ top: 66px;
339
+ left: 37px;
340
+ }
341
+ .loader div:nth-child(11) {
342
+ animation-delay: -1s;
343
+ top: 62px;
344
+ left: 52px;
345
+ }
346
+ .loader div:nth-child(12) {
347
+ animation-delay: -1.1s;
348
+ top: 52px;
349
+ left: 62px;
350
+ }
351
+
352
+ @keyframes loader {
353
+ 0%, 20%, 80%, 100% {
354
+ transform: scale(1);
355
+ }
356
+ 50% {
357
+ transform: scale(1.5);
358
+ }
359
+ }
360
+ .table thead th {
361
+ position: sticky;
362
+ top: 0;
363
+ }
364
+
365
+ table {
366
+ border-collapse: collapse;
367
+ width: 100%;
368
+ }
369
+ table th {
370
+ padding: 14px 24px;
371
+ text-align: left;
372
+ font-weight: 600;
373
+ color: var(--textColor);
374
+ background: var(--headerTableBackground);
375
+ }
376
+ table td {
377
+ padding: 1rem 1.7rem;
378
+ box-shadow: 0 -1px 0 0 var(--shadowBorderTable) inset;
379
+ border-bottom: 0.1rem solid var(--borderTable);
380
+ text-align: left;
381
+ color: var(--textColor);
382
+ }
383
+ table tbody {
384
+ background: var(--backgroundTable);
385
+ }
386
+ table .success {
387
+ color: var(--success);
388
+ }
389
+ table .error {
390
+ color: var(--errorColor);
391
+ }
392
+
393
+ vaadin-date-picker {
394
+ min-width: 320px;
395
+ }
396
+ @media (max-width: 1261px) {
397
+ vaadin-date-picker {
398
+ width: auto;
399
+ min-width: auto;
400
+ }
401
+ }
402
+ @media (max-width: 801px) {
403
+ vaadin-date-picker {
404
+ width: 100%;
405
+ }
406
+ }