@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.
Files changed (29) hide show
  1. package/dist/cjs/general-styling-wrapper_5.cjs.entry.js +79 -33
  2. package/dist/cjs/{index-fcb2d8d9.js → index-e1db0305.js} +246 -138
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/player-elevate-card.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/player-elevate-card/player-elevate-card.js +39 -7
  7. package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +2 -5
  8. package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.js +59 -8
  9. package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +51 -10
  10. package/dist/esm/general-styling-wrapper_5.entry.js +79 -33
  11. package/dist/esm/{index-94328d47.js → index-29ae3408.js} +246 -138
  12. package/dist/esm/loader.js +3 -3
  13. package/dist/esm/player-elevate-card.js +4 -4
  14. package/dist/player-elevate-card/p-17e5148c.js +2 -0
  15. package/dist/player-elevate-card/p-33df4709.entry.js +1 -0
  16. package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
  17. 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
  18. 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
  19. package/dist/types/components/player-elevate-loyaltycard/player-elevate-loyaltycard.d.ts +4 -0
  20. package/dist/types/components.d.ts +8 -0
  21. package/package.json +1 -1
  22. package/dist/player-elevate-card/p-08c2b497.entry.js +0 -1
  23. package/dist/player-elevate-card/p-8dfd18ff.js +0 -2
  24. 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
  25. 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
  26. /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
  27. /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
  28. /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
  29. /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-94328d47.js';
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
- this.endpoint = undefined;
2488
+ /**
2489
+ * The style that widget shows,available value: Dark, Light
2490
+ * Default: Dark
2491
+ */
2481
2492
  this.theme = 'Dark';
2482
- this.session = undefined;
2483
- this.playerAvatarUrl = undefined;
2493
+ /**
2494
+ * Widget Language to show
2495
+ */
2484
2496
  this.language = 'en';
2485
- this.playerName = undefined;
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
- this.endpoint = undefined;
3017
+ /**
3018
+ * The style that widget shows,available value: Dark, Light
3019
+ * Default: Dark
3020
+ */
3001
3021
  this.theme = 'Dark';
3002
- this.session = undefined;
3003
- this.playerAvatarUrl = undefined;
3022
+ /**
3023
+ * Widget Language to show
3024
+ */
3004
3025
  this.language = 'en';
3005
- this.playerName = undefined;
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: '2b0944f8317a94621e1bc65bbbb3726654b8963b', class: `ElevateCardWrapper ${this.theme}` }, h("div", { key: 'c6d4dbba143435b4485d7fde91ab0a48a2f6688b', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { key: 'e47a4efe925eb35d4449c6ff33a0afef9d284e55', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { key: 'a560991893305894ddd41756cd7b3c32d0ef9e03', params: this.paramProxy }), h("div", { key: 'ceb8b71386f84f54518a3694535aa16c2c3d3951', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { key: '1df9647c3de42e74adee0f8895511442118ae381', class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, { key: '569bcd5fc3c578d2e6cc7442d28444e29688660c' }, h("div", { key: 'aa40032bff99c5462b906e4427232ca2d4019017', class: "PlayerImg" }, h(PlayerAvatar, { key: '7a2d535b0c2029c90b9f1c123f9feebafca6bdde', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { key: '90999da8fc2a3102eac235fcbc8afbec2a2bbdf8', class: `LevelInfo ${this.playerElevateLevel.name}` }, h(PlayerElevateLoyaltyLevel, { key: '67e8bf370b1b77e776fb6d955ae63928fd1338d8', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h("div", { key: '1e0fefc6a23f4aeeef5e19828399fe1229a3fc81', class: 'PointsRange' }, h(PlayerPoints, { key: 'dd176e624cde3b6f517101d7702a15465305174d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), h(PlayerPoints, { key: '6cddb64c92545803d08fbbc513cc951b2691a42e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), h(PlayerLoyaltyProcess, { key: '08817ca979ea784aeb735579b0d52e5150eb0852' }), h("div", { key: 'be9a1b40a8145d5e6d329d8e9f047296e84dd24b', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (h("div", { key: 'f9cbb7d06e34717cb9f74cb8d2e506e49969e775', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
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
- this.isPointDetailCard = this.buttonType === 'earningRule';
3079
- this.endpoint = undefined;
3107
+ /**
3108
+ * The style that widget shows,available value: Dark, Light
3109
+ * Default: Dark
3110
+ */
3080
3111
  this.theme = 'Dark';
3081
- this.session = undefined;
3082
- this.playerAvatarUrl = undefined;
3112
+ /**
3113
+ * Widget Language to show
3114
+ */
3083
3115
  this.language = 'en';
3084
- this.playerName = undefined;
3085
- this.cardTitle = undefined;
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.pointExpireString = undefined;
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 });