@everymatrix/casino-engagement-suite-tournament 1.39.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-tournament/casino-engagement-suite-tournament.esm.js +1 -0
- package/dist/casino-engagement-suite-tournament/index.esm.js +0 -0
- package/dist/casino-engagement-suite-tournament/p-75de0549.entry.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-86ce7485.js +1 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +824 -0
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +19 -0
- package/dist/cjs/index-e778ddd2.js +1733 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/collection-manifest.json +25 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +374 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +601 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/shared/GradientRoundedButton.js +12 -0
- package/dist/collection/shared/icons.js +8 -0
- package/dist/collection/shared/renderBar.js +14 -0
- package/dist/collection/utils/api.apdater.js +35 -0
- package/dist/collection/utils/translations.js +28 -0
- package/dist/collection/utils/types.js +18 -0
- package/dist/collection/utils/util.date.js +38 -0
- package/dist/collection/utils/utils.js +18 -0
- package/dist/components/casino-engagement-suite-progress-bar.js +6 -0
- package/dist/components/casino-engagement-suite-progress-bar2.js +94 -0
- package/dist/components/casino-engagement-suite-tournament.d.ts +11 -0
- package/dist/components/casino-engagement-suite-tournament.js +716 -0
- package/dist/components/general-styling-wrapper.js +6 -0
- package/dist/components/general-styling-wrapper2.js +103 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +818 -0
- package/dist/esm/casino-engagement-suite-tournament.js +17 -0
- package/dist/esm/index-4e611d33.js +1704 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +22 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-tournament/.stencil/packages/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +130 -0
- package/dist/types/components.d.ts +79 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/shared/GradientRoundedButton.d.ts +5 -0
- package/dist/types/shared/icons.d.ts +7 -0
- package/dist/types/shared/renderBar.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/api.apdater.d.ts +31 -0
- package/dist/types/utils/translations.d.ts +42 -0
- package/dist/types/utils/types.d.ts +95 -0
- package/dist/types/utils/util.date.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +26 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Leaderboard, TournamentApi } from "./types";
|
|
2
|
+
export declare const tournamentAdapter: (tournamentApi: TournamentApi) => {
|
|
3
|
+
href: string;
|
|
4
|
+
id: string;
|
|
5
|
+
nameOrTitle: string;
|
|
6
|
+
description: string;
|
|
7
|
+
termsUrl: string;
|
|
8
|
+
thumbnail: string;
|
|
9
|
+
thumbnails: [];
|
|
10
|
+
startTime: Date;
|
|
11
|
+
endTime: Date;
|
|
12
|
+
closeTime: Date;
|
|
13
|
+
exhibitionStartTime: Date;
|
|
14
|
+
exhibitionEndTime: Date;
|
|
15
|
+
state: import("./types").TournamentState;
|
|
16
|
+
tags: string;
|
|
17
|
+
minBetCount: number;
|
|
18
|
+
dataSource: string;
|
|
19
|
+
scoreCriteria: string;
|
|
20
|
+
wallets: {
|
|
21
|
+
code: string;
|
|
22
|
+
};
|
|
23
|
+
prizes: {
|
|
24
|
+
rank: number;
|
|
25
|
+
count: number;
|
|
26
|
+
name: string;
|
|
27
|
+
}[];
|
|
28
|
+
games?: any[];
|
|
29
|
+
playerEnrolled?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare const leaderboardsAdapter: (leaderboardRes: any) => Leaderboard[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare enum Tab {
|
|
2
|
+
Info = "Info",
|
|
3
|
+
Leaderboard = "Leaderboard",
|
|
4
|
+
Games = "Games"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Time {
|
|
7
|
+
Starts = "Starts",
|
|
8
|
+
Ends = "Ends"
|
|
9
|
+
}
|
|
10
|
+
export declare const localePostprocess: (translationText: any, props: any) => any;
|
|
11
|
+
export declare const TRANSLATIONS: {
|
|
12
|
+
TC: string;
|
|
13
|
+
ScoreCriteria: string;
|
|
14
|
+
MinimumBetCriteria: string;
|
|
15
|
+
Place: string;
|
|
16
|
+
Prizes: string;
|
|
17
|
+
LeaderboardDetails: string;
|
|
18
|
+
UnjoinDialog: {
|
|
19
|
+
Title: string;
|
|
20
|
+
Description: string;
|
|
21
|
+
ButtonYes: string;
|
|
22
|
+
ButtonNo: string;
|
|
23
|
+
};
|
|
24
|
+
JoinDialog: {
|
|
25
|
+
Tile: string;
|
|
26
|
+
Description: string;
|
|
27
|
+
ButtonYes: string;
|
|
28
|
+
ButtonNo: string;
|
|
29
|
+
};
|
|
30
|
+
NoLeaderboards: string;
|
|
31
|
+
NoLeaderboardsTip: string;
|
|
32
|
+
Leaderboards: string;
|
|
33
|
+
TipPrize: string;
|
|
34
|
+
Tip: string;
|
|
35
|
+
Starts: Time.Starts;
|
|
36
|
+
Ends: Time.Ends;
|
|
37
|
+
Info: Tab.Info;
|
|
38
|
+
Leaderboard: Tab.Leaderboard;
|
|
39
|
+
Games: Tab.Games;
|
|
40
|
+
Join: string;
|
|
41
|
+
Unjoin: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare enum LeaderboardPage {
|
|
2
|
+
Confirm = "Confirm",
|
|
3
|
+
List = "List",
|
|
4
|
+
Item = "Item"
|
|
5
|
+
}
|
|
6
|
+
export declare enum TournamentState {
|
|
7
|
+
Running = "Running",
|
|
8
|
+
Unstarted = "Unstarted",
|
|
9
|
+
Closed = "Closed",
|
|
10
|
+
Closing = "Closing"
|
|
11
|
+
}
|
|
12
|
+
export interface TournamentApi {
|
|
13
|
+
href: string;
|
|
14
|
+
id: string;
|
|
15
|
+
nameOrTitle: string;
|
|
16
|
+
description: string;
|
|
17
|
+
termsUrl: string;
|
|
18
|
+
thumbnail: string;
|
|
19
|
+
thumbnails: [];
|
|
20
|
+
startTime: string;
|
|
21
|
+
endTime: string;
|
|
22
|
+
closeTime: string;
|
|
23
|
+
exhibitionStartTime: string;
|
|
24
|
+
exhibitionEndTime: string;
|
|
25
|
+
state: TournamentState;
|
|
26
|
+
tags: string;
|
|
27
|
+
minBetCount: number;
|
|
28
|
+
dataSource: string;
|
|
29
|
+
scoreCriteria: string;
|
|
30
|
+
wallets: {
|
|
31
|
+
code: string;
|
|
32
|
+
};
|
|
33
|
+
prizes: {
|
|
34
|
+
rank: number;
|
|
35
|
+
count: number;
|
|
36
|
+
name: string;
|
|
37
|
+
}[];
|
|
38
|
+
games?: any[];
|
|
39
|
+
playerEnrolled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface LeaderboardApi {
|
|
42
|
+
rank: number;
|
|
43
|
+
rankWithoutUnqualified: number;
|
|
44
|
+
prizeName: string;
|
|
45
|
+
domainID: number;
|
|
46
|
+
userID: string;
|
|
47
|
+
shortName: string;
|
|
48
|
+
betCount: number;
|
|
49
|
+
score: number;
|
|
50
|
+
unqualified: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface Leaderboard extends LeaderboardApi {
|
|
53
|
+
isMe?: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare type ChangeKeysType<T, K extends {
|
|
56
|
+
key: keyof T;
|
|
57
|
+
newType: any;
|
|
58
|
+
}[]> = {
|
|
59
|
+
[P in keyof T]: P extends K[number]['key'] ? Extract<K[number], {
|
|
60
|
+
key: P;
|
|
61
|
+
}>['newType'] : T[P];
|
|
62
|
+
};
|
|
63
|
+
declare type Changes = [
|
|
64
|
+
{
|
|
65
|
+
key: 'startTime';
|
|
66
|
+
newType: Date;
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: 'endTime';
|
|
70
|
+
newType: Date;
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'closeTime';
|
|
74
|
+
newType: Date;
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: 'exhibitionStartTime';
|
|
78
|
+
newType: Date;
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: 'exhibitionEndTime';
|
|
82
|
+
newType: Date;
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
export declare type Tournament = ChangeKeysType<TournamentApi, Changes>;
|
|
86
|
+
export declare enum DialogType {
|
|
87
|
+
Unjoin = "Unjoin",
|
|
88
|
+
Tip = "Tip"
|
|
89
|
+
}
|
|
90
|
+
export interface Dialog {
|
|
91
|
+
isOpen: boolean;
|
|
92
|
+
type: DialogType;
|
|
93
|
+
data: any;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function formatDate(date: any): any;
|
|
2
|
+
export declare function addDays(date: any, days: any): Date;
|
|
3
|
+
export declare function addMinutes(date: any, minutes: any): Date;
|
|
4
|
+
export declare function addSeconds(date: any, seconds: any): Date;
|
|
5
|
+
export declare function getDifference(startDate: Date, endDate: Date): string;
|
|
6
|
+
export declare function getProgress(startDate: Date, endDate: Date): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const classnames: (...args: any[]) => string;
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "casino-engagement-suite-tournament-loader",
|
|
3
|
+
"typings": "./index.d.ts",
|
|
4
|
+
"module": "./index.js",
|
|
5
|
+
"main": "./index.cjs.js",
|
|
6
|
+
"jsnext:main": "./index.es2017.js",
|
|
7
|
+
"es2015": "./index.es2017.js",
|
|
8
|
+
"es2017": "./index.es2017.js",
|
|
9
|
+
"unpkg": "./cdn.js"
|
|
10
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/casino-engagement-suite-tournament",
|
|
3
|
+
"version": "1.39.0",
|
|
4
|
+
"main": "./dist/index.cjs.js",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"es2015": "./dist/esm/index.mjs",
|
|
7
|
+
"es2017": "./dist/esm/index.mjs",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"collection": "./dist/collection/collection-manifest.json",
|
|
10
|
+
"collection:main": "./dist/collection/index.js",
|
|
11
|
+
"unpkg": "./dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/",
|
|
14
|
+
"loader/"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "nx run casino-engagement-suite-tournament:serve",
|
|
18
|
+
"build": "nx run casino-engagement-suite-tournament:build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@everymatrix/general-animation-loading": "^1.31.2"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|