@everymatrix/casino-engagement-suite-luckywheel-list 0.1.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/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.esm.js +1 -0
- package/dist/casino-engagement-suite-luckywheel-list/index.esm.js +1 -0
- package/dist/casino-engagement-suite-luckywheel-list/p-c227cdc7.js +2 -0
- package/dist/casino-engagement-suite-luckywheel-list/p-d1ea0bae.entry.js +1 -0
- package/dist/casino-engagement-suite-luckywheel-list/p-e1255160.js +1 -0
- package/dist/casino-engagement-suite-luckywheel-list/p-f007d81f.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-luckywheel-list-726f2e8f.js +2574 -0
- package/dist/cjs/casino-engagement-suite-luckywheel-list.cjs.js +25 -0
- package/dist/cjs/casino-engagement-suite-luckywheel-list_2.cjs.entry.js +73 -0
- package/dist/cjs/index-3815b8e0.js +1333 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.css +454 -0
- package/dist/collection/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.js +467 -0
- package/dist/collection/components/casino-engagement-suite-luckywheel-list/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/luckywheel.js +14 -0
- package/dist/collection/renders/LuckyWheelsHistory.js +52 -0
- package/dist/collection/utils/locale.utils.js +46 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-luckywheel-list-864bcb68.js +2572 -0
- package/dist/esm/casino-engagement-suite-luckywheel-list.js +20 -0
- package/dist/esm/casino-engagement-suite-luckywheel-list_2.entry.js +68 -0
- package/dist/esm/index-68de30f0.js +1305 -0
- package/dist/esm/index.js +2 -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 +14 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.d.ts +84 -0
- package/dist/types/components/casino-engagement-suite-luckywheel-list/index.d.ts +1 -0
- package/dist/types/components.d.ts +119 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/luckywheel.d.ts +41 -0
- package/dist/types/renders/LuckyWheelsHistory.d.ts +6 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/utils/locale.utils.d.ts +2 -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 +26 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-68de30f0.js';
|
|
2
|
+
export { s as setNonce } from './index-68de30f0.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-luckywheel-list_2",[[1,"casino-engagement-suite-luckywheel-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"luckywheels":[1040],"endpoint":[1],"session":[1],"translationUrl":[1,"translation-url"],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"activeTab":[32],"historyLoading":[32],"luckywheelHistory":[32],"openedHistoryIds":[32],"historyLoaded":[32],"isLoading":[32]},[[8,"message","handleEvent"]],{"luckywheels":["luckywheelsPropHandler"]}],[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-luckywheel-list',
|
|
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,84 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-progress-bar/dist/types/index";
|
|
3
|
+
import "../../../../../../dist/packages/svelte/general-animation-loading/es2015/general-animation-loading";
|
|
4
|
+
import { LuckyWheel } from '../../components';
|
|
5
|
+
import { LuckyWheelHistory } from '../../models/luckywheel';
|
|
6
|
+
export declare class CasinoEngagementSuiteLuckyWheelList {
|
|
7
|
+
/**
|
|
8
|
+
* Client custom styling via string
|
|
9
|
+
*/
|
|
10
|
+
clientStyling: string;
|
|
11
|
+
/**
|
|
12
|
+
* Client custom styling via url
|
|
13
|
+
*/
|
|
14
|
+
clientStylingUrl: string;
|
|
15
|
+
/**
|
|
16
|
+
* Language of the widget
|
|
17
|
+
*/
|
|
18
|
+
language: string;
|
|
19
|
+
/**
|
|
20
|
+
* User's device type
|
|
21
|
+
*/
|
|
22
|
+
device: "Mobile" | "Tablet" | "Desktop";
|
|
23
|
+
/**
|
|
24
|
+
* List of lucky wheels
|
|
25
|
+
*/
|
|
26
|
+
luckywheels: Array<LuckyWheel>;
|
|
27
|
+
/**
|
|
28
|
+
* The NWA endpoint
|
|
29
|
+
*/
|
|
30
|
+
endpoint: string;
|
|
31
|
+
/**
|
|
32
|
+
* The NWA session for the logged-in user
|
|
33
|
+
*/
|
|
34
|
+
session?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Translations via URL
|
|
37
|
+
*/
|
|
38
|
+
translationUrl?: string;
|
|
39
|
+
close: EventEmitter<void>;
|
|
40
|
+
tooltip: boolean;
|
|
41
|
+
timers: Record<string, string>;
|
|
42
|
+
private limitStylingAppends;
|
|
43
|
+
activeTab: number;
|
|
44
|
+
historyLoading: boolean;
|
|
45
|
+
luckywheelHistory: Record<string, Array<LuckyWheelHistory>>;
|
|
46
|
+
openedHistoryIds: Array<string>;
|
|
47
|
+
historyLoaded: boolean;
|
|
48
|
+
isLoading: boolean;
|
|
49
|
+
host: HTMLElement;
|
|
50
|
+
handleEvent(e: any): void;
|
|
51
|
+
luckywheelsPropHandler(value: Array<LuckyWheel>): void;
|
|
52
|
+
interval: any;
|
|
53
|
+
componentWillLoad(): Promise<any>;
|
|
54
|
+
getLuckyWheels(): void;
|
|
55
|
+
getLuckyWheelsHistory(luckywheelId: string): Promise<any>;
|
|
56
|
+
componentDidRender(): void;
|
|
57
|
+
disconnectedCallback(): void;
|
|
58
|
+
setClientStyling: () => void;
|
|
59
|
+
setClientStylingURL: () => void;
|
|
60
|
+
startCountdown(): void;
|
|
61
|
+
updateTimers(): void;
|
|
62
|
+
handleCloseClick: () => void;
|
|
63
|
+
handleLuckyWheelClick: (ev: MouseEvent) => void;
|
|
64
|
+
showTooltip: () => void;
|
|
65
|
+
hideTooltip: () => void;
|
|
66
|
+
removeLuckyWheel(id: string): void;
|
|
67
|
+
handleTabChange: (e: MouseEvent) => void;
|
|
68
|
+
sendHistoryRequest(): Promise<void>;
|
|
69
|
+
toggleLuckyWheelHistory: (ev: MouseEvent) => void;
|
|
70
|
+
getLuckyWheelClasses(luckyWheel: LuckyWheel): {
|
|
71
|
+
LuckyWheelsCard: boolean;
|
|
72
|
+
LuckyWheelsEmptyNumber: boolean;
|
|
73
|
+
};
|
|
74
|
+
getLuckyWheelName(luckywheel: LuckyWheel): any;
|
|
75
|
+
getLuckyWheelHeaderTemplate(luckywheel: LuckyWheel): any;
|
|
76
|
+
getLuckyWheelTemplate(luckywheel: LuckyWheel, index: number): any;
|
|
77
|
+
getHeaderTemplate(): any;
|
|
78
|
+
getListTemplate(): any;
|
|
79
|
+
getTooltipTemplate(): any;
|
|
80
|
+
getTabsTemplate(): any;
|
|
81
|
+
getHistoryTabTemplate(): any;
|
|
82
|
+
getTabsContentTemplate(): any;
|
|
83
|
+
render(): any;
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list';
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { unknown as LuckyWheel } from "./components";
|
|
9
|
+
export { unknown as LuckyWheel } from "./components";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface CasinoEngagementSuiteLuckywheelList {
|
|
12
|
+
/**
|
|
13
|
+
* Client custom styling via string
|
|
14
|
+
*/
|
|
15
|
+
"clientStyling": string;
|
|
16
|
+
/**
|
|
17
|
+
* Client custom styling via url
|
|
18
|
+
*/
|
|
19
|
+
"clientStylingUrl": string;
|
|
20
|
+
/**
|
|
21
|
+
* User's device type
|
|
22
|
+
*/
|
|
23
|
+
"device": "Mobile" | "Tablet" | "Desktop";
|
|
24
|
+
/**
|
|
25
|
+
* The NWA endpoint
|
|
26
|
+
*/
|
|
27
|
+
"endpoint": string;
|
|
28
|
+
/**
|
|
29
|
+
* Language of the widget
|
|
30
|
+
*/
|
|
31
|
+
"language": string;
|
|
32
|
+
/**
|
|
33
|
+
* List of lucky wheels
|
|
34
|
+
*/
|
|
35
|
+
"luckywheels": LuckyWheel[];
|
|
36
|
+
/**
|
|
37
|
+
* The NWA session for the logged-in user
|
|
38
|
+
*/
|
|
39
|
+
"session"?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Translations via URL
|
|
42
|
+
*/
|
|
43
|
+
"translationUrl"?: string;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export interface CasinoEngagementSuiteLuckywheelListCustomEvent<T> extends CustomEvent<T> {
|
|
47
|
+
detail: T;
|
|
48
|
+
target: HTMLCasinoEngagementSuiteLuckywheelListElement;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLCasinoEngagementSuiteLuckywheelListElementEventMap {
|
|
52
|
+
"close": void;
|
|
53
|
+
}
|
|
54
|
+
interface HTMLCasinoEngagementSuiteLuckywheelListElement extends Components.CasinoEngagementSuiteLuckywheelList, HTMLStencilElement {
|
|
55
|
+
addEventListener<K extends keyof HTMLCasinoEngagementSuiteLuckywheelListElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteLuckywheelListElement, ev: CasinoEngagementSuiteLuckywheelListCustomEvent<HTMLCasinoEngagementSuiteLuckywheelListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
56
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
57
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
58
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
59
|
+
removeEventListener<K extends keyof HTMLCasinoEngagementSuiteLuckywheelListElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteLuckywheelListElement, ev: CasinoEngagementSuiteLuckywheelListCustomEvent<HTMLCasinoEngagementSuiteLuckywheelListElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
60
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
61
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
62
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
63
|
+
}
|
|
64
|
+
var HTMLCasinoEngagementSuiteLuckywheelListElement: {
|
|
65
|
+
prototype: HTMLCasinoEngagementSuiteLuckywheelListElement;
|
|
66
|
+
new (): HTMLCasinoEngagementSuiteLuckywheelListElement;
|
|
67
|
+
};
|
|
68
|
+
interface HTMLElementTagNameMap {
|
|
69
|
+
"casino-engagement-suite-luckywheel-list": HTMLCasinoEngagementSuiteLuckywheelListElement;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
declare namespace LocalJSX {
|
|
73
|
+
interface CasinoEngagementSuiteLuckywheelList {
|
|
74
|
+
/**
|
|
75
|
+
* Client custom styling via string
|
|
76
|
+
*/
|
|
77
|
+
"clientStyling"?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Client custom styling via url
|
|
80
|
+
*/
|
|
81
|
+
"clientStylingUrl"?: string;
|
|
82
|
+
/**
|
|
83
|
+
* User's device type
|
|
84
|
+
*/
|
|
85
|
+
"device"?: "Mobile" | "Tablet" | "Desktop";
|
|
86
|
+
/**
|
|
87
|
+
* The NWA endpoint
|
|
88
|
+
*/
|
|
89
|
+
"endpoint": string;
|
|
90
|
+
/**
|
|
91
|
+
* Language of the widget
|
|
92
|
+
*/
|
|
93
|
+
"language"?: string;
|
|
94
|
+
/**
|
|
95
|
+
* List of lucky wheels
|
|
96
|
+
*/
|
|
97
|
+
"luckywheels"?: LuckyWheel[];
|
|
98
|
+
"onClose"?: (event: CasinoEngagementSuiteLuckywheelListCustomEvent<void>) => void;
|
|
99
|
+
/**
|
|
100
|
+
* The NWA session for the logged-in user
|
|
101
|
+
*/
|
|
102
|
+
"session"?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Translations via URL
|
|
105
|
+
*/
|
|
106
|
+
"translationUrl"?: string;
|
|
107
|
+
}
|
|
108
|
+
interface IntrinsicElements {
|
|
109
|
+
"casino-engagement-suite-luckywheel-list": CasinoEngagementSuiteLuckywheelList;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export { LocalJSX as JSX };
|
|
113
|
+
declare module "@stencil/core" {
|
|
114
|
+
export namespace JSX {
|
|
115
|
+
interface IntrinsicElements {
|
|
116
|
+
"casino-engagement-suite-luckywheel-list": LocalJSX.CasinoEngagementSuiteLuckywheelList & JSXBase.HTMLAttributes<HTMLCasinoEngagementSuiteLuckywheelListElement>;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/casino-engagement-suite-luckywheel-list';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum LuckyWheelRewardType {
|
|
2
|
+
FreeSpins = 0,
|
|
3
|
+
LuckyWheel = 1,
|
|
4
|
+
Leaderboard = 2,
|
|
5
|
+
Challenge = 3,
|
|
6
|
+
Custom = 4
|
|
7
|
+
}
|
|
8
|
+
export declare enum LuckyWheelHistoryLevelStatus {
|
|
9
|
+
Completed = 0,
|
|
10
|
+
Expired = 1,
|
|
11
|
+
Forfeited = 2
|
|
12
|
+
}
|
|
13
|
+
export interface LuckyWheelHistory {
|
|
14
|
+
draw: any;
|
|
15
|
+
ticket: string;
|
|
16
|
+
}
|
|
17
|
+
export interface Reward {
|
|
18
|
+
RewardId: number;
|
|
19
|
+
Type: number;
|
|
20
|
+
}
|
|
21
|
+
export interface LuckyWheel {
|
|
22
|
+
program: LuckyWheelProgram;
|
|
23
|
+
current?: Record<string, string | number>;
|
|
24
|
+
next?: Record<string, string | number>;
|
|
25
|
+
}
|
|
26
|
+
export interface LuckyWheelProgram {
|
|
27
|
+
baseCurrency: string;
|
|
28
|
+
editor: string;
|
|
29
|
+
id: string;
|
|
30
|
+
metadata: Record<string, string>;
|
|
31
|
+
name: Record<string, string>;
|
|
32
|
+
status: string;
|
|
33
|
+
time: string;
|
|
34
|
+
type: string;
|
|
35
|
+
version: string;
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}
|
|
38
|
+
export interface LuckyWheelHistoryResult {
|
|
39
|
+
outcomes: Array<any>;
|
|
40
|
+
wheelOfFortunePartitionIndex: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LuckyWheel, LuckyWheelHistory } from '../models/luckywheel';
|
|
2
|
+
export declare const getHistoryLoaderTemplate: (lang: string) => any;
|
|
3
|
+
export declare const getRewardTemplate: (reward: any, lang: string) => any;
|
|
4
|
+
export declare const getHistoryLevelRewardsTemplate: (level: any, lang: string) => any;
|
|
5
|
+
export declare const getHistoryLevelTemplate: (level: any, index: number, lang: string) => any;
|
|
6
|
+
export declare const getLuckyWheelsHistoryTemplate: (luckywheels: Array<LuckyWheel>, historyGroups: Record<string, Array<LuckyWheelHistory>>, openedHistoryIds: Array<string>, toggleLuckyWheelHistory: (ev: MouseEvent) => void, lang: string) => any;
|