@everymatrix/player-elevate-card 1.55.0 → 1.56.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/general-styling-wrapper_5.cjs.entry.js +79 -33
- package/dist/cjs/{index-fcb2d8d9.js → index-e1db0305.js} +246 -138
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/player-elevate-card.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-elevate-card/player-elevate-card.js +39 -7
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +2 -5
- package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.js +59 -8
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +51 -10
- package/dist/esm/general-styling-wrapper_5.entry.js +79 -33
- package/dist/esm/{index-94328d47.js → index-29ae3408.js} +246 -138
- package/dist/esm/loader.js +3 -3
- package/dist/esm/player-elevate-card.js +4 -4
- package/dist/player-elevate-card/p-17e5148c.js +2 -0
- package/dist/player-elevate-card/p-33df4709.entry.js +1 -0
- package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
- 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
- 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
- package/dist/types/components/player-elevate-loyaltycard/player-elevate-loyaltycard.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/player-elevate-card/p-08c2b497.entry.js +0 -1
- package/dist/player-elevate-card/p-8dfd18ff.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -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-e1db0305.js');
|
|
6
6
|
|
|
7
7
|
const mergeTranslations = (url, target) => {
|
|
8
8
|
return new Promise((resolve) => {
|
|
@@ -26,6 +26,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
26
26
|
const GeneralStylingWrapper = class {
|
|
27
27
|
constructor(hostRef) {
|
|
28
28
|
index.registerInstance(this, hostRef);
|
|
29
|
+
/**
|
|
30
|
+
* Client custom styling via inline styles
|
|
31
|
+
*/
|
|
32
|
+
this.clientStyling = '';
|
|
33
|
+
/**
|
|
34
|
+
* Client custom styling via url
|
|
35
|
+
*/
|
|
36
|
+
this.clientStylingUrl = '';
|
|
37
|
+
/**
|
|
38
|
+
* Translation via url
|
|
39
|
+
*/
|
|
40
|
+
this.translationUrl = '';
|
|
29
41
|
this.stylingAppends = false;
|
|
30
42
|
this.setClientStyling = () => {
|
|
31
43
|
let sheet = document.createElement('style');
|
|
@@ -47,10 +59,6 @@ const GeneralStylingWrapper = class {
|
|
|
47
59
|
console.log('error ', err);
|
|
48
60
|
});
|
|
49
61
|
};
|
|
50
|
-
this.clientStyling = '';
|
|
51
|
-
this.clientStylingUrl = '';
|
|
52
|
-
this.translationUrl = '';
|
|
53
|
-
this.targetTranslations = undefined;
|
|
54
62
|
}
|
|
55
63
|
componentDidRender() {
|
|
56
64
|
// start custom styling area
|
|
@@ -2481,20 +2489,32 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
|
2481
2489
|
const PlayerElevateCard = class {
|
|
2482
2490
|
constructor(hostRef) {
|
|
2483
2491
|
index.registerInstance(this, hostRef);
|
|
2484
|
-
|
|
2492
|
+
/**
|
|
2493
|
+
* The style that widget shows,available value: Dark, Light
|
|
2494
|
+
* Default: Dark
|
|
2495
|
+
*/
|
|
2485
2496
|
this.theme = 'Dark';
|
|
2486
|
-
|
|
2487
|
-
|
|
2497
|
+
/**
|
|
2498
|
+
* Widget Language to show
|
|
2499
|
+
*/
|
|
2488
2500
|
this.language = 'en';
|
|
2489
|
-
|
|
2501
|
+
/**
|
|
2502
|
+
* datePattern
|
|
2503
|
+
*/
|
|
2490
2504
|
this.dateFormat = 'yyyy-MM-dd';
|
|
2505
|
+
/**
|
|
2506
|
+
* Client custom styling via inline styles
|
|
2507
|
+
*/
|
|
2491
2508
|
this.clientStyling = '';
|
|
2509
|
+
/**
|
|
2510
|
+
* Client custom styling via url
|
|
2511
|
+
*/
|
|
2492
2512
|
this.clientStylingUrl = '';
|
|
2513
|
+
/**
|
|
2514
|
+
* Translation via url
|
|
2515
|
+
*/
|
|
2493
2516
|
this.translationUrl = '';
|
|
2494
|
-
this.pointExpireString = undefined;
|
|
2495
2517
|
this.playerLevelFlag = 0;
|
|
2496
|
-
this.playerElevateLevel = undefined;
|
|
2497
|
-
this.elevateWalletTotal = undefined;
|
|
2498
2518
|
}
|
|
2499
2519
|
onSessionOrEndpointChange() {
|
|
2500
2520
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -2831,9 +2851,6 @@ const PlayerElevateCardData = class {
|
|
|
2831
2851
|
constructor(hostRef) {
|
|
2832
2852
|
index.registerInstance(this, hostRef);
|
|
2833
2853
|
this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
|
|
2834
|
-
this.params = undefined;
|
|
2835
|
-
this.playerElevateLevel = undefined;
|
|
2836
|
-
this.pointExpireString = undefined;
|
|
2837
2854
|
}
|
|
2838
2855
|
handleWindowResizs() {
|
|
2839
2856
|
this.initLevelProgressbar();
|
|
@@ -3001,19 +3018,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
3001
3018
|
const PlayerElevateLoyaltycard = class {
|
|
3002
3019
|
constructor(hostRef) {
|
|
3003
3020
|
index.registerInstance(this, hostRef);
|
|
3004
|
-
|
|
3021
|
+
/**
|
|
3022
|
+
* The style that widget shows,available value: Dark, Light
|
|
3023
|
+
* Default: Dark
|
|
3024
|
+
*/
|
|
3005
3025
|
this.theme = 'Dark';
|
|
3006
|
-
|
|
3007
|
-
|
|
3026
|
+
/**
|
|
3027
|
+
* Widget Language to show
|
|
3028
|
+
*/
|
|
3008
3029
|
this.language = 'en';
|
|
3009
|
-
|
|
3030
|
+
/**
|
|
3031
|
+
* datePattern
|
|
3032
|
+
*/
|
|
3010
3033
|
this.dateFormat = 'yyyy-MM-dd';
|
|
3034
|
+
/**
|
|
3035
|
+
* Client custom styling via inline styles
|
|
3036
|
+
*/
|
|
3011
3037
|
this.clientStyling = '';
|
|
3038
|
+
/**
|
|
3039
|
+
* Client custom styling via url
|
|
3040
|
+
*/
|
|
3012
3041
|
this.clientStylingUrl = '';
|
|
3042
|
+
/**
|
|
3043
|
+
* Translation via url
|
|
3044
|
+
*/
|
|
3013
3045
|
this.translationUrl = '';
|
|
3014
|
-
this.pointExpireString = undefined;
|
|
3015
|
-
this.playerElevateLevel = undefined;
|
|
3016
|
-
this.elevateWalletTotal = undefined;
|
|
3017
3046
|
}
|
|
3018
3047
|
onSessionOrEndpointChange() {
|
|
3019
3048
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -3063,7 +3092,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
3063
3092
|
render() {
|
|
3064
3093
|
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
3065
3094
|
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
3066
|
-
return (index.h("div", { key: '
|
|
3095
|
+
return (index.h("div", { key: '39295a651da66747a20554699bba5f96b8ad5c35', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '78c34fe054fc2459f8af3354116cd21a68ce01be', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'b53e4b59d4ee55a2f567efa09afab3d72969e6e4', params: this.paramProxy }), index.h("div", { key: '1f3e504440bab2df3a181058fad7149c85c48c14', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '5c104f5ba1a018219c6ed5f6e50af99b035a0344' }, index.h("div", { key: 'bd94591e6ab9298ab7c769fa48efaf314dc1a63b', class: "PlayerImg" }, index.h(PlayerAvatar, { key: '928849ce86d8c7a483eba7850efc83f8149bae43', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '37192c9b8502eb3c7d93914369df2d784c17e9f7', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(PlayerElevateLoyaltyLevel, { key: '2684a177f4bb1053c4587fd4158666fb35ca23f4', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '173a37c63868f2d900c12af3ffc2d9a4a57550e4', class: 'PointsRange' }, index.h(PlayerPoints, { key: 'a7111154f7dc547e0b05c70d24508bdd75c5d882', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(PlayerPoints, { key: 'ad31574e7db81a7ecb7a06b28b1d4968cbcab93e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(PlayerLoyaltyProcess, { key: '88ddfdb326edfb1de9519da6b3d0e5b514725e27' }), index.h("div", { key: 'b9c79555a8001bd2c754d7573df04016da235c84', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '02da725060c9db4a8c1c2e8bad3426894d7f8f2c', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
|
|
3067
3096
|
}
|
|
3068
3097
|
static get watchers() { return {
|
|
3069
3098
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -3079,23 +3108,40 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
|
3079
3108
|
const PlayerElevatePointcard = class {
|
|
3080
3109
|
constructor(hostRef) {
|
|
3081
3110
|
index.registerInstance(this, hostRef);
|
|
3082
|
-
|
|
3083
|
-
|
|
3111
|
+
/**
|
|
3112
|
+
* The style that widget shows,available value: Dark, Light
|
|
3113
|
+
* Default: Dark
|
|
3114
|
+
*/
|
|
3084
3115
|
this.theme = 'Dark';
|
|
3085
|
-
|
|
3086
|
-
|
|
3116
|
+
/**
|
|
3117
|
+
* Widget Language to show
|
|
3118
|
+
*/
|
|
3087
3119
|
this.language = 'en';
|
|
3088
|
-
|
|
3089
|
-
|
|
3120
|
+
/**
|
|
3121
|
+
* Check if the card used in points details widget, default: 'earningRule'
|
|
3122
|
+
* value: 'details'/'earningRule'
|
|
3123
|
+
* It effected the button in card
|
|
3124
|
+
* 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
|
|
3125
|
+
* 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
|
|
3126
|
+
*/
|
|
3090
3127
|
this.buttonType = 'earningRule';
|
|
3128
|
+
/**
|
|
3129
|
+
* datePattern
|
|
3130
|
+
*/
|
|
3091
3131
|
this.dateFormat = 'yyyy-MM-dd';
|
|
3132
|
+
/**
|
|
3133
|
+
* Client custom styling via inline styles
|
|
3134
|
+
*/
|
|
3092
3135
|
this.clientStyling = '';
|
|
3136
|
+
/**
|
|
3137
|
+
* Client custom styling via url
|
|
3138
|
+
*/
|
|
3093
3139
|
this.clientStylingUrl = '';
|
|
3140
|
+
/**
|
|
3141
|
+
* Translation via url
|
|
3142
|
+
*/
|
|
3094
3143
|
this.translationUrl = '';
|
|
3095
|
-
this.
|
|
3096
|
-
this.playerElevateLevel = undefined;
|
|
3097
|
-
this.elevateWalletTotal = undefined;
|
|
3098
|
-
this.elevateSPTotal = undefined;
|
|
3144
|
+
this.isPointDetailCard = this.buttonType === 'earningRule';
|
|
3099
3145
|
}
|
|
3100
3146
|
onSessionOrEndpointChange() {
|
|
3101
3147
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|