@everymatrix/gamification-dropdown 0.7.0 → 0.8.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-0a3a8194.js → gamification-dropdown-0fd9c5b8.js} +24 -11
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +34 -17
- package/dist/cjs/{index-7b4d999d.js → index-c535ed72.js} +244 -140
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-087e5a58.js → player-elevate-card-items-42538012.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +21 -9
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +29 -12
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +35 -10
- package/dist/esm/{gamification-dropdown-456bb56a.js → gamification-dropdown-ae7b7c69.js} +24 -11
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +34 -17
- package/dist/esm/{index-171550cf.js → index-ea7720e4.js} +244 -140
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-2078bd83.js → player-elevate-card-items-9d490a3b.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +21 -9
- package/dist/esm/player-elevate-pointcard.entry.js +29 -12
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -1
- package/dist/gamification-dropdown/p-10486e5b.entry.js +1 -0
- package/dist/gamification-dropdown/{p-dda9c7be.js → p-21507480.js} +1 -1
- package/dist/gamification-dropdown/p-3f7623db.js +2 -0
- package/dist/gamification-dropdown/p-422d11f7.entry.js +1 -0
- package/dist/gamification-dropdown/p-4b1d42b5.entry.js +1 -0
- package/dist/gamification-dropdown/p-c5998a81.js +1 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
- package/package.json +2 -2
- package/dist/gamification-dropdown/p-7ecb6fdf.js +0 -2
- package/dist/gamification-dropdown/p-8426f967.entry.js +0 -1
- package/dist/gamification-dropdown/p-881e823a.entry.js +0 -1
- package/dist/gamification-dropdown/p-a2f51157.entry.js +0 -1
- package/dist/gamification-dropdown/p-cfb00725.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
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-0fd9c5b8.js');
|
|
6
|
+
require('./index-c535ed72.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-c535ed72.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-c535ed72.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-42538012.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,20 +11,32 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
|
11
11
|
const PlayerElevateCard = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The style that widget shows,available value: Dark, Light
|
|
16
|
+
* Default: Dark
|
|
17
|
+
*/
|
|
15
18
|
this.theme = 'Dark';
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Widget Language to show
|
|
21
|
+
*/
|
|
18
22
|
this.language = 'en';
|
|
19
|
-
|
|
23
|
+
/**
|
|
24
|
+
* datePattern
|
|
25
|
+
*/
|
|
20
26
|
this.dateFormat = 'yyyy-MM-dd';
|
|
27
|
+
/**
|
|
28
|
+
* Client custom styling via inline styles
|
|
29
|
+
*/
|
|
21
30
|
this.clientStyling = '';
|
|
31
|
+
/**
|
|
32
|
+
* Client custom styling via url
|
|
33
|
+
*/
|
|
22
34
|
this.clientStylingUrl = '';
|
|
35
|
+
/**
|
|
36
|
+
* Translation via url
|
|
37
|
+
*/
|
|
23
38
|
this.translationUrl = '';
|
|
24
|
-
this.pointExpireString = undefined;
|
|
25
39
|
this.playerLevelFlag = 0;
|
|
26
|
-
this.playerElevateLevel = undefined;
|
|
27
|
-
this.elevateWalletTotal = undefined;
|
|
28
40
|
}
|
|
29
41
|
onSessionOrEndpointChange() {
|
|
30
42
|
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-c535ed72.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-42538012.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,23 +11,40 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
|
11
11
|
const PlayerElevatePointcard = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The style that widget shows,available value: Dark, Light
|
|
16
|
+
* Default: Dark
|
|
17
|
+
*/
|
|
16
18
|
this.theme = 'Dark';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Widget Language to show
|
|
21
|
+
*/
|
|
19
22
|
this.language = 'en';
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Check if the card used in points details widget, default: 'earningRule'
|
|
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
|
+
*/
|
|
22
30
|
this.buttonType = 'earningRule';
|
|
31
|
+
/**
|
|
32
|
+
* datePattern
|
|
33
|
+
*/
|
|
23
34
|
this.dateFormat = 'yyyy-MM-dd';
|
|
35
|
+
/**
|
|
36
|
+
* Client custom styling via inline styles
|
|
37
|
+
*/
|
|
24
38
|
this.clientStyling = '';
|
|
39
|
+
/**
|
|
40
|
+
* Client custom styling via url
|
|
41
|
+
*/
|
|
25
42
|
this.clientStylingUrl = '';
|
|
43
|
+
/**
|
|
44
|
+
* Translation via url
|
|
45
|
+
*/
|
|
26
46
|
this.translationUrl = '';
|
|
27
|
-
this.
|
|
28
|
-
this.playerElevateLevel = undefined;
|
|
29
|
-
this.elevateWalletTotal = undefined;
|
|
30
|
-
this.elevateSPTotal = undefined;
|
|
47
|
+
this.isPointDetailCard = this.buttonType === 'earningRule';
|
|
31
48
|
}
|
|
32
49
|
onSessionOrEndpointChange() {
|
|
33
50
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -3,6 +3,29 @@ 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;
|
|
6
29
|
this.setClientStyling = () => {
|
|
7
30
|
let sheet = document.createElement('style');
|
|
8
31
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -42,16 +65,6 @@ export class GamificationDropdown {
|
|
|
42
65
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
43
66
|
}
|
|
44
67
|
};
|
|
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;
|
|
55
68
|
}
|
|
56
69
|
handleNewTranslations() {
|
|
57
70
|
this.isLoading = true;
|
|
@@ -143,6 +156,8 @@ export class GamificationDropdown {
|
|
|
143
156
|
"tags": [],
|
|
144
157
|
"text": "Endpoint URL for the source of data"
|
|
145
158
|
},
|
|
159
|
+
"getter": false,
|
|
160
|
+
"setter": false,
|
|
146
161
|
"attribute": "endpoint",
|
|
147
162
|
"reflect": true
|
|
148
163
|
},
|
|
@@ -160,6 +175,8 @@ export class GamificationDropdown {
|
|
|
160
175
|
"tags": [],
|
|
161
176
|
"text": "Language of the widget"
|
|
162
177
|
},
|
|
178
|
+
"getter": false,
|
|
179
|
+
"setter": false,
|
|
163
180
|
"attribute": "language",
|
|
164
181
|
"reflect": true,
|
|
165
182
|
"defaultValue": "'en'"
|
|
@@ -178,6 +195,8 @@ export class GamificationDropdown {
|
|
|
178
195
|
"tags": [],
|
|
179
196
|
"text": "Session of the user"
|
|
180
197
|
},
|
|
198
|
+
"getter": false,
|
|
199
|
+
"setter": false,
|
|
181
200
|
"attribute": "session",
|
|
182
201
|
"reflect": true,
|
|
183
202
|
"defaultValue": "''"
|
|
@@ -196,6 +215,8 @@ export class GamificationDropdown {
|
|
|
196
215
|
"tags": [],
|
|
197
216
|
"text": "Client custom styling via string"
|
|
198
217
|
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
199
220
|
"attribute": "client-styling",
|
|
200
221
|
"reflect": true,
|
|
201
222
|
"defaultValue": "''"
|
|
@@ -214,6 +235,8 @@ export class GamificationDropdown {
|
|
|
214
235
|
"tags": [],
|
|
215
236
|
"text": "Client custom styling via url"
|
|
216
237
|
},
|
|
238
|
+
"getter": false,
|
|
239
|
+
"setter": false,
|
|
217
240
|
"attribute": "client-styling-url",
|
|
218
241
|
"reflect": true,
|
|
219
242
|
"defaultValue": "''"
|
|
@@ -232,6 +255,8 @@ export class GamificationDropdown {
|
|
|
232
255
|
"tags": [],
|
|
233
256
|
"text": "Translations via URL"
|
|
234
257
|
},
|
|
258
|
+
"getter": false,
|
|
259
|
+
"setter": false,
|
|
235
260
|
"attribute": "translation-url",
|
|
236
261
|
"reflect": true,
|
|
237
262
|
"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-ea7720e4.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
let TRANSLATIONS = {
|
|
@@ -49,6 +49,29 @@ 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;
|
|
52
75
|
this.setClientStyling = () => {
|
|
53
76
|
let sheet = document.createElement('style');
|
|
54
77
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -88,16 +111,6 @@ const GamificationDropdown = class {
|
|
|
88
111
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
89
112
|
}
|
|
90
113
|
};
|
|
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;
|
|
101
114
|
}
|
|
102
115
|
handleNewTranslations() {
|
|
103
116
|
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-ea7720e4.js';
|
|
2
|
+
export { s as setNonce } from './index-ea7720e4.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.25.1 | 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-ae7b7c69.js';
|
|
2
|
+
import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-ea7720e4.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-9d490a3b.js';
|
|
4
4
|
|
|
5
5
|
const mergeTranslations = (url, target) => {
|
|
6
6
|
return new Promise((resolve) => {
|
|
@@ -24,6 +24,18 @@ 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 = '';
|
|
27
39
|
this.stylingAppends = false;
|
|
28
40
|
this.setClientStyling = () => {
|
|
29
41
|
let sheet = document.createElement('style');
|
|
@@ -45,10 +57,6 @@ const GeneralStylingWrapper = class {
|
|
|
45
57
|
console.log('error ', err);
|
|
46
58
|
});
|
|
47
59
|
};
|
|
48
|
-
this.clientStyling = '';
|
|
49
|
-
this.clientStylingUrl = '';
|
|
50
|
-
this.translationUrl = '';
|
|
51
|
-
this.targetTranslations = undefined;
|
|
52
60
|
}
|
|
53
61
|
componentDidRender() {
|
|
54
62
|
// start custom styling area
|
|
@@ -366,9 +374,6 @@ const PlayerElevateCardData = class {
|
|
|
366
374
|
constructor(hostRef) {
|
|
367
375
|
registerInstance(this, hostRef);
|
|
368
376
|
this.playerElevateLeveLoaded = createEvent(this, "playerElevateLeveLoaded", 7);
|
|
369
|
-
this.params = undefined;
|
|
370
|
-
this.playerElevateLevel = undefined;
|
|
371
|
-
this.pointExpireString = undefined;
|
|
372
377
|
}
|
|
373
378
|
handleWindowResizs() {
|
|
374
379
|
this.initLevelProgressbar();
|
|
@@ -536,19 +541,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
536
541
|
const PlayerElevateLoyaltycard = class {
|
|
537
542
|
constructor(hostRef) {
|
|
538
543
|
registerInstance(this, hostRef);
|
|
539
|
-
|
|
544
|
+
/**
|
|
545
|
+
* The style that widget shows,available value: Dark, Light
|
|
546
|
+
* Default: Dark
|
|
547
|
+
*/
|
|
540
548
|
this.theme = 'Dark';
|
|
541
|
-
|
|
542
|
-
|
|
549
|
+
/**
|
|
550
|
+
* Widget Language to show
|
|
551
|
+
*/
|
|
543
552
|
this.language = 'en';
|
|
544
|
-
|
|
553
|
+
/**
|
|
554
|
+
* datePattern
|
|
555
|
+
*/
|
|
545
556
|
this.dateFormat = 'yyyy-MM-dd';
|
|
557
|
+
/**
|
|
558
|
+
* Client custom styling via inline styles
|
|
559
|
+
*/
|
|
546
560
|
this.clientStyling = '';
|
|
561
|
+
/**
|
|
562
|
+
* Client custom styling via url
|
|
563
|
+
*/
|
|
547
564
|
this.clientStylingUrl = '';
|
|
565
|
+
/**
|
|
566
|
+
* Translation via url
|
|
567
|
+
*/
|
|
548
568
|
this.translationUrl = '';
|
|
549
|
-
this.pointExpireString = undefined;
|
|
550
|
-
this.playerElevateLevel = undefined;
|
|
551
|
-
this.elevateWalletTotal = undefined;
|
|
552
569
|
}
|
|
553
570
|
onSessionOrEndpointChange() {
|
|
554
571
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|