@everymatrix/player-elevate-card 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/general-styling-wrapper_5.cjs.entry.js +649 -785
  3. package/dist/cjs/index-b1cf5517.js +1634 -0
  4. package/dist/cjs/loader.cjs.js +7 -13
  5. package/dist/cjs/player-elevate-card.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +6 -6
  7. package/dist/collection/components/player-elevate-card/index.js +1 -0
  8. package/dist/collection/components/player-elevate-card/player-elevate-card-items.js +17 -38
  9. package/dist/collection/components/player-elevate-card/player-elevate-card.css +0 -1
  10. package/dist/collection/components/player-elevate-card/player-elevate-card.js +271 -287
  11. package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.css +1 -1
  12. package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +224 -215
  13. package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.css +0 -7
  14. package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.js +277 -297
  15. package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +309 -329
  16. package/dist/collection/utils/locale.utils.js +133 -133
  17. package/dist/collection/utils/utils.js +49 -49
  18. package/dist/esm/app-globals-0f993ce5.js +3 -0
  19. package/dist/esm/general-styling-wrapper_5.entry.js +649 -785
  20. package/dist/esm/index-cd7a4beb.js +1604 -0
  21. package/dist/esm/loader.js +7 -13
  22. package/dist/esm/player-elevate-card.js +14 -11
  23. package/dist/player-elevate-card/p-37a424ba.entry.js +1 -0
  24. package/dist/player-elevate-card/p-ba534fa2.js +2 -0
  25. package/dist/player-elevate-card/p-e1255160.js +1 -0
  26. package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +12 -27
  29. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/player-elevate-card/index.d.ts +1 -0
  32. package/dist/types/components/player-elevate-card/player-elevate-card-items.d.ts +6 -6
  33. package/dist/types/components/player-elevate-card/player-elevate-card.d.ts +51 -51
  34. package/dist/types/components/player-elevate-card-data/player-elevate-card-data.d.ts +19 -20
  35. package/dist/types/components/player-elevate-loyaltycard/player-elevate-loyaltycard.d.ts +51 -51
  36. package/dist/types/components/player-elevate-pointcard/player-elevate-pointcard.d.ts +64 -64
  37. package/dist/types/components.d.ts +16 -1
  38. package/dist/types/models/player-elevate.d.ts +26 -26
  39. package/dist/types/stencil-public-runtime.d.ts +142 -33
  40. package/dist/types/utils/locale.utils.d.ts +6 -6
  41. package/loader/cdn.js +1 -3
  42. package/loader/index.cjs.js +1 -3
  43. package/loader/index.d.ts +13 -1
  44. package/loader/index.es2017.js +1 -3
  45. package/loader/index.js +1 -3
  46. package/loader/package.json +1 -0
  47. package/package.json +8 -6
  48. package/dist/cjs/index-b6d0684c.js +0 -1674
  49. package/dist/components/general-styling-wrapper.js +0 -6
  50. package/dist/components/general-styling-wrapper2.js +0 -103
  51. package/dist/components/index.d.ts +0 -26
  52. package/dist/components/index.js +0 -1
  53. package/dist/components/player-elevate-card-data.d.ts +0 -11
  54. package/dist/components/player-elevate-card-data.js +0 -6
  55. package/dist/components/player-elevate-card-data2.js +0 -635
  56. package/dist/components/player-elevate-card-items.js +0 -2250
  57. package/dist/components/player-elevate-card.d.ts +0 -11
  58. package/dist/components/player-elevate-card.js +0 -126
  59. package/dist/components/player-elevate-loyaltycard.d.ts +0 -11
  60. package/dist/components/player-elevate-loyaltycard.js +0 -132
  61. package/dist/components/player-elevate-pointcard.d.ts +0 -11
  62. package/dist/components/player-elevate-pointcard.js +0 -135
  63. package/dist/components/static/button-default.svg +0 -42
  64. package/dist/components/static/button-disabled.svg +0 -4
  65. package/dist/components/static/button-hover.svg +0 -4
  66. package/dist/components/static/button-level.svg +0 -27
  67. package/dist/components/static/button-pressed.svg +0 -18
  68. package/dist/components/static/button-redeem.svg +0 -36
  69. package/dist/components/static/card-ground-over.png +0 -0
  70. package/dist/components/static/card-ground-over.svg +0 -903
  71. package/dist/components/static/card-ground.png +0 -0
  72. package/dist/components/static/card-ground.svg +0 -34
  73. package/dist/components/static/info.svg +0 -4
  74. package/dist/components/static/level-badge.png +0 -0
  75. package/dist/components/static/level-percent.svg +0 -80
  76. package/dist/components/static/tips-info.svg +0 -21
  77. package/dist/components/static/user.svg +0 -3
  78. package/dist/esm/index-6beb1563.js +0 -1645
  79. package/dist/esm/polyfills/core-js.js +0 -11
  80. package/dist/esm/polyfills/css-shim.js +0 -1
  81. package/dist/esm/polyfills/dom.js +0 -79
  82. package/dist/esm/polyfills/es5-html-element.js +0 -1
  83. package/dist/esm/polyfills/index.js +0 -34
  84. package/dist/esm/polyfills/system.js +0 -6
  85. package/dist/player-elevate-card/p-10bf1b0e.entry.js +0 -1
  86. package/dist/player-elevate-card/p-523c2803.js +0 -1
  87. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/player-elevate-card/.stencil/packages/player-elevate-card/stencil.config.d.ts +0 -2
