@everymatrix/gamification-dropdown 1.54.11 → 1.55.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.
- package/dist/cjs/{gamification-dropdown-756a43c2.js → gamification-dropdown-0a3a8194.js} +11 -24
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +17 -34
- package/dist/cjs/{index-547b95bf.js → index-7b4d999d.js} +140 -250
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-705345d8.js → player-elevate-card-items-087e5a58.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +9 -21
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +12 -29
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +10 -35
- package/dist/esm/{gamification-dropdown-370424de.js → gamification-dropdown-456bb56a.js} +11 -24
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +17 -34
- package/dist/esm/{index-1ed44842.js → index-171550cf.js} +140 -250
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-4e46b4c8.js → player-elevate-card-items-2078bd83.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +9 -21
- package/dist/esm/player-elevate-pointcard.entry.js +12 -29
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -1
- package/dist/gamification-dropdown/p-7ecb6fdf.js +2 -0
- package/dist/gamification-dropdown/p-8426f967.entry.js +1 -0
- package/dist/gamification-dropdown/p-881e823a.entry.js +1 -0
- package/dist/gamification-dropdown/p-a2f51157.entry.js +1 -0
- package/dist/gamification-dropdown/p-cfb00725.js +1 -0
- package/dist/gamification-dropdown/{p-e4f069bf.js → p-dda9c7be.js} +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/gamification-dropdown/p-17c6de19.entry.js +0 -1
- package/dist/gamification-dropdown/p-1c00c3b4.entry.js +0 -1
- package/dist/gamification-dropdown/p-5cfad4de.entry.js +0 -1
- package/dist/gamification-dropdown/p-6854f53c.js +0 -2
- package/dist/gamification-dropdown/p-7fd023ad.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const gamificationDropdown = require('./gamification-dropdown-
|
|
6
|
-
require('./index-
|
|
5
|
+
const gamificationDropdown = require('./gamification-dropdown-0a3a8194.js');
|
|
6
|
+
require('./index-7b4d999d.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-7b4d999d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-7b4d999d.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-087e5a58.js');
|
|
7
7
|
|
|
8
8
|
const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emw--color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";
|
|
9
9
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -11,32 +11,20 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
|
11
11
|
const PlayerElevateCard = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
15
|
-
* The style that widget shows,available value: Dark, Light
|
|
16
|
-
* Default: Dark
|
|
17
|
-
*/
|
|
14
|
+
this.endpoint = undefined;
|
|
18
15
|
this.theme = 'Dark';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
16
|
+
this.session = undefined;
|
|
17
|
+
this.playerAvatarUrl = undefined;
|
|
22
18
|
this.language = 'en';
|
|
23
|
-
|
|
24
|
-
* datePattern
|
|
25
|
-
*/
|
|
19
|
+
this.playerName = undefined;
|
|
26
20
|
this.dateFormat = 'yyyy-MM-dd';
|
|
27
|
-
/**
|
|
28
|
-
* Client custom styling via inline styles
|
|
29
|
-
*/
|
|
30
21
|
this.clientStyling = '';
|
|
31
|
-
/**
|
|
32
|
-
* Client custom styling via url
|
|
33
|
-
*/
|
|
34
22
|
this.clientStylingUrl = '';
|
|
35
|
-
/**
|
|
36
|
-
* Translation via url
|
|
37
|
-
*/
|
|
38
23
|
this.translationUrl = '';
|
|
24
|
+
this.pointExpireString = undefined;
|
|
39
25
|
this.playerLevelFlag = 0;
|
|
26
|
+
this.playerElevateLevel = undefined;
|
|
27
|
+
this.elevateWalletTotal = undefined;
|
|
40
28
|
}
|
|
41
29
|
onSessionOrEndpointChange() {
|
|
42
30
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-7b4d999d.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-087e5a58.js');
|
|
7
7
|
|
|
8
8
|
const playerElevatePointcardCss = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";
|
|
9
9
|
const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
@@ -11,40 +11,23 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
|
11
11
|
const PlayerElevatePointcard = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* Default: Dark
|
|
17
|
-
*/
|
|
14
|
+
this.isPointDetailCard = this.buttonType === 'earningRule';
|
|
15
|
+
this.endpoint = undefined;
|
|
18
16
|
this.theme = 'Dark';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
17
|
+
this.session = undefined;
|
|
18
|
+
this.playerAvatarUrl = undefined;
|
|
22
19
|
this.language = 'en';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* value: 'details'/'earningRule'
|
|
26
|
-
* It effected the button in card
|
|
27
|
-
* 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
|
|
28
|
-
* 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
|
|
29
|
-
*/
|
|
20
|
+
this.playerName = undefined;
|
|
21
|
+
this.cardTitle = undefined;
|
|
30
22
|
this.buttonType = 'earningRule';
|
|
31
|
-
/**
|
|
32
|
-
* datePattern
|
|
33
|
-
*/
|
|
34
23
|
this.dateFormat = 'yyyy-MM-dd';
|
|
35
|
-
/**
|
|
36
|
-
* Client custom styling via inline styles
|
|
37
|
-
*/
|
|
38
24
|
this.clientStyling = '';
|
|
39
|
-
/**
|
|
40
|
-
* Client custom styling via url
|
|
41
|
-
*/
|
|
42
25
|
this.clientStylingUrl = '';
|
|
43
|
-
/**
|
|
44
|
-
* Translation via url
|
|
45
|
-
*/
|
|
46
26
|
this.translationUrl = '';
|
|
47
|
-
this.
|
|
27
|
+
this.pointExpireString = undefined;
|
|
28
|
+
this.playerElevateLevel = undefined;
|
|
29
|
+
this.elevateWalletTotal = undefined;
|
|
30
|
+
this.elevateSPTotal = undefined;
|
|
48
31
|
}
|
|
49
32
|
onSessionOrEndpointChange() {
|
|
50
33
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -3,29 +3,6 @@ import { getTranslations, translate } from "../../utils/locale.utils";
|
|
|
3
3
|
import "../../../../../player-elevate-card/dist/types/index";
|
|
4
4
|
export class GamificationDropdown {
|
|
5
5
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Language of the widget
|
|
8
|
-
*/
|
|
9
|
-
this.language = 'en';
|
|
10
|
-
/**
|
|
11
|
-
* Session of the user
|
|
12
|
-
*/
|
|
13
|
-
this.session = '';
|
|
14
|
-
/**
|
|
15
|
-
* Client custom styling via string
|
|
16
|
-
*/
|
|
17
|
-
this.clientStyling = '';
|
|
18
|
-
/**
|
|
19
|
-
* Client custom styling via url
|
|
20
|
-
*/
|
|
21
|
-
this.clientStylingUrl = '';
|
|
22
|
-
/**
|
|
23
|
-
* Translations via URL
|
|
24
|
-
*/
|
|
25
|
-
this.translationUrl = '';
|
|
26
|
-
this.isOpen = false;
|
|
27
|
-
this.isLoading = false;
|
|
28
|
-
this.stylingAppends = false;
|
|
29
6
|
this.setClientStyling = () => {
|
|
30
7
|
let sheet = document.createElement('style');
|
|
31
8
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -65,6 +42,16 @@ export class GamificationDropdown {
|
|
|
65
42
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
66
43
|
}
|
|
67
44
|
};
|
|
45
|
+
this.endpoint = undefined;
|
|
46
|
+
this.language = 'en';
|
|
47
|
+
this.session = '';
|
|
48
|
+
this.clientStyling = '';
|
|
49
|
+
this.clientStylingUrl = '';
|
|
50
|
+
this.translationUrl = '';
|
|
51
|
+
this.isOpen = false;
|
|
52
|
+
this.isLoading = false;
|
|
53
|
+
this.stylingAppends = false;
|
|
54
|
+
this.loyaltyPoints = undefined;
|
|
68
55
|
}
|
|
69
56
|
handleNewTranslations() {
|
|
70
57
|
this.isLoading = true;
|
|
@@ -156,8 +143,6 @@ export class GamificationDropdown {
|
|
|
156
143
|
"tags": [],
|
|
157
144
|
"text": "Endpoint URL for the source of data"
|
|
158
145
|
},
|
|
159
|
-
"getter": false,
|
|
160
|
-
"setter": false,
|
|
161
146
|
"attribute": "endpoint",
|
|
162
147
|
"reflect": true
|
|
163
148
|
},
|
|
@@ -175,8 +160,6 @@ export class GamificationDropdown {
|
|
|
175
160
|
"tags": [],
|
|
176
161
|
"text": "Language of the widget"
|
|
177
162
|
},
|
|
178
|
-
"getter": false,
|
|
179
|
-
"setter": false,
|
|
180
163
|
"attribute": "language",
|
|
181
164
|
"reflect": true,
|
|
182
165
|
"defaultValue": "'en'"
|
|
@@ -195,8 +178,6 @@ export class GamificationDropdown {
|
|
|
195
178
|
"tags": [],
|
|
196
179
|
"text": "Session of the user"
|
|
197
180
|
},
|
|
198
|
-
"getter": false,
|
|
199
|
-
"setter": false,
|
|
200
181
|
"attribute": "session",
|
|
201
182
|
"reflect": true,
|
|
202
183
|
"defaultValue": "''"
|
|
@@ -215,8 +196,6 @@ export class GamificationDropdown {
|
|
|
215
196
|
"tags": [],
|
|
216
197
|
"text": "Client custom styling via string"
|
|
217
198
|
},
|
|
218
|
-
"getter": false,
|
|
219
|
-
"setter": false,
|
|
220
199
|
"attribute": "client-styling",
|
|
221
200
|
"reflect": true,
|
|
222
201
|
"defaultValue": "''"
|
|
@@ -235,8 +214,6 @@ export class GamificationDropdown {
|
|
|
235
214
|
"tags": [],
|
|
236
215
|
"text": "Client custom styling via url"
|
|
237
216
|
},
|
|
238
|
-
"getter": false,
|
|
239
|
-
"setter": false,
|
|
240
217
|
"attribute": "client-styling-url",
|
|
241
218
|
"reflect": true,
|
|
242
219
|
"defaultValue": "''"
|
|
@@ -255,8 +232,6 @@ export class GamificationDropdown {
|
|
|
255
232
|
"tags": [],
|
|
256
233
|
"text": "Translations via URL"
|
|
257
234
|
},
|
|
258
|
-
"getter": false,
|
|
259
|
-
"setter": false,
|
|
260
235
|
"attribute": "translation-url",
|
|
261
236
|
"reflect": true,
|
|
262
237
|
"defaultValue": "''"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-171550cf.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
let TRANSLATIONS = {
|
|
@@ -49,29 +49,6 @@ const GamificationDropdownStyle0 = gamificationDropdownCss;
|
|
|
49
49
|
const GamificationDropdown = class {
|
|
50
50
|
constructor(hostRef) {
|
|
51
51
|
registerInstance(this, hostRef);
|
|
52
|
-
/**
|
|
53
|
-
* Language of the widget
|
|
54
|
-
*/
|
|
55
|
-
this.language = 'en';
|
|
56
|
-
/**
|
|
57
|
-
* Session of the user
|
|
58
|
-
*/
|
|
59
|
-
this.session = '';
|
|
60
|
-
/**
|
|
61
|
-
* Client custom styling via string
|
|
62
|
-
*/
|
|
63
|
-
this.clientStyling = '';
|
|
64
|
-
/**
|
|
65
|
-
* Client custom styling via url
|
|
66
|
-
*/
|
|
67
|
-
this.clientStylingUrl = '';
|
|
68
|
-
/**
|
|
69
|
-
* Translations via URL
|
|
70
|
-
*/
|
|
71
|
-
this.translationUrl = '';
|
|
72
|
-
this.isOpen = false;
|
|
73
|
-
this.isLoading = false;
|
|
74
|
-
this.stylingAppends = false;
|
|
75
52
|
this.setClientStyling = () => {
|
|
76
53
|
let sheet = document.createElement('style');
|
|
77
54
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -111,6 +88,16 @@ const GamificationDropdown = class {
|
|
|
111
88
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
112
89
|
}
|
|
113
90
|
};
|
|
91
|
+
this.endpoint = undefined;
|
|
92
|
+
this.language = 'en';
|
|
93
|
+
this.session = '';
|
|
94
|
+
this.clientStyling = '';
|
|
95
|
+
this.clientStylingUrl = '';
|
|
96
|
+
this.translationUrl = '';
|
|
97
|
+
this.isOpen = false;
|
|
98
|
+
this.isLoading = false;
|
|
99
|
+
this.stylingAppends = false;
|
|
100
|
+
this.loyaltyPoints = undefined;
|
|
114
101
|
}
|
|
115
102
|
handleNewTranslations() {
|
|
116
103
|
this.isLoading = true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-171550cf.js';
|
|
2
|
+
export { s as setNonce } from './index-171550cf.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { G as gamification_dropdown } from './gamification-dropdown-
|
|
2
|
-
import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-
|
|
3
|
-
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, a as translateWithParams, T as TRANSLATIONS, P as PlayerAvatar, b as PlayerElevateLoyaltyLevel, c as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-
|
|
1
|
+
export { G as gamification_dropdown } from './gamification-dropdown-456bb56a.js';
|
|
2
|
+
import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-171550cf.js';
|
|
3
|
+
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, a as translateWithParams, T as TRANSLATIONS, P as PlayerAvatar, b as PlayerElevateLoyaltyLevel, c as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-2078bd83.js';
|
|
4
4
|
|
|
5
5
|
const mergeTranslations = (url, target) => {
|
|
6
6
|
return new Promise((resolve) => {
|
|
@@ -24,18 +24,6 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
24
24
|
const GeneralStylingWrapper = class {
|
|
25
25
|
constructor(hostRef) {
|
|
26
26
|
registerInstance(this, hostRef);
|
|
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
27
|
this.stylingAppends = false;
|
|
40
28
|
this.setClientStyling = () => {
|
|
41
29
|
let sheet = document.createElement('style');
|
|
@@ -57,6 +45,10 @@ const GeneralStylingWrapper = class {
|
|
|
57
45
|
console.log('error ', err);
|
|
58
46
|
});
|
|
59
47
|
};
|
|
48
|
+
this.clientStyling = '';
|
|
49
|
+
this.clientStylingUrl = '';
|
|
50
|
+
this.translationUrl = '';
|
|
51
|
+
this.targetTranslations = undefined;
|
|
60
52
|
}
|
|
61
53
|
componentDidRender() {
|
|
62
54
|
// start custom styling area
|
|
@@ -374,6 +366,9 @@ const PlayerElevateCardData = class {
|
|
|
374
366
|
constructor(hostRef) {
|
|
375
367
|
registerInstance(this, hostRef);
|
|
376
368
|
this.playerElevateLeveLoaded = createEvent(this, "playerElevateLeveLoaded", 7);
|
|
369
|
+
this.params = undefined;
|
|
370
|
+
this.playerElevateLevel = undefined;
|
|
371
|
+
this.pointExpireString = undefined;
|
|
377
372
|
}
|
|
378
373
|
handleWindowResizs() {
|
|
379
374
|
this.initLevelProgressbar();
|
|
@@ -541,31 +536,19 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
541
536
|
const PlayerElevateLoyaltycard = class {
|
|
542
537
|
constructor(hostRef) {
|
|
543
538
|
registerInstance(this, hostRef);
|
|
544
|
-
|
|
545
|
-
* The style that widget shows,available value: Dark, Light
|
|
546
|
-
* Default: Dark
|
|
547
|
-
*/
|
|
539
|
+
this.endpoint = undefined;
|
|
548
540
|
this.theme = 'Dark';
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
*/
|
|
541
|
+
this.session = undefined;
|
|
542
|
+
this.playerAvatarUrl = undefined;
|
|
552
543
|
this.language = 'en';
|
|
553
|
-
|
|
554
|
-
* datePattern
|
|
555
|
-
*/
|
|
544
|
+
this.playerName = undefined;
|
|
556
545
|
this.dateFormat = 'yyyy-MM-dd';
|
|
557
|
-
/**
|
|
558
|
-
* Client custom styling via inline styles
|
|
559
|
-
*/
|
|
560
546
|
this.clientStyling = '';
|
|
561
|
-
/**
|
|
562
|
-
* Client custom styling via url
|
|
563
|
-
*/
|
|
564
547
|
this.clientStylingUrl = '';
|
|
565
|
-
/**
|
|
566
|
-
* Translation via url
|
|
567
|
-
*/
|
|
568
548
|
this.translationUrl = '';
|
|
549
|
+
this.pointExpireString = undefined;
|
|
550
|
+
this.playerElevateLevel = undefined;
|
|
551
|
+
this.elevateWalletTotal = undefined;
|
|
569
552
|
}
|
|
570
553
|
onSessionOrEndpointChange() {
|
|
571
554
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|