@everymatrix/gamification-dropdown 1.54.11 → 1.55.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-756a43c2.js → gamification-dropdown-0a3a8194.js} +11 -24
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +17 -34
- package/dist/cjs/{index-547b95bf.js → index-7b4d999d.js} +140 -250
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-705345d8.js → player-elevate-card-items-087e5a58.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 +1 -1
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +10 -35
- package/dist/esm/{gamification-dropdown-370424de.js → gamification-dropdown-456bb56a.js} +11 -24
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +17 -34
- package/dist/esm/{index-1ed44842.js → index-171550cf.js} +140 -250
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-4e46b4c8.js → player-elevate-card-items-2078bd83.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-7ecb6fdf.js +2 -0
- package/dist/gamification-dropdown/p-8426f967.entry.js +1 -0
- package/dist/gamification-dropdown/p-881e823a.entry.js +1 -0
- package/dist/gamification-dropdown/p-a2f51157.entry.js +1 -0
- package/dist/gamification-dropdown/p-cfb00725.js +1 -0
- package/dist/gamification-dropdown/{p-e4f069bf.js → p-dda9c7be.js} +1 -1
- 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/package.json +1 -1
- package/dist/gamification-dropdown/p-17c6de19.entry.js +0 -1
- package/dist/gamification-dropdown/p-1c00c3b4.entry.js +0 -1
- package/dist/gamification-dropdown/p-5cfad4de.entry.js +0 -1
- package/dist/gamification-dropdown/p-6854f53c.js +0 -2
- package/dist/gamification-dropdown/p-7fd023ad.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/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-7b4d999d.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE = 'en';
|
|
6
6
|
let TRANSLATIONS = {
|
|
@@ -51,29 +51,6 @@ const GamificationDropdownStyle0 = gamificationDropdownCss;
|
|
|
51
51
|
const GamificationDropdown = class {
|
|
52
52
|
constructor(hostRef) {
|
|
53
53
|
index.registerInstance(this, hostRef);
|
|
54
|
-
/**
|
|
55
|
-
* Language of the widget
|
|
56
|
-
*/
|
|
57
|
-
this.language = 'en';
|
|
58
|
-
/**
|
|
59
|
-
* Session of the user
|
|
60
|
-
*/
|
|
61
|
-
this.session = '';
|
|
62
|
-
/**
|
|
63
|
-
* Client custom styling via string
|
|
64
|
-
*/
|
|
65
|
-
this.clientStyling = '';
|
|
66
|
-
/**
|
|
67
|
-
* Client custom styling via url
|
|
68
|
-
*/
|
|
69
|
-
this.clientStylingUrl = '';
|
|
70
|
-
/**
|
|
71
|
-
* Translations via URL
|
|
72
|
-
*/
|
|
73
|
-
this.translationUrl = '';
|
|
74
|
-
this.isOpen = false;
|
|
75
|
-
this.isLoading = false;
|
|
76
|
-
this.stylingAppends = false;
|
|
77
54
|
this.setClientStyling = () => {
|
|
78
55
|
let sheet = document.createElement('style');
|
|
79
56
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -113,6 +90,16 @@ const GamificationDropdown = class {
|
|
|
113
90
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
114
91
|
}
|
|
115
92
|
};
|
|
93
|
+
this.endpoint = undefined;
|
|
94
|
+
this.language = 'en';
|
|
95
|
+
this.session = '';
|
|
96
|
+
this.clientStyling = '';
|
|
97
|
+
this.clientStylingUrl = '';
|
|
98
|
+
this.translationUrl = '';
|
|
99
|
+
this.isOpen = false;
|
|
100
|
+
this.isLoading = false;
|
|
101
|
+
this.stylingAppends = false;
|
|
102
|
+
this.loyaltyPoints = undefined;
|
|
116
103
|
}
|
|
117
104
|
handleNewTranslations() {
|
|
118
105
|
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-7b4d999d.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.22.3 | 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-0a3a8194.js');
|
|
6
|
+
const index = require('./index-7b4d999d.js');
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-087e5a58.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,19 @@ 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
|
-
*/
|
|
564
550
|
this.clientStyling = '';
|
|
565
|
-
/**
|
|
566
|
-
* Client custom styling via url
|
|
567
|
-
*/
|
|
568
551
|
this.clientStylingUrl = '';
|
|
569
|
-
/**
|
|
570
|
-
* Translation via url
|
|
571
|
-
*/
|
|
572
552
|
this.translationUrl = '';
|
|
553
|
+
this.pointExpireString = undefined;
|
|
554
|
+
this.playerElevateLevel = undefined;
|
|
555
|
+
this.elevateWalletTotal = undefined;
|
|
573
556
|
}
|
|
574
557
|
onSessionOrEndpointChange() {
|
|
575
558
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|