@everymatrix/casino-challenges-list 1.77.16 → 1.77.17
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/casino-challenges-list/casino-challenge-card_3.entry.js +1 -0
- package/dist/casino-challenges-list/casino-challenges-list-d0d9a1e1.js +1 -0
- package/dist/casino-challenges-list/casino-challenges-list.esm.js +1 -1
- package/dist/casino-challenges-list/index-d84ca385.js +2 -0
- package/dist/casino-challenges-list/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-card_3.cjs.entry.js +631 -0
- package/dist/cjs/{casino-challenges-list-d6873cbb.js → casino-challenges-list-b4bc1590.js} +6 -3
- package/dist/cjs/casino-challenges-list.cjs.js +2 -2
- package/dist/cjs/{index-4ab9ba12.js → index-6a66c51c.js} +37 -5
- package/dist/cjs/index.cjs.js +2 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/casino-challenges-list/casino-challenges-list.js +21 -2
- package/dist/esm/casino-challenge-card_3.entry.js +626 -0
- package/dist/esm/{casino-challenges-list-faf39d72.js → casino-challenges-list-d0d9a1e1.js} +4 -4
- package/dist/esm/casino-challenges-list.js +3 -3
- package/dist/esm/{index-ce64c965.js → index-d84ca385.js} +37 -5
- package/dist/esm/index.js +2 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-challenges-list/casino-challenges-list.d.ts +2 -1
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-challenges-list/casino-challenges-list-faf39d72.js +0 -1
- package/dist/casino-challenges-list/casino-challenges-list_2.entry.js +0 -1
- package/dist/casino-challenges-list/index-ce64c965.js +0 -2
- package/dist/cjs/casino-challenges-list_2.cjs.entry.js +0 -184
- package/dist/esm/casino-challenges-list_2.entry.js +0 -179
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
require('@everymatrix/casino-challenge-card');
|
|
3
|
+
const index = require('./index-6a66c51c.js');
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @name setClientStyling
|
|
@@ -86,6 +85,7 @@ const CasinoChallengeList = class {
|
|
|
86
85
|
this.challenges = [];
|
|
87
86
|
this.loading = false;
|
|
88
87
|
this.hasMore = false;
|
|
88
|
+
this.activeTabIndex = 0;
|
|
89
89
|
}
|
|
90
90
|
handleClientStylingChange(newValue, oldValue) {
|
|
91
91
|
if (newValue != oldValue) {
|
|
@@ -147,7 +147,7 @@ const CasinoChallengeList = class {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (index.h("div", { key: '
|
|
150
|
+
return (index.h("div", { key: 'a86f75428a1ada59409164e3c83582794d186c5c', ref: (el) => (this.stylingContainer = el), class: "challenges-list" }, this.challenges.map((challenge, index$1) => (index.h("div", { key: challenge.Id, ref: index$1 === this.challenges.length - 1 ? this.setLastItemRef : null }, index.h("casino-challenge-card", { challenge: challenge, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, onTimerExpired: this.onTimerExpired, activeTabIndex: this.activeTabIndex })))), this.loading && this.renderSkeletons()));
|
|
151
151
|
}
|
|
152
152
|
get el() { return index.getElement(this); }
|
|
153
153
|
static get watchers() { return {
|
|
@@ -159,3 +159,6 @@ const CasinoChallengeList = class {
|
|
|
159
159
|
CasinoChallengeList.style = CasinoChallengesListStyle0;
|
|
160
160
|
|
|
161
161
|
exports.CasinoChallengeList = CasinoChallengeList;
|
|
162
|
+
exports.setClientStyling = setClientStyling;
|
|
163
|
+
exports.setClientStylingURL = setClientStylingURL;
|
|
164
|
+
exports.setStreamStyling = setStreamStyling;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-6a66c51c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["casino-
|
|
22
|
+
return index.bootstrapLazy([["casino-challenge-card_3.cjs",[[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-challenges-list';
|
|
24
|
-
const BUILD = /* casino-challenges-list */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad:
|
|
24
|
+
const BUILD = /* casino-challenges-list */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, 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: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, 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,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'casino-
|
|
74
|
+
case 'casino-challenge-card_3.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./casino-
|
|
77
|
+
'./casino-challenge-card_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -405,6 +405,27 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
405
405
|
const newClasses = parseClassList(newValue);
|
|
406
406
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
407
407
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
408
|
+
} else if (memberName === "style") {
|
|
409
|
+
{
|
|
410
|
+
for (const prop in oldValue) {
|
|
411
|
+
if (!newValue || newValue[prop] == null) {
|
|
412
|
+
if (prop.includes("-")) {
|
|
413
|
+
elm.style.removeProperty(prop);
|
|
414
|
+
} else {
|
|
415
|
+
elm.style[prop] = "";
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
for (const prop in newValue) {
|
|
421
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
422
|
+
if (prop.includes("-")) {
|
|
423
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
424
|
+
} else {
|
|
425
|
+
elm.style[prop] = newValue[prop];
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
408
429
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
409
430
|
if (newValue) {
|
|
410
431
|
newValue(elm);
|
|
@@ -738,6 +759,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
738
759
|
);
|
|
739
760
|
}
|
|
740
761
|
let maybePromise;
|
|
762
|
+
if (isInitialLoad) {
|
|
763
|
+
{
|
|
764
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
765
|
+
}
|
|
766
|
+
}
|
|
741
767
|
endSchedule();
|
|
742
768
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
743
769
|
};
|
|
@@ -1005,6 +1031,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1005
1031
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1006
1032
|
}
|
|
1007
1033
|
endNewInstance();
|
|
1034
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1008
1035
|
} else {
|
|
1009
1036
|
Cstr = elm.constructor;
|
|
1010
1037
|
const cmpTag = elm.localName;
|
|
@@ -1032,6 +1059,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1032
1059
|
}
|
|
1033
1060
|
};
|
|
1034
1061
|
var fireConnectedCallback = (instance) => {
|
|
1062
|
+
{
|
|
1063
|
+
safeCall(instance, "connectedCallback");
|
|
1064
|
+
}
|
|
1035
1065
|
};
|
|
1036
1066
|
|
|
1037
1067
|
// src/runtime/connected-callback.ts
|
|
@@ -1064,8 +1094,10 @@ var connectedCallback = (elm) => {
|
|
|
1064
1094
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1065
1095
|
}
|
|
1066
1096
|
} else {
|
|
1067
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1068
|
-
hostRef.$
|
|
1097
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1098
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1099
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1100
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1069
1101
|
}
|
|
1070
1102
|
}
|
|
1071
1103
|
endConnected();
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesList = require('./casino-challenges-list-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('@everymatrix/casino-challenge-card');
|
|
5
|
+
const casinoChallengesList = require('./casino-challenges-list-b4bc1590.js');
|
|
6
|
+
require('./index-6a66c51c.js');
|
|
8
7
|
|
|
9
8
|
|
|
10
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-6a66c51c.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([["casino-
|
|
11
|
+
return index.bootstrapLazy([["casino-challenge-card_3.cjs",[[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
3
|
import "../../../../../ui-skeleton/dist/types/index";
|
|
4
|
-
import "
|
|
4
|
+
import "../../../../../casino-challenge-card/dist/types/index";
|
|
5
5
|
const skeletons = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
6
6
|
export class CasinoChallengeList {
|
|
7
7
|
constructor() {
|
|
@@ -22,6 +22,7 @@ export class CasinoChallengeList {
|
|
|
22
22
|
this.challenges = [];
|
|
23
23
|
this.loading = false;
|
|
24
24
|
this.hasMore = false;
|
|
25
|
+
this.activeTabIndex = 0;
|
|
25
26
|
}
|
|
26
27
|
handleClientStylingChange(newValue, oldValue) {
|
|
27
28
|
if (newValue != oldValue) {
|
|
@@ -83,7 +84,7 @@ export class CasinoChallengeList {
|
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
render() {
|
|
86
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: 'a86f75428a1ada59409164e3c83582794d186c5c', ref: (el) => (this.stylingContainer = el), class: "challenges-list" }, this.challenges.map((challenge, index) => (h("div", { key: challenge.Id, ref: index === this.challenges.length - 1 ? this.setLastItemRef : null }, h("casino-challenge-card", { challenge: challenge, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, onTimerExpired: this.onTimerExpired, activeTabIndex: this.activeTabIndex })))), this.loading && this.renderSkeletons()));
|
|
87
88
|
}
|
|
88
89
|
static get is() { return "casino-challenges-list"; }
|
|
89
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,6 +243,24 @@ export class CasinoChallengeList {
|
|
|
242
243
|
"attribute": "has-more",
|
|
243
244
|
"reflect": true,
|
|
244
245
|
"defaultValue": "false"
|
|
246
|
+
},
|
|
247
|
+
"activeTabIndex": {
|
|
248
|
+
"type": "number",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "number",
|
|
252
|
+
"resolved": "number",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": ""
|
|
260
|
+
},
|
|
261
|
+
"attribute": "active-tab-index",
|
|
262
|
+
"reflect": true,
|
|
263
|
+
"defaultValue": "0"
|
|
245
264
|
}
|
|
246
265
|
};
|
|
247
266
|
}
|