@everymatrix/player-elevate-points-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 (87) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +769 -931
  3. package/dist/cjs/index-c769d3e9.js +1651 -0
  4. package/dist/cjs/loader.cjs.js +7 -13
  5. package/dist/cjs/{player-elevate-card-items-574f7423.js → player-elevate-card-items-e7f7d092.js} +171 -285
  6. package/dist/cjs/player-elevate-card.cjs.entry.js +59 -70
  7. package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +66 -77
  8. package/dist/cjs/player-elevate-points-history.cjs.js +17 -11
  9. package/dist/collection/collection-manifest.json +3 -3
  10. package/dist/collection/components/player-elevate-points-history/index.js +1 -0
  11. package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.css +4 -4
  12. package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.js +389 -396
  13. package/dist/collection/renders/renderTabs.js +7 -9
  14. package/dist/collection/renders/renderTopBar.js +4 -12
  15. package/dist/collection/renders/renderWallets.js +27 -38
  16. package/dist/collection/utils/business.js +12 -12
  17. package/dist/collection/utils/fetch.js +13 -13
  18. package/dist/collection/utils/translation.js +32 -32
  19. package/dist/collection/utils/types.js +3 -3
  20. package/dist/collection/utils/util.js +12 -12
  21. package/dist/collection/utils/utils.js +3 -0
  22. package/dist/esm/app-globals-0f993ce5.js +3 -0
  23. package/dist/esm/bonus-pagination-limits_6.entry.js +769 -931
  24. package/dist/esm/index-e7bde614.js +1621 -0
  25. package/dist/esm/loader.js +7 -13
  26. package/dist/esm/{player-elevate-card-items-2bf82f60.js → player-elevate-card-items-4cabbcc6.js} +172 -285
  27. package/dist/esm/player-elevate-card.entry.js +59 -70
  28. package/dist/esm/player-elevate-loyaltycard.entry.js +66 -77
  29. package/dist/esm/player-elevate-points-history.js +14 -11
  30. package/dist/player-elevate-points-history/p-0f3449ca.entry.js +1 -0
  31. package/dist/player-elevate-points-history/p-212a0bb7.entry.js +1 -0
  32. package/dist/player-elevate-points-history/p-409b8855.entry.js +1 -0
  33. package/dist/player-elevate-points-history/p-8a361039.js +1 -0
  34. package/dist/player-elevate-points-history/p-e1255160.js +1 -0
  35. package/dist/player-elevate-points-history/p-f547f5dc.js +2 -0
  36. package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -1
  37. package/dist/stencil.config.dev.js +17 -0
  38. package/dist/stencil.config.js +12 -26
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +2 -0
  40. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +2 -0
  41. package/dist/types/components/player-elevate-points-history/index.d.ts +1 -0
  42. package/dist/types/components/player-elevate-points-history/player-elevate-points-history.d.ts +63 -63
  43. package/dist/types/components.d.ts +16 -1
  44. package/dist/types/stencil-public-runtime.d.ts +142 -33
  45. package/dist/types/utils/translation.d.ts +33 -33
  46. package/dist/types/utils/types.d.ts +32 -32
  47. package/dist/types/utils/utils.d.ts +1 -0
  48. package/loader/cdn.js +1 -3
  49. package/loader/index.cjs.js +1 -3
  50. package/loader/index.d.ts +13 -1
  51. package/loader/index.es2017.js +1 -3
  52. package/loader/index.js +1 -3
  53. package/loader/package.json +1 -0
  54. package/package.json +14 -13
  55. package/dist/assets/back.svg +0 -3
  56. package/dist/assets/menu.svg +0 -5
  57. package/dist/cjs/index-974f5239.js +0 -1686
  58. package/dist/components/bonus-pagination-limits.js +0 -6
  59. package/dist/components/bonus-pagination-limits2.js +0 -111
  60. package/dist/components/bonus-pagination-nav.js +0 -6
  61. package/dist/components/bonus-pagination-nav2.js +0 -219
  62. package/dist/components/general-styling-wrapper.js +0 -6
  63. package/dist/components/general-styling-wrapper2.js +0 -104
  64. package/dist/components/index.d.ts +0 -26
  65. package/dist/components/index.js +0 -1
  66. package/dist/components/player-elevate-card-data.js +0 -6
  67. package/dist/components/player-elevate-card-data2.js +0 -636
  68. package/dist/components/player-elevate-card-items.js +0 -2250
  69. package/dist/components/player-elevate-card.js +0 -127
  70. package/dist/components/player-elevate-loyaltycard.js +0 -133
  71. package/dist/components/player-elevate-pointcard.js +0 -6
  72. package/dist/components/player-elevate-pointcard2.js +0 -133
  73. package/dist/components/player-elevate-points-history.d.ts +0 -11
  74. package/dist/components/player-elevate-points-history.js +0 -471
  75. package/dist/esm/index-18159ab2.js +0 -1657
  76. package/dist/esm/polyfills/core-js.js +0 -11
  77. package/dist/esm/polyfills/css-shim.js +0 -1
  78. package/dist/esm/polyfills/dom.js +0 -79
  79. package/dist/esm/polyfills/es5-html-element.js +0 -1
  80. package/dist/esm/polyfills/index.js +0 -34
  81. package/dist/esm/polyfills/system.js +0 -6
  82. package/dist/player-elevate-points-history/p-2639efd0.js +0 -1
  83. package/dist/player-elevate-points-history/p-2d512640.entry.js +0 -1
  84. package/dist/player-elevate-points-history/p-3073cebd.js +0 -1
  85. package/dist/player-elevate-points-history/p-309d0acb.entry.js +0 -1
  86. package/dist/player-elevate-points-history/p-977d72c7.entry.js +0 -1
  87. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/player-elevate-points-history/.stencil/packages/player-elevate-points-history/stencil.config.d.ts +0 -2
