@everymatrix/casino-engagement-suite-challenges-details 1.0.69
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-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.esm.js +1 -0
- package/dist/casino-engagement-suite-challenges-details/index.esm.js +0 -0
- package/dist/casino-engagement-suite-challenges-details/p-11d8b487.js +2 -0
- package/dist/casino-engagement-suite-challenges-details/p-d908af25.entry.js +1 -0
- package/dist/casino-engagement-suite-challenges-details/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-challenges-details.cjs.js +25 -0
- package/dist/cjs/casino-engagement-suite-challenges-details_2.cjs.entry.js +334 -0
- package/dist/cjs/index-a758ba24.js +1249 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.css +302 -0
- package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.js +451 -0
- package/dist/collection/components/casino-engagement-suite-challenges-details/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/casino-challenges-details.js +16 -0
- package/dist/collection/utils/index.js +10 -0
- package/dist/collection/utils/locale.utils.js +23 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-challenges-details.js +20 -0
- package/dist/esm/casino-engagement-suite-challenges-details_2.entry.js +329 -0
- package/dist/esm/index-c193b756.js +1221 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.d.ts +74 -0
- package/dist/types/components/casino-engagement-suite-challenges-details/index.d.ts +1 -0
- package/dist/types/components.d.ts +131 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/casino-challenges-details.d.ts +62 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-c193b756.js';
|
|
2
|
+
export { s as setNonce } from './index-c193b756.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["casino-engagement-suite-challenges-details_2",[[1,"casino-engagement-suite-challenges-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[1040],"inProgressChallenges":[1040],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"pausedChallengeIds":[1040],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32]},null,{"challenge":["challengePropHandler"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-engagement-suite-challenges-details',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-engagement-suite-challenges-details',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Challenge, LevelProgress } from '../../models/casino-challenges-details';
|
|
3
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-progress-bar/dist/types/index";
|
|
4
|
+
export declare class CasinoEngagementSuiteChallengesDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Client custom styling via string
|
|
7
|
+
*/
|
|
8
|
+
clientStyling: string;
|
|
9
|
+
/**
|
|
10
|
+
* Client custom styling via url
|
|
11
|
+
*/
|
|
12
|
+
clientStylingUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* Selected challenge
|
|
15
|
+
*/
|
|
16
|
+
challenge: Challenge;
|
|
17
|
+
/**
|
|
18
|
+
*Active challenges
|
|
19
|
+
*/
|
|
20
|
+
inProgressChallenges: Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Language of the widget
|
|
23
|
+
*/
|
|
24
|
+
language: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current game slug
|
|
27
|
+
*/
|
|
28
|
+
gameSlug: string;
|
|
29
|
+
/**
|
|
30
|
+
* User's device type
|
|
31
|
+
*/
|
|
32
|
+
device: "Mobile" | "Tablet" | "Desktop";
|
|
33
|
+
/**
|
|
34
|
+
*Is joining to challenge
|
|
35
|
+
*/
|
|
36
|
+
isJoiningToChallenge: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*Paused Challenge Ids
|
|
39
|
+
*/
|
|
40
|
+
pausedChallengeIds: Array<string>;
|
|
41
|
+
close: EventEmitter<void>;
|
|
42
|
+
back: EventEmitter<void>;
|
|
43
|
+
resetNewChallengeLabel: EventEmitter<string>;
|
|
44
|
+
private limitStylingAppends;
|
|
45
|
+
timer: string;
|
|
46
|
+
showDetails: boolean;
|
|
47
|
+
isExpiredChallenge: boolean;
|
|
48
|
+
host: HTMLElement;
|
|
49
|
+
challengeDetails: HTMLElement;
|
|
50
|
+
challengePropHandler(value: Challenge): void;
|
|
51
|
+
interval: any;
|
|
52
|
+
componentWillLoad(): void;
|
|
53
|
+
componentDidRender(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
setClientStyling: () => void;
|
|
56
|
+
setClientStylingURL: () => void;
|
|
57
|
+
getActionsTemplate(): any;
|
|
58
|
+
getChallengeHeader(): any;
|
|
59
|
+
getChallengeCountdown(): any;
|
|
60
|
+
getChallengeDetails(): any;
|
|
61
|
+
handleCloseClick: () => void;
|
|
62
|
+
handleBackClick: () => void;
|
|
63
|
+
resetNewLabel(): void;
|
|
64
|
+
onGameClick: (ev: MouseEvent) => void;
|
|
65
|
+
changeChallengeStatus: (e: MouseEvent) => void;
|
|
66
|
+
startCountdown(): void;
|
|
67
|
+
updateTimer(): void;
|
|
68
|
+
getLevelTarget(level: LevelProgress): any;
|
|
69
|
+
getLevelBetRangesDetails(level: LevelProgress): any;
|
|
70
|
+
getChallengeLevels(): any;
|
|
71
|
+
getToggleButton(): any;
|
|
72
|
+
toggle: () => void;
|
|
73
|
+
render(): any;
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteChallengesDetails } from './casino-engagement-suite-challenges-details';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { Challenge } from "./models/casino-challenges-details";
|
|
9
|
+
export { Challenge } from "./models/casino-challenges-details";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface CasinoEngagementSuiteChallengesDetails {
|
|
12
|
+
/**
|
|
13
|
+
* Selected challenge
|
|
14
|
+
*/
|
|
15
|
+
"challenge": Challenge;
|
|
16
|
+
/**
|
|
17
|
+
* Client custom styling via string
|
|
18
|
+
*/
|
|
19
|
+
"clientStyling": string;
|
|
20
|
+
/**
|
|
21
|
+
* Client custom styling via url
|
|
22
|
+
*/
|
|
23
|
+
"clientStylingUrl": string;
|
|
24
|
+
/**
|
|
25
|
+
* User's device type
|
|
26
|
+
*/
|
|
27
|
+
"device": "Mobile" | "Tablet" | "Desktop";
|
|
28
|
+
/**
|
|
29
|
+
* Current game slug
|
|
30
|
+
*/
|
|
31
|
+
"gameSlug": string;
|
|
32
|
+
/**
|
|
33
|
+
* Active challenges
|
|
34
|
+
*/
|
|
35
|
+
"inProgressChallenges": Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Is joining to challenge
|
|
38
|
+
*/
|
|
39
|
+
"isJoiningToChallenge": boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Language of the widget
|
|
42
|
+
*/
|
|
43
|
+
"language": string;
|
|
44
|
+
/**
|
|
45
|
+
* Paused Challenge Ids
|
|
46
|
+
*/
|
|
47
|
+
"pausedChallengeIds": string[];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export interface CasinoEngagementSuiteChallengesDetailsCustomEvent<T> extends CustomEvent<T> {
|
|
51
|
+
detail: T;
|
|
52
|
+
target: HTMLCasinoEngagementSuiteChallengesDetailsElement;
|
|
53
|
+
}
|
|
54
|
+
declare global {
|
|
55
|
+
interface HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap {
|
|
56
|
+
"close": void;
|
|
57
|
+
"back": void;
|
|
58
|
+
"resetNewChallengeLabel": string;
|
|
59
|
+
}
|
|
60
|
+
interface HTMLCasinoEngagementSuiteChallengesDetailsElement extends Components.CasinoEngagementSuiteChallengesDetails, HTMLStencilElement {
|
|
61
|
+
addEventListener<K extends keyof HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteChallengesDetailsElement, ev: CasinoEngagementSuiteChallengesDetailsCustomEvent<HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
62
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
63
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
64
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
65
|
+
removeEventListener<K extends keyof HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteChallengesDetailsElement, ev: CasinoEngagementSuiteChallengesDetailsCustomEvent<HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
66
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
67
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
68
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
69
|
+
}
|
|
70
|
+
var HTMLCasinoEngagementSuiteChallengesDetailsElement: {
|
|
71
|
+
prototype: HTMLCasinoEngagementSuiteChallengesDetailsElement;
|
|
72
|
+
new (): HTMLCasinoEngagementSuiteChallengesDetailsElement;
|
|
73
|
+
};
|
|
74
|
+
interface HTMLElementTagNameMap {
|
|
75
|
+
"casino-engagement-suite-challenges-details": HTMLCasinoEngagementSuiteChallengesDetailsElement;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
declare namespace LocalJSX {
|
|
79
|
+
interface CasinoEngagementSuiteChallengesDetails {
|
|
80
|
+
/**
|
|
81
|
+
* Selected challenge
|
|
82
|
+
*/
|
|
83
|
+
"challenge"?: Challenge;
|
|
84
|
+
/**
|
|
85
|
+
* Client custom styling via string
|
|
86
|
+
*/
|
|
87
|
+
"clientStyling"?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Client custom styling via url
|
|
90
|
+
*/
|
|
91
|
+
"clientStylingUrl"?: string;
|
|
92
|
+
/**
|
|
93
|
+
* User's device type
|
|
94
|
+
*/
|
|
95
|
+
"device"?: "Mobile" | "Tablet" | "Desktop";
|
|
96
|
+
/**
|
|
97
|
+
* Current game slug
|
|
98
|
+
*/
|
|
99
|
+
"gameSlug"?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Active challenges
|
|
102
|
+
*/
|
|
103
|
+
"inProgressChallenges"?: Array<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Is joining to challenge
|
|
106
|
+
*/
|
|
107
|
+
"isJoiningToChallenge"?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Language of the widget
|
|
110
|
+
*/
|
|
111
|
+
"language"?: string;
|
|
112
|
+
"onBack"?: (event: CasinoEngagementSuiteChallengesDetailsCustomEvent<void>) => void;
|
|
113
|
+
"onClose"?: (event: CasinoEngagementSuiteChallengesDetailsCustomEvent<void>) => void;
|
|
114
|
+
"onResetNewChallengeLabel"?: (event: CasinoEngagementSuiteChallengesDetailsCustomEvent<string>) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Paused Challenge Ids
|
|
117
|
+
*/
|
|
118
|
+
"pausedChallengeIds"?: string[];
|
|
119
|
+
}
|
|
120
|
+
interface IntrinsicElements {
|
|
121
|
+
"casino-engagement-suite-challenges-details": CasinoEngagementSuiteChallengesDetails;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export { LocalJSX as JSX };
|
|
125
|
+
declare module "@stencil/core" {
|
|
126
|
+
export namespace JSX {
|
|
127
|
+
interface IntrinsicElements {
|
|
128
|
+
"casino-engagement-suite-challenges-details": LocalJSX.CasinoEngagementSuiteChallengesDetails & JSXBase.HTMLAttributes<HTMLCasinoEngagementSuiteChallengesDetailsElement>;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface ChallengePresentation {
|
|
2
|
+
Description: string;
|
|
3
|
+
PresentationName: string;
|
|
4
|
+
Url?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Game {
|
|
7
|
+
CasinoGameId: number;
|
|
8
|
+
GameIcon: string;
|
|
9
|
+
GameId: string;
|
|
10
|
+
GameName: string;
|
|
11
|
+
GameSlug: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BetRange {
|
|
14
|
+
MinBet: number;
|
|
15
|
+
MaxBet: number;
|
|
16
|
+
}
|
|
17
|
+
export interface Reward {
|
|
18
|
+
RewardId: number;
|
|
19
|
+
Type: number;
|
|
20
|
+
}
|
|
21
|
+
export declare enum ChallengeLevelProgressStatus {
|
|
22
|
+
Closed = 0,
|
|
23
|
+
InProgress = 1,
|
|
24
|
+
Fillup = 2,
|
|
25
|
+
Completed = 3
|
|
26
|
+
}
|
|
27
|
+
export interface LevelProgress {
|
|
28
|
+
BetRange?: BetRange;
|
|
29
|
+
CurrentBetCount: number;
|
|
30
|
+
CurrentTurnover: number;
|
|
31
|
+
LevelContributionPercent: number;
|
|
32
|
+
LevelId: string;
|
|
33
|
+
LevelTargetType: number;
|
|
34
|
+
OrderNumber: number;
|
|
35
|
+
ProgressPercentage: number;
|
|
36
|
+
ProgressStatus: ChallengeLevelProgressStatus;
|
|
37
|
+
Rewards: Array<Reward>;
|
|
38
|
+
TargetBetCount: number;
|
|
39
|
+
TargetTurnover: number;
|
|
40
|
+
DisplayCurrencyTargetTurnover: number;
|
|
41
|
+
CustomRewardMessage: string;
|
|
42
|
+
}
|
|
43
|
+
export declare enum ChallengeProgressStatus {
|
|
44
|
+
Started = 0,
|
|
45
|
+
InProgress = 1,
|
|
46
|
+
PendingLevelReward = 2,
|
|
47
|
+
Completed = 3,
|
|
48
|
+
Expired = 4,
|
|
49
|
+
Forfeited = 5
|
|
50
|
+
}
|
|
51
|
+
export interface Challenge {
|
|
52
|
+
ChallengePresentation: ChallengePresentation;
|
|
53
|
+
CurrencySymbol: string;
|
|
54
|
+
DomainId: number;
|
|
55
|
+
ExpirationTime: string;
|
|
56
|
+
Games: Array<Game>;
|
|
57
|
+
Id: string;
|
|
58
|
+
ChallengeId: string;
|
|
59
|
+
LevelProgresses: Array<LevelProgress>;
|
|
60
|
+
Status: ChallengeProgressStatus;
|
|
61
|
+
IsNew: boolean;
|
|
62
|
+
}
|