@@ -1,336 +1,316 @@
1
- import { Component, Fragment, getAssetPath, h, Listen, Prop, State, Watch } from '@stencil/core';
2
- import { translate, TRANSLATIONS } from '../../utils/locale.utils';
3
- import { PlayerAvatar, PlayerPoints, } from '../player-elevate-card/player-elevate-card-items';
1
+ import { Fragment, getAssetPath, h } from "@stencil/core";
2
+ import { translate, TRANSLATIONS } from "../../utils/locale.utils";
3
+ import { PlayerAvatar, PlayerPoints, } from "../player-elevate-card/player-elevate-card-items";
4
4
  export class PlayerElevatePointcard {
5
- constructor() {
6
- /**
7
- * The style that widget shows,available value: Dark, Light
8
- * Default: Dark
9
- */
10
- this.theme = 'Dark';
11
- /**
12
- * Widget Language to show
13
- */
14
- this.language = 'en';
15
- /**
16
- * Check if the card used in points details widget, default: 'earningRule'
17
- * value: 'details'/'earningRule'
18
- * It effected the button in card
19
- * 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
20
- * 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
21
- */
22
- this.buttonType = 'earningRule';
23
- /**
24
- * datePattern
25
- */
26
- this.dateFormat = 'yyyy-MM-dd';
27
- /**
28
- * Client custom styling via inline styles
29
- */
30
- this.clientStyling = '';
31
- /**
32
- * Client custom styling via url
33
- */
34
- this.clientStylingUrl = '';
35
- /**
36
- * Translation via url
37
- */
38
- this.translationUrl = '';
39
- this.isPointDetailCard = this.buttonType === 'earningRule';
40
- }
41
- onSessionOrEndpointChange() {
42
- this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
43
- }
44
- playerElevateLeveLoadedHandler(event) {
45
- if (!event.detail) {
46
- return;
5
+ constructor() {
6
+ this.isPointDetailCard = this.buttonType === 'earningRule';
7
+ this.endpoint = undefined;
8
+ this.theme = 'Dark';
9
+ this.session = undefined;
10
+ this.playerAvatarUrl = undefined;
11
+ this.language = 'en';
12
+ this.playerName = undefined;
13
+ this.cardTitle = undefined;
14
+ this.buttonType = 'earningRule';
15
+ this.dateFormat = 'yyyy-MM-dd';
16
+ this.clientStyling = '';
17
+ this.clientStylingUrl = '';
18
+ this.translationUrl = '';
19
+ this.pointExpireString = undefined;
20
+ this.playerElevateLevel = undefined;
21
+ this.elevateWalletTotal = undefined;
22
+ this.elevateSPTotal = undefined;
47
23
  }
48
- if (event.detail['elevateLevelWalletTotal']) {
49
- this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
50
- this.elevateSPTotal = event.detail['loyaltyWalletTotal'];
24
+ onSessionOrEndpointChange() {
25
+ this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
51
26
  }
52
- if (event.detail['elevateLevel']) {
53
- this.playerElevateLevel = event.detail['elevateLevel'];
27
+ playerElevateLeveLoadedHandler(event) {
28
+ if (!event.detail) {
29
+ return;
30
+ }
31
+ if (event.detail['elevateLevelWalletTotal']) {
32
+ this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
33
+ this.elevateSPTotal = event.detail['loyaltyWalletTotal'];
34
+ }
35
+ if (event.detail['elevateLevel']) {
36
+ this.playerElevateLevel = event.detail['elevateLevel'];
37
+ }
38
+ if (event.detail['pointExpireString']) {
39
+ this.pointExpireString = event.detail.pointExpireString;
40
+ }
54
41
  }
55
- if (event.detail['pointExpireString']) {
56
- this.pointExpireString = event.detail.pointExpireString;
42
+ onDetailsClick() {
43
+ window.postMessage({ type: this.isPointDetailCard ? 'BEEPointRulesClicked' : 'BEEDetailsClicked',
44
+ path: this.isPointDetailCard ? 'player-elevate-level' : 'player-elevate-point-details' }, window.location.href);
57
45
  }
58
- }
59
- onDetailsClick() {
60
- window.postMessage({ type: this.isPointDetailCard ? 'BEEPointRulesClicked' : 'BEEDetailsClicked',
61
- path: this.isPointDetailCard ? 'player-elevate-level' : 'player-elevate-point-details' }, window.location.href);
62
- }
63
- componentWillLoad() {
64
- this.paramProxy = {
65
- endpoint: this.endpoint,
66
- session: this.session,
67
- language: this.language,
68
- };
69
- }
70
- render() {
71
- const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
72
- const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
73
- return (h("div", { class: `ElevateCardWrapper ${this.theme}` },
74
- h("div", { class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } },
75
- h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }),
76
- h("player-elevate-card-data", { params: this.paramProxy }),
77
- h("div", { class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } },
78
- h("div", { class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, null,
79
- h("div", { class: "PlayerImg" },
80
- h(PlayerAvatar, { onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })),
81
- h("div", { class: `LevelInfo ${this.playerElevateLevel.name}` },
82
- h("div", { class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : translate('spendablePoints')),
83
- h("div", { class: 'PointsTxt SPPoints' },
84
- h(PlayerPoints, { spendablePoints: this.playerElevateLevel.spendablePoints, language: this.language }),
85
- h("a", { class: "TC", onClick: () => {
86
- this.onDetailsClick();
87
- } }, translate('termAndConditions', this.language))),
88
- this.pointExpireString && (h("div", { class: 'ExpirationPoints' },
89
- this.pointExpireString,
90
- " "))))))))));
91
- }
92
- static get is() { return "player-elevate-pointcard"; }
93
- static get encapsulation() { return "shadow"; }
94
- static get originalStyleUrls() { return {
95
- "$": ["player-elevate-pointcard.scss"]
96
- }; }
97
- static get styleUrls() { return {
98
- "$": ["player-elevate-pointcard.css"]
99
- }; }
100
- static get properties() { return {
101
- "endpoint": {
102
- "type": "string",
103
- "mutable": false,
104
- "complexType": {
105
- "original": "string",
106
- "resolved": "string",
107
- "references": {}
108
- },
109
- "required": true,
110
- "optional": false,
111
- "docs": {
112
- "tags": [],
113
- "text": "The NWA endpoint"
114
- },
115
- "attribute": "endpoint",
116
- "reflect": true
117
- },
118
- "theme": {
119
- "type": "string",
120
- "mutable": false,
121
- "complexType": {
122
- "original": "string",
123
- "resolved": "string",
124
- "references": {}
125
- },
126
- "required": false,
127
- "optional": false,
128
- "docs": {
129
- "tags": [],
130
- "text": "The style that widget shows,available value: Dark, Light\nDefault: Dark"
131
- },
132
- "attribute": "theme",
133
- "reflect": true,
134
- "defaultValue": "'Dark'"
135
- },
136
- "session": {
137
- "type": "string",
138
- "mutable": false,
139
- "complexType": {
140
- "original": "string",
141
- "resolved": "string",
142
- "references": {}
143
- },
144
- "required": true,
145
- "optional": false,
146
- "docs": {
147
- "tags": [],
148
- "text": "The NWA session for the logged-in user"
149
- },
150
- "attribute": "session",
151
- "reflect": true
152
- },
153
- "playerAvatarUrl": {
154
- "type": "string",
155
- "mutable": false,
156
- "complexType": {
157
- "original": "string",
158
- "resolved": "string",
159
- "references": {}
160
- },
161
- "required": false,
162
- "optional": false,
163
- "docs": {
164
- "tags": [],
165
- "text": "Widget, player avatar url"
166
- },
167
- "attribute": "player-avatar-url",
168
- "reflect": true
169
- },
170
- "language": {
171
- "type": "string",
172
- "mutable": false,
173
- "complexType": {
174
- "original": "string",
175
- "resolved": "string",
176
- "references": {}
177
- },
178
- "required": false,
179
- "optional": false,
180
- "docs": {
181
- "tags": [],
182
- "text": "Widget Language to show"
183
- },
184
- "attribute": "language",
185
- "reflect": true,
186
- "defaultValue": "'en'"
187
- },
188
- "playerName": {
189
- "type": "string",
190
- "mutable": false,
191
- "complexType": {
192
- "original": "string",
193
- "resolved": "string",
194
- "references": {}
195
- },
196
- "required": false,
197
- "optional": false,
198
- "docs": {
199
- "tags": [],
200
- "text": "The first name"
201
- },
202
- "attribute": "player-name",
203
- "reflect": true
204
- },
205
- "cardTitle": {
206
- "type": "string",
207
- "mutable": false,
208
- "complexType": {
209
- "original": "string",
210
- "resolved": "string",
211
- "references": {}
212
- },
213
- "required": false,
214
- "optional": false,
215
- "docs": {
216
- "tags": [],
217
- "text": "The title displayed in card, default: translation of 'spendablePoints'"
218
- },
219
- "attribute": "card-title",
220
- "reflect": true
221
- },
222
- "buttonType": {
223
- "type": "string",
224
- "mutable": false,
225
- "complexType": {
226
- "original": "string",
227
- "resolved": "string",
228
- "references": {}
229
- },
230
- "required": false,
231
- "optional": false,
232
- "docs": {
233
- "tags": [],
234
- "text": "Check if the card used in points details widget, default: 'earningRule'\nvalue: 'details'/'earningRule'\nIt effected the button in card\n'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked\n'details': button text, 'details', post 'BEEDetailsClicked' when clicked"
235
- },
236
- "attribute": "button-type",
237
- "reflect": true,
238
- "defaultValue": "'earningRule'"
239
- },
240
- "dateFormat": {
241
- "type": "string",
242
- "mutable": false,
243
- "complexType": {
244
- "original": "string",
245
- "resolved": "string",
246
- "references": {}
247
- },
248
- "required": false,
249
- "optional": false,
250
- "docs": {
251
- "tags": [],
252
- "text": "datePattern"
253
- },
254
- "attribute": "date-format",
255
- "reflect": true,
256
- "defaultValue": "'yyyy-MM-dd'"
257
- },
258
- "clientStyling": {
259
- "type": "string",
260
- "mutable": false,
261
- "complexType": {
262
- "original": "string",
263
- "resolved": "string",
264
- "references": {}
265
- },
266
- "required": false,
267
- "optional": false,
268
- "docs": {
269
- "tags": [],
270
- "text": "Client custom styling via inline styles"
271
- },
272
- "attribute": "client-styling",
273
- "reflect": true,
274
- "defaultValue": "''"
275
- },
276
- "clientStylingUrl": {
277
- "type": "string",
278
- "mutable": false,
279
- "complexType": {
280
- "original": "string",
281
- "resolved": "string",
282
- "references": {}
283
- },
284
- "required": false,
285
- "optional": false,
286
- "docs": {
287
- "tags": [],
288
- "text": "Client custom styling via url"
289
- },
290
- "attribute": "client-styling-url",
291
- "reflect": true,
292
- "defaultValue": "''"
293
- },
294
- "translationUrl": {
295
- "type": "string",
296
- "mutable": false,
297
- "complexType": {
298
- "original": "string",
299
- "resolved": "string",
300
- "references": {}
301
- },
302
- "required": false,
303
- "optional": false,
304
- "docs": {
305
- "tags": [],
306
- "text": "Translation via url"
307
- },
308
- "attribute": "translation-url",
309
- "reflect": true,
310
- "defaultValue": "''"
46
+ componentWillLoad() {
47
+ this.paramProxy = {
48
+ endpoint: this.endpoint,
49
+ session: this.session,
50
+ language: this.language,
51
+ };
52
+ }
53
+ render() {
54
+ const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
55
+ const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
56
+ return (h("div", { key: '13461fc9cf8b777337a539c15da4bb2781f5a837', class: `ElevateCardWrapper ${this.theme}` }, h("div", { key: '526e72c0ada871f74ba4a07f0a125bc25840c09c', class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { key: '95e358ceb8fa3c247660f7ca15a4684b132874be', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { key: '24c765d743446ac597a9dcc9cd22515e7e39e6db', params: this.paramProxy }), h("div", { key: '309db4bbfc244a7fb97827774d9d4383109ca0d7', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { key: '9d5614ded2f73b505e60900675a7d95b3cfbcbc6', class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, { key: '9a17e809083e61aad19f7ffef5d5ee5885ae8b4d' }, h("div", { key: '47068df3c0070ee2785b0d0201b08766fe0d71e8', class: "PlayerImg" }, h(PlayerAvatar, { key: '40115f8b190d871c85f9531fbf0bafb8fbd739e2', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { key: '278cd70c23ecb48655e90810af570ce5366d13d5', class: `LevelInfo ${this.playerElevateLevel.name}` }, h("div", { key: 'ce682ff881c5b12ed0b736ffcc67ad07b3713999', class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : translate('spendablePoints')), h("div", { key: 'eeebc5c468cf6e3d566f708fd47a19956ad9defe', class: 'PointsTxt SPPoints' }, h(PlayerPoints, { key: 'ad58990b7fa789cf2d5c524191447196e97c8a16', spendablePoints: this.playerElevateLevel.spendablePoints, language: this.language }), h("a", { key: '0dbdd6cd84e1cb43dac4485f4e3eec3130d6c65c', class: "TC", onClick: () => {
57
+ this.onDetailsClick();
58
+ } }, translate('termAndConditions', this.language))), this.pointExpireString && (h("div", { key: '45c3267d390995fabe34974913adf97b112cf8c2', class: 'ExpirationPoints' }, this.pointExpireString, " "))))))))));
59
+ }
60
+ static get is() { return "player-elevate-pointcard"; }
61
+ static get encapsulation() { return "shadow"; }
62
+ static get originalStyleUrls() {
63
+ return {
64
+ "$": ["player-elevate-pointcard.scss"]
65
+ };
66
+ }
67
+ static get styleUrls() {
68
+ return {
69
+ "$": ["player-elevate-pointcard.css"]
70
+ };
71
+ }
72
+ static get properties() {
73
+ return {
74
+ "endpoint": {
75
+ "type": "string",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "string",
79
+ "resolved": "string",
80
+ "references": {}
81
+ },
82
+ "required": true,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "The NWA endpoint"
87
+ },
88
+ "attribute": "endpoint",
89
+ "reflect": true
90
+ },
91
+ "theme": {
92
+ "type": "string",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "string",
96
+ "resolved": "string",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": "The style that widget shows,available value: Dark, Light\nDefault: Dark"
104
+ },
105
+ "attribute": "theme",
106
+ "reflect": true,
107
+ "defaultValue": "'Dark'"
108
+ },
109
+ "session": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": true,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "The NWA session for the logged-in user"
122
+ },
123
+ "attribute": "session",
124
+ "reflect": true
125
+ },
126
+ "playerAvatarUrl": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "string",
131
+ "resolved": "string",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "Widget, player avatar url"
139
+ },
140
+ "attribute": "player-avatar-url",
141
+ "reflect": true
142
+ },
143
+ "language": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "string",
148
+ "resolved": "string",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": "Widget Language to show"
156
+ },
157
+ "attribute": "language",
158
+ "reflect": true,
159
+ "defaultValue": "'en'"
160
+ },
161
+ "playerName": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "The first name"
174
+ },
175
+ "attribute": "player-name",
176
+ "reflect": true
177
+ },
178
+ "cardTitle": {
179
+ "type": "string",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "string",
183
+ "resolved": "string",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": false,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "The title displayed in card, default: translation of 'spendablePoints'"
191
+ },
192
+ "attribute": "card-title",
193
+ "reflect": true
194
+ },
195
+ "buttonType": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Check if the card used in points details widget, default: 'earningRule'\nvalue: 'details'/'earningRule'\nIt effected the button in card\n'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked\n'details': button text, 'details', post 'BEEDetailsClicked' when clicked"
208
+ },
209
+ "attribute": "button-type",
210
+ "reflect": true,
211
+ "defaultValue": "'earningRule'"
212
+ },
213
+ "dateFormat": {
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": "datePattern"
226
+ },
227
+ "attribute": "date-format",
228
+ "reflect": true,
229
+ "defaultValue": "'yyyy-MM-dd'"
230
+ },
231
+ "clientStyling": {
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": "Client custom styling via inline styles"
244
+ },
245
+ "attribute": "client-styling",
246
+ "reflect": true,
247
+ "defaultValue": "''"
248
+ },
249
+ "clientStylingUrl": {
250
+ "type": "string",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "string",
254
+ "resolved": "string",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "Client custom styling via url"
262
+ },
263
+ "attribute": "client-styling-url",
264
+ "reflect": true,
265
+ "defaultValue": "''"
266
+ },
267
+ "translationUrl": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": "Translation via url"
280
+ },
281
+ "attribute": "translation-url",
282
+ "reflect": true,
283
+ "defaultValue": "''"
284
+ }
285
+ };
286
+ }
287
+ static get states() {
288
+ return {
289
+ "pointExpireString": {},
290
+ "playerElevateLevel": {},
291
+ "elevateWalletTotal": {},
292
+ "elevateSPTotal": {}
293
+ };
294
+ }
295
+ static get watchers() {
296
+ return [{
297
+ "propName": "session",
298
+ "methodName": "onSessionOrEndpointChange"
299
+ }, {
300
+ "propName": "endpoint",
301
+ "methodName": "onSessionOrEndpointChange"
302
+ }, {
303
+ "propName": "language",
304
+ "methodName": "onSessionOrEndpointChange"
305
+ }];
306
+ }
307
+ static get listeners() {
308
+ return [{
309
+ "name": "playerElevateLeveLoaded",
310
+ "method": "playerElevateLeveLoadedHandler",
311
+ "target": undefined,
312
+ "capture": false,
313
+ "passive": false
314
+ }];
311
315
  }
312
- }; }
313
- static get states() { return {
314
- "pointExpireString": {},
315
- "playerElevateLevel": {},
316
- "elevateWalletTotal": {},
317
- "elevateSPTotal": {}
318
- }; }
319
- static get watchers() { return [{
320
- "propName": "session",
321
- "methodName": "onSessionOrEndpointChange"
322
- }, {
323
- "propName": "endpoint",
324
- "methodName": "onSessionOrEndpointChange"
325
- }, {
326
- "propName": "language",
327
- "methodName": "onSessionOrEndpointChange"
328
- }]; }
329
- static get listeners() { return [{
330
- "name": "playerElevateLeveLoaded",
331
- "method": "playerElevateLeveLoadedHandler",
332
- "target": undefined,
333
- "capture": false,
334
- "passive": false
335
- }]; }
336
316
  }