@everymatrix/bonus-elevate-powerups 0.0.59 → 0.0.61
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/bonus-elevate-powerups/bonus-elevate-powerups-12b738d2.js +1 -0
- package/dist/bonus-elevate-powerups/bonus-elevate-powerups.esm.js +1 -1
- package/dist/bonus-elevate-powerups/bonus-elevate-powerups_19.entry.js +6665 -0
- package/dist/bonus-elevate-powerups/bonus-pagination-limits.entry.js +1 -0
- package/dist/bonus-elevate-powerups/{index-c7067e6d.js → index-3fd29a7b.js} +2 -2
- package/dist/bonus-elevate-powerups/index.esm.js +1 -1
- package/dist/cjs/{bonus-elevate-powerups-9143badb.js → bonus-elevate-powerups-7c27eebe.js} +78 -14
- package/dist/cjs/bonus-elevate-powerups.cjs.js +2 -2
- package/dist/cjs/bonus-elevate-powerups_19.cjs.entry.js +21509 -0
- package/dist/cjs/bonus-pagination-limits.cjs.entry.js +84 -0
- package/dist/cjs/{index-3dbb4007.js → index-40b12efc.js} +16 -5
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +25 -0
- package/dist/collection/components/bonus-elevate-powerups/bonus-elevate-powerups.css +43 -5
- package/dist/collection/components/bonus-elevate-powerups/bonus-elevate-powerups.js +75 -15
- package/dist/collection/components/time-count/time-count.js +2 -2
- package/dist/collection/utils/utils.js +28 -0
- package/dist/esm/{bonus-elevate-powerups-a8be6efc.js → bonus-elevate-powerups-12b738d2.js} +76 -15
- package/dist/esm/bonus-elevate-powerups.js +3 -3
- package/dist/esm/bonus-elevate-powerups_19.entry.js +21488 -0
- package/dist/esm/bonus-pagination-limits.entry.js +80 -0
- package/dist/esm/{index-c7067e6d.js → index-3fd29a7b.js} +16 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bonus-elevate-powerups/bonus-elevate-powerups.d.ts +7 -1
- package/dist/types/components.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bonus-elevate-powerups/bonus-elevate-powerups-a8be6efc.js +0 -1
- package/dist/bonus-elevate-powerups/bonus-elevate-powerups_5.entry.js +0 -9
- package/dist/cjs/bonus-elevate-powerups_5.cjs.entry.js +0 -6189
- package/dist/esm/bonus-elevate-powerups_5.entry.js +0 -6182
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-40b12efc.js');
|
|
6
|
+
|
|
7
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
8
|
+
const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr', 'tr'];
|
|
9
|
+
const TRANSLATIONS = {
|
|
10
|
+
en: {
|
|
11
|
+
"pageLimitLabel": 'Show',
|
|
12
|
+
},
|
|
13
|
+
tr: {
|
|
14
|
+
"pageLimitLabel": 'Göster',
|
|
15
|
+
},
|
|
16
|
+
hu: {
|
|
17
|
+
"pageLimitLabel": 'Show',
|
|
18
|
+
},
|
|
19
|
+
hr: {
|
|
20
|
+
"pageLimitLabel": 'Show',
|
|
21
|
+
},
|
|
22
|
+
"pt-br": {
|
|
23
|
+
"pageLimitLabel": 'Show',
|
|
24
|
+
},
|
|
25
|
+
"es-mx": {
|
|
26
|
+
"pageLimitLabel": 'Show',
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const translate = (key, customLang) => {
|
|
30
|
+
const lang = customLang;
|
|
31
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const bonusPaginationLimitsCss = ":host{display:block}.NoOfItemsToDisplayMessage{display:inline-block;margin:0.1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--emw--color-primary, #191a19);line-height:1.8}.PaginationWrapper{display:flex;flex-direction:row}ul.PaginationArea{margin-block:5px;display:flex;flex-direction:row;padding:0px}ul.PaginationArea li.Item.Active:hover{color:var(--emw--color-primary, #eaefea);background-color:var(--emw--color-secondary, #191a19)}ul.PaginationArea li.Item.Active,ul.PaginationArea li.Item:hover{background-color:var(--emw--color-primary, rgba(169, 171, 169, 0.7));font-weight:bold;border-radius:0.3rem}ul.PaginationArea li.Item{padding-inline-start:0px;list-style:none;padding:5px 6px;margin:2px;cursor:pointer;display:inline-block}";
|
|
35
|
+
const BonusPaginationLimitsStyle0 = bonusPaginationLimitsCss;
|
|
36
|
+
|
|
37
|
+
const BonusPaginationLimits = class {
|
|
38
|
+
constructor(hostRef) {
|
|
39
|
+
index.registerInstance(this, hostRef);
|
|
40
|
+
this.pageLimitChanged = index.createEvent(this, "pageLimitChanged", 7);
|
|
41
|
+
this.language = 'en';
|
|
42
|
+
this.translationUrl = '';
|
|
43
|
+
this.pageLimitOptions = undefined;
|
|
44
|
+
this.limit = 10;
|
|
45
|
+
this.pageLimits = [10, 25, 50];
|
|
46
|
+
}
|
|
47
|
+
onPageLimitClicked(pageLimit) {
|
|
48
|
+
this.limit = pageLimit;
|
|
49
|
+
this.pageLimitChanged.emit({ limit: this.limit });
|
|
50
|
+
}
|
|
51
|
+
componentWillLoad() {
|
|
52
|
+
if (!this.pageLimitOptions) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
this.pageLimits = this.pageLimitOptions.split(',').map((item) => {
|
|
57
|
+
return parseInt(item);
|
|
58
|
+
});
|
|
59
|
+
// if there is an array of custom limits provided (string to array - e.g. [5, 10, 15])
|
|
60
|
+
// and the value for the custom set limit (e.g. 8) isn't part of the provided array,
|
|
61
|
+
// then ignore the set the custom set limit and make the limit equal to the first value of the array
|
|
62
|
+
// (as part of the example so far, this would be 5)
|
|
63
|
+
if (!this.pageLimits.includes(this.limit)) {
|
|
64
|
+
this.limit = this.pageLimits[0];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
console.error('Error when parse PageLimitOptions', e);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
renderStylingWrapper() {
|
|
72
|
+
return index.h("general-styling-wrapper", { targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl });
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
return index.h("div", { key: '57f5e61ee287f72d0427a2e4f646e37c6b9358b9', class: 'PaginationWrapper' }, index.h("span", { key: '5f82b19fcf269086659b3faa475d9967b2af57fa', class: 'NoOfItemsToDisplayMessage' }, translate('pageLimitLabel', this.language)), index.h("ul", { key: '559c2d5378a352691583567579a8e681d092ddd3', class: 'PaginationArea' }, this.pageLimits.map((pageLimit) => {
|
|
76
|
+
return (index.h("li", { class: `${this.limit == pageLimit ? 'Active' : ''} PageSize Item`, onClick: () => {
|
|
77
|
+
this.onPageLimitClicked(pageLimit);
|
|
78
|
+
} }, pageLimit));
|
|
79
|
+
})), index.h("general-styling-wrapper", { key: 'a8b9632e7421318e330f33b9c1cc9eb7121e35e9', targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), this.renderStylingWrapper());
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
BonusPaginationLimits.style = BonusPaginationLimitsStyle0;
|
|
83
|
+
|
|
84
|
+
exports.bonus_pagination_limits = BonusPaginationLimits;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'bonus-elevate-powerups';
|
|
24
|
-
const BUILD = /* bonus-elevate-powerups */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback:
|
|
24
|
+
const BUILD = /* bonus-elevate-powerups */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'bonus-elevate-
|
|
74
|
+
case 'bonus-elevate-powerups_19.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./bonus-elevate-
|
|
77
|
+
'./bonus-elevate-powerups_19.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
|
+
case 'bonus-pagination-limits.cjs':
|
|
79
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
80
|
+
/* webpackMode: "lazy" */
|
|
81
|
+
'./bonus-pagination-limits.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -1057,6 +1061,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1057
1061
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1058
1062
|
}
|
|
1059
1063
|
endNewInstance();
|
|
1064
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1060
1065
|
} else {
|
|
1061
1066
|
Cstr = elm.constructor;
|
|
1062
1067
|
const cmpTag = elm.localName;
|
|
@@ -1084,6 +1089,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1084
1089
|
}
|
|
1085
1090
|
};
|
|
1086
1091
|
var fireConnectedCallback = (instance) => {
|
|
1092
|
+
{
|
|
1093
|
+
safeCall(instance, "connectedCallback");
|
|
1094
|
+
}
|
|
1087
1095
|
};
|
|
1088
1096
|
|
|
1089
1097
|
// src/runtime/connected-callback.ts
|
|
@@ -1117,8 +1125,10 @@ var connectedCallback = (elm) => {
|
|
|
1117
1125
|
}
|
|
1118
1126
|
} else {
|
|
1119
1127
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1120
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1121
|
-
hostRef.$
|
|
1128
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1129
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1130
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1131
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1122
1132
|
}
|
|
1123
1133
|
}
|
|
1124
1134
|
endConnected();
|
|
@@ -1296,6 +1306,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1296
1306
|
};
|
|
1297
1307
|
var getHostListenerTarget = (elm, flags) => {
|
|
1298
1308
|
if (flags & 8 /* TargetWindow */) return win;
|
|
1309
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
|
1299
1310
|
return elm;
|
|
1300
1311
|
};
|
|
1301
1312
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const bonusElevatePowerups = require('./bonus-elevate-powerups-
|
|
6
|
-
require('./index-
|
|
5
|
+
const bonusElevatePowerups = require('./bonus-elevate-powerups-7c27eebe.js');
|
|
6
|
+
require('./index-40b12efc.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-40b12efc.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["bonus-elevate-powerups_5.cjs",[[1,"bonus-elevate-powerups",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"session":[513],"limit":[1538],"openTermsPage":[4,"open-terms-page"],"isLoading":[32],"powerups":[32],"offset":[32],"total":[32]},[[8,"reloadPageByType","onReloadPageByType"]],{"offset":["loadData"],"limit":["loadData"],"language":["loadData"],"session":["loadData","handleDataConfigChange"],"endpoint":["loadData","handleDataConfigChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"translationUrl":["handleNewTranslations"]}],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"bonus-pagination-nav",{"total":[1538],"limit":[1538],"offset":[1538],"tableId":[1537,"table-id"],"language":[1537],"translationUrl":[513,"translation-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"displayRangeOfTotal":[1540,"display-range-of-total"],"navItemAccount":[1538,"nav-item-account"],"endPageIndex":[32],"pagesArray":[32],"currentPage":[32],"showAsEllipsisMid":[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"time-count",{"expireTime":[1,"expire-time"],"language":[1],"displayTime":[32],"isExpireInDay1":[32]},null,{"expireTime":["startTimeChanged"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy(JSON.parse("[[\"bonus-pagination-limits.cjs\",[[0,\"bonus-pagination-limits\",{\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"pageLimitOptions\":[513,\"page-limit-options\"],\"limit\":[1538],\"pageLimits\":[32]}]]],[\"bonus-elevate-powerups_19.cjs\",[[1,\"bonus-elevate-powerups\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"session\":[513],\"limit\":[1538],\"openTermsPage\":[516,\"open-terms-page\"],\"pageLimitOptions\":[1537,\"page-limit-options\"],\"pageLimitSelectOptions\":[32],\"isLoading\":[32],\"powerups\":[32],\"offset\":[32],\"total\":[32]},[[8,\"reloadPageByType\",\"onReloadPageByType\"],[16,\"sendInputValue\",\"onPageLimitChangedHandler\"]],{\"offset\":[\"loadData\"],\"limit\":[\"loadData\"],\"language\":[\"loadData\"],\"session\":[\"loadData\",\"handleDataConfigChange\"],\"endpoint\":[\"loadData\",\"handleDataConfigChange\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"translationUrl\":[\"handleNewTranslations\"]}],[0,\"ui-image\",{\"src\":[1],\"width\":[1],\"height\":[1],\"alt\":[1],\"styles\":[8],\"detectDistance\":[1,\"detect-distance\"],\"imgLoaded\":[32],\"shouldLoad\":[32]},null,{\"src\":[\"handleSrc\"]}],[0,\"bonus-pagination-nav\",{\"total\":[1538],\"limit\":[1538],\"offset\":[1538],\"tableId\":[1537,\"table-id\"],\"language\":[1537],\"translationUrl\":[513,\"translation-url\"],\"arrowsActive\":[1540,\"arrows-active\"],\"secondaryArrowsActive\":[1540,\"secondary-arrows-active\"],\"displayPageNumbers\":[1540,\"display-page-numbers\"],\"displayRangeOfTotal\":[1540,\"display-range-of-total\"],\"navItemAccount\":[1538,\"nav-item-account\"],\"endPageIndex\":[32],\"pagesArray\":[32],\"currentPage\":[32],\"showAsEllipsisMid\":[32]},[[8,\"paginationReset\",\"pageLimitChangedHandler\"],[8,\"pageLimitChanged\",\"pageLimitChangedHandler\"]]],[0,\"time-count\",{\"expireTime\":[1,\"expire-time\"],\"language\":[1],\"displayTime\":[32],\"isExpireInDay1\":[32]},null,{\"expireTime\":[\"startTimeChanged\"]}],[0,\"ui-skeleton\",{\"structure\":[1],\"width\":[1],\"height\":[1],\"borderRadius\":[8,\"border-radius\"],\"marginBottom\":[8,\"margin-bottom\"],\"marginTop\":[8,\"margin-top\"],\"marginLeft\":[8,\"margin-left\"],\"marginRight\":[8,\"margin-right\"],\"animation\":[4],\"rows\":[2],\"size\":[1]},null,{\"structure\":[\"handleStructureChange\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"twofaStartCountDown\":[516,\"twofa-start-count-down\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"startCountDown\":[516,\"start-count-down\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -9,12 +9,37 @@
|
|
|
9
9
|
"typescriptVersion": "5.4.5"
|
|
10
10
|
},
|
|
11
11
|
"collections": [
|
|
12
|
+
{
|
|
13
|
+
"name": "@everymatrix/bonus-pagination-limits",
|
|
14
|
+
"tags": [
|
|
15
|
+
"bonus-pagination-limits"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
12
18
|
{
|
|
13
19
|
"name": "@everymatrix/bonus-pagination-nav",
|
|
14
20
|
"tags": [
|
|
15
21
|
"bonus-pagination-nav"
|
|
16
22
|
]
|
|
17
23
|
},
|
|
24
|
+
{
|
|
25
|
+
"name": "@everymatrix/general-input",
|
|
26
|
+
"tags": [
|
|
27
|
+
"checkbox-group-input",
|
|
28
|
+
"checkbox-input",
|
|
29
|
+
"date-input",
|
|
30
|
+
"email-input",
|
|
31
|
+
"general-input",
|
|
32
|
+
"number-input",
|
|
33
|
+
"password-input",
|
|
34
|
+
"postalcode-input",
|
|
35
|
+
"radio-input",
|
|
36
|
+
"select-input",
|
|
37
|
+
"tel-input",
|
|
38
|
+
"text-input",
|
|
39
|
+
"toggle-checkbox-input",
|
|
40
|
+
"twofa-input"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
18
43
|
{
|
|
19
44
|
"name": "@everymatrix/ui-image",
|
|
20
45
|
"tags": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
font-size: 0.95rem;
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
|
-
min-height:
|
|
47
|
+
min-height: 500px;
|
|
48
48
|
}
|
|
49
49
|
.PowerUpsContainer .EmptyPowerups {
|
|
50
50
|
align-items: center;
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
margin: 10px;
|
|
73
73
|
}
|
|
74
74
|
.PowerUpsContainer .PowerUps {
|
|
75
|
+
min-height: 60vh;
|
|
75
76
|
width: 100%;
|
|
76
77
|
gap: 12px;
|
|
77
78
|
display: flex;
|
|
@@ -113,6 +114,8 @@
|
|
|
113
114
|
color: var(--emw--color-gray-150, #c8d6ce);
|
|
114
115
|
line-height: 1.2rem;
|
|
115
116
|
flex: 1;
|
|
117
|
+
font-size: small;
|
|
118
|
+
margin-top: 8px;
|
|
116
119
|
}
|
|
117
120
|
.PowerUpsContainer .PowerUps .Card .CardLeft .DisplayName {
|
|
118
121
|
width: 100%;
|
|
@@ -121,17 +124,21 @@
|
|
|
121
124
|
overflow: hidden;
|
|
122
125
|
height: 22px;
|
|
123
126
|
gap: 12px;
|
|
124
|
-
font-size:
|
|
127
|
+
font-size: large;
|
|
128
|
+
font-family: var(--emw--font-family-primary, "Montserrat", sans-serif);
|
|
125
129
|
}
|
|
126
130
|
.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier {
|
|
127
131
|
text-transform: uppercase;
|
|
128
|
-
font-size:
|
|
132
|
+
font-size: smaller;
|
|
133
|
+
gap: 10px;
|
|
134
|
+
display: flex;
|
|
129
135
|
color: var(--emw--color-gray-dark, #727672);
|
|
130
136
|
}
|
|
131
137
|
.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier .ExpireCount .Label {
|
|
132
138
|
text-transform: uppercase;
|
|
133
139
|
}
|
|
134
140
|
.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier .ExpireCount .Highlighted {
|
|
141
|
+
color: transparent;
|
|
135
142
|
-webkit-background-clip: text;
|
|
136
143
|
background-clip: text;
|
|
137
144
|
background-image: linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange2, #E0A84E) 100%);
|
|
@@ -140,16 +147,15 @@
|
|
|
140
147
|
display: inline-block;
|
|
141
148
|
-webkit-background-clip: text;
|
|
142
149
|
background-clip: text;
|
|
143
|
-
color: transparent;
|
|
144
150
|
}
|
|
145
151
|
.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC {
|
|
152
|
+
color: var(--emw--color-powup-light-green, #18CE51);
|
|
146
153
|
text-transform: uppercase;
|
|
147
154
|
background-image: linear-gradient(180deg, var(--emw--color-powup-green, #24B24E) 0%, var(--emw--color-powup-light-green, #18CE51) 100%);
|
|
148
155
|
font-size: 0.8em;
|
|
149
156
|
font-weight: bold;
|
|
150
157
|
}
|
|
151
158
|
.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC a {
|
|
152
|
-
color: var(--emw--color-powup-light-green, #18CE51);
|
|
153
159
|
text-decoration: none;
|
|
154
160
|
}
|
|
155
161
|
.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC span {
|
|
@@ -237,6 +243,38 @@
|
|
|
237
243
|
display: flex;
|
|
238
244
|
justify-content: center;
|
|
239
245
|
}
|
|
246
|
+
.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active, .PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover {
|
|
247
|
+
color: #00B74F;
|
|
248
|
+
border: 2px solid #00B74F;
|
|
249
|
+
}
|
|
250
|
+
.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem, .PowerUpsContainer .Pagination ul.PaginationArea li.PageItem {
|
|
251
|
+
background: transparent;
|
|
252
|
+
border: 2px solid rgba(188, 252, 177, 0.0509803922);
|
|
253
|
+
border-radius: 36px;
|
|
254
|
+
width: 32px;
|
|
255
|
+
height: 32px;
|
|
256
|
+
display: flex;
|
|
257
|
+
align-items: center;
|
|
258
|
+
justify-content: center;
|
|
259
|
+
}
|
|
260
|
+
.PowerUpsContainer .Pagination .PageNavigation .PageArrow {
|
|
261
|
+
color: transparent;
|
|
262
|
+
}
|
|
263
|
+
.PowerUpsContainer .Pagination .PageNavigation .PageArrow.PrePage.Disabled, .PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage.Disabled {
|
|
264
|
+
cursor: default;
|
|
265
|
+
background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.25592 0.244078C7.58136 0.569515 7.58136 1.09715 7.25592 1.42259L2.84518 5.83333H12.5C12.9602 5.83333 13.3333 6.20643 13.3333 6.66667C13.3333 7.1269 12.9602 7.5 12.5 7.5H2.84518L7.25592 11.9107C7.58136 12.2362 7.58136 12.7638 7.25592 13.0893C6.93049 13.4147 6.40285 13.4147 6.07741 13.0893L0.244078 7.25592C-0.0813592 6.93049 -0.0813592 6.40285 0.244078 6.07741L6.07741 0.244078C6.40285 -0.0813592 6.93049 -0.0813592 7.25592 0.244078Z' fill='gray'/%3E%3C/svg%3E");
|
|
266
|
+
}
|
|
267
|
+
.PowerUpsContainer .Pagination .PageNavigation .PageArrow.PrePage, .PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage {
|
|
268
|
+
background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.25592 0.244078C7.58136 0.569515 7.58136 1.09715 7.25592 1.42259L2.84518 5.83333H12.5C12.9602 5.83333 13.3333 6.20643 13.3333 6.66667C13.3333 7.1269 12.9602 7.5 12.5 7.5H2.84518L7.25592 11.9107C7.58136 12.2362 7.58136 12.7638 7.25592 13.0893C6.93049 13.4147 6.40285 13.4147 6.07741 13.0893L0.244078 7.25592C-0.0813592 6.93049 -0.0813592 6.40285 0.244078 6.07741L6.07741 0.244078C6.40285 -0.0813592 6.93049 -0.0813592 7.25592 0.244078Z' fill='white'/%3E%3C/svg%3E");
|
|
269
|
+
background-repeat: no-repeat;
|
|
270
|
+
background-position: center;
|
|
271
|
+
display: inherit;
|
|
272
|
+
width: fit-content;
|
|
273
|
+
padding: 0 15px;
|
|
274
|
+
}
|
|
275
|
+
.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage {
|
|
276
|
+
rotate: 180deg;
|
|
277
|
+
}
|
|
240
278
|
.PowerUpsContainer .GameStartBtn {
|
|
241
279
|
width: 98px;
|
|
242
280
|
height: 22px;
|
|
@@ -4,8 +4,10 @@ import { BoostingPeriodMode } from "../../../../../../../../libs/common/src/type
|
|
|
4
4
|
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
5
5
|
import ClearSearch from "../../assets/clear-search.svg";
|
|
6
6
|
import "../../../../../bonus-pagination-nav/dist/types/index";
|
|
7
|
+
import "../../../../../bonus-pagination-limits/dist/types/index";
|
|
8
|
+
import "../../../../../general-input/dist/types/index";
|
|
7
9
|
import "../../../../../ui-image/dist/types/index";
|
|
8
|
-
import { powerUpGameSearchConditions, powerUpSearchConditions } from "../../utils/utils";
|
|
10
|
+
import { powerUpGameSearchConditions, powerUpSearchConditions, generalInputStyling } from "../../utils/utils";
|
|
9
11
|
export class BonusElevatePowerups {
|
|
10
12
|
constructor() {
|
|
11
13
|
this.tableId = 'powerups';
|
|
@@ -18,22 +20,47 @@ export class BonusElevatePowerups {
|
|
|
18
20
|
this.endpoint = undefined;
|
|
19
21
|
this.session = undefined;
|
|
20
22
|
this.limit = 10;
|
|
21
|
-
this.openTermsPage =
|
|
23
|
+
this.openTermsPage = false;
|
|
24
|
+
this.pageLimitOptions = '10,25,50';
|
|
25
|
+
this.pageLimitSelectOptions = [];
|
|
22
26
|
this.isLoading = true;
|
|
23
27
|
this.powerups = [];
|
|
24
28
|
this.offset = 0;
|
|
25
29
|
this.total = undefined;
|
|
26
30
|
}
|
|
27
31
|
onReloadPageByType(e) {
|
|
28
|
-
const {
|
|
32
|
+
const { offset, tableId } = e.detail;
|
|
29
33
|
if (tableId !== this.tableId) {
|
|
30
34
|
return;
|
|
31
35
|
}
|
|
32
36
|
this.offset = offset;
|
|
33
|
-
|
|
37
|
+
}
|
|
38
|
+
setLimit() {
|
|
39
|
+
try {
|
|
40
|
+
const pageLimits = this.pageLimitOptions.split(',').map((item) => {
|
|
41
|
+
return parseInt(item);
|
|
42
|
+
});
|
|
43
|
+
if (!pageLimits.includes(this.limit)) {
|
|
44
|
+
this.limit = pageLimits[0];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
console.error('Error when parse PageLimitOptions', e);
|
|
49
|
+
this.limit = 10;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
onPageLimitChangedHandler(event) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (((_a = event.detail) === null || _a === void 0 ? void 0 : _a.name) === 'pageLimits') {
|
|
55
|
+
const newLimit = parseInt(event.detail.value || '10');
|
|
56
|
+
if (this.limit != newLimit) {
|
|
57
|
+
this.limit = newLimit;
|
|
58
|
+
this.offset = 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
34
61
|
}
|
|
35
62
|
async loadData() {
|
|
36
|
-
if (!this.endpoint || !this.session) {
|
|
63
|
+
if (!this.endpoint || !this.session || !this.pageLimitSelectOptions.length) {
|
|
37
64
|
return;
|
|
38
65
|
}
|
|
39
66
|
this.isLoading = true;
|
|
@@ -78,8 +105,8 @@ export class BonusElevatePowerups {
|
|
|
78
105
|
onGameClick(game) {
|
|
79
106
|
window.postMessage({ type: 'EngagementSuiteGameRedirect', data: { Slug: game.slug } });
|
|
80
107
|
}
|
|
81
|
-
onTermsUrlClick(
|
|
82
|
-
window.postMessage({ type: 'onPowerupTermsUrlClicked', termsUrl }, '*');
|
|
108
|
+
onTermsUrlClick(powerup) {
|
|
109
|
+
window.postMessage({ type: 'onPowerupTermsUrlClicked', termsUrl: powerup.termsUrl, id: powerup.id }, '*');
|
|
83
110
|
}
|
|
84
111
|
async loadMoreGames(powerup) {
|
|
85
112
|
var _a;
|
|
@@ -148,19 +175,21 @@ export class BonusElevatePowerups {
|
|
|
148
175
|
});
|
|
149
176
|
}
|
|
150
177
|
render() {
|
|
151
|
-
return h("div", { key: '
|
|
178
|
+
return h("div", { key: '1fbebb9517c75a1c3ad267c1b754bf5ca0df5cde', class: `PowerUpsContainer`, ref: (el) => (this.stylingContainer = el) }, this.isLoading
|
|
152
179
|
? h("p", null, "Loading...")
|
|
153
180
|
: !this.total ?
|
|
154
|
-
h("div", { class: 'EmptyPowerups' }, h("div", { class: 'Icon', innerHTML: ClearSearch }), h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), h("span", null, translate('noPowerUps')), h("span", null, translate('gotoShop')), h("div", null))
|
|
181
|
+
h("div", { class: 'EmptyPowerups' }, h("div", { class: 'Icon', innerHTML: ClearSearch }), h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), h("div", { class: 'NoPowerDescription' }, h("span", null, translate('noPowerUps')), h("span", null, translate('gotoShop'))), h("div", null))
|
|
155
182
|
: [h("div", { class: 'PowerUps' }, this.powerups.map(powerup => {
|
|
156
183
|
var _a, _b;
|
|
157
|
-
return h("div", { class: 'PowerUpItem Card', "data-powerup-id": powerup.id }, h("div", { class: 'CardLeft' }, h("div", { class: 'MainInfo' }, h("div", { class: 'DisplayName' }, " ", powerup.displayName || '-', " "), h("div", { class: 'Title2 PowerUpMultiplier' }, h("span", { class: 'BoostingPeriod' }, h("span", { class: 'Period' }, powerup.boostingPeriod.minutes || powerup.boostingPeriod.numberOfRounds, " "), powerup.boostingPeriod.mode === BoostingPeriodMode.TIME_PERIOD ? translate('min', this.language) : translate('rounds', this.language), " "), h("span", { class: '
|
|
184
|
+
return h("div", { class: 'PowerUpItem Card', "data-powerup-id": powerup.id }, h("div", { class: 'CardLeft' }, h("div", { class: 'MainInfo' }, h("div", { class: 'DisplayName' }, " ", powerup.displayName || '-', " "), h("div", { class: 'Title2 PowerUpMultiplier' }, h("span", { class: 'BoostingPeriod' }, h("span", { class: 'Period' }, powerup.boostingPeriod.minutes || powerup.boostingPeriod.numberOfRounds, " "), powerup.boostingPeriod.mode === BoostingPeriodMode.TIME_PERIOD ? translate('min', this.language) : translate('rounds', this.language), " "), h("span", { class: 'Spliter' }, "|"), h("span", { class: 'Multiplier' }, "X ", powerup.multiplier.coefficient, " "), h("span", { class: 'Spliter' }, "|"), h("span", { class: 'MultiplierMode' }, translate(powerup.multiplier.mode, this.language), " "), powerup.expireTime && [h("span", { class: 'Spliter' }, " | "), h("span", { class: 'ExpireCount' }, h("time-count", { "expire-time": powerup.expireTime, language: this.language }))]), h("div", { class: 'Description' }, powerup.description)), h("div", { class: 'TermsC' }, this.openTermsPage
|
|
158
185
|
? h("a", { href: powerup.termsUrl ? powerup.termsUrl : '#', target: '_blank' }, translate('termsCon', this.language))
|
|
159
|
-
: h("span", { onClick: this.onTermsUrlClick
|
|
186
|
+
: h("span", { onClick: () => this.onTermsUrlClick(powerup) }, translate('termsCon', this.language), " "))), h("div", { class: 'GamesContent CardRight' }, h("div", { class: 'GamesTitle' }, h("span", { class: 'Title2' }, " ", translate('games', this.language)), h("span", { class: 'GamesAmount' }, " ( ", ((_a = powerup.games) === null || _a === void 0 ? void 0 : _a.total) || 0, " ) ")), h("div", { class: 'GameTitleTip' }, translate('selectGameToActive', this.language)), h("div", { class: 'GamesList' }, h("div", { class: 'Games' }, (_b = powerup.games) === null || _b === void 0 ? void 0 : _b.items.map(g => {
|
|
160
187
|
return h("div", { class: 'Game' }, h("ui-image", { src: g.thumbnail }), h("div", { class: 'GameMask', onClick: this.onGameClick.bind(this, g) }, h("div", { class: 'GameStartBtn' }, h("div", { class: 'PlayIcon' }), h("span", null, translate('playNow', this.language)))));
|
|
161
188
|
})))));
|
|
162
|
-
})), h("div", { class: 'Pagination' }, this.total &&
|
|
163
|
-
h("bonus-pagination-nav", { offset: this.offset, limit: this.limit, "secondary-arrows-active": true, "table-id": this.tableId, total: this.total })
|
|
189
|
+
})), h("div", { class: 'Pagination' }, this.total && [
|
|
190
|
+
h("bonus-pagination-nav", { offset: this.offset, limit: this.limit, "secondary-arrows-active": true, "table-id": this.tableId, total: this.total }),
|
|
191
|
+
h("general-input", { "client-styling": generalInputStyling, type: "dropdown", name: "pageLimits", "display-name": '', "default-value": this.limit, validation: { mandatory: false }, options: this.pageLimitSelectOptions, emitValue: true, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl })
|
|
192
|
+
])]);
|
|
164
193
|
}
|
|
165
194
|
handleDataConfigChange() {
|
|
166
195
|
this.loadData().catch(console.error);
|
|
@@ -187,6 +216,12 @@ export class BonusElevatePowerups {
|
|
|
187
216
|
if (this.translationUrl) {
|
|
188
217
|
await getTranslations(this.translationUrl);
|
|
189
218
|
}
|
|
219
|
+
this.setLimit();
|
|
220
|
+
this.pageLimitSelectOptions = this.pageLimitOptions.split(',')
|
|
221
|
+
.map((limit) => ({
|
|
222
|
+
label: limit,
|
|
223
|
+
value: limit
|
|
224
|
+
}));
|
|
190
225
|
this.loadData().catch(console.error);
|
|
191
226
|
}
|
|
192
227
|
componentDidLoad() {
|
|
@@ -376,13 +411,32 @@ export class BonusElevatePowerups {
|
|
|
376
411
|
"text": ""
|
|
377
412
|
},
|
|
378
413
|
"attribute": "open-terms-page",
|
|
379
|
-
"reflect":
|
|
380
|
-
"defaultValue": "
|
|
414
|
+
"reflect": true,
|
|
415
|
+
"defaultValue": "false"
|
|
416
|
+
},
|
|
417
|
+
"pageLimitOptions": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"mutable": true,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "string",
|
|
422
|
+
"resolved": "string",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": false,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": ""
|
|
430
|
+
},
|
|
431
|
+
"attribute": "page-limit-options",
|
|
432
|
+
"reflect": true,
|
|
433
|
+
"defaultValue": "'10,25,50'"
|
|
381
434
|
}
|
|
382
435
|
};
|
|
383
436
|
}
|
|
384
437
|
static get states() {
|
|
385
438
|
return {
|
|
439
|
+
"pageLimitSelectOptions": {},
|
|
386
440
|
"isLoading": {},
|
|
387
441
|
"powerups": {},
|
|
388
442
|
"offset": {},
|
|
@@ -432,6 +486,12 @@ export class BonusElevatePowerups {
|
|
|
432
486
|
"target": "window",
|
|
433
487
|
"capture": false,
|
|
434
488
|
"passive": false
|
|
489
|
+
}, {
|
|
490
|
+
"name": "sendInputValue",
|
|
491
|
+
"method": "onPageLimitChangedHandler",
|
|
492
|
+
"target": "body",
|
|
493
|
+
"capture": false,
|
|
494
|
+
"passive": false
|
|
435
495
|
}];
|
|
436
496
|
}
|
|
437
497
|
}
|
|
@@ -54,8 +54,8 @@ export class TimeCount {
|
|
|
54
54
|
render() {
|
|
55
55
|
return [
|
|
56
56
|
this.isExpireInDay1 &&
|
|
57
|
-
h("span", { key: '
|
|
58
|
-
h("span", { key: '
|
|
57
|
+
h("span", { key: '8432bdb52f3b5ecd2600c68179a0ee55d785c20c', class: `Label` }, translate('expiresIn', this.language)),
|
|
58
|
+
h("span", { key: '6392f23c29ea2b9d02cbf3fec2cc19bfdfbb91c9', class: `TimeCountDown ${!this.isExpireInDay1 ? 'Highlighted' : ''}` }, this.displayTime)
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "time-count"; }
|
|
@@ -8,3 +8,31 @@ export const powerUpGameSearchConditions = {
|
|
|
8
8
|
expand: "games",
|
|
9
9
|
fields: "id,powerUpID,games(id,gameId,slug,name,thumbnail)"
|
|
10
10
|
};
|
|
11
|
+
export const generalInputStyling = `
|
|
12
|
+
.pageLimits__input [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
|
|
13
|
+
|
|
14
|
+
text-align: center;
|
|
15
|
+
}
|
|
16
|
+
.pageLimits__input .select__input{background: transparent; width: 89px;
|
|
17
|
+
vaadin-select-value-button{
|
|
18
|
+
color: var(--vaadin-input-field-value-color, var(--emw--color-text));
|
|
19
|
+
text-align: center;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.pageLimits__input .select__input::part(toggle-button){
|
|
23
|
+
color: var(--vaadin-input-field-value-color, var(--emw--color-text));
|
|
24
|
+
right: 0px;
|
|
25
|
+
}
|
|
26
|
+
.pageLimits__input .select__input::part(input-field) {
|
|
27
|
+
border-radius: 20px;
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
border: 1px solid var(--emw--color-gray-100, #BCFCB10D);
|
|
30
|
+
color: var(--emw--color-black, #000000);
|
|
31
|
+
font-family: inherit;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
font-weight: 300;
|
|
35
|
+
line-height: 1.5;
|
|
36
|
+
padding: 5px;
|
|
37
|
+
height: 34px;
|
|
38
|
+
}`;
|