@everymatrix/casino-engagement-suite-tournament 0.0.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 +1 -0
- package/dist/casino-engagement-suite-tournament/p-5e83c304.entry.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-9996e3fd.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-d5ef82db.js +2 -0
- package/dist/casino-engagement-suite-tournament/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-tournament-d16da103.js +562 -0
- package/dist/cjs/casino-engagement-suite-tournament.cjs.entry.js +12 -0
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +25 -0
- package/dist/cjs/index-192fed5a.js +1346 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +12 -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 +511 -0
- package/dist/collection/components/casino-engagement-suite-tournament/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/shared/GradientRoundedButton.js +11 -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/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-tournament-af4ed1fe.js +560 -0
- package/dist/esm/casino-engagement-suite-tournament.entry.js +4 -0
- package/dist/esm/casino-engagement-suite-tournament.js +20 -0
- package/dist/esm/index-c8be0c5b.js +1317 -0
- package/dist/esm/index.js +4 -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/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +127 -0
- package/dist/types/components/casino-engagement-suite-tournament/index.d.ts +1 -0
- package/dist/types/components.d.ts +95 -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 +1674 -0
- package/dist/types/utils/api.apdater.d.ts +3 -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 +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,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
|
+
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
|
+
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 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 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1,24 @@
|
|
|
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): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/esm/loader.js';
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(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)}})();
|
|
2
|
+
export * from '../dist/esm/loader.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "casino-engagement-suite-tournament-loader",
|
|
3
|
+
"private": true,
|
|
4
|
+
"typings": "./index.d.ts",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.cjs.js",
|
|
7
|
+
"jsnext:main": "./index.es2017.js",
|
|
8
|
+
"es2015": "./index.es2017.js",
|
|
9
|
+
"es2017": "./index.es2017.js",
|
|
10
|
+
"unpkg": "./cdn.js"
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/casino-engagement-suite-tournament",
|
|
3
|
+
"version": "0.0.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
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/esm/casino-engagement-suite-tournament.js",
|
|
15
|
+
"require": "./dist/cjs/casino-engagement-suite-tournament.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./dist/cjs/casino-engagement-suite-tournament.cjs.js": "./dist/cjs/casino-engagement-suite-tournament.cjs.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/",
|
|
21
|
+
"loader/"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|