@everymatrix/gamification-dropdown 0.7.0 → 0.8.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-0a3a8194.js → gamification-dropdown-0fd9c5b8.js} +24 -11
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +34 -17
- package/dist/cjs/{index-7b4d999d.js → index-c535ed72.js} +244 -140
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-087e5a58.js → player-elevate-card-items-42538012.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +21 -9
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +29 -12
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +35 -10
- package/dist/esm/{gamification-dropdown-456bb56a.js → gamification-dropdown-ae7b7c69.js} +24 -11
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +34 -17
- package/dist/esm/{index-171550cf.js → index-ea7720e4.js} +244 -140
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-2078bd83.js → player-elevate-card-items-9d490a3b.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +21 -9
- package/dist/esm/player-elevate-pointcard.entry.js +29 -12
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -1
- package/dist/gamification-dropdown/p-10486e5b.entry.js +1 -0
- package/dist/gamification-dropdown/{p-dda9c7be.js → p-21507480.js} +1 -1
- package/dist/gamification-dropdown/p-3f7623db.js +2 -0
- package/dist/gamification-dropdown/p-422d11f7.entry.js +1 -0
- package/dist/gamification-dropdown/p-4b1d42b5.entry.js +1 -0
- package/dist/gamification-dropdown/p-c5998a81.js +1 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
- package/package.json +2 -2
- package/dist/gamification-dropdown/p-7ecb6fdf.js +0 -2
- package/dist/gamification-dropdown/p-8426f967.entry.js +0 -1
- package/dist/gamification-dropdown/p-881e823a.entry.js +0 -1
- package/dist/gamification-dropdown/p-a2f51157.entry.js +0 -1
- package/dist/gamification-dropdown/p-cfb00725.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-c535ed72.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE = 'en';
|
|
6
6
|
let TRANSLATIONS = {
|
|
@@ -51,6 +51,29 @@ 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;
|
|
54
77
|
this.setClientStyling = () => {
|
|
55
78
|
let sheet = document.createElement('style');
|
|
56
79
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -90,16 +113,6 @@ const GamificationDropdown = class {
|
|
|
90
113
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
91
114
|
}
|
|
92
115
|
};
|
|
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;
|
|
103
116
|
}
|
|
104
117
|
handleNewTranslations() {
|
|
105
118
|
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-c535ed72.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.25.1 | 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-0fd9c5b8.js');
|
|
6
|
+
const index = require('./index-c535ed72.js');
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-42538012.js');
|
|
8
8
|
|
|
9
9
|
const mergeTranslations = (url, target) => {
|
|
10
10
|
return new Promise((resolve) => {
|
|
@@ -28,6 +28,18 @@ 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 = '';
|
|
31
43
|
this.stylingAppends = false;
|
|
32
44
|
this.setClientStyling = () => {
|
|
33
45
|
let sheet = document.createElement('style');
|
|
@@ -49,10 +61,6 @@ const GeneralStylingWrapper = class {
|
|
|
49
61
|
console.log('error ', err);
|
|
50
62
|
});
|
|
51
63
|
};
|
|
52
|
-
this.clientStyling = '';
|
|
53
|
-
this.clientStylingUrl = '';
|
|
54
|
-
this.translationUrl = '';
|
|
55
|
-
this.targetTranslations = undefined;
|
|
56
64
|
}
|
|
57
65
|
componentDidRender() {
|
|
58
66
|
// start custom styling area
|
|
@@ -370,9 +378,6 @@ const PlayerElevateCardData = class {
|
|
|
370
378
|
constructor(hostRef) {
|
|
371
379
|
index.registerInstance(this, hostRef);
|
|
372
380
|
this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
|
|
373
|
-
this.params = undefined;
|
|
374
|
-
this.playerElevateLevel = undefined;
|
|
375
|
-
this.pointExpireString = undefined;
|
|
376
381
|
}
|
|
377
382
|
handleWindowResizs() {
|
|
378
383
|
this.initLevelProgressbar();
|
|
@@ -540,19 +545,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
540
545
|
const PlayerElevateLoyaltycard = class {
|
|
541
546
|
constructor(hostRef) {
|
|
542
547
|
index.registerInstance(this, hostRef);
|
|
543
|
-
|
|
548
|
+
/**
|
|
549
|
+
* The style that widget shows,available value: Dark, Light
|
|
550
|
+
* Default: Dark
|
|
551
|
+
*/
|
|
544
552
|
this.theme = 'Dark';
|
|
545
|
-
|
|
546
|
-
|
|
553
|
+
/**
|
|
554
|
+
* Widget Language to show
|
|
555
|
+
*/
|
|
547
556
|
this.language = 'en';
|
|
548
|
-
|
|
557
|
+
/**
|
|
558
|
+
* datePattern
|
|
559
|
+
*/
|
|
549
560
|
this.dateFormat = 'yyyy-MM-dd';
|
|
561
|
+
/**
|
|
562
|
+
* Client custom styling via inline styles
|
|
563
|
+
*/
|
|
550
564
|
this.clientStyling = '';
|
|
565
|
+
/**
|
|
566
|
+
* Client custom styling via url
|
|
567
|
+
*/
|
|
551
568
|
this.clientStylingUrl = '';
|
|
569
|
+
/**
|
|
570
|
+
* Translation via url
|
|
571
|
+
*/
|
|
552
572
|
this.translationUrl = '';
|
|
553
|
-
this.pointExpireString = undefined;
|
|
554
|
-
this.playerElevateLevel = undefined;
|
|
555
|
-
this.elevateWalletTotal = undefined;
|
|
556
573
|
}
|
|
557
574
|
onSessionOrEndpointChange() {
|
|
558
575
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|