@@ -1,410 +1,403 @@
1
- import { Component, h, Listen, Prop, State, Watch, Event } from '@stencil/core';
2
- import { WalletType } from '../../utils/types';
3
- import { translation } from '../../utils/translation';
4
- import { getWallets } from '../../utils/business';
5
- import { renderWallets } from '../../renders/renderWallets';
6
- import { renderTopBar } from '../../renders/renderTopBar';
7
- import { renderTabs } from '../../renders/renderTabs';
8
- import '@everymatrix/general-styling-wrapper';
9
- import '@everymatrix/general-animation-loading';
10
- import '@everymatrix/player-elevate-card';
11
- import '@everymatrix/bonus-pagination-limits';
12
- import '@everymatrix/bonus-pagination-nav';
1
+ import { h } from "@stencil/core";
2
+ import { WalletType } from "../../utils/types";
3
+ import { translation } from "../../utils/translation";
4
+ import { getWallets } from "../../utils/business";
5
+ import { renderWallets } from "../../renders/renderWallets";
6
+ import { renderTopBar } from "../../renders/renderTopBar";
7
+ import { renderTabs } from "../../renders/renderTabs";
8
+ import "../../../../../general-styling-wrapper/dist/types/index";
9
+ import "../../../../../../svelte/general-animation-loading/es2015/general-animation-loading";
10
+ import "../../../../../player-elevate-card/dist/types/index";
11
+ import "../../../../../bonus-pagination-limits/dist/types/index";
12
+ import "../../../../../bonus-pagination-nav/dist/types/index";
13
13
  export class PlayerElevatePointsHistory {
14
- constructor() {
15
- /**
16
- * Customize pagination: Activate pagination secondary arrows
17
- */
18
- this.secondaryArrowsActive = true;
19
- /**
20
- * Customize pagination: Activate pagination numbered navigation
21
- */
22
- this.displayPageNumbers = false;
23
- /**
24
- * Customize page list options, default: 10,25,50
25
- */
26
- this.pageLimitOptions = '10,25,50';
27
- /**
28
- * Language of the widget
29
- */
30
- this.language = 'en';
31
- /**
32
- * Client custom styling via string
33
- */
34
- this.clientStyling = '';
35
- /**
36
- * Client custom styling via url
37
- */
38
- this.clientStylingUrl = '';
39
- /**
40
- * translation via url
41
- */
42
- this.translationUrl = '';
43
- this.locale = translation['en'];
44
- this.type = WalletType.spendable;
45
- this.pointsWallets = {};
46
- }
47
- switchTab(type) {
48
- var _a, _b;
49
- this.type = type;
50
- if (this.pointsWallets[type] || !((_a = this.pointsWallets[type]) === null || _a === void 0 ? void 0 : _a.isLoadFailed)) {
51
- return;
14
+ constructor() {
15
+ this.playerAvatarUrl = undefined;
16
+ this.session = undefined;
17
+ this.endpoint = undefined;
18
+ this.limit = undefined;
19
+ this.secondaryArrowsActive = true;
20
+ this.displayPageNumbers = false;
21
+ this.pageLimitOptions = '10,25,50';
22
+ this.language = 'en';
23
+ this.clientStyling = '';
24
+ this.clientStylingUrl = '';
25
+ this.translationUrl = '';
26
+ this.locale = translation['en'];
27
+ this.type = WalletType.spendable;
28
+ this.pageSetting = undefined;
29
+ this.pointsWallets = {};
52
30
  }
53
- this.paginationReset.emit({ limit: ((_b = this.pointsWallets[type]) === null || _b === void 0 ? void 0 : _b.pageSetting.limit) || this.limit, tableId: this.type });
54
- }
55
- getPageSettingByType(type) {
56
- return this.pointsWallets[type] ? this.pointsWallets[type].pageSetting : {
57
- limit: this.limit, total: 0, offset: 0, tableId: type,
58
- secondaryArrowsActive: this.secondaryArrowsActive,
59
- displayPageNumbers: this.displayPageNumbers,
60
- pageLimitOptions: this.pageLimitOptions || undefined
61
- };
62
- }
63
- loadWallets(renderer) {
64
- if (!this.pointsWallets[this.type] || this.pointsWallets[this.type].isLoading) {
65
- return h("general-animation-loading", null);
31
+ switchTab(type) {
32
+ var _a, _b;
33
+ this.type = type;
34
+ if (this.pointsWallets[type] || !((_a = this.pointsWallets[type]) === null || _a === void 0 ? void 0 : _a.isLoadFailed)) {
35
+ return;
36
+ }
37
+ this.paginationReset.emit({ limit: ((_b = this.pointsWallets[type]) === null || _b === void 0 ? void 0 : _b.pageSetting.limit) || this.limit, tableId: this.type });
66
38
  }
67
- else {
68
- if (this.pointsWallets[this.type].wallets.length === 0) {
69
- return (h("div", { class: "NoContent" }, this.locale.noContent));
70
- }
71
- else {
72
- return renderer();
73
- }
39
+ getPageSettingByType(type) {
40
+ return this.pointsWallets[type] ? this.pointsWallets[type].pageSetting : {
41
+ limit: this.limit, total: 0, offset: 0, tableId: type,
42
+ secondaryArrowsActive: this.secondaryArrowsActive,
43
+ displayPageNumbers: this.displayPageNumbers,
44
+ pageLimitOptions: this.pageLimitOptions || undefined
45
+ };
74
46
  }
75
- }
76
- render() {
77
- var _a, _b;
78
- const pageSetting = this.getPageSettingByType(this.type);
79
- return (h("main", null,
80
- h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl,
81
- // @ts-ignore
82
- targetTranslations: translation, translationUrl: this.translationUrl }),
83
- h("player-elevate-pointcard", { playerAvatarUrl: this.playerAvatarUrl, endpoint: this.endpoint, session: this.session, language: this.language, clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling, translationUrl: this.translationUrl }),
84
- h("div", { class: "PlayerElevatePointsDetaisContainer" }, [
85
- renderTopBar(this.locale, this.type, pageSetting),
86
- renderTabs(this.locale, this.type, (type) => this.switchTab(type)),
87
- ((_a = this.pointsWallets[this.type]) === null || _a === void 0 ? void 0 : _a.isLoadFailed)
88
- ? h("div", { class: 'ReloadMsg' },
89
- this.locale['reloadMsgWhenError'],
90
- h("a", { class: 'Reload', onClick: () => { this.updateWallets(); } }, this.locale['reload']))
91
- : this.loadWallets(renderWallets.bind(this, this.locale, ((_b = this.pointsWallets[this.type]) === null || _b === void 0 ? void 0 : _b.wallets) || [], pageSetting))
92
- ])));
93
- }
94
- walletTypeChangedHandler() {
95
- //do not reload when loaded tab switched back
96
- if (this.pointsWallets[this.type]) {
97
- return;
47
+ loadWallets(renderer) {
48
+ if (!this.pointsWallets[this.type] || this.pointsWallets[this.type].isLoading) {
49
+ return h("general-animation-loading", null);
50
+ }
51
+ else {
52
+ if (this.pointsWallets[this.type].wallets.length === 0) {
53
+ return (h("div", { class: "NoContent" }, this.locale.noContent));
54
+ }
55
+ else {
56
+ return renderer();
57
+ }
58
+ }
98
59
  }
99
- this.updateWallets();
100
- }
101
- async updateWallets() {
102
- let pageSetting = this.pointsWallets[this.type]
103
- ? this.pointsWallets[this.type].pageSetting
104
- : this.getPageSettingByType(this.type);
105
- try {
106
- const walletsDetail = await getWallets(this.endpoint, this.language, this.type, this.session, pageSetting);
107
- const wallets = walletsDetail.data || [];
108
- if (walletsDetail.success) {
109
- pageSetting.total = walletsDetail.total;
110
- this.pointsWallets[this.type] = Object.assign(Object.assign({}, this.pointsWallets[this.type]), { wallets,
111
- pageSetting });
112
- this.pointsWallets = Object.assign({}, this.pointsWallets);
113
- }
114
- else {
115
- console.error(walletsDetail);
116
- this.pointsWallets[this.type].isLoadFailed = true;
117
- //pageSetting.total = 0;
118
- }
60
+ render() {
61
+ var _a, _b;
62
+ const pageSetting = this.getPageSettingByType(this.type);
63
+ return (h("main", { key: 'a92c0b154fec4d3ce8b8e919b9af5ebd80f1d125' }, h("general-styling-wrapper", { key: '5095ab265d71f9e74f6f049b7b0b212ae11bc4da', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl,
64
+ // @ts-ignore
65
+ targetTranslations: translation, translationUrl: this.translationUrl }), h("player-elevate-pointcard", { key: 'c471ddeccbe8e18e15935c9d106bf8c52c80a6fb', playerAvatarUrl: this.playerAvatarUrl, endpoint: this.endpoint, session: this.session, language: this.language, clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling, translationUrl: this.translationUrl }), h("div", { key: '5fa700aaa6e0cffe6d3d9dd8366bf9a95bba3a14', class: "PlayerElevatePointsDetaisContainer" }, [
66
+ renderTopBar(this.locale, this.type, pageSetting),
67
+ renderTabs(this.locale, this.type, (type) => this.switchTab(type)),
68
+ ((_a = this.pointsWallets[this.type]) === null || _a === void 0 ? void 0 : _a.isLoadFailed)
69
+ ? h("div", { class: 'ReloadMsg' }, this.locale['reloadMsgWhenError'], h("a", { class: 'Reload', onClick: () => { this.updateWallets(); } }, this.locale['reload']))
70
+ : this.loadWallets(renderWallets.bind(this, this.locale, ((_b = this.pointsWallets[this.type]) === null || _b === void 0 ? void 0 : _b.wallets) || [], pageSetting))
71
+ ])));
119
72
  }
120
- catch (e) {
121
- console.error(e);
122
- this.pointsWallets[this.type].isLoadFailed = true;
73
+ walletTypeChangedHandler() {
74
+ //do not reload when loaded tab switched back
75
+ if (this.pointsWallets[this.type]) {
76
+ return;
77
+ }
78
+ this.updateWallets();
123
79
  }
124
- }
125
- reloadPageByTypeHandler(event) {
126
- if (event.detail.tableId != this.type) {
127
- return;
80
+ async updateWallets() {
81
+ let pageSetting = this.pointsWallets[this.type]
82
+ ? this.pointsWallets[this.type].pageSetting
83
+ : this.getPageSettingByType(this.type);
84
+ try {
85
+ const walletsDetail = await getWallets(this.endpoint, this.language, this.type, this.session, pageSetting);
86
+ const wallets = walletsDetail.data || [];
87
+ if (walletsDetail.success) {
88
+ pageSetting.total = walletsDetail.total;
89
+ this.pointsWallets[this.type] = Object.assign(Object.assign({}, this.pointsWallets[this.type]), { wallets,
90
+ pageSetting });
91
+ this.pointsWallets = Object.assign({}, this.pointsWallets);
92
+ }
93
+ else {
94
+ console.error(walletsDetail);
95
+ this.pointsWallets[this.type].isLoadFailed = true;
96
+ //pageSetting.total = 0;
97
+ }
98
+ }
99
+ catch (e) {
100
+ console.error(e);
101
+ this.pointsWallets[this.type].isLoadFailed = true;
102
+ }
128
103
  }
129
- //reset all wallets when limit changed
130
- //otherwise fetch new data with new offset when offset changed
131
- if (this.limit != event.detail.limit) {
132
- this.pointsWallets = {};
133
- this.limit = event.detail.limit;
104
+ reloadPageByTypeHandler(event) {
105
+ if (event.detail.tableId != this.type) {
106
+ return;
107
+ }
108
+ //reset all wallets when limit changed
109
+ //otherwise fetch new data with new offset when offset changed
110
+ if (this.limit != event.detail.limit) {
111
+ this.pointsWallets = {};
112
+ this.limit = event.detail.limit;
113
+ }
114
+ else {
115
+ let pageSetting = this.pointsWallets[this.type].pageSetting || this.getPageSettingByType(this.type);
116
+ pageSetting.offset = event.detail.offset;
117
+ this.pointsWallets[this.type].pageSetting = pageSetting;
118
+ }
119
+ this.updateWallets();
134
120
  }
135
- else {
136
- let pageSetting = this.pointsWallets[this.type].pageSetting || this.getPageSettingByType(this.type);
137
- pageSetting.offset = event.detail.offset;
138
- this.pointsWallets[this.type].pageSetting = pageSetting;
121
+ setLimit() {
122
+ try {
123
+ const pageLimits = this.pageLimitOptions.split(',').map((item) => {
124
+ return parseInt(item);
125
+ });
126
+ if (pageLimits.includes(this.limit)) {
127
+ //do nothing
128
+ }
129
+ else {
130
+ this.limit = pageLimits[0];
131
+ }
132
+ }
133
+ catch (e) {
134
+ console.error('Error when parse PageLimitOptions', e);
135
+ this.limit = 10;
136
+ }
139
137
  }
140
- this.updateWallets();
141
- }
142
- setLimit() {
143
- try {
144
- const pageLimits = this.pageLimitOptions.split(',').map((item) => {
145
- return parseInt(item);
146
- });
147
- if (pageLimits.includes(this.limit)) {
148
- //do nothing
149
- }
150
- else {
151
- this.limit = pageLimits[0];
152
- }
138
+ async componentWillLoad() {
139
+ this.setLimit();
140
+ this.updateWallets();
153
141
  }
154
- catch (e) {
155
- console.error('Error when parse PageLimitOptions', e);
156
- this.limit = 10;
142
+ static get is() { return "player-elevate-points-history"; }
143
+ static get encapsulation() { return "shadow"; }
144
+ static get originalStyleUrls() {
145
+ return {
146
+ "$": ["player-elevate-points-history.scss"]
147
+ };
157
148
  }
158
- }
159
- async componentWillLoad() {
160
- this.setLimit();
161
- this.updateWallets();
162
- }
163
- static get is() { return "player-elevate-points-history"; }
164
- static get encapsulation() { return "shadow"; }
165
- static get originalStyleUrls() { return {
166
- "$": ["player-elevate-points-history.scss"]
167
- }; }
168
- static get styleUrls() { return {
169
- "$": ["player-elevate-points-history.css"]
170
- }; }
171
- static get assetsDirs() { return ["static"]; }
172
- static get properties() { return {
173
- "playerAvatarUrl": {
174
- "type": "string",
175
- "mutable": false,
176
- "complexType": {
177
- "original": "string",
178
- "resolved": "string",
179
- "references": {}
180
- },
181
- "required": false,
182
- "optional": false,
183
- "docs": {
184
- "tags": [],
185
- "text": "player avatar url"
186
- },
187
- "attribute": "player-avatar-url",
188
- "reflect": true
189
- },
190
- "session": {
191
- "type": "string",
192
- "mutable": false,
193
- "complexType": {
194
- "original": "string",
195
- "resolved": "string",
196
- "references": {}
197
- },
198
- "required": false,
199
- "optional": false,
200
- "docs": {
201
- "tags": [],
202
- "text": "User Session"
203
- },
204
- "attribute": "session",
205
- "reflect": true
206
- },
207
- "endpoint": {
208
- "type": "string",
209
- "mutable": false,
210
- "complexType": {
211
- "original": "string",
212
- "resolved": "string",
213
- "references": {}
214
- },
215
- "required": false,
216
- "optional": false,
217
- "docs": {
218
- "tags": [],
219
- "text": "Endpoint URL for the source of data"
220
- },
221
- "attribute": "endpoint",
222
- "reflect": true
223
- },
224
- "limit": {
225
- "type": "number",
226
- "mutable": true,
227
- "complexType": {
228
- "original": "number",
229
- "resolved": "number",
230
- "references": {}
231
- },
232
- "required": false,
233
- "optional": false,
234
- "docs": {
235
- "tags": [],
236
- "text": "User Session"
237
- },
238
- "attribute": "limit",
239
- "reflect": true
240
- },
241
- "secondaryArrowsActive": {
242
- "type": "boolean",
243
- "mutable": true,
244
- "complexType": {
245
- "original": "boolean",
246
- "resolved": "boolean",
247
- "references": {}
248
- },
249
- "required": false,
250
- "optional": false,
251
- "docs": {
252
- "tags": [],
253
- "text": "Customize pagination: Activate pagination secondary arrows"
254
- },
255
- "attribute": "secondary-arrows-active",
256
- "reflect": true,
257
- "defaultValue": "true"
258
- },
259
- "displayPageNumbers": {
260
- "type": "boolean",
261
- "mutable": true,
262
- "complexType": {
263
- "original": "boolean",
264
- "resolved": "boolean",
265
- "references": {}
266
- },
267
- "required": false,
268
- "optional": false,
269
- "docs": {
270
- "tags": [],
271
- "text": "Customize pagination: Activate pagination numbered navigation"
272
- },
273
- "attribute": "display-page-numbers",
274
- "reflect": true,
275
- "defaultValue": "false"
276
- },
277
- "pageLimitOptions": {
278
- "type": "string",
279
- "mutable": true,
280
- "complexType": {
281
- "original": "string",
282
- "resolved": "string",
283
- "references": {}
284
- },
285
- "required": false,
286
- "optional": false,
287
- "docs": {
288
- "tags": [],
289
- "text": "Customize page list options, default: 10,25,50"
290
- },
291
- "attribute": "page-limit-options",
292
- "reflect": true,
293
- "defaultValue": "'10,25,50'"
294
- },
295
- "language": {
296
- "type": "string",
297
- "mutable": false,
298
- "complexType": {
299
- "original": "string",
300
- "resolved": "string",
301
- "references": {}
302
- },
303
- "required": false,
304
- "optional": false,
305
- "docs": {
306
- "tags": [],
307
- "text": "Language of the widget"
308
- },
309
- "attribute": "language",
310
- "reflect": true,
311
- "defaultValue": "'en'"
312
- },
313
- "clientStyling": {
314
- "type": "string",
315
- "mutable": false,
316
- "complexType": {
317
- "original": "string",
318
- "resolved": "string",
319
- "references": {}
320
- },
321
- "required": false,
322
- "optional": false,
323
- "docs": {
324
- "tags": [],
325
- "text": "Client custom styling via string"
326
- },
327
- "attribute": "client-styling",
328
- "reflect": true,
329
- "defaultValue": "''"
330
- },
331
- "clientStylingUrl": {
332
- "type": "string",
333
- "mutable": false,
334
- "complexType": {
335
- "original": "string",
336
- "resolved": "string",
337
- "references": {}
338
- },
339
- "required": false,
340
- "optional": false,
341
- "docs": {
342
- "tags": [],
343
- "text": "Client custom styling via url"
344
- },
345
- "attribute": "client-styling-url",
346
- "reflect": true,
347
- "defaultValue": "''"
348
- },
349
- "translationUrl": {
350
- "type": "string",
351
- "mutable": false,
352
- "complexType": {
353
- "original": "string",
354
- "resolved": "string",
355
- "references": {}
356
- },
357
- "required": false,
358
- "optional": false,
359
- "docs": {
360
- "tags": [],
361
- "text": "translation via url"
362
- },
363
- "attribute": "translation-url",
364
- "reflect": true,
365
- "defaultValue": "''"
149
+ static get styleUrls() {
150
+ return {
151
+ "$": ["player-elevate-points-history.css"]
152
+ };
153
+ }
154
+ static get assetsDirs() { return ["static"]; }
155
+ static get properties() {
156
+ return {
157
+ "playerAvatarUrl": {
158
+ "type": "string",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "string",
162
+ "resolved": "string",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": "player avatar url"
170
+ },
171
+ "attribute": "player-avatar-url",
172
+ "reflect": true
173
+ },
174
+ "session": {
175
+ "type": "string",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "string",
179
+ "resolved": "string",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": "User Session"
187
+ },
188
+ "attribute": "session",
189
+ "reflect": true
190
+ },
191
+ "endpoint": {
192
+ "type": "string",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": "Endpoint URL for the source of data"
204
+ },
205
+ "attribute": "endpoint",
206
+ "reflect": true
207
+ },
208
+ "limit": {
209
+ "type": "number",
210
+ "mutable": true,
211
+ "complexType": {
212
+ "original": "number",
213
+ "resolved": "number",
214
+ "references": {}
215
+ },
216
+ "required": false,
217
+ "optional": false,
218
+ "docs": {
219
+ "tags": [],
220
+ "text": "User Session"
221
+ },
222
+ "attribute": "limit",
223
+ "reflect": true
224
+ },
225
+ "secondaryArrowsActive": {
226
+ "type": "boolean",
227
+ "mutable": true,
228
+ "complexType": {
229
+ "original": "boolean",
230
+ "resolved": "boolean",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Customize pagination: Activate pagination secondary arrows"
238
+ },
239
+ "attribute": "secondary-arrows-active",
240
+ "reflect": true,
241
+ "defaultValue": "true"
242
+ },
243
+ "displayPageNumbers": {
244
+ "type": "boolean",
245
+ "mutable": true,
246
+ "complexType": {
247
+ "original": "boolean",
248
+ "resolved": "boolean",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": "Customize pagination: Activate pagination numbered navigation"
256
+ },
257
+ "attribute": "display-page-numbers",
258
+ "reflect": true,
259
+ "defaultValue": "false"
260
+ },
261
+ "pageLimitOptions": {
262
+ "type": "string",
263
+ "mutable": true,
264
+ "complexType": {
265
+ "original": "string",
266
+ "resolved": "string",
267
+ "references": {}
268
+ },
269
+ "required": false,
270
+ "optional": false,
271
+ "docs": {
272
+ "tags": [],
273
+ "text": "Customize page list options, default: 10,25,50"
274
+ },
275
+ "attribute": "page-limit-options",
276
+ "reflect": true,
277
+ "defaultValue": "'10,25,50'"
278
+ },
279
+ "language": {
280
+ "type": "string",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "string",
284
+ "resolved": "string",
285
+ "references": {}
286
+ },
287
+ "required": false,
288
+ "optional": false,
289
+ "docs": {
290
+ "tags": [],
291
+ "text": "Language of the widget"
292
+ },
293
+ "attribute": "language",
294
+ "reflect": true,
295
+ "defaultValue": "'en'"
296
+ },
297
+ "clientStyling": {
298
+ "type": "string",
299
+ "mutable": false,
300
+ "complexType": {
301
+ "original": "string",
302
+ "resolved": "string",
303
+ "references": {}
304
+ },
305
+ "required": false,
306
+ "optional": false,
307
+ "docs": {
308
+ "tags": [],
309
+ "text": "Client custom styling via string"
310
+ },
311
+ "attribute": "client-styling",
312
+ "reflect": true,
313
+ "defaultValue": "''"
314
+ },
315
+ "clientStylingUrl": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "string",
320
+ "resolved": "string",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": false,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": "Client custom styling via url"
328
+ },
329
+ "attribute": "client-styling-url",
330
+ "reflect": true,
331
+ "defaultValue": "''"
332
+ },
333
+ "translationUrl": {
334
+ "type": "string",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "string",
338
+ "resolved": "string",
339
+ "references": {}
340
+ },
341
+ "required": false,
342
+ "optional": false,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": "translation via url"
346
+ },
347
+ "attribute": "translation-url",
348
+ "reflect": true,
349
+ "defaultValue": "''"
350
+ }
351
+ };
352
+ }
353
+ static get states() {
354
+ return {
355
+ "locale": {},
356
+ "type": {},
357
+ "pageSetting": {},
358
+ "pointsWallets": {}
359
+ };
360
+ }
361
+ static get events() {
362
+ return [{
363
+ "method": "paginationReset",
364
+ "name": "paginationReset",
365
+ "bubbles": true,
366
+ "cancelable": true,
367
+ "composed": true,
368
+ "docs": {
369
+ "tags": [],
370
+ "text": ""
371
+ },
372
+ "complexType": {
373
+ "original": "any",
374
+ "resolved": "any",
375
+ "references": {}
376
+ }
377
+ }];
378
+ }
379
+ static get watchers() {
380
+ return [{
381
+ "propName": "type",
382
+ "methodName": "walletTypeChangedHandler"
383
+ }, {
384
+ "propName": "endpoint",
385
+ "methodName": "updateWallets"
386
+ }, {
387
+ "propName": "language",
388
+ "methodName": "updateWallets"
389
+ }, {
390
+ "propName": "session",
391
+ "methodName": "updateWallets"
392
+ }];
393
+ }
394
+ static get listeners() {
395
+ return [{
396
+ "name": "reloadPageByType",
397
+ "method": "reloadPageByTypeHandler",
398
+ "target": undefined,
399
+ "capture": false,
400
+ "passive": false
401
+ }];
366
402
  }
367
- }; }
368
- static get states() { return {
369
- "locale": {},
370
- "type": {},
371
- "pageSetting": {},
372
- "pointsWallets": {}
373
- }; }
374
- static get events() { return [{
375
- "method": "paginationReset",
376
- "name": "paginationReset",
377
- "bubbles": true,
378
- "cancelable": true,
379
- "composed": true,
380
- "docs": {
381
- "tags": [],
382
- "text": ""
383
- },
384
- "complexType": {
385
- "original": "any",
386
- "resolved": "any",
387
- "references": {}
388
- }
389
- }]; }
390
- static get watchers() { return [{
391
- "propName": "type",
392
- "methodName": "walletTypeChangedHandler"
393
- }, {
394
- "propName": "endpoint",
395
- "methodName": "updateWallets"
396
- }, {
397
- "propName": "language",
398
- "methodName": "updateWallets"
399
- }, {
400
- "propName": "session",
401
- "methodName": "updateWallets"
402
- }]; }
403
- static get listeners() { return [{
404
- "name": "reloadPageByType",
405
- "method": "reloadPageByTypeHandler",
406
- "target": undefined,
407
- "capture": false,
408
- "passive": false
409
- }]; }
410
403
  }