@everymatrix/gamification-dropdown 1.56.0 → 1.56.3
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-b8288984.js → gamification-dropdown-b61f6455.js} +11 -23
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +18 -34
- package/dist/cjs/{index-ec2fd1aa.js → index-9f57df89.js} +135 -288
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-a73ef8aa.js → player-elevate-card-items-a64a5a53.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 +2 -2
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +10 -36
- package/dist/esm/{gamification-dropdown-246b88da.js → gamification-dropdown-9a68cf16.js} +11 -23
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +18 -34
- package/dist/esm/{index-30fda5fb.js → index-da41a34a.js} +135 -288
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-be1e68f1.js → player-elevate-card-items-6cc8ac45.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-9a95eec2.entry.js +1 -0
- package/dist/gamification-dropdown/p-a653bfbd.entry.js +1 -0
- package/dist/gamification-dropdown/{p-c3422048.js → p-c36d41e2.js} +1 -1
- package/dist/gamification-dropdown/p-d55c742c.entry.js +1 -0
- package/dist/gamification-dropdown/p-e2b2faba.js +2 -0
- package/dist/gamification-dropdown/p-fcccda48.js +1 -0
- 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/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/gamification-dropdown/p-750bfdce.entry.js +0 -1
- package/dist/gamification-dropdown/p-9ccf7a30.js +0 -1
- package/dist/gamification-dropdown/p-b06e6dd1.entry.js +0 -1
- package/dist/gamification-dropdown/p-d3088e7c.entry.js +0 -1
- package/dist/gamification-dropdown/p-dec0ad6f.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-9f57df89.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE = 'en';
|
|
6
6
|
let TRANSLATIONS = {
|
|
@@ -108,28 +108,6 @@ const GamificationDropdownStyle0 = gamificationDropdownCss;
|
|
|
108
108
|
const GamificationDropdown = class {
|
|
109
109
|
constructor(hostRef) {
|
|
110
110
|
index.registerInstance(this, hostRef);
|
|
111
|
-
/**
|
|
112
|
-
* Language of the widget
|
|
113
|
-
*/
|
|
114
|
-
this.language = 'en';
|
|
115
|
-
/**
|
|
116
|
-
* Session of the user
|
|
117
|
-
*/
|
|
118
|
-
this.session = '';
|
|
119
|
-
/**
|
|
120
|
-
* Client custom styling via string
|
|
121
|
-
*/
|
|
122
|
-
this.clientStyling = '';
|
|
123
|
-
/**
|
|
124
|
-
* Client custom styling via url
|
|
125
|
-
*/
|
|
126
|
-
this.clientStylingUrl = '';
|
|
127
|
-
/**
|
|
128
|
-
* Translations via URL
|
|
129
|
-
*/
|
|
130
|
-
this.translationUrl = '';
|
|
131
|
-
this.isOpen = false;
|
|
132
|
-
this.isLoading = false;
|
|
133
111
|
this.navigateToGamification = () => {
|
|
134
112
|
window.postMessage({ type: 'NavigateToGamification' }, window.location.href);
|
|
135
113
|
this.isOpen = false;
|
|
@@ -151,6 +129,16 @@ const GamificationDropdown = class {
|
|
|
151
129
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
152
130
|
}
|
|
153
131
|
};
|
|
132
|
+
this.endpoint = undefined;
|
|
133
|
+
this.language = 'en';
|
|
134
|
+
this.session = '';
|
|
135
|
+
this.mbSource = undefined;
|
|
136
|
+
this.clientStyling = '';
|
|
137
|
+
this.clientStylingUrl = '';
|
|
138
|
+
this.translationUrl = '';
|
|
139
|
+
this.isOpen = false;
|
|
140
|
+
this.isLoading = false;
|
|
141
|
+
this.loyaltyPoints = undefined;
|
|
154
142
|
}
|
|
155
143
|
handleNewTranslations() {
|
|
156
144
|
this.isLoading = true;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9f57df89.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gamification-dropdown.cjs.js', document.baseURI).href));
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const gamificationDropdown = require('./gamification-dropdown-
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const gamificationDropdown = require('./gamification-dropdown-b61f6455.js');
|
|
6
|
+
const index = require('./index-9f57df89.js');
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-a64a5a53.js');
|
|
8
8
|
|
|
9
9
|
const mergeTranslations = (url, target) => {
|
|
10
10
|
return new Promise((resolve) => {
|
|
@@ -28,18 +28,6 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
28
28
|
const GeneralStylingWrapper = class {
|
|
29
29
|
constructor(hostRef) {
|
|
30
30
|
index.registerInstance(this, hostRef);
|
|
31
|
-
/**
|
|
32
|
-
* Client custom styling via inline styles
|
|
33
|
-
*/
|
|
34
|
-
this.clientStyling = '';
|
|
35
|
-
/**
|
|
36
|
-
* Client custom styling via url
|
|
37
|
-
*/
|
|
38
|
-
this.clientStylingUrl = '';
|
|
39
|
-
/**
|
|
40
|
-
* Translation via url
|
|
41
|
-
*/
|
|
42
|
-
this.translationUrl = '';
|
|
43
31
|
this.stylingAppends = false;
|
|
44
32
|
this.setClientStyling = () => {
|
|
45
33
|
let sheet = document.createElement('style');
|
|
@@ -61,6 +49,10 @@ const GeneralStylingWrapper = class {
|
|
|
61
49
|
console.log('error ', err);
|
|
62
50
|
});
|
|
63
51
|
};
|
|
52
|
+
this.clientStyling = '';
|
|
53
|
+
this.clientStylingUrl = '';
|
|
54
|
+
this.translationUrl = '';
|
|
55
|
+
this.targetTranslations = undefined;
|
|
64
56
|
}
|
|
65
57
|
componentDidRender() {
|
|
66
58
|
// start custom styling area
|
|
@@ -378,6 +370,9 @@ const PlayerElevateCardData = class {
|
|
|
378
370
|
constructor(hostRef) {
|
|
379
371
|
index.registerInstance(this, hostRef);
|
|
380
372
|
this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
|
|
373
|
+
this.params = undefined;
|
|
374
|
+
this.playerElevateLevel = undefined;
|
|
375
|
+
this.pointExpireString = undefined;
|
|
381
376
|
}
|
|
382
377
|
handleWindowResizs() {
|
|
383
378
|
this.initLevelProgressbar();
|
|
@@ -545,31 +540,20 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
545
540
|
const PlayerElevateLoyaltycard = class {
|
|
546
541
|
constructor(hostRef) {
|
|
547
542
|
index.registerInstance(this, hostRef);
|
|
548
|
-
|
|
549
|
-
* The style that widget shows,available value: Dark, Light
|
|
550
|
-
* Default: Dark
|
|
551
|
-
*/
|
|
543
|
+
this.endpoint = undefined;
|
|
552
544
|
this.theme = 'Dark';
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
*/
|
|
545
|
+
this.session = undefined;
|
|
546
|
+
this.playerAvatarUrl = undefined;
|
|
556
547
|
this.language = 'en';
|
|
557
|
-
|
|
558
|
-
* datePattern
|
|
559
|
-
*/
|
|
548
|
+
this.playerName = undefined;
|
|
560
549
|
this.dateFormat = 'yyyy-MM-dd';
|
|
561
|
-
|
|
562
|
-
* Client custom styling via inline styles
|
|
563
|
-
*/
|
|
550
|
+
this.mbSource = undefined;
|
|
564
551
|
this.clientStyling = '';
|
|
565
|
-
/**
|
|
566
|
-
* Client custom styling via url
|
|
567
|
-
*/
|
|
568
552
|
this.clientStylingUrl = '';
|
|
569
|
-
/**
|
|
570
|
-
* Translation via url
|
|
571
|
-
*/
|
|
572
553
|
this.translationUrl = '';
|
|
554
|
+
this.pointExpireString = undefined;
|
|
555
|
+
this.playerElevateLevel = undefined;
|
|
556
|
+
this.elevateWalletTotal = undefined;
|
|
573
557
|
}
|
|
574
558
|
onSessionOrEndpointChange() {
|
|
575
559
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|