@everymatrix/user-transaction-history 1.43.4 → 1.45.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 (65) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-4699d9a2.js +1382 -0
  3. package/dist/cjs/loader.cjs.js +7 -13
  4. package/dist/cjs/user-transaction-history.cjs.entry.js +291 -295
  5. package/dist/cjs/user-transaction-history.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/internal/filters.js +11 -20
  8. package/dist/collection/components/internal/loader.js +2 -14
  9. package/dist/collection/components/internal/page-size.js +3 -5
  10. package/dist/collection/components/internal/table.js +18 -29
  11. package/dist/collection/components/internal/transaction.js +4 -14
  12. package/dist/collection/components/user-transaction-history/index.js +1 -0
  13. package/dist/collection/components/user-transaction-history/user-transaction-history.js +334 -343
  14. package/dist/collection/global/app.js +1 -1
  15. package/dist/collection/utils/currency.utils.js +15 -15
  16. package/dist/collection/utils/date.util.js +6 -6
  17. package/dist/collection/utils/locale.util.js +60 -60
  18. package/dist/collection/utils/utils.js +3 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/index-b111cb50.js +1353 -0
  21. package/dist/esm/loader.js +7 -13
  22. package/dist/esm/user-transaction-history.entry.js +291 -295
  23. package/dist/esm/user-transaction-history.js +14 -11
  24. package/dist/stencil.config.dev.js +17 -0
  25. package/dist/stencil.config.js +14 -19
  26. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +2 -0
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +2 -0
  28. package/dist/types/components/internal/filters.d.ts +4 -4
  29. package/dist/types/components/internal/page-size.d.ts +4 -4
  30. package/dist/types/components/internal/table.d.ts +2 -2
  31. package/dist/types/components/user-transaction-history/index.d.ts +1 -0
  32. package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +37 -37
  33. package/dist/types/contracts/translation.d.ts +2 -2
  34. package/dist/types/models/transactions-response.model.d.ts +17 -17
  35. package/dist/types/stencil-public-runtime.d.ts +142 -33
  36. package/dist/types/utils/currency.utils.d.ts +2 -2
  37. package/dist/types/utils/date.util.d.ts +2 -2
  38. package/dist/types/utils/locale.util.d.ts +38 -38
  39. package/dist/types/utils/utils.d.ts +1 -0
  40. package/dist/user-transaction-history/p-57173b50.js +2 -0
  41. package/dist/user-transaction-history/p-653991ac.entry.js +1 -0
  42. package/dist/user-transaction-history/p-e1255160.js +1 -0
  43. package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
  44. package/loader/cdn.js +1 -3
  45. package/loader/index.cjs.js +1 -3
  46. package/loader/index.d.ts +13 -1
  47. package/loader/index.es2017.js +1 -3
  48. package/loader/index.js +1 -3
  49. package/loader/package.json +1 -0
  50. package/package.json +8 -1
  51. package/dist/cjs/index-206e75cb.js +0 -1416
  52. package/dist/components/index.d.ts +0 -26
  53. package/dist/components/index.js +0 -1
  54. package/dist/components/user-transaction-history.d.ts +0 -11
  55. package/dist/components/user-transaction-history.js +0 -378
  56. package/dist/esm/index-32e3ae05.js +0 -1388
  57. package/dist/esm/polyfills/core-js.js +0 -11
  58. package/dist/esm/polyfills/css-shim.js +0 -1
  59. package/dist/esm/polyfills/dom.js +0 -79
  60. package/dist/esm/polyfills/es5-html-element.js +0 -1
  61. package/dist/esm/polyfills/index.js +0 -34
  62. package/dist/esm/polyfills/system.js +0 -6
  63. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-transaction-history/.stencil/packages/user-transaction-history/stencil.config.d.ts +0 -2
  64. package/dist/user-transaction-history/p-10b5b959.js +0 -1
  65. package/dist/user-transaction-history/p-4e4fb37e.entry.js +0 -1
