@everymatrix/lottery-ticket 1.31.2 → 1.32.4
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/LICENSE +21 -0
- package/package.json +4 -3
- package/dist/cjs/index-e62c9a3f.js +0 -1283
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/lottery-bullet_3.cjs.entry.js +0 -504
- package/dist/cjs/lottery-ticket.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -25
- package/dist/collection/components/lottery-ticket/lottery-ticket.css +0 -307
- package/dist/collection/components/lottery-ticket/lottery-ticket.js +0 -494
- package/dist/collection/components/lottery-ticket/lottery-ticket.types.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/locale.utils.js +0 -58
- package/dist/collection/utils/utils.js +0 -0
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-bullet.js +0 -6
- package/dist/components/lottery-bullet2.js +0 -91
- package/dist/components/lottery-grid.js +0 -6
- package/dist/components/lottery-grid2.js +0 -245
- package/dist/components/lottery-ticket.d.ts +0 -11
- package/dist/components/lottery-ticket.js +0 -276
- package/dist/esm/index-a0f57440.js +0 -1257
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/lottery-bullet_3.entry.js +0 -498
- package/dist/esm/lottery-ticket.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/lottery-ticket/index.esm.js +0 -0
- package/dist/lottery-ticket/lottery-ticket.esm.js +0 -1
- package/dist/lottery-ticket/p-5aa3d0a5.entry.js +0 -1
- package/dist/lottery-ticket/p-9cd1415d.js +0 -1
- package/dist/stencil.config.js +0 -22
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/lottery-ticket/.stencil/packages/lottery-ticket/stencil.config.d.ts +0 -2
- package/dist/types/components/lottery-ticket/lottery-ticket.d.ts +0 -82
- package/dist/types/components/lottery-ticket/lottery-ticket.types.d.ts +0 -49
- package/dist/types/components.d.ts +0 -125
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/locale.utils.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +0 -0
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { GridEvent } from './lottery-ticket.types';
|
|
3
|
-
import '@everymatrix/lottery-grid';
|
|
4
|
-
export declare class LotteryTicket {
|
|
5
|
-
/**
|
|
6
|
-
* NorWAy endpoint
|
|
7
|
-
*/
|
|
8
|
-
endpoint: string;
|
|
9
|
-
/**
|
|
10
|
-
* Game ID
|
|
11
|
-
*/
|
|
12
|
-
gameId: string;
|
|
13
|
-
/**
|
|
14
|
-
* Number of grids of a ticket
|
|
15
|
-
*/
|
|
16
|
-
numberOfGrids: number;
|
|
17
|
-
/**
|
|
18
|
-
* Option to have the ticket registered for multiple draws
|
|
19
|
-
*/
|
|
20
|
-
multipleDraws: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Ticket ID
|
|
23
|
-
*/
|
|
24
|
-
ticketId: number;
|
|
25
|
-
/**
|
|
26
|
-
* Shows the reset button
|
|
27
|
-
*/
|
|
28
|
-
resetButton: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Shows the auto-pick button
|
|
31
|
-
*/
|
|
32
|
-
autoPick: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Language
|
|
35
|
-
*/
|
|
36
|
-
language: string;
|
|
37
|
-
/**
|
|
38
|
-
* Client custom styling via string
|
|
39
|
-
*/
|
|
40
|
-
clientStyling: string;
|
|
41
|
-
/**
|
|
42
|
-
* Client custom styling via url content
|
|
43
|
-
*/
|
|
44
|
-
clientStylingUrlContent: string;
|
|
45
|
-
private grids;
|
|
46
|
-
private gameData;
|
|
47
|
-
private ticket;
|
|
48
|
-
private stylingContainer;
|
|
49
|
-
multiplier: boolean;
|
|
50
|
-
private numberOfDraws;
|
|
51
|
-
private isLoading;
|
|
52
|
-
private hasErrors;
|
|
53
|
-
private ticketDone;
|
|
54
|
-
private isCustomSelect;
|
|
55
|
-
private amountInfo;
|
|
56
|
-
private limitStylingAppends;
|
|
57
|
-
/**
|
|
58
|
-
* @TODO find a better way to implement click outside the custom select, so that we don't have to use the 'data-cluster' attribute on each element
|
|
59
|
-
*/
|
|
60
|
-
checkForClickOutside(ev: any): void;
|
|
61
|
-
/**
|
|
62
|
-
* @TODO including ts type
|
|
63
|
-
*/
|
|
64
|
-
ticketCompleted: EventEmitter<any>;
|
|
65
|
-
autoSelection: EventEmitter<any>;
|
|
66
|
-
resetSelection: EventEmitter<any>;
|
|
67
|
-
stakeChange: EventEmitter<any>;
|
|
68
|
-
multiplierChange: EventEmitter<any>;
|
|
69
|
-
connectedCallback(): void;
|
|
70
|
-
componentDidRender(): void;
|
|
71
|
-
setClientStyling: () => void;
|
|
72
|
-
setClientStylingURL: () => void;
|
|
73
|
-
multiplierChangeHandler(e: any): void;
|
|
74
|
-
drawsChangeHandler(event: CustomEvent<any>): void;
|
|
75
|
-
gridFilledHandler(event: CustomEvent<GridEvent>): void;
|
|
76
|
-
toggleAutoSelection(): void;
|
|
77
|
-
toggleResetSelection(): void;
|
|
78
|
-
changeStake(ticketid: number, amount: string): void;
|
|
79
|
-
toggleClass(): void;
|
|
80
|
-
setDropdownItem(item: any): void;
|
|
81
|
-
render(): any;
|
|
82
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface GameData {
|
|
2
|
-
href: string;
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: any;
|
|
6
|
-
rules: Rules;
|
|
7
|
-
prize: Array<Prize>;
|
|
8
|
-
draws: Array<DrawItem>;
|
|
9
|
-
vendor: Vendor;
|
|
10
|
-
}
|
|
11
|
-
export interface Rules {
|
|
12
|
-
boards: Array<Boards>;
|
|
13
|
-
multiplier: boolean;
|
|
14
|
-
stakes: Array<Stakes>;
|
|
15
|
-
}
|
|
16
|
-
export interface Boards {
|
|
17
|
-
totalNumbers: number;
|
|
18
|
-
maximumAllowed: number;
|
|
19
|
-
minimumAllowed: number;
|
|
20
|
-
}
|
|
21
|
-
export interface Stakes {
|
|
22
|
-
currency: string;
|
|
23
|
-
amount: number;
|
|
24
|
-
}
|
|
25
|
-
export interface Prize {
|
|
26
|
-
currency: string;
|
|
27
|
-
amount: number;
|
|
28
|
-
}
|
|
29
|
-
export interface DrawItem {
|
|
30
|
-
id: string;
|
|
31
|
-
date: string;
|
|
32
|
-
winningNumbers: Array<number>;
|
|
33
|
-
prize: Array<Prize>;
|
|
34
|
-
pages: Pages;
|
|
35
|
-
}
|
|
36
|
-
export interface Pages {
|
|
37
|
-
first: string;
|
|
38
|
-
next: string;
|
|
39
|
-
previous: string;
|
|
40
|
-
last: string;
|
|
41
|
-
}
|
|
42
|
-
export interface Vendor {
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
}
|
|
46
|
-
export interface GridEvent {
|
|
47
|
-
id: string;
|
|
48
|
-
selectedNumbers: Array<string>;
|
|
49
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
export namespace Components {
|
|
9
|
-
interface LotteryTicket {
|
|
10
|
-
/**
|
|
11
|
-
* Shows the auto-pick button
|
|
12
|
-
*/
|
|
13
|
-
"autoPick": boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Client custom styling via string
|
|
16
|
-
*/
|
|
17
|
-
"clientStyling": string;
|
|
18
|
-
/**
|
|
19
|
-
* Client custom styling via url content
|
|
20
|
-
*/
|
|
21
|
-
"clientStylingUrlContent": string;
|
|
22
|
-
/**
|
|
23
|
-
* NorWAy endpoint
|
|
24
|
-
*/
|
|
25
|
-
"endpoint": string;
|
|
26
|
-
/**
|
|
27
|
-
* Game ID
|
|
28
|
-
*/
|
|
29
|
-
"gameId": string;
|
|
30
|
-
/**
|
|
31
|
-
* Language
|
|
32
|
-
*/
|
|
33
|
-
"language": string;
|
|
34
|
-
/**
|
|
35
|
-
* Option to have the ticket registered for multiple draws
|
|
36
|
-
*/
|
|
37
|
-
"multipleDraws": boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Number of grids of a ticket
|
|
40
|
-
*/
|
|
41
|
-
"numberOfGrids": number;
|
|
42
|
-
/**
|
|
43
|
-
* Shows the reset button
|
|
44
|
-
*/
|
|
45
|
-
"resetButton": boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Ticket ID
|
|
48
|
-
*/
|
|
49
|
-
"ticketId": number;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
declare global {
|
|
53
|
-
interface HTMLLotteryTicketElement extends Components.LotteryTicket, HTMLStencilElement {
|
|
54
|
-
}
|
|
55
|
-
var HTMLLotteryTicketElement: {
|
|
56
|
-
prototype: HTMLLotteryTicketElement;
|
|
57
|
-
new (): HTMLLotteryTicketElement;
|
|
58
|
-
};
|
|
59
|
-
interface HTMLElementTagNameMap {
|
|
60
|
-
"lottery-ticket": HTMLLotteryTicketElement;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
declare namespace LocalJSX {
|
|
64
|
-
interface LotteryTicket {
|
|
65
|
-
/**
|
|
66
|
-
* Shows the auto-pick button
|
|
67
|
-
*/
|
|
68
|
-
"autoPick"?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Client custom styling via string
|
|
71
|
-
*/
|
|
72
|
-
"clientStyling"?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Client custom styling via url content
|
|
75
|
-
*/
|
|
76
|
-
"clientStylingUrlContent"?: string;
|
|
77
|
-
/**
|
|
78
|
-
* NorWAy endpoint
|
|
79
|
-
*/
|
|
80
|
-
"endpoint"?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Game ID
|
|
83
|
-
*/
|
|
84
|
-
"gameId"?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Language
|
|
87
|
-
*/
|
|
88
|
-
"language"?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Option to have the ticket registered for multiple draws
|
|
91
|
-
*/
|
|
92
|
-
"multipleDraws"?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Number of grids of a ticket
|
|
95
|
-
*/
|
|
96
|
-
"numberOfGrids"?: number;
|
|
97
|
-
"onAutoSelection"?: (event: CustomEvent<any>) => void;
|
|
98
|
-
"onMultiplierChange"?: (event: CustomEvent<any>) => void;
|
|
99
|
-
"onResetSelection"?: (event: CustomEvent<any>) => void;
|
|
100
|
-
"onStakeChange"?: (event: CustomEvent<any>) => void;
|
|
101
|
-
/**
|
|
102
|
-
* @TODO including ts type
|
|
103
|
-
*/
|
|
104
|
-
"onTicketCompleted"?: (event: CustomEvent<any>) => void;
|
|
105
|
-
/**
|
|
106
|
-
* Shows the reset button
|
|
107
|
-
*/
|
|
108
|
-
"resetButton"?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Ticket ID
|
|
111
|
-
*/
|
|
112
|
-
"ticketId"?: number;
|
|
113
|
-
}
|
|
114
|
-
interface IntrinsicElements {
|
|
115
|
-
"lottery-ticket": LotteryTicket;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
export { LocalJSX as JSX };
|
|
119
|
-
declare module "@stencil/core" {
|
|
120
|
-
export namespace JSX {
|
|
121
|
-
interface IntrinsicElements {
|
|
122
|
-
"lottery-ticket": LocalJSX.LotteryTicket & JSXBase.HTMLAttributes<HTMLLotteryTicketElement>;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|