@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, a as getAssetPath, F as Fragment, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement, a as getAssetPath, F as Fragment, c as createEvent } from './index-29ae3408.js';
|
|
2
2
|
|
|
3
3
|
const mergeTranslations = (url, target) => {
|
|
4
4
|
return new Promise((resolve) => {
|
|
@@ -22,6 +22,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
22
22
|
const GeneralStylingWrapper = class {
|
|
23
23
|
constructor(hostRef) {
|
|
24
24
|
registerInstance(this, hostRef);
|
|
25
|
+
/**
|
|
26
|
+
* Client custom styling via inline styles
|
|
27
|
+
*/
|
|
28
|
+
this.clientStyling = '';
|
|
29
|
+
/**
|
|
30
|
+
* Client custom styling via url
|
|
31
|
+
*/
|
|
32
|
+
this.clientStylingUrl = '';
|
|
33
|
+
/**
|
|
34
|
+
* Translation via url
|
|
35
|
+
*/
|
|
36
|
+
this.translationUrl = '';
|
|
25
37
|
this.stylingAppends = false;
|
|
26
38
|
this.setClientStyling = () => {
|
|
27
39
|
let sheet = document.createElement('style');
|
|
@@ -43,10 +55,6 @@ const GeneralStylingWrapper = class {
|
|
|
43
55
|
console.log('error ', err);
|
|
44
56
|
});
|
|
45
57
|
};
|
|
46
|
-
this.clientStyling = '';
|
|
47
|
-
this.clientStylingUrl = '';
|
|
48
|
-
this.translationUrl = '';
|
|
49
|
-
this.targetTranslations = undefined;
|
|
50
58
|
}
|
|
51
59
|
componentDidRender() {
|
|
52
60
|
// start custom styling area
|
|
@@ -2477,20 +2485,32 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
|
2477
2485
|
const PlayerElevateCard = class {
|
|
2478
2486
|
constructor(hostRef) {
|
|
2479
2487
|
registerInstance(this, hostRef);
|
|
2480
|
-
|
|
2488
|
+
/**
|
|
2489
|
+
* The style that widget shows,available value: Dark, Light
|
|
2490
|
+
* Default: Dark
|
|
2491
|
+
*/
|
|
2481
2492
|
this.theme = 'Dark';
|
|
2482
|
-
|
|
2483
|
-
|
|
2493
|
+
/**
|
|
2494
|
+
* Widget Language to show
|
|
2495
|
+
*/
|
|
2484
2496
|
this.language = 'en';
|
|
2485
|
-
|
|
2497
|
+
/**
|
|
2498
|
+
* datePattern
|
|
2499
|
+
*/
|
|
2486
2500
|
this.dateFormat = 'yyyy-MM-dd';
|
|
2501
|
+
/**
|
|
2502
|
+
* Client custom styling via inline styles
|
|
2503
|
+
*/
|
|
2487
2504
|
this.clientStyling = '';
|
|
2505
|
+
/**
|
|
2506
|
+
* Client custom styling via url
|
|
2507
|
+
*/
|
|
2488
2508
|
this.clientStylingUrl = '';
|
|
2509
|
+
/**
|
|
2510
|
+
* Translation via url
|
|
2511
|
+
*/
|
|
2489
2512
|
this.translationUrl = '';
|
|
2490
|
-
this.pointExpireString = undefined;
|
|
2491
2513
|
this.playerLevelFlag = 0;
|
|
2492
|
-
this.playerElevateLevel = undefined;
|
|
2493
|
-
this.elevateWalletTotal = undefined;
|
|
2494
2514
|
}
|
|
2495
2515
|
onSessionOrEndpointChange() {
|
|
2496
2516
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -2827,9 +2847,6 @@ const PlayerElevateCardData = class {
|
|
|
2827
2847
|
constructor(hostRef) {
|
|
2828
2848
|
registerInstance(this, hostRef);
|
|
2829
2849
|
this.playerElevateLeveLoaded = createEvent(this, "playerElevateLeveLoaded", 7);
|
|
2830
|
-
this.params = undefined;
|
|
2831
|
-
this.playerElevateLevel = undefined;
|
|
2832
|
-
this.pointExpireString = undefined;
|
|
2833
2850
|
}
|
|
2834
2851
|
handleWindowResizs() {
|
|
2835
2852
|
this.initLevelProgressbar();
|
|
@@ -2997,19 +3014,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
2997
3014
|
const PlayerElevateLoyaltycard = class {
|
|
2998
3015
|
constructor(hostRef) {
|
|
2999
3016
|
registerInstance(this, hostRef);
|
|
3000
|
-
|
|
3017
|
+
/**
|
|
3018
|
+
* The style that widget shows,available value: Dark, Light
|
|
3019
|
+
* Default: Dark
|
|
3020
|
+
*/
|
|
3001
3021
|
this.theme = 'Dark';
|
|
3002
|
-
|
|
3003
|
-
|
|
3022
|
+
/**
|
|
3023
|
+
* Widget Language to show
|
|
3024
|
+
*/
|
|
3004
3025
|
this.language = 'en';
|
|
3005
|
-
|
|
3026
|
+
/**
|
|
3027
|
+
* datePattern
|
|
3028
|
+
*/
|
|
3006
3029
|
this.dateFormat = 'yyyy-MM-dd';
|
|
3030
|
+
/**
|
|
3031
|
+
* Client custom styling via inline styles
|
|
3032
|
+
*/
|
|
3007
3033
|
this.clientStyling = '';
|
|
3034
|
+
/**
|
|
3035
|
+
* Client custom styling via url
|
|
3036
|
+
*/
|
|
3008
3037
|
this.clientStylingUrl = '';
|
|
3038
|
+
/**
|
|
3039
|
+
* Translation via url
|
|
3040
|
+
*/
|
|
3009
3041
|
this.translationUrl = '';
|
|
3010
|
-
this.pointExpireString = undefined;
|
|
3011
|
-
this.playerElevateLevel = undefined;
|
|
3012
|
-
this.elevateWalletTotal = undefined;
|
|
3013
3042
|
}
|
|
3014
3043
|
onSessionOrEndpointChange() {
|
|
3015
3044
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -3059,7 +3088,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
3059
3088
|
render() {
|
|
3060
3089
|
const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
|
|
3061
3090
|
const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
|
|
3062
|
-
return (h("div", { key: '
|
|
3091
|
+
return (h("div", { key: '39295a651da66747a20554699bba5f96b8ad5c35', class: `ElevateCardWrapper ${this.theme}` }, h("div", { key: '78c34fe054fc2459f8af3354116cd21a68ce01be', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { key: 'be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { key: 'b53e4b59d4ee55a2f567efa09afab3d72969e6e4', params: this.paramProxy }), h("div", { key: '1f3e504440bab2df3a181058fad7149c85c48c14', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { key: 'a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1', class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, { key: '5c104f5ba1a018219c6ed5f6e50af99b035a0344' }, h("div", { key: 'bd94591e6ab9298ab7c769fa48efaf314dc1a63b', class: "PlayerImg" }, h(PlayerAvatar, { key: '928849ce86d8c7a483eba7850efc83f8149bae43', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { key: '37192c9b8502eb3c7d93914369df2d784c17e9f7', class: `LevelInfo ${this.playerElevateLevel.name}` }, h(PlayerElevateLoyaltyLevel, { key: '2684a177f4bb1053c4587fd4158666fb35ca23f4', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h("div", { key: '173a37c63868f2d900c12af3ffc2d9a4a57550e4', class: 'PointsRange' }, h(PlayerPoints, { key: 'a7111154f7dc547e0b05c70d24508bdd75c5d882', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), h(PlayerPoints, { key: 'ad31574e7db81a7ecb7a06b28b1d4968cbcab93e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), h(PlayerLoyaltyProcess, { key: '88ddfdb326edfb1de9519da6b3d0e5b514725e27' }), h("div", { key: 'b9c79555a8001bd2c754d7573df04016da235c84', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (h("div", { key: '02da725060c9db4a8c1c2e8bad3426894d7f8f2c', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
|
|
3063
3092
|
}
|
|
3064
3093
|
static get watchers() { return {
|
|
3065
3094
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -3075,23 +3104,40 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
|
3075
3104
|
const PlayerElevatePointcard = class {
|
|
3076
3105
|
constructor(hostRef) {
|
|
3077
3106
|
registerInstance(this, hostRef);
|
|
3078
|
-
|
|
3079
|
-
|
|
3107
|
+
/**
|
|
3108
|
+
* The style that widget shows,available value: Dark, Light
|
|
3109
|
+
* Default: Dark
|
|
3110
|
+
*/
|
|
3080
3111
|
this.theme = 'Dark';
|
|
3081
|
-
|
|
3082
|
-
|
|
3112
|
+
/**
|
|
3113
|
+
* Widget Language to show
|
|
3114
|
+
*/
|
|
3083
3115
|
this.language = 'en';
|
|
3084
|
-
|
|
3085
|
-
|
|
3116
|
+
/**
|
|
3117
|
+
* Check if the card used in points details widget, default: 'earningRule'
|
|
3118
|
+
* value: 'details'/'earningRule'
|
|
3119
|
+
* It effected the button in card
|
|
3120
|
+
* 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
|
|
3121
|
+
* 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
|
|
3122
|
+
*/
|
|
3086
3123
|
this.buttonType = 'earningRule';
|
|
3124
|
+
/**
|
|
3125
|
+
* datePattern
|
|
3126
|
+
*/
|
|
3087
3127
|
this.dateFormat = 'yyyy-MM-dd';
|
|
3128
|
+
/**
|
|
3129
|
+
* Client custom styling via inline styles
|
|
3130
|
+
*/
|
|
3088
3131
|
this.clientStyling = '';
|
|
3132
|
+
/**
|
|
3133
|
+
* Client custom styling via url
|
|
3134
|
+
*/
|
|
3089
3135
|
this.clientStylingUrl = '';
|
|
3136
|
+
/**
|
|
3137
|
+
* Translation via url
|
|
3138
|
+
*/
|
|
3090
3139
|
this.translationUrl = '';
|
|
3091
|
-
this.
|
|
3092
|
-
this.playerElevateLevel = undefined;
|
|
3093
|
-
this.elevateWalletTotal = undefined;
|
|
3094
|
-
this.elevateSPTotal = undefined;
|
|
3140
|
+
this.isPointDetailCard = this.buttonType === 'earningRule';
|
|
3095
3141
|
}
|
|
3096
3142
|
onSessionOrEndpointChange() {
|
|
3097
3143
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|