@@ -1,357 +1,348 @@
1
- import { Localization } from '../../utils/locale.util';
2
- import { Component, Host, Prop, State, h, Element, Watch, Listen, getAssetPath } from '@stencil/core';
3
- import { Loader } from '../internal/loader';
4
- import { TransactionComponent } from '../internal/transaction';
5
- import { PageSize } from '../internal/page-size';
6
- import { Filters } from '../internal/filters';
7
- import { TableComponent } from '../internal/table';
1
+ import { Localization } from "../../utils/locale.util";
2
+ import { Host, h, getAssetPath } from "@stencil/core";
3
+ import { Loader } from "../internal/loader";
4
+ import { TransactionComponent } from "../internal/transaction";
5
+ import { PageSize } from "../internal/page-size";
6
+ import { Filters } from "../internal/filters";
7
+ import { TableComponent } from "../internal/table";
8
8
  export class UserTransactionHistory {
9
- constructor() {
10
- this.pageSizes = [10, 25, 50];
11
- this.pagination = null;
12
- this.stylingAppended = false;
13
- /*
14
- * Language of the application.
15
- */
16
- this.language = Localization.defaultLanguage;
17
- /*
18
- * Is mobile mode on. Default value `false`.
19
- */
20
- this.mobile = false;
21
- /*
22
- * Client styling via inline styles.
23
- */
24
- this.clientStyling = null;
25
- /*
26
- * The path to file with styles in `css` format.
27
- */
28
- this.clientStylingUrl = null;
29
- this.page = 0;
30
- this.pageSize = this.pageSizes[0];
31
- this.showMobileFilter = false;
32
- this.type = '0';
33
- this.showLoader = true;
34
- }
35
- watchMultiple() {
36
- this.loadTransactions();
37
- }
38
- async componentWillLoad() {
39
- if (this.translationUrl) {
40
- await Localization.loadCustomTranslations(this.translationUrl);
9
+ constructor() {
10
+ this.pageSizes = [10, 25, 50];
11
+ this.pagination = null;
12
+ this.stylingAppended = false;
13
+ this.endpoint = undefined;
14
+ this.session = undefined;
15
+ this.language = Localization.defaultLanguage;
16
+ this.userId = undefined;
17
+ this.translationUrl = undefined;
18
+ this.mobile = false;
19
+ this.clientStyling = null;
20
+ this.clientStylingUrl = null;
21
+ this.page = 0;
22
+ this.pageSize = this.pageSizes[0];
23
+ this.showMobileFilter = false;
24
+ this.to = undefined;
25
+ this.from = undefined;
26
+ this.type = '0';
27
+ this.transactions = undefined;
28
+ this.showLoader = true;
41
29
  }
42
- this.loadTransactions();
43
- }
44
- componentDidRender() {
45
- this.getComponentHeight();
46
- if (!this.stylingAppended && this.stylingContainer) {
47
- if (this.clientStyling) {
48
- this.setStyles(this.clientStyling);
49
- }
50
- if (this.clientStylingUrl) {
51
- this.setClientStylingByURL();
52
- }
53
- this.stylingAppended = true;
30
+ watchMultiple() {
31
+ this.loadTransactions();
54
32
  }
55
- }
56
- getComponentHeight() {
57
- var _a;
58
- if (this.mobile) {
59
- let height = this.el.getBoundingClientRect().height - ((_a = this.el.shadowRoot.querySelector('.table')) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().y);
60
- this.el.style.setProperty('--heightScrollableContainer', height + 'px');
33
+ async componentWillLoad() {
34
+ if (this.translationUrl) {
35
+ await Localization.loadCustomTranslations(this.translationUrl);
36
+ }
37
+ this.loadTransactions();
38
+ }
39
+ componentDidRender() {
40
+ this.getComponentHeight();
41
+ if (!this.stylingAppended && this.stylingContainer) {
42
+ if (this.clientStyling) {
43
+ this.setStyles(this.clientStyling);
44
+ }
45
+ if (this.clientStylingUrl) {
46
+ this.setClientStylingByURL();
47
+ }
48
+ this.stylingAppended = true;
49
+ }
50
+ }
51
+ getComponentHeight() {
52
+ var _a;
53
+ if (this.mobile) {
54
+ let height = this.el.getBoundingClientRect().height - ((_a = this.el.shadowRoot.querySelector('.table')) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().y);
55
+ this.el.style.setProperty('--heightScrollableContainer', height + 'px');
56
+ }
57
+ }
58
+ setHeightTableProperty() {
59
+ let height = this.getComponentHeight();
60
+ this.el.style.setProperty('--heightScrollableContainer', height + 'px');
61
61
  }
62
- }
63
- setHeightTableProperty() {
64
- let height = this.getComponentHeight();
65
- this.el.style.setProperty('--heightScrollableContainer', height + 'px');
66
- }
67
- changeTransactionsType(type) {
68
- this.type = type;
69
- }
70
- changePageSize(pageSize) {
71
- this.pageSize = pageSize;
72
- }
73
- prev() {
74
- var _a;
75
- if (!((_a = this.pagination) === null || _a === void 0 ? void 0 : _a.previous)) {
76
- return;
62
+ changeTransactionsType(type) {
63
+ this.type = type;
77
64
  }
78
- this.page--;
79
- }
80
- next() {
81
- var _a;
82
- if (!((_a = this.pagination) === null || _a === void 0 ? void 0 : _a.next)) {
83
- return;
65
+ changePageSize(pageSize) {
66
+ this.pageSize = pageSize;
84
67
  }
85
- this.page++;
86
- }
87
- applyFilters(from, to) {
88
- this.from = from ? new Date(from).toISOString() : null;
89
- this.to = to ? new Date(to).toISOString() : null;
90
- this.loadTransactions();
91
- }
92
- showFilter() {
93
- this.showMobileFilter = !this.showMobileFilter;
94
- }
95
- render() {
96
- var _a;
97
- const filterSrc = getAssetPath('../assets/filter.svg');
98
- const warningSrc = getAssetPath('../assets/warning.svg');
99
- return (h(Host, null,
100
- this.showLoader ? h(Loader, null) : '',
101
- h("div", { class: "wrapper", ref: el => (this.stylingContainer = el) },
102
- h("div", { class: { 'types types-mobile': this.mobile, 'types types-desktop': !this.mobile } },
103
- h("button", { class: 'transaction-type' + ' ' + (this.type === '0' ? 'clicked' : ''), onClick: () => this.changeTransactionsType('0') }, Localization.translate('deposit', this.language)),
104
- h("button", { class: 'transaction-type' + ' ' + (this.type === '1' ? 'clicked' : ''), onClick: () => this.changeTransactionsType('1') }, Localization.translate('withdrawals', this.language))),
105
- !this.mobile ? h(PageSize, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: s => this.changePageSize(s) }) : '',
106
- this.mobile ? (h("button", { class: "mobile-filter-button", onClick: () => this.showFilter() },
107
- h("img", { src: filterSrc, alt: "Filter" }),
108
- Localization.translate('filter', this.language))) : (''),
109
- !this.mobile || (this.showMobileFilter && this.mobile) ? h(Filters, { language: this.language, applyFilters: (from, to) => this.applyFilters(from, to) }) : '',
110
- ((_a = this.transactions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (h("div", { class: "table" }, this.mobile ? (h("div", { class: "mobile-table" }, this.transactions.map(transaction => (h(TransactionComponent, Object.assign({}, transaction)))))) : (h(TableComponent, { source: this.transactions, language: this.language })))) : (h("div", { class: "noData" },
111
- h("img", { src: warningSrc, alt: "Warning" }),
112
- h("span", null, Localization.translate('noData', this.language)))),
113
- h("div", { class: "pagination" },
114
- h("button", { onClick: () => this.prev() }, '<'),
115
- h("button", { onClick: () => this.next() }, '>')))));
116
- }
117
- async loadTransactions() {
118
- this.showLoader = true;
119
- try {
120
- const url = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`;
121
- const response = await fetch(url, {
122
- headers: {
123
- 'X-Sessionid': this.session,
124
- 'Content-Type': 'application/json'
68
+ prev() {
69
+ var _a;
70
+ if (!((_a = this.pagination) === null || _a === void 0 ? void 0 : _a.previous)) {
71
+ return;
125
72
  }
126
- });
127
- if (!response.ok) {
128
- const err = await response.text();
129
- throw new Error(err);
130
- }
131
- const data = await response.json();
132
- this.pagination = data.pagination;
133
- this.transactions = data.transactions;
73
+ this.page--;
74
+ }
75
+ next() {
76
+ var _a;
77
+ if (!((_a = this.pagination) === null || _a === void 0 ? void 0 : _a.next)) {
78
+ return;
79
+ }
80
+ this.page++;
81
+ }
82
+ applyFilters(from, to) {
83
+ this.from = from ? new Date(from).toISOString() : null;
84
+ this.to = to ? new Date(to).toISOString() : null;
85
+ this.loadTransactions();
86
+ }
87
+ showFilter() {
88
+ this.showMobileFilter = !this.showMobileFilter;
89
+ }
90
+ render() {
91
+ var _a;
92
+ const filterSrc = getAssetPath('../assets/filter.svg');
93
+ const warningSrc = getAssetPath('../assets/warning.svg');
94
+ return (h(Host, { key: 'c850ba36433277706247f4b7c0c08b0ae0fb8c76' }, this.showLoader ? h(Loader, null) : '', h("div", { key: '20b817b5c9cf14e8af0db2ba417d09e21b6921d7', class: "wrapper", ref: el => (this.stylingContainer = el) }, h("div", { key: '3943f4ab79cb0e72083821b424000f96779e78a5', class: { 'types types-mobile': this.mobile, 'types types-desktop': !this.mobile } }, h("button", { key: 'd1f3dfc1f4fc7013bd81c92663f578129f63c0e7', class: 'transaction-type' + ' ' + (this.type === '0' ? 'clicked' : ''), onClick: () => this.changeTransactionsType('0') }, Localization.translate('deposit', this.language)), h("button", { key: '46989070ef6703fdf7c8c7ac6628e9dce731fec6', class: 'transaction-type' + ' ' + (this.type === '1' ? 'clicked' : ''), onClick: () => this.changeTransactionsType('1') }, Localization.translate('withdrawals', this.language))), !this.mobile ? h(PageSize, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: s => this.changePageSize(s) }) : '', this.mobile ? (h("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, h("img", { src: filterSrc, alt: "Filter" }), Localization.translate('filter', this.language))) : (''), !this.mobile || (this.showMobileFilter && this.mobile) ? h(Filters, { language: this.language, applyFilters: (from, to) => this.applyFilters(from, to) }) : '', ((_a = this.transactions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (h("div", { class: "table" }, this.mobile ? (h("div", { class: "mobile-table" }, this.transactions.map(transaction => (h(TransactionComponent, Object.assign({}, transaction)))))) : (h(TableComponent, { source: this.transactions, language: this.language })))) : (h("div", { class: "noData" }, h("img", { src: warningSrc, alt: "Warning" }), h("span", null, Localization.translate('noData', this.language)))), h("div", { key: '50710657788295389a20d59e0092dd033e428268', class: "pagination" }, h("button", { key: 'cd29c880eab413a06666dc12c8df38d3ffdcfe2f', onClick: () => this.prev() }, '<'), h("button", { key: 'df351ecd4237433a8ab38766669ac48d2548ed6a', onClick: () => this.next() }, '>')))));
95
+ }
96
+ async loadTransactions() {
97
+ this.showLoader = true;
98
+ try {
99
+ const url = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`;
100
+ const response = await fetch(url, {
101
+ headers: {
102
+ 'X-Sessionid': this.session,
103
+ 'Content-Type': 'application/json'
104
+ }
105
+ });
106
+ if (!response.ok) {
107
+ const err = await response.text();
108
+ throw new Error(err);
109
+ }
110
+ const data = await response.json();
111
+ this.pagination = data.pagination;
112
+ this.transactions = data.transactions;
113
+ }
114
+ catch (ex) {
115
+ console.error(ex);
116
+ }
117
+ finally {
118
+ this.showLoader = false;
119
+ }
120
+ }
121
+ getParams() {
122
+ var _a, _b;
123
+ const now = new Date();
124
+ const offset = (this.page * this.pageSize).toString();
125
+ const startDate = (_a = this.from) !== null && _a !== void 0 ? _a : new Date(now.getFullYear(), now.getMonth(), 1).toISOString();
126
+ const endDate = (_b = this.to) !== null && _b !== void 0 ? _b : new Date(now.getFullYear(), now.getMonth() + 1, 0).toISOString();
127
+ return `offset=${offset}&endDate=${endDate}&startDate=${startDate}&type=${this.type}&limit=${this.pageSize}`;
128
+ }
129
+ setStyles(styles) {
130
+ const cssFile = document.createElement('style');
131
+ cssFile.innerHTML = styles;
132
+ this.stylingContainer.prepend(cssFile);
133
+ }
134
+ async setClientStylingByURL() {
135
+ try {
136
+ const response = await fetch(this.clientStylingUrl);
137
+ if (!response.ok) {
138
+ const err = await response.text();
139
+ throw new Error(err);
140
+ }
141
+ const styles = await response.text();
142
+ this.setStyles(styles);
143
+ }
144
+ catch (ex) {
145
+ console.error(`Failed to load client styles ${this.clientStylingUrl}`, ex);
146
+ }
147
+ }
148
+ static get is() { return "user-transaction-history"; }
149
+ static get encapsulation() { return "shadow"; }
150
+ static get originalStyleUrls() {
151
+ return {
152
+ "$": ["user-transaction-history.scss"]
153
+ };
134
154
  }
135
- catch (ex) {
136
- console.error(ex);
155
+ static get styleUrls() {
156
+ return {
157
+ "$": ["user-transaction-history.css"]
158
+ };
137
159
  }
138
- finally {
139
- this.showLoader = false;
160
+ static get assetsDirs() { return ["../assets"]; }
161
+ static get properties() {
162
+ return {
163
+ "endpoint": {
164
+ "type": "string",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "string | null",
168
+ "resolved": "string",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": ""
176
+ },
177
+ "attribute": "endpoint",
178
+ "reflect": true
179
+ },
180
+ "session": {
181
+ "type": "string",
182
+ "mutable": false,
183
+ "complexType": {
184
+ "original": "string",
185
+ "resolved": "string",
186
+ "references": {}
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": ""
193
+ },
194
+ "attribute": "session",
195
+ "reflect": true
196
+ },
197
+ "language": {
198
+ "type": "string",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "string",
202
+ "resolved": "string",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": ""
210
+ },
211
+ "attribute": "language",
212
+ "reflect": true,
213
+ "defaultValue": "Localization.defaultLanguage"
214
+ },
215
+ "userId": {
216
+ "type": "string",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "string",
220
+ "resolved": "string",
221
+ "references": {}
222
+ },
223
+ "required": false,
224
+ "optional": false,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": ""
228
+ },
229
+ "attribute": "user-id",
230
+ "reflect": true
231
+ },
232
+ "translationUrl": {
233
+ "type": "string",
234
+ "mutable": false,
235
+ "complexType": {
236
+ "original": "string",
237
+ "resolved": "string",
238
+ "references": {}
239
+ },
240
+ "required": false,
241
+ "optional": false,
242
+ "docs": {
243
+ "tags": [],
244
+ "text": ""
245
+ },
246
+ "attribute": "translation-url",
247
+ "reflect": true
248
+ },
249
+ "mobile": {
250
+ "type": "boolean",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "boolean",
254
+ "resolved": "boolean",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": ""
262
+ },
263
+ "attribute": "mobile",
264
+ "reflect": true,
265
+ "defaultValue": "false"
266
+ },
267
+ "clientStyling": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string | null",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "attribute": "client-styling",
282
+ "reflect": true,
283
+ "defaultValue": "null"
284
+ },
285
+ "clientStylingUrl": {
286
+ "type": "string",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "string | null",
290
+ "resolved": "string",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": ""
298
+ },
299
+ "attribute": "client-styling-url",
300
+ "reflect": true,
301
+ "defaultValue": "null"
302
+ }
303
+ };
140
304
  }
141
- }
142
- getParams() {
143
- var _a, _b;
144
- const now = new Date();
145
- const offset = (this.page * this.pageSize).toString();
146
- const startDate = (_a = this.from) !== null && _a !== void 0 ? _a : new Date(now.getFullYear(), now.getMonth(), 1).toISOString();
147
- const endDate = (_b = this.to) !== null && _b !== void 0 ? _b : new Date(now.getFullYear(), now.getMonth() + 1, 0).toISOString();
148
- return `offset=${offset}&endDate=${endDate}&startDate=${startDate}&type=${this.type}&limit=${this.pageSize}`;
149
- }
150
- setStyles(styles) {
151
- const cssFile = document.createElement('style');
152
- cssFile.innerHTML = styles;
153
- this.stylingContainer.prepend(cssFile);
154
- }
155
- async setClientStylingByURL() {
156
- try {
157
- const response = await fetch(this.clientStylingUrl);
158
- if (!response.ok) {
159
- const err = await response.text();
160
- throw new Error(err);
161
- }
162
- const styles = await response.text();
163
- this.setStyles(styles);
305
+ static get states() {
306
+ return {
307
+ "page": {},
308
+ "pageSize": {},
309
+ "showMobileFilter": {},
310
+ "to": {},
311
+ "from": {},
312
+ "type": {},
313
+ "transactions": {},
314
+ "showLoader": {}
315
+ };
164
316
  }
165
- catch (ex) {
166
- console.error(`Failed to load client styles ${this.clientStylingUrl}`, ex);
317
+ static get elementRef() { return "el"; }
318
+ static get watchers() {
319
+ return [{
320
+ "propName": "page",
321
+ "methodName": "watchMultiple"
322
+ }, {
323
+ "propName": "type",
324
+ "methodName": "watchMultiple"
325
+ }, {
326
+ "propName": "session",
327
+ "methodName": "watchMultiple"
328
+ }, {
329
+ "propName": "userId",
330
+ "methodName": "watchMultiple"
331
+ }, {
332
+ "propName": "pageSize",
333
+ "methodName": "watchMultiple"
334
+ }, {
335
+ "propName": "showMobileFilter",
336
+ "methodName": "getComponentHeight"
337
+ }];
167
338
  }
168
- }
169
- static get is() { return "user-transaction-history"; }
170
- static get encapsulation() { return "shadow"; }
171
- static get originalStyleUrls() { return {
172
- "$": ["user-transaction-history.scss"]
173
- }; }
174
- static get styleUrls() { return {
175
- "$": ["user-transaction-history.css"]
176
- }; }
177
- static get assetsDirs() { return ["../assets"]; }
178
- static get properties() { return {
179
- "endpoint": {
180
- "type": "string",
181
- "mutable": false,
182
- "complexType": {
183
- "original": "string | null",
184
- "resolved": "string",
185
- "references": {}
186
- },
187
- "required": false,
188
- "optional": false,
189
- "docs": {
190
- "tags": [],
191
- "text": ""
192
- },
193
- "attribute": "endpoint",
194
- "reflect": true
195
- },
196
- "session": {
197
- "type": "string",
198
- "mutable": false,
199
- "complexType": {
200
- "original": "string",
201
- "resolved": "string",
202
- "references": {}
203
- },
204
- "required": false,
205
- "optional": false,
206
- "docs": {
207
- "tags": [],
208
- "text": ""
209
- },
210
- "attribute": "session",
211
- "reflect": true
212
- },
213
- "language": {
214
- "type": "string",
215
- "mutable": false,
216
- "complexType": {
217
- "original": "string",
218
- "resolved": "string",
219
- "references": {}
220
- },
221
- "required": false,
222
- "optional": false,
223
- "docs": {
224
- "tags": [],
225
- "text": ""
226
- },
227
- "attribute": "language",
228
- "reflect": true,
229
- "defaultValue": "Localization.defaultLanguage"
230
- },
231
- "userId": {
232
- "type": "string",
233
- "mutable": false,
234
- "complexType": {
235
- "original": "string",
236
- "resolved": "string",
237
- "references": {}
238
- },
239
- "required": false,
240
- "optional": false,
241
- "docs": {
242
- "tags": [],
243
- "text": ""
244
- },
245
- "attribute": "user-id",
246
- "reflect": true
247
- },
248
- "translationUrl": {
249
- "type": "string",
250
- "mutable": false,
251
- "complexType": {
252
- "original": "string",
253
- "resolved": "string",
254
- "references": {}
255
- },
256
- "required": false,
257
- "optional": false,
258
- "docs": {
259
- "tags": [],
260
- "text": ""
261
- },
262
- "attribute": "translation-url",
263
- "reflect": true
264
- },
265
- "mobile": {
266
- "type": "boolean",
267
- "mutable": false,
268
- "complexType": {
269
- "original": "boolean",
270
- "resolved": "boolean",
271
- "references": {}
272
- },
273
- "required": false,
274
- "optional": false,
275
- "docs": {
276
- "tags": [],
277
- "text": ""
278
- },
279
- "attribute": "mobile",
280
- "reflect": true,
281
- "defaultValue": "false"
282
- },
283
- "clientStyling": {
284
- "type": "string",
285
- "mutable": false,
286
- "complexType": {
287
- "original": "string | null",
288
- "resolved": "string",
289
- "references": {}
290
- },
291
- "required": false,
292
- "optional": false,
293
- "docs": {
294
- "tags": [],
295
- "text": ""
296
- },
297
- "attribute": "client-styling",
298
- "reflect": true,
299
- "defaultValue": "null"
300
- },
301
- "clientStylingUrl": {
302
- "type": "string",
303
- "mutable": false,
304
- "complexType": {
305
- "original": "string | null",
306
- "resolved": "string",
307
- "references": {}
308
- },
309
- "required": false,
310
- "optional": false,
311
- "docs": {
312
- "tags": [],
313
- "text": ""
314
- },
315
- "attribute": "client-styling-url",
316
- "reflect": true,
317
- "defaultValue": "null"
339
+ static get listeners() {
340
+ return [{
341
+ "name": "resize",
342
+ "method": "getComponentHeight",
343
+ "target": "window",
344
+ "capture": false,
345
+ "passive": true
346
+ }];
318
347
  }
319
- }; }
320
- static get states() { return {
321
- "page": {},
322
- "pageSize": {},
323
- "showMobileFilter": {},
324
- "to": {},
325
- "from": {},
326
- "type": {},
327
- "transactions": {},
328
- "showLoader": {}
329
- }; }
330
- static get elementRef() { return "el"; }
331
- static get watchers() { return [{
332
- "propName": "page",
333
- "methodName": "watchMultiple"
334
- }, {
335
- "propName": "type",
336
- "methodName": "watchMultiple"
337
- }, {
338
- "propName": "session",
339
- "methodName": "watchMultiple"
340
- }, {
341
- "propName": "userId",
342
- "methodName": "watchMultiple"
343
- }, {
344
- "propName": "pageSize",
345
- "methodName": "watchMultiple"
346
- }, {
347
- "propName": "showMobileFilter",
348
- "methodName": "getComponentHeight"
349
- }]; }
350
- static get listeners() { return [{
351
- "name": "resize",
352
- "method": "getComponentHeight",
353
- "target": "window",
354
- "capture": false,
355
- "passive": true
356
- }]; }
357
348
  }